@praxisui/crud 10.0.0-rc.47 → 10.0.0-rc.49
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/ai/component-registry.json +101 -11
- package/fesm2022/{praxisui-crud-crud-route-form.component-PYATzMcM.mjs → praxisui-crud-crud-route-form.component-DADRjFi0.mjs} +1 -1
- package/fesm2022/{praxisui-crud-praxisui-crud-DQsPPMCL.mjs → praxisui-crud-praxisui-crud-wUgwooIF.mjs} +2513 -84
- package/fesm2022/praxisui-crud.mjs +1 -1
- package/package.json +8 -7
- package/types/praxisui-crud.d.ts +264 -8
|
@@ -8,10 +8,10 @@ import { Router, GuardsCheckEnd, ActivatedRoute, RouterLink } from '@angular/rou
|
|
|
8
8
|
import * as i1$1 from '@angular/material/dialog';
|
|
9
9
|
import { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
10
10
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
11
|
-
import { Subscription, firstValueFrom, takeUntil, fromEvent, BehaviorSubject, forkJoin
|
|
12
|
-
import { take, filter
|
|
11
|
+
import { Subscription, of, firstValueFrom, takeUntil, fromEvent, BehaviorSubject, forkJoin } from 'rxjs';
|
|
12
|
+
import { catchError, switchMap, take, filter } from 'rxjs/operators';
|
|
13
13
|
import * as i2$2 from '@praxisui/core';
|
|
14
|
-
import { PraxisBulkClientService, PraxisI18nService, generateBulkIdempotencyKey, isBulkExecutionTerminal, API_URL, PraxisMicroTooltipOverlayService, SafeExpressionEvaluator, buildApiUrl, renderPraxisPresentationVisualizationHtml, isUnresolvedTemplateToken, applyDeclarativeValuePipe, EnterpriseRuntimeContextService, ASYNC_CONFIG_STORAGE, GlobalConfigService, CrudOperationResolutionService, LoggerService, SurfaceNavigationError, fillUndefined, GenericCrudService, ResourceDiscoveryService, SETTINGS_PANEL_DATA, mapCatalogFieldsToMetadata, FieldControlType, humanizeCatalogFieldName, inferDomainSemanticTone, buildBaseColumnFromDef, mapFieldDefinitionsToMetadata, PraxisIconDirective, ResourceQuickConnectComponent, providePraxisI18nConfig, SchemaNormalizerService, normalizeQuickFilterTone, synthesizeScopeBarQuickFilterItems,
|
|
14
|
+
import { PraxisBulkClientService, PraxisI18nService, generateBulkIdempotencyKey, isBulkExecutionTerminal, API_URL, PraxisMicroTooltipOverlayService, SafeExpressionEvaluator, buildApiUrl, normalizeQuickFilterCriteria, renderPraxisPresentationVisualizationHtml, isUnresolvedTemplateToken, applyDeclarativeValuePipe, EnterpriseRuntimeContextService, ASYNC_CONFIG_STORAGE, GlobalConfigService, CrudOperationResolutionService, ComponentKeyService, LoggerService, SurfaceNavigationError, normalizeResourceScopeId, fillUndefined, GenericCrudService, ResourceDiscoveryService, SETTINGS_PANEL_DATA, mapCatalogFieldsToMetadata, FieldControlType, humanizeCatalogFieldName, inferDomainSemanticTone, buildBaseColumnFromDef, mapFieldDefinitionsToMetadata, PraxisIconDirective, ResourceQuickConnectComponent, providePraxisI18nConfig, SchemaNormalizerService, normalizeQuickFilterTone, synthesizeScopeBarQuickFilterItems, PraxisWidgetEventBus, PraxisWorkspaceQueryContextService, PraxisContextFilterProjectorService, GLOBAL_SURFACE_SERVICE, SurfaceOutletRegistryService, ResourceActionOpenAdapterService, ResourceSurfaceOpenAdapterService, composeHeadersWithVersion, normalizeSurfaceOperationContext, createDefaultTableConfig, SURFACE_DRAWER_REF, translateUnavailableWorkflowMessage, isSurfaceNavigationError, translateSurfaceNavigationRejected, normalizeUnknownError, EmptyStateCardComponent, RESOURCE_DISCOVERY_I18N_CONFIG, PraxisCustomizationModeService, SURFACE_DRAWER_CONTENT_DATA, PraxisIconButtonComponent, PraxisResourceIdentityComponent, ComponentMetadataRegistry, materializeResourceIdentity, resolveResourceIdentityContract, evaluateFieldAccess, PraxisDecisionInspectorService, translateDecisionInspector } from '@praxisui/core';
|
|
15
15
|
import * as i3 from '@angular/material/button';
|
|
16
16
|
import { MatButtonModule } from '@angular/material/button';
|
|
17
17
|
import * as i4 from '@angular/material/icon';
|
|
@@ -95,6 +95,34 @@ const PRAXIS_CRUD_RUNTIME_I18N_CONFIG = {
|
|
|
95
95
|
'crud.dialog.relatedContextLabel': 'Vinculado a',
|
|
96
96
|
'crud.delete.confirmMessage': 'Esta ação não pode ser desfeita. Deseja continuar?',
|
|
97
97
|
'crud.delete.cancel': 'Cancelar',
|
|
98
|
+
'crud.kpi.refreshTooltip': 'Atualizar indicadores',
|
|
99
|
+
'crud.kpi.schemaTotalLabel': 'Total de registros',
|
|
100
|
+
'crud.kpi.schemaQuickFilterCaption': 'Filtro rápido do recurso',
|
|
101
|
+
'crud.dossier.eyebrow': 'Dossiê 360° do Registro',
|
|
102
|
+
'crud.dossier.switcherToggleOpen': 'Ocultar lista de registros',
|
|
103
|
+
'crud.dossier.switcherToggleClosed': 'Trocar registro ({count})',
|
|
104
|
+
'crud.dossier.switcherLabel': 'Selecionar registro do dossiê',
|
|
105
|
+
'crud.dossier.switcherSearchPlaceholder': 'Buscar registro na lista...',
|
|
106
|
+
'crud.dossier.syncCapabilities': 'Sincronizar capacidades',
|
|
107
|
+
'crud.dossier.capabilitiesSynced': 'Capacidades sincronizadas',
|
|
108
|
+
'crud.dossier.openRecordForm': 'Ficha completa',
|
|
109
|
+
'crud.dossier.hideRecordForm': 'Ocultar ficha completa',
|
|
110
|
+
'crud.dossier.intentsHeading': 'Intenções e atualizações parciais',
|
|
111
|
+
'crud.dossier.actionsHeading': 'Ações operacionais',
|
|
112
|
+
'crud.dossier.surfacesHeading': 'Superfícies relacionadas',
|
|
113
|
+
'crud.dossier.noRecordTitle': 'Nenhum registro mestre selecionado',
|
|
114
|
+
'crud.dossier.noRecordDescription': 'Informe um identificador ou selecione um registro na lista para carregar o dossiê completo.',
|
|
115
|
+
'crud.dossier.noChildSurfaces': 'Nenhuma superfície filha ou relacionada foi publicada para este recurso.',
|
|
116
|
+
'crud.dossier.loading': 'Carregando dossiê do registro...',
|
|
117
|
+
'crud.dossier.loadError': 'Não foi possível carregar os metadados ou o registro solicitado.',
|
|
118
|
+
'crud.dossier.retry': 'Tentar novamente',
|
|
119
|
+
'crud.dossier.revealSensitive': 'Revelar',
|
|
120
|
+
'crud.dossier.hideSensitive': 'Ocultar',
|
|
121
|
+
'crud.dossier.actionUnavailable': 'Ação indisponível no estado atual.',
|
|
122
|
+
'crud.dossier.openResourceList': 'Abrir listagem completa',
|
|
123
|
+
'crud.dossier.tabs.overview': 'Visão geral',
|
|
124
|
+
'crud.boolean.true': 'Sim',
|
|
125
|
+
'crud.boolean.false': 'Não',
|
|
98
126
|
},
|
|
99
127
|
'en-US': {
|
|
100
128
|
'crud.route.unavailable': 'This copy is no longer available. Return to the list and prepare a new copy.',
|
|
@@ -141,6 +169,34 @@ const PRAXIS_CRUD_RUNTIME_I18N_CONFIG = {
|
|
|
141
169
|
'crud.dialog.relatedContextLabel': 'Related to',
|
|
142
170
|
'crud.delete.confirmMessage': 'This action cannot be undone. Do you want to continue?',
|
|
143
171
|
'crud.delete.cancel': 'Cancel',
|
|
172
|
+
'crud.kpi.refreshTooltip': 'Refresh indicators',
|
|
173
|
+
'crud.kpi.schemaTotalLabel': 'Total Records',
|
|
174
|
+
'crud.kpi.schemaQuickFilterCaption': 'Resource quick filter',
|
|
175
|
+
'crud.dossier.eyebrow': '360° Record Dossier',
|
|
176
|
+
'crud.dossier.switcherToggleOpen': 'Hide record list',
|
|
177
|
+
'crud.dossier.switcherToggleClosed': 'Switch record ({count})',
|
|
178
|
+
'crud.dossier.switcherLabel': 'Select dossier record',
|
|
179
|
+
'crud.dossier.switcherSearchPlaceholder': 'Search record list...',
|
|
180
|
+
'crud.dossier.syncCapabilities': 'Sync capabilities',
|
|
181
|
+
'crud.dossier.capabilitiesSynced': 'Capabilities synced',
|
|
182
|
+
'crud.dossier.openRecordForm': 'Full record form',
|
|
183
|
+
'crud.dossier.hideRecordForm': 'Hide full record form',
|
|
184
|
+
'crud.dossier.intentsHeading': 'Partial update intents',
|
|
185
|
+
'crud.dossier.actionsHeading': 'Operational actions',
|
|
186
|
+
'crud.dossier.surfacesHeading': 'Related surfaces',
|
|
187
|
+
'crud.dossier.noRecordTitle': 'No master record selected',
|
|
188
|
+
'crud.dossier.noRecordDescription': 'Provide an identifier or select a record from the list to load the full dossier.',
|
|
189
|
+
'crud.dossier.noChildSurfaces': 'No child or related surfaces are published for this resource.',
|
|
190
|
+
'crud.dossier.loading': 'Loading record dossier...',
|
|
191
|
+
'crud.dossier.loadError': 'Could not load metadata or the requested record.',
|
|
192
|
+
'crud.dossier.retry': 'Try again',
|
|
193
|
+
'crud.dossier.revealSensitive': 'Reveal',
|
|
194
|
+
'crud.dossier.hideSensitive': 'Hide',
|
|
195
|
+
'crud.dossier.actionUnavailable': 'Action unavailable in the current state.',
|
|
196
|
+
'crud.dossier.openResourceList': 'Open full list',
|
|
197
|
+
'crud.dossier.tabs.overview': 'Overview',
|
|
198
|
+
'crud.boolean.true': 'Yes',
|
|
199
|
+
'crud.boolean.false': 'No',
|
|
144
200
|
},
|
|
145
201
|
},
|
|
146
202
|
},
|
|
@@ -1058,7 +1114,7 @@ class PraxisBulkOperationDialogComponent {
|
|
|
1058
1114
|
}
|
|
1059
1115
|
</div>
|
|
1060
1116
|
</div>
|
|
1061
|
-
`, isInline: true, styles: [".cdk-global-overlay-wrapper:has(.praxis-bulk-dialog-panel){display:flex!important;justify-content:center!important;align-items:center!important;padding:24px!important;box-sizing:border-box!important}.cdk-overlay-pane.praxis-bulk-dialog-panel{--mat-dialog-container-color: var(--card, var(--praxis-color-surface, #1e293b)) !important;--mdc-dialog-container-color: var(--card, var(--praxis-color-surface, #1e293b)) !important;--mat-dialog-container-shape: 16px;position:relative!important;inset:auto!important;margin:auto!important;display:flex!important;justify-content:center!important;align-items:center!important}.cdk-overlay-pane.praxis-bulk-dialog-panel .mat-mdc-dialog-surface{border-radius:16px;border:1px solid var(--border, var(--praxis-border-subtle, rgba(148, 163, 184, .2)));box-shadow:0 24px 64px #0000008c;background-color:var(--card, var(--praxis-color-surface, #1e293b))!important;color:var(--foreground, #f8fafc)!important;overflow:hidden;width:100%}.praxis-bulk-dialog{display:flex;flex-direction:column;max-height:85vh;width:100%;min-width:600px;max-width:680px;margin:0 auto;color:var(--foreground, var(--praxis-text-primary, #f8fafc));background:transparent;box-sizing:border-box}.praxis-bulk-dialog__header{display:flex;justify-content:space-between;align-items:flex-start;padding:22px 26px 18px;border-bottom:1px solid var(--border, rgba(148, 163, 184, .15))}.praxis-bulk-dialog__title-group{display:flex;align-items:flex-start;gap:14px}.praxis-bulk-dialog__header-icon{color:var(--primary, var(--praxis-primary, #0284c7));font-size:28px;width:28px;height:28px;margin-top:2px}.praxis-bulk-dialog__title{font-size:1.25rem;font-weight:600;margin:0;line-height:1.3;color:var(--foreground, #f8fafc)}.praxis-bulk-dialog__subtitle{font-size:.875rem;color:var(--muted-foreground, rgba(148, 163, 184, .85));margin:4px 0 0;line-height:1.45}.praxis-bulk-dialog__content{padding:22px 26px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:20px}.praxis-bulk-dialog__targets-badge{display:inline-flex;align-items:center;gap:10px;padding:10px 16px;background:color-mix(in srgb,var(--foreground, #f8fafc) 6%,var(--card, #1e293b));border:1px solid var(--border, rgba(148, 163, 184, .2));border-radius:10px;font-size:.875rem;color:var(--foreground, #f8fafc)}.praxis-bulk-dialog__targets-badge mat-icon{font-size:18px;width:18px;height:18px;color:var(--primary, var(--praxis-primary, #0284c7))}.praxis-bulk-dialog__section{display:flex;flex-direction:column;gap:20px}.praxis-bulk-dialog__section-title{font-size:1rem;font-weight:600;margin:0;color:var(--foreground, #f8fafc)}.praxis-bulk-dialog__totals-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:4px 0 12px}.praxis-bulk-dialog__total-card{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:104px;padding:20px 22px;background:color-mix(in srgb,var(--foreground, #f8fafc) 6%,var(--card, #1e293b));border:1px solid var(--border, rgba(148, 163, 184, .2));border-radius:14px;transition:background .2s ease,border-color .2s ease;box-sizing:border-box;gap:8px}.praxis-bulk-dialog__total-card .total-label{font-size:.8125rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted-foreground, rgba(148, 163, 184, .85));font-weight:600;margin-bottom:2px}.praxis-bulk-dialog__total-card .total-value{font-size:2rem;font-weight:700;color:var(--foreground, #f8fafc);line-height:1;margin:0;letter-spacing:-.02em}.total-card--executable{border-color:color-mix(in srgb,var(--praxis-success, #10b981) 50%,transparent)!important;background:color-mix(in srgb,var(--praxis-success, #10b981) 16%,var(--card, #1e293b))!important}.total-card--executable .total-value{color:var(--praxis-success, #10b981)}.total-card--blocked{border-color:color-mix(in srgb,var(--praxis-error, #ef4444) 50%,transparent)!important;background:color-mix(in srgb,var(--praxis-error, #ef4444) 16%,var(--card, #1e293b))!important}.total-card--blocked .total-value{color:var(--praxis-error, #ef4444)}.praxis-bulk-dialog__alert{display:flex;align-items:flex-start;gap:14px;padding:18px 22px;border-radius:12px;font-size:.875rem;line-height:1.5}.praxis-bulk-dialog__alert mat-icon{font-size:22px;width:22px;height:22px;flex-shrink:0;margin-top:1px}.praxis-bulk-dialog__alert .alert-content{display:flex;flex-direction:column;gap:4px}.praxis-bulk-dialog__alert .alert-content strong{font-size:.9375rem;font-weight:600;color:inherit}.praxis-bulk-dialog__alert .alert-content p{margin:0;font-size:.8125rem;opacity:.9}.praxis-bulk-dialog__alert--error{background:color-mix(in srgb,var(--praxis-error, #ef4444) 16%,var(--card, #1e293b));border:1px solid color-mix(in srgb,var(--praxis-error, #ef4444) 45%,transparent);color:var(--foreground, #f8fafc)}.praxis-bulk-dialog__alert--error mat-icon{color:var(--praxis-error, #ef4444)}.praxis-bulk-dialog__alert--warning{background:color-mix(in srgb,var(--praxis-warning, #d97706) 16%,var(--card, #1e293b));border:1px solid color-mix(in srgb,var(--praxis-warning, #d97706) 45%,transparent);color:var(--foreground, #f8fafc)}.praxis-bulk-dialog__alert--warning mat-icon{color:var(--praxis-warning, #d97706)}.praxis-bulk-dialog__alert--success{background:color-mix(in srgb,var(--praxis-success, #10b981) 16%,var(--card, #1e293b));border:1px solid color-mix(in srgb,var(--praxis-success, #10b981) 45%,transparent);color:var(--foreground, #f8fafc)}.praxis-bulk-dialog__alert--success mat-icon{color:var(--praxis-success, #10b981)}.praxis-bulk-dialog__notice-box{display:flex;align-items:center;gap:12px;padding:16px 20px;background:color-mix(in srgb,var(--praxis-info, #0284c7) 14%,var(--card, #1e293b));border:1px solid color-mix(in srgb,var(--praxis-info, #0284c7) 40%,transparent);border-radius:10px;color:var(--foreground, #f8fafc);font-size:.875rem}.praxis-bulk-dialog__notice-box mat-icon{color:var(--praxis-info, #0284c7)}.praxis-bulk-dialog__diagnostics{margin-top:12px;border:1px solid var(--border, rgba(148, 163, 184, .2));border-radius:10px;padding:14px 18px;background:color-mix(in srgb,var(--foreground, #f8fafc) 4%,var(--card, #1e293b))}.diagnostics-title{font-size:.875rem;font-weight:600;margin:0 0 8px;color:var(--praxis-text-primary, var(--foreground, inherit))}.diagnostics-list{display:flex;flex-direction:column;gap:6px;max-height:160px;overflow-y:auto}.diagnostic-item{display:flex;align-items:center;gap:8px;font-size:.8125rem;color:var(--praxis-text-muted, var(--muted-foreground, inherit))}.diagnostic-item mat-icon{font-size:16px;width:16px;height:16px;color:var(--praxis-primary, var(--primary, var(--md-sys-color-primary, #0284c7)))}.diagnostic-item--error{color:var(--praxis-error, #dc2626)}.diagnostic-item--error mat-icon{color:var(--praxis-error, #dc2626)}.diagnostic-target{font-weight:600;margin-right:4px;color:var(--praxis-text-primary, var(--foreground, inherit))}.praxis-bulk-dialog__loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;gap:16px;color:var(--praxis-text-muted, var(--muted-foreground, inherit));font-size:.9375rem}.praxis-bulk-dialog__loading>p,.praxis-bulk-dialog__loading-label{font-weight:600;background-image:var( --pdx-text-shimmer-gradient, linear-gradient( 105deg, var(--md-sys-color-on-surface-variant, #64748b) 0%, var(--md-sys-color-on-surface-variant, #64748b) 28%, var(--md-sys-color-primary, #4f46e5) 44%, var(--md-sys-color-tertiary, #7c3aed) 56%, var(--md-sys-color-on-surface-variant, #64748b) 72%, var(--md-sys-color-on-surface-variant, #64748b) 100% ) );background-size:260% 100%;background-position:200% 50%;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;animation:praxis-bulk-dialog-loading-shimmer var(--pdx-text-shimmer-duration, 2.4s) linear infinite}@keyframes praxis-bulk-dialog-loading-shimmer{0%{background-position:200% 50%}to{background-position:-60% 50%}}@media(prefers-reduced-motion:reduce),(forced-colors:active),print{.praxis-bulk-dialog__loading>p,.praxis-bulk-dialog__loading-label{animation:none;background-image:none;color:var( --pdx-text-shimmer-fallback-color, var(--praxis-text-primary, var(--md-sys-color-on-surface, inherit)) );-webkit-text-fill-color:currentColor}}@media(forced-colors:active){.praxis-bulk-dialog__loading>p,.praxis-bulk-dialog__loading-label{color:CanvasText!important;-webkit-text-fill-color:CanvasText!important}}.praxis-bulk-dialog__actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:16px 24px 20px;border-top:1px solid var(--praxis-border-subtle, var(--border, var(--md-sys-color-outline-variant, rgba(148, 163, 184, .2))))}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: PraxisDynamicForm, selector: "praxis-dynamic-form", inputs: ["resourcePath", "resourceId", "initialValue", "emptyState", "editorialContext", "mode", "config", "actions", "schemaSource", "actionId", "operationId", "schemaUrl", "readUrl", "submitUrl", "submitMethod", "submitIdempotencyKey", "submitCorrelationId", "submitResourceVersion", "submitResourceVersionTargetResourceKey", "submitResourceVersionTargetIdField", "responseSchemaUrl", "apiEndpointKey", "apiUrlEntry", "enableCustomization", "showAiAssistant", "formId", "componentInstanceId", "configPersistenceStrategy", "layout", "layoutMode", "formLayout", "generatedLayoutPreset", "layoutPolicy", "backConfig", "hooks", "removeEmptyContainersOnSave", "reactiveValidation", "reactiveValidationDebounceMs", "notifyIfOutdated", "snoozeMs", "autoOpenSettingsOnOutdated", "readonlyModeGlobal", "disabledModeGlobal", "presentationModeGlobal", "presentation", "presentationPreset", "sectionDefaultAppearance", "sectionDivider", "visibleGlobal", "fieldIconPolicy", "domainRules", "customEndpoints"], outputs: ["formSubmit", "formCancel", "formReset", "configChange", "configPatchChange", "formReady", "valueChange", "payloadPreviewChange", "syncCompleted", "initializationError", "loadingStateChange", "enableCustomizationChange", "customAction", "actionConfirmation", "schemaStatusChange", "fieldRenderError", "ruleDiagnosticsChange", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "tabChange", "tabSelected"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1117
|
+
`, isInline: true, styles: [".cdk-global-overlay-wrapper:has(.praxis-bulk-dialog-panel){display:flex!important;justify-content:center!important;align-items:center!important;padding:24px!important;box-sizing:border-box!important}.cdk-overlay-pane.praxis-bulk-dialog-panel{--mat-dialog-container-color: var(--card, var(--praxis-color-surface, #1e293b)) !important;--mdc-dialog-container-color: var(--card, var(--praxis-color-surface, #1e293b)) !important;--mat-dialog-container-shape: 16px;position:relative!important;inset:auto!important;margin:auto!important;display:flex!important;justify-content:center!important;align-items:center!important}.cdk-overlay-pane.praxis-bulk-dialog-panel .mat-mdc-dialog-surface{border-radius:16px;border:1px solid var(--border, var(--praxis-border-subtle, rgba(148, 163, 184, .2)));box-shadow:0 24px 64px #0000008c;background-color:var(--card, var(--praxis-color-surface, #1e293b))!important;color:var(--foreground, #f8fafc)!important;overflow:hidden;width:100%}.praxis-bulk-dialog{display:flex;flex-direction:column;max-height:85vh;width:100%;min-width:600px;max-width:680px;margin:0 auto;color:var(--foreground, var(--praxis-text-primary, #f8fafc));background:transparent;box-sizing:border-box}.praxis-bulk-dialog__header{display:flex;justify-content:space-between;align-items:flex-start;padding:22px 26px 18px;border-bottom:1px solid var(--border, rgba(148, 163, 184, .15))}.praxis-bulk-dialog__title-group{display:flex;align-items:flex-start;gap:14px}.praxis-bulk-dialog__header-icon{color:var(--primary, var(--praxis-primary, #0284c7));font-size:28px;width:28px;height:28px;margin-top:2px}.praxis-bulk-dialog__title{font-size:1.25rem;font-weight:600;margin:0;line-height:1.3;color:var(--foreground, #f8fafc)}.praxis-bulk-dialog__subtitle{font-size:.875rem;color:var(--muted-foreground, rgba(148, 163, 184, .85));margin:4px 0 0;line-height:1.45}.praxis-bulk-dialog__content{padding:22px 26px;overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:20px}.praxis-bulk-dialog__targets-badge{display:inline-flex;align-items:center;gap:10px;padding:10px 16px;background:color-mix(in srgb,var(--foreground, #f8fafc) 6%,var(--card, #1e293b));border:1px solid var(--border, rgba(148, 163, 184, .2));border-radius:10px;font-size:.875rem;color:var(--foreground, #f8fafc)}.praxis-bulk-dialog__targets-badge mat-icon{font-size:18px;width:18px;height:18px;color:var(--primary, var(--praxis-primary, #0284c7))}.praxis-bulk-dialog__section{display:flex;flex-direction:column;gap:20px}.praxis-bulk-dialog__section-title{font-size:1rem;font-weight:600;margin:0;color:var(--foreground, #f8fafc)}.praxis-bulk-dialog__totals-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:4px 0 12px}.praxis-bulk-dialog__total-card{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:104px;padding:20px 22px;background:color-mix(in srgb,var(--foreground, #f8fafc) 6%,var(--card, #1e293b));border:1px solid var(--border, rgba(148, 163, 184, .2));border-radius:14px;transition:background .2s ease,border-color .2s ease;box-sizing:border-box;gap:8px}.praxis-bulk-dialog__total-card .total-label{font-size:.8125rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted-foreground, rgba(148, 163, 184, .85));font-weight:600;margin-bottom:2px}.praxis-bulk-dialog__total-card .total-value{font-size:2rem;font-weight:700;color:var(--foreground, #f8fafc);line-height:1;margin:0;letter-spacing:-.02em}.total-card--executable{border-color:color-mix(in srgb,var(--praxis-success, #10b981) 50%,transparent)!important;background:color-mix(in srgb,var(--praxis-success, #10b981) 16%,var(--card, #1e293b))!important}.total-card--executable .total-value{color:var(--praxis-success, #10b981)}.total-card--blocked{border-color:color-mix(in srgb,var(--praxis-error, #ef4444) 50%,transparent)!important;background:color-mix(in srgb,var(--praxis-error, #ef4444) 16%,var(--card, #1e293b))!important}.total-card--blocked .total-value{color:var(--praxis-error, #ef4444)}.praxis-bulk-dialog__alert{display:flex;align-items:flex-start;gap:14px;padding:18px 22px;border-radius:12px;font-size:.875rem;line-height:1.5}.praxis-bulk-dialog__alert mat-icon{font-size:22px;width:22px;height:22px;flex-shrink:0;margin-top:1px}.praxis-bulk-dialog__alert .alert-content{display:flex;flex-direction:column;gap:4px}.praxis-bulk-dialog__alert .alert-content strong{font-size:.9375rem;font-weight:600;color:inherit}.praxis-bulk-dialog__alert .alert-content p{margin:0;font-size:.8125rem;opacity:.9}.praxis-bulk-dialog__alert--error{background:color-mix(in srgb,var(--praxis-error, #ef4444) 16%,var(--card, #1e293b));border:1px solid color-mix(in srgb,var(--praxis-error, #ef4444) 45%,transparent);color:var(--foreground, #f8fafc)}.praxis-bulk-dialog__alert--error mat-icon{color:var(--praxis-error, #ef4444)}.praxis-bulk-dialog__alert--warning{background:color-mix(in srgb,var(--praxis-warning, #d97706) 16%,var(--card, #1e293b));border:1px solid color-mix(in srgb,var(--praxis-warning, #d97706) 45%,transparent);color:var(--foreground, #f8fafc)}.praxis-bulk-dialog__alert--warning mat-icon{color:var(--praxis-warning, #d97706)}.praxis-bulk-dialog__alert--success{background:color-mix(in srgb,var(--praxis-success, #10b981) 16%,var(--card, #1e293b));border:1px solid color-mix(in srgb,var(--praxis-success, #10b981) 45%,transparent);color:var(--foreground, #f8fafc)}.praxis-bulk-dialog__alert--success mat-icon{color:var(--praxis-success, #10b981)}.praxis-bulk-dialog__notice-box{display:flex;align-items:center;gap:12px;padding:16px 20px;background:color-mix(in srgb,var(--praxis-info, #0284c7) 14%,var(--card, #1e293b));border:1px solid color-mix(in srgb,var(--praxis-info, #0284c7) 40%,transparent);border-radius:10px;color:var(--foreground, #f8fafc);font-size:.875rem}.praxis-bulk-dialog__notice-box mat-icon{color:var(--praxis-info, #0284c7)}.praxis-bulk-dialog__diagnostics{margin-top:12px;border:1px solid var(--border, rgba(148, 163, 184, .2));border-radius:10px;padding:14px 18px;background:color-mix(in srgb,var(--foreground, #f8fafc) 4%,var(--card, #1e293b))}.diagnostics-title{font-size:.875rem;font-weight:600;margin:0 0 8px;color:var(--praxis-text-primary, var(--foreground, inherit))}.diagnostics-list{display:flex;flex-direction:column;gap:6px;max-height:160px;overflow-y:auto}.diagnostic-item{display:flex;align-items:center;gap:8px;font-size:.8125rem;color:var(--praxis-text-muted, var(--muted-foreground, inherit))}.diagnostic-item mat-icon{font-size:16px;width:16px;height:16px;color:var(--praxis-primary, var(--primary, var(--md-sys-color-primary, #0284c7)))}.diagnostic-item--error{color:var(--praxis-error, #dc2626)}.diagnostic-item--error mat-icon{color:var(--praxis-error, #dc2626)}.diagnostic-target{font-weight:600;margin-right:4px;color:var(--praxis-text-primary, var(--foreground, inherit))}.praxis-bulk-dialog__loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;gap:16px;color:var(--praxis-text-muted, var(--muted-foreground, inherit));font-size:.9375rem}.praxis-bulk-dialog__loading>p,.praxis-bulk-dialog__loading-label{font-weight:600;background-image:var( --pdx-text-shimmer-gradient, linear-gradient( 105deg, var(--md-sys-color-on-surface-variant, #64748b) 0%, var(--md-sys-color-on-surface-variant, #64748b) 28%, var(--md-sys-color-primary, #4f46e5) 44%, var(--md-sys-color-tertiary, #7c3aed) 56%, var(--md-sys-color-on-surface-variant, #64748b) 72%, var(--md-sys-color-on-surface-variant, #64748b) 100% ) );background-size:260% 100%;background-position:200% 50%;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;animation:praxis-bulk-dialog-loading-shimmer var(--pdx-text-shimmer-duration, 2.4s) linear infinite}@keyframes praxis-bulk-dialog-loading-shimmer{0%{background-position:200% 50%}to{background-position:-60% 50%}}@media(prefers-reduced-motion:reduce),(forced-colors:active),print{.praxis-bulk-dialog__loading>p,.praxis-bulk-dialog__loading-label{animation:none;background-image:none;color:var( --pdx-text-shimmer-fallback-color, var(--praxis-text-primary, var(--md-sys-color-on-surface, inherit)) );-webkit-text-fill-color:currentColor}}@media(forced-colors:active){.praxis-bulk-dialog__loading>p,.praxis-bulk-dialog__loading-label{color:CanvasText!important;-webkit-text-fill-color:CanvasText!important}}.praxis-bulk-dialog__actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:16px 24px 20px;border-top:1px solid var(--praxis-border-subtle, var(--border, var(--md-sys-color-outline-variant, rgba(148, 163, 184, .2))))}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: MatDialogModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4$1.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: PraxisDynamicForm, selector: "praxis-dynamic-form", inputs: ["resourcePath", "resourceId", "initialValue", "emptyState", "editorialContext", "mode", "config", "actions", "schemaSource", "actionId", "operationId", "schemaUrl", "readUrl", "submitUrl", "submitMethod", "submitIdempotencyKey", "submitCorrelationId", "submitResourceVersion", "submitResourceVersionTargetResourceKey", "submitResourceVersionTargetIdField", "responseSchemaUrl", "apiEndpointKey", "apiUrlEntry", "enableCustomization", "showAiAssistant", "formId", "componentInstanceId", "configPersistenceStrategy", "layout", "layoutMode", "formLayout", "generatedLayoutPreset", "layoutPolicy", "backConfig", "hooks", "removeEmptyContainersOnSave", "reactiveValidation", "reactiveValidationDebounceMs", "notifyIfOutdated", "snoozeMs", "autoOpenSettingsOnOutdated", "readonlyModeGlobal", "disabledModeGlobal", "presentationModeGlobal", "presentation", "presentationPreset", "sectionDefaultAppearance", "sectionDivider", "visibleGlobal", "fieldIconPolicy", "domainRules", "customEndpoints", "activeStepIndex"], outputs: ["formSubmit", "formCancel", "formReset", "configChange", "configPatchChange", "formReady", "valueChange", "payloadPreviewChange", "syncCompleted", "initializationError", "loadingStateChange", "enableCustomizationChange", "customAction", "actionConfirmation", "schemaStatusChange", "fieldRenderError", "ruleDiagnosticsChange", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "tabChange", "tabSelected", "stepChange"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1062
1118
|
}
|
|
1063
1119
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisBulkOperationDialogComponent, decorators: [{
|
|
1064
1120
|
type: Component,
|
|
@@ -1537,6 +1593,47 @@ class PraxisBulkEditDialogComponent {
|
|
|
1537
1593
|
}
|
|
1538
1594
|
return 'Novo Valor Monetário';
|
|
1539
1595
|
}
|
|
1596
|
+
getTargetDisplayLabel(id) {
|
|
1597
|
+
if (id == null || String(id).trim() === '') {
|
|
1598
|
+
return 'Registro';
|
|
1599
|
+
}
|
|
1600
|
+
const targetKey = String(id).trim();
|
|
1601
|
+
const rows = Array.isArray(this.data.rows) ? this.data.rows : [];
|
|
1602
|
+
const schema = this.data.schema || this.fetchedSchema();
|
|
1603
|
+
const identity = schema?.['x-ui']?.resource?.identity;
|
|
1604
|
+
const explicitKeyField = typeof identity?.keyField === 'string' && identity.keyField.trim()
|
|
1605
|
+
? identity.keyField.trim()
|
|
1606
|
+
: typeof schema?.['x-ui']?.resource?.idField === 'string' && schema['x-ui'].resource.idField.trim()
|
|
1607
|
+
? schema['x-ui'].resource.idField.trim()
|
|
1608
|
+
: null;
|
|
1609
|
+
const matchKeys = explicitKeyField
|
|
1610
|
+
? [explicitKeyField, 'id', 'key', 'codigo', 'matricula']
|
|
1611
|
+
: ['id', 'key', 'codigo', 'matricula'];
|
|
1612
|
+
const matchedRow = rows.find((row) => {
|
|
1613
|
+
if (!row || typeof row !== 'object')
|
|
1614
|
+
return false;
|
|
1615
|
+
return matchKeys.some((k) => {
|
|
1616
|
+
const val = row[k];
|
|
1617
|
+
return val != null && String(val).trim() === targetKey;
|
|
1618
|
+
});
|
|
1619
|
+
});
|
|
1620
|
+
if (!matchedRow) {
|
|
1621
|
+
return `Registro #${targetKey}`;
|
|
1622
|
+
}
|
|
1623
|
+
const explicitTitleField = typeof identity?.titleField === 'string' && identity.titleField.trim()
|
|
1624
|
+
? identity.titleField.trim()
|
|
1625
|
+
: null;
|
|
1626
|
+
const titleFields = explicitTitleField
|
|
1627
|
+
? [explicitTitleField, 'nome', 'pessoaNome', 'servidorNome', 'title', 'label', 'descricao', 'name']
|
|
1628
|
+
: ['nome', 'pessoaNome', 'servidorNome', 'title', 'label', 'descricao', 'name'];
|
|
1629
|
+
for (const field of titleFields) {
|
|
1630
|
+
const candidate = matchedRow[field];
|
|
1631
|
+
if (candidate != null && String(candidate).trim()) {
|
|
1632
|
+
return `Registro #${targetKey} (${String(candidate).trim()})`;
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
return `Registro #${targetKey}`;
|
|
1636
|
+
}
|
|
1540
1637
|
getFieldLabel(fieldName) {
|
|
1541
1638
|
if (!fieldName)
|
|
1542
1639
|
return '';
|
|
@@ -1665,6 +1762,55 @@ class PraxisBulkEditDialogComponent {
|
|
|
1665
1762
|
return ((this.contract.atomicity === 'ATOMIC' || this.contract.atomicity === 'ALL_OR_NONE') &&
|
|
1666
1763
|
prop.totals.blocked > 0);
|
|
1667
1764
|
}
|
|
1765
|
+
getPreviewChangesList() {
|
|
1766
|
+
const seen = new Set();
|
|
1767
|
+
const list = [];
|
|
1768
|
+
for (const row of this.fieldRows()) {
|
|
1769
|
+
if (!row.field || seen.has(row.field))
|
|
1770
|
+
continue;
|
|
1771
|
+
seen.add(row.field);
|
|
1772
|
+
list.push({
|
|
1773
|
+
field: row.field,
|
|
1774
|
+
label: this.getFieldLabel(row.field),
|
|
1775
|
+
displayValue: this.formatPreviewFieldValue(row),
|
|
1776
|
+
});
|
|
1777
|
+
}
|
|
1778
|
+
return list;
|
|
1779
|
+
}
|
|
1780
|
+
getPreviewDeltaSummary() {
|
|
1781
|
+
return this.getPreviewChangesList()
|
|
1782
|
+
.map((item) => `${item.label} → ${item.displayValue}`)
|
|
1783
|
+
.join(' · ');
|
|
1784
|
+
}
|
|
1785
|
+
formatPreviewFieldValue(row) {
|
|
1786
|
+
if (row.operator === 'CLEAR') {
|
|
1787
|
+
return 'Valor removido';
|
|
1788
|
+
}
|
|
1789
|
+
const type = this.getFieldType(row.field);
|
|
1790
|
+
const rawValue = row.value;
|
|
1791
|
+
if (type === 'boolean' || typeof rawValue === 'boolean') {
|
|
1792
|
+
const isTrue = rawValue === true || String(rawValue ?? '').trim().toLowerCase() === 'true';
|
|
1793
|
+
const prop = this.getEffectiveSchemaProperty(row.field);
|
|
1794
|
+
const col = this.data.columns?.find((c) => c.field === row.field);
|
|
1795
|
+
const descriptor = this.getFieldDescriptor(row.field);
|
|
1796
|
+
const labelTrue = String(descriptor?.['labelTrue'] ?? col?.['labelTrue'] ?? prop?.['x-ui']?.labelTrue ?? 'Sim').trim() || 'Sim';
|
|
1797
|
+
const labelFalse = String(descriptor?.['labelFalse'] ?? col?.['labelFalse'] ?? prop?.['x-ui']?.labelFalse ?? 'Não').trim() || 'Não';
|
|
1798
|
+
return isTrue ? labelTrue : labelFalse;
|
|
1799
|
+
}
|
|
1800
|
+
const raw = String(row.value ?? '').trim();
|
|
1801
|
+
if (type === 'date' || /^\d{4}-\d{2}-\d{2}$/.test(raw)) {
|
|
1802
|
+
const isoMatch = /^(\d{4})-(\d{2})-(\d{2})$/.exec(raw);
|
|
1803
|
+
if (isoMatch) {
|
|
1804
|
+
return `${isoMatch[3]}/${isoMatch[2]}/${isoMatch[1]}`;
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
if (type === 'enum') {
|
|
1808
|
+
const matched = this.getFieldEnumOptions(row.field).find((opt) => opt.value === String(row.value));
|
|
1809
|
+
if (matched)
|
|
1810
|
+
return matched.label;
|
|
1811
|
+
}
|
|
1812
|
+
return raw || '—';
|
|
1813
|
+
}
|
|
1668
1814
|
isConfirmDisabled() {
|
|
1669
1815
|
const prop = this.proposal();
|
|
1670
1816
|
if (!prop)
|
|
@@ -2158,7 +2304,6 @@ class PraxisBulkEditDialogComponent {
|
|
|
2158
2304
|
@for (field of writableFields; track field) {
|
|
2159
2305
|
<mat-option [value]="field" [disabled]="isFieldSelectedInOtherRow(field, row)">
|
|
2160
2306
|
{{ getFieldLabel(field) }}
|
|
2161
|
-
<span class="field-tech-name">({{ field }})</span>
|
|
2162
2307
|
</mat-option>
|
|
2163
2308
|
}
|
|
2164
2309
|
</mat-select>
|
|
@@ -2170,7 +2315,7 @@ class PraxisBulkEditDialogComponent {
|
|
|
2170
2315
|
<mat-select [(ngModel)]="row.operator" (ngModelChange)="errorMessage.set(null)">
|
|
2171
2316
|
<mat-option value="SET">Definir Valor</mat-option>
|
|
2172
2317
|
@if (isFieldClearable(row.field)) {
|
|
2173
|
-
<mat-option value="CLEAR">Limpar
|
|
2318
|
+
<mat-option value="CLEAR">Limpar valor do campo</mat-option>
|
|
2174
2319
|
}
|
|
2175
2320
|
</mat-select>
|
|
2176
2321
|
</mat-form-field>
|
|
@@ -2307,7 +2452,7 @@ class PraxisBulkEditDialogComponent {
|
|
|
2307
2452
|
<mat-icon>{{ isDiagnosticError(d) ? 'cancel' : 'info' }}</mat-icon>
|
|
2308
2453
|
<div class="diagnostic-content">
|
|
2309
2454
|
@if (d.target) {
|
|
2310
|
-
<span class="diagnostic-target">
|
|
2455
|
+
<span class="diagnostic-target">{{ getTargetDisplayLabel(d.target) }}:</span>
|
|
2311
2456
|
}
|
|
2312
2457
|
<span class="diagnostic-message">{{ d.message }}</span>
|
|
2313
2458
|
</div>
|
|
@@ -2316,6 +2461,21 @@ class PraxisBulkEditDialogComponent {
|
|
|
2316
2461
|
</div>
|
|
2317
2462
|
}
|
|
2318
2463
|
|
|
2464
|
+
@if (getPreviewChangesList().length > 0) {
|
|
2465
|
+
<div class="praxis-bulk-edit-dialog__diagnostics" data-testid="bulk-preview-changes-summary">
|
|
2466
|
+
<h4 class="diagnostics-title">Alterações Solicitadas</h4>
|
|
2467
|
+
@for (change of getPreviewChangesList(); track change.field) {
|
|
2468
|
+
<div class="diagnostic-item">
|
|
2469
|
+
<mat-icon>edit</mat-icon>
|
|
2470
|
+
<div class="diagnostic-content">
|
|
2471
|
+
<span class="diagnostic-target">{{ change.label }}:</span>
|
|
2472
|
+
<span class="diagnostic-message">Novo valor → <strong>{{ change.displayValue }}</strong></span>
|
|
2473
|
+
</div>
|
|
2474
|
+
</div>
|
|
2475
|
+
}
|
|
2476
|
+
</div>
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2319
2479
|
@if (proposalItems().length > 0) {
|
|
2320
2480
|
<div class="praxis-bulk-edit-dialog__diagnostics">
|
|
2321
2481
|
<h4 class="diagnostics-title">Avaliação por Registro ({{ proposalItems().length }})</h4>
|
|
@@ -2323,9 +2483,13 @@ class PraxisBulkEditDialogComponent {
|
|
|
2323
2483
|
<div class="diagnostic-item" [class.diagnostic-item--error]="item.decision === 'BLOCKED'">
|
|
2324
2484
|
<mat-icon>{{ item.decision === 'BLOCKED' ? 'cancel' : 'check_circle' }}</mat-icon>
|
|
2325
2485
|
<div class="diagnostic-content">
|
|
2326
|
-
<span class="diagnostic-target">
|
|
2486
|
+
<span class="diagnostic-target">{{ getTargetDisplayLabel(item.id) }}:</span>
|
|
2327
2487
|
<span class="diagnostic-message">
|
|
2328
|
-
{{
|
|
2488
|
+
{{
|
|
2489
|
+
item.decision === 'BLOCKED'
|
|
2490
|
+
? (item.diagnostics?.[0]?.message || 'Bloqueado')
|
|
2491
|
+
: (getPreviewDeltaSummary() ? 'Elegível · ' + getPreviewDeltaSummary() : 'Elegível')
|
|
2492
|
+
}}
|
|
2329
2493
|
</span>
|
|
2330
2494
|
</div>
|
|
2331
2495
|
</div>
|
|
@@ -2404,7 +2568,7 @@ class PraxisBulkEditDialogComponent {
|
|
|
2404
2568
|
<mat-icon>{{ isDiagnosticError(diag) ? 'cancel' : 'info' }}</mat-icon>
|
|
2405
2569
|
<div class="diagnostic-content">
|
|
2406
2570
|
@if (diag.target != null) {
|
|
2407
|
-
<span class="diagnostic-target">
|
|
2571
|
+
<span class="diagnostic-target">{{ getTargetDisplayLabel(diag.target) }}:</span>
|
|
2408
2572
|
}
|
|
2409
2573
|
<span class="diagnostic-message">{{ diag.message }}</span>
|
|
2410
2574
|
</div>
|
|
@@ -2420,7 +2584,7 @@ class PraxisBulkEditDialogComponent {
|
|
|
2420
2584
|
<div class="diagnostic-item" [class.diagnostic-item--error]="item.status !== 'CONFIRMED' && item.status !== 'UNCHANGED'">
|
|
2421
2585
|
<mat-icon>{{ item.status === 'CONFIRMED' || item.status === 'UNCHANGED' ? 'check_circle' : 'cancel' }}</mat-icon>
|
|
2422
2586
|
<div class="diagnostic-content">
|
|
2423
|
-
<span class="diagnostic-target">
|
|
2587
|
+
<span class="diagnostic-target">{{ getTargetDisplayLabel(item.id) }}:</span>
|
|
2424
2588
|
<span class="diagnostic-message">{{ item.diagnostics?.[0]?.message || item.status }}</span>
|
|
2425
2589
|
</div>
|
|
2426
2590
|
</div>
|
|
@@ -2554,7 +2718,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2554
2718
|
@for (field of writableFields; track field) {
|
|
2555
2719
|
<mat-option [value]="field" [disabled]="isFieldSelectedInOtherRow(field, row)">
|
|
2556
2720
|
{{ getFieldLabel(field) }}
|
|
2557
|
-
<span class="field-tech-name">({{ field }})</span>
|
|
2558
2721
|
</mat-option>
|
|
2559
2722
|
}
|
|
2560
2723
|
</mat-select>
|
|
@@ -2566,7 +2729,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2566
2729
|
<mat-select [(ngModel)]="row.operator" (ngModelChange)="errorMessage.set(null)">
|
|
2567
2730
|
<mat-option value="SET">Definir Valor</mat-option>
|
|
2568
2731
|
@if (isFieldClearable(row.field)) {
|
|
2569
|
-
<mat-option value="CLEAR">Limpar
|
|
2732
|
+
<mat-option value="CLEAR">Limpar valor do campo</mat-option>
|
|
2570
2733
|
}
|
|
2571
2734
|
</mat-select>
|
|
2572
2735
|
</mat-form-field>
|
|
@@ -2703,7 +2866,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2703
2866
|
<mat-icon>{{ isDiagnosticError(d) ? 'cancel' : 'info' }}</mat-icon>
|
|
2704
2867
|
<div class="diagnostic-content">
|
|
2705
2868
|
@if (d.target) {
|
|
2706
|
-
<span class="diagnostic-target">
|
|
2869
|
+
<span class="diagnostic-target">{{ getTargetDisplayLabel(d.target) }}:</span>
|
|
2707
2870
|
}
|
|
2708
2871
|
<span class="diagnostic-message">{{ d.message }}</span>
|
|
2709
2872
|
</div>
|
|
@@ -2712,6 +2875,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2712
2875
|
</div>
|
|
2713
2876
|
}
|
|
2714
2877
|
|
|
2878
|
+
@if (getPreviewChangesList().length > 0) {
|
|
2879
|
+
<div class="praxis-bulk-edit-dialog__diagnostics" data-testid="bulk-preview-changes-summary">
|
|
2880
|
+
<h4 class="diagnostics-title">Alterações Solicitadas</h4>
|
|
2881
|
+
@for (change of getPreviewChangesList(); track change.field) {
|
|
2882
|
+
<div class="diagnostic-item">
|
|
2883
|
+
<mat-icon>edit</mat-icon>
|
|
2884
|
+
<div class="diagnostic-content">
|
|
2885
|
+
<span class="diagnostic-target">{{ change.label }}:</span>
|
|
2886
|
+
<span class="diagnostic-message">Novo valor → <strong>{{ change.displayValue }}</strong></span>
|
|
2887
|
+
</div>
|
|
2888
|
+
</div>
|
|
2889
|
+
}
|
|
2890
|
+
</div>
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2715
2893
|
@if (proposalItems().length > 0) {
|
|
2716
2894
|
<div class="praxis-bulk-edit-dialog__diagnostics">
|
|
2717
2895
|
<h4 class="diagnostics-title">Avaliação por Registro ({{ proposalItems().length }})</h4>
|
|
@@ -2719,9 +2897,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2719
2897
|
<div class="diagnostic-item" [class.diagnostic-item--error]="item.decision === 'BLOCKED'">
|
|
2720
2898
|
<mat-icon>{{ item.decision === 'BLOCKED' ? 'cancel' : 'check_circle' }}</mat-icon>
|
|
2721
2899
|
<div class="diagnostic-content">
|
|
2722
|
-
<span class="diagnostic-target">
|
|
2900
|
+
<span class="diagnostic-target">{{ getTargetDisplayLabel(item.id) }}:</span>
|
|
2723
2901
|
<span class="diagnostic-message">
|
|
2724
|
-
{{
|
|
2902
|
+
{{
|
|
2903
|
+
item.decision === 'BLOCKED'
|
|
2904
|
+
? (item.diagnostics?.[0]?.message || 'Bloqueado')
|
|
2905
|
+
: (getPreviewDeltaSummary() ? 'Elegível · ' + getPreviewDeltaSummary() : 'Elegível')
|
|
2906
|
+
}}
|
|
2725
2907
|
</span>
|
|
2726
2908
|
</div>
|
|
2727
2909
|
</div>
|
|
@@ -2800,7 +2982,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2800
2982
|
<mat-icon>{{ isDiagnosticError(diag) ? 'cancel' : 'info' }}</mat-icon>
|
|
2801
2983
|
<div class="diagnostic-content">
|
|
2802
2984
|
@if (diag.target != null) {
|
|
2803
|
-
<span class="diagnostic-target">
|
|
2985
|
+
<span class="diagnostic-target">{{ getTargetDisplayLabel(diag.target) }}:</span>
|
|
2804
2986
|
}
|
|
2805
2987
|
<span class="diagnostic-message">{{ diag.message }}</span>
|
|
2806
2988
|
</div>
|
|
@@ -2816,7 +2998,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2816
2998
|
<div class="diagnostic-item" [class.diagnostic-item--error]="item.status !== 'CONFIRMED' && item.status !== 'UNCHANGED'">
|
|
2817
2999
|
<mat-icon>{{ item.status === 'CONFIRMED' || item.status === 'UNCHANGED' ? 'check_circle' : 'cancel' }}</mat-icon>
|
|
2818
3000
|
<div class="diagnostic-content">
|
|
2819
|
-
<span class="diagnostic-target">
|
|
3001
|
+
<span class="diagnostic-target">{{ getTargetDisplayLabel(item.id) }}:</span>
|
|
2820
3002
|
<span class="diagnostic-message">{{ item.diagnostics?.[0]?.message || item.status }}</span>
|
|
2821
3003
|
</div>
|
|
2822
3004
|
</div>
|
|
@@ -2964,6 +3146,18 @@ class PraxisKpiBandComponent {
|
|
|
2964
3146
|
* Entrada de URL de API explícita herdada do recurso host.
|
|
2965
3147
|
*/
|
|
2966
3148
|
apiUrlEntry;
|
|
3149
|
+
/** Caminho canônico do recurso usado quando `config.source === 'schema'`. */
|
|
3150
|
+
resourcePath;
|
|
3151
|
+
/** Fatos de domínio descobertos via `@ResourceFact` para auto-hidratação de KPIs. */
|
|
3152
|
+
resourceFacts;
|
|
3153
|
+
/** Filtros rápidos descobertos via `@QuickFilter` para projeção interativa no modo schema. */
|
|
3154
|
+
quickFilters;
|
|
3155
|
+
/** Snapshot de capabilities do recurso (`capabilities.stats`, etc.). */
|
|
3156
|
+
capabilities;
|
|
3157
|
+
/** Schema bruto opcional já resolvido pelo host (`/schemas/filtered`). */
|
|
3158
|
+
schemaMetadata;
|
|
3159
|
+
/** Filtro base herdado do host/contexto para consultas `/stats/group-by`. */
|
|
3160
|
+
baseFilter;
|
|
2967
3161
|
cardClick = new EventEmitter();
|
|
2968
3162
|
statsLoaded = new EventEmitter();
|
|
2969
3163
|
statsError = new EventEmitter();
|
|
@@ -2988,6 +3182,17 @@ class PraxisKpiBandComponent {
|
|
|
2988
3182
|
skeletonPlaceholders = [1, 2, 3, 4];
|
|
2989
3183
|
initialized = false;
|
|
2990
3184
|
fetchSub;
|
|
3185
|
+
fetchedSchemaMetadata = null;
|
|
3186
|
+
schemaGroupByField = null;
|
|
3187
|
+
get refreshTooltipLabel() {
|
|
3188
|
+
if (!this.i18n) {
|
|
3189
|
+
return 'Atualizar indicadores';
|
|
3190
|
+
}
|
|
3191
|
+
return translateCrudRuntimeText(this.i18n, 'crud.kpi.refreshTooltip', 'Atualizar indicadores');
|
|
3192
|
+
}
|
|
3193
|
+
get isSchemaSource() {
|
|
3194
|
+
return (this.config?.source || '').trim().toLowerCase() === 'schema';
|
|
3195
|
+
}
|
|
2991
3196
|
get isVisible() {
|
|
2992
3197
|
if (!this.config || this.config.enabled === false)
|
|
2993
3198
|
return false;
|
|
@@ -3025,7 +3230,13 @@ class PraxisKpiBandComponent {
|
|
|
3025
3230
|
changes['activeFilter'] ||
|
|
3026
3231
|
changes['isInteractiveHost'] ||
|
|
3027
3232
|
changes['endpointKey'] ||
|
|
3028
|
-
changes['apiUrlEntry']
|
|
3233
|
+
changes['apiUrlEntry'] ||
|
|
3234
|
+
changes['resourcePath'] ||
|
|
3235
|
+
changes['resourceFacts'] ||
|
|
3236
|
+
changes['quickFilters'] ||
|
|
3237
|
+
changes['capabilities'] ||
|
|
3238
|
+
changes['schemaMetadata'] ||
|
|
3239
|
+
changes['baseFilter']) {
|
|
3029
3240
|
const prevConfig = changes['config']?.previousValue;
|
|
3030
3241
|
const nextConfig = this.config;
|
|
3031
3242
|
const endpointKeyChanged = !!changes['endpointKey'] &&
|
|
@@ -3034,8 +3245,19 @@ class PraxisKpiBandComponent {
|
|
|
3034
3245
|
const apiUrlEntryChanged = !!changes['apiUrlEntry'] &&
|
|
3035
3246
|
JSON.stringify(changes['apiUrlEntry'].previousValue ?? null) !==
|
|
3036
3247
|
JSON.stringify(changes['apiUrlEntry'].currentValue ?? null);
|
|
3248
|
+
const resourcePathChanged = !!changes['resourcePath'] &&
|
|
3249
|
+
String(changes['resourcePath'].previousValue ?? '').trim() !==
|
|
3250
|
+
String(changes['resourcePath'].currentValue ?? '').trim();
|
|
3251
|
+
const baseFilterChanged = !!changes['baseFilter'] &&
|
|
3252
|
+
JSON.stringify(changes['baseFilter'].previousValue ?? null) !==
|
|
3253
|
+
JSON.stringify(changes['baseFilter'].currentValue ?? null);
|
|
3254
|
+
if (resourcePathChanged) {
|
|
3255
|
+
this.fetchedSchemaMetadata = null;
|
|
3256
|
+
this.schemaGroupByField = null;
|
|
3257
|
+
}
|
|
3037
3258
|
const shouldRefetch = endpointKeyChanged ||
|
|
3038
3259
|
apiUrlEntryChanged ||
|
|
3260
|
+
(this.isSchemaSource && (resourcePathChanged || baseFilterChanged)) ||
|
|
3039
3261
|
(!!changes['config'] &&
|
|
3040
3262
|
(nextConfig?.source !== prevConfig?.source ||
|
|
3041
3263
|
nextConfig?.method !== prevConfig?.method ||
|
|
@@ -3091,6 +3313,10 @@ class PraxisKpiBandComponent {
|
|
|
3091
3313
|
const source = this.config?.source;
|
|
3092
3314
|
if (!source)
|
|
3093
3315
|
return;
|
|
3316
|
+
if (this.isSchemaSource) {
|
|
3317
|
+
this.hydrateSchemaKpiSource();
|
|
3318
|
+
return;
|
|
3319
|
+
}
|
|
3094
3320
|
this.fetchSub?.unsubscribe();
|
|
3095
3321
|
this.isLoading = true;
|
|
3096
3322
|
this.cdr.markForCheck();
|
|
@@ -3116,6 +3342,295 @@ class PraxisKpiBandComponent {
|
|
|
3116
3342
|
},
|
|
3117
3343
|
});
|
|
3118
3344
|
}
|
|
3345
|
+
resolveSchemasFilteredRequestUrl(resourcePath) {
|
|
3346
|
+
const resourceUrl = this.resolveSourceUrl(resourcePath);
|
|
3347
|
+
let schemaParam = resourcePath.startsWith('/') ? resourcePath : `/${resourcePath}`;
|
|
3348
|
+
let base = '/schemas/filtered';
|
|
3349
|
+
try {
|
|
3350
|
+
const parsed = new URL(resourceUrl);
|
|
3351
|
+
schemaParam = parsed.pathname || schemaParam;
|
|
3352
|
+
base = `${parsed.origin}/schemas/filtered`;
|
|
3353
|
+
}
|
|
3354
|
+
catch {
|
|
3355
|
+
const key = String(this.endpointKey ?? '').trim();
|
|
3356
|
+
const entry = this.apiUrlEntry ||
|
|
3357
|
+
(key && this.apiUrl ? this.apiUrl[key] : undefined) ||
|
|
3358
|
+
this.apiUrl?.['default'] ||
|
|
3359
|
+
(this.apiUrl ? Object.values(this.apiUrl)[0] : undefined);
|
|
3360
|
+
const entryBase = entry ? buildApiUrl(entry).replace(/\/+$/, '') : '';
|
|
3361
|
+
try {
|
|
3362
|
+
if (entryBase) {
|
|
3363
|
+
const parsedEntry = new URL(entryBase);
|
|
3364
|
+
base = `${parsedEntry.origin}/schemas/filtered`;
|
|
3365
|
+
}
|
|
3366
|
+
}
|
|
3367
|
+
catch { }
|
|
3368
|
+
}
|
|
3369
|
+
const cleanSchemaPath = `${schemaParam.replace(/\/+$/, '')}/filter`;
|
|
3370
|
+
return `${base}?path=${encodeURIComponent(cleanSchemaPath)}&operation=post&schemaType=response`;
|
|
3371
|
+
}
|
|
3372
|
+
hydrateSchemaKpiSource() {
|
|
3373
|
+
this.fetchSub?.unsubscribe();
|
|
3374
|
+
this.isLoading = true;
|
|
3375
|
+
this.cdr.markForCheck();
|
|
3376
|
+
const resourcePath = String(this.resourcePath ?? '').trim();
|
|
3377
|
+
const needsSchemaFetch = !!resourcePath &&
|
|
3378
|
+
!this.schemaMetadata &&
|
|
3379
|
+
!this.fetchedSchemaMetadata &&
|
|
3380
|
+
!this.resourceFacts?.length &&
|
|
3381
|
+
!this.quickFilters?.length;
|
|
3382
|
+
const schema$ = needsSchemaFetch
|
|
3383
|
+
? this.http.get(this.resolveSchemasFilteredRequestUrl(resourcePath)).pipe(catchError(() => of(null)))
|
|
3384
|
+
: of(this.schemaMetadata ?? this.fetchedSchemaMetadata);
|
|
3385
|
+
this.fetchSub = schema$
|
|
3386
|
+
.pipe(switchMap((rawSchema) => {
|
|
3387
|
+
if (rawSchema && typeof rawSchema === 'object') {
|
|
3388
|
+
this.fetchedSchemaMetadata = rawSchema;
|
|
3389
|
+
}
|
|
3390
|
+
const groupByField = this.resolveSchemaGroupByField();
|
|
3391
|
+
this.schemaGroupByField = groupByField;
|
|
3392
|
+
const caps = this.capabilities;
|
|
3393
|
+
const statsAllowed = caps?.stats?.supported !== false;
|
|
3394
|
+
if (!resourcePath) {
|
|
3395
|
+
return of(null);
|
|
3396
|
+
}
|
|
3397
|
+
if (statsAllowed && groupByField) {
|
|
3398
|
+
const statsUrl = this.resolveSourceUrl(`${resourcePath.replace(/\/+$/, '')}/stats/group-by`);
|
|
3399
|
+
const rawFilter = {
|
|
3400
|
+
...(this.baseFilter && typeof this.baseFilter === 'object' ? this.baseFilter : {}),
|
|
3401
|
+
...(this.config?.payload?.['filter'] ?? {}),
|
|
3402
|
+
};
|
|
3403
|
+
const payload = this.normalizeSourceRequestPayload(statsUrl, {
|
|
3404
|
+
...(this.config?.payload || {}),
|
|
3405
|
+
field: groupByField,
|
|
3406
|
+
filter: rawFilter,
|
|
3407
|
+
});
|
|
3408
|
+
return this.http.post(statsUrl, payload).pipe(catchError(() => of(null)));
|
|
3409
|
+
}
|
|
3410
|
+
if (caps?.operations?.['filter']?.supported !== false) {
|
|
3411
|
+
const filterUrl = this.resolveSourceUrl(`${resourcePath.replace(/\/+$/, '')}/filter?page=0&size=1`);
|
|
3412
|
+
const rawFilter = {
|
|
3413
|
+
...(this.baseFilter && typeof this.baseFilter === 'object' ? this.baseFilter : {}),
|
|
3414
|
+
...(this.config?.payload?.['filter'] ?? {}),
|
|
3415
|
+
};
|
|
3416
|
+
return this.http.post(filterUrl, rawFilter).pipe(catchError(() => of(null)));
|
|
3417
|
+
}
|
|
3418
|
+
return of(null);
|
|
3419
|
+
}), takeUntilDestroyed(this.destroyRef))
|
|
3420
|
+
.subscribe({
|
|
3421
|
+
next: (res) => {
|
|
3422
|
+
const raw = res?.data ?? res;
|
|
3423
|
+
if (raw && typeof raw === 'object') {
|
|
3424
|
+
const normalized = this.normalizeSourcePayload(raw);
|
|
3425
|
+
if (normalized['totalCount'] === undefined && typeof raw['totalElements'] === 'number') {
|
|
3426
|
+
normalized['totalCount'] = raw['totalElements'];
|
|
3427
|
+
}
|
|
3428
|
+
this.fetchedData = normalized;
|
|
3429
|
+
this.statsLoaded.emit(this.fetchedData);
|
|
3430
|
+
}
|
|
3431
|
+
this.isLoading = false;
|
|
3432
|
+
this.recomputeCards();
|
|
3433
|
+
this.cdr.markForCheck();
|
|
3434
|
+
},
|
|
3435
|
+
error: (err) => {
|
|
3436
|
+
this.isLoading = false;
|
|
3437
|
+
this.statsError.emit(err);
|
|
3438
|
+
this.recomputeCards();
|
|
3439
|
+
this.cdr.markForCheck();
|
|
3440
|
+
},
|
|
3441
|
+
});
|
|
3442
|
+
}
|
|
3443
|
+
resolveActiveSchemaObject() {
|
|
3444
|
+
const candidate = this.schemaMetadata ?? this.fetchedSchemaMetadata;
|
|
3445
|
+
return candidate && typeof candidate === 'object' ? candidate : null;
|
|
3446
|
+
}
|
|
3447
|
+
extractSchemaResourceFacts() {
|
|
3448
|
+
if (Array.isArray(this.resourceFacts) && this.resourceFacts.length > 0) {
|
|
3449
|
+
return this.resourceFacts.map((f) => ({ ...f }));
|
|
3450
|
+
}
|
|
3451
|
+
const schema = this.resolveActiveSchemaObject();
|
|
3452
|
+
const xUi = schema?.['x-ui'] ?? undefined;
|
|
3453
|
+
const xResource = xUi?.['resource'] ?? undefined;
|
|
3454
|
+
const rawFacts = xUi?.['resourceFacts'] ?? xUi?.['facts'] ?? xResource?.['resourceFacts'];
|
|
3455
|
+
if (Array.isArray(rawFacts)) {
|
|
3456
|
+
return rawFacts.filter((item) => !!item && typeof item === 'object');
|
|
3457
|
+
}
|
|
3458
|
+
return [];
|
|
3459
|
+
}
|
|
3460
|
+
extractSchemaQuickFilters() {
|
|
3461
|
+
if (Array.isArray(this.quickFilters) && this.quickFilters.length > 0) {
|
|
3462
|
+
return this.quickFilters.map((qf) => ({
|
|
3463
|
+
id: String(qf.id ?? qf.label ?? ''),
|
|
3464
|
+
label: String(qf.label ?? qf.id ?? ''),
|
|
3465
|
+
filter: qf.filter && typeof qf.filter === 'object' ? { ...qf.filter } : normalizeQuickFilterCriteria(qf),
|
|
3466
|
+
icon: qf.icon ? String(qf.icon).trim().replace(/-/g, '_') : undefined,
|
|
3467
|
+
tone: qf.tone,
|
|
3468
|
+
badge: qf.badge,
|
|
3469
|
+
count: typeof qf.count === 'number' ? qf.count : undefined,
|
|
3470
|
+
description: qf.description,
|
|
3471
|
+
tooltip: qf.tooltip,
|
|
3472
|
+
order: typeof qf.order === 'number' ? qf.order : 0,
|
|
3473
|
+
isDefault: Boolean(qf.isDefault),
|
|
3474
|
+
}));
|
|
3475
|
+
}
|
|
3476
|
+
const schema = this.resolveActiveSchemaObject();
|
|
3477
|
+
const xUi = schema?.['x-ui'] ?? undefined;
|
|
3478
|
+
const xResource = xUi?.['resource'] ?? undefined;
|
|
3479
|
+
const rawQuickFilters = xResource?.['quickFilters'];
|
|
3480
|
+
if (!Array.isArray(rawQuickFilters)) {
|
|
3481
|
+
return [];
|
|
3482
|
+
}
|
|
3483
|
+
return rawQuickFilters
|
|
3484
|
+
.filter((qf) => !!qf && typeof qf === 'object')
|
|
3485
|
+
.map((qf, idx) => {
|
|
3486
|
+
let rawFilter = qf['filter'];
|
|
3487
|
+
if (!rawFilter && Array.isArray(qf['criteria'])) {
|
|
3488
|
+
const criteriaMap = {};
|
|
3489
|
+
for (const crit of qf['criteria']) {
|
|
3490
|
+
const field = typeof crit?.['field'] === 'string' ? crit['field'].trim() : '';
|
|
3491
|
+
if (!field)
|
|
3492
|
+
continue;
|
|
3493
|
+
if (Array.isArray(crit['values']) && crit['values'].length > 0) {
|
|
3494
|
+
criteriaMap[field] = crit['values'].length === 1 ? crit['values'][0] : crit['values'];
|
|
3495
|
+
}
|
|
3496
|
+
else if (Array.isArray(crit['bool']) && crit['bool'].length > 0) {
|
|
3497
|
+
criteriaMap[field] = crit['bool'].length === 1 ? crit['bool'][0] : crit['bool'];
|
|
3498
|
+
}
|
|
3499
|
+
else if (Array.isArray(crit['number']) && crit['number'].length > 0) {
|
|
3500
|
+
criteriaMap[field] = crit['number'].length === 1 ? crit['number'][0] : crit['number'];
|
|
3501
|
+
}
|
|
3502
|
+
else if (Array.isArray(crit['decimal']) && crit['decimal'].length > 0) {
|
|
3503
|
+
criteriaMap[field] = crit['decimal'].length === 1 ? crit['decimal'][0] : crit['decimal'];
|
|
3504
|
+
}
|
|
3505
|
+
}
|
|
3506
|
+
rawFilter = criteriaMap;
|
|
3507
|
+
}
|
|
3508
|
+
return {
|
|
3509
|
+
id: String(qf['id'] ?? qf['label'] ?? `qf-${idx}`),
|
|
3510
|
+
label: String(qf['label'] ?? qf['id'] ?? ''),
|
|
3511
|
+
filter: normalizeQuickFilterCriteria(rawFilter),
|
|
3512
|
+
icon: qf['icon'] ? String(qf['icon']).trim().replace(/-/g, '_') : undefined,
|
|
3513
|
+
tone: typeof qf['tone'] === 'string' ? qf['tone'] : undefined,
|
|
3514
|
+
badge: qf['badge'],
|
|
3515
|
+
count: typeof qf['count'] === 'number' ? qf['count'] : undefined,
|
|
3516
|
+
description: typeof qf['description'] === 'string' ? qf['description'] : undefined,
|
|
3517
|
+
tooltip: typeof qf['tooltip'] === 'string' ? qf['tooltip'] : undefined,
|
|
3518
|
+
order: typeof qf['order'] === 'number' ? qf['order'] : idx,
|
|
3519
|
+
isDefault: Boolean(qf['isDefault']),
|
|
3520
|
+
};
|
|
3521
|
+
});
|
|
3522
|
+
}
|
|
3523
|
+
resolveSchemaGroupByField() {
|
|
3524
|
+
const explicitField = this.config?.payload?.['field'] ?? this.config?.payload?.['groupBy'];
|
|
3525
|
+
if (typeof explicitField === 'string' && explicitField.trim()) {
|
|
3526
|
+
return explicitField.trim();
|
|
3527
|
+
}
|
|
3528
|
+
const qfs = this.extractSchemaQuickFilters();
|
|
3529
|
+
const fieldCounts = new Map();
|
|
3530
|
+
for (const qf of qfs) {
|
|
3531
|
+
const keys = Object.keys(qf.filter || {});
|
|
3532
|
+
if (keys.length === 1) {
|
|
3533
|
+
fieldCounts.set(keys[0], (fieldCounts.get(keys[0]) ?? 0) + 1);
|
|
3534
|
+
}
|
|
3535
|
+
}
|
|
3536
|
+
let bestField = null;
|
|
3537
|
+
let bestCount = 0;
|
|
3538
|
+
for (const [k, count] of fieldCounts.entries()) {
|
|
3539
|
+
if (count > bestCount) {
|
|
3540
|
+
bestCount = count;
|
|
3541
|
+
bestField = k;
|
|
3542
|
+
}
|
|
3543
|
+
}
|
|
3544
|
+
if (bestField)
|
|
3545
|
+
return bestField;
|
|
3546
|
+
const schema = this.resolveActiveSchemaObject();
|
|
3547
|
+
const props = schema?.['properties'] ?? undefined;
|
|
3548
|
+
if (props) {
|
|
3549
|
+
for (const candidate of ['status', 'state', 'active', 'enabled', 'situacao', 'ativo', 'ativa', 'tipo', 'category']) {
|
|
3550
|
+
if (props[candidate]) {
|
|
3551
|
+
return candidate;
|
|
3552
|
+
}
|
|
3553
|
+
}
|
|
3554
|
+
}
|
|
3555
|
+
return null;
|
|
3556
|
+
}
|
|
3557
|
+
resolveEffectiveCards() {
|
|
3558
|
+
const explicitCards = Array.isArray(this.config?.cards) ? [...this.config.cards] : [];
|
|
3559
|
+
if (!this.isSchemaSource) {
|
|
3560
|
+
return explicitCards;
|
|
3561
|
+
}
|
|
3562
|
+
const facts = this.extractSchemaResourceFacts();
|
|
3563
|
+
const quickFilters = this.extractSchemaQuickFilters();
|
|
3564
|
+
const synthesized = [];
|
|
3565
|
+
const seenIds = new Set(explicitCards.map((c) => String(c.id || c.label || '').trim().toLowerCase()).filter(Boolean));
|
|
3566
|
+
const totalLabel = this.i18n
|
|
3567
|
+
? translateCrudRuntimeText(this.i18n, 'crud.kpi.schemaTotalLabel', 'Total de registros')
|
|
3568
|
+
: 'Total de registros';
|
|
3569
|
+
if (!seenIds.has('schema:total') && !seenIds.has(totalLabel.toLowerCase())) {
|
|
3570
|
+
synthesized.push({
|
|
3571
|
+
id: 'schema:total',
|
|
3572
|
+
label: totalLabel,
|
|
3573
|
+
icon: 'analytics',
|
|
3574
|
+
tone: 'primary',
|
|
3575
|
+
valueExpr: '${totalCount | number | default:0}',
|
|
3576
|
+
filter: {},
|
|
3577
|
+
});
|
|
3578
|
+
}
|
|
3579
|
+
for (const [idx, fact] of facts.entries()) {
|
|
3580
|
+
const factKey = String(fact['factKey'] ?? fact['key'] ?? `fact-${idx}`).trim();
|
|
3581
|
+
const cardId = `fact:${factKey}`;
|
|
3582
|
+
if (seenIds.has(cardId.toLowerCase()) || seenIds.has(factKey.toLowerCase()))
|
|
3583
|
+
continue;
|
|
3584
|
+
seenIds.add(cardId.toLowerCase());
|
|
3585
|
+
const presentation = String(fact['valuePresentation'] ?? fact['format'] ?? fact['dataType'] ?? '').toLowerCase();
|
|
3586
|
+
let format;
|
|
3587
|
+
if (presentation.includes('currency') || presentation.includes('money'))
|
|
3588
|
+
format = 'currency:BRL';
|
|
3589
|
+
else if (presentation.includes('percent') || presentation.includes('ratio'))
|
|
3590
|
+
format = 'percent';
|
|
3591
|
+
else if (presentation.includes('number') || presentation.includes('int') || presentation.includes('count'))
|
|
3592
|
+
format = 'number';
|
|
3593
|
+
const fallbackVal = fact['value'] !== undefined && fact['value'] !== null ? String(fact['value']) : '—';
|
|
3594
|
+
const icon = typeof fact['icon'] === 'string' && fact['icon'].trim() ? fact['icon'].trim().replace(/-/g, '_') : 'insights';
|
|
3595
|
+
synthesized.push({
|
|
3596
|
+
id: cardId,
|
|
3597
|
+
label: String(fact['label'] ?? fact['title'] ?? factKey),
|
|
3598
|
+
icon,
|
|
3599
|
+
tone: typeof fact['tone'] === 'string' ? fact['tone'] : 'neutral',
|
|
3600
|
+
caption: typeof fact['description'] === 'string' ? fact['description'] : (typeof fact['unit'] === 'string' ? fact['unit'] : undefined),
|
|
3601
|
+
format,
|
|
3602
|
+
valueExpr: `\${facts.${factKey} | default:${fallbackVal}}`,
|
|
3603
|
+
});
|
|
3604
|
+
}
|
|
3605
|
+
const filteredQuickFilters = quickFilters
|
|
3606
|
+
.filter((qf) => qf.filter && Object.keys(qf.filter).length > 0)
|
|
3607
|
+
.sort((a, b) => (a.order ?? 0) - (b.order ?? 0))
|
|
3608
|
+
.slice(0, 4);
|
|
3609
|
+
for (const qf of filteredQuickFilters) {
|
|
3610
|
+
const cardId = `qf:${qf.id}`;
|
|
3611
|
+
if (seenIds.has(cardId.toLowerCase()))
|
|
3612
|
+
continue;
|
|
3613
|
+
seenIds.add(cardId.toLowerCase());
|
|
3614
|
+
const filterEntries = Object.entries(qf.filter);
|
|
3615
|
+
let valueExpr;
|
|
3616
|
+
if (qf.count === undefined && this.schemaGroupByField && filterEntries.length === 1 && filterEntries[0][0] === this.schemaGroupByField) {
|
|
3617
|
+
const val = filterEntries[0][1];
|
|
3618
|
+
if (typeof val === 'string' || typeof val === 'number' || typeof val === 'boolean') {
|
|
3619
|
+
valueExpr = `\${byKey.${String(val)} | number | default:0}`;
|
|
3620
|
+
}
|
|
3621
|
+
}
|
|
3622
|
+
synthesized.push({
|
|
3623
|
+
id: cardId,
|
|
3624
|
+
label: qf.label,
|
|
3625
|
+
icon: qf.icon || 'filter_alt',
|
|
3626
|
+
tone: qf.tone || 'neutral',
|
|
3627
|
+
caption: qf.description || qf.tooltip || (this.i18n ? translateCrudRuntimeText(this.i18n, 'crud.kpi.schemaQuickFilterCaption', 'Filtro rápido do recurso') : undefined),
|
|
3628
|
+
filter: qf.filter,
|
|
3629
|
+
...(qf.count !== undefined ? { value: qf.count } : valueExpr ? { valueExpr } : { value: '—' }),
|
|
3630
|
+
});
|
|
3631
|
+
}
|
|
3632
|
+
return [...explicitCards, ...synthesized];
|
|
3633
|
+
}
|
|
3119
3634
|
normalizeSourceRequestPayload(url, rawPayload) {
|
|
3120
3635
|
const body = rawPayload && typeof rawPayload === 'object' && !Array.isArray(rawPayload)
|
|
3121
3636
|
? { ...rawPayload }
|
|
@@ -3212,7 +3727,7 @@ class PraxisKpiBandComponent {
|
|
|
3212
3727
|
return normalized;
|
|
3213
3728
|
}
|
|
3214
3729
|
recomputeCards() {
|
|
3215
|
-
const cards = this.
|
|
3730
|
+
const cards = this.resolveEffectiveCards();
|
|
3216
3731
|
if (!cards || !Array.isArray(cards) || cards.length === 0) {
|
|
3217
3732
|
this.evaluatedCards = [];
|
|
3218
3733
|
this.cdr.markForCheck();
|
|
@@ -3227,6 +3742,9 @@ class PraxisKpiBandComponent {
|
|
|
3227
3742
|
const context = {
|
|
3228
3743
|
...normalizedDataContext,
|
|
3229
3744
|
...normalizedFetchedData,
|
|
3745
|
+
facts: normalizedFetchedData['facts'] ??
|
|
3746
|
+
normalizedDataContext['facts'] ??
|
|
3747
|
+
normalizedFetchedData,
|
|
3230
3748
|
stats: normalizedFetchedData,
|
|
3231
3749
|
data: normalizedFetchedData,
|
|
3232
3750
|
};
|
|
@@ -3520,7 +4038,7 @@ class PraxisKpiBandComponent {
|
|
|
3520
4038
|
});
|
|
3521
4039
|
}
|
|
3522
4040
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisKpiBandComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3523
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.14", type: PraxisKpiBandComponent, isStandalone: true, selector: "praxis-kpi-band", inputs: { config: "config", dataContext: "dataContext", isInteractiveHost: "isInteractiveHost", activeFilter: "activeFilter", endpointKey: "endpointKey", apiUrlEntry: "apiUrlEntry" }, outputs: { cardClick: "cardClick", statsLoaded: "statsLoaded", statsError: "statsError", refreshClick: "refreshClick" }, host: { listeners: { "pointerover": "onMicroVizPointerOver($event)", "pointerout": "onMicroVizPointerOut($event)", "focusin": "onMicroVizFocusIn($event)", "focusout": "onMicroVizFocusOut($event)" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
4041
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.14", type: PraxisKpiBandComponent, isStandalone: true, selector: "praxis-kpi-band", inputs: { config: "config", dataContext: "dataContext", isInteractiveHost: "isInteractiveHost", activeFilter: "activeFilter", endpointKey: "endpointKey", apiUrlEntry: "apiUrlEntry", resourcePath: "resourcePath", resourceFacts: "resourceFacts", quickFilters: "quickFilters", capabilities: "capabilities", schemaMetadata: "schemaMetadata", baseFilter: "baseFilter" }, outputs: { cardClick: "cardClick", statsLoaded: "statsLoaded", statsError: "statsError", refreshClick: "refreshClick" }, host: { listeners: { "pointerover": "onMicroVizPointerOver($event)", "pointerout": "onMicroVizPointerOut($event)", "focusin": "onMicroVizFocusIn($event)", "focusout": "onMicroVizFocusOut($event)" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
3524
4042
|
<div
|
|
3525
4043
|
*ngIf="isVisible"
|
|
3526
4044
|
class="praxis-kpi-band"
|
|
@@ -3539,7 +4057,7 @@ class PraxisKpiBandComponent {
|
|
|
3539
4057
|
type="button"
|
|
3540
4058
|
class="praxis-kpi-refresh-button"
|
|
3541
4059
|
(click)="handleRefresh()"
|
|
3542
|
-
matTooltip="
|
|
4060
|
+
[matTooltip]="refreshTooltipLabel"
|
|
3543
4061
|
>
|
|
3544
4062
|
<mat-icon>refresh</mat-icon>
|
|
3545
4063
|
</button>
|
|
@@ -3599,7 +4117,7 @@ class PraxisKpiBandComponent {
|
|
|
3599
4117
|
</ng-template>
|
|
3600
4118
|
</div>
|
|
3601
4119
|
</div>
|
|
3602
|
-
`, isInline: true, styles: [".praxis-kpi-band{display:flex;flex-direction:column;gap:.75rem;margin-bottom:var(--praxis-kpi-band-margin-bottom, 0);width:100%;box-sizing:border-box}.praxis-kpi-band-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.praxis-kpi-band-title{margin:0;font-size:1rem;font-weight:600;color:var(--praxis-text-primary, var(--foreground, var(--md-sys-color-on-surface, #0f172a)))}.praxis-kpi-band-subtitle{margin:.125rem 0 0;font-size:.8125rem;color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)))}.praxis-kpi-band-grid{display:grid;grid-template-columns:repeat(var(--praxis-kpi-columns, auto-fit),minmax(200px,1fr));gap:var(--praxis-kpi-gap, 1rem);width:100%}.praxis-kpi-card{--praxis-kpi-tone-color: var(--praxis-neutral, #94a3b8);display:flex;flex-direction:column;justify-content:space-between;padding:1rem 1.125rem 1rem 1.25rem;border-radius:var(--praxis-kpi-card-radius, .875rem);background:var(--praxis-surface-card, var(--card, var(--md-sys-color-surface-container-low, var(--md-sys-color-surface))));border:1px solid var(--praxis-border-subtle, var(--border, var(--md-sys-color-outline-variant, #e2e8f0)));box-shadow:var(--shadow-panel, 0 1px 3px rgba(0, 0, 0, .04));backdrop-filter:var(--praxis-kpi-card-backdrop-filter, none);-webkit-backdrop-filter:var(--praxis-kpi-card-backdrop-filter, none);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;position:relative;overflow:hidden;min-height:5.5rem;box-sizing:border-box}@media(prefers-reduced-transparency:reduce){.praxis-kpi-card{background:var( --praxis-kpi-card-fallback-bg, var(--card, var(--md-sys-color-surface-container-low, var(--md-sys-color-surface))) );backdrop-filter:none;-webkit-backdrop-filter:none}}.praxis-kpi-card:before{content:\"\";position:absolute;left:0;top:.875rem;bottom:.875rem;width:var(--praxis-kpi-accent-bar-width, 4px);opacity:var(--praxis-kpi-accent-bar-opacity, 1);border-radius:0 4px 4px 0;background:var(--praxis-kpi-tone-color);pointer-events:none}.praxis-kpi-card.interactive{cursor:pointer}.praxis-kpi-card.interactive:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000014}.praxis-kpi-card.active{border-color:var(--praxis-primary, #0284c7);box-shadow:0 0 0 1px color-mix(in srgb,var(--praxis-primary, #0284c7) 45%,transparent),0 4px 12px #00000014}.praxis-kpi-card.interactive:focus-visible{outline:2px solid var(--praxis-primary, #0284c7);outline-offset:2px}.praxis-kpi-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.praxis-kpi-card-label{font-size:.75rem;font-weight:var(--mat-sys-label-small-weight, 500);text-transform:uppercase;letter-spacing:var(--praxis-kpi-label-tracking, var(--hero-label-tracking, .05em));color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)))}.praxis-kpi-card-icon{display:inline-flex;align-items:center;justify-content:center;width:2.125rem;height:2.125rem;border-radius:var(--praxis-kpi-icon-radius, .5625rem);flex-shrink:0;background:var(--praxis-kpi-icon-bg, color-mix(in srgb, var(--praxis-kpi-tone-color) 14%, transparent));color:var(--praxis-kpi-icon-fg, var(--praxis-kpi-tone-color));border:var(--praxis-kpi-icon-border, 1px solid color-mix(in srgb, var(--praxis-kpi-tone-color) 26%, transparent));box-shadow:var(--praxis-kpi-icon-shadow, none)}.praxis-kpi-card-icon mat-icon{font-size:1.25rem;width:1.25rem;height:1.25rem}.praxis-kpi-card-value{font-family:var(--praxis-kpi-value-font, inherit);font-size:1.625rem;font-weight:var(--praxis-kpi-value-weight, var(--mat-sys-title-medium-weight, 500));line-height:1.2;letter-spacing:-.02em;font-feature-settings:\"tnum\" on,\"lnum\" on;color:var(--praxis-text-primary, var(--foreground, var(--md-sys-color-on-surface, #0f172a)))}.praxis-kpi-card-visualization{margin-top:.5rem;width:100%;min-width:0;font-size:.75rem;line-height:1.25}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz{position:relative;display:grid;gap:6px;width:100%;min-width:0;color:var(--praxis-text-primary, var(--foreground, var(--md-sys-color-on-surface, #0f172a)))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__title{display:block;font-size:.72rem;font-weight:600;color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__fallback{color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)));font-weight:500}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__track{position:relative;display:block;height:8px;width:100%;overflow:hidden;border-radius:999px;background:color-mix(in srgb,currentColor 12%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__bar{display:block;height:100%;border-radius:inherit;background:var(--praxis-kpi-tone-color, var(--praxis-primary, #0284c7))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__segments{display:flex;width:100%;height:var(--prx-micro-track-height, 8px);overflow:hidden;border-radius:var(--prx-micro-track-radius, 999px);background:var(--prx-micro-track-color, color-mix(in srgb, currentColor 12%, transparent));box-shadow:var(--prx-micro-track-shadow, none)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__segment{display:block;flex:0 0 auto;min-width:0;height:100%;border-radius:0;background:var(--prx-micro-segment-background, var(--prx-micro-category-color, currentColor));box-shadow:var(--prx-micro-segment-shadow, none);transition:opacity .15s ease,filter .15s ease}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__segment[data-zero=true]{width:0!important;box-shadow:none!important}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:2px;min-width:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend-item{display:inline-flex;align-items:center;gap:5px;min-width:0;font-size:.72rem;line-height:1.25;font-variant-numeric:tabular-nums;transition:opacity .15s ease}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend-swatch{display:inline-block;width:8px;height:8px;flex:0 0 8px;border-radius:999px;background:var(--prx-micro-category-color, currentColor);box-shadow:var(--prx-micro-swatch-shadow, none)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend-label{color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)));font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:15ch}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend-value{color:var(--praxis-text-primary, var(--foreground, var(--md-sys-color-on-surface, #0f172a)));font-weight:700}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__segments:hover .pfx-micro-viz__segment:not(:hover),:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend:hover .pfx-micro-viz__legend-item:not(:hover),:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__comparison:hover .pfx-micro-viz__row:not(:hover){opacity:.45}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__row{display:grid;grid-template-columns:minmax(48px,.7fr) minmax(64px,1fr) auto;align-items:center;gap:6px;min-width:0;transition:opacity .15s ease}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__track{position:relative;display:block;width:100%;height:10px;overflow:visible;border-radius:999px;background:color-mix(in srgb,currentColor 12%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__bands{position:absolute;inset:0;display:block;overflow:hidden;border-radius:inherit;pointer-events:none}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__range,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__actual,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__target{position:absolute}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__range{inset-block:0;height:100%;opacity:.24;background:var(--praxis-kpi-tone-color, var(--praxis-primary, #0284c7))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__actual{inset-block-start:2px;inset-inline-start:0;height:calc(100% - 4px);border-radius:inherit;background:var(--praxis-kpi-tone-color, var(--praxis-primary, #0284c7))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__target{inset-block:-3px;width:2.5px;border-radius:999px;z-index:2;background:currentColor;transform:translate(-50%)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz.pfx-micro-viz__radial,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz.pfx-micro-viz__harvey{display:inline-flex;align-items:center;gap:10px;width:auto}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg{width:40px;height:40px;overflow:visible;flex-shrink:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg{width:34px;height:34px;overflow:visible;flex-shrink:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__bezel,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__bezel{fill:color-mix(in srgb,currentColor 3%,transparent);stroke:color-mix(in srgb,currentColor 18%,transparent);stroke-width:.65}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__track{fill:none;stroke:color-mix(in srgb,currentColor 12%,transparent);stroke-width:4}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__target-arc{fill:none;stroke:var(--praxis-kpi-tone-color, currentColor);stroke-opacity:.25;stroke-width:4;transform:rotate(-90deg);transform-origin:50% 50%}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__bar{fill:none;stroke-width:4;stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__bar:not([stroke]),:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__bar:not([stroke]){stroke:var(--praxis-kpi-tone-color, currentColor)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__bar[data-zero=true],:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__bar[data-zero=true]{opacity:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__medallion{fill:var(--praxis-surface-card, var(--card, var(--md-sys-color-surface, transparent)));stroke:color-mix(in srgb,currentColor 14%,transparent);stroke-width:.45}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__text{font-size:8.2px;font-weight:800;text-anchor:middle;fill:currentColor}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__text[data-digits=\"3\"]{font-size:7.1px}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__text[data-digits=\"4\"]{font-size:6.2px}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__delta{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:999px;font-size:.72rem;font-weight:700;font-variant-numeric:tabular-nums;color:var(--praxis-kpi-tone-color, currentColor);background:color-mix(in srgb,var(--praxis-kpi-tone-color, currentColor) 12%,transparent);border:1px solid color-mix(in srgb,var(--praxis-kpi-tone-color, currentColor) 24%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__process{display:flex;align-items:flex-start;gap:4px;width:100%}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step{display:flex;align-items:center;flex:1 1 0%;min-width:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step:last-child{flex:0 0 auto}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__node-wrapper{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__node{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;font-size:10px;font-weight:700;background:color-mix(in srgb,currentColor 14%,transparent);border:1.5px solid color-mix(in srgb,currentColor 34%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__icon{font-size:13px;width:13px;height:13px}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__label{font-size:.65rem;font-weight:600;text-align:center;color:var(--praxis-text-secondary, var(--muted-foreground, #64748b));max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__connector{flex:1 1 auto;height:2px;min-width:10px;margin:0 4px 14px;border-radius:999px;background:color-mix(in srgb,currentColor 26%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__unit{font-size:5.4px;font-weight:700;opacity:.78}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__track{fill:color-mix(in srgb,currentColor 8%,transparent);stroke:color-mix(in srgb,currentColor 18%,transparent);stroke-width:1.5}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__bar{fill:none;stroke-width:14;transform:rotate(-90deg);transform-origin:50% 50%}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__pin{fill:var(--praxis-surface-card, #f8fafc);stroke:color-mix(in srgb,currentColor 40%,transparent);stroke-width:.75}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-pct{display:inline-flex;align-items:center;padding:1px 6px;border-radius:999px;font-size:.68rem;font-weight:700;color:var(--praxis-kpi-tone-color, currentColor);background:color-mix(in srgb,var(--praxis-kpi-tone-color, currentColor) 12%,transparent);border:1px solid color-mix(in srgb,var(--praxis-kpi-tone-color, currentColor) 22%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__line,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__area,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__column{position:relative;display:block;width:100%;height:30px;color:var(--praxis-kpi-tone-color, var(--praxis-primary, #0284c7))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-line__svg,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-area__svg,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-column__svg{display:block;width:100%;height:100%;overflow:visible}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-trend__scrub-layer{position:absolute;inset:0;display:flex;align-items:stretch;z-index:2}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-trend__scrub-slice{position:static;flex:1 1 0%;height:100%;cursor:crosshair}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-trend__scrub-slice:hover:after{content:\"\";position:absolute;left:var(--pfx-scrub-x, 50%);top:2px;bottom:2px;width:1px;background:color-mix(in srgb,currentColor 32%,transparent);transform:translate(-50%);pointer-events:none;z-index:2}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-trend__scrub-slice:hover:before{content:\"\";position:absolute;left:var(--pfx-scrub-x, 50%);top:var(--pfx-scrub-y, 50%);width:7px;height:7px;border-radius:50%;background:currentColor;border:1.5px solid var(--praxis-surface-card, #ffffff);transform:translate(-50%,-50%);pointer-events:none;z-index:3}@media(prefers-reduced-motion:reduce),print{:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz *,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz{animation:none!important;transition:none!important}}.praxis-kpi-card-caption{font-size:.75rem;color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)));margin-top:.375rem}.praxis-kpi-card-footnote{font-size:.7rem;color:var(--praxis-text-secondary, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8)));margin-top:.25rem}.tone-primary,.tone-accent{--praxis-kpi-tone-color: var(--praxis-primary, var(--primary, #0284c7))}.tone-info{--praxis-kpi-tone-color: var(--praxis-info, var(--category-sky, #0284c7))}.tone-success,.tone-ready{--praxis-kpi-tone-color: var(--praxis-success, var(--ready, #059669))}.tone-warning,.tone-warn{--praxis-kpi-tone-color: var(--praxis-warning, var(--warning, #d97706))}.tone-error,.tone-danger{--praxis-kpi-tone-color: var(--praxis-error, var(--destructive, #dc2626))}.tone-neutral{--praxis-kpi-tone-color: var(--praxis-neutral, var(--muted-foreground, #94a3b8))}.tone-neutral .praxis-kpi-card-icon{color:var(--praxis-text-secondary, var(--muted-foreground, #64748b))}.praxis-kpi-card-skeleton{pointer-events:none}.praxis-kpi-skeleton-line{background:linear-gradient(90deg,color-mix(in srgb,var(--praxis-text-secondary, #94a3b8) 12%,transparent) 25%,color-mix(in srgb,var(--praxis-text-secondary, #94a3b8) 22%,transparent),color-mix(in srgb,var(--praxis-text-secondary, #94a3b8) 12%,transparent) 75%);background-size:200% 100%;animation:praxis-shimmer 1.5s infinite;border-radius:.25rem}.praxis-kpi-skeleton-line.label{width:40%;height:.75rem;margin-bottom:.75rem}.praxis-kpi-skeleton-line.value{width:65%;height:1.5rem;margin-bottom:.5rem}.praxis-kpi-skeleton-line.caption{width:50%;height:.65rem}@keyframes praxis-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4120
|
+
`, isInline: true, styles: [".praxis-kpi-band{display:flex;flex-direction:column;gap:.75rem;margin-bottom:var(--praxis-kpi-band-margin-bottom, 0);width:100%;box-sizing:border-box}.praxis-kpi-band-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.praxis-kpi-band-title{margin:0;font-size:1rem;font-weight:600;color:var(--praxis-text-primary, var(--foreground, var(--md-sys-color-on-surface, #0f172a)))}.praxis-kpi-band-subtitle{margin:.125rem 0 0;font-size:.8125rem;color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)))}.praxis-kpi-band-grid{display:grid;grid-template-columns:repeat(var(--praxis-kpi-columns, auto-fit),minmax(200px,1fr));gap:var(--praxis-kpi-gap, 1rem);width:100%}.praxis-kpi-card{--praxis-kpi-tone-color: var(--praxis-neutral, #94a3b8);display:flex;flex-direction:column;justify-content:space-between;padding:var(--praxis-kpi-card-padding, 1rem 1.125rem 1rem 1.25rem);border-radius:var(--praxis-kpi-card-radius, .875rem);background:var(--praxis-kpi-card-bg, var(--praxis-surface-card, var(--card, var(--md-sys-color-surface-container-low, var(--md-sys-color-surface)))));border:var(--praxis-kpi-card-border, 1px solid var(--praxis-border-subtle, var(--border, var(--md-sys-color-outline-variant, #e2e8f0))));box-shadow:var(--praxis-kpi-card-shadow, var(--shadow-panel, 0 1px 3px rgba(0, 0, 0, .04)));backdrop-filter:var(--praxis-kpi-card-backdrop-filter, none);-webkit-backdrop-filter:var(--praxis-kpi-card-backdrop-filter, none);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;position:relative;overflow:hidden;min-height:var(--praxis-kpi-card-min-height, 5.5rem);box-sizing:border-box}@media(prefers-reduced-transparency:reduce){.praxis-kpi-card{background:var( --praxis-kpi-card-fallback-bg, var(--card, var(--md-sys-color-surface-container-low, var(--md-sys-color-surface))) );backdrop-filter:none;-webkit-backdrop-filter:none}}.praxis-kpi-card:before{content:\"\";position:absolute;left:0;top:.875rem;bottom:.875rem;width:var(--praxis-kpi-accent-bar-width, 4px);opacity:var(--praxis-kpi-accent-bar-opacity, 1);border-radius:0 4px 4px 0;background:var(--praxis-kpi-tone-color);pointer-events:none}.praxis-kpi-card.interactive{cursor:pointer}.praxis-kpi-card.interactive:hover{transform:var(--praxis-kpi-hover-transform, none);box-shadow:0 4px 12px #00000014}.praxis-kpi-card.active{border-color:var(--praxis-primary, #0284c7);box-shadow:0 0 0 1px color-mix(in srgb,var(--praxis-primary, #0284c7) 45%,transparent),0 4px 12px #00000014}.praxis-kpi-card.interactive:focus-visible{outline:2px solid var(--praxis-primary, #0284c7);outline-offset:2px}.praxis-kpi-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--praxis-kpi-card-top-margin, .5rem)}.praxis-kpi-card-label{font-size:.75rem;font-weight:var(--mat-sys-label-small-weight, 500);text-transform:uppercase;letter-spacing:var(--praxis-kpi-label-tracking, var(--hero-label-tracking, .05em));color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)))}.praxis-kpi-card-icon{display:inline-flex;align-items:center;justify-content:center;width:2.125rem;height:2.125rem;border-radius:var(--praxis-kpi-icon-radius, .5625rem);flex-shrink:0;background:var(--praxis-kpi-icon-bg, color-mix(in srgb, var(--praxis-kpi-tone-color) 14%, transparent));color:var(--praxis-kpi-icon-fg, var(--praxis-kpi-tone-color));border:var(--praxis-kpi-icon-border, 1px solid color-mix(in srgb, var(--praxis-kpi-tone-color) 26%, transparent));box-shadow:var(--praxis-kpi-icon-shadow, none)}.praxis-kpi-card-icon mat-icon{font-size:1.25rem;width:1.25rem;height:1.25rem}.praxis-kpi-card-value{font-family:var(--praxis-kpi-value-font, inherit);font-size:var(--praxis-kpi-value-size, 1.625rem);font-weight:var(--praxis-kpi-value-weight, var(--mat-sys-title-medium-weight, 500));line-height:var(--praxis-kpi-value-line-height, 1.2);letter-spacing:-.02em;font-feature-settings:\"tnum\" on,\"lnum\" on;font-variant-numeric:tabular-nums;color:var(--praxis-text-primary, var(--foreground, var(--md-sys-color-on-surface, #0f172a)))}.praxis-kpi-card-visualization{margin-top:.5rem;width:100%;min-width:0;font-size:.75rem;line-height:1.25}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz{position:relative;display:grid;gap:6px;width:100%;min-width:0;color:var(--praxis-text-primary, var(--foreground, var(--md-sys-color-on-surface, #0f172a)))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__title{display:block;font-size:.72rem;font-weight:600;color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__fallback{color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)));font-weight:500}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__track{position:relative;display:block;height:8px;width:100%;overflow:hidden;border-radius:999px;background:color-mix(in srgb,currentColor 12%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__bar{display:block;height:100%;border-radius:inherit;background:var(--praxis-kpi-tone-color, var(--praxis-primary, #0284c7))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__segments{display:flex;width:100%;height:var(--prx-micro-track-height, 8px);overflow:hidden;border-radius:var(--prx-micro-track-radius, 999px);background:var(--prx-micro-track-color, color-mix(in srgb, currentColor 12%, transparent));box-shadow:var(--prx-micro-track-shadow, none)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__segment{display:block;flex:0 0 auto;min-width:0;height:100%;border-radius:0;background:var(--prx-micro-segment-background, var(--prx-micro-category-color, currentColor));box-shadow:var(--prx-micro-segment-shadow, none);transition:opacity .15s ease,filter .15s ease}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__segment[data-zero=true]{width:0!important;box-shadow:none!important}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:2px;min-width:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend-item{display:inline-flex;align-items:center;gap:5px;min-width:0;font-size:.72rem;line-height:1.25;font-variant-numeric:tabular-nums;transition:opacity .15s ease}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend-swatch{display:inline-block;width:8px;height:8px;flex:0 0 8px;border-radius:999px;background:var(--prx-micro-category-color, currentColor);box-shadow:var(--prx-micro-swatch-shadow, none)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend-label{color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)));font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:15ch}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend-value{color:var(--praxis-text-primary, var(--foreground, var(--md-sys-color-on-surface, #0f172a)));font-weight:700}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__segments:hover .pfx-micro-viz__segment:not(:hover),:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend:hover .pfx-micro-viz__legend-item:not(:hover),:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__comparison:hover .pfx-micro-viz__row:not(:hover){opacity:.45}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__row{display:grid;grid-template-columns:minmax(48px,.7fr) minmax(64px,1fr) auto;align-items:center;gap:6px;min-width:0;transition:opacity .15s ease}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__track{position:relative;display:block;width:100%;height:10px;overflow:visible;border-radius:999px;background:color-mix(in srgb,currentColor 12%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__bands{position:absolute;inset:0;display:block;overflow:hidden;border-radius:inherit;pointer-events:none}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__range,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__actual,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__target{position:absolute}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__range{inset-block:0;height:100%;opacity:.24;background:var(--praxis-kpi-tone-color, var(--praxis-primary, #0284c7))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__actual{inset-block-start:2px;inset-inline-start:0;height:calc(100% - 4px);border-radius:inherit;background:var(--praxis-kpi-tone-color, var(--praxis-primary, #0284c7))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__target{inset-block:-3px;width:2.5px;border-radius:999px;z-index:2;background:currentColor;transform:translate(-50%)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz.pfx-micro-viz__radial,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz.pfx-micro-viz__harvey{display:inline-flex;align-items:center;gap:10px;width:auto}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg{width:40px;height:40px;overflow:visible;flex-shrink:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg{width:34px;height:34px;overflow:visible;flex-shrink:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__bezel,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__bezel{fill:color-mix(in srgb,currentColor 3%,transparent);stroke:color-mix(in srgb,currentColor 18%,transparent);stroke-width:.65}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__track{fill:none;stroke:color-mix(in srgb,currentColor 12%,transparent);stroke-width:4}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__target-arc{fill:none;stroke:var(--praxis-kpi-tone-color, currentColor);stroke-opacity:.25;stroke-width:4;transform:rotate(-90deg);transform-origin:50% 50%}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__bar{fill:none;stroke-width:4;stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__bar:not([stroke]),:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__bar:not([stroke]){stroke:var(--praxis-kpi-tone-color, currentColor)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__bar[data-zero=true],:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__bar[data-zero=true]{opacity:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__medallion{fill:var(--praxis-surface-card, var(--card, var(--md-sys-color-surface, transparent)));stroke:color-mix(in srgb,currentColor 14%,transparent);stroke-width:.45}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__text{font-size:8.2px;font-weight:800;text-anchor:middle;fill:currentColor}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__text[data-digits=\"3\"]{font-size:7.1px}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__text[data-digits=\"4\"]{font-size:6.2px}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__delta{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:999px;font-size:.72rem;font-weight:700;font-variant-numeric:tabular-nums;color:var(--praxis-kpi-tone-color, currentColor);background:color-mix(in srgb,var(--praxis-kpi-tone-color, currentColor) 12%,transparent);border:1px solid color-mix(in srgb,var(--praxis-kpi-tone-color, currentColor) 24%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__process{display:flex;align-items:flex-start;gap:4px;width:100%}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step{display:flex;align-items:center;flex:1 1 0%;min-width:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step:last-child{flex:0 0 auto}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__node-wrapper{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__node{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;font-size:10px;font-weight:700;background:color-mix(in srgb,currentColor 14%,transparent);border:1.5px solid color-mix(in srgb,currentColor 34%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__icon{font-size:13px;width:13px;height:13px}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__label{font-size:.65rem;font-weight:600;text-align:center;color:var(--praxis-text-secondary, var(--muted-foreground, #64748b));max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__connector{flex:1 1 auto;height:2px;min-width:10px;margin:0 4px 14px;border-radius:999px;background:color-mix(in srgb,currentColor 26%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__unit{font-size:5.4px;font-weight:700;opacity:.78}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__track{fill:color-mix(in srgb,currentColor 8%,transparent);stroke:color-mix(in srgb,currentColor 18%,transparent);stroke-width:1.5}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__bar{fill:none;stroke-width:14;transform:rotate(-90deg);transform-origin:50% 50%}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__pin{fill:var(--praxis-surface-card, #f8fafc);stroke:color-mix(in srgb,currentColor 40%,transparent);stroke-width:.75}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-pct{display:inline-flex;align-items:center;padding:1px 6px;border-radius:999px;font-size:.68rem;font-weight:700;color:var(--praxis-kpi-tone-color, currentColor);background:color-mix(in srgb,var(--praxis-kpi-tone-color, currentColor) 12%,transparent);border:1px solid color-mix(in srgb,var(--praxis-kpi-tone-color, currentColor) 22%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__line,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__area,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__column{position:relative;display:block;width:100%;height:30px;color:var(--praxis-kpi-tone-color, var(--praxis-primary, #0284c7))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-line__svg,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-area__svg,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-column__svg{display:block;width:100%;height:100%;overflow:visible}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-trend__scrub-layer{position:absolute;inset:0;display:flex;align-items:stretch;z-index:2}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-trend__scrub-slice{position:static;flex:1 1 0%;height:100%;cursor:crosshair}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-trend__scrub-slice:hover:after{content:\"\";position:absolute;left:var(--pfx-scrub-x, 50%);top:2px;bottom:2px;width:1px;background:color-mix(in srgb,currentColor 32%,transparent);transform:translate(-50%);pointer-events:none;z-index:2}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-trend__scrub-slice:hover:before{content:\"\";position:absolute;left:var(--pfx-scrub-x, 50%);top:var(--pfx-scrub-y, 50%);width:7px;height:7px;border-radius:50%;background:currentColor;border:1.5px solid var(--praxis-surface-card, #ffffff);transform:translate(-50%,-50%);pointer-events:none;z-index:3}@media(prefers-reduced-motion:reduce),print{:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz *,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz{animation:none!important;transition:none!important}}.praxis-kpi-card-caption{font-size:var(--praxis-kpi-caption-size, .75rem);line-height:var(--praxis-kpi-caption-line-height, 1.35);color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)));margin-top:var(--praxis-kpi-caption-margin-top, .375rem)}.praxis-kpi-card-footnote{font-size:.7rem;color:var(--praxis-text-secondary, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8)));margin-top:.25rem}.tone-primary,.tone-accent{--praxis-kpi-tone-color: var(--praxis-primary, var(--primary, #0284c7))}.tone-info{--praxis-kpi-tone-color: var(--praxis-info, var(--category-sky, #0284c7))}.tone-success,.tone-ready{--praxis-kpi-tone-color: var(--praxis-success, var(--ready, #059669))}.tone-warning,.tone-warn{--praxis-kpi-tone-color: var(--praxis-warning, var(--warning, #d97706))}.tone-error,.tone-danger{--praxis-kpi-tone-color: var(--praxis-error, var(--destructive, #dc2626))}.tone-neutral{--praxis-kpi-tone-color: var(--praxis-neutral, var(--muted-foreground, #94a3b8))}.tone-neutral .praxis-kpi-card-icon{color:var(--praxis-text-secondary, var(--muted-foreground, #64748b))}.praxis-kpi-card-skeleton{pointer-events:none}.praxis-kpi-skeleton-line{background:linear-gradient(90deg,color-mix(in srgb,var(--praxis-text-secondary, #94a3b8) 12%,transparent) 25%,color-mix(in srgb,var(--praxis-text-secondary, #94a3b8) 22%,transparent),color-mix(in srgb,var(--praxis-text-secondary, #94a3b8) 12%,transparent) 75%);background-size:200% 100%;animation:praxis-shimmer 1.5s infinite;border-radius:.25rem}.praxis-kpi-skeleton-line.label{width:40%;height:.75rem;margin-bottom:.75rem}.praxis-kpi-skeleton-line.value{width:65%;height:1.5rem;margin-bottom:.5rem}.praxis-kpi-skeleton-line.caption{width:50%;height:.65rem}@keyframes praxis-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3603
4121
|
}
|
|
3604
4122
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisKpiBandComponent, decorators: [{
|
|
3605
4123
|
type: Component,
|
|
@@ -3627,7 +4145,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
3627
4145
|
type="button"
|
|
3628
4146
|
class="praxis-kpi-refresh-button"
|
|
3629
4147
|
(click)="handleRefresh()"
|
|
3630
|
-
matTooltip="
|
|
4148
|
+
[matTooltip]="refreshTooltipLabel"
|
|
3631
4149
|
>
|
|
3632
4150
|
<mat-icon>refresh</mat-icon>
|
|
3633
4151
|
</button>
|
|
@@ -3687,7 +4205,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
3687
4205
|
</ng-template>
|
|
3688
4206
|
</div>
|
|
3689
4207
|
</div>
|
|
3690
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".praxis-kpi-band{display:flex;flex-direction:column;gap:.75rem;margin-bottom:var(--praxis-kpi-band-margin-bottom, 0);width:100%;box-sizing:border-box}.praxis-kpi-band-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.praxis-kpi-band-title{margin:0;font-size:1rem;font-weight:600;color:var(--praxis-text-primary, var(--foreground, var(--md-sys-color-on-surface, #0f172a)))}.praxis-kpi-band-subtitle{margin:.125rem 0 0;font-size:.8125rem;color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)))}.praxis-kpi-band-grid{display:grid;grid-template-columns:repeat(var(--praxis-kpi-columns, auto-fit),minmax(200px,1fr));gap:var(--praxis-kpi-gap, 1rem);width:100%}.praxis-kpi-card{--praxis-kpi-tone-color: var(--praxis-neutral, #94a3b8);display:flex;flex-direction:column;justify-content:space-between;padding:1rem 1.125rem 1rem 1.25rem;border-radius:var(--praxis-kpi-card-radius, .875rem);background:var(--praxis-surface-card, var(--card, var(--md-sys-color-surface-container-low, var(--md-sys-color-surface))));border:1px solid var(--praxis-border-subtle, var(--border, var(--md-sys-color-outline-variant, #e2e8f0)));box-shadow:var(--shadow-panel, 0 1px 3px rgba(0, 0, 0, .04));backdrop-filter:var(--praxis-kpi-card-backdrop-filter, none);-webkit-backdrop-filter:var(--praxis-kpi-card-backdrop-filter, none);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;position:relative;overflow:hidden;min-height:5.5rem;box-sizing:border-box}@media(prefers-reduced-transparency:reduce){.praxis-kpi-card{background:var( --praxis-kpi-card-fallback-bg, var(--card, var(--md-sys-color-surface-container-low, var(--md-sys-color-surface))) );backdrop-filter:none;-webkit-backdrop-filter:none}}.praxis-kpi-card:before{content:\"\";position:absolute;left:0;top:.875rem;bottom:.875rem;width:var(--praxis-kpi-accent-bar-width, 4px);opacity:var(--praxis-kpi-accent-bar-opacity, 1);border-radius:0 4px 4px 0;background:var(--praxis-kpi-tone-color);pointer-events:none}.praxis-kpi-card.interactive{cursor:pointer}.praxis-kpi-card.interactive:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000014}.praxis-kpi-card.active{border-color:var(--praxis-primary, #0284c7);box-shadow:0 0 0 1px color-mix(in srgb,var(--praxis-primary, #0284c7) 45%,transparent),0 4px 12px #00000014}.praxis-kpi-card.interactive:focus-visible{outline:2px solid var(--praxis-primary, #0284c7);outline-offset:2px}.praxis-kpi-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.praxis-kpi-card-label{font-size:.75rem;font-weight:var(--mat-sys-label-small-weight, 500);text-transform:uppercase;letter-spacing:var(--praxis-kpi-label-tracking, var(--hero-label-tracking, .05em));color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)))}.praxis-kpi-card-icon{display:inline-flex;align-items:center;justify-content:center;width:2.125rem;height:2.125rem;border-radius:var(--praxis-kpi-icon-radius, .5625rem);flex-shrink:0;background:var(--praxis-kpi-icon-bg, color-mix(in srgb, var(--praxis-kpi-tone-color) 14%, transparent));color:var(--praxis-kpi-icon-fg, var(--praxis-kpi-tone-color));border:var(--praxis-kpi-icon-border, 1px solid color-mix(in srgb, var(--praxis-kpi-tone-color) 26%, transparent));box-shadow:var(--praxis-kpi-icon-shadow, none)}.praxis-kpi-card-icon mat-icon{font-size:1.25rem;width:1.25rem;height:1.25rem}.praxis-kpi-card-value{font-family:var(--praxis-kpi-value-font, inherit);font-size:1.625rem;font-weight:var(--praxis-kpi-value-weight, var(--mat-sys-title-medium-weight, 500));line-height:1.2;letter-spacing:-.02em;font-feature-settings:\"tnum\" on,\"lnum\" on;color:var(--praxis-text-primary, var(--foreground, var(--md-sys-color-on-surface, #0f172a)))}.praxis-kpi-card-visualization{margin-top:.5rem;width:100%;min-width:0;font-size:.75rem;line-height:1.25}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz{position:relative;display:grid;gap:6px;width:100%;min-width:0;color:var(--praxis-text-primary, var(--foreground, var(--md-sys-color-on-surface, #0f172a)))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__title{display:block;font-size:.72rem;font-weight:600;color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__fallback{color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)));font-weight:500}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__track{position:relative;display:block;height:8px;width:100%;overflow:hidden;border-radius:999px;background:color-mix(in srgb,currentColor 12%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__bar{display:block;height:100%;border-radius:inherit;background:var(--praxis-kpi-tone-color, var(--praxis-primary, #0284c7))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__segments{display:flex;width:100%;height:var(--prx-micro-track-height, 8px);overflow:hidden;border-radius:var(--prx-micro-track-radius, 999px);background:var(--prx-micro-track-color, color-mix(in srgb, currentColor 12%, transparent));box-shadow:var(--prx-micro-track-shadow, none)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__segment{display:block;flex:0 0 auto;min-width:0;height:100%;border-radius:0;background:var(--prx-micro-segment-background, var(--prx-micro-category-color, currentColor));box-shadow:var(--prx-micro-segment-shadow, none);transition:opacity .15s ease,filter .15s ease}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__segment[data-zero=true]{width:0!important;box-shadow:none!important}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:2px;min-width:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend-item{display:inline-flex;align-items:center;gap:5px;min-width:0;font-size:.72rem;line-height:1.25;font-variant-numeric:tabular-nums;transition:opacity .15s ease}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend-swatch{display:inline-block;width:8px;height:8px;flex:0 0 8px;border-radius:999px;background:var(--prx-micro-category-color, currentColor);box-shadow:var(--prx-micro-swatch-shadow, none)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend-label{color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)));font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:15ch}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend-value{color:var(--praxis-text-primary, var(--foreground, var(--md-sys-color-on-surface, #0f172a)));font-weight:700}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__segments:hover .pfx-micro-viz__segment:not(:hover),:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend:hover .pfx-micro-viz__legend-item:not(:hover),:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__comparison:hover .pfx-micro-viz__row:not(:hover){opacity:.45}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__row{display:grid;grid-template-columns:minmax(48px,.7fr) minmax(64px,1fr) auto;align-items:center;gap:6px;min-width:0;transition:opacity .15s ease}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__track{position:relative;display:block;width:100%;height:10px;overflow:visible;border-radius:999px;background:color-mix(in srgb,currentColor 12%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__bands{position:absolute;inset:0;display:block;overflow:hidden;border-radius:inherit;pointer-events:none}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__range,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__actual,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__target{position:absolute}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__range{inset-block:0;height:100%;opacity:.24;background:var(--praxis-kpi-tone-color, var(--praxis-primary, #0284c7))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__actual{inset-block-start:2px;inset-inline-start:0;height:calc(100% - 4px);border-radius:inherit;background:var(--praxis-kpi-tone-color, var(--praxis-primary, #0284c7))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__target{inset-block:-3px;width:2.5px;border-radius:999px;z-index:2;background:currentColor;transform:translate(-50%)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz.pfx-micro-viz__radial,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz.pfx-micro-viz__harvey{display:inline-flex;align-items:center;gap:10px;width:auto}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg{width:40px;height:40px;overflow:visible;flex-shrink:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg{width:34px;height:34px;overflow:visible;flex-shrink:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__bezel,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__bezel{fill:color-mix(in srgb,currentColor 3%,transparent);stroke:color-mix(in srgb,currentColor 18%,transparent);stroke-width:.65}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__track{fill:none;stroke:color-mix(in srgb,currentColor 12%,transparent);stroke-width:4}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__target-arc{fill:none;stroke:var(--praxis-kpi-tone-color, currentColor);stroke-opacity:.25;stroke-width:4;transform:rotate(-90deg);transform-origin:50% 50%}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__bar{fill:none;stroke-width:4;stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__bar:not([stroke]),:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__bar:not([stroke]){stroke:var(--praxis-kpi-tone-color, currentColor)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__bar[data-zero=true],:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__bar[data-zero=true]{opacity:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__medallion{fill:var(--praxis-surface-card, var(--card, var(--md-sys-color-surface, transparent)));stroke:color-mix(in srgb,currentColor 14%,transparent);stroke-width:.45}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__text{font-size:8.2px;font-weight:800;text-anchor:middle;fill:currentColor}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__text[data-digits=\"3\"]{font-size:7.1px}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__text[data-digits=\"4\"]{font-size:6.2px}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__delta{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:999px;font-size:.72rem;font-weight:700;font-variant-numeric:tabular-nums;color:var(--praxis-kpi-tone-color, currentColor);background:color-mix(in srgb,var(--praxis-kpi-tone-color, currentColor) 12%,transparent);border:1px solid color-mix(in srgb,var(--praxis-kpi-tone-color, currentColor) 24%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__process{display:flex;align-items:flex-start;gap:4px;width:100%}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step{display:flex;align-items:center;flex:1 1 0%;min-width:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step:last-child{flex:0 0 auto}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__node-wrapper{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__node{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;font-size:10px;font-weight:700;background:color-mix(in srgb,currentColor 14%,transparent);border:1.5px solid color-mix(in srgb,currentColor 34%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__icon{font-size:13px;width:13px;height:13px}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__label{font-size:.65rem;font-weight:600;text-align:center;color:var(--praxis-text-secondary, var(--muted-foreground, #64748b));max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__connector{flex:1 1 auto;height:2px;min-width:10px;margin:0 4px 14px;border-radius:999px;background:color-mix(in srgb,currentColor 26%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__unit{font-size:5.4px;font-weight:700;opacity:.78}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__track{fill:color-mix(in srgb,currentColor 8%,transparent);stroke:color-mix(in srgb,currentColor 18%,transparent);stroke-width:1.5}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__bar{fill:none;stroke-width:14;transform:rotate(-90deg);transform-origin:50% 50%}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__pin{fill:var(--praxis-surface-card, #f8fafc);stroke:color-mix(in srgb,currentColor 40%,transparent);stroke-width:.75}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-pct{display:inline-flex;align-items:center;padding:1px 6px;border-radius:999px;font-size:.68rem;font-weight:700;color:var(--praxis-kpi-tone-color, currentColor);background:color-mix(in srgb,var(--praxis-kpi-tone-color, currentColor) 12%,transparent);border:1px solid color-mix(in srgb,var(--praxis-kpi-tone-color, currentColor) 22%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__line,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__area,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__column{position:relative;display:block;width:100%;height:30px;color:var(--praxis-kpi-tone-color, var(--praxis-primary, #0284c7))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-line__svg,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-area__svg,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-column__svg{display:block;width:100%;height:100%;overflow:visible}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-trend__scrub-layer{position:absolute;inset:0;display:flex;align-items:stretch;z-index:2}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-trend__scrub-slice{position:static;flex:1 1 0%;height:100%;cursor:crosshair}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-trend__scrub-slice:hover:after{content:\"\";position:absolute;left:var(--pfx-scrub-x, 50%);top:2px;bottom:2px;width:1px;background:color-mix(in srgb,currentColor 32%,transparent);transform:translate(-50%);pointer-events:none;z-index:2}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-trend__scrub-slice:hover:before{content:\"\";position:absolute;left:var(--pfx-scrub-x, 50%);top:var(--pfx-scrub-y, 50%);width:7px;height:7px;border-radius:50%;background:currentColor;border:1.5px solid var(--praxis-surface-card, #ffffff);transform:translate(-50%,-50%);pointer-events:none;z-index:3}@media(prefers-reduced-motion:reduce),print{:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz *,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz{animation:none!important;transition:none!important}}.praxis-kpi-card-caption{font-size:.75rem;color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)));margin-top:.375rem}.praxis-kpi-card-footnote{font-size:.7rem;color:var(--praxis-text-secondary, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8)));margin-top:.25rem}.tone-primary,.tone-accent{--praxis-kpi-tone-color: var(--praxis-primary, var(--primary, #0284c7))}.tone-info{--praxis-kpi-tone-color: var(--praxis-info, var(--category-sky, #0284c7))}.tone-success,.tone-ready{--praxis-kpi-tone-color: var(--praxis-success, var(--ready, #059669))}.tone-warning,.tone-warn{--praxis-kpi-tone-color: var(--praxis-warning, var(--warning, #d97706))}.tone-error,.tone-danger{--praxis-kpi-tone-color: var(--praxis-error, var(--destructive, #dc2626))}.tone-neutral{--praxis-kpi-tone-color: var(--praxis-neutral, var(--muted-foreground, #94a3b8))}.tone-neutral .praxis-kpi-card-icon{color:var(--praxis-text-secondary, var(--muted-foreground, #64748b))}.praxis-kpi-card-skeleton{pointer-events:none}.praxis-kpi-skeleton-line{background:linear-gradient(90deg,color-mix(in srgb,var(--praxis-text-secondary, #94a3b8) 12%,transparent) 25%,color-mix(in srgb,var(--praxis-text-secondary, #94a3b8) 22%,transparent),color-mix(in srgb,var(--praxis-text-secondary, #94a3b8) 12%,transparent) 75%);background-size:200% 100%;animation:praxis-shimmer 1.5s infinite;border-radius:.25rem}.praxis-kpi-skeleton-line.label{width:40%;height:.75rem;margin-bottom:.75rem}.praxis-kpi-skeleton-line.value{width:65%;height:1.5rem;margin-bottom:.5rem}.praxis-kpi-skeleton-line.caption{width:50%;height:.65rem}@keyframes praxis-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}\n"] }]
|
|
4208
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".praxis-kpi-band{display:flex;flex-direction:column;gap:.75rem;margin-bottom:var(--praxis-kpi-band-margin-bottom, 0);width:100%;box-sizing:border-box}.praxis-kpi-band-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.praxis-kpi-band-title{margin:0;font-size:1rem;font-weight:600;color:var(--praxis-text-primary, var(--foreground, var(--md-sys-color-on-surface, #0f172a)))}.praxis-kpi-band-subtitle{margin:.125rem 0 0;font-size:.8125rem;color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)))}.praxis-kpi-band-grid{display:grid;grid-template-columns:repeat(var(--praxis-kpi-columns, auto-fit),minmax(200px,1fr));gap:var(--praxis-kpi-gap, 1rem);width:100%}.praxis-kpi-card{--praxis-kpi-tone-color: var(--praxis-neutral, #94a3b8);display:flex;flex-direction:column;justify-content:space-between;padding:var(--praxis-kpi-card-padding, 1rem 1.125rem 1rem 1.25rem);border-radius:var(--praxis-kpi-card-radius, .875rem);background:var(--praxis-kpi-card-bg, var(--praxis-surface-card, var(--card, var(--md-sys-color-surface-container-low, var(--md-sys-color-surface)))));border:var(--praxis-kpi-card-border, 1px solid var(--praxis-border-subtle, var(--border, var(--md-sys-color-outline-variant, #e2e8f0))));box-shadow:var(--praxis-kpi-card-shadow, var(--shadow-panel, 0 1px 3px rgba(0, 0, 0, .04)));backdrop-filter:var(--praxis-kpi-card-backdrop-filter, none);-webkit-backdrop-filter:var(--praxis-kpi-card-backdrop-filter, none);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;position:relative;overflow:hidden;min-height:var(--praxis-kpi-card-min-height, 5.5rem);box-sizing:border-box}@media(prefers-reduced-transparency:reduce){.praxis-kpi-card{background:var( --praxis-kpi-card-fallback-bg, var(--card, var(--md-sys-color-surface-container-low, var(--md-sys-color-surface))) );backdrop-filter:none;-webkit-backdrop-filter:none}}.praxis-kpi-card:before{content:\"\";position:absolute;left:0;top:.875rem;bottom:.875rem;width:var(--praxis-kpi-accent-bar-width, 4px);opacity:var(--praxis-kpi-accent-bar-opacity, 1);border-radius:0 4px 4px 0;background:var(--praxis-kpi-tone-color);pointer-events:none}.praxis-kpi-card.interactive{cursor:pointer}.praxis-kpi-card.interactive:hover{transform:var(--praxis-kpi-hover-transform, none);box-shadow:0 4px 12px #00000014}.praxis-kpi-card.active{border-color:var(--praxis-primary, #0284c7);box-shadow:0 0 0 1px color-mix(in srgb,var(--praxis-primary, #0284c7) 45%,transparent),0 4px 12px #00000014}.praxis-kpi-card.interactive:focus-visible{outline:2px solid var(--praxis-primary, #0284c7);outline-offset:2px}.praxis-kpi-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--praxis-kpi-card-top-margin, .5rem)}.praxis-kpi-card-label{font-size:.75rem;font-weight:var(--mat-sys-label-small-weight, 500);text-transform:uppercase;letter-spacing:var(--praxis-kpi-label-tracking, var(--hero-label-tracking, .05em));color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)))}.praxis-kpi-card-icon{display:inline-flex;align-items:center;justify-content:center;width:2.125rem;height:2.125rem;border-radius:var(--praxis-kpi-icon-radius, .5625rem);flex-shrink:0;background:var(--praxis-kpi-icon-bg, color-mix(in srgb, var(--praxis-kpi-tone-color) 14%, transparent));color:var(--praxis-kpi-icon-fg, var(--praxis-kpi-tone-color));border:var(--praxis-kpi-icon-border, 1px solid color-mix(in srgb, var(--praxis-kpi-tone-color) 26%, transparent));box-shadow:var(--praxis-kpi-icon-shadow, none)}.praxis-kpi-card-icon mat-icon{font-size:1.25rem;width:1.25rem;height:1.25rem}.praxis-kpi-card-value{font-family:var(--praxis-kpi-value-font, inherit);font-size:var(--praxis-kpi-value-size, 1.625rem);font-weight:var(--praxis-kpi-value-weight, var(--mat-sys-title-medium-weight, 500));line-height:var(--praxis-kpi-value-line-height, 1.2);letter-spacing:-.02em;font-feature-settings:\"tnum\" on,\"lnum\" on;font-variant-numeric:tabular-nums;color:var(--praxis-text-primary, var(--foreground, var(--md-sys-color-on-surface, #0f172a)))}.praxis-kpi-card-visualization{margin-top:.5rem;width:100%;min-width:0;font-size:.75rem;line-height:1.25}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz{position:relative;display:grid;gap:6px;width:100%;min-width:0;color:var(--praxis-text-primary, var(--foreground, var(--md-sys-color-on-surface, #0f172a)))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__title{display:block;font-size:.72rem;font-weight:600;color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__fallback{color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)));font-weight:500}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__track{position:relative;display:block;height:8px;width:100%;overflow:hidden;border-radius:999px;background:color-mix(in srgb,currentColor 12%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__bar{display:block;height:100%;border-radius:inherit;background:var(--praxis-kpi-tone-color, var(--praxis-primary, #0284c7))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__segments{display:flex;width:100%;height:var(--prx-micro-track-height, 8px);overflow:hidden;border-radius:var(--prx-micro-track-radius, 999px);background:var(--prx-micro-track-color, color-mix(in srgb, currentColor 12%, transparent));box-shadow:var(--prx-micro-track-shadow, none)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__segment{display:block;flex:0 0 auto;min-width:0;height:100%;border-radius:0;background:var(--prx-micro-segment-background, var(--prx-micro-category-color, currentColor));box-shadow:var(--prx-micro-segment-shadow, none);transition:opacity .15s ease,filter .15s ease}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__segment[data-zero=true]{width:0!important;box-shadow:none!important}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:2px;min-width:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend-item{display:inline-flex;align-items:center;gap:5px;min-width:0;font-size:.72rem;line-height:1.25;font-variant-numeric:tabular-nums;transition:opacity .15s ease}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend-swatch{display:inline-block;width:8px;height:8px;flex:0 0 8px;border-radius:999px;background:var(--prx-micro-category-color, currentColor);box-shadow:var(--prx-micro-swatch-shadow, none)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend-label{color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)));font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:15ch}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend-value{color:var(--praxis-text-primary, var(--foreground, var(--md-sys-color-on-surface, #0f172a)));font-weight:700}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__segments:hover .pfx-micro-viz__segment:not(:hover),:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__legend:hover .pfx-micro-viz__legend-item:not(:hover),:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__comparison:hover .pfx-micro-viz__row:not(:hover){opacity:.45}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__row{display:grid;grid-template-columns:minmax(48px,.7fr) minmax(64px,1fr) auto;align-items:center;gap:6px;min-width:0;transition:opacity .15s ease}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__track{position:relative;display:block;width:100%;height:10px;overflow:visible;border-radius:999px;background:color-mix(in srgb,currentColor 12%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__bands{position:absolute;inset:0;display:block;overflow:hidden;border-radius:inherit;pointer-events:none}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__range,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__actual,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__target{position:absolute}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__range{inset-block:0;height:100%;opacity:.24;background:var(--praxis-kpi-tone-color, var(--praxis-primary, #0284c7))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__actual{inset-block-start:2px;inset-inline-start:0;height:calc(100% - 4px);border-radius:inherit;background:var(--praxis-kpi-tone-color, var(--praxis-primary, #0284c7))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-bullet__target{inset-block:-3px;width:2.5px;border-radius:999px;z-index:2;background:currentColor;transform:translate(-50%)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz.pfx-micro-viz__radial,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz.pfx-micro-viz__harvey{display:inline-flex;align-items:center;gap:10px;width:auto}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg{width:40px;height:40px;overflow:visible;flex-shrink:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg{width:34px;height:34px;overflow:visible;flex-shrink:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__bezel,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__bezel{fill:color-mix(in srgb,currentColor 3%,transparent);stroke:color-mix(in srgb,currentColor 18%,transparent);stroke-width:.65}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__track{fill:none;stroke:color-mix(in srgb,currentColor 12%,transparent);stroke-width:4}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__target-arc{fill:none;stroke:var(--praxis-kpi-tone-color, currentColor);stroke-opacity:.25;stroke-width:4;transform:rotate(-90deg);transform-origin:50% 50%}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__bar{fill:none;stroke-width:4;stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__bar:not([stroke]),:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__bar:not([stroke]){stroke:var(--praxis-kpi-tone-color, currentColor)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__bar[data-zero=true],:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__bar[data-zero=true]{opacity:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__medallion{fill:var(--praxis-surface-card, var(--card, var(--md-sys-color-surface, transparent)));stroke:color-mix(in srgb,currentColor 14%,transparent);stroke-width:.45}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__text{font-size:8.2px;font-weight:800;text-anchor:middle;fill:currentColor}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__text[data-digits=\"3\"]{font-size:7.1px}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__text[data-digits=\"4\"]{font-size:6.2px}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__delta{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:999px;font-size:.72rem;font-weight:700;font-variant-numeric:tabular-nums;color:var(--praxis-kpi-tone-color, currentColor);background:color-mix(in srgb,var(--praxis-kpi-tone-color, currentColor) 12%,transparent);border:1px solid color-mix(in srgb,var(--praxis-kpi-tone-color, currentColor) 24%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__process{display:flex;align-items:flex-start;gap:4px;width:100%}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step{display:flex;align-items:center;flex:1 1 0%;min-width:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step:last-child{flex:0 0 auto}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__node-wrapper{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__node{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;font-size:10px;font-weight:700;background:color-mix(in srgb,currentColor 14%,transparent);border:1.5px solid color-mix(in srgb,currentColor 34%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__icon{font-size:13px;width:13px;height:13px}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__label{font-size:.65rem;font-weight:600;text-align:center;color:var(--praxis-text-secondary, var(--muted-foreground, #64748b));max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-step__connector{flex:1 1 auto;height:2px;min-width:10px;margin:0 4px 14px;border-radius:999px;background:color-mix(in srgb,currentColor 26%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-radial-svg__unit{font-size:5.4px;font-weight:700;opacity:.78}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__track{fill:color-mix(in srgb,currentColor 8%,transparent);stroke:color-mix(in srgb,currentColor 18%,transparent);stroke-width:1.5}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__bar{fill:none;stroke-width:14;transform:rotate(-90deg);transform-origin:50% 50%}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-svg__pin{fill:var(--praxis-surface-card, #f8fafc);stroke:color-mix(in srgb,currentColor 40%,transparent);stroke-width:.75}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-harvey-pct{display:inline-flex;align-items:center;padding:1px 6px;border-radius:999px;font-size:.68rem;font-weight:700;color:var(--praxis-kpi-tone-color, currentColor);background:color-mix(in srgb,var(--praxis-kpi-tone-color, currentColor) 12%,transparent);border:1px solid color-mix(in srgb,var(--praxis-kpi-tone-color, currentColor) 22%,transparent)}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__line,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__area,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz__column{position:relative;display:block;width:100%;height:30px;color:var(--praxis-kpi-tone-color, var(--praxis-primary, #0284c7))}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-line__svg,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-area__svg,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-column__svg{display:block;width:100%;height:100%;overflow:visible}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-trend__scrub-layer{position:absolute;inset:0;display:flex;align-items:stretch;z-index:2}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-trend__scrub-slice{position:static;flex:1 1 0%;height:100%;cursor:crosshair}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-trend__scrub-slice:hover:after{content:\"\";position:absolute;left:var(--pfx-scrub-x, 50%);top:2px;bottom:2px;width:1px;background:color-mix(in srgb,currentColor 32%,transparent);transform:translate(-50%);pointer-events:none;z-index:2}:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-trend__scrub-slice:hover:before{content:\"\";position:absolute;left:var(--pfx-scrub-x, 50%);top:var(--pfx-scrub-y, 50%);width:7px;height:7px;border-radius:50%;background:currentColor;border:1.5px solid var(--praxis-surface-card, #ffffff);transform:translate(-50%,-50%);pointer-events:none;z-index:3}@media(prefers-reduced-motion:reduce),print{:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz *,:host ::ng-deep .praxis-kpi-card-visualization .pfx-micro-viz{animation:none!important;transition:none!important}}.praxis-kpi-card-caption{font-size:var(--praxis-kpi-caption-size, .75rem);line-height:var(--praxis-kpi-caption-line-height, 1.35);color:var(--praxis-text-muted, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b)));margin-top:var(--praxis-kpi-caption-margin-top, .375rem)}.praxis-kpi-card-footnote{font-size:.7rem;color:var(--praxis-text-secondary, var(--muted-foreground, var(--md-sys-color-on-surface-variant, #94a3b8)));margin-top:.25rem}.tone-primary,.tone-accent{--praxis-kpi-tone-color: var(--praxis-primary, var(--primary, #0284c7))}.tone-info{--praxis-kpi-tone-color: var(--praxis-info, var(--category-sky, #0284c7))}.tone-success,.tone-ready{--praxis-kpi-tone-color: var(--praxis-success, var(--ready, #059669))}.tone-warning,.tone-warn{--praxis-kpi-tone-color: var(--praxis-warning, var(--warning, #d97706))}.tone-error,.tone-danger{--praxis-kpi-tone-color: var(--praxis-error, var(--destructive, #dc2626))}.tone-neutral{--praxis-kpi-tone-color: var(--praxis-neutral, var(--muted-foreground, #94a3b8))}.tone-neutral .praxis-kpi-card-icon{color:var(--praxis-text-secondary, var(--muted-foreground, #64748b))}.praxis-kpi-card-skeleton{pointer-events:none}.praxis-kpi-skeleton-line{background:linear-gradient(90deg,color-mix(in srgb,var(--praxis-text-secondary, #94a3b8) 12%,transparent) 25%,color-mix(in srgb,var(--praxis-text-secondary, #94a3b8) 22%,transparent),color-mix(in srgb,var(--praxis-text-secondary, #94a3b8) 12%,transparent) 75%);background-size:200% 100%;animation:praxis-shimmer 1.5s infinite;border-radius:.25rem}.praxis-kpi-skeleton-line.label{width:40%;height:.75rem;margin-bottom:.75rem}.praxis-kpi-skeleton-line.value{width:65%;height:1.5rem;margin-bottom:.5rem}.praxis-kpi-skeleton-line.caption{width:50%;height:.65rem}@keyframes praxis-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}\n"] }]
|
|
3691
4209
|
}], propDecorators: { config: [{
|
|
3692
4210
|
type: Input
|
|
3693
4211
|
}], dataContext: [{
|
|
@@ -3700,6 +4218,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
3700
4218
|
type: Input
|
|
3701
4219
|
}], apiUrlEntry: [{
|
|
3702
4220
|
type: Input
|
|
4221
|
+
}], resourcePath: [{
|
|
4222
|
+
type: Input
|
|
4223
|
+
}], resourceFacts: [{
|
|
4224
|
+
type: Input
|
|
4225
|
+
}], quickFilters: [{
|
|
4226
|
+
type: Input
|
|
4227
|
+
}], capabilities: [{
|
|
4228
|
+
type: Input
|
|
4229
|
+
}], schemaMetadata: [{
|
|
4230
|
+
type: Input
|
|
4231
|
+
}], baseFilter: [{
|
|
4232
|
+
type: Input
|
|
3703
4233
|
}], cardClick: [{
|
|
3704
4234
|
type: Output
|
|
3705
4235
|
}], statsLoaded: [{
|
|
@@ -3905,6 +4435,7 @@ class CrudLauncherService {
|
|
|
3905
4435
|
storage = inject(ASYNC_CONFIG_STORAGE);
|
|
3906
4436
|
global = inject(GlobalConfigService);
|
|
3907
4437
|
operationResolver = inject(CrudOperationResolutionService);
|
|
4438
|
+
componentKeys = inject(ComponentKeyService, { optional: true });
|
|
3908
4439
|
logger = inject(LoggerService, { optional: true });
|
|
3909
4440
|
dialogHostPromise;
|
|
3910
4441
|
nextSurfaceFrameId = 0;
|
|
@@ -3935,7 +4466,8 @@ class CrudLauncherService {
|
|
|
3935
4466
|
? this.loadDialogHost()
|
|
3936
4467
|
: undefined;
|
|
3937
4468
|
// Carregar overrides de CRUD (se houver) e mesclar em uma cópia local
|
|
3938
|
-
const
|
|
4469
|
+
const resolvedComponentKeyId = componentKeyId || this.resolveFallbackComponentKeyId(metadata);
|
|
4470
|
+
const merged = await this.mergeCrudOverrides(metadata, action, resolvedComponentKeyId || undefined, runtime?.signal);
|
|
3939
4471
|
assertCurrent();
|
|
3940
4472
|
merged.action = this.normalizeActionForLaunch(merged.action);
|
|
3941
4473
|
const mode = this.resolveOpenMode(merged.action, merged.metadata);
|
|
@@ -4445,6 +4977,20 @@ class CrudLauncherService {
|
|
|
4445
4977
|
}
|
|
4446
4978
|
});
|
|
4447
4979
|
}
|
|
4980
|
+
resolveFallbackComponentKeyId(metadata) {
|
|
4981
|
+
const resourcePath = metadata?.resource?.path;
|
|
4982
|
+
const rawMetadataId = metadata?.id;
|
|
4983
|
+
const componentId = rawMetadataId || (resourcePath ? normalizeResourceScopeId(resourcePath, 'crud') : null);
|
|
4984
|
+
if (!componentId && !resourcePath) {
|
|
4985
|
+
return null;
|
|
4986
|
+
}
|
|
4987
|
+
return (this.componentKeys?.buildComponentId({
|
|
4988
|
+
componentType: 'praxis-crud',
|
|
4989
|
+
componentId: componentId || undefined,
|
|
4990
|
+
resourcePath: resourcePath || undefined,
|
|
4991
|
+
requireComponentId: true,
|
|
4992
|
+
}) ?? null);
|
|
4993
|
+
}
|
|
4448
4994
|
async mergeCrudOverrides(metadata, action, componentKeyId, signal) {
|
|
4449
4995
|
try {
|
|
4450
4996
|
if (!componentKeyId)
|
|
@@ -11801,7 +12347,7 @@ class CrudMetadataEditorComponent {
|
|
|
11801
12347
|
</mat-tab>
|
|
11802
12348
|
</mat-tab-group>
|
|
11803
12349
|
</section>
|
|
11804
|
-
`, isInline: true, styles: [":host{display:block;container-type:inline-size;min-width:0;color:var(--pfx-settings-panel-fg, var(--md-sys-color-on-surface,#1a1b20))}.editor-shell{display:grid;gap:10px}.editor-header{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.editor-header__titles{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}:host-context(.settings-panel) .editor-header h2{display:none}.editor-diagnostics-disclosure{border:1px solid var(--pfx-settings-panel-border, color-mix(in srgb,var(--md-sys-color-outline,#c5c7ce) 60%, transparent));border-radius:14px;background:color-mix(in srgb,var(--md-sys-color-surface-container-low,#fafbfd) 92%,transparent);padding:8px 12px}.editor-diagnostics-summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--pfx-settings-panel-fg, var(--md-sys-color-on-surface,#1a1b20))}.editor-diagnostics-summary::-webkit-details-marker{display:none}.editor-diagnostics-summary__hint{color:var(--pfx-settings-panel-muted, var(--md-sys-color-on-surface-variant,#5a5d67));margin-left:auto}.editor-diagnostics-summary:after{content:\"\\25b8\";font-size:13px;color:var(--pfx-settings-panel-muted, var(--md-sys-color-on-surface-variant,#5a5d67));transition:transform .14s ease;flex:0 0 auto}.editor-diagnostics-disclosure[open] .editor-diagnostics-summary:after{transform:rotate(90deg)}.editor-diagnostics-disclosure__body{display:grid;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid var(--pfx-settings-panel-border, color-mix(in srgb,var(--md-sys-color-outline,#c5c7ce) 50%, transparent))}.editor-overview{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.editor-health-map{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.editor-health-card{display:grid;gap:4px;padding:10px 12px;border-radius:14px;background:color-mix(in srgb,var(--md-sys-color-surface-container-high,#eef1f6) 92%,transparent)}.editor-health-card--warn{background:color-mix(in srgb,var(--md-sys-color-tertiary-container,#f8e08e) 78%,transparent);color:var(--md-sys-color-on-tertiary-container,#261900)}.editor-health-card--error{background:color-mix(in srgb,var(--md-sys-color-error-container,#f9dedc) 82%,transparent);color:var(--md-sys-color-on-error-container,#410e0b)}.editor-focus{display:flex;gap:10px;align-items:center;padding:8px 12px;border-radius:14px;background:color-mix(in srgb,var(--md-sys-color-surface-container-high,#eef1f6) 92%,transparent)}.editor-focus--success{background:color-mix(in srgb,var(--md-sys-color-secondary-container,#d7e3ff) 70%,transparent);color:var(--md-sys-color-on-secondary-container,#001c38)}.editor-focus-chip{padding:4px 10px;border-radius:999px;font-size:12px;background:color-mix(in srgb,var(--md-sys-color-secondary-container,#d7e3ff) 70%,transparent);color:var(--md-sys-color-on-secondary-container,#001c38);white-space:nowrap}.editor-focus-chip--warn{background:color-mix(in srgb,var(--md-sys-color-tertiary-container,#f8e08e) 78%,transparent);color:var(--md-sys-color-on-tertiary-container,#261900)}.editor-focus-chip--error{background:color-mix(in srgb,var(--md-sys-color-error-container,#f9dedc) 82%,transparent);color:var(--md-sys-color-on-error-container,#410e0b)}.editor-focus-copy{display:grid;gap:2px;font-size:13px}.editor-focus-copy p{margin:0;font-size:12px;color:var(--pfx-settings-panel-muted, var(--md-sys-color-on-surface-variant,#5a5d67))}.editor-tabs{display:flex;flex-direction:column;min-width:0}.editor-tabs .mat-mdc-tab{min-width:104px}.editor-tabs ::ng-deep .mdc-tab__content{gap:8px}.editor-tabs ::ng-deep .mdc-tab__text-label{display:inline-flex;align-items:center;gap:8px}.editor-tabs ::ng-deep .mat-mdc-tab-body-wrapper,.editor-tabs ::ng-deep .mat-mdc-tab-group-container{flex:1 1 auto;min-height:0}.editor-tabs ::ng-deep .mat-mdc-tab-body-content{overflow:hidden}.tab-status-dot{width:8px;height:8px;border-radius:999px;background:var(--md-sys-color-primary,#1263b4);flex:0 0 auto}.tab-status-dot--warn{background:var(--md-sys-color-tertiary,#7d5700)}.tab-status-dot--error{background:var(--md-sys-color-error,#b3261e)}.tab-content{display:grid;gap:14px;min-width:0;padding:12px 2px 4px;box-sizing:border-box}.editor-overview-card{display:grid;gap:3px;padding:10px 12px;border-radius:14px;background:color-mix(in srgb,var(--md-sys-color-surface-container-high,#eef1f6) 92%,transparent)}.editor-overview-card--warn{background:color-mix(in srgb,var(--md-sys-color-tertiary-container,#f8e08e) 78%,transparent);color:var(--md-sys-color-on-tertiary-container,#261900)}.editor-overview-card--error{background:color-mix(in srgb,var(--md-sys-color-error-container,#f9dedc) 82%,transparent);color:var(--md-sys-color-on-error-container,#410e0b)}.editor-overview-label{font-size:11px;color:var(--pfx-settings-panel-muted, var(--md-sys-color-on-surface-variant,#5a5d67))}.editor-overview-value{font-size:13px;line-height:1.25;overflow-wrap:anywhere}.editor-overview-note{margin:0;font-size:11px;color:var(--pfx-settings-panel-muted, var(--md-sys-color-on-surface-variant,#5a5d67))}.editor-header h2,.editor-card h3{margin:0;font-size:1.05rem}.editor-header p{margin:0;font-size:12px;color:var(--pfx-settings-panel-muted, var(--md-sys-color-on-surface-variant,#5a5d67))}.editor-chip{padding:4px 10px;border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-primary,#1263b4) 12%,transparent);font-size:12px}.editor-card{display:grid;gap:14px;padding:16px;border-radius:16px;border:1px solid var(--pfx-settings-panel-border, color-mix(in srgb,var(--md-sys-color-outline,#c5c7ce) 70%, transparent));background:var(--pfx-settings-panel-surface, var(--md-sys-color-surface))}.editor-section-header{display:flex;justify-content:space-between;gap:12px;align-items:start;flex-wrap:wrap}.editor-toolbar-row{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.editor-inline-grow{flex:1 1 240px}.inline-actions-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.inline-chip{display:inline-flex;align-items:center;gap:6px}.chip-remove-btn{border:0;background:transparent;cursor:pointer;font-size:14px;line-height:1;padding:0 2px;color:inherit}.kpi-cards-list{display:grid;gap:12px}.field-suggestions-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-top:2px}.field-suggestion-chip{appearance:none;display:inline-flex;align-items:center;min-height:26px;padding:3px 10px;border-radius:999px;border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant,#c5c7ce) 80%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-low,#fafbfd) 88%,transparent);color:var(--md-sys-color-on-surface,#1a1b20);font-family:var(--md-sys-typescale-code-font, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);font-size:11.5px;line-height:1.2;cursor:pointer;transition:background-color .14s ease,border-color .14s ease,color .14s ease}.field-suggestion-chip:hover:not(:disabled){border-color:color-mix(in srgb,var(--md-sys-color-primary,#1263b4) 52%,transparent);background:color-mix(in srgb,var(--md-sys-color-primary,#1263b4) 12%,var(--md-sys-color-surface-container-low,#fafbfd));color:var(--md-sys-color-primary,#1263b4)}.field-suggestion-chip:disabled{opacity:.5;cursor:not-allowed}.inherited-columns-banner{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 14px;border-radius:16px;background:color-mix(in srgb,var(--md-sys-color-secondary-container,#d7e3ff) 55%,transparent);color:var(--md-sys-color-on-secondary-container,#001c38)}.inherited-columns-banner__copy{display:grid;gap:4px}.inherited-columns-banner__title-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.editor-grid{display:grid;gap:12px;align-items:start;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.editor-grid--compact{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.editor-grid--2col{grid-template-columns:repeat(2,minmax(240px,1fr))}.editor-grid--3col{grid-template-columns:repeat(3,minmax(200px,1fr))}.editor-grid--4col{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.editor-grid--1-2{grid-template-columns:minmax(180px,1fr) minmax(320px,2fr)}.editor-field--full{grid-column:1 / -1}.editor-toggles{display:grid;gap:10px;align-items:start;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}@container (max-width: 720px){.editor-focus{flex-direction:column;align-items:flex-start}.editor-grid,.editor-grid--compact,.editor-grid--2col,.editor-grid--3col,.editor-grid--4col,.editor-grid--1-2,.editor-toggles{grid-template-columns:1fr}}.editor-actions,.action-grid{display:grid;gap:14px}.action-summary-strip{display:flex;flex-wrap:wrap;gap:8px}.action-summary-chip{padding:6px 10px;border-radius:999px;font-size:12px;background:color-mix(in srgb,var(--md-sys-color-secondary-container,#d7e3ff) 70%,transparent);color:var(--md-sys-color-on-secondary-container,#001c38)}.action-summary-chip--warn{background:color-mix(in srgb,var(--md-sys-color-tertiary-container,#f8e08e) 78%,transparent);color:var(--md-sys-color-on-tertiary-container,#261900)}.action-summary-chip--error{background:color-mix(in srgb,var(--md-sys-color-error-container,#f9dedc) 82%,transparent);color:var(--md-sys-color-on-error-container,#410e0b)}.action-group{display:grid;gap:10px;padding:12px;border-radius:16px;background:color-mix(in srgb,var(--md-sys-color-surface-container-high,#eef1f6) 88%,transparent)}.action-group--advanced{background:color-mix(in srgb,var(--md-sys-color-surface-container,#f5f7fb) 90%,transparent)}.action-group__header{display:grid;gap:4px}.action-subgroup{display:grid;gap:10px;padding:10px;border-radius:14px;background:color-mix(in srgb,var(--md-sys-color-surface-container-low,#fafbfd) 92%,transparent)}.action-subgroup__header{display:grid;gap:4px}.action-param-list{display:grid;gap:12px}.action-param-row{display:grid;gap:8px}.action-advanced-panel{border:1px solid color-mix(in srgb,var(--md-sys-color-outline,#c5c7ce) 65%,transparent);border-radius:16px}.editor-section-note{margin:0;color:var(--md-sys-color-on-surface-variant,#5a5d67)}.diagnostics-groups{display:grid;gap:12px}.diagnostics-group{display:grid;gap:10px;padding:12px;border-radius:16px;background:color-mix(in srgb,var(--md-sys-color-surface-container-high,#eef1f6) 92%,transparent)}.diagnostics{display:grid;gap:8px;margin:0;padding-left:18px}.diagnostics .error{color:var(--md-sys-color-error,#b3261e)}.endpoint-option-row{display:flex;align-items:center;gap:10px;padding:2px 0;line-height:1.25}.endpoint-option-method{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;padding:2px 6px;border-radius:6px;background:color-mix(in srgb,var(--md-sys-color-primary,#1263b4) 14%,transparent);color:var(--md-sys-color-primary,#1263b4);flex-shrink:0}.endpoint-option-copy{display:flex;flex-direction:column;min-width:0;flex:1}.endpoint-option-path{font-size:12.5px;font-weight:600;font-family:var(--praxis-font-mono, monospace);color:var(--md-sys-color-on-surface,#1a1c1e);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.endpoint-option-meta{font-size:11px;color:var(--md-sys-color-on-surface-variant,#5a5d67);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.endpoint-option-badge{font-size:10px;font-weight:600;padding:2px 6px;border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-secondary-container,#d7e3ff) 75%,transparent);color:var(--md-sys-color-on-secondary-container,#001c38);flex-shrink:0}pre{margin:0;overflow:auto;max-height:320px;padding:12px;border-radius:14px;background:color-mix(in srgb,var(--md-sys-color-surface-container-high,#eef1f6) 92%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "component", type: i2$1.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i3$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i2$1.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.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: MatCardModule }, { kind: "component", type: i5.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "component", type: i6.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i6.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i6.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i6.MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i3$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i9.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "directive", type: i10.MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "component", type: i10.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i10.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "component", type: PraxisKpiBandComponent, selector: "praxis-kpi-band", inputs: ["config", "dataContext", "isInteractiveHost", "activeFilter", "endpointKey", "apiUrlEntry"], outputs: ["cardClick", "statsLoaded", "statsError", "refreshClick"] }, { kind: "component", type: PraxisTableInlineAuthoringEditorComponent, selector: "praxis-table-inline-authoring-editor", inputs: ["config", "fieldMetadata", "readonly"], outputs: ["configChange"] }, { kind: "component", type: ResourceQuickConnectComponent, selector: "praxis-resource-quick-connect", inputs: ["resourcePath", "endpointKey", "apiUrlEntry", "intent", "resources", "label", "placeholder", "hint", "disabled"], outputs: ["resourcePathChange", "resourceSelected"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12350
|
+
`, isInline: true, styles: [":host{display:block;container-type:inline-size;min-width:0;color:var(--pfx-settings-panel-fg, var(--md-sys-color-on-surface,#1a1b20))}.editor-shell{display:grid;gap:10px}.editor-header{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.editor-header__titles{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}:host-context(.settings-panel) .editor-header h2{display:none}.editor-diagnostics-disclosure{border:1px solid var(--pfx-settings-panel-border, color-mix(in srgb,var(--md-sys-color-outline,#c5c7ce) 60%, transparent));border-radius:14px;background:color-mix(in srgb,var(--md-sys-color-surface-container-low,#fafbfd) 92%,transparent);padding:8px 12px}.editor-diagnostics-summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--pfx-settings-panel-fg, var(--md-sys-color-on-surface,#1a1b20))}.editor-diagnostics-summary::-webkit-details-marker{display:none}.editor-diagnostics-summary__hint{color:var(--pfx-settings-panel-muted, var(--md-sys-color-on-surface-variant,#5a5d67));margin-left:auto}.editor-diagnostics-summary:after{content:\"\\25b8\";font-size:13px;color:var(--pfx-settings-panel-muted, var(--md-sys-color-on-surface-variant,#5a5d67));transition:transform .14s ease;flex:0 0 auto}.editor-diagnostics-disclosure[open] .editor-diagnostics-summary:after{transform:rotate(90deg)}.editor-diagnostics-disclosure__body{display:grid;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid var(--pfx-settings-panel-border, color-mix(in srgb,var(--md-sys-color-outline,#c5c7ce) 50%, transparent))}.editor-overview{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.editor-health-map{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.editor-health-card{display:grid;gap:4px;padding:10px 12px;border-radius:14px;background:color-mix(in srgb,var(--md-sys-color-surface-container-high,#eef1f6) 92%,transparent)}.editor-health-card--warn{background:color-mix(in srgb,var(--md-sys-color-tertiary-container,#f8e08e) 78%,transparent);color:var(--md-sys-color-on-tertiary-container,#261900)}.editor-health-card--error{background:color-mix(in srgb,var(--md-sys-color-error-container,#f9dedc) 82%,transparent);color:var(--md-sys-color-on-error-container,#410e0b)}.editor-focus{display:flex;gap:10px;align-items:center;padding:8px 12px;border-radius:14px;background:color-mix(in srgb,var(--md-sys-color-surface-container-high,#eef1f6) 92%,transparent)}.editor-focus--success{background:color-mix(in srgb,var(--md-sys-color-secondary-container,#d7e3ff) 70%,transparent);color:var(--md-sys-color-on-secondary-container,#001c38)}.editor-focus-chip{padding:4px 10px;border-radius:999px;font-size:12px;background:color-mix(in srgb,var(--md-sys-color-secondary-container,#d7e3ff) 70%,transparent);color:var(--md-sys-color-on-secondary-container,#001c38);white-space:nowrap}.editor-focus-chip--warn{background:color-mix(in srgb,var(--md-sys-color-tertiary-container,#f8e08e) 78%,transparent);color:var(--md-sys-color-on-tertiary-container,#261900)}.editor-focus-chip--error{background:color-mix(in srgb,var(--md-sys-color-error-container,#f9dedc) 82%,transparent);color:var(--md-sys-color-on-error-container,#410e0b)}.editor-focus-copy{display:grid;gap:2px;font-size:13px}.editor-focus-copy p{margin:0;font-size:12px;color:var(--pfx-settings-panel-muted, var(--md-sys-color-on-surface-variant,#5a5d67))}.editor-tabs{display:flex;flex-direction:column;min-width:0}.editor-tabs .mat-mdc-tab{min-width:104px}.editor-tabs ::ng-deep .mdc-tab__content{gap:8px}.editor-tabs ::ng-deep .mdc-tab__text-label{display:inline-flex;align-items:center;gap:8px}.editor-tabs ::ng-deep .mat-mdc-tab-body-wrapper,.editor-tabs ::ng-deep .mat-mdc-tab-group-container{flex:1 1 auto;min-height:0}.editor-tabs ::ng-deep .mat-mdc-tab-body-content{overflow:hidden}.tab-status-dot{width:8px;height:8px;border-radius:999px;background:var(--md-sys-color-primary,#1263b4);flex:0 0 auto}.tab-status-dot--warn{background:var(--md-sys-color-tertiary,#7d5700)}.tab-status-dot--error{background:var(--md-sys-color-error,#b3261e)}.tab-content{display:grid;gap:14px;min-width:0;padding:12px 2px 4px;box-sizing:border-box}.editor-overview-card{display:grid;gap:3px;padding:10px 12px;border-radius:14px;background:color-mix(in srgb,var(--md-sys-color-surface-container-high,#eef1f6) 92%,transparent)}.editor-overview-card--warn{background:color-mix(in srgb,var(--md-sys-color-tertiary-container,#f8e08e) 78%,transparent);color:var(--md-sys-color-on-tertiary-container,#261900)}.editor-overview-card--error{background:color-mix(in srgb,var(--md-sys-color-error-container,#f9dedc) 82%,transparent);color:var(--md-sys-color-on-error-container,#410e0b)}.editor-overview-label{font-size:11px;color:var(--pfx-settings-panel-muted, var(--md-sys-color-on-surface-variant,#5a5d67))}.editor-overview-value{font-size:13px;line-height:1.25;overflow-wrap:anywhere}.editor-overview-note{margin:0;font-size:11px;color:var(--pfx-settings-panel-muted, var(--md-sys-color-on-surface-variant,#5a5d67))}.editor-header h2,.editor-card h3{margin:0;font-size:1.05rem}.editor-header p{margin:0;font-size:12px;color:var(--pfx-settings-panel-muted, var(--md-sys-color-on-surface-variant,#5a5d67))}.editor-chip{padding:4px 10px;border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-primary,#1263b4) 12%,transparent);font-size:12px}.editor-card{display:grid;gap:14px;padding:16px;border-radius:16px;border:1px solid var(--pfx-settings-panel-border, color-mix(in srgb,var(--md-sys-color-outline,#c5c7ce) 70%, transparent));background:var(--pfx-settings-panel-surface, var(--md-sys-color-surface))}.editor-section-header{display:flex;justify-content:space-between;gap:12px;align-items:start;flex-wrap:wrap}.editor-toolbar-row{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.editor-inline-grow{flex:1 1 240px}.inline-actions-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.inline-chip{display:inline-flex;align-items:center;gap:6px}.chip-remove-btn{border:0;background:transparent;cursor:pointer;font-size:14px;line-height:1;padding:0 2px;color:inherit}.kpi-cards-list{display:grid;gap:12px}.field-suggestions-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-top:2px}.field-suggestion-chip{appearance:none;display:inline-flex;align-items:center;min-height:26px;padding:3px 10px;border-radius:999px;border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant,#c5c7ce) 80%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-low,#fafbfd) 88%,transparent);color:var(--md-sys-color-on-surface,#1a1b20);font-family:var(--md-sys-typescale-code-font, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);font-size:11.5px;line-height:1.2;cursor:pointer;transition:background-color .14s ease,border-color .14s ease,color .14s ease}.field-suggestion-chip:hover:not(:disabled){border-color:color-mix(in srgb,var(--md-sys-color-primary,#1263b4) 52%,transparent);background:color-mix(in srgb,var(--md-sys-color-primary,#1263b4) 12%,var(--md-sys-color-surface-container-low,#fafbfd));color:var(--md-sys-color-primary,#1263b4)}.field-suggestion-chip:disabled{opacity:.5;cursor:not-allowed}.inherited-columns-banner{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 14px;border-radius:16px;background:color-mix(in srgb,var(--md-sys-color-secondary-container,#d7e3ff) 55%,transparent);color:var(--md-sys-color-on-secondary-container,#001c38)}.inherited-columns-banner__copy{display:grid;gap:4px}.inherited-columns-banner__title-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.editor-grid{display:grid;gap:12px;align-items:start;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.editor-grid--compact{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.editor-grid--2col{grid-template-columns:repeat(2,minmax(240px,1fr))}.editor-grid--3col{grid-template-columns:repeat(3,minmax(200px,1fr))}.editor-grid--4col{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.editor-grid--1-2{grid-template-columns:minmax(180px,1fr) minmax(320px,2fr)}.editor-field--full{grid-column:1 / -1}.editor-toggles{display:grid;gap:10px;align-items:start;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}@container (max-width: 720px){.editor-focus{flex-direction:column;align-items:flex-start}.editor-grid,.editor-grid--compact,.editor-grid--2col,.editor-grid--3col,.editor-grid--4col,.editor-grid--1-2,.editor-toggles{grid-template-columns:1fr}}.editor-actions,.action-grid{display:grid;gap:14px}.action-summary-strip{display:flex;flex-wrap:wrap;gap:8px}.action-summary-chip{padding:6px 10px;border-radius:999px;font-size:12px;background:color-mix(in srgb,var(--md-sys-color-secondary-container,#d7e3ff) 70%,transparent);color:var(--md-sys-color-on-secondary-container,#001c38)}.action-summary-chip--warn{background:color-mix(in srgb,var(--md-sys-color-tertiary-container,#f8e08e) 78%,transparent);color:var(--md-sys-color-on-tertiary-container,#261900)}.action-summary-chip--error{background:color-mix(in srgb,var(--md-sys-color-error-container,#f9dedc) 82%,transparent);color:var(--md-sys-color-on-error-container,#410e0b)}.action-group{display:grid;gap:10px;padding:12px;border-radius:16px;background:color-mix(in srgb,var(--md-sys-color-surface-container-high,#eef1f6) 88%,transparent)}.action-group--advanced{background:color-mix(in srgb,var(--md-sys-color-surface-container,#f5f7fb) 90%,transparent)}.action-group__header{display:grid;gap:4px}.action-subgroup{display:grid;gap:10px;padding:10px;border-radius:14px;background:color-mix(in srgb,var(--md-sys-color-surface-container-low,#fafbfd) 92%,transparent)}.action-subgroup__header{display:grid;gap:4px}.action-param-list{display:grid;gap:12px}.action-param-row{display:grid;gap:8px}.action-advanced-panel{border:1px solid color-mix(in srgb,var(--md-sys-color-outline,#c5c7ce) 65%,transparent);border-radius:16px}.editor-section-note{margin:0;color:var(--md-sys-color-on-surface-variant,#5a5d67)}.diagnostics-groups{display:grid;gap:12px}.diagnostics-group{display:grid;gap:10px;padding:12px;border-radius:16px;background:color-mix(in srgb,var(--md-sys-color-surface-container-high,#eef1f6) 92%,transparent)}.diagnostics{display:grid;gap:8px;margin:0;padding-left:18px}.diagnostics .error{color:var(--md-sys-color-error,#b3261e)}.endpoint-option-row{display:flex;align-items:center;gap:10px;padding:2px 0;line-height:1.25}.endpoint-option-method{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;padding:2px 6px;border-radius:6px;background:color-mix(in srgb,var(--md-sys-color-primary,#1263b4) 14%,transparent);color:var(--md-sys-color-primary,#1263b4);flex-shrink:0}.endpoint-option-copy{display:flex;flex-direction:column;min-width:0;flex:1}.endpoint-option-path{font-size:12.5px;font-weight:600;font-family:var(--praxis-font-mono, monospace);color:var(--md-sys-color-on-surface,#1a1c1e);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.endpoint-option-meta{font-size:11px;color:var(--md-sys-color-on-surface-variant,#5a5d67);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.endpoint-option-badge{font-size:10px;font-weight:600;padding:2px 6px;border-radius:999px;background:color-mix(in srgb,var(--md-sys-color-secondary-container,#d7e3ff) 75%,transparent);color:var(--md-sys-color-on-secondary-container,#001c38);flex-shrink:0}pre{margin:0;overflow:auto;max-height:320px;padding:12px;border-radius:14px;background:color-mix(in srgb,var(--md-sys-color-surface-container-high,#eef1f6) 92%,transparent)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "component", type: i2$1.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i3$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i2$1.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.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: MatCardModule }, { kind: "component", type: i5.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "component", type: i6.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i6.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i6.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i6.MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i3$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i9.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "directive", type: i10.MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "component", type: i10.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i10.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "component", type: PraxisKpiBandComponent, selector: "praxis-kpi-band", inputs: ["config", "dataContext", "isInteractiveHost", "activeFilter", "endpointKey", "apiUrlEntry", "resourcePath", "resourceFacts", "quickFilters", "capabilities", "schemaMetadata", "baseFilter"], outputs: ["cardClick", "statsLoaded", "statsError", "refreshClick"] }, { kind: "component", type: PraxisTableInlineAuthoringEditorComponent, selector: "praxis-table-inline-authoring-editor", inputs: ["config", "fieldMetadata", "readonly"], outputs: ["configChange"] }, { kind: "component", type: ResourceQuickConnectComponent, selector: "praxis-resource-quick-connect", inputs: ["resourcePath", "endpointKey", "apiUrlEntry", "intent", "resources", "label", "placeholder", "hint", "disabled"], outputs: ["resourcePathChange", "resourceSelected"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11805
12351
|
}
|
|
11806
12352
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: CrudMetadataEditorComponent, decorators: [{
|
|
11807
12353
|
type: Component,
|
|
@@ -13596,7 +14142,8 @@ class PraxisCrudComponent {
|
|
|
13596
14142
|
},
|
|
13597
14143
|
};
|
|
13598
14144
|
if (this.crudId === 'praxis-crud' || !this.crudId || this.crudId.startsWith('crud-')) {
|
|
13599
|
-
this.crudId =
|
|
14145
|
+
this.crudId =
|
|
14146
|
+
normalizeResourceScopeId(value, 'crud') || `crud-${value.replace(/\//g, '-')}`;
|
|
13600
14147
|
}
|
|
13601
14148
|
}
|
|
13602
14149
|
}
|
|
@@ -13614,6 +14161,10 @@ class PraxisCrudComponent {
|
|
|
13614
14161
|
authoringCapability = null;
|
|
13615
14162
|
/** Critérios reativos de filtro aplicados à tabela interna (Issue #11) */
|
|
13616
14163
|
filterCriteria;
|
|
14164
|
+
/** Campos de filtro bloqueados por escopo pai/ambiente (mantidos na consulta sem chips removíveis). */
|
|
14165
|
+
lockedFilterFields;
|
|
14166
|
+
/** Definições de schema opcionais pré-resolvidas para projeção reativa de `x-ui.contextBinding`. */
|
|
14167
|
+
schemaFields;
|
|
13617
14168
|
/** Habilita teleporte da barra de filtros para container externo (Issue #11) */
|
|
13618
14169
|
filterTeleport = false;
|
|
13619
14170
|
/** Desabilita auto-abertura da gaveta analítica no clique de linha (Issue #39) */
|
|
@@ -13869,6 +14420,10 @@ class PraxisCrudComponent {
|
|
|
13869
14420
|
storage = inject(ASYNC_CONFIG_STORAGE);
|
|
13870
14421
|
settingsPanel = inject(SettingsPanelService);
|
|
13871
14422
|
enterpriseRuntimeContext = inject(EnterpriseRuntimeContextService, { optional: true });
|
|
14423
|
+
workspaceQueryContext = inject(PraxisWorkspaceQueryContextService, { optional: true });
|
|
14424
|
+
contextFilterProjector = inject(PraxisContextFilterProjectorService, { optional: true });
|
|
14425
|
+
schemaNormalizer = inject(SchemaNormalizerService, { optional: true });
|
|
14426
|
+
apiUrl = inject(API_URL, { optional: true });
|
|
13872
14427
|
snack = inject(MatSnackBar);
|
|
13873
14428
|
dialog = inject(DialogService);
|
|
13874
14429
|
i18n = inject(PraxisI18nService);
|
|
@@ -13908,10 +14463,19 @@ class PraxisCrudComponent {
|
|
|
13908
14463
|
tableCollectionLinks = null;
|
|
13909
14464
|
collectionCapabilities = null;
|
|
13910
14465
|
discoveredSchemaQuickFilters = [];
|
|
14466
|
+
discoveredSchemaFields = [];
|
|
14467
|
+
discoveredSchemaMetadata = null;
|
|
14468
|
+
discoveredResourceFacts = [];
|
|
14469
|
+
loadedSchemaResourcePath = null;
|
|
14470
|
+
schemaFetchSub;
|
|
14471
|
+
workspaceProjectedFilterKeys = new Set();
|
|
14472
|
+
lastWorkspaceSnapshotSignature = '';
|
|
14473
|
+
effectiveLockedFilterFields = [];
|
|
13911
14474
|
activeAuthoringPanelRef;
|
|
13912
14475
|
hydratedAuthoringKeyId = null;
|
|
13913
14476
|
constructor() {
|
|
13914
14477
|
this.destroyRef.onDestroy(() => {
|
|
14478
|
+
this.schemaFetchSub?.unsubscribe();
|
|
13915
14479
|
this.duplicateDraftController?.abort(CRUD_SOURCE_DESTROYED);
|
|
13916
14480
|
if (this.activeAuthoringPanelRef) {
|
|
13917
14481
|
try {
|
|
@@ -13931,6 +14495,19 @@ class PraxisCrudComponent {
|
|
|
13931
14495
|
}
|
|
13932
14496
|
this.cdr.markForCheck();
|
|
13933
14497
|
});
|
|
14498
|
+
if (this.workspaceQueryContext?.changes$) {
|
|
14499
|
+
this.lastWorkspaceSnapshotSignature = this.safeSerialize(this.workspaceQueryContext.snapshot()) ?? '';
|
|
14500
|
+
this.workspaceQueryContext.changes$
|
|
14501
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
14502
|
+
.subscribe((snapshot) => {
|
|
14503
|
+
const nextSig = this.safeSerialize(snapshot) ?? '';
|
|
14504
|
+
if (nextSig === this.lastWorkspaceSnapshotSignature) {
|
|
14505
|
+
return;
|
|
14506
|
+
}
|
|
14507
|
+
this.lastWorkspaceSnapshotSignature = nextSig;
|
|
14508
|
+
this.onWorkspaceQueryContextChanged();
|
|
14509
|
+
});
|
|
14510
|
+
}
|
|
13934
14511
|
if (this.widgetEventBus) {
|
|
13935
14512
|
this.widgetEventBus
|
|
13936
14513
|
.onFilter()
|
|
@@ -14121,6 +14698,7 @@ class PraxisCrudComponent {
|
|
|
14121
14698
|
data: {
|
|
14122
14699
|
bulkContract,
|
|
14123
14700
|
targets,
|
|
14701
|
+
rows,
|
|
14124
14702
|
resourcePath,
|
|
14125
14703
|
resourceKey,
|
|
14126
14704
|
endpointKey: this.resolvedMetadata?.resource?.endpointKey,
|
|
@@ -14496,8 +15074,6 @@ class PraxisCrudComponent {
|
|
|
14496
15074
|
allowDeferredActionBindings: true,
|
|
14497
15075
|
});
|
|
14498
15076
|
this.emitInspectOnlyDiagnostics(this.resolvedMetadata);
|
|
14499
|
-
this.tableQueryContext = this.resolveQueryContext(this.resolvedMetadata);
|
|
14500
|
-
this.tableFilterCriteria = this.resolveInitialFilterCriteria(this.resolvedMetadata);
|
|
14501
15077
|
const nextResourceIdentity = this.resolveCrudResourceIdentity(this.resolvedMetadata);
|
|
14502
15078
|
const resourceChanged = nextResourceIdentity !== this.lastAppliedResourceIdentity ||
|
|
14503
15079
|
!nextResourceIdentity ||
|
|
@@ -14507,11 +15083,20 @@ class PraxisCrudComponent {
|
|
|
14507
15083
|
this.tableCollectionLinks = null;
|
|
14508
15084
|
this.collectionCapabilities = null;
|
|
14509
15085
|
this.discoveredSchemaQuickFilters = [];
|
|
15086
|
+
this.discoveredSchemaFields = [];
|
|
15087
|
+
this.discoveredSchemaMetadata = null;
|
|
15088
|
+
this.discoveredResourceFacts = [];
|
|
15089
|
+
this.loadedSchemaResourcePath = null;
|
|
15090
|
+
this.schemaFetchSub?.unsubscribe();
|
|
14510
15091
|
this.collectionCapabilitiesRequestHref = null;
|
|
14511
15092
|
this.collectionCapabilitiesResolvedHref = null;
|
|
14512
15093
|
this.collectionCapabilitiesRequestSeq += 1;
|
|
14513
15094
|
}
|
|
15095
|
+
this.recomputeLockedFilterFields(this.resolvedMetadata);
|
|
15096
|
+
this.tableQueryContext = this.resolveQueryContext(this.resolvedMetadata);
|
|
15097
|
+
this.tableFilterCriteria = this.resolveInitialFilterCriteria(this.resolvedMetadata);
|
|
14514
15098
|
this.applyResolvedCrudState(this.resolvedMetadata);
|
|
15099
|
+
this.maybeLoadSchemaContract(this.resolveResourcePath(this.resolvedMetadata));
|
|
14515
15100
|
const metadataInputChanged = changes['metadata'] && !changes['metadata'].firstChange;
|
|
14516
15101
|
if (metadataInputChanged &&
|
|
14517
15102
|
resourceChanged &&
|
|
@@ -15345,13 +15930,38 @@ class PraxisCrudComponent {
|
|
|
15345
15930
|
if (Array.isArray(meta?.data) && this.resolveResourcePath(meta).length === 0) {
|
|
15346
15931
|
return null;
|
|
15347
15932
|
}
|
|
15348
|
-
|
|
15933
|
+
const baseQueryContext = this.isRecord(meta?.queryContext)
|
|
15934
|
+
? meta.queryContext
|
|
15935
|
+
: null;
|
|
15936
|
+
const fields = this.getEffectiveBindableFields();
|
|
15937
|
+
const projected = this.contextFilterProjector
|
|
15938
|
+
? this.contextFilterProjector.projectQueryContext(fields, baseQueryContext, {
|
|
15939
|
+
resourceKey: this.resolveCrudResourceIdentity(meta) ?? undefined,
|
|
15940
|
+
})
|
|
15941
|
+
: baseQueryContext;
|
|
15942
|
+
const lockedKeys = this.recomputeLockedFilterFields(meta);
|
|
15943
|
+
if (!projected && lockedKeys.length === 0) {
|
|
15944
|
+
return null;
|
|
15945
|
+
}
|
|
15946
|
+
return {
|
|
15947
|
+
...(projected ? projected : {}),
|
|
15948
|
+
...(lockedKeys.length > 0 ? { lockedKeys } : {}),
|
|
15949
|
+
};
|
|
15349
15950
|
}
|
|
15350
15951
|
resolveFilterCriteria(meta) {
|
|
15351
|
-
|
|
15352
|
-
|
|
15952
|
+
const base = this.isRecord(this.filterCriteria)
|
|
15953
|
+
? { ...this.filterCriteria }
|
|
15954
|
+
: this.isRecord(meta?.filterCriteria)
|
|
15955
|
+
? { ...meta.filterCriteria }
|
|
15956
|
+
: {};
|
|
15957
|
+
const projection = this.computeWorkspaceContextProjection(meta);
|
|
15958
|
+
if (!projection) {
|
|
15959
|
+
return base;
|
|
15353
15960
|
}
|
|
15354
|
-
return
|
|
15961
|
+
return {
|
|
15962
|
+
...base,
|
|
15963
|
+
...projection.values,
|
|
15964
|
+
};
|
|
15355
15965
|
}
|
|
15356
15966
|
/**
|
|
15357
15967
|
* Critério inicial da tabela: critérios base + escopo padrão local
|
|
@@ -15449,15 +16059,203 @@ class PraxisCrudComponent {
|
|
|
15449
16059
|
}
|
|
15450
16060
|
/**
|
|
15451
16061
|
* Limpa os filtros ativos na tabela interna do CRUD (Issue #11).
|
|
16062
|
+
* Campos bloqueados por escopo ambiental/pai permanecem preservados na consulta.
|
|
15452
16063
|
*/
|
|
15453
16064
|
clearFilterCriteria() {
|
|
15454
|
-
|
|
16065
|
+
const locked = new Set(this.effectiveLockedFilterFields);
|
|
16066
|
+
const preserved = {};
|
|
16067
|
+
for (const key of locked) {
|
|
16068
|
+
if (key in this.tableFilterCriteria) {
|
|
16069
|
+
preserved[key] = this.tableFilterCriteria[key];
|
|
16070
|
+
}
|
|
16071
|
+
}
|
|
16072
|
+
this.tableFilterCriteria = preserved;
|
|
15455
16073
|
if (this.table) {
|
|
15456
|
-
|
|
16074
|
+
if (Object.keys(preserved).length > 0) {
|
|
16075
|
+
this.table.applyAdvancedFilterCriteria(preserved);
|
|
16076
|
+
}
|
|
16077
|
+
else {
|
|
16078
|
+
this.table.clearAdvancedFilter();
|
|
16079
|
+
}
|
|
16080
|
+
}
|
|
16081
|
+
this.filterCriteriaChange.emit({ ...preserved });
|
|
16082
|
+
this.cdr.markForCheck();
|
|
16083
|
+
}
|
|
16084
|
+
getEffectiveBindableFields() {
|
|
16085
|
+
const schemaFields = Array.isArray(this.schemaFields) && this.schemaFields.length > 0
|
|
16086
|
+
? this.schemaFields
|
|
16087
|
+
: this.discoveredSchemaFields;
|
|
16088
|
+
const result = [...schemaFields];
|
|
16089
|
+
const snapshot = this.workspaceQueryContext?.snapshot();
|
|
16090
|
+
if (!snapshot) {
|
|
16091
|
+
return result;
|
|
16092
|
+
}
|
|
16093
|
+
const existingDims = new Set(result
|
|
16094
|
+
.map((field) => field.contextBinding?.dimension)
|
|
16095
|
+
.filter((dim) => Boolean(dim)));
|
|
16096
|
+
for (const entry of Object.values(snapshot)) {
|
|
16097
|
+
if (entry &&
|
|
16098
|
+
entry.targetField?.trim() &&
|
|
16099
|
+
entry.value !== undefined &&
|
|
16100
|
+
entry.value !== null &&
|
|
16101
|
+
entry.value !== '' &&
|
|
16102
|
+
!existingDims.has(entry.dimension)) {
|
|
16103
|
+
result.push({
|
|
16104
|
+
name: entry.targetField.trim(),
|
|
16105
|
+
contextBinding: {
|
|
16106
|
+
dimension: entry.dimension,
|
|
16107
|
+
lockWhenActive: true,
|
|
16108
|
+
targetField: entry.targetField.trim(),
|
|
16109
|
+
},
|
|
16110
|
+
});
|
|
16111
|
+
}
|
|
16112
|
+
}
|
|
16113
|
+
return result;
|
|
16114
|
+
}
|
|
16115
|
+
recomputeLockedFilterFields(meta) {
|
|
16116
|
+
const merged = new Set();
|
|
16117
|
+
for (const field of this.lockedFilterFields ?? []) {
|
|
16118
|
+
const normalized = String(field || '').trim();
|
|
16119
|
+
if (normalized)
|
|
16120
|
+
merged.add(normalized);
|
|
16121
|
+
}
|
|
16122
|
+
const metaQuery = (meta ?? this.resolvedMetadata)?.queryContext;
|
|
16123
|
+
const metaLockedKeys = metaQuery?.['lockedKeys'];
|
|
16124
|
+
if (Array.isArray(metaLockedKeys)) {
|
|
16125
|
+
for (const key of metaLockedKeys) {
|
|
16126
|
+
const normalized = String(key || '').trim();
|
|
16127
|
+
if (normalized)
|
|
16128
|
+
merged.add(normalized);
|
|
16129
|
+
}
|
|
16130
|
+
}
|
|
16131
|
+
if (this.contextFilterProjector) {
|
|
16132
|
+
const defaults = this.contextFilterProjector.projectFieldDefaults(this.getEffectiveBindableFields());
|
|
16133
|
+
for (const locked of defaults.lockedFields) {
|
|
16134
|
+
const normalized = String(locked || '').trim();
|
|
16135
|
+
if (normalized)
|
|
16136
|
+
merged.add(normalized);
|
|
16137
|
+
}
|
|
16138
|
+
}
|
|
16139
|
+
const list = Array.from(merged);
|
|
16140
|
+
this.effectiveLockedFilterFields = list;
|
|
16141
|
+
return list;
|
|
16142
|
+
}
|
|
16143
|
+
computeWorkspaceContextProjection(meta) {
|
|
16144
|
+
if (!this.contextFilterProjector) {
|
|
16145
|
+
return null;
|
|
16146
|
+
}
|
|
16147
|
+
const fields = this.getEffectiveBindableFields();
|
|
16148
|
+
if (fields.length === 0) {
|
|
16149
|
+
return null;
|
|
16150
|
+
}
|
|
16151
|
+
const resourceKey = this.resolveCrudResourceIdentity(meta ?? this.resolvedMetadata) ?? undefined;
|
|
16152
|
+
const values = this.contextFilterProjector.projectFilterCriteria(fields, null, {
|
|
16153
|
+
resourceKey,
|
|
16154
|
+
overrideExisting: true,
|
|
16155
|
+
});
|
|
16156
|
+
const defaults = this.contextFilterProjector.projectFieldDefaults(fields);
|
|
16157
|
+
return {
|
|
16158
|
+
values,
|
|
16159
|
+
lockedFields: defaults.lockedFields,
|
|
16160
|
+
};
|
|
16161
|
+
}
|
|
16162
|
+
onWorkspaceQueryContextChanged() {
|
|
16163
|
+
if (this.isInspectOnly()) {
|
|
16164
|
+
return;
|
|
16165
|
+
}
|
|
16166
|
+
const resourcePath = this.resolveResourcePath(this.resolvedMetadata);
|
|
16167
|
+
if (resourcePath && this.workspaceQueryContext?.hasActiveContext()) {
|
|
16168
|
+
this.maybeLoadSchemaContract(resourcePath);
|
|
16169
|
+
}
|
|
16170
|
+
this.reapplyWorkspaceProjection(true);
|
|
16171
|
+
}
|
|
16172
|
+
reapplyWorkspaceProjection(applyToTable = false) {
|
|
16173
|
+
const projection = this.computeWorkspaceContextProjection(this.resolvedMetadata);
|
|
16174
|
+
const nextLocked = this.recomputeLockedFilterFields(this.resolvedMetadata);
|
|
16175
|
+
const nextProjectedKeys = new Set(Object.keys(projection?.values || {}));
|
|
16176
|
+
const nextCriteria = { ...(this.tableFilterCriteria || {}) };
|
|
16177
|
+
for (const prevKey of this.workspaceProjectedFilterKeys) {
|
|
16178
|
+
if (!nextProjectedKeys.has(prevKey) && !nextLocked.includes(prevKey)) {
|
|
16179
|
+
delete nextCriteria[prevKey];
|
|
16180
|
+
}
|
|
16181
|
+
}
|
|
16182
|
+
if (projection?.values) {
|
|
16183
|
+
Object.assign(nextCriteria, projection.values);
|
|
16184
|
+
}
|
|
16185
|
+
this.workspaceProjectedFilterKeys = nextProjectedKeys;
|
|
16186
|
+
this.tableQueryContext = this.resolveQueryContext(this.resolvedMetadata);
|
|
16187
|
+
const changed = !this.areFilterCriteriaEquivalent(this.tableFilterCriteria, nextCriteria);
|
|
16188
|
+
if (changed) {
|
|
16189
|
+
this.tableFilterCriteria = nextCriteria;
|
|
16190
|
+
this.filterCriteriaChange.emit({ ...nextCriteria });
|
|
16191
|
+
}
|
|
16192
|
+
if (applyToTable && this.table) {
|
|
16193
|
+
this.table.applyAdvancedFilterCriteria(this.tableFilterCriteria);
|
|
16194
|
+
this.kpiBand?.refresh?.();
|
|
15457
16195
|
}
|
|
15458
|
-
this.filterCriteriaChange.emit({});
|
|
15459
16196
|
this.cdr.markForCheck();
|
|
15460
16197
|
}
|
|
16198
|
+
resolveSchemasFilteredEndpointUrl(resourcePath) {
|
|
16199
|
+
const key = String(this.resolvedMetadata?.resource?.endpointKey ?? '').trim();
|
|
16200
|
+
const entry = this.resolvedMetadata?.resource?.apiUrlEntry ||
|
|
16201
|
+
(key && this.apiUrl ? this.apiUrl[key] : undefined) ||
|
|
16202
|
+
this.apiUrl?.['default'] ||
|
|
16203
|
+
(this.apiUrl ? Object.values(this.apiUrl)[0] : undefined);
|
|
16204
|
+
const baseUrl = entry ? buildApiUrl(entry).replace(/\/+$/, '') : '';
|
|
16205
|
+
let base = '/schemas/filtered';
|
|
16206
|
+
let schemaParam = resourcePath.startsWith('/') ? resourcePath : `/${resourcePath}`;
|
|
16207
|
+
try {
|
|
16208
|
+
if (baseUrl) {
|
|
16209
|
+
const parsed = new URL(baseUrl);
|
|
16210
|
+
base = `${parsed.origin}/schemas/filtered`;
|
|
16211
|
+
const entryPath = parsed.pathname.replace(/\/+$/, '');
|
|
16212
|
+
if (entryPath && entryPath !== '/' && !schemaParam.startsWith(`${entryPath}/`) && schemaParam !== entryPath) {
|
|
16213
|
+
schemaParam = `${entryPath}${schemaParam}`;
|
|
16214
|
+
}
|
|
16215
|
+
}
|
|
16216
|
+
}
|
|
16217
|
+
catch { }
|
|
16218
|
+
const cleanSchemaPath = `${schemaParam.replace(/\/+$/, '')}/filter`;
|
|
16219
|
+
return `${base}?path=${encodeURIComponent(cleanSchemaPath)}&operation=post&schemaType=response`;
|
|
16220
|
+
}
|
|
16221
|
+
maybeLoadSchemaContract(resourcePath) {
|
|
16222
|
+
const cleanPath = String(resourcePath || '').trim();
|
|
16223
|
+
if (!cleanPath || this.isInspectOnly() || this.loadedSchemaResourcePath === cleanPath) {
|
|
16224
|
+
return;
|
|
16225
|
+
}
|
|
16226
|
+
const wantsSchemaKpi = this.resolvedMetadata?.kpiBand?.source?.trim().toLowerCase() === 'schema';
|
|
16227
|
+
const hasWorkspaceContext = this.workspaceQueryContext?.hasActiveContext() === true;
|
|
16228
|
+
if (!wantsSchemaKpi && !hasWorkspaceContext) {
|
|
16229
|
+
return;
|
|
16230
|
+
}
|
|
16231
|
+
this.loadedSchemaResourcePath = cleanPath;
|
|
16232
|
+
this.schemaFetchSub?.unsubscribe();
|
|
16233
|
+
const url = this.resolveSchemasFilteredEndpointUrl(cleanPath);
|
|
16234
|
+
this.schemaFetchSub = this.http
|
|
16235
|
+
.get(url)
|
|
16236
|
+
.pipe(catchError(() => of(null)), takeUntilDestroyed(this.destroyRef))
|
|
16237
|
+
.subscribe((rawSchema) => {
|
|
16238
|
+
if (!rawSchema || typeof rawSchema !== 'object') {
|
|
16239
|
+
return;
|
|
16240
|
+
}
|
|
16241
|
+
this.discoveredSchemaMetadata = rawSchema;
|
|
16242
|
+
if (this.schemaNormalizer) {
|
|
16243
|
+
try {
|
|
16244
|
+
this.discoveredSchemaFields = this.schemaNormalizer.normalizeSchema(rawSchema);
|
|
16245
|
+
}
|
|
16246
|
+
catch {
|
|
16247
|
+
this.discoveredSchemaFields = [];
|
|
16248
|
+
}
|
|
16249
|
+
}
|
|
16250
|
+
const xUi = rawSchema['x-ui'] ?? undefined;
|
|
16251
|
+
const xResource = xUi?.['resource'] ?? undefined;
|
|
16252
|
+
const rawFacts = xUi?.['resourceFacts'] ?? xUi?.['facts'] ?? xResource?.['resourceFacts'];
|
|
16253
|
+
if (Array.isArray(rawFacts)) {
|
|
16254
|
+
this.discoveredResourceFacts = rawFacts.filter((item) => !!item && typeof item === 'object');
|
|
16255
|
+
}
|
|
16256
|
+
this.reapplyWorkspaceProjection(hasWorkspaceContext);
|
|
16257
|
+
});
|
|
16258
|
+
}
|
|
15461
16259
|
extractRowFromEvent(event) {
|
|
15462
16260
|
if (!this.isRecord(event)) {
|
|
15463
16261
|
return null;
|
|
@@ -15724,10 +16522,11 @@ class PraxisCrudComponent {
|
|
|
15724
16522
|
return await firstValueFrom(this.getResourceDiscovery().getSurfaces(this.tableCollectionLinks, this.buildDiscoveryOptions()));
|
|
15725
16523
|
}
|
|
15726
16524
|
const rowLinks = row?._links;
|
|
15727
|
-
|
|
16525
|
+
const targetLinks = rowLinks ?? this.tableCollectionLinks;
|
|
16526
|
+
if (!targetLinks) {
|
|
15728
16527
|
return null;
|
|
15729
16528
|
}
|
|
15730
|
-
return await firstValueFrom(this.getResourceDiscovery().getSurfaces(
|
|
16529
|
+
return await firstValueFrom(this.getResourceDiscovery().getSurfaces(targetLinks, this.buildDiscoveryOptions()));
|
|
15731
16530
|
}
|
|
15732
16531
|
catch {
|
|
15733
16532
|
return null;
|
|
@@ -16803,30 +17602,75 @@ class PraxisCrudComponent {
|
|
|
16803
17602
|
this.isCatalogActionAvailable(capabilities, action.id))
|
|
16804
17603
|
.sort((left, right) => (left.order ?? 0) - (right.order ?? 0))
|
|
16805
17604
|
.map((action) => ({
|
|
17605
|
+
id: action.id,
|
|
16806
17606
|
action: action.id,
|
|
16807
17607
|
label: action.title,
|
|
17608
|
+
...(action.icon ? { icon: action.icon } : {}),
|
|
17609
|
+
...(action.tone ? { tone: action.tone } : {}),
|
|
17610
|
+
...(action.modifiedFields ? { modifiedFields: action.modifiedFields } : {}),
|
|
17611
|
+
...(action.disallowedStateReason
|
|
17612
|
+
? { disallowedStateReason: action.disallowedStateReason }
|
|
17613
|
+
: {}),
|
|
16808
17614
|
}));
|
|
16809
17615
|
}
|
|
16810
17616
|
resolveCollectionWorkflowToolbarActions(capabilities) {
|
|
16811
17617
|
if (!capabilities) {
|
|
16812
17618
|
return [];
|
|
16813
17619
|
}
|
|
16814
|
-
|
|
17620
|
+
const actionButtons = (capabilities.actions || [])
|
|
16815
17621
|
.filter((action) => action.scope === 'COLLECTION' && !action.execution?.bulk)
|
|
16816
17622
|
.sort((left, right) => (left.order ?? 0) - (right.order ?? 0))
|
|
16817
|
-
.map((action) =>
|
|
16818
|
-
|
|
16819
|
-
|
|
16820
|
-
|
|
16821
|
-
|
|
16822
|
-
|
|
16823
|
-
|
|
16824
|
-
|
|
16825
|
-
|
|
16826
|
-
|
|
16827
|
-
|
|
16828
|
-
|
|
16829
|
-
|
|
17623
|
+
.map((action) => {
|
|
17624
|
+
const available = this.isCatalogActionAvailable(capabilities, action.id);
|
|
17625
|
+
return {
|
|
17626
|
+
id: action.id,
|
|
17627
|
+
label: action.title || action.id,
|
|
17628
|
+
...(action.icon ? { icon: action.icon } : {}),
|
|
17629
|
+
...(action.tone ? { tone: action.tone } : {}),
|
|
17630
|
+
...(action.modifiedFields ? { modifiedFields: action.modifiedFields } : {}),
|
|
17631
|
+
...(action.disallowedStateReason
|
|
17632
|
+
? { disallowedStateReason: action.disallowedStateReason }
|
|
17633
|
+
: {}),
|
|
17634
|
+
type: 'button',
|
|
17635
|
+
appearance: 'outlined',
|
|
17636
|
+
position: 'end',
|
|
17637
|
+
action: action.id,
|
|
17638
|
+
disabled: !available,
|
|
17639
|
+
tooltip: !available
|
|
17640
|
+
? action.disallowedStateReason?.trim() ||
|
|
17641
|
+
translateUnavailableWorkflowMessage(this.i18n, capabilities.operations?.[action.id]?.availability || action.availability) ||
|
|
17642
|
+
action.description ||
|
|
17643
|
+
undefined
|
|
17644
|
+
: action.description || undefined,
|
|
17645
|
+
};
|
|
17646
|
+
});
|
|
17647
|
+
const seenIds = new Set(actionButtons.map((btn) => String(btn['action'] ?? btn['id'] ?? '').trim().toLowerCase()));
|
|
17648
|
+
const intentSurfaces = (capabilities.surfaces || [])
|
|
17649
|
+
.filter((surface) => surface.scope === 'COLLECTION' &&
|
|
17650
|
+
surface.kind === 'PARTIAL_FORM' &&
|
|
17651
|
+
!seenIds.has(String(surface.id || '').trim().toLowerCase()))
|
|
17652
|
+
.sort((left, right) => (left.order ?? 0) - (right.order ?? 0));
|
|
17653
|
+
for (const surface of intentSurfaces) {
|
|
17654
|
+
const available = surface.availability?.allowed !== false;
|
|
17655
|
+
actionButtons.push({
|
|
17656
|
+
id: surface.id,
|
|
17657
|
+
label: surface.title || surface.id,
|
|
17658
|
+
icon: surface.icon || 'tune',
|
|
17659
|
+
...(surface.intent ? { intent: surface.intent } : {}),
|
|
17660
|
+
type: 'button',
|
|
17661
|
+
appearance: 'outlined',
|
|
17662
|
+
position: 'end',
|
|
17663
|
+
action: surface.id,
|
|
17664
|
+
actionConfig: surface,
|
|
17665
|
+
disabled: !available,
|
|
17666
|
+
tooltip: !available
|
|
17667
|
+
? translateUnavailableWorkflowMessage(this.i18n, surface.availability) ||
|
|
17668
|
+
surface.description ||
|
|
17669
|
+
undefined
|
|
17670
|
+
: surface.description || undefined,
|
|
17671
|
+
});
|
|
17672
|
+
}
|
|
17673
|
+
return actionButtons;
|
|
16830
17674
|
}
|
|
16831
17675
|
resolveDiscoveredBulkTableActions(capabilities) {
|
|
16832
17676
|
if (!capabilities) {
|
|
@@ -17006,6 +17850,7 @@ class PraxisCrudComponent {
|
|
|
17006
17850
|
const key = this.componentKeys.buildComponentId({
|
|
17007
17851
|
componentType: 'praxis-crud',
|
|
17008
17852
|
componentId: this.crudId,
|
|
17853
|
+
resourcePath: this.resolvedMetadata?.resource?.path || this._resource,
|
|
17009
17854
|
instanceKey: this.componentInstanceId,
|
|
17010
17855
|
componentRef: this,
|
|
17011
17856
|
route: this.route,
|
|
@@ -17090,7 +17935,7 @@ class PraxisCrudComponent {
|
|
|
17090
17935
|
return Object.entries(params).reduce((current, [name, value]) => current.split(`{${name}}`).join(value), text);
|
|
17091
17936
|
}
|
|
17092
17937
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisCrudComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17093
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: PraxisCrudComponent, isStandalone: true, selector: "praxis-crud", inputs: { metadata: "metadata", crudId: "crudId", resource: "resource", componentInstanceId: "componentInstanceId", tableConfigPersistenceStrategy: "tableConfigPersistenceStrategy", context: "context", enableCustomization: "enableCustomization", showResourceIdentityKey: "showResourceIdentityKey", authoringCapability: "authoringCapability", filterCriteria: "filterCriteria", filterTeleport: ["filterTeleport", "filterTeleport", booleanAttribute], disableAutoDrawer: ["disableAutoDrawer", "disableAutoDrawer", booleanAttribute], hostManagedChrome: ["hostManagedChrome", "hostManagedChrome", booleanAttribute] }, outputs: { configureRequested: "configureRequested", afterOpen: "afterOpen", afterClose: "afterClose", afterSave: "afterSave", afterDelete: "afterDelete", reactiveDeterminationExecuted: "reactiveDeterminationExecuted", reactiveDeterminationPendingChange: "reactiveDeterminationPendingChange", reactiveDeterminationStabilityChange: "reactiveDeterminationStabilityChange", error: "error", rowClick: "rowClick", rowAction: "rowAction", selectionChange: "selectionChange", resourceEvent: "resourceEvent", tableRuntimeConfigChange: "tableRuntimeConfigChange", drawerOpen: "drawerOpen", drawerClose: "drawerClose", crudAuthoringDocumentApplied: "crudAuthoringDocumentApplied", crudAuthoringDocumentSaved: "crudAuthoringDocumentSaved", filterCriteriaChange: "filterCriteriaChange", discoveredQuickFiltersChange: "discoveredQuickFiltersChange", kpiCardClick: "kpiCardClick" }, providers: [
|
|
17938
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: PraxisCrudComponent, isStandalone: true, selector: "praxis-crud", inputs: { metadata: "metadata", crudId: "crudId", resource: "resource", componentInstanceId: "componentInstanceId", tableConfigPersistenceStrategy: "tableConfigPersistenceStrategy", context: "context", enableCustomization: "enableCustomization", showResourceIdentityKey: "showResourceIdentityKey", authoringCapability: "authoringCapability", filterCriteria: "filterCriteria", lockedFilterFields: "lockedFilterFields", schemaFields: "schemaFields", filterTeleport: ["filterTeleport", "filterTeleport", booleanAttribute], disableAutoDrawer: ["disableAutoDrawer", "disableAutoDrawer", booleanAttribute], hostManagedChrome: ["hostManagedChrome", "hostManagedChrome", booleanAttribute] }, outputs: { configureRequested: "configureRequested", afterOpen: "afterOpen", afterClose: "afterClose", afterSave: "afterSave", afterDelete: "afterDelete", reactiveDeterminationExecuted: "reactiveDeterminationExecuted", reactiveDeterminationPendingChange: "reactiveDeterminationPendingChange", reactiveDeterminationStabilityChange: "reactiveDeterminationStabilityChange", error: "error", rowClick: "rowClick", rowAction: "rowAction", selectionChange: "selectionChange", resourceEvent: "resourceEvent", tableRuntimeConfigChange: "tableRuntimeConfigChange", drawerOpen: "drawerOpen", drawerClose: "drawerClose", crudAuthoringDocumentApplied: "crudAuthoringDocumentApplied", crudAuthoringDocumentSaved: "crudAuthoringDocumentSaved", filterCriteriaChange: "filterCriteriaChange", discoveredQuickFiltersChange: "discoveredQuickFiltersChange", kpiCardClick: "kpiCardClick" }, providers: [
|
|
17094
17939
|
providePraxisI18nConfig(RESOURCE_DISCOVERY_I18N_CONFIG),
|
|
17095
17940
|
providePraxisI18nConfig(PRAXIS_CRUD_RUNTIME_I18N_CONFIG),
|
|
17096
17941
|
], viewQueries: [{ propertyName: "kpiBand", first: true, predicate: PraxisKpiBandComponent, descendants: true }, { propertyName: "table", first: true, predicate: PraxisTable, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
@@ -17132,6 +17977,12 @@ class PraxisCrudComponent {
|
|
|
17132
17977
|
[isInteractiveHost]="isKpiInteractiveHost"
|
|
17133
17978
|
[endpointKey]="resolvedMetadata.resource?.endpointKey"
|
|
17134
17979
|
[apiUrlEntry]="resolvedMetadata.resource?.apiUrlEntry ?? null"
|
|
17980
|
+
[resourcePath]="resolveResourcePath(resolvedMetadata)"
|
|
17981
|
+
[resourceFacts]="discoveredResourceFacts"
|
|
17982
|
+
[quickFilters]="discoveredSchemaQuickFilters"
|
|
17983
|
+
[capabilities]="collectionCapabilities"
|
|
17984
|
+
[schemaMetadata]="discoveredSchemaMetadata"
|
|
17985
|
+
[baseFilter]="tableFilterCriteria"
|
|
17135
17986
|
(cardClick)="onKpiCardClick($event)"
|
|
17136
17987
|
/>
|
|
17137
17988
|
}
|
|
@@ -17154,6 +18005,7 @@ class PraxisCrudComponent {
|
|
|
17154
18005
|
[data]="resolveTableData(resolvedMetadata)"
|
|
17155
18006
|
[queryContext]="tableQueryContext"
|
|
17156
18007
|
[filterCriteria]="tableFilterCriteria"
|
|
18008
|
+
[lockedFilterFields]="effectiveLockedFilterFields"
|
|
17157
18009
|
[filterTeleport]="filterTeleport"
|
|
17158
18010
|
[tableId]="crudId || 'default'"
|
|
17159
18011
|
[configPersistenceStrategy]="resolvedTableConfigPersistenceStrategy"
|
|
@@ -17188,7 +18040,7 @@ class PraxisCrudComponent {
|
|
|
17188
18040
|
}
|
|
17189
18041
|
}
|
|
17190
18042
|
</div>
|
|
17191
|
-
`, isInline: true, styles: [":host{display:block;width:100%;min-width:0;max-width:100%}.praxis-crud-runtime{position:relative;min-width:0;display:flex;flex-direction:column;gap:16px}.praxis-crud-runtime__header{display:flex;justify-content:space-between;align-items:
|
|
18043
|
+
`, isInline: true, styles: [":host{display:block;width:100%;min-width:0;max-width:100%}.praxis-crud-runtime{position:relative;min-width:0;display:flex;flex-direction:column;gap:var(--praxis-crud-runtime-gap, 16px)}.praxis-crud-runtime__header{display:flex;justify-content:space-between;align-items:var(--praxis-header-align-items, center);gap:16px;flex-wrap:wrap;padding:var(--praxis-header-padding, 0);border-radius:var(--praxis-header-radius, 0);background:var(--praxis-header-bg, transparent);border:var(--praxis-header-border, none);box-shadow:var(--praxis-header-shadow, none)}.praxis-crud-runtime__header-main{min-width:0;display:flex;flex-direction:column}.praxis-crud-runtime__domain-badge{display:inline-flex;align-items:center;gap:6px;padding:var(--praxis-domain-badge-padding, 4px 10px);border-radius:9999px;font-size:var(--praxis-domain-badge-font-size, 11px);font-weight:var(--praxis-domain-badge-weight, var(--mat-sys-label-small-weight, 500));text-transform:uppercase;letter-spacing:.05em;margin-bottom:var(--praxis-domain-badge-margin-bottom, 8px);align-self:flex-start;background:var(--praxis-domain-badge-bg, rgba(255, 255, 255, .08));color:var(--praxis-domain-badge-color, inherit);border:1px solid var(--praxis-domain-badge-border, rgba(255, 255, 255, .1))}.praxis-crud-runtime__domain-badge.tone-primary,.praxis-crud-runtime__domain-badge.tone-info{background:color-mix(in srgb,var(--praxis-info, #0284c7) 14%,transparent);color:var(--praxis-info, #38bdf8);border-color:color-mix(in srgb,var(--praxis-info, #0284c7) 30%,transparent)}.praxis-crud-runtime__domain-badge.tone-accent{background:color-mix(in srgb,var(--praxis-primary, #6366f1) 14%,transparent);color:var(--praxis-primary, #818cf8);border-color:color-mix(in srgb,var(--praxis-primary, #6366f1) 30%,transparent)}.praxis-crud-runtime__domain-badge.tone-success{background:color-mix(in srgb,var(--praxis-success, #059669) 14%,transparent);color:var(--praxis-success, #34d399);border-color:color-mix(in srgb,var(--praxis-success, #059669) 30%,transparent)}.praxis-crud-runtime__domain-badge.tone-warning,.praxis-crud-runtime__domain-badge.tone-warn{background:color-mix(in srgb,var(--praxis-warning, #d97706) 14%,transparent);color:var(--praxis-warning, #fbbf24);border-color:color-mix(in srgb,var(--praxis-warning, #d97706) 30%,transparent)}.praxis-crud-runtime__domain-badge.tone-danger,.praxis-crud-runtime__domain-badge.tone-error{background:color-mix(in srgb,var(--praxis-error, #dc2626) 14%,transparent);color:var(--praxis-error, #f87171);border-color:color-mix(in srgb,var(--praxis-error, #dc2626) 30%,transparent)}.praxis-crud-runtime__domain-badge span.material-symbols-outlined{font-size:14px}.praxis-crud-runtime__title{margin:var(--praxis-page-title-margin, 0 0 6px 0);font-size:var(--praxis-page-title-size, 1.75rem);font-weight:var(--praxis-page-title-weight, var(--mat-sys-headline-medium-weight, 500));letter-spacing:-.02em;color:var(--praxis-page-title-color, var(--foreground, inherit));background:var(--praxis-page-title-bg, none);-webkit-text-fill-color:var(--praxis-page-title-fill-color, currentColor);line-height:1.2}.praxis-crud-runtime__subtitle{margin:var(--praxis-page-subtitle-margin, 0);font-size:var(--praxis-page-subtitle-size, .9rem);color:var(--muted-foreground, #94a3b8);max-width:800px;line-height:var(--praxis-page-subtitle-line-height, 1.5)}.praxis-crud-opening-status{position:absolute;z-index:6;top:.7rem;right:.7rem;display:inline-flex;align-items:center;gap:.55rem;min-height:2.25rem;max-width:min(24rem,calc(100% - 1.4rem));padding:.48rem .72rem;border:1px solid color-mix(in srgb,var(--md-sys-color-primary, #3f51b5) 32%,transparent);border-radius:999px;color:var(--md-sys-color-on-surface, currentColor);background:color-mix(in srgb,var(--md-sys-color-surface-container-high, var(--md-sys-color-surface)) 94%,transparent);box-shadow:0 10px 28px #0f172a29;font-size:.82rem;font-weight:650;line-height:1.25;pointer-events:none}.praxis-crud-opening-status__spinner{width:.95rem;height:.95rem;flex:0 0 auto;border:2px solid color-mix(in srgb,var(--md-sys-color-primary, #3f51b5) 26%,transparent);border-top-color:var(--md-sys-color-primary, #3f51b5);border-radius:50%;animation:praxis-crud-opening-spin .72s linear infinite}@keyframes praxis-crud-opening-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.praxis-crud-opening-status__spinner{animation:none;border-top-color:currentColor}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PraxisTable, selector: "praxis-table", inputs: ["config", "resourcePath", "collectionSurface", "data", "tableId", "componentInstanceId", "configPersistenceStrategy", "title", "subtitle", "icon", "autoDelete", "notifyIfOutdated", "snoozeMs", "autoOpenSettingsOnOutdated", "crudContext", "filterCriteria", "hostOwnsDefaultQuickFilter", "filterTeleport", "widgetId", "queryContext", "lockedFilterFields", "aiContext", "aiAssistantVoiceInputMode", "aiAssistantVoiceLanguage", "horizontalScroll", "enableCustomization", "authoringCapability", "dense"], outputs: ["filterCriteriaChange", "discoveredQuickFiltersChange", "queryContextClear", "queryContextChange", "rowClick", "widgetEvent", "resourceEvent", "rowDoubleClick", "rowExpansionChange", "rowAction", "toolbarAction", "bulkAction", "exportAction", "columnReorder", "columnReorderAttempt", "columnResize", "beforeDelete", "afterDelete", "deleteError", "beforeBulkDelete", "afterBulkDelete", "bulkDeleteError", "schemaStatusChange", "configChange", "metadataChange", "loadingStateChange", "collectionLinksChange", "selectionChange", "drawerOpen", "drawerClose", "drawerTabChange"] }, { kind: "component", type: EmptyStateCardComponent, selector: "praxis-empty-state-card", inputs: ["icon", "title", "description", "primaryAction", "secondaryActions", "inline", "tone", "variant", "alignment", "density", "iconContainer"] }, { kind: "component", type: PraxisKpiBandComponent, selector: "praxis-kpi-band", inputs: ["config", "dataContext", "isInteractiveHost", "activeFilter", "endpointKey", "apiUrlEntry", "resourcePath", "resourceFacts", "quickFilters", "capabilities", "schemaMetadata", "baseFilter"], outputs: ["cardClick", "statsLoaded", "statsError", "refreshClick"] }, { kind: "component", type: PraxisScopeBarComponent, selector: "praxis-scope-bar", inputs: ["config", "items", "activeId", "showOmnibox", "omniboxPlaceholder", "omniboxValue", "omniboxDebounceMs", "leadIcon", "leadLabel", "showClearButton", "clearLabel", "showActiveFilterSummary", "activeFilters", "filterLabels", "target", "targetWidgetId", "targetWidgetIds", "scopeBarId", "searchField"], outputs: ["activeIdChange", "omniboxValueChange", "activeFiltersChange", "scopeChange", "searchChange", "filterCriteriaChange", "clear"] }] });
|
|
17192
18044
|
}
|
|
17193
18045
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisCrudComponent, decorators: [{
|
|
17194
18046
|
type: Component,
|
|
@@ -17240,6 +18092,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
17240
18092
|
[isInteractiveHost]="isKpiInteractiveHost"
|
|
17241
18093
|
[endpointKey]="resolvedMetadata.resource?.endpointKey"
|
|
17242
18094
|
[apiUrlEntry]="resolvedMetadata.resource?.apiUrlEntry ?? null"
|
|
18095
|
+
[resourcePath]="resolveResourcePath(resolvedMetadata)"
|
|
18096
|
+
[resourceFacts]="discoveredResourceFacts"
|
|
18097
|
+
[quickFilters]="discoveredSchemaQuickFilters"
|
|
18098
|
+
[capabilities]="collectionCapabilities"
|
|
18099
|
+
[schemaMetadata]="discoveredSchemaMetadata"
|
|
18100
|
+
[baseFilter]="tableFilterCriteria"
|
|
17243
18101
|
(cardClick)="onKpiCardClick($event)"
|
|
17244
18102
|
/>
|
|
17245
18103
|
}
|
|
@@ -17262,6 +18120,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
17262
18120
|
[data]="resolveTableData(resolvedMetadata)"
|
|
17263
18121
|
[queryContext]="tableQueryContext"
|
|
17264
18122
|
[filterCriteria]="tableFilterCriteria"
|
|
18123
|
+
[lockedFilterFields]="effectiveLockedFilterFields"
|
|
17265
18124
|
[filterTeleport]="filterTeleport"
|
|
17266
18125
|
[tableId]="crudId || 'default'"
|
|
17267
18126
|
[configPersistenceStrategy]="resolvedTableConfigPersistenceStrategy"
|
|
@@ -17296,7 +18155,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
17296
18155
|
}
|
|
17297
18156
|
}
|
|
17298
18157
|
</div>
|
|
17299
|
-
`, styles: [":host{display:block;width:100%;min-width:0;max-width:100%}.praxis-crud-runtime{position:relative;min-width:0;display:flex;flex-direction:column;gap:16px}.praxis-crud-runtime__header{display:flex;justify-content:space-between;align-items:
|
|
18158
|
+
`, styles: [":host{display:block;width:100%;min-width:0;max-width:100%}.praxis-crud-runtime{position:relative;min-width:0;display:flex;flex-direction:column;gap:var(--praxis-crud-runtime-gap, 16px)}.praxis-crud-runtime__header{display:flex;justify-content:space-between;align-items:var(--praxis-header-align-items, center);gap:16px;flex-wrap:wrap;padding:var(--praxis-header-padding, 0);border-radius:var(--praxis-header-radius, 0);background:var(--praxis-header-bg, transparent);border:var(--praxis-header-border, none);box-shadow:var(--praxis-header-shadow, none)}.praxis-crud-runtime__header-main{min-width:0;display:flex;flex-direction:column}.praxis-crud-runtime__domain-badge{display:inline-flex;align-items:center;gap:6px;padding:var(--praxis-domain-badge-padding, 4px 10px);border-radius:9999px;font-size:var(--praxis-domain-badge-font-size, 11px);font-weight:var(--praxis-domain-badge-weight, var(--mat-sys-label-small-weight, 500));text-transform:uppercase;letter-spacing:.05em;margin-bottom:var(--praxis-domain-badge-margin-bottom, 8px);align-self:flex-start;background:var(--praxis-domain-badge-bg, rgba(255, 255, 255, .08));color:var(--praxis-domain-badge-color, inherit);border:1px solid var(--praxis-domain-badge-border, rgba(255, 255, 255, .1))}.praxis-crud-runtime__domain-badge.tone-primary,.praxis-crud-runtime__domain-badge.tone-info{background:color-mix(in srgb,var(--praxis-info, #0284c7) 14%,transparent);color:var(--praxis-info, #38bdf8);border-color:color-mix(in srgb,var(--praxis-info, #0284c7) 30%,transparent)}.praxis-crud-runtime__domain-badge.tone-accent{background:color-mix(in srgb,var(--praxis-primary, #6366f1) 14%,transparent);color:var(--praxis-primary, #818cf8);border-color:color-mix(in srgb,var(--praxis-primary, #6366f1) 30%,transparent)}.praxis-crud-runtime__domain-badge.tone-success{background:color-mix(in srgb,var(--praxis-success, #059669) 14%,transparent);color:var(--praxis-success, #34d399);border-color:color-mix(in srgb,var(--praxis-success, #059669) 30%,transparent)}.praxis-crud-runtime__domain-badge.tone-warning,.praxis-crud-runtime__domain-badge.tone-warn{background:color-mix(in srgb,var(--praxis-warning, #d97706) 14%,transparent);color:var(--praxis-warning, #fbbf24);border-color:color-mix(in srgb,var(--praxis-warning, #d97706) 30%,transparent)}.praxis-crud-runtime__domain-badge.tone-danger,.praxis-crud-runtime__domain-badge.tone-error{background:color-mix(in srgb,var(--praxis-error, #dc2626) 14%,transparent);color:var(--praxis-error, #f87171);border-color:color-mix(in srgb,var(--praxis-error, #dc2626) 30%,transparent)}.praxis-crud-runtime__domain-badge span.material-symbols-outlined{font-size:14px}.praxis-crud-runtime__title{margin:var(--praxis-page-title-margin, 0 0 6px 0);font-size:var(--praxis-page-title-size, 1.75rem);font-weight:var(--praxis-page-title-weight, var(--mat-sys-headline-medium-weight, 500));letter-spacing:-.02em;color:var(--praxis-page-title-color, var(--foreground, inherit));background:var(--praxis-page-title-bg, none);-webkit-text-fill-color:var(--praxis-page-title-fill-color, currentColor);line-height:1.2}.praxis-crud-runtime__subtitle{margin:var(--praxis-page-subtitle-margin, 0);font-size:var(--praxis-page-subtitle-size, .9rem);color:var(--muted-foreground, #94a3b8);max-width:800px;line-height:var(--praxis-page-subtitle-line-height, 1.5)}.praxis-crud-opening-status{position:absolute;z-index:6;top:.7rem;right:.7rem;display:inline-flex;align-items:center;gap:.55rem;min-height:2.25rem;max-width:min(24rem,calc(100% - 1.4rem));padding:.48rem .72rem;border:1px solid color-mix(in srgb,var(--md-sys-color-primary, #3f51b5) 32%,transparent);border-radius:999px;color:var(--md-sys-color-on-surface, currentColor);background:color-mix(in srgb,var(--md-sys-color-surface-container-high, var(--md-sys-color-surface)) 94%,transparent);box-shadow:0 10px 28px #0f172a29;font-size:.82rem;font-weight:650;line-height:1.25;pointer-events:none}.praxis-crud-opening-status__spinner{width:.95rem;height:.95rem;flex:0 0 auto;border:2px solid color-mix(in srgb,var(--md-sys-color-primary, #3f51b5) 26%,transparent);border-top-color:var(--md-sys-color-primary, #3f51b5);border-radius:50%;animation:praxis-crud-opening-spin .72s linear infinite}@keyframes praxis-crud-opening-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.praxis-crud-opening-status__spinner{animation:none;border-top-color:currentColor}}\n"] }]
|
|
17300
18159
|
}], ctorParameters: () => [], propDecorators: { metadata: [{
|
|
17301
18160
|
type: Input
|
|
17302
18161
|
}], crudId: [{
|
|
@@ -17317,6 +18176,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
17317
18176
|
type: Input
|
|
17318
18177
|
}], filterCriteria: [{
|
|
17319
18178
|
type: Input
|
|
18179
|
+
}], lockedFilterFields: [{
|
|
18180
|
+
type: Input
|
|
18181
|
+
}], schemaFields: [{
|
|
18182
|
+
type: Input
|
|
17320
18183
|
}], filterTeleport: [{
|
|
17321
18184
|
type: Input,
|
|
17322
18185
|
args: [{ transform: booleanAttribute }]
|
|
@@ -17386,7 +18249,7 @@ function createCrudFormRoute(target) {
|
|
|
17386
18249
|
return {
|
|
17387
18250
|
path: target.path,
|
|
17388
18251
|
data: { crudFormTarget: { formId: target.formId, resourcePath: target.resourcePath } },
|
|
17389
|
-
loadComponent: () => import('./praxisui-crud-crud-route-form.component-
|
|
18252
|
+
loadComponent: () => import('./praxisui-crud-crud-route-form.component-DADRjFi0.mjs').then(m => m.CrudRouteFormComponent),
|
|
17390
18253
|
canDeactivate: [(component) => component.canLeave()],
|
|
17391
18254
|
};
|
|
17392
18255
|
}
|
|
@@ -17875,6 +18738,7 @@ class DynamicFormDialogHostComponent {
|
|
|
17875
18738
|
const scopedFormKeyId = this.componentKeys?.buildComponentId({
|
|
17876
18739
|
componentType: 'praxis-dynamic-form',
|
|
17877
18740
|
componentId: trimmed,
|
|
18741
|
+
resourcePath: this.resourcePath || undefined,
|
|
17878
18742
|
requireComponentId: true,
|
|
17879
18743
|
});
|
|
17880
18744
|
const fallback = trimmed === formId ? fallbackComponentKeyId : '';
|
|
@@ -18356,7 +19220,7 @@ class DynamicFormDialogHostComponent {
|
|
|
18356
19220
|
(reactiveDeterminationPendingChange)="onReactiveDeterminationPendingChange($event)"
|
|
18357
19221
|
></praxis-dynamic-form>
|
|
18358
19222
|
</mat-dialog-content>
|
|
18359
|
-
`, isInline: true, styles: ["praxis-dynamic-form-dialog-host{--dlg-header-h: 56px;--dlg-footer-h: 56px;--dlg-pad: 16px;display:flex;flex-direction:column;height:100%;overflow:hidden}praxis-dynamic-form-dialog-host[data-density=compact]{--dlg-header-h: 44px;--dlg-footer-h: 44px;--dlg-pad: 12px}praxis-dynamic-form-dialog-host .dialog-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:var(--dlg-pad);min-height:var(--dlg-header-h);padding:10px var(--dlg-pad);margin:0;background:var(--pfx-dialog-header-bg, var(--md-sys-color-surface-container-high));border-bottom:1px solid var(--pfx-dialog-header-border, var(--md-sys-color-outline-variant));color:var(--md-sys-color-on-surface)}praxis-dynamic-form-dialog-host .dialog-title{margin:0;font-family:var(--pfx-dialog-title-font, var(--font-display, var(--md-sys-typescale-title-large-font-family, inherit)));font-size:var(--md-sys-typescale-title-large-font-size, 1.25rem);line-height:var(--md-sys-typescale-title-large-line-height, 1.4);font-weight:var(--pfx-dialog-title-weight, var(--
|
|
19223
|
+
`, isInline: true, styles: ["praxis-dynamic-form-dialog-host{--dlg-header-h: 56px;--dlg-footer-h: 56px;--dlg-pad: 16px;display:flex;flex-direction:column;height:100%;overflow:hidden}praxis-dynamic-form-dialog-host[data-density=compact]{--dlg-header-h: 44px;--dlg-footer-h: 44px;--dlg-pad: 12px}praxis-dynamic-form-dialog-host .dialog-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:var(--dlg-pad);min-height:var(--dlg-header-h);padding:10px var(--dlg-pad);margin:0;background:var(--pfx-dialog-header-bg, var(--md-sys-color-surface-container-high));border-bottom:1px solid var(--pfx-dialog-header-border, var(--md-sys-color-outline-variant));color:var(--md-sys-color-on-surface)}praxis-dynamic-form-dialog-host .dialog-title{margin:0;font-family:var(--pfx-dialog-title-font, var(--font-display, var(--md-sys-typescale-title-large-font-family, inherit)));font-size:var(--md-sys-typescale-title-large-font-size, 1.25rem);line-height:var(--md-sys-typescale-title-large-line-height, 1.4);font-weight:var(--pfx-dialog-title-weight, var(--mat-sys-headline-small-weight, 500));color:var(--md-sys-color-on-surface)}praxis-dynamic-form-dialog-host .dialog-heading{display:grid;min-width:0;gap:2px}praxis-dynamic-form-dialog-host .dialog-title-icon{display:inline-grid;flex:0 0 auto;width:36px;height:36px;place-items:center;border-radius:10px;color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary) 12%,transparent)}praxis-dynamic-form-dialog-host .dialog-title-icon mat-icon{width:22px;height:22px;font-size:22px}praxis-dynamic-form-dialog-host .dialog-subtitle{display:block;overflow-wrap:anywhere;color:var(--md-sys-color-on-surface-variant);font-size:.82rem;font-weight:400;line-height:1.35}praxis-dynamic-form-dialog-host .spacer{flex:1}praxis-dynamic-form-dialog-host .dialog-content{flex:1 1 auto;min-width:0;max-width:100%;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;padding:var(--dlg-pad);max-height:calc(100svh - var(--dlg-header-h) - 32px)}praxis-dynamic-form-dialog-host .dialog-content>praxis-dynamic-form>.entity-read-region>.praxis-dynamic-form>praxis-form-actions[data-actions-placement=afterSections],praxis-dynamic-form-dialog-host .dialog-content>praxis-dynamic-form>.praxis-dynamic-form>praxis-form-actions[data-actions-placement=afterSections]{position:sticky;bottom:calc(-1 * var(--dlg-pad));z-index:2;padding:12px var(--dlg-pad);margin-inline:calc(-1 * var(--dlg-pad));margin-bottom:calc(-1 * var(--dlg-pad));background:color-mix(in srgb,var(--pfx-form-surface, var(--md-sys-color-surface)) 94%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid var(--md-sys-color-outline-variant)}praxis-dynamic-form-dialog-host .crud-operation-context{position:sticky;top:0;z-index:1;display:grid;gap:.75rem;margin-block-end:var(--dlg-pad);padding-block:.5rem .75rem;background:var(--pfx-form-surface, var(--md-sys-color-surface));border-bottom:1px solid var(--md-sys-color-outline-variant)}praxis-dynamic-form-dialog-host .crud-resource-identity{display:grid;gap:.25rem;min-width:0}praxis-dynamic-form-dialog-host .crud-resource-identity__label{color:var(--md-sys-color-on-surface-variant);font:var(--md-sys-typescale-label-medium, 500 .75rem/1rem inherit)}praxis-dynamic-form-dialog-host.praxis-drawer{--dlg-header-h: 72px;width:100%;min-width:0;max-width:100vw;height:100dvh;background:var(--pfx-form-surface, var(--md-sys-color-surface));backdrop-filter:var(--pfx-form-backdrop-filter, none);-webkit-backdrop-filter:var(--pfx-form-backdrop-filter, none);color:var(--md-sys-color-on-surface)}praxis-dynamic-form-dialog-host.praxis-drawer .dialog-header{background:var( --pfx-dialog-header-bg, color-mix( in srgb, var(--md-sys-color-surface-container-high, var(--md-sys-color-surface)), transparent 4% ) )}@media(prefers-reduced-transparency:reduce){praxis-dynamic-form-dialog-host.praxis-drawer{background:var(--pfx-form-fallback-surface, var(--md-sys-color-surface));backdrop-filter:none;-webkit-backdrop-filter:none}}praxis-dynamic-form-dialog-host.praxis-drawer .dialog-content{--dlg-pad: clamp(12px, 2.4vw, 24px);display:flex;flex-direction:column;max-height:none;min-height:0;padding:var(--dlg-pad)}praxis-dynamic-form-dialog-host.praxis-drawer .dialog-content>praxis-dynamic-form{display:block;flex:1 1 auto;min-height:0}praxis-dynamic-form-dialog-host.praxis-drawer .dialog-content>praxis-dynamic-form>.entity-read-region>.praxis-dynamic-form,praxis-dynamic-form-dialog-host.praxis-drawer .dialog-content>praxis-dynamic-form>.praxis-dynamic-form{min-height:100%}praxis-dynamic-form-dialog-host.praxis-drawer .dialog-content>praxis-dynamic-form>.entity-read-region>.praxis-dynamic-form>praxis-form-actions[data-actions-placement=afterSections],praxis-dynamic-form-dialog-host.praxis-drawer .dialog-content>praxis-dynamic-form>.praxis-dynamic-form>praxis-form-actions[data-actions-placement=afterSections]{margin-top:auto;padding-top:var(--pfx-actions-gap-top, var(--pfx-section-gap, 20px))}praxis-dynamic-form-dialog-host.praxis-surface-frame .dialog-content{--dlg-pad: clamp(12px, 2.4vw, 24px);max-height:none;min-height:0;padding:var(--dlg-pad)}praxis-dynamic-form-dialog-host .dialog-header button.praxis-icon-button{color:var(--md-sys-color-on-surface-variant)}praxis-dynamic-form-dialog-host .dialog-header button.praxis-icon-button:hover{color:var(--md-sys-color-primary)}praxis-dynamic-form-dialog-host .dialog-footer{position:sticky;bottom:0;z-index:1;padding:var(--dlg-pad)}.pfx-blur-backdrop{background-color:var(--pfx-backdrop, rgba(15, 23, 42, .42))!important;backdrop-filter:blur(var(--pfx-backdrop-blur, 10px)) saturate(110%);-webkit-backdrop-filter:blur(var(--pfx-backdrop-blur, 10px)) saturate(110%)}.pfx-transparent-backdrop{background-color:transparent!important}.cdk-overlay-pane.pfx-dialog-pane{overflow:hidden;transition:width .2s ease,height .2s ease,margin .2s ease}.cdk-overlay-pane.pfx-dialog-pane .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-dialog-pane .mdc-dialog__surface{display:flex;flex-direction:column;width:100%;min-width:0;height:100%;max-height:inherit;overflow:hidden;background:var(--pfx-form-surface, var(--md-sys-color-surface))!important;border:1px solid var(--pfx-form-stroke, var(--md-sys-color-outline-variant))!important}.cdk-overlay-pane.pfx-dialog-pane.pfx-dialog-frosted .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-dialog-pane.pfx-dialog-frosted .mdc-dialog__surface{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.cdk-overlay-pane.pfx-drawer-pane{margin:0!important;border-radius:0!important;box-shadow:var(--md-sys-elevation-level3, 0 24px 80px rgba(15, 23, 42, .28)),0 0 0 1px color-mix(in srgb,var(--md-sys-color-outline, #64748b) 24%,transparent)}.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized{margin:var(--pfx-drawer-edge-gap, 8px)!important}.cdk-overlay-pane.pfx-drawer-pane .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane .mdc-dialog__surface{min-width:0!important;border-radius:0!important}\n"], dependencies: [{ kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "component", type: PraxisResourceIdentityComponent, selector: "praxis-resource-identity", inputs: ["identity", "emptyTitle", "density", "showMetadataLabels", "showKey", "showKeyLabel", "ariaLabel"] }, { kind: "component", type: PraxisDynamicForm, selector: "praxis-dynamic-form", inputs: ["resourcePath", "resourceId", "initialValue", "emptyState", "editorialContext", "mode", "config", "actions", "schemaSource", "actionId", "operationId", "schemaUrl", "readUrl", "submitUrl", "submitMethod", "submitIdempotencyKey", "submitCorrelationId", "submitResourceVersion", "submitResourceVersionTargetResourceKey", "submitResourceVersionTargetIdField", "responseSchemaUrl", "apiEndpointKey", "apiUrlEntry", "enableCustomization", "showAiAssistant", "formId", "componentInstanceId", "configPersistenceStrategy", "layout", "layoutMode", "formLayout", "generatedLayoutPreset", "layoutPolicy", "backConfig", "hooks", "removeEmptyContainersOnSave", "reactiveValidation", "reactiveValidationDebounceMs", "notifyIfOutdated", "snoozeMs", "autoOpenSettingsOnOutdated", "readonlyModeGlobal", "disabledModeGlobal", "presentationModeGlobal", "presentation", "presentationPreset", "sectionDefaultAppearance", "sectionDivider", "visibleGlobal", "fieldIconPolicy", "domainRules", "customEndpoints", "activeStepIndex"], outputs: ["formSubmit", "formCancel", "formReset", "configChange", "configPatchChange", "formReady", "valueChange", "payloadPreviewChange", "syncCompleted", "initializationError", "loadingStateChange", "enableCustomizationChange", "customAction", "actionConfirmation", "schemaStatusChange", "fieldRenderError", "ruleDiagnosticsChange", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "tabChange", "tabSelected", "stepChange"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
18360
19224
|
}
|
|
18361
19225
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: DynamicFormDialogHostComponent, decorators: [{
|
|
18362
19226
|
type: Component,
|
|
@@ -18489,7 +19353,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
18489
19353
|
(reactiveDeterminationPendingChange)="onReactiveDeterminationPendingChange($event)"
|
|
18490
19354
|
></praxis-dynamic-form>
|
|
18491
19355
|
</mat-dialog-content>
|
|
18492
|
-
`, styles: ["praxis-dynamic-form-dialog-host{--dlg-header-h: 56px;--dlg-footer-h: 56px;--dlg-pad: 16px;display:flex;flex-direction:column;height:100%;overflow:hidden}praxis-dynamic-form-dialog-host[data-density=compact]{--dlg-header-h: 44px;--dlg-footer-h: 44px;--dlg-pad: 12px}praxis-dynamic-form-dialog-host .dialog-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:var(--dlg-pad);min-height:var(--dlg-header-h);padding:10px var(--dlg-pad);margin:0;background:var(--pfx-dialog-header-bg, var(--md-sys-color-surface-container-high));border-bottom:1px solid var(--pfx-dialog-header-border, var(--md-sys-color-outline-variant));color:var(--md-sys-color-on-surface)}praxis-dynamic-form-dialog-host .dialog-title{margin:0;font-family:var(--pfx-dialog-title-font, var(--font-display, var(--md-sys-typescale-title-large-font-family, inherit)));font-size:var(--md-sys-typescale-title-large-font-size, 1.25rem);line-height:var(--md-sys-typescale-title-large-line-height, 1.4);font-weight:var(--pfx-dialog-title-weight, var(--
|
|
19356
|
+
`, styles: ["praxis-dynamic-form-dialog-host{--dlg-header-h: 56px;--dlg-footer-h: 56px;--dlg-pad: 16px;display:flex;flex-direction:column;height:100%;overflow:hidden}praxis-dynamic-form-dialog-host[data-density=compact]{--dlg-header-h: 44px;--dlg-footer-h: 44px;--dlg-pad: 12px}praxis-dynamic-form-dialog-host .dialog-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:var(--dlg-pad);min-height:var(--dlg-header-h);padding:10px var(--dlg-pad);margin:0;background:var(--pfx-dialog-header-bg, var(--md-sys-color-surface-container-high));border-bottom:1px solid var(--pfx-dialog-header-border, var(--md-sys-color-outline-variant));color:var(--md-sys-color-on-surface)}praxis-dynamic-form-dialog-host .dialog-title{margin:0;font-family:var(--pfx-dialog-title-font, var(--font-display, var(--md-sys-typescale-title-large-font-family, inherit)));font-size:var(--md-sys-typescale-title-large-font-size, 1.25rem);line-height:var(--md-sys-typescale-title-large-line-height, 1.4);font-weight:var(--pfx-dialog-title-weight, var(--mat-sys-headline-small-weight, 500));color:var(--md-sys-color-on-surface)}praxis-dynamic-form-dialog-host .dialog-heading{display:grid;min-width:0;gap:2px}praxis-dynamic-form-dialog-host .dialog-title-icon{display:inline-grid;flex:0 0 auto;width:36px;height:36px;place-items:center;border-radius:10px;color:var(--md-sys-color-primary);background:color-mix(in srgb,var(--md-sys-color-primary) 12%,transparent)}praxis-dynamic-form-dialog-host .dialog-title-icon mat-icon{width:22px;height:22px;font-size:22px}praxis-dynamic-form-dialog-host .dialog-subtitle{display:block;overflow-wrap:anywhere;color:var(--md-sys-color-on-surface-variant);font-size:.82rem;font-weight:400;line-height:1.35}praxis-dynamic-form-dialog-host .spacer{flex:1}praxis-dynamic-form-dialog-host .dialog-content{flex:1 1 auto;min-width:0;max-width:100%;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;padding:var(--dlg-pad);max-height:calc(100svh - var(--dlg-header-h) - 32px)}praxis-dynamic-form-dialog-host .dialog-content>praxis-dynamic-form>.entity-read-region>.praxis-dynamic-form>praxis-form-actions[data-actions-placement=afterSections],praxis-dynamic-form-dialog-host .dialog-content>praxis-dynamic-form>.praxis-dynamic-form>praxis-form-actions[data-actions-placement=afterSections]{position:sticky;bottom:calc(-1 * var(--dlg-pad));z-index:2;padding:12px var(--dlg-pad);margin-inline:calc(-1 * var(--dlg-pad));margin-bottom:calc(-1 * var(--dlg-pad));background:color-mix(in srgb,var(--pfx-form-surface, var(--md-sys-color-surface)) 94%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid var(--md-sys-color-outline-variant)}praxis-dynamic-form-dialog-host .crud-operation-context{position:sticky;top:0;z-index:1;display:grid;gap:.75rem;margin-block-end:var(--dlg-pad);padding-block:.5rem .75rem;background:var(--pfx-form-surface, var(--md-sys-color-surface));border-bottom:1px solid var(--md-sys-color-outline-variant)}praxis-dynamic-form-dialog-host .crud-resource-identity{display:grid;gap:.25rem;min-width:0}praxis-dynamic-form-dialog-host .crud-resource-identity__label{color:var(--md-sys-color-on-surface-variant);font:var(--md-sys-typescale-label-medium, 500 .75rem/1rem inherit)}praxis-dynamic-form-dialog-host.praxis-drawer{--dlg-header-h: 72px;width:100%;min-width:0;max-width:100vw;height:100dvh;background:var(--pfx-form-surface, var(--md-sys-color-surface));backdrop-filter:var(--pfx-form-backdrop-filter, none);-webkit-backdrop-filter:var(--pfx-form-backdrop-filter, none);color:var(--md-sys-color-on-surface)}praxis-dynamic-form-dialog-host.praxis-drawer .dialog-header{background:var( --pfx-dialog-header-bg, color-mix( in srgb, var(--md-sys-color-surface-container-high, var(--md-sys-color-surface)), transparent 4% ) )}@media(prefers-reduced-transparency:reduce){praxis-dynamic-form-dialog-host.praxis-drawer{background:var(--pfx-form-fallback-surface, var(--md-sys-color-surface));backdrop-filter:none;-webkit-backdrop-filter:none}}praxis-dynamic-form-dialog-host.praxis-drawer .dialog-content{--dlg-pad: clamp(12px, 2.4vw, 24px);display:flex;flex-direction:column;max-height:none;min-height:0;padding:var(--dlg-pad)}praxis-dynamic-form-dialog-host.praxis-drawer .dialog-content>praxis-dynamic-form{display:block;flex:1 1 auto;min-height:0}praxis-dynamic-form-dialog-host.praxis-drawer .dialog-content>praxis-dynamic-form>.entity-read-region>.praxis-dynamic-form,praxis-dynamic-form-dialog-host.praxis-drawer .dialog-content>praxis-dynamic-form>.praxis-dynamic-form{min-height:100%}praxis-dynamic-form-dialog-host.praxis-drawer .dialog-content>praxis-dynamic-form>.entity-read-region>.praxis-dynamic-form>praxis-form-actions[data-actions-placement=afterSections],praxis-dynamic-form-dialog-host.praxis-drawer .dialog-content>praxis-dynamic-form>.praxis-dynamic-form>praxis-form-actions[data-actions-placement=afterSections]{margin-top:auto;padding-top:var(--pfx-actions-gap-top, var(--pfx-section-gap, 20px))}praxis-dynamic-form-dialog-host.praxis-surface-frame .dialog-content{--dlg-pad: clamp(12px, 2.4vw, 24px);max-height:none;min-height:0;padding:var(--dlg-pad)}praxis-dynamic-form-dialog-host .dialog-header button.praxis-icon-button{color:var(--md-sys-color-on-surface-variant)}praxis-dynamic-form-dialog-host .dialog-header button.praxis-icon-button:hover{color:var(--md-sys-color-primary)}praxis-dynamic-form-dialog-host .dialog-footer{position:sticky;bottom:0;z-index:1;padding:var(--dlg-pad)}.pfx-blur-backdrop{background-color:var(--pfx-backdrop, rgba(15, 23, 42, .42))!important;backdrop-filter:blur(var(--pfx-backdrop-blur, 10px)) saturate(110%);-webkit-backdrop-filter:blur(var(--pfx-backdrop-blur, 10px)) saturate(110%)}.pfx-transparent-backdrop{background-color:transparent!important}.cdk-overlay-pane.pfx-dialog-pane{overflow:hidden;transition:width .2s ease,height .2s ease,margin .2s ease}.cdk-overlay-pane.pfx-dialog-pane .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-dialog-pane .mdc-dialog__surface{display:flex;flex-direction:column;width:100%;min-width:0;height:100%;max-height:inherit;overflow:hidden;background:var(--pfx-form-surface, var(--md-sys-color-surface))!important;border:1px solid var(--pfx-form-stroke, var(--md-sys-color-outline-variant))!important}.cdk-overlay-pane.pfx-dialog-pane.pfx-dialog-frosted .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-dialog-pane.pfx-dialog-frosted .mdc-dialog__surface{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.cdk-overlay-pane.pfx-drawer-pane{margin:0!important;border-radius:0!important;box-shadow:var(--md-sys-elevation-level3, 0 24px 80px rgba(15, 23, 42, .28)),0 0 0 1px color-mix(in srgb,var(--md-sys-color-outline, #64748b) 24%,transparent)}.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized{margin:var(--pfx-drawer-edge-gap, 8px)!important}.cdk-overlay-pane.pfx-drawer-pane .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane .mdc-dialog__surface{min-width:0!important;border-radius:0!important}\n"] }]
|
|
18493
19357
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
18494
19358
|
type: Optional
|
|
18495
19359
|
}, {
|
|
@@ -19620,7 +20484,7 @@ const kpiBandSchema = {
|
|
|
19620
20484
|
columns: { enum: [2, 3, 4] },
|
|
19621
20485
|
source: {
|
|
19622
20486
|
type: 'string',
|
|
19623
|
-
description:
|
|
20487
|
+
description: "Endpoint de telemetria agregada (/stats/group-by ou /filter?page=0&size=1) ou 'schema' para auto-hidratação via /schemas/filtered, x-ui.resourceFacts, capabilities.stats e @QuickFilter.",
|
|
19624
20488
|
},
|
|
19625
20489
|
method: { enum: ['GET', 'POST'] },
|
|
19626
20490
|
payload: { type: 'object' },
|
|
@@ -20160,22 +21024,1487 @@ const PRAXIS_CRUD_AUTHORING_MANIFEST = {
|
|
|
20160
21024
|
],
|
|
20161
21025
|
};
|
|
20162
21026
|
|
|
20163
|
-
|
|
20164
|
-
|
|
20165
|
-
|
|
20166
|
-
|
|
20167
|
-
|
|
20168
|
-
|
|
20169
|
-
|
|
20170
|
-
|
|
20171
|
-
|
|
20172
|
-
|
|
20173
|
-
|
|
20174
|
-
|
|
20175
|
-
|
|
20176
|
-
|
|
20177
|
-
|
|
20178
|
-
|
|
21027
|
+
class PraxisDossierPageComponent {
|
|
21028
|
+
resourcePath = input(null, ...(ngDevMode ? [{ debugName: "resourcePath" }] : /* istanbul ignore next */ []));
|
|
21029
|
+
masterRecordId = input(null, ...(ngDevMode ? [{ debugName: "masterRecordId" }] : /* istanbul ignore next */ []));
|
|
21030
|
+
idField = input(null, ...(ngDevMode ? [{ debugName: "idField" }] : /* istanbul ignore next */ []));
|
|
21031
|
+
endpointKey = input(null, ...(ngDevMode ? [{ debugName: "endpointKey" }] : /* istanbul ignore next */ []));
|
|
21032
|
+
apiUrlEntry = input(null, ...(ngDevMode ? [{ debugName: "apiUrlEntry" }] : /* istanbul ignore next */ []));
|
|
21033
|
+
metadata = input(null, ...(ngDevMode ? [{ debugName: "metadata" }] : /* istanbul ignore next */ []));
|
|
21034
|
+
title = input(null, ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
21035
|
+
subtitle = input(null, ...(ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []));
|
|
21036
|
+
eyebrow = input(null, ...(ngDevMode ? [{ debugName: "eyebrow" }] : /* istanbul ignore next */ []));
|
|
21037
|
+
siblingRecords = input(null, ...(ngDevMode ? [{ debugName: "siblingRecords" }] : /* istanbul ignore next */ []));
|
|
21038
|
+
childSurfaces = input(null, ...(ngDevMode ? [{ debugName: "childSurfaces" }] : /* istanbul ignore next */ []));
|
|
21039
|
+
showSiblingSwitcher = input(true, ...(ngDevMode ? [{ debugName: "showSiblingSwitcher" }] : /* istanbul ignore next */ []));
|
|
21040
|
+
showCapabilitiesSync = input(true, ...(ngDevMode ? [{ debugName: "showCapabilitiesSync" }] : /* istanbul ignore next */ []));
|
|
21041
|
+
showRecordFormToggle = input(true, ...(ngDevMode ? [{ debugName: "showRecordFormToggle" }] : /* istanbul ignore next */ []));
|
|
21042
|
+
showOverviewTab = input(true, ...(ngDevMode ? [{ debugName: "showOverviewTab" }] : /* istanbul ignore next */ []));
|
|
21043
|
+
showKpiBand = input(false, ...(ngDevMode ? [{ debugName: "showKpiBand" }] : /* istanbul ignore next */ []));
|
|
21044
|
+
autoSelectFirst = input(true, ...(ngDevMode ? [{ debugName: "autoSelectFirst" }] : /* istanbul ignore next */ []));
|
|
21045
|
+
surfaceVariant = input('default', ...(ngDevMode ? [{ debugName: "surfaceVariant" }] : /* istanbul ignore next */ []));
|
|
21046
|
+
masterRecordChange = output();
|
|
21047
|
+
masterRecordIdChange = output();
|
|
21048
|
+
actionExecuted = output();
|
|
21049
|
+
childSurfaceChange = output();
|
|
21050
|
+
capabilitiesLoaded = output();
|
|
21051
|
+
dossierError = output();
|
|
21052
|
+
http = inject(HttpClient);
|
|
21053
|
+
destroyRef = inject(DestroyRef);
|
|
21054
|
+
injector = inject(Injector);
|
|
21055
|
+
route = inject(ActivatedRoute, { optional: true });
|
|
21056
|
+
apiUrl = inject(API_URL, { optional: true });
|
|
21057
|
+
i18n = inject(PraxisI18nService, { optional: true });
|
|
21058
|
+
schemaNormalizer = inject(SchemaNormalizerService, { optional: true });
|
|
21059
|
+
resourceDiscovery = inject(ResourceDiscoveryService, { optional: true });
|
|
21060
|
+
surfaceOpenAdapter = inject(ResourceSurfaceOpenAdapterService, { optional: true });
|
|
21061
|
+
actionOpenAdapter = inject(ResourceActionOpenAdapterService, { optional: true });
|
|
21062
|
+
surfaceService = inject(GLOBAL_SURFACE_SERVICE, { optional: true });
|
|
21063
|
+
runtimeContext = inject(EnterpriseRuntimeContextService, { optional: true });
|
|
21064
|
+
routeResourceSignal = signal(null, ...(ngDevMode ? [{ debugName: "routeResourceSignal" }] : /* istanbul ignore next */ []));
|
|
21065
|
+
routeRecordIdSignal = signal(null, ...(ngDevMode ? [{ debugName: "routeRecordIdSignal" }] : /* istanbul ignore next */ []));
|
|
21066
|
+
routeTitleSignal = signal(null, ...(ngDevMode ? [{ debugName: "routeTitleSignal" }] : /* istanbul ignore next */ []));
|
|
21067
|
+
selectedRecordIdSignal = signal(null, ...(ngDevMode ? [{ debugName: "selectedRecordIdSignal" }] : /* istanbul ignore next */ []));
|
|
21068
|
+
revealedFieldsSignal = signal(new Set(), ...(ngDevMode ? [{ debugName: "revealedFieldsSignal" }] : /* istanbul ignore next */ []));
|
|
21069
|
+
switcherFilterSignal = signal('', ...(ngDevMode ? [{ debugName: "switcherFilterSignal" }] : /* istanbul ignore next */ []));
|
|
21070
|
+
reloadTriggerSignal = signal(0, ...(ngDevMode ? [{ debugName: "reloadTriggerSignal" }] : /* istanbul ignore next */ []));
|
|
21071
|
+
loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
21072
|
+
hasError = signal(false, ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
21073
|
+
syncingCapabilities = signal(false, ...(ngDevMode ? [{ debugName: "syncingCapabilities" }] : /* istanbul ignore next */ []));
|
|
21074
|
+
capabilitiesSynced = signal(false, ...(ngDevMode ? [{ debugName: "capabilitiesSynced" }] : /* istanbul ignore next */ []));
|
|
21075
|
+
switcherOpen = signal(false, ...(ngDevMode ? [{ debugName: "switcherOpen" }] : /* istanbul ignore next */ []));
|
|
21076
|
+
showRecordForm = signal(false, ...(ngDevMode ? [{ debugName: "showRecordForm" }] : /* istanbul ignore next */ []));
|
|
21077
|
+
switcherFilterText = this.switcherFilterSignal.asReadonly();
|
|
21078
|
+
masterRecord = signal(null, ...(ngDevMode ? [{ debugName: "masterRecord" }] : /* istanbul ignore next */ []));
|
|
21079
|
+
schemaFields = signal([], ...(ngDevMode ? [{ debugName: "schemaFields" }] : /* istanbul ignore next */ []));
|
|
21080
|
+
schemaIdentity = signal(null, ...(ngDevMode ? [{ debugName: "schemaIdentity" }] : /* istanbul ignore next */ []));
|
|
21081
|
+
fetchedSiblings = signal([], ...(ngDevMode ? [{ debugName: "fetchedSiblings" }] : /* istanbul ignore next */ []));
|
|
21082
|
+
itemSurfaces = signal([], ...(ngDevMode ? [{ debugName: "itemSurfaces" }] : /* istanbul ignore next */ []));
|
|
21083
|
+
itemActions = signal([], ...(ngDevMode ? [{ debugName: "itemActions" }] : /* istanbul ignore next */ []));
|
|
21084
|
+
activeTabId = signal('overview', ...(ngDevMode ? [{ debugName: "activeTabId" }] : /* istanbul ignore next */ []));
|
|
21085
|
+
lastLoadedResourcePath = null;
|
|
21086
|
+
lastPreloadedSiblingKey = null;
|
|
21087
|
+
activeLoadSeq = 0;
|
|
21088
|
+
activeItemSeq = 0;
|
|
21089
|
+
readOnlyFormActions = {
|
|
21090
|
+
submit: { visible: false, label: '' },
|
|
21091
|
+
cancel: { visible: false, label: '' },
|
|
21092
|
+
reset: { visible: false, label: '' },
|
|
21093
|
+
};
|
|
21094
|
+
effectiveResourcePath = computed(() => {
|
|
21095
|
+
const raw = this.resourcePath() ||
|
|
21096
|
+
this.metadata()?.resourcePath ||
|
|
21097
|
+
this.routeResourceSignal();
|
|
21098
|
+
const trimmed = String(raw ?? '').trim();
|
|
21099
|
+
return trimmed || null;
|
|
21100
|
+
}, ...(ngDevMode ? [{ debugName: "effectiveResourcePath" }] : /* istanbul ignore next */ []));
|
|
21101
|
+
effectiveIdField = computed(() => {
|
|
21102
|
+
const explicit = this.idField() || this.metadata()?.idField;
|
|
21103
|
+
if (explicit && explicit.trim()) {
|
|
21104
|
+
return explicit.trim();
|
|
21105
|
+
}
|
|
21106
|
+
return this.schemaIdentity()?.keyField || 'id';
|
|
21107
|
+
}, ...(ngDevMode ? [{ debugName: "effectiveIdField" }] : /* istanbul ignore next */ []));
|
|
21108
|
+
effectiveRecordId = computed(() => {
|
|
21109
|
+
const selected = this.selectedRecordIdSignal();
|
|
21110
|
+
if (selected !== null && selected !== undefined && selected !== '') {
|
|
21111
|
+
return selected;
|
|
21112
|
+
}
|
|
21113
|
+
const explicit = this.masterRecordId() ?? this.metadata()?.masterRecordId;
|
|
21114
|
+
if (explicit !== null && explicit !== undefined && explicit !== '') {
|
|
21115
|
+
return explicit;
|
|
21116
|
+
}
|
|
21117
|
+
const routeId = this.routeRecordIdSignal();
|
|
21118
|
+
return routeId !== null && routeId !== undefined && routeId !== '' ? routeId : null;
|
|
21119
|
+
}, ...(ngDevMode ? [{ debugName: "effectiveRecordId" }] : /* istanbul ignore next */ []));
|
|
21120
|
+
effectiveEyebrow = computed(() => {
|
|
21121
|
+
return (this.eyebrow()?.trim() ||
|
|
21122
|
+
this.metadata()?.eyebrow?.trim() ||
|
|
21123
|
+
this.tx('crud.dossier.eyebrow', 'Dossiê 360° do Registro'));
|
|
21124
|
+
}, ...(ngDevMode ? [{ debugName: "effectiveEyebrow" }] : /* istanbul ignore next */ []));
|
|
21125
|
+
resolvedSiblings = computed(() => {
|
|
21126
|
+
const provided = this.siblingRecords();
|
|
21127
|
+
if (Array.isArray(provided) && provided.length > 0) {
|
|
21128
|
+
return [...provided];
|
|
21129
|
+
}
|
|
21130
|
+
return this.fetchedSiblings();
|
|
21131
|
+
}, ...(ngDevMode ? [{ debugName: "resolvedSiblings" }] : /* istanbul ignore next */ []));
|
|
21132
|
+
filteredSiblings = computed(() => {
|
|
21133
|
+
const siblings = this.resolvedSiblings();
|
|
21134
|
+
const term = this.switcherFilterSignal().trim().toLowerCase();
|
|
21135
|
+
if (!term) {
|
|
21136
|
+
return siblings;
|
|
21137
|
+
}
|
|
21138
|
+
return siblings.filter((row) => {
|
|
21139
|
+
const label = this.resolveSiblingLabel(row).toLowerCase();
|
|
21140
|
+
const sub = this.resolveSiblingSubtitle(row).toLowerCase();
|
|
21141
|
+
const id = String(this.resolveSiblingId(row)).toLowerCase();
|
|
21142
|
+
return label.includes(term) || sub.includes(term) || id.includes(term);
|
|
21143
|
+
});
|
|
21144
|
+
}, ...(ngDevMode ? [{ debugName: "filteredSiblings" }] : /* istanbul ignore next */ []));
|
|
21145
|
+
materializedIdentity = computed(() => {
|
|
21146
|
+
const contract = this.schemaIdentity();
|
|
21147
|
+
const record = this.masterRecord();
|
|
21148
|
+
if (!contract || !record) {
|
|
21149
|
+
return null;
|
|
21150
|
+
}
|
|
21151
|
+
return materializeResourceIdentity(contract, record, this.schemaFields());
|
|
21152
|
+
}, ...(ngDevMode ? [{ debugName: "materializedIdentity" }] : /* istanbul ignore next */ []));
|
|
21153
|
+
heroTitle = computed(() => {
|
|
21154
|
+
const rawTitle = this.materializedIdentity()?.title?.value;
|
|
21155
|
+
const identityTitle = rawTitle !== null && rawTitle !== undefined ? String(rawTitle).trim() : '';
|
|
21156
|
+
if (identityTitle) {
|
|
21157
|
+
return identityTitle;
|
|
21158
|
+
}
|
|
21159
|
+
return (this.title()?.trim() ||
|
|
21160
|
+
this.metadata()?.title?.trim() ||
|
|
21161
|
+
this.routeTitleSignal()?.trim() ||
|
|
21162
|
+
this.effectiveEyebrow());
|
|
21163
|
+
}, ...(ngDevMode ? [{ debugName: "heroTitle" }] : /* istanbul ignore next */ []));
|
|
21164
|
+
heroSubtitle = computed(() => {
|
|
21165
|
+
const rawSub = this.materializedIdentity()?.subtitle?.value;
|
|
21166
|
+
const identitySubtitle = rawSub !== null && rawSub !== undefined ? String(rawSub).trim() : '';
|
|
21167
|
+
if (identitySubtitle) {
|
|
21168
|
+
return identitySubtitle;
|
|
21169
|
+
}
|
|
21170
|
+
return this.subtitle()?.trim() || this.metadata()?.subtitle?.trim() || null;
|
|
21171
|
+
}, ...(ngDevMode ? [{ debugName: "heroSubtitle" }] : /* istanbul ignore next */ []));
|
|
21172
|
+
heroAvatarUrl = computed(() => {
|
|
21173
|
+
const rawAvatar = this.materializedIdentity()?.avatar?.value;
|
|
21174
|
+
if (typeof rawAvatar === 'string' && rawAvatar.trim()) {
|
|
21175
|
+
return rawAvatar.trim();
|
|
21176
|
+
}
|
|
21177
|
+
return null;
|
|
21178
|
+
}, ...(ngDevMode ? [{ debugName: "heroAvatarUrl" }] : /* istanbul ignore next */ []));
|
|
21179
|
+
heroAvatarIcon = computed(() => 'folder_shared', ...(ngDevMode ? [{ debugName: "heroAvatarIcon" }] : /* istanbul ignore next */ []));
|
|
21180
|
+
metadataChips = computed(() => {
|
|
21181
|
+
const record = this.masterRecord();
|
|
21182
|
+
const fields = this.schemaFields();
|
|
21183
|
+
if (!record) {
|
|
21184
|
+
return [];
|
|
21185
|
+
}
|
|
21186
|
+
const revealedSet = this.revealedFieldsSignal();
|
|
21187
|
+
const fieldMap = new Map(fields.map((f) => [f.name, f]));
|
|
21188
|
+
const chips = [];
|
|
21189
|
+
const materializedMeta = this.materializedIdentity()?.metadata ?? [];
|
|
21190
|
+
for (const item of materializedMeta) {
|
|
21191
|
+
const fieldDef = fieldMap.get(item.field);
|
|
21192
|
+
if (!this.isFieldVisibleForCurrentAuthorities(fieldDef)) {
|
|
21193
|
+
continue;
|
|
21194
|
+
}
|
|
21195
|
+
const rawValue = record[item.field] ?? item.value;
|
|
21196
|
+
const sensitive = this.isSensitiveField(fieldDef, item.field);
|
|
21197
|
+
const revealed = revealedSet.has(item.field);
|
|
21198
|
+
const formatted = this.formatScalarValue(rawValue);
|
|
21199
|
+
chips.push({
|
|
21200
|
+
field: item.field,
|
|
21201
|
+
label: item.label || fieldDef?.label || item.field,
|
|
21202
|
+
value: sensitive && !revealed ? this.maskValue(formatted) : formatted,
|
|
21203
|
+
masked: sensitive,
|
|
21204
|
+
revealed,
|
|
21205
|
+
icon: fieldDef?.icon,
|
|
21206
|
+
});
|
|
21207
|
+
}
|
|
21208
|
+
if (chips.length > 0) {
|
|
21209
|
+
return chips;
|
|
21210
|
+
}
|
|
21211
|
+
const identity = this.schemaIdentity();
|
|
21212
|
+
const excluded = new Set([identity?.keyField, identity?.titleField, identity?.subtitleField, identity?.avatarField]
|
|
21213
|
+
.filter((f) => Boolean(f)));
|
|
21214
|
+
const quickViewFields = fields
|
|
21215
|
+
.filter((f) => f.quickViewVisible && !excluded.has(f.name) && this.isFieldVisibleForCurrentAuthorities(f))
|
|
21216
|
+
.sort((a, b) => (a.quickViewOrder ?? a.order ?? 999) - (b.quickViewOrder ?? b.order ?? 999))
|
|
21217
|
+
.slice(0, 4);
|
|
21218
|
+
for (const fieldDef of quickViewFields) {
|
|
21219
|
+
const rawValue = record[fieldDef.name];
|
|
21220
|
+
if (rawValue === undefined || rawValue === null || rawValue === '') {
|
|
21221
|
+
continue;
|
|
21222
|
+
}
|
|
21223
|
+
const sensitive = this.isSensitiveField(fieldDef, fieldDef.name);
|
|
21224
|
+
const revealed = revealedSet.has(fieldDef.name);
|
|
21225
|
+
const formatted = this.formatScalarValue(rawValue);
|
|
21226
|
+
chips.push({
|
|
21227
|
+
field: fieldDef.name,
|
|
21228
|
+
label: fieldDef.label || fieldDef.name,
|
|
21229
|
+
value: sensitive && !revealed ? this.maskValue(formatted) : formatted,
|
|
21230
|
+
masked: sensitive,
|
|
21231
|
+
revealed,
|
|
21232
|
+
icon: fieldDef.icon,
|
|
21233
|
+
});
|
|
21234
|
+
}
|
|
21235
|
+
return chips;
|
|
21236
|
+
}, ...(ngDevMode ? [{ debugName: "metadataChips" }] : /* istanbul ignore next */ []));
|
|
21237
|
+
overviewFields = computed(() => {
|
|
21238
|
+
const record = this.masterRecord();
|
|
21239
|
+
if (!record) {
|
|
21240
|
+
return [];
|
|
21241
|
+
}
|
|
21242
|
+
const fieldMap = new Map(this.schemaFields().map((f) => [f.name, f]));
|
|
21243
|
+
const revealedSet = this.revealedFieldsSignal();
|
|
21244
|
+
const keys = this.schemaFields().length > 0
|
|
21245
|
+
? this.schemaFields()
|
|
21246
|
+
.filter((f) => !f.hidden && this.isFieldVisibleForCurrentAuthorities(f))
|
|
21247
|
+
.sort((a, b) => (a.order ?? 999) - (b.order ?? 999))
|
|
21248
|
+
.map((f) => f.name)
|
|
21249
|
+
: Object.keys(record).filter((k) => !k.startsWith('_'));
|
|
21250
|
+
const entries = [];
|
|
21251
|
+
for (const key of keys) {
|
|
21252
|
+
const fieldDef = fieldMap.get(key);
|
|
21253
|
+
const val = record[key];
|
|
21254
|
+
if (val === undefined || val === null || val === '') {
|
|
21255
|
+
continue;
|
|
21256
|
+
}
|
|
21257
|
+
if (typeof val === 'object' && !Array.isArray(val)) {
|
|
21258
|
+
continue;
|
|
21259
|
+
}
|
|
21260
|
+
const sensitive = this.isSensitiveField(fieldDef, key);
|
|
21261
|
+
const formatted = this.formatScalarValue(val);
|
|
21262
|
+
entries.push({
|
|
21263
|
+
field: key,
|
|
21264
|
+
label: fieldDef?.label || key,
|
|
21265
|
+
value: sensitive && !revealedSet.has(key) ? this.maskValue(formatted) : formatted,
|
|
21266
|
+
});
|
|
21267
|
+
}
|
|
21268
|
+
return entries;
|
|
21269
|
+
}, ...(ngDevMode ? [{ debugName: "overviewFields" }] : /* istanbul ignore next */ []));
|
|
21270
|
+
partialFormSurfaces = computed(() => {
|
|
21271
|
+
return this.itemSurfaces()
|
|
21272
|
+
.filter((s) => s.scope === 'ITEM' && s.kind === 'PARTIAL_FORM')
|
|
21273
|
+
.sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
|
|
21274
|
+
}, ...(ngDevMode ? [{ debugName: "partialFormSurfaces" }] : /* istanbul ignore next */ []));
|
|
21275
|
+
itemWorkflowActions = computed(() => {
|
|
21276
|
+
return this.itemActions()
|
|
21277
|
+
.filter((a) => a.scope === 'ITEM')
|
|
21278
|
+
.sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
|
|
21279
|
+
}, ...(ngDevMode ? [{ debugName: "itemWorkflowActions" }] : /* istanbul ignore next */ []));
|
|
21280
|
+
resolvedChildTabs = computed(() => {
|
|
21281
|
+
const configured = this.childSurfaces() ?? this.metadata()?.childSurfaces ?? [];
|
|
21282
|
+
const tabs = [];
|
|
21283
|
+
const seen = new Set();
|
|
21284
|
+
for (const [idx, cfg] of configured.entries()) {
|
|
21285
|
+
const id = String(cfg.id || cfg.resourcePath).trim();
|
|
21286
|
+
if (!id || seen.has(id.toLowerCase()))
|
|
21287
|
+
continue;
|
|
21288
|
+
seen.add(id.toLowerCase());
|
|
21289
|
+
const locks = Array.from(new Set([cfg.parentFilterField, ...(cfg.lockedFilterFields ?? [])].filter(Boolean)));
|
|
21290
|
+
tabs.push({
|
|
21291
|
+
id,
|
|
21292
|
+
label: cfg.label || id,
|
|
21293
|
+
icon: cfg.icon || 'subdirectory_arrow_right',
|
|
21294
|
+
badge: cfg.badge,
|
|
21295
|
+
resourcePath: cfg.resourcePath,
|
|
21296
|
+
resourceKey: cfg.resourceKey,
|
|
21297
|
+
parentFilterField: cfg.parentFilterField,
|
|
21298
|
+
parentValueField: cfg.parentValueField,
|
|
21299
|
+
lockedFilterFields: locks,
|
|
21300
|
+
filterCriteria: { ...(cfg.filterCriteria ?? {}) },
|
|
21301
|
+
crudMetadata: cfg.crudMetadata,
|
|
21302
|
+
order: cfg.order ?? idx,
|
|
21303
|
+
source: 'configured',
|
|
21304
|
+
});
|
|
21305
|
+
}
|
|
21306
|
+
for (const surface of this.itemSurfaces()) {
|
|
21307
|
+
const rel = surface.relatedResource;
|
|
21308
|
+
if (!rel?.childResourcePath || !rel.childParentField) {
|
|
21309
|
+
continue;
|
|
21310
|
+
}
|
|
21311
|
+
const id = String(surface.id || rel.childResourceKey || rel.childResourcePath).trim();
|
|
21312
|
+
if (!id || seen.has(id.toLowerCase()))
|
|
21313
|
+
continue;
|
|
21314
|
+
seen.add(id.toLowerCase());
|
|
21315
|
+
tabs.push({
|
|
21316
|
+
id,
|
|
21317
|
+
label: surface.title || id,
|
|
21318
|
+
icon: surface.icon || 'folder_copy',
|
|
21319
|
+
resourcePath: rel.childResourcePath,
|
|
21320
|
+
resourceKey: rel.childResourceKey,
|
|
21321
|
+
parentFilterField: rel.childParentField,
|
|
21322
|
+
parentValueField: rel.selectionKeyField || this.effectiveIdField(),
|
|
21323
|
+
lockedFilterFields: [rel.childParentField],
|
|
21324
|
+
filterCriteria: {},
|
|
21325
|
+
order: surface.order ?? tabs.length + 100,
|
|
21326
|
+
source: 'discovered',
|
|
21327
|
+
});
|
|
21328
|
+
}
|
|
21329
|
+
return tabs.sort((a, b) => a.order - b.order);
|
|
21330
|
+
}, ...(ngDevMode ? [{ debugName: "resolvedChildTabs" }] : /* istanbul ignore next */ []));
|
|
21331
|
+
activeChildTab = computed(() => {
|
|
21332
|
+
const currentId = this.activeTabId();
|
|
21333
|
+
return this.resolvedChildTabs().find((t) => t.id === currentId) ?? null;
|
|
21334
|
+
}, ...(ngDevMode ? [{ debugName: "activeChildTab" }] : /* istanbul ignore next */ []));
|
|
21335
|
+
constructor() {
|
|
21336
|
+
if (this.route) {
|
|
21337
|
+
const snapshotData = this.route.snapshot?.data ?? {};
|
|
21338
|
+
const snapshotParams = this.route.snapshot?.paramMap;
|
|
21339
|
+
if (snapshotData['resourcePath'] || snapshotData['resource']) {
|
|
21340
|
+
this.routeResourceSignal.set(String(snapshotData['resourcePath'] || snapshotData['resource']));
|
|
21341
|
+
}
|
|
21342
|
+
if (snapshotData['title']) {
|
|
21343
|
+
this.routeTitleSignal.set(String(snapshotData['title']));
|
|
21344
|
+
}
|
|
21345
|
+
const initialRouteId = snapshotParams?.get('id') || snapshotParams?.get('masterRecordId');
|
|
21346
|
+
if (initialRouteId) {
|
|
21347
|
+
this.routeRecordIdSignal.set(initialRouteId);
|
|
21348
|
+
}
|
|
21349
|
+
this.route.paramMap?.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((pm) => {
|
|
21350
|
+
const nextId = pm.get('id') || pm.get('masterRecordId');
|
|
21351
|
+
if (nextId !== null && nextId !== undefined) {
|
|
21352
|
+
this.routeRecordIdSignal.set(nextId);
|
|
21353
|
+
}
|
|
21354
|
+
});
|
|
21355
|
+
this.route.data?.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((d) => {
|
|
21356
|
+
if (d['resourcePath'] || d['resource']) {
|
|
21357
|
+
this.routeResourceSignal.set(String(d['resourcePath'] || d['resource']));
|
|
21358
|
+
}
|
|
21359
|
+
if (d['title']) {
|
|
21360
|
+
this.routeTitleSignal.set(String(d['title']));
|
|
21361
|
+
}
|
|
21362
|
+
});
|
|
21363
|
+
}
|
|
21364
|
+
effect(() => {
|
|
21365
|
+
const resourcePath = this.effectiveResourcePath();
|
|
21366
|
+
const explicitId = this.selectedRecordIdSignal() ??
|
|
21367
|
+
this.masterRecordId() ??
|
|
21368
|
+
this.metadata()?.masterRecordId ??
|
|
21369
|
+
this.routeRecordIdSignal();
|
|
21370
|
+
this.reloadTriggerSignal();
|
|
21371
|
+
if (!resourcePath) {
|
|
21372
|
+
return;
|
|
21373
|
+
}
|
|
21374
|
+
const resourceChanged = resourcePath !== this.lastLoadedResourcePath;
|
|
21375
|
+
if (resourceChanged) {
|
|
21376
|
+
this.lastLoadedResourcePath = resourcePath;
|
|
21377
|
+
this.revealedFieldsSignal.set(new Set());
|
|
21378
|
+
this.loadResourceBootstrap(resourcePath, explicitId);
|
|
21379
|
+
}
|
|
21380
|
+
else if (explicitId !== null && explicitId !== undefined && explicitId !== '') {
|
|
21381
|
+
const currentKey = `${resourcePath}|${explicitId}`;
|
|
21382
|
+
if (this.lastPreloadedSiblingKey === currentKey) {
|
|
21383
|
+
this.lastPreloadedSiblingKey = null;
|
|
21384
|
+
return;
|
|
21385
|
+
}
|
|
21386
|
+
this.loadMasterRecordAndCapabilities(resourcePath, explicitId);
|
|
21387
|
+
}
|
|
21388
|
+
}, { allowSignalWrites: true });
|
|
21389
|
+
effect(() => {
|
|
21390
|
+
const tabs = this.resolvedChildTabs();
|
|
21391
|
+
const showOverview = this.showOverviewTab();
|
|
21392
|
+
const current = this.activeTabId();
|
|
21393
|
+
if (!showOverview && current === 'overview' && tabs.length > 0) {
|
|
21394
|
+
this.activeTabId.set(tabs[0].id);
|
|
21395
|
+
}
|
|
21396
|
+
else if (current !== 'overview' && !tabs.some((t) => t.id === current)) {
|
|
21397
|
+
this.activeTabId.set(showOverview ? 'overview' : tabs[0]?.id ?? 'overview');
|
|
21398
|
+
}
|
|
21399
|
+
}, { allowSignalWrites: true });
|
|
21400
|
+
}
|
|
21401
|
+
tx(key, fallback) {
|
|
21402
|
+
if (!this.i18n) {
|
|
21403
|
+
return fallback;
|
|
21404
|
+
}
|
|
21405
|
+
return translateCrudRuntimeText(this.i18n, key, fallback);
|
|
21406
|
+
}
|
|
21407
|
+
txParams(key, fallback, params) {
|
|
21408
|
+
if (!this.i18n) {
|
|
21409
|
+
return fallback.replace(/\{(\w+)\}/g, (_, k) => String(params[k] ?? ''));
|
|
21410
|
+
}
|
|
21411
|
+
return translateCrudRuntimeText(this.i18n, key, fallback, params);
|
|
21412
|
+
}
|
|
21413
|
+
reloadDossier() {
|
|
21414
|
+
this.lastLoadedResourcePath = null;
|
|
21415
|
+
this.reloadTriggerSignal.update((v) => v + 1);
|
|
21416
|
+
}
|
|
21417
|
+
toggleSwitcher() {
|
|
21418
|
+
this.switcherOpen.update((v) => !v);
|
|
21419
|
+
}
|
|
21420
|
+
toggleRecordForm() {
|
|
21421
|
+
this.showRecordForm.update((v) => !v);
|
|
21422
|
+
}
|
|
21423
|
+
onSwitcherSearchInput(event) {
|
|
21424
|
+
const value = event.target?.value ?? '';
|
|
21425
|
+
this.switcherFilterSignal.set(value);
|
|
21426
|
+
}
|
|
21427
|
+
toggleRevealField(field) {
|
|
21428
|
+
this.revealedFieldsSignal.update((current) => {
|
|
21429
|
+
const next = new Set(current);
|
|
21430
|
+
if (next.has(field)) {
|
|
21431
|
+
next.delete(field);
|
|
21432
|
+
}
|
|
21433
|
+
else {
|
|
21434
|
+
next.add(field);
|
|
21435
|
+
}
|
|
21436
|
+
return next;
|
|
21437
|
+
});
|
|
21438
|
+
}
|
|
21439
|
+
selectTab(tabId) {
|
|
21440
|
+
this.activeTabId.set(tabId);
|
|
21441
|
+
const tab = this.resolvedChildTabs().find((t) => t.id === tabId) ?? null;
|
|
21442
|
+
this.childSurfaceChange.emit(tab);
|
|
21443
|
+
}
|
|
21444
|
+
selectSiblingRecord(row) {
|
|
21445
|
+
const id = this.resolveSiblingId(row);
|
|
21446
|
+
if (id === '' || id === null || id === undefined) {
|
|
21447
|
+
return;
|
|
21448
|
+
}
|
|
21449
|
+
const resourcePath = this.effectiveResourcePath();
|
|
21450
|
+
if (resourcePath) {
|
|
21451
|
+
this.lastPreloadedSiblingKey = `${resourcePath}|${id}`;
|
|
21452
|
+
}
|
|
21453
|
+
this.selectedRecordIdSignal.set(id);
|
|
21454
|
+
this.masterRecord.set(row);
|
|
21455
|
+
this.masterRecordIdChange.emit(id);
|
|
21456
|
+
this.masterRecordChange.emit(row);
|
|
21457
|
+
this.switcherOpen.set(false);
|
|
21458
|
+
if (resourcePath) {
|
|
21459
|
+
this.loadMasterRecordAndCapabilities(resourcePath, id, row);
|
|
21460
|
+
}
|
|
21461
|
+
}
|
|
21462
|
+
isActiveSibling(row) {
|
|
21463
|
+
const id = this.resolveSiblingId(row);
|
|
21464
|
+
const active = this.effectiveRecordId();
|
|
21465
|
+
return active !== null && active !== undefined && String(id) === String(active);
|
|
21466
|
+
}
|
|
21467
|
+
resolveSiblingId(row) {
|
|
21468
|
+
const idField = this.effectiveIdField();
|
|
21469
|
+
const raw = row?.[idField] ?? row?.['id'];
|
|
21470
|
+
return typeof raw === 'string' || typeof raw === 'number' ? raw : '';
|
|
21471
|
+
}
|
|
21472
|
+
resolveSiblingLabel(row) {
|
|
21473
|
+
const identity = this.schemaIdentity();
|
|
21474
|
+
if (identity?.titleField && row[identity.titleField]) {
|
|
21475
|
+
return String(row[identity.titleField]);
|
|
21476
|
+
}
|
|
21477
|
+
const candidate = row['name'] ?? row['title'] ?? row['label'] ?? this.resolveSiblingId(row);
|
|
21478
|
+
return String(candidate ?? '');
|
|
21479
|
+
}
|
|
21480
|
+
resolveSiblingSubtitle(row) {
|
|
21481
|
+
const identity = this.schemaIdentity();
|
|
21482
|
+
if (identity?.subtitleField && row[identity.subtitleField]) {
|
|
21483
|
+
return String(row[identity.subtitleField]);
|
|
21484
|
+
}
|
|
21485
|
+
return '';
|
|
21486
|
+
}
|
|
21487
|
+
buildChildFilterCriteria(tab) {
|
|
21488
|
+
const record = this.masterRecord();
|
|
21489
|
+
const valField = tab.parentValueField || this.effectiveIdField();
|
|
21490
|
+
const parentValue = record?.[valField] ?? this.effectiveRecordId();
|
|
21491
|
+
return {
|
|
21492
|
+
...tab.filterCriteria,
|
|
21493
|
+
...(parentValue !== null && parentValue !== undefined && parentValue !== ''
|
|
21494
|
+
? { [tab.parentFilterField]: parentValue }
|
|
21495
|
+
: {}),
|
|
21496
|
+
};
|
|
21497
|
+
}
|
|
21498
|
+
buildChildCrudMetadata(tab) {
|
|
21499
|
+
const base = tab.crudMetadata ?? {};
|
|
21500
|
+
return {
|
|
21501
|
+
component: 'praxis-crud',
|
|
21502
|
+
...base,
|
|
21503
|
+
resource: {
|
|
21504
|
+
path: tab.resourcePath,
|
|
21505
|
+
idField: 'id',
|
|
21506
|
+
...(this.endpointKey() ? { endpointKey: this.endpointKey() } : {}),
|
|
21507
|
+
...(this.apiUrlEntry() ? { apiUrlEntry: this.apiUrlEntry() } : {}),
|
|
21508
|
+
...(base.resource ?? {}),
|
|
21509
|
+
},
|
|
21510
|
+
table: base.table ?? { columns: [] },
|
|
21511
|
+
};
|
|
21512
|
+
}
|
|
21513
|
+
resolveSurfaceTooltip(surface) {
|
|
21514
|
+
if (surface.availability?.allowed === false) {
|
|
21515
|
+
return ((this.i18n ? translateUnavailableWorkflowMessage(this.i18n, surface.availability) : '') ||
|
|
21516
|
+
this.tx('crud.dossier.actionUnavailable', 'Ação indisponível no estado atual.'));
|
|
21517
|
+
}
|
|
21518
|
+
return surface.description || surface.title || '';
|
|
21519
|
+
}
|
|
21520
|
+
resolveActionTooltip(action) {
|
|
21521
|
+
if (action.availability?.allowed === false) {
|
|
21522
|
+
return (action.disallowedStateReason?.trim() ||
|
|
21523
|
+
(this.i18n ? translateUnavailableWorkflowMessage(this.i18n, action.availability) : '') ||
|
|
21524
|
+
this.tx('crud.dossier.actionUnavailable', 'Ação indisponível no estado atual.'));
|
|
21525
|
+
}
|
|
21526
|
+
return action.description || action.title || '';
|
|
21527
|
+
}
|
|
21528
|
+
async refreshItemDiscovery() {
|
|
21529
|
+
const resourcePath = this.effectiveResourcePath();
|
|
21530
|
+
const id = this.effectiveRecordId();
|
|
21531
|
+
if (!resourcePath || id === null || id === undefined || id === '') {
|
|
21532
|
+
return;
|
|
21533
|
+
}
|
|
21534
|
+
this.syncingCapabilities.set(true);
|
|
21535
|
+
try {
|
|
21536
|
+
await this.fetchItemSurfacesAndActions(resourcePath, id, this.masterRecord());
|
|
21537
|
+
this.capabilitiesSynced.set(true);
|
|
21538
|
+
}
|
|
21539
|
+
finally {
|
|
21540
|
+
this.syncingCapabilities.set(false);
|
|
21541
|
+
}
|
|
21542
|
+
}
|
|
21543
|
+
async executeIntentSurface(surface) {
|
|
21544
|
+
const resourcePath = this.effectiveResourcePath();
|
|
21545
|
+
const id = this.effectiveRecordId();
|
|
21546
|
+
if (!resourcePath || id === null || id === undefined || surface.availability?.allowed === false) {
|
|
21547
|
+
return;
|
|
21548
|
+
}
|
|
21549
|
+
if (this.surfaceOpenAdapter && this.surfaceService?.open) {
|
|
21550
|
+
try {
|
|
21551
|
+
const payload = this.surfaceOpenAdapter.toPayload(surface, {
|
|
21552
|
+
resourcePath,
|
|
21553
|
+
resourceId: id,
|
|
21554
|
+
endpointKey: this.endpointKey() ?? undefined,
|
|
21555
|
+
apiUrlEntry: this.apiUrlEntry() ?? undefined,
|
|
21556
|
+
});
|
|
21557
|
+
const response = await Promise.resolve(this.surfaceService.open(payload, {
|
|
21558
|
+
runtime: {
|
|
21559
|
+
injector: this.injector,
|
|
21560
|
+
row: this.masterRecord(),
|
|
21561
|
+
item: this.masterRecord(),
|
|
21562
|
+
},
|
|
21563
|
+
}));
|
|
21564
|
+
this.actionExecuted.emit({
|
|
21565
|
+
actionId: surface.id,
|
|
21566
|
+
kind: 'intent',
|
|
21567
|
+
record: this.masterRecord(),
|
|
21568
|
+
surface,
|
|
21569
|
+
response,
|
|
21570
|
+
});
|
|
21571
|
+
this.loadMasterRecordAndCapabilities(resourcePath, id);
|
|
21572
|
+
return;
|
|
21573
|
+
}
|
|
21574
|
+
catch (err) {
|
|
21575
|
+
this.dossierError.emit(err);
|
|
21576
|
+
}
|
|
21577
|
+
}
|
|
21578
|
+
this.actionExecuted.emit({
|
|
21579
|
+
actionId: surface.id,
|
|
21580
|
+
kind: 'intent',
|
|
21581
|
+
record: this.masterRecord(),
|
|
21582
|
+
surface,
|
|
21583
|
+
});
|
|
21584
|
+
}
|
|
21585
|
+
async executeWorkflowAction(action) {
|
|
21586
|
+
const resourcePath = this.effectiveResourcePath();
|
|
21587
|
+
const id = this.effectiveRecordId();
|
|
21588
|
+
if (!resourcePath || id === null || undefined === id || action.availability?.allowed === false) {
|
|
21589
|
+
return;
|
|
21590
|
+
}
|
|
21591
|
+
if (this.actionOpenAdapter && this.surfaceService?.open) {
|
|
21592
|
+
try {
|
|
21593
|
+
const payload = this.actionOpenAdapter.toPayload(action, {
|
|
21594
|
+
resourcePath,
|
|
21595
|
+
resourceId: id,
|
|
21596
|
+
endpointKey: this.endpointKey() ?? undefined,
|
|
21597
|
+
apiUrlEntry: this.apiUrlEntry() ?? undefined,
|
|
21598
|
+
});
|
|
21599
|
+
const response = await Promise.resolve(this.surfaceService.open(payload, {
|
|
21600
|
+
runtime: {
|
|
21601
|
+
injector: this.injector,
|
|
21602
|
+
row: this.masterRecord(),
|
|
21603
|
+
item: this.masterRecord(),
|
|
21604
|
+
},
|
|
21605
|
+
}));
|
|
21606
|
+
this.actionExecuted.emit({
|
|
21607
|
+
actionId: action.id,
|
|
21608
|
+
kind: 'action',
|
|
21609
|
+
record: this.masterRecord(),
|
|
21610
|
+
action,
|
|
21611
|
+
response,
|
|
21612
|
+
});
|
|
21613
|
+
this.loadMasterRecordAndCapabilities(resourcePath, id);
|
|
21614
|
+
return;
|
|
21615
|
+
}
|
|
21616
|
+
catch (err) {
|
|
21617
|
+
this.dossierError.emit(err);
|
|
21618
|
+
}
|
|
21619
|
+
}
|
|
21620
|
+
this.actionExecuted.emit({
|
|
21621
|
+
actionId: action.id,
|
|
21622
|
+
kind: 'action',
|
|
21623
|
+
record: this.masterRecord(),
|
|
21624
|
+
action,
|
|
21625
|
+
});
|
|
21626
|
+
}
|
|
21627
|
+
resolveResourceEndpointUrl(relativePath) {
|
|
21628
|
+
const trimmed = relativePath.trim();
|
|
21629
|
+
if (trimmed.startsWith('http://') || trimmed.startsWith('https://')) {
|
|
21630
|
+
return trimmed;
|
|
21631
|
+
}
|
|
21632
|
+
const key = String(this.endpointKey() ?? this.metadata()?.endpointKey ?? '').trim();
|
|
21633
|
+
const resolvedEntry = this.apiUrlEntry() ||
|
|
21634
|
+
this.metadata()?.apiUrlEntry ||
|
|
21635
|
+
(key && this.apiUrl ? this.apiUrl[key] : undefined) ||
|
|
21636
|
+
this.apiUrl?.['default'] ||
|
|
21637
|
+
(this.apiUrl ? Object.values(this.apiUrl)[0] : undefined);
|
|
21638
|
+
const base = resolvedEntry ? buildApiUrl(resolvedEntry).replace(/\/+$/, '') : '';
|
|
21639
|
+
const cleanPath = trimmed.startsWith('/') ? trimmed : `/${trimmed}`;
|
|
21640
|
+
if (!base) {
|
|
21641
|
+
return cleanPath;
|
|
21642
|
+
}
|
|
21643
|
+
if (cleanPath.startsWith('/api/') && base.endsWith('/api')) {
|
|
21644
|
+
return `${base.slice(0, -4)}${cleanPath}`;
|
|
21645
|
+
}
|
|
21646
|
+
return `${base}${cleanPath}`;
|
|
21647
|
+
}
|
|
21648
|
+
resolveSchemasFilteredUrl(resourcePath) {
|
|
21649
|
+
const resourceUrl = this.resolveResourceEndpointUrl(resourcePath);
|
|
21650
|
+
let schemaParam = resourcePath.startsWith('/') ? resourcePath : `/${resourcePath}`;
|
|
21651
|
+
let base = '/schemas/filtered';
|
|
21652
|
+
try {
|
|
21653
|
+
const parsed = new URL(resourceUrl);
|
|
21654
|
+
schemaParam = parsed.pathname || schemaParam;
|
|
21655
|
+
base = `${parsed.origin}/schemas/filtered`;
|
|
21656
|
+
}
|
|
21657
|
+
catch { }
|
|
21658
|
+
const cleanSchemaPath = `${schemaParam.replace(/\/+$/, '')}/filter`;
|
|
21659
|
+
return `${base}?path=${encodeURIComponent(cleanSchemaPath)}&operation=post&schemaType=response`;
|
|
21660
|
+
}
|
|
21661
|
+
async loadResourceBootstrap(resourcePath, explicitRecordId) {
|
|
21662
|
+
const loadSeq = ++this.activeLoadSeq;
|
|
21663
|
+
this.loading.set(true);
|
|
21664
|
+
this.hasError.set(false);
|
|
21665
|
+
this.capabilitiesSynced.set(false);
|
|
21666
|
+
try {
|
|
21667
|
+
const schemaPromise = firstValueFrom(this.http.get(this.resolveSchemasFilteredUrl(resourcePath))).catch(() => null);
|
|
21668
|
+
const shouldFetchSiblings = this.showSiblingSwitcher() && (!this.siblingRecords() || this.siblingRecords().length === 0);
|
|
21669
|
+
const siblingsPromise = shouldFetchSiblings
|
|
21670
|
+
? firstValueFrom(this.http.post(this.resolveResourceEndpointUrl(`${resourcePath.replace(/\/+$/, '')}/filter?page=0&size=25`), {})).catch(() => null)
|
|
21671
|
+
: Promise.resolve(null);
|
|
21672
|
+
const [rawSchema, siblingsRes] = await Promise.all([schemaPromise, siblingsPromise]);
|
|
21673
|
+
if (loadSeq !== this.activeLoadSeq)
|
|
21674
|
+
return;
|
|
21675
|
+
if (rawSchema && typeof rawSchema === 'object') {
|
|
21676
|
+
const fields = this.schemaNormalizer
|
|
21677
|
+
? this.schemaNormalizer.normalizeSchema(rawSchema)
|
|
21678
|
+
: [];
|
|
21679
|
+
this.schemaFields.set(fields);
|
|
21680
|
+
const xUi = rawSchema['x-ui'] ?? undefined;
|
|
21681
|
+
const xResource = xUi?.['resource'] ?? undefined;
|
|
21682
|
+
const rawIdentity = (xResource?.['identity'] ?? xUi?.['identity']);
|
|
21683
|
+
const { contract } = resolveResourceIdentityContract({
|
|
21684
|
+
explicitIdentity: rawIdentity,
|
|
21685
|
+
availableFields: fields.map((f) => f.name),
|
|
21686
|
+
resourceIdField: xResource?.['idField'] || this.effectiveIdField(),
|
|
21687
|
+
});
|
|
21688
|
+
this.schemaIdentity.set(contract);
|
|
21689
|
+
}
|
|
21690
|
+
let resolvedSiblings = this.siblingRecords() ? [...this.siblingRecords()] : [];
|
|
21691
|
+
if (siblingsRes) {
|
|
21692
|
+
const content = siblingsRes?.data?.content ?? siblingsRes?.content ?? siblingsRes?.data;
|
|
21693
|
+
if (Array.isArray(content)) {
|
|
21694
|
+
resolvedSiblings = content;
|
|
21695
|
+
this.fetchedSiblings.set(content);
|
|
21696
|
+
}
|
|
21697
|
+
}
|
|
21698
|
+
let targetId = explicitRecordId;
|
|
21699
|
+
if ((targetId === null || targetId === undefined || targetId === '') &&
|
|
21700
|
+
this.autoSelectFirst() &&
|
|
21701
|
+
resolvedSiblings.length > 0) {
|
|
21702
|
+
targetId = this.resolveSiblingId(resolvedSiblings[0]);
|
|
21703
|
+
this.selectedRecordIdSignal.set(targetId);
|
|
21704
|
+
this.masterRecordIdChange.emit(targetId);
|
|
21705
|
+
}
|
|
21706
|
+
if (targetId !== null && targetId !== undefined && targetId !== '') {
|
|
21707
|
+
await this.loadMasterRecordAndCapabilities(resourcePath, targetId);
|
|
21708
|
+
}
|
|
21709
|
+
else {
|
|
21710
|
+
this.loading.set(false);
|
|
21711
|
+
}
|
|
21712
|
+
}
|
|
21713
|
+
catch (err) {
|
|
21714
|
+
if (loadSeq === this.activeLoadSeq) {
|
|
21715
|
+
this.hasError.set(true);
|
|
21716
|
+
this.loading.set(false);
|
|
21717
|
+
this.dossierError.emit(err);
|
|
21718
|
+
}
|
|
21719
|
+
}
|
|
21720
|
+
}
|
|
21721
|
+
async loadMasterRecordAndCapabilities(resourcePath, id, preloadedRecord) {
|
|
21722
|
+
const seq = ++this.activeItemSeq;
|
|
21723
|
+
this.loading.set(!preloadedRecord);
|
|
21724
|
+
this.hasError.set(false);
|
|
21725
|
+
try {
|
|
21726
|
+
const record = preloadedRecord
|
|
21727
|
+
? preloadedRecord
|
|
21728
|
+
: await firstValueFrom(this.http.get(this.resolveResourceEndpointUrl(`${resourcePath.replace(/\/+$/, '')}/${encodeURIComponent(String(id))}`))).then((res) => (res?.data && typeof res.data === 'object' ? res.data : res));
|
|
21729
|
+
if (seq !== this.activeItemSeq)
|
|
21730
|
+
return;
|
|
21731
|
+
this.masterRecord.set(record ?? null);
|
|
21732
|
+
this.masterRecordChange.emit(record ?? null);
|
|
21733
|
+
await this.fetchItemSurfacesAndActions(resourcePath, id, record);
|
|
21734
|
+
if (seq === this.activeItemSeq) {
|
|
21735
|
+
this.loading.set(false);
|
|
21736
|
+
}
|
|
21737
|
+
}
|
|
21738
|
+
catch (err) {
|
|
21739
|
+
if (seq === this.activeItemSeq) {
|
|
21740
|
+
this.hasError.set(true);
|
|
21741
|
+
this.loading.set(false);
|
|
21742
|
+
this.dossierError.emit(err);
|
|
21743
|
+
}
|
|
21744
|
+
}
|
|
21745
|
+
}
|
|
21746
|
+
async fetchItemSurfacesAndActions(resourcePath, id, record) {
|
|
21747
|
+
const cleanResource = resourcePath.replace(/\/+$/, '');
|
|
21748
|
+
const recordLinks = record?._links;
|
|
21749
|
+
const surfacesPromise = this.resourceDiscovery && recordLinks?.['surfaces']
|
|
21750
|
+
? firstValueFrom(this.resourceDiscovery.getSurfaces(recordLinks, {
|
|
21751
|
+
endpointKey: this.endpointKey() ?? undefined,
|
|
21752
|
+
apiUrlEntry: this.apiUrlEntry() ?? undefined,
|
|
21753
|
+
})).catch(() => null)
|
|
21754
|
+
: firstValueFrom(this.http.get(this.resolveResourceEndpointUrl(`${cleanResource}/${encodeURIComponent(String(id))}/surfaces`))).catch(() => null);
|
|
21755
|
+
const actionsPromise = this.resourceDiscovery && recordLinks?.['actions']
|
|
21756
|
+
? firstValueFrom(this.resourceDiscovery.getActions(recordLinks, {
|
|
21757
|
+
endpointKey: this.endpointKey() ?? undefined,
|
|
21758
|
+
apiUrlEntry: this.apiUrlEntry() ?? undefined,
|
|
21759
|
+
})).catch(() => null)
|
|
21760
|
+
: firstValueFrom(this.http.get(this.resolveResourceEndpointUrl(`${cleanResource}/${encodeURIComponent(String(id))}/actions`))).catch(() => null);
|
|
21761
|
+
const [surfacesRes, actionsRes] = await Promise.all([surfacesPromise, actionsPromise]);
|
|
21762
|
+
const surfacesPayload = surfacesRes?.data?.surfaces ?? surfacesRes?.surfaces ?? [];
|
|
21763
|
+
const actionsPayload = actionsRes?.data?.actions ?? actionsRes?.actions ?? [];
|
|
21764
|
+
const normalizedSurfaces = Array.isArray(surfacesPayload) ? surfacesPayload : [];
|
|
21765
|
+
const normalizedActions = Array.isArray(actionsPayload) ? actionsPayload : [];
|
|
21766
|
+
this.itemSurfaces.set(normalizedSurfaces);
|
|
21767
|
+
this.itemActions.set(normalizedActions);
|
|
21768
|
+
this.capabilitiesLoaded.emit({
|
|
21769
|
+
surfaces: normalizedSurfaces,
|
|
21770
|
+
actions: normalizedActions,
|
|
21771
|
+
});
|
|
21772
|
+
}
|
|
21773
|
+
isFieldVisibleForCurrentAuthorities(field) {
|
|
21774
|
+
if (!field?.fieldAccess) {
|
|
21775
|
+
return true;
|
|
21776
|
+
}
|
|
21777
|
+
const authorities = this.runtimeContext?.effectiveContext?.authorities ??
|
|
21778
|
+
this.runtimeContext?.snapshot?.effectiveContext?.authorities ??
|
|
21779
|
+
null;
|
|
21780
|
+
const result = evaluateFieldAccess(field, { authorities });
|
|
21781
|
+
return !result.evaluated || result.visible;
|
|
21782
|
+
}
|
|
21783
|
+
isSensitiveField(field, fieldName) {
|
|
21784
|
+
const governance = field?.domainGovernance;
|
|
21785
|
+
const category = String(governance?.['classification'] ?? '').toLowerCase();
|
|
21786
|
+
if (category.includes('personal') || category.includes('sensitive')) {
|
|
21787
|
+
return true;
|
|
21788
|
+
}
|
|
21789
|
+
return Boolean(field?.mask) || /taxid|cpf|cnpj|ssn|document/i.test(fieldName);
|
|
21790
|
+
}
|
|
21791
|
+
maskValue(raw) {
|
|
21792
|
+
if (!raw || raw.length <= 4) {
|
|
21793
|
+
return '••••';
|
|
21794
|
+
}
|
|
21795
|
+
return `${'•'.repeat(Math.max(4, raw.length - 4))}${raw.slice(-4)}`;
|
|
21796
|
+
}
|
|
21797
|
+
formatScalarValue(value) {
|
|
21798
|
+
if (value === null || value === undefined || value === '') {
|
|
21799
|
+
return '—';
|
|
21800
|
+
}
|
|
21801
|
+
if (typeof value === 'boolean') {
|
|
21802
|
+
return value
|
|
21803
|
+
? this.tx('crud.boolean.true', 'Sim')
|
|
21804
|
+
: this.tx('crud.boolean.false', 'Não');
|
|
21805
|
+
}
|
|
21806
|
+
if (Array.isArray(value)) {
|
|
21807
|
+
return value.join(', ');
|
|
21808
|
+
}
|
|
21809
|
+
return String(value);
|
|
21810
|
+
}
|
|
21811
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisDossierPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21812
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: PraxisDossierPageComponent, isStandalone: true, selector: "praxis-dossier-page", inputs: { resourcePath: { classPropertyName: "resourcePath", publicName: "resourcePath", isSignal: true, isRequired: false, transformFunction: null }, masterRecordId: { classPropertyName: "masterRecordId", publicName: "masterRecordId", isSignal: true, isRequired: false, transformFunction: null }, idField: { classPropertyName: "idField", publicName: "idField", isSignal: true, isRequired: false, transformFunction: null }, endpointKey: { classPropertyName: "endpointKey", publicName: "endpointKey", isSignal: true, isRequired: false, transformFunction: null }, apiUrlEntry: { classPropertyName: "apiUrlEntry", publicName: "apiUrlEntry", isSignal: true, isRequired: false, transformFunction: null }, metadata: { classPropertyName: "metadata", publicName: "metadata", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, eyebrow: { classPropertyName: "eyebrow", publicName: "eyebrow", isSignal: true, isRequired: false, transformFunction: null }, siblingRecords: { classPropertyName: "siblingRecords", publicName: "siblingRecords", isSignal: true, isRequired: false, transformFunction: null }, childSurfaces: { classPropertyName: "childSurfaces", publicName: "childSurfaces", isSignal: true, isRequired: false, transformFunction: null }, showSiblingSwitcher: { classPropertyName: "showSiblingSwitcher", publicName: "showSiblingSwitcher", isSignal: true, isRequired: false, transformFunction: null }, showCapabilitiesSync: { classPropertyName: "showCapabilitiesSync", publicName: "showCapabilitiesSync", isSignal: true, isRequired: false, transformFunction: null }, showRecordFormToggle: { classPropertyName: "showRecordFormToggle", publicName: "showRecordFormToggle", isSignal: true, isRequired: false, transformFunction: null }, showOverviewTab: { classPropertyName: "showOverviewTab", publicName: "showOverviewTab", isSignal: true, isRequired: false, transformFunction: null }, showKpiBand: { classPropertyName: "showKpiBand", publicName: "showKpiBand", isSignal: true, isRequired: false, transformFunction: null }, autoSelectFirst: { classPropertyName: "autoSelectFirst", publicName: "autoSelectFirst", isSignal: true, isRequired: false, transformFunction: null }, surfaceVariant: { classPropertyName: "surfaceVariant", publicName: "surfaceVariant", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { masterRecordChange: "masterRecordChange", masterRecordIdChange: "masterRecordIdChange", actionExecuted: "actionExecuted", childSurfaceChange: "childSurfaceChange", capabilitiesLoaded: "capabilitiesLoaded", dossierError: "dossierError" }, host: { properties: { "attr.data-surface-variant": "surfaceVariant()" }, classAttribute: "praxis-dossier-page" }, ngImport: i0, template: `
|
|
21813
|
+
<div class="praxis-dossier-shell">
|
|
21814
|
+
<header class="praxis-dossier-hero" data-testid="praxis-dossier-hero">
|
|
21815
|
+
<div class="praxis-dossier-hero__identity">
|
|
21816
|
+
<div class="praxis-dossier-hero__avatar" aria-hidden="true">
|
|
21817
|
+
@if (heroAvatarUrl(); as avatarUrl) {
|
|
21818
|
+
<img [src]="avatarUrl" alt="" />
|
|
21819
|
+
} @else {
|
|
21820
|
+
<mat-icon>{{ heroAvatarIcon() }}</mat-icon>
|
|
21821
|
+
}
|
|
21822
|
+
</div>
|
|
21823
|
+
<div class="praxis-dossier-hero__copy">
|
|
21824
|
+
<div class="praxis-dossier-hero__eyebrow">
|
|
21825
|
+
<span>{{ effectiveEyebrow() }}</span>
|
|
21826
|
+
@if (effectiveRecordId() !== null && effectiveRecordId() !== undefined && effectiveRecordId() !== '') {
|
|
21827
|
+
<span class="praxis-dossier-hero__key-badge" data-testid="dossier-key-badge">
|
|
21828
|
+
#{{ effectiveRecordId() }}
|
|
21829
|
+
</span>
|
|
21830
|
+
}
|
|
21831
|
+
</div>
|
|
21832
|
+
<h2 class="praxis-dossier-hero__title" data-testid="dossier-hero-title">
|
|
21833
|
+
{{ heroTitle() }}
|
|
21834
|
+
</h2>
|
|
21835
|
+
@if (heroSubtitle(); as sub) {
|
|
21836
|
+
<p class="praxis-dossier-hero__subtitle" data-testid="dossier-hero-subtitle">
|
|
21837
|
+
{{ sub }}
|
|
21838
|
+
</p>
|
|
21839
|
+
}
|
|
21840
|
+
@if (metadataChips().length > 0) {
|
|
21841
|
+
<div class="praxis-dossier-hero__chips" data-testid="dossier-metadata-chips">
|
|
21842
|
+
@for (chip of metadataChips(); track chip.field) {
|
|
21843
|
+
<span class="praxis-dossier-chip" [attr.data-field]="chip.field">
|
|
21844
|
+
<span class="praxis-dossier-chip__label">{{ chip.label }}:</span>
|
|
21845
|
+
<span data-testid="dossier-chip-value">{{ chip.value }}</span>
|
|
21846
|
+
@if (chip.masked) {
|
|
21847
|
+
<button
|
|
21848
|
+
type="button"
|
|
21849
|
+
class="praxis-dossier-chip__toggle"
|
|
21850
|
+
[attr.data-testid]="'dossier-reveal-' + chip.field"
|
|
21851
|
+
[attr.aria-pressed]="chip.revealed"
|
|
21852
|
+
(click)="toggleRevealField(chip.field)"
|
|
21853
|
+
>
|
|
21854
|
+
{{ chip.revealed ? tx('crud.dossier.hideSensitive', 'Ocultar') : tx('crud.dossier.revealSensitive', 'Revelar') }}
|
|
21855
|
+
</button>
|
|
21856
|
+
}
|
|
21857
|
+
</span>
|
|
21858
|
+
}
|
|
21859
|
+
</div>
|
|
21860
|
+
}
|
|
21861
|
+
</div>
|
|
21862
|
+
</div>
|
|
21863
|
+
|
|
21864
|
+
<div class="praxis-dossier-hero__controls">
|
|
21865
|
+
@if (showRecordFormToggle() && effectiveResourcePath() && effectiveRecordId() !== null) {
|
|
21866
|
+
<button
|
|
21867
|
+
type="button"
|
|
21868
|
+
mat-stroked-button
|
|
21869
|
+
data-testid="dossier-toggle-form-btn"
|
|
21870
|
+
(click)="toggleRecordForm()"
|
|
21871
|
+
>
|
|
21872
|
+
<mat-icon>{{ showRecordForm() ? 'expand_less' : 'badge' }}</mat-icon>
|
|
21873
|
+
<span>
|
|
21874
|
+
{{
|
|
21875
|
+
showRecordForm()
|
|
21876
|
+
? tx('crud.dossier.hideRecordForm', 'Ocultar ficha completa')
|
|
21877
|
+
: tx('crud.dossier.openRecordForm', 'Ficha completa')
|
|
21878
|
+
}}
|
|
21879
|
+
</span>
|
|
21880
|
+
</button>
|
|
21881
|
+
}
|
|
21882
|
+
|
|
21883
|
+
@if (showCapabilitiesSync() && effectiveResourcePath() && effectiveRecordId() !== null) {
|
|
21884
|
+
<button
|
|
21885
|
+
type="button"
|
|
21886
|
+
mat-stroked-button
|
|
21887
|
+
data-testid="dossier-sync-capabilities-btn"
|
|
21888
|
+
[disabled]="syncingCapabilities()"
|
|
21889
|
+
(click)="refreshItemDiscovery()"
|
|
21890
|
+
>
|
|
21891
|
+
<mat-icon>{{ capabilitiesSynced() ? 'verified' : 'sync' }}</mat-icon>
|
|
21892
|
+
<span>
|
|
21893
|
+
{{
|
|
21894
|
+
capabilitiesSynced()
|
|
21895
|
+
? tx('crud.dossier.capabilitiesSynced', 'Capacidades sincronizadas')
|
|
21896
|
+
: tx('crud.dossier.syncCapabilities', 'Sincronizar capacidades')
|
|
21897
|
+
}}
|
|
21898
|
+
</span>
|
|
21899
|
+
</button>
|
|
21900
|
+
}
|
|
21901
|
+
|
|
21902
|
+
@if (showSiblingSwitcher() && resolvedSiblings().length > 0) {
|
|
21903
|
+
<button
|
|
21904
|
+
type="button"
|
|
21905
|
+
mat-stroked-button
|
|
21906
|
+
data-testid="dossier-switcher-toggle-btn"
|
|
21907
|
+
[attr.aria-expanded]="switcherOpen()"
|
|
21908
|
+
(click)="toggleSwitcher()"
|
|
21909
|
+
>
|
|
21910
|
+
<mat-icon>swap_horiz</mat-icon>
|
|
21911
|
+
<span>
|
|
21912
|
+
{{
|
|
21913
|
+
switcherOpen()
|
|
21914
|
+
? tx('crud.dossier.switcherToggleOpen', 'Ocultar lista de registros')
|
|
21915
|
+
: txParams('crud.dossier.switcherToggleClosed', 'Trocar registro ({count})', { count: resolvedSiblings().length })
|
|
21916
|
+
}}
|
|
21917
|
+
</span>
|
|
21918
|
+
</button>
|
|
21919
|
+
}
|
|
21920
|
+
</div>
|
|
21921
|
+
</header>
|
|
21922
|
+
|
|
21923
|
+
@if (switcherOpen() && resolvedSiblings().length > 0) {
|
|
21924
|
+
<section
|
|
21925
|
+
class="praxis-dossier-switcher"
|
|
21926
|
+
data-testid="dossier-sibling-switcher"
|
|
21927
|
+
role="region"
|
|
21928
|
+
[attr.aria-label]="tx('crud.dossier.switcherLabel', 'Selecionar registro do dossiê')"
|
|
21929
|
+
>
|
|
21930
|
+
<input
|
|
21931
|
+
type="search"
|
|
21932
|
+
class="praxis-dossier-switcher__search"
|
|
21933
|
+
data-testid="dossier-switcher-search"
|
|
21934
|
+
[placeholder]="tx('crud.dossier.switcherSearchPlaceholder', 'Buscar registro na lista...')"
|
|
21935
|
+
[value]="switcherFilterText()"
|
|
21936
|
+
(input)="onSwitcherSearchInput($event)"
|
|
21937
|
+
/>
|
|
21938
|
+
<div class="praxis-dossier-switcher__grid" role="listbox">
|
|
21939
|
+
@for (sibling of filteredSiblings(); track resolveSiblingId(sibling)) {
|
|
21940
|
+
<button
|
|
21941
|
+
type="button"
|
|
21942
|
+
role="option"
|
|
21943
|
+
class="praxis-dossier-sibling-card"
|
|
21944
|
+
[class.praxis-dossier-sibling-card--active]="isActiveSibling(sibling)"
|
|
21945
|
+
[attr.aria-selected]="isActiveSibling(sibling)"
|
|
21946
|
+
[attr.data-testid]="'dossier-sibling-' + resolveSiblingId(sibling)"
|
|
21947
|
+
(click)="selectSiblingRecord(sibling)"
|
|
21948
|
+
>
|
|
21949
|
+
<span class="praxis-dossier-sibling-card__title">
|
|
21950
|
+
{{ resolveSiblingLabel(sibling) }}
|
|
21951
|
+
</span>
|
|
21952
|
+
@if (resolveSiblingSubtitle(sibling); as sibSub) {
|
|
21953
|
+
<span class="praxis-dossier-sibling-card__meta">{{ sibSub }}</span>
|
|
21954
|
+
}
|
|
21955
|
+
</button>
|
|
21956
|
+
}
|
|
21957
|
+
</div>
|
|
21958
|
+
</section>
|
|
21959
|
+
}
|
|
21960
|
+
|
|
21961
|
+
@if (partialFormSurfaces().length > 0 || itemWorkflowActions().length > 0) {
|
|
21962
|
+
<section class="praxis-dossier-capabilities" data-testid="dossier-quick-actions">
|
|
21963
|
+
@if (partialFormSurfaces().length > 0) {
|
|
21964
|
+
<div class="praxis-dossier-cap-group">
|
|
21965
|
+
<span class="praxis-dossier-cap-group__label">
|
|
21966
|
+
{{ tx('crud.dossier.intentsHeading', 'Intenções e atualizações parciais') }}
|
|
21967
|
+
</span>
|
|
21968
|
+
@for (surface of partialFormSurfaces(); track surface.id) {
|
|
21969
|
+
<button
|
|
21970
|
+
type="button"
|
|
21971
|
+
mat-stroked-button
|
|
21972
|
+
[attr.data-testid]="'dossier-intent-' + surface.id"
|
|
21973
|
+
[disabled]="surface.availability?.allowed === false"
|
|
21974
|
+
[matTooltip]="resolveSurfaceTooltip(surface)"
|
|
21975
|
+
(click)="executeIntentSurface(surface)"
|
|
21976
|
+
>
|
|
21977
|
+
<mat-icon>{{ surface.icon || 'edit_note' }}</mat-icon>
|
|
21978
|
+
<span>{{ surface.title || surface.id }}</span>
|
|
21979
|
+
</button>
|
|
21980
|
+
}
|
|
21981
|
+
</div>
|
|
21982
|
+
}
|
|
21983
|
+
|
|
21984
|
+
@if (itemWorkflowActions().length > 0) {
|
|
21985
|
+
<div class="praxis-dossier-cap-group">
|
|
21986
|
+
<span class="praxis-dossier-cap-group__label">
|
|
21987
|
+
{{ tx('crud.dossier.actionsHeading', 'Ações operacionais') }}
|
|
21988
|
+
</span>
|
|
21989
|
+
@for (action of itemWorkflowActions(); track action.id) {
|
|
21990
|
+
<button
|
|
21991
|
+
type="button"
|
|
21992
|
+
mat-stroked-button
|
|
21993
|
+
[attr.data-testid]="'dossier-action-' + action.id"
|
|
21994
|
+
[attr.data-tone]="action.tone || 'neutral'"
|
|
21995
|
+
[disabled]="action.availability?.allowed === false"
|
|
21996
|
+
[matTooltip]="resolveActionTooltip(action)"
|
|
21997
|
+
(click)="executeWorkflowAction(action)"
|
|
21998
|
+
>
|
|
21999
|
+
<mat-icon>{{ action.icon || 'bolt' }}</mat-icon>
|
|
22000
|
+
<span>{{ action.title || action.id }}</span>
|
|
22001
|
+
</button>
|
|
22002
|
+
}
|
|
22003
|
+
</div>
|
|
22004
|
+
}
|
|
22005
|
+
</section>
|
|
22006
|
+
}
|
|
22007
|
+
|
|
22008
|
+
@if (showRecordForm() && effectiveResourcePath() && effectiveRecordId() !== null) {
|
|
22009
|
+
<section class="praxis-dossier-record-form" data-testid="dossier-record-form-panel">
|
|
22010
|
+
<praxis-dynamic-form
|
|
22011
|
+
[resourcePath]="effectiveResourcePath()!"
|
|
22012
|
+
[resourceId]="effectiveRecordId()!"
|
|
22013
|
+
[initialValue]="masterRecord()"
|
|
22014
|
+
mode="view"
|
|
22015
|
+
presentationPreset="corporate-dossier"
|
|
22016
|
+
sectionDefaultAppearance="plain"
|
|
22017
|
+
[sectionDivider]="true"
|
|
22018
|
+
configPersistenceStrategy="volatile"
|
|
22019
|
+
[actions]="readOnlyFormActions"
|
|
22020
|
+
/>
|
|
22021
|
+
</section>
|
|
22022
|
+
}
|
|
22023
|
+
|
|
22024
|
+
@if (hasError()) {
|
|
22025
|
+
<section class="praxis-dossier-state" data-testid="dossier-error-state" role="alert">
|
|
22026
|
+
<p>{{ tx('crud.dossier.loadError', 'Não foi possível carregar os metadados ou o registro solicitado.') }}</p>
|
|
22027
|
+
<button type="button" mat-stroked-button (click)="reloadDossier()">
|
|
22028
|
+
<mat-icon>refresh</mat-icon>
|
|
22029
|
+
<span>{{ tx('crud.dossier.retry', 'Tentar novamente') }}</span>
|
|
22030
|
+
</button>
|
|
22031
|
+
</section>
|
|
22032
|
+
} @else if (loading() && !masterRecord()) {
|
|
22033
|
+
<section class="praxis-dossier-state" data-testid="dossier-loading-state">
|
|
22034
|
+
<p>{{ tx('crud.dossier.loading', 'Carregando dossiê do registro...') }}</p>
|
|
22035
|
+
</section>
|
|
22036
|
+
} @else if (!effectiveRecordId() && !masterRecord()) {
|
|
22037
|
+
<section class="praxis-dossier-state" data-testid="dossier-empty-state">
|
|
22038
|
+
<strong>{{ tx('crud.dossier.noRecordTitle', 'Nenhum registro mestre selecionado') }}</strong>
|
|
22039
|
+
<p>{{ tx('crud.dossier.noRecordDescription', 'Informe um identificador ou selecione um registro na lista para carregar o dossiê completo.') }}</p>
|
|
22040
|
+
</section>
|
|
22041
|
+
} @else {
|
|
22042
|
+
@if (resolvedChildTabs().length > 0 || showOverviewTab()) {
|
|
22043
|
+
<nav
|
|
22044
|
+
class="praxis-dossier-tabs"
|
|
22045
|
+
role="tablist"
|
|
22046
|
+
data-testid="dossier-child-tabs"
|
|
22047
|
+
>
|
|
22048
|
+
@if (showOverviewTab()) {
|
|
22049
|
+
<button
|
|
22050
|
+
type="button"
|
|
22051
|
+
role="tab"
|
|
22052
|
+
class="praxis-dossier-tab"
|
|
22053
|
+
data-tab-id="overview"
|
|
22054
|
+
data-testid="dossier-tab-overview"
|
|
22055
|
+
[class.praxis-dossier-tab--active]="activeTabId() === 'overview'"
|
|
22056
|
+
[attr.aria-selected]="activeTabId() === 'overview'"
|
|
22057
|
+
(click)="selectTab('overview')"
|
|
22058
|
+
>
|
|
22059
|
+
<mat-icon>summarize</mat-icon>
|
|
22060
|
+
<span>{{ tx('crud.dossier.tabs.overview', 'Visão geral') }}</span>
|
|
22061
|
+
</button>
|
|
22062
|
+
}
|
|
22063
|
+
|
|
22064
|
+
@for (tab of resolvedChildTabs(); track tab.id) {
|
|
22065
|
+
<button
|
|
22066
|
+
type="button"
|
|
22067
|
+
role="tab"
|
|
22068
|
+
class="praxis-dossier-tab"
|
|
22069
|
+
[attr.data-tab-id]="tab.id"
|
|
22070
|
+
[attr.data-testid]="'dossier-tab-' + tab.id"
|
|
22071
|
+
[class.praxis-dossier-tab--active]="activeTabId() === tab.id"
|
|
22072
|
+
[attr.aria-selected]="activeTabId() === tab.id"
|
|
22073
|
+
(click)="selectTab(tab.id)"
|
|
22074
|
+
>
|
|
22075
|
+
<mat-icon>{{ tab.icon }}</mat-icon>
|
|
22076
|
+
<span>{{ tab.label }}</span>
|
|
22077
|
+
</button>
|
|
22078
|
+
}
|
|
22079
|
+
</nav>
|
|
22080
|
+
|
|
22081
|
+
@if (activeTabId() === 'overview' && showOverviewTab()) {
|
|
22082
|
+
<section
|
|
22083
|
+
role="tabpanel"
|
|
22084
|
+
class="praxis-dossier-overview-grid"
|
|
22085
|
+
data-testid="dossier-overview-panel"
|
|
22086
|
+
>
|
|
22087
|
+
@for (item of overviewFields(); track item.field) {
|
|
22088
|
+
<div class="praxis-dossier-overview-item">
|
|
22089
|
+
<span class="praxis-dossier-overview-item__label">{{ item.label }}</span>
|
|
22090
|
+
<span class="praxis-dossier-overview-item__value">{{ item.value }}</span>
|
|
22091
|
+
</div>
|
|
22092
|
+
}
|
|
22093
|
+
</section>
|
|
22094
|
+
} @else if (activeChildTab(); as childTab) {
|
|
22095
|
+
<section
|
|
22096
|
+
role="tabpanel"
|
|
22097
|
+
class="praxis-dossier-child-panel"
|
|
22098
|
+
[attr.data-testid]="'dossier-child-panel-' + childTab.id"
|
|
22099
|
+
>
|
|
22100
|
+
<praxis-crud
|
|
22101
|
+
[crudId]="'dossier-' + childTab.id"
|
|
22102
|
+
[resource]="childTab.resourcePath"
|
|
22103
|
+
[metadata]="buildChildCrudMetadata(childTab)"
|
|
22104
|
+
[filterCriteria]="buildChildFilterCriteria(childTab)"
|
|
22105
|
+
[lockedFilterFields]="childTab.lockedFilterFields"
|
|
22106
|
+
[hostManagedChrome]="true"
|
|
22107
|
+
[enableCustomization]="false"
|
|
22108
|
+
tableConfigPersistenceStrategy="volatile"
|
|
22109
|
+
/>
|
|
22110
|
+
</section>
|
|
22111
|
+
}
|
|
22112
|
+
}
|
|
22113
|
+
}
|
|
22114
|
+
</div>
|
|
22115
|
+
`, isInline: true, styles: [":host{display:block;width:100%;box-sizing:border-box}.praxis-dossier-shell{display:flex;flex-direction:column;gap:var(--praxis-dossier-gap, 16px);width:100%}.praxis-dossier-hero{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .28))}:host([data-surface-variant=\"default\"]) .praxis-dossier-hero{padding:16px 20px;border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .25));border-radius:var(--praxis-surface-radius, 12px);background:var(--mat-sys-surface-container-low, transparent)}.praxis-dossier-hero__identity{display:flex;align-items:flex-start;gap:14px;min-width:240px;flex:1 1 380px}.praxis-dossier-hero__avatar{width:48px;height:48px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:var(--mat-sys-primary-container, rgba(37, 99, 235, .12));color:var(--mat-sys-on-primary-container, #1d4ed8);font-weight:700;flex-shrink:0;overflow:hidden}.praxis-dossier-hero__avatar img{width:100%;height:100%;object-fit:cover}.praxis-dossier-hero__eyebrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--mat-sys-on-surface-variant, #64748b);margin-bottom:4px}.praxis-dossier-hero__key-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:.72rem;font-variant-numeric:tabular-nums;background:var(--mat-sys-surface-container-highest, rgba(148, 163, 184, .18));color:var(--mat-sys-on-surface, inherit);text-transform:none;letter-spacing:normal}.praxis-dossier-hero__title{margin:0;font-size:1.35rem;font-weight:700;line-height:1.25}.praxis-dossier-hero__subtitle{margin:4px 0 0;font-size:.9rem;color:var(--mat-sys-on-surface-variant, #64748b)}.praxis-dossier-hero__chips{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:10px;font-size:.82rem}.praxis-dossier-chip{display:inline-flex;align-items:center;gap:6px;color:var(--mat-sys-on-surface, inherit)}.praxis-dossier-chip__label{color:var(--mat-sys-on-surface-variant, #64748b);font-weight:600}.praxis-dossier-chip__toggle{border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .35));background:transparent;color:inherit;border-radius:6px;padding:1px 6px;font-size:.72rem;cursor:pointer}.praxis-dossier-hero__controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}.praxis-dossier-switcher{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .25));border-radius:var(--praxis-surface-radius, 10px);background:var(--mat-sys-surface-container-lowest, transparent)}.praxis-dossier-switcher__search{max-width:320px;padding:6px 10px;border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .35));border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:.85rem}.praxis-dossier-switcher__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.praxis-dossier-sibling-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:10px 12px;border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .3));border-radius:10px;background:transparent;color:inherit;text-align:left;cursor:pointer;transition:border-color .14s ease,background-color .14s ease}.praxis-dossier-sibling-card--active{border-color:var(--mat-sys-primary, #2563eb);background:var(--mat-sys-primary-container, rgba(37, 99, 235, .08))}.praxis-dossier-sibling-card__title{font-weight:600;font-size:.9rem}.praxis-dossier-sibling-card__meta{font-size:.78rem;color:var(--mat-sys-on-surface-variant, #64748b)}.praxis-dossier-capabilities{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;padding:8px 0}.praxis-dossier-cap-group{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.praxis-dossier-cap-group__label{font-size:.78rem;font-weight:600;color:var(--mat-sys-on-surface-variant, #64748b)}.praxis-dossier-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .25));padding-bottom:4px}.praxis-dossier-tab{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--mat-sys-on-surface-variant, #64748b);font:inherit;font-size:.88rem;font-weight:600;cursor:pointer;border-radius:6px 6px 0 0}.praxis-dossier-tab--active{color:var(--mat-sys-primary, #2563eb);border-bottom-color:var(--mat-sys-primary, #2563eb);background:var(--mat-sys-surface-container-low, rgba(37, 99, 235, .06))}.praxis-dossier-overview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px 16px;padding:12px 0}.praxis-dossier-overview-item{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .16))}.praxis-dossier-overview-item__label{font-size:.76rem;font-weight:600;color:var(--mat-sys-on-surface-variant, #64748b)}.praxis-dossier-overview-item__value{font-size:.92rem}.praxis-dossier-state{padding:20px 16px;border:1px dashed var(--mat-sys-outline-variant, rgba(148, 163, 184, .35));border-radius:10px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: PraxisCrudComponent, selector: "praxis-crud", inputs: ["metadata", "crudId", "resource", "componentInstanceId", "tableConfigPersistenceStrategy", "context", "enableCustomization", "showResourceIdentityKey", "authoringCapability", "filterCriteria", "lockedFilterFields", "schemaFields", "filterTeleport", "disableAutoDrawer", "hostManagedChrome"], outputs: ["configureRequested", "afterOpen", "afterClose", "afterSave", "afterDelete", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "reactiveDeterminationStabilityChange", "error", "rowClick", "rowAction", "selectionChange", "resourceEvent", "tableRuntimeConfigChange", "drawerOpen", "drawerClose", "crudAuthoringDocumentApplied", "crudAuthoringDocumentSaved", "filterCriteriaChange", "discoveredQuickFiltersChange", "kpiCardClick"] }, { kind: "component", type: PraxisDynamicForm, selector: "praxis-dynamic-form", inputs: ["resourcePath", "resourceId", "initialValue", "emptyState", "editorialContext", "mode", "config", "actions", "schemaSource", "actionId", "operationId", "schemaUrl", "readUrl", "submitUrl", "submitMethod", "submitIdempotencyKey", "submitCorrelationId", "submitResourceVersion", "submitResourceVersionTargetResourceKey", "submitResourceVersionTargetIdField", "responseSchemaUrl", "apiEndpointKey", "apiUrlEntry", "enableCustomization", "showAiAssistant", "formId", "componentInstanceId", "configPersistenceStrategy", "layout", "layoutMode", "formLayout", "generatedLayoutPreset", "layoutPolicy", "backConfig", "hooks", "removeEmptyContainersOnSave", "reactiveValidation", "reactiveValidationDebounceMs", "notifyIfOutdated", "snoozeMs", "autoOpenSettingsOnOutdated", "readonlyModeGlobal", "disabledModeGlobal", "presentationModeGlobal", "presentation", "presentationPreset", "sectionDefaultAppearance", "sectionDivider", "visibleGlobal", "fieldIconPolicy", "domainRules", "customEndpoints", "activeStepIndex"], outputs: ["formSubmit", "formCancel", "formReset", "configChange", "configPatchChange", "formReady", "valueChange", "payloadPreviewChange", "syncCompleted", "initializationError", "loadingStateChange", "enableCustomizationChange", "customAction", "actionConfirmation", "schemaStatusChange", "fieldRenderError", "ruleDiagnosticsChange", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "tabChange", "tabSelected", "stepChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
22116
|
+
}
|
|
22117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisDossierPageComponent, decorators: [{
|
|
22118
|
+
type: Component,
|
|
22119
|
+
args: [{ selector: 'praxis-dossier-page', standalone: true, imports: [
|
|
22120
|
+
CommonModule,
|
|
22121
|
+
MatIconModule,
|
|
22122
|
+
MatButtonModule,
|
|
22123
|
+
MatTooltipModule,
|
|
22124
|
+
PraxisCrudComponent,
|
|
22125
|
+
PraxisDynamicForm,
|
|
22126
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
22127
|
+
class: 'praxis-dossier-page',
|
|
22128
|
+
'[attr.data-surface-variant]': 'surfaceVariant()',
|
|
22129
|
+
}, template: `
|
|
22130
|
+
<div class="praxis-dossier-shell">
|
|
22131
|
+
<header class="praxis-dossier-hero" data-testid="praxis-dossier-hero">
|
|
22132
|
+
<div class="praxis-dossier-hero__identity">
|
|
22133
|
+
<div class="praxis-dossier-hero__avatar" aria-hidden="true">
|
|
22134
|
+
@if (heroAvatarUrl(); as avatarUrl) {
|
|
22135
|
+
<img [src]="avatarUrl" alt="" />
|
|
22136
|
+
} @else {
|
|
22137
|
+
<mat-icon>{{ heroAvatarIcon() }}</mat-icon>
|
|
22138
|
+
}
|
|
22139
|
+
</div>
|
|
22140
|
+
<div class="praxis-dossier-hero__copy">
|
|
22141
|
+
<div class="praxis-dossier-hero__eyebrow">
|
|
22142
|
+
<span>{{ effectiveEyebrow() }}</span>
|
|
22143
|
+
@if (effectiveRecordId() !== null && effectiveRecordId() !== undefined && effectiveRecordId() !== '') {
|
|
22144
|
+
<span class="praxis-dossier-hero__key-badge" data-testid="dossier-key-badge">
|
|
22145
|
+
#{{ effectiveRecordId() }}
|
|
22146
|
+
</span>
|
|
22147
|
+
}
|
|
22148
|
+
</div>
|
|
22149
|
+
<h2 class="praxis-dossier-hero__title" data-testid="dossier-hero-title">
|
|
22150
|
+
{{ heroTitle() }}
|
|
22151
|
+
</h2>
|
|
22152
|
+
@if (heroSubtitle(); as sub) {
|
|
22153
|
+
<p class="praxis-dossier-hero__subtitle" data-testid="dossier-hero-subtitle">
|
|
22154
|
+
{{ sub }}
|
|
22155
|
+
</p>
|
|
22156
|
+
}
|
|
22157
|
+
@if (metadataChips().length > 0) {
|
|
22158
|
+
<div class="praxis-dossier-hero__chips" data-testid="dossier-metadata-chips">
|
|
22159
|
+
@for (chip of metadataChips(); track chip.field) {
|
|
22160
|
+
<span class="praxis-dossier-chip" [attr.data-field]="chip.field">
|
|
22161
|
+
<span class="praxis-dossier-chip__label">{{ chip.label }}:</span>
|
|
22162
|
+
<span data-testid="dossier-chip-value">{{ chip.value }}</span>
|
|
22163
|
+
@if (chip.masked) {
|
|
22164
|
+
<button
|
|
22165
|
+
type="button"
|
|
22166
|
+
class="praxis-dossier-chip__toggle"
|
|
22167
|
+
[attr.data-testid]="'dossier-reveal-' + chip.field"
|
|
22168
|
+
[attr.aria-pressed]="chip.revealed"
|
|
22169
|
+
(click)="toggleRevealField(chip.field)"
|
|
22170
|
+
>
|
|
22171
|
+
{{ chip.revealed ? tx('crud.dossier.hideSensitive', 'Ocultar') : tx('crud.dossier.revealSensitive', 'Revelar') }}
|
|
22172
|
+
</button>
|
|
22173
|
+
}
|
|
22174
|
+
</span>
|
|
22175
|
+
}
|
|
22176
|
+
</div>
|
|
22177
|
+
}
|
|
22178
|
+
</div>
|
|
22179
|
+
</div>
|
|
22180
|
+
|
|
22181
|
+
<div class="praxis-dossier-hero__controls">
|
|
22182
|
+
@if (showRecordFormToggle() && effectiveResourcePath() && effectiveRecordId() !== null) {
|
|
22183
|
+
<button
|
|
22184
|
+
type="button"
|
|
22185
|
+
mat-stroked-button
|
|
22186
|
+
data-testid="dossier-toggle-form-btn"
|
|
22187
|
+
(click)="toggleRecordForm()"
|
|
22188
|
+
>
|
|
22189
|
+
<mat-icon>{{ showRecordForm() ? 'expand_less' : 'badge' }}</mat-icon>
|
|
22190
|
+
<span>
|
|
22191
|
+
{{
|
|
22192
|
+
showRecordForm()
|
|
22193
|
+
? tx('crud.dossier.hideRecordForm', 'Ocultar ficha completa')
|
|
22194
|
+
: tx('crud.dossier.openRecordForm', 'Ficha completa')
|
|
22195
|
+
}}
|
|
22196
|
+
</span>
|
|
22197
|
+
</button>
|
|
22198
|
+
}
|
|
22199
|
+
|
|
22200
|
+
@if (showCapabilitiesSync() && effectiveResourcePath() && effectiveRecordId() !== null) {
|
|
22201
|
+
<button
|
|
22202
|
+
type="button"
|
|
22203
|
+
mat-stroked-button
|
|
22204
|
+
data-testid="dossier-sync-capabilities-btn"
|
|
22205
|
+
[disabled]="syncingCapabilities()"
|
|
22206
|
+
(click)="refreshItemDiscovery()"
|
|
22207
|
+
>
|
|
22208
|
+
<mat-icon>{{ capabilitiesSynced() ? 'verified' : 'sync' }}</mat-icon>
|
|
22209
|
+
<span>
|
|
22210
|
+
{{
|
|
22211
|
+
capabilitiesSynced()
|
|
22212
|
+
? tx('crud.dossier.capabilitiesSynced', 'Capacidades sincronizadas')
|
|
22213
|
+
: tx('crud.dossier.syncCapabilities', 'Sincronizar capacidades')
|
|
22214
|
+
}}
|
|
22215
|
+
</span>
|
|
22216
|
+
</button>
|
|
22217
|
+
}
|
|
22218
|
+
|
|
22219
|
+
@if (showSiblingSwitcher() && resolvedSiblings().length > 0) {
|
|
22220
|
+
<button
|
|
22221
|
+
type="button"
|
|
22222
|
+
mat-stroked-button
|
|
22223
|
+
data-testid="dossier-switcher-toggle-btn"
|
|
22224
|
+
[attr.aria-expanded]="switcherOpen()"
|
|
22225
|
+
(click)="toggleSwitcher()"
|
|
22226
|
+
>
|
|
22227
|
+
<mat-icon>swap_horiz</mat-icon>
|
|
22228
|
+
<span>
|
|
22229
|
+
{{
|
|
22230
|
+
switcherOpen()
|
|
22231
|
+
? tx('crud.dossier.switcherToggleOpen', 'Ocultar lista de registros')
|
|
22232
|
+
: txParams('crud.dossier.switcherToggleClosed', 'Trocar registro ({count})', { count: resolvedSiblings().length })
|
|
22233
|
+
}}
|
|
22234
|
+
</span>
|
|
22235
|
+
</button>
|
|
22236
|
+
}
|
|
22237
|
+
</div>
|
|
22238
|
+
</header>
|
|
22239
|
+
|
|
22240
|
+
@if (switcherOpen() && resolvedSiblings().length > 0) {
|
|
22241
|
+
<section
|
|
22242
|
+
class="praxis-dossier-switcher"
|
|
22243
|
+
data-testid="dossier-sibling-switcher"
|
|
22244
|
+
role="region"
|
|
22245
|
+
[attr.aria-label]="tx('crud.dossier.switcherLabel', 'Selecionar registro do dossiê')"
|
|
22246
|
+
>
|
|
22247
|
+
<input
|
|
22248
|
+
type="search"
|
|
22249
|
+
class="praxis-dossier-switcher__search"
|
|
22250
|
+
data-testid="dossier-switcher-search"
|
|
22251
|
+
[placeholder]="tx('crud.dossier.switcherSearchPlaceholder', 'Buscar registro na lista...')"
|
|
22252
|
+
[value]="switcherFilterText()"
|
|
22253
|
+
(input)="onSwitcherSearchInput($event)"
|
|
22254
|
+
/>
|
|
22255
|
+
<div class="praxis-dossier-switcher__grid" role="listbox">
|
|
22256
|
+
@for (sibling of filteredSiblings(); track resolveSiblingId(sibling)) {
|
|
22257
|
+
<button
|
|
22258
|
+
type="button"
|
|
22259
|
+
role="option"
|
|
22260
|
+
class="praxis-dossier-sibling-card"
|
|
22261
|
+
[class.praxis-dossier-sibling-card--active]="isActiveSibling(sibling)"
|
|
22262
|
+
[attr.aria-selected]="isActiveSibling(sibling)"
|
|
22263
|
+
[attr.data-testid]="'dossier-sibling-' + resolveSiblingId(sibling)"
|
|
22264
|
+
(click)="selectSiblingRecord(sibling)"
|
|
22265
|
+
>
|
|
22266
|
+
<span class="praxis-dossier-sibling-card__title">
|
|
22267
|
+
{{ resolveSiblingLabel(sibling) }}
|
|
22268
|
+
</span>
|
|
22269
|
+
@if (resolveSiblingSubtitle(sibling); as sibSub) {
|
|
22270
|
+
<span class="praxis-dossier-sibling-card__meta">{{ sibSub }}</span>
|
|
22271
|
+
}
|
|
22272
|
+
</button>
|
|
22273
|
+
}
|
|
22274
|
+
</div>
|
|
22275
|
+
</section>
|
|
22276
|
+
}
|
|
22277
|
+
|
|
22278
|
+
@if (partialFormSurfaces().length > 0 || itemWorkflowActions().length > 0) {
|
|
22279
|
+
<section class="praxis-dossier-capabilities" data-testid="dossier-quick-actions">
|
|
22280
|
+
@if (partialFormSurfaces().length > 0) {
|
|
22281
|
+
<div class="praxis-dossier-cap-group">
|
|
22282
|
+
<span class="praxis-dossier-cap-group__label">
|
|
22283
|
+
{{ tx('crud.dossier.intentsHeading', 'Intenções e atualizações parciais') }}
|
|
22284
|
+
</span>
|
|
22285
|
+
@for (surface of partialFormSurfaces(); track surface.id) {
|
|
22286
|
+
<button
|
|
22287
|
+
type="button"
|
|
22288
|
+
mat-stroked-button
|
|
22289
|
+
[attr.data-testid]="'dossier-intent-' + surface.id"
|
|
22290
|
+
[disabled]="surface.availability?.allowed === false"
|
|
22291
|
+
[matTooltip]="resolveSurfaceTooltip(surface)"
|
|
22292
|
+
(click)="executeIntentSurface(surface)"
|
|
22293
|
+
>
|
|
22294
|
+
<mat-icon>{{ surface.icon || 'edit_note' }}</mat-icon>
|
|
22295
|
+
<span>{{ surface.title || surface.id }}</span>
|
|
22296
|
+
</button>
|
|
22297
|
+
}
|
|
22298
|
+
</div>
|
|
22299
|
+
}
|
|
22300
|
+
|
|
22301
|
+
@if (itemWorkflowActions().length > 0) {
|
|
22302
|
+
<div class="praxis-dossier-cap-group">
|
|
22303
|
+
<span class="praxis-dossier-cap-group__label">
|
|
22304
|
+
{{ tx('crud.dossier.actionsHeading', 'Ações operacionais') }}
|
|
22305
|
+
</span>
|
|
22306
|
+
@for (action of itemWorkflowActions(); track action.id) {
|
|
22307
|
+
<button
|
|
22308
|
+
type="button"
|
|
22309
|
+
mat-stroked-button
|
|
22310
|
+
[attr.data-testid]="'dossier-action-' + action.id"
|
|
22311
|
+
[attr.data-tone]="action.tone || 'neutral'"
|
|
22312
|
+
[disabled]="action.availability?.allowed === false"
|
|
22313
|
+
[matTooltip]="resolveActionTooltip(action)"
|
|
22314
|
+
(click)="executeWorkflowAction(action)"
|
|
22315
|
+
>
|
|
22316
|
+
<mat-icon>{{ action.icon || 'bolt' }}</mat-icon>
|
|
22317
|
+
<span>{{ action.title || action.id }}</span>
|
|
22318
|
+
</button>
|
|
22319
|
+
}
|
|
22320
|
+
</div>
|
|
22321
|
+
}
|
|
22322
|
+
</section>
|
|
22323
|
+
}
|
|
22324
|
+
|
|
22325
|
+
@if (showRecordForm() && effectiveResourcePath() && effectiveRecordId() !== null) {
|
|
22326
|
+
<section class="praxis-dossier-record-form" data-testid="dossier-record-form-panel">
|
|
22327
|
+
<praxis-dynamic-form
|
|
22328
|
+
[resourcePath]="effectiveResourcePath()!"
|
|
22329
|
+
[resourceId]="effectiveRecordId()!"
|
|
22330
|
+
[initialValue]="masterRecord()"
|
|
22331
|
+
mode="view"
|
|
22332
|
+
presentationPreset="corporate-dossier"
|
|
22333
|
+
sectionDefaultAppearance="plain"
|
|
22334
|
+
[sectionDivider]="true"
|
|
22335
|
+
configPersistenceStrategy="volatile"
|
|
22336
|
+
[actions]="readOnlyFormActions"
|
|
22337
|
+
/>
|
|
22338
|
+
</section>
|
|
22339
|
+
}
|
|
22340
|
+
|
|
22341
|
+
@if (hasError()) {
|
|
22342
|
+
<section class="praxis-dossier-state" data-testid="dossier-error-state" role="alert">
|
|
22343
|
+
<p>{{ tx('crud.dossier.loadError', 'Não foi possível carregar os metadados ou o registro solicitado.') }}</p>
|
|
22344
|
+
<button type="button" mat-stroked-button (click)="reloadDossier()">
|
|
22345
|
+
<mat-icon>refresh</mat-icon>
|
|
22346
|
+
<span>{{ tx('crud.dossier.retry', 'Tentar novamente') }}</span>
|
|
22347
|
+
</button>
|
|
22348
|
+
</section>
|
|
22349
|
+
} @else if (loading() && !masterRecord()) {
|
|
22350
|
+
<section class="praxis-dossier-state" data-testid="dossier-loading-state">
|
|
22351
|
+
<p>{{ tx('crud.dossier.loading', 'Carregando dossiê do registro...') }}</p>
|
|
22352
|
+
</section>
|
|
22353
|
+
} @else if (!effectiveRecordId() && !masterRecord()) {
|
|
22354
|
+
<section class="praxis-dossier-state" data-testid="dossier-empty-state">
|
|
22355
|
+
<strong>{{ tx('crud.dossier.noRecordTitle', 'Nenhum registro mestre selecionado') }}</strong>
|
|
22356
|
+
<p>{{ tx('crud.dossier.noRecordDescription', 'Informe um identificador ou selecione um registro na lista para carregar o dossiê completo.') }}</p>
|
|
22357
|
+
</section>
|
|
22358
|
+
} @else {
|
|
22359
|
+
@if (resolvedChildTabs().length > 0 || showOverviewTab()) {
|
|
22360
|
+
<nav
|
|
22361
|
+
class="praxis-dossier-tabs"
|
|
22362
|
+
role="tablist"
|
|
22363
|
+
data-testid="dossier-child-tabs"
|
|
22364
|
+
>
|
|
22365
|
+
@if (showOverviewTab()) {
|
|
22366
|
+
<button
|
|
22367
|
+
type="button"
|
|
22368
|
+
role="tab"
|
|
22369
|
+
class="praxis-dossier-tab"
|
|
22370
|
+
data-tab-id="overview"
|
|
22371
|
+
data-testid="dossier-tab-overview"
|
|
22372
|
+
[class.praxis-dossier-tab--active]="activeTabId() === 'overview'"
|
|
22373
|
+
[attr.aria-selected]="activeTabId() === 'overview'"
|
|
22374
|
+
(click)="selectTab('overview')"
|
|
22375
|
+
>
|
|
22376
|
+
<mat-icon>summarize</mat-icon>
|
|
22377
|
+
<span>{{ tx('crud.dossier.tabs.overview', 'Visão geral') }}</span>
|
|
22378
|
+
</button>
|
|
22379
|
+
}
|
|
22380
|
+
|
|
22381
|
+
@for (tab of resolvedChildTabs(); track tab.id) {
|
|
22382
|
+
<button
|
|
22383
|
+
type="button"
|
|
22384
|
+
role="tab"
|
|
22385
|
+
class="praxis-dossier-tab"
|
|
22386
|
+
[attr.data-tab-id]="tab.id"
|
|
22387
|
+
[attr.data-testid]="'dossier-tab-' + tab.id"
|
|
22388
|
+
[class.praxis-dossier-tab--active]="activeTabId() === tab.id"
|
|
22389
|
+
[attr.aria-selected]="activeTabId() === tab.id"
|
|
22390
|
+
(click)="selectTab(tab.id)"
|
|
22391
|
+
>
|
|
22392
|
+
<mat-icon>{{ tab.icon }}</mat-icon>
|
|
22393
|
+
<span>{{ tab.label }}</span>
|
|
22394
|
+
</button>
|
|
22395
|
+
}
|
|
22396
|
+
</nav>
|
|
22397
|
+
|
|
22398
|
+
@if (activeTabId() === 'overview' && showOverviewTab()) {
|
|
22399
|
+
<section
|
|
22400
|
+
role="tabpanel"
|
|
22401
|
+
class="praxis-dossier-overview-grid"
|
|
22402
|
+
data-testid="dossier-overview-panel"
|
|
22403
|
+
>
|
|
22404
|
+
@for (item of overviewFields(); track item.field) {
|
|
22405
|
+
<div class="praxis-dossier-overview-item">
|
|
22406
|
+
<span class="praxis-dossier-overview-item__label">{{ item.label }}</span>
|
|
22407
|
+
<span class="praxis-dossier-overview-item__value">{{ item.value }}</span>
|
|
22408
|
+
</div>
|
|
22409
|
+
}
|
|
22410
|
+
</section>
|
|
22411
|
+
} @else if (activeChildTab(); as childTab) {
|
|
22412
|
+
<section
|
|
22413
|
+
role="tabpanel"
|
|
22414
|
+
class="praxis-dossier-child-panel"
|
|
22415
|
+
[attr.data-testid]="'dossier-child-panel-' + childTab.id"
|
|
22416
|
+
>
|
|
22417
|
+
<praxis-crud
|
|
22418
|
+
[crudId]="'dossier-' + childTab.id"
|
|
22419
|
+
[resource]="childTab.resourcePath"
|
|
22420
|
+
[metadata]="buildChildCrudMetadata(childTab)"
|
|
22421
|
+
[filterCriteria]="buildChildFilterCriteria(childTab)"
|
|
22422
|
+
[lockedFilterFields]="childTab.lockedFilterFields"
|
|
22423
|
+
[hostManagedChrome]="true"
|
|
22424
|
+
[enableCustomization]="false"
|
|
22425
|
+
tableConfigPersistenceStrategy="volatile"
|
|
22426
|
+
/>
|
|
22427
|
+
</section>
|
|
22428
|
+
}
|
|
22429
|
+
}
|
|
22430
|
+
}
|
|
22431
|
+
</div>
|
|
22432
|
+
`, styles: [":host{display:block;width:100%;box-sizing:border-box}.praxis-dossier-shell{display:flex;flex-direction:column;gap:var(--praxis-dossier-gap, 16px);width:100%}.praxis-dossier-hero{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .28))}:host([data-surface-variant=\"default\"]) .praxis-dossier-hero{padding:16px 20px;border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .25));border-radius:var(--praxis-surface-radius, 12px);background:var(--mat-sys-surface-container-low, transparent)}.praxis-dossier-hero__identity{display:flex;align-items:flex-start;gap:14px;min-width:240px;flex:1 1 380px}.praxis-dossier-hero__avatar{width:48px;height:48px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:var(--mat-sys-primary-container, rgba(37, 99, 235, .12));color:var(--mat-sys-on-primary-container, #1d4ed8);font-weight:700;flex-shrink:0;overflow:hidden}.praxis-dossier-hero__avatar img{width:100%;height:100%;object-fit:cover}.praxis-dossier-hero__eyebrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--mat-sys-on-surface-variant, #64748b);margin-bottom:4px}.praxis-dossier-hero__key-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:.72rem;font-variant-numeric:tabular-nums;background:var(--mat-sys-surface-container-highest, rgba(148, 163, 184, .18));color:var(--mat-sys-on-surface, inherit);text-transform:none;letter-spacing:normal}.praxis-dossier-hero__title{margin:0;font-size:1.35rem;font-weight:700;line-height:1.25}.praxis-dossier-hero__subtitle{margin:4px 0 0;font-size:.9rem;color:var(--mat-sys-on-surface-variant, #64748b)}.praxis-dossier-hero__chips{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:10px;font-size:.82rem}.praxis-dossier-chip{display:inline-flex;align-items:center;gap:6px;color:var(--mat-sys-on-surface, inherit)}.praxis-dossier-chip__label{color:var(--mat-sys-on-surface-variant, #64748b);font-weight:600}.praxis-dossier-chip__toggle{border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .35));background:transparent;color:inherit;border-radius:6px;padding:1px 6px;font-size:.72rem;cursor:pointer}.praxis-dossier-hero__controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}.praxis-dossier-switcher{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .25));border-radius:var(--praxis-surface-radius, 10px);background:var(--mat-sys-surface-container-lowest, transparent)}.praxis-dossier-switcher__search{max-width:320px;padding:6px 10px;border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .35));border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:.85rem}.praxis-dossier-switcher__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.praxis-dossier-sibling-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:10px 12px;border:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .3));border-radius:10px;background:transparent;color:inherit;text-align:left;cursor:pointer;transition:border-color .14s ease,background-color .14s ease}.praxis-dossier-sibling-card--active{border-color:var(--mat-sys-primary, #2563eb);background:var(--mat-sys-primary-container, rgba(37, 99, 235, .08))}.praxis-dossier-sibling-card__title{font-weight:600;font-size:.9rem}.praxis-dossier-sibling-card__meta{font-size:.78rem;color:var(--mat-sys-on-surface-variant, #64748b)}.praxis-dossier-capabilities{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;padding:8px 0}.praxis-dossier-cap-group{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.praxis-dossier-cap-group__label{font-size:.78rem;font-weight:600;color:var(--mat-sys-on-surface-variant, #64748b)}.praxis-dossier-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .25));padding-bottom:4px}.praxis-dossier-tab{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--mat-sys-on-surface-variant, #64748b);font:inherit;font-size:.88rem;font-weight:600;cursor:pointer;border-radius:6px 6px 0 0}.praxis-dossier-tab--active{color:var(--mat-sys-primary, #2563eb);border-bottom-color:var(--mat-sys-primary, #2563eb);background:var(--mat-sys-surface-container-low, rgba(37, 99, 235, .06))}.praxis-dossier-overview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px 16px;padding:12px 0}.praxis-dossier-overview-item{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px solid var(--mat-sys-outline-variant, rgba(148, 163, 184, .16))}.praxis-dossier-overview-item__label{font-size:.76rem;font-weight:600;color:var(--mat-sys-on-surface-variant, #64748b)}.praxis-dossier-overview-item__value{font-size:.92rem}.praxis-dossier-state{padding:20px 16px;border:1px dashed var(--mat-sys-outline-variant, rgba(148, 163, 184, .35));border-radius:10px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}\n"] }]
|
|
22433
|
+
}], ctorParameters: () => [], propDecorators: { resourcePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "resourcePath", required: false }] }], masterRecordId: [{ type: i0.Input, args: [{ isSignal: true, alias: "masterRecordId", required: false }] }], idField: [{ type: i0.Input, args: [{ isSignal: true, alias: "idField", required: false }] }], endpointKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "endpointKey", required: false }] }], apiUrlEntry: [{ type: i0.Input, args: [{ isSignal: true, alias: "apiUrlEntry", required: false }] }], metadata: [{ type: i0.Input, args: [{ isSignal: true, alias: "metadata", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], eyebrow: [{ type: i0.Input, args: [{ isSignal: true, alias: "eyebrow", required: false }] }], siblingRecords: [{ type: i0.Input, args: [{ isSignal: true, alias: "siblingRecords", required: false }] }], childSurfaces: [{ type: i0.Input, args: [{ isSignal: true, alias: "childSurfaces", required: false }] }], showSiblingSwitcher: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSiblingSwitcher", required: false }] }], showCapabilitiesSync: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCapabilitiesSync", required: false }] }], showRecordFormToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRecordFormToggle", required: false }] }], showOverviewTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOverviewTab", required: false }] }], showKpiBand: [{ type: i0.Input, args: [{ isSignal: true, alias: "showKpiBand", required: false }] }], autoSelectFirst: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoSelectFirst", required: false }] }], surfaceVariant: [{ type: i0.Input, args: [{ isSignal: true, alias: "surfaceVariant", required: false }] }], masterRecordChange: [{ type: i0.Output, args: ["masterRecordChange"] }], masterRecordIdChange: [{ type: i0.Output, args: ["masterRecordIdChange"] }], actionExecuted: [{ type: i0.Output, args: ["actionExecuted"] }], childSurfaceChange: [{ type: i0.Output, args: ["childSurfaceChange"] }], capabilitiesLoaded: [{ type: i0.Output, args: ["capabilitiesLoaded"] }], dossierError: [{ type: i0.Output, args: ["dossierError"] }] } });
|
|
22434
|
+
|
|
22435
|
+
const PRAXIS_DOSSIER_PAGE_COMPONENT_METADATA = {
|
|
22436
|
+
id: 'praxis-dossier-page',
|
|
22437
|
+
componentType: 'praxis-dossier-page',
|
|
22438
|
+
displayName: 'Praxis Dossier Page',
|
|
22439
|
+
selector: 'praxis-dossier-page',
|
|
22440
|
+
component: PraxisDossierPageComponent,
|
|
22441
|
+
friendlyName: 'Dossiê 360° Mestre-Detalhe',
|
|
22442
|
+
icon: 'folder_shared',
|
|
22443
|
+
description: 'Turnkey domain-neutral 360° Master-Detail dossier workspace with hero identity, sibling-record switcher, contextual /surfaces & /actions, and locked-scope child CRUD tabs.',
|
|
22444
|
+
inputs: [
|
|
22445
|
+
{
|
|
22446
|
+
name: 'resourcePath',
|
|
22447
|
+
type: 'string',
|
|
22448
|
+
description: 'Canonical REST resource path for the master record (e.g. "workforce/bonds").',
|
|
22449
|
+
},
|
|
22450
|
+
{
|
|
22451
|
+
name: 'masterRecordId',
|
|
22452
|
+
type: 'string | number',
|
|
22453
|
+
description: 'Identifier of the active master record displayed in the dossier.',
|
|
22454
|
+
},
|
|
22455
|
+
{
|
|
22456
|
+
name: 'idField',
|
|
22457
|
+
type: 'string',
|
|
22458
|
+
description: 'Primary key field name override when not derived from schema x-ui.resource.identity.',
|
|
22459
|
+
},
|
|
22460
|
+
{
|
|
22461
|
+
name: 'childSurfaces',
|
|
22462
|
+
type: 'PraxisDossierChildSurfaceConfig[]',
|
|
22463
|
+
description: 'Declarative child tabs combined with `/surfaces` `relatedResource` metadata and locked filter scope.',
|
|
22464
|
+
},
|
|
22465
|
+
{
|
|
22466
|
+
name: 'surfaceVariant',
|
|
22467
|
+
type: "'default' | 'frameless' | 'embedded'",
|
|
22468
|
+
default: 'default',
|
|
22469
|
+
description: 'Visual shell variant supporting frameless embedding inside host shells.',
|
|
22470
|
+
},
|
|
22471
|
+
],
|
|
22472
|
+
outputs: [
|
|
22473
|
+
{ name: 'masterRecordChange', type: 'DynamicDataRecord | null', description: 'Emitted when the active master record resolves or switches.' },
|
|
22474
|
+
{ name: 'masterRecordIdChange', type: 'string | number | null', description: 'Emitted when the active master record ID changes.' },
|
|
22475
|
+
{ name: 'actionExecuted', type: 'PraxisDossierQuickActionEvent', description: 'Emitted when a contextual partial-form intent or workflow action executes.' },
|
|
22476
|
+
{ name: 'childSurfaceChange', type: 'PraxisDossierChildTabEntry | null', description: 'Emitted when the user switches child surface tabs.' },
|
|
22477
|
+
],
|
|
22478
|
+
tags: ['dossier', 'master-detail', '360', 'crud', 'surfaces'],
|
|
22479
|
+
lib: '@praxisui/crud',
|
|
22480
|
+
};
|
|
22481
|
+
function providePraxisDossierPageMetadata() {
|
|
22482
|
+
return {
|
|
22483
|
+
provide: ENVIRONMENT_INITIALIZER,
|
|
22484
|
+
multi: true,
|
|
22485
|
+
useFactory: (registry) => () => {
|
|
22486
|
+
registry.register(PRAXIS_DOSSIER_PAGE_COMPONENT_METADATA);
|
|
22487
|
+
},
|
|
22488
|
+
deps: [ComponentMetadataRegistry],
|
|
22489
|
+
};
|
|
22490
|
+
}
|
|
22491
|
+
|
|
22492
|
+
/**
|
|
22493
|
+
* Praxis UI Platform — Zero-Code Canonical Resource Page (Issue #38, #40)
|
|
22494
|
+
*
|
|
22495
|
+
* Componente governado de página inteira que orquestra automaticamente a experiência
|
|
22496
|
+
* completa de um recurso corporativo a partir de sua coordenada RESTful ('resource' / 'resourcePath').
|
|
22497
|
+
*
|
|
22498
|
+
* Suporta nativamente:
|
|
22499
|
+
* - Auto-Header Governado (domínio, título, subtítulo e ações)
|
|
22500
|
+
* - Auto-ScopeBar Integrado (filtros rápidos em chips conectados diretamente ao CRUD)
|
|
22501
|
+
* - Auto-KPI Band Nativo (sincronização bidirecional entre cards e escopos)
|
|
22502
|
+
* - Customização de colunas e tabela via configuração declarativa
|
|
22503
|
+
* - Isolamento multi-tenant / persona com reload seguro em trocas de identidade
|
|
22504
|
+
*
|
|
22505
|
+
* Pode ser utilizado diretamente como alvo de rotas do Angular:
|
|
22506
|
+
* ```typescript
|
|
22507
|
+
* {
|
|
20179
22508
|
* path: 'contracts',
|
|
20180
22509
|
* component: PraxisResourcePage,
|
|
20181
22510
|
* data: {
|
|
@@ -20192,7 +22521,10 @@ class PraxisResourcePage {
|
|
|
20192
22521
|
route = inject(ActivatedRoute, { optional: true });
|
|
20193
22522
|
runtimeContext = inject(EnterpriseRuntimeContextService, { optional: true });
|
|
20194
22523
|
customizationMode = inject(PraxisCustomizationModeService, { optional: true });
|
|
22524
|
+
destroyRef = inject(DestroyRef);
|
|
20195
22525
|
decisionInspector = inject(PraxisDecisionInspectorService, { optional: true });
|
|
22526
|
+
workspaceQueryContext = inject(PraxisWorkspaceQueryContextService, { optional: true });
|
|
22527
|
+
contextFilterProjector = inject(PraxisContextFilterProjectorService, { optional: true });
|
|
20196
22528
|
i18n = inject(PraxisI18nService, { optional: true });
|
|
20197
22529
|
storage = inject(ASYNC_CONFIG_STORAGE, { optional: true });
|
|
20198
22530
|
componentKeys = inject(ComponentKeyService, { optional: true });
|
|
@@ -20227,6 +22559,8 @@ class PraxisResourcePage {
|
|
|
20227
22559
|
context;
|
|
20228
22560
|
actions;
|
|
20229
22561
|
filterCriteria;
|
|
22562
|
+
lockedFilterFields;
|
|
22563
|
+
schemaFields;
|
|
20230
22564
|
rowClick = new EventEmitter();
|
|
20231
22565
|
rowAction = new EventEmitter();
|
|
20232
22566
|
rowDoubleClick = new EventEmitter();
|
|
@@ -20240,6 +22574,8 @@ class PraxisResourcePage {
|
|
|
20240
22574
|
afterDelete = new EventEmitter();
|
|
20241
22575
|
error = new EventEmitter();
|
|
20242
22576
|
inputsVersion = signal(0, ...(ngDevMode ? [{ debugName: "inputsVersion" }] : /* istanbul ignore next */ []));
|
|
22577
|
+
workspaceContextEpochSignal = signal(0, ...(ngDevMode ? [{ debugName: "workspaceContextEpochSignal" }] : /* istanbul ignore next */ []));
|
|
22578
|
+
lastWorkspaceSnapshotSig = '';
|
|
20243
22579
|
routeResourceSignal = signal(null, ...(ngDevMode ? [{ debugName: "routeResourceSignal" }] : /* istanbul ignore next */ []));
|
|
20244
22580
|
routeCrudIdSignal = signal(null, ...(ngDevMode ? [{ debugName: "routeCrudIdSignal" }] : /* istanbul ignore next */ []));
|
|
20245
22581
|
routeMetadataSignal = signal(null, ...(ngDevMode ? [{ debugName: "routeMetadataSignal" }] : /* istanbul ignore next */ []));
|
|
@@ -20558,10 +22894,70 @@ class PraxisResourcePage {
|
|
|
20558
22894
|
this.routeResourceSignal() ||
|
|
20559
22895
|
this.extractResourcePathFromMetadata(this.metadata || this.routeMetadataSignal()) ||
|
|
20560
22896
|
this.effectiveResource();
|
|
20561
|
-
return initialRes ?
|
|
22897
|
+
return ((initialRes ? normalizeResourceScopeId(initialRes, 'crud') : null) ||
|
|
22898
|
+
'praxis-crud-auto');
|
|
20562
22899
|
}, ...(ngDevMode ? [{ debugName: "resolvedCrudId" }] : /* istanbul ignore next */ []));
|
|
22900
|
+
workspaceBindableFields = computed(() => {
|
|
22901
|
+
this.inputsVersion();
|
|
22902
|
+
this.workspaceContextEpochSignal();
|
|
22903
|
+
const baseFields = Array.isArray(this.schemaFields) ? [...this.schemaFields] : [];
|
|
22904
|
+
const snapshot = this.workspaceQueryContext?.snapshot();
|
|
22905
|
+
if (!snapshot) {
|
|
22906
|
+
return baseFields;
|
|
22907
|
+
}
|
|
22908
|
+
const existingDims = new Set(baseFields
|
|
22909
|
+
.map((field) => field.contextBinding?.dimension)
|
|
22910
|
+
.filter((dim) => Boolean(dim)));
|
|
22911
|
+
for (const entry of Object.values(snapshot)) {
|
|
22912
|
+
if (entry &&
|
|
22913
|
+
entry.targetField?.trim() &&
|
|
22914
|
+
entry.value !== undefined &&
|
|
22915
|
+
entry.value !== null &&
|
|
22916
|
+
entry.value !== '' &&
|
|
22917
|
+
!existingDims.has(entry.dimension)) {
|
|
22918
|
+
baseFields.push({
|
|
22919
|
+
name: entry.targetField.trim(),
|
|
22920
|
+
contextBinding: {
|
|
22921
|
+
dimension: entry.dimension,
|
|
22922
|
+
lockWhenActive: true,
|
|
22923
|
+
targetField: entry.targetField.trim(),
|
|
22924
|
+
},
|
|
22925
|
+
});
|
|
22926
|
+
}
|
|
22927
|
+
}
|
|
22928
|
+
return baseFields;
|
|
22929
|
+
}, ...(ngDevMode ? [{ debugName: "workspaceBindableFields" }] : /* istanbul ignore next */ []));
|
|
22930
|
+
effectiveLockedFilterFields = computed(() => {
|
|
22931
|
+
this.inputsVersion();
|
|
22932
|
+
this.workspaceContextEpochSignal();
|
|
22933
|
+
const meta = this.resolveParsedMetadataSource();
|
|
22934
|
+
const merged = new Set();
|
|
22935
|
+
for (const field of this.lockedFilterFields ?? []) {
|
|
22936
|
+
const normalized = String(field || '').trim();
|
|
22937
|
+
if (normalized)
|
|
22938
|
+
merged.add(normalized);
|
|
22939
|
+
}
|
|
22940
|
+
const metaLockedKeys = meta?.queryContext?.['lockedKeys'];
|
|
22941
|
+
if (Array.isArray(metaLockedKeys)) {
|
|
22942
|
+
for (const key of metaLockedKeys) {
|
|
22943
|
+
const normalized = String(key || '').trim();
|
|
22944
|
+
if (normalized)
|
|
22945
|
+
merged.add(normalized);
|
|
22946
|
+
}
|
|
22947
|
+
}
|
|
22948
|
+
if (this.contextFilterProjector) {
|
|
22949
|
+
const defaults = this.contextFilterProjector.projectFieldDefaults(this.workspaceBindableFields());
|
|
22950
|
+
for (const locked of defaults.lockedFields) {
|
|
22951
|
+
const normalized = String(locked || '').trim();
|
|
22952
|
+
if (normalized)
|
|
22953
|
+
merged.add(normalized);
|
|
22954
|
+
}
|
|
22955
|
+
}
|
|
22956
|
+
return Array.from(merged);
|
|
22957
|
+
}, ...(ngDevMode ? [{ debugName: "effectiveLockedFilterFields" }] : /* istanbul ignore next */ []));
|
|
20563
22958
|
effectiveFilterCriteria = computed(() => {
|
|
20564
22959
|
this.inputsVersion();
|
|
22960
|
+
this.workspaceContextEpochSignal();
|
|
20565
22961
|
const meta = this.resolveParsedMetadataSource();
|
|
20566
22962
|
const baseCriteria = {
|
|
20567
22963
|
...(meta?.filterCriteria || {}),
|
|
@@ -20574,10 +22970,21 @@ class PraxisResourcePage {
|
|
|
20574
22970
|
delete baseCriteria[field];
|
|
20575
22971
|
}
|
|
20576
22972
|
}
|
|
20577
|
-
|
|
22973
|
+
const mergedCriteria = {
|
|
20578
22974
|
...baseCriteria,
|
|
20579
22975
|
...this.activeScopeFilter(),
|
|
20580
22976
|
};
|
|
22977
|
+
if (!this.contextFilterProjector) {
|
|
22978
|
+
return mergedCriteria;
|
|
22979
|
+
}
|
|
22980
|
+
const fields = this.workspaceBindableFields();
|
|
22981
|
+
if (fields.length === 0) {
|
|
22982
|
+
return mergedCriteria;
|
|
22983
|
+
}
|
|
22984
|
+
return this.contextFilterProjector.projectFilterCriteria(fields, mergedCriteria, {
|
|
22985
|
+
resourceKey: this.effectiveResource() ?? undefined,
|
|
22986
|
+
overrideExisting: true,
|
|
22987
|
+
});
|
|
20581
22988
|
}, ...(ngDevMode ? [{ debugName: "effectiveFilterCriteria" }] : /* istanbul ignore next */ []));
|
|
20582
22989
|
effectiveMetadata = computed(() => {
|
|
20583
22990
|
this.inputsVersion();
|
|
@@ -20740,6 +23147,19 @@ class PraxisResourcePage {
|
|
|
20740
23147
|
this.initialized = true;
|
|
20741
23148
|
this.contextSub = this.runtimeContext?.contextChanges$
|
|
20742
23149
|
.subscribe((context) => this.onRuntimeContext(context));
|
|
23150
|
+
if (this.workspaceQueryContext?.changes$) {
|
|
23151
|
+
this.lastWorkspaceSnapshotSig = JSON.stringify(this.workspaceQueryContext.snapshot() ?? {});
|
|
23152
|
+
this.contextSub = this.contextSub ?? new Subscription();
|
|
23153
|
+
this.contextSub.add(this.workspaceQueryContext.changes$.subscribe((snapshot) => {
|
|
23154
|
+
const nextSig = JSON.stringify(snapshot ?? {});
|
|
23155
|
+
if (nextSig === this.lastWorkspaceSnapshotSig) {
|
|
23156
|
+
return;
|
|
23157
|
+
}
|
|
23158
|
+
this.lastWorkspaceSnapshotSig = nextSig;
|
|
23159
|
+
// Ambient workspace scope changes re-project filters/locks in place without destroying DOM.
|
|
23160
|
+
this.workspaceContextEpochSignal.update((epoch) => epoch + 1);
|
|
23161
|
+
}));
|
|
23162
|
+
}
|
|
20743
23163
|
}
|
|
20744
23164
|
ngOnChanges(changes) {
|
|
20745
23165
|
this.inputsVersion.update((v) => v + 1);
|
|
@@ -21038,6 +23458,7 @@ class PraxisResourcePage {
|
|
|
21038
23458
|
const scopedKeyId = this.componentKeys?.buildComponentId({
|
|
21039
23459
|
componentType: 'praxis-crud',
|
|
21040
23460
|
componentId: candidateId,
|
|
23461
|
+
resourcePath: this.effectiveResource() || undefined,
|
|
21041
23462
|
route: this.route ?? undefined,
|
|
21042
23463
|
requireComponentId: true,
|
|
21043
23464
|
});
|
|
@@ -21072,7 +23493,7 @@ class PraxisResourcePage {
|
|
|
21072
23493
|
})();
|
|
21073
23494
|
}
|
|
21074
23495
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisResourcePage, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21075
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: PraxisResourcePage, isStandalone: true, selector: "praxis-resource-page", inputs: { resource: "resource", resourcePath: "resourcePath", crudId: "crudId", metadata: "metadata", title: "title", subtitle: "subtitle", domain: "domain", scopeBar: "scopeBar", scopeItems: "scopeItems", defaultScopeId: "defaultScopeId", enableCustomization: "enableCustomization", disableAutoDrawer: ["disableAutoDrawer", "disableAutoDrawer", booleanAttribute], tableConfigPersistenceStrategy: "tableConfigPersistenceStrategy", context: "context", actions: "actions", filterCriteria: "filterCriteria" }, outputs: { rowClick: "rowClick", rowAction: "rowAction", rowDoubleClick: "rowDoubleClick", selectionChange: "selectionChange", drawerOpen: "drawerOpen", drawerClose: "drawerClose", afterOpen: "afterOpen", afterClose: "afterClose", kpiCardClick: "kpiCardClick", afterSave: "afterSave", afterDelete: "afterDelete", error: "error" }, viewQueries: [{ propertyName: "crudComponent", first: true, predicate: PraxisCrudComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
23496
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: PraxisResourcePage, isStandalone: true, selector: "praxis-resource-page", inputs: { resource: "resource", resourcePath: "resourcePath", crudId: "crudId", metadata: "metadata", title: "title", subtitle: "subtitle", domain: "domain", scopeBar: "scopeBar", scopeItems: "scopeItems", defaultScopeId: "defaultScopeId", enableCustomization: "enableCustomization", disableAutoDrawer: ["disableAutoDrawer", "disableAutoDrawer", booleanAttribute], tableConfigPersistenceStrategy: "tableConfigPersistenceStrategy", context: "context", actions: "actions", filterCriteria: "filterCriteria", lockedFilterFields: "lockedFilterFields", schemaFields: "schemaFields" }, outputs: { rowClick: "rowClick", rowAction: "rowAction", rowDoubleClick: "rowDoubleClick", selectionChange: "selectionChange", drawerOpen: "drawerOpen", drawerClose: "drawerClose", afterOpen: "afterOpen", afterClose: "afterClose", kpiCardClick: "kpiCardClick", afterSave: "afterSave", afterDelete: "afterDelete", error: "error" }, viewQueries: [{ propertyName: "crudComponent", first: true, predicate: PraxisCrudComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
21076
23497
|
<div class="praxis-resource-page page-container">
|
|
21077
23498
|
<!-- Auto-Header Governado -->
|
|
21078
23499
|
@if (effectiveTitle() || effectiveDomain()) {
|
|
@@ -21157,7 +23578,7 @@ class PraxisResourcePage {
|
|
|
21157
23578
|
@if ((effectiveResource() || effectiveEnableCustomization() || hasLocalData() || hasCrudSeed()) && identityVisible()) {
|
|
21158
23579
|
@for (renderKey of [identityRenderKey()]; track renderKey) {
|
|
21159
23580
|
<section
|
|
21160
|
-
class="praxis-resource-page__crud-surface crud-surface
|
|
23581
|
+
class="praxis-resource-page__crud-surface crud-surface"
|
|
21161
23582
|
[style.display]="(effectiveResource() || effectiveEnableCustomization() || hasLocalData()) ? null : 'none'"
|
|
21162
23583
|
>
|
|
21163
23584
|
<praxis-crud
|
|
@@ -21165,6 +23586,8 @@ class PraxisResourcePage {
|
|
|
21165
23586
|
[crudId]="resolvedCrudId()"
|
|
21166
23587
|
[metadata]="effectiveMetadata()"
|
|
21167
23588
|
[filterCriteria]="effectiveFilterCriteria()"
|
|
23589
|
+
[lockedFilterFields]="effectiveLockedFilterFields()"
|
|
23590
|
+
[schemaFields]="workspaceBindableFields()"
|
|
21168
23591
|
[filterTeleport]="effectiveIncludeInlineFilters()"
|
|
21169
23592
|
[enableCustomization]="effectiveEnableCustomization()"
|
|
21170
23593
|
[disableAutoDrawer]="disableAutoDrawer"
|
|
@@ -21191,7 +23614,7 @@ class PraxisResourcePage {
|
|
|
21191
23614
|
}
|
|
21192
23615
|
}
|
|
21193
23616
|
</div>
|
|
21194
|
-
`, isInline: true, styles: [":host{display:block;width:100%;min-height:100%;box-sizing:border-box}.praxis-resource-page{width:100%;display:flex;flex-direction:column;gap:var(--praxis-page-gap, 16px);padding:var(--praxis-page-padding, 24px);box-sizing:border-box;max-width:var(--praxis-page-max-width, 1560px);margin:0 auto}:host-context(.praxis-shell__content) .praxis-resource-page{padding:var(--praxis-page-padding, 0)}.praxis-resource-page__header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.praxis-resource-page__header-main{min-width:0;display:flex;flex-direction:column}.praxis-resource-page__domain-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:9999px;font-size:11px;font-weight:var(--mat-sys-label-small-weight, 500);text-transform:uppercase;letter-spacing:var(--praxis-domain-badge-tracking, var(--hero-label-tracking, .05em));margin-bottom:6px;align-self:flex-start;background:var(--praxis-domain-badge-bg, color-mix(in srgb, currentColor 10%, transparent));color:var(--praxis-domain-badge-color, inherit);border:1px solid var(--praxis-domain-badge-border, color-mix(in srgb, currentColor 24%, transparent))}.praxis-resource-page__domain-badge.tone-primary,.praxis-resource-page__domain-badge.tone-info{background:color-mix(in srgb,var(--praxis-info, var(--primary, #0284c7)) 12%,transparent);color:var(--praxis-info, var(--primary, #0284c7));border-color:color-mix(in srgb,var(--praxis-info, var(--primary, #0284c7)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-accent{background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 12%,transparent);color:var(--praxis-primary, var(--primary, #6366f1));border-color:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-success,.praxis-resource-page__domain-badge.tone-ready{background:color-mix(in srgb,var(--praxis-success, var(--ready, #059669)) 12%,transparent);color:var(--praxis-success, var(--ready, #059669));border-color:color-mix(in srgb,var(--praxis-success, var(--ready, #059669)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-warning,.praxis-resource-page__domain-badge.tone-warn{background:color-mix(in srgb,var(--praxis-warning, var(--warning, #d97706)) 14%,transparent);color:var(--praxis-warning, var(--warning, #d97706));border-color:color-mix(in srgb,var(--praxis-warning, var(--warning, #d97706)) 30%,transparent)}.praxis-resource-page__domain-badge.tone-danger,.praxis-resource-page__domain-badge.tone-error{background:color-mix(in srgb,var(--praxis-error, var(--destructive, #dc2626)) 12%,transparent);color:var(--praxis-error, var(--destructive, #dc2626));border-color:color-mix(in srgb,var(--praxis-error, var(--destructive, #dc2626)) 28%,transparent)}.praxis-resource-page__domain-badge span.material-symbols-outlined{font-size:14px}.praxis-resource-page__title{margin:0;font-family:var(--praxis-page-title-font, var(--font-display, inherit));font-size:var(--praxis-page-title-size, clamp(1.28rem, 1.6vw, 1.45rem));font-weight:var(--praxis-page-title-weight, var(--mat-sys-headline-medium-weight, 500));letter-spacing:-.02em;color:var(--praxis-page-title-color, var(--foreground, inherit));line-height:1.22}.praxis-resource-page__subtitle{margin:4px 0 0;font-size:var(--praxis-page-subtitle-size, .84rem);color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b));max-width:800px;line-height:1.45}.praxis-resource-page__header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.praxis-resource-page__configure-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:var(--praxis-configure-btn-radius, 10px);border:1px solid color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 35%,transparent);background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 14%,transparent);color:var(--praxis-primary, var(--primary, #6366f1));font-size:13px;font-weight:600;cursor:pointer;transition:all .16s ease}.praxis-resource-page__configure-btn:hover{background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 22%,transparent)}.praxis-resource-page__configure-btn .material-symbols-outlined{font-size:18px}.praxis-resource-page__rules-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:var(--praxis-configure-btn-radius, 10px);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, #64748b) 72%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-high, rgba(148, 163, 184, .12)) 80%,transparent);color:var(--md-sys-color-on-surface, inherit);font-size:13px;font-weight:600;cursor:pointer;transition:all .16s ease}.praxis-resource-page__rules-btn:hover{border-color:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 45%,transparent);color:var(--praxis-primary, var(--primary, #6366f1))}.praxis-resource-page__rules-btn .material-symbols-outlined{font-size:18px}.praxis-resource-page__crud-surface{width:100%;border-radius:var(--praxis-surface-radius, 0);overflow:visible}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PraxisCrudComponent, selector: "praxis-crud", inputs: ["metadata", "crudId", "resource", "componentInstanceId", "tableConfigPersistenceStrategy", "context", "enableCustomization", "showResourceIdentityKey", "authoringCapability", "filterCriteria", "filterTeleport", "disableAutoDrawer", "hostManagedChrome"], outputs: ["configureRequested", "afterOpen", "afterClose", "afterSave", "afterDelete", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "reactiveDeterminationStabilityChange", "error", "rowClick", "rowAction", "selectionChange", "resourceEvent", "tableRuntimeConfigChange", "drawerOpen", "drawerClose", "crudAuthoringDocumentApplied", "crudAuthoringDocumentSaved", "filterCriteriaChange", "discoveredQuickFiltersChange", "kpiCardClick"] }, { kind: "component", type: PraxisScopeBarComponent, selector: "praxis-scope-bar", inputs: ["config", "items", "activeId", "showOmnibox", "omniboxPlaceholder", "omniboxValue", "omniboxDebounceMs", "leadIcon", "leadLabel", "showClearButton", "clearLabel", "showActiveFilterSummary", "activeFilters", "filterLabels", "target", "targetWidgetId", "targetWidgetIds", "scopeBarId", "searchField"], outputs: ["activeIdChange", "omniboxValueChange", "activeFiltersChange", "scopeChange", "searchChange", "filterCriteriaChange", "clear"] }, { kind: "component", type: PraxisFilterOutletComponent, selector: "praxis-filter-outlet", inputs: ["target"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
23617
|
+
`, isInline: true, styles: [":host{display:block;width:100%;min-height:100%;box-sizing:border-box}.praxis-resource-page{width:100%;display:flex;flex-direction:column;gap:var(--praxis-page-gap, 16px);padding:var(--praxis-page-padding, 24px);box-sizing:border-box;max-width:var(--praxis-page-max-width, 1560px);margin:0 auto}:host-context(.praxis-shell__content) .praxis-resource-page{padding:var(--praxis-page-padding, 0)}.praxis-resource-page__header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:var(--praxis-header-padding, 0);border-radius:var(--praxis-header-radius, 0);background:var(--praxis-header-bg, transparent);border:var(--praxis-header-border, none);box-shadow:var(--praxis-header-shadow, none)}.praxis-resource-page__header-main{min-width:0;display:flex;flex-direction:column}.praxis-resource-page__domain-badge{display:inline-flex;align-items:center;gap:6px;padding:var(--praxis-domain-badge-padding, 4px 10px);border-radius:9999px;font-size:var(--praxis-domain-badge-font-size, 11px);font-weight:var(--praxis-domain-badge-weight, var(--mat-sys-label-small-weight, 500));text-transform:uppercase;letter-spacing:var(--praxis-domain-badge-tracking, var(--hero-label-tracking, .05em));margin-bottom:var(--praxis-domain-badge-margin-bottom, 6px);align-self:flex-start;background:var(--praxis-domain-badge-bg, color-mix(in srgb, currentColor 10%, transparent));color:var(--praxis-domain-badge-color, inherit);border:1px solid var(--praxis-domain-badge-border, color-mix(in srgb, currentColor 24%, transparent))}.praxis-resource-page__domain-badge.tone-primary,.praxis-resource-page__domain-badge.tone-info{background:color-mix(in srgb,var(--praxis-info, var(--primary, #0284c7)) 12%,transparent);color:var(--praxis-info, var(--primary, #0284c7));border-color:color-mix(in srgb,var(--praxis-info, var(--primary, #0284c7)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-accent{background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 12%,transparent);color:var(--praxis-primary, var(--primary, #6366f1));border-color:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-success,.praxis-resource-page__domain-badge.tone-ready{background:color-mix(in srgb,var(--praxis-success, var(--ready, #059669)) 12%,transparent);color:var(--praxis-success, var(--ready, #059669));border-color:color-mix(in srgb,var(--praxis-success, var(--ready, #059669)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-warning,.praxis-resource-page__domain-badge.tone-warn{background:color-mix(in srgb,var(--praxis-warning, var(--warning, #d97706)) 14%,transparent);color:var(--praxis-warning, var(--warning, #d97706));border-color:color-mix(in srgb,var(--praxis-warning, var(--warning, #d97706)) 30%,transparent)}.praxis-resource-page__domain-badge.tone-danger,.praxis-resource-page__domain-badge.tone-error{background:color-mix(in srgb,var(--praxis-error, var(--destructive, #dc2626)) 12%,transparent);color:var(--praxis-error, var(--destructive, #dc2626));border-color:color-mix(in srgb,var(--praxis-error, var(--destructive, #dc2626)) 28%,transparent)}.praxis-resource-page__domain-badge span.material-symbols-outlined{font-size:14px}.praxis-resource-page__title{margin:var(--praxis-page-title-margin, 0);font-family:var(--praxis-page-title-font, var(--font-display, inherit));font-size:var(--praxis-page-title-size, clamp(1.28rem, 1.6vw, 1.45rem));font-weight:var(--praxis-page-title-weight, var(--mat-sys-headline-medium-weight, 500));letter-spacing:-.02em;color:var(--praxis-page-title-color, var(--foreground, inherit));background:var(--praxis-page-title-bg, none);-webkit-text-fill-color:var(--praxis-page-title-fill-color, currentColor);line-height:1.22}.praxis-resource-page__subtitle{margin:var(--praxis-page-subtitle-margin, 4px 0 0);font-size:var(--praxis-page-subtitle-size, .84rem);color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b));max-width:800px;line-height:var(--praxis-page-subtitle-line-height, 1.45)}.praxis-resource-page__header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.praxis-resource-page__configure-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:var(--praxis-configure-btn-radius, 10px);border:1px solid color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 35%,transparent);background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 14%,transparent);color:var(--praxis-primary, var(--primary, #6366f1));font-size:13px;font-weight:600;cursor:pointer;transition:all .16s ease}.praxis-resource-page__configure-btn:hover{background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 22%,transparent)}.praxis-resource-page__configure-btn .material-symbols-outlined{font-size:18px}.praxis-resource-page__rules-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:var(--praxis-configure-btn-radius, 10px);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, #64748b) 72%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-high, rgba(148, 163, 184, .12)) 80%,transparent);color:var(--md-sys-color-on-surface, inherit);font-size:13px;font-weight:600;cursor:pointer;transition:all .16s ease}.praxis-resource-page__rules-btn:hover{border-color:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 45%,transparent);color:var(--praxis-primary, var(--primary, #6366f1))}.praxis-resource-page__rules-btn .material-symbols-outlined{font-size:18px}.praxis-resource-page__crud-surface{width:100%;border-radius:var(--praxis-surface-radius, 0);overflow:visible}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PraxisCrudComponent, selector: "praxis-crud", inputs: ["metadata", "crudId", "resource", "componentInstanceId", "tableConfigPersistenceStrategy", "context", "enableCustomization", "showResourceIdentityKey", "authoringCapability", "filterCriteria", "lockedFilterFields", "schemaFields", "filterTeleport", "disableAutoDrawer", "hostManagedChrome"], outputs: ["configureRequested", "afterOpen", "afterClose", "afterSave", "afterDelete", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "reactiveDeterminationStabilityChange", "error", "rowClick", "rowAction", "selectionChange", "resourceEvent", "tableRuntimeConfigChange", "drawerOpen", "drawerClose", "crudAuthoringDocumentApplied", "crudAuthoringDocumentSaved", "filterCriteriaChange", "discoveredQuickFiltersChange", "kpiCardClick"] }, { kind: "component", type: PraxisScopeBarComponent, selector: "praxis-scope-bar", inputs: ["config", "items", "activeId", "showOmnibox", "omniboxPlaceholder", "omniboxValue", "omniboxDebounceMs", "leadIcon", "leadLabel", "showClearButton", "clearLabel", "showActiveFilterSummary", "activeFilters", "filterLabels", "target", "targetWidgetId", "targetWidgetIds", "scopeBarId", "searchField"], outputs: ["activeIdChange", "omniboxValueChange", "activeFiltersChange", "scopeChange", "searchChange", "filterCriteriaChange", "clear"] }, { kind: "component", type: PraxisFilterOutletComponent, selector: "praxis-filter-outlet", inputs: ["target"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
21195
23618
|
}
|
|
21196
23619
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisResourcePage, decorators: [{
|
|
21197
23620
|
type: Component,
|
|
@@ -21285,7 +23708,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
21285
23708
|
@if ((effectiveResource() || effectiveEnableCustomization() || hasLocalData() || hasCrudSeed()) && identityVisible()) {
|
|
21286
23709
|
@for (renderKey of [identityRenderKey()]; track renderKey) {
|
|
21287
23710
|
<section
|
|
21288
|
-
class="praxis-resource-page__crud-surface crud-surface
|
|
23711
|
+
class="praxis-resource-page__crud-surface crud-surface"
|
|
21289
23712
|
[style.display]="(effectiveResource() || effectiveEnableCustomization() || hasLocalData()) ? null : 'none'"
|
|
21290
23713
|
>
|
|
21291
23714
|
<praxis-crud
|
|
@@ -21293,6 +23716,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
21293
23716
|
[crudId]="resolvedCrudId()"
|
|
21294
23717
|
[metadata]="effectiveMetadata()"
|
|
21295
23718
|
[filterCriteria]="effectiveFilterCriteria()"
|
|
23719
|
+
[lockedFilterFields]="effectiveLockedFilterFields()"
|
|
23720
|
+
[schemaFields]="workspaceBindableFields()"
|
|
21296
23721
|
[filterTeleport]="effectiveIncludeInlineFilters()"
|
|
21297
23722
|
[enableCustomization]="effectiveEnableCustomization()"
|
|
21298
23723
|
[disableAutoDrawer]="disableAutoDrawer"
|
|
@@ -21319,7 +23744,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
21319
23744
|
}
|
|
21320
23745
|
}
|
|
21321
23746
|
</div>
|
|
21322
|
-
`, styles: [":host{display:block;width:100%;min-height:100%;box-sizing:border-box}.praxis-resource-page{width:100%;display:flex;flex-direction:column;gap:var(--praxis-page-gap, 16px);padding:var(--praxis-page-padding, 24px);box-sizing:border-box;max-width:var(--praxis-page-max-width, 1560px);margin:0 auto}:host-context(.praxis-shell__content) .praxis-resource-page{padding:var(--praxis-page-padding, 0)}.praxis-resource-page__header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.praxis-resource-page__header-main{min-width:0;display:flex;flex-direction:column}.praxis-resource-page__domain-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:9999px;font-size:11px;font-weight:var(--mat-sys-label-small-weight, 500);text-transform:uppercase;letter-spacing:var(--praxis-domain-badge-tracking, var(--hero-label-tracking, .05em));margin-bottom:6px;align-self:flex-start;background:var(--praxis-domain-badge-bg, color-mix(in srgb, currentColor 10%, transparent));color:var(--praxis-domain-badge-color, inherit);border:1px solid var(--praxis-domain-badge-border, color-mix(in srgb, currentColor 24%, transparent))}.praxis-resource-page__domain-badge.tone-primary,.praxis-resource-page__domain-badge.tone-info{background:color-mix(in srgb,var(--praxis-info, var(--primary, #0284c7)) 12%,transparent);color:var(--praxis-info, var(--primary, #0284c7));border-color:color-mix(in srgb,var(--praxis-info, var(--primary, #0284c7)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-accent{background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 12%,transparent);color:var(--praxis-primary, var(--primary, #6366f1));border-color:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-success,.praxis-resource-page__domain-badge.tone-ready{background:color-mix(in srgb,var(--praxis-success, var(--ready, #059669)) 12%,transparent);color:var(--praxis-success, var(--ready, #059669));border-color:color-mix(in srgb,var(--praxis-success, var(--ready, #059669)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-warning,.praxis-resource-page__domain-badge.tone-warn{background:color-mix(in srgb,var(--praxis-warning, var(--warning, #d97706)) 14%,transparent);color:var(--praxis-warning, var(--warning, #d97706));border-color:color-mix(in srgb,var(--praxis-warning, var(--warning, #d97706)) 30%,transparent)}.praxis-resource-page__domain-badge.tone-danger,.praxis-resource-page__domain-badge.tone-error{background:color-mix(in srgb,var(--praxis-error, var(--destructive, #dc2626)) 12%,transparent);color:var(--praxis-error, var(--destructive, #dc2626));border-color:color-mix(in srgb,var(--praxis-error, var(--destructive, #dc2626)) 28%,transparent)}.praxis-resource-page__domain-badge span.material-symbols-outlined{font-size:14px}.praxis-resource-page__title{margin:0;font-family:var(--praxis-page-title-font, var(--font-display, inherit));font-size:var(--praxis-page-title-size, clamp(1.28rem, 1.6vw, 1.45rem));font-weight:var(--praxis-page-title-weight, var(--mat-sys-headline-medium-weight, 500));letter-spacing:-.02em;color:var(--praxis-page-title-color, var(--foreground, inherit));line-height:1.22}.praxis-resource-page__subtitle{margin:4px 0 0;font-size:var(--praxis-page-subtitle-size, .84rem);color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b));max-width:800px;line-height:1.45}.praxis-resource-page__header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.praxis-resource-page__configure-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:var(--praxis-configure-btn-radius, 10px);border:1px solid color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 35%,transparent);background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 14%,transparent);color:var(--praxis-primary, var(--primary, #6366f1));font-size:13px;font-weight:600;cursor:pointer;transition:all .16s ease}.praxis-resource-page__configure-btn:hover{background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 22%,transparent)}.praxis-resource-page__configure-btn .material-symbols-outlined{font-size:18px}.praxis-resource-page__rules-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:var(--praxis-configure-btn-radius, 10px);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, #64748b) 72%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-high, rgba(148, 163, 184, .12)) 80%,transparent);color:var(--md-sys-color-on-surface, inherit);font-size:13px;font-weight:600;cursor:pointer;transition:all .16s ease}.praxis-resource-page__rules-btn:hover{border-color:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 45%,transparent);color:var(--praxis-primary, var(--primary, #6366f1))}.praxis-resource-page__rules-btn .material-symbols-outlined{font-size:18px}.praxis-resource-page__crud-surface{width:100%;border-radius:var(--praxis-surface-radius, 0);overflow:visible}\n"] }]
|
|
23747
|
+
`, styles: [":host{display:block;width:100%;min-height:100%;box-sizing:border-box}.praxis-resource-page{width:100%;display:flex;flex-direction:column;gap:var(--praxis-page-gap, 16px);padding:var(--praxis-page-padding, 24px);box-sizing:border-box;max-width:var(--praxis-page-max-width, 1560px);margin:0 auto}:host-context(.praxis-shell__content) .praxis-resource-page{padding:var(--praxis-page-padding, 0)}.praxis-resource-page__header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:var(--praxis-header-padding, 0);border-radius:var(--praxis-header-radius, 0);background:var(--praxis-header-bg, transparent);border:var(--praxis-header-border, none);box-shadow:var(--praxis-header-shadow, none)}.praxis-resource-page__header-main{min-width:0;display:flex;flex-direction:column}.praxis-resource-page__domain-badge{display:inline-flex;align-items:center;gap:6px;padding:var(--praxis-domain-badge-padding, 4px 10px);border-radius:9999px;font-size:var(--praxis-domain-badge-font-size, 11px);font-weight:var(--praxis-domain-badge-weight, var(--mat-sys-label-small-weight, 500));text-transform:uppercase;letter-spacing:var(--praxis-domain-badge-tracking, var(--hero-label-tracking, .05em));margin-bottom:var(--praxis-domain-badge-margin-bottom, 6px);align-self:flex-start;background:var(--praxis-domain-badge-bg, color-mix(in srgb, currentColor 10%, transparent));color:var(--praxis-domain-badge-color, inherit);border:1px solid var(--praxis-domain-badge-border, color-mix(in srgb, currentColor 24%, transparent))}.praxis-resource-page__domain-badge.tone-primary,.praxis-resource-page__domain-badge.tone-info{background:color-mix(in srgb,var(--praxis-info, var(--primary, #0284c7)) 12%,transparent);color:var(--praxis-info, var(--primary, #0284c7));border-color:color-mix(in srgb,var(--praxis-info, var(--primary, #0284c7)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-accent{background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 12%,transparent);color:var(--praxis-primary, var(--primary, #6366f1));border-color:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-success,.praxis-resource-page__domain-badge.tone-ready{background:color-mix(in srgb,var(--praxis-success, var(--ready, #059669)) 12%,transparent);color:var(--praxis-success, var(--ready, #059669));border-color:color-mix(in srgb,var(--praxis-success, var(--ready, #059669)) 28%,transparent)}.praxis-resource-page__domain-badge.tone-warning,.praxis-resource-page__domain-badge.tone-warn{background:color-mix(in srgb,var(--praxis-warning, var(--warning, #d97706)) 14%,transparent);color:var(--praxis-warning, var(--warning, #d97706));border-color:color-mix(in srgb,var(--praxis-warning, var(--warning, #d97706)) 30%,transparent)}.praxis-resource-page__domain-badge.tone-danger,.praxis-resource-page__domain-badge.tone-error{background:color-mix(in srgb,var(--praxis-error, var(--destructive, #dc2626)) 12%,transparent);color:var(--praxis-error, var(--destructive, #dc2626));border-color:color-mix(in srgb,var(--praxis-error, var(--destructive, #dc2626)) 28%,transparent)}.praxis-resource-page__domain-badge span.material-symbols-outlined{font-size:14px}.praxis-resource-page__title{margin:var(--praxis-page-title-margin, 0);font-family:var(--praxis-page-title-font, var(--font-display, inherit));font-size:var(--praxis-page-title-size, clamp(1.28rem, 1.6vw, 1.45rem));font-weight:var(--praxis-page-title-weight, var(--mat-sys-headline-medium-weight, 500));letter-spacing:-.02em;color:var(--praxis-page-title-color, var(--foreground, inherit));background:var(--praxis-page-title-bg, none);-webkit-text-fill-color:var(--praxis-page-title-fill-color, currentColor);line-height:1.22}.praxis-resource-page__subtitle{margin:var(--praxis-page-subtitle-margin, 4px 0 0);font-size:var(--praxis-page-subtitle-size, .84rem);color:var(--muted-foreground, var(--md-sys-color-on-surface-variant, #64748b));max-width:800px;line-height:var(--praxis-page-subtitle-line-height, 1.45)}.praxis-resource-page__header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.praxis-resource-page__configure-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:var(--praxis-configure-btn-radius, 10px);border:1px solid color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 35%,transparent);background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 14%,transparent);color:var(--praxis-primary, var(--primary, #6366f1));font-size:13px;font-weight:600;cursor:pointer;transition:all .16s ease}.praxis-resource-page__configure-btn:hover{background:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 22%,transparent)}.praxis-resource-page__configure-btn .material-symbols-outlined{font-size:18px}.praxis-resource-page__rules-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:var(--praxis-configure-btn-radius, 10px);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, #64748b) 72%,transparent);background:color-mix(in srgb,var(--md-sys-color-surface-container-high, rgba(148, 163, 184, .12)) 80%,transparent);color:var(--md-sys-color-on-surface, inherit);font-size:13px;font-weight:600;cursor:pointer;transition:all .16s ease}.praxis-resource-page__rules-btn:hover{border-color:color-mix(in srgb,var(--praxis-primary, var(--primary, #6366f1)) 45%,transparent);color:var(--praxis-primary, var(--primary, #6366f1))}.praxis-resource-page__rules-btn .material-symbols-outlined{font-size:18px}.praxis-resource-page__crud-surface{width:100%;border-radius:var(--praxis-surface-radius, 0);overflow:visible}\n"] }]
|
|
21323
23748
|
}], ctorParameters: () => [], propDecorators: { crudComponent: [{
|
|
21324
23749
|
type: ViewChild,
|
|
21325
23750
|
args: [PraxisCrudComponent]
|
|
@@ -21356,6 +23781,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
21356
23781
|
type: Input
|
|
21357
23782
|
}], filterCriteria: [{
|
|
21358
23783
|
type: Input
|
|
23784
|
+
}], lockedFilterFields: [{
|
|
23785
|
+
type: Input
|
|
23786
|
+
}], schemaFields: [{
|
|
23787
|
+
type: Input
|
|
21359
23788
|
}], rowClick: [{
|
|
21360
23789
|
type: Output
|
|
21361
23790
|
}], rowAction: [{
|
|
@@ -21390,4 +23819,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
21390
23819
|
* Generated bundle index. Do not edit.
|
|
21391
23820
|
*/
|
|
21392
23821
|
|
|
21393
|
-
export {
|
|
23822
|
+
export { providePraxisDossierPageMetadata as A, serializeCrudAuthoringDocument as B, CRUD_AI_CAPABILITIES as C, DialogService as D, translateCrudRuntimeText as E, validateCrudAuthoringDocument as F, PRAXIS_CRUD_AUTHORING_MANIFEST as P, CrudLauncherService as a, CrudMetadataEditorComponent as b, CrudPageHeaderComponent as c, CrudRouteFormHandoffService as d, DynamicFormDialogHostComponent as e, PRAXIS_CRUD_COMPONENT_METADATA as f, PRAXIS_CRUD_RUNTIME_I18N_CONFIG as g, PRAXIS_DOSSIER_PAGE_COMPONENT_METADATA as h, PraxisBulkEditDialogComponent as i, PraxisBulkOperationDialogComponent as j, PraxisCrudComponent as k, PraxisCrudWidgetConfigEditor as l, PraxisDossierPageComponent as m, PraxisKpiBandComponent as n, PraxisResourcePage as o, assertCrudMetadata as p, createCrudAuthoringDocument as q, createCrudFormRoute as r, crudRouteContextKey as s, findCrudAction as t, formatKpiValue as u, isResourceDiscoveredCrudAction as v, normalizeCrudAuthoringDocument as w, openCrudMetadataEditor as x, parseLegacyOrCrudDocument as y, providePraxisCrudMetadata as z };
|