@praxisui/core 10.0.0-rc.65 → 10.0.0-rc.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/ai/component-registry.json +2 -2
- package/fesm2022/praxisui-core-micro-visualization.mjs +6 -2
- package/fesm2022/praxisui-core.mjs +3622 -49
- package/package.json +1 -1
- package/types/praxisui-core-micro-visualization.d.ts +1 -0
- package/types/praxisui-core-schema.d.ts +52 -0
- package/types/praxisui-core.d.ts +762 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Component, InjectionToken, APP_INITIALIZER, inject, Injectable, Inject, DestroyRef, signal, computed, Optional, SkipSelf, assertInInjectionContext, Injector, ErrorHandler, makeEnvironmentProviders, CSP_NONCE, ENVIRONMENT_INITIALIZER, isSignal, Input, Directive, input, booleanAttribute, ChangeDetectionStrategy, EventEmitter, Output, SecurityContext, ViewContainerRef, effect, untracked, SimpleChange, ElementRef, ChangeDetectorRef, afterEveryRender, contentChild, viewChild, HostBinding, output, afterNextRender, ViewChild, ViewEncapsulation, createEnvironmentInjector, EnvironmentInjector, reflectComponentType, HostListener, ViewChildren, forwardRef, LOCALE_ID, NgZone, TemplateRef, Renderer2, model } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
|
-
import { HttpHeaders, HttpClient, HttpParams, HttpErrorResponse, HttpResponse, HttpContextToken, HTTP_INTERCEPTORS, withInterceptors } from '@angular/common/http';
|
|
5
|
-
import { BehaviorSubject, firstValueFrom, EmptyError, of, defer, throwError, from, EMPTY, tap, finalize as finalize$1, shareReplay as shareReplay$1, map as map$1, catchError as catchError$1, switchMap as switchMap$1, Observable, Subject, takeUntil, forkJoin, timer, isObservable, combineLatest, merge, Subscription, defaultIfEmpty, timeout as timeout$1 } from 'rxjs';
|
|
6
|
-
import { switchMap, map, take, finalize, shareReplay, catchError, timeout, concatMap, tap as tap$1, takeUntil as takeUntil$1, toArray, exhaustMap, filter } from 'rxjs/operators';
|
|
4
|
+
import { HttpHeaders, HttpClient, HttpParams, HttpErrorResponse, HttpResponse, HttpContextToken, HTTP_INTERCEPTORS, withInterceptors, HttpContext } from '@angular/common/http';
|
|
5
|
+
import { BehaviorSubject, firstValueFrom, EmptyError, of, defer, throwError, from, EMPTY, tap, finalize as finalize$1, shareReplay as shareReplay$1, map as map$1, catchError as catchError$1, switchMap as switchMap$1, Observable, Subject, takeUntil, forkJoin, timer, isObservable, combineLatest, merge, Subscription, defaultIfEmpty, timeout as timeout$1, concat, interval } from 'rxjs';
|
|
6
|
+
import { switchMap, map, take, finalize, shareReplay, catchError, timeout, concatMap, tap as tap$1, takeUntil as takeUntil$1, toArray, exhaustMap, filter, mergeMap, takeWhile } from 'rxjs/operators';
|
|
7
7
|
import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
8
8
|
import * as i1$2 from '@angular/forms';
|
|
9
9
|
import { Validators, FormGroup, FormControl, FormArray, FormsModule, ReactiveFormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
@@ -9746,6 +9746,8 @@ const PT_BR_CATALOG = {
|
|
|
9746
9746
|
'capabilities.op.statsTimeSeries': 'Séries Temporais',
|
|
9747
9747
|
'capabilities.op.statsDistribution': 'Distribuição',
|
|
9748
9748
|
'capabilities.op.statsComparison': 'Comparativo',
|
|
9749
|
+
'capabilities.op.statsInference': 'Inferência Estatística',
|
|
9750
|
+
'capabilities.op.statsAnomalies': 'Detecção de Anomalias',
|
|
9749
9751
|
'capabilities.op.bulk': 'Operações em Lote',
|
|
9750
9752
|
'capabilities.risk.LOW': 'Risco Baixo',
|
|
9751
9753
|
'capabilities.risk.MEDIUM': 'Risco Médio',
|
|
@@ -9976,6 +9978,8 @@ const EN_US_CATALOG = {
|
|
|
9976
9978
|
'capabilities.op.statsTimeSeries': 'Time Series',
|
|
9977
9979
|
'capabilities.op.statsDistribution': 'Distribution',
|
|
9978
9980
|
'capabilities.op.statsComparison': 'Comparison',
|
|
9981
|
+
'capabilities.op.statsInference': 'Statistical Inference',
|
|
9982
|
+
'capabilities.op.statsAnomalies': 'Anomaly Detection',
|
|
9979
9983
|
'capabilities.op.bulk': 'Bulk Operations',
|
|
9980
9984
|
'capabilities.risk.LOW': 'Low Risk',
|
|
9981
9985
|
'capabilities.risk.MEDIUM': 'Medium Risk',
|
|
@@ -10372,7 +10376,7 @@ const PRAXIS_ICON_PICKER_I18N_CONFIG = {
|
|
|
10372
10376
|
},
|
|
10373
10377
|
},
|
|
10374
10378
|
};
|
|
10375
|
-
const MISSING_TRANSLATION_SENTINEL$
|
|
10379
|
+
const MISSING_TRANSLATION_SENTINEL$2 = '__PRAXIS_ICON_PICKER_MISSING__';
|
|
10376
10380
|
function providePraxisIconPickerI18n() {
|
|
10377
10381
|
return providePraxisI18nConfig(PRAXIS_ICON_PICKER_I18N_CONFIG);
|
|
10378
10382
|
}
|
|
@@ -10391,8 +10395,8 @@ function resolveBuiltinIconPickerTemplate(key, locale) {
|
|
|
10391
10395
|
}
|
|
10392
10396
|
function resolvePraxisIconPickerMessage(i18n, key, params, fallback, localeOverride) {
|
|
10393
10397
|
if (i18n && typeof i18n.t === 'function') {
|
|
10394
|
-
const primary = i18n.t(key, params, MISSING_TRANSLATION_SENTINEL$
|
|
10395
|
-
if (primary && primary !== MISSING_TRANSLATION_SENTINEL$
|
|
10398
|
+
const primary = i18n.t(key, params, MISSING_TRANSLATION_SENTINEL$2, PRAXIS_ICON_PICKER_I18N_NAMESPACE);
|
|
10399
|
+
if (primary && primary !== MISSING_TRANSLATION_SENTINEL$2 && primary !== key) {
|
|
10396
10400
|
return primary;
|
|
10397
10401
|
}
|
|
10398
10402
|
}
|
|
@@ -10401,6 +10405,193 @@ function resolvePraxisIconPickerMessage(i18n, key, params, fallback, localeOverr
|
|
|
10401
10405
|
return interpolatePraxisTranslation(template, params);
|
|
10402
10406
|
}
|
|
10403
10407
|
|
|
10408
|
+
const PRAXIS_INTELLIGENCE_EN_US = {
|
|
10409
|
+
'praxis.intelligence.epistemic.regionAria': 'Analytical epistemic badge and provenance',
|
|
10410
|
+
'praxis.intelligence.epistemic.defaultTitle': 'Analytical evidence and epistemic scope',
|
|
10411
|
+
'praxis.intelligence.epistemic.kind.DETERMINISTIC_LAW': 'Deterministic Law',
|
|
10412
|
+
'praxis.intelligence.epistemic.kind.CALIBRATED_PROBABILITY': 'Calibrated Probability',
|
|
10413
|
+
'praxis.intelligence.epistemic.kind.STOCHASTIC_SIMULATION': 'Stochastic Simulation',
|
|
10414
|
+
'praxis.intelligence.epistemic.kind.CAUSAL_HYPOTHESIS': 'Causal Hypothesis',
|
|
10415
|
+
'praxis.intelligence.epistemic.kind.OPTIMIZATION_RESULT': 'Optimization Result',
|
|
10416
|
+
'praxis.intelligence.epistemic.state.AVAILABLE': 'Available',
|
|
10417
|
+
'praxis.intelligence.epistemic.state.INSUFFICIENT_SAMPLE': 'Insufficient Sample',
|
|
10418
|
+
'praxis.intelligence.epistemic.state.K_ANONYMITY_SUPPRESSED': 'k-Anonymity Suppressed',
|
|
10419
|
+
'praxis.intelligence.epistemic.state.ENGINE_UNAVAILABLE': 'Engine Unavailable',
|
|
10420
|
+
'praxis.intelligence.epistemic.state.DEGRADED': 'Degraded',
|
|
10421
|
+
'praxis.intelligence.epistemic.guidance.INSUFFICIENT_SAMPLE': 'Widen the date range or relax restrictive filters to reach the minimum statistical sample size.',
|
|
10422
|
+
'praxis.intelligence.epistemic.guidance.K_ANONYMITY_SUPPRESSED': 'Group by a broader dimension so every cohort satisfies the k-anonymity privacy threshold.',
|
|
10423
|
+
'praxis.intelligence.epistemic.guidance.ENGINE_UNAVAILABLE': 'Statistical engine unavailable (fail-closed); no analytical claims are surfaced until recovery.',
|
|
10424
|
+
'praxis.intelligence.epistemic.guidance.DEGRADED': 'Partial or degraded evidence; inspect sample coverage and provenance before taking action.',
|
|
10425
|
+
'praxis.intelligence.epistemic.suppressedAlert': 'Privacy (k-anonymity): {{ count }} cell(s) were suppressed due to small group size.',
|
|
10426
|
+
'praxis.intelligence.epistemic.sampleSize': 'Sample n={{ count }}',
|
|
10427
|
+
'praxis.intelligence.epistemic.qValueFdr': 'q-FDR {{ value }}',
|
|
10428
|
+
'praxis.intelligence.epistemic.significantYes': 'Significant (FDR)',
|
|
10429
|
+
'praxis.intelligence.epistemic.significantNo': 'Not significant (FDR)',
|
|
10430
|
+
'praxis.intelligence.epistemic.modelCard': 'Model {{ id }}',
|
|
10431
|
+
'praxis.intelligence.epistemic.datasetKey': 'Dataset {{ key }}',
|
|
10432
|
+
'praxis.intelligence.epistemic.provenanceHash': 'Provenance',
|
|
10433
|
+
'praxis.intelligence.epistemic.copyHash': 'Copy full provenance hash',
|
|
10434
|
+
'praxis.intelligence.epistemic.copiedHash': 'Hash copied',
|
|
10435
|
+
'praxis.intelligence.epistemic.expandDetails': 'Show provenance details',
|
|
10436
|
+
'praxis.intelligence.epistemic.collapseDetails': 'Hide provenance details',
|
|
10437
|
+
'praxis.intelligence.epistemic.nigriniLabel': 'Nigrini-Benford',
|
|
10438
|
+
'praxis.intelligence.epistemic.nigriniMad': 'MAD {{ mad }}',
|
|
10439
|
+
'praxis.intelligence.epistemic.nigrini.CLOSE_CONFORMITY': 'Close conformity',
|
|
10440
|
+
'praxis.intelligence.epistemic.nigrini.ACCEPTABLE_CONFORMITY': 'Acceptable conformity',
|
|
10441
|
+
'praxis.intelligence.epistemic.nigrini.MARGINAL_CONFORMITY': 'Marginal conformity',
|
|
10442
|
+
'praxis.intelligence.epistemic.nigrini.NON_CONFORMITY': 'Non-conformity',
|
|
10443
|
+
'praxis.intelligence.job.regionAria': 'Analytical intelligence job status',
|
|
10444
|
+
'praxis.intelligence.job.defaultOperation': 'Analytical execution',
|
|
10445
|
+
'praxis.intelligence.job.status.QUEUED': 'Queued',
|
|
10446
|
+
'praxis.intelligence.job.status.RUNNING': 'Running',
|
|
10447
|
+
'praxis.intelligence.job.status.SUCCEEDED': 'Succeeded',
|
|
10448
|
+
'praxis.intelligence.job.status.FAILED': 'Failed',
|
|
10449
|
+
'praxis.intelligence.job.status.CANCELLED': 'Cancelled',
|
|
10450
|
+
'praxis.intelligence.job.status.EXPIRED': 'Expired',
|
|
10451
|
+
'praxis.intelligence.job.status.INTERRUPTED': 'Monitoring interrupted',
|
|
10452
|
+
'praxis.intelligence.job.progressAria': 'Analytical job progress',
|
|
10453
|
+
'praxis.intelligence.job.progressPercent': '{{ percent }}%',
|
|
10454
|
+
'praxis.intelligence.job.jobIdLabel': 'Job',
|
|
10455
|
+
'praxis.intelligence.job.correlationIdLabel': 'Correlation',
|
|
10456
|
+
'praxis.intelligence.job.errorCodeLabel': 'Code',
|
|
10457
|
+
'praxis.intelligence.job.cancelButton': 'Cancel job',
|
|
10458
|
+
'praxis.intelligence.job.cancelAria': 'Cancel analytical job {{ jobId }}',
|
|
10459
|
+
'praxis.intelligence.job.cancellingButton': 'Cancelling…',
|
|
10460
|
+
'praxis.intelligence.job.cancelFailedNotice': 'Could not cancel the job.',
|
|
10461
|
+
'praxis.intelligence.job.interruptedNotice': 'Monitoring stopped because the active context changed or the stream closed.',
|
|
10462
|
+
'praxis.intelligence.job.loadingMessage': 'Checking analytical job status…',
|
|
10463
|
+
'praxis.intelligence.job.statusAnnouncement': 'Job {{ operation }}: {{ status }} ({{ percent }}%).',
|
|
10464
|
+
'praxis.intelligence.job.statusAnnouncementSimple': 'Job {{ operation }}: {{ status }}.',
|
|
10465
|
+
'praxis.intelligence.error.INVALID_REQUEST': 'The analytical request parameters are invalid or incompatible with the contract.',
|
|
10466
|
+
'praxis.intelligence.error.INTERNAL_AUTH_FAILED': 'Internal analytical authentication could not be verified for this operation.',
|
|
10467
|
+
'praxis.intelligence.error.JOB_ACCESS_DENIED': 'You do not have permission to view or cancel this analytical job.',
|
|
10468
|
+
'praxis.intelligence.error.JOB_NOT_FOUND': 'Analytical job was not found or has already expired from retention.',
|
|
10469
|
+
'praxis.intelligence.error.INSUFFICIENT_SAMPLE_SIZE': 'Insufficient sample size to produce reliable statistical inference in this slice.',
|
|
10470
|
+
'praxis.intelligence.error.K_ANONYMITY_SUPPRESSED': 'Output suppressed by k-anonymity privacy policy.',
|
|
10471
|
+
'praxis.intelligence.error.NON_CONVERGENT_OPTIMIZER': 'The optimizer did not converge within the configured numerical bounds.',
|
|
10472
|
+
'praxis.intelligence.error.SINGULAR_MATRIX': 'The selected dataset is collinear or singular for this analytical model.',
|
|
10473
|
+
'praxis.intelligence.error.DRIFT_CIRCUIT_OPEN': 'Execution temporarily blocked by the model drift protection circuit breaker.',
|
|
10474
|
+
'praxis.intelligence.error.PAYLOAD_TOO_LARGE': 'The tabular payload exceeds the analytical engine limit. Narrow your filters.',
|
|
10475
|
+
'praxis.intelligence.error.INTELLIGENCE_ENGINE_UNAVAILABLE': 'Analytical intelligence engine is temporarily unavailable. Please try again shortly.',
|
|
10476
|
+
'praxis.intelligence.error.CONTRACT_VERSION_MISMATCH': 'Incompatible contract version between the platform and the analytical engine.',
|
|
10477
|
+
'praxis.intelligence.error.JOB_TIMEOUT': 'The analytical job exceeded its maximum execution time limit.',
|
|
10478
|
+
};
|
|
10479
|
+
|
|
10480
|
+
const PRAXIS_INTELLIGENCE_PT_BR = {
|
|
10481
|
+
'praxis.intelligence.epistemic.regionAria': 'Selo epistêmico e proveniência da análise',
|
|
10482
|
+
'praxis.intelligence.epistemic.defaultTitle': 'Evidência analítica e escopo epistêmico',
|
|
10483
|
+
'praxis.intelligence.epistemic.kind.DETERMINISTIC_LAW': 'Regra Determinística',
|
|
10484
|
+
'praxis.intelligence.epistemic.kind.CALIBRATED_PROBABILITY': 'Probabilidade Calibrada',
|
|
10485
|
+
'praxis.intelligence.epistemic.kind.STOCHASTIC_SIMULATION': 'Simulação Estocástica',
|
|
10486
|
+
'praxis.intelligence.epistemic.kind.CAUSAL_HYPOTHESIS': 'Hipótese Causal',
|
|
10487
|
+
'praxis.intelligence.epistemic.kind.OPTIMIZATION_RESULT': 'Otimização Condicionada',
|
|
10488
|
+
'praxis.intelligence.epistemic.state.AVAILABLE': 'Disponível',
|
|
10489
|
+
'praxis.intelligence.epistemic.state.INSUFFICIENT_SAMPLE': 'Amostra Insuficiente',
|
|
10490
|
+
'praxis.intelligence.epistemic.state.K_ANONYMITY_SUPPRESSED': 'Suprimido por k-Anonimato',
|
|
10491
|
+
'praxis.intelligence.epistemic.state.ENGINE_UNAVAILABLE': 'Motor Indisponível',
|
|
10492
|
+
'praxis.intelligence.epistemic.state.DEGRADED': 'Degradado',
|
|
10493
|
+
'praxis.intelligence.epistemic.guidance.INSUFFICIENT_SAMPLE': 'Amplie o recorte temporal ou reduza filtros restritivos para atingir o tamanho mínimo de amostra.',
|
|
10494
|
+
'praxis.intelligence.epistemic.guidance.K_ANONYMITY_SUPPRESSED': 'Agrupe em uma dimensão mais ampla para preservar o limiar mínimo de privacidade por k-anonimato.',
|
|
10495
|
+
'praxis.intelligence.epistemic.guidance.ENGINE_UNAVAILABLE': 'Motor estatístico indisponível em modo fail-closed; nenhuma inferência é exibida até o restabelecimento.',
|
|
10496
|
+
'praxis.intelligence.epistemic.guidance.DEGRADED': 'Evidência parcial ou degradada; revise a cobertura amostral e a proveniência antes de decidir.',
|
|
10497
|
+
'praxis.intelligence.epistemic.suppressedAlert': 'Privacidade (k-anonimato): {{ count }} célula(s) omitida(s) por conterem poucos registros.',
|
|
10498
|
+
'praxis.intelligence.epistemic.sampleSize': 'Amostra n={{ count }}',
|
|
10499
|
+
'praxis.intelligence.epistemic.qValueFdr': 'q-FDR {{ value }}',
|
|
10500
|
+
'praxis.intelligence.epistemic.significantYes': 'Significativo (FDR)',
|
|
10501
|
+
'praxis.intelligence.epistemic.significantNo': 'Não significativo (FDR)',
|
|
10502
|
+
'praxis.intelligence.epistemic.modelCard': 'Modelo {{ id }}',
|
|
10503
|
+
'praxis.intelligence.epistemic.datasetKey': 'Conjunto {{ key }}',
|
|
10504
|
+
'praxis.intelligence.epistemic.provenanceHash': 'Proveniência',
|
|
10505
|
+
'praxis.intelligence.epistemic.copyHash': 'Copiar hash de proveniência completo',
|
|
10506
|
+
'praxis.intelligence.epistemic.copiedHash': 'Hash copiado',
|
|
10507
|
+
'praxis.intelligence.epistemic.expandDetails': 'Exibir detalhes de proveniência',
|
|
10508
|
+
'praxis.intelligence.epistemic.collapseDetails': 'Ocultar detalhes de proveniência',
|
|
10509
|
+
'praxis.intelligence.epistemic.nigriniLabel': 'Nigrini-Benford',
|
|
10510
|
+
'praxis.intelligence.epistemic.nigriniMad': 'MAD {{ mad }}',
|
|
10511
|
+
'praxis.intelligence.epistemic.nigrini.CLOSE_CONFORMITY': 'Conformidade estreita',
|
|
10512
|
+
'praxis.intelligence.epistemic.nigrini.ACCEPTABLE_CONFORMITY': 'Conformidade aceitável',
|
|
10513
|
+
'praxis.intelligence.epistemic.nigrini.MARGINAL_CONFORMITY': 'Conformidade marginal',
|
|
10514
|
+
'praxis.intelligence.epistemic.nigrini.NON_CONFORMITY': 'Não conformidade',
|
|
10515
|
+
'praxis.intelligence.job.regionAria': 'Estado do trabalho analítico de inteligência',
|
|
10516
|
+
'praxis.intelligence.job.defaultOperation': 'Execução analítica',
|
|
10517
|
+
'praxis.intelligence.job.status.QUEUED': 'Na fila',
|
|
10518
|
+
'praxis.intelligence.job.status.RUNNING': 'Em execução',
|
|
10519
|
+
'praxis.intelligence.job.status.SUCCEEDED': 'Concluído',
|
|
10520
|
+
'praxis.intelligence.job.status.FAILED': 'Falhou',
|
|
10521
|
+
'praxis.intelligence.job.status.CANCELLED': 'Cancelado',
|
|
10522
|
+
'praxis.intelligence.job.status.EXPIRED': 'Expirado',
|
|
10523
|
+
'praxis.intelligence.job.status.INTERRUPTED': 'Monitoramento interrompido',
|
|
10524
|
+
'praxis.intelligence.job.progressAria': 'Progresso da execução analítica',
|
|
10525
|
+
'praxis.intelligence.job.progressPercent': '{{ percent }}%',
|
|
10526
|
+
'praxis.intelligence.job.jobIdLabel': 'Trabalho',
|
|
10527
|
+
'praxis.intelligence.job.correlationIdLabel': 'Correlação',
|
|
10528
|
+
'praxis.intelligence.job.errorCodeLabel': 'Código',
|
|
10529
|
+
'praxis.intelligence.job.cancelButton': 'Cancelar trabalho',
|
|
10530
|
+
'praxis.intelligence.job.cancelAria': 'Cancelar trabalho analítico {{ jobId }}',
|
|
10531
|
+
'praxis.intelligence.job.cancellingButton': 'Cancelando…',
|
|
10532
|
+
'praxis.intelligence.job.cancelFailedNotice': 'Não foi possível cancelar o trabalho.',
|
|
10533
|
+
'praxis.intelligence.job.interruptedNotice': 'Monitoramento interrompido devido à troca de contexto ou encerramento do fluxo.',
|
|
10534
|
+
'praxis.intelligence.job.loadingMessage': 'Consultando estado do trabalho analítico…',
|
|
10535
|
+
'praxis.intelligence.job.statusAnnouncement': 'Trabalho {{ operation }}: {{ status }} ({{ percent }}%).',
|
|
10536
|
+
'praxis.intelligence.job.statusAnnouncementSimple': 'Trabalho {{ operation }}: {{ status }}.',
|
|
10537
|
+
'praxis.intelligence.error.INVALID_REQUEST': 'Os parâmetros enviados para a análise são inválidos ou incompatíveis com o contrato.',
|
|
10538
|
+
'praxis.intelligence.error.INTERNAL_AUTH_FAILED': 'Não foi possível validar a credencial analítica interna para esta operação.',
|
|
10539
|
+
'praxis.intelligence.error.JOB_ACCESS_DENIED': 'Você não possui permissão para consultar ou cancelar este trabalho analítico.',
|
|
10540
|
+
'praxis.intelligence.error.JOB_NOT_FOUND': 'Trabalho analítico não encontrado ou expirado da janela de retenção.',
|
|
10541
|
+
'praxis.intelligence.error.INSUFFICIENT_SAMPLE_SIZE': 'Amostra insuficiente para produzir inferência estatística confiável neste recorte.',
|
|
10542
|
+
'praxis.intelligence.error.K_ANONYMITY_SUPPRESSED': 'Resultado suprimido pela política de privacidade e k-anonimato.',
|
|
10543
|
+
'praxis.intelligence.error.NON_CONVERGENT_OPTIMIZER': 'O otimizador não atingiu convergência numérica dentro dos limites configurados.',
|
|
10544
|
+
'praxis.intelligence.error.SINGULAR_MATRIX': 'Os dados selecionados apresentam colinearidade ou matriz singular para este modelo.',
|
|
10545
|
+
'praxis.intelligence.error.DRIFT_CIRCUIT_OPEN': 'Execução bloqueada temporariamente por circuito de proteção contra deriva do modelo.',
|
|
10546
|
+
'praxis.intelligence.error.PAYLOAD_TOO_LARGE': 'O volume tabular excede o limite suportado pelo motor analítico. Refine os filtros.',
|
|
10547
|
+
'praxis.intelligence.error.INTELLIGENCE_ENGINE_UNAVAILABLE': 'Motor de inteligência analítica temporariamente indisponível. Tente novamente em instantes.',
|
|
10548
|
+
'praxis.intelligence.error.CONTRACT_VERSION_MISMATCH': 'Versão de contrato incompatível entre a plataforma e o motor analítico.',
|
|
10549
|
+
'praxis.intelligence.error.JOB_TIMEOUT': 'O tempo máximo de execução do trabalho analítico foi excedido.',
|
|
10550
|
+
};
|
|
10551
|
+
|
|
10552
|
+
const PRAXIS_INTELLIGENCE_I18N_NAMESPACE = 'praxis.intelligence';
|
|
10553
|
+
const PRAXIS_INTELLIGENCE_I18N_CONFIG = {
|
|
10554
|
+
namespaces: {
|
|
10555
|
+
[PRAXIS_INTELLIGENCE_I18N_NAMESPACE]: {
|
|
10556
|
+
'pt-BR': { ...PRAXIS_INTELLIGENCE_PT_BR },
|
|
10557
|
+
'en-US': { ...PRAXIS_INTELLIGENCE_EN_US },
|
|
10558
|
+
},
|
|
10559
|
+
},
|
|
10560
|
+
};
|
|
10561
|
+
const MISSING_TRANSLATION_SENTINEL$1 = '__PRAXIS_INTELLIGENCE_MISSING__';
|
|
10562
|
+
function providePraxisIntelligenceI18n() {
|
|
10563
|
+
return providePraxisI18nConfig(PRAXIS_INTELLIGENCE_I18N_CONFIG);
|
|
10564
|
+
}
|
|
10565
|
+
function resolveBuiltinIntelligenceTemplate(key, locale) {
|
|
10566
|
+
const normalized = String(locale || '').trim().replace('_', '-').toLowerCase();
|
|
10567
|
+
const dict = normalized.startsWith('en')
|
|
10568
|
+
? PRAXIS_INTELLIGENCE_EN_US
|
|
10569
|
+
: PRAXIS_INTELLIGENCE_PT_BR;
|
|
10570
|
+
if (Object.prototype.propertyIsEnumerable.call(dict, key)) {
|
|
10571
|
+
return dict[key];
|
|
10572
|
+
}
|
|
10573
|
+
if (Object.prototype.propertyIsEnumerable.call(PRAXIS_INTELLIGENCE_PT_BR, key)) {
|
|
10574
|
+
return PRAXIS_INTELLIGENCE_PT_BR[key];
|
|
10575
|
+
}
|
|
10576
|
+
return undefined;
|
|
10577
|
+
}
|
|
10578
|
+
/**
|
|
10579
|
+
* Resolves framework-owned intelligence and epistemic copy in `praxis.intelligence`,
|
|
10580
|
+
* respecting host overrides registered via `PraxisI18nService` while keeping deterministic
|
|
10581
|
+
* `pt-BR` and `en-US` fallbacks when the service is absent.
|
|
10582
|
+
*/
|
|
10583
|
+
function resolvePraxisIntelligenceMessage(i18n, key, params, fallback, localeOverride) {
|
|
10584
|
+
if (i18n && typeof i18n.t === 'function') {
|
|
10585
|
+
const primary = i18n.t(key, params, MISSING_TRANSLATION_SENTINEL$1, PRAXIS_INTELLIGENCE_I18N_NAMESPACE);
|
|
10586
|
+
if (primary && primary !== MISSING_TRANSLATION_SENTINEL$1 && primary !== key) {
|
|
10587
|
+
return primary;
|
|
10588
|
+
}
|
|
10589
|
+
}
|
|
10590
|
+
const locale = localeOverride || i18n?.getLocale?.() || 'pt-BR';
|
|
10591
|
+
const template = resolveBuiltinIntelligenceTemplate(key, locale) ?? fallback ?? key;
|
|
10592
|
+
return interpolatePraxisTranslation(template, params);
|
|
10593
|
+
}
|
|
10594
|
+
|
|
10404
10595
|
const PRAXIS_MICRO_VIZ_EN_US = {
|
|
10405
10596
|
'praxis.microViz.targetLabel': 'Target',
|
|
10406
10597
|
'praxis.microViz.baseLabel': 'Base',
|
|
@@ -10804,6 +10995,7 @@ class PraxisI18nService {
|
|
|
10804
10995
|
this.lookupBuiltinShellPreset(key, candidate) ??
|
|
10805
10996
|
this.lookupBuiltinShellI18n(key, candidate) ??
|
|
10806
10997
|
this.lookupBuiltinMicroVizI18n(key, candidate) ??
|
|
10998
|
+
this.lookupBuiltinIntelligenceI18n(key, candidate) ??
|
|
10807
10999
|
this.lookupBuiltinIconPickerI18n(key, candidate);
|
|
10808
11000
|
if (resolved !== undefined)
|
|
10809
11001
|
break;
|
|
@@ -10816,6 +11008,7 @@ class PraxisI18nService {
|
|
|
10816
11008
|
this.lookupBuiltinShellPreset(key, candidate) ??
|
|
10817
11009
|
this.lookupBuiltinShellI18n(key, candidate) ??
|
|
10818
11010
|
this.lookupBuiltinMicroVizI18n(key, candidate) ??
|
|
11011
|
+
this.lookupBuiltinIntelligenceI18n(key, candidate) ??
|
|
10819
11012
|
this.lookupBuiltinIconPickerI18n(key, candidate);
|
|
10820
11013
|
if (resolved !== undefined)
|
|
10821
11014
|
break;
|
|
@@ -10953,6 +11146,10 @@ class PraxisI18nService {
|
|
|
10953
11146
|
const value = PRAXIS_MICRO_VIZ_I18N_CONFIG.namespaces?.[PRAXIS_MICRO_VIZ_I18N_NAMESPACE]?.[locale]?.[key];
|
|
10954
11147
|
return typeof value === 'string' ? value : undefined;
|
|
10955
11148
|
}
|
|
11149
|
+
lookupBuiltinIntelligenceI18n(key, locale) {
|
|
11150
|
+
const value = PRAXIS_INTELLIGENCE_I18N_CONFIG.namespaces?.[PRAXIS_INTELLIGENCE_I18N_NAMESPACE]?.[locale]?.[key];
|
|
11151
|
+
return typeof value === 'string' ? value : undefined;
|
|
11152
|
+
}
|
|
10956
11153
|
lookupBuiltinIconPickerI18n(key, locale) {
|
|
10957
11154
|
const value = PRAXIS_ICON_PICKER_I18N_CONFIG.namespaces?.[PRAXIS_ICON_PICKER_I18N_NAMESPACE]?.[locale]?.[key];
|
|
10958
11155
|
return typeof value === 'string' ? value : undefined;
|
|
@@ -11292,6 +11489,8 @@ const RESOURCE_DISCOVERY_I18N_CONFIG = {
|
|
|
11292
11489
|
'endpoint.stats.timeseries': 'S\u00e9rie temporal agregada (timeseries)',
|
|
11293
11490
|
'endpoint.stats.distribution': 'Distribui\u00e7\u00e3o anal\u00edtica (distribution)',
|
|
11294
11491
|
'endpoint.stats.comparison': 'Comparativo anal\u00edtico entre per\u00edodos (comparison)',
|
|
11492
|
+
'endpoint.stats.inference': 'Infer\u00eancia estat\u00edstica e testes de hip\u00f3tese (inference)',
|
|
11493
|
+
'endpoint.stats.anomalies': 'Varredura estat\u00edstica e forense de anomalias (anomalies)',
|
|
11295
11494
|
'endpoint.crud.create': 'Criar {{resource}}',
|
|
11296
11495
|
'endpoint.crud.view': 'Consultar {{resource}} por ID',
|
|
11297
11496
|
'endpoint.crud.edit': 'Atualizar {{resource}}',
|
|
@@ -11332,6 +11531,8 @@ const RESOURCE_DISCOVERY_I18N_CONFIG = {
|
|
|
11332
11531
|
'endpoint.stats.timeseries': 'Aggregated time series (timeseries)',
|
|
11333
11532
|
'endpoint.stats.distribution': 'Analytical distribution (distribution)',
|
|
11334
11533
|
'endpoint.stats.comparison': 'Analytical period comparison (comparison)',
|
|
11534
|
+
'endpoint.stats.inference': 'Statistical inference and hypothesis testing (inference)',
|
|
11535
|
+
'endpoint.stats.anomalies': 'Statistical and forensic anomaly scan (anomalies)',
|
|
11335
11536
|
'endpoint.crud.create': 'Create {{resource}}',
|
|
11336
11537
|
'endpoint.crud.view': 'Get {{resource}} by ID',
|
|
11337
11538
|
'endpoint.crud.edit': 'Update {{resource}}',
|
|
@@ -11485,7 +11686,7 @@ function resolvePraxisMicroVisualizationTone(value, thresholds, fallbackTone) {
|
|
|
11485
11686
|
if (value === undefined || value === null || !Array.isArray(thresholds) || thresholds.length === 0) {
|
|
11486
11687
|
return fallbackTone ? { tone: fallbackTone } : undefined;
|
|
11487
11688
|
}
|
|
11488
|
-
const num = toFiniteNumber$
|
|
11689
|
+
const num = toFiniteNumber$2(value);
|
|
11489
11690
|
const isNum = num !== undefined;
|
|
11490
11691
|
// 1. Pass 1: Correspondencia discreta (equals) tem prioridade maxima
|
|
11491
11692
|
for (const t of thresholds) {
|
|
@@ -11495,7 +11696,7 @@ function resolvePraxisMicroVisualizationTone(value, thresholds, fallbackTone) {
|
|
|
11495
11696
|
if (t.equals === value || String(t.equals) === String(value)) {
|
|
11496
11697
|
return { tone: t.tone, label: t.label, matchedThreshold: t };
|
|
11497
11698
|
}
|
|
11498
|
-
const eqNum = toFiniteNumber$
|
|
11699
|
+
const eqNum = toFiniteNumber$2(t.equals);
|
|
11499
11700
|
if (isNum && eqNum !== undefined && eqNum === num) {
|
|
11500
11701
|
return { tone: t.tone, label: t.label, matchedThreshold: t };
|
|
11501
11702
|
}
|
|
@@ -11683,7 +11884,7 @@ function normalizeStackedBarDistribution(value, surface) {
|
|
|
11683
11884
|
normalizeExpression(value.itemsExpr, 'itemsExpr'));
|
|
11684
11885
|
const rawTitle = isTableCell ? undefined : normalizeText$3(value.title);
|
|
11685
11886
|
if (!hasSegmentsProp && !hasItemsProp) {
|
|
11686
|
-
const explicitTotal = hasExplicitTotalProp ? toFiniteNumber$
|
|
11887
|
+
const explicitTotal = hasExplicitTotalProp ? toFiniteNumber$2(value.total) : undefined;
|
|
11687
11888
|
const validDeferredTotal = !hasExplicitTotalProp || (explicitTotal !== undefined && explicitTotal >= 0);
|
|
11688
11889
|
if (!validDeferredTotal) {
|
|
11689
11890
|
return {
|
|
@@ -11726,7 +11927,7 @@ function normalizeStackedBarDistribution(value, surface) {
|
|
|
11726
11927
|
}
|
|
11727
11928
|
const rawEntry = rawEntries[i];
|
|
11728
11929
|
if (typeof rawEntry === 'number' || typeof rawEntry === 'string') {
|
|
11729
|
-
const num = toFiniteNumber$
|
|
11930
|
+
const num = toFiniteNumber$2(rawEntry);
|
|
11730
11931
|
if (num === undefined || num < 0) {
|
|
11731
11932
|
return {
|
|
11732
11933
|
valid: false,
|
|
@@ -11748,7 +11949,7 @@ function normalizeStackedBarDistribution(value, surface) {
|
|
|
11748
11949
|
suppressedCount += 1;
|
|
11749
11950
|
continue;
|
|
11750
11951
|
}
|
|
11751
|
-
const num = toFiniteNumber$
|
|
11952
|
+
const num = toFiniteNumber$2(entryObj.value);
|
|
11752
11953
|
if (num === undefined || num < 0) {
|
|
11753
11954
|
return {
|
|
11754
11955
|
valid: false,
|
|
@@ -11794,7 +11995,7 @@ function normalizeStackedBarDistribution(value, surface) {
|
|
|
11794
11995
|
}
|
|
11795
11996
|
let validatedTotal;
|
|
11796
11997
|
if (hasExplicitTotalProp) {
|
|
11797
|
-
const explicitTotal = toFiniteNumber$
|
|
11998
|
+
const explicitTotal = toFiniteNumber$2(value.total);
|
|
11798
11999
|
if (explicitTotal === undefined || !Number.isFinite(explicitTotal) || explicitTotal < 0) {
|
|
11799
12000
|
return {
|
|
11800
12001
|
valid: false,
|
|
@@ -12011,7 +12212,7 @@ function getPraxisMicroToneGradientStops(tone) {
|
|
|
12011
12212
|
return ['#cbd5e1', '#64748b', '#334155'];
|
|
12012
12213
|
}
|
|
12013
12214
|
}
|
|
12014
|
-
function toFiniteNumber$
|
|
12215
|
+
function toFiniteNumber$2(value) {
|
|
12015
12216
|
if (typeof value === 'number') {
|
|
12016
12217
|
return Number.isFinite(value) ? value : undefined;
|
|
12017
12218
|
}
|
|
@@ -12064,9 +12265,9 @@ function normalizeThresholds(value) {
|
|
|
12064
12265
|
.map((item) => {
|
|
12065
12266
|
if (!item || typeof item !== 'object')
|
|
12066
12267
|
return undefined;
|
|
12067
|
-
const numVal = toFiniteNumber$
|
|
12068
|
-
const minVal = toFiniteNumber$
|
|
12069
|
-
const maxVal = toFiniteNumber$
|
|
12268
|
+
const numVal = toFiniteNumber$2(item.value);
|
|
12269
|
+
const minVal = toFiniteNumber$2(item.min);
|
|
12270
|
+
const maxVal = toFiniteNumber$2(item.max);
|
|
12070
12271
|
const tone = normalizeEnum$1(item.tone, VISUALIZATION_TONES);
|
|
12071
12272
|
const label = normalizeText$3(item.label);
|
|
12072
12273
|
const hasCondition = numVal !== undefined || minVal !== undefined || maxVal !== undefined || item.equals !== undefined;
|
|
@@ -12111,13 +12312,13 @@ function normalizeNumericEntries(value) {
|
|
|
12111
12312
|
return value
|
|
12112
12313
|
.map((item) => {
|
|
12113
12314
|
if (typeof item === 'number' || typeof item === 'string') {
|
|
12114
|
-
const num = toFiniteNumber$
|
|
12315
|
+
const num = toFiniteNumber$2(item);
|
|
12115
12316
|
return num !== undefined ? { value: num } : null;
|
|
12116
12317
|
}
|
|
12117
12318
|
if (!item || typeof item !== 'object' || isVisualizationEntrySuppressed(item)) {
|
|
12118
12319
|
return null;
|
|
12119
12320
|
}
|
|
12120
|
-
const num = toFiniteNumber$
|
|
12321
|
+
const num = toFiniteNumber$2(item.value);
|
|
12121
12322
|
if (num === undefined) {
|
|
12122
12323
|
return null;
|
|
12123
12324
|
}
|
|
@@ -12144,7 +12345,7 @@ function normalizeVisualizationItem(item) {
|
|
|
12144
12345
|
const tone = normalizeEnum$1(item.tone, VISUALIZATION_TONES);
|
|
12145
12346
|
const role = normalizeEnum$1(item.role, WATERFALL_ROLES);
|
|
12146
12347
|
const color = normalizePraxisHexColor(item.color);
|
|
12147
|
-
const normalizedValue = toFiniteNumber$
|
|
12348
|
+
const normalizedValue = toFiniteNumber$2(item.value);
|
|
12148
12349
|
if (!id && !label && normalizedValue === undefined && !icon && !state && !tone && !role && !color) {
|
|
12149
12350
|
return null;
|
|
12150
12351
|
}
|
|
@@ -12160,7 +12361,7 @@ function normalizeVisualizationItem(item) {
|
|
|
12160
12361
|
};
|
|
12161
12362
|
}
|
|
12162
12363
|
function normalizeNumber(value, key) {
|
|
12163
|
-
const num = toFiniteNumber$
|
|
12364
|
+
const num = toFiniteNumber$2(value);
|
|
12164
12365
|
return num !== undefined ? { [key]: num } : undefined;
|
|
12165
12366
|
}
|
|
12166
12367
|
function normalizeEnum$1(value, allowed) {
|
|
@@ -12225,7 +12426,7 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
|
|
|
12225
12426
|
hadSuppressedItems = true;
|
|
12226
12427
|
continue;
|
|
12227
12428
|
}
|
|
12228
|
-
const rawNumeric = toFiniteNumber$
|
|
12429
|
+
const rawNumeric = toFiniteNumber$2(raw.value);
|
|
12229
12430
|
if (rawNumeric !== undefined) {
|
|
12230
12431
|
hasFiniteNumeric = true;
|
|
12231
12432
|
}
|
|
@@ -16018,6 +16219,18 @@ class ResourceDiscoveryService {
|
|
|
16018
16219
|
suffix: '/stats/comparison',
|
|
16019
16220
|
summary: translateResourceDiscoveryText(this.i18n, 'endpoint.stats.comparison', undefined, 'Comparativo anal\u00edtico entre per\u00edodos (comparison)'),
|
|
16020
16221
|
},
|
|
16222
|
+
{
|
|
16223
|
+
capKey: 'statsInference',
|
|
16224
|
+
operation: 'inference',
|
|
16225
|
+
suffix: '/stats/inference',
|
|
16226
|
+
summary: translateResourceDiscoveryText(this.i18n, 'endpoint.stats.inference', undefined, 'Infer\u00eancia estat\u00edstica e testes de hip\u00f3tese (inference)'),
|
|
16227
|
+
},
|
|
16228
|
+
{
|
|
16229
|
+
capKey: 'statsAnomalies',
|
|
16230
|
+
operation: 'anomalies',
|
|
16231
|
+
suffix: '/stats/anomalies',
|
|
16232
|
+
summary: translateResourceDiscoveryText(this.i18n, 'endpoint.stats.anomalies', undefined, 'Varredura estat\u00edstica e forense de anomalias (anomalies)'),
|
|
16233
|
+
},
|
|
16021
16234
|
];
|
|
16022
16235
|
const hasExplicitStats = [...byKey.values()].some((item) => item.kind === 'stats');
|
|
16023
16236
|
for (const item of statsSyntheses) {
|
|
@@ -16819,7 +17032,9 @@ class ResourceDiscoveryService {
|
|
|
16819
17032
|
('statsGroupBy' in canonicalOperations ||
|
|
16820
17033
|
'statsTimeSeries' in canonicalOperations ||
|
|
16821
17034
|
'statsDistribution' in canonicalOperations ||
|
|
16822
|
-
'statsComparison' in canonicalOperations
|
|
17035
|
+
'statsComparison' in canonicalOperations ||
|
|
17036
|
+
'statsInference' in canonicalOperations ||
|
|
17037
|
+
'statsAnomalies' in canonicalOperations);
|
|
16823
17038
|
const hasCanonicalOptions = !!canonicalOperations &&
|
|
16824
17039
|
('options' in canonicalOperations || 'optionSources' in canonicalOperations);
|
|
16825
17040
|
const hasCanonicalCrud = !!canonicalOperations &&
|
|
@@ -16839,7 +17054,9 @@ class ResourceDiscoveryService {
|
|
|
16839
17054
|
? Boolean(canonicalOperations.statsGroupBy ||
|
|
16840
17055
|
canonicalOperations.statsTimeSeries ||
|
|
16841
17056
|
canonicalOperations.statsDistribution ||
|
|
16842
|
-
canonicalOperations.statsComparison
|
|
17057
|
+
canonicalOperations.statsComparison ||
|
|
17058
|
+
canonicalOperations.statsInference ||
|
|
17059
|
+
canonicalOperations.statsAnomalies)
|
|
16843
17060
|
: null;
|
|
16844
17061
|
const canonicalOptions = hasCanonicalOptions
|
|
16845
17062
|
? Boolean(canonicalOperations.options || canonicalOperations.optionSources)
|
|
@@ -17860,6 +18077,691 @@ function readAnalyticsSuppressionMetadata(rowsOrEnvelope) {
|
|
|
17860
18077
|
return extractAnalyticsSuppressionMetadata(rowsOrEnvelope);
|
|
17861
18078
|
}
|
|
17862
18079
|
|
|
18080
|
+
/**
|
|
18081
|
+
* Canonical epistemic metadata, intelligence job lifecycle, and fail-closed error
|
|
18082
|
+
* contracts aligned with `praxis-intelligence-contracts` v1.
|
|
18083
|
+
*/
|
|
18084
|
+
const PRAXIS_EPISTEMIC_KINDS = [
|
|
18085
|
+
'DETERMINISTIC_LAW',
|
|
18086
|
+
'CALIBRATED_PROBABILITY',
|
|
18087
|
+
'STOCHASTIC_SIMULATION',
|
|
18088
|
+
'CAUSAL_HYPOTHESIS',
|
|
18089
|
+
'OPTIMIZATION_RESULT',
|
|
18090
|
+
];
|
|
18091
|
+
const PRAXIS_EPISTEMIC_AVAILABILITY_STATES = [
|
|
18092
|
+
'AVAILABLE',
|
|
18093
|
+
'INSUFFICIENT_SAMPLE',
|
|
18094
|
+
'K_ANONYMITY_SUPPRESSED',
|
|
18095
|
+
'ENGINE_UNAVAILABLE',
|
|
18096
|
+
'DEGRADED',
|
|
18097
|
+
];
|
|
18098
|
+
const PRAXIS_SUPPRESSION_STATUSES = [
|
|
18099
|
+
'EXACT_RELEASE',
|
|
18100
|
+
'SUPPRESSED_PRIMARY_K_ANONYMITY',
|
|
18101
|
+
'SUPPRESSED_SECONDARY_COMPLEMENTARY',
|
|
18102
|
+
];
|
|
18103
|
+
const PRAXIS_INTELLIGENCE_JOB_STATUSES = [
|
|
18104
|
+
'QUEUED',
|
|
18105
|
+
'RUNNING',
|
|
18106
|
+
'SUCCEEDED',
|
|
18107
|
+
'FAILED',
|
|
18108
|
+
'CANCELLED',
|
|
18109
|
+
'EXPIRED',
|
|
18110
|
+
];
|
|
18111
|
+
const PRAXIS_INTELLIGENCE_ERROR_CODES = [
|
|
18112
|
+
'INVALID_REQUEST',
|
|
18113
|
+
'INTERNAL_AUTH_FAILED',
|
|
18114
|
+
'JOB_ACCESS_DENIED',
|
|
18115
|
+
'JOB_NOT_FOUND',
|
|
18116
|
+
'INSUFFICIENT_SAMPLE_SIZE',
|
|
18117
|
+
'K_ANONYMITY_SUPPRESSED',
|
|
18118
|
+
'NON_CONVERGENT_OPTIMIZER',
|
|
18119
|
+
'SINGULAR_MATRIX',
|
|
18120
|
+
'DRIFT_CIRCUIT_OPEN',
|
|
18121
|
+
'PAYLOAD_TOO_LARGE',
|
|
18122
|
+
'INTELLIGENCE_ENGINE_UNAVAILABLE',
|
|
18123
|
+
'CONTRACT_VERSION_MISMATCH',
|
|
18124
|
+
'JOB_TIMEOUT',
|
|
18125
|
+
];
|
|
18126
|
+
const PRAXIS_INTELLIGENCE_ERROR_CATALOG = Object.freeze({
|
|
18127
|
+
INVALID_REQUEST: {
|
|
18128
|
+
code: 'INVALID_REQUEST',
|
|
18129
|
+
httpStatus: 422,
|
|
18130
|
+
retryable: false,
|
|
18131
|
+
i18nKey: 'praxis.intelligence.error.INVALID_REQUEST',
|
|
18132
|
+
},
|
|
18133
|
+
INTERNAL_AUTH_FAILED: {
|
|
18134
|
+
code: 'INTERNAL_AUTH_FAILED',
|
|
18135
|
+
httpStatus: 401,
|
|
18136
|
+
retryable: false,
|
|
18137
|
+
i18nKey: 'praxis.intelligence.error.INTERNAL_AUTH_FAILED',
|
|
18138
|
+
},
|
|
18139
|
+
JOB_ACCESS_DENIED: {
|
|
18140
|
+
code: 'JOB_ACCESS_DENIED',
|
|
18141
|
+
httpStatus: 403,
|
|
18142
|
+
retryable: false,
|
|
18143
|
+
i18nKey: 'praxis.intelligence.error.JOB_ACCESS_DENIED',
|
|
18144
|
+
},
|
|
18145
|
+
JOB_NOT_FOUND: {
|
|
18146
|
+
code: 'JOB_NOT_FOUND',
|
|
18147
|
+
httpStatus: 404,
|
|
18148
|
+
retryable: false,
|
|
18149
|
+
i18nKey: 'praxis.intelligence.error.JOB_NOT_FOUND',
|
|
18150
|
+
},
|
|
18151
|
+
INSUFFICIENT_SAMPLE_SIZE: {
|
|
18152
|
+
code: 'INSUFFICIENT_SAMPLE_SIZE',
|
|
18153
|
+
httpStatus: 422,
|
|
18154
|
+
retryable: false,
|
|
18155
|
+
i18nKey: 'praxis.intelligence.error.INSUFFICIENT_SAMPLE_SIZE',
|
|
18156
|
+
},
|
|
18157
|
+
K_ANONYMITY_SUPPRESSED: {
|
|
18158
|
+
code: 'K_ANONYMITY_SUPPRESSED',
|
|
18159
|
+
httpStatus: 422,
|
|
18160
|
+
retryable: false,
|
|
18161
|
+
i18nKey: 'praxis.intelligence.error.K_ANONYMITY_SUPPRESSED',
|
|
18162
|
+
},
|
|
18163
|
+
NON_CONVERGENT_OPTIMIZER: {
|
|
18164
|
+
code: 'NON_CONVERGENT_OPTIMIZER',
|
|
18165
|
+
httpStatus: 422,
|
|
18166
|
+
retryable: false,
|
|
18167
|
+
i18nKey: 'praxis.intelligence.error.NON_CONVERGENT_OPTIMIZER',
|
|
18168
|
+
},
|
|
18169
|
+
SINGULAR_MATRIX: {
|
|
18170
|
+
code: 'SINGULAR_MATRIX',
|
|
18171
|
+
httpStatus: 422,
|
|
18172
|
+
retryable: false,
|
|
18173
|
+
i18nKey: 'praxis.intelligence.error.SINGULAR_MATRIX',
|
|
18174
|
+
},
|
|
18175
|
+
DRIFT_CIRCUIT_OPEN: {
|
|
18176
|
+
code: 'DRIFT_CIRCUIT_OPEN',
|
|
18177
|
+
httpStatus: 409,
|
|
18178
|
+
retryable: false,
|
|
18179
|
+
i18nKey: 'praxis.intelligence.error.DRIFT_CIRCUIT_OPEN',
|
|
18180
|
+
},
|
|
18181
|
+
PAYLOAD_TOO_LARGE: {
|
|
18182
|
+
code: 'PAYLOAD_TOO_LARGE',
|
|
18183
|
+
httpStatus: 413,
|
|
18184
|
+
retryable: false,
|
|
18185
|
+
i18nKey: 'praxis.intelligence.error.PAYLOAD_TOO_LARGE',
|
|
18186
|
+
},
|
|
18187
|
+
INTELLIGENCE_ENGINE_UNAVAILABLE: {
|
|
18188
|
+
code: 'INTELLIGENCE_ENGINE_UNAVAILABLE',
|
|
18189
|
+
httpStatus: 503,
|
|
18190
|
+
retryable: true,
|
|
18191
|
+
i18nKey: 'praxis.intelligence.error.INTELLIGENCE_ENGINE_UNAVAILABLE',
|
|
18192
|
+
},
|
|
18193
|
+
CONTRACT_VERSION_MISMATCH: {
|
|
18194
|
+
code: 'CONTRACT_VERSION_MISMATCH',
|
|
18195
|
+
httpStatus: 503,
|
|
18196
|
+
retryable: false,
|
|
18197
|
+
i18nKey: 'praxis.intelligence.error.CONTRACT_VERSION_MISMATCH',
|
|
18198
|
+
},
|
|
18199
|
+
JOB_TIMEOUT: {
|
|
18200
|
+
code: 'JOB_TIMEOUT',
|
|
18201
|
+
httpStatus: 504,
|
|
18202
|
+
retryable: true,
|
|
18203
|
+
i18nKey: 'praxis.intelligence.error.JOB_TIMEOUT',
|
|
18204
|
+
},
|
|
18205
|
+
});
|
|
18206
|
+
const EPISTEMIC_KIND_SET = new Set(PRAXIS_EPISTEMIC_KINDS);
|
|
18207
|
+
const AVAILABILITY_STATE_SET = new Set(PRAXIS_EPISTEMIC_AVAILABILITY_STATES);
|
|
18208
|
+
const JOB_STATUS_SET = new Set(PRAXIS_INTELLIGENCE_JOB_STATUSES);
|
|
18209
|
+
const TERMINAL_JOB_STATUS_SET = new Set([
|
|
18210
|
+
'SUCCEEDED',
|
|
18211
|
+
'FAILED',
|
|
18212
|
+
'CANCELLED',
|
|
18213
|
+
'EXPIRED',
|
|
18214
|
+
]);
|
|
18215
|
+
const ERROR_CODE_SET = new Set(PRAXIS_INTELLIGENCE_ERROR_CODES);
|
|
18216
|
+
const UNSAFE_DETAIL_PATTERNS = [
|
|
18217
|
+
/\bTraceback\s*\(most recent call last\)/i,
|
|
18218
|
+
/\b(?:Exception|Error)\s+in\s+thread\b/i,
|
|
18219
|
+
/\bat\s+[a-z_$][\w$.]+\([^)]*:\d+\)/i,
|
|
18220
|
+
/\b(?:java|javax|jakarta|org\.springframework|org\.hibernate|org\.praxisplatform|psycopg|sqlalchemy|fastapi|uvicorn)\.[A-Za-z0-9_$.]+/i,
|
|
18221
|
+
/\bSQLSTATE\[/i,
|
|
18222
|
+
/\bCaused by:/i,
|
|
18223
|
+
/\bFile\s+"[^"]+",\s+line\s+\d+/i,
|
|
18224
|
+
/\bHttp failure response for\b/i,
|
|
18225
|
+
/\b0x[0-9a-f]{6,}\b/i,
|
|
18226
|
+
];
|
|
18227
|
+
function isPlainObject(value) {
|
|
18228
|
+
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
18229
|
+
}
|
|
18230
|
+
function toUpperEnumToken(value) {
|
|
18231
|
+
return typeof value === 'string'
|
|
18232
|
+
? value.trim().toUpperCase().replace(/[\s-]+/g, '_')
|
|
18233
|
+
: '';
|
|
18234
|
+
}
|
|
18235
|
+
function toFiniteNumber$1(value) {
|
|
18236
|
+
if (typeof value === 'number') {
|
|
18237
|
+
return Number.isFinite(value) ? value : undefined;
|
|
18238
|
+
}
|
|
18239
|
+
if (typeof value === 'string' && value.trim() !== '') {
|
|
18240
|
+
const parsed = Number(value);
|
|
18241
|
+
return Number.isFinite(parsed) ? parsed : undefined;
|
|
18242
|
+
}
|
|
18243
|
+
return undefined;
|
|
18244
|
+
}
|
|
18245
|
+
function toOptionalBoolean(value) {
|
|
18246
|
+
if (typeof value === 'boolean') {
|
|
18247
|
+
return value;
|
|
18248
|
+
}
|
|
18249
|
+
if (typeof value === 'string') {
|
|
18250
|
+
const normalized = value.trim().toLowerCase();
|
|
18251
|
+
if (normalized === 'true')
|
|
18252
|
+
return true;
|
|
18253
|
+
if (normalized === 'false')
|
|
18254
|
+
return false;
|
|
18255
|
+
}
|
|
18256
|
+
return undefined;
|
|
18257
|
+
}
|
|
18258
|
+
function toCleanString(value) {
|
|
18259
|
+
if (typeof value !== 'string') {
|
|
18260
|
+
return undefined;
|
|
18261
|
+
}
|
|
18262
|
+
const trimmed = value.trim();
|
|
18263
|
+
return trimmed.length > 0 ? trimmed : undefined;
|
|
18264
|
+
}
|
|
18265
|
+
function isPraxisEpistemicKind(value) {
|
|
18266
|
+
return typeof value === 'string' && EPISTEMIC_KIND_SET.has(value);
|
|
18267
|
+
}
|
|
18268
|
+
function normalizePraxisEpistemicKind(value, fallback = 'CALIBRATED_PROBABILITY') {
|
|
18269
|
+
const token = toUpperEnumToken(value);
|
|
18270
|
+
return isPraxisEpistemicKind(token) ? token : fallback;
|
|
18271
|
+
}
|
|
18272
|
+
function isPraxisEpistemicAvailabilityState(value) {
|
|
18273
|
+
return typeof value === 'string' && AVAILABILITY_STATE_SET.has(value);
|
|
18274
|
+
}
|
|
18275
|
+
/**
|
|
18276
|
+
* Normalizes epistemic availability states fail-closed:
|
|
18277
|
+
* omitted/blank defaults to `'AVAILABLE'`, valid enum tokens pass through,
|
|
18278
|
+
* and unrecognized non-empty tokens collapse to `'ENGINE_UNAVAILABLE'`.
|
|
18279
|
+
*/
|
|
18280
|
+
function normalizePraxisEpistemicAvailabilityState(value) {
|
|
18281
|
+
const token = toUpperEnumToken(value);
|
|
18282
|
+
if (!token) {
|
|
18283
|
+
return 'AVAILABLE';
|
|
18284
|
+
}
|
|
18285
|
+
return isPraxisEpistemicAvailabilityState(token) ? token : 'ENGINE_UNAVAILABLE';
|
|
18286
|
+
}
|
|
18287
|
+
/**
|
|
18288
|
+
* Returns `true` when `value` denotes a privacy-suppressed release row (`SUPPRESSED_PRIMARY_K_ANONYMITY`,
|
|
18289
|
+
* `SUPPRESSED_SECONDARY_COMPLEMENTARY`, or legacy defensive `'SUPPRESSED'`).
|
|
18290
|
+
*/
|
|
18291
|
+
function isPraxisSuppressionStatusSuppressed(value) {
|
|
18292
|
+
const token = toUpperEnumToken(value);
|
|
18293
|
+
return (token === 'SUPPRESSED_PRIMARY_K_ANONYMITY' ||
|
|
18294
|
+
token === 'SUPPRESSED_SECONDARY_COMPLEMENTARY' ||
|
|
18295
|
+
token === 'SUPPRESSED');
|
|
18296
|
+
}
|
|
18297
|
+
function isPraxisIntelligenceJobStatus(value) {
|
|
18298
|
+
return typeof value === 'string' && JOB_STATUS_SET.has(value);
|
|
18299
|
+
}
|
|
18300
|
+
function isPraxisIntelligenceJobTerminal(status) {
|
|
18301
|
+
const token = toUpperEnumToken(status);
|
|
18302
|
+
return isPraxisIntelligenceJobStatus(token) && TERMINAL_JOB_STATUS_SET.has(token);
|
|
18303
|
+
}
|
|
18304
|
+
function isPraxisIntelligenceErrorCode(value) {
|
|
18305
|
+
return typeof value === 'string' && ERROR_CODE_SET.has(value);
|
|
18306
|
+
}
|
|
18307
|
+
function normalizePraxisIntelligenceErrorCode(value, httpStatus) {
|
|
18308
|
+
const token = toUpperEnumToken(value);
|
|
18309
|
+
if (isPraxisIntelligenceErrorCode(token)) {
|
|
18310
|
+
return token;
|
|
18311
|
+
}
|
|
18312
|
+
return resolvePraxisIntelligenceErrorCodeFromStatus(httpStatus);
|
|
18313
|
+
}
|
|
18314
|
+
/**
|
|
18315
|
+
* Resolves the canonical fail-closed error code from an HTTP status, distinguishing missing
|
|
18316
|
+
* (`404`) and unauthorized (`403`) job lookups from engine outages (`503`).
|
|
18317
|
+
*/
|
|
18318
|
+
function resolvePraxisIntelligenceErrorCodeFromStatus(httpStatus) {
|
|
18319
|
+
switch (httpStatus) {
|
|
18320
|
+
case 400:
|
|
18321
|
+
case 422:
|
|
18322
|
+
return 'INVALID_REQUEST';
|
|
18323
|
+
case 401:
|
|
18324
|
+
return 'INTERNAL_AUTH_FAILED';
|
|
18325
|
+
case 403:
|
|
18326
|
+
return 'JOB_ACCESS_DENIED';
|
|
18327
|
+
case 404:
|
|
18328
|
+
return 'JOB_NOT_FOUND';
|
|
18329
|
+
case 409:
|
|
18330
|
+
return 'DRIFT_CIRCUIT_OPEN';
|
|
18331
|
+
case 413:
|
|
18332
|
+
return 'PAYLOAD_TOO_LARGE';
|
|
18333
|
+
case 504:
|
|
18334
|
+
return 'JOB_TIMEOUT';
|
|
18335
|
+
default:
|
|
18336
|
+
return 'INTELLIGENCE_ENGINE_UNAVAILABLE';
|
|
18337
|
+
}
|
|
18338
|
+
}
|
|
18339
|
+
function parseProblemPayloadCandidate(payload) {
|
|
18340
|
+
let candidate = payload;
|
|
18341
|
+
if (typeof candidate === 'string' && candidate.trim().startsWith('{')) {
|
|
18342
|
+
try {
|
|
18343
|
+
candidate = JSON.parse(candidate);
|
|
18344
|
+
}
|
|
18345
|
+
catch {
|
|
18346
|
+
candidate = null;
|
|
18347
|
+
}
|
|
18348
|
+
}
|
|
18349
|
+
return isPlainObject(candidate) ? candidate : null;
|
|
18350
|
+
}
|
|
18351
|
+
/**
|
|
18352
|
+
* Extracts an explicit canonical `PraxisIntelligenceErrorCode` from flat RFC 7807 `ProblemDetail`
|
|
18353
|
+
* or `RestApiResponse.failure` (`errors[0].errorCode` / `errors[0].code`) payloads without falling
|
|
18354
|
+
* back to HTTP status. Returns `null` when no explicit code is present.
|
|
18355
|
+
*/
|
|
18356
|
+
function extractExplicitPraxisIntelligenceErrorCode(payload) {
|
|
18357
|
+
const candidate = parseProblemPayloadCandidate(payload);
|
|
18358
|
+
if (!candidate) {
|
|
18359
|
+
return null;
|
|
18360
|
+
}
|
|
18361
|
+
const firstError = Array.isArray(candidate['errors']) && isPlainObject(candidate['errors'][0])
|
|
18362
|
+
? candidate['errors'][0]
|
|
18363
|
+
: null;
|
|
18364
|
+
const rawCandidates = [
|
|
18365
|
+
candidate['errorCode'],
|
|
18366
|
+
candidate['intelligenceErrorCode'],
|
|
18367
|
+
firstError?.['errorCode'],
|
|
18368
|
+
firstError?.['code'],
|
|
18369
|
+
];
|
|
18370
|
+
for (const raw of rawCandidates) {
|
|
18371
|
+
const token = toUpperEnumToken(raw);
|
|
18372
|
+
if (isPraxisIntelligenceErrorCode(token)) {
|
|
18373
|
+
return token;
|
|
18374
|
+
}
|
|
18375
|
+
}
|
|
18376
|
+
return null;
|
|
18377
|
+
}
|
|
18378
|
+
/**
|
|
18379
|
+
* Extracts and normalizes a fail-closed `PraxisIntelligenceErrorCode` from a parsed or JSON
|
|
18380
|
+
* RFC 7807 `ProblemDetail` / `RestApiResponse.failure` payload and HTTP status code.
|
|
18381
|
+
*/
|
|
18382
|
+
function resolvePraxisIntelligenceErrorCodeFromPayload(payload, httpStatus) {
|
|
18383
|
+
return (extractExplicitPraxisIntelligenceErrorCode(payload) ??
|
|
18384
|
+
resolvePraxisIntelligenceErrorCodeFromStatus(httpStatus));
|
|
18385
|
+
}
|
|
18386
|
+
/** Normalizes English/Portuguese Nigrini-Benford conformity enum tokens to canonical values. */
|
|
18387
|
+
function normalizePraxisNigriniConformity(value) {
|
|
18388
|
+
const token = toUpperEnumToken(value);
|
|
18389
|
+
switch (token) {
|
|
18390
|
+
case 'CLOSE_CONFORMITY':
|
|
18391
|
+
case 'CONFORMIDADE_ESTREITA':
|
|
18392
|
+
return 'CLOSE_CONFORMITY';
|
|
18393
|
+
case 'ACCEPTABLE_CONFORMITY':
|
|
18394
|
+
case 'CONFORMIDADE_ACEITAVEL':
|
|
18395
|
+
return 'ACCEPTABLE_CONFORMITY';
|
|
18396
|
+
case 'MARGINAL_CONFORMITY':
|
|
18397
|
+
case 'MARGINALLY_ACCEPTABLE':
|
|
18398
|
+
case 'CONFORMIDADE_MARGINAL':
|
|
18399
|
+
case 'MARGINALMENTE_ACEITAVEL':
|
|
18400
|
+
return 'MARGINAL_CONFORMITY';
|
|
18401
|
+
case 'NON_CONFORMITY':
|
|
18402
|
+
case 'NAO_CONFORMIDADE':
|
|
18403
|
+
return 'NON_CONFORMITY';
|
|
18404
|
+
default:
|
|
18405
|
+
return null;
|
|
18406
|
+
}
|
|
18407
|
+
}
|
|
18408
|
+
/** Canonical Material icon ligature shared across all surfaces rendering `PraxisEpistemicKind`. */
|
|
18409
|
+
function getPraxisEpistemicKindIcon(kind) {
|
|
18410
|
+
switch (kind) {
|
|
18411
|
+
case 'DETERMINISTIC_LAW':
|
|
18412
|
+
return 'gavel';
|
|
18413
|
+
case 'CALIBRATED_PROBABILITY':
|
|
18414
|
+
return 'query_stats';
|
|
18415
|
+
case 'STOCHASTIC_SIMULATION':
|
|
18416
|
+
return 'scatter_plot';
|
|
18417
|
+
case 'CAUSAL_HYPOTHESIS':
|
|
18418
|
+
return 'hub';
|
|
18419
|
+
case 'OPTIMIZATION_RESULT':
|
|
18420
|
+
return 'tune';
|
|
18421
|
+
}
|
|
18422
|
+
}
|
|
18423
|
+
/** Formats numeric epistemic telemetry respecting active locale (`Intl.NumberFormat`). */
|
|
18424
|
+
function formatPraxisEpistemicNumber(value, locale = 'pt-BR', options) {
|
|
18425
|
+
if (!Number.isFinite(value)) {
|
|
18426
|
+
return '';
|
|
18427
|
+
}
|
|
18428
|
+
try {
|
|
18429
|
+
return new Intl.NumberFormat(locale || 'pt-BR', options).format(value);
|
|
18430
|
+
}
|
|
18431
|
+
catch {
|
|
18432
|
+
const decimals = options?.maximumFractionDigits ?? options?.minimumFractionDigits;
|
|
18433
|
+
return typeof decimals === 'number' ? value.toFixed(decimals) : String(value);
|
|
18434
|
+
}
|
|
18435
|
+
}
|
|
18436
|
+
/** Formats BH FDR q-values cleanly per locale (`< 0,0001` in `pt-BR`, `< 0.0001` in `en-US`). */
|
|
18437
|
+
function formatPraxisQValueFdr(qValue, locale = 'pt-BR') {
|
|
18438
|
+
if (!Number.isFinite(qValue)) {
|
|
18439
|
+
return '';
|
|
18440
|
+
}
|
|
18441
|
+
const formatOpts = {
|
|
18442
|
+
minimumFractionDigits: 4,
|
|
18443
|
+
maximumFractionDigits: 4,
|
|
18444
|
+
};
|
|
18445
|
+
if (qValue > 0 && qValue < 0.0001) {
|
|
18446
|
+
return `< ${formatPraxisEpistemicNumber(0.0001, locale, formatOpts)}`;
|
|
18447
|
+
}
|
|
18448
|
+
return formatPraxisEpistemicNumber(qValue, locale, formatOpts);
|
|
18449
|
+
}
|
|
18450
|
+
/**
|
|
18451
|
+
* Strips line breaks and rejects raw stack traces / internal runtime details so UI
|
|
18452
|
+
* surfaces never leak server internals.
|
|
18453
|
+
*/
|
|
18454
|
+
function sanitizeIntelligenceDetailText(raw) {
|
|
18455
|
+
if (typeof raw !== 'string') {
|
|
18456
|
+
return null;
|
|
18457
|
+
}
|
|
18458
|
+
const singleLine = raw.replace(/[\r\n\t]+/g, ' ').replace(/\s{2,}/g, ' ').trim();
|
|
18459
|
+
if (!singleLine) {
|
|
18460
|
+
return null;
|
|
18461
|
+
}
|
|
18462
|
+
if (UNSAFE_DETAIL_PATTERNS.some((pattern) => pattern.test(singleLine))) {
|
|
18463
|
+
return null;
|
|
18464
|
+
}
|
|
18465
|
+
return singleLine.length > 240 ? `${singleLine.slice(0, 237)}...` : singleLine;
|
|
18466
|
+
}
|
|
18467
|
+
/**
|
|
18468
|
+
* Normalizes raw epistemic payloads (including wire `epistemicKind` aliases) into
|
|
18469
|
+
* a bounded `PraxisEpistemicMeta` while enforcing fail-closed significance invariants.
|
|
18470
|
+
*/
|
|
18471
|
+
function normalizePraxisEpistemicMeta(raw) {
|
|
18472
|
+
if (!isPlainObject(raw)) {
|
|
18473
|
+
return null;
|
|
18474
|
+
}
|
|
18475
|
+
const rawKind = raw['kind'] ?? raw['epistemicKind'];
|
|
18476
|
+
const rawAvailability = raw['availabilityState'];
|
|
18477
|
+
const rawSignificant = toOptionalBoolean(raw['statisticallySignificant']);
|
|
18478
|
+
const rawQValue = toFiniteNumber$1(raw['qValueFdr']);
|
|
18479
|
+
const rawSampleSize = toFiniteNumber$1(raw['sampleSize']);
|
|
18480
|
+
const rawSuppressed = toFiniteNumber$1(raw['suppressedCellCount']);
|
|
18481
|
+
const modelCardId = toCleanString(raw['modelCardId']);
|
|
18482
|
+
const provenanceHash = toCleanString(raw['provenanceHash']);
|
|
18483
|
+
const datasetKey = toCleanString(raw['datasetKey']);
|
|
18484
|
+
const methodologyNote = sanitizeIntelligenceDetailText(raw['methodologyNote']) ?? undefined;
|
|
18485
|
+
const rawNigriniMad = toFiniteNumber$1(raw['nigriniMad']);
|
|
18486
|
+
const rawConformity = toCleanString(raw['nigriniConformity']);
|
|
18487
|
+
const normalizedConformity = rawConformity ? normalizePraxisNigriniConformity(rawConformity) : null;
|
|
18488
|
+
const nigriniConformity = normalizedConformity ?? rawConformity;
|
|
18489
|
+
const hasAnySignal = toCleanString(rawKind) !== undefined ||
|
|
18490
|
+
toCleanString(rawAvailability) !== undefined ||
|
|
18491
|
+
rawSignificant !== undefined ||
|
|
18492
|
+
rawQValue !== undefined ||
|
|
18493
|
+
rawSampleSize !== undefined ||
|
|
18494
|
+
rawSuppressed !== undefined ||
|
|
18495
|
+
modelCardId !== undefined ||
|
|
18496
|
+
provenanceHash !== undefined ||
|
|
18497
|
+
datasetKey !== undefined ||
|
|
18498
|
+
methodologyNote !== undefined ||
|
|
18499
|
+
rawNigriniMad !== undefined ||
|
|
18500
|
+
nigriniConformity !== undefined;
|
|
18501
|
+
if (!hasAnySignal) {
|
|
18502
|
+
return null;
|
|
18503
|
+
}
|
|
18504
|
+
const availabilityState = toCleanString(rawAvailability) !== undefined
|
|
18505
|
+
? normalizePraxisEpistemicAvailabilityState(rawAvailability)
|
|
18506
|
+
: undefined;
|
|
18507
|
+
const kind = toCleanString(rawKind) !== undefined
|
|
18508
|
+
? normalizePraxisEpistemicKind(rawKind)
|
|
18509
|
+
: undefined;
|
|
18510
|
+
const effectiveAvailability = availabilityState ?? 'AVAILABLE';
|
|
18511
|
+
const isAvailable = effectiveAvailability === 'AVAILABLE';
|
|
18512
|
+
const qValueFdr = isAvailable && rawQValue !== undefined && rawQValue >= 0 && rawQValue <= 1
|
|
18513
|
+
? rawQValue
|
|
18514
|
+
: undefined;
|
|
18515
|
+
const sampleSize = rawSampleSize !== undefined && rawSampleSize >= 0 ? Math.trunc(rawSampleSize) : undefined;
|
|
18516
|
+
const suppressedCellCount = rawSuppressed !== undefined && rawSuppressed >= 0 ? Math.trunc(rawSuppressed) : undefined;
|
|
18517
|
+
const nigriniMad = rawNigriniMad !== undefined && rawNigriniMad >= 0 ? rawNigriniMad : undefined;
|
|
18518
|
+
const statisticallySignificant = rawSignificant !== undefined ? (isAvailable ? rawSignificant : false) : undefined;
|
|
18519
|
+
return {
|
|
18520
|
+
...(kind ? { kind } : {}),
|
|
18521
|
+
...(availabilityState ? { availabilityState } : {}),
|
|
18522
|
+
...(statisticallySignificant !== undefined ? { statisticallySignificant } : {}),
|
|
18523
|
+
...(qValueFdr !== undefined ? { qValueFdr } : {}),
|
|
18524
|
+
...(sampleSize !== undefined ? { sampleSize } : {}),
|
|
18525
|
+
...(suppressedCellCount !== undefined ? { suppressedCellCount } : {}),
|
|
18526
|
+
...(modelCardId ? { modelCardId } : {}),
|
|
18527
|
+
...(provenanceHash ? { provenanceHash } : {}),
|
|
18528
|
+
...(datasetKey ? { datasetKey } : {}),
|
|
18529
|
+
...(methodologyNote ? { methodologyNote } : {}),
|
|
18530
|
+
...(nigriniMad !== undefined ? { nigriniMad } : {}),
|
|
18531
|
+
...(nigriniConformity ? { nigriniConformity } : {}),
|
|
18532
|
+
};
|
|
18533
|
+
}
|
|
18534
|
+
function formatTruncatedProvenanceHash(hash) {
|
|
18535
|
+
const clean = typeof hash === 'string' ? hash.trim() : '';
|
|
18536
|
+
if (!clean) {
|
|
18537
|
+
return '';
|
|
18538
|
+
}
|
|
18539
|
+
const hasPrefix = clean.toLowerCase().startsWith('sha256:');
|
|
18540
|
+
const body = hasPrefix ? clean.slice(7) : clean;
|
|
18541
|
+
if (body.length <= 14) {
|
|
18542
|
+
return clean;
|
|
18543
|
+
}
|
|
18544
|
+
const truncatedBody = `${body.slice(0, 8)}…${body.slice(-4)}`;
|
|
18545
|
+
return hasPrefix ? `sha256:${truncatedBody}` : truncatedBody;
|
|
18546
|
+
}
|
|
18547
|
+
const PRAXIS_ANALYTICS_EPISTEMIC_SYMBOL = Symbol.for('praxis.analytics.epistemicMetadata');
|
|
18548
|
+
/**
|
|
18549
|
+
* Extracts normalized epistemic metadata from a stats response payload — supporting both
|
|
18550
|
+
* direct `epistemicMeta` objects and live `InferenceResponse` / `AnomalyScanResponse`
|
|
18551
|
+
* contracts (`provenance`, `modelCard`, `summary`, `results`, `findings`).
|
|
18552
|
+
*/
|
|
18553
|
+
function extractAnalyticsEpistemicMetadata(source) {
|
|
18554
|
+
if (!isPlainObject(source)) {
|
|
18555
|
+
return null;
|
|
18556
|
+
}
|
|
18557
|
+
const directNested = isPlainObject(source['epistemicMeta'])
|
|
18558
|
+
? normalizePraxisEpistemicMeta(source['epistemicMeta'])
|
|
18559
|
+
: null;
|
|
18560
|
+
const provenance = isPlainObject(source['provenance']) ? source['provenance'] : undefined;
|
|
18561
|
+
const modelCard = isPlainObject(source['modelCard']) ? source['modelCard'] : undefined;
|
|
18562
|
+
const summary = isPlainObject(source['summary']) ? source['summary'] : undefined;
|
|
18563
|
+
const results = Array.isArray(source['results']) ? source['results'].filter(isPlainObject) : undefined;
|
|
18564
|
+
const findings = Array.isArray(source['findings']) ? source['findings'].filter(isPlainObject) : undefined;
|
|
18565
|
+
const hasDirectEpistemicFields = source['kind'] !== undefined ||
|
|
18566
|
+
source['epistemicKind'] !== undefined ||
|
|
18567
|
+
source['availabilityState'] !== undefined ||
|
|
18568
|
+
source['qValueFdr'] !== undefined ||
|
|
18569
|
+
source['modelCardId'] !== undefined ||
|
|
18570
|
+
source['provenanceHash'] !== undefined ||
|
|
18571
|
+
source['nigriniMad'] !== undefined ||
|
|
18572
|
+
source['nigriniConformity'] !== undefined;
|
|
18573
|
+
if (!directNested && !provenance && !modelCard && !results && !findings && !hasDirectEpistemicFields) {
|
|
18574
|
+
return null;
|
|
18575
|
+
}
|
|
18576
|
+
const directFlat = hasDirectEpistemicFields ? normalizePraxisEpistemicMeta(source) : null;
|
|
18577
|
+
const items = results ?? findings ?? [];
|
|
18578
|
+
const suppressedItemsCount = items.filter((item) => isPraxisSuppressionStatusSuppressed(item['suppressionStatus'])).length;
|
|
18579
|
+
const visibleItems = items.filter((item) => !isPraxisSuppressionStatusSuppressed(item['suppressionStatus']));
|
|
18580
|
+
const kind = provenance?.['epistemicKind'] ??
|
|
18581
|
+
provenance?.['kind'] ??
|
|
18582
|
+
modelCard?.['epistemicKind'] ??
|
|
18583
|
+
directNested?.kind ??
|
|
18584
|
+
directFlat?.kind;
|
|
18585
|
+
const sampleSize = toFiniteNumber$1(provenance?.['sampleSize']) ??
|
|
18586
|
+
toFiniteNumber$1(summary?.['rowsScanned']) ??
|
|
18587
|
+
directNested?.sampleSize ??
|
|
18588
|
+
directFlat?.sampleSize;
|
|
18589
|
+
const suppressionCandidates = [
|
|
18590
|
+
toFiniteNumber$1(provenance?.['suppressedCellCount']),
|
|
18591
|
+
toFiniteNumber$1(summary?.['suppressedCells']),
|
|
18592
|
+
suppressedItemsCount > 0 ? suppressedItemsCount : undefined,
|
|
18593
|
+
directNested?.suppressedCellCount,
|
|
18594
|
+
directFlat?.suppressedCellCount,
|
|
18595
|
+
].filter((value) => typeof value === 'number' && Number.isFinite(value) && value >= 0);
|
|
18596
|
+
const suppressedCellCount = suppressionCandidates.length > 0
|
|
18597
|
+
? Math.max(...suppressionCandidates.map((value) => Math.trunc(value)))
|
|
18598
|
+
: undefined;
|
|
18599
|
+
const minimumSampleSize = toFiniteNumber$1(modelCard?.['minimumSampleSize']);
|
|
18600
|
+
const explicitAvailability = toCleanString(provenance?.['availabilityState'] ?? source['availabilityState']) ??
|
|
18601
|
+
directNested?.availabilityState ??
|
|
18602
|
+
directFlat?.availabilityState;
|
|
18603
|
+
let resolvedAvailability = explicitAvailability
|
|
18604
|
+
? normalizePraxisEpistemicAvailabilityState(explicitAvailability)
|
|
18605
|
+
: undefined;
|
|
18606
|
+
if (!resolvedAvailability && (provenance || modelCard || results || findings || summary)) {
|
|
18607
|
+
const allSuppressed = visibleItems.length === 0 &&
|
|
18608
|
+
((items.length > 0 && suppressedItemsCount > 0) ||
|
|
18609
|
+
((suppressedCellCount ?? 0) > 0 &&
|
|
18610
|
+
(items.length === 0 || suppressedItemsCount === items.length)));
|
|
18611
|
+
const insufficientSample = visibleItems.length === 0 &&
|
|
18612
|
+
(sampleSize === 0 ||
|
|
18613
|
+
(minimumSampleSize !== undefined && sampleSize != null && sampleSize < minimumSampleSize));
|
|
18614
|
+
if (allSuppressed) {
|
|
18615
|
+
resolvedAvailability = 'K_ANONYMITY_SUPPRESSED';
|
|
18616
|
+
}
|
|
18617
|
+
else if (insufficientSample) {
|
|
18618
|
+
resolvedAvailability = 'INSUFFICIENT_SAMPLE';
|
|
18619
|
+
}
|
|
18620
|
+
else {
|
|
18621
|
+
resolvedAvailability = 'AVAILABLE';
|
|
18622
|
+
}
|
|
18623
|
+
}
|
|
18624
|
+
const qValues = visibleItems
|
|
18625
|
+
.map((item) => toFiniteNumber$1(item['qValueFdr']))
|
|
18626
|
+
.filter((value) => value !== undefined && value >= 0 && value <= 1);
|
|
18627
|
+
const qValueFdr = qValues.length > 0
|
|
18628
|
+
? Math.min(...qValues)
|
|
18629
|
+
: (directNested?.qValueFdr ?? directFlat?.qValueFdr);
|
|
18630
|
+
const hasExplicitSig = visibleItems.some((item) => typeof item['statisticallySignificant'] === 'boolean');
|
|
18631
|
+
let rawStatisticallySignificant;
|
|
18632
|
+
if (hasExplicitSig) {
|
|
18633
|
+
rawStatisticallySignificant = visibleItems.some((item) => item['statisticallySignificant'] === true);
|
|
18634
|
+
}
|
|
18635
|
+
else if (findings !== undefined) {
|
|
18636
|
+
if (visibleItems.length === 0) {
|
|
18637
|
+
rawStatisticallySignificant =
|
|
18638
|
+
resolvedAvailability === 'AVAILABLE'
|
|
18639
|
+
? false
|
|
18640
|
+
: (directNested?.statisticallySignificant ?? directFlat?.statisticallySignificant);
|
|
18641
|
+
}
|
|
18642
|
+
else {
|
|
18643
|
+
rawStatisticallySignificant = visibleItems.some((item) => {
|
|
18644
|
+
const q = toFiniteNumber$1(item['qValueFdr']);
|
|
18645
|
+
if (q !== undefined && q >= 0 && q <= 1) {
|
|
18646
|
+
return q <= 0.05;
|
|
18647
|
+
}
|
|
18648
|
+
const severity = toUpperEnumToken(item['severity']);
|
|
18649
|
+
return severity === 'CRITICAL' || severity === 'WARNING';
|
|
18650
|
+
});
|
|
18651
|
+
}
|
|
18652
|
+
}
|
|
18653
|
+
else if (qValues.length > 0) {
|
|
18654
|
+
rawStatisticallySignificant = qValues.some((q) => q <= 0.05);
|
|
18655
|
+
}
|
|
18656
|
+
else if (results !== undefined && visibleItems.length === 0 && resolvedAvailability === 'AVAILABLE') {
|
|
18657
|
+
rawStatisticallySignificant = false;
|
|
18658
|
+
}
|
|
18659
|
+
else {
|
|
18660
|
+
rawStatisticallySignificant =
|
|
18661
|
+
directNested?.statisticallySignificant ?? directFlat?.statisticallySignificant;
|
|
18662
|
+
}
|
|
18663
|
+
const statisticallySignificant = resolvedAvailability && resolvedAvailability !== 'AVAILABLE'
|
|
18664
|
+
? false
|
|
18665
|
+
: rawStatisticallySignificant;
|
|
18666
|
+
const modelCardId = toCleanString(provenance?.['modelCardId']) ??
|
|
18667
|
+
toCleanString(modelCard?.['modelCardId']) ??
|
|
18668
|
+
directNested?.modelCardId ??
|
|
18669
|
+
directFlat?.modelCardId;
|
|
18670
|
+
const provenanceHash = toCleanString(provenance?.['dataSnapshotSha256']) ??
|
|
18671
|
+
toCleanString(provenance?.['assumptionsSha256']) ??
|
|
18672
|
+
toCleanString(provenance?.['dependencyLockSha256']) ??
|
|
18673
|
+
directNested?.provenanceHash ??
|
|
18674
|
+
directFlat?.provenanceHash;
|
|
18675
|
+
const datasetKey = toCleanString(provenance?.['datasetKey']) ??
|
|
18676
|
+
directNested?.datasetKey ??
|
|
18677
|
+
directFlat?.datasetKey;
|
|
18678
|
+
const methodologyNote = toCleanString(modelCard?.['title']) ??
|
|
18679
|
+
toCleanString(modelCard?.['intendedUse']) ??
|
|
18680
|
+
directNested?.methodologyNote ??
|
|
18681
|
+
directFlat?.methodologyNote;
|
|
18682
|
+
const nigriniMad = toFiniteNumber$1(summary?.['nigriniMad'] ?? source['nigriniMad']) ??
|
|
18683
|
+
directNested?.nigriniMad ??
|
|
18684
|
+
directFlat?.nigriniMad;
|
|
18685
|
+
const nigriniConformity = toCleanString(summary?.['nigriniConformity'] ?? source['nigriniConformity']) ??
|
|
18686
|
+
directNested?.nigriniConformity ??
|
|
18687
|
+
directFlat?.nigriniConformity;
|
|
18688
|
+
return normalizePraxisEpistemicMeta({
|
|
18689
|
+
...(kind !== undefined ? { kind } : {}),
|
|
18690
|
+
...(resolvedAvailability !== undefined ? { availabilityState: resolvedAvailability } : {}),
|
|
18691
|
+
...(statisticallySignificant !== undefined ? { statisticallySignificant } : {}),
|
|
18692
|
+
...(qValueFdr !== undefined ? { qValueFdr } : {}),
|
|
18693
|
+
...(sampleSize !== undefined ? { sampleSize } : {}),
|
|
18694
|
+
...(suppressedCellCount !== undefined ? { suppressedCellCount } : {}),
|
|
18695
|
+
...(modelCardId !== undefined ? { modelCardId } : {}),
|
|
18696
|
+
...(provenanceHash !== undefined ? { provenanceHash } : {}),
|
|
18697
|
+
...(datasetKey !== undefined ? { datasetKey } : {}),
|
|
18698
|
+
...(methodologyNote !== undefined ? { methodologyNote } : {}),
|
|
18699
|
+
...(nigriniMad !== undefined ? { nigriniMad } : {}),
|
|
18700
|
+
...(nigriniConformity !== undefined ? { nigriniConformity } : {}),
|
|
18701
|
+
});
|
|
18702
|
+
}
|
|
18703
|
+
/** Attaches normalized epistemic metadata non-enumerably to projected chart/table rows. */
|
|
18704
|
+
function attachAnalyticsEpistemicMetadata(rows, source) {
|
|
18705
|
+
const metadata = normalizePraxisEpistemicMeta(source);
|
|
18706
|
+
if (!metadata || !Array.isArray(rows)) {
|
|
18707
|
+
return rows;
|
|
18708
|
+
}
|
|
18709
|
+
Object.defineProperty(rows, PRAXIS_ANALYTICS_EPISTEMIC_SYMBOL, {
|
|
18710
|
+
value: metadata,
|
|
18711
|
+
enumerable: false,
|
|
18712
|
+
configurable: true,
|
|
18713
|
+
});
|
|
18714
|
+
return rows;
|
|
18715
|
+
}
|
|
18716
|
+
/** Reads epistemic metadata previously attached to rows or directly present on a response envelope. */
|
|
18717
|
+
function readAnalyticsEpistemicMetadata(rowsOrEnvelope) {
|
|
18718
|
+
if (!rowsOrEnvelope || typeof rowsOrEnvelope !== 'object') {
|
|
18719
|
+
return null;
|
|
18720
|
+
}
|
|
18721
|
+
const attached = rowsOrEnvelope[PRAXIS_ANALYTICS_EPISTEMIC_SYMBOL];
|
|
18722
|
+
if (attached && typeof attached === 'object') {
|
|
18723
|
+
return attached;
|
|
18724
|
+
}
|
|
18725
|
+
return extractAnalyticsEpistemicMetadata(rowsOrEnvelope);
|
|
18726
|
+
}
|
|
18727
|
+
/**
|
|
18728
|
+
* Derives a fail-closed `PraxisEpistemicMeta` from an HTTP or ProblemDetail execution error so
|
|
18729
|
+
* analytical widgets never show misleading `AVAILABLE` badges after a backend failure.
|
|
18730
|
+
*/
|
|
18731
|
+
function deriveFailClosedEpistemicMetaFromError(error, fallbackKind = 'CALIBRATED_PROBABILITY') {
|
|
18732
|
+
const record = isPlainObject(error)
|
|
18733
|
+
? error
|
|
18734
|
+
: error instanceof Error
|
|
18735
|
+
? error
|
|
18736
|
+
: {};
|
|
18737
|
+
const status = toFiniteNumber$1(record['httpStatus'] ?? record['status']);
|
|
18738
|
+
const explicitCode = extractExplicitPraxisIntelligenceErrorCode(record) ??
|
|
18739
|
+
extractExplicitPraxisIntelligenceErrorCode(record['error']);
|
|
18740
|
+
const errorCode = explicitCode ?? resolvePraxisIntelligenceErrorCodeFromStatus(status);
|
|
18741
|
+
let availabilityState = 'ENGINE_UNAVAILABLE';
|
|
18742
|
+
switch (errorCode) {
|
|
18743
|
+
case 'INSUFFICIENT_SAMPLE_SIZE':
|
|
18744
|
+
availabilityState = 'INSUFFICIENT_SAMPLE';
|
|
18745
|
+
break;
|
|
18746
|
+
case 'K_ANONYMITY_SUPPRESSED':
|
|
18747
|
+
availabilityState = 'K_ANONYMITY_SUPPRESSED';
|
|
18748
|
+
break;
|
|
18749
|
+
case 'DRIFT_CIRCUIT_OPEN':
|
|
18750
|
+
case 'NON_CONVERGENT_OPTIMIZER':
|
|
18751
|
+
case 'SINGULAR_MATRIX':
|
|
18752
|
+
availabilityState = 'DEGRADED';
|
|
18753
|
+
break;
|
|
18754
|
+
default:
|
|
18755
|
+
availabilityState = 'ENGINE_UNAVAILABLE';
|
|
18756
|
+
break;
|
|
18757
|
+
}
|
|
18758
|
+
return {
|
|
18759
|
+
kind: fallbackKind,
|
|
18760
|
+
availabilityState,
|
|
18761
|
+
statisticallySignificant: false,
|
|
18762
|
+
};
|
|
18763
|
+
}
|
|
18764
|
+
|
|
17863
18765
|
const PRAXIS_CONTEXT_DIMENSIONS = [
|
|
17864
18766
|
'organization',
|
|
17865
18767
|
'company_group',
|
|
@@ -18069,6 +18971,10 @@ const SUPPORTED_STATS_OPERATIONS = new Set([
|
|
|
18069
18971
|
'timeseries',
|
|
18070
18972
|
'distribution',
|
|
18071
18973
|
'comparison',
|
|
18974
|
+
'inference',
|
|
18975
|
+
'anomalies',
|
|
18976
|
+
'simulation',
|
|
18977
|
+
'counterfactual',
|
|
18072
18978
|
'verified-recipe',
|
|
18073
18979
|
]);
|
|
18074
18980
|
/**
|
|
@@ -18302,7 +19208,7 @@ class PraxisStatsExecutionService {
|
|
|
18302
19208
|
});
|
|
18303
19209
|
normalized = normalized
|
|
18304
19210
|
.replace(/\/stats\/recipes\/[^/]+$/i, '')
|
|
18305
|
-
.replace(/\/stats\/(?:group-by|timeseries|distribution|comparison)$/i, '')
|
|
19211
|
+
.replace(/\/stats\/(?:group-by|timeseries|distribution|comparison|inference|anomalies|simulation|counterfactual)$/i, '')
|
|
18306
19212
|
.replace(/\/stats$/i, '')
|
|
18307
19213
|
.replace(/^\/+|\/+$/g, '');
|
|
18308
19214
|
return normalized;
|
|
@@ -18517,14 +19423,21 @@ class PraxisStatsExecutionService {
|
|
|
18517
19423
|
const suppression = extractAnalyticsSuppressionMetadata(payloadData) ??
|
|
18518
19424
|
extractAnalyticsSuppressionMetadata(unwrapped) ??
|
|
18519
19425
|
extractAnalyticsSuppressionMetadata(rawObj);
|
|
19426
|
+
const epistemicMeta = extractAnalyticsEpistemicMetadata(payloadData) ??
|
|
19427
|
+
extractAnalyticsEpistemicMetadata(unwrapped) ??
|
|
19428
|
+
extractAnalyticsEpistemicMetadata(rawObj);
|
|
18520
19429
|
const provenance = this.buildProvenance(rawProvenance, request, normalizedResourcePath);
|
|
19430
|
+
const suppressed = suppression?.suppressed === true || epistemicMeta?.availabilityState === 'K_ANONYMITY_SUPPRESSED';
|
|
19431
|
+
const suppressedBucketCount = typeof suppression?.suppressedBucketCount === 'number'
|
|
19432
|
+
? suppression.suppressedBucketCount
|
|
19433
|
+
: typeof epistemicMeta?.suppressedCellCount === 'number'
|
|
19434
|
+
? epistemicMeta.suppressedCellCount
|
|
19435
|
+
: null;
|
|
18521
19436
|
return {
|
|
18522
19437
|
data: (payloadData ?? null),
|
|
18523
19438
|
status: 'ok',
|
|
18524
|
-
suppressed
|
|
18525
|
-
suppressedBucketCount
|
|
18526
|
-
? suppression.suppressedBucketCount
|
|
18527
|
-
: null,
|
|
19439
|
+
suppressed,
|
|
19440
|
+
suppressedBucketCount,
|
|
18528
19441
|
minBucketCount: typeof suppression?.minBucketCount === 'number' ? suppression.minBucketCount : null,
|
|
18529
19442
|
populationTotalCount: typeof suppression?.populationTotalCount === 'number'
|
|
18530
19443
|
? suppression.populationTotalCount
|
|
@@ -18535,6 +19448,7 @@ class PraxisStatsExecutionService {
|
|
|
18535
19448
|
truncated: suppression?.truncated === true,
|
|
18536
19449
|
fetchedAt: new Date().toISOString(),
|
|
18537
19450
|
...(provenance ? { provenance } : {}),
|
|
19451
|
+
...(epistemicMeta ? { epistemicMeta } : {}),
|
|
18538
19452
|
};
|
|
18539
19453
|
}
|
|
18540
19454
|
toErrorEnvelope(error, request, normalizedResourcePath) {
|
|
@@ -30959,7 +31873,7 @@ function handlePraxisLoadingRequest(req, execute, orchestrator, renderer) {
|
|
|
30959
31873
|
return execute(req);
|
|
30960
31874
|
}
|
|
30961
31875
|
const ctx = req.context.get(PRAXIS_LOADING_CTX);
|
|
30962
|
-
if (!ctx)
|
|
31876
|
+
if (!ctx || ctx.silent)
|
|
30963
31877
|
return execute(req);
|
|
30964
31878
|
const interceptedReq = req.clone({
|
|
30965
31879
|
context: req.context.set(PRAXIS_LOADING_INTERCEPTED, true),
|
|
@@ -32086,6 +33000,141 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
32086
33000
|
args: [{ providedIn: 'root' }]
|
|
32087
33001
|
}] });
|
|
32088
33002
|
|
|
33003
|
+
function isPlainSchemaRecord(value) {
|
|
33004
|
+
return Boolean(value) && typeof value === 'object' && !Array.isArray(value);
|
|
33005
|
+
}
|
|
33006
|
+
function readSchemaProperty(schema, propertyName) {
|
|
33007
|
+
if (!isPlainSchemaRecord(schema)) {
|
|
33008
|
+
return null;
|
|
33009
|
+
}
|
|
33010
|
+
const directProps = schema['properties'];
|
|
33011
|
+
if (isPlainSchemaRecord(directProps) && Object.prototype.hasOwnProperty.call(directProps, propertyName)) {
|
|
33012
|
+
return directProps[propertyName];
|
|
33013
|
+
}
|
|
33014
|
+
for (const compositeKey of ['allOf', 'oneOf', 'anyOf']) {
|
|
33015
|
+
const branches = schema[compositeKey];
|
|
33016
|
+
if (!Array.isArray(branches)) {
|
|
33017
|
+
continue;
|
|
33018
|
+
}
|
|
33019
|
+
for (const branch of branches) {
|
|
33020
|
+
const resolved = readSchemaProperty(branch, propertyName);
|
|
33021
|
+
if (resolved != null) {
|
|
33022
|
+
return resolved;
|
|
33023
|
+
}
|
|
33024
|
+
}
|
|
33025
|
+
}
|
|
33026
|
+
return null;
|
|
33027
|
+
}
|
|
33028
|
+
function readSchemaItems(schema) {
|
|
33029
|
+
if (!isPlainSchemaRecord(schema)) {
|
|
33030
|
+
return null;
|
|
33031
|
+
}
|
|
33032
|
+
const directItems = schema['items'];
|
|
33033
|
+
if (Array.isArray(directItems)) {
|
|
33034
|
+
return directItems[0] ?? null;
|
|
33035
|
+
}
|
|
33036
|
+
if (isPlainSchemaRecord(directItems)) {
|
|
33037
|
+
return directItems;
|
|
33038
|
+
}
|
|
33039
|
+
for (const compositeKey of ['allOf', 'oneOf', 'anyOf']) {
|
|
33040
|
+
const branches = schema[compositeKey];
|
|
33041
|
+
if (!Array.isArray(branches)) {
|
|
33042
|
+
continue;
|
|
33043
|
+
}
|
|
33044
|
+
for (const branch of branches) {
|
|
33045
|
+
const resolved = readSchemaItems(branch);
|
|
33046
|
+
if (resolved != null) {
|
|
33047
|
+
return resolved;
|
|
33048
|
+
}
|
|
33049
|
+
}
|
|
33050
|
+
}
|
|
33051
|
+
return null;
|
|
33052
|
+
}
|
|
33053
|
+
function resolveSchemaTypeKind(schema) {
|
|
33054
|
+
if (!isPlainSchemaRecord(schema)) {
|
|
33055
|
+
return null;
|
|
33056
|
+
}
|
|
33057
|
+
const rawType = schema['type'];
|
|
33058
|
+
const types = Array.isArray(rawType)
|
|
33059
|
+
? rawType.filter((item) => typeof item === 'string')
|
|
33060
|
+
: typeof rawType === 'string'
|
|
33061
|
+
? [rawType]
|
|
33062
|
+
: [];
|
|
33063
|
+
const hasString = types.includes('string');
|
|
33064
|
+
const hasNumber = types.includes('integer') || types.includes('number');
|
|
33065
|
+
if (hasString && !hasNumber) {
|
|
33066
|
+
return 'string';
|
|
33067
|
+
}
|
|
33068
|
+
if (hasNumber && !hasString) {
|
|
33069
|
+
return 'integer';
|
|
33070
|
+
}
|
|
33071
|
+
for (const compositeKey of ['allOf', 'oneOf', 'anyOf']) {
|
|
33072
|
+
const branches = schema[compositeKey];
|
|
33073
|
+
if (!Array.isArray(branches)) {
|
|
33074
|
+
continue;
|
|
33075
|
+
}
|
|
33076
|
+
for (const branch of branches) {
|
|
33077
|
+
const branchKind = resolveSchemaTypeKind(branch);
|
|
33078
|
+
if (branchKind) {
|
|
33079
|
+
return branchKind;
|
|
33080
|
+
}
|
|
33081
|
+
}
|
|
33082
|
+
}
|
|
33083
|
+
return null;
|
|
33084
|
+
}
|
|
33085
|
+
function resolveBulkWireIdKindFromSchema(schema, mode) {
|
|
33086
|
+
if (!isPlainSchemaRecord(schema)) {
|
|
33087
|
+
return null;
|
|
33088
|
+
}
|
|
33089
|
+
const resolveSelectionTargetId = () => {
|
|
33090
|
+
const selectionSchema = readSchemaProperty(schema, 'selection');
|
|
33091
|
+
const targetsSchema = readSchemaProperty(selectionSchema, 'targets');
|
|
33092
|
+
const targetItemSchema = readSchemaItems(targetsSchema);
|
|
33093
|
+
return readSchemaProperty(targetItemSchema, 'id');
|
|
33094
|
+
};
|
|
33095
|
+
const resolvePerItemId = () => {
|
|
33096
|
+
const itemsSchema = readSchemaProperty(schema, 'items');
|
|
33097
|
+
const itemEntrySchema = readSchemaItems(itemsSchema);
|
|
33098
|
+
return readSchemaProperty(itemEntrySchema, 'id');
|
|
33099
|
+
};
|
|
33100
|
+
const candidates = mode === 'PER_ITEM_UPDATE'
|
|
33101
|
+
? [resolvePerItemId(), resolveSelectionTargetId()]
|
|
33102
|
+
: [resolveSelectionTargetId(), resolvePerItemId()];
|
|
33103
|
+
for (const candidate of candidates) {
|
|
33104
|
+
const kind = resolveSchemaTypeKind(candidate);
|
|
33105
|
+
if (kind) {
|
|
33106
|
+
return kind;
|
|
33107
|
+
}
|
|
33108
|
+
}
|
|
33109
|
+
return null;
|
|
33110
|
+
}
|
|
33111
|
+
function coerceBulkWireId(id, kind) {
|
|
33112
|
+
if (kind === 'string') {
|
|
33113
|
+
if (typeof id === 'number' && Number.isSafeInteger(id)) {
|
|
33114
|
+
return String(id);
|
|
33115
|
+
}
|
|
33116
|
+
return id;
|
|
33117
|
+
}
|
|
33118
|
+
if (kind === 'integer' && typeof id === 'string') {
|
|
33119
|
+
const trimmed = id.trim();
|
|
33120
|
+
if (/^-?(?:0|[1-9][0-9]*)$/.test(trimmed)) {
|
|
33121
|
+
const parsed = Number(trimmed);
|
|
33122
|
+
if (Number.isSafeInteger(parsed)) {
|
|
33123
|
+
return parsed;
|
|
33124
|
+
}
|
|
33125
|
+
}
|
|
33126
|
+
}
|
|
33127
|
+
return id;
|
|
33128
|
+
}
|
|
33129
|
+
function coerceBulkTargetsWireIds(targets, kind) {
|
|
33130
|
+
if (!kind) {
|
|
33131
|
+
return targets.map((target) => ({ ...target }));
|
|
33132
|
+
}
|
|
33133
|
+
return targets.map((target) => ({
|
|
33134
|
+
...target,
|
|
33135
|
+
id: coerceBulkWireId(target.id, kind),
|
|
33136
|
+
}));
|
|
33137
|
+
}
|
|
32089
33138
|
function generateBulkIdempotencyKey(prefix = 'praxis-bulk') {
|
|
32090
33139
|
const randomUuid = globalThis.crypto?.randomUUID?.bind(globalThis.crypto);
|
|
32091
33140
|
return randomUuid
|
|
@@ -32283,8 +33332,58 @@ class PraxisBulkClientService {
|
|
|
32283
33332
|
isTerminalStatus(status) {
|
|
32284
33333
|
return isBulkExecutionTerminal(status);
|
|
32285
33334
|
}
|
|
33335
|
+
/**
|
|
33336
|
+
* Hidrata o `expectedVersion` (ETag forte do recurso) para alvos `EXPLICIT` que
|
|
33337
|
+
* ainda nao carregam versao persistida (ex.: selecao por brush em graficos).
|
|
33338
|
+
*/
|
|
33339
|
+
resolveTargetVersions(resourcePath, targets, options, concurrency = 4) {
|
|
33340
|
+
if (!Array.isArray(targets) || targets.length === 0) {
|
|
33341
|
+
return of([]);
|
|
33342
|
+
}
|
|
33343
|
+
const basePath = normalizePraxisResourcePath(resourcePath, 'leading-slash').replace(/\/+$/, '');
|
|
33344
|
+
if (!basePath) {
|
|
33345
|
+
return throwError(() => new Error('A resourcePath is required to resolve strong ETags for bulk targets.'));
|
|
33346
|
+
}
|
|
33347
|
+
const limit = Math.max(1, Math.floor(concurrency || 4));
|
|
33348
|
+
const headers = this.buildHeaders(options);
|
|
33349
|
+
return from(targets.map((target, index) => ({ target, index }))).pipe(mergeMap(({ target, index }) => {
|
|
33350
|
+
const existing = typeof target.expectedVersion === 'string' ? target.expectedVersion.trim() : '';
|
|
33351
|
+
if (existing.length > 0) {
|
|
33352
|
+
return of({ index, target: { ...target, expectedVersion: existing } });
|
|
33353
|
+
}
|
|
33354
|
+
const itemPath = `${basePath}/${encodeURIComponent(String(target.id))}`;
|
|
33355
|
+
const url = this.resolveUrl(itemPath, options);
|
|
33356
|
+
return this.http.get(url, { observe: 'response', headers }).pipe(map((response) => {
|
|
33357
|
+
const etag = response.headers.get('ETag')?.trim() ?? '';
|
|
33358
|
+
if (!etag || !/^"[\x21\x23-\x7e\x80-\xff]*"$/u.test(etag)) {
|
|
33359
|
+
throw new Error(`Strong resource ETag required for bulk target ${String(target.id)}.`);
|
|
33360
|
+
}
|
|
33361
|
+
return { index, target: { ...target, expectedVersion: etag } };
|
|
33362
|
+
}));
|
|
33363
|
+
}, limit), toArray(), map((entries) => entries.sort((a, b) => a.index - b.index).map((entry) => entry.target)));
|
|
33364
|
+
}
|
|
33365
|
+
/**
|
|
33366
|
+
* Resolve a representacao canonica esperada pelo codec de identidade do contrato
|
|
33367
|
+
* de avaliacao (`string` vs `integer`) a partir do schema OpenAPI filtrado.
|
|
33368
|
+
*/
|
|
33369
|
+
resolveEvaluationWireIdKind(evaluationOperation, mode, options) {
|
|
33370
|
+
const rawUrl = String(evaluationOperation?.requestSchema?.url ?? '').trim();
|
|
33371
|
+
if (!rawUrl || typeof this.discovery?.getSchemaByUrl !== 'function') {
|
|
33372
|
+
return of(null);
|
|
33373
|
+
}
|
|
33374
|
+
let schemaUrl = rawUrl;
|
|
33375
|
+
if (schemaUrl.includes('/schemas/filtered') && !/[?&]includeInternalSchemas=true(?:&|$)/i.test(schemaUrl)) {
|
|
33376
|
+
if (/[?&]includeInternalSchemas=false(?:&|$)/i.test(schemaUrl)) {
|
|
33377
|
+
schemaUrl = schemaUrl.replace(/includeInternalSchemas=false/i, 'includeInternalSchemas=true');
|
|
33378
|
+
}
|
|
33379
|
+
else {
|
|
33380
|
+
schemaUrl = `${schemaUrl}${schemaUrl.includes('?') ? '&' : '?'}includeInternalSchemas=true`;
|
|
33381
|
+
}
|
|
33382
|
+
}
|
|
33383
|
+
return this.discovery.getSchemaByUrl(schemaUrl, options).pipe(map((schema) => resolveBulkWireIdKindFromSchema(schema, mode)), catchError(() => of(null)));
|
|
33384
|
+
}
|
|
32286
33385
|
resolveUrl(path, options) {
|
|
32287
|
-
return this.discovery.
|
|
33386
|
+
return this.discovery.resolveResourceHref(path, options);
|
|
32288
33387
|
}
|
|
32289
33388
|
interpolatePath(path, params) {
|
|
32290
33389
|
const hadProposalPlaceholder = path.includes('{proposalId}');
|
|
@@ -35591,10 +36690,19 @@ class AnalyticsPresentationResolver {
|
|
|
35591
36690
|
hintedKind === 'treemap' ||
|
|
35592
36691
|
hintedKind === 'radar' ||
|
|
35593
36692
|
hintedKind === 'heatmap' ||
|
|
35594
|
-
hintedKind === 'scatter'
|
|
36693
|
+
hintedKind === 'scatter' ||
|
|
36694
|
+
hintedKind === 'matrix-grid' ||
|
|
36695
|
+
hintedKind === 'range-comparison' ||
|
|
36696
|
+
hintedKind === 'beeswarm' ||
|
|
36697
|
+
hintedKind === 'parallel' ||
|
|
36698
|
+
hintedKind === 'chord') {
|
|
35595
36699
|
return true;
|
|
35596
36700
|
}
|
|
35597
|
-
if (projection.intent === 'correlation'
|
|
36701
|
+
if (projection.intent === 'correlation' ||
|
|
36702
|
+
projection.intent === 'matrix' ||
|
|
36703
|
+
projection.intent === 'flow' ||
|
|
36704
|
+
projection.intent === 'range' ||
|
|
36705
|
+
projection.intent === 'multivariate') {
|
|
35598
36706
|
return true;
|
|
35599
36707
|
}
|
|
35600
36708
|
if (projection.intent === 'distribution' && this.hasQuartileMetricBundle(projection)) {
|
|
@@ -45959,6 +47067,24 @@ function markerColorForEvent(eventType) {
|
|
|
45959
47067
|
return 'neutral';
|
|
45960
47068
|
}
|
|
45961
47069
|
|
|
47070
|
+
/**
|
|
47071
|
+
* Builds a non-blocking, silent `LoadingContext` so background polling (such as intelligence job
|
|
47072
|
+
* polling) satisfies `PRAXIS_LOADING_CTX` guards in host interceptors without flickering global
|
|
47073
|
+
* loading bars.
|
|
47074
|
+
*/
|
|
47075
|
+
function createSilentPraxisLoadingContext(componentType, componentId, phase = 'data') {
|
|
47076
|
+
return {
|
|
47077
|
+
scope: {
|
|
47078
|
+
componentType,
|
|
47079
|
+
componentId,
|
|
47080
|
+
},
|
|
47081
|
+
phase,
|
|
47082
|
+
blocking: false,
|
|
47083
|
+
priority: 'low',
|
|
47084
|
+
silent: true,
|
|
47085
|
+
};
|
|
47086
|
+
}
|
|
47087
|
+
|
|
45962
47088
|
const DEFAULT_FIELD_SELECTOR_CONTROL_TYPE_MAP = {
|
|
45963
47089
|
'pdx-text-input': FieldControlType.INPUT,
|
|
45964
47090
|
'pdx-email-input': FieldControlType.EMAIL_INPUT,
|
|
@@ -57102,6 +58228,7 @@ const WIDGET_SHELL_I18N_CONFIG = {
|
|
|
57102
58228
|
class WidgetShellComponent {
|
|
57103
58229
|
stickyAncestorHeight = signal(0, ...(ngDevMode ? [{ debugName: "stickyAncestorHeight" }] : /* istanbul ignore next */ []));
|
|
57104
58230
|
stickyAncestorObserver;
|
|
58231
|
+
stickyAncestorFrame;
|
|
57105
58232
|
stickyAncestorHeaders = [];
|
|
57106
58233
|
get stickyAncestorTop() {
|
|
57107
58234
|
const height = this.stickyAncestorHeight();
|
|
@@ -57130,14 +58257,33 @@ class WidgetShellComponent {
|
|
|
57130
58257
|
|| headers.some((header, index) => header !== this.stickyAncestorHeaders[index])) {
|
|
57131
58258
|
this.stickyAncestorObserver?.disconnect();
|
|
57132
58259
|
this.stickyAncestorObserver = undefined;
|
|
58260
|
+
if (this.stickyAncestorFrame !== undefined) {
|
|
58261
|
+
this.element.nativeElement.ownerDocument?.defaultView?.cancelAnimationFrame?.(this.stickyAncestorFrame);
|
|
58262
|
+
this.stickyAncestorFrame = undefined;
|
|
58263
|
+
}
|
|
57133
58264
|
this.stickyAncestorHeaders = headers;
|
|
57134
58265
|
if (headers.length && typeof ResizeObserver !== 'undefined') {
|
|
57135
|
-
this.stickyAncestorObserver = new ResizeObserver(() => this.
|
|
58266
|
+
this.stickyAncestorObserver = new ResizeObserver(() => this.scheduleMeasureStickyAncestors());
|
|
57136
58267
|
headers.forEach(header => this.stickyAncestorObserver.observe(header));
|
|
57137
58268
|
}
|
|
57138
58269
|
}
|
|
57139
58270
|
this.measureStickyAncestors();
|
|
57140
58271
|
}
|
|
58272
|
+
scheduleMeasureStickyAncestors() {
|
|
58273
|
+
if (this.destroyRef.destroyed)
|
|
58274
|
+
return;
|
|
58275
|
+
const view = this.element.nativeElement.ownerDocument?.defaultView;
|
|
58276
|
+
if (typeof view?.requestAnimationFrame !== 'function') {
|
|
58277
|
+
this.measureStickyAncestors();
|
|
58278
|
+
return;
|
|
58279
|
+
}
|
|
58280
|
+
if (this.stickyAncestorFrame !== undefined)
|
|
58281
|
+
return;
|
|
58282
|
+
this.stickyAncestorFrame = view.requestAnimationFrame(() => {
|
|
58283
|
+
this.stickyAncestorFrame = undefined;
|
|
58284
|
+
this.measureStickyAncestors();
|
|
58285
|
+
});
|
|
58286
|
+
}
|
|
57141
58287
|
measureStickyAncestors() {
|
|
57142
58288
|
if (this.destroyRef.destroyed)
|
|
57143
58289
|
return;
|
|
@@ -57193,6 +58339,7 @@ class WidgetShellComponent {
|
|
|
57193
58339
|
fullscreenState = signal(false, ...(ngDevMode ? [{ debugName: "fullscreenState" }] : /* istanbul ignore next */ []));
|
|
57194
58340
|
rootFontScale = signal(1, ...(ngDevMode ? [{ debugName: "rootFontScale" }] : /* istanbul ignore next */ []));
|
|
57195
58341
|
headerWidthObserver;
|
|
58342
|
+
headerWidthFrame;
|
|
57196
58343
|
activeDirectContributor;
|
|
57197
58344
|
pendingFocusRestore = null;
|
|
57198
58345
|
activeContributedActions = computed(() => {
|
|
@@ -57264,11 +58411,14 @@ class WidgetShellComponent {
|
|
|
57264
58411
|
this.compactHeader.set(initialCompact);
|
|
57265
58412
|
}
|
|
57266
58413
|
}
|
|
57267
|
-
|
|
57268
|
-
|
|
58414
|
+
let pendingWidth;
|
|
58415
|
+
const applyHeaderWidth = (rawWidth) => {
|
|
58416
|
+
if (this.destroyRef.destroyed)
|
|
58417
|
+
return;
|
|
57269
58418
|
this.syncRootFontScale();
|
|
57270
|
-
|
|
57271
|
-
|
|
58419
|
+
const resolvedWidth = rawWidth && rawWidth > 0 ? rawWidth : surface.getBoundingClientRect().width;
|
|
58420
|
+
if (resolvedWidth && resolvedWidth > 0) {
|
|
58421
|
+
const width = Math.round(resolvedWidth);
|
|
57272
58422
|
const compact = width < 448;
|
|
57273
58423
|
const widthChanged = this.headerWidth() !== width;
|
|
57274
58424
|
const compactChanged = this.compactHeader() !== compact;
|
|
@@ -57295,6 +58445,23 @@ class WidgetShellComponent {
|
|
|
57295
58445
|
this.changeDetector.markForCheck();
|
|
57296
58446
|
}
|
|
57297
58447
|
}
|
|
58448
|
+
};
|
|
58449
|
+
this.headerWidthObserver = new ResizeObserver(entries => {
|
|
58450
|
+
const rawWidth = entries.find(entry => entry.target === surface)?.contentRect.width;
|
|
58451
|
+
if (rawWidth !== undefined) {
|
|
58452
|
+
pendingWidth = rawWidth;
|
|
58453
|
+
}
|
|
58454
|
+
const view = this.element.nativeElement.ownerDocument?.defaultView;
|
|
58455
|
+
if (typeof view?.requestAnimationFrame !== 'function') {
|
|
58456
|
+
applyHeaderWidth(pendingWidth);
|
|
58457
|
+
return;
|
|
58458
|
+
}
|
|
58459
|
+
if (this.headerWidthFrame !== undefined)
|
|
58460
|
+
return;
|
|
58461
|
+
this.headerWidthFrame = view.requestAnimationFrame(() => {
|
|
58462
|
+
this.headerWidthFrame = undefined;
|
|
58463
|
+
applyHeaderWidth(pendingWidth);
|
|
58464
|
+
});
|
|
57298
58465
|
});
|
|
57299
58466
|
this.headerWidthObserver.observe(surface);
|
|
57300
58467
|
}
|
|
@@ -57411,7 +58578,16 @@ class WidgetShellComponent {
|
|
|
57411
58578
|
this.disconnectScrollGeometry();
|
|
57412
58579
|
this.stickyAncestorObserver?.disconnect();
|
|
57413
58580
|
this.stickyAncestorHeaders = [];
|
|
58581
|
+
const view = this.element.nativeElement.ownerDocument?.defaultView;
|
|
58582
|
+
if (this.stickyAncestorFrame !== undefined) {
|
|
58583
|
+
view?.cancelAnimationFrame?.(this.stickyAncestorFrame);
|
|
58584
|
+
this.stickyAncestorFrame = undefined;
|
|
58585
|
+
}
|
|
57414
58586
|
this.headerWidthObserver?.disconnect();
|
|
58587
|
+
if (this.headerWidthFrame !== undefined) {
|
|
58588
|
+
view?.cancelAnimationFrame?.(this.headerWidthFrame);
|
|
58589
|
+
this.headerWidthFrame = undefined;
|
|
58590
|
+
}
|
|
57415
58591
|
});
|
|
57416
58592
|
}
|
|
57417
58593
|
syncWindowOverlay() {
|
|
@@ -58841,7 +60017,7 @@ class WidgetShellComponent {
|
|
|
58841
60017
|
@if (expanded || fullscreen) {
|
|
58842
60018
|
<div class="pdx-shell-backdrop" (click)="closeOverlay()"></div>
|
|
58843
60019
|
}
|
|
58844
|
-
`, isInline: true, styles: [":host{display:block;height:100%;position:relative}:host:after{content:\"\";position:absolute;inset:0;border:1px dashed color-mix(in srgb,var(--md-sys-color-primary) 34%,transparent);border-radius:var(--pdx-widget-highlight-radius, 12px);opacity:var(--pdx-widget-highlight-active, 0);pointer-events:none;z-index:1;box-shadow:0 0 0 1px color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent),0 8px 20px color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent)}:host([data-interaction-highlight=\"gradient\"]):after{content:\"\";position:absolute;inset:0;padding:2px;border:0;box-shadow:none;border-radius:var(--pdx-widget-highlight-radius, 12px);background:linear-gradient(135deg,var(--md-sys-color-primary),var(--md-sys-color-tertiary),var(--md-sys-color-secondary));opacity:var(--pdx-widget-highlight-active, 0);pointer-events:none;z-index:1;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}:host(.pdx-widget-shell-overlay):after{display:none}@media(forced-colors:active){:host:after,:host([data-interaction-highlight=\"gradient\"]):after{box-shadow:none;background:none;mask:none;-webkit-mask:none;padding:0;border:2px solid Highlight}}:host(.pdx-widget-shell-collapsed){height:auto}.pdx-shell{--pdx-shell-card-border-width: initial;--pdx-shell-card-border-style: initial;--pdx-shell-header-border-width: initial;--pdx-shell-header-border-style: initial;--pdx-shell-card-filter: initial;--pdx-shell-card-fallback-bg: initial;box-sizing:border-box;position:relative;height:100%;display:flex;flex-direction:column}.pdx-shell .pdx-shell{--pdx-shell-card-backdrop-filter: none;--pdx-shell-theme-backdrop-filter: none}.pdx-shell.no-shell{background:transparent;border:none;border-radius:0;box-shadow:none}.pdx-shell.dashboard{background:var( --pdx-shell-card-bg, var( --pdx-dashboard-card-bg, var(--md-sys-color-surface-container-low) ) );border-width:var(--pdx-shell-card-border-width, 1px);border-style:var(--pdx-shell-card-border-style, solid);border-color:var( --pdx-shell-card-border, var( --pdx-dashboard-card-border, var(--md-sys-color-outline-variant) ) );border-radius:var(--pdx-shell-card-radius, 12px);box-shadow:var( --pdx-shell-card-shadow, 0 4px 12px rgba(15, 23, 42, .06) );-webkit-backdrop-filter:var( --pdx-shell-card-filter, var(--pdx-shell-card-backdrop-filter, var(--pdx-shell-theme-backdrop-filter, none)) );backdrop-filter:var( --pdx-shell-card-filter, var(--pdx-shell-card-backdrop-filter, var(--pdx-shell-theme-backdrop-filter, none)) );overflow:hidden}.pdx-shell.dashboard:not(.expanded):not(.fullscreen){contain:layout paint style;isolation:isolate}@media(forced-colors:active){.pdx-shell.dashboard,.pdx-shell.dashboard.pdx-shell--backdrop,.pdx-shell-backdrop{background:Canvas;color:CanvasText;border-color:ButtonBorder;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.pdx-shell.dashboard.pdx-shell--backdrop{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface))}}@media(prefers-reduced-transparency:reduce){.pdx-shell.dashboard{background:var( --pdx-shell-theme-fallback-bg, var( --pdx-shell-card-bg, var(--pdx-dashboard-card-bg, var(--md-sys-color-surface-container-low)) ) );-webkit-backdrop-filter:none;backdrop-filter:none}.pdx-shell.dashboard.pdx-shell--backdrop{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}}.pdx-shell.dashboard.expanded,.pdx-shell.dashboard.fullscreen{-webkit-backdrop-filter:none;backdrop-filter:none}.pdx-shell.dashboard.pdx-shell--backdrop.expanded,.pdx-shell.dashboard.pdx-shell--backdrop.fullscreen{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}.pdx-shell-header{flex-shrink:0;display:flex;flex-direction:column;gap:8px;padding:12px;border-bottom:var(--pdx-shell-header-border-width, 1px) var(--pdx-shell-header-border-style, solid) var(--pdx-shell-header-border, var(--md-sys-color-outline-variant));background:var( --pdx-shell-header-bg, var(--md-sys-color-surface-container) )}.pdx-shell-header-main{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;width:100%}.pdx-shell-header--drag-enabled{cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none}.pdx-shell-header--drag-enabled:active{cursor:grabbing}.pdx-shell-header--drag-enabled:focus-visible{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary) 72%,white 28%);outline-offset:-2px}.pdx-shell-authoring-drag{flex:0 0 auto;align-self:flex-start;margin:4px 6px 0;z-index:2;cursor:grab;touch-action:none}.pdx-shell-authoring-drag:active{cursor:grabbing}.pdx-shell-title{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 min(14rem,50%);max-width:100%;color:var(--pdx-shell-title-color, inherit)}.pdx-shell-title mat-icon{flex:0 0 auto;color:var(--pdx-shell-icon-color, currentColor)}.pdx-shell-text{min-width:0;flex:1}.pdx-shell-title-text{font-family:var(--pdx-shell-title-font, inherit);font-weight:var(--pdx-shell-title-weight, var(--mat-sys-title-medium-weight, 500));font-size:var(--pdx-shell-title-size, 13px);letter-spacing:var(--pdx-shell-title-tracking, normal);line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdx-shell-subtitle{font-size:var(--pdx-shell-subtitle-size, 11px);color:var( --pdx-shell-subtitle-color, var(--md-sys-color-on-surface-variant, currentColor) );white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdx-shell-actions,.pdx-shell-window-actions{display:flex;align-items:center;gap:4px;max-width:100%}.pdx-shell-actions{flex-wrap:wrap;margin-left:auto;min-width:0}.pdx-shell-actions button.praxis-icon-button:not(:disabled):not(.praxis-icon-button--pressed){color:var(--pdx-shell-icon-color, var(--md-sys-color-on-surface-variant))}.pdx-shell-actions>button{max-width:100%}.pdx-shell-window-actions{flex-wrap:nowrap;flex:0 0 auto;margin-left:auto}.pdx-shell-text{display:grid;gap:2px}.pdx-shell-title-text,.pdx-shell-subtitle{display:-webkit-box;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pdx-action-outlined{border:1px solid var(--md-sys-color-outline-variant);border-radius:999px;padding:0 10px;white-space:nowrap;flex:0 0 auto}.pdx-action-text{padding:0 8px;white-space:nowrap;flex:0 0 auto}.pdx-shell-action--pressed:not(.praxis-icon-button){color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary) 12%,transparent)}.pdx-action-label{font-size:12px;font-weight:500}.pdx-shell-tabs{width:100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-top:8px;border-top:1px solid color-mix(in srgb,var(--pdx-shell-header-border, var(--md-sys-color-outline-variant)) 55%,transparent)}.pdx-shell-tab{appearance:none;display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;border:1px solid var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant, rgba(148, 163, 184, .45)));background:transparent;color:var(--pdx-shell-subtitle-color, var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant)));font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;cursor:pointer;transition:background-color .14s ease,border-color .14s ease,color .14s ease}.pdx-shell-tab:focus-visible{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4)) 55%,transparent);outline-offset:2px}.pdx-shell-tab:hover:not(:disabled){border-color:var(--md-sys-color-primary, var(--mat-sys-primary));color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface))}.pdx-shell-tab--active{border-color:var(--md-sys-color-primary, var(--mat-sys-primary));background:color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary)) 12%,transparent);color:var(--md-sys-color-primary, var(--mat-sys-primary))}.pdx-shell-tab:disabled{opacity:.5;cursor:not-allowed}.pdx-shell-tab mat-icon{width:15px;height:15px;font-size:15px}.pdx-shell-tab__badge{font-size:11px;font-weight:500;opacity:.78}.pdx-shell.dashboard.pdx-shell--sticky-header{overflow:clip}.pdx-shell--sticky-header>.pdx-shell-header{position:sticky;top:var(--pdx-shell-sticky-header-offset, 0px);z-index:2;isolation:isolate;background:var(--md-sys-color-surface-container)}.pdx-shell--backdrop.pdx-shell--sticky-header>.pdx-shell-header{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface-container))}.pdx-shell--sticky-header>.pdx-shell-header:before{content:\"\";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--pdx-shell-header-bg, transparent)}.pdx-shell--sticky-header>.pdx-shell-body{isolation:isolate}.pdx-shell-body{flex:1;min-height:0;padding:var(--pdx-shell-body-padding, 12px);background:var(--pdx-shell-body-bg, transparent);color:var(--pdx-shell-body-color, inherit)}.pdx-shell.no-shell>.pdx-shell-body{padding:0}.pdx-shell-body.hidden{display:none}.pdx-shell.collapsed{height:auto}.pdx-shell.collapsed>.pdx-shell-header{border-bottom-color:transparent}.pdx-shell.body-fill>.pdx-shell-body,.pdx-shell.body-scroll>.pdx-shell-body,.pdx-shell.expanded>.pdx-shell-body,.pdx-shell.fullscreen>.pdx-shell-body{overflow:auto;display:flex;flex-direction:column;min-height:0}.pdx-shell.collapsed>.pdx-shell-body{display:none}.pdx-shell.body-fill>.pdx-shell-body{overflow:hidden}.pdx-shell.body-scroll>.pdx-shell-body{overflow:auto}.pdx-shell.body-scroll.pdx-shell--scroll-recovery{overflow:auto}.pdx-shell.body-scroll.pdx-shell--scroll-recovery>.pdx-shell-body{flex:0 0 auto;overflow:visible}.pdx-shell.body-fill>.pdx-shell-body>*,.pdx-shell.body-scroll>.pdx-shell-body>*,.pdx-shell.expanded>.pdx-shell-body>*,.pdx-shell.fullscreen>.pdx-shell-body>*{flex:1 1 auto;min-height:0;width:100%}.pdx-shell.expanded,.pdx-shell-overlay-surface.expanded{position:fixed;top:10vh;left:50%;width:min(920px,92vw);height:min(640px,82vh);transform:translate(-50%);z-index:var(--praxis-layer-widget-shell-expanded, 1290);box-shadow:var(--mat-elevation-level8)}.pdx-shell.fullscreen,.pdx-shell-overlay-surface.fullscreen{position:fixed;inset:0;width:auto;height:auto;transform:none;border-radius:0;z-index:var(--praxis-layer-widget-shell-fullscreen, 1291);box-shadow:var(--mat-elevation-level8)}.pdx-shell.expanded,.pdx-shell.fullscreen{background:var(--pdx-shell-overlay-bg, var(--md-sys-color-surface, var(--mat-sys-surface)));color:var(--md-sys-color-on-surface)}.pdx-shell.fullscreen>.pdx-shell-body{padding:var(--pdx-shell-fullscreen-body-padding, 24px)}.pdx-shell-overlay-surface{background:var(--md-sys-color-surface);border-radius:var(--pdx-dashboard-card-radius, 16px);pointer-events:none}.pdx-shell-backdrop{position:fixed;inset:0;z-index:var(--praxis-z-widget-shell, var(--praxis-layer-widget-shell-backdrop, 1280));background:#0000008c;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);contain:layout style;isolation:isolate}@media(prefers-reduced-transparency:reduce){.pdx-shell-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}}.pdx-shell-action-group--segmented{display:inline-flex;align-items:center;gap:2px;padding:2px;border:1px solid var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant, #c4c7c5));border-radius:10px;background:var(--md-sys-color-surface-container-low, var(--mat-sys-surface-container-low, #f3f5f8))}.pdx-shell-segmented-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:26px;padding:0 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant, #44474e));font:inherit;font-size:12px;font-weight:500;line-height:1;white-space:nowrap;cursor:pointer;transition:background-color .14s ease,color .14s ease,border-color .14s ease}.pdx-shell-action-group--icon-only .pdx-shell-segmented-btn{min-width:28px;width:28px;padding:0}.pdx-shell-segmented-btn mat-icon{width:15px;height:15px;font-size:15px;line-height:15px;flex-shrink:0}.pdx-shell-segmented-btn:hover:not(:disabled):not(.pdx-shell-segmented-btn--active){color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface, #1a1c1e));background:color-mix(in srgb,var(--md-sys-color-on-surface, var(--mat-sys-on-surface, #1a1c1e)) 6%,transparent)}.pdx-shell-segmented-btn--active{background:var(--md-sys-color-primary-container, var(--mat-sys-primary-container, #d7e3ff));color:var(--md-sys-color-on-primary-container, var(--mat-sys-on-primary-container, #001b3e));font-weight:600}.pdx-shell-segmented-btn:disabled{opacity:.5;cursor:not-allowed}.pdx-shell-segmented-btn:focus-visible{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4)) 55%,transparent);outline-offset:1px}.pdx-shell-menu-divider{height:1px;margin:4px 0;background:var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant, rgba(148, 163, 184, .32)))}.pdx-shell-menu-section-label{padding:6px 16px 4px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant, #64748b));-webkit-user-select:none;user-select:none}.pdx-shell-menu-item-row{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;width:100%}.pdx-shell-menu-check.mat-icon{width:16px;height:16px;font-size:16px;line-height:16px;margin-left:auto;margin-right:0;color:var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4))}.pdx-shell-menu-item--active{font-weight:600;color:var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4));background:color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4)) 8%,transparent)}@media(forced-colors:active){.pdx-shell-segmented-btn--active,.pdx-shell-menu-item--active,.pdx-shell-tab--active{forced-color-adjust:auto;border:1px solid Highlight;outline:2px solid Highlight;outline-offset:-2px}.pdx-shell-tab:focus-visible,.pdx-shell-segmented-btn:focus-visible,.pdx-shell-header--drag-enabled:focus-visible{outline:2px solid Highlight;outline-offset:2px}}@media(pointer:coarse){.pdx-shell-segmented-btn{min-height:36px;padding:0 10px}.pdx-shell-action-group--icon-only .pdx-shell-segmented-btn{min-width:36px;width:36px}}@media print{.pdx-shell-actions,.pdx-shell-window-actions{display:none!important}}\n"], dependencies: [{ kind: "component", type: WidgetShellAvatarComponent, selector: "praxis-widget-shell-avatar", inputs: ["avatar"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i4.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i4.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i4.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i6$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
60020
|
+
`, isInline: true, styles: [":host{display:block;width:100%;min-width:0;max-width:100%;height:100%;position:relative}:host:after{content:\"\";position:absolute;inset:0;border:1px dashed color-mix(in srgb,var(--md-sys-color-primary) 34%,transparent);border-radius:var(--pdx-widget-highlight-radius, 12px);opacity:var(--pdx-widget-highlight-active, 0);pointer-events:none;z-index:1;box-shadow:0 0 0 1px color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent),0 8px 20px color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent)}:host([data-interaction-highlight=\"gradient\"]):after{content:\"\";position:absolute;inset:0;padding:2px;border:0;box-shadow:none;border-radius:var(--pdx-widget-highlight-radius, 12px);background:linear-gradient(135deg,var(--md-sys-color-primary),var(--md-sys-color-tertiary),var(--md-sys-color-secondary));opacity:var(--pdx-widget-highlight-active, 0);pointer-events:none;z-index:1;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}:host(.pdx-widget-shell-overlay):after{display:none}@media(forced-colors:active){:host:after,:host([data-interaction-highlight=\"gradient\"]):after{box-shadow:none;background:none;mask:none;-webkit-mask:none;padding:0;border:2px solid Highlight}}:host(.pdx-widget-shell-collapsed){height:auto}.pdx-shell{--pdx-shell-card-border-width: initial;--pdx-shell-card-border-style: initial;--pdx-shell-header-border-width: initial;--pdx-shell-header-border-style: initial;--pdx-shell-card-filter: initial;--pdx-shell-card-fallback-bg: initial;box-sizing:border-box;position:relative;width:100%;min-width:0;max-width:100%;height:100%;display:flex;flex-direction:column}.pdx-shell .pdx-shell{--pdx-shell-card-backdrop-filter: none;--pdx-shell-theme-backdrop-filter: none}.pdx-shell.no-shell{background:transparent;border:none;border-radius:0;box-shadow:none}.pdx-shell.dashboard{background:var( --pdx-shell-card-bg, var( --pdx-dashboard-card-bg, var(--md-sys-color-surface-container-low) ) );border-width:var(--pdx-shell-card-border-width, 1px);border-style:var(--pdx-shell-card-border-style, solid);border-color:var( --pdx-shell-card-border, var( --pdx-dashboard-card-border, var(--md-sys-color-outline-variant) ) );border-radius:var(--pdx-shell-card-radius, 12px);box-shadow:var( --pdx-shell-card-shadow, 0 4px 12px rgba(15, 23, 42, .06) );-webkit-backdrop-filter:var( --pdx-shell-card-filter, var(--pdx-shell-card-backdrop-filter, var(--pdx-shell-theme-backdrop-filter, none)) );backdrop-filter:var( --pdx-shell-card-filter, var(--pdx-shell-card-backdrop-filter, var(--pdx-shell-theme-backdrop-filter, none)) );overflow:hidden}.pdx-shell.dashboard:not(.expanded):not(.fullscreen){contain:layout paint style;isolation:isolate}@media(forced-colors:active){.pdx-shell.dashboard,.pdx-shell.dashboard.pdx-shell--backdrop,.pdx-shell-backdrop{background:Canvas;color:CanvasText;border-color:ButtonBorder;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.pdx-shell.dashboard.pdx-shell--backdrop{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface))}}@media(prefers-reduced-transparency:reduce){.pdx-shell.dashboard{background:var( --pdx-shell-theme-fallback-bg, var( --pdx-shell-card-bg, var(--pdx-dashboard-card-bg, var(--md-sys-color-surface-container-low)) ) );-webkit-backdrop-filter:none;backdrop-filter:none}.pdx-shell.dashboard.pdx-shell--backdrop{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}}.pdx-shell.dashboard.expanded,.pdx-shell.dashboard.fullscreen{-webkit-backdrop-filter:none;backdrop-filter:none}.pdx-shell.dashboard.pdx-shell--backdrop.expanded,.pdx-shell.dashboard.pdx-shell--backdrop.fullscreen{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}.pdx-shell-header{flex-shrink:0;display:flex;flex-direction:column;gap:8px;padding:12px;border-bottom:var(--pdx-shell-header-border-width, 1px) var(--pdx-shell-header-border-style, solid) var(--pdx-shell-header-border, var(--md-sys-color-outline-variant));background:var( --pdx-shell-header-bg, var(--md-sys-color-surface-container) )}.pdx-shell-header-main{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;width:100%}.pdx-shell-header--drag-enabled{cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none}.pdx-shell-header--drag-enabled:active{cursor:grabbing}.pdx-shell-header--drag-enabled:focus-visible{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary) 72%,white 28%);outline-offset:-2px}.pdx-shell-authoring-drag{flex:0 0 auto;align-self:flex-start;margin:4px 6px 0;z-index:2;cursor:grab;touch-action:none}.pdx-shell-authoring-drag:active{cursor:grabbing}.pdx-shell-title{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 min(14rem,50%);max-width:100%;color:var(--pdx-shell-title-color, inherit)}.pdx-shell-title mat-icon{flex:0 0 auto;color:var(--pdx-shell-icon-color, currentColor)}.pdx-shell-text{min-width:0;flex:1}.pdx-shell-title-text{font-family:var(--pdx-shell-title-font, inherit);font-weight:var(--pdx-shell-title-weight, var(--mat-sys-title-medium-weight, 500));font-size:var(--pdx-shell-title-size, 13px);letter-spacing:var(--pdx-shell-title-tracking, normal);line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdx-shell-subtitle{font-size:var(--pdx-shell-subtitle-size, 11px);color:var( --pdx-shell-subtitle-color, var(--md-sys-color-on-surface-variant, currentColor) );white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdx-shell-actions,.pdx-shell-window-actions{display:flex;align-items:center;gap:4px;max-width:100%}.pdx-shell-actions{flex-wrap:wrap;margin-left:auto;min-width:0}.pdx-shell-actions button.praxis-icon-button:not(:disabled):not(.praxis-icon-button--pressed){color:var(--pdx-shell-icon-color, var(--md-sys-color-on-surface-variant))}.pdx-shell-actions>button{max-width:100%}.pdx-shell-window-actions{flex-wrap:nowrap;flex:0 0 auto;margin-left:auto}.pdx-shell-text{display:grid;gap:2px}.pdx-shell-title-text,.pdx-shell-subtitle{display:-webkit-box;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pdx-action-outlined{border:1px solid var(--md-sys-color-outline-variant);border-radius:999px;padding:0 10px;white-space:nowrap;flex:0 0 auto}.pdx-action-text{padding:0 8px;white-space:nowrap;flex:0 0 auto}.pdx-shell-action--pressed:not(.praxis-icon-button){color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary) 12%,transparent)}.pdx-action-label{font-size:12px;font-weight:500}.pdx-shell-tabs{width:100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-top:8px;border-top:1px solid color-mix(in srgb,var(--pdx-shell-header-border, var(--md-sys-color-outline-variant)) 55%,transparent)}.pdx-shell-tab{appearance:none;display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;border:1px solid var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant, rgba(148, 163, 184, .45)));background:transparent;color:var(--pdx-shell-subtitle-color, var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant)));font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;cursor:pointer;transition:background-color .14s ease,border-color .14s ease,color .14s ease}.pdx-shell-tab:focus-visible{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4)) 55%,transparent);outline-offset:2px}.pdx-shell-tab:hover:not(:disabled){border-color:var(--md-sys-color-primary, var(--mat-sys-primary));color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface))}.pdx-shell-tab--active{border-color:var(--md-sys-color-primary, var(--mat-sys-primary));background:color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary)) 12%,transparent);color:var(--md-sys-color-primary, var(--mat-sys-primary))}.pdx-shell-tab:disabled{opacity:.5;cursor:not-allowed}.pdx-shell-tab mat-icon{width:15px;height:15px;font-size:15px}.pdx-shell-tab__badge{font-size:11px;font-weight:500;opacity:.78}.pdx-shell.dashboard.pdx-shell--sticky-header{overflow:clip}.pdx-shell--sticky-header>.pdx-shell-header{position:sticky;top:var(--pdx-shell-sticky-header-offset, 0px);z-index:2;isolation:isolate;background:var(--md-sys-color-surface-container)}.pdx-shell--backdrop.pdx-shell--sticky-header>.pdx-shell-header{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface-container))}.pdx-shell--sticky-header>.pdx-shell-header:before{content:\"\";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--pdx-shell-header-bg, transparent)}.pdx-shell--sticky-header>.pdx-shell-body{isolation:isolate}.pdx-shell-body{flex:1;min-width:0;max-width:100%;min-height:0;padding:var(--pdx-shell-body-padding, 12px);background:var(--pdx-shell-body-bg, transparent);color:var(--pdx-shell-body-color, inherit)}.pdx-shell.no-shell>.pdx-shell-body{padding:0}.pdx-shell-body.hidden{display:none}.pdx-shell.collapsed{height:auto}.pdx-shell.collapsed>.pdx-shell-header{border-bottom-color:transparent}.pdx-shell.body-fill>.pdx-shell-body,.pdx-shell.body-scroll>.pdx-shell-body,.pdx-shell.expanded>.pdx-shell-body,.pdx-shell.fullscreen>.pdx-shell-body{overflow:auto;display:flex;flex-direction:column;min-height:0}.pdx-shell.collapsed>.pdx-shell-body{display:none}.pdx-shell.body-fill>.pdx-shell-body{overflow:hidden}.pdx-shell.body-scroll>.pdx-shell-body{overflow:auto}.pdx-shell.body-scroll.pdx-shell--scroll-recovery{overflow:auto}.pdx-shell.body-scroll.pdx-shell--scroll-recovery>.pdx-shell-body{flex:0 0 auto;overflow:visible}.pdx-shell.body-fill>.pdx-shell-body>*,.pdx-shell.body-scroll>.pdx-shell-body>*,.pdx-shell.expanded>.pdx-shell-body>*,.pdx-shell.fullscreen>.pdx-shell-body>*{flex:1 1 auto;min-height:0;width:100%}.pdx-shell.expanded,.pdx-shell-overlay-surface.expanded{position:fixed;top:10vh;left:50%;width:min(920px,92vw);height:min(640px,82vh);transform:translate(-50%);z-index:var(--praxis-layer-widget-shell-expanded, 1290);box-shadow:var(--mat-elevation-level8)}.pdx-shell.fullscreen,.pdx-shell-overlay-surface.fullscreen{position:fixed;inset:0;width:auto;height:auto;transform:none;border-radius:0;z-index:var(--praxis-layer-widget-shell-fullscreen, 1291);box-shadow:var(--mat-elevation-level8)}.pdx-shell.expanded,.pdx-shell.fullscreen{background:var(--pdx-shell-overlay-bg, var(--md-sys-color-surface, var(--mat-sys-surface)));color:var(--md-sys-color-on-surface)}.pdx-shell.fullscreen>.pdx-shell-body{padding:var(--pdx-shell-fullscreen-body-padding, 24px)}.pdx-shell-overlay-surface{background:var(--md-sys-color-surface);border-radius:var(--pdx-dashboard-card-radius, 16px);pointer-events:none}.pdx-shell-backdrop{position:fixed;inset:0;z-index:var(--praxis-z-widget-shell, var(--praxis-layer-widget-shell-backdrop, 1280));background:#0000008c;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);contain:layout style;isolation:isolate}@media(prefers-reduced-transparency:reduce){.pdx-shell-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}}.pdx-shell-action-group--segmented{display:inline-flex;align-items:center;gap:2px;padding:2px;border:1px solid var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant, #c4c7c5));border-radius:10px;background:var(--md-sys-color-surface-container-low, var(--mat-sys-surface-container-low, #f3f5f8))}.pdx-shell-segmented-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:26px;padding:0 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant, #44474e));font:inherit;font-size:12px;font-weight:500;line-height:1;white-space:nowrap;cursor:pointer;transition:background-color .14s ease,color .14s ease,border-color .14s ease}.pdx-shell-action-group--icon-only .pdx-shell-segmented-btn{min-width:28px;width:28px;padding:0}.pdx-shell-segmented-btn mat-icon{width:15px;height:15px;font-size:15px;line-height:15px;flex-shrink:0}.pdx-shell-segmented-btn:hover:not(:disabled):not(.pdx-shell-segmented-btn--active){color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface, #1a1c1e));background:color-mix(in srgb,var(--md-sys-color-on-surface, var(--mat-sys-on-surface, #1a1c1e)) 6%,transparent)}.pdx-shell-segmented-btn--active{background:var(--md-sys-color-primary-container, var(--mat-sys-primary-container, #d7e3ff));color:var(--md-sys-color-on-primary-container, var(--mat-sys-on-primary-container, #001b3e));font-weight:600}.pdx-shell-segmented-btn:disabled{opacity:.5;cursor:not-allowed}.pdx-shell-segmented-btn:focus-visible{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4)) 55%,transparent);outline-offset:1px}.pdx-shell-menu-divider{height:1px;margin:4px 0;background:var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant, rgba(148, 163, 184, .32)))}.pdx-shell-menu-section-label{padding:6px 16px 4px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant, #64748b));-webkit-user-select:none;user-select:none}.pdx-shell-menu-item-row{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;width:100%}.pdx-shell-menu-check.mat-icon{width:16px;height:16px;font-size:16px;line-height:16px;margin-left:auto;margin-right:0;color:var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4))}.pdx-shell-menu-item--active{font-weight:600;color:var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4));background:color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4)) 8%,transparent)}@media(forced-colors:active){.pdx-shell-segmented-btn--active,.pdx-shell-menu-item--active,.pdx-shell-tab--active{forced-color-adjust:auto;border:1px solid Highlight;outline:2px solid Highlight;outline-offset:-2px}.pdx-shell-tab:focus-visible,.pdx-shell-segmented-btn:focus-visible,.pdx-shell-header--drag-enabled:focus-visible{outline:2px solid Highlight;outline-offset:2px}}@media(pointer:coarse){.pdx-shell-segmented-btn{min-height:36px;padding:0 10px}.pdx-shell-action-group--icon-only .pdx-shell-segmented-btn{min-width:36px;width:36px}}@media print{.pdx-shell-actions,.pdx-shell-window-actions{display:none!important}}\n"], dependencies: [{ kind: "component", type: WidgetShellAvatarComponent, selector: "praxis-widget-shell-avatar", inputs: ["avatar"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i4.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i4.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i4.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i6$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
58845
60021
|
}
|
|
58846
60022
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: WidgetShellComponent, decorators: [{
|
|
58847
60023
|
type: Component,
|
|
@@ -59204,7 +60380,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
59204
60380
|
@if (expanded || fullscreen) {
|
|
59205
60381
|
<div class="pdx-shell-backdrop" (click)="closeOverlay()"></div>
|
|
59206
60382
|
}
|
|
59207
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;height:100%;position:relative}:host:after{content:\"\";position:absolute;inset:0;border:1px dashed color-mix(in srgb,var(--md-sys-color-primary) 34%,transparent);border-radius:var(--pdx-widget-highlight-radius, 12px);opacity:var(--pdx-widget-highlight-active, 0);pointer-events:none;z-index:1;box-shadow:0 0 0 1px color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent),0 8px 20px color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent)}:host([data-interaction-highlight=\"gradient\"]):after{content:\"\";position:absolute;inset:0;padding:2px;border:0;box-shadow:none;border-radius:var(--pdx-widget-highlight-radius, 12px);background:linear-gradient(135deg,var(--md-sys-color-primary),var(--md-sys-color-tertiary),var(--md-sys-color-secondary));opacity:var(--pdx-widget-highlight-active, 0);pointer-events:none;z-index:1;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}:host(.pdx-widget-shell-overlay):after{display:none}@media(forced-colors:active){:host:after,:host([data-interaction-highlight=\"gradient\"]):after{box-shadow:none;background:none;mask:none;-webkit-mask:none;padding:0;border:2px solid Highlight}}:host(.pdx-widget-shell-collapsed){height:auto}.pdx-shell{--pdx-shell-card-border-width: initial;--pdx-shell-card-border-style: initial;--pdx-shell-header-border-width: initial;--pdx-shell-header-border-style: initial;--pdx-shell-card-filter: initial;--pdx-shell-card-fallback-bg: initial;box-sizing:border-box;position:relative;height:100%;display:flex;flex-direction:column}.pdx-shell .pdx-shell{--pdx-shell-card-backdrop-filter: none;--pdx-shell-theme-backdrop-filter: none}.pdx-shell.no-shell{background:transparent;border:none;border-radius:0;box-shadow:none}.pdx-shell.dashboard{background:var( --pdx-shell-card-bg, var( --pdx-dashboard-card-bg, var(--md-sys-color-surface-container-low) ) );border-width:var(--pdx-shell-card-border-width, 1px);border-style:var(--pdx-shell-card-border-style, solid);border-color:var( --pdx-shell-card-border, var( --pdx-dashboard-card-border, var(--md-sys-color-outline-variant) ) );border-radius:var(--pdx-shell-card-radius, 12px);box-shadow:var( --pdx-shell-card-shadow, 0 4px 12px rgba(15, 23, 42, .06) );-webkit-backdrop-filter:var( --pdx-shell-card-filter, var(--pdx-shell-card-backdrop-filter, var(--pdx-shell-theme-backdrop-filter, none)) );backdrop-filter:var( --pdx-shell-card-filter, var(--pdx-shell-card-backdrop-filter, var(--pdx-shell-theme-backdrop-filter, none)) );overflow:hidden}.pdx-shell.dashboard:not(.expanded):not(.fullscreen){contain:layout paint style;isolation:isolate}@media(forced-colors:active){.pdx-shell.dashboard,.pdx-shell.dashboard.pdx-shell--backdrop,.pdx-shell-backdrop{background:Canvas;color:CanvasText;border-color:ButtonBorder;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.pdx-shell.dashboard.pdx-shell--backdrop{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface))}}@media(prefers-reduced-transparency:reduce){.pdx-shell.dashboard{background:var( --pdx-shell-theme-fallback-bg, var( --pdx-shell-card-bg, var(--pdx-dashboard-card-bg, var(--md-sys-color-surface-container-low)) ) );-webkit-backdrop-filter:none;backdrop-filter:none}.pdx-shell.dashboard.pdx-shell--backdrop{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}}.pdx-shell.dashboard.expanded,.pdx-shell.dashboard.fullscreen{-webkit-backdrop-filter:none;backdrop-filter:none}.pdx-shell.dashboard.pdx-shell--backdrop.expanded,.pdx-shell.dashboard.pdx-shell--backdrop.fullscreen{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}.pdx-shell-header{flex-shrink:0;display:flex;flex-direction:column;gap:8px;padding:12px;border-bottom:var(--pdx-shell-header-border-width, 1px) var(--pdx-shell-header-border-style, solid) var(--pdx-shell-header-border, var(--md-sys-color-outline-variant));background:var( --pdx-shell-header-bg, var(--md-sys-color-surface-container) )}.pdx-shell-header-main{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;width:100%}.pdx-shell-header--drag-enabled{cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none}.pdx-shell-header--drag-enabled:active{cursor:grabbing}.pdx-shell-header--drag-enabled:focus-visible{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary) 72%,white 28%);outline-offset:-2px}.pdx-shell-authoring-drag{flex:0 0 auto;align-self:flex-start;margin:4px 6px 0;z-index:2;cursor:grab;touch-action:none}.pdx-shell-authoring-drag:active{cursor:grabbing}.pdx-shell-title{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 min(14rem,50%);max-width:100%;color:var(--pdx-shell-title-color, inherit)}.pdx-shell-title mat-icon{flex:0 0 auto;color:var(--pdx-shell-icon-color, currentColor)}.pdx-shell-text{min-width:0;flex:1}.pdx-shell-title-text{font-family:var(--pdx-shell-title-font, inherit);font-weight:var(--pdx-shell-title-weight, var(--mat-sys-title-medium-weight, 500));font-size:var(--pdx-shell-title-size, 13px);letter-spacing:var(--pdx-shell-title-tracking, normal);line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdx-shell-subtitle{font-size:var(--pdx-shell-subtitle-size, 11px);color:var( --pdx-shell-subtitle-color, var(--md-sys-color-on-surface-variant, currentColor) );white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdx-shell-actions,.pdx-shell-window-actions{display:flex;align-items:center;gap:4px;max-width:100%}.pdx-shell-actions{flex-wrap:wrap;margin-left:auto;min-width:0}.pdx-shell-actions button.praxis-icon-button:not(:disabled):not(.praxis-icon-button--pressed){color:var(--pdx-shell-icon-color, var(--md-sys-color-on-surface-variant))}.pdx-shell-actions>button{max-width:100%}.pdx-shell-window-actions{flex-wrap:nowrap;flex:0 0 auto;margin-left:auto}.pdx-shell-text{display:grid;gap:2px}.pdx-shell-title-text,.pdx-shell-subtitle{display:-webkit-box;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pdx-action-outlined{border:1px solid var(--md-sys-color-outline-variant);border-radius:999px;padding:0 10px;white-space:nowrap;flex:0 0 auto}.pdx-action-text{padding:0 8px;white-space:nowrap;flex:0 0 auto}.pdx-shell-action--pressed:not(.praxis-icon-button){color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary) 12%,transparent)}.pdx-action-label{font-size:12px;font-weight:500}.pdx-shell-tabs{width:100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-top:8px;border-top:1px solid color-mix(in srgb,var(--pdx-shell-header-border, var(--md-sys-color-outline-variant)) 55%,transparent)}.pdx-shell-tab{appearance:none;display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;border:1px solid var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant, rgba(148, 163, 184, .45)));background:transparent;color:var(--pdx-shell-subtitle-color, var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant)));font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;cursor:pointer;transition:background-color .14s ease,border-color .14s ease,color .14s ease}.pdx-shell-tab:focus-visible{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4)) 55%,transparent);outline-offset:2px}.pdx-shell-tab:hover:not(:disabled){border-color:var(--md-sys-color-primary, var(--mat-sys-primary));color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface))}.pdx-shell-tab--active{border-color:var(--md-sys-color-primary, var(--mat-sys-primary));background:color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary)) 12%,transparent);color:var(--md-sys-color-primary, var(--mat-sys-primary))}.pdx-shell-tab:disabled{opacity:.5;cursor:not-allowed}.pdx-shell-tab mat-icon{width:15px;height:15px;font-size:15px}.pdx-shell-tab__badge{font-size:11px;font-weight:500;opacity:.78}.pdx-shell.dashboard.pdx-shell--sticky-header{overflow:clip}.pdx-shell--sticky-header>.pdx-shell-header{position:sticky;top:var(--pdx-shell-sticky-header-offset, 0px);z-index:2;isolation:isolate;background:var(--md-sys-color-surface-container)}.pdx-shell--backdrop.pdx-shell--sticky-header>.pdx-shell-header{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface-container))}.pdx-shell--sticky-header>.pdx-shell-header:before{content:\"\";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--pdx-shell-header-bg, transparent)}.pdx-shell--sticky-header>.pdx-shell-body{isolation:isolate}.pdx-shell-body{flex:1;min-height:0;padding:var(--pdx-shell-body-padding, 12px);background:var(--pdx-shell-body-bg, transparent);color:var(--pdx-shell-body-color, inherit)}.pdx-shell.no-shell>.pdx-shell-body{padding:0}.pdx-shell-body.hidden{display:none}.pdx-shell.collapsed{height:auto}.pdx-shell.collapsed>.pdx-shell-header{border-bottom-color:transparent}.pdx-shell.body-fill>.pdx-shell-body,.pdx-shell.body-scroll>.pdx-shell-body,.pdx-shell.expanded>.pdx-shell-body,.pdx-shell.fullscreen>.pdx-shell-body{overflow:auto;display:flex;flex-direction:column;min-height:0}.pdx-shell.collapsed>.pdx-shell-body{display:none}.pdx-shell.body-fill>.pdx-shell-body{overflow:hidden}.pdx-shell.body-scroll>.pdx-shell-body{overflow:auto}.pdx-shell.body-scroll.pdx-shell--scroll-recovery{overflow:auto}.pdx-shell.body-scroll.pdx-shell--scroll-recovery>.pdx-shell-body{flex:0 0 auto;overflow:visible}.pdx-shell.body-fill>.pdx-shell-body>*,.pdx-shell.body-scroll>.pdx-shell-body>*,.pdx-shell.expanded>.pdx-shell-body>*,.pdx-shell.fullscreen>.pdx-shell-body>*{flex:1 1 auto;min-height:0;width:100%}.pdx-shell.expanded,.pdx-shell-overlay-surface.expanded{position:fixed;top:10vh;left:50%;width:min(920px,92vw);height:min(640px,82vh);transform:translate(-50%);z-index:var(--praxis-layer-widget-shell-expanded, 1290);box-shadow:var(--mat-elevation-level8)}.pdx-shell.fullscreen,.pdx-shell-overlay-surface.fullscreen{position:fixed;inset:0;width:auto;height:auto;transform:none;border-radius:0;z-index:var(--praxis-layer-widget-shell-fullscreen, 1291);box-shadow:var(--mat-elevation-level8)}.pdx-shell.expanded,.pdx-shell.fullscreen{background:var(--pdx-shell-overlay-bg, var(--md-sys-color-surface, var(--mat-sys-surface)));color:var(--md-sys-color-on-surface)}.pdx-shell.fullscreen>.pdx-shell-body{padding:var(--pdx-shell-fullscreen-body-padding, 24px)}.pdx-shell-overlay-surface{background:var(--md-sys-color-surface);border-radius:var(--pdx-dashboard-card-radius, 16px);pointer-events:none}.pdx-shell-backdrop{position:fixed;inset:0;z-index:var(--praxis-z-widget-shell, var(--praxis-layer-widget-shell-backdrop, 1280));background:#0000008c;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);contain:layout style;isolation:isolate}@media(prefers-reduced-transparency:reduce){.pdx-shell-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}}.pdx-shell-action-group--segmented{display:inline-flex;align-items:center;gap:2px;padding:2px;border:1px solid var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant, #c4c7c5));border-radius:10px;background:var(--md-sys-color-surface-container-low, var(--mat-sys-surface-container-low, #f3f5f8))}.pdx-shell-segmented-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:26px;padding:0 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant, #44474e));font:inherit;font-size:12px;font-weight:500;line-height:1;white-space:nowrap;cursor:pointer;transition:background-color .14s ease,color .14s ease,border-color .14s ease}.pdx-shell-action-group--icon-only .pdx-shell-segmented-btn{min-width:28px;width:28px;padding:0}.pdx-shell-segmented-btn mat-icon{width:15px;height:15px;font-size:15px;line-height:15px;flex-shrink:0}.pdx-shell-segmented-btn:hover:not(:disabled):not(.pdx-shell-segmented-btn--active){color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface, #1a1c1e));background:color-mix(in srgb,var(--md-sys-color-on-surface, var(--mat-sys-on-surface, #1a1c1e)) 6%,transparent)}.pdx-shell-segmented-btn--active{background:var(--md-sys-color-primary-container, var(--mat-sys-primary-container, #d7e3ff));color:var(--md-sys-color-on-primary-container, var(--mat-sys-on-primary-container, #001b3e));font-weight:600}.pdx-shell-segmented-btn:disabled{opacity:.5;cursor:not-allowed}.pdx-shell-segmented-btn:focus-visible{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4)) 55%,transparent);outline-offset:1px}.pdx-shell-menu-divider{height:1px;margin:4px 0;background:var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant, rgba(148, 163, 184, .32)))}.pdx-shell-menu-section-label{padding:6px 16px 4px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant, #64748b));-webkit-user-select:none;user-select:none}.pdx-shell-menu-item-row{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;width:100%}.pdx-shell-menu-check.mat-icon{width:16px;height:16px;font-size:16px;line-height:16px;margin-left:auto;margin-right:0;color:var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4))}.pdx-shell-menu-item--active{font-weight:600;color:var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4));background:color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4)) 8%,transparent)}@media(forced-colors:active){.pdx-shell-segmented-btn--active,.pdx-shell-menu-item--active,.pdx-shell-tab--active{forced-color-adjust:auto;border:1px solid Highlight;outline:2px solid Highlight;outline-offset:-2px}.pdx-shell-tab:focus-visible,.pdx-shell-segmented-btn:focus-visible,.pdx-shell-header--drag-enabled:focus-visible{outline:2px solid Highlight;outline-offset:2px}}@media(pointer:coarse){.pdx-shell-segmented-btn{min-height:36px;padding:0 10px}.pdx-shell-action-group--icon-only .pdx-shell-segmented-btn{min-width:36px;width:36px}}@media print{.pdx-shell-actions,.pdx-shell-window-actions{display:none!important}}\n"] }]
|
|
60383
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;width:100%;min-width:0;max-width:100%;height:100%;position:relative}:host:after{content:\"\";position:absolute;inset:0;border:1px dashed color-mix(in srgb,var(--md-sys-color-primary) 34%,transparent);border-radius:var(--pdx-widget-highlight-radius, 12px);opacity:var(--pdx-widget-highlight-active, 0);pointer-events:none;z-index:1;box-shadow:0 0 0 1px color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent),0 8px 20px color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent)}:host([data-interaction-highlight=\"gradient\"]):after{content:\"\";position:absolute;inset:0;padding:2px;border:0;box-shadow:none;border-radius:var(--pdx-widget-highlight-radius, 12px);background:linear-gradient(135deg,var(--md-sys-color-primary),var(--md-sys-color-tertiary),var(--md-sys-color-secondary));opacity:var(--pdx-widget-highlight-active, 0);pointer-events:none;z-index:1;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}:host(.pdx-widget-shell-overlay):after{display:none}@media(forced-colors:active){:host:after,:host([data-interaction-highlight=\"gradient\"]):after{box-shadow:none;background:none;mask:none;-webkit-mask:none;padding:0;border:2px solid Highlight}}:host(.pdx-widget-shell-collapsed){height:auto}.pdx-shell{--pdx-shell-card-border-width: initial;--pdx-shell-card-border-style: initial;--pdx-shell-header-border-width: initial;--pdx-shell-header-border-style: initial;--pdx-shell-card-filter: initial;--pdx-shell-card-fallback-bg: initial;box-sizing:border-box;position:relative;width:100%;min-width:0;max-width:100%;height:100%;display:flex;flex-direction:column}.pdx-shell .pdx-shell{--pdx-shell-card-backdrop-filter: none;--pdx-shell-theme-backdrop-filter: none}.pdx-shell.no-shell{background:transparent;border:none;border-radius:0;box-shadow:none}.pdx-shell.dashboard{background:var( --pdx-shell-card-bg, var( --pdx-dashboard-card-bg, var(--md-sys-color-surface-container-low) ) );border-width:var(--pdx-shell-card-border-width, 1px);border-style:var(--pdx-shell-card-border-style, solid);border-color:var( --pdx-shell-card-border, var( --pdx-dashboard-card-border, var(--md-sys-color-outline-variant) ) );border-radius:var(--pdx-shell-card-radius, 12px);box-shadow:var( --pdx-shell-card-shadow, 0 4px 12px rgba(15, 23, 42, .06) );-webkit-backdrop-filter:var( --pdx-shell-card-filter, var(--pdx-shell-card-backdrop-filter, var(--pdx-shell-theme-backdrop-filter, none)) );backdrop-filter:var( --pdx-shell-card-filter, var(--pdx-shell-card-backdrop-filter, var(--pdx-shell-theme-backdrop-filter, none)) );overflow:hidden}.pdx-shell.dashboard:not(.expanded):not(.fullscreen){contain:layout paint style;isolation:isolate}@media(forced-colors:active){.pdx-shell.dashboard,.pdx-shell.dashboard.pdx-shell--backdrop,.pdx-shell-backdrop{background:Canvas;color:CanvasText;border-color:ButtonBorder;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.pdx-shell.dashboard.pdx-shell--backdrop{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface))}}@media(prefers-reduced-transparency:reduce){.pdx-shell.dashboard{background:var( --pdx-shell-theme-fallback-bg, var( --pdx-shell-card-bg, var(--pdx-dashboard-card-bg, var(--md-sys-color-surface-container-low)) ) );-webkit-backdrop-filter:none;backdrop-filter:none}.pdx-shell.dashboard.pdx-shell--backdrop{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}}.pdx-shell.dashboard.expanded,.pdx-shell.dashboard.fullscreen{-webkit-backdrop-filter:none;backdrop-filter:none}.pdx-shell.dashboard.pdx-shell--backdrop.expanded,.pdx-shell.dashboard.pdx-shell--backdrop.fullscreen{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface));-webkit-backdrop-filter:none;backdrop-filter:none}.pdx-shell-header{flex-shrink:0;display:flex;flex-direction:column;gap:8px;padding:12px;border-bottom:var(--pdx-shell-header-border-width, 1px) var(--pdx-shell-header-border-style, solid) var(--pdx-shell-header-border, var(--md-sys-color-outline-variant));background:var( --pdx-shell-header-bg, var(--md-sys-color-surface-container) )}.pdx-shell-header-main{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;width:100%}.pdx-shell-header--drag-enabled{cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none}.pdx-shell-header--drag-enabled:active{cursor:grabbing}.pdx-shell-header--drag-enabled:focus-visible{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary) 72%,white 28%);outline-offset:-2px}.pdx-shell-authoring-drag{flex:0 0 auto;align-self:flex-start;margin:4px 6px 0;z-index:2;cursor:grab;touch-action:none}.pdx-shell-authoring-drag:active{cursor:grabbing}.pdx-shell-title{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 min(14rem,50%);max-width:100%;color:var(--pdx-shell-title-color, inherit)}.pdx-shell-title mat-icon{flex:0 0 auto;color:var(--pdx-shell-icon-color, currentColor)}.pdx-shell-text{min-width:0;flex:1}.pdx-shell-title-text{font-family:var(--pdx-shell-title-font, inherit);font-weight:var(--pdx-shell-title-weight, var(--mat-sys-title-medium-weight, 500));font-size:var(--pdx-shell-title-size, 13px);letter-spacing:var(--pdx-shell-title-tracking, normal);line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdx-shell-subtitle{font-size:var(--pdx-shell-subtitle-size, 11px);color:var( --pdx-shell-subtitle-color, var(--md-sys-color-on-surface-variant, currentColor) );white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pdx-shell-actions,.pdx-shell-window-actions{display:flex;align-items:center;gap:4px;max-width:100%}.pdx-shell-actions{flex-wrap:wrap;margin-left:auto;min-width:0}.pdx-shell-actions button.praxis-icon-button:not(:disabled):not(.praxis-icon-button--pressed){color:var(--pdx-shell-icon-color, var(--md-sys-color-on-surface-variant))}.pdx-shell-actions>button{max-width:100%}.pdx-shell-window-actions{flex-wrap:nowrap;flex:0 0 auto;margin-left:auto}.pdx-shell-text{display:grid;gap:2px}.pdx-shell-title-text,.pdx-shell-subtitle{display:-webkit-box;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pdx-action-outlined{border:1px solid var(--md-sys-color-outline-variant);border-radius:999px;padding:0 10px;white-space:nowrap;flex:0 0 auto}.pdx-action-text{padding:0 8px;white-space:nowrap;flex:0 0 auto}.pdx-shell-action--pressed:not(.praxis-icon-button){color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary) 12%,transparent)}.pdx-action-label{font-size:12px;font-weight:500}.pdx-shell-tabs{width:100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-top:8px;border-top:1px solid color-mix(in srgb,var(--pdx-shell-header-border, var(--md-sys-color-outline-variant)) 55%,transparent)}.pdx-shell-tab{appearance:none;display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;border:1px solid var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant, rgba(148, 163, 184, .45)));background:transparent;color:var(--pdx-shell-subtitle-color, var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant)));font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;cursor:pointer;transition:background-color .14s ease,border-color .14s ease,color .14s ease}.pdx-shell-tab:focus-visible{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4)) 55%,transparent);outline-offset:2px}.pdx-shell-tab:hover:not(:disabled){border-color:var(--md-sys-color-primary, var(--mat-sys-primary));color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface))}.pdx-shell-tab--active{border-color:var(--md-sys-color-primary, var(--mat-sys-primary));background:color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary)) 12%,transparent);color:var(--md-sys-color-primary, var(--mat-sys-primary))}.pdx-shell-tab:disabled{opacity:.5;cursor:not-allowed}.pdx-shell-tab mat-icon{width:15px;height:15px;font-size:15px}.pdx-shell-tab__badge{font-size:11px;font-weight:500;opacity:.78}.pdx-shell.dashboard.pdx-shell--sticky-header{overflow:clip}.pdx-shell--sticky-header>.pdx-shell-header{position:sticky;top:var(--pdx-shell-sticky-header-offset, 0px);z-index:2;isolation:isolate;background:var(--md-sys-color-surface-container)}.pdx-shell--backdrop.pdx-shell--sticky-header>.pdx-shell-header{background:var(--pdx-shell-card-fallback-bg, var(--md-sys-color-surface-container))}.pdx-shell--sticky-header>.pdx-shell-header:before{content:\"\";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--pdx-shell-header-bg, transparent)}.pdx-shell--sticky-header>.pdx-shell-body{isolation:isolate}.pdx-shell-body{flex:1;min-width:0;max-width:100%;min-height:0;padding:var(--pdx-shell-body-padding, 12px);background:var(--pdx-shell-body-bg, transparent);color:var(--pdx-shell-body-color, inherit)}.pdx-shell.no-shell>.pdx-shell-body{padding:0}.pdx-shell-body.hidden{display:none}.pdx-shell.collapsed{height:auto}.pdx-shell.collapsed>.pdx-shell-header{border-bottom-color:transparent}.pdx-shell.body-fill>.pdx-shell-body,.pdx-shell.body-scroll>.pdx-shell-body,.pdx-shell.expanded>.pdx-shell-body,.pdx-shell.fullscreen>.pdx-shell-body{overflow:auto;display:flex;flex-direction:column;min-height:0}.pdx-shell.collapsed>.pdx-shell-body{display:none}.pdx-shell.body-fill>.pdx-shell-body{overflow:hidden}.pdx-shell.body-scroll>.pdx-shell-body{overflow:auto}.pdx-shell.body-scroll.pdx-shell--scroll-recovery{overflow:auto}.pdx-shell.body-scroll.pdx-shell--scroll-recovery>.pdx-shell-body{flex:0 0 auto;overflow:visible}.pdx-shell.body-fill>.pdx-shell-body>*,.pdx-shell.body-scroll>.pdx-shell-body>*,.pdx-shell.expanded>.pdx-shell-body>*,.pdx-shell.fullscreen>.pdx-shell-body>*{flex:1 1 auto;min-height:0;width:100%}.pdx-shell.expanded,.pdx-shell-overlay-surface.expanded{position:fixed;top:10vh;left:50%;width:min(920px,92vw);height:min(640px,82vh);transform:translate(-50%);z-index:var(--praxis-layer-widget-shell-expanded, 1290);box-shadow:var(--mat-elevation-level8)}.pdx-shell.fullscreen,.pdx-shell-overlay-surface.fullscreen{position:fixed;inset:0;width:auto;height:auto;transform:none;border-radius:0;z-index:var(--praxis-layer-widget-shell-fullscreen, 1291);box-shadow:var(--mat-elevation-level8)}.pdx-shell.expanded,.pdx-shell.fullscreen{background:var(--pdx-shell-overlay-bg, var(--md-sys-color-surface, var(--mat-sys-surface)));color:var(--md-sys-color-on-surface)}.pdx-shell.fullscreen>.pdx-shell-body{padding:var(--pdx-shell-fullscreen-body-padding, 24px)}.pdx-shell-overlay-surface{background:var(--md-sys-color-surface);border-radius:var(--pdx-dashboard-card-radius, 16px);pointer-events:none}.pdx-shell-backdrop{position:fixed;inset:0;z-index:var(--praxis-z-widget-shell, var(--praxis-layer-widget-shell-backdrop, 1280));background:#0000008c;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);contain:layout style;isolation:isolate}@media(prefers-reduced-transparency:reduce){.pdx-shell-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}}.pdx-shell-action-group--segmented{display:inline-flex;align-items:center;gap:2px;padding:2px;border:1px solid var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant, #c4c7c5));border-radius:10px;background:var(--md-sys-color-surface-container-low, var(--mat-sys-surface-container-low, #f3f5f8))}.pdx-shell-segmented-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:26px;padding:0 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant, #44474e));font:inherit;font-size:12px;font-weight:500;line-height:1;white-space:nowrap;cursor:pointer;transition:background-color .14s ease,color .14s ease,border-color .14s ease}.pdx-shell-action-group--icon-only .pdx-shell-segmented-btn{min-width:28px;width:28px;padding:0}.pdx-shell-segmented-btn mat-icon{width:15px;height:15px;font-size:15px;line-height:15px;flex-shrink:0}.pdx-shell-segmented-btn:hover:not(:disabled):not(.pdx-shell-segmented-btn--active){color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface, #1a1c1e));background:color-mix(in srgb,var(--md-sys-color-on-surface, var(--mat-sys-on-surface, #1a1c1e)) 6%,transparent)}.pdx-shell-segmented-btn--active{background:var(--md-sys-color-primary-container, var(--mat-sys-primary-container, #d7e3ff));color:var(--md-sys-color-on-primary-container, var(--mat-sys-on-primary-container, #001b3e));font-weight:600}.pdx-shell-segmented-btn:disabled{opacity:.5;cursor:not-allowed}.pdx-shell-segmented-btn:focus-visible{outline:2px solid color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4)) 55%,transparent);outline-offset:1px}.pdx-shell-menu-divider{height:1px;margin:4px 0;background:var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant, rgba(148, 163, 184, .32)))}.pdx-shell-menu-section-label{padding:6px 16px 4px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant, #64748b));-webkit-user-select:none;user-select:none}.pdx-shell-menu-item-row{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;width:100%}.pdx-shell-menu-check.mat-icon{width:16px;height:16px;font-size:16px;line-height:16px;margin-left:auto;margin-right:0;color:var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4))}.pdx-shell-menu-item--active{font-weight:600;color:var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4));background:color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary, #1263b4)) 8%,transparent)}@media(forced-colors:active){.pdx-shell-segmented-btn--active,.pdx-shell-menu-item--active,.pdx-shell-tab--active{forced-color-adjust:auto;border:1px solid Highlight;outline:2px solid Highlight;outline-offset:-2px}.pdx-shell-tab:focus-visible,.pdx-shell-segmented-btn:focus-visible,.pdx-shell-header--drag-enabled:focus-visible{outline:2px solid Highlight;outline-offset:2px}}@media(pointer:coarse){.pdx-shell-segmented-btn{min-height:36px;padding:0 10px}.pdx-shell-action-group--icon-only .pdx-shell-segmented-btn{min-width:36px;width:36px}}@media print{.pdx-shell-actions,.pdx-shell-window-actions{display:none!important}}\n"] }]
|
|
59208
60384
|
}], ctorParameters: () => [], propDecorators: { hostCollapsed: [{
|
|
59209
60385
|
type: HostBinding,
|
|
59210
60386
|
args: ['class.pdx-widget-shell-collapsed']
|
|
@@ -60582,6 +61758,10 @@ const CANONICAL_OPERATION_SUFFIXES = {
|
|
|
60582
61758
|
'stats/distribution': 'stats/distribution',
|
|
60583
61759
|
statsComparison: 'stats/comparison',
|
|
60584
61760
|
'stats/comparison': 'stats/comparison',
|
|
61761
|
+
statsInference: 'stats/inference',
|
|
61762
|
+
'stats/inference': 'stats/inference',
|
|
61763
|
+
statsAnomalies: 'stats/anomalies',
|
|
61764
|
+
'stats/anomalies': 'stats/anomalies',
|
|
60585
61765
|
filter: 'filter',
|
|
60586
61766
|
};
|
|
60587
61767
|
class WidgetPageDataSourceRuntimeService {
|
|
@@ -60741,7 +61921,7 @@ class WidgetPageDataSourceRuntimeService {
|
|
|
60741
61921
|
? 'POST'
|
|
60742
61922
|
: 'GET');
|
|
60743
61923
|
const isStatsQuery = dataSource.kind === 'stats-query' ||
|
|
60744
|
-
/\/stats\/(?:group-by|timeseries|distribution|comparison|recipes\/[^/?#]+)(?:$|\?|\/)/i.test(url);
|
|
61924
|
+
/\/stats\/(?:group-by|timeseries|distribution|comparison|inference|anomalies|recipes\/[^/?#]+)(?:$|\?|\/)/i.test(url);
|
|
60745
61925
|
let request$;
|
|
60746
61926
|
if (method === 'POST') {
|
|
60747
61927
|
const postBody = this.normalizeCanonicalStatsRequestBody(url, dataSource.query);
|
|
@@ -60782,6 +61962,12 @@ class WidgetPageDataSourceRuntimeService {
|
|
|
60782
61962
|
const base = rawQuery && typeof rawQuery === 'object' && !Array.isArray(rawQuery)
|
|
60783
61963
|
? { ...rawQuery }
|
|
60784
61964
|
: {};
|
|
61965
|
+
if (/\/stats\/(?:inference|anomalies)(?:$|\?|\/)/i.test(url)) {
|
|
61966
|
+
if (!base['filter'] || typeof base['filter'] !== 'object' || Array.isArray(base['filter'])) {
|
|
61967
|
+
base['filter'] = {};
|
|
61968
|
+
}
|
|
61969
|
+
return base;
|
|
61970
|
+
}
|
|
60785
61971
|
if (!/\/stats\/(?:group-by|timeseries|distribution|comparison)(?:$|\?|\/)/i.test(url)) {
|
|
60786
61972
|
return base;
|
|
60787
61973
|
}
|
|
@@ -69917,7 +71103,7 @@ class DynamicWidgetPageComponent {
|
|
|
69917
71103
|
continue;
|
|
69918
71104
|
}
|
|
69919
71105
|
if (targetRef.nestedPath?.length) {
|
|
69920
|
-
const result = this.nestedWidgetAccessor.setNestedWidgetInput(nextWidgets[widgetIndex], targetRef.nestedPath, targetRef.port, this.cloneStateValues(runtimeLink.lastDeliveredValuePreview));
|
|
71106
|
+
const result = this.nestedWidgetAccessor.setNestedWidgetInput(nextWidgets[widgetIndex], targetRef.nestedPath, targetRef.port, this.coerceDeliveredComponentInputValue(targetRef.port, targetRef.bindingPath, this.cloneStateValues(runtimeLink.lastDeliveredValuePreview), Boolean(link.transform)));
|
|
69921
71107
|
if (!result.changed) {
|
|
69922
71108
|
continue;
|
|
69923
71109
|
}
|
|
@@ -69931,7 +71117,7 @@ class DynamicWidgetPageComponent {
|
|
|
69931
71117
|
}
|
|
69932
71118
|
const widget = nextWidgets[widgetIndex];
|
|
69933
71119
|
const currentInputs = this.cloneStateValues(widget.definition.inputs || {});
|
|
69934
|
-
const nextInputs = this.conn.setValueAtPath(currentInputs, bindingPath, this.cloneStateValues(runtimeLink.lastDeliveredValuePreview));
|
|
71120
|
+
const nextInputs = this.conn.setValueAtPath(currentInputs, bindingPath, this.coerceDeliveredComponentInputValue(targetRef.port, bindingPath, this.cloneStateValues(runtimeLink.lastDeliveredValuePreview), Boolean(link.transform)));
|
|
69935
71121
|
if (this.areStateValuesEqual(currentInputs, nextInputs)) {
|
|
69936
71122
|
continue;
|
|
69937
71123
|
}
|
|
@@ -69946,6 +71132,55 @@ class DynamicWidgetPageComponent {
|
|
|
69946
71132
|
}
|
|
69947
71133
|
return { widgets: nextWidgets, changed };
|
|
69948
71134
|
}
|
|
71135
|
+
coerceDeliveredComponentInputValue(targetPort, bindingPath, value, hasTransform = false) {
|
|
71136
|
+
if (hasTransform || (targetPort !== 'resourceId' && bindingPath !== 'resourceId')) {
|
|
71137
|
+
return value;
|
|
71138
|
+
}
|
|
71139
|
+
if (value == null || typeof value === 'string' || typeof value === 'number') {
|
|
71140
|
+
return value;
|
|
71141
|
+
}
|
|
71142
|
+
if (!this.isRecord(value)) {
|
|
71143
|
+
return value;
|
|
71144
|
+
}
|
|
71145
|
+
const payload = this.isRecord(value['payload']) ? value['payload'] : null;
|
|
71146
|
+
const candidates = [
|
|
71147
|
+
this.extractNestedRecordValue(value, ['resourceIdentity', 'key', 'value']),
|
|
71148
|
+
payload
|
|
71149
|
+
? this.extractNestedRecordValue(payload, ['resourceIdentity', 'key', 'value'])
|
|
71150
|
+
: undefined,
|
|
71151
|
+
this.extractNestedRecordValue(value, ['row', 'id']),
|
|
71152
|
+
payload ? this.extractNestedRecordValue(payload, ['row', 'id']) : undefined,
|
|
71153
|
+
this.extractNestedRecordValue(value, ['item', 'id']),
|
|
71154
|
+
payload ? this.extractNestedRecordValue(payload, ['item', 'id']) : undefined,
|
|
71155
|
+
value['id'],
|
|
71156
|
+
payload?.['id'],
|
|
71157
|
+
];
|
|
71158
|
+
for (const candidate of candidates) {
|
|
71159
|
+
if (typeof candidate === 'string' && candidate.trim().length > 0) {
|
|
71160
|
+
return candidate;
|
|
71161
|
+
}
|
|
71162
|
+
if (typeof candidate === 'number' && Number.isFinite(candidate)) {
|
|
71163
|
+
return candidate;
|
|
71164
|
+
}
|
|
71165
|
+
}
|
|
71166
|
+
if (Object.prototype.hasOwnProperty.call(value, 'row') ||
|
|
71167
|
+
Object.prototype.hasOwnProperty.call(value, 'item') ||
|
|
71168
|
+
Object.prototype.hasOwnProperty.call(value, 'resourceIdentity') ||
|
|
71169
|
+
Object.prototype.hasOwnProperty.call(value, 'payload')) {
|
|
71170
|
+
return null;
|
|
71171
|
+
}
|
|
71172
|
+
return value;
|
|
71173
|
+
}
|
|
71174
|
+
extractNestedRecordValue(source, path) {
|
|
71175
|
+
let cursor = source;
|
|
71176
|
+
for (const key of path) {
|
|
71177
|
+
if (!this.isRecord(cursor)) {
|
|
71178
|
+
return undefined;
|
|
71179
|
+
}
|
|
71180
|
+
cursor = cursor[key];
|
|
71181
|
+
}
|
|
71182
|
+
return cursor;
|
|
71183
|
+
}
|
|
69949
71184
|
executeCompositionGlobalActionDeliveries(cycle, options) {
|
|
69950
71185
|
if (!this.compositionDefinition || this.isMutationBlocked()) {
|
|
69951
71186
|
return;
|
|
@@ -77073,7 +78308,7 @@ class DynamicWidgetPageComponent {
|
|
|
77073
78308
|
</div>
|
|
77074
78309
|
}
|
|
77075
78310
|
</div>
|
|
77076
|
-
`, isInline: true, styles: [":host{display:block;min-width:0}.pdx-page-wrapper{box-sizing:border-box;padding-inline:var(--pdx-page-padding-inline, 0px);position:relative;display:block;background:var(--pdx-page-bg, var(--_pdx-preset-page-bg, transparent));color:var(--pdx-page-color, inherit)}.pdx-page{display:grid;gap:var(--pdx-page-gap, 12px);grid-template-columns:minmax(0,1fr)}.pdx-page--canvas{align-items:start;grid-auto-flow:dense}.pdx-page-wrapper.editing .pdx-page--canvas{padding-block-start:var(--pdx-canvas-context-toolbar-safe-area, 60px);padding-block-end:22px;padding-inline:22px;box-sizing:border-box}.pdx-page-settings{position:sticky;top:8px;z-index:2;color:inherit;margin-bottom:6px}.pdx-widget{--pdx-widget-highlight-active: 0;--pdx-resize-highlight-background: var(--md-sys-color-primary-container);position:relative;background:var(--pfx-surface, transparent);border-radius:6px;min-width:0;min-height:0}.pdx-widget--interactive{cursor:pointer}.pdx-widget--selected:not(.pdx-widget--canvas-blocked):not([data-resize-feedback]),.pdx-widget--interactive:not(.pdx-widget--canvas-blocked):not([data-resize-feedback]):has(:focus-visible):not(:has(.pdx-widget :focus-visible)){--pdx-widget-highlight-active: 1}.pdx-widget--canvas-blocked,.pdx-widget--canvas[data-resize-feedback]{--pdx-widget-highlight-active: 0}.pdx-widget--canvas{align-self:stretch}.pdx-widget--canvas[data-resize-feedback]:after{content:\"\";position:absolute;inset:0;padding:2px;border-radius:14px;background:var(--pdx-resize-feedback-color);opacity:0;pointer-events:none;transition:opacity .14s ease,filter .14s ease;filter:saturate(1.02) drop-shadow(0 0 5px color-mix(in srgb,var(--md-sys-color-primary) 10%,transparent));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.pdx-widget--canvas-blocked:before{content:\"\";position:absolute;inset:0;border-radius:14px;pointer-events:none;z-index:1;transition:opacity .14s ease,box-shadow .14s ease,border-color .14s ease}.pdx-widget--canvas-blocked:before{border:1px solid color-mix(in srgb,var(--md-sys-color-error) 74%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--md-sys-color-error) 20%,transparent),0 10px 24px color-mix(in srgb,var(--md-sys-color-error) 12%,transparent)}[data-resize-feedback=valid]{--pdx-resize-feedback-color: #27864b}[data-resize-feedback=minimum]{--pdx-resize-feedback-color: #bc8a00}[data-resize-feedback=blocked]{--pdx-resize-feedback-color: var(--md-sys-color-error)}.pdx-widget--canvas[data-resize-feedback]:after{background:var(--pdx-resize-feedback-color);opacity:1;z-index:2}.pdx-resize-feedback{position:absolute;inset-inline:8px;bottom:8px;width:fit-content;max-width:calc(100% - 16px);box-sizing:border-box;display:flex;align-items:center;gap:6px;padding:4px 8px;border:2px solid var(--pdx-resize-feedback-color);border-radius:8px;color:var(--md-sys-color-on-surface);background:var(--md-sys-color-surface);font-size:12px;line-height:18px;pointer-events:none;z-index:3}.pdx-standalone-size-editor{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid var(--md-sys-color-outline-variant);border-radius:16px;background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface);box-shadow:var(--mat-sys-level3, 0 8px 24px rgba(0, 0, 0, .24))}.pdx-standalone-size-editor__footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--md-sys-color-outline-variant)}.pdx-resize-feedback mat-icon{flex:0 0 18px;width:18px;height:18px;font-size:18px}.pdx-resize-feedback--floating{position:static;max-width:min(320px,calc(100vw - 24px));overflow-wrap:anywhere}.pdx-resize-feedback--floating strong{display:block}.pdx-canvas-edges{position:absolute;inset:0;pointer-events:none;z-index:5}.pdx-canvas-edge{position:absolute;display:grid;place-items:center;box-sizing:border-box;width:min(24px,50%);height:min(24px,50%);padding:0;border:0;background:transparent;color:var(--md-sys-color-primary);pointer-events:auto;touch-action:none;transform:translate(-50%,-50%)}.pdx-canvas-edge:after{content:\"\";box-sizing:border-box;width:min(12px,100%);height:min(12px,100%);pointer-events:none;border:2px solid currentColor;border-radius:2px;background:var(--md-sys-color-surface)}.pdx-widget--canvas:has(>praxis-widget-shell[data-interaction-highlight=gradient]){--pdx-resize-highlight-background: linear-gradient(135deg, var(--md-sys-color-primary), var(--md-sys-color-tertiary), var(--md-sys-color-secondary))}.pdx-canvas-edge:hover:after,.pdx-canvas-edge:focus-visible:after{background:var(--pdx-resize-highlight-background)}.pdx-canvas-edge[data-canvas-edge=north-west]{left:0;top:0;cursor:nwse-resize}.pdx-canvas-edge[data-canvas-edge=north]{left:50%;top:0;cursor:ns-resize}.pdx-canvas-edge[data-canvas-edge=north-east]{left:100%;top:0;cursor:nesw-resize}.pdx-canvas-edge[data-canvas-edge=east]{left:100%;top:50%;width:min(24px,100%);cursor:ew-resize}.pdx-canvas-edge[data-canvas-edge=south-east]{left:100%;top:100%;cursor:nwse-resize}.pdx-canvas-edge[data-canvas-edge=south]{left:50%;top:100%;cursor:ns-resize}.pdx-canvas-edge[data-canvas-edge=south-west]{left:0;top:100%;cursor:nesw-resize}.pdx-canvas-edge[data-canvas-edge=west]{left:0;top:50%;width:min(24px,100%);cursor:ew-resize}.pdx-page-wrapper:has(>.pdx-page>.pdx-widget>praxis-widget-shell>.pdx-shell.expanded)>.pdx-page>.pdx-widget>.pdx-canvas-edges,.pdx-page-wrapper:has(>.pdx-page>.pdx-widget>praxis-widget-shell>.pdx-shell.fullscreen)>.pdx-page>.pdx-widget>.pdx-canvas-edges{display:none}.pdx-widget--canvas:focus-visible,.pdx-canvas-edge:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.pdx-canvas-snap-preview{position:relative;display:flex;align-items:center;justify-content:center;align-self:stretch;border-radius:12px;pointer-events:none;z-index:2;background:color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-primary) 45%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent);animation:pdx-snap-preview-pulse .48s ease-out infinite alternate}.pdx-canvas-snap-preview:before,.pdx-canvas-snap-preview:after{content:\"\";position:absolute;border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-primary) 82%,var(--md-sys-color-tertiary) 18%);opacity:.72}.pdx-canvas-snap-preview:before{inset:0 auto 0 0;width:3px}.pdx-canvas-snap-preview:after{inset:0 0 auto;height:3px}.pdx-canvas-snap-preview--invalid{background:color-mix(in srgb,var(--md-sys-color-error) 4%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-error) 65%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent)}.pdx-canvas-snap-preview--invalid:before,.pdx-canvas-snap-preview--invalid:after{background:color-mix(in srgb,var(--md-sys-color-error) 86%,var(--md-sys-color-error-container) 14%)}.pdx-canvas-snap-preview--swap{background:color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-primary) 65%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent)}.pdx-canvas-snap-preview--swap:before,.pdx-canvas-snap-preview--swap:after{background:color-mix(in srgb,var(--md-sys-color-primary) 86%,var(--md-sys-color-tertiary) 14%)}.pdx-canvas-snap-preview__badge{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.2;letter-spacing:.02em;white-space:nowrap;background:var(--md-sys-color-surface-container-highest, var(--mat-sys-surface-container-highest));color:var(--md-sys-color-on-surface, #1e293b);box-shadow:0 4px 16px color-mix(in srgb,var(--mat-sys-shadow, #000) 20%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 40%,transparent);pointer-events:none}.pdx-canvas-snap-preview__badge-icon{font-size:16px;width:16px;height:16px;line-height:16px}.pdx-canvas-snap-preview__badge--invalid{color:var(--md-sys-color-error, #ba1a1a);border-color:color-mix(in srgb,var(--md-sys-color-error) 30%,transparent)}.pdx-canvas-snap-preview__badge--swap{color:var(--md-sys-color-primary, #0061a4);border-color:color-mix(in srgb,var(--md-sys-color-primary) 30%,transparent)}@media(prefers-reduced-motion:reduce){.pdx-canvas-snap-preview{animation:none}.pdx-widget--canvas[data-resize-feedback]:after,.pdx-widget--canvas-blocked:before{transition:none}}@media(forced-colors:active){.pdx-widget--canvas-blocked:before{border:2px solid Highlight}.pdx-widget--canvas:focus-visible,.pdx-canvas-edge:focus-visible{outline-color:Highlight}.pdx-canvas-edge:hover:after,.pdx-canvas-edge:focus-visible:after{background:Highlight}.pdx-widget--canvas[data-resize-feedback]:after{background:Highlight}}@keyframes pdx-snap-preview-pulse{0%{opacity:.72;transform:scale(.996)}to{opacity:1;transform:scale(1)}}.pdx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pdx-group{display:grid;gap:12px;grid-column:1 / -1;padding:12px;border-radius:16px;background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 76%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 72%,transparent)}.pdx-group--hero{padding:16px;background:linear-gradient(180deg,color-mix(in srgb,var(--md-sys-color-primary-container) 42%,transparent),color-mix(in srgb,var(--md-sys-color-surface-container-low) 86%,transparent))}.pdx-group--rail{align-self:start}.pdx-group-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.pdx-group-title{font-size:.95rem;font-weight:600;color:var(--md-sys-color-on-surface)}.pdx-group-content{display:grid;gap:12px}.pdx-group-content--stack{grid-template-columns:minmax(0,1fr)}.pdx-group-content--row{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.pdx-group-content--grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.pdx-group-tabs{display:grid;gap:12px}.pdx-tabs-header{display:flex;flex-wrap:wrap;gap:8px}.pdx-tab-chip{appearance:none;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);color:var(--md-sys-color-on-surface);border-radius:999px;padding:8px 12px;font:inherit;cursor:pointer}.pdx-tab-chip.active{border-color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary-container) 78%,transparent);color:var(--md-sys-color-on-primary-container)}.pdx-page-wrapper.editing .pdx-widget-settings{opacity:1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i6$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i5$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i6$2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: CanvasSizeEditorComponent, selector: "praxis-canvas-size-editor", inputs: ["layoutItems", "resetRevision", "restoredValue", "columns", "freeSpaceWidths", "northFreeSpaceHeight", "northUnavailable", "southFreeSpaceHeight", "southUnavailable", "cornerFreeSpaceSizes", "cornerUnavailable", "expandWidths", "notice", "hasUndo", "canUndo", "width", "height", "contentRows", "rowSpan", "widgetLabel", "scopeLabel", "previewPending", "error"], outputs: ["state", "undo", "preview", "apply", "cancel"] }, { kind: "component", type: DynamicWidgetContextToolbarComponent, selector: "praxis-dynamic-widget-context-toolbar", inputs: ["showSize", "sizeDisabled", "sizeLabel", "toolbarLabel", "contextLabel", "contextTooltip", "showAssistant", "assistantLabel", "assistantTooltip", "showComponentSettings", "componentSettingsBusy", "componentSettingsLabel", "componentSettingsTooltip", "showShellSettings", "shellSettingsLabel", "shellSettingsTooltip", "showDuplicate", "duplicateLabel", "showRemove", "moreActionsLabel", "removeLabel"], outputs: ["size", "assistant", "componentSettings", "shellSettings", "duplicate", "remove"] }, { kind: "directive", type: DynamicWidgetLoaderDirective, selector: "[dynamicWidgetLoader]", inputs: ["dynamicWidgetLoader", "ownerWidgetKey", "context", "strictValidation", "autoWireOutputs"], outputs: ["widgetEvent", "widgetDiagnostic"], exportAs: ["dynamicWidgetLoader"] }, { kind: "component", type: WidgetShellComponent, selector: "praxis-widget-shell", inputs: ["shell", "context", "dragSurfaceEnabled", "dragSurfaceLabel"], outputs: ["action", "dragSurfacePointerDown", "dragSurfaceKeydown"] }] });
|
|
78311
|
+
`, isInline: true, styles: [":host{display:block;min-width:0;max-width:100%}.pdx-page-wrapper{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding-inline:var(--pdx-page-padding-inline, 0px);position:relative;display:block;background:var(--pdx-page-bg, var(--_pdx-preset-page-bg, transparent));color:var(--pdx-page-color, inherit)}.pdx-page{display:grid;width:100%;min-width:0;max-width:100%;gap:var(--pdx-page-gap, 12px);grid-template-columns:minmax(0,1fr)}.pdx-page--canvas{align-items:start;grid-auto-flow:dense}.pdx-page-wrapper.editing .pdx-page--canvas{padding-block-start:var(--pdx-canvas-context-toolbar-safe-area, 60px);padding-block-end:22px;padding-inline:22px;box-sizing:border-box}.pdx-page-settings{position:sticky;top:8px;z-index:2;color:inherit;margin-bottom:6px}.pdx-widget{--pdx-widget-highlight-active: 0;--pdx-resize-highlight-background: var(--md-sys-color-primary-container);position:relative;background:var(--pfx-surface, transparent);border-radius:6px;min-width:0;max-width:100%;min-height:0}.pdx-widget--interactive{cursor:pointer}.pdx-widget--selected:not(.pdx-widget--canvas-blocked):not([data-resize-feedback]),.pdx-widget--interactive:not(.pdx-widget--canvas-blocked):not([data-resize-feedback]):has(:focus-visible):not(:has(.pdx-widget :focus-visible)){--pdx-widget-highlight-active: 1}.pdx-widget--canvas-blocked,.pdx-widget--canvas[data-resize-feedback]{--pdx-widget-highlight-active: 0}.pdx-widget--canvas{align-self:stretch}.pdx-widget--canvas[data-resize-feedback]:after{content:\"\";position:absolute;inset:0;padding:2px;border-radius:14px;background:var(--pdx-resize-feedback-color);opacity:0;pointer-events:none;transition:opacity .14s ease,filter .14s ease;filter:saturate(1.02) drop-shadow(0 0 5px color-mix(in srgb,var(--md-sys-color-primary) 10%,transparent));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.pdx-widget--canvas-blocked:before{content:\"\";position:absolute;inset:0;border-radius:14px;pointer-events:none;z-index:1;transition:opacity .14s ease,box-shadow .14s ease,border-color .14s ease}.pdx-widget--canvas-blocked:before{border:1px solid color-mix(in srgb,var(--md-sys-color-error) 74%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--md-sys-color-error) 20%,transparent),0 10px 24px color-mix(in srgb,var(--md-sys-color-error) 12%,transparent)}[data-resize-feedback=valid]{--pdx-resize-feedback-color: #27864b}[data-resize-feedback=minimum]{--pdx-resize-feedback-color: #bc8a00}[data-resize-feedback=blocked]{--pdx-resize-feedback-color: var(--md-sys-color-error)}.pdx-widget--canvas[data-resize-feedback]:after{background:var(--pdx-resize-feedback-color);opacity:1;z-index:2}.pdx-resize-feedback{position:absolute;inset-inline:8px;bottom:8px;width:fit-content;max-width:calc(100% - 16px);box-sizing:border-box;display:flex;align-items:center;gap:6px;padding:4px 8px;border:2px solid var(--pdx-resize-feedback-color);border-radius:8px;color:var(--md-sys-color-on-surface);background:var(--md-sys-color-surface);font-size:12px;line-height:18px;pointer-events:none;z-index:3}.pdx-standalone-size-editor{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid var(--md-sys-color-outline-variant);border-radius:16px;background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface);box-shadow:var(--mat-sys-level3, 0 8px 24px rgba(0, 0, 0, .24))}.pdx-standalone-size-editor__footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--md-sys-color-outline-variant)}.pdx-resize-feedback mat-icon{flex:0 0 18px;width:18px;height:18px;font-size:18px}.pdx-resize-feedback--floating{position:static;max-width:min(320px,calc(100vw - 24px));overflow-wrap:anywhere}.pdx-resize-feedback--floating strong{display:block}.pdx-canvas-edges{position:absolute;inset:0;pointer-events:none;z-index:5}.pdx-canvas-edge{position:absolute;display:grid;place-items:center;box-sizing:border-box;width:min(24px,50%);height:min(24px,50%);padding:0;border:0;background:transparent;color:var(--md-sys-color-primary);pointer-events:auto;touch-action:none;transform:translate(-50%,-50%)}.pdx-canvas-edge:after{content:\"\";box-sizing:border-box;width:min(12px,100%);height:min(12px,100%);pointer-events:none;border:2px solid currentColor;border-radius:2px;background:var(--md-sys-color-surface)}.pdx-widget--canvas:has(>praxis-widget-shell[data-interaction-highlight=gradient]){--pdx-resize-highlight-background: linear-gradient(135deg, var(--md-sys-color-primary), var(--md-sys-color-tertiary), var(--md-sys-color-secondary))}.pdx-canvas-edge:hover:after,.pdx-canvas-edge:focus-visible:after{background:var(--pdx-resize-highlight-background)}.pdx-canvas-edge[data-canvas-edge=north-west]{left:0;top:0;cursor:nwse-resize}.pdx-canvas-edge[data-canvas-edge=north]{left:50%;top:0;cursor:ns-resize}.pdx-canvas-edge[data-canvas-edge=north-east]{left:100%;top:0;cursor:nesw-resize}.pdx-canvas-edge[data-canvas-edge=east]{left:100%;top:50%;width:min(24px,100%);cursor:ew-resize}.pdx-canvas-edge[data-canvas-edge=south-east]{left:100%;top:100%;cursor:nwse-resize}.pdx-canvas-edge[data-canvas-edge=south]{left:50%;top:100%;cursor:ns-resize}.pdx-canvas-edge[data-canvas-edge=south-west]{left:0;top:100%;cursor:nesw-resize}.pdx-canvas-edge[data-canvas-edge=west]{left:0;top:50%;width:min(24px,100%);cursor:ew-resize}.pdx-page-wrapper:has(>.pdx-page>.pdx-widget>praxis-widget-shell>.pdx-shell.expanded)>.pdx-page>.pdx-widget>.pdx-canvas-edges,.pdx-page-wrapper:has(>.pdx-page>.pdx-widget>praxis-widget-shell>.pdx-shell.fullscreen)>.pdx-page>.pdx-widget>.pdx-canvas-edges{display:none}.pdx-widget--canvas:focus-visible,.pdx-canvas-edge:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.pdx-canvas-snap-preview{position:relative;display:flex;align-items:center;justify-content:center;align-self:stretch;border-radius:12px;pointer-events:none;z-index:2;background:color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-primary) 45%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent);animation:pdx-snap-preview-pulse .48s ease-out infinite alternate}.pdx-canvas-snap-preview:before,.pdx-canvas-snap-preview:after{content:\"\";position:absolute;border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-primary) 82%,var(--md-sys-color-tertiary) 18%);opacity:.72}.pdx-canvas-snap-preview:before{inset:0 auto 0 0;width:3px}.pdx-canvas-snap-preview:after{inset:0 0 auto;height:3px}.pdx-canvas-snap-preview--invalid{background:color-mix(in srgb,var(--md-sys-color-error) 4%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-error) 65%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent)}.pdx-canvas-snap-preview--invalid:before,.pdx-canvas-snap-preview--invalid:after{background:color-mix(in srgb,var(--md-sys-color-error) 86%,var(--md-sys-color-error-container) 14%)}.pdx-canvas-snap-preview--swap{background:color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-primary) 65%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent)}.pdx-canvas-snap-preview--swap:before,.pdx-canvas-snap-preview--swap:after{background:color-mix(in srgb,var(--md-sys-color-primary) 86%,var(--md-sys-color-tertiary) 14%)}.pdx-canvas-snap-preview__badge{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.2;letter-spacing:.02em;white-space:nowrap;background:var(--md-sys-color-surface-container-highest, var(--mat-sys-surface-container-highest));color:var(--md-sys-color-on-surface, #1e293b);box-shadow:0 4px 16px color-mix(in srgb,var(--mat-sys-shadow, #000) 20%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 40%,transparent);pointer-events:none}.pdx-canvas-snap-preview__badge-icon{font-size:16px;width:16px;height:16px;line-height:16px}.pdx-canvas-snap-preview__badge--invalid{color:var(--md-sys-color-error, #ba1a1a);border-color:color-mix(in srgb,var(--md-sys-color-error) 30%,transparent)}.pdx-canvas-snap-preview__badge--swap{color:var(--md-sys-color-primary, #0061a4);border-color:color-mix(in srgb,var(--md-sys-color-primary) 30%,transparent)}@media(prefers-reduced-motion:reduce){.pdx-canvas-snap-preview{animation:none}.pdx-widget--canvas[data-resize-feedback]:after,.pdx-widget--canvas-blocked:before{transition:none}}@media(forced-colors:active){.pdx-widget--canvas-blocked:before{border:2px solid Highlight}.pdx-widget--canvas:focus-visible,.pdx-canvas-edge:focus-visible{outline-color:Highlight}.pdx-canvas-edge:hover:after,.pdx-canvas-edge:focus-visible:after{background:Highlight}.pdx-widget--canvas[data-resize-feedback]:after{background:Highlight}}@keyframes pdx-snap-preview-pulse{0%{opacity:.72;transform:scale(.996)}to{opacity:1;transform:scale(1)}}.pdx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pdx-group{display:grid;gap:12px;grid-column:1 / -1;padding:12px;border-radius:16px;background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 76%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 72%,transparent)}.pdx-group--hero{padding:16px;background:linear-gradient(180deg,color-mix(in srgb,var(--md-sys-color-primary-container) 42%,transparent),color-mix(in srgb,var(--md-sys-color-surface-container-low) 86%,transparent))}.pdx-group--rail{align-self:start}.pdx-group-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.pdx-group-title{font-size:.95rem;font-weight:600;color:var(--md-sys-color-on-surface)}.pdx-group-content{display:grid;gap:12px}.pdx-group-content--stack{grid-template-columns:minmax(0,1fr)}.pdx-group-content--row{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.pdx-group-content--grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.pdx-group-tabs{display:grid;gap:12px}.pdx-tabs-header{display:flex;flex-wrap:wrap;gap:8px}.pdx-tab-chip{appearance:none;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);color:var(--md-sys-color-on-surface);border-radius:999px;padding:8px 12px;font:inherit;cursor:pointer}.pdx-tab-chip.active{border-color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary-container) 78%,transparent);color:var(--md-sys-color-on-primary-container)}.pdx-page-wrapper.editing .pdx-widget-settings{opacity:1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i6$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i5$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i6$2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: CanvasSizeEditorComponent, selector: "praxis-canvas-size-editor", inputs: ["layoutItems", "resetRevision", "restoredValue", "columns", "freeSpaceWidths", "northFreeSpaceHeight", "northUnavailable", "southFreeSpaceHeight", "southUnavailable", "cornerFreeSpaceSizes", "cornerUnavailable", "expandWidths", "notice", "hasUndo", "canUndo", "width", "height", "contentRows", "rowSpan", "widgetLabel", "scopeLabel", "previewPending", "error"], outputs: ["state", "undo", "preview", "apply", "cancel"] }, { kind: "component", type: DynamicWidgetContextToolbarComponent, selector: "praxis-dynamic-widget-context-toolbar", inputs: ["showSize", "sizeDisabled", "sizeLabel", "toolbarLabel", "contextLabel", "contextTooltip", "showAssistant", "assistantLabel", "assistantTooltip", "showComponentSettings", "componentSettingsBusy", "componentSettingsLabel", "componentSettingsTooltip", "showShellSettings", "shellSettingsLabel", "shellSettingsTooltip", "showDuplicate", "duplicateLabel", "showRemove", "moreActionsLabel", "removeLabel"], outputs: ["size", "assistant", "componentSettings", "shellSettings", "duplicate", "remove"] }, { kind: "directive", type: DynamicWidgetLoaderDirective, selector: "[dynamicWidgetLoader]", inputs: ["dynamicWidgetLoader", "ownerWidgetKey", "context", "strictValidation", "autoWireOutputs"], outputs: ["widgetEvent", "widgetDiagnostic"], exportAs: ["dynamicWidgetLoader"] }, { kind: "component", type: WidgetShellComponent, selector: "praxis-widget-shell", inputs: ["shell", "context", "dragSurfaceEnabled", "dragSurfaceLabel"], outputs: ["action", "dragSurfacePointerDown", "dragSurfaceKeydown"] }] });
|
|
77077
78312
|
}
|
|
77078
78313
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: DynamicWidgetPageComponent, decorators: [{
|
|
77079
78314
|
type: Component,
|
|
@@ -77601,7 +78836,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
77601
78836
|
</div>
|
|
77602
78837
|
}
|
|
77603
78838
|
</div>
|
|
77604
|
-
`, styles: [":host{display:block;min-width:0}.pdx-page-wrapper{box-sizing:border-box;padding-inline:var(--pdx-page-padding-inline, 0px);position:relative;display:block;background:var(--pdx-page-bg, var(--_pdx-preset-page-bg, transparent));color:var(--pdx-page-color, inherit)}.pdx-page{display:grid;gap:var(--pdx-page-gap, 12px);grid-template-columns:minmax(0,1fr)}.pdx-page--canvas{align-items:start;grid-auto-flow:dense}.pdx-page-wrapper.editing .pdx-page--canvas{padding-block-start:var(--pdx-canvas-context-toolbar-safe-area, 60px);padding-block-end:22px;padding-inline:22px;box-sizing:border-box}.pdx-page-settings{position:sticky;top:8px;z-index:2;color:inherit;margin-bottom:6px}.pdx-widget{--pdx-widget-highlight-active: 0;--pdx-resize-highlight-background: var(--md-sys-color-primary-container);position:relative;background:var(--pfx-surface, transparent);border-radius:6px;min-width:0;min-height:0}.pdx-widget--interactive{cursor:pointer}.pdx-widget--selected:not(.pdx-widget--canvas-blocked):not([data-resize-feedback]),.pdx-widget--interactive:not(.pdx-widget--canvas-blocked):not([data-resize-feedback]):has(:focus-visible):not(:has(.pdx-widget :focus-visible)){--pdx-widget-highlight-active: 1}.pdx-widget--canvas-blocked,.pdx-widget--canvas[data-resize-feedback]{--pdx-widget-highlight-active: 0}.pdx-widget--canvas{align-self:stretch}.pdx-widget--canvas[data-resize-feedback]:after{content:\"\";position:absolute;inset:0;padding:2px;border-radius:14px;background:var(--pdx-resize-feedback-color);opacity:0;pointer-events:none;transition:opacity .14s ease,filter .14s ease;filter:saturate(1.02) drop-shadow(0 0 5px color-mix(in srgb,var(--md-sys-color-primary) 10%,transparent));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.pdx-widget--canvas-blocked:before{content:\"\";position:absolute;inset:0;border-radius:14px;pointer-events:none;z-index:1;transition:opacity .14s ease,box-shadow .14s ease,border-color .14s ease}.pdx-widget--canvas-blocked:before{border:1px solid color-mix(in srgb,var(--md-sys-color-error) 74%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--md-sys-color-error) 20%,transparent),0 10px 24px color-mix(in srgb,var(--md-sys-color-error) 12%,transparent)}[data-resize-feedback=valid]{--pdx-resize-feedback-color: #27864b}[data-resize-feedback=minimum]{--pdx-resize-feedback-color: #bc8a00}[data-resize-feedback=blocked]{--pdx-resize-feedback-color: var(--md-sys-color-error)}.pdx-widget--canvas[data-resize-feedback]:after{background:var(--pdx-resize-feedback-color);opacity:1;z-index:2}.pdx-resize-feedback{position:absolute;inset-inline:8px;bottom:8px;width:fit-content;max-width:calc(100% - 16px);box-sizing:border-box;display:flex;align-items:center;gap:6px;padding:4px 8px;border:2px solid var(--pdx-resize-feedback-color);border-radius:8px;color:var(--md-sys-color-on-surface);background:var(--md-sys-color-surface);font-size:12px;line-height:18px;pointer-events:none;z-index:3}.pdx-standalone-size-editor{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid var(--md-sys-color-outline-variant);border-radius:16px;background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface);box-shadow:var(--mat-sys-level3, 0 8px 24px rgba(0, 0, 0, .24))}.pdx-standalone-size-editor__footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--md-sys-color-outline-variant)}.pdx-resize-feedback mat-icon{flex:0 0 18px;width:18px;height:18px;font-size:18px}.pdx-resize-feedback--floating{position:static;max-width:min(320px,calc(100vw - 24px));overflow-wrap:anywhere}.pdx-resize-feedback--floating strong{display:block}.pdx-canvas-edges{position:absolute;inset:0;pointer-events:none;z-index:5}.pdx-canvas-edge{position:absolute;display:grid;place-items:center;box-sizing:border-box;width:min(24px,50%);height:min(24px,50%);padding:0;border:0;background:transparent;color:var(--md-sys-color-primary);pointer-events:auto;touch-action:none;transform:translate(-50%,-50%)}.pdx-canvas-edge:after{content:\"\";box-sizing:border-box;width:min(12px,100%);height:min(12px,100%);pointer-events:none;border:2px solid currentColor;border-radius:2px;background:var(--md-sys-color-surface)}.pdx-widget--canvas:has(>praxis-widget-shell[data-interaction-highlight=gradient]){--pdx-resize-highlight-background: linear-gradient(135deg, var(--md-sys-color-primary), var(--md-sys-color-tertiary), var(--md-sys-color-secondary))}.pdx-canvas-edge:hover:after,.pdx-canvas-edge:focus-visible:after{background:var(--pdx-resize-highlight-background)}.pdx-canvas-edge[data-canvas-edge=north-west]{left:0;top:0;cursor:nwse-resize}.pdx-canvas-edge[data-canvas-edge=north]{left:50%;top:0;cursor:ns-resize}.pdx-canvas-edge[data-canvas-edge=north-east]{left:100%;top:0;cursor:nesw-resize}.pdx-canvas-edge[data-canvas-edge=east]{left:100%;top:50%;width:min(24px,100%);cursor:ew-resize}.pdx-canvas-edge[data-canvas-edge=south-east]{left:100%;top:100%;cursor:nwse-resize}.pdx-canvas-edge[data-canvas-edge=south]{left:50%;top:100%;cursor:ns-resize}.pdx-canvas-edge[data-canvas-edge=south-west]{left:0;top:100%;cursor:nesw-resize}.pdx-canvas-edge[data-canvas-edge=west]{left:0;top:50%;width:min(24px,100%);cursor:ew-resize}.pdx-page-wrapper:has(>.pdx-page>.pdx-widget>praxis-widget-shell>.pdx-shell.expanded)>.pdx-page>.pdx-widget>.pdx-canvas-edges,.pdx-page-wrapper:has(>.pdx-page>.pdx-widget>praxis-widget-shell>.pdx-shell.fullscreen)>.pdx-page>.pdx-widget>.pdx-canvas-edges{display:none}.pdx-widget--canvas:focus-visible,.pdx-canvas-edge:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.pdx-canvas-snap-preview{position:relative;display:flex;align-items:center;justify-content:center;align-self:stretch;border-radius:12px;pointer-events:none;z-index:2;background:color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-primary) 45%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent);animation:pdx-snap-preview-pulse .48s ease-out infinite alternate}.pdx-canvas-snap-preview:before,.pdx-canvas-snap-preview:after{content:\"\";position:absolute;border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-primary) 82%,var(--md-sys-color-tertiary) 18%);opacity:.72}.pdx-canvas-snap-preview:before{inset:0 auto 0 0;width:3px}.pdx-canvas-snap-preview:after{inset:0 0 auto;height:3px}.pdx-canvas-snap-preview--invalid{background:color-mix(in srgb,var(--md-sys-color-error) 4%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-error) 65%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent)}.pdx-canvas-snap-preview--invalid:before,.pdx-canvas-snap-preview--invalid:after{background:color-mix(in srgb,var(--md-sys-color-error) 86%,var(--md-sys-color-error-container) 14%)}.pdx-canvas-snap-preview--swap{background:color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-primary) 65%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent)}.pdx-canvas-snap-preview--swap:before,.pdx-canvas-snap-preview--swap:after{background:color-mix(in srgb,var(--md-sys-color-primary) 86%,var(--md-sys-color-tertiary) 14%)}.pdx-canvas-snap-preview__badge{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.2;letter-spacing:.02em;white-space:nowrap;background:var(--md-sys-color-surface-container-highest, var(--mat-sys-surface-container-highest));color:var(--md-sys-color-on-surface, #1e293b);box-shadow:0 4px 16px color-mix(in srgb,var(--mat-sys-shadow, #000) 20%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 40%,transparent);pointer-events:none}.pdx-canvas-snap-preview__badge-icon{font-size:16px;width:16px;height:16px;line-height:16px}.pdx-canvas-snap-preview__badge--invalid{color:var(--md-sys-color-error, #ba1a1a);border-color:color-mix(in srgb,var(--md-sys-color-error) 30%,transparent)}.pdx-canvas-snap-preview__badge--swap{color:var(--md-sys-color-primary, #0061a4);border-color:color-mix(in srgb,var(--md-sys-color-primary) 30%,transparent)}@media(prefers-reduced-motion:reduce){.pdx-canvas-snap-preview{animation:none}.pdx-widget--canvas[data-resize-feedback]:after,.pdx-widget--canvas-blocked:before{transition:none}}@media(forced-colors:active){.pdx-widget--canvas-blocked:before{border:2px solid Highlight}.pdx-widget--canvas:focus-visible,.pdx-canvas-edge:focus-visible{outline-color:Highlight}.pdx-canvas-edge:hover:after,.pdx-canvas-edge:focus-visible:after{background:Highlight}.pdx-widget--canvas[data-resize-feedback]:after{background:Highlight}}@keyframes pdx-snap-preview-pulse{0%{opacity:.72;transform:scale(.996)}to{opacity:1;transform:scale(1)}}.pdx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pdx-group{display:grid;gap:12px;grid-column:1 / -1;padding:12px;border-radius:16px;background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 76%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 72%,transparent)}.pdx-group--hero{padding:16px;background:linear-gradient(180deg,color-mix(in srgb,var(--md-sys-color-primary-container) 42%,transparent),color-mix(in srgb,var(--md-sys-color-surface-container-low) 86%,transparent))}.pdx-group--rail{align-self:start}.pdx-group-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.pdx-group-title{font-size:.95rem;font-weight:600;color:var(--md-sys-color-on-surface)}.pdx-group-content{display:grid;gap:12px}.pdx-group-content--stack{grid-template-columns:minmax(0,1fr)}.pdx-group-content--row{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.pdx-group-content--grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.pdx-group-tabs{display:grid;gap:12px}.pdx-tabs-header{display:flex;flex-wrap:wrap;gap:8px}.pdx-tab-chip{appearance:none;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);color:var(--md-sys-color-on-surface);border-radius:999px;padding:8px 12px;font:inherit;cursor:pointer}.pdx-tab-chip.active{border-color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary-container) 78%,transparent);color:var(--md-sys-color-on-primary-container)}.pdx-page-wrapper.editing .pdx-widget-settings{opacity:1}\n"] }]
|
|
78839
|
+
`, styles: [":host{display:block;min-width:0;max-width:100%}.pdx-page-wrapper{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding-inline:var(--pdx-page-padding-inline, 0px);position:relative;display:block;background:var(--pdx-page-bg, var(--_pdx-preset-page-bg, transparent));color:var(--pdx-page-color, inherit)}.pdx-page{display:grid;width:100%;min-width:0;max-width:100%;gap:var(--pdx-page-gap, 12px);grid-template-columns:minmax(0,1fr)}.pdx-page--canvas{align-items:start;grid-auto-flow:dense}.pdx-page-wrapper.editing .pdx-page--canvas{padding-block-start:var(--pdx-canvas-context-toolbar-safe-area, 60px);padding-block-end:22px;padding-inline:22px;box-sizing:border-box}.pdx-page-settings{position:sticky;top:8px;z-index:2;color:inherit;margin-bottom:6px}.pdx-widget{--pdx-widget-highlight-active: 0;--pdx-resize-highlight-background: var(--md-sys-color-primary-container);position:relative;background:var(--pfx-surface, transparent);border-radius:6px;min-width:0;max-width:100%;min-height:0}.pdx-widget--interactive{cursor:pointer}.pdx-widget--selected:not(.pdx-widget--canvas-blocked):not([data-resize-feedback]),.pdx-widget--interactive:not(.pdx-widget--canvas-blocked):not([data-resize-feedback]):has(:focus-visible):not(:has(.pdx-widget :focus-visible)){--pdx-widget-highlight-active: 1}.pdx-widget--canvas-blocked,.pdx-widget--canvas[data-resize-feedback]{--pdx-widget-highlight-active: 0}.pdx-widget--canvas{align-self:stretch}.pdx-widget--canvas[data-resize-feedback]:after{content:\"\";position:absolute;inset:0;padding:2px;border-radius:14px;background:var(--pdx-resize-feedback-color);opacity:0;pointer-events:none;transition:opacity .14s ease,filter .14s ease;filter:saturate(1.02) drop-shadow(0 0 5px color-mix(in srgb,var(--md-sys-color-primary) 10%,transparent));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude}.pdx-widget--canvas-blocked:before{content:\"\";position:absolute;inset:0;border-radius:14px;pointer-events:none;z-index:1;transition:opacity .14s ease,box-shadow .14s ease,border-color .14s ease}.pdx-widget--canvas-blocked:before{border:1px solid color-mix(in srgb,var(--md-sys-color-error) 74%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--md-sys-color-error) 20%,transparent),0 10px 24px color-mix(in srgb,var(--md-sys-color-error) 12%,transparent)}[data-resize-feedback=valid]{--pdx-resize-feedback-color: #27864b}[data-resize-feedback=minimum]{--pdx-resize-feedback-color: #bc8a00}[data-resize-feedback=blocked]{--pdx-resize-feedback-color: var(--md-sys-color-error)}.pdx-widget--canvas[data-resize-feedback]:after{background:var(--pdx-resize-feedback-color);opacity:1;z-index:2}.pdx-resize-feedback{position:absolute;inset-inline:8px;bottom:8px;width:fit-content;max-width:calc(100% - 16px);box-sizing:border-box;display:flex;align-items:center;gap:6px;padding:4px 8px;border:2px solid var(--pdx-resize-feedback-color);border-radius:8px;color:var(--md-sys-color-on-surface);background:var(--md-sys-color-surface);font-size:12px;line-height:18px;pointer-events:none;z-index:3}.pdx-standalone-size-editor{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid var(--md-sys-color-outline-variant);border-radius:16px;background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface);box-shadow:var(--mat-sys-level3, 0 8px 24px rgba(0, 0, 0, .24))}.pdx-standalone-size-editor__footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--md-sys-color-outline-variant)}.pdx-resize-feedback mat-icon{flex:0 0 18px;width:18px;height:18px;font-size:18px}.pdx-resize-feedback--floating{position:static;max-width:min(320px,calc(100vw - 24px));overflow-wrap:anywhere}.pdx-resize-feedback--floating strong{display:block}.pdx-canvas-edges{position:absolute;inset:0;pointer-events:none;z-index:5}.pdx-canvas-edge{position:absolute;display:grid;place-items:center;box-sizing:border-box;width:min(24px,50%);height:min(24px,50%);padding:0;border:0;background:transparent;color:var(--md-sys-color-primary);pointer-events:auto;touch-action:none;transform:translate(-50%,-50%)}.pdx-canvas-edge:after{content:\"\";box-sizing:border-box;width:min(12px,100%);height:min(12px,100%);pointer-events:none;border:2px solid currentColor;border-radius:2px;background:var(--md-sys-color-surface)}.pdx-widget--canvas:has(>praxis-widget-shell[data-interaction-highlight=gradient]){--pdx-resize-highlight-background: linear-gradient(135deg, var(--md-sys-color-primary), var(--md-sys-color-tertiary), var(--md-sys-color-secondary))}.pdx-canvas-edge:hover:after,.pdx-canvas-edge:focus-visible:after{background:var(--pdx-resize-highlight-background)}.pdx-canvas-edge[data-canvas-edge=north-west]{left:0;top:0;cursor:nwse-resize}.pdx-canvas-edge[data-canvas-edge=north]{left:50%;top:0;cursor:ns-resize}.pdx-canvas-edge[data-canvas-edge=north-east]{left:100%;top:0;cursor:nesw-resize}.pdx-canvas-edge[data-canvas-edge=east]{left:100%;top:50%;width:min(24px,100%);cursor:ew-resize}.pdx-canvas-edge[data-canvas-edge=south-east]{left:100%;top:100%;cursor:nwse-resize}.pdx-canvas-edge[data-canvas-edge=south]{left:50%;top:100%;cursor:ns-resize}.pdx-canvas-edge[data-canvas-edge=south-west]{left:0;top:100%;cursor:nesw-resize}.pdx-canvas-edge[data-canvas-edge=west]{left:0;top:50%;width:min(24px,100%);cursor:ew-resize}.pdx-page-wrapper:has(>.pdx-page>.pdx-widget>praxis-widget-shell>.pdx-shell.expanded)>.pdx-page>.pdx-widget>.pdx-canvas-edges,.pdx-page-wrapper:has(>.pdx-page>.pdx-widget>praxis-widget-shell>.pdx-shell.fullscreen)>.pdx-page>.pdx-widget>.pdx-canvas-edges{display:none}.pdx-widget--canvas:focus-visible,.pdx-canvas-edge:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.pdx-canvas-snap-preview{position:relative;display:flex;align-items:center;justify-content:center;align-self:stretch;border-radius:12px;pointer-events:none;z-index:2;background:color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-primary) 45%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent);animation:pdx-snap-preview-pulse .48s ease-out infinite alternate}.pdx-canvas-snap-preview:before,.pdx-canvas-snap-preview:after{content:\"\";position:absolute;border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-primary) 82%,var(--md-sys-color-tertiary) 18%);opacity:.72}.pdx-canvas-snap-preview:before{inset:0 auto 0 0;width:3px}.pdx-canvas-snap-preview:after{inset:0 0 auto;height:3px}.pdx-canvas-snap-preview--invalid{background:color-mix(in srgb,var(--md-sys-color-error) 4%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-error) 65%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent)}.pdx-canvas-snap-preview--invalid:before,.pdx-canvas-snap-preview--invalid:after{background:color-mix(in srgb,var(--md-sys-color-error) 86%,var(--md-sys-color-error-container) 14%)}.pdx-canvas-snap-preview--swap{background:color-mix(in srgb,var(--md-sys-color-primary) 6%,transparent);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--md-sys-color-primary) 65%,transparent),inset 0 0 0 2px color-mix(in srgb,var(--md-sys-color-surface) 60%,transparent)}.pdx-canvas-snap-preview--swap:before,.pdx-canvas-snap-preview--swap:after{background:color-mix(in srgb,var(--md-sys-color-primary) 86%,var(--md-sys-color-tertiary) 14%)}.pdx-canvas-snap-preview__badge{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.2;letter-spacing:.02em;white-space:nowrap;background:var(--md-sys-color-surface-container-highest, var(--mat-sys-surface-container-highest));color:var(--md-sys-color-on-surface, #1e293b);box-shadow:0 4px 16px color-mix(in srgb,var(--mat-sys-shadow, #000) 20%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 40%,transparent);pointer-events:none}.pdx-canvas-snap-preview__badge-icon{font-size:16px;width:16px;height:16px;line-height:16px}.pdx-canvas-snap-preview__badge--invalid{color:var(--md-sys-color-error, #ba1a1a);border-color:color-mix(in srgb,var(--md-sys-color-error) 30%,transparent)}.pdx-canvas-snap-preview__badge--swap{color:var(--md-sys-color-primary, #0061a4);border-color:color-mix(in srgb,var(--md-sys-color-primary) 30%,transparent)}@media(prefers-reduced-motion:reduce){.pdx-canvas-snap-preview{animation:none}.pdx-widget--canvas[data-resize-feedback]:after,.pdx-widget--canvas-blocked:before{transition:none}}@media(forced-colors:active){.pdx-widget--canvas-blocked:before{border:2px solid Highlight}.pdx-widget--canvas:focus-visible,.pdx-canvas-edge:focus-visible{outline-color:Highlight}.pdx-canvas-edge:hover:after,.pdx-canvas-edge:focus-visible:after{background:Highlight}.pdx-widget--canvas[data-resize-feedback]:after{background:Highlight}}@keyframes pdx-snap-preview-pulse{0%{opacity:.72;transform:scale(.996)}to{opacity:1;transform:scale(1)}}.pdx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pdx-group{display:grid;gap:12px;grid-column:1 / -1;padding:12px;border-radius:16px;background:color-mix(in srgb,var(--md-sys-color-surface-container-low) 76%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant) 72%,transparent)}.pdx-group--hero{padding:16px;background:linear-gradient(180deg,color-mix(in srgb,var(--md-sys-color-primary-container) 42%,transparent),color-mix(in srgb,var(--md-sys-color-surface-container-low) 86%,transparent))}.pdx-group--rail{align-self:start}.pdx-group-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.pdx-group-title{font-size:.95rem;font-weight:600;color:var(--md-sys-color-on-surface)}.pdx-group-content{display:grid;gap:12px}.pdx-group-content--stack{grid-template-columns:minmax(0,1fr)}.pdx-group-content--row{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.pdx-group-content--grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.pdx-group-tabs{display:grid;gap:12px}.pdx-tabs-header{display:flex;flex-wrap:wrap;gap:8px}.pdx-tab-chip{appearance:none;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);color:var(--md-sys-color-on-surface);border-radius:999px;padding:8px 12px;font:inherit;cursor:pointer}.pdx-tab-chip.active{border-color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary-container) 78%,transparent);color:var(--md-sys-color-on-primary-container)}.pdx-page-wrapper.editing .pdx-widget-settings{opacity:1}\n"] }]
|
|
77605
78840
|
}], ctorParameters: () => [], propDecorators: { widgetSizeTemplate: [{
|
|
77606
78841
|
type: ViewChild,
|
|
77607
78842
|
args: ['widgetSizeTemplate', { static: true }]
|
|
@@ -84314,6 +85549,8 @@ class PraxisMicroVizHostComponent {
|
|
|
84314
85549
|
return;
|
|
84315
85550
|
}
|
|
84316
85551
|
let observer = null;
|
|
85552
|
+
let rafId = null;
|
|
85553
|
+
let pendingWidth;
|
|
84317
85554
|
const updateWidth = (rawWidth) => {
|
|
84318
85555
|
if (!Number.isFinite(rawWidth) || rawWidth < 48) {
|
|
84319
85556
|
return;
|
|
@@ -84333,12 +85570,27 @@ class PraxisMicroVizHostComponent {
|
|
|
84333
85570
|
this.ngZone.runOutsideAngular(() => {
|
|
84334
85571
|
updateWidth(el.getBoundingClientRect().width);
|
|
84335
85572
|
observer = new ResizeObserver((entries) => {
|
|
84336
|
-
|
|
84337
|
-
|
|
85573
|
+
pendingWidth = entries[0]?.contentRect?.width ?? el.getBoundingClientRect().width;
|
|
85574
|
+
if (typeof requestAnimationFrame !== 'function') {
|
|
85575
|
+
updateWidth(pendingWidth);
|
|
85576
|
+
return;
|
|
85577
|
+
}
|
|
85578
|
+
if (rafId !== null)
|
|
85579
|
+
return;
|
|
85580
|
+
rafId = requestAnimationFrame(() => {
|
|
85581
|
+
rafId = null;
|
|
85582
|
+
updateWidth(pendingWidth ?? el.getBoundingClientRect().width);
|
|
85583
|
+
});
|
|
84338
85584
|
});
|
|
84339
85585
|
observer.observe(el);
|
|
84340
85586
|
});
|
|
84341
|
-
onCleanup(() =>
|
|
85587
|
+
onCleanup(() => {
|
|
85588
|
+
if (rafId !== null && typeof cancelAnimationFrame === 'function') {
|
|
85589
|
+
cancelAnimationFrame(rafId);
|
|
85590
|
+
}
|
|
85591
|
+
rafId = null;
|
|
85592
|
+
observer?.disconnect();
|
|
85593
|
+
});
|
|
84342
85594
|
});
|
|
84343
85595
|
}
|
|
84344
85596
|
normalizedVisualization = computed(() => {
|
|
@@ -91485,7 +92737,7 @@ const MAX_DISTINCT_KPI_QUERIES_PER_PAGE = 24;
|
|
|
91485
92737
|
const FORM_INPUTS = ['config', 'mode', 'emptyState', 'presentationModeGlobal', 'backConfig',
|
|
91486
92738
|
'presentation', 'notifyIfOutdated', 'snoozeMs', 'autoOpenSettingsOnOutdated'];
|
|
91487
92739
|
const TABLE_INPUTS = ['config', 'resourcePath', 'horizontalScroll'];
|
|
91488
|
-
const CHART_INPUTS = ['config', 'chartDocument', 'resourceKey', 'resourcePath', 'projectionKey', 'queryContext'];
|
|
92740
|
+
const CHART_INPUTS = ['config', 'chartDocument', 'resourceKey', 'resourcePath', 'projectionKey', 'queryContext', 'epistemicBadgeVariant'];
|
|
91489
92741
|
const KPI_STRIP_INPUTS = ['config', 'queryContext', 'density'];
|
|
91490
92742
|
const KPI_CARD_INPUTS = ['config', 'queryContext', 'density'];
|
|
91491
92743
|
const LIST_INPUTS = ['config', 'resourcePath', 'queryContext'];
|
|
@@ -91965,6 +93217,9 @@ class ProfileCheck {
|
|
|
91965
93217
|
case 'density':
|
|
91966
93218
|
this.oneOf(input, at, ['comfortable', 'compact']);
|
|
91967
93219
|
break;
|
|
93220
|
+
case 'epistemicBadgeVariant':
|
|
93221
|
+
this.oneOf(input, at, ['compact', 'detailed']);
|
|
93222
|
+
break;
|
|
91968
93223
|
}
|
|
91969
93224
|
}
|
|
91970
93225
|
if (component === 'praxis-kpi-strip' && isRecord$1(value['config'])) {
|
|
@@ -94472,6 +95727,2324 @@ function resolveDefaultCurrencyForLocale(locale) {
|
|
|
94472
95727
|
return 'USD';
|
|
94473
95728
|
}
|
|
94474
95729
|
|
|
95730
|
+
const PRAXIS_INTELLIGENCE_JOBS_BASE_PATH = '/api/praxis/intelligence/jobs';
|
|
95731
|
+
const DEFAULT_POLL_INTERVAL_MS = 1_500;
|
|
95732
|
+
const DEFAULT_POLL_MAX_ATTEMPTS = 120;
|
|
95733
|
+
const DEFAULT_POLL_MAX_DURATION_MS = 300_000;
|
|
95734
|
+
const DEFAULT_POLL_MAX_TRANSIENT_ERRORS = 2;
|
|
95735
|
+
class PraxisIntelligenceJobError extends Error {
|
|
95736
|
+
errorCode;
|
|
95737
|
+
httpStatus;
|
|
95738
|
+
correlationId;
|
|
95739
|
+
problemDetail;
|
|
95740
|
+
userMessage;
|
|
95741
|
+
constructor(params) {
|
|
95742
|
+
super(params.userMessage);
|
|
95743
|
+
this.name = 'PraxisIntelligenceJobError';
|
|
95744
|
+
this.errorCode = params.errorCode;
|
|
95745
|
+
this.httpStatus = params.httpStatus;
|
|
95746
|
+
this.correlationId = params.correlationId;
|
|
95747
|
+
this.problemDetail = params.problemDetail;
|
|
95748
|
+
this.userMessage = params.userMessage;
|
|
95749
|
+
}
|
|
95750
|
+
}
|
|
95751
|
+
/**
|
|
95752
|
+
* Lightweight, fail-closed HTTP client for Praxis intelligence job receipts and cancellation
|
|
95753
|
+
* (`/api/praxis/intelligence/jobs/{jobId}`), honoring `API_URL`, session/runtime headers,
|
|
95754
|
+
* `PAX_FETCH_HEADERS`, and RFC 7807 `ProblemDetail` translation.
|
|
95755
|
+
*/
|
|
95756
|
+
class PraxisIntelligenceJobsService {
|
|
95757
|
+
http = inject(HttpClient, { optional: true });
|
|
95758
|
+
apiUrlConfig = inject(API_URL, { optional: true });
|
|
95759
|
+
enterpriseContext = inject(EnterpriseRuntimeContextService, { optional: true });
|
|
95760
|
+
sessionTransport = inject(PraxisSessionTransportService, { optional: true });
|
|
95761
|
+
i18n = inject(PraxisI18nService, { optional: true });
|
|
95762
|
+
getJob(jobId, options) {
|
|
95763
|
+
const cleanJobId = this.normalizeJobId(jobId);
|
|
95764
|
+
if (!cleanJobId) {
|
|
95765
|
+
return throwError(() => this.createError('INVALID_REQUEST', 422, null, null));
|
|
95766
|
+
}
|
|
95767
|
+
if (!this.http) {
|
|
95768
|
+
return throwError(() => this.createError('INTELLIGENCE_ENGINE_UNAVAILABLE', 503, null, null));
|
|
95769
|
+
}
|
|
95770
|
+
const url = this.resolveJobUrl(cleanJobId, '', options);
|
|
95771
|
+
const headers = this.resolveRequestHeaders(options);
|
|
95772
|
+
const context = options?.silent
|
|
95773
|
+
? new HttpContext().set(PRAXIS_LOADING_CTX, createSilentPraxisLoadingContext('PraxisIntelligenceJobsService', cleanJobId, 'data'))
|
|
95774
|
+
: undefined;
|
|
95775
|
+
const requestOptions = headers || context
|
|
95776
|
+
? {
|
|
95777
|
+
...(headers ? { headers } : {}),
|
|
95778
|
+
...(context ? { context } : {}),
|
|
95779
|
+
}
|
|
95780
|
+
: undefined;
|
|
95781
|
+
return this.http.get(url, requestOptions).pipe(map((raw) => this.normalizeReceipt(raw, cleanJobId)), catchError((error) => throwError(() => this.translateHttpError(error))));
|
|
95782
|
+
}
|
|
95783
|
+
cancelJob(jobId, options) {
|
|
95784
|
+
const cleanJobId = this.normalizeJobId(jobId);
|
|
95785
|
+
if (!cleanJobId) {
|
|
95786
|
+
return throwError(() => this.createError('INVALID_REQUEST', 422, null, null));
|
|
95787
|
+
}
|
|
95788
|
+
if (!this.http) {
|
|
95789
|
+
return throwError(() => this.createError('INTELLIGENCE_ENGINE_UNAVAILABLE', 503, null, null));
|
|
95790
|
+
}
|
|
95791
|
+
const url = this.resolveJobUrl(cleanJobId, '/cancel', options);
|
|
95792
|
+
const headers = this.resolveRequestHeaders(options);
|
|
95793
|
+
const context = options?.silent
|
|
95794
|
+
? new HttpContext().set(PRAXIS_LOADING_CTX, createSilentPraxisLoadingContext('PraxisIntelligenceJobsService', cleanJobId, 'action'))
|
|
95795
|
+
: undefined;
|
|
95796
|
+
const requestOptions = headers || context
|
|
95797
|
+
? {
|
|
95798
|
+
...(headers ? { headers } : {}),
|
|
95799
|
+
...(context ? { context } : {}),
|
|
95800
|
+
}
|
|
95801
|
+
: undefined;
|
|
95802
|
+
return this.http.post(url, null, requestOptions).pipe(map((raw) => this.normalizeReceipt(raw, cleanJobId)), catchError((error) => throwError(() => this.translateHttpError(error))));
|
|
95803
|
+
}
|
|
95804
|
+
pollJob(jobId, options) {
|
|
95805
|
+
const cleanJobId = this.normalizeJobId(jobId);
|
|
95806
|
+
if (!cleanJobId) {
|
|
95807
|
+
return throwError(() => this.createError('INVALID_REQUEST', 422, null, null));
|
|
95808
|
+
}
|
|
95809
|
+
if (!this.http) {
|
|
95810
|
+
return throwError(() => this.createError('INTELLIGENCE_ENGINE_UNAVAILABLE', 503, null, null));
|
|
95811
|
+
}
|
|
95812
|
+
const intervalMs = this.normalizePositiveMs(options?.intervalMs, DEFAULT_POLL_INTERVAL_MS);
|
|
95813
|
+
const maxAttempts = this.normalizePositiveInt(options?.maxAttempts, DEFAULT_POLL_MAX_ATTEMPTS);
|
|
95814
|
+
const maxDurationMs = this.normalizePositiveMs(options?.maxDurationMs, DEFAULT_POLL_MAX_DURATION_MS);
|
|
95815
|
+
const maxTransientErrors = this.normalizeNonNegativeInt(options?.maxTransientErrors, DEFAULT_POLL_MAX_TRANSIENT_ERRORS);
|
|
95816
|
+
return defer(() => {
|
|
95817
|
+
const startedAt = Date.now();
|
|
95818
|
+
let attempts = 0;
|
|
95819
|
+
let consecutiveTransientErrors = 0;
|
|
95820
|
+
let stream$ = concat(of(0), interval(intervalMs)).pipe(exhaustMap(() => {
|
|
95821
|
+
const elapsedMs = Date.now() - startedAt;
|
|
95822
|
+
if (attempts >= maxAttempts || (attempts > 0 && elapsedMs >= maxDurationMs)) {
|
|
95823
|
+
return throwError(() => this.createError('JOB_TIMEOUT', 504, null, null));
|
|
95824
|
+
}
|
|
95825
|
+
attempts += 1;
|
|
95826
|
+
return this.getJob(cleanJobId, {
|
|
95827
|
+
...options,
|
|
95828
|
+
silent: options?.silent ?? true,
|
|
95829
|
+
}).pipe(tap$1(() => {
|
|
95830
|
+
consecutiveTransientErrors = 0;
|
|
95831
|
+
}), catchError((err) => {
|
|
95832
|
+
const jobErr = this.translateHttpError(err);
|
|
95833
|
+
const isRetryable = PRAXIS_INTELLIGENCE_ERROR_CATALOG[jobErr.errorCode].retryable;
|
|
95834
|
+
if (isRetryable && consecutiveTransientErrors < maxTransientErrors) {
|
|
95835
|
+
consecutiveTransientErrors += 1;
|
|
95836
|
+
return EMPTY;
|
|
95837
|
+
}
|
|
95838
|
+
return throwError(() => jobErr);
|
|
95839
|
+
}));
|
|
95840
|
+
}), takeWhile((receipt) => !isPraxisIntelligenceJobTerminal(receipt.status), true));
|
|
95841
|
+
if (this.enterpriseContext?.contextChanges$ && options?.cancelOnContextChange !== false) {
|
|
95842
|
+
const initialEffective = this.enterpriseContext.effectiveContext;
|
|
95843
|
+
let confirmedTenantId = initialEffective?.activeTenant?.tenantId ?? null;
|
|
95844
|
+
let confirmedVersion = initialEffective?.contextVersion ?? null;
|
|
95845
|
+
let seenReadyOnStream = false;
|
|
95846
|
+
const contextChanged$ = this.enterpriseContext.contextChanges$.pipe(filter((ctx) => {
|
|
95847
|
+
if (ctx == null && !seenReadyOnStream) {
|
|
95848
|
+
return false;
|
|
95849
|
+
}
|
|
95850
|
+
const nextReady = ctx?.state === 'ready' ? ctx.effectiveContext : null;
|
|
95851
|
+
const nextTenantId = nextReady?.activeTenant?.tenantId ?? null;
|
|
95852
|
+
const nextVersion = nextReady?.contextVersion ?? null;
|
|
95853
|
+
if (nextReady !== null) {
|
|
95854
|
+
seenReadyOnStream = true;
|
|
95855
|
+
}
|
|
95856
|
+
if (confirmedTenantId === null && confirmedVersion === null) {
|
|
95857
|
+
if (nextTenantId !== null || nextVersion !== null) {
|
|
95858
|
+
confirmedTenantId = nextTenantId;
|
|
95859
|
+
confirmedVersion = nextVersion;
|
|
95860
|
+
}
|
|
95861
|
+
return false;
|
|
95862
|
+
}
|
|
95863
|
+
if (nextReady === null) {
|
|
95864
|
+
return true;
|
|
95865
|
+
}
|
|
95866
|
+
return nextTenantId !== confirmedTenantId || nextVersion !== confirmedVersion;
|
|
95867
|
+
}));
|
|
95868
|
+
stream$ = stream$.pipe(takeUntil$1(contextChanged$));
|
|
95869
|
+
}
|
|
95870
|
+
return options?.destroyRef
|
|
95871
|
+
? stream$.pipe(takeUntilDestroyed(options.destroyRef))
|
|
95872
|
+
: stream$;
|
|
95873
|
+
});
|
|
95874
|
+
}
|
|
95875
|
+
translateError(error) {
|
|
95876
|
+
return this.translateHttpError(error);
|
|
95877
|
+
}
|
|
95878
|
+
resolveJobUrl(cleanJobId, suffix, options) {
|
|
95879
|
+
const path = `${PRAXIS_INTELLIGENCE_JOBS_BASE_PATH}/${encodeURIComponent(cleanJobId)}${suffix}`;
|
|
95880
|
+
const entry = this.resolveApiEntry(options?.endpointKey);
|
|
95881
|
+
const base = entry ? buildApiUrl(entry).replace(/\/+$/, '') : '';
|
|
95882
|
+
if (!base) {
|
|
95883
|
+
return path;
|
|
95884
|
+
}
|
|
95885
|
+
if (/\/api$/i.test(base)) {
|
|
95886
|
+
return `${base}${path.slice(4)}`;
|
|
95887
|
+
}
|
|
95888
|
+
const requestedKey = options?.endpointKey?.trim();
|
|
95889
|
+
const hasDedicatedEntry = Boolean((requestedKey && this.apiUrlConfig?.[requestedKey]) || this.apiUrlConfig?.['intelligence']);
|
|
95890
|
+
if (!hasDedicatedEntry && /\/api\/v\d+$/i.test(base)) {
|
|
95891
|
+
return `${base.replace(/\/api\/v\d+$/i, '/api')}${path.slice(4)}`;
|
|
95892
|
+
}
|
|
95893
|
+
return `${base}${path}`;
|
|
95894
|
+
}
|
|
95895
|
+
resolveApiEntry(endpointKey) {
|
|
95896
|
+
if (!this.apiUrlConfig || typeof this.apiUrlConfig !== 'object') {
|
|
95897
|
+
return undefined;
|
|
95898
|
+
}
|
|
95899
|
+
const requestedKey = endpointKey?.trim();
|
|
95900
|
+
if (requestedKey && this.apiUrlConfig[requestedKey]) {
|
|
95901
|
+
return this.apiUrlConfig[requestedKey];
|
|
95902
|
+
}
|
|
95903
|
+
return this.apiUrlConfig['intelligence'] ?? this.apiUrlConfig['default'];
|
|
95904
|
+
}
|
|
95905
|
+
resolveRequestHeaders(options) {
|
|
95906
|
+
const headerEntries = new Map();
|
|
95907
|
+
const applyMap = (source) => {
|
|
95908
|
+
if (!source || typeof source !== 'object') {
|
|
95909
|
+
return;
|
|
95910
|
+
}
|
|
95911
|
+
for (const [key, rawValue] of Object.entries(source)) {
|
|
95912
|
+
const cleanKey = key.trim();
|
|
95913
|
+
if (!cleanKey || rawValue === undefined || rawValue === null) {
|
|
95914
|
+
continue;
|
|
95915
|
+
}
|
|
95916
|
+
if (Array.isArray(rawValue)) {
|
|
95917
|
+
const items = rawValue.map((item) => String(item).trim()).filter(Boolean);
|
|
95918
|
+
if (items.length > 0) {
|
|
95919
|
+
headerEntries.set(cleanKey.toLowerCase(), { name: cleanKey, value: items });
|
|
95920
|
+
}
|
|
95921
|
+
continue;
|
|
95922
|
+
}
|
|
95923
|
+
const stringValue = String(rawValue).trim();
|
|
95924
|
+
if (stringValue) {
|
|
95925
|
+
headerEntries.set(cleanKey.toLowerCase(), { name: cleanKey, value: stringValue });
|
|
95926
|
+
}
|
|
95927
|
+
}
|
|
95928
|
+
};
|
|
95929
|
+
const applyHttpOrRecordHeaders = (source) => {
|
|
95930
|
+
if (!source) {
|
|
95931
|
+
return;
|
|
95932
|
+
}
|
|
95933
|
+
if (source instanceof HttpHeaders) {
|
|
95934
|
+
for (const key of source.keys()) {
|
|
95935
|
+
const values = source.getAll(key);
|
|
95936
|
+
if (values && values.length > 0) {
|
|
95937
|
+
headerEntries.set(key.toLowerCase(), {
|
|
95938
|
+
name: key,
|
|
95939
|
+
value: values.length === 1 ? values[0] : values,
|
|
95940
|
+
});
|
|
95941
|
+
}
|
|
95942
|
+
}
|
|
95943
|
+
return;
|
|
95944
|
+
}
|
|
95945
|
+
applyMap(source);
|
|
95946
|
+
};
|
|
95947
|
+
const hasEnterpriseContext = Boolean(this.enterpriseContext?.effectiveContext || this.enterpriseContext?.snapshot);
|
|
95948
|
+
if (hasEnterpriseContext && this.enterpriseContext?.effectiveRequestHeaders) {
|
|
95949
|
+
applyMap(this.enterpriseContext.effectiveRequestHeaders());
|
|
95950
|
+
}
|
|
95951
|
+
else {
|
|
95952
|
+
const globalHeaders = this.readGlobalFetchHeaders();
|
|
95953
|
+
applyMap(globalHeaders);
|
|
95954
|
+
}
|
|
95955
|
+
const apiEntry = this.resolveApiEntry(options?.endpointKey);
|
|
95956
|
+
applyHttpOrRecordHeaders(apiEntry?.headers);
|
|
95957
|
+
if (this.sessionTransport) {
|
|
95958
|
+
applyMap(this.sessionTransport.getConfirmedHeaders());
|
|
95959
|
+
}
|
|
95960
|
+
applyHttpOrRecordHeaders(options?.headers);
|
|
95961
|
+
let headers = new HttpHeaders();
|
|
95962
|
+
for (const entry of headerEntries.values()) {
|
|
95963
|
+
headers = headers.set(entry.name, entry.value);
|
|
95964
|
+
}
|
|
95965
|
+
if (this.enterpriseContext?.applyHeaders) {
|
|
95966
|
+
headers = this.enterpriseContext.applyHeaders(headers);
|
|
95967
|
+
}
|
|
95968
|
+
return headers.keys().length > 0 ? headers : undefined;
|
|
95969
|
+
}
|
|
95970
|
+
readGlobalFetchHeaders() {
|
|
95971
|
+
try {
|
|
95972
|
+
const factory = globalThis
|
|
95973
|
+
.PAX_FETCH_HEADERS;
|
|
95974
|
+
const result = factory?.();
|
|
95975
|
+
return result && typeof result === 'object' ? result : undefined;
|
|
95976
|
+
}
|
|
95977
|
+
catch {
|
|
95978
|
+
return undefined;
|
|
95979
|
+
}
|
|
95980
|
+
}
|
|
95981
|
+
normalizeReceipt(raw, fallbackJobId) {
|
|
95982
|
+
const unwrapped = this.unwrapPayload(raw);
|
|
95983
|
+
if (!this.isPlainRecord(unwrapped)) {
|
|
95984
|
+
throw this.createError('CONTRACT_VERSION_MISMATCH', 503, null, null);
|
|
95985
|
+
}
|
|
95986
|
+
const jobId = this.readNonBlankString(unwrapped['jobId']) ?? fallbackJobId;
|
|
95987
|
+
const operation = this.readNonBlankString(unwrapped['operation']) ??
|
|
95988
|
+
resolvePraxisIntelligenceMessage(this.i18n, 'praxis.intelligence.job.defaultOperation');
|
|
95989
|
+
const rawStatus = this.readNonBlankString(unwrapped['status'])?.toUpperCase() ?? '';
|
|
95990
|
+
const status = isPraxisIntelligenceJobStatus(rawStatus)
|
|
95991
|
+
? rawStatus
|
|
95992
|
+
: 'FAILED';
|
|
95993
|
+
const rawProgressValue = unwrapped['progressPercent'];
|
|
95994
|
+
const parsedProgress = rawProgressValue !== null &&
|
|
95995
|
+
rawProgressValue !== undefined &&
|
|
95996
|
+
rawProgressValue !== '' &&
|
|
95997
|
+
typeof rawProgressValue !== 'boolean'
|
|
95998
|
+
? Number(rawProgressValue)
|
|
95999
|
+
: Number.NaN;
|
|
96000
|
+
const progressPercent = Number.isFinite(parsedProgress)
|
|
96001
|
+
? Math.max(0, Math.min(100, Math.round(parsedProgress)))
|
|
96002
|
+
: status === 'SUCCEEDED'
|
|
96003
|
+
? 100
|
|
96004
|
+
: 0;
|
|
96005
|
+
const correlationId = this.readNonBlankString(unwrapped['correlationId']) ?? null;
|
|
96006
|
+
const createdAtUtc = this.readNonBlankString(unwrapped['createdAtUtc']) ?? new Date().toISOString();
|
|
96007
|
+
const updatedAtUtc = this.readNonBlankString(unwrapped['updatedAtUtc']) ?? createdAtUtc;
|
|
96008
|
+
const rawErrorCode = this.readNonBlankString(unwrapped['errorCode'])?.toUpperCase();
|
|
96009
|
+
const errorCode = rawErrorCode && isPraxisIntelligenceErrorCode(rawErrorCode)
|
|
96010
|
+
? rawErrorCode
|
|
96011
|
+
: status === 'FAILED'
|
|
96012
|
+
? 'INTELLIGENCE_ENGINE_UNAVAILABLE'
|
|
96013
|
+
: null;
|
|
96014
|
+
const errorDetail = sanitizeIntelligenceDetailText(unwrapped['errorDetail']);
|
|
96015
|
+
const resultPayload = unwrapped['resultPayload'] !== undefined ? unwrapped['resultPayload'] : null;
|
|
96016
|
+
return {
|
|
96017
|
+
jobId,
|
|
96018
|
+
operation,
|
|
96019
|
+
status,
|
|
96020
|
+
progressPercent,
|
|
96021
|
+
correlationId,
|
|
96022
|
+
createdAtUtc,
|
|
96023
|
+
updatedAtUtc,
|
|
96024
|
+
errorCode,
|
|
96025
|
+
errorDetail,
|
|
96026
|
+
resultPayload,
|
|
96027
|
+
};
|
|
96028
|
+
}
|
|
96029
|
+
translateHttpError(error) {
|
|
96030
|
+
if (error instanceof PraxisIntelligenceJobError) {
|
|
96031
|
+
return error;
|
|
96032
|
+
}
|
|
96033
|
+
if (error instanceof HttpErrorResponse) {
|
|
96034
|
+
const problem = this.extractProblemDetail(error);
|
|
96035
|
+
const headerCorrelationId = this.readNonBlankString(error.headers?.get('X-Correlation-Id') ?? error.headers?.get('x-correlation-id'));
|
|
96036
|
+
const correlationId = this.readNonBlankString(problem?.correlationId) ?? headerCorrelationId ?? null;
|
|
96037
|
+
const errorCode = normalizePraxisIntelligenceErrorCode(problem?.errorCode, error.status);
|
|
96038
|
+
const httpStatus = typeof problem?.status === 'number' && Number.isFinite(problem.status)
|
|
96039
|
+
? problem.status
|
|
96040
|
+
: error.status || PRAXIS_INTELLIGENCE_ERROR_CATALOG[errorCode].httpStatus;
|
|
96041
|
+
return this.createError(errorCode, httpStatus, correlationId, problem);
|
|
96042
|
+
}
|
|
96043
|
+
return this.createError('INTELLIGENCE_ENGINE_UNAVAILABLE', 503, null, null);
|
|
96044
|
+
}
|
|
96045
|
+
extractProblemDetail(error) {
|
|
96046
|
+
let payload = error.error;
|
|
96047
|
+
if (typeof payload === 'string' && payload.trim().startsWith('{')) {
|
|
96048
|
+
try {
|
|
96049
|
+
payload = JSON.parse(payload);
|
|
96050
|
+
}
|
|
96051
|
+
catch {
|
|
96052
|
+
payload = null;
|
|
96053
|
+
}
|
|
96054
|
+
}
|
|
96055
|
+
if (!this.isPlainRecord(payload)) {
|
|
96056
|
+
return null;
|
|
96057
|
+
}
|
|
96058
|
+
const firstError = Array.isArray(payload['errors']) && this.isPlainRecord(payload['errors'][0])
|
|
96059
|
+
? payload['errors'][0]
|
|
96060
|
+
: null;
|
|
96061
|
+
const topLevelStatus = Number(payload['status']);
|
|
96062
|
+
const nestedErrorStatus = firstError ? Number(firstError['status']) : Number.NaN;
|
|
96063
|
+
const status = Number.isFinite(topLevelStatus) && topLevelStatus >= 400
|
|
96064
|
+
? topLevelStatus
|
|
96065
|
+
: Number.isFinite(nestedErrorStatus) && nestedErrorStatus >= 400
|
|
96066
|
+
? nestedErrorStatus
|
|
96067
|
+
: error.status || 503;
|
|
96068
|
+
const errorCode = resolvePraxisIntelligenceErrorCodeFromPayload(payload, status);
|
|
96069
|
+
return {
|
|
96070
|
+
type: this.readNonBlankString(payload['type']) ??
|
|
96071
|
+
this.readNonBlankString(firstError?.['type']) ??
|
|
96072
|
+
null,
|
|
96073
|
+
title: sanitizeIntelligenceDetailText(payload['title'] ?? firstError?.['title']),
|
|
96074
|
+
status,
|
|
96075
|
+
detail: sanitizeIntelligenceDetailText(payload['detail'] ?? firstError?.['detail'] ?? firstError?.['message'] ?? payload['message']),
|
|
96076
|
+
instance: this.readNonBlankString(payload['instance']) ??
|
|
96077
|
+
this.readNonBlankString(firstError?.['instance']) ??
|
|
96078
|
+
null,
|
|
96079
|
+
errorCode,
|
|
96080
|
+
correlationId: this.readNonBlankString(payload['correlationId']) ??
|
|
96081
|
+
this.readNonBlankString(firstError?.['correlationId']) ??
|
|
96082
|
+
null,
|
|
96083
|
+
timestamp: this.readNonBlankString(payload['timestamp']) ??
|
|
96084
|
+
this.readNonBlankString(firstError?.['timestamp']) ??
|
|
96085
|
+
null,
|
|
96086
|
+
};
|
|
96087
|
+
}
|
|
96088
|
+
createError(errorCode, httpStatus, correlationId, problemDetail) {
|
|
96089
|
+
const metadata = PRAXIS_INTELLIGENCE_ERROR_CATALOG[errorCode];
|
|
96090
|
+
const userMessage = resolvePraxisIntelligenceMessage(this.i18n, metadata.i18nKey);
|
|
96091
|
+
return new PraxisIntelligenceJobError({
|
|
96092
|
+
errorCode,
|
|
96093
|
+
httpStatus: httpStatus || metadata.httpStatus,
|
|
96094
|
+
correlationId,
|
|
96095
|
+
problemDetail,
|
|
96096
|
+
userMessage,
|
|
96097
|
+
});
|
|
96098
|
+
}
|
|
96099
|
+
unwrapPayload(raw) {
|
|
96100
|
+
if (this.isPlainRecord(raw) &&
|
|
96101
|
+
'data' in raw &&
|
|
96102
|
+
this.isPlainRecord(raw['data']) &&
|
|
96103
|
+
('jobId' in raw['data'] || 'status' in raw['data'])) {
|
|
96104
|
+
return raw['data'];
|
|
96105
|
+
}
|
|
96106
|
+
return raw;
|
|
96107
|
+
}
|
|
96108
|
+
isPlainRecord(value) {
|
|
96109
|
+
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
96110
|
+
}
|
|
96111
|
+
normalizeJobId(jobId) {
|
|
96112
|
+
return typeof jobId === 'string' ? jobId.trim() : '';
|
|
96113
|
+
}
|
|
96114
|
+
readNonBlankString(value) {
|
|
96115
|
+
if (typeof value !== 'string') {
|
|
96116
|
+
return undefined;
|
|
96117
|
+
}
|
|
96118
|
+
const trimmed = value.trim();
|
|
96119
|
+
return trimmed.length > 0 ? trimmed : undefined;
|
|
96120
|
+
}
|
|
96121
|
+
normalizePositiveMs(value, fallback) {
|
|
96122
|
+
return typeof value === 'number' && Number.isFinite(value) && value > 0
|
|
96123
|
+
? Math.round(value)
|
|
96124
|
+
: fallback;
|
|
96125
|
+
}
|
|
96126
|
+
normalizePositiveInt(value, fallback) {
|
|
96127
|
+
return typeof value === 'number' && Number.isFinite(value) && value >= 1
|
|
96128
|
+
? Math.trunc(value)
|
|
96129
|
+
: fallback;
|
|
96130
|
+
}
|
|
96131
|
+
normalizeNonNegativeInt(value, fallback) {
|
|
96132
|
+
return typeof value === 'number' && Number.isFinite(value) && value >= 0
|
|
96133
|
+
? Math.trunc(value)
|
|
96134
|
+
: fallback;
|
|
96135
|
+
}
|
|
96136
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisIntelligenceJobsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
96137
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisIntelligenceJobsService, providedIn: 'root' });
|
|
96138
|
+
}
|
|
96139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisIntelligenceJobsService, decorators: [{
|
|
96140
|
+
type: Injectable,
|
|
96141
|
+
args: [{ providedIn: 'root' }]
|
|
96142
|
+
}] });
|
|
96143
|
+
|
|
96144
|
+
let epistemicBadgeDetailsSeq = 0;
|
|
96145
|
+
class PraxisEpistemicBadgeComponent {
|
|
96146
|
+
i18n = inject(PraxisI18nService, { optional: true });
|
|
96147
|
+
destroyRef = inject(DestroyRef);
|
|
96148
|
+
meta = input(null, ...(ngDevMode ? [{ debugName: "meta" }] : /* istanbul ignore next */ []));
|
|
96149
|
+
variant = input('compact', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
96150
|
+
showCopyHash = input(true, { ...(ngDevMode ? { debugName: "showCopyHash" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
96151
|
+
showMethodologyNote = input(true, { ...(ngDevMode ? { debugName: "showMethodologyNote" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
96152
|
+
testIdPrefix = input('praxis-epistemic', ...(ngDevMode ? [{ debugName: "testIdPrefix" }] : /* istanbul ignore next */ []));
|
|
96153
|
+
provenanceCopied = output();
|
|
96154
|
+
compactDetailsId = `prx-epistemic-details-${++epistemicBadgeDetailsSeq}`;
|
|
96155
|
+
copiedHash = signal(false, ...(ngDevMode ? [{ debugName: "copiedHash" }] : /* istanbul ignore next */ []));
|
|
96156
|
+
detailsExpanded = signal(false, ...(ngDevMode ? [{ debugName: "detailsExpanded" }] : /* istanbul ignore next */ []));
|
|
96157
|
+
copyFeedbackTimer = null;
|
|
96158
|
+
lastMetaIdentitySignature = null;
|
|
96159
|
+
metaIdentitySignature = computed(() => {
|
|
96160
|
+
const m = this.normalizedMeta();
|
|
96161
|
+
return m
|
|
96162
|
+
? JSON.stringify([m.kind, m.availabilityState, m.datasetKey, m.modelCardId, m.provenanceHash])
|
|
96163
|
+
: '';
|
|
96164
|
+
}, ...(ngDevMode ? [{ debugName: "metaIdentitySignature" }] : /* istanbul ignore next */ []));
|
|
96165
|
+
constructor() {
|
|
96166
|
+
effect(() => {
|
|
96167
|
+
const nextSignature = this.metaIdentitySignature();
|
|
96168
|
+
if (this.lastMetaIdentitySignature !== null &&
|
|
96169
|
+
nextSignature !== this.lastMetaIdentitySignature) {
|
|
96170
|
+
untracked(() => {
|
|
96171
|
+
this.detailsExpanded.set(false);
|
|
96172
|
+
this.copiedHash.set(false);
|
|
96173
|
+
if (this.copyFeedbackTimer !== null) {
|
|
96174
|
+
clearTimeout(this.copyFeedbackTimer);
|
|
96175
|
+
this.copyFeedbackTimer = null;
|
|
96176
|
+
}
|
|
96177
|
+
});
|
|
96178
|
+
}
|
|
96179
|
+
this.lastMetaIdentitySignature = nextSignature;
|
|
96180
|
+
});
|
|
96181
|
+
this.destroyRef.onDestroy(() => {
|
|
96182
|
+
if (this.copyFeedbackTimer !== null) {
|
|
96183
|
+
clearTimeout(this.copyFeedbackTimer);
|
|
96184
|
+
this.copyFeedbackTimer = null;
|
|
96185
|
+
}
|
|
96186
|
+
});
|
|
96187
|
+
}
|
|
96188
|
+
activeLocale = computed(() => {
|
|
96189
|
+
const active = this.i18n?.activeLocale?.();
|
|
96190
|
+
return active || this.i18n?.getLocale?.() || 'pt-BR';
|
|
96191
|
+
}, ...(ngDevMode ? [{ debugName: "activeLocale" }] : /* istanbul ignore next */ []));
|
|
96192
|
+
normalizedMeta = computed(() => normalizePraxisEpistemicMeta(this.meta()), ...(ngDevMode ? [{ debugName: "normalizedMeta" }] : /* istanbul ignore next */ []));
|
|
96193
|
+
epistemicKind = computed(() => normalizePraxisEpistemicKind(this.normalizedMeta()?.kind), ...(ngDevMode ? [{ debugName: "epistemicKind" }] : /* istanbul ignore next */ []));
|
|
96194
|
+
availabilityState = computed(() => normalizePraxisEpistemicAvailabilityState(this.normalizedMeta()?.availabilityState), ...(ngDevMode ? [{ debugName: "availabilityState" }] : /* istanbul ignore next */ []));
|
|
96195
|
+
isAvailable = computed(() => this.availabilityState() === 'AVAILABLE', ...(ngDevMode ? [{ debugName: "isAvailable" }] : /* istanbul ignore next */ []));
|
|
96196
|
+
suppressedCount = computed(() => this.normalizedMeta()?.suppressedCellCount ?? 0, ...(ngDevMode ? [{ debugName: "suppressedCount" }] : /* istanbul ignore next */ []));
|
|
96197
|
+
truncatedHash = computed(() => formatTruncatedProvenanceHash(this.normalizedMeta()?.provenanceHash), ...(ngDevMode ? [{ debugName: "truncatedHash" }] : /* istanbul ignore next */ []));
|
|
96198
|
+
qValueDisplay = computed(() => {
|
|
96199
|
+
const q = this.normalizedMeta()?.qValueFdr;
|
|
96200
|
+
if (typeof q !== 'number' || !Number.isFinite(q)) {
|
|
96201
|
+
return null;
|
|
96202
|
+
}
|
|
96203
|
+
return formatPraxisQValueFdr(q, this.activeLocale());
|
|
96204
|
+
}, ...(ngDevMode ? [{ debugName: "qValueDisplay" }] : /* istanbul ignore next */ []));
|
|
96205
|
+
nigriniDisplay = computed(() => {
|
|
96206
|
+
const locale = this.activeLocale();
|
|
96207
|
+
const m = this.normalizedMeta();
|
|
96208
|
+
if (!m) {
|
|
96209
|
+
return null;
|
|
96210
|
+
}
|
|
96211
|
+
const parts = [];
|
|
96212
|
+
if (typeof m.nigriniMad === 'number' && Number.isFinite(m.nigriniMad)) {
|
|
96213
|
+
parts.push(this.t('praxis.intelligence.epistemic.nigriniMad', {
|
|
96214
|
+
mad: formatPraxisEpistemicNumber(m.nigriniMad, locale, {
|
|
96215
|
+
minimumFractionDigits: 4,
|
|
96216
|
+
maximumFractionDigits: 4,
|
|
96217
|
+
}),
|
|
96218
|
+
}));
|
|
96219
|
+
}
|
|
96220
|
+
if (m.nigriniConformity) {
|
|
96221
|
+
parts.push(this.formatNigriniConformity(m.nigriniConformity));
|
|
96222
|
+
}
|
|
96223
|
+
if (parts.length === 0) {
|
|
96224
|
+
return null;
|
|
96225
|
+
}
|
|
96226
|
+
return `${this.t('praxis.intelligence.epistemic.nigriniLabel')}: ${parts.join(' · ')}`;
|
|
96227
|
+
}, ...(ngDevMode ? [{ debugName: "nigriniDisplay" }] : /* istanbul ignore next */ []));
|
|
96228
|
+
hasCompactDetails = computed(() => {
|
|
96229
|
+
const m = this.normalizedMeta();
|
|
96230
|
+
if (!m) {
|
|
96231
|
+
return false;
|
|
96232
|
+
}
|
|
96233
|
+
return (!this.isAvailable() ||
|
|
96234
|
+
this.nigriniDisplay() !== null ||
|
|
96235
|
+
Boolean(m.modelCardId) ||
|
|
96236
|
+
Boolean(m.datasetKey) ||
|
|
96237
|
+
Boolean(m.provenanceHash) ||
|
|
96238
|
+
(this.showMethodologyNote() && Boolean(m.methodologyNote)));
|
|
96239
|
+
}, ...(ngDevMode ? [{ debugName: "hasCompactDetails" }] : /* istanbul ignore next */ []));
|
|
96240
|
+
hasDetailedMetrics = computed(() => {
|
|
96241
|
+
const m = this.normalizedMeta();
|
|
96242
|
+
if (!m) {
|
|
96243
|
+
return false;
|
|
96244
|
+
}
|
|
96245
|
+
return ((m.sampleSize !== undefined && m.sampleSize !== null) ||
|
|
96246
|
+
(this.isAvailable() &&
|
|
96247
|
+
(this.qValueDisplay() !== null || m.statisticallySignificant !== undefined)) ||
|
|
96248
|
+
this.nigriniDisplay() !== null ||
|
|
96249
|
+
Boolean(m.modelCardId) ||
|
|
96250
|
+
Boolean(m.provenanceHash));
|
|
96251
|
+
}, ...(ngDevMode ? [{ debugName: "hasDetailedMetrics" }] : /* istanbul ignore next */ []));
|
|
96252
|
+
regionAriaLabel = computed(() => {
|
|
96253
|
+
this.activeLocale();
|
|
96254
|
+
return this.t('praxis.intelligence.epistemic.regionAria');
|
|
96255
|
+
}, ...(ngDevMode ? [{ debugName: "regionAriaLabel" }] : /* istanbul ignore next */ []));
|
|
96256
|
+
suppressedAlertText = computed(() => {
|
|
96257
|
+
const locale = this.activeLocale();
|
|
96258
|
+
return this.t('praxis.intelligence.epistemic.suppressedAlert', {
|
|
96259
|
+
count: formatPraxisEpistemicNumber(this.suppressedCount(), locale),
|
|
96260
|
+
});
|
|
96261
|
+
}, ...(ngDevMode ? [{ debugName: "suppressedAlertText" }] : /* istanbul ignore next */ []));
|
|
96262
|
+
kindIcon(kind) {
|
|
96263
|
+
return getPraxisEpistemicKindIcon(kind);
|
|
96264
|
+
}
|
|
96265
|
+
stateIcon(state) {
|
|
96266
|
+
switch (state) {
|
|
96267
|
+
case 'AVAILABLE':
|
|
96268
|
+
return 'verified';
|
|
96269
|
+
case 'INSUFFICIENT_SAMPLE':
|
|
96270
|
+
return 'science';
|
|
96271
|
+
case 'K_ANONYMITY_SUPPRESSED':
|
|
96272
|
+
return 'visibility_off';
|
|
96273
|
+
case 'DEGRADED':
|
|
96274
|
+
return 'warning_amber';
|
|
96275
|
+
case 'ENGINE_UNAVAILABLE':
|
|
96276
|
+
default:
|
|
96277
|
+
return 'cloud_off';
|
|
96278
|
+
}
|
|
96279
|
+
}
|
|
96280
|
+
kindLabel(kind) {
|
|
96281
|
+
this.i18n?.activeLocale?.();
|
|
96282
|
+
return this.t(`praxis.intelligence.epistemic.kind.${kind}`);
|
|
96283
|
+
}
|
|
96284
|
+
stateLabel(state) {
|
|
96285
|
+
this.i18n?.activeLocale?.();
|
|
96286
|
+
return this.t(`praxis.intelligence.epistemic.state.${state}`);
|
|
96287
|
+
}
|
|
96288
|
+
failClosedGuidance(state) {
|
|
96289
|
+
this.i18n?.activeLocale?.();
|
|
96290
|
+
if (state === 'AVAILABLE') {
|
|
96291
|
+
return '';
|
|
96292
|
+
}
|
|
96293
|
+
return this.t(`praxis.intelligence.epistemic.guidance.${state}`);
|
|
96294
|
+
}
|
|
96295
|
+
qValueLabel(value) {
|
|
96296
|
+
this.i18n?.activeLocale?.();
|
|
96297
|
+
return this.t('praxis.intelligence.epistemic.qValueFdr', { value });
|
|
96298
|
+
}
|
|
96299
|
+
sampleSizeLabel(count) {
|
|
96300
|
+
const locale = this.activeLocale();
|
|
96301
|
+
return this.t('praxis.intelligence.epistemic.sampleSize', {
|
|
96302
|
+
count: formatPraxisEpistemicNumber(count, locale),
|
|
96303
|
+
});
|
|
96304
|
+
}
|
|
96305
|
+
significantYesLabel() {
|
|
96306
|
+
this.activeLocale();
|
|
96307
|
+
return this.t('praxis.intelligence.epistemic.significantYes');
|
|
96308
|
+
}
|
|
96309
|
+
significantNoLabel() {
|
|
96310
|
+
this.activeLocale();
|
|
96311
|
+
return this.t('praxis.intelligence.epistemic.significantNo');
|
|
96312
|
+
}
|
|
96313
|
+
modelCardLabel(id) {
|
|
96314
|
+
this.activeLocale();
|
|
96315
|
+
return this.t('praxis.intelligence.epistemic.modelCard', { id });
|
|
96316
|
+
}
|
|
96317
|
+
datasetKeyLabel(key) {
|
|
96318
|
+
this.activeLocale();
|
|
96319
|
+
return this.t('praxis.intelligence.epistemic.datasetKey', { key });
|
|
96320
|
+
}
|
|
96321
|
+
provenanceHashLabel() {
|
|
96322
|
+
this.activeLocale();
|
|
96323
|
+
return this.t('praxis.intelligence.epistemic.provenanceHash');
|
|
96324
|
+
}
|
|
96325
|
+
copyHashLabel() {
|
|
96326
|
+
this.activeLocale();
|
|
96327
|
+
return this.t('praxis.intelligence.epistemic.copyHash');
|
|
96328
|
+
}
|
|
96329
|
+
copiedHashLabel() {
|
|
96330
|
+
this.activeLocale();
|
|
96331
|
+
return this.t('praxis.intelligence.epistemic.copiedHash');
|
|
96332
|
+
}
|
|
96333
|
+
expandDetailsLabel() {
|
|
96334
|
+
this.activeLocale();
|
|
96335
|
+
return this.t('praxis.intelligence.epistemic.expandDetails');
|
|
96336
|
+
}
|
|
96337
|
+
collapseDetailsLabel() {
|
|
96338
|
+
this.activeLocale();
|
|
96339
|
+
return this.t('praxis.intelligence.epistemic.collapseDetails');
|
|
96340
|
+
}
|
|
96341
|
+
toggleDetails() {
|
|
96342
|
+
this.detailsExpanded.update((open) => !open);
|
|
96343
|
+
}
|
|
96344
|
+
async copyProvenanceHash(hash) {
|
|
96345
|
+
const clean = typeof hash === 'string' ? hash.trim() : '';
|
|
96346
|
+
if (!clean) {
|
|
96347
|
+
return;
|
|
96348
|
+
}
|
|
96349
|
+
let copied = false;
|
|
96350
|
+
const nav = typeof navigator !== 'undefined' ? navigator : undefined;
|
|
96351
|
+
if (nav?.clipboard?.writeText) {
|
|
96352
|
+
try {
|
|
96353
|
+
await nav.clipboard.writeText(clean);
|
|
96354
|
+
copied = true;
|
|
96355
|
+
}
|
|
96356
|
+
catch {
|
|
96357
|
+
copied = this.fallbackCopy(clean);
|
|
96358
|
+
}
|
|
96359
|
+
}
|
|
96360
|
+
else {
|
|
96361
|
+
copied = this.fallbackCopy(clean);
|
|
96362
|
+
}
|
|
96363
|
+
if (!copied) {
|
|
96364
|
+
return;
|
|
96365
|
+
}
|
|
96366
|
+
this.provenanceCopied.emit(clean);
|
|
96367
|
+
this.copiedHash.set(true);
|
|
96368
|
+
if (this.copyFeedbackTimer !== null) {
|
|
96369
|
+
clearTimeout(this.copyFeedbackTimer);
|
|
96370
|
+
}
|
|
96371
|
+
this.copyFeedbackTimer = setTimeout(() => {
|
|
96372
|
+
this.copiedHash.set(false);
|
|
96373
|
+
this.copyFeedbackTimer = null;
|
|
96374
|
+
}, 2000);
|
|
96375
|
+
}
|
|
96376
|
+
formatNigriniConformity(value) {
|
|
96377
|
+
const canonical = normalizePraxisNigriniConformity(value);
|
|
96378
|
+
if (canonical) {
|
|
96379
|
+
return this.t(`praxis.intelligence.epistemic.nigrini.${canonical}`);
|
|
96380
|
+
}
|
|
96381
|
+
return value.replace(/_/g, ' ').toLowerCase();
|
|
96382
|
+
}
|
|
96383
|
+
fallbackCopy(text) {
|
|
96384
|
+
if (typeof document === 'undefined' || !document.body || typeof document.execCommand !== 'function') {
|
|
96385
|
+
return false;
|
|
96386
|
+
}
|
|
96387
|
+
const textarea = document.createElement('textarea');
|
|
96388
|
+
textarea.value = text;
|
|
96389
|
+
textarea.setAttribute('readonly', '');
|
|
96390
|
+
textarea.style.position = 'fixed';
|
|
96391
|
+
textarea.style.opacity = '0';
|
|
96392
|
+
textarea.style.pointerEvents = 'none';
|
|
96393
|
+
document.body.appendChild(textarea);
|
|
96394
|
+
try {
|
|
96395
|
+
textarea.select();
|
|
96396
|
+
return Boolean(document.execCommand('copy'));
|
|
96397
|
+
}
|
|
96398
|
+
catch {
|
|
96399
|
+
return false;
|
|
96400
|
+
}
|
|
96401
|
+
finally {
|
|
96402
|
+
document.body.removeChild(textarea);
|
|
96403
|
+
}
|
|
96404
|
+
}
|
|
96405
|
+
t(key, params) {
|
|
96406
|
+
return resolvePraxisIntelligenceMessage(this.i18n, key, params);
|
|
96407
|
+
}
|
|
96408
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisEpistemicBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
96409
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: PraxisEpistemicBadgeComponent, isStandalone: true, selector: "praxis-epistemic-badge", inputs: { meta: { classPropertyName: "meta", publicName: "meta", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showCopyHash: { classPropertyName: "showCopyHash", publicName: "showCopyHash", isSignal: true, isRequired: false, transformFunction: null }, showMethodologyNote: { classPropertyName: "showMethodologyNote", publicName: "showMethodologyNote", isSignal: true, isRequired: false, transformFunction: null }, testIdPrefix: { classPropertyName: "testIdPrefix", publicName: "testIdPrefix", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { provenanceCopied: "provenanceCopied" }, host: { classAttribute: "praxis-epistemic-badge-host" }, ngImport: i0, template: `
|
|
96410
|
+
@if (normalizedMeta(); as m) {
|
|
96411
|
+
@let kind = epistemicKind();
|
|
96412
|
+
@let state = availabilityState();
|
|
96413
|
+
@let blocked = !isAvailable();
|
|
96414
|
+
|
|
96415
|
+
@if (variant() === 'compact') {
|
|
96416
|
+
<div
|
|
96417
|
+
class="prx-epistemic prx-epistemic--compact"
|
|
96418
|
+
[class.prx-epistemic--blocked]="blocked"
|
|
96419
|
+
role="group"
|
|
96420
|
+
[attr.aria-label]="regionAriaLabel()"
|
|
96421
|
+
[attr.data-epistemic-kind]="kind"
|
|
96422
|
+
[attr.data-availability-state]="state"
|
|
96423
|
+
[attr.data-testid]="testIdPrefix() + '-badge'"
|
|
96424
|
+
>
|
|
96425
|
+
<span
|
|
96426
|
+
class="prx-epistemic-pill prx-epistemic-pill--kind"
|
|
96427
|
+
[attr.data-kind]="kind"
|
|
96428
|
+
[attr.data-testid]="testIdPrefix() + '-kind'"
|
|
96429
|
+
>
|
|
96430
|
+
<mat-icon aria-hidden="true">{{ kindIcon(kind) }}</mat-icon>
|
|
96431
|
+
<span>{{ kindLabel(kind) }}</span>
|
|
96432
|
+
</span>
|
|
96433
|
+
|
|
96434
|
+
@if (blocked) {
|
|
96435
|
+
<span
|
|
96436
|
+
class="prx-epistemic-pill prx-epistemic-pill--state"
|
|
96437
|
+
[attr.data-state]="state"
|
|
96438
|
+
[matTooltip]="failClosedGuidance(state)"
|
|
96439
|
+
[attr.data-testid]="testIdPrefix() + '-state'"
|
|
96440
|
+
>
|
|
96441
|
+
<mat-icon aria-hidden="true">{{ stateIcon(state) }}</mat-icon>
|
|
96442
|
+
<span>{{ stateLabel(state) }}</span>
|
|
96443
|
+
</span>
|
|
96444
|
+
}
|
|
96445
|
+
|
|
96446
|
+
@if (suppressedCount() > 0) {
|
|
96447
|
+
<span
|
|
96448
|
+
class="prx-epistemic-pill prx-epistemic-pill--warn"
|
|
96449
|
+
[attr.data-testid]="testIdPrefix() + '-suppressed-chip'"
|
|
96450
|
+
>
|
|
96451
|
+
<mat-icon aria-hidden="true">visibility_off</mat-icon>
|
|
96452
|
+
<span>{{ suppressedAlertText() }}</span>
|
|
96453
|
+
</span>
|
|
96454
|
+
}
|
|
96455
|
+
|
|
96456
|
+
@if (!blocked && qValueDisplay(); as qText) {
|
|
96457
|
+
<span
|
|
96458
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96459
|
+
[attr.data-testid]="testIdPrefix() + '-qvalue'"
|
|
96460
|
+
>
|
|
96461
|
+
{{ qValueLabel(qText) }}
|
|
96462
|
+
</span>
|
|
96463
|
+
}
|
|
96464
|
+
|
|
96465
|
+
@if (m.sampleSize !== undefined && m.sampleSize !== null) {
|
|
96466
|
+
<span
|
|
96467
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96468
|
+
[attr.data-testid]="testIdPrefix() + '-sample-size'"
|
|
96469
|
+
>
|
|
96470
|
+
{{ sampleSizeLabel(m.sampleSize) }}
|
|
96471
|
+
</span>
|
|
96472
|
+
}
|
|
96473
|
+
|
|
96474
|
+
@if (hasCompactDetails()) {
|
|
96475
|
+
<button
|
|
96476
|
+
type="button"
|
|
96477
|
+
class="prx-epistemic__toggle-btn"
|
|
96478
|
+
[attr.aria-controls]="compactDetailsId"
|
|
96479
|
+
[attr.aria-expanded]="detailsExpanded()"
|
|
96480
|
+
[attr.aria-label]="detailsExpanded() ? collapseDetailsLabel() : expandDetailsLabel()"
|
|
96481
|
+
[matTooltip]="detailsExpanded() ? collapseDetailsLabel() : expandDetailsLabel()"
|
|
96482
|
+
[attr.data-testid]="testIdPrefix() + '-toggle-details'"
|
|
96483
|
+
(click)="toggleDetails()"
|
|
96484
|
+
>
|
|
96485
|
+
<mat-icon aria-hidden="true">{{ detailsExpanded() ? 'expand_less' : 'info_outline' }}</mat-icon>
|
|
96486
|
+
</button>
|
|
96487
|
+
}
|
|
96488
|
+
|
|
96489
|
+
@if (hasCompactDetails() && detailsExpanded()) {
|
|
96490
|
+
<div
|
|
96491
|
+
[id]="compactDetailsId"
|
|
96492
|
+
class="prx-epistemic__compact-drawer"
|
|
96493
|
+
[attr.data-testid]="testIdPrefix() + '-compact-details'"
|
|
96494
|
+
>
|
|
96495
|
+
@if (blocked) {
|
|
96496
|
+
<p class="prx-epistemic__note" [attr.data-testid]="testIdPrefix() + '-compact-guidance'">
|
|
96497
|
+
{{ failClosedGuidance(state) }}
|
|
96498
|
+
</p>
|
|
96499
|
+
}
|
|
96500
|
+
<div class="prx-epistemic__metrics">
|
|
96501
|
+
@if (nigriniDisplay(); as nigriniText) {
|
|
96502
|
+
<span
|
|
96503
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96504
|
+
[attr.data-testid]="testIdPrefix() + '-nigrini'"
|
|
96505
|
+
>
|
|
96506
|
+
{{ nigriniText }}
|
|
96507
|
+
</span>
|
|
96508
|
+
}
|
|
96509
|
+
@if (m.modelCardId) {
|
|
96510
|
+
<span
|
|
96511
|
+
class="prx-epistemic-metric"
|
|
96512
|
+
[attr.data-testid]="testIdPrefix() + '-model-card'"
|
|
96513
|
+
>
|
|
96514
|
+
{{ modelCardLabel(m.modelCardId) }}
|
|
96515
|
+
</span>
|
|
96516
|
+
}
|
|
96517
|
+
@if (m.datasetKey) {
|
|
96518
|
+
<span
|
|
96519
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96520
|
+
[attr.data-testid]="testIdPrefix() + '-dataset'"
|
|
96521
|
+
>
|
|
96522
|
+
{{ datasetKeyLabel(m.datasetKey) }}
|
|
96523
|
+
</span>
|
|
96524
|
+
}
|
|
96525
|
+
@if (m.provenanceHash) {
|
|
96526
|
+
<span class="prx-epistemic__hash-group">
|
|
96527
|
+
<span
|
|
96528
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96529
|
+
[attr.title]="m.provenanceHash"
|
|
96530
|
+
[attr.data-testid]="testIdPrefix() + '-provenance-hash'"
|
|
96531
|
+
>
|
|
96532
|
+
{{ provenanceHashLabel() }}: {{ truncatedHash() }}
|
|
96533
|
+
</span>
|
|
96534
|
+
@if (showCopyHash()) {
|
|
96535
|
+
<button
|
|
96536
|
+
type="button"
|
|
96537
|
+
class="prx-epistemic__copy-btn"
|
|
96538
|
+
[attr.aria-label]="copiedHash() ? copiedHashLabel() : copyHashLabel()"
|
|
96539
|
+
[matTooltip]="copiedHash() ? copiedHashLabel() : copyHashLabel()"
|
|
96540
|
+
[attr.data-testid]="testIdPrefix() + '-copy-hash'"
|
|
96541
|
+
(click)="copyProvenanceHash(m.provenanceHash)"
|
|
96542
|
+
>
|
|
96543
|
+
<mat-icon aria-hidden="true">{{ copiedHash() ? 'check' : 'content_copy' }}</mat-icon>
|
|
96544
|
+
</button>
|
|
96545
|
+
<span class="prx-epistemic__sr-only" role="status" aria-live="polite">
|
|
96546
|
+
{{ copiedHash() ? copiedHashLabel() : '' }}
|
|
96547
|
+
</span>
|
|
96548
|
+
}
|
|
96549
|
+
</span>
|
|
96550
|
+
}
|
|
96551
|
+
</div>
|
|
96552
|
+
@if (showMethodologyNote() && m.methodologyNote) {
|
|
96553
|
+
<p class="prx-epistemic__note" [attr.data-testid]="testIdPrefix() + '-methodology-note'">
|
|
96554
|
+
{{ m.methodologyNote }}
|
|
96555
|
+
</p>
|
|
96556
|
+
}
|
|
96557
|
+
</div>
|
|
96558
|
+
}
|
|
96559
|
+
</div>
|
|
96560
|
+
} @else {
|
|
96561
|
+
<section
|
|
96562
|
+
class="prx-epistemic prx-epistemic--detailed"
|
|
96563
|
+
[class.prx-epistemic--blocked]="blocked"
|
|
96564
|
+
role="region"
|
|
96565
|
+
[attr.aria-label]="regionAriaLabel()"
|
|
96566
|
+
[attr.data-epistemic-kind]="kind"
|
|
96567
|
+
[attr.data-availability-state]="state"
|
|
96568
|
+
[attr.data-testid]="testIdPrefix() + '-badge'"
|
|
96569
|
+
>
|
|
96570
|
+
<div class="prx-epistemic__header">
|
|
96571
|
+
<div class="prx-epistemic__pills">
|
|
96572
|
+
<span
|
|
96573
|
+
class="prx-epistemic-pill prx-epistemic-pill--kind"
|
|
96574
|
+
[attr.data-kind]="kind"
|
|
96575
|
+
[attr.data-testid]="testIdPrefix() + '-kind'"
|
|
96576
|
+
>
|
|
96577
|
+
<mat-icon aria-hidden="true">{{ kindIcon(kind) }}</mat-icon>
|
|
96578
|
+
<span>{{ kindLabel(kind) }}</span>
|
|
96579
|
+
</span>
|
|
96580
|
+
|
|
96581
|
+
<span
|
|
96582
|
+
class="prx-epistemic-pill prx-epistemic-pill--state"
|
|
96583
|
+
[attr.data-state]="state"
|
|
96584
|
+
[attr.data-testid]="testIdPrefix() + '-state'"
|
|
96585
|
+
>
|
|
96586
|
+
<mat-icon aria-hidden="true">{{ stateIcon(state) }}</mat-icon>
|
|
96587
|
+
<span>{{ stateLabel(state) }}</span>
|
|
96588
|
+
</span>
|
|
96589
|
+
|
|
96590
|
+
@if (m.datasetKey) {
|
|
96591
|
+
<span
|
|
96592
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96593
|
+
[attr.data-testid]="testIdPrefix() + '-dataset'"
|
|
96594
|
+
>
|
|
96595
|
+
{{ datasetKeyLabel(m.datasetKey) }}
|
|
96596
|
+
</span>
|
|
96597
|
+
}
|
|
96598
|
+
</div>
|
|
96599
|
+
</div>
|
|
96600
|
+
|
|
96601
|
+
@if (blocked) {
|
|
96602
|
+
<div
|
|
96603
|
+
class="prx-epistemic__alert prx-epistemic__alert--danger"
|
|
96604
|
+
role="alert"
|
|
96605
|
+
[attr.data-state]="state"
|
|
96606
|
+
[attr.data-testid]="testIdPrefix() + '-fail-closed'"
|
|
96607
|
+
>
|
|
96608
|
+
<mat-icon aria-hidden="true">{{ stateIcon(state) }}</mat-icon>
|
|
96609
|
+
<span>{{ failClosedGuidance(state) }}</span>
|
|
96610
|
+
</div>
|
|
96611
|
+
}
|
|
96612
|
+
|
|
96613
|
+
@if (suppressedCount() > 0) {
|
|
96614
|
+
<div
|
|
96615
|
+
class="prx-epistemic__alert prx-epistemic__alert--warn"
|
|
96616
|
+
role="alert"
|
|
96617
|
+
[attr.data-testid]="testIdPrefix() + '-suppressed-alert'"
|
|
96618
|
+
>
|
|
96619
|
+
<mat-icon aria-hidden="true">visibility_off</mat-icon>
|
|
96620
|
+
<span>{{ suppressedAlertText() }}</span>
|
|
96621
|
+
</div>
|
|
96622
|
+
}
|
|
96623
|
+
|
|
96624
|
+
@if (hasDetailedMetrics()) {
|
|
96625
|
+
<div class="prx-epistemic__metrics">
|
|
96626
|
+
@if (m.sampleSize !== undefined && m.sampleSize !== null) {
|
|
96627
|
+
<span
|
|
96628
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96629
|
+
[attr.data-testid]="testIdPrefix() + '-sample-size'"
|
|
96630
|
+
>
|
|
96631
|
+
{{ sampleSizeLabel(m.sampleSize) }}
|
|
96632
|
+
</span>
|
|
96633
|
+
}
|
|
96634
|
+
|
|
96635
|
+
@if (!blocked && qValueDisplay(); as qText) {
|
|
96636
|
+
<span
|
|
96637
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96638
|
+
[attr.data-testid]="testIdPrefix() + '-qvalue'"
|
|
96639
|
+
>
|
|
96640
|
+
{{ qValueLabel(qText) }}
|
|
96641
|
+
</span>
|
|
96642
|
+
}
|
|
96643
|
+
|
|
96644
|
+
@if (!blocked && m.statisticallySignificant !== undefined) {
|
|
96645
|
+
<span
|
|
96646
|
+
class="prx-epistemic-metric"
|
|
96647
|
+
[class.prx-epistemic-metric--significant]="m.statisticallySignificant"
|
|
96648
|
+
[attr.data-testid]="testIdPrefix() + '-significance'"
|
|
96649
|
+
>
|
|
96650
|
+
{{ m.statisticallySignificant ? significantYesLabel() : significantNoLabel() }}
|
|
96651
|
+
</span>
|
|
96652
|
+
}
|
|
96653
|
+
|
|
96654
|
+
@if (nigriniDisplay(); as nigriniText) {
|
|
96655
|
+
<span
|
|
96656
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96657
|
+
[attr.data-testid]="testIdPrefix() + '-nigrini'"
|
|
96658
|
+
>
|
|
96659
|
+
{{ nigriniText }}
|
|
96660
|
+
</span>
|
|
96661
|
+
}
|
|
96662
|
+
|
|
96663
|
+
@if (m.modelCardId) {
|
|
96664
|
+
<span
|
|
96665
|
+
class="prx-epistemic-metric"
|
|
96666
|
+
[attr.data-testid]="testIdPrefix() + '-model-card'"
|
|
96667
|
+
>
|
|
96668
|
+
{{ modelCardLabel(m.modelCardId) }}
|
|
96669
|
+
</span>
|
|
96670
|
+
}
|
|
96671
|
+
|
|
96672
|
+
@if (m.provenanceHash) {
|
|
96673
|
+
<span class="prx-epistemic__hash-group">
|
|
96674
|
+
<span
|
|
96675
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96676
|
+
[attr.title]="m.provenanceHash"
|
|
96677
|
+
[attr.data-testid]="testIdPrefix() + '-provenance-hash'"
|
|
96678
|
+
>
|
|
96679
|
+
{{ provenanceHashLabel() }}: {{ truncatedHash() }}
|
|
96680
|
+
</span>
|
|
96681
|
+
@if (showCopyHash()) {
|
|
96682
|
+
<button
|
|
96683
|
+
type="button"
|
|
96684
|
+
class="prx-epistemic__copy-btn"
|
|
96685
|
+
[attr.aria-label]="copiedHash() ? copiedHashLabel() : copyHashLabel()"
|
|
96686
|
+
[matTooltip]="copiedHash() ? copiedHashLabel() : copyHashLabel()"
|
|
96687
|
+
[attr.data-testid]="testIdPrefix() + '-copy-hash'"
|
|
96688
|
+
(click)="copyProvenanceHash(m.provenanceHash)"
|
|
96689
|
+
>
|
|
96690
|
+
<mat-icon aria-hidden="true">{{ copiedHash() ? 'check' : 'content_copy' }}</mat-icon>
|
|
96691
|
+
</button>
|
|
96692
|
+
<span class="prx-epistemic__sr-only" role="status" aria-live="polite">
|
|
96693
|
+
{{ copiedHash() ? copiedHashLabel() : '' }}
|
|
96694
|
+
</span>
|
|
96695
|
+
}
|
|
96696
|
+
</span>
|
|
96697
|
+
}
|
|
96698
|
+
</div>
|
|
96699
|
+
}
|
|
96700
|
+
|
|
96701
|
+
@if (showMethodologyNote() && m.methodologyNote) {
|
|
96702
|
+
<p class="prx-epistemic__note" [attr.data-testid]="testIdPrefix() + '-methodology-note'">
|
|
96703
|
+
{{ m.methodologyNote }}
|
|
96704
|
+
</p>
|
|
96705
|
+
}
|
|
96706
|
+
</section>
|
|
96707
|
+
}
|
|
96708
|
+
}
|
|
96709
|
+
`, isInline: true, styles: [":host{display:block;min-width:0;color:var(--md-sys-color-on-surface, #1a1b20)}.prx-epistemic{min-width:0;color:inherit}.prx-epistemic--compact{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.375rem}.prx-epistemic--detailed{display:grid;gap:.5rem;padding:var(--praxis-epistemic-detailed-padding, .5rem .625rem);border-radius:var(--praxis-epistemic-radius, .5rem);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, var(--md-sys-color-outline, #74777f)) 55%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-low, currentColor) 4%,transparent)}.prx-epistemic--blocked.prx-epistemic--detailed{border-color:color-mix(in srgb,var(--md-sys-color-error, #b3261e) 48%,transparent);background:color-mix(in srgb,var(--md-sys-color-error-container, #f9dedc) 35%,transparent)}.prx-epistemic__header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}.prx-epistemic__pills,.prx-epistemic__metrics{display:flex;flex-wrap:wrap;align-items:center;gap:.375rem;min-width:0}.prx-epistemic-pill{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:999px;border:1px solid transparent;font-size:.75rem;line-height:1.3;font-weight:600;max-width:100%}.prx-epistemic-pill mat-icon{width:.875rem;height:.875rem;font-size:.875rem;line-height:.875rem;flex:0 0 auto}.prx-epistemic-pill--kind{background:color-mix(in srgb,var(--_kind-accent, var(--md-sys-color-primary, #0b57d0)) 12%,transparent);border-color:color-mix(in srgb,var(--_kind-accent, var(--md-sys-color-primary, #0b57d0)) 34%,transparent);color:color-mix(in srgb,var(--_kind-accent, var(--md-sys-color-primary, #0b57d0)) 82%,var(--md-sys-color-on-surface, currentColor))}.prx-epistemic-pill--kind[data-kind=DETERMINISTIC_LAW]{--_kind-accent: var(--praxis-epistemic-kind-deterministic, var(--praxis-color-success, #1b5e20))}.prx-epistemic-pill--kind[data-kind=CALIBRATED_PROBABILITY]{--_kind-accent: var(--praxis-epistemic-kind-probabilistic, var(--md-sys-color-primary, #0b57d0))}.prx-epistemic-pill--kind[data-kind=STOCHASTIC_SIMULATION]{--_kind-accent: var(--praxis-epistemic-kind-stochastic, var(--md-sys-color-tertiary, #6750a4))}.prx-epistemic-pill--kind[data-kind=CAUSAL_HYPOTHESIS]{--_kind-accent: var(--praxis-epistemic-kind-causal, var(--praxis-color-warning, #9a4700))}.prx-epistemic-pill--kind[data-kind=OPTIMIZATION_RESULT]{--_kind-accent: var(--praxis-epistemic-kind-optimization, var(--praxis-color-info, #006a6a))}.prx-epistemic-pill--state[data-state=AVAILABLE]{background:color-mix(in srgb,var(--praxis-color-success, #1b5e20) 12%,transparent);border-color:color-mix(in srgb,var(--praxis-color-success, #1b5e20) 32%,transparent);color:color-mix(in srgb,var(--praxis-color-success, #1b5e20) 82%,var(--md-sys-color-on-surface, currentColor))}.prx-epistemic-pill--state[data-state=INSUFFICIENT_SAMPLE],.prx-epistemic-pill--state[data-state=DEGRADED],.prx-epistemic-pill--warn{background:color-mix(in srgb,var(--praxis-epistemic-warn-accent, #d97706) 16%,transparent);border-color:color-mix(in srgb,var(--praxis-epistemic-warn-accent, #d97706) 44%,transparent);color:var( --praxis-epistemic-warn-text, color-mix(in srgb, #b45309 42%, var(--md-sys-color-on-surface, currentColor)) )}.prx-epistemic-pill--state[data-state=K_ANONYMITY_SUPPRESSED],.prx-epistemic-pill--state[data-state=ENGINE_UNAVAILABLE]{background:color-mix(in srgb,var(--md-sys-color-error-container, #f9dedc) 72%,transparent);border-color:color-mix(in srgb,var(--md-sys-color-error, #b3261e) 42%,transparent);color:var(--md-sys-color-on-error-container, #410e0b)}.prx-epistemic-metric{display:inline-flex;align-items:center;padding:.125rem .4375rem;border-radius:.375rem;border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, var(--md-sys-color-outline, #74777f)) 45%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-high, currentColor) 6%,transparent);color:var(--md-sys-color-on-surface-variant, currentColor);font-size:.75rem;line-height:1.3;font-weight:500;overflow-wrap:anywhere}.prx-epistemic-metric--mono{font-family:var(--praxis-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);font-variant-numeric:tabular-nums}.prx-epistemic-metric--significant{border-color:color-mix(in srgb,var(--md-sys-color-primary, #1b5e20) 38%,transparent);color:var(--md-sys-color-primary, #1b5e20);font-weight:600}.prx-epistemic__alert{display:flex;align-items:flex-start;gap:.4375rem;padding:.4375rem .5625rem;border-radius:.375rem;border:1px solid transparent;font-size:.78125rem;line-height:1.38}.prx-epistemic__alert mat-icon{width:1rem;height:1rem;font-size:1rem;line-height:1rem;margin-top:.0625rem;flex:0 0 auto}.prx-epistemic__alert--danger{background:color-mix(in srgb,var(--md-sys-color-error-container, #f9dedc) 72%,transparent);border-color:color-mix(in srgb,var(--md-sys-color-error, #b3261e) 40%,transparent);color:var(--md-sys-color-on-error-container, #410e0b)}.prx-epistemic__alert--warn{background:color-mix(in srgb,var(--praxis-epistemic-warn-accent, #d97706) 16%,transparent);border-color:color-mix(in srgb,var(--praxis-epistemic-warn-accent, #d97706) 44%,transparent);color:var( --praxis-epistemic-warn-text, color-mix(in srgb, #b45309 42%, var(--md-sys-color-on-surface, currentColor)) )}.prx-epistemic__hash-group{display:inline-flex;align-items:center;gap:.25rem;min-width:0}.prx-epistemic__copy-btn,.prx-epistemic__toggle-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;padding:0;border-radius:.375rem;border:1px solid color-mix(in srgb,var(--md-sys-color-outline, #74777f) 40%,transparent);background:transparent;color:var(--md-sys-color-on-surface-variant, currentColor);cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.prx-epistemic__copy-btn mat-icon,.prx-epistemic__toggle-btn mat-icon{width:.875rem;height:.875rem;font-size:.875rem;line-height:.875rem}.prx-epistemic__copy-btn:hover,.prx-epistemic__toggle-btn:hover{background:color-mix(in srgb,currentColor 8%,transparent)}.prx-epistemic__copy-btn:focus-visible,.prx-epistemic__toggle-btn:focus-visible{outline:2px solid var(--md-sys-color-primary, currentColor);outline-offset:2px}.prx-epistemic__compact-drawer{flex-basis:100%;display:grid;gap:.375rem;padding:.4375rem .5rem;border-radius:.375rem;border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, var(--md-sys-color-outline, #74777f)) 45%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-low, currentColor) 4%,transparent)}.prx-epistemic__note{margin:0;font-size:.78125rem;line-height:1.4;color:var(--md-sys-color-on-surface-variant, currentColor);overflow-wrap:anywhere}.prx-epistemic__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){.prx-epistemic__copy-btn,.prx-epistemic__toggle-btn{transition:none}}@media(forced-colors:active){.prx-epistemic--detailed,.prx-epistemic-pill,.prx-epistemic-metric,.prx-epistemic__alert,.prx-epistemic__copy-btn,.prx-epistemic__toggle-btn,.prx-epistemic__compact-drawer{border:1px solid CanvasText;background:Canvas;color:CanvasText}}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i6$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
96710
|
+
}
|
|
96711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisEpistemicBadgeComponent, decorators: [{
|
|
96712
|
+
type: Component,
|
|
96713
|
+
args: [{ selector: 'praxis-epistemic-badge', imports: [MatIconModule, MatTooltipModule], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
96714
|
+
class: 'praxis-epistemic-badge-host',
|
|
96715
|
+
}, template: `
|
|
96716
|
+
@if (normalizedMeta(); as m) {
|
|
96717
|
+
@let kind = epistemicKind();
|
|
96718
|
+
@let state = availabilityState();
|
|
96719
|
+
@let blocked = !isAvailable();
|
|
96720
|
+
|
|
96721
|
+
@if (variant() === 'compact') {
|
|
96722
|
+
<div
|
|
96723
|
+
class="prx-epistemic prx-epistemic--compact"
|
|
96724
|
+
[class.prx-epistemic--blocked]="blocked"
|
|
96725
|
+
role="group"
|
|
96726
|
+
[attr.aria-label]="regionAriaLabel()"
|
|
96727
|
+
[attr.data-epistemic-kind]="kind"
|
|
96728
|
+
[attr.data-availability-state]="state"
|
|
96729
|
+
[attr.data-testid]="testIdPrefix() + '-badge'"
|
|
96730
|
+
>
|
|
96731
|
+
<span
|
|
96732
|
+
class="prx-epistemic-pill prx-epistemic-pill--kind"
|
|
96733
|
+
[attr.data-kind]="kind"
|
|
96734
|
+
[attr.data-testid]="testIdPrefix() + '-kind'"
|
|
96735
|
+
>
|
|
96736
|
+
<mat-icon aria-hidden="true">{{ kindIcon(kind) }}</mat-icon>
|
|
96737
|
+
<span>{{ kindLabel(kind) }}</span>
|
|
96738
|
+
</span>
|
|
96739
|
+
|
|
96740
|
+
@if (blocked) {
|
|
96741
|
+
<span
|
|
96742
|
+
class="prx-epistemic-pill prx-epistemic-pill--state"
|
|
96743
|
+
[attr.data-state]="state"
|
|
96744
|
+
[matTooltip]="failClosedGuidance(state)"
|
|
96745
|
+
[attr.data-testid]="testIdPrefix() + '-state'"
|
|
96746
|
+
>
|
|
96747
|
+
<mat-icon aria-hidden="true">{{ stateIcon(state) }}</mat-icon>
|
|
96748
|
+
<span>{{ stateLabel(state) }}</span>
|
|
96749
|
+
</span>
|
|
96750
|
+
}
|
|
96751
|
+
|
|
96752
|
+
@if (suppressedCount() > 0) {
|
|
96753
|
+
<span
|
|
96754
|
+
class="prx-epistemic-pill prx-epistemic-pill--warn"
|
|
96755
|
+
[attr.data-testid]="testIdPrefix() + '-suppressed-chip'"
|
|
96756
|
+
>
|
|
96757
|
+
<mat-icon aria-hidden="true">visibility_off</mat-icon>
|
|
96758
|
+
<span>{{ suppressedAlertText() }}</span>
|
|
96759
|
+
</span>
|
|
96760
|
+
}
|
|
96761
|
+
|
|
96762
|
+
@if (!blocked && qValueDisplay(); as qText) {
|
|
96763
|
+
<span
|
|
96764
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96765
|
+
[attr.data-testid]="testIdPrefix() + '-qvalue'"
|
|
96766
|
+
>
|
|
96767
|
+
{{ qValueLabel(qText) }}
|
|
96768
|
+
</span>
|
|
96769
|
+
}
|
|
96770
|
+
|
|
96771
|
+
@if (m.sampleSize !== undefined && m.sampleSize !== null) {
|
|
96772
|
+
<span
|
|
96773
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96774
|
+
[attr.data-testid]="testIdPrefix() + '-sample-size'"
|
|
96775
|
+
>
|
|
96776
|
+
{{ sampleSizeLabel(m.sampleSize) }}
|
|
96777
|
+
</span>
|
|
96778
|
+
}
|
|
96779
|
+
|
|
96780
|
+
@if (hasCompactDetails()) {
|
|
96781
|
+
<button
|
|
96782
|
+
type="button"
|
|
96783
|
+
class="prx-epistemic__toggle-btn"
|
|
96784
|
+
[attr.aria-controls]="compactDetailsId"
|
|
96785
|
+
[attr.aria-expanded]="detailsExpanded()"
|
|
96786
|
+
[attr.aria-label]="detailsExpanded() ? collapseDetailsLabel() : expandDetailsLabel()"
|
|
96787
|
+
[matTooltip]="detailsExpanded() ? collapseDetailsLabel() : expandDetailsLabel()"
|
|
96788
|
+
[attr.data-testid]="testIdPrefix() + '-toggle-details'"
|
|
96789
|
+
(click)="toggleDetails()"
|
|
96790
|
+
>
|
|
96791
|
+
<mat-icon aria-hidden="true">{{ detailsExpanded() ? 'expand_less' : 'info_outline' }}</mat-icon>
|
|
96792
|
+
</button>
|
|
96793
|
+
}
|
|
96794
|
+
|
|
96795
|
+
@if (hasCompactDetails() && detailsExpanded()) {
|
|
96796
|
+
<div
|
|
96797
|
+
[id]="compactDetailsId"
|
|
96798
|
+
class="prx-epistemic__compact-drawer"
|
|
96799
|
+
[attr.data-testid]="testIdPrefix() + '-compact-details'"
|
|
96800
|
+
>
|
|
96801
|
+
@if (blocked) {
|
|
96802
|
+
<p class="prx-epistemic__note" [attr.data-testid]="testIdPrefix() + '-compact-guidance'">
|
|
96803
|
+
{{ failClosedGuidance(state) }}
|
|
96804
|
+
</p>
|
|
96805
|
+
}
|
|
96806
|
+
<div class="prx-epistemic__metrics">
|
|
96807
|
+
@if (nigriniDisplay(); as nigriniText) {
|
|
96808
|
+
<span
|
|
96809
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96810
|
+
[attr.data-testid]="testIdPrefix() + '-nigrini'"
|
|
96811
|
+
>
|
|
96812
|
+
{{ nigriniText }}
|
|
96813
|
+
</span>
|
|
96814
|
+
}
|
|
96815
|
+
@if (m.modelCardId) {
|
|
96816
|
+
<span
|
|
96817
|
+
class="prx-epistemic-metric"
|
|
96818
|
+
[attr.data-testid]="testIdPrefix() + '-model-card'"
|
|
96819
|
+
>
|
|
96820
|
+
{{ modelCardLabel(m.modelCardId) }}
|
|
96821
|
+
</span>
|
|
96822
|
+
}
|
|
96823
|
+
@if (m.datasetKey) {
|
|
96824
|
+
<span
|
|
96825
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96826
|
+
[attr.data-testid]="testIdPrefix() + '-dataset'"
|
|
96827
|
+
>
|
|
96828
|
+
{{ datasetKeyLabel(m.datasetKey) }}
|
|
96829
|
+
</span>
|
|
96830
|
+
}
|
|
96831
|
+
@if (m.provenanceHash) {
|
|
96832
|
+
<span class="prx-epistemic__hash-group">
|
|
96833
|
+
<span
|
|
96834
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96835
|
+
[attr.title]="m.provenanceHash"
|
|
96836
|
+
[attr.data-testid]="testIdPrefix() + '-provenance-hash'"
|
|
96837
|
+
>
|
|
96838
|
+
{{ provenanceHashLabel() }}: {{ truncatedHash() }}
|
|
96839
|
+
</span>
|
|
96840
|
+
@if (showCopyHash()) {
|
|
96841
|
+
<button
|
|
96842
|
+
type="button"
|
|
96843
|
+
class="prx-epistemic__copy-btn"
|
|
96844
|
+
[attr.aria-label]="copiedHash() ? copiedHashLabel() : copyHashLabel()"
|
|
96845
|
+
[matTooltip]="copiedHash() ? copiedHashLabel() : copyHashLabel()"
|
|
96846
|
+
[attr.data-testid]="testIdPrefix() + '-copy-hash'"
|
|
96847
|
+
(click)="copyProvenanceHash(m.provenanceHash)"
|
|
96848
|
+
>
|
|
96849
|
+
<mat-icon aria-hidden="true">{{ copiedHash() ? 'check' : 'content_copy' }}</mat-icon>
|
|
96850
|
+
</button>
|
|
96851
|
+
<span class="prx-epistemic__sr-only" role="status" aria-live="polite">
|
|
96852
|
+
{{ copiedHash() ? copiedHashLabel() : '' }}
|
|
96853
|
+
</span>
|
|
96854
|
+
}
|
|
96855
|
+
</span>
|
|
96856
|
+
}
|
|
96857
|
+
</div>
|
|
96858
|
+
@if (showMethodologyNote() && m.methodologyNote) {
|
|
96859
|
+
<p class="prx-epistemic__note" [attr.data-testid]="testIdPrefix() + '-methodology-note'">
|
|
96860
|
+
{{ m.methodologyNote }}
|
|
96861
|
+
</p>
|
|
96862
|
+
}
|
|
96863
|
+
</div>
|
|
96864
|
+
}
|
|
96865
|
+
</div>
|
|
96866
|
+
} @else {
|
|
96867
|
+
<section
|
|
96868
|
+
class="prx-epistemic prx-epistemic--detailed"
|
|
96869
|
+
[class.prx-epistemic--blocked]="blocked"
|
|
96870
|
+
role="region"
|
|
96871
|
+
[attr.aria-label]="regionAriaLabel()"
|
|
96872
|
+
[attr.data-epistemic-kind]="kind"
|
|
96873
|
+
[attr.data-availability-state]="state"
|
|
96874
|
+
[attr.data-testid]="testIdPrefix() + '-badge'"
|
|
96875
|
+
>
|
|
96876
|
+
<div class="prx-epistemic__header">
|
|
96877
|
+
<div class="prx-epistemic__pills">
|
|
96878
|
+
<span
|
|
96879
|
+
class="prx-epistemic-pill prx-epistemic-pill--kind"
|
|
96880
|
+
[attr.data-kind]="kind"
|
|
96881
|
+
[attr.data-testid]="testIdPrefix() + '-kind'"
|
|
96882
|
+
>
|
|
96883
|
+
<mat-icon aria-hidden="true">{{ kindIcon(kind) }}</mat-icon>
|
|
96884
|
+
<span>{{ kindLabel(kind) }}</span>
|
|
96885
|
+
</span>
|
|
96886
|
+
|
|
96887
|
+
<span
|
|
96888
|
+
class="prx-epistemic-pill prx-epistemic-pill--state"
|
|
96889
|
+
[attr.data-state]="state"
|
|
96890
|
+
[attr.data-testid]="testIdPrefix() + '-state'"
|
|
96891
|
+
>
|
|
96892
|
+
<mat-icon aria-hidden="true">{{ stateIcon(state) }}</mat-icon>
|
|
96893
|
+
<span>{{ stateLabel(state) }}</span>
|
|
96894
|
+
</span>
|
|
96895
|
+
|
|
96896
|
+
@if (m.datasetKey) {
|
|
96897
|
+
<span
|
|
96898
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96899
|
+
[attr.data-testid]="testIdPrefix() + '-dataset'"
|
|
96900
|
+
>
|
|
96901
|
+
{{ datasetKeyLabel(m.datasetKey) }}
|
|
96902
|
+
</span>
|
|
96903
|
+
}
|
|
96904
|
+
</div>
|
|
96905
|
+
</div>
|
|
96906
|
+
|
|
96907
|
+
@if (blocked) {
|
|
96908
|
+
<div
|
|
96909
|
+
class="prx-epistemic__alert prx-epistemic__alert--danger"
|
|
96910
|
+
role="alert"
|
|
96911
|
+
[attr.data-state]="state"
|
|
96912
|
+
[attr.data-testid]="testIdPrefix() + '-fail-closed'"
|
|
96913
|
+
>
|
|
96914
|
+
<mat-icon aria-hidden="true">{{ stateIcon(state) }}</mat-icon>
|
|
96915
|
+
<span>{{ failClosedGuidance(state) }}</span>
|
|
96916
|
+
</div>
|
|
96917
|
+
}
|
|
96918
|
+
|
|
96919
|
+
@if (suppressedCount() > 0) {
|
|
96920
|
+
<div
|
|
96921
|
+
class="prx-epistemic__alert prx-epistemic__alert--warn"
|
|
96922
|
+
role="alert"
|
|
96923
|
+
[attr.data-testid]="testIdPrefix() + '-suppressed-alert'"
|
|
96924
|
+
>
|
|
96925
|
+
<mat-icon aria-hidden="true">visibility_off</mat-icon>
|
|
96926
|
+
<span>{{ suppressedAlertText() }}</span>
|
|
96927
|
+
</div>
|
|
96928
|
+
}
|
|
96929
|
+
|
|
96930
|
+
@if (hasDetailedMetrics()) {
|
|
96931
|
+
<div class="prx-epistemic__metrics">
|
|
96932
|
+
@if (m.sampleSize !== undefined && m.sampleSize !== null) {
|
|
96933
|
+
<span
|
|
96934
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96935
|
+
[attr.data-testid]="testIdPrefix() + '-sample-size'"
|
|
96936
|
+
>
|
|
96937
|
+
{{ sampleSizeLabel(m.sampleSize) }}
|
|
96938
|
+
</span>
|
|
96939
|
+
}
|
|
96940
|
+
|
|
96941
|
+
@if (!blocked && qValueDisplay(); as qText) {
|
|
96942
|
+
<span
|
|
96943
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96944
|
+
[attr.data-testid]="testIdPrefix() + '-qvalue'"
|
|
96945
|
+
>
|
|
96946
|
+
{{ qValueLabel(qText) }}
|
|
96947
|
+
</span>
|
|
96948
|
+
}
|
|
96949
|
+
|
|
96950
|
+
@if (!blocked && m.statisticallySignificant !== undefined) {
|
|
96951
|
+
<span
|
|
96952
|
+
class="prx-epistemic-metric"
|
|
96953
|
+
[class.prx-epistemic-metric--significant]="m.statisticallySignificant"
|
|
96954
|
+
[attr.data-testid]="testIdPrefix() + '-significance'"
|
|
96955
|
+
>
|
|
96956
|
+
{{ m.statisticallySignificant ? significantYesLabel() : significantNoLabel() }}
|
|
96957
|
+
</span>
|
|
96958
|
+
}
|
|
96959
|
+
|
|
96960
|
+
@if (nigriniDisplay(); as nigriniText) {
|
|
96961
|
+
<span
|
|
96962
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96963
|
+
[attr.data-testid]="testIdPrefix() + '-nigrini'"
|
|
96964
|
+
>
|
|
96965
|
+
{{ nigriniText }}
|
|
96966
|
+
</span>
|
|
96967
|
+
}
|
|
96968
|
+
|
|
96969
|
+
@if (m.modelCardId) {
|
|
96970
|
+
<span
|
|
96971
|
+
class="prx-epistemic-metric"
|
|
96972
|
+
[attr.data-testid]="testIdPrefix() + '-model-card'"
|
|
96973
|
+
>
|
|
96974
|
+
{{ modelCardLabel(m.modelCardId) }}
|
|
96975
|
+
</span>
|
|
96976
|
+
}
|
|
96977
|
+
|
|
96978
|
+
@if (m.provenanceHash) {
|
|
96979
|
+
<span class="prx-epistemic__hash-group">
|
|
96980
|
+
<span
|
|
96981
|
+
class="prx-epistemic-metric prx-epistemic-metric--mono"
|
|
96982
|
+
[attr.title]="m.provenanceHash"
|
|
96983
|
+
[attr.data-testid]="testIdPrefix() + '-provenance-hash'"
|
|
96984
|
+
>
|
|
96985
|
+
{{ provenanceHashLabel() }}: {{ truncatedHash() }}
|
|
96986
|
+
</span>
|
|
96987
|
+
@if (showCopyHash()) {
|
|
96988
|
+
<button
|
|
96989
|
+
type="button"
|
|
96990
|
+
class="prx-epistemic__copy-btn"
|
|
96991
|
+
[attr.aria-label]="copiedHash() ? copiedHashLabel() : copyHashLabel()"
|
|
96992
|
+
[matTooltip]="copiedHash() ? copiedHashLabel() : copyHashLabel()"
|
|
96993
|
+
[attr.data-testid]="testIdPrefix() + '-copy-hash'"
|
|
96994
|
+
(click)="copyProvenanceHash(m.provenanceHash)"
|
|
96995
|
+
>
|
|
96996
|
+
<mat-icon aria-hidden="true">{{ copiedHash() ? 'check' : 'content_copy' }}</mat-icon>
|
|
96997
|
+
</button>
|
|
96998
|
+
<span class="prx-epistemic__sr-only" role="status" aria-live="polite">
|
|
96999
|
+
{{ copiedHash() ? copiedHashLabel() : '' }}
|
|
97000
|
+
</span>
|
|
97001
|
+
}
|
|
97002
|
+
</span>
|
|
97003
|
+
}
|
|
97004
|
+
</div>
|
|
97005
|
+
}
|
|
97006
|
+
|
|
97007
|
+
@if (showMethodologyNote() && m.methodologyNote) {
|
|
97008
|
+
<p class="prx-epistemic__note" [attr.data-testid]="testIdPrefix() + '-methodology-note'">
|
|
97009
|
+
{{ m.methodologyNote }}
|
|
97010
|
+
</p>
|
|
97011
|
+
}
|
|
97012
|
+
</section>
|
|
97013
|
+
}
|
|
97014
|
+
}
|
|
97015
|
+
`, styles: [":host{display:block;min-width:0;color:var(--md-sys-color-on-surface, #1a1b20)}.prx-epistemic{min-width:0;color:inherit}.prx-epistemic--compact{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.375rem}.prx-epistemic--detailed{display:grid;gap:.5rem;padding:var(--praxis-epistemic-detailed-padding, .5rem .625rem);border-radius:var(--praxis-epistemic-radius, .5rem);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, var(--md-sys-color-outline, #74777f)) 55%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-low, currentColor) 4%,transparent)}.prx-epistemic--blocked.prx-epistemic--detailed{border-color:color-mix(in srgb,var(--md-sys-color-error, #b3261e) 48%,transparent);background:color-mix(in srgb,var(--md-sys-color-error-container, #f9dedc) 35%,transparent)}.prx-epistemic__header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}.prx-epistemic__pills,.prx-epistemic__metrics{display:flex;flex-wrap:wrap;align-items:center;gap:.375rem;min-width:0}.prx-epistemic-pill{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:999px;border:1px solid transparent;font-size:.75rem;line-height:1.3;font-weight:600;max-width:100%}.prx-epistemic-pill mat-icon{width:.875rem;height:.875rem;font-size:.875rem;line-height:.875rem;flex:0 0 auto}.prx-epistemic-pill--kind{background:color-mix(in srgb,var(--_kind-accent, var(--md-sys-color-primary, #0b57d0)) 12%,transparent);border-color:color-mix(in srgb,var(--_kind-accent, var(--md-sys-color-primary, #0b57d0)) 34%,transparent);color:color-mix(in srgb,var(--_kind-accent, var(--md-sys-color-primary, #0b57d0)) 82%,var(--md-sys-color-on-surface, currentColor))}.prx-epistemic-pill--kind[data-kind=DETERMINISTIC_LAW]{--_kind-accent: var(--praxis-epistemic-kind-deterministic, var(--praxis-color-success, #1b5e20))}.prx-epistemic-pill--kind[data-kind=CALIBRATED_PROBABILITY]{--_kind-accent: var(--praxis-epistemic-kind-probabilistic, var(--md-sys-color-primary, #0b57d0))}.prx-epistemic-pill--kind[data-kind=STOCHASTIC_SIMULATION]{--_kind-accent: var(--praxis-epistemic-kind-stochastic, var(--md-sys-color-tertiary, #6750a4))}.prx-epistemic-pill--kind[data-kind=CAUSAL_HYPOTHESIS]{--_kind-accent: var(--praxis-epistemic-kind-causal, var(--praxis-color-warning, #9a4700))}.prx-epistemic-pill--kind[data-kind=OPTIMIZATION_RESULT]{--_kind-accent: var(--praxis-epistemic-kind-optimization, var(--praxis-color-info, #006a6a))}.prx-epistemic-pill--state[data-state=AVAILABLE]{background:color-mix(in srgb,var(--praxis-color-success, #1b5e20) 12%,transparent);border-color:color-mix(in srgb,var(--praxis-color-success, #1b5e20) 32%,transparent);color:color-mix(in srgb,var(--praxis-color-success, #1b5e20) 82%,var(--md-sys-color-on-surface, currentColor))}.prx-epistemic-pill--state[data-state=INSUFFICIENT_SAMPLE],.prx-epistemic-pill--state[data-state=DEGRADED],.prx-epistemic-pill--warn{background:color-mix(in srgb,var(--praxis-epistemic-warn-accent, #d97706) 16%,transparent);border-color:color-mix(in srgb,var(--praxis-epistemic-warn-accent, #d97706) 44%,transparent);color:var( --praxis-epistemic-warn-text, color-mix(in srgb, #b45309 42%, var(--md-sys-color-on-surface, currentColor)) )}.prx-epistemic-pill--state[data-state=K_ANONYMITY_SUPPRESSED],.prx-epistemic-pill--state[data-state=ENGINE_UNAVAILABLE]{background:color-mix(in srgb,var(--md-sys-color-error-container, #f9dedc) 72%,transparent);border-color:color-mix(in srgb,var(--md-sys-color-error, #b3261e) 42%,transparent);color:var(--md-sys-color-on-error-container, #410e0b)}.prx-epistemic-metric{display:inline-flex;align-items:center;padding:.125rem .4375rem;border-radius:.375rem;border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, var(--md-sys-color-outline, #74777f)) 45%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-high, currentColor) 6%,transparent);color:var(--md-sys-color-on-surface-variant, currentColor);font-size:.75rem;line-height:1.3;font-weight:500;overflow-wrap:anywhere}.prx-epistemic-metric--mono{font-family:var(--praxis-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);font-variant-numeric:tabular-nums}.prx-epistemic-metric--significant{border-color:color-mix(in srgb,var(--md-sys-color-primary, #1b5e20) 38%,transparent);color:var(--md-sys-color-primary, #1b5e20);font-weight:600}.prx-epistemic__alert{display:flex;align-items:flex-start;gap:.4375rem;padding:.4375rem .5625rem;border-radius:.375rem;border:1px solid transparent;font-size:.78125rem;line-height:1.38}.prx-epistemic__alert mat-icon{width:1rem;height:1rem;font-size:1rem;line-height:1rem;margin-top:.0625rem;flex:0 0 auto}.prx-epistemic__alert--danger{background:color-mix(in srgb,var(--md-sys-color-error-container, #f9dedc) 72%,transparent);border-color:color-mix(in srgb,var(--md-sys-color-error, #b3261e) 40%,transparent);color:var(--md-sys-color-on-error-container, #410e0b)}.prx-epistemic__alert--warn{background:color-mix(in srgb,var(--praxis-epistemic-warn-accent, #d97706) 16%,transparent);border-color:color-mix(in srgb,var(--praxis-epistemic-warn-accent, #d97706) 44%,transparent);color:var( --praxis-epistemic-warn-text, color-mix(in srgb, #b45309 42%, var(--md-sys-color-on-surface, currentColor)) )}.prx-epistemic__hash-group{display:inline-flex;align-items:center;gap:.25rem;min-width:0}.prx-epistemic__copy-btn,.prx-epistemic__toggle-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;padding:0;border-radius:.375rem;border:1px solid color-mix(in srgb,var(--md-sys-color-outline, #74777f) 40%,transparent);background:transparent;color:var(--md-sys-color-on-surface-variant, currentColor);cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.prx-epistemic__copy-btn mat-icon,.prx-epistemic__toggle-btn mat-icon{width:.875rem;height:.875rem;font-size:.875rem;line-height:.875rem}.prx-epistemic__copy-btn:hover,.prx-epistemic__toggle-btn:hover{background:color-mix(in srgb,currentColor 8%,transparent)}.prx-epistemic__copy-btn:focus-visible,.prx-epistemic__toggle-btn:focus-visible{outline:2px solid var(--md-sys-color-primary, currentColor);outline-offset:2px}.prx-epistemic__compact-drawer{flex-basis:100%;display:grid;gap:.375rem;padding:.4375rem .5rem;border-radius:.375rem;border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, var(--md-sys-color-outline, #74777f)) 45%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-low, currentColor) 4%,transparent)}.prx-epistemic__note{margin:0;font-size:.78125rem;line-height:1.4;color:var(--md-sys-color-on-surface-variant, currentColor);overflow-wrap:anywhere}.prx-epistemic__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){.prx-epistemic__copy-btn,.prx-epistemic__toggle-btn{transition:none}}@media(forced-colors:active){.prx-epistemic--detailed,.prx-epistemic-pill,.prx-epistemic-metric,.prx-epistemic__alert,.prx-epistemic__copy-btn,.prx-epistemic__toggle-btn,.prx-epistemic__compact-drawer{border:1px solid CanvasText;background:Canvas;color:CanvasText}}\n"] }]
|
|
97016
|
+
}], ctorParameters: () => [], propDecorators: { meta: [{ type: i0.Input, args: [{ isSignal: true, alias: "meta", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showCopyHash: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCopyHash", required: false }] }], showMethodologyNote: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMethodologyNote", required: false }] }], testIdPrefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "testIdPrefix", required: false }] }], provenanceCopied: [{ type: i0.Output, args: ["provenanceCopied"] }] } });
|
|
97017
|
+
|
|
97018
|
+
const PRAXIS_EPISTEMIC_BADGE_METADATA = {
|
|
97019
|
+
id: 'widget:epistemic-badge',
|
|
97020
|
+
selector: 'praxis-epistemic-badge',
|
|
97021
|
+
component: PraxisEpistemicBadgeComponent,
|
|
97022
|
+
friendlyName: 'Epistemic Badge',
|
|
97023
|
+
description: 'Selo epistêmico frameless que comunica natureza metodológica, estado fail-closed, controle FDR, k-anonimato, Nigrini-Benford e hash de proveniência.',
|
|
97024
|
+
icon: 'verified',
|
|
97025
|
+
inputs: [
|
|
97026
|
+
{
|
|
97027
|
+
name: 'meta',
|
|
97028
|
+
type: 'PraxisEpistemicMeta | null | undefined',
|
|
97029
|
+
label: 'Metadados Epistêmicos',
|
|
97030
|
+
description: 'Metadados epistêmicos normalizados conforme contrato de inteligência v1.',
|
|
97031
|
+
},
|
|
97032
|
+
{
|
|
97033
|
+
name: 'variant',
|
|
97034
|
+
type: "'compact' | 'detailed'",
|
|
97035
|
+
label: 'Variante',
|
|
97036
|
+
description: 'Modo compacto com abertura opcional ou resumo detalhado de proveniência.',
|
|
97037
|
+
default: 'compact',
|
|
97038
|
+
},
|
|
97039
|
+
{
|
|
97040
|
+
name: 'showCopyHash',
|
|
97041
|
+
type: 'boolean',
|
|
97042
|
+
label: 'Exibir cópia de hash',
|
|
97043
|
+
description: 'Habilita botão acessível para copiar o hash completo de proveniência.',
|
|
97044
|
+
default: true,
|
|
97045
|
+
},
|
|
97046
|
+
{
|
|
97047
|
+
name: 'showMethodologyNote',
|
|
97048
|
+
type: 'boolean',
|
|
97049
|
+
label: 'Exibir nota metodológica',
|
|
97050
|
+
description: 'Exibe a nota metodológica sanitizada quando presente.',
|
|
97051
|
+
default: true,
|
|
97052
|
+
},
|
|
97053
|
+
{
|
|
97054
|
+
name: 'testIdPrefix',
|
|
97055
|
+
type: 'string',
|
|
97056
|
+
label: 'Prefixo de testid',
|
|
97057
|
+
description: 'Prefixo determinístico aplicado aos atributos data-testid.',
|
|
97058
|
+
default: 'praxis-epistemic',
|
|
97059
|
+
},
|
|
97060
|
+
],
|
|
97061
|
+
outputs: [
|
|
97062
|
+
{
|
|
97063
|
+
name: 'provenanceCopied',
|
|
97064
|
+
type: 'string',
|
|
97065
|
+
description: 'Emitido com o hash completo após cópia bem-sucedida para a área de transferência.',
|
|
97066
|
+
},
|
|
97067
|
+
],
|
|
97068
|
+
tags: ['widget', 'intelligence', 'epistemic', 'provenance', 'governance'],
|
|
97069
|
+
lib: '@praxisui/core',
|
|
97070
|
+
layoutHints: { recommendedCols: 6, recommendedRows: 2, minCols: 3, minRows: 1 },
|
|
97071
|
+
};
|
|
97072
|
+
function providePraxisEpistemicBadgeMetadata() {
|
|
97073
|
+
return {
|
|
97074
|
+
provide: ENVIRONMENT_INITIALIZER,
|
|
97075
|
+
multi: true,
|
|
97076
|
+
useFactory: (registry) => () => {
|
|
97077
|
+
registry.register(PRAXIS_EPISTEMIC_BADGE_METADATA);
|
|
97078
|
+
},
|
|
97079
|
+
deps: [ComponentMetadataRegistry],
|
|
97080
|
+
};
|
|
97081
|
+
}
|
|
97082
|
+
|
|
97083
|
+
function serializeRequestHeadersSignature(headers) {
|
|
97084
|
+
if (!headers) {
|
|
97085
|
+
return '';
|
|
97086
|
+
}
|
|
97087
|
+
const deduplicated = new Map();
|
|
97088
|
+
if (typeof headers.keys === 'function' &&
|
|
97089
|
+
typeof headers.getAll === 'function') {
|
|
97090
|
+
const httpHeaders = headers;
|
|
97091
|
+
for (const key of httpHeaders.keys()) {
|
|
97092
|
+
const cleanKey = key.trim();
|
|
97093
|
+
if (!cleanKey) {
|
|
97094
|
+
continue;
|
|
97095
|
+
}
|
|
97096
|
+
const values = (httpHeaders.getAll(key) ?? []).map((v) => String(v).trim()).filter(Boolean);
|
|
97097
|
+
if (values.length > 0) {
|
|
97098
|
+
deduplicated.set(cleanKey.toLowerCase(), values);
|
|
97099
|
+
}
|
|
97100
|
+
}
|
|
97101
|
+
}
|
|
97102
|
+
else if (typeof headers === 'object') {
|
|
97103
|
+
for (const [key, rawValue] of Object.entries(headers)) {
|
|
97104
|
+
const cleanKey = key.trim();
|
|
97105
|
+
if (!cleanKey || rawValue === undefined || rawValue === null) {
|
|
97106
|
+
continue;
|
|
97107
|
+
}
|
|
97108
|
+
const values = (Array.isArray(rawValue) ? rawValue : [rawValue])
|
|
97109
|
+
.map((v) => String(v).trim())
|
|
97110
|
+
.filter(Boolean);
|
|
97111
|
+
if (values.length > 0) {
|
|
97112
|
+
deduplicated.set(cleanKey.toLowerCase(), values);
|
|
97113
|
+
}
|
|
97114
|
+
}
|
|
97115
|
+
}
|
|
97116
|
+
const normalized = Array.from(deduplicated.entries()).sort(([a], [b]) => a.localeCompare(b));
|
|
97117
|
+
return JSON.stringify(normalized);
|
|
97118
|
+
}
|
|
97119
|
+
const TERMINAL_RECEIPT_SIGNATURE_SEPARATOR = ':';
|
|
97120
|
+
function buildTerminalReceiptSignature(receipt) {
|
|
97121
|
+
const cleanId = receipt.jobId?.trim() ?? '';
|
|
97122
|
+
return `${cleanId}${TERMINAL_RECEIPT_SIGNATURE_SEPARATOR}${receipt.status}${TERMINAL_RECEIPT_SIGNATURE_SEPARATOR}${receipt.updatedAtUtc ?? ''}`;
|
|
97123
|
+
}
|
|
97124
|
+
function matchesTerminalReceiptJobId(signature, jobId) {
|
|
97125
|
+
return Boolean(signature &&
|
|
97126
|
+
jobId &&
|
|
97127
|
+
signature.startsWith(`${jobId}${TERMINAL_RECEIPT_SIGNATURE_SEPARATOR}`));
|
|
97128
|
+
}
|
|
97129
|
+
class PraxisIntelligenceJobStatusComponent {
|
|
97130
|
+
jobsService = inject(PraxisIntelligenceJobsService, { optional: true });
|
|
97131
|
+
i18n = inject(PraxisI18nService, { optional: true });
|
|
97132
|
+
destroyRef = inject(DestroyRef);
|
|
97133
|
+
receipt = input(null, ...(ngDevMode ? [{ debugName: "receipt" }] : /* istanbul ignore next */ []));
|
|
97134
|
+
jobId = input(null, ...(ngDevMode ? [{ debugName: "jobId" }] : /* istanbul ignore next */ []));
|
|
97135
|
+
managed = input(false, { ...(ngDevMode ? { debugName: "managed" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
97136
|
+
pollIntervalMs = input(1500, ...(ngDevMode ? [{ debugName: "pollIntervalMs" }] : /* istanbul ignore next */ []));
|
|
97137
|
+
maxTransientErrors = input(undefined, ...(ngDevMode ? [{ debugName: "maxTransientErrors" }] : /* istanbul ignore next */ []));
|
|
97138
|
+
emitInitialTerminal = input(false, { ...(ngDevMode ? { debugName: "emitInitialTerminal" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
97139
|
+
endpointKey = input(undefined, ...(ngDevMode ? [{ debugName: "endpointKey" }] : /* istanbul ignore next */ []));
|
|
97140
|
+
requestHeaders = input(undefined, ...(ngDevMode ? [{ debugName: "requestHeaders" }] : /* istanbul ignore next */ []));
|
|
97141
|
+
allowCancel = input(true, { ...(ngDevMode ? { debugName: "allowCancel" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
97142
|
+
errorCode = input(null, ...(ngDevMode ? [{ debugName: "errorCode" }] : /* istanbul ignore next */ []));
|
|
97143
|
+
correlationId = input(null, ...(ngDevMode ? [{ debugName: "correlationId" }] : /* istanbul ignore next */ []));
|
|
97144
|
+
compact = input(false, { ...(ngDevMode ? { debugName: "compact" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
97145
|
+
testIdPrefix = input('praxis-intelligence-job', ...(ngDevMode ? [{ debugName: "testIdPrefix" }] : /* istanbul ignore next */ []));
|
|
97146
|
+
cancelRequested = output();
|
|
97147
|
+
receiptChange = output();
|
|
97148
|
+
completed = output();
|
|
97149
|
+
failed = output();
|
|
97150
|
+
cancelled = output();
|
|
97151
|
+
expired = output();
|
|
97152
|
+
cancelFailed = output();
|
|
97153
|
+
pollingInterrupted = output();
|
|
97154
|
+
polledReceipt = signal(null, ...(ngDevMode ? [{ debugName: "polledReceipt" }] : /* istanbul ignore next */ []));
|
|
97155
|
+
managedError = signal(null, ...(ngDevMode ? [{ debugName: "managedError" }] : /* istanbul ignore next */ []));
|
|
97156
|
+
cancelError = signal(null, ...(ngDevMode ? [{ debugName: "cancelError" }] : /* istanbul ignore next */ []));
|
|
97157
|
+
cancelling = signal(false, ...(ngDevMode ? [{ debugName: "cancelling" }] : /* istanbul ignore next */ []));
|
|
97158
|
+
pollInterrupted = signal(false, ...(ngDevMode ? [{ debugName: "pollInterrupted" }] : /* istanbul ignore next */ []));
|
|
97159
|
+
pollGeneration = signal(0, ...(ngDevMode ? [{ debugName: "pollGeneration" }] : /* istanbul ignore next */ []));
|
|
97160
|
+
requestHeadersSignature = computed(() => serializeRequestHeadersSignature(this.requestHeaders()), ...(ngDevMode ? [{ debugName: "requestHeadersSignature" }] : /* istanbul ignore next */ []));
|
|
97161
|
+
activePollSub = null;
|
|
97162
|
+
activeCancelSub = null;
|
|
97163
|
+
lastTerminalSignature = null;
|
|
97164
|
+
lastPollIdentityKey = null;
|
|
97165
|
+
lastPollGeneration = 0;
|
|
97166
|
+
lastDeclarativeJobId = null;
|
|
97167
|
+
lastDeclarativeWasTerminal = false;
|
|
97168
|
+
constructor() {
|
|
97169
|
+
this.destroyRef.onDestroy(() => {
|
|
97170
|
+
this.activePollSub?.unsubscribe();
|
|
97171
|
+
this.activePollSub = null;
|
|
97172
|
+
this.activeCancelSub?.unsubscribe();
|
|
97173
|
+
this.activeCancelSub = null;
|
|
97174
|
+
});
|
|
97175
|
+
effect((onCleanup) => {
|
|
97176
|
+
const normalizedId = this.normalizedJobId();
|
|
97177
|
+
const shouldPoll = this.isManagedMode();
|
|
97178
|
+
const intervalMs = this.pollIntervalMs();
|
|
97179
|
+
const maxTransientErrors = this.maxTransientErrors();
|
|
97180
|
+
const endpointKey = this.endpointKey();
|
|
97181
|
+
this.requestHeadersSignature();
|
|
97182
|
+
const generation = this.pollGeneration();
|
|
97183
|
+
const isExplicitRestart = generation !== this.lastPollGeneration;
|
|
97184
|
+
this.lastPollGeneration = generation;
|
|
97185
|
+
const identityKey = `${normalizedId}|${this.managed()}|${Boolean(this.explicitErrorCode())}|${this.managed() ? 'managed' : String(Boolean(this.receipt()))}`;
|
|
97186
|
+
const identityChanged = identityKey !== this.lastPollIdentityKey;
|
|
97187
|
+
if (identityChanged) {
|
|
97188
|
+
this.lastPollIdentityKey = identityKey;
|
|
97189
|
+
untracked(() => {
|
|
97190
|
+
this.activeCancelSub?.unsubscribe();
|
|
97191
|
+
this.activeCancelSub = null;
|
|
97192
|
+
this.cancelling.set(false);
|
|
97193
|
+
this.pollInterrupted.set(false);
|
|
97194
|
+
this.polledReceipt.set(null);
|
|
97195
|
+
this.managedError.set(null);
|
|
97196
|
+
this.cancelError.set(null);
|
|
97197
|
+
this.lastTerminalSignature = null;
|
|
97198
|
+
});
|
|
97199
|
+
}
|
|
97200
|
+
if (!shouldPoll || !this.jobsService) {
|
|
97201
|
+
return;
|
|
97202
|
+
}
|
|
97203
|
+
if (!identityChanged && !isExplicitRestart) {
|
|
97204
|
+
if (untracked(() => this.pollInterrupted())) {
|
|
97205
|
+
return;
|
|
97206
|
+
}
|
|
97207
|
+
const currentPolled = untracked(() => this.polledReceipt());
|
|
97208
|
+
if (currentPolled &&
|
|
97209
|
+
currentPolled.jobId?.trim() === normalizedId &&
|
|
97210
|
+
isPraxisIntelligenceJobTerminal(currentPolled.status)) {
|
|
97211
|
+
return;
|
|
97212
|
+
}
|
|
97213
|
+
}
|
|
97214
|
+
const existingReceipt = untracked(() => this.polledReceipt() ?? this.receipt());
|
|
97215
|
+
if (!isExplicitRestart &&
|
|
97216
|
+
existingReceipt &&
|
|
97217
|
+
(!existingReceipt.jobId?.trim() || existingReceipt.jobId.trim() === normalizedId) &&
|
|
97218
|
+
isPraxisIntelligenceJobTerminal(existingReceipt.status)) {
|
|
97219
|
+
return;
|
|
97220
|
+
}
|
|
97221
|
+
const headers = untracked(() => this.requestHeaders());
|
|
97222
|
+
untracked(() => {
|
|
97223
|
+
this.pollInterrupted.set(false);
|
|
97224
|
+
});
|
|
97225
|
+
const sub = this.jobsService
|
|
97226
|
+
.pollJob(normalizedId, {
|
|
97227
|
+
intervalMs,
|
|
97228
|
+
maxTransientErrors,
|
|
97229
|
+
endpointKey,
|
|
97230
|
+
headers,
|
|
97231
|
+
destroyRef: this.destroyRef,
|
|
97232
|
+
})
|
|
97233
|
+
.subscribe({
|
|
97234
|
+
next: (nextReceipt) => {
|
|
97235
|
+
this.pollInterrupted.set(false);
|
|
97236
|
+
this.managedError.set(null);
|
|
97237
|
+
if (isPraxisIntelligenceJobTerminal(nextReceipt.status)) {
|
|
97238
|
+
this.cancelError.set(null);
|
|
97239
|
+
}
|
|
97240
|
+
this.polledReceipt.set(nextReceipt);
|
|
97241
|
+
this.receiptChange.emit(nextReceipt);
|
|
97242
|
+
this.emitTerminalReceiptIfNeeded(nextReceipt);
|
|
97243
|
+
},
|
|
97244
|
+
error: (err) => {
|
|
97245
|
+
this.pollInterrupted.set(false);
|
|
97246
|
+
const jobError = err instanceof PraxisIntelligenceJobError
|
|
97247
|
+
? err
|
|
97248
|
+
: this.jobsService?.translateError(err);
|
|
97249
|
+
if (jobError) {
|
|
97250
|
+
this.managedError.set(jobError);
|
|
97251
|
+
this.failed.emit(jobError);
|
|
97252
|
+
}
|
|
97253
|
+
},
|
|
97254
|
+
complete: () => {
|
|
97255
|
+
if (this.activePollSub === sub) {
|
|
97256
|
+
this.activePollSub = null;
|
|
97257
|
+
}
|
|
97258
|
+
const latest = this.polledReceipt() ?? this.receipt();
|
|
97259
|
+
const hasTerminal = Boolean(latest && isPraxisIntelligenceJobTerminal(latest.status));
|
|
97260
|
+
if (!hasTerminal && !this.managedError() && !this.cancelling()) {
|
|
97261
|
+
this.pollInterrupted.set(true);
|
|
97262
|
+
this.pollingInterrupted.emit(normalizedId);
|
|
97263
|
+
}
|
|
97264
|
+
},
|
|
97265
|
+
});
|
|
97266
|
+
this.activePollSub = sub;
|
|
97267
|
+
onCleanup(() => {
|
|
97268
|
+
sub.unsubscribe();
|
|
97269
|
+
if (this.activePollSub === sub) {
|
|
97270
|
+
this.activePollSub = null;
|
|
97271
|
+
}
|
|
97272
|
+
});
|
|
97273
|
+
});
|
|
97274
|
+
effect(() => {
|
|
97275
|
+
const externalReceipt = this.receipt();
|
|
97276
|
+
untracked(() => {
|
|
97277
|
+
if (!externalReceipt) {
|
|
97278
|
+
this.lastDeclarativeJobId = null;
|
|
97279
|
+
this.lastDeclarativeWasTerminal = false;
|
|
97280
|
+
return;
|
|
97281
|
+
}
|
|
97282
|
+
const cleanId = externalReceipt.jobId?.trim() || null;
|
|
97283
|
+
const isTerminal = isPraxisIntelligenceJobTerminal(externalReceipt.status);
|
|
97284
|
+
const polledId = this.polledReceipt()?.jobId?.trim() || null;
|
|
97285
|
+
const activeId = this.lastDeclarativeJobId ?? polledId ?? (this.normalizedJobId() || null);
|
|
97286
|
+
const isDifferentJob = Boolean(cleanId && activeId && cleanId !== activeId);
|
|
97287
|
+
if (isTerminal) {
|
|
97288
|
+
this.activePollSub?.unsubscribe();
|
|
97289
|
+
this.activePollSub = null;
|
|
97290
|
+
if (this.pollInterrupted()) {
|
|
97291
|
+
this.pollInterrupted.set(false);
|
|
97292
|
+
}
|
|
97293
|
+
if (this.polledReceipt()) {
|
|
97294
|
+
this.polledReceipt.set(null);
|
|
97295
|
+
}
|
|
97296
|
+
}
|
|
97297
|
+
else if (isDifferentJob) {
|
|
97298
|
+
if (this.pollInterrupted()) {
|
|
97299
|
+
this.pollInterrupted.set(false);
|
|
97300
|
+
}
|
|
97301
|
+
if (polledId && polledId !== cleanId) {
|
|
97302
|
+
this.polledReceipt.set(null);
|
|
97303
|
+
}
|
|
97304
|
+
}
|
|
97305
|
+
if (cleanId !== this.lastDeclarativeJobId) {
|
|
97306
|
+
this.lastDeclarativeJobId = cleanId;
|
|
97307
|
+
this.lastDeclarativeWasTerminal = isTerminal;
|
|
97308
|
+
if (!cleanId || !matchesTerminalReceiptJobId(this.lastTerminalSignature, cleanId)) {
|
|
97309
|
+
this.lastTerminalSignature = null;
|
|
97310
|
+
}
|
|
97311
|
+
if (isTerminal && this.emitInitialTerminal()) {
|
|
97312
|
+
this.emitTerminalReceiptIfNeeded(externalReceipt);
|
|
97313
|
+
}
|
|
97314
|
+
return;
|
|
97315
|
+
}
|
|
97316
|
+
if (isTerminal && (!this.lastDeclarativeWasTerminal || this.emitInitialTerminal())) {
|
|
97317
|
+
this.emitTerminalReceiptIfNeeded(externalReceipt);
|
|
97318
|
+
}
|
|
97319
|
+
this.lastDeclarativeWasTerminal = isTerminal;
|
|
97320
|
+
});
|
|
97321
|
+
});
|
|
97322
|
+
}
|
|
97323
|
+
normalizedJobId = computed(() => {
|
|
97324
|
+
const raw = this.jobId();
|
|
97325
|
+
return typeof raw === 'string' ? raw.trim() : '';
|
|
97326
|
+
}, ...(ngDevMode ? [{ debugName: "normalizedJobId" }] : /* istanbul ignore next */ []));
|
|
97327
|
+
explicitErrorCode = computed(() => {
|
|
97328
|
+
const raw = this.errorCode();
|
|
97329
|
+
if (typeof raw !== 'string' || !raw.trim()) {
|
|
97330
|
+
return null;
|
|
97331
|
+
}
|
|
97332
|
+
return normalizePraxisIntelligenceErrorCode(raw);
|
|
97333
|
+
}, ...(ngDevMode ? [{ debugName: "explicitErrorCode" }] : /* istanbul ignore next */ []));
|
|
97334
|
+
isManagedMode = computed(() => Boolean(this.normalizedJobId()) &&
|
|
97335
|
+
!this.explicitErrorCode() &&
|
|
97336
|
+
(this.managed() || !this.receipt()), ...(ngDevMode ? [{ debugName: "isManagedMode" }] : /* istanbul ignore next */ []));
|
|
97337
|
+
activeReceipt = computed(() => this.polledReceipt() ?? this.receipt() ?? null, ...(ngDevMode ? [{ debugName: "activeReceipt" }] : /* istanbul ignore next */ []));
|
|
97338
|
+
effectiveErrorCode = computed(() => {
|
|
97339
|
+
const explicit = this.explicitErrorCode();
|
|
97340
|
+
if (explicit) {
|
|
97341
|
+
return explicit;
|
|
97342
|
+
}
|
|
97343
|
+
const managedErr = this.managedError();
|
|
97344
|
+
if (managedErr) {
|
|
97345
|
+
return managedErr.errorCode;
|
|
97346
|
+
}
|
|
97347
|
+
const current = this.activeReceipt();
|
|
97348
|
+
if (current?.errorCode && isPraxisIntelligenceErrorCode(current.errorCode)) {
|
|
97349
|
+
return current.errorCode;
|
|
97350
|
+
}
|
|
97351
|
+
if (current?.status === 'FAILED') {
|
|
97352
|
+
return 'INTELLIGENCE_ENGINE_UNAVAILABLE';
|
|
97353
|
+
}
|
|
97354
|
+
return null;
|
|
97355
|
+
}, ...(ngDevMode ? [{ debugName: "effectiveErrorCode" }] : /* istanbul ignore next */ []));
|
|
97356
|
+
activeStatus = computed(() => {
|
|
97357
|
+
if (this.explicitErrorCode() || this.managedError()) {
|
|
97358
|
+
return 'FAILED';
|
|
97359
|
+
}
|
|
97360
|
+
const current = this.activeReceipt();
|
|
97361
|
+
if (current && isPraxisIntelligenceJobStatus(current.status)) {
|
|
97362
|
+
return current.status;
|
|
97363
|
+
}
|
|
97364
|
+
return 'QUEUED';
|
|
97365
|
+
}, ...(ngDevMode ? [{ debugName: "activeStatus" }] : /* istanbul ignore next */ []));
|
|
97366
|
+
activeDisplayStatus = computed(() => this.pollInterrupted() ? 'INTERRUPTED' : this.activeStatus(), ...(ngDevMode ? [{ debugName: "activeDisplayStatus" }] : /* istanbul ignore next */ []));
|
|
97367
|
+
hasVisibleState = computed(() => Boolean(this.activeReceipt() || this.normalizedJobId() || this.effectiveErrorCode()), ...(ngDevMode ? [{ debugName: "hasVisibleState" }] : /* istanbul ignore next */ []));
|
|
97368
|
+
isBusy = computed(() => {
|
|
97369
|
+
if (this.pollInterrupted()) {
|
|
97370
|
+
return false;
|
|
97371
|
+
}
|
|
97372
|
+
const status = this.activeStatus();
|
|
97373
|
+
return status === 'QUEUED' || status === 'RUNNING';
|
|
97374
|
+
}, ...(ngDevMode ? [{ debugName: "isBusy" }] : /* istanbul ignore next */ []));
|
|
97375
|
+
activeOperation = computed(() => {
|
|
97376
|
+
this.i18n?.activeLocale?.();
|
|
97377
|
+
const op = this.activeReceipt()?.operation?.trim();
|
|
97378
|
+
if (op) {
|
|
97379
|
+
return op;
|
|
97380
|
+
}
|
|
97381
|
+
return this.t('praxis.intelligence.job.defaultOperation');
|
|
97382
|
+
}, ...(ngDevMode ? [{ debugName: "activeOperation" }] : /* istanbul ignore next */ []));
|
|
97383
|
+
activeJobId = computed(() => {
|
|
97384
|
+
const fromReceipt = this.activeReceipt()?.jobId?.trim();
|
|
97385
|
+
if (fromReceipt) {
|
|
97386
|
+
return fromReceipt;
|
|
97387
|
+
}
|
|
97388
|
+
return this.normalizedJobId();
|
|
97389
|
+
}, ...(ngDevMode ? [{ debugName: "activeJobId" }] : /* istanbul ignore next */ []));
|
|
97390
|
+
activeCorrelationId = computed(() => {
|
|
97391
|
+
const fromError = this.managedError()?.correlationId?.trim();
|
|
97392
|
+
if (fromError) {
|
|
97393
|
+
return fromError;
|
|
97394
|
+
}
|
|
97395
|
+
const fromReceipt = this.activeReceipt()?.correlationId?.trim();
|
|
97396
|
+
if (fromReceipt) {
|
|
97397
|
+
return fromReceipt;
|
|
97398
|
+
}
|
|
97399
|
+
const explicit = this.correlationId()?.trim();
|
|
97400
|
+
return explicit || '';
|
|
97401
|
+
}, ...(ngDevMode ? [{ debugName: "activeCorrelationId" }] : /* istanbul ignore next */ []));
|
|
97402
|
+
progressPercent = computed(() => {
|
|
97403
|
+
const status = this.activeStatus();
|
|
97404
|
+
if (status === 'SUCCEEDED') {
|
|
97405
|
+
return 100;
|
|
97406
|
+
}
|
|
97407
|
+
const raw = this.activeReceipt()?.progressPercent ?? 0;
|
|
97408
|
+
return Number.isFinite(raw) ? Math.max(0, Math.min(100, Math.round(raw))) : 0;
|
|
97409
|
+
}, ...(ngDevMode ? [{ debugName: "progressPercent" }] : /* istanbul ignore next */ []));
|
|
97410
|
+
showProgressBar = computed(() => {
|
|
97411
|
+
if (this.pollInterrupted() || this.effectiveErrorCode()) {
|
|
97412
|
+
return false;
|
|
97413
|
+
}
|
|
97414
|
+
const status = this.activeStatus();
|
|
97415
|
+
return status === 'QUEUED' || status === 'RUNNING' || status === 'SUCCEEDED';
|
|
97416
|
+
}, ...(ngDevMode ? [{ debugName: "showProgressBar" }] : /* istanbul ignore next */ []));
|
|
97417
|
+
canCancel = computed(() => {
|
|
97418
|
+
if (!this.allowCancel() || this.effectiveErrorCode()) {
|
|
97419
|
+
return false;
|
|
97420
|
+
}
|
|
97421
|
+
const status = this.activeStatus();
|
|
97422
|
+
return (status === 'QUEUED' || status === 'RUNNING') && Boolean(this.activeJobId());
|
|
97423
|
+
}, ...(ngDevMode ? [{ debugName: "canCancel" }] : /* istanbul ignore next */ []));
|
|
97424
|
+
liveAnnouncement = computed(() => {
|
|
97425
|
+
this.i18n?.activeLocale?.();
|
|
97426
|
+
if (!this.hasVisibleState()) {
|
|
97427
|
+
return '';
|
|
97428
|
+
}
|
|
97429
|
+
const operation = this.activeOperation();
|
|
97430
|
+
if (this.pollInterrupted()) {
|
|
97431
|
+
return `${this.t('praxis.intelligence.job.statusAnnouncementSimple', {
|
|
97432
|
+
operation,
|
|
97433
|
+
status: this.statusLabel('INTERRUPTED'),
|
|
97434
|
+
})} ${this.interruptedNoticeLabel()}`;
|
|
97435
|
+
}
|
|
97436
|
+
const status = this.activeStatus();
|
|
97437
|
+
const statusText = this.statusLabel(status);
|
|
97438
|
+
const errCode = this.effectiveErrorCode();
|
|
97439
|
+
if (errCode) {
|
|
97440
|
+
return `${this.t('praxis.intelligence.job.statusAnnouncementSimple', {
|
|
97441
|
+
operation,
|
|
97442
|
+
status: statusText,
|
|
97443
|
+
})} ${this.failClosedErrorMessage(errCode)}`;
|
|
97444
|
+
}
|
|
97445
|
+
if (status === 'RUNNING' || status === 'SUCCEEDED') {
|
|
97446
|
+
return this.t('praxis.intelligence.job.statusAnnouncement', {
|
|
97447
|
+
operation,
|
|
97448
|
+
status: statusText,
|
|
97449
|
+
percent: this.progressPercent(),
|
|
97450
|
+
});
|
|
97451
|
+
}
|
|
97452
|
+
return this.t('praxis.intelligence.job.statusAnnouncementSimple', {
|
|
97453
|
+
operation,
|
|
97454
|
+
status: statusText,
|
|
97455
|
+
});
|
|
97456
|
+
}, ...(ngDevMode ? [{ debugName: "liveAnnouncement" }] : /* istanbul ignore next */ []));
|
|
97457
|
+
regionAriaLabel = computed(() => {
|
|
97458
|
+
this.i18n?.activeLocale?.();
|
|
97459
|
+
return this.t('praxis.intelligence.job.regionAria');
|
|
97460
|
+
}, ...(ngDevMode ? [{ debugName: "regionAriaLabel" }] : /* istanbul ignore next */ []));
|
|
97461
|
+
progressAriaLabel = computed(() => {
|
|
97462
|
+
this.i18n?.activeLocale?.();
|
|
97463
|
+
return this.t('praxis.intelligence.job.progressAria');
|
|
97464
|
+
}, ...(ngDevMode ? [{ debugName: "progressAriaLabel" }] : /* istanbul ignore next */ []));
|
|
97465
|
+
progressPercentText = computed(() => {
|
|
97466
|
+
this.i18n?.activeLocale?.();
|
|
97467
|
+
return this.t('praxis.intelligence.job.progressPercent', { percent: this.progressPercent() });
|
|
97468
|
+
}, ...(ngDevMode ? [{ debugName: "progressPercentText" }] : /* istanbul ignore next */ []));
|
|
97469
|
+
jobIdLabel = computed(() => {
|
|
97470
|
+
this.i18n?.activeLocale?.();
|
|
97471
|
+
return this.t('praxis.intelligence.job.jobIdLabel');
|
|
97472
|
+
}, ...(ngDevMode ? [{ debugName: "jobIdLabel" }] : /* istanbul ignore next */ []));
|
|
97473
|
+
correlationIdLabel = computed(() => {
|
|
97474
|
+
this.i18n?.activeLocale?.();
|
|
97475
|
+
return this.t('praxis.intelligence.job.correlationIdLabel');
|
|
97476
|
+
}, ...(ngDevMode ? [{ debugName: "correlationIdLabel" }] : /* istanbul ignore next */ []));
|
|
97477
|
+
errorCodeLabel = computed(() => {
|
|
97478
|
+
this.i18n?.activeLocale?.();
|
|
97479
|
+
return this.t('praxis.intelligence.job.errorCodeLabel');
|
|
97480
|
+
}, ...(ngDevMode ? [{ debugName: "errorCodeLabel" }] : /* istanbul ignore next */ []));
|
|
97481
|
+
cancelButtonLabel = computed(() => {
|
|
97482
|
+
this.i18n?.activeLocale?.();
|
|
97483
|
+
return this.t('praxis.intelligence.job.cancelButton');
|
|
97484
|
+
}, ...(ngDevMode ? [{ debugName: "cancelButtonLabel" }] : /* istanbul ignore next */ []));
|
|
97485
|
+
cancellingButtonLabel = computed(() => {
|
|
97486
|
+
this.i18n?.activeLocale?.();
|
|
97487
|
+
return this.t('praxis.intelligence.job.cancellingButton');
|
|
97488
|
+
}, ...(ngDevMode ? [{ debugName: "cancellingButtonLabel" }] : /* istanbul ignore next */ []));
|
|
97489
|
+
cancelFailedNoticeLabel = computed(() => {
|
|
97490
|
+
this.i18n?.activeLocale?.();
|
|
97491
|
+
return this.t('praxis.intelligence.job.cancelFailedNotice');
|
|
97492
|
+
}, ...(ngDevMode ? [{ debugName: "cancelFailedNoticeLabel" }] : /* istanbul ignore next */ []));
|
|
97493
|
+
interruptedNoticeLabel = computed(() => {
|
|
97494
|
+
this.i18n?.activeLocale?.();
|
|
97495
|
+
return this.t('praxis.intelligence.job.interruptedNotice');
|
|
97496
|
+
}, ...(ngDevMode ? [{ debugName: "interruptedNoticeLabel" }] : /* istanbul ignore next */ []));
|
|
97497
|
+
cancelAriaLabel = computed(() => {
|
|
97498
|
+
this.i18n?.activeLocale?.();
|
|
97499
|
+
return this.t('praxis.intelligence.job.cancelAria', { jobId: this.activeJobId() });
|
|
97500
|
+
}, ...(ngDevMode ? [{ debugName: "cancelAriaLabel" }] : /* istanbul ignore next */ []));
|
|
97501
|
+
statusIcon(status) {
|
|
97502
|
+
switch (status) {
|
|
97503
|
+
case 'QUEUED':
|
|
97504
|
+
return 'schedule';
|
|
97505
|
+
case 'RUNNING':
|
|
97506
|
+
return 'sync';
|
|
97507
|
+
case 'SUCCEEDED':
|
|
97508
|
+
return 'check_circle';
|
|
97509
|
+
case 'CANCELLED':
|
|
97510
|
+
return 'cancel';
|
|
97511
|
+
case 'EXPIRED':
|
|
97512
|
+
return 'hourglass_disabled';
|
|
97513
|
+
case 'INTERRUPTED':
|
|
97514
|
+
return 'pause_circle';
|
|
97515
|
+
case 'FAILED':
|
|
97516
|
+
default:
|
|
97517
|
+
return 'error';
|
|
97518
|
+
}
|
|
97519
|
+
}
|
|
97520
|
+
statusLabel(status) {
|
|
97521
|
+
this.i18n?.activeLocale?.();
|
|
97522
|
+
return this.t(`praxis.intelligence.job.status.${status}`);
|
|
97523
|
+
}
|
|
97524
|
+
failClosedErrorMessage(code) {
|
|
97525
|
+
this.i18n?.activeLocale?.();
|
|
97526
|
+
return this.t(PRAXIS_INTELLIGENCE_ERROR_CATALOG[code].i18nKey);
|
|
97527
|
+
}
|
|
97528
|
+
onCancelClick() {
|
|
97529
|
+
const id = this.activeJobId();
|
|
97530
|
+
if (!id || this.cancelling() || this.pollInterrupted()) {
|
|
97531
|
+
return;
|
|
97532
|
+
}
|
|
97533
|
+
this.cancelRequested.emit(id);
|
|
97534
|
+
if (!this.isManagedMode() || !this.jobsService) {
|
|
97535
|
+
return;
|
|
97536
|
+
}
|
|
97537
|
+
this.cancelling.set(true);
|
|
97538
|
+
this.cancelError.set(null);
|
|
97539
|
+
this.activePollSub?.unsubscribe();
|
|
97540
|
+
this.activePollSub = null;
|
|
97541
|
+
this.activeCancelSub?.unsubscribe();
|
|
97542
|
+
this.activeCancelSub = this.jobsService
|
|
97543
|
+
.cancelJob(id, {
|
|
97544
|
+
endpointKey: this.endpointKey(),
|
|
97545
|
+
headers: this.requestHeaders(),
|
|
97546
|
+
})
|
|
97547
|
+
.subscribe({
|
|
97548
|
+
next: (nextReceipt) => {
|
|
97549
|
+
this.cancelling.set(false);
|
|
97550
|
+
this.polledReceipt.set(nextReceipt);
|
|
97551
|
+
this.receiptChange.emit(nextReceipt);
|
|
97552
|
+
this.emitTerminalReceiptIfNeeded(nextReceipt);
|
|
97553
|
+
if (!isPraxisIntelligenceJobTerminal(nextReceipt.status) && this.isManagedMode()) {
|
|
97554
|
+
this.pollGeneration.update((value) => value + 1);
|
|
97555
|
+
}
|
|
97556
|
+
},
|
|
97557
|
+
error: (err) => {
|
|
97558
|
+
this.cancelling.set(false);
|
|
97559
|
+
const jobError = err instanceof PraxisIntelligenceJobError
|
|
97560
|
+
? err
|
|
97561
|
+
: this.jobsService?.translateError(err);
|
|
97562
|
+
if (jobError) {
|
|
97563
|
+
this.cancelError.set(jobError);
|
|
97564
|
+
this.cancelFailed.emit(jobError);
|
|
97565
|
+
}
|
|
97566
|
+
const isTerminalLookupError = jobError?.errorCode === 'JOB_NOT_FOUND' ||
|
|
97567
|
+
jobError?.errorCode === 'JOB_ACCESS_DENIED' ||
|
|
97568
|
+
jobError?.errorCode === 'INTERNAL_AUTH_FAILED';
|
|
97569
|
+
if (!isTerminalLookupError &&
|
|
97570
|
+
!isPraxisIntelligenceJobTerminal(this.activeStatus()) &&
|
|
97571
|
+
this.isManagedMode()) {
|
|
97572
|
+
this.pollGeneration.update((value) => value + 1);
|
|
97573
|
+
}
|
|
97574
|
+
},
|
|
97575
|
+
});
|
|
97576
|
+
}
|
|
97577
|
+
emitTerminalReceiptIfNeeded(receipt) {
|
|
97578
|
+
if (!isPraxisIntelligenceJobTerminal(receipt.status)) {
|
|
97579
|
+
return;
|
|
97580
|
+
}
|
|
97581
|
+
const signature = buildTerminalReceiptSignature(receipt);
|
|
97582
|
+
if (this.lastTerminalSignature === signature) {
|
|
97583
|
+
return;
|
|
97584
|
+
}
|
|
97585
|
+
this.lastTerminalSignature = signature;
|
|
97586
|
+
switch (receipt.status) {
|
|
97587
|
+
case 'SUCCEEDED':
|
|
97588
|
+
this.completed.emit(receipt);
|
|
97589
|
+
break;
|
|
97590
|
+
case 'CANCELLED':
|
|
97591
|
+
this.cancelled.emit(receipt);
|
|
97592
|
+
break;
|
|
97593
|
+
case 'EXPIRED':
|
|
97594
|
+
this.expired.emit(receipt);
|
|
97595
|
+
break;
|
|
97596
|
+
case 'FAILED':
|
|
97597
|
+
this.failed.emit(receipt);
|
|
97598
|
+
break;
|
|
97599
|
+
}
|
|
97600
|
+
}
|
|
97601
|
+
t(key, params) {
|
|
97602
|
+
return resolvePraxisIntelligenceMessage(this.i18n, key, params);
|
|
97603
|
+
}
|
|
97604
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisIntelligenceJobStatusComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
97605
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: PraxisIntelligenceJobStatusComponent, isStandalone: true, selector: "praxis-intelligence-job-status", inputs: { receipt: { classPropertyName: "receipt", publicName: "receipt", isSignal: true, isRequired: false, transformFunction: null }, jobId: { classPropertyName: "jobId", publicName: "jobId", isSignal: true, isRequired: false, transformFunction: null }, managed: { classPropertyName: "managed", publicName: "managed", isSignal: true, isRequired: false, transformFunction: null }, pollIntervalMs: { classPropertyName: "pollIntervalMs", publicName: "pollIntervalMs", isSignal: true, isRequired: false, transformFunction: null }, maxTransientErrors: { classPropertyName: "maxTransientErrors", publicName: "maxTransientErrors", isSignal: true, isRequired: false, transformFunction: null }, emitInitialTerminal: { classPropertyName: "emitInitialTerminal", publicName: "emitInitialTerminal", isSignal: true, isRequired: false, transformFunction: null }, endpointKey: { classPropertyName: "endpointKey", publicName: "endpointKey", isSignal: true, isRequired: false, transformFunction: null }, requestHeaders: { classPropertyName: "requestHeaders", publicName: "requestHeaders", isSignal: true, isRequired: false, transformFunction: null }, allowCancel: { classPropertyName: "allowCancel", publicName: "allowCancel", isSignal: true, isRequired: false, transformFunction: null }, errorCode: { classPropertyName: "errorCode", publicName: "errorCode", isSignal: true, isRequired: false, transformFunction: null }, correlationId: { classPropertyName: "correlationId", publicName: "correlationId", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null }, testIdPrefix: { classPropertyName: "testIdPrefix", publicName: "testIdPrefix", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cancelRequested: "cancelRequested", receiptChange: "receiptChange", completed: "completed", failed: "failed", cancelled: "cancelled", expired: "expired", cancelFailed: "cancelFailed", pollingInterrupted: "pollingInterrupted" }, host: { classAttribute: "praxis-intelligence-job-status-host" }, ngImport: i0, template: `
|
|
97606
|
+
@if (hasVisibleState()) {
|
|
97607
|
+
@let displayStatus = activeDisplayStatus();
|
|
97608
|
+
@let errCode = effectiveErrorCode();
|
|
97609
|
+
@let jobIdText = activeJobId();
|
|
97610
|
+
@let corrIdText = activeCorrelationId();
|
|
97611
|
+
|
|
97612
|
+
<section
|
|
97613
|
+
class="prx-job"
|
|
97614
|
+
[class.prx-job--compact]="compact()"
|
|
97615
|
+
[attr.data-job-status]="displayStatus"
|
|
97616
|
+
[attr.data-poll-interrupted]="pollInterrupted() ? 'true' : null"
|
|
97617
|
+
[attr.data-error-code]="errCode || null"
|
|
97618
|
+
role="region"
|
|
97619
|
+
[attr.aria-label]="regionAriaLabel()"
|
|
97620
|
+
[attr.aria-busy]="isBusy() ? 'true' : null"
|
|
97621
|
+
[attr.data-testid]="testIdPrefix() + '-container'"
|
|
97622
|
+
>
|
|
97623
|
+
<div class="prx-job__header">
|
|
97624
|
+
<div class="prx-job__title-row">
|
|
97625
|
+
<span
|
|
97626
|
+
class="prx-job__status-pill"
|
|
97627
|
+
[attr.data-status]="displayStatus"
|
|
97628
|
+
[attr.data-testid]="testIdPrefix() + '-status'"
|
|
97629
|
+
>
|
|
97630
|
+
<mat-icon
|
|
97631
|
+
aria-hidden="true"
|
|
97632
|
+
[class.prx-job__spin]="displayStatus === 'RUNNING'"
|
|
97633
|
+
>{{ statusIcon(displayStatus) }}</mat-icon>
|
|
97634
|
+
<span>{{ statusLabel(displayStatus) }}</span>
|
|
97635
|
+
</span>
|
|
97636
|
+
|
|
97637
|
+
@if (activeOperation(); as opName) {
|
|
97638
|
+
<span class="prx-job__operation" [attr.data-testid]="testIdPrefix() + '-operation'">
|
|
97639
|
+
{{ opName }}
|
|
97640
|
+
</span>
|
|
97641
|
+
}
|
|
97642
|
+
</div>
|
|
97643
|
+
|
|
97644
|
+
@if (canCancel()) {
|
|
97645
|
+
<button
|
|
97646
|
+
type="button"
|
|
97647
|
+
class="prx-job__cancel-btn"
|
|
97648
|
+
[disabled]="cancelling() || pollInterrupted()"
|
|
97649
|
+
[attr.aria-label]="cancelAriaLabel()"
|
|
97650
|
+
[matTooltip]="cancelButtonLabel()"
|
|
97651
|
+
[attr.data-testid]="testIdPrefix() + '-cancel'"
|
|
97652
|
+
(click)="onCancelClick()"
|
|
97653
|
+
>
|
|
97654
|
+
<mat-icon aria-hidden="true">cancel</mat-icon>
|
|
97655
|
+
<span>{{ cancelling() ? cancellingButtonLabel() : cancelButtonLabel() }}</span>
|
|
97656
|
+
</button>
|
|
97657
|
+
}
|
|
97658
|
+
</div>
|
|
97659
|
+
|
|
97660
|
+
@if (showProgressBar()) {
|
|
97661
|
+
<div class="prx-job__progress-wrap">
|
|
97662
|
+
<div
|
|
97663
|
+
class="prx-job__progressbar"
|
|
97664
|
+
role="progressbar"
|
|
97665
|
+
[attr.aria-valuenow]="progressPercent()"
|
|
97666
|
+
aria-valuemin="0"
|
|
97667
|
+
aria-valuemax="100"
|
|
97668
|
+
[attr.aria-label]="progressAriaLabel()"
|
|
97669
|
+
[attr.data-testid]="testIdPrefix() + '-progressbar'"
|
|
97670
|
+
>
|
|
97671
|
+
<div
|
|
97672
|
+
class="prx-job__progress-fill"
|
|
97673
|
+
[attr.data-status]="displayStatus"
|
|
97674
|
+
[style.width.%]="progressPercent()"
|
|
97675
|
+
></div>
|
|
97676
|
+
</div>
|
|
97677
|
+
<span
|
|
97678
|
+
class="prx-job__progress-value prx-job--mono"
|
|
97679
|
+
[attr.data-testid]="testIdPrefix() + '-progress-percent'"
|
|
97680
|
+
>
|
|
97681
|
+
{{ progressPercentText() }}
|
|
97682
|
+
</span>
|
|
97683
|
+
</div>
|
|
97684
|
+
}
|
|
97685
|
+
|
|
97686
|
+
@if (cancelError(); as cancelErr) {
|
|
97687
|
+
<div
|
|
97688
|
+
class="prx-job__error prx-job__error--cancel"
|
|
97689
|
+
role="alert"
|
|
97690
|
+
[attr.data-error-code]="cancelErr.errorCode"
|
|
97691
|
+
[attr.data-testid]="testIdPrefix() + '-cancel-error'"
|
|
97692
|
+
>
|
|
97693
|
+
<mat-icon aria-hidden="true">warning_amber</mat-icon>
|
|
97694
|
+
<div class="prx-job__error-body">
|
|
97695
|
+
<p class="prx-job__error-message" [attr.data-testid]="testIdPrefix() + '-cancel-error-message'">
|
|
97696
|
+
{{ cancelFailedNoticeLabel() }} {{ failClosedErrorMessage(cancelErr.errorCode) }}
|
|
97697
|
+
</p>
|
|
97698
|
+
<span class="prx-job__tag prx-job--mono" [attr.data-testid]="testIdPrefix() + '-cancel-error-code'">
|
|
97699
|
+
{{ errorCodeLabel() }}: {{ cancelErr.errorCode }}
|
|
97700
|
+
</span>
|
|
97701
|
+
</div>
|
|
97702
|
+
</div>
|
|
97703
|
+
}
|
|
97704
|
+
|
|
97705
|
+
@if (pollInterrupted()) {
|
|
97706
|
+
<div
|
|
97707
|
+
class="prx-job__notice"
|
|
97708
|
+
role="status"
|
|
97709
|
+
[attr.data-testid]="testIdPrefix() + '-interrupted'"
|
|
97710
|
+
>
|
|
97711
|
+
<mat-icon aria-hidden="true">pause_circle</mat-icon>
|
|
97712
|
+
<p class="prx-job__error-message">
|
|
97713
|
+
{{ interruptedNoticeLabel() }}
|
|
97714
|
+
</p>
|
|
97715
|
+
</div>
|
|
97716
|
+
}
|
|
97717
|
+
|
|
97718
|
+
@if (errCode) {
|
|
97719
|
+
<div
|
|
97720
|
+
class="prx-job__error"
|
|
97721
|
+
role="alert"
|
|
97722
|
+
[attr.data-error-code]="errCode"
|
|
97723
|
+
[attr.data-testid]="testIdPrefix() + '-error'"
|
|
97724
|
+
>
|
|
97725
|
+
<mat-icon aria-hidden="true">report_problem</mat-icon>
|
|
97726
|
+
<div class="prx-job__error-body">
|
|
97727
|
+
<p class="prx-job__error-message" [attr.data-testid]="testIdPrefix() + '-error-message'">
|
|
97728
|
+
{{ failClosedErrorMessage(errCode) }}
|
|
97729
|
+
</p>
|
|
97730
|
+
<span class="prx-job__tag prx-job--mono" [attr.data-testid]="testIdPrefix() + '-error-code'">
|
|
97731
|
+
{{ errorCodeLabel() }}: {{ errCode }}
|
|
97732
|
+
</span>
|
|
97733
|
+
</div>
|
|
97734
|
+
</div>
|
|
97735
|
+
}
|
|
97736
|
+
|
|
97737
|
+
@if (jobIdText || corrIdText) {
|
|
97738
|
+
<div class="prx-job__meta">
|
|
97739
|
+
@if (jobIdText) {
|
|
97740
|
+
<span class="prx-job__tag prx-job--mono" [attr.data-testid]="testIdPrefix() + '-job-id'">
|
|
97741
|
+
{{ jobIdLabel() }}: {{ jobIdText }}
|
|
97742
|
+
</span>
|
|
97743
|
+
}
|
|
97744
|
+
@if (corrIdText) {
|
|
97745
|
+
<span class="prx-job__tag prx-job--mono" [attr.data-testid]="testIdPrefix() + '-correlation-id'">
|
|
97746
|
+
{{ correlationIdLabel() }}: {{ corrIdText }}
|
|
97747
|
+
</span>
|
|
97748
|
+
}
|
|
97749
|
+
</div>
|
|
97750
|
+
}
|
|
97751
|
+
|
|
97752
|
+
<span
|
|
97753
|
+
class="prx-job__sr-only"
|
|
97754
|
+
role="status"
|
|
97755
|
+
aria-live="polite"
|
|
97756
|
+
aria-atomic="true"
|
|
97757
|
+
[attr.data-testid]="testIdPrefix() + '-live'"
|
|
97758
|
+
>
|
|
97759
|
+
{{ liveAnnouncement() }}
|
|
97760
|
+
</span>
|
|
97761
|
+
</section>
|
|
97762
|
+
}
|
|
97763
|
+
`, isInline: true, styles: [":host{display:block;min-width:0;color:var(--md-sys-color-on-surface, #1a1b20)}.prx-job{display:grid;gap:.5rem;min-width:0;padding:var(--praxis-intelligence-job-padding, .5625rem .75rem);border-radius:var(--praxis-intelligence-job-radius, .5rem);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, var(--md-sys-color-outline, #74777f)) 55%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-low, currentColor) 4%,transparent)}.prx-job--compact{padding:.4375rem .5625rem;gap:.375rem}.prx-job[data-job-status=FAILED],.prx-job[data-job-status=EXPIRED]{border-color:color-mix(in srgb,var(--md-sys-color-error, #b3261e) 48%,transparent);background:color-mix(in srgb,var(--md-sys-color-error-container, #f9dedc) 26%,transparent)}.prx-job__header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;min-width:0}.prx-job__title-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;min-width:0}.prx-job__status-pill{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:999px;border:1px solid transparent;font-size:.75rem;line-height:1.3;font-weight:600}.prx-job__status-pill mat-icon{width:.875rem;height:.875rem;font-size:.875rem;line-height:.875rem;flex:0 0 auto}.prx-job__status-pill[data-status=QUEUED]{background:color-mix(in srgb,var(--md-sys-color-secondary-container, #dbeafe) 70%,transparent);border-color:color-mix(in srgb,var(--md-sys-color-secondary, #475569) 35%,transparent);color:var(--md-sys-color-on-secondary-container, #1e293b)}.prx-job__status-pill[data-status=RUNNING]{background:color-mix(in srgb,var(--md-sys-color-primary, #0b57d0) 14%,transparent);border-color:color-mix(in srgb,var(--md-sys-color-primary, #0b57d0) 38%,transparent);color:var(--md-sys-color-primary, #0b57d0)}.prx-job__status-pill[data-status=SUCCEEDED]{background:color-mix(in srgb,var(--praxis-intelligence-success-accent, #16a34a) 16%,transparent);border-color:color-mix(in srgb,var(--praxis-intelligence-success-accent, #16a34a) 42%,transparent);color:var( --praxis-intelligence-success-text, color-mix(in srgb, #15803d 42%, var(--md-sys-color-on-surface, currentColor)) )}.prx-job__status-pill[data-status=CANCELLED]{background:color-mix(in srgb,var(--md-sys-color-outline, #74777f) 14%,transparent);border-color:color-mix(in srgb,var(--md-sys-color-outline, #74777f) 42%,transparent);color:var(--md-sys-color-on-surface-variant, currentColor)}.prx-job__status-pill[data-status=FAILED],.prx-job__status-pill[data-status=EXPIRED]{background:color-mix(in srgb,var(--md-sys-color-error-container, #f9dedc) 72%,transparent);border-color:color-mix(in srgb,var(--md-sys-color-error, #b3261e) 42%,transparent);color:var(--md-sys-color-on-error-container, #410e0b)}.prx-job__status-pill[data-status=INTERRUPTED]{background:color-mix(in srgb,var(--praxis-warning, #f59e0b) 16%,transparent);border-color:color-mix(in srgb,var(--praxis-warning, #f59e0b) 44%,transparent);color:var( --praxis-epistemic-warn-text, color-mix(in srgb, #b45309 42%, var(--md-sys-color-on-surface, currentColor)) )}.prx-job__operation{font-size:.8125rem;font-weight:600;color:var(--md-sys-color-on-surface, currentColor);overflow-wrap:anywhere}.prx-job__cancel-btn{appearance:none;display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .5625rem;border-radius:.375rem;border:1px solid color-mix(in srgb,var(--md-sys-color-error, #b3261e) 42%,transparent);background:transparent;color:var(--md-sys-color-error, #b3261e);font:inherit;font-size:.75rem;font-weight:600;cursor:pointer;transition:background-color .15s ease}.prx-job__cancel-btn mat-icon{width:.875rem;height:.875rem;font-size:.875rem;line-height:.875rem}.prx-job__cancel-btn:hover:not(:disabled){background:color-mix(in srgb,var(--md-sys-color-error, #b3261e) 10%,transparent)}.prx-job__cancel-btn:focus-visible{outline:2px solid var(--md-sys-color-error, currentColor);outline-offset:2px}.prx-job__cancel-btn:disabled{opacity:.56;cursor:not-allowed}.prx-job__progress-wrap{display:flex;align-items:center;gap:.5rem;min-width:0}.prx-job__progressbar{flex:1 1 auto;min-width:0;height:.375rem;border-radius:999px;overflow:hidden;background:color-mix(in srgb,var(--md-sys-color-surface-container-highest, currentColor) 14%,transparent)}.prx-job__progress-fill{height:100%;border-radius:inherit;background:var(--md-sys-color-primary, #0b57d0);transition:width .2s ease}.prx-job__progress-fill[data-status=SUCCEEDED]{background:var(--praxis-intelligence-success-accent, #16a34a)}.prx-job__progress-value{flex:0 0 auto;font-size:.75rem;font-weight:600;color:var(--md-sys-color-on-surface-variant, currentColor)}.prx-job__error{display:flex;align-items:flex-start;gap:.4375rem;padding:.4375rem .5625rem;border-radius:.375rem;border:1px solid color-mix(in srgb,var(--md-sys-color-error, #b3261e) 40%,transparent);background:color-mix(in srgb,var(--md-sys-color-error-container, #f9dedc) 72%,transparent);color:var(--md-sys-color-on-error-container, #410e0b)}.prx-job__error mat-icon{width:1rem;height:1rem;font-size:1rem;line-height:1rem;margin-top:.0625rem;flex:0 0 auto}.prx-job__notice{display:flex;align-items:flex-start;gap:.4375rem;padding:.4375rem .5625rem;border-radius:.375rem;border:1px solid color-mix(in srgb,var(--praxis-warning, #f59e0b) 44%,transparent);background:color-mix(in srgb,var(--praxis-warning, #f59e0b) 14%,transparent);color:var( --praxis-epistemic-warn-text, color-mix(in srgb, #b45309 42%, var(--md-sys-color-on-surface, currentColor)) )}.prx-job__notice mat-icon{width:1rem;height:1rem;font-size:1rem;line-height:1rem;margin-top:.0625rem;flex:0 0 auto}.prx-job__error-body{display:grid;gap:.25rem;min-width:0}.prx-job__error-message{margin:0;font-size:.78125rem;line-height:1.38;font-weight:500;overflow-wrap:anywhere}.prx-job__meta{display:flex;flex-wrap:wrap;align-items:center;gap:.375rem;min-width:0}.prx-job__tag{display:inline-flex;align-items:center;padding:.125rem .4375rem;border-radius:.375rem;border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, var(--md-sys-color-outline, #74777f)) 45%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-high, currentColor) 6%,transparent);color:var(--md-sys-color-on-surface-variant, currentColor);font-size:.71875rem;line-height:1.3;max-width:100%;overflow-wrap:anywhere}.prx-job--mono{font-family:var(--praxis-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);font-variant-numeric:tabular-nums}.prx-job__spin{animation:prxJobSpin 1.2s linear infinite}.prx-job__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes prxJobSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.prx-job__spin{animation:none}.prx-job__progress-fill,.prx-job__cancel-btn{transition:none}}@media(forced-colors:active){.prx-job,.prx-job__status-pill,.prx-job__cancel-btn,.prx-job__error,.prx-job__notice,.prx-job__tag{border:1px solid CanvasText;background:Canvas;color:CanvasText}.prx-job__progressbar{border:1px solid CanvasText;background:Canvas}.prx-job__progress-fill{background:Highlight}}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i6$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
97764
|
+
}
|
|
97765
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisIntelligenceJobStatusComponent, decorators: [{
|
|
97766
|
+
type: Component,
|
|
97767
|
+
args: [{ selector: 'praxis-intelligence-job-status', imports: [MatIconModule, MatTooltipModule], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
97768
|
+
class: 'praxis-intelligence-job-status-host',
|
|
97769
|
+
}, template: `
|
|
97770
|
+
@if (hasVisibleState()) {
|
|
97771
|
+
@let displayStatus = activeDisplayStatus();
|
|
97772
|
+
@let errCode = effectiveErrorCode();
|
|
97773
|
+
@let jobIdText = activeJobId();
|
|
97774
|
+
@let corrIdText = activeCorrelationId();
|
|
97775
|
+
|
|
97776
|
+
<section
|
|
97777
|
+
class="prx-job"
|
|
97778
|
+
[class.prx-job--compact]="compact()"
|
|
97779
|
+
[attr.data-job-status]="displayStatus"
|
|
97780
|
+
[attr.data-poll-interrupted]="pollInterrupted() ? 'true' : null"
|
|
97781
|
+
[attr.data-error-code]="errCode || null"
|
|
97782
|
+
role="region"
|
|
97783
|
+
[attr.aria-label]="regionAriaLabel()"
|
|
97784
|
+
[attr.aria-busy]="isBusy() ? 'true' : null"
|
|
97785
|
+
[attr.data-testid]="testIdPrefix() + '-container'"
|
|
97786
|
+
>
|
|
97787
|
+
<div class="prx-job__header">
|
|
97788
|
+
<div class="prx-job__title-row">
|
|
97789
|
+
<span
|
|
97790
|
+
class="prx-job__status-pill"
|
|
97791
|
+
[attr.data-status]="displayStatus"
|
|
97792
|
+
[attr.data-testid]="testIdPrefix() + '-status'"
|
|
97793
|
+
>
|
|
97794
|
+
<mat-icon
|
|
97795
|
+
aria-hidden="true"
|
|
97796
|
+
[class.prx-job__spin]="displayStatus === 'RUNNING'"
|
|
97797
|
+
>{{ statusIcon(displayStatus) }}</mat-icon>
|
|
97798
|
+
<span>{{ statusLabel(displayStatus) }}</span>
|
|
97799
|
+
</span>
|
|
97800
|
+
|
|
97801
|
+
@if (activeOperation(); as opName) {
|
|
97802
|
+
<span class="prx-job__operation" [attr.data-testid]="testIdPrefix() + '-operation'">
|
|
97803
|
+
{{ opName }}
|
|
97804
|
+
</span>
|
|
97805
|
+
}
|
|
97806
|
+
</div>
|
|
97807
|
+
|
|
97808
|
+
@if (canCancel()) {
|
|
97809
|
+
<button
|
|
97810
|
+
type="button"
|
|
97811
|
+
class="prx-job__cancel-btn"
|
|
97812
|
+
[disabled]="cancelling() || pollInterrupted()"
|
|
97813
|
+
[attr.aria-label]="cancelAriaLabel()"
|
|
97814
|
+
[matTooltip]="cancelButtonLabel()"
|
|
97815
|
+
[attr.data-testid]="testIdPrefix() + '-cancel'"
|
|
97816
|
+
(click)="onCancelClick()"
|
|
97817
|
+
>
|
|
97818
|
+
<mat-icon aria-hidden="true">cancel</mat-icon>
|
|
97819
|
+
<span>{{ cancelling() ? cancellingButtonLabel() : cancelButtonLabel() }}</span>
|
|
97820
|
+
</button>
|
|
97821
|
+
}
|
|
97822
|
+
</div>
|
|
97823
|
+
|
|
97824
|
+
@if (showProgressBar()) {
|
|
97825
|
+
<div class="prx-job__progress-wrap">
|
|
97826
|
+
<div
|
|
97827
|
+
class="prx-job__progressbar"
|
|
97828
|
+
role="progressbar"
|
|
97829
|
+
[attr.aria-valuenow]="progressPercent()"
|
|
97830
|
+
aria-valuemin="0"
|
|
97831
|
+
aria-valuemax="100"
|
|
97832
|
+
[attr.aria-label]="progressAriaLabel()"
|
|
97833
|
+
[attr.data-testid]="testIdPrefix() + '-progressbar'"
|
|
97834
|
+
>
|
|
97835
|
+
<div
|
|
97836
|
+
class="prx-job__progress-fill"
|
|
97837
|
+
[attr.data-status]="displayStatus"
|
|
97838
|
+
[style.width.%]="progressPercent()"
|
|
97839
|
+
></div>
|
|
97840
|
+
</div>
|
|
97841
|
+
<span
|
|
97842
|
+
class="prx-job__progress-value prx-job--mono"
|
|
97843
|
+
[attr.data-testid]="testIdPrefix() + '-progress-percent'"
|
|
97844
|
+
>
|
|
97845
|
+
{{ progressPercentText() }}
|
|
97846
|
+
</span>
|
|
97847
|
+
</div>
|
|
97848
|
+
}
|
|
97849
|
+
|
|
97850
|
+
@if (cancelError(); as cancelErr) {
|
|
97851
|
+
<div
|
|
97852
|
+
class="prx-job__error prx-job__error--cancel"
|
|
97853
|
+
role="alert"
|
|
97854
|
+
[attr.data-error-code]="cancelErr.errorCode"
|
|
97855
|
+
[attr.data-testid]="testIdPrefix() + '-cancel-error'"
|
|
97856
|
+
>
|
|
97857
|
+
<mat-icon aria-hidden="true">warning_amber</mat-icon>
|
|
97858
|
+
<div class="prx-job__error-body">
|
|
97859
|
+
<p class="prx-job__error-message" [attr.data-testid]="testIdPrefix() + '-cancel-error-message'">
|
|
97860
|
+
{{ cancelFailedNoticeLabel() }} {{ failClosedErrorMessage(cancelErr.errorCode) }}
|
|
97861
|
+
</p>
|
|
97862
|
+
<span class="prx-job__tag prx-job--mono" [attr.data-testid]="testIdPrefix() + '-cancel-error-code'">
|
|
97863
|
+
{{ errorCodeLabel() }}: {{ cancelErr.errorCode }}
|
|
97864
|
+
</span>
|
|
97865
|
+
</div>
|
|
97866
|
+
</div>
|
|
97867
|
+
}
|
|
97868
|
+
|
|
97869
|
+
@if (pollInterrupted()) {
|
|
97870
|
+
<div
|
|
97871
|
+
class="prx-job__notice"
|
|
97872
|
+
role="status"
|
|
97873
|
+
[attr.data-testid]="testIdPrefix() + '-interrupted'"
|
|
97874
|
+
>
|
|
97875
|
+
<mat-icon aria-hidden="true">pause_circle</mat-icon>
|
|
97876
|
+
<p class="prx-job__error-message">
|
|
97877
|
+
{{ interruptedNoticeLabel() }}
|
|
97878
|
+
</p>
|
|
97879
|
+
</div>
|
|
97880
|
+
}
|
|
97881
|
+
|
|
97882
|
+
@if (errCode) {
|
|
97883
|
+
<div
|
|
97884
|
+
class="prx-job__error"
|
|
97885
|
+
role="alert"
|
|
97886
|
+
[attr.data-error-code]="errCode"
|
|
97887
|
+
[attr.data-testid]="testIdPrefix() + '-error'"
|
|
97888
|
+
>
|
|
97889
|
+
<mat-icon aria-hidden="true">report_problem</mat-icon>
|
|
97890
|
+
<div class="prx-job__error-body">
|
|
97891
|
+
<p class="prx-job__error-message" [attr.data-testid]="testIdPrefix() + '-error-message'">
|
|
97892
|
+
{{ failClosedErrorMessage(errCode) }}
|
|
97893
|
+
</p>
|
|
97894
|
+
<span class="prx-job__tag prx-job--mono" [attr.data-testid]="testIdPrefix() + '-error-code'">
|
|
97895
|
+
{{ errorCodeLabel() }}: {{ errCode }}
|
|
97896
|
+
</span>
|
|
97897
|
+
</div>
|
|
97898
|
+
</div>
|
|
97899
|
+
}
|
|
97900
|
+
|
|
97901
|
+
@if (jobIdText || corrIdText) {
|
|
97902
|
+
<div class="prx-job__meta">
|
|
97903
|
+
@if (jobIdText) {
|
|
97904
|
+
<span class="prx-job__tag prx-job--mono" [attr.data-testid]="testIdPrefix() + '-job-id'">
|
|
97905
|
+
{{ jobIdLabel() }}: {{ jobIdText }}
|
|
97906
|
+
</span>
|
|
97907
|
+
}
|
|
97908
|
+
@if (corrIdText) {
|
|
97909
|
+
<span class="prx-job__tag prx-job--mono" [attr.data-testid]="testIdPrefix() + '-correlation-id'">
|
|
97910
|
+
{{ correlationIdLabel() }}: {{ corrIdText }}
|
|
97911
|
+
</span>
|
|
97912
|
+
}
|
|
97913
|
+
</div>
|
|
97914
|
+
}
|
|
97915
|
+
|
|
97916
|
+
<span
|
|
97917
|
+
class="prx-job__sr-only"
|
|
97918
|
+
role="status"
|
|
97919
|
+
aria-live="polite"
|
|
97920
|
+
aria-atomic="true"
|
|
97921
|
+
[attr.data-testid]="testIdPrefix() + '-live'"
|
|
97922
|
+
>
|
|
97923
|
+
{{ liveAnnouncement() }}
|
|
97924
|
+
</span>
|
|
97925
|
+
</section>
|
|
97926
|
+
}
|
|
97927
|
+
`, styles: [":host{display:block;min-width:0;color:var(--md-sys-color-on-surface, #1a1b20)}.prx-job{display:grid;gap:.5rem;min-width:0;padding:var(--praxis-intelligence-job-padding, .5625rem .75rem);border-radius:var(--praxis-intelligence-job-radius, .5rem);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, var(--md-sys-color-outline, #74777f)) 55%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-low, currentColor) 4%,transparent)}.prx-job--compact{padding:.4375rem .5625rem;gap:.375rem}.prx-job[data-job-status=FAILED],.prx-job[data-job-status=EXPIRED]{border-color:color-mix(in srgb,var(--md-sys-color-error, #b3261e) 48%,transparent);background:color-mix(in srgb,var(--md-sys-color-error-container, #f9dedc) 26%,transparent)}.prx-job__header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;min-width:0}.prx-job__title-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;min-width:0}.prx-job__status-pill{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:999px;border:1px solid transparent;font-size:.75rem;line-height:1.3;font-weight:600}.prx-job__status-pill mat-icon{width:.875rem;height:.875rem;font-size:.875rem;line-height:.875rem;flex:0 0 auto}.prx-job__status-pill[data-status=QUEUED]{background:color-mix(in srgb,var(--md-sys-color-secondary-container, #dbeafe) 70%,transparent);border-color:color-mix(in srgb,var(--md-sys-color-secondary, #475569) 35%,transparent);color:var(--md-sys-color-on-secondary-container, #1e293b)}.prx-job__status-pill[data-status=RUNNING]{background:color-mix(in srgb,var(--md-sys-color-primary, #0b57d0) 14%,transparent);border-color:color-mix(in srgb,var(--md-sys-color-primary, #0b57d0) 38%,transparent);color:var(--md-sys-color-primary, #0b57d0)}.prx-job__status-pill[data-status=SUCCEEDED]{background:color-mix(in srgb,var(--praxis-intelligence-success-accent, #16a34a) 16%,transparent);border-color:color-mix(in srgb,var(--praxis-intelligence-success-accent, #16a34a) 42%,transparent);color:var( --praxis-intelligence-success-text, color-mix(in srgb, #15803d 42%, var(--md-sys-color-on-surface, currentColor)) )}.prx-job__status-pill[data-status=CANCELLED]{background:color-mix(in srgb,var(--md-sys-color-outline, #74777f) 14%,transparent);border-color:color-mix(in srgb,var(--md-sys-color-outline, #74777f) 42%,transparent);color:var(--md-sys-color-on-surface-variant, currentColor)}.prx-job__status-pill[data-status=FAILED],.prx-job__status-pill[data-status=EXPIRED]{background:color-mix(in srgb,var(--md-sys-color-error-container, #f9dedc) 72%,transparent);border-color:color-mix(in srgb,var(--md-sys-color-error, #b3261e) 42%,transparent);color:var(--md-sys-color-on-error-container, #410e0b)}.prx-job__status-pill[data-status=INTERRUPTED]{background:color-mix(in srgb,var(--praxis-warning, #f59e0b) 16%,transparent);border-color:color-mix(in srgb,var(--praxis-warning, #f59e0b) 44%,transparent);color:var( --praxis-epistemic-warn-text, color-mix(in srgb, #b45309 42%, var(--md-sys-color-on-surface, currentColor)) )}.prx-job__operation{font-size:.8125rem;font-weight:600;color:var(--md-sys-color-on-surface, currentColor);overflow-wrap:anywhere}.prx-job__cancel-btn{appearance:none;display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .5625rem;border-radius:.375rem;border:1px solid color-mix(in srgb,var(--md-sys-color-error, #b3261e) 42%,transparent);background:transparent;color:var(--md-sys-color-error, #b3261e);font:inherit;font-size:.75rem;font-weight:600;cursor:pointer;transition:background-color .15s ease}.prx-job__cancel-btn mat-icon{width:.875rem;height:.875rem;font-size:.875rem;line-height:.875rem}.prx-job__cancel-btn:hover:not(:disabled){background:color-mix(in srgb,var(--md-sys-color-error, #b3261e) 10%,transparent)}.prx-job__cancel-btn:focus-visible{outline:2px solid var(--md-sys-color-error, currentColor);outline-offset:2px}.prx-job__cancel-btn:disabled{opacity:.56;cursor:not-allowed}.prx-job__progress-wrap{display:flex;align-items:center;gap:.5rem;min-width:0}.prx-job__progressbar{flex:1 1 auto;min-width:0;height:.375rem;border-radius:999px;overflow:hidden;background:color-mix(in srgb,var(--md-sys-color-surface-container-highest, currentColor) 14%,transparent)}.prx-job__progress-fill{height:100%;border-radius:inherit;background:var(--md-sys-color-primary, #0b57d0);transition:width .2s ease}.prx-job__progress-fill[data-status=SUCCEEDED]{background:var(--praxis-intelligence-success-accent, #16a34a)}.prx-job__progress-value{flex:0 0 auto;font-size:.75rem;font-weight:600;color:var(--md-sys-color-on-surface-variant, currentColor)}.prx-job__error{display:flex;align-items:flex-start;gap:.4375rem;padding:.4375rem .5625rem;border-radius:.375rem;border:1px solid color-mix(in srgb,var(--md-sys-color-error, #b3261e) 40%,transparent);background:color-mix(in srgb,var(--md-sys-color-error-container, #f9dedc) 72%,transparent);color:var(--md-sys-color-on-error-container, #410e0b)}.prx-job__error mat-icon{width:1rem;height:1rem;font-size:1rem;line-height:1rem;margin-top:.0625rem;flex:0 0 auto}.prx-job__notice{display:flex;align-items:flex-start;gap:.4375rem;padding:.4375rem .5625rem;border-radius:.375rem;border:1px solid color-mix(in srgb,var(--praxis-warning, #f59e0b) 44%,transparent);background:color-mix(in srgb,var(--praxis-warning, #f59e0b) 14%,transparent);color:var( --praxis-epistemic-warn-text, color-mix(in srgb, #b45309 42%, var(--md-sys-color-on-surface, currentColor)) )}.prx-job__notice mat-icon{width:1rem;height:1rem;font-size:1rem;line-height:1rem;margin-top:.0625rem;flex:0 0 auto}.prx-job__error-body{display:grid;gap:.25rem;min-width:0}.prx-job__error-message{margin:0;font-size:.78125rem;line-height:1.38;font-weight:500;overflow-wrap:anywhere}.prx-job__meta{display:flex;flex-wrap:wrap;align-items:center;gap:.375rem;min-width:0}.prx-job__tag{display:inline-flex;align-items:center;padding:.125rem .4375rem;border-radius:.375rem;border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, var(--md-sys-color-outline, #74777f)) 45%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-high, currentColor) 6%,transparent);color:var(--md-sys-color-on-surface-variant, currentColor);font-size:.71875rem;line-height:1.3;max-width:100%;overflow-wrap:anywhere}.prx-job--mono{font-family:var(--praxis-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);font-variant-numeric:tabular-nums}.prx-job__spin{animation:prxJobSpin 1.2s linear infinite}.prx-job__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes prxJobSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.prx-job__spin{animation:none}.prx-job__progress-fill,.prx-job__cancel-btn{transition:none}}@media(forced-colors:active){.prx-job,.prx-job__status-pill,.prx-job__cancel-btn,.prx-job__error,.prx-job__notice,.prx-job__tag{border:1px solid CanvasText;background:Canvas;color:CanvasText}.prx-job__progressbar{border:1px solid CanvasText;background:Canvas}.prx-job__progress-fill{background:Highlight}}\n"] }]
|
|
97928
|
+
}], ctorParameters: () => [], propDecorators: { receipt: [{ type: i0.Input, args: [{ isSignal: true, alias: "receipt", required: false }] }], jobId: [{ type: i0.Input, args: [{ isSignal: true, alias: "jobId", required: false }] }], managed: [{ type: i0.Input, args: [{ isSignal: true, alias: "managed", required: false }] }], pollIntervalMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "pollIntervalMs", required: false }] }], maxTransientErrors: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxTransientErrors", required: false }] }], emitInitialTerminal: [{ type: i0.Input, args: [{ isSignal: true, alias: "emitInitialTerminal", required: false }] }], endpointKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "endpointKey", required: false }] }], requestHeaders: [{ type: i0.Input, args: [{ isSignal: true, alias: "requestHeaders", required: false }] }], allowCancel: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowCancel", required: false }] }], errorCode: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorCode", required: false }] }], correlationId: [{ type: i0.Input, args: [{ isSignal: true, alias: "correlationId", required: false }] }], compact: [{ type: i0.Input, args: [{ isSignal: true, alias: "compact", required: false }] }], testIdPrefix: [{ type: i0.Input, args: [{ isSignal: true, alias: "testIdPrefix", required: false }] }], cancelRequested: [{ type: i0.Output, args: ["cancelRequested"] }], receiptChange: [{ type: i0.Output, args: ["receiptChange"] }], completed: [{ type: i0.Output, args: ["completed"] }], failed: [{ type: i0.Output, args: ["failed"] }], cancelled: [{ type: i0.Output, args: ["cancelled"] }], expired: [{ type: i0.Output, args: ["expired"] }], cancelFailed: [{ type: i0.Output, args: ["cancelFailed"] }], pollingInterrupted: [{ type: i0.Output, args: ["pollingInterrupted"] }] } });
|
|
97929
|
+
|
|
97930
|
+
const PRAXIS_INTELLIGENCE_JOB_STATUS_METADATA = {
|
|
97931
|
+
id: 'widget:intelligence-job-status',
|
|
97932
|
+
selector: 'praxis-intelligence-job-status',
|
|
97933
|
+
component: PraxisIntelligenceJobStatusComponent,
|
|
97934
|
+
friendlyName: 'Intelligence Job Status',
|
|
97935
|
+
description: 'Monitor acessível de trabalhos analíticos assíncronos com modo declarativo ou gerenciado via polling silencioso, cancelamento seguro e mensagens fail-closed.',
|
|
97936
|
+
icon: 'pending_actions',
|
|
97937
|
+
inputs: [
|
|
97938
|
+
{
|
|
97939
|
+
name: 'receipt',
|
|
97940
|
+
type: 'PraxisIntelligenceJobReceipt | null | undefined',
|
|
97941
|
+
label: 'Recibo do Job',
|
|
97942
|
+
description: 'Estado declarativo atual do trabalho analítico.',
|
|
97943
|
+
},
|
|
97944
|
+
{
|
|
97945
|
+
name: 'jobId',
|
|
97946
|
+
type: 'string | null | undefined',
|
|
97947
|
+
label: 'Job ID',
|
|
97948
|
+
description: 'Identificador do trabalho para consulta e polling gerenciado.',
|
|
97949
|
+
},
|
|
97950
|
+
{
|
|
97951
|
+
name: 'managed',
|
|
97952
|
+
type: 'boolean',
|
|
97953
|
+
label: 'Modo gerenciado',
|
|
97954
|
+
description: 'Força polling gerenciado mesmo quando um recibo inicial foi fornecido.',
|
|
97955
|
+
default: false,
|
|
97956
|
+
},
|
|
97957
|
+
{
|
|
97958
|
+
name: 'pollIntervalMs',
|
|
97959
|
+
type: 'number',
|
|
97960
|
+
label: 'Intervalo de polling (ms)',
|
|
97961
|
+
description: 'Intervalo entre consultas ao recibo enquanto em andamento.',
|
|
97962
|
+
default: 1500,
|
|
97963
|
+
},
|
|
97964
|
+
{
|
|
97965
|
+
name: 'maxTransientErrors',
|
|
97966
|
+
type: 'number | undefined',
|
|
97967
|
+
label: 'Máximo de falhas transitórias',
|
|
97968
|
+
description: 'Tolerância opcional a falhas HTTP transitórias (502/503) antes de falhar.',
|
|
97969
|
+
},
|
|
97970
|
+
{
|
|
97971
|
+
name: 'emitInitialTerminal',
|
|
97972
|
+
type: 'boolean',
|
|
97973
|
+
label: 'Emitir terminal inicial',
|
|
97974
|
+
description: 'Quando verdadeiro, emite completed/failed/cancelled/expired para recibos históricos já terminais.',
|
|
97975
|
+
default: false,
|
|
97976
|
+
},
|
|
97977
|
+
{
|
|
97978
|
+
name: 'endpointKey',
|
|
97979
|
+
type: 'string | undefined',
|
|
97980
|
+
label: 'Chave API_URL',
|
|
97981
|
+
description: 'Entrada opcional em API_URL para rotear endpoints de inteligência.',
|
|
97982
|
+
},
|
|
97983
|
+
{
|
|
97984
|
+
name: 'requestHeaders',
|
|
97985
|
+
type: 'HttpHeaders | Record<string, string | string[]> | undefined',
|
|
97986
|
+
label: 'Cabeçalhos da requisição',
|
|
97987
|
+
description: 'Cabeçalhos HTTP adicionais encaminhados nas consultas e cancelamento do job.',
|
|
97988
|
+
},
|
|
97989
|
+
{
|
|
97990
|
+
name: 'errorCode',
|
|
97991
|
+
type: 'PraxisIntelligenceErrorCode | string | null | undefined',
|
|
97992
|
+
label: 'Código de erro explícito',
|
|
97993
|
+
description: 'Código de erro fail-closed opcional exibido diretamente no monitor sem polling.',
|
|
97994
|
+
},
|
|
97995
|
+
{
|
|
97996
|
+
name: 'correlationId',
|
|
97997
|
+
type: 'string | null | undefined',
|
|
97998
|
+
label: 'ID de correlação',
|
|
97999
|
+
description: 'Identificador de rastreabilidade exibido na trilha de auditoria do trabalho.',
|
|
98000
|
+
},
|
|
98001
|
+
{
|
|
98002
|
+
name: 'allowCancel',
|
|
98003
|
+
type: 'boolean',
|
|
98004
|
+
label: 'Permitir cancelamento',
|
|
98005
|
+
description: 'Exibe ação acessível de cancelamento enquanto QUEUED ou RUNNING.',
|
|
98006
|
+
default: true,
|
|
98007
|
+
},
|
|
98008
|
+
{
|
|
98009
|
+
name: 'compact',
|
|
98010
|
+
type: 'boolean',
|
|
98011
|
+
label: 'Modo compacto',
|
|
98012
|
+
description: 'Aplica densidade reduzida para barras ou cards.',
|
|
98013
|
+
default: false,
|
|
98014
|
+
},
|
|
98015
|
+
{
|
|
98016
|
+
name: 'testIdPrefix',
|
|
98017
|
+
type: 'string',
|
|
98018
|
+
label: 'Prefixo de testid',
|
|
98019
|
+
description: 'Prefixo determinístico aplicado aos atributos data-testid.',
|
|
98020
|
+
default: 'praxis-intelligence-job',
|
|
98021
|
+
},
|
|
98022
|
+
],
|
|
98023
|
+
outputs: [
|
|
98024
|
+
{ name: 'cancelRequested', type: 'string', description: 'Emitido ao solicitar cancelamento do jobId.' },
|
|
98025
|
+
{ name: 'receiptChange', type: 'PraxisIntelligenceJobReceipt', description: 'Emitido a cada atualização de recibo por polling.' },
|
|
98026
|
+
{ name: 'completed', type: 'PraxisIntelligenceJobReceipt', description: 'Emitido na transição para SUCCEEDED.' },
|
|
98027
|
+
{ name: 'failed', type: 'PraxisIntelligenceJobError | PraxisIntelligenceJobReceipt', description: 'Emitido em falha do job ou do polling.' },
|
|
98028
|
+
{ name: 'cancelled', type: 'PraxisIntelligenceJobReceipt', description: 'Emitido na transição para CANCELLED.' },
|
|
98029
|
+
{ name: 'expired', type: 'PraxisIntelligenceJobReceipt', description: 'Emitido na transição para EXPIRED.' },
|
|
98030
|
+
{ name: 'cancelFailed', type: 'PraxisIntelligenceJobError', description: 'Emitido quando POST /cancel falha, preservando o estado em andamento.' },
|
|
98031
|
+
{ name: 'pollingInterrupted', type: 'string', description: 'Emitido quando o stream de polling encerra antes de atingir estado terminal (ex.: troca de tenant).' },
|
|
98032
|
+
],
|
|
98033
|
+
tags: ['widget', 'intelligence', 'job', 'telemetry', 'async'],
|
|
98034
|
+
lib: '@praxisui/core',
|
|
98035
|
+
layoutHints: { recommendedCols: 6, recommendedRows: 2, minCols: 4, minRows: 1 },
|
|
98036
|
+
};
|
|
98037
|
+
function providePraxisIntelligenceJobStatusMetadata() {
|
|
98038
|
+
return {
|
|
98039
|
+
provide: ENVIRONMENT_INITIALIZER,
|
|
98040
|
+
multi: true,
|
|
98041
|
+
useFactory: (registry) => () => {
|
|
98042
|
+
registry.register(PRAXIS_INTELLIGENCE_JOB_STATUS_METADATA);
|
|
98043
|
+
},
|
|
98044
|
+
deps: [ComponentMetadataRegistry],
|
|
98045
|
+
};
|
|
98046
|
+
}
|
|
98047
|
+
|
|
94475
98048
|
/*
|
|
94476
98049
|
* Public API Surface of praxis-core
|
|
94477
98050
|
*/
|
|
@@ -94480,4 +98053,4 @@ function resolveDefaultCurrencyForLocale(locale) {
|
|
|
94480
98053
|
* Generated bundle index. Do not edit.
|
|
94481
98054
|
*/
|
|
94482
98055
|
|
|
94483
|
-
export { API_CONFIG_STORAGE_OPTIONS, API_URL, ASYNC_CONFIG_STORAGE, AllowedFileTypes, AnalyticsPresentationResolver, AnalyticsSchemaContractService, AnalyticsStatsRequestBuilderService, ApiConfigStorage, ApiEndpoint, BUILTIN_PAGE_LAYOUT_PRESETS, BUILTIN_PAGE_THEME_PRESETS, BUILTIN_SHELL_PRESETS, BUILTIN_WIDGET_SHELL_PRESETS, BulkOperationClientService, BulkSyncSession, BulkSyncStateService, CANONICAL_DECISION_INSPECTOR_LENSES, CANONICAL_DECISION_STAGES, COMPONENT_METADATA_REGISTRY_I18N_CONFIG, COMPONENT_METADATA_REGISTRY_I18N_NAMESPACE, CONFIG_STORAGE, CONNECTION_STORAGE, ComponentAuthoringManifestProjectionError, ComponentKeyService, ComponentMetadataRegistry, ComponentRuntimeProfileService, CompositionRuntimeFacade, CompositionValidatorService, ConsoleLoggerSink, CrudOperationResolutionService, DECISION_INSPECTOR_I18N_CONFIG, DECISION_INSPECTOR_I18N_NAMESPACE, DEFAULT_DYNAMIC_FORM_SCHEMA_CACHE_MAX_ENTRIES, DEFAULT_DYNAMIC_FORM_SCHEMA_CACHE_TTL_MS, DEFAULT_FIELD_SELECTOR_CONTROL_TYPE_MAP, DEFAULT_JSON_LOGIC_OPERATORS, DEFAULT_PRAXIS_STATS_EXECUTION_CONFIG, DEFAULT_SCHEMA_REQUEST_TIMEOUT_MS, DEFAULT_TABLE_CONFIG, DOMAIN_CATALOG_COMPONENT_CONTEXT_PACK, DOMAIN_CATALOG_CONTEXT_HINT_SCHEMA_VERSION, DOMAIN_RULE_DOCUMENTATION_KEY, DYNAMIC_PAGE_AI_CAPABILITIES, DYNAMIC_PAGE_COMPONENT_CONTEXT_PACK, DYNAMIC_PAGE_CONFIG_EDITOR, DYNAMIC_PAGE_SHELL_EDITOR, DefaultLoadingRenderer, DeferredAsyncConfigStorage, DomainCatalogService, DomainKnowledgeService, DomainRuleService, DynamicFormService, DynamicWidgetLoaderDirective, DynamicWidgetPageComponent, EDITORIAL_ALLOWED_CONTENT_FORMATS, EDITORIAL_COMPLIANCE_PRESETS, EDITORIAL_EXTERNAL_LINK_REL, EDITORIAL_FORM_TEMPLATE_CATALOG, EDITORIAL_HTML_ENABLED, EDITORIAL_MARKDOWN_IMAGES_ENABLED, EDITORIAL_SOLUTION_CATALOG, EDITORIAL_SOLUTION_PRESETS, EDITORIAL_THEME_PRESETS, EDITORIAL_WIDGET_CONVENTION_INPUTS, EDITORIAL_WIDGET_TAG, EFFECTIVE_UI_LAYOUT_COMPOSITION_SCHEMA_VERSION, EMPLOYEE_ONBOARDING_EDITORIAL_SOLUTION, EMPLOYEE_ONBOARDING_EDITORIAL_TEMPLATE, EMPLOYEE_ONBOARDING_GUIDED_EDITORIAL_SOLUTION, EMPLOYEE_ONBOARDING_GUIDED_EDITORIAL_TEMPLATE, EVENT_REGISTRATION_EDITORIAL_SOLUTION, EVENT_REGISTRATION_EDITORIAL_TEMPLATE, EffectiveUiLayoutContractError, EffectiveUiLayoutHttpError, EffectiveUiLayoutService, EmptyStateCardComponent, EnterpriseRuntimeContextObsoleteError, EnterpriseRuntimeContextService, ErrorMessageService, FIELD_METADATA_CAPABILITIES, FIELD_SELECTOR_REGISTRY_BASE, FIELD_SELECTOR_REGISTRY_DISABLE_DEFAULTS, FIELD_SELECTOR_REGISTRY_OVERRIDES, FORM_HOOKS, FORM_HOOKS_PRESETS, FORM_HOOKS_WHITELIST, FORM_HOOK_RESOLVERS, FieldControlType, FieldDataType, FieldSelectorRegistry, FormHooksRegistry, GLOBAL_ACTION_CATALOG, GLOBAL_ACTION_HANDLERS, GLOBAL_ACTION_UI_SCHEMAS, GLOBAL_ANALYTICS_SERVICE, GLOBAL_API_CLIENT, GLOBAL_CONFIG, GLOBAL_DIALOG_SERVICE, GLOBAL_ROUTE_GUARD_RESOLVER, GLOBAL_SURFACE_SERVICE, GLOBAL_TOAST_SERVICE, GOVERNED_COLOR_PALETTE_OPTIONS, GOVERNED_PAGE_ADMITTED_WIDGET_IDS, GOVERNED_PAGE_DEFAULT_ALLOWED_ICONS, GenericCrudService, GlobalActionService, GlobalConfigService, GovernedColorPaletteService, INLINE_FILTER_ALIAS_TOKENS, INLINE_FILTER_CONTROL_TYPES, INLINE_FILTER_CONTROL_TYPE_SET, INLINE_FILTER_CONTROL_TYPE_VALUES, INLINE_FILTER_TOKEN_TO_BASE_CONTROL_TYPE, INLINE_FILTER_TOKEN_TO_CONTROL_TYPE, IconPickerService, IconPosition, IconSize, InMemoryAsyncConfigStorage, InMemoryConfigStorage, InMemoryConfigStore, InMemoryEnterpriseRuntimeContextService, LOGGER_LEVEL_BY_ENV, LOGGER_LEVEL_PRIORITY, LoadingOrchestrator, LocalConnectionStorage, LocalStorageAsyncAdapter, LocalStorageCacheAdapter, LocalStorageConfigService, LoggerService, LoggerThrottleTracker, LoggerWarnOnceTracker, MemoryCacheAdapter, NestedPortCatalogService, NestedWidgetConfigAccessor, NumericFormat, OVERLAY_DECIDER_DEBUG, OVERLAY_DECISION_MATRIX, ObservabilityDashboardService, OverlayDeciderService, PRAXIS_ACTION_CONTROL_DEFAULTS, PRAXIS_ACTION_CONTROL_VARS, PRAXIS_BULK_PROPOSAL_BRIDGE, PRAXIS_COLLECTION_EXPORT_HTTP_OPTIONS, PRAXIS_COLLECTION_EXPORT_PROVIDER, PRAXIS_COLLECTION_SEARCH_DEFAULTS, PRAXIS_COLLECTION_SEARCH_VARS, PRAXIS_CONTEXT_DIMENSIONS, PRAXIS_CORPORATE_SENSITIVE_KEYS, PRAXIS_DECISION_INSPECTOR_CONFIG, PRAXIS_DECISION_INSPECTOR_SURFACE, PRAXIS_DEFAULT_EXPORT_SECURITY_POLICY, PRAXIS_DEFAULT_OBSERVABILITY_ALERT_RULES, PRAXIS_DYNAMIC_PAGE_COMPONENT_METADATA, PRAXIS_EFFECTIVE_UI_LAYOUT_OPTIONS, PRAXIS_ENTERPRISE_RUNTIME_CONTEXT_OPTIONS, PRAXIS_ENTERPRISE_RUNTIME_CONTEXT_READY, PRAXIS_EXPORT_FORMULA_PREFIXES, PRAXIS_EXPORT_SECURITY_POLICY, PRAXIS_FOOTER_LINKS_METADATA, PRAXIS_GLOBAL_ACTION_CATALOG, PRAXIS_GLOBAL_CONFIG_BOOTSTRAP_OPTIONS, PRAXIS_GLOBAL_CONFIG_BOOTSTRAP_READY, PRAXIS_GLOBAL_CONFIG_TENANT_RESOLVER, PRAXIS_HERO_BANNER_METADATA, PRAXIS_I18N_CONFIG, PRAXIS_I18N_TRANSLATOR, PRAXIS_ICON_PICKER_EN_US, PRAXIS_ICON_PICKER_I18N_CONFIG, PRAXIS_ICON_PICKER_I18N_NAMESPACE, PRAXIS_ICON_PICKER_PT_BR, PRAXIS_JSON_LOGIC_OPERATORS, PRAXIS_LAYER_SCALE_DEFAULTS, PRAXIS_LAYER_SCALE_VARS, PRAXIS_LEGAL_NOTICE_METADATA, PRAXIS_LOADING_CTX, PRAXIS_LOADING_RENDERER, PRAXIS_LOGGER_CONFIG, PRAXIS_LOGGER_SINKS, PRAXIS_MICRO_CHART_ENGINE, PRAXIS_MICRO_CHART_ENGINE_DISABLED, PRAXIS_MICRO_VIZ_EN_US, PRAXIS_MICRO_VIZ_I18N_CONFIG, PRAXIS_MICRO_VIZ_I18N_NAMESPACE, PRAXIS_MICRO_VIZ_LEGACY_CHARTS_NAMESPACE, PRAXIS_MICRO_VIZ_PT_BR, PRAXIS_OBSERVABILITY_DASHBOARD_OPTIONS, PRAXIS_OPERATIONAL_ASSISTANT_LAUNCHER, PRAXIS_QUERY_FILTER_EXPRESSION_SCHEMA_VERSION, PRAXIS_QUICK_VIEW_BODY_RENDERER, PRAXIS_QUICK_VIEW_PRESENTER, PRAXIS_RELATED_RESOURCE_OUTLET_AUTHORING_MANIFEST, PRAXIS_RELATED_RESOURCE_OUTLET_COMPONENT_METADATA, PRAXIS_RELATED_RESOURCE_OUTLET_PORTS, PRAXIS_RICH_TEXT_BLOCK_METADATA, PRAXIS_RUNTIME_FORM_VALUE_PROPOSAL_SCHEMA_VERSION, PRAXIS_RUNTIME_FORM_VALUE_RECEIPT_SCHEMA_VERSION, PRAXIS_SESSION_TRANSPORT_OPTIONS, PRAXIS_SHELL_EN_US, PRAXIS_SHELL_I18N_CONFIG, PRAXIS_SHELL_I18N_NAMESPACE, PRAXIS_SHELL_PT_BR, PRAXIS_STATS_EXECUTION_CONFIG, PRAXIS_TABLE_DETAIL_INLINE_NODE_RESOLVERS, PRAXIS_TABLE_DETAIL_INLINE_RENDERERS, PRAXIS_TABLE_DETAIL_RESOURCE_RESOLVER, PRAXIS_TELEMETRY_TRANSPORT, PRAXIS_TENANT_REALM, PRAXIS_TENANT_REALM_HEADER, PRAXIS_THEME_OPTIONS, PRAXIS_THEME_SURFACE_DEFAULTS, PRAXIS_THEME_SURFACE_VARS, PRAXIS_USER_CONTEXT_SUMMARY_METADATA, PRAXIS_WIDGET_SHELL_ACTION_CONTRIBUTOR, PRAXIS_WORKSPACE_THEME_IDS, PRIVACY_CONSENT_EDITORIAL_SOLUTION, PRIVACY_CONSENT_EDITORIAL_TEMPLATE, PageIntegrityError, PraxisAppShellComponent, PraxisBulkClientService, PraxisCacheInvalidatorService, PraxisCollectionExportService, PraxisCommandPaletteComponent, PraxisContextFilterProjectorService, PraxisContextSwitchGuard, PraxisCore, PraxisCustomizationModeService, PraxisDecisionInspectorService, PraxisFooterLinksComponent, PraxisGlobalErrorHandler, PraxisHeroBannerComponent, PraxisHttpCollectionExportProvider, PraxisI18nService, PraxisIconButtonComponent, PraxisIconDirective, PraxisIconPickerComponent, PraxisJsonLogicError, PraxisJsonLogicService, PraxisKeepAliveTabDirective, PraxisLayerScaleStyleService, PraxisLegalNoticeComponent, PraxisLoadingInterceptor, PraxisMicroTooltipOverlayService, PraxisMicroVizHostComponent, PraxisMicroVizIdSequenceService, PraxisOperationalAssistantLaunchService, PraxisPageReconcilerService, PraxisQuickViewTriggerDirective, PraxisRelatedResourceOutletComponent, PraxisRelatedResourceOutletConfigEditorComponent, PraxisResourceIdentityComponent, PraxisRichTextBlockComponent, PraxisRuntimeComponentObservationRegistryService, PraxisRuntimeFormValueSessionJournal, PraxisSessionTransportService, PraxisStatsExecutionService, PraxisSurfaceHostComponent, PraxisThemeService, PraxisUserContextSummaryComponent, PraxisWidgetEventBus, PraxisWorkspaceQueryContextService, QUICK_VIEW_EMPLOYEE_BINDING_FIXTURE, QUICK_VIEW_EMPLOYEE_RECORD_FIXTURE, QUICK_VIEW_EMPLOYEE_SCHEMA_FIXTURE, QUICK_VIEW_EMPLOYEE_SURFACES_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_BINDING_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_RECORD_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_SCHEMA_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_SURFACES_FIXTURE, RESOURCE_DISCOVERY_I18N_CONFIG, RESOURCE_DISCOVERY_I18N_NAMESPACE, RULE_PROPERTY_SCHEMA, RelatedResourceSurfaceResolverService, RemoteConfigStorage, ResourceActionOpenAdapterService, ResourceDiscoveryService, ResourceQuickConnectComponent, ResourceQuickViewService, ResourceRecordOpenError, ResourceRecordOpenService, ResourceSurfaceOpenAdapterService, SCHEMA_METADATA_CLIENT_OPTIONS, SCHEMA_VIEWER_CONTEXT, SETTINGS_EDITOR_SECTIONS_HOSTED, SETTINGS_PANEL_BRIDGE, SETTINGS_PANEL_DATA, STEPPER_CONFIG_EDITOR, SURFACE_DRAWER_BRIDGE, SURFACE_DRAWER_CONTENT_DATA, SURFACE_DRAWER_REF, SURFACE_NAVIGATION_I18N_CONFIG, SURFACE_NAVIGATION_I18N_NAMESPACE, SURFACE_OPEN_I18N_CONFIG, SURFACE_OPEN_I18N_NAMESPACE, SURFACE_OPEN_PRESETS, SafeExpressionEvaluator, SchemaMetadataClient, SchemaNormalizerService, SchemaViewerComponent, SettingsSectionTabsComponent, SurfaceBindingRuntimeService, SurfaceNavigationError, SurfaceOpenActionEditorComponent, SurfaceOpenMaterializerService, SurfaceOutletRegistryService, TABLE_CONFIG_EDITOR, TableConfigService, TelemetryLoggerSink, TelemetryService, UiLayoutLifecycleContractError, UiLayoutLifecycleHttpError, UiLayoutLifecycleService, ValidationPattern, WidgetPageCompositionFactory, WidgetPageDataSourceRuntimeService, WidgetPageStateRuntimeService, WidgetShellComponent, applyDeclarativeValuePipe, applyLocalCustomizations$2 as applyLocalCustomizations, applyLocalCustomizations$1 as applyLocalFormCustomizations, applyRuntimeFormValueProposal, areRuntimeValuesEqual, assertPraxisCollectionExportArtifact, assertPraxisRuntimeComponentObservationSerializable, attachAnalyticsSuppressionMetadata, buildAngularValidators, buildApiUrl, buildBaseColumnFromDef, buildBaseFormField, buildFormConfigFromEditorialTemplate, buildGovernedPageTarget, buildHeaders, buildPageKey, buildPraxisActionControlCss, buildPraxisCollectionSearchCss, buildPraxisEffectDistinctKey, buildPraxisLayerScaleCss, buildPraxisTenantRealmHeaders, buildPraxisThemeSurfaceCss, buildPublishedPageIdentity, buildRulesStudioDeepLink, buildSchemaId, buildSchemaIdStorageKeySegment, buildSchemaSemanticColumnRenderer, buildValidatorsFromValidatorOptions, calibrateFieldMetadataFromSemantics, canOrganizeFormLayoutBySemantics, cancelIfCpfInvalidHook, canonicalJsonSha256, canonicalJsonStringify, clampRange, classifyEntityLookupResult, cloneBoundedUiLayoutJsonDocument, cloneInputsPreservingLiveReferences, clonePraxisRuntimeComponentObservation, cloneRuntimeValue, cloneTableConfig, cloneUiLayoutJsonDocument, cnpjAlphaValidator, collapseWhitespace, composeHeadersWithVersion, computePraxisMicroVizSignature, computePraxisStackedBarSegmentWidthPct, conditionalAsyncValidator, containsEphemeralQuickViewRuntimeValue, convertFormLayoutToConfig, copyPageAuthoringDocument, createCorporateLoggerConfig, createCorporateObservabilityOptions, createCpfCnpjValidator, createDefaultFormConfig, createDefaultTableConfig, createDynamicRecord, createEmptyFormConfig, createEmptyNavigationGroupsAuthoringDocument, createEmptyRichContentDocument, createFieldLayoutItem, createPersistedPage, createPraxisTestingNoopHttpInterceptor, customAsyncValidatorFn, customValidatorFn, debounceAsyncValidator, decodeNavigationGroupsAuthoringDocument, decodePageAuthoringDocument, deepMerge, derivePageChildRuntimeId, domainKnowledgeTimelineToRichContentDocument, domainRuleTimelineToRichContentDocument, encodeNavigationGroupsAuthoringDocument, encodePageAuthoringDocument, enrichGovernanceItemsWithFieldSchemas, enrichRuleSetsWithFieldSchemas, ensureIds, ensureNoConflictsHookFactory, ensurePageIds, escapePraxisExportCell, evaluateFieldAccess, evaluateGovernanceItemsFieldAccess, evaluatePraxisKpiDerivation, extractAnalyticsSuppressionMetadata, extractDomainCatalogRuleCatalog, extractDomainRuleDocumentation, extractNormalizedError, extractPraxisApiPathPrefix, extractRecordId, extractRuleViolationDiagnostics, fetchWithETag, fileTypeValidator, fillUndefined, findBuiltinWidgetShellPreset, formIdentityIssues, formatAffixedPresentationText, formatPraxisStackedBarPercentage, formatPraxisWaterfallSignedValue, generateBulkIdempotencyKey, generateId, getDefaultFormHints, getEditorialCompliancePresetById, getEditorialFormTemplateById, getEditorialFormTemplateCatalog, getEditorialSolutionById, getEditorialSolutionCatalog, getEditorialSolutionPresetById, getEditorialThemePresetById, getEssentialConfig, getFieldMetadataCapabilities, getFormColumnFieldNames, getFormLayoutFieldNames, getGlobalActionCatalog, getGlobalActionPayloadActualType, getGlobalActionPayloadTypeIssue, getGlobalActionProviderEvidence, getGlobalActionUiSchema, getMissingGlobalActionPayloadKeys, getPraxisMicroToneGradientStops, getPraxisStackedBarPaintStyle, getPraxisTableCellVisualizationConstraint, getPraxisTableCellVisualizationGuidance, getReferencedFieldMetadata, getRequiredGlobalActionPayloadKeys, getTextTransformer, getWidgetShellActionIdError, hasMeaningfulGlobalActionPayloadValue, hasPraxisCollectionExportArtifact, hasSemanticFieldCalibrationDiff, humanizeCatalogFieldName, inferDomainSemanticHexColor, inferDomainSemanticIcon, inferDomainSemanticTone, inferSemanticFieldControlType, inferSemanticFieldGroup, inferSemanticFieldWidth, instanceKeyFor, interpolatePraxisTranslation, isAllowedEditorialContentFormat, isAllowedEditorialHref, isBulkExecutionTerminal, isCanonicalDecisionStage, isCssTextTransform, isDecisionInspectorLensId, isDomainRuleSnapshotProblemResponse, isDynamicDataRecord, isEditorialComponentMeta, isEmptyRuntimeFormFieldValue, isEntityLookupMultiplePayloadMode, isEntityLookupPayloadMode, isEntityLookupPayloadModeCompatible, isEntityLookupResultSelectable, isEntityLookupSinglePayloadMode, isFormLayoutItem, isGlobalActionProviderOperational, isGlobalActionRef, isGovernedPageUuid, isInlineFilterControlType, isLookupDialogSize, isLookupFilterFieldType, isLookupFilterOperator, isMaskedOrRedactedRuntimeValue, isMaskedPresentationToken, isPraxisI18nMessageDescriptor, isPraxisMicroVisualizationRenderable, isPraxisPresentationVisualizationTableSafe, isPraxisRuntimeGlobalActionEffect, isPraxisWorkspaceThemeId, isProgrammaticDateRangePreset, isRangeValidForFilter, isRequiredGlobalActionParamPayloadMissing, isRequiredGlobalActionPayloadMissing, isResourceQuickViewAnchorValid, isSafeLegalBasisUrl, isSafeMicroSvgMarkup, isStaticDateRangePreset, isSurfaceNavigationError, isTableConfigV2, isUnresolvedTemplateToken, isValidFormConfig, isValidTableConfig, legacyCnpjValidator, legacyCpfValidator, logOnErrorHook, mapCatalogFieldsToMetadata, mapFieldDefinitionToMetadata, mapFieldDefinitionsToMetadata, markGlobalActionProviderOperational, matchFieldValidator, materializeFormLayoutFromMetadata, materializeGovernedPagePreview, materializeGovernedPaletteColors, materializeGovernedPaletteEntries, materializeResourceIdentity, maxFileSizeValidator, mergeDomainRuleDocumentation, mergeFieldMetadata, mergePraxisI18nConfigs, mergeTableConfigs, migrateFormLayoutRule, migrateLegacyCompositionLink, migrateLegacyCompositionLinks, minWordsValidator, nestedPortPathIdentity, normalizeCardMediaAspectRatio, normalizeColumnRendererQuickView, normalizeConfigPersistenceStrategy, normalizeControlTypeKey, normalizeControlTypeToken, normalizeEditorialLink, normalizeEnd, normalizeFieldAccessMetadata, normalizeFieldConstraints, normalizeFieldPresentation, normalizeFieldPresentationRules, normalizeFormConfig, normalizeFormLayoutItems, normalizeFormMetadata, normalizeGlobalActionRef$1 as normalizeGlobalActionRef, normalizeLayoutPolicy, normalizeLookupFilterRequest, normalizePath, normalizePraxisDataQueryContext, normalizePraxisEffectPolicy, normalizePraxisHexColor, normalizePraxisIconLigature, normalizePraxisPresentationVisualization, normalizePraxisQueryFilterExpression, normalizePraxisQueryFilterNode, normalizePraxisResourcePath, normalizePresentationAffix, normalizeQuickFilterCriteria, normalizeQuickFilterExpression, normalizeQuickFilterTone, normalizeReactiveDeterminations, normalizeResourceAvailabilityReasonCode, normalizeResourceIdentityContract, normalizeResourceQuickFilterItem, normalizeResourceQuickFilterList, normalizeResourceQuickViewBinding, normalizeResourceRecordOpenReference, normalizeResourceScopeId, normalizeRuleDocumentation, normalizeRuleLegalBasisList, normalizeScalarArrayValue, normalizeStart, normalizeStringMap, normalizeSurfaceOperationContext, normalizeUnknownError, normalizeWidgetEventPath, notifySuccessHook, organizeFormLayoutBySemantics, parseConfigPersistenceError, parseJsonResponseOrEmpty, praxisLoadingInterceptorFn, praxisSessionCredentialsInterceptor, prefillFromContextHook, prepareCanvasArrangement, previewRuntimeFormValueProposal, projectComponentAuthoringManifest, projectGroupedCommandPartialRows, provideDefaultFormHooks, provideFieldSelectorRegistryBase, provideFieldSelectorRegistryOverride, provideFieldSelectorRegistryRuntime, provideFormHookPresets, provideFormHooks, provideGlobalActionCatalog, provideGlobalActionHandler, provideGlobalConfig, provideGlobalConfigReady, provideGlobalConfigSeed, provideGlobalConfigTenant, provideHookResolvers, provideHookWhitelist, provideOverlayDecisionMatrix, providePraxisAnalyticsGlobalActions, providePraxisCollectionExportProvider, providePraxisDynamicPageMetadata, providePraxisEnterpriseRuntimeContext, providePraxisFooterLinksMetadata, providePraxisGlobalActionCatalog, providePraxisGlobalActions, providePraxisGlobalConfigBootstrap, providePraxisHeroBannerMetadata, providePraxisHttpCollectionExportProvider, providePraxisHttpLoading, providePraxisI18n, providePraxisI18nConfig, providePraxisI18nTranslator, providePraxisIconDefaults, providePraxisIconPickerI18n, providePraxisJsonLogicOperator, providePraxisJsonLogicOperatorOverride, providePraxisLegalNoticeMetadata, providePraxisLoadingDefaults, providePraxisLogging, providePraxisMicroVizI18n, providePraxisRelatedResourceOutletMetadata, providePraxisRichTextBlockMetadata, providePraxisSessionTransport, providePraxisShellI18n, providePraxisTelemetry, providePraxisTenantRealm, providePraxisTestingDefaults, providePraxisTheme, providePraxisToastGlobalActions, providePraxisUserContextSummaryMetadata, provideRemoteGlobalConfig, readAnalyticsSuppressionMetadata, readPraxisExportValue, readStrongResourceEtag, reconcileFieldQuickViewBinding, reconcileFilterConfig, reconcileFormConfig, reconcileTableConfig, registerPraxisRuntimeComponentObservation, removeDiacritics, reportTelemetryHookFactory, requiredCheckedValidator, requiredPresenceValidator, resolveAffixedPresentationParts, resolveBuiltinPresets, resolveBuiltinWidgetShellAppearance, resolveColumnTypeFromFieldDefinition, resolveControlTypeAlias, resolveDataField, resolveDateRangeShortcutPreset, resolveDateRangeShortcutPresets, resolveDefaultValuePresentationFormat, resolveEntityLookupPayloadMode, resolveFieldPresentation, resolveFieldQuickViewBinding, resolveGroupedCommandPartialRowSpans, resolveHidden, resolveHumanFieldLabel, resolveIconPickerLabel, resolveInlineFilterControlType, resolveInlineFilterControlTypeToBaseControlType, resolveLoggerConfig, resolveObservabilityOptions, resolveOffset, resolveOrder, resolvePraxisCollectionExportItems, resolvePraxisExportFields, resolvePraxisExportScope, resolvePraxisFilterCriteria, resolvePraxisI18nDocument, resolvePraxisIconPickerMessage, resolvePraxisMicroVisualizationTone, resolvePraxisMicroVizMessage, resolvePraxisMicroWaterfallSteps, resolvePraxisSchemasFilteredUrl, resolvePraxisStackedBarAriaLabel, resolvePraxisStackedBarSegments, resolvePraxisStackedBarTotal, resolvePraxisTenantRealmFromLocation, resolveQuickViewAnchorKey, resolveResourceAvailabilityReasonKey, resolveResourceIdentityContract, resolveResourceQuickViewTarget, resolveSchemaConditionalRenderers, resolveSpan, resolveTextMaskFormat, resolveTextMaskFormatFromFieldDefinition, resolveValuePresentation, resolveValuePresentationLocale, resolveWidgetPageLayoutPreset, samePageSourceReference, scopeKeyByTenantRealm, serializeEntityLookupValueForPayload, serializeOptionSourceFilterRequest, serializePraxisCollectionToCsv, serializePraxisCollectionToExcel, serializePraxisCollectionToJson, slugify, staticDateRangePresetToPreset, stripDraftClearedValues, stripMasksHook, supportsConfigDocuments, supportsImplicitValuePresentation, syncWithServerMetadata, synthesizeScopeBarQuickFilterItems, textSha256, toCamel, toCapitalize, toKebab, toPascal, toSentenceCase, toSnake, toTitleCase, translateDecisionInspector, translateResourceAvailabilityReason, translateResourceDiscoveryText, translateSurfaceNavigationRejected, translateSurfaceOpenFailed, translateUnavailableWorkflowMessage, trim, uiLayoutJsonIdentity, undoRuntimeFormValueApply, uniqueAsyncValidator, upsertNavigationGroupEntry, upsertPageNavigationBinding, urlValidator, validateCanvasArrangement, validateGlobalActionRef, validateGlobalActionRefs, validatePageAuthoringDocument, validatePageSourceReference, validateResourceQuickViewBinding, validateRuntimeFormValueTargetIdentity, validateRuntimeNavigationMenuNodes, withFormConfigSections, withMessage, withPraxisHttpLoading };
|
|
98056
|
+
export { API_CONFIG_STORAGE_OPTIONS, API_URL, ASYNC_CONFIG_STORAGE, AllowedFileTypes, AnalyticsPresentationResolver, AnalyticsSchemaContractService, AnalyticsStatsRequestBuilderService, ApiConfigStorage, ApiEndpoint, BUILTIN_PAGE_LAYOUT_PRESETS, BUILTIN_PAGE_THEME_PRESETS, BUILTIN_SHELL_PRESETS, BUILTIN_WIDGET_SHELL_PRESETS, BulkOperationClientService, BulkSyncSession, BulkSyncStateService, CANONICAL_DECISION_INSPECTOR_LENSES, CANONICAL_DECISION_STAGES, COMPONENT_METADATA_REGISTRY_I18N_CONFIG, COMPONENT_METADATA_REGISTRY_I18N_NAMESPACE, CONFIG_STORAGE, CONNECTION_STORAGE, ComponentAuthoringManifestProjectionError, ComponentKeyService, ComponentMetadataRegistry, ComponentRuntimeProfileService, CompositionRuntimeFacade, CompositionValidatorService, ConsoleLoggerSink, CrudOperationResolutionService, DECISION_INSPECTOR_I18N_CONFIG, DECISION_INSPECTOR_I18N_NAMESPACE, DEFAULT_DYNAMIC_FORM_SCHEMA_CACHE_MAX_ENTRIES, DEFAULT_DYNAMIC_FORM_SCHEMA_CACHE_TTL_MS, DEFAULT_FIELD_SELECTOR_CONTROL_TYPE_MAP, DEFAULT_JSON_LOGIC_OPERATORS, DEFAULT_PRAXIS_STATS_EXECUTION_CONFIG, DEFAULT_SCHEMA_REQUEST_TIMEOUT_MS, DEFAULT_TABLE_CONFIG, DOMAIN_CATALOG_COMPONENT_CONTEXT_PACK, DOMAIN_CATALOG_CONTEXT_HINT_SCHEMA_VERSION, DOMAIN_RULE_DOCUMENTATION_KEY, DYNAMIC_PAGE_AI_CAPABILITIES, DYNAMIC_PAGE_COMPONENT_CONTEXT_PACK, DYNAMIC_PAGE_CONFIG_EDITOR, DYNAMIC_PAGE_SHELL_EDITOR, DefaultLoadingRenderer, DeferredAsyncConfigStorage, DomainCatalogService, DomainKnowledgeService, DomainRuleService, DynamicFormService, DynamicWidgetLoaderDirective, DynamicWidgetPageComponent, EDITORIAL_ALLOWED_CONTENT_FORMATS, EDITORIAL_COMPLIANCE_PRESETS, EDITORIAL_EXTERNAL_LINK_REL, EDITORIAL_FORM_TEMPLATE_CATALOG, EDITORIAL_HTML_ENABLED, EDITORIAL_MARKDOWN_IMAGES_ENABLED, EDITORIAL_SOLUTION_CATALOG, EDITORIAL_SOLUTION_PRESETS, EDITORIAL_THEME_PRESETS, EDITORIAL_WIDGET_CONVENTION_INPUTS, EDITORIAL_WIDGET_TAG, EFFECTIVE_UI_LAYOUT_COMPOSITION_SCHEMA_VERSION, EMPLOYEE_ONBOARDING_EDITORIAL_SOLUTION, EMPLOYEE_ONBOARDING_EDITORIAL_TEMPLATE, EMPLOYEE_ONBOARDING_GUIDED_EDITORIAL_SOLUTION, EMPLOYEE_ONBOARDING_GUIDED_EDITORIAL_TEMPLATE, EVENT_REGISTRATION_EDITORIAL_SOLUTION, EVENT_REGISTRATION_EDITORIAL_TEMPLATE, EffectiveUiLayoutContractError, EffectiveUiLayoutHttpError, EffectiveUiLayoutService, EmptyStateCardComponent, EnterpriseRuntimeContextObsoleteError, EnterpriseRuntimeContextService, ErrorMessageService, FIELD_METADATA_CAPABILITIES, FIELD_SELECTOR_REGISTRY_BASE, FIELD_SELECTOR_REGISTRY_DISABLE_DEFAULTS, FIELD_SELECTOR_REGISTRY_OVERRIDES, FORM_HOOKS, FORM_HOOKS_PRESETS, FORM_HOOKS_WHITELIST, FORM_HOOK_RESOLVERS, FieldControlType, FieldDataType, FieldSelectorRegistry, FormHooksRegistry, GLOBAL_ACTION_CATALOG, GLOBAL_ACTION_HANDLERS, GLOBAL_ACTION_UI_SCHEMAS, GLOBAL_ANALYTICS_SERVICE, GLOBAL_API_CLIENT, GLOBAL_CONFIG, GLOBAL_DIALOG_SERVICE, GLOBAL_ROUTE_GUARD_RESOLVER, GLOBAL_SURFACE_SERVICE, GLOBAL_TOAST_SERVICE, GOVERNED_COLOR_PALETTE_OPTIONS, GOVERNED_PAGE_ADMITTED_WIDGET_IDS, GOVERNED_PAGE_DEFAULT_ALLOWED_ICONS, GenericCrudService, GlobalActionService, GlobalConfigService, GovernedColorPaletteService, INLINE_FILTER_ALIAS_TOKENS, INLINE_FILTER_CONTROL_TYPES, INLINE_FILTER_CONTROL_TYPE_SET, INLINE_FILTER_CONTROL_TYPE_VALUES, INLINE_FILTER_TOKEN_TO_BASE_CONTROL_TYPE, INLINE_FILTER_TOKEN_TO_CONTROL_TYPE, IconPickerService, IconPosition, IconSize, InMemoryAsyncConfigStorage, InMemoryConfigStorage, InMemoryConfigStore, InMemoryEnterpriseRuntimeContextService, LOGGER_LEVEL_BY_ENV, LOGGER_LEVEL_PRIORITY, LoadingOrchestrator, LocalConnectionStorage, LocalStorageAsyncAdapter, LocalStorageCacheAdapter, LocalStorageConfigService, LoggerService, LoggerThrottleTracker, LoggerWarnOnceTracker, MemoryCacheAdapter, NestedPortCatalogService, NestedWidgetConfigAccessor, NumericFormat, OVERLAY_DECIDER_DEBUG, OVERLAY_DECISION_MATRIX, ObservabilityDashboardService, OverlayDeciderService, PRAXIS_ACTION_CONTROL_DEFAULTS, PRAXIS_ACTION_CONTROL_VARS, PRAXIS_BULK_PROPOSAL_BRIDGE, PRAXIS_COLLECTION_EXPORT_HTTP_OPTIONS, PRAXIS_COLLECTION_EXPORT_PROVIDER, PRAXIS_COLLECTION_SEARCH_DEFAULTS, PRAXIS_COLLECTION_SEARCH_VARS, PRAXIS_CONTEXT_DIMENSIONS, PRAXIS_CORPORATE_SENSITIVE_KEYS, PRAXIS_DECISION_INSPECTOR_CONFIG, PRAXIS_DECISION_INSPECTOR_SURFACE, PRAXIS_DEFAULT_EXPORT_SECURITY_POLICY, PRAXIS_DEFAULT_OBSERVABILITY_ALERT_RULES, PRAXIS_DYNAMIC_PAGE_COMPONENT_METADATA, PRAXIS_EFFECTIVE_UI_LAYOUT_OPTIONS, PRAXIS_ENTERPRISE_RUNTIME_CONTEXT_OPTIONS, PRAXIS_ENTERPRISE_RUNTIME_CONTEXT_READY, PRAXIS_EPISTEMIC_AVAILABILITY_STATES, PRAXIS_EPISTEMIC_BADGE_METADATA, PRAXIS_EPISTEMIC_KINDS, PRAXIS_EXPORT_FORMULA_PREFIXES, PRAXIS_EXPORT_SECURITY_POLICY, PRAXIS_FOOTER_LINKS_METADATA, PRAXIS_GLOBAL_ACTION_CATALOG, PRAXIS_GLOBAL_CONFIG_BOOTSTRAP_OPTIONS, PRAXIS_GLOBAL_CONFIG_BOOTSTRAP_READY, PRAXIS_GLOBAL_CONFIG_TENANT_RESOLVER, PRAXIS_HERO_BANNER_METADATA, PRAXIS_I18N_CONFIG, PRAXIS_I18N_TRANSLATOR, PRAXIS_ICON_PICKER_EN_US, PRAXIS_ICON_PICKER_I18N_CONFIG, PRAXIS_ICON_PICKER_I18N_NAMESPACE, PRAXIS_ICON_PICKER_PT_BR, PRAXIS_INTELLIGENCE_EN_US, PRAXIS_INTELLIGENCE_ERROR_CATALOG, PRAXIS_INTELLIGENCE_ERROR_CODES, PRAXIS_INTELLIGENCE_I18N_CONFIG, PRAXIS_INTELLIGENCE_I18N_NAMESPACE, PRAXIS_INTELLIGENCE_JOBS_BASE_PATH, PRAXIS_INTELLIGENCE_JOB_STATUSES, PRAXIS_INTELLIGENCE_JOB_STATUS_METADATA, PRAXIS_INTELLIGENCE_PT_BR, PRAXIS_JSON_LOGIC_OPERATORS, PRAXIS_LAYER_SCALE_DEFAULTS, PRAXIS_LAYER_SCALE_VARS, PRAXIS_LEGAL_NOTICE_METADATA, PRAXIS_LOADING_CTX, PRAXIS_LOADING_RENDERER, PRAXIS_LOGGER_CONFIG, PRAXIS_LOGGER_SINKS, PRAXIS_MICRO_CHART_ENGINE, PRAXIS_MICRO_CHART_ENGINE_DISABLED, PRAXIS_MICRO_VIZ_EN_US, PRAXIS_MICRO_VIZ_I18N_CONFIG, PRAXIS_MICRO_VIZ_I18N_NAMESPACE, PRAXIS_MICRO_VIZ_LEGACY_CHARTS_NAMESPACE, PRAXIS_MICRO_VIZ_PT_BR, PRAXIS_OBSERVABILITY_DASHBOARD_OPTIONS, PRAXIS_OPERATIONAL_ASSISTANT_LAUNCHER, PRAXIS_QUERY_FILTER_EXPRESSION_SCHEMA_VERSION, PRAXIS_QUICK_VIEW_BODY_RENDERER, PRAXIS_QUICK_VIEW_PRESENTER, PRAXIS_RELATED_RESOURCE_OUTLET_AUTHORING_MANIFEST, PRAXIS_RELATED_RESOURCE_OUTLET_COMPONENT_METADATA, PRAXIS_RELATED_RESOURCE_OUTLET_PORTS, PRAXIS_RICH_TEXT_BLOCK_METADATA, PRAXIS_RUNTIME_FORM_VALUE_PROPOSAL_SCHEMA_VERSION, PRAXIS_RUNTIME_FORM_VALUE_RECEIPT_SCHEMA_VERSION, PRAXIS_SESSION_TRANSPORT_OPTIONS, PRAXIS_SHELL_EN_US, PRAXIS_SHELL_I18N_CONFIG, PRAXIS_SHELL_I18N_NAMESPACE, PRAXIS_SHELL_PT_BR, PRAXIS_STATS_EXECUTION_CONFIG, PRAXIS_SUPPRESSION_STATUSES, PRAXIS_TABLE_DETAIL_INLINE_NODE_RESOLVERS, PRAXIS_TABLE_DETAIL_INLINE_RENDERERS, PRAXIS_TABLE_DETAIL_RESOURCE_RESOLVER, PRAXIS_TELEMETRY_TRANSPORT, PRAXIS_TENANT_REALM, PRAXIS_TENANT_REALM_HEADER, PRAXIS_THEME_OPTIONS, PRAXIS_THEME_SURFACE_DEFAULTS, PRAXIS_THEME_SURFACE_VARS, PRAXIS_USER_CONTEXT_SUMMARY_METADATA, PRAXIS_WIDGET_SHELL_ACTION_CONTRIBUTOR, PRAXIS_WORKSPACE_THEME_IDS, PRIVACY_CONSENT_EDITORIAL_SOLUTION, PRIVACY_CONSENT_EDITORIAL_TEMPLATE, PageIntegrityError, PraxisAppShellComponent, PraxisBulkClientService, PraxisCacheInvalidatorService, PraxisCollectionExportService, PraxisCommandPaletteComponent, PraxisContextFilterProjectorService, PraxisContextSwitchGuard, PraxisCore, PraxisCustomizationModeService, PraxisDecisionInspectorService, PraxisEpistemicBadgeComponent, PraxisFooterLinksComponent, PraxisGlobalErrorHandler, PraxisHeroBannerComponent, PraxisHttpCollectionExportProvider, PraxisI18nService, PraxisIconButtonComponent, PraxisIconDirective, PraxisIconPickerComponent, PraxisIntelligenceJobError, PraxisIntelligenceJobStatusComponent, PraxisIntelligenceJobsService, PraxisJsonLogicError, PraxisJsonLogicService, PraxisKeepAliveTabDirective, PraxisLayerScaleStyleService, PraxisLegalNoticeComponent, PraxisLoadingInterceptor, PraxisMicroTooltipOverlayService, PraxisMicroVizHostComponent, PraxisMicroVizIdSequenceService, PraxisOperationalAssistantLaunchService, PraxisPageReconcilerService, PraxisQuickViewTriggerDirective, PraxisRelatedResourceOutletComponent, PraxisRelatedResourceOutletConfigEditorComponent, PraxisResourceIdentityComponent, PraxisRichTextBlockComponent, PraxisRuntimeComponentObservationRegistryService, PraxisRuntimeFormValueSessionJournal, PraxisSessionTransportService, PraxisStatsExecutionService, PraxisSurfaceHostComponent, PraxisThemeService, PraxisUserContextSummaryComponent, PraxisWidgetEventBus, PraxisWorkspaceQueryContextService, QUICK_VIEW_EMPLOYEE_BINDING_FIXTURE, QUICK_VIEW_EMPLOYEE_RECORD_FIXTURE, QUICK_VIEW_EMPLOYEE_SCHEMA_FIXTURE, QUICK_VIEW_EMPLOYEE_SURFACES_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_BINDING_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_RECORD_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_SCHEMA_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_SURFACES_FIXTURE, RESOURCE_DISCOVERY_I18N_CONFIG, RESOURCE_DISCOVERY_I18N_NAMESPACE, RULE_PROPERTY_SCHEMA, RelatedResourceSurfaceResolverService, RemoteConfigStorage, ResourceActionOpenAdapterService, ResourceDiscoveryService, ResourceQuickConnectComponent, ResourceQuickViewService, ResourceRecordOpenError, ResourceRecordOpenService, ResourceSurfaceOpenAdapterService, SCHEMA_METADATA_CLIENT_OPTIONS, SCHEMA_VIEWER_CONTEXT, SETTINGS_EDITOR_SECTIONS_HOSTED, SETTINGS_PANEL_BRIDGE, SETTINGS_PANEL_DATA, STEPPER_CONFIG_EDITOR, SURFACE_DRAWER_BRIDGE, SURFACE_DRAWER_CONTENT_DATA, SURFACE_DRAWER_REF, SURFACE_NAVIGATION_I18N_CONFIG, SURFACE_NAVIGATION_I18N_NAMESPACE, SURFACE_OPEN_I18N_CONFIG, SURFACE_OPEN_I18N_NAMESPACE, SURFACE_OPEN_PRESETS, SafeExpressionEvaluator, SchemaMetadataClient, SchemaNormalizerService, SchemaViewerComponent, SettingsSectionTabsComponent, SurfaceBindingRuntimeService, SurfaceNavigationError, SurfaceOpenActionEditorComponent, SurfaceOpenMaterializerService, SurfaceOutletRegistryService, TABLE_CONFIG_EDITOR, TableConfigService, TelemetryLoggerSink, TelemetryService, UiLayoutLifecycleContractError, UiLayoutLifecycleHttpError, UiLayoutLifecycleService, ValidationPattern, WidgetPageCompositionFactory, WidgetPageDataSourceRuntimeService, WidgetPageStateRuntimeService, WidgetShellComponent, applyDeclarativeValuePipe, applyLocalCustomizations$2 as applyLocalCustomizations, applyLocalCustomizations$1 as applyLocalFormCustomizations, applyRuntimeFormValueProposal, areRuntimeValuesEqual, assertPraxisCollectionExportArtifact, assertPraxisRuntimeComponentObservationSerializable, attachAnalyticsEpistemicMetadata, attachAnalyticsSuppressionMetadata, buildAngularValidators, buildApiUrl, buildBaseColumnFromDef, buildBaseFormField, buildFormConfigFromEditorialTemplate, buildGovernedPageTarget, buildHeaders, buildPageKey, buildPraxisActionControlCss, buildPraxisCollectionSearchCss, buildPraxisEffectDistinctKey, buildPraxisLayerScaleCss, buildPraxisTenantRealmHeaders, buildPraxisThemeSurfaceCss, buildPublishedPageIdentity, buildRulesStudioDeepLink, buildSchemaId, buildSchemaIdStorageKeySegment, buildSchemaSemanticColumnRenderer, buildValidatorsFromValidatorOptions, calibrateFieldMetadataFromSemantics, canOrganizeFormLayoutBySemantics, cancelIfCpfInvalidHook, canonicalJsonSha256, canonicalJsonStringify, clampRange, classifyEntityLookupResult, cloneBoundedUiLayoutJsonDocument, cloneInputsPreservingLiveReferences, clonePraxisRuntimeComponentObservation, cloneRuntimeValue, cloneTableConfig, cloneUiLayoutJsonDocument, cnpjAlphaValidator, coerceBulkTargetsWireIds, coerceBulkWireId, collapseWhitespace, composeHeadersWithVersion, computePraxisMicroVizSignature, computePraxisStackedBarSegmentWidthPct, conditionalAsyncValidator, containsEphemeralQuickViewRuntimeValue, convertFormLayoutToConfig, copyPageAuthoringDocument, createCorporateLoggerConfig, createCorporateObservabilityOptions, createCpfCnpjValidator, createDefaultFormConfig, createDefaultTableConfig, createDynamicRecord, createEmptyFormConfig, createEmptyNavigationGroupsAuthoringDocument, createEmptyRichContentDocument, createFieldLayoutItem, createPersistedPage, createPraxisTestingNoopHttpInterceptor, createSilentPraxisLoadingContext, customAsyncValidatorFn, customValidatorFn, debounceAsyncValidator, decodeNavigationGroupsAuthoringDocument, decodePageAuthoringDocument, deepMerge, deriveFailClosedEpistemicMetaFromError, derivePageChildRuntimeId, domainKnowledgeTimelineToRichContentDocument, domainRuleTimelineToRichContentDocument, encodeNavigationGroupsAuthoringDocument, encodePageAuthoringDocument, enrichGovernanceItemsWithFieldSchemas, enrichRuleSetsWithFieldSchemas, ensureIds, ensureNoConflictsHookFactory, ensurePageIds, escapePraxisExportCell, evaluateFieldAccess, evaluateGovernanceItemsFieldAccess, evaluatePraxisKpiDerivation, extractAnalyticsEpistemicMetadata, extractAnalyticsSuppressionMetadata, extractDomainCatalogRuleCatalog, extractDomainRuleDocumentation, extractExplicitPraxisIntelligenceErrorCode, extractNormalizedError, extractPraxisApiPathPrefix, extractRecordId, extractRuleViolationDiagnostics, fetchWithETag, fileTypeValidator, fillUndefined, findBuiltinWidgetShellPreset, formIdentityIssues, formatAffixedPresentationText, formatPraxisEpistemicNumber, formatPraxisQValueFdr, formatPraxisStackedBarPercentage, formatPraxisWaterfallSignedValue, formatTruncatedProvenanceHash, generateBulkIdempotencyKey, generateId, getDefaultFormHints, getEditorialCompliancePresetById, getEditorialFormTemplateById, getEditorialFormTemplateCatalog, getEditorialSolutionById, getEditorialSolutionCatalog, getEditorialSolutionPresetById, getEditorialThemePresetById, getEssentialConfig, getFieldMetadataCapabilities, getFormColumnFieldNames, getFormLayoutFieldNames, getGlobalActionCatalog, getGlobalActionPayloadActualType, getGlobalActionPayloadTypeIssue, getGlobalActionProviderEvidence, getGlobalActionUiSchema, getMissingGlobalActionPayloadKeys, getPraxisEpistemicKindIcon, getPraxisMicroToneGradientStops, getPraxisStackedBarPaintStyle, getPraxisTableCellVisualizationConstraint, getPraxisTableCellVisualizationGuidance, getReferencedFieldMetadata, getRequiredGlobalActionPayloadKeys, getTextTransformer, getWidgetShellActionIdError, hasMeaningfulGlobalActionPayloadValue, hasPraxisCollectionExportArtifact, hasSemanticFieldCalibrationDiff, humanizeCatalogFieldName, inferDomainSemanticHexColor, inferDomainSemanticIcon, inferDomainSemanticTone, inferSemanticFieldControlType, inferSemanticFieldGroup, inferSemanticFieldWidth, instanceKeyFor, interpolatePraxisTranslation, isAllowedEditorialContentFormat, isAllowedEditorialHref, isBulkExecutionTerminal, isCanonicalDecisionStage, isCssTextTransform, isDecisionInspectorLensId, isDomainRuleSnapshotProblemResponse, isDynamicDataRecord, isEditorialComponentMeta, isEmptyRuntimeFormFieldValue, isEntityLookupMultiplePayloadMode, isEntityLookupPayloadMode, isEntityLookupPayloadModeCompatible, isEntityLookupResultSelectable, isEntityLookupSinglePayloadMode, isFormLayoutItem, isGlobalActionProviderOperational, isGlobalActionRef, isGovernedPageUuid, isInlineFilterControlType, isLookupDialogSize, isLookupFilterFieldType, isLookupFilterOperator, isMaskedOrRedactedRuntimeValue, isMaskedPresentationToken, isPraxisEpistemicAvailabilityState, isPraxisEpistemicKind, isPraxisI18nMessageDescriptor, isPraxisIntelligenceErrorCode, isPraxisIntelligenceJobStatus, isPraxisIntelligenceJobTerminal, isPraxisMicroVisualizationRenderable, isPraxisPresentationVisualizationTableSafe, isPraxisRuntimeGlobalActionEffect, isPraxisSuppressionStatusSuppressed, isPraxisWorkspaceThemeId, isProgrammaticDateRangePreset, isRangeValidForFilter, isRequiredGlobalActionParamPayloadMissing, isRequiredGlobalActionPayloadMissing, isResourceQuickViewAnchorValid, isSafeLegalBasisUrl, isSafeMicroSvgMarkup, isStaticDateRangePreset, isSurfaceNavigationError, isTableConfigV2, isUnresolvedTemplateToken, isValidFormConfig, isValidTableConfig, legacyCnpjValidator, legacyCpfValidator, logOnErrorHook, mapCatalogFieldsToMetadata, mapFieldDefinitionToMetadata, mapFieldDefinitionsToMetadata, markGlobalActionProviderOperational, matchFieldValidator, materializeFormLayoutFromMetadata, materializeGovernedPagePreview, materializeGovernedPaletteColors, materializeGovernedPaletteEntries, materializeResourceIdentity, maxFileSizeValidator, mergeDomainRuleDocumentation, mergeFieldMetadata, mergePraxisI18nConfigs, mergeTableConfigs, migrateFormLayoutRule, migrateLegacyCompositionLink, migrateLegacyCompositionLinks, minWordsValidator, nestedPortPathIdentity, normalizeCardMediaAspectRatio, normalizeColumnRendererQuickView, normalizeConfigPersistenceStrategy, normalizeControlTypeKey, normalizeControlTypeToken, normalizeEditorialLink, normalizeEnd, normalizeFieldAccessMetadata, normalizeFieldConstraints, normalizeFieldPresentation, normalizeFieldPresentationRules, normalizeFormConfig, normalizeFormLayoutItems, normalizeFormMetadata, normalizeGlobalActionRef$1 as normalizeGlobalActionRef, normalizeLayoutPolicy, normalizeLookupFilterRequest, normalizePath, normalizePraxisDataQueryContext, normalizePraxisEffectPolicy, normalizePraxisEpistemicAvailabilityState, normalizePraxisEpistemicKind, normalizePraxisEpistemicMeta, normalizePraxisHexColor, normalizePraxisIconLigature, normalizePraxisIntelligenceErrorCode, normalizePraxisNigriniConformity, normalizePraxisPresentationVisualization, normalizePraxisQueryFilterExpression, normalizePraxisQueryFilterNode, normalizePraxisResourcePath, normalizePresentationAffix, normalizeQuickFilterCriteria, normalizeQuickFilterExpression, normalizeQuickFilterTone, normalizeReactiveDeterminations, normalizeResourceAvailabilityReasonCode, normalizeResourceIdentityContract, normalizeResourceQuickFilterItem, normalizeResourceQuickFilterList, normalizeResourceQuickViewBinding, normalizeResourceRecordOpenReference, normalizeResourceScopeId, normalizeRuleDocumentation, normalizeRuleLegalBasisList, normalizeScalarArrayValue, normalizeStart, normalizeStringMap, normalizeSurfaceOperationContext, normalizeUnknownError, normalizeWidgetEventPath, notifySuccessHook, organizeFormLayoutBySemantics, parseConfigPersistenceError, parseJsonResponseOrEmpty, praxisLoadingInterceptorFn, praxisSessionCredentialsInterceptor, prefillFromContextHook, prepareCanvasArrangement, previewRuntimeFormValueProposal, projectComponentAuthoringManifest, projectGroupedCommandPartialRows, provideDefaultFormHooks, provideFieldSelectorRegistryBase, provideFieldSelectorRegistryOverride, provideFieldSelectorRegistryRuntime, provideFormHookPresets, provideFormHooks, provideGlobalActionCatalog, provideGlobalActionHandler, provideGlobalConfig, provideGlobalConfigReady, provideGlobalConfigSeed, provideGlobalConfigTenant, provideHookResolvers, provideHookWhitelist, provideOverlayDecisionMatrix, providePraxisAnalyticsGlobalActions, providePraxisCollectionExportProvider, providePraxisDynamicPageMetadata, providePraxisEnterpriseRuntimeContext, providePraxisEpistemicBadgeMetadata, providePraxisFooterLinksMetadata, providePraxisGlobalActionCatalog, providePraxisGlobalActions, providePraxisGlobalConfigBootstrap, providePraxisHeroBannerMetadata, providePraxisHttpCollectionExportProvider, providePraxisHttpLoading, providePraxisI18n, providePraxisI18nConfig, providePraxisI18nTranslator, providePraxisIconDefaults, providePraxisIconPickerI18n, providePraxisIntelligenceI18n, providePraxisIntelligenceJobStatusMetadata, providePraxisJsonLogicOperator, providePraxisJsonLogicOperatorOverride, providePraxisLegalNoticeMetadata, providePraxisLoadingDefaults, providePraxisLogging, providePraxisMicroVizI18n, providePraxisRelatedResourceOutletMetadata, providePraxisRichTextBlockMetadata, providePraxisSessionTransport, providePraxisShellI18n, providePraxisTelemetry, providePraxisTenantRealm, providePraxisTestingDefaults, providePraxisTheme, providePraxisToastGlobalActions, providePraxisUserContextSummaryMetadata, provideRemoteGlobalConfig, readAnalyticsEpistemicMetadata, readAnalyticsSuppressionMetadata, readPraxisExportValue, readStrongResourceEtag, reconcileFieldQuickViewBinding, reconcileFilterConfig, reconcileFormConfig, reconcileTableConfig, registerPraxisRuntimeComponentObservation, removeDiacritics, reportTelemetryHookFactory, requiredCheckedValidator, requiredPresenceValidator, resolveAffixedPresentationParts, resolveBuiltinPresets, resolveBuiltinWidgetShellAppearance, resolveBulkWireIdKindFromSchema, resolveColumnTypeFromFieldDefinition, resolveControlTypeAlias, resolveDataField, resolveDateRangeShortcutPreset, resolveDateRangeShortcutPresets, resolveDefaultValuePresentationFormat, resolveEntityLookupPayloadMode, resolveFieldPresentation, resolveFieldQuickViewBinding, resolveGroupedCommandPartialRowSpans, resolveHidden, resolveHumanFieldLabel, resolveIconPickerLabel, resolveInlineFilterControlType, resolveInlineFilterControlTypeToBaseControlType, resolveLoggerConfig, resolveObservabilityOptions, resolveOffset, resolveOrder, resolvePraxisCollectionExportItems, resolvePraxisExportFields, resolvePraxisExportScope, resolvePraxisFilterCriteria, resolvePraxisI18nDocument, resolvePraxisIconPickerMessage, resolvePraxisIntelligenceErrorCodeFromPayload, resolvePraxisIntelligenceErrorCodeFromStatus, resolvePraxisIntelligenceMessage, resolvePraxisMicroVisualizationTone, resolvePraxisMicroVizMessage, resolvePraxisMicroWaterfallSteps, resolvePraxisSchemasFilteredUrl, resolvePraxisStackedBarAriaLabel, resolvePraxisStackedBarSegments, resolvePraxisStackedBarTotal, resolvePraxisTenantRealmFromLocation, resolveQuickViewAnchorKey, resolveResourceAvailabilityReasonKey, resolveResourceIdentityContract, resolveResourceQuickViewTarget, resolveSchemaConditionalRenderers, resolveSpan, resolveTextMaskFormat, resolveTextMaskFormatFromFieldDefinition, resolveValuePresentation, resolveValuePresentationLocale, resolveWidgetPageLayoutPreset, samePageSourceReference, sanitizeIntelligenceDetailText, scopeKeyByTenantRealm, serializeEntityLookupValueForPayload, serializeOptionSourceFilterRequest, serializePraxisCollectionToCsv, serializePraxisCollectionToExcel, serializePraxisCollectionToJson, slugify, staticDateRangePresetToPreset, stripDraftClearedValues, stripMasksHook, supportsConfigDocuments, supportsImplicitValuePresentation, syncWithServerMetadata, synthesizeScopeBarQuickFilterItems, textSha256, toCamel, toCapitalize, toKebab, toPascal, toSentenceCase, toSnake, toTitleCase, translateDecisionInspector, translateResourceAvailabilityReason, translateResourceDiscoveryText, translateSurfaceNavigationRejected, translateSurfaceOpenFailed, translateUnavailableWorkflowMessage, trim, uiLayoutJsonIdentity, undoRuntimeFormValueApply, uniqueAsyncValidator, upsertNavigationGroupEntry, upsertPageNavigationBinding, urlValidator, validateCanvasArrangement, validateGlobalActionRef, validateGlobalActionRefs, validatePageAuthoringDocument, validatePageSourceReference, validateResourceQuickViewBinding, validateRuntimeFormValueTargetIdentity, validateRuntimeNavigationMenuNodes, withFormConfigSections, withMessage, withPraxisHttpLoading };
|