@praxisui/crud 10.0.0-rc.65 → 10.0.0-rc.67
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 +2 -2
- package/fesm2022/{praxisui-crud-crud-route-form.component-BZtvekmS.mjs → praxisui-crud-crud-route-form.component-eDspci8D.mjs} +1 -1
- package/fesm2022/{praxisui-crud-praxisui-crud-CXrIpmrb.mjs → praxisui-crud-praxisui-crud-DNCQa0at.mjs} +327 -79
- package/fesm2022/praxisui-crud.mjs +1 -1
- package/package.json +7 -7
- package/types/praxisui-crud.d.ts +8 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-11-
|
|
3
|
+
"generatedAt": "2026-11-27T10:56:19.853Z",
|
|
4
4
|
"packageName": "@praxisui/crud",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.67",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 3,
|
|
@@ -4,7 +4,7 @@ import { NgComponentOutlet } from '@angular/common';
|
|
|
4
4
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
5
5
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
6
6
|
import { EnterpriseRuntimeContextService, PraxisCustomizationModeService, PraxisI18nService, providePraxisI18nConfig } from '@praxisui/core';
|
|
7
|
-
import { d as CrudRouteFormHandoffService, e as DynamicFormDialogHostComponent, $ as translateCrudRuntimeText, J as crudRouteContextKey, i as PRAXIS_CRUD_RUNTIME_I18N_CONFIG } from './praxisui-crud-praxisui-crud-
|
|
7
|
+
import { d as CrudRouteFormHandoffService, e as DynamicFormDialogHostComponent, $ as translateCrudRuntimeText, J as crudRouteContextKey, i as PRAXIS_CRUD_RUNTIME_I18N_CONFIG } from './praxisui-crud-praxisui-crud-DNCQa0at.mjs';
|
|
8
8
|
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
9
9
|
|
|
10
10
|
/** Created only by createCrudFormRoute; owns the transferred form instance. */
|
|
@@ -8,10 +8,10 @@ import { Router, GuardsCheckEnd, ActivatedRoute, RouterLink } from '@angular/rou
|
|
|
8
8
|
import * as i1$2 from '@angular/material/dialog';
|
|
9
9
|
import { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule, MatDialog } from '@angular/material/dialog';
|
|
10
10
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
11
|
-
import { firstValueFrom, Subscription, filter, startWith,
|
|
12
|
-
import { catchError, switchMap, take, filter as filter$1, finalize } from 'rxjs/operators';
|
|
11
|
+
import { firstValueFrom, of, switchMap, Subscription, filter, startWith, takeUntil, fromEvent, BehaviorSubject, isObservable, forkJoin, catchError as catchError$1 } from 'rxjs';
|
|
12
|
+
import { catchError, switchMap as switchMap$1, take, filter as filter$1, finalize } from 'rxjs/operators';
|
|
13
13
|
import * as i2$1 from '@praxisui/core';
|
|
14
|
-
import { PraxisBulkClientService, PraxisI18nService, isBulkExecutionTerminal, generateBulkIdempotencyKey, FieldControlType, API_URL, DynamicFormService, PraxisCacheInvalidatorService, EnterpriseRuntimeContextService, readStrongResourceEtag, mapFieldDefinitionToMetadata, buildApiUrl, composeHeadersWithVersion, providePraxisI18nConfig, PraxisStatsExecutionService, SafeExpressionEvaluator, extractPraxisApiPathPrefix, normalizePraxisResourcePath, resolvePraxisSchemasFilteredUrl, normalizeQuickFilterCriteria, isUnresolvedTemplateToken, applyDeclarativeValuePipe, ASYNC_CONFIG_STORAGE, GlobalConfigService, CrudOperationResolutionService, ComponentKeyService, LoggerService, normalizeConfigPersistenceStrategy, SurfaceNavigationError, normalizeResourceScopeId, fillUndefined, GenericCrudService, ResourceDiscoveryService, SETTINGS_PANEL_DATA, mapCatalogFieldsToMetadata, humanizeCatalogFieldName, inferDomainSemanticTone, buildBaseColumnFromDef, mapFieldDefinitionsToMetadata, PraxisIconDirective, ResourceQuickConnectComponent, SchemaNormalizerService, normalizeQuickFilterTone, synthesizeScopeBarQuickFilterItems, PraxisWidgetEventBus, PraxisWorkspaceQueryContextService, PraxisContextFilterProjectorService, GLOBAL_SURFACE_SERVICE, SurfaceOutletRegistryService, ResourceActionOpenAdapterService, ResourceSurfaceOpenAdapterService, normalizeSurfaceOperationContext, createDefaultTableConfig, SURFACE_DRAWER_REF, translateUnavailableWorkflowMessage, isSurfaceNavigationError, translateSurfaceNavigationRejected, normalizeUnknownError, parseConfigPersistenceError, EmptyStateCardComponent, RESOURCE_DISCOVERY_I18N_CONFIG, PraxisCustomizationModeService, SURFACE_DRAWER_CONTENT_DATA, PraxisIconButtonComponent, PraxisResourceIdentityComponent, ComponentMetadataRegistry, materializeResourceIdentity, resolveResourceIdentityContract, evaluateFieldAccess, PraxisDecisionInspectorService, translateDecisionInspector, PraxisOperationalAssistantLaunchService, PRAXIS_BULK_PROPOSAL_BRIDGE } from '@praxisui/core';
|
|
14
|
+
import { PraxisBulkClientService, PraxisI18nService, isBulkExecutionTerminal, resolveBulkWireIdKindFromSchema, coerceBulkWireId, coerceBulkTargetsWireIds, generateBulkIdempotencyKey, FieldControlType, API_URL, DynamicFormService, PraxisCacheInvalidatorService, EnterpriseRuntimeContextService, readStrongResourceEtag, mapFieldDefinitionToMetadata, buildApiUrl, composeHeadersWithVersion, providePraxisI18nConfig, PraxisStatsExecutionService, SafeExpressionEvaluator, extractPraxisApiPathPrefix, normalizePraxisResourcePath, resolvePraxisSchemasFilteredUrl, normalizeQuickFilterCriteria, isUnresolvedTemplateToken, applyDeclarativeValuePipe, ASYNC_CONFIG_STORAGE, GlobalConfigService, CrudOperationResolutionService, ComponentKeyService, LoggerService, normalizeConfigPersistenceStrategy, SurfaceNavigationError, normalizeResourceScopeId, fillUndefined, GenericCrudService, ResourceDiscoveryService, SETTINGS_PANEL_DATA, mapCatalogFieldsToMetadata, humanizeCatalogFieldName, inferDomainSemanticTone, buildBaseColumnFromDef, mapFieldDefinitionsToMetadata, PraxisIconDirective, ResourceQuickConnectComponent, SchemaNormalizerService, normalizeQuickFilterTone, synthesizeScopeBarQuickFilterItems, PraxisWidgetEventBus, PraxisWorkspaceQueryContextService, PraxisContextFilterProjectorService, GLOBAL_SURFACE_SERVICE, SurfaceOutletRegistryService, ResourceActionOpenAdapterService, ResourceSurfaceOpenAdapterService, normalizeSurfaceOperationContext, createDefaultTableConfig, SURFACE_DRAWER_REF, translateUnavailableWorkflowMessage, isSurfaceNavigationError, translateSurfaceNavigationRejected, normalizeUnknownError, parseConfigPersistenceError, EmptyStateCardComponent, RESOURCE_DISCOVERY_I18N_CONFIG, PraxisCustomizationModeService, SURFACE_DRAWER_CONTENT_DATA, PraxisIconButtonComponent, PraxisResourceIdentityComponent, ComponentMetadataRegistry, materializeResourceIdentity, resolveResourceIdentityContract, evaluateFieldAccess, PraxisDecisionInspectorService, translateDecisionInspector, PraxisOperationalAssistantLaunchService, PRAXIS_BULK_PROPOSAL_BRIDGE } 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';
|
|
@@ -329,6 +329,8 @@ class PraxisBulkOperationDialogComponent {
|
|
|
329
329
|
this.activeTargets.set(value || []);
|
|
330
330
|
}
|
|
331
331
|
confirmationIdempotencyKey;
|
|
332
|
+
initialFormParameters = signal({}, ...(ngDevMode ? [{ debugName: "initialFormParameters" }] : /* istanbul ignore next */ []));
|
|
333
|
+
latestPreparedParameters = null;
|
|
332
334
|
formActions = {
|
|
333
335
|
showSaveButton: false,
|
|
334
336
|
showCancelButton: false,
|
|
@@ -348,6 +350,9 @@ class PraxisBulkOperationDialogComponent {
|
|
|
348
350
|
this.targets = initialTargets;
|
|
349
351
|
this.activeTargets.set(initialTargets);
|
|
350
352
|
this.selectionOverride.set(data.initialSelection ?? null);
|
|
353
|
+
this.initialFormParameters.set(data.initialParameters && typeof data.initialParameters === 'object'
|
|
354
|
+
? { ...data.initialParameters }
|
|
355
|
+
: {});
|
|
351
356
|
if (data.initialParameters && typeof data.initialParameters === 'object') {
|
|
352
357
|
this.parametersValue.set({ ...data.initialParameters });
|
|
353
358
|
}
|
|
@@ -436,11 +441,25 @@ class PraxisBulkOperationDialogComponent {
|
|
|
436
441
|
return Boolean(typeof bulkContract?.parametersPointer === 'string' &&
|
|
437
442
|
bulkContract.parametersPointer.trim().length > 0);
|
|
438
443
|
}
|
|
444
|
+
parametersSchemaPointer() {
|
|
445
|
+
const pointer = this.action.execution?.bulk?.parametersPointer;
|
|
446
|
+
return typeof pointer === 'string' && pointer.trim().length > 0 ? pointer.trim() : null;
|
|
447
|
+
}
|
|
439
448
|
parametersSchemaUrl() {
|
|
440
449
|
const bulkContract = this.action.execution?.bulk;
|
|
441
|
-
|
|
450
|
+
const raw = bulkContract?.evaluationOperation?.requestSchema?.url ||
|
|
442
451
|
this.action.requestSchemaUrl ||
|
|
443
|
-
null
|
|
452
|
+
null;
|
|
453
|
+
if (!raw) {
|
|
454
|
+
return null;
|
|
455
|
+
}
|
|
456
|
+
if (this.parametersSchemaPointer() && !/[?&]includeInternalSchemas=true(?:&|$)/i.test(raw)) {
|
|
457
|
+
if (/[?&]includeInternalSchemas=false(?:&|$)/i.test(raw)) {
|
|
458
|
+
return raw.replace(/includeInternalSchemas=false/i, 'includeInternalSchemas=true');
|
|
459
|
+
}
|
|
460
|
+
return `${raw}${raw.includes('?') ? '&' : '?'}includeInternalSchemas=true`;
|
|
461
|
+
}
|
|
462
|
+
return raw;
|
|
444
463
|
}
|
|
445
464
|
getParametersFormId() {
|
|
446
465
|
const resourcePart = String(this.data.resourceKey || this.data.resourcePath || 'resource')
|
|
@@ -455,10 +474,21 @@ class PraxisBulkOperationDialogComponent {
|
|
|
455
474
|
if (typeof event?.isValid === 'boolean') {
|
|
456
475
|
this.parametersFormValid.set(event.isValid);
|
|
457
476
|
}
|
|
477
|
+
else if (event?.formGroup && typeof event.formGroup.valid === 'boolean') {
|
|
478
|
+
this.parametersFormValid.set(Boolean(event.formGroup.valid));
|
|
479
|
+
}
|
|
458
480
|
if (event?.formData && typeof event.formData === 'object' && !Array.isArray(event.formData)) {
|
|
459
481
|
this.onParametersChange(event);
|
|
460
482
|
}
|
|
461
483
|
}
|
|
484
|
+
onParametersPayloadPreview(event) {
|
|
485
|
+
if (typeof event?.isValid === 'boolean') {
|
|
486
|
+
this.parametersFormValid.set(event.isValid);
|
|
487
|
+
}
|
|
488
|
+
if (event?.formData && typeof event.formData === 'object' && !Array.isArray(event.formData)) {
|
|
489
|
+
this.latestPreparedParameters = { ...event.formData };
|
|
490
|
+
}
|
|
491
|
+
}
|
|
462
492
|
onParametersChange(event) {
|
|
463
493
|
if (typeof event?.isValid === 'boolean') {
|
|
464
494
|
this.parametersFormValid.set(event.isValid);
|
|
@@ -613,6 +643,9 @@ class PraxisBulkOperationDialogComponent {
|
|
|
613
643
|
return 'Transação homologada e registrada na auditoria corporativa.';
|
|
614
644
|
}
|
|
615
645
|
onEvaluate() {
|
|
646
|
+
if (this.step() === 'EVALUATING') {
|
|
647
|
+
return;
|
|
648
|
+
}
|
|
616
649
|
const bulkContract = this.action.execution?.bulk;
|
|
617
650
|
if (!bulkContract) {
|
|
618
651
|
this.errorMessage.set('Contrato de operação em lote não encontrado na ação.');
|
|
@@ -659,6 +692,9 @@ class PraxisBulkOperationDialogComponent {
|
|
|
659
692
|
return;
|
|
660
693
|
}
|
|
661
694
|
}
|
|
695
|
+
const parameters = this.resolveSubmitParameters();
|
|
696
|
+
this.parametersValue.set(parameters);
|
|
697
|
+
this.initialFormParameters.set({ ...parameters });
|
|
662
698
|
this.confirmationIdempotencyKey = undefined;
|
|
663
699
|
this.proposalExpiredOrConflicted.set(false);
|
|
664
700
|
this.step.set('EVALUATING');
|
|
@@ -666,17 +702,51 @@ class PraxisBulkOperationDialogComponent {
|
|
|
666
702
|
const executionMode = bulkContract.executionModes?.includes('SYNC')
|
|
667
703
|
? 'SYNC'
|
|
668
704
|
: (bulkContract.executionModes?.[0] ?? 'SYNC');
|
|
669
|
-
const request = {
|
|
670
|
-
executionMode,
|
|
671
|
-
selection,
|
|
672
|
-
parameters: this.parametersValue(),
|
|
673
|
-
};
|
|
674
705
|
const requestOptions = {
|
|
675
706
|
endpointKey: this.data.endpointKey,
|
|
676
707
|
apiUrlEntry: this.data.apiUrlEntry,
|
|
677
708
|
};
|
|
678
|
-
this.
|
|
679
|
-
|
|
709
|
+
const loadedRootSchema = this.parametersForm?.getLoadedRootSchema?.() ?? null;
|
|
710
|
+
const inlineWireIdKind = resolveBulkWireIdKindFromSchema(loadedRootSchema, 'DOMAIN_COMMAND');
|
|
711
|
+
const wireIdKind$ = inlineWireIdKind
|
|
712
|
+
? of(inlineWireIdKind)
|
|
713
|
+
: typeof this.bulkClient.resolveEvaluationWireIdKind === 'function'
|
|
714
|
+
? this.bulkClient.resolveEvaluationWireIdKind(bulkContract.evaluationOperation, 'DOMAIN_COMMAND', requestOptions)
|
|
715
|
+
: of(null);
|
|
716
|
+
const evaluate$ = wireIdKind$.pipe(switchMap((wireIdKind) => {
|
|
717
|
+
if (selection.mode === 'QUERY') {
|
|
718
|
+
const coercedQuerySelection = {
|
|
719
|
+
...selection,
|
|
720
|
+
...(selection.excludedIds?.length
|
|
721
|
+
? { excludedIds: selection.excludedIds.map((id) => coerceBulkWireId(id, wireIdKind)) }
|
|
722
|
+
: {}),
|
|
723
|
+
};
|
|
724
|
+
return this.bulkClient.evaluateCommand(bulkContract.evaluationOperation, { executionMode, selection: coercedQuerySelection, parameters }, requestOptions);
|
|
725
|
+
}
|
|
726
|
+
const coercedTargets = coerceBulkTargetsWireIds(selection.targets, wireIdKind);
|
|
727
|
+
const needsVersionHydration = Boolean(this.data.resourcePath?.trim()) &&
|
|
728
|
+
typeof this.bulkClient.resolveTargetVersions === 'function' &&
|
|
729
|
+
coercedTargets.some((t) => !t?.expectedVersion || !String(t.expectedVersion).trim());
|
|
730
|
+
if (needsVersionHydration) {
|
|
731
|
+
return this.bulkClient
|
|
732
|
+
.resolveTargetVersions(this.data.resourcePath, coercedTargets, requestOptions)
|
|
733
|
+
.pipe(switchMap((hydratedTargets) => {
|
|
734
|
+
this.activeTargets.set(hydratedTargets);
|
|
735
|
+
return this.bulkClient.evaluateCommand(bulkContract.evaluationOperation, {
|
|
736
|
+
executionMode,
|
|
737
|
+
selection: { mode: 'EXPLICIT', targets: hydratedTargets },
|
|
738
|
+
parameters,
|
|
739
|
+
}, requestOptions);
|
|
740
|
+
}));
|
|
741
|
+
}
|
|
742
|
+
this.activeTargets.set(coercedTargets);
|
|
743
|
+
return this.bulkClient.evaluateCommand(bulkContract.evaluationOperation, {
|
|
744
|
+
executionMode,
|
|
745
|
+
selection: { mode: 'EXPLICIT', targets: coercedTargets },
|
|
746
|
+
parameters,
|
|
747
|
+
}, requestOptions);
|
|
748
|
+
}));
|
|
749
|
+
evaluate$
|
|
680
750
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
681
751
|
.subscribe({
|
|
682
752
|
next: (proposal) => {
|
|
@@ -688,6 +758,27 @@ class PraxisBulkOperationDialogComponent {
|
|
|
688
758
|
},
|
|
689
759
|
});
|
|
690
760
|
}
|
|
761
|
+
resolveSubmitParameters() {
|
|
762
|
+
const raw = this.parametersForm?.getPreparedSubmitPayload?.() ??
|
|
763
|
+
this.latestPreparedParameters ??
|
|
764
|
+
this.parametersValue();
|
|
765
|
+
return this.normalizeParameterDateValues(raw || {});
|
|
766
|
+
}
|
|
767
|
+
normalizeParameterDateValues(source) {
|
|
768
|
+
const result = {};
|
|
769
|
+
for (const [key, value] of Object.entries(source)) {
|
|
770
|
+
if (value instanceof Date && !Number.isNaN(value.getTime())) {
|
|
771
|
+
const y = value.getFullYear();
|
|
772
|
+
const m = String(value.getMonth() + 1).padStart(2, '0');
|
|
773
|
+
const d = String(value.getDate()).padStart(2, '0');
|
|
774
|
+
result[key] = `${y}-${m}-${d}`;
|
|
775
|
+
}
|
|
776
|
+
else {
|
|
777
|
+
result[key] = value;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
return result;
|
|
781
|
+
}
|
|
691
782
|
canReevaluateEligibleSubset() {
|
|
692
783
|
const prop = this.proposal();
|
|
693
784
|
if (!prop) {
|
|
@@ -1068,13 +1159,17 @@ class PraxisBulkOperationDialogComponent {
|
|
|
1068
1159
|
<praxis-dynamic-form
|
|
1069
1160
|
[formId]="getParametersFormId()"
|
|
1070
1161
|
[schemaUrl]="parametersSchemaUrl()!"
|
|
1071
|
-
[
|
|
1162
|
+
[schemaPointer]="parametersSchemaPointer()"
|
|
1163
|
+
[initialValue]="initialFormParameters()"
|
|
1072
1164
|
[resourcePath]="data.resourcePath"
|
|
1165
|
+
[enableCustomization]="false"
|
|
1166
|
+
[configPersistenceStrategy]="'volatile'"
|
|
1073
1167
|
[submitMethod]="'post'"
|
|
1074
1168
|
[submitUrl]="''"
|
|
1075
1169
|
[actions]="formActions"
|
|
1076
1170
|
(formReady)="onParametersFormReady($event)"
|
|
1077
1171
|
(valueChange)="onParametersChange($event)"
|
|
1172
|
+
(payloadPreviewChange)="onParametersPayloadPreview($event)"
|
|
1078
1173
|
/>
|
|
1079
1174
|
</div>
|
|
1080
1175
|
} @else {
|
|
@@ -1316,17 +1411,17 @@ class PraxisBulkOperationDialogComponent {
|
|
|
1316
1411
|
|
|
1317
1412
|
<div class="praxis-bulk-dialog__actions">
|
|
1318
1413
|
@if (step() === 'PARAMETERS') {
|
|
1319
|
-
<button mat-button (click)="onCancel()">Cancelar</button>
|
|
1320
|
-
<button mat-flat-button color="primary" (click)="onEvaluate()" [disabled]="!canEvaluateParameters()">
|
|
1414
|
+
<button mat-button type="button" (click)="onCancel()">Cancelar</button>
|
|
1415
|
+
<button mat-flat-button color="primary" type="button" (click)="onEvaluate()" [disabled]="!canEvaluateParameters()">
|
|
1321
1416
|
Avaliar Proposta
|
|
1322
1417
|
</button>
|
|
1323
1418
|
}
|
|
1324
1419
|
|
|
1325
1420
|
@if (step() === 'PREVIEW') {
|
|
1326
1421
|
@if (hasParametersSchema()) {
|
|
1327
|
-
<button mat-button (click)="step.set('PARAMETERS')">Voltar aos Parâmetros</button>
|
|
1422
|
+
<button mat-button type="button" (click)="step.set('PARAMETERS')">Voltar aos Parâmetros</button>
|
|
1328
1423
|
} @else {
|
|
1329
|
-
<button mat-button (click)="onCancel()">Cancelar</button>
|
|
1424
|
+
<button mat-button type="button" (click)="onCancel()">Cancelar</button>
|
|
1330
1425
|
}
|
|
1331
1426
|
@if (canReevaluateEligibleSubset()) {
|
|
1332
1427
|
<button
|
|
@@ -1354,6 +1449,7 @@ class PraxisBulkOperationDialogComponent {
|
|
|
1354
1449
|
<button
|
|
1355
1450
|
mat-flat-button
|
|
1356
1451
|
color="primary"
|
|
1452
|
+
type="button"
|
|
1357
1453
|
(click)="onConfirm()"
|
|
1358
1454
|
[disabled]="isConfirmDisabled()"
|
|
1359
1455
|
>
|
|
@@ -1368,7 +1464,7 @@ class PraxisBulkOperationDialogComponent {
|
|
|
1368
1464
|
}
|
|
1369
1465
|
</div>
|
|
1370
1466
|
</div>
|
|
1371
|
-
`, 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, #92400e) 16%,var(--card, #1e293b));border:1px solid color-mix(in srgb,var(--praxis-warning, #92400e) 45%,transparent);color:var(--foreground, #f8fafc)}.praxis-bulk-dialog__alert--warning mat-icon{color:var(--praxis-warning, #92400e)}.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, #0369a1) 14%,var(--card, #1e293b));border:1px solid color-mix(in srgb,var(--praxis-info, #0369a1) 40%,transparent);border-radius:10px;color:var(--foreground, #f8fafc);font-size:.875rem}.praxis-bulk-dialog__notice-box mat-icon{color:var(--praxis-info, #0369a1)}.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", "overlayInitialValueOnEdit", "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", "stepTelemetry"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1467
|
+
`, 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, #92400e) 16%,var(--card, #1e293b));border:1px solid color-mix(in srgb,var(--praxis-warning, #92400e) 45%,transparent);color:var(--foreground, #f8fafc)}.praxis-bulk-dialog__alert--warning mat-icon{color:var(--praxis-warning, #92400e)}.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, #0369a1) 14%,var(--card, #1e293b));border:1px solid color-mix(in srgb,var(--praxis-info, #0369a1) 40%,transparent);border-radius:10px;color:var(--foreground, #f8fafc);font-size:.875rem}.praxis-bulk-dialog__notice-box mat-icon{color:var(--praxis-info, #0369a1)}.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", "overlayInitialValueOnEdit", "emptyState", "editorialContext", "mode", "config", "actions", "schemaSource", "actionId", "operationId", "schemaUrl", "schemaPointer", "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", "stepTelemetry"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1372
1468
|
}
|
|
1373
1469
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisBulkOperationDialogComponent, decorators: [{
|
|
1374
1470
|
type: Component,
|
|
@@ -1422,13 +1518,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
1422
1518
|
<praxis-dynamic-form
|
|
1423
1519
|
[formId]="getParametersFormId()"
|
|
1424
1520
|
[schemaUrl]="parametersSchemaUrl()!"
|
|
1425
|
-
[
|
|
1521
|
+
[schemaPointer]="parametersSchemaPointer()"
|
|
1522
|
+
[initialValue]="initialFormParameters()"
|
|
1426
1523
|
[resourcePath]="data.resourcePath"
|
|
1524
|
+
[enableCustomization]="false"
|
|
1525
|
+
[configPersistenceStrategy]="'volatile'"
|
|
1427
1526
|
[submitMethod]="'post'"
|
|
1428
1527
|
[submitUrl]="''"
|
|
1429
1528
|
[actions]="formActions"
|
|
1430
1529
|
(formReady)="onParametersFormReady($event)"
|
|
1431
1530
|
(valueChange)="onParametersChange($event)"
|
|
1531
|
+
(payloadPreviewChange)="onParametersPayloadPreview($event)"
|
|
1432
1532
|
/>
|
|
1433
1533
|
</div>
|
|
1434
1534
|
} @else {
|
|
@@ -1670,17 +1770,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
1670
1770
|
|
|
1671
1771
|
<div class="praxis-bulk-dialog__actions">
|
|
1672
1772
|
@if (step() === 'PARAMETERS') {
|
|
1673
|
-
<button mat-button (click)="onCancel()">Cancelar</button>
|
|
1674
|
-
<button mat-flat-button color="primary" (click)="onEvaluate()" [disabled]="!canEvaluateParameters()">
|
|
1773
|
+
<button mat-button type="button" (click)="onCancel()">Cancelar</button>
|
|
1774
|
+
<button mat-flat-button color="primary" type="button" (click)="onEvaluate()" [disabled]="!canEvaluateParameters()">
|
|
1675
1775
|
Avaliar Proposta
|
|
1676
1776
|
</button>
|
|
1677
1777
|
}
|
|
1678
1778
|
|
|
1679
1779
|
@if (step() === 'PREVIEW') {
|
|
1680
1780
|
@if (hasParametersSchema()) {
|
|
1681
|
-
<button mat-button (click)="step.set('PARAMETERS')">Voltar aos Parâmetros</button>
|
|
1781
|
+
<button mat-button type="button" (click)="step.set('PARAMETERS')">Voltar aos Parâmetros</button>
|
|
1682
1782
|
} @else {
|
|
1683
|
-
<button mat-button (click)="onCancel()">Cancelar</button>
|
|
1783
|
+
<button mat-button type="button" (click)="onCancel()">Cancelar</button>
|
|
1684
1784
|
}
|
|
1685
1785
|
@if (canReevaluateEligibleSubset()) {
|
|
1686
1786
|
<button
|
|
@@ -1708,6 +1808,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
1708
1808
|
<button
|
|
1709
1809
|
mat-flat-button
|
|
1710
1810
|
color="primary"
|
|
1811
|
+
type="button"
|
|
1711
1812
|
(click)="onConfirm()"
|
|
1712
1813
|
[disabled]="isConfirmDisabled()"
|
|
1713
1814
|
>
|
|
@@ -2274,6 +2375,9 @@ class PraxisBulkEditDialogComponent {
|
|
|
2274
2375
|
return 'Transação homologada e registrada na auditoria corporativa.';
|
|
2275
2376
|
}
|
|
2276
2377
|
onEvaluate() {
|
|
2378
|
+
if (this.step() === 'EVALUATING') {
|
|
2379
|
+
return;
|
|
2380
|
+
}
|
|
2277
2381
|
const requestOptions = {
|
|
2278
2382
|
endpointKey: this.data.endpointKey,
|
|
2279
2383
|
apiUrlEntry: this.data.apiUrlEntry,
|
|
@@ -2282,6 +2386,10 @@ class PraxisBulkEditDialogComponent {
|
|
|
2282
2386
|
? 'SYNC'
|
|
2283
2387
|
: (this.contract.executionModes?.[0] ?? 'SYNC');
|
|
2284
2388
|
const maxTargets = this.contract?.limits?.maxTargets;
|
|
2389
|
+
const resolvedMode = this.isPerItemMode() ? 'PER_ITEM_UPDATE' : 'UNIFORM_UPDATE';
|
|
2390
|
+
const wireIdKind$ = typeof this.bulkClient.resolveEvaluationWireIdKind === 'function'
|
|
2391
|
+
? this.bulkClient.resolveEvaluationWireIdKind(this.contract.evaluationOperation, resolvedMode, requestOptions)
|
|
2392
|
+
: of(null);
|
|
2285
2393
|
if (this.isPerItemMode()) {
|
|
2286
2394
|
const items = this.activeItemChanges();
|
|
2287
2395
|
if (items.length === 0) {
|
|
@@ -2296,9 +2404,11 @@ class PraxisBulkEditDialogComponent {
|
|
|
2296
2404
|
this.proposalExpiredOrConflicted.set(false);
|
|
2297
2405
|
this.step.set('EVALUATING');
|
|
2298
2406
|
this.errorMessage.set(null);
|
|
2299
|
-
|
|
2300
|
-
.evaluatePerItemUpdate(this.contract.evaluationOperation, {
|
|
2301
|
-
|
|
2407
|
+
wireIdKind$
|
|
2408
|
+
.pipe(switchMap((wireIdKind) => this.bulkClient.evaluatePerItemUpdate(this.contract.evaluationOperation, {
|
|
2409
|
+
executionMode: executionMode,
|
|
2410
|
+
items: coerceBulkTargetsWireIds(items, wireIdKind),
|
|
2411
|
+
}, requestOptions)), takeUntilDestroyed(this.destroyRef))
|
|
2302
2412
|
.subscribe({
|
|
2303
2413
|
next: (prop) => this.hydrateProposal(prop),
|
|
2304
2414
|
error: (err) => {
|
|
@@ -2347,13 +2457,40 @@ class PraxisBulkEditDialogComponent {
|
|
|
2347
2457
|
this.proposalExpiredOrConflicted.set(false);
|
|
2348
2458
|
this.step.set('EVALUATING');
|
|
2349
2459
|
this.errorMessage.set(null);
|
|
2350
|
-
const
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2460
|
+
const evaluate$ = wireIdKind$.pipe(switchMap((wireIdKind) => {
|
|
2461
|
+
if (selection.mode === 'QUERY') {
|
|
2462
|
+
const coercedQuerySelection = {
|
|
2463
|
+
...selection,
|
|
2464
|
+
...(selection.excludedIds?.length
|
|
2465
|
+
? { excludedIds: selection.excludedIds.map((id) => coerceBulkWireId(id, wireIdKind)) }
|
|
2466
|
+
: {}),
|
|
2467
|
+
};
|
|
2468
|
+
return this.bulkClient.evaluateUniformUpdate(this.contract.evaluationOperation, { executionMode, selection: coercedQuerySelection, changes }, requestOptions);
|
|
2469
|
+
}
|
|
2470
|
+
const coercedTargets = coerceBulkTargetsWireIds(selection.targets, wireIdKind);
|
|
2471
|
+
const needsVersionHydration = Boolean(this.data.resourcePath?.trim()) &&
|
|
2472
|
+
typeof this.bulkClient.resolveTargetVersions === 'function' &&
|
|
2473
|
+
coercedTargets.some((t) => !t?.expectedVersion || !String(t.expectedVersion).trim());
|
|
2474
|
+
if (needsVersionHydration) {
|
|
2475
|
+
return this.bulkClient
|
|
2476
|
+
.resolveTargetVersions(this.data.resourcePath, coercedTargets, requestOptions)
|
|
2477
|
+
.pipe(switchMap((hydratedTargets) => {
|
|
2478
|
+
this.activeTargets.set(hydratedTargets);
|
|
2479
|
+
return this.bulkClient.evaluateUniformUpdate(this.contract.evaluationOperation, {
|
|
2480
|
+
executionMode,
|
|
2481
|
+
selection: { mode: 'EXPLICIT', targets: hydratedTargets },
|
|
2482
|
+
changes,
|
|
2483
|
+
}, requestOptions);
|
|
2484
|
+
}));
|
|
2485
|
+
}
|
|
2486
|
+
this.activeTargets.set(coercedTargets);
|
|
2487
|
+
return this.bulkClient.evaluateUniformUpdate(this.contract.evaluationOperation, {
|
|
2488
|
+
executionMode,
|
|
2489
|
+
selection: { mode: 'EXPLICIT', targets: coercedTargets },
|
|
2490
|
+
changes,
|
|
2491
|
+
}, requestOptions);
|
|
2492
|
+
}));
|
|
2493
|
+
evaluate$
|
|
2357
2494
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
2358
2495
|
.subscribe({
|
|
2359
2496
|
next: (prop) => this.hydrateProposal(prop),
|
|
@@ -3161,10 +3298,11 @@ class PraxisBulkEditDialogComponent {
|
|
|
3161
3298
|
|
|
3162
3299
|
<div class="praxis-bulk-edit-dialog__actions">
|
|
3163
3300
|
@if (step() === 'FIELDS') {
|
|
3164
|
-
<button mat-button (click)="onCancel()">Cancelar</button>
|
|
3301
|
+
<button mat-button type="button" (click)="onCancel()">Cancelar</button>
|
|
3165
3302
|
<button
|
|
3166
3303
|
mat-flat-button
|
|
3167
3304
|
color="primary"
|
|
3305
|
+
type="button"
|
|
3168
3306
|
(click)="onEvaluate()"
|
|
3169
3307
|
[disabled]="!isPerItemMode() && fieldRows().length === 0"
|
|
3170
3308
|
>
|
|
@@ -3173,7 +3311,7 @@ class PraxisBulkEditDialogComponent {
|
|
|
3173
3311
|
}
|
|
3174
3312
|
|
|
3175
3313
|
@if (step() === 'PREVIEW') {
|
|
3176
|
-
<button mat-button (click)="step.set('FIELDS')">Voltar aos Campos</button>
|
|
3314
|
+
<button mat-button type="button" (click)="step.set('FIELDS')">Voltar aos Campos</button>
|
|
3177
3315
|
@if (canReevaluateEligibleSubset()) {
|
|
3178
3316
|
<button
|
|
3179
3317
|
mat-stroked-button
|
|
@@ -3622,10 +3760,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
3622
3760
|
|
|
3623
3761
|
<div class="praxis-bulk-edit-dialog__actions">
|
|
3624
3762
|
@if (step() === 'FIELDS') {
|
|
3625
|
-
<button mat-button (click)="onCancel()">Cancelar</button>
|
|
3763
|
+
<button mat-button type="button" (click)="onCancel()">Cancelar</button>
|
|
3626
3764
|
<button
|
|
3627
3765
|
mat-flat-button
|
|
3628
3766
|
color="primary"
|
|
3767
|
+
type="button"
|
|
3629
3768
|
(click)="onEvaluate()"
|
|
3630
3769
|
[disabled]="!isPerItemMode() && fieldRows().length === 0"
|
|
3631
3770
|
>
|
|
@@ -3634,7 +3773,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
3634
3773
|
}
|
|
3635
3774
|
|
|
3636
3775
|
@if (step() === 'PREVIEW') {
|
|
3637
|
-
<button mat-button (click)="step.set('FIELDS')">Voltar aos Campos</button>
|
|
3776
|
+
<button mat-button type="button" (click)="step.set('FIELDS')">Voltar aos Campos</button>
|
|
3638
3777
|
@if (canReevaluateEligibleSubset()) {
|
|
3639
3778
|
<button
|
|
3640
3779
|
mat-stroked-button
|
|
@@ -9717,7 +9856,7 @@ class PraxisKpiBandComponent {
|
|
|
9717
9856
|
? this.http.get(this.resolveSchemasFilteredRequestUrl(resourcePath)).pipe(catchError(() => of(null)))
|
|
9718
9857
|
: of(this.schemaMetadata ?? this.fetchedSchemaMetadata);
|
|
9719
9858
|
this.fetchSub = schema$
|
|
9720
|
-
.pipe(switchMap((rawSchema) => {
|
|
9859
|
+
.pipe(switchMap$1((rawSchema) => {
|
|
9721
9860
|
if (rawSchema && typeof rawSchema === 'object') {
|
|
9722
9861
|
this.fetchedSchemaMetadata = rawSchema;
|
|
9723
9862
|
}
|
|
@@ -25501,7 +25640,7 @@ function createCrudFormRoute(target) {
|
|
|
25501
25640
|
return {
|
|
25502
25641
|
path: target.path,
|
|
25503
25642
|
data: { crudFormTarget: { formId: target.formId, resourcePath: target.resourcePath } },
|
|
25504
|
-
loadComponent: () => import('./praxisui-crud-crud-route-form.component-
|
|
25643
|
+
loadComponent: () => import('./praxisui-crud-crud-route-form.component-eDspci8D.mjs').then(m => m.CrudRouteFormComponent),
|
|
25505
25644
|
canDeactivate: [(component) => component.canLeave()],
|
|
25506
25645
|
};
|
|
25507
25646
|
}
|
|
@@ -26790,7 +26929,7 @@ class DynamicFormDialogHostComponent {
|
|
|
26790
26929
|
></praxis-dynamic-form>
|
|
26791
26930
|
}
|
|
26792
26931
|
</mat-dialog-content>
|
|
26793
|
-
`, isInline: true, styles: ["praxis-dynamic-form-dialog-host{--dlg-header-h: 60px;--dlg-footer-h: 56px;--dlg-pad: 20px;display:flex;flex-direction:column;height:100%;overflow:hidden;color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface))}praxis-dynamic-form-dialog-host[data-density=compact]{--dlg-header-h: 48px;--dlg-footer-h: 44px;--dlg-pad: 14px}praxis-dynamic-form-dialog-host.praxis-dialog .dialog-header{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:12px;min-height:var(--dlg-header-h);padding:12px var(--dlg-pad);margin:0;box-sizing:border-box;background:var( --pfx-dialog-header-bg, color-mix( in srgb, var(--md-sys-color-surface-container-high, var(--mat-sys-surface-container-high)) 68%, var(--md-sys-color-surface, var(--mat-sys-surface)) 32% ) );border-bottom:1px solid var( --pfx-dialog-header-border, color-mix( in srgb, var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 72%, transparent ) );color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface))}praxis-dynamic-form-dialog-host.praxis-dialog[data-density=compact] .dialog-header{padding:8px var(--dlg-pad);gap:10px}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, clamp(1.0625rem, 1.15vw, 1.2rem));line-height:var(--md-sys-typescale-title-large-line-height, 1.32);letter-spacing:-.012em;font-weight:var(--pfx-dialog-title-weight, var(--mat-sys-headline-small-weight, 500));color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface))}praxis-dynamic-form-dialog-host .dialog-title:focus{outline:none}praxis-dynamic-form-dialog-host .dialog-heading{display:grid;flex:1 1 auto;min-width:0;gap:2px}praxis-dynamic-form-dialog-host .dialog-title-icon{display:inline-grid;flex:0 0 auto;width:38px;height:38px;place-items:center;border-radius:11px;color:var(--md-sys-color-primary, var(--mat-sys-primary));background:color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary)) 12%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary)) 22%,transparent)}praxis-dynamic-form-dialog-host[data-density=compact] .dialog-title-icon{width:32px;height:32px;border-radius:9px}praxis-dynamic-form-dialog-host .dialog-title-icon mat-icon{width:20px;height:20px;font-size:20px}praxis-dynamic-form-dialog-host .dialog-subtitle{display:block;overflow-wrap:anywhere;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant));font-size:.8125rem;font-weight:400;line-height:1.35}praxis-dynamic-form-dialog-host .dialog-header-actions{display:inline-flex;align-items:center;gap:2px;flex:0 0 auto;margin-inline-start:auto;margin-inline-end:-4px}praxis-dynamic-form-dialog-host .dialog-header-divider{width:1px;height:18px;margin-inline:2px;background:color-mix(in srgb,var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 64%,transparent)}@media(max-width:480px){praxis-dynamic-form-dialog-host .dialog-header-divider{display:none}}praxis-dynamic-form-dialog-host .dialog-header button.dialog-header-btn{--praxis-icon-button-surface-size: 36px;--praxis-icon-button-icon-size: 18px;--praxis-icon-button-radius: 10px;--praxis-icon-button-focus-radius: 10px;--praxis-icon-button-bg: transparent;--praxis-icon-button-border: 1px solid transparent;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant))}praxis-dynamic-form-dialog-host[data-density=compact] .dialog-header button.dialog-header-btn{--praxis-icon-button-surface-size: 32px;--praxis-icon-button-icon-size: 17px;--praxis-icon-button-radius: 8px;--praxis-icon-button-focus-radius: 8px}praxis-dynamic-form-dialog-host .dialog-header button.dialog-ai-btn:hover:not(:disabled),praxis-dynamic-form-dialog-host .dialog-header button.dialog-maximize-btn:hover:not(:disabled){color:var(--md-sys-color-primary, var(--mat-sys-primary));--praxis-icon-button-hover-bg: color-mix( in srgb, var(--md-sys-color-primary, var(--mat-sys-primary)) 12%, transparent );--praxis-icon-button-hover-border-color: color-mix( in srgb, var(--md-sys-color-primary, var(--mat-sys-primary)) 30%, transparent )}praxis-dynamic-form-dialog-host .dialog-header button.dialog-close-btn{--praxis-icon-button-bg: color-mix( in srgb, var(--md-sys-color-on-surface, var(--mat-sys-on-surface)) 4.5%, transparent );--praxis-icon-button-border: 1px solid color-mix( in srgb, var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 48%, transparent )}praxis-dynamic-form-dialog-host .dialog-header button.dialog-close-btn:hover:not(:disabled){color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface));--praxis-icon-button-hover-bg: color-mix( in srgb, var(--md-sys-color-on-surface, var(--mat-sys-on-surface)) 11%, transparent );--praxis-icon-button-hover-border-color: color-mix( in srgb, var(--md-sys-color-outline, var(--mat-sys-outline)) 48%, transparent )}praxis-dynamic-form-dialog-host .dialog-header button.dialog-close-btn:active:not(:disabled){--praxis-icon-button-active-bg: color-mix( in srgb, var(--md-sys-color-on-surface, var(--mat-sys-on-surface)) 16%, transparent )}praxis-dynamic-form-dialog-host.praxis-dialog mat-dialog-content.dialog-content{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;max-width:100%;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;--mat-dialog-with-actions-content-padding: var(--dlg-pad);--mat-dialog-content-padding: var(--dlg-pad);padding:var(--dlg-pad)!important;max-height:calc(100svh - var(--dlg-header-h) - 48px)}praxis-dynamic-form-dialog-host.is-maximized mat-dialog-content.dialog-content,praxis-dynamic-form-dialog-host.praxis-drawer mat-dialog-content.dialog-content,praxis-dynamic-form-dialog-host.praxis-surface-frame mat-dialog-content.dialog-content{max-height:none}praxis-dynamic-form-dialog-host.praxis-dialog .dialog-content>praxis-dynamic-form,praxis-dynamic-form-dialog-host.praxis-dialog .dialog-content>praxis-dynamic-form>.entity-read-region,praxis-dynamic-form-dialog-host.praxis-dialog .dialog-content>praxis-dynamic-form>.entity-read-region>.praxis-dynamic-form,praxis-dynamic-form-dialog-host.praxis-dialog .dialog-content>praxis-dynamic-form>.praxis-dynamic-form{display:flex;flex-direction:column;flex:1 0 auto;min-width:0;min-height:0}praxis-dynamic-form-dialog-host.praxis-dialog .dialog-content .praxis-dynamic-form:not(.canvas-mode-enabled):has(>praxis-form-actions[data-actions-placement=afterSections])>.section-drop-wrapper:not([hidden]):not(:has(~.section-drop-wrapper:not([hidden]))),praxis-dynamic-form-dialog-host.praxis-dialog .dialog-content .praxis-dynamic-form:not(.canvas-mode-enabled):has(>praxis-form-actions[data-actions-placement=afterSections])>.form-editorial-blocks-before-actions{margin-bottom:16px}praxis-dynamic-form-dialog-host:not(.praxis-surface-frame) .dialog-content>praxis-dynamic-form>.ai-floating-assistant{display:none}praxis-dynamic-form-dialog-host.praxis-surface-frame .dialog-content>praxis-dynamic-form>.ai-floating-assistant{height:0;margin:0;overflow:visible}praxis-dynamic-form-dialog-host .dialog-content>praxis-dynamic-form>.entity-read-region>.praxis-dynamic-form:not(.canvas-mode-enabled)>praxis-form-actions[data-actions-placement=afterSections],praxis-dynamic-form-dialog-host .dialog-content>praxis-dynamic-form>.praxis-dynamic-form:not(.canvas-mode-enabled)>praxis-form-actions[data-actions-placement=afterSections]{--pfx-actions-top-border-width: 0px;--pfx-actions-inline-border-width: 0px;--pfx-actions-bottom-border-width: 0px;--pfx-actions-radius: 0px;--pfx-actions-bg: transparent;--pfx-actions-padding: 0px;position:sticky;bottom:calc(-1 * var(--dlg-pad));z-index:2;margin-top:auto;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(--md-sys-color-surface-container-high, var(--mat-sys-surface-container-high)) 62%,var(--pfx-form-surface, var(--md-sys-color-surface, var(--mat-sys-surface))) 38%);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 72%,transparent)}praxis-dynamic-form-dialog-host .crud-operation-context{display:grid;gap:.75rem;margin-block-end:var(--dlg-pad);padding:10px 14px;border-radius:12px;--pdx-resource-identity-key-bg: color-mix( in srgb, var(--md-sys-color-primary, var(--mat-sys-primary)) 14%, var(--md-sys-color-surface, var(--mat-sys-surface)) 86% );--pdx-resource-identity-key-fg: var(--md-sys-color-primary, var(--mat-sys-primary));background:color-mix(in srgb,var(--md-sys-color-surface-container-low, var(--mat-sys-surface-container-low)) 82%,var(--md-sys-color-surface, var(--mat-sys-surface)) 18%);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 64%,transparent)}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, var(--mat-sys-on-surface-variant));font:var(--md-sys-typescale-label-medium, 500 .75rem/1rem inherit)}praxis-dynamic-form-dialog-host.praxis-drawer{--dlg-header-h: 68px;--dlg-pad: clamp(16px, 2.2vw, 24px);width:100%;min-width:0;max-width:100vw;height:100dvh;background:var(--pfx-form-surface, var(--md-sys-color-surface, var(--mat-sys-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, var(--mat-sys-on-surface))}praxis-dynamic-form-dialog-host.praxis-drawer[data-density=compact]{--dlg-header-h: 52px;--dlg-pad: clamp(12px, 1.6vw, 16px)}praxis-dynamic-form-dialog-host.praxis-drawer.is-maximized{height:100%}praxis-dynamic-form-dialog-host.praxis-dialog.praxis-drawer .dialog-header{background:var( --pfx-dialog-header-bg, color-mix( in srgb, var( --md-sys-color-surface-container-high, var(--mat-sys-surface-container-high, var(--mat-sys-surface)) ) 92%, transparent 8% ) )}@media(prefers-reduced-transparency:reduce){praxis-dynamic-form-dialog-host.praxis-drawer{background:var( --pfx-form-fallback-surface, var(--md-sys-color-surface, var(--mat-sys-surface)) );backdrop-filter:none;-webkit-backdrop-filter:none}.cdk-overlay-backdrop.pfx-blur-backdrop,.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:none;-webkit-backdrop-filter:none}}praxis-dynamic-form-dialog-host.praxis-drawer .dialog-content{padding:var(--dlg-pad)}praxis-dynamic-form-dialog-host.praxis-surface-frame .dialog-content{--dlg-pad: clamp(12px, 2.4vw, 24px);padding:var(--dlg-pad)}praxis-dynamic-form-dialog-host .dialog-footer{position:sticky;bottom:0;z-index:1;padding:var(--dlg-pad)}@media(max-width:480px){praxis-dynamic-form-dialog-host,praxis-dynamic-form-dialog-host.praxis-drawer{--dlg-pad: 14px}}.cdk-overlay-backdrop.pfx-blur-backdrop,.cdk-overlay-backdrop.cdk-overlay-dark-backdrop,.cdk-overlay-backdrop.pfx-transparent-backdrop{overflow:hidden;overscroll-behavior:contain}.pfx-blur-backdrop{background-color:var(--pfx-backdrop, rgba(15, 23, 42, .48))!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{--pfx-dialog-radius: 20px;overflow:hidden;transition:width .22s cubic-bezier(.2,0,0,1),height .22s cubic-bezier(.2,0,0,1),margin .22s cubic-bezier(.2,0,0,1)}.cdk-overlay-pane.pfx-dialog-pane:not(.pfx-drawer-pane){--mat-dialog-container-shape: var(--pfx-dialog-radius);--mdc-dialog-container-shape: var(--pfx-dialog-radius);border-radius:var(--pfx-dialog-radius)!important;box-shadow:var( --md-sys-elevation-level4, 0 24px 64px -12px rgba(2, 6, 23, .42), 0 8px 24px -6px rgba(2, 6, 23, .22) )}.cdk-overlay-pane.pfx-dialog-pane.pfx-dialog-maximized:not(.pfx-drawer-pane){--pfx-dialog-radius: 16px;max-width:none!important;max-height:none!important;margin:var(--pfx-dialog-edge-gap, 8px)!important}@media(prefers-reduced-motion:reduce){.cdk-overlay-pane.pfx-dialog-pane{transition:none}}.cdk-overlay-pane.pfx-dialog-pane .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-dialog-pane .mdc-dialog__surface{display:flex;flex-direction:column;box-sizing:border-box;width:100%;min-width:0;height:100%;max-height:inherit;overflow:hidden;background:var( --pfx-form-surface, var(--md-sys-color-surface, var(--mat-sys-surface)) )!important;border:1px solid var( --pfx-form-stroke, color-mix( in srgb, var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 80%, transparent ) )!important}.cdk-overlay-pane.pfx-dialog-pane:not(.pfx-drawer-pane) .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-dialog-pane:not(.pfx-drawer-pane) .mdc-dialog__surface{border-radius:var(--pfx-dialog-radius)!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-level4, -12px 0 44px -8px rgba(2, 6, 23, .34), 0 8px 28px rgba(2, 6, 23, .22) )}.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-pane--left{box-shadow:var( --md-sys-elevation-level4, 12px 0 44px -8px rgba(2, 6, 23, .34), 0 8px 28px rgba(2, 6, 23, .22) )}.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}@media(min-width:640px){.cdk-overlay-pane.pfx-drawer-pane:not(.pfx-drawer-pane--left):not(.pfx-drawer-maximized),.cdk-overlay-pane.pfx-drawer-pane:not(.pfx-drawer-pane--left):not(.pfx-drawer-maximized) .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane:not(.pfx-drawer-pane--left):not(.pfx-drawer-maximized) .mdc-dialog__surface{border-radius:16px 0 0 16px!important}.cdk-overlay-pane.pfx-drawer-pane:not(.pfx-drawer-pane--left):not(.pfx-drawer-maximized) .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane:not(.pfx-drawer-pane--left):not(.pfx-drawer-maximized) .mdc-dialog__surface{border-top-width:0!important;border-right-width:0!important;border-bottom-width:0!important;border-left:1px solid var( --pfx-form-stroke, color-mix( in srgb, var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 84%, transparent ) )!important}.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-pane--left:not(.pfx-drawer-maximized),.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-pane--left:not(.pfx-drawer-maximized) .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-pane--left:not(.pfx-drawer-maximized) .mdc-dialog__surface{border-radius:0 16px 16px 0!important}.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-pane--left:not(.pfx-drawer-maximized) .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-pane--left:not(.pfx-drawer-maximized) .mdc-dialog__surface{border-top-width:0!important;border-left-width:0!important;border-bottom-width:0!important;border-right:1px solid var( --pfx-form-stroke, color-mix( in srgb, var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 84%, transparent ) )!important}.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized:not(.pfx-zero-edge-gap),.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized:not(.pfx-zero-edge-gap) .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized:not(.pfx-zero-edge-gap) .mdc-dialog__surface{border-radius:16px!important}.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized .mdc-dialog__surface{border-width:1px!important}}.cdk-overlay-pane.pfx-dialog-pane.pfx-dialog-maximized.pfx-zero-edge-gap:not(.pfx-drawer-pane),.cdk-overlay-pane.pfx-dialog-pane.pfx-dialog-maximized.pfx-zero-edge-gap:not(.pfx-drawer-pane) .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-dialog-pane.pfx-dialog-maximized.pfx-zero-edge-gap:not(.pfx-drawer-pane) .mdc-dialog__surface,.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized.pfx-zero-edge-gap,.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized.pfx-zero-edge-gap .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized.pfx-zero-edge-gap .mdc-dialog__surface{border-radius:0!important}@media(max-width:639.98px){.cdk-overlay-pane.pfx-drawer-pane,.cdk-overlay-pane.pfx-drawer-pane .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane .mdc-dialog__surface{border-radius:0!important;border:0!important}}\n"], dependencies: [{ kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$2.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$2.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: "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: 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", "overlayInitialValueOnEdit", "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", "stepTelemetry"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
26932
|
+
`, isInline: true, styles: ["praxis-dynamic-form-dialog-host{--dlg-header-h: 60px;--dlg-footer-h: 56px;--dlg-pad: 20px;display:flex;flex-direction:column;height:100%;overflow:hidden;color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface))}praxis-dynamic-form-dialog-host[data-density=compact]{--dlg-header-h: 48px;--dlg-footer-h: 44px;--dlg-pad: 14px}praxis-dynamic-form-dialog-host.praxis-dialog .dialog-header{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:12px;min-height:var(--dlg-header-h);padding:12px var(--dlg-pad);margin:0;box-sizing:border-box;background:var( --pfx-dialog-header-bg, color-mix( in srgb, var(--md-sys-color-surface-container-high, var(--mat-sys-surface-container-high)) 68%, var(--md-sys-color-surface, var(--mat-sys-surface)) 32% ) );border-bottom:1px solid var( --pfx-dialog-header-border, color-mix( in srgb, var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 72%, transparent ) );color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface))}praxis-dynamic-form-dialog-host.praxis-dialog[data-density=compact] .dialog-header{padding:8px var(--dlg-pad);gap:10px}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, clamp(1.0625rem, 1.15vw, 1.2rem));line-height:var(--md-sys-typescale-title-large-line-height, 1.32);letter-spacing:-.012em;font-weight:var(--pfx-dialog-title-weight, var(--mat-sys-headline-small-weight, 500));color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface))}praxis-dynamic-form-dialog-host .dialog-title:focus{outline:none}praxis-dynamic-form-dialog-host .dialog-heading{display:grid;flex:1 1 auto;min-width:0;gap:2px}praxis-dynamic-form-dialog-host .dialog-title-icon{display:inline-grid;flex:0 0 auto;width:38px;height:38px;place-items:center;border-radius:11px;color:var(--md-sys-color-primary, var(--mat-sys-primary));background:color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary)) 12%,transparent);border:1px solid color-mix(in srgb,var(--md-sys-color-primary, var(--mat-sys-primary)) 22%,transparent)}praxis-dynamic-form-dialog-host[data-density=compact] .dialog-title-icon{width:32px;height:32px;border-radius:9px}praxis-dynamic-form-dialog-host .dialog-title-icon mat-icon{width:20px;height:20px;font-size:20px}praxis-dynamic-form-dialog-host .dialog-subtitle{display:block;overflow-wrap:anywhere;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant));font-size:.8125rem;font-weight:400;line-height:1.35}praxis-dynamic-form-dialog-host .dialog-header-actions{display:inline-flex;align-items:center;gap:2px;flex:0 0 auto;margin-inline-start:auto;margin-inline-end:-4px}praxis-dynamic-form-dialog-host .dialog-header-divider{width:1px;height:18px;margin-inline:2px;background:color-mix(in srgb,var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 64%,transparent)}@media(max-width:480px){praxis-dynamic-form-dialog-host .dialog-header-divider{display:none}}praxis-dynamic-form-dialog-host .dialog-header button.dialog-header-btn{--praxis-icon-button-surface-size: 36px;--praxis-icon-button-icon-size: 18px;--praxis-icon-button-radius: 10px;--praxis-icon-button-focus-radius: 10px;--praxis-icon-button-bg: transparent;--praxis-icon-button-border: 1px solid transparent;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant))}praxis-dynamic-form-dialog-host[data-density=compact] .dialog-header button.dialog-header-btn{--praxis-icon-button-surface-size: 32px;--praxis-icon-button-icon-size: 17px;--praxis-icon-button-radius: 8px;--praxis-icon-button-focus-radius: 8px}praxis-dynamic-form-dialog-host .dialog-header button.dialog-ai-btn:hover:not(:disabled),praxis-dynamic-form-dialog-host .dialog-header button.dialog-maximize-btn:hover:not(:disabled){color:var(--md-sys-color-primary, var(--mat-sys-primary));--praxis-icon-button-hover-bg: color-mix( in srgb, var(--md-sys-color-primary, var(--mat-sys-primary)) 12%, transparent );--praxis-icon-button-hover-border-color: color-mix( in srgb, var(--md-sys-color-primary, var(--mat-sys-primary)) 30%, transparent )}praxis-dynamic-form-dialog-host .dialog-header button.dialog-close-btn{--praxis-icon-button-bg: color-mix( in srgb, var(--md-sys-color-on-surface, var(--mat-sys-on-surface)) 4.5%, transparent );--praxis-icon-button-border: 1px solid color-mix( in srgb, var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 48%, transparent )}praxis-dynamic-form-dialog-host .dialog-header button.dialog-close-btn:hover:not(:disabled){color:var(--md-sys-color-on-surface, var(--mat-sys-on-surface));--praxis-icon-button-hover-bg: color-mix( in srgb, var(--md-sys-color-on-surface, var(--mat-sys-on-surface)) 11%, transparent );--praxis-icon-button-hover-border-color: color-mix( in srgb, var(--md-sys-color-outline, var(--mat-sys-outline)) 48%, transparent )}praxis-dynamic-form-dialog-host .dialog-header button.dialog-close-btn:active:not(:disabled){--praxis-icon-button-active-bg: color-mix( in srgb, var(--md-sys-color-on-surface, var(--mat-sys-on-surface)) 16%, transparent )}praxis-dynamic-form-dialog-host.praxis-dialog mat-dialog-content.dialog-content{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;max-width:100%;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;--mat-dialog-with-actions-content-padding: var(--dlg-pad);--mat-dialog-content-padding: var(--dlg-pad);padding:var(--dlg-pad)!important;max-height:calc(100svh - var(--dlg-header-h) - 48px)}praxis-dynamic-form-dialog-host.is-maximized mat-dialog-content.dialog-content,praxis-dynamic-form-dialog-host.praxis-drawer mat-dialog-content.dialog-content,praxis-dynamic-form-dialog-host.praxis-surface-frame mat-dialog-content.dialog-content{max-height:none}praxis-dynamic-form-dialog-host.praxis-dialog .dialog-content>praxis-dynamic-form,praxis-dynamic-form-dialog-host.praxis-dialog .dialog-content>praxis-dynamic-form>.entity-read-region,praxis-dynamic-form-dialog-host.praxis-dialog .dialog-content>praxis-dynamic-form>.entity-read-region>.praxis-dynamic-form,praxis-dynamic-form-dialog-host.praxis-dialog .dialog-content>praxis-dynamic-form>.praxis-dynamic-form{display:flex;flex-direction:column;flex:1 0 auto;min-width:0;min-height:0}praxis-dynamic-form-dialog-host.praxis-dialog .dialog-content .praxis-dynamic-form:not(.canvas-mode-enabled):has(>praxis-form-actions[data-actions-placement=afterSections])>.section-drop-wrapper:not([hidden]):not(:has(~.section-drop-wrapper:not([hidden]))),praxis-dynamic-form-dialog-host.praxis-dialog .dialog-content .praxis-dynamic-form:not(.canvas-mode-enabled):has(>praxis-form-actions[data-actions-placement=afterSections])>.form-editorial-blocks-before-actions{margin-bottom:16px}praxis-dynamic-form-dialog-host:not(.praxis-surface-frame) .dialog-content>praxis-dynamic-form>.ai-floating-assistant{display:none}praxis-dynamic-form-dialog-host.praxis-surface-frame .dialog-content>praxis-dynamic-form>.ai-floating-assistant{height:0;margin:0;overflow:visible}praxis-dynamic-form-dialog-host .dialog-content>praxis-dynamic-form>.entity-read-region>.praxis-dynamic-form:not(.canvas-mode-enabled)>praxis-form-actions[data-actions-placement=afterSections],praxis-dynamic-form-dialog-host .dialog-content>praxis-dynamic-form>.praxis-dynamic-form:not(.canvas-mode-enabled)>praxis-form-actions[data-actions-placement=afterSections]{--pfx-actions-top-border-width: 0px;--pfx-actions-inline-border-width: 0px;--pfx-actions-bottom-border-width: 0px;--pfx-actions-radius: 0px;--pfx-actions-bg: transparent;--pfx-actions-padding: 0px;position:sticky;bottom:calc(-1 * var(--dlg-pad));z-index:2;margin-top:auto;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(--md-sys-color-surface-container-high, var(--mat-sys-surface-container-high)) 62%,var(--pfx-form-surface, var(--md-sys-color-surface, var(--mat-sys-surface))) 38%);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 72%,transparent)}praxis-dynamic-form-dialog-host .crud-operation-context{display:grid;gap:.75rem;margin-block-end:var(--dlg-pad);padding:10px 14px;border-radius:12px;--pdx-resource-identity-key-bg: color-mix( in srgb, var(--md-sys-color-primary, var(--mat-sys-primary)) 14%, var(--md-sys-color-surface, var(--mat-sys-surface)) 86% );--pdx-resource-identity-key-fg: var(--md-sys-color-primary, var(--mat-sys-primary));background:color-mix(in srgb,var(--md-sys-color-surface-container-low, var(--mat-sys-surface-container-low)) 82%,var(--md-sys-color-surface, var(--mat-sys-surface)) 18%);border:1px solid color-mix(in srgb,var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 64%,transparent)}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, var(--mat-sys-on-surface-variant));font:var(--md-sys-typescale-label-medium, 500 .75rem/1rem inherit)}praxis-dynamic-form-dialog-host.praxis-drawer{--dlg-header-h: 68px;--dlg-pad: clamp(16px, 2.2vw, 24px);width:100%;min-width:0;max-width:100vw;height:100dvh;background:var(--pfx-form-surface, var(--md-sys-color-surface, var(--mat-sys-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, var(--mat-sys-on-surface))}praxis-dynamic-form-dialog-host.praxis-drawer[data-density=compact]{--dlg-header-h: 52px;--dlg-pad: clamp(12px, 1.6vw, 16px)}praxis-dynamic-form-dialog-host.praxis-drawer.is-maximized{height:100%}praxis-dynamic-form-dialog-host.praxis-dialog.praxis-drawer .dialog-header{background:var( --pfx-dialog-header-bg, color-mix( in srgb, var( --md-sys-color-surface-container-high, var(--mat-sys-surface-container-high, var(--mat-sys-surface)) ) 92%, transparent 8% ) )}@media(prefers-reduced-transparency:reduce){praxis-dynamic-form-dialog-host.praxis-drawer{background:var( --pfx-form-fallback-surface, var(--md-sys-color-surface, var(--mat-sys-surface)) );backdrop-filter:none;-webkit-backdrop-filter:none}.cdk-overlay-backdrop.pfx-blur-backdrop,.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:none;-webkit-backdrop-filter:none}}praxis-dynamic-form-dialog-host.praxis-drawer .dialog-content{padding:var(--dlg-pad)}praxis-dynamic-form-dialog-host.praxis-surface-frame .dialog-content{--dlg-pad: clamp(12px, 2.4vw, 24px);padding:var(--dlg-pad)}praxis-dynamic-form-dialog-host .dialog-footer{position:sticky;bottom:0;z-index:1;padding:var(--dlg-pad)}@media(max-width:480px){praxis-dynamic-form-dialog-host,praxis-dynamic-form-dialog-host.praxis-drawer{--dlg-pad: 14px}}.cdk-overlay-backdrop.pfx-blur-backdrop,.cdk-overlay-backdrop.cdk-overlay-dark-backdrop,.cdk-overlay-backdrop.pfx-transparent-backdrop{overflow:hidden;overscroll-behavior:contain}.pfx-blur-backdrop{background-color:var(--pfx-backdrop, rgba(15, 23, 42, .48))!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{--pfx-dialog-radius: 20px;overflow:hidden;transition:width .22s cubic-bezier(.2,0,0,1),height .22s cubic-bezier(.2,0,0,1),margin .22s cubic-bezier(.2,0,0,1)}.cdk-overlay-pane.pfx-dialog-pane:not(.pfx-drawer-pane){--mat-dialog-container-shape: var(--pfx-dialog-radius);--mdc-dialog-container-shape: var(--pfx-dialog-radius);border-radius:var(--pfx-dialog-radius)!important;box-shadow:var( --md-sys-elevation-level4, 0 24px 64px -12px rgba(2, 6, 23, .42), 0 8px 24px -6px rgba(2, 6, 23, .22) )}.cdk-overlay-pane.pfx-dialog-pane.pfx-dialog-maximized:not(.pfx-drawer-pane){--pfx-dialog-radius: 16px;max-width:none!important;max-height:none!important;margin:var(--pfx-dialog-edge-gap, 8px)!important}@media(prefers-reduced-motion:reduce){.cdk-overlay-pane.pfx-dialog-pane{transition:none}}.cdk-overlay-pane.pfx-dialog-pane .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-dialog-pane .mdc-dialog__surface{display:flex;flex-direction:column;box-sizing:border-box;width:100%;min-width:0;height:100%;max-height:inherit;overflow:hidden;background:var( --pfx-form-surface, var(--md-sys-color-surface, var(--mat-sys-surface)) )!important;border:1px solid var( --pfx-form-stroke, color-mix( in srgb, var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 80%, transparent ) )!important}.cdk-overlay-pane.pfx-dialog-pane:not(.pfx-drawer-pane) .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-dialog-pane:not(.pfx-drawer-pane) .mdc-dialog__surface{border-radius:var(--pfx-dialog-radius)!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-level4, -12px 0 44px -8px rgba(2, 6, 23, .34), 0 8px 28px rgba(2, 6, 23, .22) )}.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-pane--left{box-shadow:var( --md-sys-elevation-level4, 12px 0 44px -8px rgba(2, 6, 23, .34), 0 8px 28px rgba(2, 6, 23, .22) )}.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}@media(min-width:640px){.cdk-overlay-pane.pfx-drawer-pane:not(.pfx-drawer-pane--left):not(.pfx-drawer-maximized),.cdk-overlay-pane.pfx-drawer-pane:not(.pfx-drawer-pane--left):not(.pfx-drawer-maximized) .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane:not(.pfx-drawer-pane--left):not(.pfx-drawer-maximized) .mdc-dialog__surface{border-radius:16px 0 0 16px!important}.cdk-overlay-pane.pfx-drawer-pane:not(.pfx-drawer-pane--left):not(.pfx-drawer-maximized) .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane:not(.pfx-drawer-pane--left):not(.pfx-drawer-maximized) .mdc-dialog__surface{border-top-width:0!important;border-right-width:0!important;border-bottom-width:0!important;border-left:1px solid var( --pfx-form-stroke, color-mix( in srgb, var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 84%, transparent ) )!important}.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-pane--left:not(.pfx-drawer-maximized),.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-pane--left:not(.pfx-drawer-maximized) .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-pane--left:not(.pfx-drawer-maximized) .mdc-dialog__surface{border-radius:0 16px 16px 0!important}.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-pane--left:not(.pfx-drawer-maximized) .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-pane--left:not(.pfx-drawer-maximized) .mdc-dialog__surface{border-top-width:0!important;border-left-width:0!important;border-bottom-width:0!important;border-right:1px solid var( --pfx-form-stroke, color-mix( in srgb, var(--md-sys-color-outline-variant, var(--mat-sys-outline-variant)) 84%, transparent ) )!important}.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized:not(.pfx-zero-edge-gap),.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized:not(.pfx-zero-edge-gap) .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized:not(.pfx-zero-edge-gap) .mdc-dialog__surface{border-radius:16px!important}.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized .mdc-dialog__surface{border-width:1px!important}}.cdk-overlay-pane.pfx-dialog-pane.pfx-dialog-maximized.pfx-zero-edge-gap:not(.pfx-drawer-pane),.cdk-overlay-pane.pfx-dialog-pane.pfx-dialog-maximized.pfx-zero-edge-gap:not(.pfx-drawer-pane) .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-dialog-pane.pfx-dialog-maximized.pfx-zero-edge-gap:not(.pfx-drawer-pane) .mdc-dialog__surface,.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized.pfx-zero-edge-gap,.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized.pfx-zero-edge-gap .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane.pfx-drawer-maximized.pfx-zero-edge-gap .mdc-dialog__surface{border-radius:0!important}@media(max-width:639.98px){.cdk-overlay-pane.pfx-drawer-pane,.cdk-overlay-pane.pfx-drawer-pane .mat-mdc-dialog-surface,.cdk-overlay-pane.pfx-drawer-pane .mdc-dialog__surface{border-radius:0!important;border:0!important}}\n"], dependencies: [{ kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$2.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$2.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: "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: 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", "overlayInitialValueOnEdit", "emptyState", "editorialContext", "mode", "config", "actions", "schemaSource", "actionId", "operationId", "schemaUrl", "schemaPointer", "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", "stepTelemetry"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
26794
26933
|
}
|
|
26795
26934
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: DynamicFormDialogHostComponent, decorators: [{
|
|
26796
26935
|
type: Component,
|
|
@@ -29835,7 +29974,7 @@ class PraxisDossierPageComponent {
|
|
|
29835
29974
|
}
|
|
29836
29975
|
}
|
|
29837
29976
|
</div>
|
|
29838
|
-
`, 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", "configPersistenceStrategy", "context", "enableCustomization", "showResourceIdentityKey", "authoringCapability", "filterCriteria", "lockedFilterFields", "schemaFields", "filterTeleport", "disableAutoDrawer", "hostManagedChrome"], outputs: ["configureRequested", "afterOpen", "afterClose", "afterSave", "afterDelete", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "reactiveDeterminationStabilityChange", "formStepTelemetry", "error", "rowClick", "rowAction", "selectionChange", "resourceEvent", "tableRuntimeConfigChange", "drawerOpen", "drawerClose", "crudAuthoringDocumentApplied", "crudAuthoringDocumentSaved", "filterCriteriaChange", "discoveredQuickFiltersChange", "discoveredInlineFilterFieldsChange", "kpiCardClick"] }, { kind: "component", type: PraxisDynamicForm, selector: "praxis-dynamic-form", inputs: ["resourcePath", "resourceId", "initialValue", "overlayInitialValueOnEdit", "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", "stepTelemetry"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
29977
|
+
`, 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", "configPersistenceStrategy", "context", "enableCustomization", "showResourceIdentityKey", "authoringCapability", "filterCriteria", "lockedFilterFields", "schemaFields", "filterTeleport", "disableAutoDrawer", "hostManagedChrome"], outputs: ["configureRequested", "afterOpen", "afterClose", "afterSave", "afterDelete", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "reactiveDeterminationStabilityChange", "formStepTelemetry", "error", "rowClick", "rowAction", "selectionChange", "resourceEvent", "tableRuntimeConfigChange", "drawerOpen", "drawerClose", "crudAuthoringDocumentApplied", "crudAuthoringDocumentSaved", "filterCriteriaChange", "discoveredQuickFiltersChange", "discoveredInlineFilterFieldsChange", "kpiCardClick"] }, { kind: "component", type: PraxisDynamicForm, selector: "praxis-dynamic-form", inputs: ["resourcePath", "resourceId", "initialValue", "overlayInitialValueOnEdit", "emptyState", "editorialContext", "mode", "config", "actions", "schemaSource", "actionId", "operationId", "schemaUrl", "schemaPointer", "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", "stepTelemetry"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
29839
29978
|
}
|
|
29840
29979
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisDossierPageComponent, decorators: [{
|
|
29841
29980
|
type: Component,
|
|
@@ -31878,29 +32017,41 @@ function extractSelectionTargets(payload) {
|
|
|
31878
32017
|
}
|
|
31879
32018
|
class PraxisCrudBulkProposalBridgeService {
|
|
31880
32019
|
dialog = inject(MatDialog);
|
|
32020
|
+
discovery = inject(ResourceDiscoveryService, { optional: true });
|
|
31881
32021
|
async openPreparedBulkProposal(request) {
|
|
31882
32022
|
const bulkMode = normalizeBulkMode(request.bulkMode);
|
|
31883
|
-
const
|
|
32023
|
+
const discoveredAction = await this.resolveDiscoveredAction(request, bulkMode);
|
|
32024
|
+
const contract = this.buildContract(request, bulkMode, discoveredAction);
|
|
31884
32025
|
const parsedSelection = extractSelectionTargets(request.selectionPayload);
|
|
31885
32026
|
const initialProposalId = (request.domainProposalId && request.domainProposalId.trim()) ||
|
|
31886
32027
|
request.initialProposal?.proposalId ||
|
|
31887
32028
|
null;
|
|
31888
32029
|
if (bulkMode === 'DOMAIN_COMMAND') {
|
|
32030
|
+
const discoveredExec = discoveredAction?.execution;
|
|
32031
|
+
const resolvedSchemaUrl = request.schemaUrl ??
|
|
32032
|
+
contract.evaluationOperation.requestSchema?.url ??
|
|
32033
|
+
discoveredAction?.requestSchemaUrl ??
|
|
32034
|
+
null;
|
|
31889
32035
|
const action = {
|
|
31890
|
-
id: request.actionId,
|
|
31891
|
-
resourceKey: request.resourceKey || '',
|
|
31892
|
-
scope: 'COLLECTION',
|
|
31893
|
-
title: request.label,
|
|
31894
|
-
description: request.description ?? null,
|
|
31895
|
-
operationId: contract.confirmationOperation.operation.operationId ||
|
|
32036
|
+
id: discoveredAction?.id || request.actionId,
|
|
32037
|
+
resourceKey: discoveredAction?.resourceKey || request.resourceKey || '',
|
|
32038
|
+
scope: discoveredAction?.scope || 'COLLECTION',
|
|
32039
|
+
title: request.label || discoveredAction?.title || request.actionId,
|
|
32040
|
+
description: request.description ?? discoveredAction?.description ?? null,
|
|
32041
|
+
operationId: contract.confirmationOperation.operation.operationId ||
|
|
32042
|
+
discoveredAction?.operationId ||
|
|
32043
|
+
request.actionId,
|
|
31896
32044
|
path: contract.confirmationOperation.operation.path,
|
|
31897
|
-
method: 'POST',
|
|
31898
|
-
requestSchemaUrl:
|
|
31899
|
-
|
|
32045
|
+
method: discoveredAction?.method || 'POST',
|
|
32046
|
+
requestSchemaUrl: resolvedSchemaUrl,
|
|
32047
|
+
...(discoveredAction?.requestSchemaId ? { requestSchemaId: discoveredAction.requestSchemaId } : {}),
|
|
32048
|
+
...(discoveredAction?.responseSchemaId ? { responseSchemaId: discoveredAction.responseSchemaId } : {}),
|
|
32049
|
+
...(discoveredAction?.responseSchemaUrl ? { responseSchemaUrl: discoveredAction.responseSchemaUrl } : {}),
|
|
32050
|
+
tags: discoveredAction?.tags ?? [],
|
|
31900
32051
|
...(Array.isArray(request.inputFields)
|
|
31901
32052
|
? { commandParameterDescriptors: request.inputFields }
|
|
31902
32053
|
: {}),
|
|
31903
|
-
availability: {
|
|
32054
|
+
availability: discoveredAction?.availability ?? {
|
|
31904
32055
|
allowed: true,
|
|
31905
32056
|
code: 'READY',
|
|
31906
32057
|
reason: null,
|
|
@@ -31908,26 +32059,26 @@ class PraxisCrudBulkProposalBridgeService {
|
|
|
31908
32059
|
requiredState: null,
|
|
31909
32060
|
actualState: null,
|
|
31910
32061
|
},
|
|
31911
|
-
order: 0,
|
|
32062
|
+
order: discoveredAction?.order ?? 0,
|
|
31912
32063
|
execution: {
|
|
31913
|
-
interaction: {
|
|
32064
|
+
interaction: discoveredExec?.interaction ?? {
|
|
31914
32065
|
mode: 'FORM',
|
|
31915
32066
|
riskLevel: 'HIGH',
|
|
31916
32067
|
confirmationRequired: true,
|
|
31917
32068
|
reversible: false,
|
|
31918
32069
|
},
|
|
31919
|
-
preconditions: {
|
|
32070
|
+
preconditions: discoveredExec?.preconditions ?? {
|
|
31920
32071
|
idempotencyKey: 'REQUIRED',
|
|
31921
32072
|
correlationId: 'OPTIONAL',
|
|
31922
32073
|
resourceVersion: 'OPTIONAL',
|
|
31923
32074
|
resourceVersionTransport: 'SELECTION_MAP',
|
|
31924
32075
|
},
|
|
31925
|
-
selection: {},
|
|
31926
|
-
outcome: {
|
|
32076
|
+
selection: discoveredExec?.selection ?? {},
|
|
32077
|
+
outcome: discoveredExec?.outcome ?? {
|
|
31927
32078
|
mode: 'PER_ITEM',
|
|
31928
32079
|
atomicity: normalizeAtomicity(request.atomicity),
|
|
31929
32080
|
},
|
|
31930
|
-
refresh: {
|
|
32081
|
+
refresh: discoveredExec?.refresh ?? {
|
|
31931
32082
|
item: false,
|
|
31932
32083
|
collection: true,
|
|
31933
32084
|
actions: true,
|
|
@@ -32008,17 +32159,109 @@ class PraxisCrudBulkProposalBridgeService {
|
|
|
32008
32159
|
results: Array.isArray(closed.results) ? closed.results : [],
|
|
32009
32160
|
};
|
|
32010
32161
|
}
|
|
32011
|
-
|
|
32162
|
+
async resolveDiscoveredAction(request, mode) {
|
|
32163
|
+
if (mode !== 'DOMAIN_COMMAND') {
|
|
32164
|
+
return null;
|
|
32165
|
+
}
|
|
32166
|
+
const bc = request.bulkContract;
|
|
32167
|
+
if (bc?.evaluationUrl && bc?.confirmUrl) {
|
|
32168
|
+
return null;
|
|
32169
|
+
}
|
|
32170
|
+
const resourceKey = request.resourceKey?.trim();
|
|
32171
|
+
if (!resourceKey || !this.discovery || typeof this.discovery.getActionsByResourceKey !== 'function') {
|
|
32172
|
+
return null;
|
|
32173
|
+
}
|
|
32174
|
+
const catalog = await firstValueFrom(this.discovery.getActionsByResourceKey(resourceKey).pipe(catchError$1(() => of(null))), { defaultValue: null });
|
|
32175
|
+
const actions = catalog?.actions;
|
|
32176
|
+
if (!Array.isArray(actions) || actions.length === 0) {
|
|
32177
|
+
return null;
|
|
32178
|
+
}
|
|
32179
|
+
return (actions.find((item) => item.id === request.actionId && item.scope === 'COLLECTION') ??
|
|
32180
|
+
actions.find((item) => item.id === request.actionId) ??
|
|
32181
|
+
null);
|
|
32182
|
+
}
|
|
32183
|
+
buildContract(request, mode, discoveredAction) {
|
|
32012
32184
|
const base = normalizePathBase(request.resourcePath);
|
|
32013
32185
|
const bc = request.bulkContract ?? {};
|
|
32186
|
+
const db = discoveredAction?.execution?.bulk ?? null;
|
|
32187
|
+
const encodedActionId = encodeURIComponent(request.actionId);
|
|
32014
32188
|
const defaultEvalPath = mode === 'DOMAIN_COMMAND'
|
|
32015
|
-
? `${base}/
|
|
32189
|
+
? `${base}/bulk/${encodedActionId}/evaluation`
|
|
32016
32190
|
: mode === 'PER_ITEM_UPDATE'
|
|
32017
|
-
? `${base}/bulk/items/
|
|
32018
|
-
: `${base}/bulk/
|
|
32191
|
+
? `${base}/bulk/update-items/evaluation`
|
|
32192
|
+
: `${base}/bulk/update/evaluation`;
|
|
32019
32193
|
const defaultConfirmPath = mode === 'DOMAIN_COMMAND'
|
|
32020
|
-
? `${base}/actions/${
|
|
32021
|
-
:
|
|
32194
|
+
? `${base}/actions/${encodedActionId}`
|
|
32195
|
+
: mode === 'PER_ITEM_UPDATE'
|
|
32196
|
+
? `${base}/bulk/update-items`
|
|
32197
|
+
: `${base}/bulk/update`;
|
|
32198
|
+
const discoveredBase = discoveredAction?.path
|
|
32199
|
+
? discoveredAction.path.replace(/\/actions\/[^/?#]+$/u, '')
|
|
32200
|
+
: null;
|
|
32201
|
+
const resolvedEvalPath = bc.evaluationUrl || db?.evaluationOperation?.operation?.path || defaultEvalPath;
|
|
32202
|
+
const resolvedEvalOpId = bc.evaluationOperationId ||
|
|
32203
|
+
db?.evaluationOperation?.operation?.operationId ||
|
|
32204
|
+
`${request.actionId || 'bulk'}-evaluate`;
|
|
32205
|
+
const resolvedEvalMethod = db?.evaluationOperation?.operation?.method || 'POST';
|
|
32206
|
+
const evalSchemaPath = bc.evaluationUrl ||
|
|
32207
|
+
db?.evaluationOperation?.operation?.path ||
|
|
32208
|
+
(mode === 'DOMAIN_COMMAND' && discoveredBase
|
|
32209
|
+
? `${discoveredBase}/bulk/${encodedActionId}/evaluation`
|
|
32210
|
+
: resolvedEvalPath);
|
|
32211
|
+
const fallbackEvalSchemaUrl = mode === 'DOMAIN_COMMAND' && evalSchemaPath
|
|
32212
|
+
? `/schemas/filtered?path=${encodeURIComponent(evalSchemaPath)}&operation=${encodeURIComponent(resolvedEvalMethod.toLowerCase())}&schemaType=request&includeInternalSchemas=true`
|
|
32213
|
+
: null;
|
|
32214
|
+
const resolvedRequestSchemaUrl = request.schemaUrl ??
|
|
32215
|
+
db?.evaluationOperation?.requestSchema?.url ??
|
|
32216
|
+
fallbackEvalSchemaUrl ??
|
|
32217
|
+
discoveredAction?.requestSchemaUrl ??
|
|
32218
|
+
null;
|
|
32219
|
+
const evaluationOperation = !bc.evaluationUrl && db?.evaluationOperation
|
|
32220
|
+
? {
|
|
32221
|
+
...db.evaluationOperation,
|
|
32222
|
+
operation: {
|
|
32223
|
+
...db.evaluationOperation.operation,
|
|
32224
|
+
path: resolvedEvalPath,
|
|
32225
|
+
method: resolvedEvalMethod,
|
|
32226
|
+
operationId: resolvedEvalOpId,
|
|
32227
|
+
},
|
|
32228
|
+
requestSchema: resolvedRequestSchemaUrl
|
|
32229
|
+
? {
|
|
32230
|
+
schemaId: db.evaluationOperation.requestSchema?.schemaId ||
|
|
32231
|
+
discoveredAction?.requestSchemaId ||
|
|
32232
|
+
`${resolvedEvalOpId}-req`,
|
|
32233
|
+
schemaType: 'request',
|
|
32234
|
+
url: resolvedRequestSchemaUrl,
|
|
32235
|
+
}
|
|
32236
|
+
: db.evaluationOperation.requestSchema ?? null,
|
|
32237
|
+
}
|
|
32238
|
+
: buildBinding(resolvedEvalMethod, resolvedEvalPath, resolvedEvalOpId, resolvedRequestSchemaUrl);
|
|
32239
|
+
const resolvedConfirmPath = bc.confirmUrl ||
|
|
32240
|
+
request.submitUrl ||
|
|
32241
|
+
db?.confirmationOperation?.operation?.path ||
|
|
32242
|
+
discoveredAction?.path ||
|
|
32243
|
+
defaultConfirmPath;
|
|
32244
|
+
const resolvedConfirmOpId = bc.confirmOperationId ||
|
|
32245
|
+
db?.confirmationOperation?.operation?.operationId ||
|
|
32246
|
+
discoveredAction?.operationId ||
|
|
32247
|
+
`${request.actionId || 'bulk'}-confirm`;
|
|
32248
|
+
const resolvedConfirmMethod = db?.confirmationOperation?.operation?.method || discoveredAction?.method || 'POST';
|
|
32249
|
+
const confirmationOperation = !bc.confirmUrl && !request.submitUrl && db?.confirmationOperation
|
|
32250
|
+
? {
|
|
32251
|
+
...db.confirmationOperation,
|
|
32252
|
+
operation: {
|
|
32253
|
+
...db.confirmationOperation.operation,
|
|
32254
|
+
path: resolvedConfirmPath,
|
|
32255
|
+
method: resolvedConfirmMethod,
|
|
32256
|
+
operationId: resolvedConfirmOpId,
|
|
32257
|
+
},
|
|
32258
|
+
}
|
|
32259
|
+
: buildBinding(resolvedConfirmMethod, resolvedConfirmPath, resolvedConfirmOpId, null);
|
|
32260
|
+
const resolveFollowup = (explicitUrl, discoveredOp, defaultMethod, defaultPath, defaultOpId) => explicitUrl
|
|
32261
|
+
? buildBinding(defaultMethod, explicitUrl, defaultOpId)
|
|
32262
|
+
: discoveredOp
|
|
32263
|
+
? discoveredOp
|
|
32264
|
+
: buildBinding(defaultMethod, defaultPath, defaultOpId);
|
|
32022
32265
|
const editable = bc.editableFields ?? [];
|
|
32023
32266
|
const writableFields = editable
|
|
32024
32267
|
.filter((f) => !f.modes?.length || f.modes.includes(mode))
|
|
@@ -32028,31 +32271,36 @@ class PraxisCrudBulkProposalBridgeService {
|
|
|
32028
32271
|
.map((f) => f.name);
|
|
32029
32272
|
const hasCommandParams = Boolean((Array.isArray(request.inputFields) && request.inputFields.length > 0) ||
|
|
32030
32273
|
(Array.isArray(request.missingRequiredFields) && request.missingRequiredFields.length > 0));
|
|
32274
|
+
const parametersPointer = db?.parametersPointer !== undefined
|
|
32275
|
+
? db.parametersPointer
|
|
32276
|
+
: mode === 'DOMAIN_COMMAND' && (hasCommandParams || Boolean(resolvedRequestSchemaUrl))
|
|
32277
|
+
? '/properties/parameters'
|
|
32278
|
+
: null;
|
|
32031
32279
|
return {
|
|
32032
|
-
mode,
|
|
32033
|
-
evaluationOperation
|
|
32034
|
-
confirmationOperation
|
|
32035
|
-
proposalOperation:
|
|
32036
|
-
proposalResultsOperation:
|
|
32037
|
-
executionOperation:
|
|
32038
|
-
resultsOperation:
|
|
32039
|
-
cancelOperation:
|
|
32040
|
-
selectionModes: ['EXPLICIT', 'QUERY'],
|
|
32041
|
-
executionModes: ['SYNC', 'ASYNC'],
|
|
32042
|
-
atomicity: normalizeAtomicity(request.atomicity),
|
|
32043
|
-
limits: {
|
|
32280
|
+
mode: db?.mode ?? mode,
|
|
32281
|
+
evaluationOperation,
|
|
32282
|
+
confirmationOperation,
|
|
32283
|
+
proposalOperation: resolveFollowup(bc.proposalUrlTemplate, db?.proposalOperation, 'GET', `${base}/bulk/proposals/{proposalId}`, 'get-bulk-proposal'),
|
|
32284
|
+
proposalResultsOperation: resolveFollowup(bc.proposalResultsUrlTemplate, db?.proposalResultsOperation, 'GET', `${base}/bulk/proposals/{proposalId}/results`, 'get-bulk-proposal-results'),
|
|
32285
|
+
executionOperation: resolveFollowup(bc.executionUrlTemplate, db?.executionOperation, 'GET', `${base}/bulk/executions/{executionId}`, 'get-bulk-execution'),
|
|
32286
|
+
resultsOperation: resolveFollowup(bc.executionResultsUrlTemplate, db?.resultsOperation, 'GET', `${base}/bulk/executions/{executionId}/results`, 'get-bulk-execution-results'),
|
|
32287
|
+
cancelOperation: resolveFollowup(bc.cancelUrlTemplate, db?.cancelOperation, 'POST', `${base}/bulk/executions/{executionId}/cancel`, 'cancel-bulk-execution'),
|
|
32288
|
+
selectionModes: db?.selectionModes?.length ? db.selectionModes : ['EXPLICIT', 'QUERY'],
|
|
32289
|
+
executionModes: db?.executionModes?.length ? db.executionModes : ['SYNC', 'ASYNC'],
|
|
32290
|
+
atomicity: db?.atomicity ?? normalizeAtomicity(request.atomicity),
|
|
32291
|
+
limits: db?.limits ?? {
|
|
32044
32292
|
maxTargets: 500,
|
|
32045
32293
|
maxRequestBytes: 1048576,
|
|
32046
32294
|
proposalLifetimeMillis: 900000,
|
|
32047
32295
|
unitDeadlineMillis: 30000,
|
|
32048
32296
|
},
|
|
32049
|
-
parametersPointer
|
|
32297
|
+
parametersPointer,
|
|
32050
32298
|
...(mode !== 'DOMAIN_COMMAND'
|
|
32051
32299
|
? {
|
|
32052
|
-
editableFields: {
|
|
32300
|
+
editableFields: db?.editableFields ?? {
|
|
32053
32301
|
sourceOperation: {
|
|
32054
32302
|
operationId: 'bulk-editable-fields',
|
|
32055
|
-
path:
|
|
32303
|
+
path: resolvedEvalPath,
|
|
32056
32304
|
method: 'POST',
|
|
32057
32305
|
},
|
|
32058
32306
|
requestSchema: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { C as CRUD_AI_CAPABILITIES, a as CrudLauncherService, b as CrudMetadataEditorComponent, c as CrudPageHeaderComponent, D as DialogService, e as DynamicFormDialogHostComponent, P as PRAXIS_CHOICE_FIELD_TYPES, f as PRAXIS_CONTROL_TYPE_CHOICES, g as PRAXIS_CRUD_AUTHORING_MANIFEST, h as PRAXIS_CRUD_COMPONENT_METADATA, j as PRAXIS_CUSTOM_FIELDS_STUDIO_I18N_CONFIG, k as PRAXIS_CUSTOM_FIELDS_STUDIO_I18N_NAMESPACE, l as PRAXIS_CUSTOM_FIELD_AI_PROMPT_EXAMPLES, m as PRAXIS_CUSTOM_FIELD_PRESETS, n as PRAXIS_CUSTOM_FIELD_WIDTH_CHOICES, o as PRAXIS_DOSSIER_PAGE_COMPONENT_METADATA, p as PRAXIS_FIELD_TYPE_CHOICES, q as PRAXIS_FILTER_OPERATIONS_BY_FIELD_TYPE, r as PRAXIS_FILTER_OPERATION_CHOICES, s as PRAXIS_MULTI_CHOICE_CONTROL_TYPES, t as PRAXIS_REGEX_VALIDATION_PRESETS, u as PRAXIS_SUGGESTED_FIELD_ICONS, v as PraxisBulkEditDialogComponent, w as PraxisBulkOperationDialogComponent, x as PraxisCrudBulkProposalBridgeService, y as PraxisCrudComponent, z as PraxisCrudWidgetConfigEditor, A as PraxisCustomFieldStudioDialogComponent, B as PraxisDossierPageComponent, E as PraxisKpiBandComponent, F as PraxisResourcePage, G as assertCrudMetadata, H as createCrudAuthoringDocument, I as createCrudFormRoute, K as findCrudAction, L as formatKpiValue, M as getCompatibleFilterOperations, N as isControlCompatibleWithFieldType, O as isResourceDiscoveredCrudAction, Q as normalizeCrudAuthoringDocument, R as normalizeStudioControlType, S as openCrudMetadataEditor, T as parseLegacyOrCrudDocument, U as providePraxisCrudBulkProposalBridge, V as providePraxisCrudMetadata, W as providePraxisDossierPageMetadata, X as serializeCrudAuthoringDocument, Y as slugifyCustomFieldKey, Z as slugifyOptionValue, _ as toDynamicFieldControlType, a0 as translateStudioText, a1 as validateCrudAuthoringDocument, a2 as validateStudioDefaultValue } from './praxisui-crud-praxisui-crud-
|
|
1
|
+
export { C as CRUD_AI_CAPABILITIES, a as CrudLauncherService, b as CrudMetadataEditorComponent, c as CrudPageHeaderComponent, D as DialogService, e as DynamicFormDialogHostComponent, P as PRAXIS_CHOICE_FIELD_TYPES, f as PRAXIS_CONTROL_TYPE_CHOICES, g as PRAXIS_CRUD_AUTHORING_MANIFEST, h as PRAXIS_CRUD_COMPONENT_METADATA, j as PRAXIS_CUSTOM_FIELDS_STUDIO_I18N_CONFIG, k as PRAXIS_CUSTOM_FIELDS_STUDIO_I18N_NAMESPACE, l as PRAXIS_CUSTOM_FIELD_AI_PROMPT_EXAMPLES, m as PRAXIS_CUSTOM_FIELD_PRESETS, n as PRAXIS_CUSTOM_FIELD_WIDTH_CHOICES, o as PRAXIS_DOSSIER_PAGE_COMPONENT_METADATA, p as PRAXIS_FIELD_TYPE_CHOICES, q as PRAXIS_FILTER_OPERATIONS_BY_FIELD_TYPE, r as PRAXIS_FILTER_OPERATION_CHOICES, s as PRAXIS_MULTI_CHOICE_CONTROL_TYPES, t as PRAXIS_REGEX_VALIDATION_PRESETS, u as PRAXIS_SUGGESTED_FIELD_ICONS, v as PraxisBulkEditDialogComponent, w as PraxisBulkOperationDialogComponent, x as PraxisCrudBulkProposalBridgeService, y as PraxisCrudComponent, z as PraxisCrudWidgetConfigEditor, A as PraxisCustomFieldStudioDialogComponent, B as PraxisDossierPageComponent, E as PraxisKpiBandComponent, F as PraxisResourcePage, G as assertCrudMetadata, H as createCrudAuthoringDocument, I as createCrudFormRoute, K as findCrudAction, L as formatKpiValue, M as getCompatibleFilterOperations, N as isControlCompatibleWithFieldType, O as isResourceDiscoveredCrudAction, Q as normalizeCrudAuthoringDocument, R as normalizeStudioControlType, S as openCrudMetadataEditor, T as parseLegacyOrCrudDocument, U as providePraxisCrudBulkProposalBridge, V as providePraxisCrudMetadata, W as providePraxisDossierPageMetadata, X as serializeCrudAuthoringDocument, Y as slugifyCustomFieldKey, Z as slugifyOptionValue, _ as toDynamicFieldControlType, a0 as translateStudioText, a1 as validateCrudAuthoringDocument, a2 as validateStudioDefaultValue } from './praxisui-crud-praxisui-crud-DNCQa0at.mjs';
|
|
2
2
|
export { MAT_DIALOG_DATA as DIALOG_DATA } from '@angular/material/dialog';
|
|
3
3
|
export { createDynamicRecord, extractRecordId, isDynamicDataRecord, resolveDataField } from '@praxisui/core';
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/crud",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.67",
|
|
4
4
|
"description": "CRUD building blocks for Praxis UI: integrates dynamic forms and tables with unified configuration and services.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
8
|
"@angular/platform-browser": "^21.0.0",
|
|
9
|
-
"@praxisui/dynamic-form": "^10.0.0-rc.
|
|
10
|
-
"@praxisui/table": "^10.0.0-rc.
|
|
11
|
-
"@praxisui/core": "^10.0.0-rc.
|
|
12
|
-
"@praxisui/dynamic-fields": "^10.0.0-rc.
|
|
13
|
-
"@praxisui/settings-panel": "^10.0.0-rc.
|
|
9
|
+
"@praxisui/dynamic-form": "^10.0.0-rc.67",
|
|
10
|
+
"@praxisui/table": "^10.0.0-rc.67",
|
|
11
|
+
"@praxisui/core": "^10.0.0-rc.67",
|
|
12
|
+
"@praxisui/dynamic-fields": "^10.0.0-rc.67",
|
|
13
|
+
"@praxisui/settings-panel": "^10.0.0-rc.67",
|
|
14
14
|
"@angular/cdk": "^21.0.0",
|
|
15
15
|
"@angular/forms": "^21.0.0",
|
|
16
16
|
"@angular/material": "^21.0.0",
|
|
17
17
|
"@angular/router": "^21.0.0",
|
|
18
|
-
"@praxisui/ai": "^10.0.0-rc.
|
|
18
|
+
"@praxisui/ai": "^10.0.0-rc.67",
|
|
19
19
|
"rxjs": "~7.8.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
package/types/praxisui-crud.d.ts
CHANGED
|
@@ -2236,6 +2236,8 @@ declare class PraxisBulkOperationDialogComponent implements OnInit {
|
|
|
2236
2236
|
get targets(): ResourceBulkTarget[];
|
|
2237
2237
|
set targets(value: ResourceBulkTarget[]);
|
|
2238
2238
|
private confirmationIdempotencyKey?;
|
|
2239
|
+
readonly initialFormParameters: _angular_core.WritableSignal<Record<string, unknown>>;
|
|
2240
|
+
private latestPreparedParameters;
|
|
2239
2241
|
readonly formActions: FormConfig['actions'];
|
|
2240
2242
|
constructor(data: PraxisBulkOperationDialogData);
|
|
2241
2243
|
getActionTitle(): string;
|
|
@@ -2243,9 +2245,11 @@ declare class PraxisBulkOperationDialogComponent implements OnInit {
|
|
|
2243
2245
|
private hydrateProposal;
|
|
2244
2246
|
private hydrateInitialExecution;
|
|
2245
2247
|
hasParametersSchema(): boolean;
|
|
2248
|
+
parametersSchemaPointer(): string | null;
|
|
2246
2249
|
parametersSchemaUrl(): string | null;
|
|
2247
2250
|
getParametersFormId(): string;
|
|
2248
2251
|
onParametersFormReady(event: any): void;
|
|
2252
|
+
onParametersPayloadPreview(event: any): void;
|
|
2249
2253
|
onParametersChange(event: any): void;
|
|
2250
2254
|
private getMissingRequiredParameterNames;
|
|
2251
2255
|
canEvaluateParameters(): boolean;
|
|
@@ -2258,6 +2262,8 @@ declare class PraxisBulkOperationDialogComponent implements OnInit {
|
|
|
2258
2262
|
getExecutionAlertTitle(): string;
|
|
2259
2263
|
getExecutionAlertMessage(): string;
|
|
2260
2264
|
onEvaluate(): void;
|
|
2265
|
+
private resolveSubmitParameters;
|
|
2266
|
+
private normalizeParameterDateValues;
|
|
2261
2267
|
canReevaluateEligibleSubset(): boolean;
|
|
2262
2268
|
onReevaluateEligibleSubset(): Promise<void>;
|
|
2263
2269
|
loadProposalResults(cursor?: string): void;
|
|
@@ -2420,8 +2426,10 @@ declare class PraxisBulkEditDialogComponent implements OnInit {
|
|
|
2420
2426
|
|
|
2421
2427
|
declare class PraxisCrudBulkProposalBridgeService implements PraxisBulkProposalBridge {
|
|
2422
2428
|
private readonly dialog;
|
|
2429
|
+
private readonly discovery;
|
|
2423
2430
|
openPreparedBulkProposal(request: PraxisBulkProposalHandoffRequest): Promise<PraxisBulkProposalHandoffResult | null>;
|
|
2424
2431
|
private mapCloseResult;
|
|
2432
|
+
private resolveDiscoveredAction;
|
|
2425
2433
|
private buildContract;
|
|
2426
2434
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisCrudBulkProposalBridgeService, never>;
|
|
2427
2435
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<PraxisCrudBulkProposalBridgeService>;
|