@praxisui/crud 10.0.0-rc.85 → 10.0.0-rc.86
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-DT_-IPd3.mjs → praxisui-crud-crud-route-form.component-D8kNChrd.mjs} +1 -1
- package/fesm2022/{praxisui-crud-praxisui-crud-PSkPrGOG.mjs → praxisui-crud-praxisui-crud-hDAYxCeX.mjs} +55 -9
- package/fesm2022/praxisui-crud.mjs +1 -1
- package/package.json +7 -7
- package/types/praxisui-crud.d.ts +2 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-12-
|
|
3
|
+
"generatedAt": "2026-12-03T16:00:13.540Z",
|
|
4
4
|
"packageName": "@praxisui/crud",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.86",
|
|
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-hDAYxCeX.mjs';
|
|
8
8
|
import { MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
9
9
|
|
|
10
10
|
/** Created only by createCrudFormRoute; owns the transferred form instance. */
|
|
@@ -1098,6 +1098,50 @@ class PraxisBulkOperationDialogComponent {
|
|
|
1098
1098
|
results: this.executionItems(),
|
|
1099
1099
|
});
|
|
1100
1100
|
}
|
|
1101
|
+
getTargetDisplayLabel(id) {
|
|
1102
|
+
if (id == null || String(id).trim() === '') {
|
|
1103
|
+
return 'Item';
|
|
1104
|
+
}
|
|
1105
|
+
const targetKey = String(id).trim();
|
|
1106
|
+
const mappedLabel = this.data.targetLabels?.[targetKey]?.trim();
|
|
1107
|
+
if (mappedLabel) {
|
|
1108
|
+
return mappedLabel;
|
|
1109
|
+
}
|
|
1110
|
+
const rows = Array.isArray(this.data.rows) ? this.data.rows : [];
|
|
1111
|
+
const schema = this.data.schema;
|
|
1112
|
+
const identity = schema?.['x-ui']?.resource?.identity;
|
|
1113
|
+
const explicitKeyField = typeof identity?.keyField === 'string' && identity.keyField.trim()
|
|
1114
|
+
? identity.keyField.trim()
|
|
1115
|
+
: typeof schema?.['x-ui']?.resource?.idField === 'string' && schema['x-ui'].resource.idField.trim()
|
|
1116
|
+
? schema['x-ui'].resource.idField.trim()
|
|
1117
|
+
: null;
|
|
1118
|
+
const matchKeys = explicitKeyField
|
|
1119
|
+
? [explicitKeyField, 'id', 'key', 'codigo', 'matricula']
|
|
1120
|
+
: ['id', 'key', 'codigo', 'matricula'];
|
|
1121
|
+
const matchedRow = rows.find((row) => {
|
|
1122
|
+
if (!row || typeof row !== 'object')
|
|
1123
|
+
return false;
|
|
1124
|
+
return matchKeys.some((k) => {
|
|
1125
|
+
const val = row[k];
|
|
1126
|
+
return val != null && String(val).trim() === targetKey;
|
|
1127
|
+
});
|
|
1128
|
+
});
|
|
1129
|
+
if (matchedRow) {
|
|
1130
|
+
const explicitTitleField = typeof identity?.titleField === 'string' && identity.titleField.trim()
|
|
1131
|
+
? identity.titleField.trim()
|
|
1132
|
+
: null;
|
|
1133
|
+
const titleFields = explicitTitleField
|
|
1134
|
+
? [explicitTitleField, 'nome', 'pessoaNome', 'servidorNome', 'title', 'label', 'descricao', 'name']
|
|
1135
|
+
: ['nome', 'pessoaNome', 'servidorNome', 'title', 'label', 'descricao', 'name'];
|
|
1136
|
+
for (const field of titleFields) {
|
|
1137
|
+
const candidate = matchedRow[field];
|
|
1138
|
+
if (candidate != null && String(candidate).trim()) {
|
|
1139
|
+
return `${String(candidate).trim()} (${targetKey})`;
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
return `Item ${targetKey}`;
|
|
1144
|
+
}
|
|
1101
1145
|
onCancel() {
|
|
1102
1146
|
if (this.trackingClosed)
|
|
1103
1147
|
return;
|
|
@@ -1264,7 +1308,7 @@ class PraxisBulkOperationDialogComponent {
|
|
|
1264
1308
|
<mat-icon>{{ isDiagnosticError(diag) ? 'cancel' : 'info' }}</mat-icon>
|
|
1265
1309
|
<div class="diagnostic-text">
|
|
1266
1310
|
@if (diag.target != null) {
|
|
1267
|
-
<span class="diagnostic-target">
|
|
1311
|
+
<span class="diagnostic-target">{{ getTargetDisplayLabel(diag.target) }}:</span>
|
|
1268
1312
|
}
|
|
1269
1313
|
<span>{{ diag.message }}</span>
|
|
1270
1314
|
</div>
|
|
@@ -1283,7 +1327,7 @@ class PraxisBulkOperationDialogComponent {
|
|
|
1283
1327
|
<div class="diagnostic-item" [class.diagnostic-item--error]="item.decision === 'BLOCKED'">
|
|
1284
1328
|
<mat-icon>{{ item.decision === 'BLOCKED' ? 'cancel' : 'check_circle' }}</mat-icon>
|
|
1285
1329
|
<div class="diagnostic-text">
|
|
1286
|
-
<span class="diagnostic-target">
|
|
1330
|
+
<span class="diagnostic-target">{{ getTargetDisplayLabel(item.id) }}:</span>
|
|
1287
1331
|
<span>{{ item.decision === 'BLOCKED' ? (item.diagnostics?.[0]?.message || 'Bloqueado') : 'Elegível' }}</span>
|
|
1288
1332
|
</div>
|
|
1289
1333
|
</div>
|
|
@@ -1364,7 +1408,7 @@ class PraxisBulkOperationDialogComponent {
|
|
|
1364
1408
|
<mat-icon>{{ isDiagnosticError(diag) ? 'cancel' : 'info' }}</mat-icon>
|
|
1365
1409
|
<div class="diagnostic-text">
|
|
1366
1410
|
@if (diag.target != null) {
|
|
1367
|
-
<span class="diagnostic-target">
|
|
1411
|
+
<span class="diagnostic-target">{{ getTargetDisplayLabel(diag.target) }}:</span>
|
|
1368
1412
|
}
|
|
1369
1413
|
<span>{{ diag.message }}</span>
|
|
1370
1414
|
</div>
|
|
@@ -1382,7 +1426,7 @@ class PraxisBulkOperationDialogComponent {
|
|
|
1382
1426
|
<div class="diagnostic-item" [class.diagnostic-item--error]="item.status !== 'CONFIRMED' && item.status !== 'UNCHANGED'">
|
|
1383
1427
|
<mat-icon>{{ item.status === 'CONFIRMED' || item.status === 'UNCHANGED' ? 'check_circle' : 'cancel' }}</mat-icon>
|
|
1384
1428
|
<div class="diagnostic-text">
|
|
1385
|
-
<span class="diagnostic-target">
|
|
1429
|
+
<span class="diagnostic-target">{{ getTargetDisplayLabel(item.id) }}:</span>
|
|
1386
1430
|
<span>{{ item.diagnostics?.[0]?.message || item.status }}</span>
|
|
1387
1431
|
</div>
|
|
1388
1432
|
</div>
|
|
@@ -1623,7 +1667,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
1623
1667
|
<mat-icon>{{ isDiagnosticError(diag) ? 'cancel' : 'info' }}</mat-icon>
|
|
1624
1668
|
<div class="diagnostic-text">
|
|
1625
1669
|
@if (diag.target != null) {
|
|
1626
|
-
<span class="diagnostic-target">
|
|
1670
|
+
<span class="diagnostic-target">{{ getTargetDisplayLabel(diag.target) }}:</span>
|
|
1627
1671
|
}
|
|
1628
1672
|
<span>{{ diag.message }}</span>
|
|
1629
1673
|
</div>
|
|
@@ -1642,7 +1686,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
1642
1686
|
<div class="diagnostic-item" [class.diagnostic-item--error]="item.decision === 'BLOCKED'">
|
|
1643
1687
|
<mat-icon>{{ item.decision === 'BLOCKED' ? 'cancel' : 'check_circle' }}</mat-icon>
|
|
1644
1688
|
<div class="diagnostic-text">
|
|
1645
|
-
<span class="diagnostic-target">
|
|
1689
|
+
<span class="diagnostic-target">{{ getTargetDisplayLabel(item.id) }}:</span>
|
|
1646
1690
|
<span>{{ item.decision === 'BLOCKED' ? (item.diagnostics?.[0]?.message || 'Bloqueado') : 'Elegível' }}</span>
|
|
1647
1691
|
</div>
|
|
1648
1692
|
</div>
|
|
@@ -1723,7 +1767,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
1723
1767
|
<mat-icon>{{ isDiagnosticError(diag) ? 'cancel' : 'info' }}</mat-icon>
|
|
1724
1768
|
<div class="diagnostic-text">
|
|
1725
1769
|
@if (diag.target != null) {
|
|
1726
|
-
<span class="diagnostic-target">
|
|
1770
|
+
<span class="diagnostic-target">{{ getTargetDisplayLabel(diag.target) }}:</span>
|
|
1727
1771
|
}
|
|
1728
1772
|
<span>{{ diag.message }}</span>
|
|
1729
1773
|
</div>
|
|
@@ -1741,7 +1785,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
1741
1785
|
<div class="diagnostic-item" [class.diagnostic-item--error]="item.status !== 'CONFIRMED' && item.status !== 'UNCHANGED'">
|
|
1742
1786
|
<mat-icon>{{ item.status === 'CONFIRMED' || item.status === 'UNCHANGED' ? 'check_circle' : 'cancel' }}</mat-icon>
|
|
1743
1787
|
<div class="diagnostic-text">
|
|
1744
|
-
<span class="diagnostic-target">
|
|
1788
|
+
<span class="diagnostic-target">{{ getTargetDisplayLabel(item.id) }}:</span>
|
|
1745
1789
|
<span>{{ item.diagnostics?.[0]?.message || item.status }}</span>
|
|
1746
1790
|
</div>
|
|
1747
1791
|
</div>
|
|
@@ -22044,6 +22088,7 @@ class PraxisCrudComponent {
|
|
|
22044
22088
|
data: {
|
|
22045
22089
|
action: actionRef,
|
|
22046
22090
|
targets,
|
|
22091
|
+
rows,
|
|
22047
22092
|
resourcePath,
|
|
22048
22093
|
resourceKey,
|
|
22049
22094
|
endpointKey: this.resolvedMetadata?.resource?.endpointKey,
|
|
@@ -25924,7 +25969,7 @@ function createCrudFormRoute(target) {
|
|
|
25924
25969
|
return {
|
|
25925
25970
|
path: target.path,
|
|
25926
25971
|
data: { crudFormTarget: { formId: target.formId, resourcePath: target.resourcePath } },
|
|
25927
|
-
loadComponent: () => import('./praxisui-crud-crud-route-form.component-
|
|
25972
|
+
loadComponent: () => import('./praxisui-crud-crud-route-form.component-D8kNChrd.mjs').then(m => m.CrudRouteFormComponent),
|
|
25928
25973
|
canDeactivate: [(component) => component.canLeave()],
|
|
25929
25974
|
};
|
|
25930
25975
|
}
|
|
@@ -32436,6 +32481,7 @@ class PraxisCrudBulkProposalBridgeService {
|
|
|
32436
32481
|
initialParameters: request.parameters ? { ...request.parameters } : null,
|
|
32437
32482
|
initialSelection: parsedSelection,
|
|
32438
32483
|
missingRequiredFields: request.missingRequiredFields,
|
|
32484
|
+
targetLabels: request.targetLabels,
|
|
32439
32485
|
filterLabel: request.filterLabel ?? null,
|
|
32440
32486
|
};
|
|
32441
32487
|
const dialogRef = this.dialog.open(PraxisBulkOperationDialogComponent, {
|
|
@@ -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-hDAYxCeX.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.86",
|
|
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.86",
|
|
10
|
+
"@praxisui/table": "^10.0.0-rc.86",
|
|
11
|
+
"@praxisui/core": "^10.0.0-rc.86",
|
|
12
|
+
"@praxisui/dynamic-fields": "^10.0.0-rc.86",
|
|
13
|
+
"@praxisui/settings-panel": "^10.0.0-rc.86",
|
|
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.86",
|
|
19
19
|
"rxjs": "~7.8.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
package/types/praxisui-crud.d.ts
CHANGED
|
@@ -2220,6 +2220,7 @@ interface PraxisBulkOperationDialogData {
|
|
|
2220
2220
|
excludedIds?: (string | number)[];
|
|
2221
2221
|
} | null;
|
|
2222
2222
|
missingRequiredFields?: readonly string[];
|
|
2223
|
+
targetLabels?: Readonly<Record<string, string>>;
|
|
2223
2224
|
filterLabel?: string | null;
|
|
2224
2225
|
}
|
|
2225
2226
|
type BulkDialogStep = 'PARAMETERS' | 'EVALUATING' | 'PREVIEW' | 'CONFIRMING' | 'RESULT';
|
|
@@ -2304,6 +2305,7 @@ declare class PraxisBulkOperationDialogComponent implements OnInit {
|
|
|
2304
2305
|
canCancelExecution(): boolean;
|
|
2305
2306
|
onCancelActiveExecution(): void;
|
|
2306
2307
|
onCloseSuccess(): void;
|
|
2308
|
+
getTargetDisplayLabel(id: unknown): string;
|
|
2307
2309
|
onCancel(): void;
|
|
2308
2310
|
onEscape(event?: Event): void;
|
|
2309
2311
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisBulkOperationDialogComponent, never>;
|