@praxisui/core 10.0.0-rc.5 → 10.0.0-rc.51

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.
@@ -48,7 +48,9 @@ interface LookupDetailMetadata {
48
48
  routeTemplate?: string;
49
49
  openDetailMode?: LookupOpenDetailMode;
50
50
  kind?: 'surface' | 'route' | 'href' | string;
51
+ resourceKey?: string;
51
52
  surfaceId?: string;
53
+ previewSurfaceId?: string;
52
54
  presentation?: 'modal' | 'drawer' | string;
53
55
  preferredWidget?: string;
54
56
  mode?: 'view' | 'edit' | 'create' | string;
@@ -93,6 +95,7 @@ interface LookupFilteringMetadata {
93
95
  searchStrategies?: LookupSearchStrategyMetadata[];
94
96
  }
95
97
  interface EntityLookupActionsMetadata {
98
+ showQuickView?: boolean;
96
99
  showDetail?: boolean;
97
100
  showChange?: boolean;
98
101
  showCopyCode?: boolean;
@@ -122,6 +125,7 @@ interface EntityLookupDisplayMetadata {
122
125
  statusToneMap?: Record<string, LookupStatusTone>;
123
126
  badgeKeys?: string[];
124
127
  maxVisibleBadges?: number;
128
+ quickViewActionLabel?: string;
125
129
  detailActionLabel?: string;
126
130
  changeActionLabel?: string;
127
131
  copyCodeActionLabel?: string;
@@ -184,6 +188,13 @@ type PraxisPresentationVisualizationKind = 'line' | 'area' | 'column' | 'compari
184
188
  type PraxisPresentationVisualizationSurface = 'table-cell' | 'list-item' | 'object-header' | 'card-summary' | 'form-presentation';
185
189
  type PraxisPresentationVisualizationSize = 'xs' | 'sm' | 'md' | 'lg' | 'responsive';
186
190
  type PraxisPresentationVisualizationTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'critical';
191
+ /**
192
+ * Defines how numerical bounds (`min` / `max` / `total`) are resolved when rendering
193
+ * a micro-visualization inside a collection:
194
+ * - `'row'` (default): each record scales independently using its own series/values or explicit `min`/`max`/`total`.
195
+ * - `'page'`: records on the current loaded page share a synchronized column scale when explicit bounds are not fixed.
196
+ */
197
+ type PraxisPresentationVisualizationScaleScope = 'row' | 'page';
187
198
  interface PraxisPresentationVisualizationPoint {
188
199
  label?: string;
189
200
  value: number;
@@ -193,6 +204,7 @@ interface PraxisPresentationVisualizationSegment {
193
204
  label?: string;
194
205
  value: number;
195
206
  tone?: PraxisPresentationVisualizationTone;
207
+ color?: string;
196
208
  }
197
209
  interface PraxisPresentationVisualizationThreshold {
198
210
  label?: string;
@@ -208,24 +220,35 @@ interface PraxisPresentationVisualizationItem {
208
220
  value?: number;
209
221
  icon?: string;
210
222
  tone?: PraxisPresentationVisualizationTone;
223
+ color?: string;
211
224
  state?: string;
212
225
  }
213
226
  interface PraxisPresentationVisualizationConfig {
214
227
  kind: PraxisPresentationVisualizationKind;
215
228
  surface?: PraxisPresentationVisualizationSurface;
216
229
  size?: PraxisPresentationVisualizationSize;
230
+ scaleScope?: PraxisPresentationVisualizationScaleScope;
231
+ title?: string;
232
+ titleExpr?: JsonLogicExpression | string;
233
+ legend?: boolean;
217
234
  value?: unknown;
218
235
  valueExpr?: JsonLogicExpression | string;
219
236
  valueSuffix?: string;
220
237
  valueSuffixExpr?: JsonLogicExpression | string;
221
238
  compactValue?: boolean;
239
+ min?: number;
240
+ minExpr?: JsonLogicExpression | string;
241
+ max?: number;
242
+ maxExpr?: JsonLogicExpression | string;
222
243
  total?: number;
223
244
  totalExpr?: JsonLogicExpression | string;
224
245
  target?: number;
225
246
  targetExpr?: JsonLogicExpression | string;
247
+ targetLabel?: string;
248
+ targetLabelExpr?: JsonLogicExpression | string;
226
249
  baseline?: number;
227
250
  baselineExpr?: JsonLogicExpression | string;
228
- points?: PraxisPresentationVisualizationPoint[];
251
+ points?: Array<PraxisPresentationVisualizationPoint | number>;
229
252
  pointsExpr?: JsonLogicExpression | string;
230
253
  segments?: PraxisPresentationVisualizationSegment[];
231
254
  segmentsExpr?: JsonLogicExpression | string;
@@ -244,6 +267,188 @@ interface PraxisPresentationVisualizationConfig {
244
267
  }
245
268
  declare function isPraxisPresentationVisualizationTableSafe(value: PraxisPresentationVisualizationConfig | null | undefined): boolean;
246
269
 
270
+ type FieldPresentationTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
271
+ type FieldPresentationAppearance = 'plain' | 'soft' | 'outlined' | 'filled';
272
+ type FieldPresenterKind = 'text' | 'badge' | 'chip' | 'status' | 'iconValue' | 'progress' | 'rating' | 'microVisualization';
273
+ interface FieldPresentationInteractions {
274
+ /** Allows readonly surfaces to expose a copy affordance without changing the field value. */
275
+ copy?: boolean;
276
+ /** Allows readonly surfaces to expose contextual detail expansion. */
277
+ details?: boolean;
278
+ /** Allows readonly surfaces to expose inline expansion for long values. */
279
+ expand?: boolean;
280
+ /** Allows readonly surfaces to expose a link affordance when the value is navigable. */
281
+ link?: boolean;
282
+ /** Optional governed Quick View binding for readonly/presentation reference fields. */
283
+ quickView?: ResourceQuickViewBinding;
284
+ }
285
+ interface FieldPresentationConfig {
286
+ /** Semantic display strategy for readonly/presentation surfaces. */
287
+ presenter?: FieldPresenterKind;
288
+ /** Alias accepted for schema authors that describe the semantic display as a variant. */
289
+ variant?: FieldPresenterKind;
290
+ /** Semantic tone mapped by consumers to theme tokens. */
291
+ tone?: FieldPresentationTone;
292
+ /** Material Symbols icon name, without arbitrary HTML. */
293
+ icon?: string;
294
+ /** Optional semantic label for status/chip/badge presentations. */
295
+ label?: string;
296
+ /** Optional secondary marker rendered by presentation-capable consumers. */
297
+ badge?: string;
298
+ /** Optional tooltip text for the presentation wrapper. */
299
+ tooltip?: string;
300
+ /** Optional readonly prefix rendered next to the displayed value without changing the raw value. */
301
+ prefix?: string;
302
+ /** Optional readonly suffix rendered next to the displayed value without changing the raw value. */
303
+ suffix?: string;
304
+ /** Optional icon override when the field resolves to a truthy boolean state. */
305
+ iconTrue?: string;
306
+ /** Optional icon override when the field resolves to a falsy boolean state. */
307
+ iconFalse?: string;
308
+ /** Optional semantic tone when the field resolves to a truthy boolean state. */
309
+ toneTrue?: FieldPresentationTone;
310
+ /** Optional semantic tone when the field resolves to a falsy boolean state. */
311
+ toneFalse?: FieldPresentationTone;
312
+ /** Optional display label when the field resolves to a truthy boolean state. */
313
+ labelTrue?: string;
314
+ /** Optional display label when the field resolves to a falsy boolean state. */
315
+ labelFalse?: string;
316
+ /** Visual density/emphasis strategy mapped by consumers to theme tokens. */
317
+ appearance?: FieldPresentationAppearance;
318
+ /** Optional formatter override for the presentation surface only. */
319
+ valuePresentation?: ValuePresentationConfig;
320
+ /** Renderer-neutral micro visualization metadata for compact presentation surfaces. */
321
+ visualization?: PraxisPresentationVisualizationConfig;
322
+ /** Safe readonly affordances. No commands or mutations are executed from this contract. */
323
+ interactions?: FieldPresentationInteractions;
324
+ }
325
+ interface FieldPresentationRule {
326
+ /** Json Logic guard evaluated against the presentation context. */
327
+ when: JsonLogicExpression;
328
+ /** Semantic presentation state merged when the guard is truthy. */
329
+ set?: FieldPresentationConfig;
330
+ /** Alias for `set`, useful for rule-builder terminology. */
331
+ effect?: FieldPresentationConfig;
332
+ }
333
+
334
+ type PraxisExportFormat = 'excel' | 'pdf' | 'csv' | 'json' | 'print';
335
+ type PraxisExportScope = 'auto' | 'selected' | 'filtered' | 'currentPage' | 'all';
336
+
337
+ /**
338
+ * Contratos compartilhados de discovery semantico consumidos pelo runtime Angular.
339
+ *
340
+ * `resourcePath` continua sendo o endereco operacional do recurso.
341
+ * `resourceKey` representa a identidade semantica estavel devolvida pelo backend para
342
+ * surfaces, actions e capabilities.
343
+ *
344
+ * O runtime usa `resourceKey` para preservar contexto semantico e gerar ids estaveis de
345
+ * abertura, enquanto `resourcePath`, `path`, `method` e `schemaUrl` seguem responsaveis pelo
346
+ * comportamento operacional.
347
+ */
348
+
349
+ interface ResourceAvailabilityDecision {
350
+ allowed: boolean;
351
+ reason?: string | null;
352
+ metadata?: Record<string, any>;
353
+ }
354
+ type ResourceSurfaceKind = 'FORM' | 'PARTIAL_FORM' | 'VIEW' | 'READ_PROJECTION' | 'HIERARCHY_TREE';
355
+ type ResourceSurfaceScope = 'COLLECTION' | 'ITEM';
356
+ type ResourceSurfaceResponseCardinality = 'OBJECT' | 'COLLECTION' | 'PAGE' | 'VOID' | 'UNKNOWN';
357
+ type RelatedResourceChildOperation = 'FILTER' | 'LIST' | 'CREATE' | 'UPDATE' | 'DELETE' | 'DUPLICATE_DRAFT';
358
+ interface RelatedResourceSurface {
359
+ parentResourceKey: string;
360
+ parentIdPathVariable: string;
361
+ childResourceKey: string;
362
+ childResourcePath: string;
363
+ childParentField: string;
364
+ selectable: boolean;
365
+ selectionKeyField: string;
366
+ childOperations: RelatedResourceChildOperation[];
367
+ }
368
+ interface ResourceSurfaceCatalogItem {
369
+ id: string;
370
+ resourceKey: string;
371
+ kind: ResourceSurfaceKind;
372
+ scope: ResourceSurfaceScope;
373
+ title: string;
374
+ description?: string | null;
375
+ intent?: string | null;
376
+ icon?: string | null;
377
+ contextualReadPath?: string | null;
378
+ operationId: string;
379
+ path: string;
380
+ method: string;
381
+ schemaId: string;
382
+ schemaUrl: string;
383
+ responseCardinality?: ResourceSurfaceResponseCardinality | null;
384
+ availability: ResourceAvailabilityDecision;
385
+ order: number;
386
+ tags: string[];
387
+ relatedResource?: RelatedResourceSurface | null;
388
+ }
389
+ interface ResourceRecordOpenRef {
390
+ sourceIdentityField: string;
391
+ target: {
392
+ resourceKey: string;
393
+ surfaceId: string;
394
+ };
395
+ }
396
+
397
+ interface GlobalActionRef {
398
+ actionId: string;
399
+ payload?: any;
400
+ payloadExpr?: string;
401
+ meta?: {
402
+ label?: string;
403
+ icon?: string;
404
+ emitLocal?: boolean;
405
+ confirmation?: any;
406
+ [key: string]: any;
407
+ };
408
+ }
409
+
410
+ type SurfacePresentation = 'modal' | 'drawer';
411
+
412
+ /**
413
+ * Referência imutável e versionada a um preset de `rich-block` permitido
414
+ * como corpo customizado de Quick View.
415
+ */
416
+ type ResourceQuickViewPresetRef = CorePresetRef & {
417
+ kind: 'rich-block';
418
+ namespace: string;
419
+ presetId: string;
420
+ version: string;
421
+ };
422
+ /**
423
+ * Contrato declarativo de referência cruzada publicado pelo backend em `x-ui.resourceReference`
424
+ * (via `@ResourceReference`), permitindo sintetizar `ResourceQuickViewBinding` sem configuração manual.
425
+ */
426
+ interface ResourceReferenceMetadata {
427
+ resourceKey: string;
428
+ valueField?: string;
429
+ surfaceId?: string;
430
+ previewSurfaceId?: string;
431
+ detailPresentation?: SurfacePresentation;
432
+ }
433
+ /**
434
+ * Contrato declarativo e serializável de Quick View transversal.
435
+ *
436
+ * Regras arquiteturais:
437
+ * - Nunca contém elementos DOM, coordenadas de viewport ou funções;
438
+ * - Reutiliza `ResourceRecordOpenRef` (`{ sourceIdentityField, target: { resourceKey, surfaceId } }`)
439
+ * para governança de descoberta, leitura e CTA;
440
+ * - Opcionalmente declara `previewSurfaceId` quando a projeção de leitura do preview
441
+ * diferir da surface de detalhe completo aberta pelo CTA primário;
442
+ * - Não permite `popover` em `detailPresentation` (`popover` não pertence a `SurfacePresentation`);
443
+ * - Não permite override de ação, rota arbitrária nem árvore `RichContentDocument` inline no primeiro slice.
444
+ */
445
+ interface ResourceQuickViewBinding {
446
+ recordOpen: ResourceRecordOpenRef;
447
+ previewSurfaceId?: string;
448
+ contentRef?: ResourceQuickViewPresetRef | null;
449
+ detailPresentation?: SurfacePresentation;
450
+ }
451
+
247
452
  type RichBlockContextScope = 'row' | 'computed' | 'detail' | 'meta' | 'user' | 'tenant';
248
453
  interface RichBlockContextConfig {
249
454
  scopes?: RichBlockContextScope[];
@@ -300,6 +505,22 @@ interface RichLinkNode extends RichBlockBaseNode {
300
505
  href: string;
301
506
  target?: '_blank' | '_self';
302
507
  rel?: string;
508
+ /** Contrato opcional de Quick View governado associado ao link. */
509
+ quickView?: ResourceQuickViewBinding;
510
+ }
511
+ type RichRecordReferenceVariant = 'inline' | 'badge' | 'chip';
512
+ /**
513
+ * Nó semântico explícito de referência de registro com visualização rápida governada (`Quick View`).
514
+ * Diferente de `RichLinkNode` (`href`), não exige rota direta e renderiza gatilho acessível (`button[type="button"]`).
515
+ */
516
+ interface RichRecordReferenceNode extends RichBlockBaseNode {
517
+ type: 'recordReference';
518
+ label?: string;
519
+ labelExpr?: string;
520
+ icon?: string;
521
+ tone?: RichSemanticTone;
522
+ variant?: RichRecordReferenceVariant;
523
+ quickView: ResourceQuickViewBinding;
303
524
  }
304
525
  type RichSemanticTone = 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'danger' | 'error' | 'neutral';
305
526
  interface RichBadgeNode extends RichBlockBaseNode {
@@ -308,6 +529,8 @@ interface RichBadgeNode extends RichBlockBaseNode {
308
529
  labelExpr?: string;
309
530
  icon?: string;
310
531
  tone?: RichSemanticTone;
532
+ /** Contrato opcional de Quick View governado associado ao badge. */
533
+ quickView?: ResourceQuickViewBinding;
311
534
  }
312
535
  interface RichAvatarNode extends RichBlockBaseNode {
313
536
  type: 'avatar';
@@ -335,11 +558,22 @@ interface RichProgressNode extends RichBlockBaseNode {
335
558
  labelExpr?: string;
336
559
  showPercent?: boolean;
337
560
  }
561
+ interface RichActionCheckRule {
562
+ id?: string;
563
+ /** Regra JSON Logic que deve avaliar para `true` para habilitar o disparo da ação. */
564
+ when: JsonLogicExpression;
565
+ /** Mensagem de pré-condição exibida quando a checagem falha. */
566
+ message: string;
567
+ }
338
568
  interface RichActionRef {
339
569
  actionId: string;
340
570
  payload?: unknown;
341
571
  payloadExpr?: string;
572
+ /** Quando `true` (padrão quando há `payload` estruturado), interpola recursivamente `${...}` / `{{...}}` nos valores de `payload`. */
573
+ interpolatePayload?: boolean;
342
574
  availabilityExpr?: string;
575
+ /** Regras declarativas de pré-condição avaliadas em cliente antes de habilitar/disparar a ação. */
576
+ checks?: RichActionCheckRule[];
343
577
  confirmMessage?: string;
344
578
  }
345
579
  interface RichActionButtonNode extends RichBlockBaseNode {
@@ -360,7 +594,7 @@ interface RichMicroVisualizationNode extends RichBlockBaseNode {
360
594
  valueExpr?: string;
361
595
  targetExpr?: string;
362
596
  }
363
- type RichPresenterNode = RichTextNode | RichIconNode | RichImageNode | RichLinkNode | RichBadgeNode | RichAvatarNode | RichMetricNode | RichProgressNode | RichActionButtonNode | RichMicroVisualizationNode;
597
+ type RichPresenterNode = RichTextNode | RichIconNode | RichImageNode | RichLinkNode | RichRecordReferenceNode | RichBadgeNode | RichAvatarNode | RichMetricNode | RichProgressNode | RichActionButtonNode | RichMicroVisualizationNode;
364
598
  type RichComposeLayout = 'flex' | 'grid';
365
599
  type RichComposeAlignItems = 'stretch' | 'start' | 'center' | 'end';
366
600
  interface RichComposeNode extends RichBlockBaseNode {
@@ -372,14 +606,18 @@ interface RichComposeNode extends RichBlockBaseNode {
372
606
  columns?: number | 'auto-fit' | 'auto-fill';
373
607
  minColumnWidth?: string;
374
608
  alignItems?: RichComposeAlignItems;
375
- items: RichBlockNode[];
609
+ items?: RichBlockNode[];
610
+ /** Caminho opcional no contexto apontando para um array de registros a projetar com `itemTemplate`. */
611
+ itemsExpr?: string;
612
+ /** Template de bloco aplicado a cada entrada de `itemsExpr` com escopo `item` / `row` / `index` / `$index`. */
613
+ itemTemplate?: RichBlockNode;
376
614
  }
377
615
  type RichCardVariant = 'plain' | 'outlined' | 'elevated' | 'filled' | 'transparent' | 'unstyled';
378
- type RichCardTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
616
+ type RichCardTone = RichSemanticTone;
379
617
  type RichCardSize = 'sm' | 'md' | 'lg';
380
618
  type RichCardDensity = 'compact' | 'comfortable';
381
619
  type RichCardOrientation = 'vertical' | 'horizontal';
382
- type RichCardMediaKind = 'image' | 'video' | 'icon' | 'avatar' | 'telemetry' | 'lottie';
620
+ type RichCardMediaKind = 'image' | 'video' | 'icon' | 'avatar' | 'telemetry' | 'lottie' | 'component';
383
621
  interface RichCardMediaTelemetry {
384
622
  variant?: 'radar' | 'pulse' | 'wave' | 'signal';
385
623
  speed?: 'slow' | 'normal' | 'fast';
@@ -400,9 +638,15 @@ interface RichCardMedia {
400
638
  labelExpr?: string;
401
639
  placement?: RichCardMediaPlacement;
402
640
  aspectRatio?: RichCardMediaAspectRatio;
641
+ width?: string;
642
+ height?: string;
403
643
  objectFit?: RichCardMediaObjectFit;
404
644
  telemetry?: RichCardMediaTelemetry;
405
645
  animationSrc?: string;
646
+ /** Registered component ID in ComponentMetadataRegistry when kind === 'component'. */
647
+ componentId?: string;
648
+ /** Declarative input map forwarded to the dynamic component when kind === 'component'. */
649
+ componentInputs?: Record<string, unknown>;
406
650
  verticalAlign?: 'center' | 'top' | 'bottom' | 'stretch';
407
651
  }
408
652
  type RichCardInteractionMode = 'none' | 'action' | 'selectable';
@@ -494,13 +738,18 @@ interface RichKeyValueItem {
494
738
  badge?: string;
495
739
  badgeExpr?: string;
496
740
  icon?: string;
741
+ quickView?: ResourceQuickViewBinding;
497
742
  }
498
743
  interface RichKeyValueListNode extends RichBlockBaseNode {
499
744
  type: 'keyValueList';
500
745
  title?: string;
501
746
  titleExpr?: string;
502
747
  layout?: 'stacked' | 'inline';
503
- items: RichKeyValueItem[];
748
+ items?: RichKeyValueItem[];
749
+ /** Caminho opcional no contexto apontando para um array de registros a projetar em itens chave/valor. */
750
+ itemsExpr?: string;
751
+ /** Template opcional para mapear cada registro de `itemsExpr` em um `RichKeyValueItem`. */
752
+ itemTemplate?: RichKeyValueItem;
504
753
  }
505
754
  type RichPropertySheetColumns = 1 | 2;
506
755
  type RichPropertySheetTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
@@ -514,6 +763,7 @@ interface RichPropertySheetItem {
514
763
  hintExpr?: string;
515
764
  icon?: string;
516
765
  tone?: RichPropertySheetTone;
766
+ quickView?: ResourceQuickViewBinding;
517
767
  }
518
768
  interface RichPropertySheetNode extends RichBlockBaseNode {
519
769
  type: 'propertySheet';
@@ -581,7 +831,11 @@ interface RichStatGroupNode extends RichBlockBaseNode {
581
831
  headerSpacing?: RichStatGroupHeaderSpacing;
582
832
  tileLayout?: RichStatGroupTileLayout;
583
833
  layout?: RichStatGroupLayout;
584
- items: RichStatItem[];
834
+ items?: RichStatItem[];
835
+ /** Caminho opcional no contexto apontando para um array de métricas/registros a projetar em cartões de KPI. */
836
+ itemsExpr?: string;
837
+ /** Template opcional para mapear cada registro de `itemsExpr` em um `RichStatItem`. */
838
+ itemTemplate?: RichStatItem;
585
839
  }
586
840
  type RichTabsAppearance = 'underline' | 'pills';
587
841
  interface RichTabsItem extends RichBlockRuleSet {
@@ -622,6 +876,7 @@ interface RichRecordSummaryField {
622
876
  labelExpr?: string;
623
877
  value?: string;
624
878
  valueExpr?: string;
879
+ quickView?: ResourceQuickViewBinding;
625
880
  }
626
881
  interface RichRecordSummaryNode extends RichBlockBaseNode {
627
882
  type: 'recordSummary';
@@ -633,6 +888,7 @@ interface RichRecordSummaryNode extends RichBlockBaseNode {
633
888
  metaExpr?: string;
634
889
  fields: RichRecordSummaryField[];
635
890
  actions?: RichActionButtonNode[];
891
+ quickView?: ResourceQuickViewBinding;
636
892
  }
637
893
  type RichLookupResultStatus = 'idle' | 'resolved' | 'empty' | 'error';
638
894
  interface RichLookupResultField {
@@ -681,7 +937,8 @@ interface RichLookupCardNode extends RichBlockBaseNode {
681
937
  ctaIcon?: string;
682
938
  variant?: 'basic' | 'raised' | 'stroked' | 'flat';
683
939
  color?: 'basic' | 'primary' | 'accent' | 'warn';
684
- action: RichActionRef;
940
+ action?: RichActionRef;
941
+ quickView?: ResourceQuickViewBinding;
685
942
  fields: RichLookupResultField[];
686
943
  secondaryActions?: RichActionButtonNode[];
687
944
  }
@@ -702,6 +959,8 @@ interface RichRelatedRecordNode extends RichBlockBaseNode {
702
959
  variant?: 'basic' | 'raised' | 'stroked' | 'flat';
703
960
  color?: 'basic' | 'primary' | 'accent' | 'warn';
704
961
  action?: RichActionRef;
962
+ /** Contrato opcional de Quick View governado associado ao registro relacionado. */
963
+ quickView?: ResourceQuickViewBinding;
705
964
  fields: RichLookupResultField[];
706
965
  secondaryActions?: RichActionButtonNode[];
707
966
  }
@@ -837,7 +1096,11 @@ interface RichAccordionNode extends RichBlockBaseNode {
837
1096
  title?: string;
838
1097
  titleExpr?: string;
839
1098
  multi?: boolean;
840
- items: RichAccordionItem[];
1099
+ items?: RichAccordionItem[];
1100
+ /** Caminho opcional no contexto apontando para um array de registros a projetar em painéis do accordion. */
1101
+ itemsExpr?: string;
1102
+ /** Template opcional para mapear cada registro de `itemsExpr` em um `RichAccordionItem`. */
1103
+ itemTemplate?: RichAccordionItem;
841
1104
  }
842
1105
  interface RichMediaBlockNode extends RichBlockBaseNode {
843
1106
  type: 'mediaBlock';
@@ -861,18 +1124,25 @@ interface RichTimelineItem {
861
1124
  iconExpr?: string;
862
1125
  badge?: string;
863
1126
  badgeExpr?: string;
1127
+ badgeTone?: RichTimelineColor;
1128
+ avatar?: RichAvatarNode;
1129
+ itemLayout?: RichTimelineItemLayout;
864
1130
  markerColor?: RichTimelineColor;
865
1131
  markerStyle?: RichTimelineMarkerStyle;
866
1132
  connectorColor?: RichTimelineColor;
867
1133
  connectorVariant?: RichTimelineConnectorVariant;
868
1134
  action?: RichActionRef;
1135
+ /** Contrato opcional de Quick View governado associado ao item da timeline. */
1136
+ quickView?: ResourceQuickViewBinding;
1137
+ children?: RichTimelineItem[];
869
1138
  }
870
1139
  type RichTimelinePosition = 'left' | 'right' | 'alternate' | 'alternate-reverse';
871
1140
  type RichTimelineOrientation = 'vertical' | 'horizontal';
872
1141
  type RichTimelineOrder = 'normal' | 'reverse';
873
1142
  type RichTimelineConnectorVariant = 'solid' | 'dashed' | 'none';
874
1143
  type RichTimelineMarkerVariant = 'dot' | 'icon' | 'number';
875
- type RichTimelineMarkerStyle = 'filled' | 'outlined';
1144
+ type RichTimelineMarkerStyle = 'filled' | 'outlined' | 'soft';
1145
+ type RichTimelineItemLayout = 'stacked' | 'split';
876
1146
  type RichTimelineColor = RichSemanticTone;
877
1147
  type RichTimelineEmphasis = 'subtle' | 'standard' | 'strong' | 'hero';
878
1148
  type RichTimelineDensity = 'compact' | 'comfortable' | 'spacious';
@@ -885,6 +1155,7 @@ interface RichTimelineNode extends RichBlockBaseNode {
885
1155
  orientation?: RichTimelineOrientation;
886
1156
  order?: RichTimelineOrder;
887
1157
  position?: RichTimelinePosition;
1158
+ itemLayout?: RichTimelineItemLayout;
888
1159
  connectorVariant?: RichTimelineConnectorVariant;
889
1160
  connectorColor?: RichTimelineColor;
890
1161
  markerVariant?: RichTimelineMarkerVariant;
@@ -893,7 +1164,10 @@ interface RichTimelineNode extends RichBlockBaseNode {
893
1164
  emphasis?: RichTimelineEmphasis;
894
1165
  density?: RichTimelineDensity;
895
1166
  textAppearance?: RichTimelineTextAppearance;
896
- items: RichTimelineItem[];
1167
+ initialLimit?: number;
1168
+ items?: RichTimelineItem[];
1169
+ itemsExpr?: string;
1170
+ itemTemplate?: RichTimelineItem;
897
1171
  }
898
1172
  type CorePresetKind = 'surface-open' | 'widget-page-layout' | 'widget-page-theme' | 'editorial-theme' | 'editorial-compliance' | 'editorial-solution' | 'rich-block';
899
1173
  interface CorePresetRef {
@@ -918,22 +1192,6 @@ interface RichContentDocument {
918
1192
  nodes: RichBlockNode[];
919
1193
  }
920
1194
 
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
1195
  interface PraxisRuntimeGlobalActionEffect {
938
1196
  id?: string;
939
1197
  kind: 'global-action';
@@ -941,116 +1199,23 @@ interface PraxisRuntimeGlobalActionEffect {
941
1199
  }
942
1200
 
943
1201
  /**
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.
1202
+ * Contrato canônico de filtros rápidos (`quickFilters`) compartilhado entre
1203
+ * `x-ui.resource.quickFilters`, `GenericCrudService`, `<praxis-table>`,
1204
+ * `<praxis-scope-bar>`, `<praxis-crud>` e `<praxis-resource-page>`.
953
1205
  */
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 {
1206
+ type PraxisQuickFilterTone = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'ready';
1207
+ interface PraxisResourceQuickFilter {
975
1208
  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. */
1209
+ label: string;
1210
+ filter: Record<string, any> | string;
1015
1211
  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. */
1212
+ tone?: PraxisQuickFilterTone;
1213
+ isDefault?: boolean;
1214
+ description?: string;
1215
+ order?: number;
1216
+ badge?: string | number;
1217
+ count?: number | null;
1021
1218
  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
1219
  }
1055
1220
 
1056
1221
  interface TableTooltipConfig {
@@ -1147,6 +1312,8 @@ interface ColumnDefinition {
1147
1312
  prefix?: string;
1148
1313
  /** Sufixo visual aplicado ao texto do renderer sem alterar o valor bruto. */
1149
1314
  suffix?: string;
1315
+ /** Contrato declarativo de Quick View governado associado ao ícone/valor. */
1316
+ quickView?: ResourceQuickViewBinding;
1150
1317
  };
1151
1318
  /** Configuração de imagem */
1152
1319
  image?: {
@@ -1182,6 +1349,8 @@ interface ColumnDefinition {
1182
1349
  icon?: string;
1183
1350
  /** Tooltip opcional associado ao indicador visual */
1184
1351
  tooltip?: TableTooltipConfig;
1352
+ /** Contrato declarativo de Quick View governado associado ao badge. */
1353
+ quickView?: ResourceQuickViewBinding;
1185
1354
  };
1186
1355
  /** Link (sanitizado) */
1187
1356
  link?: {
@@ -1191,6 +1360,8 @@ interface ColumnDefinition {
1191
1360
  hrefField?: string;
1192
1361
  target?: '_blank' | '_self' | '_parent' | '_top';
1193
1362
  rel?: string;
1363
+ /** Contrato declarativo de Quick View governado associado ao link. */
1364
+ quickView?: ResourceQuickViewBinding;
1194
1365
  };
1195
1366
  /** Botão (ação por linha) */
1196
1367
  button?: {
@@ -1216,6 +1387,8 @@ interface ColumnDefinition {
1216
1387
  variant?: 'filled' | 'outlined' | 'soft' | 'plain';
1217
1388
  /** Tooltip opcional associado ao chip */
1218
1389
  tooltip?: TableTooltipConfig;
1390
+ /** Contrato declarativo de Quick View governado associado ao chip. */
1391
+ quickView?: ResourceQuickViewBinding;
1219
1392
  };
1220
1393
  /** Barra de progresso leve */
1221
1394
  progress?: {
@@ -1278,7 +1451,10 @@ interface ColumnDefinition {
1278
1451
  textField?: string;
1279
1452
  valueField?: string;
1280
1453
  text?: string;
1454
+ prefix?: string;
1455
+ suffix?: string;
1281
1456
  emphasis?: 'strong' | 'subtle';
1457
+ quickView?: ResourceQuickViewBinding;
1282
1458
  } | {
1283
1459
  type: 'icon';
1284
1460
  icon?: {
@@ -1291,6 +1467,7 @@ interface ColumnDefinition {
1291
1467
  ariaLabel?: string;
1292
1468
  prefix?: string;
1293
1469
  suffix?: string;
1470
+ quickView?: ResourceQuickViewBinding;
1294
1471
  };
1295
1472
  } | {
1296
1473
  type: 'image';
@@ -1314,6 +1491,7 @@ interface ColumnDefinition {
1314
1491
  variant?: 'filled' | 'outlined' | 'soft' | 'plain';
1315
1492
  icon?: string;
1316
1493
  tooltip?: TableTooltipConfig;
1494
+ quickView?: ResourceQuickViewBinding;
1317
1495
  };
1318
1496
  } | {
1319
1497
  type: 'link';
@@ -1324,6 +1502,7 @@ interface ColumnDefinition {
1324
1502
  hrefField?: string;
1325
1503
  target?: '_blank' | '_self' | '_parent' | '_top';
1326
1504
  rel?: string;
1505
+ quickView?: ResourceQuickViewBinding;
1327
1506
  };
1328
1507
  } | {
1329
1508
  type: 'button';
@@ -1349,6 +1528,7 @@ interface ColumnDefinition {
1349
1528
  icon?: string;
1350
1529
  variant?: 'filled' | 'outlined' | 'soft' | 'plain';
1351
1530
  tooltip?: TableTooltipConfig;
1531
+ quickView?: ResourceQuickViewBinding;
1352
1532
  };
1353
1533
  } | {
1354
1534
  type: 'progress';
@@ -1411,7 +1591,14 @@ interface ColumnDefinition {
1411
1591
  };
1412
1592
  }>;
1413
1593
  layout?: {
1414
- direction?: 'row' | 'column';
1594
+ /**
1595
+ * `row`: todos os itens na mesma linha.
1596
+ * `column`: todos os itens empilhados.
1597
+ * `media`: padrão "media object" — o primeiro item (avatar, imagem ou ícone)
1598
+ * fica ancorado à esquerda e os demais itens empilham-se em linhas à direita
1599
+ * (ex.: avatar + nome em destaque + código/e-mail sutil).
1600
+ */
1601
+ direction?: 'row' | 'column' | 'media';
1415
1602
  gap?: number;
1416
1603
  align?: 'start' | 'center' | 'end';
1417
1604
  wrap?: boolean;
@@ -1419,6 +1606,12 @@ interface ColumnDefinition {
1419
1606
  };
1420
1607
  };
1421
1608
  };
1609
+ /**
1610
+ * Contrato declarativo e serializável de Quick View governado para a célula/coluna.
1611
+ * Pode ser especializado individualmente em `renderer.link.quickView`, `renderer.badge.quickView`,
1612
+ * `renderer.chip.quickView`, `renderer.icon.quickView` ou em itens de `renderer.compose.items`.
1613
+ */
1614
+ quickView?: ResourceQuickViewBinding;
1422
1615
  /** Overrides condicionais do renderer por linha (first‑match wins) */
1423
1616
  conditionalRenderers?: Array<{
1424
1617
  /** Identificador estável usado para reconciliação e deduplicação de regras authoradas. */
@@ -1749,8 +1942,8 @@ interface PaginationConfig {
1749
1942
  style: 'default' | 'simple' | 'advanced' | 'compact';
1750
1943
  /** Total de itens (para paginação server-side) */
1751
1944
  totalItems?: number;
1752
- /** Estratégia de paginação */
1753
- strategy: 'client' | 'server';
1945
+ /** Se omitida, o runtime usa server para recurso remoto e client para dados locais. */
1946
+ strategy?: 'client' | 'server';
1754
1947
  /** Configurações avançadas */
1755
1948
  advanced?: {
1756
1949
  /** Jump to page input */
@@ -1774,8 +1967,8 @@ interface SortingConfig {
1774
1967
  }>;
1775
1968
  /** Permitir ordenação múltipla */
1776
1969
  multiSort: boolean;
1777
- /** Estratégia de ordenação */
1778
- strategy: 'client' | 'server';
1970
+ /** Se omitida, o runtime usa server para recurso remoto e client para dados locais. */
1971
+ strategy?: 'client' | 'server';
1779
1972
  /** Mostrar indicadores visuais de ordenação */
1780
1973
  showSortIndicators: boolean;
1781
1974
  /** Posição dos indicadores */
@@ -1834,18 +2027,20 @@ interface FilterPresentationConfig {
1834
2027
  }
1835
2028
  interface FilteringConfig {
1836
2029
  /** Habilitar filtragem */
1837
- enabled: boolean;
2030
+ enabled?: boolean;
1838
2031
  /** Filtros por coluna */
1839
2032
  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';
2033
+ enabled?: boolean;
2034
+ /** Tipo de filtro padrão (opcional, padrão 'text') */
2035
+ defaultType?: 'text' | 'select' | 'date' | 'number' | 'boolean';
2036
+ /** Posição dos filtros (opcional, padrão 'header') */
2037
+ position?: 'header' | 'subheader' | 'sidebar';
1845
2038
  };
1846
2039
  /** Filtros avançados */
1847
2040
  advancedFilters?: {
1848
- enabled: boolean;
2041
+ enabled?: boolean;
2042
+ /** URL explícita para o schema do filtro (se omitida, inferida pelo host/CRUD a partir do resource.path) */
2043
+ schemaUrl?: string;
1849
2044
  /** Interface de query builder */
1850
2045
  queryBuilder?: boolean;
1851
2046
  /** Salvar filtros como presets */
@@ -1853,6 +2048,22 @@ interface FilteringConfig {
1853
2048
  /** Configurações específicas do componente praxis-filter */
1854
2049
  settings?: {
1855
2050
  presentation?: FilterPresentationConfig;
2051
+ /** Renderização inline de campos do filtro */
2052
+ inline?: boolean;
2053
+ /** Usar variante de seleção inline pesquisável */
2054
+ useInlineSearchableSelectVariant?: boolean;
2055
+ /** Usar variante inline para campos de slider ou intervalo numérico */
2056
+ useInlineRangeVariant?: boolean;
2057
+ /** Usar variante inline para campos de data */
2058
+ useInlineDateVariant?: boolean;
2059
+ /** Usar variante inline para campos de intervalo de datas (dateRange) */
2060
+ useInlineDateRangeVariant?: boolean;
2061
+ /** Usar variante inline para campos de horário */
2062
+ useInlineTimeVariant?: boolean;
2063
+ /** Usar variante inline para campos de intervalo de horários */
2064
+ useInlineTimeRangeVariant?: boolean;
2065
+ /** Usar variante inline para seleção em árvore (treeSelect) */
2066
+ useInlineTreeSelectVariant?: boolean;
1856
2067
  /** Campos sempre visíveis */
1857
2068
  alwaysVisibleFields?: string[];
1858
2069
  /** Overrides de metadata por campo sempre visível (merge sobre o DTO de filtro) */
@@ -1861,6 +2072,10 @@ interface FilteringConfig {
1861
2072
  selectedFieldIds?: string[];
1862
2073
  /** Exibir opções avançadas por padrão */
1863
2074
  showAdvanced?: boolean;
2075
+ /** Exibir botão "Gerenciar campos" na barra do filtro (padrão: true) */
2076
+ showAddButton?: boolean;
2077
+ /** Exibir botão "Configurações do filtro" na barra quando customização estiver disponível (padrão: true) */
2078
+ showFilterSettings?: boolean;
1864
2079
  /** Permitir salvar tags/atalhos de filtro */
1865
2080
  allowSaveTags?: boolean;
1866
2081
  /** Atalhos governados, somente leitura, aplicados como patch do DTO de filtro */
@@ -1909,10 +2124,10 @@ interface FilteringConfig {
1909
2124
  enablePerformanceMetrics?: boolean;
1910
2125
  };
1911
2126
  };
1912
- /** Estratégia de filtragem */
1913
- strategy: 'client' | 'server';
1914
- /** Debounce para filtros em tempo real (ms) */
1915
- debounceTime: number;
2127
+ /** Estratégia de filtragem (opcional, padrão 'server' ou 'client' pelo modo) */
2128
+ strategy?: 'client' | 'server';
2129
+ /** Debounce para filtros em tempo real (ms, opcional) */
2130
+ debounceTime?: number;
1916
2131
  }
1917
2132
  interface SelectionConfig {
1918
2133
  /** Habilitar seleção de linhas */
@@ -2219,10 +2434,10 @@ interface ElevationConfig {
2219
2434
  hoverElevation?: number;
2220
2435
  }
2221
2436
  interface ToolbarConfig {
2222
- /** Visibilidade da toolbar */
2223
- visible: boolean;
2224
- /** Posição da toolbar */
2225
- position: 'top' | 'bottom' | 'both';
2437
+ /** Visibilidade da toolbar (opcional, padrão true) */
2438
+ visible?: boolean;
2439
+ /** Posição da toolbar (opcional, padrão 'top') */
2440
+ position?: 'top' | 'bottom' | 'both';
2226
2441
  /** Posição das ações da toolbar */
2227
2442
  actionsPosition?: 'top' | 'bottom' | 'both';
2228
2443
  /** Cor de fundo da barra de ações */
@@ -2247,6 +2462,12 @@ interface ToolbarConfig {
2247
2462
  textAlign?: 'start' | 'center' | 'end';
2248
2463
  /** Ações da toolbar */
2249
2464
  actions?: ToolbarAction[];
2465
+ /** Configuração de busca rápida na toolbar */
2466
+ search?: {
2467
+ enabled?: boolean;
2468
+ placeholder?: string;
2469
+ debounceTime?: number;
2470
+ };
2250
2471
  /** Configurações de filtros na toolbar */
2251
2472
  filters?: ToolbarFilterConfig;
2252
2473
  /** Menu de configurações */
@@ -2330,6 +2551,8 @@ interface ToolbarAction {
2330
2551
  effects?: PraxisRuntimeGlobalActionEffect[];
2331
2552
  /** Tooltip */
2332
2553
  tooltip?: string;
2554
+ /** Descrição semântica da ação para descoberta, acessibilidade e operações de governança */
2555
+ description?: string;
2333
2556
  /** Tecla de atalho */
2334
2557
  shortcut?: string;
2335
2558
  /** Escopo do atalho: somente toolbar ativa ou global */
@@ -2349,12 +2572,7 @@ interface ToolbarFilterConfig {
2349
2572
  /** Habilitar filtros rápidos na toolbar */
2350
2573
  enabled: boolean;
2351
2574
  /** Filtros rápidos disponíveis */
2352
- quickFilters?: Array<{
2353
- id: string;
2354
- label: string;
2355
- filter: any;
2356
- icon?: string;
2357
- }>;
2575
+ quickFilters?: PraxisResourceQuickFilter[];
2358
2576
  /** Mostrar botões de filtros rápidos na toolbar (default: true) */
2359
2577
  showQuickFilters?: boolean;
2360
2578
  /** Mostrar botão de filtros avançados */
@@ -2473,6 +2691,8 @@ interface RowAction {
2473
2691
  effects?: PraxisRuntimeGlobalActionEffect[];
2474
2692
  /** Surface de registro canonica aberta por esta acao de linha */
2475
2693
  recordSurface?: ResourceSurfaceCatalogItem;
2694
+ /** Contrato declarativo de Quick View governado aberto ancorado ao gatilho desta ação de linha */
2695
+ quickView?: ResourceQuickViewBinding;
2476
2696
  /** Tooltip */
2477
2697
  tooltip?: string;
2478
2698
  /** Requer confirmação */
@@ -2803,6 +3023,11 @@ interface TableDrawerConfig {
2803
3023
  tabs?: PraxisAnalyticalDrawerTab[];
2804
3024
  /** Orquestração declarativa de sub-recursos e relações vinculadas (Issue #32) */
2805
3025
  relations?: PraxisAnalyticalDrawerRelation[];
3026
+ /**
3027
+ * Quando verdadeiro em uma configuração local/DI, hidrata automaticamente `x-ui.calculationMemory`
3028
+ * publicado pelo DTO backend (`@CalculationMemory` — PLAT-EVO-20) sem duplicar trilhas no frontend.
3029
+ */
3030
+ hydrateRemoteCalculationMemory?: boolean;
2806
3031
  }
2807
3032
  /**
2808
3033
  * Esquema estrutural canônico para gavetas analíticas e dossiês multi-aba (`kind: 'praxis.analytical-drawer.schema'`).
@@ -2814,8 +3039,182 @@ interface PraxisAnalyticalDrawerSchema {
2814
3039
  subtitleExpr?: string;
2815
3040
  icon?: string;
2816
3041
  classificationPill?: string;
2817
- tabs: PraxisAnalyticalDrawerTab[];
3042
+ tabs?: PraxisAnalyticalDrawerTab[];
2818
3043
  relations?: PraxisAnalyticalDrawerRelation[];
3044
+ /**
3045
+ * Seção nativa de Memória de Cálculo Explicável (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado + Fundamentação Legal`).
3046
+ * Permite que hosts de Folha, Tributos ou Faturamento exibam explicabilidade algorítmica declarativamente via JSON/schema.
3047
+ */
3048
+ calculationMemory?: PraxisAnalyticalDrawerCalculationMemoryContent | PraxisAnalyticalDrawerCalculationTrail[];
3049
+ /**
3050
+ * Hidrata automaticamente `x-ui.calculationMemory` publicado pelo `ResponseDTO` backend (`@CalculationMemory` — PLAT-EVO-20)
3051
+ * sobre o dossiê local registrado no `AnalyticalDrawerRegistryService`.
3052
+ */
3053
+ hydrateRemoteCalculationMemory?: boolean;
3054
+ }
3055
+ /**
3056
+ * Papel semântico de uma etapa dentro de uma trilha de memória de cálculo.
3057
+ */
3058
+ type PraxisAnalyticalDrawerCalculationStepRole = 'base' | 'factor' | 'cap' | 'target' | 'deduction' | 'addition' | 'subtotal' | 'result' | 'custom';
3059
+ /**
3060
+ * Etapa individual na sequência algorítmica de memória de cálculo
3061
+ * (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado`).
3062
+ */
3063
+ interface PraxisAnalyticalDrawerCalculationStep {
3064
+ /** Papel semântico da etapa (ex.: 'base', 'factor', 'cap', 'subtotal', 'result'). */
3065
+ role?: PraxisAnalyticalDrawerCalculationStepRole;
3066
+ /** Discriminador canônico de etapa emitido por `@CalculationStep` (`x-ui.calculationMemory`). */
3067
+ kind?: PraxisAnalyticalDrawerCalculationStepRole;
3068
+ /** Rótulo exibido na etapa (ex.: 'Base de Cálculo', 'Fator / Alíquota', 'Trava / Teto', 'Resultado'). */
3069
+ label: string;
3070
+ /** Valor estático opcional quando não derivado por expressão. */
3071
+ value?: unknown;
3072
+ /** Expressão avaliada contra `{ row, relations, env }` via `SafeExpressionEvaluator`. */
3073
+ valueExpr?: string;
3074
+ /** Alias direto de expressão emitido por `@CalculationStep`. */
3075
+ expr?: string;
3076
+ /** Operador matemático ou lógico exibido antes da etapa (ex.: '×', '÷', '+', '-', '≤', '='). */
3077
+ operator?: string;
3078
+ /** Formato de apresentação ('currency:BRL', 'percent', 'number', 'integer', 'text'). */
3079
+ format?: string;
3080
+ /** Nota ou fórmula curta auxiliar sob o valor da etapa. */
3081
+ hint?: string;
3082
+ /** Expressão opcional para nota/fórmula curta auxiliar. */
3083
+ hintExpr?: string;
3084
+ /** Referência normativa específica da etapa (`@CalculationStep.legalBasis`). */
3085
+ legalBasis?: string;
3086
+ /** Ícone Material opcional da etapa. */
3087
+ icon?: string;
3088
+ /** Tom visual da etapa (ex.: 'neutral', 'info', 'warning', 'success', 'danger', 'primary'). */
3089
+ tone?: string;
3090
+ }
3091
+ /**
3092
+ * Trilha estruturada de memória de cálculo explicável
3093
+ * (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado + Fundamentação Legal`).
3094
+ */
3095
+ interface PraxisAnalyticalDrawerCalculationTrail {
3096
+ /** Identificador único da trilha de cálculo (ex.: 'terco-ferias', 'abate-teto', 'irrf'). */
3097
+ id?: string;
3098
+ /** Título da memória de cálculo. */
3099
+ title?: string;
3100
+ /** Expressão opcional para título dinâmico da trilha. */
3101
+ titleExpr?: string;
3102
+ /** Subtítulo ou rubrica/competência. */
3103
+ subtitle?: string;
3104
+ /** Expressão opcional para subtítulo dinâmico. */
3105
+ subtitleExpr?: string;
3106
+ /** Ícone Material da trilha (padrão: 'calculate'). */
3107
+ icon?: string;
3108
+ /** Código da regra determinística ou rubrica que originou o cálculo. */
3109
+ ruleCode?: string;
3110
+ /** Expressão opcional para o código da regra/rubrica. */
3111
+ ruleCodeExpr?: string;
3112
+ /** Expressão algébrica legível da fórmula (ex.: 'min(Base × Alíquota, Teto)'). */
3113
+ formula?: string;
3114
+ /** Expressão opcional para fórmula algébrica dinâmica. */
3115
+ formulaExpr?: string;
3116
+ baseLabel?: string;
3117
+ baseValue?: unknown;
3118
+ baseExpr?: string;
3119
+ baseFormat?: string;
3120
+ baseHint?: string;
3121
+ baseHintExpr?: string;
3122
+ additionLabel?: string;
3123
+ additionValue?: unknown;
3124
+ additionExpr?: string;
3125
+ additionFormat?: string;
3126
+ additionHint?: string;
3127
+ additionHintExpr?: string;
3128
+ deductionLabel?: string;
3129
+ deductionValue?: unknown;
3130
+ deductionExpr?: string;
3131
+ deductionFormat?: string;
3132
+ deductionHint?: string;
3133
+ deductionHintExpr?: string;
3134
+ factorLabel?: string;
3135
+ factorValue?: unknown;
3136
+ factorExpr?: string;
3137
+ factorFormat?: string;
3138
+ factorHint?: string;
3139
+ factorHintExpr?: string;
3140
+ capLabel?: string;
3141
+ capOperator?: string;
3142
+ capValue?: unknown;
3143
+ capExpr?: string;
3144
+ capFormat?: string;
3145
+ capHint?: string;
3146
+ capHintExpr?: string;
3147
+ targetLabel?: string;
3148
+ targetValue?: unknown;
3149
+ targetExpr?: string;
3150
+ targetFormat?: string;
3151
+ targetHint?: string;
3152
+ targetHintExpr?: string;
3153
+ resultLabel?: string;
3154
+ resultValue?: unknown;
3155
+ resultExpr?: string;
3156
+ resultFormat?: string;
3157
+ resultHint?: string;
3158
+ resultHintExpr?: string;
3159
+ resultTone?: string;
3160
+ /**
3161
+ * Sequência explícita de etapas (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado`).
3162
+ * Quando omitida, o componente sintetiza automaticamente os estágios configurados em
3163
+ * `base*`, `addition*`, `deduction*`, `factor*`, `cap*` e `result*`.
3164
+ */
3165
+ steps?: PraxisAnalyticalDrawerCalculationStep[];
3166
+ /** Fundamentação legal ou normativa (ex.: 'CF/88, art. 7º, XVII; Lei 8.112/1990, art. 76'). */
3167
+ legalBasis?: string;
3168
+ /** Expressão opcional para fundamentação legal dinâmica a partir da linha ou relação. */
3169
+ legalBasisExpr?: string;
3170
+ /** Finalidade legal ou nota de conformidade normativa. */
3171
+ legalPurpose?: string;
3172
+ /** Expressão opcional para finalidade legal dinâmica. */
3173
+ legalPurposeExpr?: string;
3174
+ /** Condição opcional (`SafeExpressionEvaluator`) para exibir a trilha apenas quando aplicável. */
3175
+ visibleWhen?: string;
3176
+ }
3177
+ /**
3178
+ * Bloco declarativo de Memória de Cálculo Explicável para abas ou seções do `<praxis-analytical-drawer>`.
3179
+ */
3180
+ interface PraxisAnalyticalDrawerCalculationMemoryContent {
3181
+ type: 'calculationMemory';
3182
+ /** Título opcional da seção de memória de cálculo. */
3183
+ title?: string;
3184
+ /** Expressão opcional para título dinâmico da seção. */
3185
+ titleExpr?: string;
3186
+ /** Subtítulo ou resumo explicativo da seção. */
3187
+ subtitle?: string;
3188
+ /** Expressão opcional para subtítulo dinâmico da seção. */
3189
+ subtitleExpr?: string;
3190
+ /** Ícone opcional da seção (padrão: 'calculate'). */
3191
+ icon?: string;
3192
+ /** Lista declarativa de trilhas de memória de cálculo. */
3193
+ trails?: PraxisAnalyticalDrawerCalculationTrail[];
3194
+ /** Expressão opcional (`SafeExpressionEvaluator`) que resolve trilhas dinâmicas vindas do backend. */
3195
+ trailsExpr?: string;
3196
+ /** Fundamentação legal geral da seção quando compartilhada pelas trilhas. */
3197
+ legalBasis?: string;
3198
+ /** Expressão opcional para fundamentação legal geral da seção. */
3199
+ legalBasisExpr?: string;
3200
+ /** Mensagem exibida quando nenhuma trilha for aplicável para o registro atual. */
3201
+ emptyText?: string;
3202
+ }
3203
+ /**
3204
+ * Item individual de propriedade dentro de um grid analítico em uma aba (Property Grid).
3205
+ */
3206
+ interface PraxisAnalyticalDrawerPropertyItem {
3207
+ label?: string;
3208
+ field?: string;
3209
+ icon?: string;
3210
+ valueExpr?: string;
3211
+ value?: unknown;
3212
+ format?: string;
3213
+ spanFull?: boolean;
3214
+ toneExpr?: string;
3215
+ pipe?: string;
3216
+ fallbackText?: string;
3217
+ [key: string]: unknown;
2819
3218
  }
2820
3219
  /**
2821
3220
  * Definição de aba temática dentro de uma gaveta analítica.
@@ -2826,7 +3225,9 @@ interface PraxisAnalyticalDrawerTab {
2826
3225
  icon?: string;
2827
3226
  badge?: string;
2828
3227
  count?: number;
2829
- content?: TableDetailSchemaNode | TableDetailInlineSchemaDocument | RichContentDocument | Record<string, unknown>;
3228
+ content?: TableDetailSchemaNode | TableDetailInlineSchemaDocument | RichContentDocument | PraxisAnalyticalDrawerCalculationMemoryContent | Record<string, unknown> | PraxisAnalyticalDrawerPropertyItem[] | Array<Record<string, unknown>>;
3229
+ /** Seção opcional de memória de cálculo exibida dentro desta aba analítica. */
3230
+ calculationMemory?: PraxisAnalyticalDrawerCalculationMemoryContent | PraxisAnalyticalDrawerCalculationTrail[];
2830
3231
  }
2831
3232
  /**
2832
3233
  * Contrato declarativo de sub-recurso / relação vinculada para injeção automática no contexto reativo (`context.relations`).
@@ -2887,6 +3288,8 @@ interface PraxisKpiBandCard {
2887
3288
  className?: string;
2888
3289
  /** Tooltip explicativo ao pairar o mouse */
2889
3290
  tooltip?: string;
3291
+ /** Micro-visualização declarativa opcional exibida no corpo do card KPI */
3292
+ visualization?: PraxisPresentationVisualizationConfig;
2890
3293
  }
2891
3294
  interface PraxisKpiBandConfig {
2892
3295
  /** Se a faixa de KPIs está habilitada (padrão: true quando configurada) */
@@ -3690,6 +4093,13 @@ declare const FieldControlType: {
3690
4093
  };
3691
4094
  type FieldControlType = (typeof FieldControlType)[keyof typeof FieldControlType];
3692
4095
 
4096
+ /** Scalar JSON Schema items projected by the operation schema; object collections use FieldArrayConfig. */
4097
+ interface FieldScalarItemsSchema {
4098
+ type: 'string' | 'integer' | 'number' | 'boolean';
4099
+ format?: string;
4100
+ enum?: readonly (string | number | boolean | null)[];
4101
+ }
4102
+
3693
4103
  type FormFieldHelpDisplay = 'auto' | 'inline' | 'popover' | 'hidden';
3694
4104
 
3695
4105
  /**
@@ -3906,8 +4316,27 @@ interface FieldOption {
3906
4316
  icon?: string;
3907
4317
  /** Tooltip text for option */
3908
4318
  tooltip?: string;
3909
- /** Detailed description for the option */
4319
+ /** Optional semantic visual tone mapped by UI consumers. */
4320
+ tone?: string;
4321
+ /**
4322
+ * Secondary business/domain description rendered on a dedicated line in rich selectors.
4323
+ * Do not concatenate `code` or `badge` here when those properties are populated separately.
4324
+ */
3910
4325
  description?: string;
4326
+ /**
4327
+ * Optional technical identifier, field key, or endpoint path rendered in a monospace slot
4328
+ * (both in the dropdown option and in the closed select trigger).
4329
+ */
4330
+ code?: string;
4331
+ /**
4332
+ * Optional domain group, data type, or governance badge (e.g. `"RH · Somente leitura"`, `"integer"`)
4333
+ * rendered as a pill next to the option label.
4334
+ */
4335
+ badge?: string;
4336
+ /**
4337
+ * Optional additional keywords indexed for accent-insensitive client-side search.
4338
+ */
4339
+ searchTerms?: string[];
3911
4340
  }
3912
4341
  /**
3913
4342
  * Angular Material specific styling and behavior options.
@@ -4006,6 +4435,10 @@ type FieldSubmitPolicy = 'include' | 'omit' | 'includeWhenDirty';
4006
4435
  interface FieldMetadata extends ComponentMetadata {
4007
4436
  /** Unique field identifier (required) */
4008
4437
  name: string;
4438
+ /** Backend-authored custom-field identity; `name` retains the full value path. */
4439
+ customField?: boolean;
4440
+ customFieldKey?: string;
4441
+ customFieldScope?: string;
4009
4442
  /** Display label for the field */
4010
4443
  label: string;
4011
4444
  /**
@@ -4027,6 +4460,8 @@ interface FieldMetadata extends ComponentMetadata {
4027
4460
  dataType?: FieldDataType;
4028
4461
  /** Canonical metadata for editable collection fields (`controlType: "array"`). */
4029
4462
  array?: FieldArrayConfig;
4463
+ /** Scalar array item contract projected from the operation's JSON Schema. */
4464
+ items?: FieldScalarItemsSchema;
4030
4465
  /** Optional top-level alias for collection validators mirrored into `array.collectionValidation`. */
4031
4466
  collectionValidation?: FieldArrayCollectionValidation;
4032
4467
  /** Display order in form */
@@ -4074,6 +4509,24 @@ interface FieldMetadata extends ComponentMetadata {
4074
4509
  fieldAccess?: FieldAccessMetadata;
4075
4510
  /** Field is hidden from display */
4076
4511
  hidden?: boolean;
4512
+ /** Hidden specifically in collection table columns (`x-ui.tableHidden`). */
4513
+ tableHidden?: boolean;
4514
+ /** Hidden specifically inside generated forms (`x-ui.formHidden`). */
4515
+ formHidden?: boolean;
4516
+ /** Explicit column sort order inside collection tables (`x-ui.tableOrder`). */
4517
+ tableOrder?: number;
4518
+ /** Explicit sticky side inside collection tables (`x-ui.pinned`). */
4519
+ pinned?: 'start' | 'end';
4520
+ /** Marks field as primary quick-search filter target (`x-ui.primarySearch`). */
4521
+ primarySearch?: boolean;
4522
+ /** Explicit 12-column responsive grid span (`x-ui.colSpan`, `1..12`). */
4523
+ colSpan?: number;
4524
+ /** Active workspace context binding contract (`x-ui.contextBinding`). */
4525
+ contextBinding?: PraxisContextBindingContract;
4526
+ /** Indicates field value must clear when cloning a draft (`x-ui.draftCleared`). */
4527
+ draftCleared?: boolean;
4528
+ /** Resource-state mutability rules (`x-ui.resourceState`). */
4529
+ resourceState?: PraxisResourceStateContract;
4077
4530
  /** Canonical conditional visibility guard for metadata-driven forms. */
4078
4531
  hiddenCondition?: JsonLogicExpression | null;
4079
4532
  /** Default value when form initializes */
@@ -4151,6 +4604,10 @@ interface FieldMetadata extends ComponentMetadata {
4151
4604
  * heuristics.
4152
4605
  */
4153
4606
  valuePresentation?: ValuePresentationConfig;
4607
+ /** Micro-visualization metadata published via `x-ui.microVisualization`. */
4608
+ microVisualization?: PraxisPresentationVisualizationConfig;
4609
+ /** Numeric format directive (`auto`, `integer`, `decimal`, `currency`, `percent`). */
4610
+ numericFormat?: 'auto' | 'integer' | 'decimal' | 'currency' | 'percent' | string;
4154
4611
  /**
4155
4612
  * Semantic presentation metadata for read-only/display surfaces.
4156
4613
  *
@@ -4163,6 +4620,14 @@ interface FieldMetadata extends ComponentMetadata {
4163
4620
  * readonly/display surfaces. Later matching rules win.
4164
4621
  */
4165
4622
  presentationRules?: FieldPresentationRule[];
4623
+ /** Indicates that this field is curated for display in the Quick View summary list. */
4624
+ quickViewVisible?: boolean;
4625
+ /** Relative order of this field in the Quick View summary list when quickViewVisible is true. */
4626
+ quickViewOrder?: number;
4627
+ /** Canonical cross-resource reference contract published in x-ui.resourceReference. */
4628
+ resourceReference?: ResourceReferenceMetadata;
4629
+ /** Declarative governed Quick View contract for reference fields. */
4630
+ quickView?: ResourceQuickViewBinding;
4166
4631
  /** Material Design specific configuration */
4167
4632
  materialDesign?: MaterialDesignConfig;
4168
4633
  /**
@@ -4178,6 +4643,8 @@ interface FieldMetadata extends ComponentMetadata {
4178
4643
  conditionalRequired?: JsonLogicExpression | null;
4179
4644
  /** Canonical conditional visibility guard for metadata-driven forms. */
4180
4645
  conditionalDisplay?: JsonLogicExpression | null;
4646
+ /** Conditional read-only guard (`x-ui.conditionalReadOnly`). */
4647
+ conditionalReadOnly?: JsonLogicExpression | string | null;
4181
4648
  /** Reset value when dependency changes */
4182
4649
  resetOnDependentChange?: boolean;
4183
4650
  /** Enable native field-to-field dependency cascade inside the same form */
@@ -4210,10 +4677,6 @@ interface FieldMetadata extends ComponentMetadata {
4210
4677
  textTransformApply?: 'displayOnly' | 'saveOnly' | 'both';
4211
4678
  /** Contexts where field should be visible */
4212
4679
  visibleIn?: Array<'form' | 'filter' | 'table' | 'dialog'>;
4213
- /** Hide in specific form contexts */
4214
- formHidden?: boolean;
4215
- /** Hide in table contexts */
4216
- tableHidden?: boolean;
4217
4680
  /** Hide in filter contexts */
4218
4681
  filterHidden?: boolean;
4219
4682
  /** ARIA label for screen readers */
@@ -4232,6 +4695,16 @@ interface FieldAccessMetadata {
4232
4695
  reason?: string;
4233
4696
  }
4234
4697
 
4698
+ type PraxisContextBindingDimension = 'organization' | 'company_group' | 'unit' | 'person' | 'bond' | 'contract';
4699
+ interface PraxisContextBindingContract {
4700
+ dimension: PraxisContextBindingDimension;
4701
+ lockWhenActive: boolean;
4702
+ targetField?: string;
4703
+ }
4704
+ interface PraxisResourceStateContract {
4705
+ initialStates?: string[];
4706
+ putMutableStates?: string[];
4707
+ }
4235
4708
  /**
4236
4709
  * Contrato de saída do normalizador de esquema (SchemaNormalizerService):
4237
4710
  * - Converte metadados `x-ui` em FieldDefinition tipado.
@@ -4244,6 +4717,10 @@ interface FieldAccessMetadata {
4244
4717
  */
4245
4718
  interface FieldDefinition {
4246
4719
  name: string;
4720
+ /** Backend-authored custom-field identity; `name` retains the full value path. */
4721
+ customField?: boolean;
4722
+ customFieldKey?: string;
4723
+ customFieldScope?: string;
4247
4724
  label?: string;
4248
4725
  description?: string;
4249
4726
  type?: string;
@@ -4264,6 +4741,8 @@ interface FieldDefinition {
4264
4741
  readOnly?: boolean;
4265
4742
  fieldAccess?: FieldAccessMetadata;
4266
4743
  array?: FieldArrayConfig;
4744
+ /** Scalar array item contract from JSON Schema; independent of object collection authoring. */
4745
+ items?: FieldScalarItemsSchema;
4267
4746
  collectionValidation?: FieldArrayCollectionValidation;
4268
4747
  multiple?: boolean;
4269
4748
  editable?: boolean;
@@ -4273,11 +4752,24 @@ interface FieldDefinition {
4273
4752
  sortable?: boolean;
4274
4753
  /** Json Logic canônico que define obrigatoriedade condicional. */
4275
4754
  conditionalRequired?: JsonLogicExpression | null;
4755
+ /** Expressão condicional de somente leitura publicada em `x-ui.conditionalReadOnly`. */
4756
+ conditionalReadOnly?: JsonLogicExpression | string | null;
4757
+ /** Span explícito em grid de 12 colunas (`1..12`). */
4758
+ colSpan?: number;
4759
+ /** Vínculo com contexto ativo de workspace (`x-ui.contextBinding`). */
4760
+ contextBinding?: PraxisContextBindingContract;
4761
+ /** Indica limpeza do campo ao clonar rascunho (`x-ui.draftCleared`). */
4762
+ draftCleared?: boolean;
4763
+ /** Regras declarativas de mutabilidade por estado (`x-ui.resourceState`). */
4764
+ resourceState?: PraxisResourceStateContract;
4276
4765
  viewOnlyStyle?: string;
4277
4766
  /** Lista de gatilhos de validação, ex.: ["blur", "change"]. */
4278
4767
  validationTriggers?: string[];
4279
4768
  hidden?: boolean;
4280
4769
  tableHidden?: boolean;
4770
+ tableOrder?: number;
4771
+ pinned?: 'start' | 'end';
4772
+ primarySearch?: boolean;
4281
4773
  formHidden?: boolean;
4282
4774
  filterable?: boolean;
4283
4775
  /** Json Logic canônico que controla se o campo é exibido. */
@@ -4311,6 +4803,10 @@ interface FieldDefinition {
4311
4803
  key: string;
4312
4804
  value: string;
4313
4805
  label?: string;
4806
+ icon?: string;
4807
+ tone?: string;
4808
+ description?: string;
4809
+ disabled?: boolean;
4314
4810
  [key: string]: any;
4315
4811
  }[];
4316
4812
  filter?: any;
@@ -4321,16 +4817,28 @@ interface FieldDefinition {
4321
4817
  optionLabelKey?: string;
4322
4818
  optionValueKey?: string;
4323
4819
  filterOptions?: any[];
4324
- numericFormat?: string;
4820
+ numericFormat?: 'auto' | 'integer' | 'decimal' | 'currency' | 'percent' | string;
4325
4821
  valuePresentation?: ValuePresentationConfig;
4822
+ /** Micro-visualização declarada em `x-ui.microVisualization`. */
4823
+ microVisualization?: PraxisPresentationVisualizationConfig;
4326
4824
  /** Semantic read-only/list presentation metadata from canonical x-ui.presentation. */
4327
4825
  presentation?: FieldPresentationConfig;
4328
4826
  /** Conditional presentation overrides for read-only/list consumers. */
4329
4827
  presentationRules?: FieldPresentationRule[];
4828
+ /** Indicates that this field is curated for display in the Quick View summary list. */
4829
+ quickViewVisible?: boolean;
4830
+ /** Relative order of this field in the Quick View summary list when quickViewVisible is true. */
4831
+ quickViewOrder?: number;
4832
+ /** Canonical cross-resource reference contract published in x-ui.resourceReference. */
4833
+ resourceReference?: ResourceReferenceMetadata;
4834
+ /** Declarative governed Quick View contract for reference fields. */
4835
+ quickView?: ResourceQuickViewBinding;
4330
4836
  numericStep?: number;
4331
4837
  numericMin?: number;
4332
4838
  numericMax?: number;
4333
4839
  numericMaxLength?: number;
4840
+ inlineVisualStyle?: 'compact' | 'graphic';
4841
+ percentPresets?: number[];
4334
4842
  optionGroups?: {
4335
4843
  key: string;
4336
4844
  value: string;
@@ -4391,6 +4899,16 @@ interface FieldDefinition {
4391
4899
  showInlineErrors?: boolean;
4392
4900
  /** Posição preferida da mensagem de erro (ex.: below, right). */
4393
4901
  errorPosition?: string;
4902
+ /** Exibe o rótulo de valor no thumb de sliders (`slider`, `rangeSlider`, `inlineRange`). */
4903
+ thumbLabel?: boolean;
4904
+ /** Controla quando o rótulo de valor é exibido em sliders (`'off' | 'auto' | 'on'`). */
4905
+ valueLabelDisplay?: 'off' | 'auto' | 'on';
4906
+ /** Ativa o modo discreto (thumb label) em sliders Material. */
4907
+ discrete?: boolean;
4908
+ /** Exibe campos numéricos auxiliares sincronizados ao slider/range. */
4909
+ showInputs?: boolean;
4910
+ /** Exibe marcações (ticks) ao longo da trilha do slider. */
4911
+ showTicks?: boolean | 'auto';
4394
4912
  [key: string]: any;
4395
4913
  }
4396
4914