@praxisui/core 8.0.0-beta.59 → 8.0.0-beta.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxisui/core",
3
- "version": "8.0.0-beta.59",
3
+ "version": "8.0.0-beta.60",
4
4
  "description": "Core library for Praxis UI Workspace: types, tokens, services and utilities shared across @praxisui/* packages.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
@@ -1166,6 +1166,109 @@ declare function isPraxisRuntimeGlobalActionEffect(value: unknown): value is Pra
1166
1166
  declare function normalizePraxisEffectPolicy(policy: PraxisEffectPolicy | null | undefined): PraxisEffectPolicy;
1167
1167
  declare function buildPraxisEffectDistinctKey(input: PraxisEffectDistinctKeyInput): string;
1168
1168
 
1169
+ /**
1170
+ * Contratos compartilhados de discovery semantico consumidos pelo runtime Angular.
1171
+ *
1172
+ * `resourcePath` continua sendo o endereco operacional do recurso.
1173
+ * `resourceKey` representa a identidade semantica estavel devolvida pelo backend para
1174
+ * surfaces, actions e capabilities.
1175
+ *
1176
+ * O runtime usa `resourceKey` para preservar contexto semantico e gerar ids estaveis de
1177
+ * abertura, enquanto `resourcePath`, `path`, `method` e `schemaUrl` seguem responsaveis pelo
1178
+ * comportamento operacional.
1179
+ */
1180
+
1181
+ interface ResourceAvailabilityDecision {
1182
+ allowed: boolean;
1183
+ reason?: string | null;
1184
+ metadata?: Record<string, any>;
1185
+ }
1186
+ type ResourceSurfaceKind = 'FORM' | 'PARTIAL_FORM' | 'VIEW' | 'READ_PROJECTION';
1187
+ type ResourceSurfaceScope = 'COLLECTION' | 'ITEM';
1188
+ type ResourceActionScope = 'COLLECTION' | 'ITEM';
1189
+ type ResourceDiscoveryRel = 'surfaces' | 'actions' | 'capabilities';
1190
+ type ResourceCrudOperationId = 'create' | 'view' | 'edit' | 'delete';
1191
+ type ResourceCapabilityOperationId = ResourceCrudOperationId | 'export' | string;
1192
+ type ResourceExportMaxRows = Partial<Record<PraxisExportFormat, number>> & Record<string, number | undefined>;
1193
+ interface ResourceSurfaceCatalogItem {
1194
+ id: string;
1195
+ resourceKey: string;
1196
+ kind: ResourceSurfaceKind;
1197
+ scope: ResourceSurfaceScope;
1198
+ title: string;
1199
+ description?: string | null;
1200
+ intent?: string | null;
1201
+ operationId: string;
1202
+ path: string;
1203
+ method: string;
1204
+ schemaId: string;
1205
+ schemaUrl: string;
1206
+ availability: ResourceAvailabilityDecision;
1207
+ order: number;
1208
+ tags: string[];
1209
+ }
1210
+ interface ResourceSurfaceCatalogResponse {
1211
+ resourceKey: string;
1212
+ resourcePath: string;
1213
+ group?: string | null;
1214
+ resourceId?: string | number | null;
1215
+ surfaces: ResourceSurfaceCatalogItem[];
1216
+ }
1217
+ interface ResourceActionCatalogItem {
1218
+ id: string;
1219
+ resourceKey: string;
1220
+ scope: ResourceActionScope;
1221
+ title: string;
1222
+ description?: string | null;
1223
+ operationId: string;
1224
+ path: string;
1225
+ method: string;
1226
+ requestSchemaId?: string | null;
1227
+ requestSchemaUrl?: string | null;
1228
+ responseSchemaId?: string | null;
1229
+ responseSchemaUrl?: string | null;
1230
+ availability: ResourceAvailabilityDecision;
1231
+ order: number;
1232
+ successMessage?: string | null;
1233
+ tags: string[];
1234
+ }
1235
+ interface ResourceActionCatalogResponse {
1236
+ resourceKey: string;
1237
+ resourcePath: string;
1238
+ group?: string | null;
1239
+ resourceId?: string | number | null;
1240
+ actions: ResourceActionCatalogItem[];
1241
+ }
1242
+ interface ResourceCapabilityOperation {
1243
+ id: ResourceCapabilityOperationId;
1244
+ supported: boolean;
1245
+ scope: ResourceSurfaceScope;
1246
+ preferredMethod?: string | null;
1247
+ preferredRel?: string | null;
1248
+ availability?: ResourceAvailabilityDecision | null;
1249
+ formats?: PraxisExportFormat[];
1250
+ scopes?: PraxisExportScope[];
1251
+ maxRows?: ResourceExportMaxRows;
1252
+ async?: boolean | null;
1253
+ }
1254
+ type ResourceCapabilityOperations = Partial<Record<ResourceCrudOperationId | 'export', ResourceCapabilityOperation>> & Record<string, ResourceCapabilityOperation | undefined>;
1255
+ interface ResourceCapabilitySnapshot {
1256
+ resourceKey: string;
1257
+ resourcePath: string;
1258
+ group?: string | null;
1259
+ resourceId?: string | number | null;
1260
+ canonicalOperations: Record<string, boolean>;
1261
+ operations?: ResourceCapabilityOperations;
1262
+ surfaces: ResourceSurfaceCatalogItem[];
1263
+ actions: ResourceActionCatalogItem[];
1264
+ }
1265
+ interface ResourceCapabilityDigest {
1266
+ source: 'schema-x-ui-resource';
1267
+ resourcePath: string;
1268
+ canonicalOperations: Record<string, boolean>;
1269
+ filterExpressionSupported: boolean;
1270
+ }
1271
+
1169
1272
  interface TableTooltipConfig {
1170
1273
  text?: string;
1171
1274
  position?: 'top' | 'right' | 'bottom' | 'left' | 'above' | 'below' | 'before' | 'after';
@@ -2375,6 +2478,8 @@ interface RowAction {
2375
2478
  globalAction?: GlobalActionRef;
2376
2479
  /** Efeitos runtime canonicos executados quando a acao por linha e acionada */
2377
2480
  effects?: PraxisRuntimeGlobalActionEffect[];
2481
+ /** Surface de registro canonica aberta por esta acao de linha */
2482
+ recordSurface?: ResourceSurfaceCatalogItem;
2378
2483
  /** Tooltip */
2379
2484
  tooltip?: string;
2380
2485
  /** Requer confirmação */
@@ -4509,109 +4614,6 @@ declare class GlobalConfigService {
4509
4614
  static ɵprov: i0.ɵɵInjectableDeclaration<GlobalConfigService>;
4510
4615
  }
4511
4616
 
4512
- /**
4513
- * Contratos compartilhados de discovery semantico consumidos pelo runtime Angular.
4514
- *
4515
- * `resourcePath` continua sendo o endereco operacional do recurso.
4516
- * `resourceKey` representa a identidade semantica estavel devolvida pelo backend para
4517
- * surfaces, actions e capabilities.
4518
- *
4519
- * O runtime usa `resourceKey` para preservar contexto semantico e gerar ids estaveis de
4520
- * abertura, enquanto `resourcePath`, `path`, `method` e `schemaUrl` seguem responsaveis pelo
4521
- * comportamento operacional.
4522
- */
4523
-
4524
- interface ResourceAvailabilityDecision {
4525
- allowed: boolean;
4526
- reason?: string | null;
4527
- metadata?: Record<string, any>;
4528
- }
4529
- type ResourceSurfaceKind = 'FORM' | 'PARTIAL_FORM' | 'VIEW' | 'READ_PROJECTION';
4530
- type ResourceSurfaceScope = 'COLLECTION' | 'ITEM';
4531
- type ResourceActionScope = 'COLLECTION' | 'ITEM';
4532
- type ResourceDiscoveryRel = 'surfaces' | 'actions' | 'capabilities';
4533
- type ResourceCrudOperationId = 'create' | 'view' | 'edit' | 'delete';
4534
- type ResourceCapabilityOperationId = ResourceCrudOperationId | 'export' | string;
4535
- type ResourceExportMaxRows = Partial<Record<PraxisExportFormat, number>> & Record<string, number | undefined>;
4536
- interface ResourceSurfaceCatalogItem {
4537
- id: string;
4538
- resourceKey: string;
4539
- kind: ResourceSurfaceKind;
4540
- scope: ResourceSurfaceScope;
4541
- title: string;
4542
- description?: string | null;
4543
- intent?: string | null;
4544
- operationId: string;
4545
- path: string;
4546
- method: string;
4547
- schemaId: string;
4548
- schemaUrl: string;
4549
- availability: ResourceAvailabilityDecision;
4550
- order: number;
4551
- tags: string[];
4552
- }
4553
- interface ResourceSurfaceCatalogResponse {
4554
- resourceKey: string;
4555
- resourcePath: string;
4556
- group?: string | null;
4557
- resourceId?: string | number | null;
4558
- surfaces: ResourceSurfaceCatalogItem[];
4559
- }
4560
- interface ResourceActionCatalogItem {
4561
- id: string;
4562
- resourceKey: string;
4563
- scope: ResourceActionScope;
4564
- title: string;
4565
- description?: string | null;
4566
- operationId: string;
4567
- path: string;
4568
- method: string;
4569
- requestSchemaId?: string | null;
4570
- requestSchemaUrl?: string | null;
4571
- responseSchemaId?: string | null;
4572
- responseSchemaUrl?: string | null;
4573
- availability: ResourceAvailabilityDecision;
4574
- order: number;
4575
- successMessage?: string | null;
4576
- tags: string[];
4577
- }
4578
- interface ResourceActionCatalogResponse {
4579
- resourceKey: string;
4580
- resourcePath: string;
4581
- group?: string | null;
4582
- resourceId?: string | number | null;
4583
- actions: ResourceActionCatalogItem[];
4584
- }
4585
- interface ResourceCapabilityOperation {
4586
- id: ResourceCapabilityOperationId;
4587
- supported: boolean;
4588
- scope: ResourceSurfaceScope;
4589
- preferredMethod?: string | null;
4590
- preferredRel?: string | null;
4591
- availability?: ResourceAvailabilityDecision | null;
4592
- formats?: PraxisExportFormat[];
4593
- scopes?: PraxisExportScope[];
4594
- maxRows?: ResourceExportMaxRows;
4595
- async?: boolean | null;
4596
- }
4597
- type ResourceCapabilityOperations = Partial<Record<ResourceCrudOperationId | 'export', ResourceCapabilityOperation>> & Record<string, ResourceCapabilityOperation | undefined>;
4598
- interface ResourceCapabilitySnapshot {
4599
- resourceKey: string;
4600
- resourcePath: string;
4601
- group?: string | null;
4602
- resourceId?: string | number | null;
4603
- canonicalOperations: Record<string, boolean>;
4604
- operations?: ResourceCapabilityOperations;
4605
- surfaces: ResourceSurfaceCatalogItem[];
4606
- actions: ResourceActionCatalogItem[];
4607
- }
4608
- interface ResourceCapabilityDigest {
4609
- source: 'schema-x-ui-resource';
4610
- resourcePath: string;
4611
- canonicalOperations: Record<string, boolean>;
4612
- filterExpressionSupported: boolean;
4613
- }
4614
-
4615
4617
  /**
4616
4618
  * Interface para configuração de endpoints personalizados.
4617
4619
  *