@praxisui/core 10.0.0-rc.6 → 10.0.0-rc.61

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.
@@ -5,6 +5,7 @@ type OptionSourceSelectedReloadPolicy = 'required' | 'supported' | 'unsupported-
5
5
  type OptionSourceInvalidSortPolicy = 'reject' | 'ignore' | 'unsupported';
6
6
  type LookupOpenDetailMode = 'samePage' | 'newTab' | 'drawer' | 'modal' | 'route';
7
7
  type LookupStatusTone = 'success' | 'warning' | 'danger' | 'neutral';
8
+ type LookupDialogSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
8
9
  type LookupFilterFieldType = 'text' | 'enum' | 'date' | 'number' | 'reference';
9
10
  type LookupFilterOperator = 'contains' | 'startsWith' | 'equals' | 'in' | 'before' | 'after' | 'between' | 'gt' | 'gte' | 'lt' | 'lte';
10
11
  type EntityLookupSelectedLayout = 'card' | 'inline' | 'compact' | 'token';
@@ -48,7 +49,9 @@ interface LookupDetailMetadata {
48
49
  routeTemplate?: string;
49
50
  openDetailMode?: LookupOpenDetailMode;
50
51
  kind?: 'surface' | 'route' | 'href' | string;
52
+ resourceKey?: string;
51
53
  surfaceId?: string;
54
+ previewSurfaceId?: string;
52
55
  presentation?: 'modal' | 'drawer' | string;
53
56
  preferredWidget?: string;
54
57
  mode?: 'view' | 'edit' | 'create' | string;
@@ -58,12 +61,24 @@ interface LookupCreateMetadata {
58
61
  routeTemplate?: string;
59
62
  openMode?: LookupOpenDetailMode;
60
63
  }
64
+ interface LookupFilterOptionMetadata {
65
+ value: string | number | boolean;
66
+ label: string;
67
+ icon?: string;
68
+ tone?: LookupStatusTone | string;
69
+ description?: string;
70
+ disabled?: boolean;
71
+ }
61
72
  interface LookupFilterDefinitionMetadata {
62
73
  field: string;
63
74
  label?: string;
64
75
  type: LookupFilterFieldType;
65
76
  operators: LookupFilterOperator[];
66
77
  defaultOperator?: LookupFilterOperator;
78
+ options?: LookupFilterOptionMetadata[];
79
+ optionSource?: OptionSourceMetadata | string;
80
+ dependsOn?: string[];
81
+ dependencyFilterMap?: Record<string, string>;
67
82
  optionsSource?: string;
68
83
  required?: boolean;
69
84
  hidden?: boolean;
@@ -91,8 +106,29 @@ interface LookupFilteringMetadata {
91
106
  quickFilterFields?: string[];
92
107
  searchPlaceholder?: string;
93
108
  searchStrategies?: LookupSearchStrategyMetadata[];
109
+ defaultSearchStrategy?: string;
110
+ }
111
+ interface LookupDialogMetadata {
112
+ enabled?: boolean;
113
+ title?: string;
114
+ size?: LookupDialogSize;
115
+ previewPanel?: boolean;
116
+ allowColumnChooser?: boolean;
117
+ allowSavedViews?: boolean;
118
+ resultColumns?: LookupResultColumnMetadata[];
119
+ openActionLabel?: string;
120
+ applyActionLabel?: string;
121
+ cancelActionLabel?: string;
122
+ }
123
+ type LookupResultColumnKind = 'code' | 'label' | 'description' | 'status' | 'disabledReason' | 'custom';
124
+ interface LookupResultColumnMetadata {
125
+ field: string;
126
+ label?: string;
127
+ kind?: LookupResultColumnKind;
128
+ width?: string;
94
129
  }
95
130
  interface EntityLookupActionsMetadata {
131
+ showQuickView?: boolean;
96
132
  showDetail?: boolean;
97
133
  showChange?: boolean;
98
134
  showCopyCode?: boolean;
@@ -122,6 +158,7 @@ interface EntityLookupDisplayMetadata {
122
158
  statusToneMap?: Record<string, LookupStatusTone>;
123
159
  badgeKeys?: string[];
124
160
  maxVisibleBadges?: number;
161
+ quickViewActionLabel?: string;
125
162
  detailActionLabel?: string;
126
163
  changeActionLabel?: string;
127
164
  copyCodeActionLabel?: string;
@@ -153,6 +190,7 @@ interface OptionSourceMetadata {
153
190
  create?: LookupCreateMetadata;
154
191
  display?: EntityLookupDisplayMetadata;
155
192
  filtering?: LookupFilteringMetadata;
193
+ dialog?: LookupDialogMetadata;
156
194
  excludeSelfField?: boolean;
157
195
  searchMode?: OptionSourceSearchMode;
158
196
  pageSize?: number;
@@ -180,19 +218,32 @@ type JsonLogicExpression = JsonLogicPrimitive | JsonLogicVarExpression | JsonLog
180
218
  type JsonLogicDerivedValueExpression = Exclude<JsonLogicExpression, string>;
181
219
  type JsonLogicValue = JsonLogicPrimitive | JsonLogicExpression | JsonLogicArray | JsonLogicRecord;
182
220
 
183
- type PraxisPresentationVisualizationKind = 'line' | 'area' | 'column' | 'comparison' | 'stackedBar' | 'radial' | 'harveyBall' | 'bullet' | 'delta' | 'processFlow';
221
+ type PraxisPresentationVisualizationKind = 'line' | 'area' | 'column' | 'comparison' | 'stackedBar' | 'radial' | 'harveyBall' | 'bullet' | 'delta' | 'processFlow' | 'waterfall';
222
+ type PraxisPresentationVisualizationWaterfallRole = 'start' | 'increase' | 'decrease' | 'subtotal' | 'total';
184
223
  type PraxisPresentationVisualizationSurface = 'table-cell' | 'list-item' | 'object-header' | 'card-summary' | 'form-presentation';
185
224
  type PraxisPresentationVisualizationSize = 'xs' | 'sm' | 'md' | 'lg' | 'responsive';
186
225
  type PraxisPresentationVisualizationTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'critical';
226
+ /**
227
+ * Defines how numerical bounds (`min` / `max` / `total`) are resolved when rendering
228
+ * a micro-visualization inside a collection:
229
+ * - `'row'` (default): each record scales independently using its own series/values or explicit `min`/`max`/`total`.
230
+ * - `'page'`: records on the current loaded page share a synchronized column scale when explicit bounds are not fixed.
231
+ */
232
+ type PraxisPresentationVisualizationScaleScope = 'row' | 'page';
187
233
  interface PraxisPresentationVisualizationPoint {
188
234
  label?: string;
189
235
  value: number;
190
236
  tone?: PraxisPresentationVisualizationTone;
237
+ suppressed?: boolean;
238
+ privacySuppressed?: boolean;
191
239
  }
192
240
  interface PraxisPresentationVisualizationSegment {
193
241
  label?: string;
194
242
  value: number;
195
243
  tone?: PraxisPresentationVisualizationTone;
244
+ color?: string;
245
+ suppressed?: boolean;
246
+ privacySuppressed?: boolean;
196
247
  }
197
248
  interface PraxisPresentationVisualizationThreshold {
198
249
  label?: string;
@@ -205,27 +256,41 @@ interface PraxisPresentationVisualizationThreshold {
205
256
  interface PraxisPresentationVisualizationItem {
206
257
  id?: string;
207
258
  label?: string;
208
- value?: number;
259
+ value?: number | null;
209
260
  icon?: string;
210
261
  tone?: PraxisPresentationVisualizationTone;
262
+ color?: string;
211
263
  state?: string;
264
+ role?: PraxisPresentationVisualizationWaterfallRole;
265
+ suppressed?: boolean;
266
+ privacySuppressed?: boolean;
212
267
  }
213
268
  interface PraxisPresentationVisualizationConfig {
214
269
  kind: PraxisPresentationVisualizationKind;
215
270
  surface?: PraxisPresentationVisualizationSurface;
216
271
  size?: PraxisPresentationVisualizationSize;
272
+ scaleScope?: PraxisPresentationVisualizationScaleScope;
273
+ title?: string;
274
+ titleExpr?: JsonLogicExpression | string;
275
+ legend?: boolean;
217
276
  value?: unknown;
218
277
  valueExpr?: JsonLogicExpression | string;
219
278
  valueSuffix?: string;
220
279
  valueSuffixExpr?: JsonLogicExpression | string;
221
280
  compactValue?: boolean;
281
+ min?: number;
282
+ minExpr?: JsonLogicExpression | string;
283
+ max?: number;
284
+ maxExpr?: JsonLogicExpression | string;
222
285
  total?: number;
223
286
  totalExpr?: JsonLogicExpression | string;
224
287
  target?: number;
225
288
  targetExpr?: JsonLogicExpression | string;
289
+ targetLabel?: string;
290
+ targetLabelExpr?: JsonLogicExpression | string;
226
291
  baseline?: number;
227
292
  baselineExpr?: JsonLogicExpression | string;
228
- points?: PraxisPresentationVisualizationPoint[];
293
+ points?: Array<PraxisPresentationVisualizationPoint | number>;
229
294
  pointsExpr?: JsonLogicExpression | string;
230
295
  segments?: PraxisPresentationVisualizationSegment[];
231
296
  segmentsExpr?: JsonLogicExpression | string;
@@ -241,9 +306,192 @@ interface PraxisPresentationVisualizationConfig {
241
306
  ariaLabelExpr?: JsonLogicExpression | string;
242
307
  fallbackText: string;
243
308
  fallbackTextExpr?: JsonLogicExpression | string;
309
+ suppressedCount?: number;
244
310
  }
245
311
  declare function isPraxisPresentationVisualizationTableSafe(value: PraxisPresentationVisualizationConfig | null | undefined): boolean;
246
312
 
313
+ type FieldPresentationTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
314
+ type FieldPresentationAppearance = 'plain' | 'soft' | 'outlined' | 'filled';
315
+ type FieldPresenterKind = 'text' | 'badge' | 'chip' | 'status' | 'iconValue' | 'progress' | 'rating' | 'microVisualization';
316
+ interface FieldPresentationInteractions {
317
+ /** Allows readonly surfaces to expose a copy affordance without changing the field value. */
318
+ copy?: boolean;
319
+ /** Allows readonly surfaces to expose contextual detail expansion. */
320
+ details?: boolean;
321
+ /** Allows readonly surfaces to expose inline expansion for long values. */
322
+ expand?: boolean;
323
+ /** Allows readonly surfaces to expose a link affordance when the value is navigable. */
324
+ link?: boolean;
325
+ /** Optional governed Quick View binding for readonly/presentation reference fields. */
326
+ quickView?: ResourceQuickViewBinding;
327
+ }
328
+ interface FieldPresentationConfig {
329
+ /** Semantic display strategy for readonly/presentation surfaces. */
330
+ presenter?: FieldPresenterKind;
331
+ /** Alias accepted for schema authors that describe the semantic display as a variant. */
332
+ variant?: FieldPresenterKind;
333
+ /** Semantic tone mapped by consumers to theme tokens. */
334
+ tone?: FieldPresentationTone;
335
+ /** Material Symbols icon name, without arbitrary HTML. */
336
+ icon?: string;
337
+ /** Optional semantic label for status/chip/badge presentations. */
338
+ label?: string;
339
+ /** Optional secondary marker rendered by presentation-capable consumers. */
340
+ badge?: string;
341
+ /** Optional tooltip text for the presentation wrapper. */
342
+ tooltip?: string;
343
+ /** Optional readonly prefix rendered next to the displayed value without changing the raw value. */
344
+ prefix?: string;
345
+ /** Optional readonly suffix rendered next to the displayed value without changing the raw value. */
346
+ suffix?: string;
347
+ /** Optional icon override when the field resolves to a truthy boolean state. */
348
+ iconTrue?: string;
349
+ /** Optional icon override when the field resolves to a falsy boolean state. */
350
+ iconFalse?: string;
351
+ /** Optional semantic tone when the field resolves to a truthy boolean state. */
352
+ toneTrue?: FieldPresentationTone;
353
+ /** Optional semantic tone when the field resolves to a falsy boolean state. */
354
+ toneFalse?: FieldPresentationTone;
355
+ /** Optional display label when the field resolves to a truthy boolean state. */
356
+ labelTrue?: string;
357
+ /** Optional display label when the field resolves to a falsy boolean state. */
358
+ labelFalse?: string;
359
+ /** Visual density/emphasis strategy mapped by consumers to theme tokens. */
360
+ appearance?: FieldPresentationAppearance;
361
+ /** Optional formatter override for the presentation surface only. */
362
+ valuePresentation?: ValuePresentationConfig;
363
+ /** Renderer-neutral micro visualization metadata for compact presentation surfaces. */
364
+ visualization?: PraxisPresentationVisualizationConfig;
365
+ /** Safe readonly affordances. No commands or mutations are executed from this contract. */
366
+ interactions?: FieldPresentationInteractions;
367
+ }
368
+ interface FieldPresentationRule {
369
+ /** Json Logic guard evaluated against the presentation context. */
370
+ when: JsonLogicExpression;
371
+ /** Semantic presentation state merged when the guard is truthy. */
372
+ set?: FieldPresentationConfig;
373
+ /** Alias for `set`, useful for rule-builder terminology. */
374
+ effect?: FieldPresentationConfig;
375
+ }
376
+
377
+ type PraxisExportFormat = 'excel' | 'pdf' | 'csv' | 'json' | 'print';
378
+ type PraxisExportScope = 'auto' | 'selected' | 'filtered' | 'currentPage' | 'all';
379
+
380
+ /**
381
+ * Contratos compartilhados de discovery semantico consumidos pelo runtime Angular.
382
+ *
383
+ * `resourcePath` continua sendo o endereco operacional do recurso.
384
+ * `resourceKey` representa a identidade semantica estavel devolvida pelo backend para
385
+ * surfaces, actions e capabilities.
386
+ *
387
+ * O runtime usa `resourceKey` para preservar contexto semantico e gerar ids estaveis de
388
+ * abertura, enquanto `resourcePath`, `path`, `method` e `schemaUrl` seguem responsaveis pelo
389
+ * comportamento operacional.
390
+ */
391
+
392
+ interface ResourceAvailabilityDecision {
393
+ allowed: boolean;
394
+ reason?: string | null;
395
+ metadata?: Record<string, any>;
396
+ }
397
+ type ResourceSurfaceKind = 'FORM' | 'PARTIAL_FORM' | 'VIEW' | 'READ_PROJECTION' | 'HIERARCHY_TREE';
398
+ type ResourceSurfaceScope = 'COLLECTION' | 'ITEM';
399
+ type ResourceSurfaceResponseCardinality = 'OBJECT' | 'COLLECTION' | 'PAGE' | 'VOID' | 'UNKNOWN';
400
+ type RelatedResourceChildOperation = 'FILTER' | 'LIST' | 'CREATE' | 'UPDATE' | 'DELETE' | 'DUPLICATE_DRAFT';
401
+ interface RelatedResourceSurface {
402
+ parentResourceKey: string;
403
+ parentIdPathVariable: string;
404
+ childResourceKey: string;
405
+ childResourcePath: string;
406
+ childParentField: string;
407
+ selectable: boolean;
408
+ selectionKeyField: string;
409
+ childOperations: RelatedResourceChildOperation[];
410
+ }
411
+ interface ResourceSurfaceCatalogItem {
412
+ id: string;
413
+ resourceKey: string;
414
+ kind: ResourceSurfaceKind;
415
+ scope: ResourceSurfaceScope;
416
+ title: string;
417
+ description?: string | null;
418
+ intent?: string | null;
419
+ icon?: string | null;
420
+ contextualReadPath?: string | null;
421
+ operationId: string;
422
+ path: string;
423
+ method: string;
424
+ schemaId: string;
425
+ schemaUrl: string;
426
+ responseCardinality?: ResourceSurfaceResponseCardinality | null;
427
+ availability: ResourceAvailabilityDecision;
428
+ order: number;
429
+ tags: string[];
430
+ relatedResource?: RelatedResourceSurface | null;
431
+ }
432
+ interface ResourceRecordOpenRef {
433
+ sourceIdentityField: string;
434
+ target: {
435
+ resourceKey: string;
436
+ surfaceId: string;
437
+ };
438
+ }
439
+
440
+ interface GlobalActionRef {
441
+ actionId: string;
442
+ payload?: any;
443
+ payloadExpr?: string;
444
+ meta?: {
445
+ label?: string;
446
+ icon?: string;
447
+ emitLocal?: boolean;
448
+ confirmation?: any;
449
+ [key: string]: any;
450
+ };
451
+ }
452
+
453
+ type SurfacePresentation = 'modal' | 'drawer';
454
+
455
+ /**
456
+ * Referência imutável e versionada a um preset de `rich-block` permitido
457
+ * como corpo customizado de Quick View.
458
+ */
459
+ type ResourceQuickViewPresetRef = CorePresetRef & {
460
+ kind: 'rich-block';
461
+ namespace: string;
462
+ presetId: string;
463
+ version: string;
464
+ };
465
+ /**
466
+ * Contrato declarativo de referência cruzada publicado pelo backend em `x-ui.resourceReference`
467
+ * (via `@ResourceReference`), permitindo sintetizar `ResourceQuickViewBinding` sem configuração manual.
468
+ */
469
+ interface ResourceReferenceMetadata {
470
+ resourceKey: string;
471
+ valueField?: string;
472
+ surfaceId?: string;
473
+ previewSurfaceId?: string;
474
+ detailPresentation?: SurfacePresentation;
475
+ }
476
+ /**
477
+ * Contrato declarativo e serializável de Quick View transversal.
478
+ *
479
+ * Regras arquiteturais:
480
+ * - Nunca contém elementos DOM, coordenadas de viewport ou funções;
481
+ * - Reutiliza `ResourceRecordOpenRef` (`{ sourceIdentityField, target: { resourceKey, surfaceId } }`)
482
+ * para governança de descoberta, leitura e CTA;
483
+ * - Opcionalmente declara `previewSurfaceId` quando a projeção de leitura do preview
484
+ * diferir da surface de detalhe completo aberta pelo CTA primário;
485
+ * - Não permite `popover` em `detailPresentation` (`popover` não pertence a `SurfacePresentation`);
486
+ * - Não permite override de ação, rota arbitrária nem árvore `RichContentDocument` inline no primeiro slice.
487
+ */
488
+ interface ResourceQuickViewBinding {
489
+ recordOpen: ResourceRecordOpenRef;
490
+ previewSurfaceId?: string;
491
+ contentRef?: ResourceQuickViewPresetRef | null;
492
+ detailPresentation?: SurfacePresentation;
493
+ }
494
+
247
495
  type RichBlockContextScope = 'row' | 'computed' | 'detail' | 'meta' | 'user' | 'tenant';
248
496
  interface RichBlockContextConfig {
249
497
  scopes?: RichBlockContextScope[];
@@ -300,6 +548,22 @@ interface RichLinkNode extends RichBlockBaseNode {
300
548
  href: string;
301
549
  target?: '_blank' | '_self';
302
550
  rel?: string;
551
+ /** Contrato opcional de Quick View governado associado ao link. */
552
+ quickView?: ResourceQuickViewBinding;
553
+ }
554
+ type RichRecordReferenceVariant = 'inline' | 'badge' | 'chip';
555
+ /**
556
+ * Nó semântico explícito de referência de registro com visualização rápida governada (`Quick View`).
557
+ * Diferente de `RichLinkNode` (`href`), não exige rota direta e renderiza gatilho acessível (`button[type="button"]`).
558
+ */
559
+ interface RichRecordReferenceNode extends RichBlockBaseNode {
560
+ type: 'recordReference';
561
+ label?: string;
562
+ labelExpr?: string;
563
+ icon?: string;
564
+ tone?: RichSemanticTone;
565
+ variant?: RichRecordReferenceVariant;
566
+ quickView: ResourceQuickViewBinding;
303
567
  }
304
568
  type RichSemanticTone = 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'danger' | 'error' | 'neutral';
305
569
  interface RichBadgeNode extends RichBlockBaseNode {
@@ -308,6 +572,8 @@ interface RichBadgeNode extends RichBlockBaseNode {
308
572
  labelExpr?: string;
309
573
  icon?: string;
310
574
  tone?: RichSemanticTone;
575
+ /** Contrato opcional de Quick View governado associado ao badge. */
576
+ quickView?: ResourceQuickViewBinding;
311
577
  }
312
578
  interface RichAvatarNode extends RichBlockBaseNode {
313
579
  type: 'avatar';
@@ -335,11 +601,22 @@ interface RichProgressNode extends RichBlockBaseNode {
335
601
  labelExpr?: string;
336
602
  showPercent?: boolean;
337
603
  }
604
+ interface RichActionCheckRule {
605
+ id?: string;
606
+ /** Regra JSON Logic que deve avaliar para `true` para habilitar o disparo da ação. */
607
+ when: JsonLogicExpression;
608
+ /** Mensagem de pré-condição exibida quando a checagem falha. */
609
+ message: string;
610
+ }
338
611
  interface RichActionRef {
339
612
  actionId: string;
340
613
  payload?: unknown;
341
614
  payloadExpr?: string;
615
+ /** Quando `true` (padrão quando há `payload` estruturado), interpola recursivamente `${...}` / `{{...}}` nos valores de `payload`. */
616
+ interpolatePayload?: boolean;
342
617
  availabilityExpr?: string;
618
+ /** Regras declarativas de pré-condição avaliadas em cliente antes de habilitar/disparar a ação. */
619
+ checks?: RichActionCheckRule[];
343
620
  confirmMessage?: string;
344
621
  }
345
622
  interface RichActionButtonNode extends RichBlockBaseNode {
@@ -360,7 +637,7 @@ interface RichMicroVisualizationNode extends RichBlockBaseNode {
360
637
  valueExpr?: string;
361
638
  targetExpr?: string;
362
639
  }
363
- type RichPresenterNode = RichTextNode | RichIconNode | RichImageNode | RichLinkNode | RichBadgeNode | RichAvatarNode | RichMetricNode | RichProgressNode | RichActionButtonNode | RichMicroVisualizationNode;
640
+ type RichPresenterNode = RichTextNode | RichIconNode | RichImageNode | RichLinkNode | RichRecordReferenceNode | RichBadgeNode | RichAvatarNode | RichMetricNode | RichProgressNode | RichActionButtonNode | RichMicroVisualizationNode;
364
641
  type RichComposeLayout = 'flex' | 'grid';
365
642
  type RichComposeAlignItems = 'stretch' | 'start' | 'center' | 'end';
366
643
  interface RichComposeNode extends RichBlockBaseNode {
@@ -372,14 +649,18 @@ interface RichComposeNode extends RichBlockBaseNode {
372
649
  columns?: number | 'auto-fit' | 'auto-fill';
373
650
  minColumnWidth?: string;
374
651
  alignItems?: RichComposeAlignItems;
375
- items: RichBlockNode[];
652
+ items?: RichBlockNode[];
653
+ /** Caminho opcional no contexto apontando para um array de registros a projetar com `itemTemplate`. */
654
+ itemsExpr?: string;
655
+ /** Template de bloco aplicado a cada entrada de `itemsExpr` com escopo `item` / `row` / `index` / `$index`. */
656
+ itemTemplate?: RichBlockNode;
376
657
  }
377
658
  type RichCardVariant = 'plain' | 'outlined' | 'elevated' | 'filled' | 'transparent' | 'unstyled';
378
- type RichCardTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
659
+ type RichCardTone = RichSemanticTone;
379
660
  type RichCardSize = 'sm' | 'md' | 'lg';
380
661
  type RichCardDensity = 'compact' | 'comfortable';
381
662
  type RichCardOrientation = 'vertical' | 'horizontal';
382
- type RichCardMediaKind = 'image' | 'video' | 'icon' | 'avatar' | 'telemetry' | 'lottie';
663
+ type RichCardMediaKind = 'image' | 'video' | 'icon' | 'avatar' | 'telemetry' | 'lottie' | 'component';
383
664
  interface RichCardMediaTelemetry {
384
665
  variant?: 'radar' | 'pulse' | 'wave' | 'signal';
385
666
  speed?: 'slow' | 'normal' | 'fast';
@@ -400,9 +681,15 @@ interface RichCardMedia {
400
681
  labelExpr?: string;
401
682
  placement?: RichCardMediaPlacement;
402
683
  aspectRatio?: RichCardMediaAspectRatio;
684
+ width?: string;
685
+ height?: string;
403
686
  objectFit?: RichCardMediaObjectFit;
404
687
  telemetry?: RichCardMediaTelemetry;
405
688
  animationSrc?: string;
689
+ /** Registered component ID in ComponentMetadataRegistry when kind === 'component'. */
690
+ componentId?: string;
691
+ /** Declarative input map forwarded to the dynamic component when kind === 'component'. */
692
+ componentInputs?: Record<string, unknown>;
406
693
  verticalAlign?: 'center' | 'top' | 'bottom' | 'stretch';
407
694
  }
408
695
  type RichCardInteractionMode = 'none' | 'action' | 'selectable';
@@ -494,13 +781,18 @@ interface RichKeyValueItem {
494
781
  badge?: string;
495
782
  badgeExpr?: string;
496
783
  icon?: string;
784
+ quickView?: ResourceQuickViewBinding;
497
785
  }
498
786
  interface RichKeyValueListNode extends RichBlockBaseNode {
499
787
  type: 'keyValueList';
500
788
  title?: string;
501
789
  titleExpr?: string;
502
790
  layout?: 'stacked' | 'inline';
503
- items: RichKeyValueItem[];
791
+ items?: RichKeyValueItem[];
792
+ /** Caminho opcional no contexto apontando para um array de registros a projetar em itens chave/valor. */
793
+ itemsExpr?: string;
794
+ /** Template opcional para mapear cada registro de `itemsExpr` em um `RichKeyValueItem`. */
795
+ itemTemplate?: RichKeyValueItem;
504
796
  }
505
797
  type RichPropertySheetColumns = 1 | 2;
506
798
  type RichPropertySheetTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
@@ -514,6 +806,7 @@ interface RichPropertySheetItem {
514
806
  hintExpr?: string;
515
807
  icon?: string;
516
808
  tone?: RichPropertySheetTone;
809
+ quickView?: ResourceQuickViewBinding;
517
810
  }
518
811
  interface RichPropertySheetNode extends RichBlockBaseNode {
519
812
  type: 'propertySheet';
@@ -581,7 +874,11 @@ interface RichStatGroupNode extends RichBlockBaseNode {
581
874
  headerSpacing?: RichStatGroupHeaderSpacing;
582
875
  tileLayout?: RichStatGroupTileLayout;
583
876
  layout?: RichStatGroupLayout;
584
- items: RichStatItem[];
877
+ items?: RichStatItem[];
878
+ /** Caminho opcional no contexto apontando para um array de métricas/registros a projetar em cartões de KPI. */
879
+ itemsExpr?: string;
880
+ /** Template opcional para mapear cada registro de `itemsExpr` em um `RichStatItem`. */
881
+ itemTemplate?: RichStatItem;
585
882
  }
586
883
  type RichTabsAppearance = 'underline' | 'pills';
587
884
  interface RichTabsItem extends RichBlockRuleSet {
@@ -622,6 +919,7 @@ interface RichRecordSummaryField {
622
919
  labelExpr?: string;
623
920
  value?: string;
624
921
  valueExpr?: string;
922
+ quickView?: ResourceQuickViewBinding;
625
923
  }
626
924
  interface RichRecordSummaryNode extends RichBlockBaseNode {
627
925
  type: 'recordSummary';
@@ -633,6 +931,7 @@ interface RichRecordSummaryNode extends RichBlockBaseNode {
633
931
  metaExpr?: string;
634
932
  fields: RichRecordSummaryField[];
635
933
  actions?: RichActionButtonNode[];
934
+ quickView?: ResourceQuickViewBinding;
636
935
  }
637
936
  type RichLookupResultStatus = 'idle' | 'resolved' | 'empty' | 'error';
638
937
  interface RichLookupResultField {
@@ -681,7 +980,8 @@ interface RichLookupCardNode extends RichBlockBaseNode {
681
980
  ctaIcon?: string;
682
981
  variant?: 'basic' | 'raised' | 'stroked' | 'flat';
683
982
  color?: 'basic' | 'primary' | 'accent' | 'warn';
684
- action: RichActionRef;
983
+ action?: RichActionRef;
984
+ quickView?: ResourceQuickViewBinding;
685
985
  fields: RichLookupResultField[];
686
986
  secondaryActions?: RichActionButtonNode[];
687
987
  }
@@ -702,6 +1002,8 @@ interface RichRelatedRecordNode extends RichBlockBaseNode {
702
1002
  variant?: 'basic' | 'raised' | 'stroked' | 'flat';
703
1003
  color?: 'basic' | 'primary' | 'accent' | 'warn';
704
1004
  action?: RichActionRef;
1005
+ /** Contrato opcional de Quick View governado associado ao registro relacionado. */
1006
+ quickView?: ResourceQuickViewBinding;
705
1007
  fields: RichLookupResultField[];
706
1008
  secondaryActions?: RichActionButtonNode[];
707
1009
  }
@@ -837,7 +1139,11 @@ interface RichAccordionNode extends RichBlockBaseNode {
837
1139
  title?: string;
838
1140
  titleExpr?: string;
839
1141
  multi?: boolean;
840
- items: RichAccordionItem[];
1142
+ items?: RichAccordionItem[];
1143
+ /** Caminho opcional no contexto apontando para um array de registros a projetar em painéis do accordion. */
1144
+ itemsExpr?: string;
1145
+ /** Template opcional para mapear cada registro de `itemsExpr` em um `RichAccordionItem`. */
1146
+ itemTemplate?: RichAccordionItem;
841
1147
  }
842
1148
  interface RichMediaBlockNode extends RichBlockBaseNode {
843
1149
  type: 'mediaBlock';
@@ -861,18 +1167,25 @@ interface RichTimelineItem {
861
1167
  iconExpr?: string;
862
1168
  badge?: string;
863
1169
  badgeExpr?: string;
1170
+ badgeTone?: RichTimelineColor;
1171
+ avatar?: RichAvatarNode;
1172
+ itemLayout?: RichTimelineItemLayout;
864
1173
  markerColor?: RichTimelineColor;
865
1174
  markerStyle?: RichTimelineMarkerStyle;
866
1175
  connectorColor?: RichTimelineColor;
867
1176
  connectorVariant?: RichTimelineConnectorVariant;
868
1177
  action?: RichActionRef;
1178
+ /** Contrato opcional de Quick View governado associado ao item da timeline. */
1179
+ quickView?: ResourceQuickViewBinding;
1180
+ children?: RichTimelineItem[];
869
1181
  }
870
1182
  type RichTimelinePosition = 'left' | 'right' | 'alternate' | 'alternate-reverse';
871
1183
  type RichTimelineOrientation = 'vertical' | 'horizontal';
872
1184
  type RichTimelineOrder = 'normal' | 'reverse';
873
1185
  type RichTimelineConnectorVariant = 'solid' | 'dashed' | 'none';
874
1186
  type RichTimelineMarkerVariant = 'dot' | 'icon' | 'number';
875
- type RichTimelineMarkerStyle = 'filled' | 'outlined';
1187
+ type RichTimelineMarkerStyle = 'filled' | 'outlined' | 'soft';
1188
+ type RichTimelineItemLayout = 'stacked' | 'split';
876
1189
  type RichTimelineColor = RichSemanticTone;
877
1190
  type RichTimelineEmphasis = 'subtle' | 'standard' | 'strong' | 'hero';
878
1191
  type RichTimelineDensity = 'compact' | 'comfortable' | 'spacious';
@@ -885,6 +1198,7 @@ interface RichTimelineNode extends RichBlockBaseNode {
885
1198
  orientation?: RichTimelineOrientation;
886
1199
  order?: RichTimelineOrder;
887
1200
  position?: RichTimelinePosition;
1201
+ itemLayout?: RichTimelineItemLayout;
888
1202
  connectorVariant?: RichTimelineConnectorVariant;
889
1203
  connectorColor?: RichTimelineColor;
890
1204
  markerVariant?: RichTimelineMarkerVariant;
@@ -893,7 +1207,10 @@ interface RichTimelineNode extends RichBlockBaseNode {
893
1207
  emphasis?: RichTimelineEmphasis;
894
1208
  density?: RichTimelineDensity;
895
1209
  textAppearance?: RichTimelineTextAppearance;
896
- items: RichTimelineItem[];
1210
+ initialLimit?: number;
1211
+ items?: RichTimelineItem[];
1212
+ itemsExpr?: string;
1213
+ itemTemplate?: RichTimelineItem;
897
1214
  }
898
1215
  type CorePresetKind = 'surface-open' | 'widget-page-layout' | 'widget-page-theme' | 'editorial-theme' | 'editorial-compliance' | 'editorial-solution' | 'rich-block';
899
1216
  interface CorePresetRef {
@@ -918,22 +1235,6 @@ interface RichContentDocument {
918
1235
  nodes: RichBlockNode[];
919
1236
  }
920
1237
 
921
- interface GlobalActionRef {
922
- actionId: string;
923
- payload?: any;
924
- payloadExpr?: string;
925
- meta?: {
926
- label?: string;
927
- icon?: string;
928
- emitLocal?: boolean;
929
- confirmation?: any;
930
- [key: string]: any;
931
- };
932
- }
933
-
934
- type PraxisExportFormat = 'excel' | 'pdf' | 'csv' | 'json' | 'print';
935
- type PraxisExportScope = 'auto' | 'selected' | 'filtered' | 'currentPage' | 'all';
936
-
937
1238
  interface PraxisRuntimeGlobalActionEffect {
938
1239
  id?: string;
939
1240
  kind: 'global-action';
@@ -941,116 +1242,23 @@ interface PraxisRuntimeGlobalActionEffect {
941
1242
  }
942
1243
 
943
1244
  /**
944
- * Contratos compartilhados de discovery semantico consumidos pelo runtime Angular.
945
- *
946
- * `resourcePath` continua sendo o endereco operacional do recurso.
947
- * `resourceKey` representa a identidade semantica estavel devolvida pelo backend para
948
- * surfaces, actions e capabilities.
949
- *
950
- * O runtime usa `resourceKey` para preservar contexto semantico e gerar ids estaveis de
951
- * abertura, enquanto `resourcePath`, `path`, `method` e `schemaUrl` seguem responsaveis pelo
952
- * comportamento operacional.
1245
+ * Contrato canônico de filtros rápidos (`quickFilters`) compartilhado entre
1246
+ * `x-ui.resource.quickFilters`, `GenericCrudService`, `<praxis-table>`,
1247
+ * `<praxis-scope-bar>`, `<praxis-crud>` e `<praxis-resource-page>`.
953
1248
  */
954
-
955
- interface ResourceAvailabilityDecision {
956
- allowed: boolean;
957
- reason?: string | null;
958
- metadata?: Record<string, any>;
959
- }
960
- type ResourceSurfaceKind = 'FORM' | 'PARTIAL_FORM' | 'VIEW' | 'READ_PROJECTION';
961
- type ResourceSurfaceScope = 'COLLECTION' | 'ITEM';
962
- type ResourceSurfaceResponseCardinality = 'OBJECT' | 'COLLECTION' | 'PAGE' | 'VOID' | 'UNKNOWN';
963
- type RelatedResourceChildOperation = 'FILTER' | 'LIST' | 'CREATE' | 'UPDATE' | 'DELETE' | 'DUPLICATE_DRAFT';
964
- interface RelatedResourceSurface {
965
- parentResourceKey: string;
966
- parentIdPathVariable: string;
967
- childResourceKey: string;
968
- childResourcePath: string;
969
- childParentField: string;
970
- selectable: boolean;
971
- selectionKeyField: string;
972
- childOperations: RelatedResourceChildOperation[];
973
- }
974
- interface ResourceSurfaceCatalogItem {
1249
+ type PraxisQuickFilterTone = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'ready';
1250
+ interface PraxisResourceQuickFilter {
975
1251
  id: string;
976
- resourceKey: string;
977
- kind: ResourceSurfaceKind;
978
- scope: ResourceSurfaceScope;
979
- title: string;
980
- description?: string | null;
981
- intent?: string | null;
982
- operationId: string;
983
- path: string;
984
- method: string;
985
- schemaId: string;
986
- schemaUrl: string;
987
- responseCardinality?: ResourceSurfaceResponseCardinality | null;
988
- availability: ResourceAvailabilityDecision;
989
- order: number;
990
- tags: string[];
991
- relatedResource?: RelatedResourceSurface | null;
992
- }
993
-
994
- type FieldPresentationTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
995
- type FieldPresentationAppearance = 'plain' | 'soft' | 'outlined' | 'filled';
996
- type FieldPresenterKind = 'text' | 'badge' | 'chip' | 'status' | 'iconValue' | 'progress' | 'rating' | 'microVisualization';
997
- interface FieldPresentationInteractions {
998
- /** Allows readonly surfaces to expose a copy affordance without changing the field value. */
999
- copy?: boolean;
1000
- /** Allows readonly surfaces to expose contextual detail expansion. */
1001
- details?: boolean;
1002
- /** Allows readonly surfaces to expose inline expansion for long values. */
1003
- expand?: boolean;
1004
- /** Allows readonly surfaces to expose a link affordance when the value is navigable. */
1005
- link?: boolean;
1006
- }
1007
- interface FieldPresentationConfig {
1008
- /** Semantic display strategy for readonly/presentation surfaces. */
1009
- presenter?: FieldPresenterKind;
1010
- /** Alias accepted for schema authors that describe the semantic display as a variant. */
1011
- variant?: FieldPresenterKind;
1012
- /** Semantic tone mapped by consumers to theme tokens. */
1013
- tone?: FieldPresentationTone;
1014
- /** Material Symbols icon name, without arbitrary HTML. */
1252
+ label: string;
1253
+ filter: Record<string, any> | string;
1015
1254
  icon?: string;
1016
- /** Optional semantic label for status/chip/badge presentations. */
1017
- label?: string;
1018
- /** Optional secondary marker rendered by presentation-capable consumers. */
1019
- badge?: string;
1020
- /** Optional tooltip text for the presentation wrapper. */
1255
+ tone?: PraxisQuickFilterTone;
1256
+ isDefault?: boolean;
1257
+ description?: string;
1258
+ order?: number;
1259
+ badge?: string | number;
1260
+ count?: number | null;
1021
1261
  tooltip?: string;
1022
- /** Optional readonly prefix rendered next to the displayed value without changing the raw value. */
1023
- prefix?: string;
1024
- /** Optional readonly suffix rendered next to the displayed value without changing the raw value. */
1025
- suffix?: string;
1026
- /** Optional icon override when the field resolves to a truthy boolean state. */
1027
- iconTrue?: string;
1028
- /** Optional icon override when the field resolves to a falsy boolean state. */
1029
- iconFalse?: string;
1030
- /** Optional semantic tone when the field resolves to a truthy boolean state. */
1031
- toneTrue?: FieldPresentationTone;
1032
- /** Optional semantic tone when the field resolves to a falsy boolean state. */
1033
- toneFalse?: FieldPresentationTone;
1034
- /** Optional display label when the field resolves to a truthy boolean state. */
1035
- labelTrue?: string;
1036
- /** Optional display label when the field resolves to a falsy boolean state. */
1037
- labelFalse?: string;
1038
- /** Visual density/emphasis strategy mapped by consumers to theme tokens. */
1039
- appearance?: FieldPresentationAppearance;
1040
- /** Optional formatter override for the presentation surface only. */
1041
- valuePresentation?: ValuePresentationConfig;
1042
- /** Renderer-neutral micro visualization metadata for compact presentation surfaces. */
1043
- visualization?: PraxisPresentationVisualizationConfig;
1044
- /** Safe readonly affordances. No commands or mutations are executed from this contract. */
1045
- interactions?: FieldPresentationInteractions;
1046
- }
1047
- interface FieldPresentationRule {
1048
- /** Json Logic guard evaluated against the presentation context. */
1049
- when: JsonLogicExpression;
1050
- /** Semantic presentation state merged when the guard is truthy. */
1051
- set?: FieldPresentationConfig;
1052
- /** Alias for `set`, useful for rule-builder terminology. */
1053
- effect?: FieldPresentationConfig;
1054
1262
  }
1055
1263
 
1056
1264
  interface TableTooltipConfig {
@@ -1098,6 +1306,8 @@ interface ColumnDefinition {
1098
1306
  headerCssClass?: string;
1099
1307
  /** Formato de exibição dos dados */
1100
1308
  format?: any;
1309
+ /** Texto exibido quando o valor resolvido da célula for null, undefined ou string vazia, sem alterar o dado bruto ou a ordenação. */
1310
+ emptyValue?: string;
1101
1311
  /** Coluna calculada baseada em expressão */
1102
1312
  computed?: {
1103
1313
  /** Expressão segura baseada em campos da linha */
@@ -1147,6 +1357,8 @@ interface ColumnDefinition {
1147
1357
  prefix?: string;
1148
1358
  /** Sufixo visual aplicado ao texto do renderer sem alterar o valor bruto. */
1149
1359
  suffix?: string;
1360
+ /** Contrato declarativo de Quick View governado associado ao ícone/valor. */
1361
+ quickView?: ResourceQuickViewBinding;
1150
1362
  };
1151
1363
  /** Configuração de imagem */
1152
1364
  image?: {
@@ -1182,6 +1394,8 @@ interface ColumnDefinition {
1182
1394
  icon?: string;
1183
1395
  /** Tooltip opcional associado ao indicador visual */
1184
1396
  tooltip?: TableTooltipConfig;
1397
+ /** Contrato declarativo de Quick View governado associado ao badge. */
1398
+ quickView?: ResourceQuickViewBinding;
1185
1399
  };
1186
1400
  /** Link (sanitizado) */
1187
1401
  link?: {
@@ -1191,6 +1405,8 @@ interface ColumnDefinition {
1191
1405
  hrefField?: string;
1192
1406
  target?: '_blank' | '_self' | '_parent' | '_top';
1193
1407
  rel?: string;
1408
+ /** Contrato declarativo de Quick View governado associado ao link. */
1409
+ quickView?: ResourceQuickViewBinding;
1194
1410
  };
1195
1411
  /** Botão (ação por linha) */
1196
1412
  button?: {
@@ -1216,6 +1432,8 @@ interface ColumnDefinition {
1216
1432
  variant?: 'filled' | 'outlined' | 'soft' | 'plain';
1217
1433
  /** Tooltip opcional associado ao chip */
1218
1434
  tooltip?: TableTooltipConfig;
1435
+ /** Contrato declarativo de Quick View governado associado ao chip. */
1436
+ quickView?: ResourceQuickViewBinding;
1219
1437
  };
1220
1438
  /** Barra de progresso leve */
1221
1439
  progress?: {
@@ -1278,7 +1496,10 @@ interface ColumnDefinition {
1278
1496
  textField?: string;
1279
1497
  valueField?: string;
1280
1498
  text?: string;
1499
+ prefix?: string;
1500
+ suffix?: string;
1281
1501
  emphasis?: 'strong' | 'subtle';
1502
+ quickView?: ResourceQuickViewBinding;
1282
1503
  } | {
1283
1504
  type: 'icon';
1284
1505
  icon?: {
@@ -1291,6 +1512,7 @@ interface ColumnDefinition {
1291
1512
  ariaLabel?: string;
1292
1513
  prefix?: string;
1293
1514
  suffix?: string;
1515
+ quickView?: ResourceQuickViewBinding;
1294
1516
  };
1295
1517
  } | {
1296
1518
  type: 'image';
@@ -1314,6 +1536,7 @@ interface ColumnDefinition {
1314
1536
  variant?: 'filled' | 'outlined' | 'soft' | 'plain';
1315
1537
  icon?: string;
1316
1538
  tooltip?: TableTooltipConfig;
1539
+ quickView?: ResourceQuickViewBinding;
1317
1540
  };
1318
1541
  } | {
1319
1542
  type: 'link';
@@ -1324,6 +1547,7 @@ interface ColumnDefinition {
1324
1547
  hrefField?: string;
1325
1548
  target?: '_blank' | '_self' | '_parent' | '_top';
1326
1549
  rel?: string;
1550
+ quickView?: ResourceQuickViewBinding;
1327
1551
  };
1328
1552
  } | {
1329
1553
  type: 'button';
@@ -1349,6 +1573,7 @@ interface ColumnDefinition {
1349
1573
  icon?: string;
1350
1574
  variant?: 'filled' | 'outlined' | 'soft' | 'plain';
1351
1575
  tooltip?: TableTooltipConfig;
1576
+ quickView?: ResourceQuickViewBinding;
1352
1577
  };
1353
1578
  } | {
1354
1579
  type: 'progress';
@@ -1411,7 +1636,14 @@ interface ColumnDefinition {
1411
1636
  };
1412
1637
  }>;
1413
1638
  layout?: {
1414
- direction?: 'row' | 'column';
1639
+ /**
1640
+ * `row`: todos os itens na mesma linha.
1641
+ * `column`: todos os itens empilhados.
1642
+ * `media`: padrão "media object" — o primeiro item (avatar, imagem ou ícone)
1643
+ * fica ancorado à esquerda e os demais itens empilham-se em linhas à direita
1644
+ * (ex.: avatar + nome em destaque + código/e-mail sutil).
1645
+ */
1646
+ direction?: 'row' | 'column' | 'media';
1415
1647
  gap?: number;
1416
1648
  align?: 'start' | 'center' | 'end';
1417
1649
  wrap?: boolean;
@@ -1419,6 +1651,12 @@ interface ColumnDefinition {
1419
1651
  };
1420
1652
  };
1421
1653
  };
1654
+ /**
1655
+ * Contrato declarativo e serializável de Quick View governado para a célula/coluna.
1656
+ * Pode ser especializado individualmente em `renderer.link.quickView`, `renderer.badge.quickView`,
1657
+ * `renderer.chip.quickView`, `renderer.icon.quickView` ou em itens de `renderer.compose.items`.
1658
+ */
1659
+ quickView?: ResourceQuickViewBinding;
1422
1660
  /** Overrides condicionais do renderer por linha (first‑match wins) */
1423
1661
  conditionalRenderers?: Array<{
1424
1662
  /** Identificador estável usado para reconciliação e deduplicação de regras authoradas. */
@@ -1514,6 +1752,8 @@ interface ConfigMetadata {
1514
1752
  serverHash?: string;
1515
1753
  /** Campo identificador preferido pelo usuário para o recurso (ex.: 'id', 'codigo') */
1516
1754
  idField?: string;
1755
+ /** Caminho canônico do recurso associado à configuração persistida (ex.: 'workforce/employees') */
1756
+ resourcePath?: string;
1517
1757
  /** Contexto de schema associado (útil para auditoria/telemetria) */
1518
1758
  schemaContext?: {
1519
1759
  path: string;
@@ -1749,8 +1989,8 @@ interface PaginationConfig {
1749
1989
  style: 'default' | 'simple' | 'advanced' | 'compact';
1750
1990
  /** Total de itens (para paginação server-side) */
1751
1991
  totalItems?: number;
1752
- /** Estratégia de paginação */
1753
- strategy: 'client' | 'server';
1992
+ /** Se omitida, o runtime usa server para recurso remoto e client para dados locais. */
1993
+ strategy?: 'client' | 'server';
1754
1994
  /** Configurações avançadas */
1755
1995
  advanced?: {
1756
1996
  /** Jump to page input */
@@ -1774,8 +2014,8 @@ interface SortingConfig {
1774
2014
  }>;
1775
2015
  /** Permitir ordenação múltipla */
1776
2016
  multiSort: boolean;
1777
- /** Estratégia de ordenação */
1778
- strategy: 'client' | 'server';
2017
+ /** Se omitida, o runtime usa server para recurso remoto e client para dados locais. */
2018
+ strategy?: 'client' | 'server';
1779
2019
  /** Mostrar indicadores visuais de ordenação */
1780
2020
  showSortIndicators: boolean;
1781
2021
  /** Posição dos indicadores */
@@ -1834,18 +2074,20 @@ interface FilterPresentationConfig {
1834
2074
  }
1835
2075
  interface FilteringConfig {
1836
2076
  /** Habilitar filtragem */
1837
- enabled: boolean;
2077
+ enabled?: boolean;
1838
2078
  /** Filtros por coluna */
1839
2079
  columnFilters?: {
1840
- enabled: boolean;
1841
- /** Tipo de filtro padrão */
1842
- defaultType: 'text' | 'select' | 'date' | 'number' | 'boolean';
1843
- /** Posição dos filtros */
1844
- position: 'header' | 'subheader' | 'sidebar';
2080
+ enabled?: boolean;
2081
+ /** Tipo de filtro padrão (opcional, padrão 'text') */
2082
+ defaultType?: 'text' | 'select' | 'date' | 'number' | 'boolean';
2083
+ /** Posição dos filtros (opcional, padrão 'header') */
2084
+ position?: 'header' | 'subheader' | 'sidebar';
1845
2085
  };
1846
2086
  /** Filtros avançados */
1847
2087
  advancedFilters?: {
1848
- enabled: boolean;
2088
+ enabled?: boolean;
2089
+ /** URL explícita para o schema do filtro (se omitida, inferida pelo host/CRUD a partir do resource.path) */
2090
+ schemaUrl?: string;
1849
2091
  /** Interface de query builder */
1850
2092
  queryBuilder?: boolean;
1851
2093
  /** Salvar filtros como presets */
@@ -1853,6 +2095,22 @@ interface FilteringConfig {
1853
2095
  /** Configurações específicas do componente praxis-filter */
1854
2096
  settings?: {
1855
2097
  presentation?: FilterPresentationConfig;
2098
+ /** Renderização inline de campos do filtro */
2099
+ inline?: boolean;
2100
+ /** Usar variante de seleção inline pesquisável */
2101
+ useInlineSearchableSelectVariant?: boolean;
2102
+ /** Usar variante inline para campos de slider ou intervalo numérico */
2103
+ useInlineRangeVariant?: boolean;
2104
+ /** Usar variante inline para campos de data */
2105
+ useInlineDateVariant?: boolean;
2106
+ /** Usar variante inline para campos de intervalo de datas (dateRange) */
2107
+ useInlineDateRangeVariant?: boolean;
2108
+ /** Usar variante inline para campos de horário */
2109
+ useInlineTimeVariant?: boolean;
2110
+ /** Usar variante inline para campos de intervalo de horários */
2111
+ useInlineTimeRangeVariant?: boolean;
2112
+ /** Usar variante inline para seleção em árvore (treeSelect) */
2113
+ useInlineTreeSelectVariant?: boolean;
1856
2114
  /** Campos sempre visíveis */
1857
2115
  alwaysVisibleFields?: string[];
1858
2116
  /** Overrides de metadata por campo sempre visível (merge sobre o DTO de filtro) */
@@ -1861,6 +2119,10 @@ interface FilteringConfig {
1861
2119
  selectedFieldIds?: string[];
1862
2120
  /** Exibir opções avançadas por padrão */
1863
2121
  showAdvanced?: boolean;
2122
+ /** Exibir botão "Gerenciar campos" na barra do filtro (padrão: true) */
2123
+ showAddButton?: boolean;
2124
+ /** Exibir botão "Configurações do filtro" na barra quando customização estiver disponível (padrão: true) */
2125
+ showFilterSettings?: boolean;
1864
2126
  /** Permitir salvar tags/atalhos de filtro */
1865
2127
  allowSaveTags?: boolean;
1866
2128
  /** Atalhos governados, somente leitura, aplicados como patch do DTO de filtro */
@@ -1909,10 +2171,10 @@ interface FilteringConfig {
1909
2171
  enablePerformanceMetrics?: boolean;
1910
2172
  };
1911
2173
  };
1912
- /** Estratégia de filtragem */
1913
- strategy: 'client' | 'server';
1914
- /** Debounce para filtros em tempo real (ms) */
1915
- debounceTime: number;
2174
+ /** Estratégia de filtragem (opcional, padrão 'server' ou 'client' pelo modo) */
2175
+ strategy?: 'client' | 'server';
2176
+ /** Debounce para filtros em tempo real (ms, opcional) */
2177
+ debounceTime?: number;
1916
2178
  }
1917
2179
  interface SelectionConfig {
1918
2180
  /** Habilitar seleção de linhas */
@@ -1921,6 +2183,8 @@ interface SelectionConfig {
1921
2183
  type: 'single' | 'multiple';
1922
2184
  /** Modo de seleção */
1923
2185
  mode: 'checkbox' | 'row' | 'both';
2186
+ /** Permitir desselecionar a linha ao clicar ou ativar novamente em seleção única. */
2187
+ allowDeselect?: boolean;
1924
2188
  /** Permitir selecionar todas as linhas */
1925
2189
  allowSelectAll: boolean;
1926
2190
  /** Posição do checkbox de seleção */
@@ -2219,10 +2483,10 @@ interface ElevationConfig {
2219
2483
  hoverElevation?: number;
2220
2484
  }
2221
2485
  interface ToolbarConfig {
2222
- /** Visibilidade da toolbar */
2223
- visible: boolean;
2224
- /** Posição da toolbar */
2225
- position: 'top' | 'bottom' | 'both';
2486
+ /** Visibilidade da toolbar (opcional, padrão true) */
2487
+ visible?: boolean;
2488
+ /** Posição da toolbar (opcional, padrão 'top') */
2489
+ position?: 'top' | 'bottom' | 'both';
2226
2490
  /** Posição das ações da toolbar */
2227
2491
  actionsPosition?: 'top' | 'bottom' | 'both';
2228
2492
  /** Cor de fundo da barra de ações */
@@ -2247,6 +2511,12 @@ interface ToolbarConfig {
2247
2511
  textAlign?: 'start' | 'center' | 'end';
2248
2512
  /** Ações da toolbar */
2249
2513
  actions?: ToolbarAction[];
2514
+ /** Configuração de busca rápida na toolbar */
2515
+ search?: {
2516
+ enabled?: boolean;
2517
+ placeholder?: string;
2518
+ debounceTime?: number;
2519
+ };
2250
2520
  /** Configurações de filtros na toolbar */
2251
2521
  filters?: ToolbarFilterConfig;
2252
2522
  /** Menu de configurações */
@@ -2330,6 +2600,8 @@ interface ToolbarAction {
2330
2600
  effects?: PraxisRuntimeGlobalActionEffect[];
2331
2601
  /** Tooltip */
2332
2602
  tooltip?: string;
2603
+ /** Descrição semântica da ação para descoberta, acessibilidade e operações de governança */
2604
+ description?: string;
2333
2605
  /** Tecla de atalho */
2334
2606
  shortcut?: string;
2335
2607
  /** Escopo do atalho: somente toolbar ativa ou global */
@@ -2349,12 +2621,7 @@ interface ToolbarFilterConfig {
2349
2621
  /** Habilitar filtros rápidos na toolbar */
2350
2622
  enabled: boolean;
2351
2623
  /** Filtros rápidos disponíveis */
2352
- quickFilters?: Array<{
2353
- id: string;
2354
- label: string;
2355
- filter: any;
2356
- icon?: string;
2357
- }>;
2624
+ quickFilters?: PraxisResourceQuickFilter[];
2358
2625
  /** Mostrar botões de filtros rápidos na toolbar (default: true) */
2359
2626
  showQuickFilters?: boolean;
2360
2627
  /** Mostrar botão de filtros avançados */
@@ -2473,6 +2740,8 @@ interface RowAction {
2473
2740
  effects?: PraxisRuntimeGlobalActionEffect[];
2474
2741
  /** Surface de registro canonica aberta por esta acao de linha */
2475
2742
  recordSurface?: ResourceSurfaceCatalogItem;
2743
+ /** Contrato declarativo de Quick View governado aberto ancorado ao gatilho desta ação de linha */
2744
+ quickView?: ResourceQuickViewBinding;
2476
2745
  /** Tooltip */
2477
2746
  tooltip?: string;
2478
2747
  /** Requer confirmação */
@@ -2803,6 +3072,11 @@ interface TableDrawerConfig {
2803
3072
  tabs?: PraxisAnalyticalDrawerTab[];
2804
3073
  /** Orquestração declarativa de sub-recursos e relações vinculadas (Issue #32) */
2805
3074
  relations?: PraxisAnalyticalDrawerRelation[];
3075
+ /**
3076
+ * Quando verdadeiro em uma configuração local/DI, hidrata automaticamente `x-ui.calculationMemory`
3077
+ * publicado pelo DTO backend (`@CalculationMemory` — PLAT-EVO-20) sem duplicar trilhas no frontend.
3078
+ */
3079
+ hydrateRemoteCalculationMemory?: boolean;
2806
3080
  }
2807
3081
  /**
2808
3082
  * Esquema estrutural canônico para gavetas analíticas e dossiês multi-aba (`kind: 'praxis.analytical-drawer.schema'`).
@@ -2814,8 +3088,182 @@ interface PraxisAnalyticalDrawerSchema {
2814
3088
  subtitleExpr?: string;
2815
3089
  icon?: string;
2816
3090
  classificationPill?: string;
2817
- tabs: PraxisAnalyticalDrawerTab[];
3091
+ tabs?: PraxisAnalyticalDrawerTab[];
2818
3092
  relations?: PraxisAnalyticalDrawerRelation[];
3093
+ /**
3094
+ * Seção nativa de Memória de Cálculo Explicável (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado + Fundamentação Legal`).
3095
+ * Permite que hosts de Folha, Tributos ou Faturamento exibam explicabilidade algorítmica declarativamente via JSON/schema.
3096
+ */
3097
+ calculationMemory?: PraxisAnalyticalDrawerCalculationMemoryContent | PraxisAnalyticalDrawerCalculationTrail[];
3098
+ /**
3099
+ * Hidrata automaticamente `x-ui.calculationMemory` publicado pelo `ResponseDTO` backend (`@CalculationMemory` — PLAT-EVO-20)
3100
+ * sobre o dossiê local registrado no `AnalyticalDrawerRegistryService`.
3101
+ */
3102
+ hydrateRemoteCalculationMemory?: boolean;
3103
+ }
3104
+ /**
3105
+ * Papel semântico de uma etapa dentro de uma trilha de memória de cálculo.
3106
+ */
3107
+ type PraxisAnalyticalDrawerCalculationStepRole = 'base' | 'factor' | 'cap' | 'target' | 'deduction' | 'addition' | 'subtotal' | 'result' | 'custom';
3108
+ /**
3109
+ * Etapa individual na sequência algorítmica de memória de cálculo
3110
+ * (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado`).
3111
+ */
3112
+ interface PraxisAnalyticalDrawerCalculationStep {
3113
+ /** Papel semântico da etapa (ex.: 'base', 'factor', 'cap', 'subtotal', 'result'). */
3114
+ role?: PraxisAnalyticalDrawerCalculationStepRole;
3115
+ /** Discriminador canônico de etapa emitido por `@CalculationStep` (`x-ui.calculationMemory`). */
3116
+ kind?: PraxisAnalyticalDrawerCalculationStepRole;
3117
+ /** Rótulo exibido na etapa (ex.: 'Base de Cálculo', 'Fator / Alíquota', 'Trava / Teto', 'Resultado'). */
3118
+ label: string;
3119
+ /** Valor estático opcional quando não derivado por expressão. */
3120
+ value?: unknown;
3121
+ /** Expressão avaliada contra `{ row, relations, env }` via `SafeExpressionEvaluator`. */
3122
+ valueExpr?: string;
3123
+ /** Alias direto de expressão emitido por `@CalculationStep`. */
3124
+ expr?: string;
3125
+ /** Operador matemático ou lógico exibido antes da etapa (ex.: '×', '÷', '+', '-', '≤', '='). */
3126
+ operator?: string;
3127
+ /** Formato de apresentação ('currency:BRL', 'percent', 'number', 'integer', 'text'). */
3128
+ format?: string;
3129
+ /** Nota ou fórmula curta auxiliar sob o valor da etapa. */
3130
+ hint?: string;
3131
+ /** Expressão opcional para nota/fórmula curta auxiliar. */
3132
+ hintExpr?: string;
3133
+ /** Referência normativa específica da etapa (`@CalculationStep.legalBasis`). */
3134
+ legalBasis?: string;
3135
+ /** Ícone Material opcional da etapa. */
3136
+ icon?: string;
3137
+ /** Tom visual da etapa (ex.: 'neutral', 'info', 'warning', 'success', 'danger', 'primary'). */
3138
+ tone?: string;
3139
+ }
3140
+ /**
3141
+ * Trilha estruturada de memória de cálculo explicável
3142
+ * (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado + Fundamentação Legal`).
3143
+ */
3144
+ interface PraxisAnalyticalDrawerCalculationTrail {
3145
+ /** Identificador único da trilha de cálculo (ex.: 'terco-ferias', 'abate-teto', 'irrf'). */
3146
+ id?: string;
3147
+ /** Título da memória de cálculo. */
3148
+ title?: string;
3149
+ /** Expressão opcional para título dinâmico da trilha. */
3150
+ titleExpr?: string;
3151
+ /** Subtítulo ou rubrica/competência. */
3152
+ subtitle?: string;
3153
+ /** Expressão opcional para subtítulo dinâmico. */
3154
+ subtitleExpr?: string;
3155
+ /** Ícone Material da trilha (padrão: 'calculate'). */
3156
+ icon?: string;
3157
+ /** Código da regra determinística ou rubrica que originou o cálculo. */
3158
+ ruleCode?: string;
3159
+ /** Expressão opcional para o código da regra/rubrica. */
3160
+ ruleCodeExpr?: string;
3161
+ /** Expressão algébrica legível da fórmula (ex.: 'min(Base × Alíquota, Teto)'). */
3162
+ formula?: string;
3163
+ /** Expressão opcional para fórmula algébrica dinâmica. */
3164
+ formulaExpr?: string;
3165
+ baseLabel?: string;
3166
+ baseValue?: unknown;
3167
+ baseExpr?: string;
3168
+ baseFormat?: string;
3169
+ baseHint?: string;
3170
+ baseHintExpr?: string;
3171
+ additionLabel?: string;
3172
+ additionValue?: unknown;
3173
+ additionExpr?: string;
3174
+ additionFormat?: string;
3175
+ additionHint?: string;
3176
+ additionHintExpr?: string;
3177
+ deductionLabel?: string;
3178
+ deductionValue?: unknown;
3179
+ deductionExpr?: string;
3180
+ deductionFormat?: string;
3181
+ deductionHint?: string;
3182
+ deductionHintExpr?: string;
3183
+ factorLabel?: string;
3184
+ factorValue?: unknown;
3185
+ factorExpr?: string;
3186
+ factorFormat?: string;
3187
+ factorHint?: string;
3188
+ factorHintExpr?: string;
3189
+ capLabel?: string;
3190
+ capOperator?: string;
3191
+ capValue?: unknown;
3192
+ capExpr?: string;
3193
+ capFormat?: string;
3194
+ capHint?: string;
3195
+ capHintExpr?: string;
3196
+ targetLabel?: string;
3197
+ targetValue?: unknown;
3198
+ targetExpr?: string;
3199
+ targetFormat?: string;
3200
+ targetHint?: string;
3201
+ targetHintExpr?: string;
3202
+ resultLabel?: string;
3203
+ resultValue?: unknown;
3204
+ resultExpr?: string;
3205
+ resultFormat?: string;
3206
+ resultHint?: string;
3207
+ resultHintExpr?: string;
3208
+ resultTone?: string;
3209
+ /**
3210
+ * Sequência explícita de etapas (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado`).
3211
+ * Quando omitida, o componente sintetiza automaticamente os estágios configurados em
3212
+ * `base*`, `addition*`, `deduction*`, `factor*`, `cap*` e `result*`.
3213
+ */
3214
+ steps?: PraxisAnalyticalDrawerCalculationStep[];
3215
+ /** Fundamentação legal ou normativa (ex.: 'CF/88, art. 7º, XVII; Lei 8.112/1990, art. 76'). */
3216
+ legalBasis?: string;
3217
+ /** Expressão opcional para fundamentação legal dinâmica a partir da linha ou relação. */
3218
+ legalBasisExpr?: string;
3219
+ /** Finalidade legal ou nota de conformidade normativa. */
3220
+ legalPurpose?: string;
3221
+ /** Expressão opcional para finalidade legal dinâmica. */
3222
+ legalPurposeExpr?: string;
3223
+ /** Condição opcional (`SafeExpressionEvaluator`) para exibir a trilha apenas quando aplicável. */
3224
+ visibleWhen?: string;
3225
+ }
3226
+ /**
3227
+ * Bloco declarativo de Memória de Cálculo Explicável para abas ou seções do `<praxis-analytical-drawer>`.
3228
+ */
3229
+ interface PraxisAnalyticalDrawerCalculationMemoryContent {
3230
+ type: 'calculationMemory';
3231
+ /** Título opcional da seção de memória de cálculo. */
3232
+ title?: string;
3233
+ /** Expressão opcional para título dinâmico da seção. */
3234
+ titleExpr?: string;
3235
+ /** Subtítulo ou resumo explicativo da seção. */
3236
+ subtitle?: string;
3237
+ /** Expressão opcional para subtítulo dinâmico da seção. */
3238
+ subtitleExpr?: string;
3239
+ /** Ícone opcional da seção (padrão: 'calculate'). */
3240
+ icon?: string;
3241
+ /** Lista declarativa de trilhas de memória de cálculo. */
3242
+ trails?: PraxisAnalyticalDrawerCalculationTrail[];
3243
+ /** Expressão opcional (`SafeExpressionEvaluator`) que resolve trilhas dinâmicas vindas do backend. */
3244
+ trailsExpr?: string;
3245
+ /** Fundamentação legal geral da seção quando compartilhada pelas trilhas. */
3246
+ legalBasis?: string;
3247
+ /** Expressão opcional para fundamentação legal geral da seção. */
3248
+ legalBasisExpr?: string;
3249
+ /** Mensagem exibida quando nenhuma trilha for aplicável para o registro atual. */
3250
+ emptyText?: string;
3251
+ }
3252
+ /**
3253
+ * Item individual de propriedade dentro de um grid analítico em uma aba (Property Grid).
3254
+ */
3255
+ interface PraxisAnalyticalDrawerPropertyItem {
3256
+ label?: string;
3257
+ field?: string;
3258
+ icon?: string;
3259
+ valueExpr?: string;
3260
+ value?: unknown;
3261
+ format?: string;
3262
+ spanFull?: boolean;
3263
+ toneExpr?: string;
3264
+ pipe?: string;
3265
+ fallbackText?: string;
3266
+ [key: string]: unknown;
2819
3267
  }
2820
3268
  /**
2821
3269
  * Definição de aba temática dentro de uma gaveta analítica.
@@ -2826,7 +3274,9 @@ interface PraxisAnalyticalDrawerTab {
2826
3274
  icon?: string;
2827
3275
  badge?: string;
2828
3276
  count?: number;
2829
- content?: TableDetailSchemaNode | TableDetailInlineSchemaDocument | RichContentDocument | Record<string, unknown>;
3277
+ content?: TableDetailSchemaNode | TableDetailInlineSchemaDocument | RichContentDocument | PraxisAnalyticalDrawerCalculationMemoryContent | Record<string, unknown> | PraxisAnalyticalDrawerPropertyItem[] | Array<Record<string, unknown>>;
3278
+ /** Seção opcional de memória de cálculo exibida dentro desta aba analítica. */
3279
+ calculationMemory?: PraxisAnalyticalDrawerCalculationMemoryContent | PraxisAnalyticalDrawerCalculationTrail[];
2830
3280
  }
2831
3281
  /**
2832
3282
  * Contrato declarativo de sub-recurso / relação vinculada para injeção automática no contexto reativo (`context.relations`).
@@ -2887,6 +3337,8 @@ interface PraxisKpiBandCard {
2887
3337
  className?: string;
2888
3338
  /** Tooltip explicativo ao pairar o mouse */
2889
3339
  tooltip?: string;
3340
+ /** Micro-visualização declarativa opcional exibida no corpo do card KPI */
3341
+ visualization?: PraxisPresentationVisualizationConfig;
2890
3342
  }
2891
3343
  interface PraxisKpiBandConfig {
2892
3344
  /** Se a faixa de KPIs está habilitada (padrão: true quando configurada) */
@@ -3690,6 +4142,13 @@ declare const FieldControlType: {
3690
4142
  };
3691
4143
  type FieldControlType = (typeof FieldControlType)[keyof typeof FieldControlType];
3692
4144
 
4145
+ /** Scalar JSON Schema items projected by the operation schema; object collections use FieldArrayConfig. */
4146
+ interface FieldScalarItemsSchema {
4147
+ type: 'string' | 'integer' | 'number' | 'boolean';
4148
+ format?: string;
4149
+ enum?: readonly (string | number | boolean | null)[];
4150
+ }
4151
+
3693
4152
  type FormFieldHelpDisplay = 'auto' | 'inline' | 'popover' | 'hidden';
3694
4153
 
3695
4154
  /**
@@ -3906,8 +4365,27 @@ interface FieldOption {
3906
4365
  icon?: string;
3907
4366
  /** Tooltip text for option */
3908
4367
  tooltip?: string;
3909
- /** Detailed description for the option */
4368
+ /** Optional semantic visual tone mapped by UI consumers. */
4369
+ tone?: string;
4370
+ /**
4371
+ * Secondary business/domain description rendered on a dedicated line in rich selectors.
4372
+ * Do not concatenate `code` or `badge` here when those properties are populated separately.
4373
+ */
3910
4374
  description?: string;
4375
+ /**
4376
+ * Optional technical identifier, field key, or endpoint path rendered in a monospace slot
4377
+ * (both in the dropdown option and in the closed select trigger).
4378
+ */
4379
+ code?: string;
4380
+ /**
4381
+ * Optional domain group, data type, or governance badge (e.g. `"RH · Somente leitura"`, `"integer"`)
4382
+ * rendered as a pill next to the option label.
4383
+ */
4384
+ badge?: string;
4385
+ /**
4386
+ * Optional additional keywords indexed for accent-insensitive client-side search.
4387
+ */
4388
+ searchTerms?: string[];
3911
4389
  }
3912
4390
  /**
3913
4391
  * Angular Material specific styling and behavior options.
@@ -4006,6 +4484,10 @@ type FieldSubmitPolicy = 'include' | 'omit' | 'includeWhenDirty';
4006
4484
  interface FieldMetadata extends ComponentMetadata {
4007
4485
  /** Unique field identifier (required) */
4008
4486
  name: string;
4487
+ /** Backend-authored custom-field identity; `name` retains the full value path. */
4488
+ customField?: boolean;
4489
+ customFieldKey?: string;
4490
+ customFieldScope?: string;
4009
4491
  /** Display label for the field */
4010
4492
  label: string;
4011
4493
  /**
@@ -4027,6 +4509,8 @@ interface FieldMetadata extends ComponentMetadata {
4027
4509
  dataType?: FieldDataType;
4028
4510
  /** Canonical metadata for editable collection fields (`controlType: "array"`). */
4029
4511
  array?: FieldArrayConfig;
4512
+ /** Scalar array item contract projected from the operation's JSON Schema. */
4513
+ items?: FieldScalarItemsSchema;
4030
4514
  /** Optional top-level alias for collection validators mirrored into `array.collectionValidation`. */
4031
4515
  collectionValidation?: FieldArrayCollectionValidation;
4032
4516
  /** Display order in form */
@@ -4074,6 +4558,28 @@ interface FieldMetadata extends ComponentMetadata {
4074
4558
  fieldAccess?: FieldAccessMetadata;
4075
4559
  /** Field is hidden from display */
4076
4560
  hidden?: boolean;
4561
+ /** Hidden specifically in collection table columns (`x-ui.tableHidden`). */
4562
+ tableHidden?: boolean;
4563
+ /** Hidden specifically inside generated forms (`x-ui.formHidden`). */
4564
+ formHidden?: boolean;
4565
+ /** Explicit column sort order inside collection tables (`x-ui.tableOrder`). */
4566
+ tableOrder?: number;
4567
+ /** Explicit sticky side inside collection tables (`x-ui.pinned`). */
4568
+ pinned?: 'start' | 'end';
4569
+ /** Marks field as primary quick-search filter target (`x-ui.primarySearch`). */
4570
+ primarySearch?: boolean;
4571
+ /** Promotes filter field to inline/always-visible bar (`x-ui.inlineFilter`). */
4572
+ inlineFilter?: boolean;
4573
+ /** Compact alias promoting filter field to inline/always-visible bar (`x-ui.inline`). */
4574
+ inline?: boolean;
4575
+ /** Explicit 12-column responsive grid span (`x-ui.colSpan`, `1..12`). */
4576
+ colSpan?: number;
4577
+ /** Active workspace context binding contract (`x-ui.contextBinding`). */
4578
+ contextBinding?: PraxisContextBindingContract;
4579
+ /** Indicates field value must clear when cloning a draft (`x-ui.draftCleared`). */
4580
+ draftCleared?: boolean;
4581
+ /** Resource-state mutability rules (`x-ui.resourceState`). */
4582
+ resourceState?: PraxisResourceStateContract;
4077
4583
  /** Canonical conditional visibility guard for metadata-driven forms. */
4078
4584
  hiddenCondition?: JsonLogicExpression | null;
4079
4585
  /** Default value when form initializes */
@@ -4151,6 +4657,10 @@ interface FieldMetadata extends ComponentMetadata {
4151
4657
  * heuristics.
4152
4658
  */
4153
4659
  valuePresentation?: ValuePresentationConfig;
4660
+ /** Micro-visualization metadata published via `x-ui.microVisualization`. */
4661
+ microVisualization?: PraxisPresentationVisualizationConfig;
4662
+ /** Numeric format directive (`auto`, `integer`, `decimal`, `currency`, `percent`). */
4663
+ numericFormat?: 'auto' | 'integer' | 'decimal' | 'currency' | 'percent' | string;
4154
4664
  /**
4155
4665
  * Semantic presentation metadata for read-only/display surfaces.
4156
4666
  *
@@ -4163,6 +4673,14 @@ interface FieldMetadata extends ComponentMetadata {
4163
4673
  * readonly/display surfaces. Later matching rules win.
4164
4674
  */
4165
4675
  presentationRules?: FieldPresentationRule[];
4676
+ /** Indicates that this field is curated for display in the Quick View summary list. */
4677
+ quickViewVisible?: boolean;
4678
+ /** Relative order of this field in the Quick View summary list when quickViewVisible is true. */
4679
+ quickViewOrder?: number;
4680
+ /** Canonical cross-resource reference contract published in x-ui.resourceReference. */
4681
+ resourceReference?: ResourceReferenceMetadata;
4682
+ /** Declarative governed Quick View contract for reference fields. */
4683
+ quickView?: ResourceQuickViewBinding;
4166
4684
  /** Material Design specific configuration */
4167
4685
  materialDesign?: MaterialDesignConfig;
4168
4686
  /**
@@ -4172,12 +4690,22 @@ interface FieldMetadata extends ComponentMetadata {
4172
4690
  * needs platform-governed Apply/Cancel/Clear actions.
4173
4691
  */
4174
4692
  inlineOverlay?: InlineOverlayMetadata;
4693
+ /** Title displayed in the inline overlay panel header. */
4694
+ inlinePanelTitle?: string;
4695
+ /** Subtitle displayed under the inline overlay panel header title. */
4696
+ inlinePanelSubtitle?: string;
4697
+ /** Material icon ligature rendered in the inline overlay panel header badge. */
4698
+ inlinePanelIcon?: string;
4699
+ /** Theme palette token or CSS color applied to the inline overlay panel header icon. */
4700
+ inlinePanelIconColor?: string;
4175
4701
  /** Fields this field depends on */
4176
4702
  dependencyFields?: string[];
4177
4703
  /** Canonical conditional required guard for metadata-driven forms. */
4178
4704
  conditionalRequired?: JsonLogicExpression | null;
4179
4705
  /** Canonical conditional visibility guard for metadata-driven forms. */
4180
4706
  conditionalDisplay?: JsonLogicExpression | null;
4707
+ /** Conditional read-only guard (`x-ui.conditionalReadOnly`). */
4708
+ conditionalReadOnly?: JsonLogicExpression | string | null;
4181
4709
  /** Reset value when dependency changes */
4182
4710
  resetOnDependentChange?: boolean;
4183
4711
  /** Enable native field-to-field dependency cascade inside the same form */
@@ -4210,10 +4738,6 @@ interface FieldMetadata extends ComponentMetadata {
4210
4738
  textTransformApply?: 'displayOnly' | 'saveOnly' | 'both';
4211
4739
  /** Contexts where field should be visible */
4212
4740
  visibleIn?: Array<'form' | 'filter' | 'table' | 'dialog'>;
4213
- /** Hide in specific form contexts */
4214
- formHidden?: boolean;
4215
- /** Hide in table contexts */
4216
- tableHidden?: boolean;
4217
4741
  /** Hide in filter contexts */
4218
4742
  filterHidden?: boolean;
4219
4743
  /** ARIA label for screen readers */
@@ -4232,6 +4756,21 @@ interface FieldAccessMetadata {
4232
4756
  reason?: string;
4233
4757
  }
4234
4758
 
4759
+ /**
4760
+ * Supported operator modes for inline monetary range controls.
4761
+ */
4762
+ type InlineCurrencyRangeOperatorMode = 'between' | 'gte' | 'lte' | 'eq';
4763
+
4764
+ type PraxisContextBindingDimension = 'organization' | 'company_group' | 'unit' | 'person' | 'bond' | 'contract';
4765
+ interface PraxisContextBindingContract {
4766
+ dimension: PraxisContextBindingDimension;
4767
+ lockWhenActive: boolean;
4768
+ targetField?: string;
4769
+ }
4770
+ interface PraxisResourceStateContract {
4771
+ initialStates?: string[];
4772
+ putMutableStates?: string[];
4773
+ }
4235
4774
  /**
4236
4775
  * Contrato de saída do normalizador de esquema (SchemaNormalizerService):
4237
4776
  * - Converte metadados `x-ui` em FieldDefinition tipado.
@@ -4244,6 +4783,10 @@ interface FieldAccessMetadata {
4244
4783
  */
4245
4784
  interface FieldDefinition {
4246
4785
  name: string;
4786
+ /** Backend-authored custom-field identity; `name` retains the full value path. */
4787
+ customField?: boolean;
4788
+ customFieldKey?: string;
4789
+ customFieldScope?: string;
4247
4790
  label?: string;
4248
4791
  description?: string;
4249
4792
  type?: string;
@@ -4264,6 +4807,8 @@ interface FieldDefinition {
4264
4807
  readOnly?: boolean;
4265
4808
  fieldAccess?: FieldAccessMetadata;
4266
4809
  array?: FieldArrayConfig;
4810
+ /** Scalar array item contract from JSON Schema; independent of object collection authoring. */
4811
+ items?: FieldScalarItemsSchema;
4267
4812
  collectionValidation?: FieldArrayCollectionValidation;
4268
4813
  multiple?: boolean;
4269
4814
  editable?: boolean;
@@ -4273,11 +4818,28 @@ interface FieldDefinition {
4273
4818
  sortable?: boolean;
4274
4819
  /** Json Logic canônico que define obrigatoriedade condicional. */
4275
4820
  conditionalRequired?: JsonLogicExpression | null;
4821
+ /** Expressão condicional de somente leitura publicada em `x-ui.conditionalReadOnly`. */
4822
+ conditionalReadOnly?: JsonLogicExpression | string | null;
4823
+ /** Span explícito em grid de 12 colunas (`1..12`). */
4824
+ colSpan?: number;
4825
+ /** Vínculo com contexto ativo de workspace (`x-ui.contextBinding`). */
4826
+ contextBinding?: PraxisContextBindingContract;
4827
+ /** Indica limpeza do campo ao clonar rascunho (`x-ui.draftCleared`). */
4828
+ draftCleared?: boolean;
4829
+ /** Regras declarativas de mutabilidade por estado (`x-ui.resourceState`). */
4830
+ resourceState?: PraxisResourceStateContract;
4276
4831
  viewOnlyStyle?: string;
4277
4832
  /** Lista de gatilhos de validação, ex.: ["blur", "change"]. */
4278
4833
  validationTriggers?: string[];
4279
4834
  hidden?: boolean;
4280
4835
  tableHidden?: boolean;
4836
+ tableOrder?: number;
4837
+ pinned?: 'start' | 'end';
4838
+ primarySearch?: boolean;
4839
+ /** Promotes filter field to inline/always-visible bar (`x-ui.inlineFilter`). */
4840
+ inlineFilter?: boolean;
4841
+ /** Legacy/compact alias promoting filter field to inline bar (`x-ui.inline`). */
4842
+ inline?: boolean;
4281
4843
  formHidden?: boolean;
4282
4844
  filterable?: boolean;
4283
4845
  /** Json Logic canônico que controla se o campo é exibido. */
@@ -4306,11 +4868,16 @@ interface FieldDefinition {
4306
4868
  endpoint?: string;
4307
4869
  resourcePath?: string;
4308
4870
  optionSource?: OptionSourceMetadata;
4871
+ dialog?: LookupDialogMetadata;
4309
4872
  emptyOptionText?: string;
4310
4873
  options?: {
4311
4874
  key: string;
4312
4875
  value: string;
4313
4876
  label?: string;
4877
+ icon?: string;
4878
+ tone?: string;
4879
+ description?: string;
4880
+ disabled?: boolean;
4314
4881
  [key: string]: any;
4315
4882
  }[];
4316
4883
  filter?: any;
@@ -4321,16 +4888,28 @@ interface FieldDefinition {
4321
4888
  optionLabelKey?: string;
4322
4889
  optionValueKey?: string;
4323
4890
  filterOptions?: any[];
4324
- numericFormat?: string;
4891
+ numericFormat?: 'auto' | 'integer' | 'decimal' | 'currency' | 'percent' | string;
4325
4892
  valuePresentation?: ValuePresentationConfig;
4893
+ /** Micro-visualização declarada em `x-ui.microVisualization`. */
4894
+ microVisualization?: PraxisPresentationVisualizationConfig;
4326
4895
  /** Semantic read-only/list presentation metadata from canonical x-ui.presentation. */
4327
4896
  presentation?: FieldPresentationConfig;
4328
4897
  /** Conditional presentation overrides for read-only/list consumers. */
4329
4898
  presentationRules?: FieldPresentationRule[];
4899
+ /** Indicates that this field is curated for display in the Quick View summary list. */
4900
+ quickViewVisible?: boolean;
4901
+ /** Relative order of this field in the Quick View summary list when quickViewVisible is true. */
4902
+ quickViewOrder?: number;
4903
+ /** Canonical cross-resource reference contract published in x-ui.resourceReference. */
4904
+ resourceReference?: ResourceReferenceMetadata;
4905
+ /** Declarative governed Quick View contract for reference fields. */
4906
+ quickView?: ResourceQuickViewBinding;
4330
4907
  numericStep?: number;
4331
4908
  numericMin?: number;
4332
4909
  numericMax?: number;
4333
4910
  numericMaxLength?: number;
4911
+ inlineVisualStyle?: 'compact' | 'graphic';
4912
+ percentPresets?: number[];
4334
4913
  optionGroups?: {
4335
4914
  key: string;
4336
4915
  value: string;
@@ -4391,6 +4970,258 @@ interface FieldDefinition {
4391
4970
  showInlineErrors?: boolean;
4392
4971
  /** Posição preferida da mensagem de erro (ex.: below, right). */
4393
4972
  errorPosition?: string;
4973
+ /** Exibe o rótulo de valor no thumb de sliders (`slider`, `rangeSlider`, `inlineRange`). */
4974
+ thumbLabel?: boolean;
4975
+ /** Controla quando o rótulo de valor é exibido em sliders (`'off' | 'auto' | 'on'`). */
4976
+ valueLabelDisplay?: 'off' | 'auto' | 'on';
4977
+ /** Ativa o modo discreto (thumb label) em sliders Material. */
4978
+ discrete?: boolean;
4979
+ /** Exibe campos numéricos auxiliares sincronizados ao slider/range. */
4980
+ showInputs?: boolean;
4981
+ /** Exibe marcações (ticks) ao longo da trilha do slider. */
4982
+ showTicks?: boolean | 'auto';
4983
+ /** Exibe âncoras clicáveis abaixo da trilha do slider/faixa inline (`true`, `false` ou `'auto'`). */
4984
+ showAnchors?: boolean | 'auto';
4985
+ /** Título exibido no cabeçalho do popover para controles inline. */
4986
+ inlinePanelTitle?: string;
4987
+ /** Subtítulo exibido no cabeçalho do popover para controles inline. */
4988
+ inlinePanelSubtitle?: string;
4989
+ /** Ligadura Material Icons exibida no cabeçalho do popover para controles inline. */
4990
+ inlinePanelIcon?: string;
4991
+ /** Cor do ícone exibido no cabeçalho do popover para controles inline. */
4992
+ inlinePanelIconColor?: string;
4993
+ /** Exibe campos numéricos inline editáveis dentro do popover de controles de slider/faixa. */
4994
+ showInlineInputs?: boolean;
4995
+ /** Histograma ou configuração de distribuição interativa exibida acima do slider inline. */
4996
+ inlineDistribution?: unknown;
4997
+ /** Modos de operador habilitados para filtros de faixa monetária inline. */
4998
+ operatorModes?: InlineCurrencyRangeOperatorMode[] | boolean | string;
4999
+ /** Modo de operador inicial para filtros de faixa monetária inline. */
5000
+ defaultOperatorMode?: InlineCurrencyRangeOperatorMode;
5001
+ /** Exige ambos os limites da faixa (ex.: BETWEEN_EXCLUSIVE). */
5002
+ requireTwoBounds?: boolean;
5003
+ /** Passo aplicado exclusivamente à trilha do slider. */
5004
+ sliderStep?: number;
5005
+ /** Incremento de teclado com modificador Shift para sliders/faixas. */
5006
+ shiftStep?: number;
5007
+ /** Distância mínima exigida entre os limites da faixa. */
5008
+ minDistance?: number;
5009
+ /** Distância máxima permitida entre os limites da faixa. */
5010
+ maxDistance?: number;
5011
+ /** Código de moeda (ex.: BRL, USD, EUR). */
5012
+ currency?: string;
5013
+ /** Alias para código de moeda (`currency`). */
5014
+ currencyCode?: string;
5015
+ /** Quantidade de casas decimais para campos numéricos/monetários. */
5016
+ decimalPlaces?: number;
5017
+ /** Precisão numérica (moeda/número) ou granularidade de avaliação ('half' | 'item'). */
5018
+ precision?: number | string;
5019
+ /** Posição do símbolo monetário em relação ao valor. */
5020
+ currencyPosition?: 'before' | 'after';
5021
+ /** Exibe símbolo/indicador monetário em cabeçalhos e inputs. */
5022
+ showCurrencySymbol?: boolean;
5023
+ /** Separador de milhar (alias de `thousandsSeparator`). */
5024
+ thousandSeparator?: string;
5025
+ /** Separador de milhar. */
5026
+ thousandsSeparator?: string;
5027
+ /** Separador decimal. */
5028
+ decimalSeparator?: string;
5029
+ /** Permite valores negativos em controles numéricos/monetários. */
5030
+ allowNegative?: boolean;
5031
+ /** Rótulo do input mínimo de faixa. */
5032
+ inputMinLabel?: string;
5033
+ /** Rótulo do input máximo de faixa. */
5034
+ inputMaxLabel?: string;
5035
+ /** Rótulo do input de valor exato em faixa monetária. */
5036
+ inputExactLabel?: string;
5037
+ /** Limite mínimo permitido para o valor inicial da faixa. */
5038
+ startMin?: number;
5039
+ /** Limite máximo permitido para o valor inicial da faixa. */
5040
+ startMax?: number;
5041
+ /** Limite mínimo permitido para o valor final da faixa. */
5042
+ endMin?: number;
5043
+ /** Limite máximo permitido para o valor final da faixa. */
5044
+ endMax?: number;
5045
+ /** Mensagens e deslocamentos relacionais de limites de faixa monetária. */
5046
+ startMinMessage?: string;
5047
+ startMaxMessage?: string;
5048
+ endMinMessage?: string;
5049
+ endMaxMessage?: string;
5050
+ endMinOffset?: number;
5051
+ endMinOffsetMessage?: string;
5052
+ startMaxOffset?: number;
5053
+ startMaxOffsetMessage?: string;
5054
+ /** Configuração especializada de faixa de horário inline. */
5055
+ stepMinute?: number;
5056
+ stepMinutes?: number;
5057
+ interval?: number;
5058
+ inlineTimeTrackShifts?: unknown[];
5059
+ inlineTrackShifts?: unknown[];
5060
+ trackShifts?: unknown[];
5061
+ minDistanceMinutes?: number;
5062
+ maxDistanceMinutes?: number;
5063
+ /** Configuração especializada de raio de distância inline. */
5064
+ distanceIcon?: string;
5065
+ distanceStart?: number;
5066
+ distanceEnd?: number;
5067
+ radiusMin?: number;
5068
+ radiusMax?: number;
5069
+ radiusStep?: number;
5070
+ radiusMode?: string;
5071
+ distanceSliderStep?: number;
5072
+ /** Configuração especializada de avaliação (rating) inline. */
5073
+ ratingGradientLowColor?: string;
5074
+ ratingGradientMidColor?: string;
5075
+ ratingGradientHighColor?: string;
5076
+ ratingToneLowColor?: string;
5077
+ ratingToneMidColor?: string;
5078
+ ratingToneHighColor?: string;
5079
+ ratingBadgeColor?: string;
5080
+ ratingBadgeIcon?: string;
5081
+ ratingBadgeIconColor?: string;
5082
+ ratingActiveIcon?: string;
5083
+ ratingInactiveIcon?: string;
5084
+ ratingAllowHalf?: boolean;
5085
+ ratingPrecision?: number | string;
5086
+ ratingColors?: Record<string, unknown> | string[];
5087
+ starColors?: Record<string, unknown> | string[];
5088
+ ratingLowColor?: string;
5089
+ ratingMidColor?: string;
5090
+ ratingHighColor?: string;
5091
+ ratingIndicatorColor?: string;
5092
+ ratingMin?: number;
5093
+ ratingMax?: number;
5094
+ itemsCount?: number;
5095
+ ratingStep?: number;
5096
+ /** Configuração especializada de faixa de score / prioridade inline. */
5097
+ scoreSubtitle?: string;
5098
+ scoreUnit?: string;
5099
+ scoreDisplayDecimals?: number;
5100
+ scoreShowScaleLabels?: boolean;
5101
+ scoreShowBandChips?: boolean;
5102
+ scoreRangeSeparator?: string;
5103
+ scoreGradientLowColor?: string;
5104
+ scoreGradientMidColor?: string;
5105
+ scoreGradientHighColor?: string;
5106
+ scoreValueFallbackColor?: string;
5107
+ scoreEmptyGradient?: string;
5108
+ scoreIcon?: string;
5109
+ scoreBandsAriaLabel?: string;
5110
+ scoreBandAriaLabelTemplate?: string;
5111
+ scoreMin?: number;
5112
+ scoreMax?: number;
5113
+ scoreStep?: number;
5114
+ scoreMode?: string;
5115
+ scoreSliderStep?: number;
5116
+ /** Configuração especializada de filtros gráficos e date-range inline (Onda 2). */
5117
+ optionSubtitleKey?: string;
5118
+ optionWeightKey?: string;
5119
+ optionColorKey?: string;
5120
+ optionIconKey?: string;
5121
+ optionEmojiKey?: string;
5122
+ panelSearchIcon?: string;
5123
+ panelSearchIconColor?: string;
5124
+ panelResetIcon?: string;
5125
+ panelResetIconColor?: string;
5126
+ optionSelectedIcon?: string;
5127
+ optionSelectedIconColor?: string;
5128
+ columns?: number;
5129
+ pipelineTitle?: string;
5130
+ pipelineSubtitle?: string;
5131
+ pipelineMode?: string;
5132
+ pipelineMultiple?: boolean;
5133
+ pipelineSearchable?: boolean;
5134
+ pipelineSearchPlaceholder?: string;
5135
+ pipelineOptionSubtitleKey?: string;
5136
+ pipelineOptionWeightKey?: string;
5137
+ pipelineOptionColorKey?: string;
5138
+ pipelineShowBar?: boolean;
5139
+ pipelineShowSelectionPills?: boolean;
5140
+ pipelineShowSelectAll?: boolean;
5141
+ pipelineSelectAllText?: string;
5142
+ pipelineShowClearAction?: boolean;
5143
+ pipelineClearActionText?: string;
5144
+ pipelineChipMaxVisible?: number;
5145
+ statusColors?: unknown;
5146
+ pipelineGradientLowColor?: string;
5147
+ pipelineGradientMidColor?: string;
5148
+ pipelineGradientHighColor?: string;
5149
+ pipelineEmptyStateText?: string;
5150
+ pipelineSelectionActionsAriaLabel?: string;
5151
+ pipelineOptionsGroupAriaLabelMultiple?: string;
5152
+ pipelineOptionsGroupAriaLabelSingle?: string;
5153
+ pipelineSelectionPillsAriaLabel?: string;
5154
+ pipelineBarAriaLabelEmpty?: string;
5155
+ pipelineBarAriaLabelSelected?: string;
5156
+ pipelineIcon?: string;
5157
+ pipelineSearchIcon?: string;
5158
+ pipelineSearchIconColor?: string;
5159
+ relativePeriodTitle?: string;
5160
+ relativePeriodSubtitle?: string;
5161
+ relativePeriodShowProgress?: boolean;
5162
+ relativePeriodProgressGradientLowColor?: string;
5163
+ relativePeriodProgressGradientMidColor?: string;
5164
+ relativePeriodProgressGradientHighColor?: string;
5165
+ relativePeriodColumns?: number;
5166
+ relativePeriodCloseOnSelect?: boolean;
5167
+ relativePeriodMultiple?: boolean;
5168
+ relativePeriodSearchable?: boolean;
5169
+ relativePeriodIcon?: string;
5170
+ relativePeriodIconKey?: string;
5171
+ relativePeriodSubtitleKey?: string;
5172
+ relativePeriodSelectedIcon?: string;
5173
+ relativePeriodSelectedIconColor?: string;
5174
+ relativePeriodOptionsAriaLabel?: string;
5175
+ relativePeriodProgressEmptyLabel?: string;
5176
+ relativePeriodEmptyStateText?: string;
5177
+ sentimentTitle?: string;
5178
+ sentimentSubtitle?: string;
5179
+ sentimentGradientLowColor?: string;
5180
+ sentimentGradientMidColor?: string;
5181
+ sentimentGradientHighColor?: string;
5182
+ sentimentShowBar?: boolean;
5183
+ sentimentAnimatedEmoji?: boolean;
5184
+ sentimentCloseOnSelect?: boolean;
5185
+ sentimentMultiple?: boolean;
5186
+ sentimentShowSelectionPills?: boolean;
5187
+ sentimentIcon?: string;
5188
+ sentimentColorKey?: string;
5189
+ sentimentEmojiKey?: string;
5190
+ sentimentOptionsAriaLabel?: string;
5191
+ sentimentSelectionPillsAriaLabel?: string;
5192
+ sentimentEmptyStateText?: string;
5193
+ colorLabelTitle?: string;
5194
+ colorLabelSubtitle?: string;
5195
+ colorLabelMultiple?: boolean;
5196
+ colorLabelColumns?: number;
5197
+ colorLabelShowSelectedBadges?: boolean;
5198
+ colorLabelCloseOnSelect?: boolean;
5199
+ colorLabelSelectionTitle?: string;
5200
+ colorLabelIcon?: string;
5201
+ colorLabelSelectedIcon?: string;
5202
+ colorLabelSelectedIconColor?: string;
5203
+ colorLabelBadgeRemoveIcon?: string;
5204
+ colorLabelBadgeRemoveIconColor?: string;
5205
+ colorLabelColorKey?: string;
5206
+ colorLabelOptionsAriaLabel?: string;
5207
+ colorLabelSelectionBadgesAriaLabel?: string;
5208
+ colorLabelRemoveSelectionAriaLabel?: string;
5209
+ colorLabelEmptyStateText?: string;
5210
+ startAriaLabel?: string;
5211
+ endAriaLabel?: string;
5212
+ inlineQuickPresetsAriaLabel?: string;
5213
+ inlineQuickPresetsCancelLabel?: string;
5214
+ inlineQuickPresetsCancelAriaLabel?: string;
5215
+ inlineQuickPresetsApplyLabel?: string;
5216
+ inlineQuickPresetsApplyAriaLabel?: string;
5217
+ shortcutsPosition?: string;
5218
+ applyOnShortcutClick?: boolean;
5219
+ i18nShortcuts?: Record<string, string>;
5220
+ startView?: string;
5221
+ startAt?: string | Date;
5222
+ touchUi?: boolean;
5223
+ minDate?: string | Date;
5224
+ maxDate?: string | Date;
4394
5225
  [key: string]: any;
4395
5226
  }
4396
5227