@praxisui/core 10.0.0-rc.38 → 10.0.0-rc.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/component-registry.json +4 -4
- package/fesm2022/praxisui-core-schema.mjs +483 -4
- package/fesm2022/praxisui-core.mjs +7588 -4548
- package/package.json +1 -1
- package/theme-bridge.css +81 -0
- package/theming/_theming.scss +96 -0
- package/types/praxisui-core-schema.d.ts +221 -131
- package/types/praxisui-core.d.ts +2215 -1586
|
@@ -256,6 +256,172 @@ interface PraxisPresentationVisualizationConfig {
|
|
|
256
256
|
}
|
|
257
257
|
declare function isPraxisPresentationVisualizationTableSafe(value: PraxisPresentationVisualizationConfig | null | undefined): boolean;
|
|
258
258
|
|
|
259
|
+
type FieldPresentationTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
260
|
+
type FieldPresentationAppearance = 'plain' | 'soft' | 'outlined' | 'filled';
|
|
261
|
+
type FieldPresenterKind = 'text' | 'badge' | 'chip' | 'status' | 'iconValue' | 'progress' | 'rating' | 'microVisualization';
|
|
262
|
+
interface FieldPresentationInteractions {
|
|
263
|
+
/** Allows readonly surfaces to expose a copy affordance without changing the field value. */
|
|
264
|
+
copy?: boolean;
|
|
265
|
+
/** Allows readonly surfaces to expose contextual detail expansion. */
|
|
266
|
+
details?: boolean;
|
|
267
|
+
/** Allows readonly surfaces to expose inline expansion for long values. */
|
|
268
|
+
expand?: boolean;
|
|
269
|
+
/** Allows readonly surfaces to expose a link affordance when the value is navigable. */
|
|
270
|
+
link?: boolean;
|
|
271
|
+
/** Optional governed Quick View binding for readonly/presentation reference fields. */
|
|
272
|
+
quickView?: ResourceQuickViewBinding;
|
|
273
|
+
}
|
|
274
|
+
interface FieldPresentationConfig {
|
|
275
|
+
/** Semantic display strategy for readonly/presentation surfaces. */
|
|
276
|
+
presenter?: FieldPresenterKind;
|
|
277
|
+
/** Alias accepted for schema authors that describe the semantic display as a variant. */
|
|
278
|
+
variant?: FieldPresenterKind;
|
|
279
|
+
/** Semantic tone mapped by consumers to theme tokens. */
|
|
280
|
+
tone?: FieldPresentationTone;
|
|
281
|
+
/** Material Symbols icon name, without arbitrary HTML. */
|
|
282
|
+
icon?: string;
|
|
283
|
+
/** Optional semantic label for status/chip/badge presentations. */
|
|
284
|
+
label?: string;
|
|
285
|
+
/** Optional secondary marker rendered by presentation-capable consumers. */
|
|
286
|
+
badge?: string;
|
|
287
|
+
/** Optional tooltip text for the presentation wrapper. */
|
|
288
|
+
tooltip?: string;
|
|
289
|
+
/** Optional readonly prefix rendered next to the displayed value without changing the raw value. */
|
|
290
|
+
prefix?: string;
|
|
291
|
+
/** Optional readonly suffix rendered next to the displayed value without changing the raw value. */
|
|
292
|
+
suffix?: string;
|
|
293
|
+
/** Optional icon override when the field resolves to a truthy boolean state. */
|
|
294
|
+
iconTrue?: string;
|
|
295
|
+
/** Optional icon override when the field resolves to a falsy boolean state. */
|
|
296
|
+
iconFalse?: string;
|
|
297
|
+
/** Optional semantic tone when the field resolves to a truthy boolean state. */
|
|
298
|
+
toneTrue?: FieldPresentationTone;
|
|
299
|
+
/** Optional semantic tone when the field resolves to a falsy boolean state. */
|
|
300
|
+
toneFalse?: FieldPresentationTone;
|
|
301
|
+
/** Optional display label when the field resolves to a truthy boolean state. */
|
|
302
|
+
labelTrue?: string;
|
|
303
|
+
/** Optional display label when the field resolves to a falsy boolean state. */
|
|
304
|
+
labelFalse?: string;
|
|
305
|
+
/** Visual density/emphasis strategy mapped by consumers to theme tokens. */
|
|
306
|
+
appearance?: FieldPresentationAppearance;
|
|
307
|
+
/** Optional formatter override for the presentation surface only. */
|
|
308
|
+
valuePresentation?: ValuePresentationConfig;
|
|
309
|
+
/** Renderer-neutral micro visualization metadata for compact presentation surfaces. */
|
|
310
|
+
visualization?: PraxisPresentationVisualizationConfig;
|
|
311
|
+
/** Safe readonly affordances. No commands or mutations are executed from this contract. */
|
|
312
|
+
interactions?: FieldPresentationInteractions;
|
|
313
|
+
}
|
|
314
|
+
interface FieldPresentationRule {
|
|
315
|
+
/** Json Logic guard evaluated against the presentation context. */
|
|
316
|
+
when: JsonLogicExpression;
|
|
317
|
+
/** Semantic presentation state merged when the guard is truthy. */
|
|
318
|
+
set?: FieldPresentationConfig;
|
|
319
|
+
/** Alias for `set`, useful for rule-builder terminology. */
|
|
320
|
+
effect?: FieldPresentationConfig;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
type PraxisExportFormat = 'excel' | 'pdf' | 'csv' | 'json' | 'print';
|
|
324
|
+
type PraxisExportScope = 'auto' | 'selected' | 'filtered' | 'currentPage' | 'all';
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Contratos compartilhados de discovery semantico consumidos pelo runtime Angular.
|
|
328
|
+
*
|
|
329
|
+
* `resourcePath` continua sendo o endereco operacional do recurso.
|
|
330
|
+
* `resourceKey` representa a identidade semantica estavel devolvida pelo backend para
|
|
331
|
+
* surfaces, actions e capabilities.
|
|
332
|
+
*
|
|
333
|
+
* O runtime usa `resourceKey` para preservar contexto semantico e gerar ids estaveis de
|
|
334
|
+
* abertura, enquanto `resourcePath`, `path`, `method` e `schemaUrl` seguem responsaveis pelo
|
|
335
|
+
* comportamento operacional.
|
|
336
|
+
*/
|
|
337
|
+
|
|
338
|
+
interface ResourceAvailabilityDecision {
|
|
339
|
+
allowed: boolean;
|
|
340
|
+
reason?: string | null;
|
|
341
|
+
metadata?: Record<string, any>;
|
|
342
|
+
}
|
|
343
|
+
type ResourceSurfaceKind = 'FORM' | 'PARTIAL_FORM' | 'VIEW' | 'READ_PROJECTION';
|
|
344
|
+
type ResourceSurfaceScope = 'COLLECTION' | 'ITEM';
|
|
345
|
+
type ResourceSurfaceResponseCardinality = 'OBJECT' | 'COLLECTION' | 'PAGE' | 'VOID' | 'UNKNOWN';
|
|
346
|
+
type RelatedResourceChildOperation = 'FILTER' | 'LIST' | 'CREATE' | 'UPDATE' | 'DELETE' | 'DUPLICATE_DRAFT';
|
|
347
|
+
interface RelatedResourceSurface {
|
|
348
|
+
parentResourceKey: string;
|
|
349
|
+
parentIdPathVariable: string;
|
|
350
|
+
childResourceKey: string;
|
|
351
|
+
childResourcePath: string;
|
|
352
|
+
childParentField: string;
|
|
353
|
+
selectable: boolean;
|
|
354
|
+
selectionKeyField: string;
|
|
355
|
+
childOperations: RelatedResourceChildOperation[];
|
|
356
|
+
}
|
|
357
|
+
interface ResourceSurfaceCatalogItem {
|
|
358
|
+
id: string;
|
|
359
|
+
resourceKey: string;
|
|
360
|
+
kind: ResourceSurfaceKind;
|
|
361
|
+
scope: ResourceSurfaceScope;
|
|
362
|
+
title: string;
|
|
363
|
+
description?: string | null;
|
|
364
|
+
intent?: string | null;
|
|
365
|
+
operationId: string;
|
|
366
|
+
path: string;
|
|
367
|
+
method: string;
|
|
368
|
+
schemaId: string;
|
|
369
|
+
schemaUrl: string;
|
|
370
|
+
responseCardinality?: ResourceSurfaceResponseCardinality | null;
|
|
371
|
+
availability: ResourceAvailabilityDecision;
|
|
372
|
+
order: number;
|
|
373
|
+
tags: string[];
|
|
374
|
+
relatedResource?: RelatedResourceSurface | null;
|
|
375
|
+
}
|
|
376
|
+
interface ResourceRecordOpenRef {
|
|
377
|
+
sourceIdentityField: string;
|
|
378
|
+
target: {
|
|
379
|
+
resourceKey: string;
|
|
380
|
+
surfaceId: string;
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
interface GlobalActionRef {
|
|
385
|
+
actionId: string;
|
|
386
|
+
payload?: any;
|
|
387
|
+
payloadExpr?: string;
|
|
388
|
+
meta?: {
|
|
389
|
+
label?: string;
|
|
390
|
+
icon?: string;
|
|
391
|
+
emitLocal?: boolean;
|
|
392
|
+
confirmation?: any;
|
|
393
|
+
[key: string]: any;
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
type SurfacePresentation = 'modal' | 'drawer';
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Referência imutável e versionada a um preset de `rich-block` permitido
|
|
401
|
+
* como corpo customizado de Quick View.
|
|
402
|
+
*/
|
|
403
|
+
type ResourceQuickViewPresetRef = CorePresetRef & {
|
|
404
|
+
kind: 'rich-block';
|
|
405
|
+
namespace: string;
|
|
406
|
+
presetId: string;
|
|
407
|
+
version: string;
|
|
408
|
+
};
|
|
409
|
+
/**
|
|
410
|
+
* Contrato declarativo e serializável de Quick View transversal.
|
|
411
|
+
*
|
|
412
|
+
* Regras arquiteturais:
|
|
413
|
+
* - Nunca contém elementos DOM, coordenadas de viewport ou funções;
|
|
414
|
+
* - Reutiliza `ResourceRecordOpenRef` (`{ sourceIdentityField, target: { resourceKey, surfaceId } }`)
|
|
415
|
+
* para governança de descoberta, leitura e CTA;
|
|
416
|
+
* - Não permite `popover` em `detailPresentation` (`popover` não pertence a `SurfacePresentation`);
|
|
417
|
+
* - Não permite override de ação, rota arbitrária nem árvore `RichContentDocument` inline no primeiro slice.
|
|
418
|
+
*/
|
|
419
|
+
interface ResourceQuickViewBinding {
|
|
420
|
+
recordOpen: ResourceRecordOpenRef;
|
|
421
|
+
contentRef?: ResourceQuickViewPresetRef | null;
|
|
422
|
+
detailPresentation?: SurfacePresentation;
|
|
423
|
+
}
|
|
424
|
+
|
|
259
425
|
type RichBlockContextScope = 'row' | 'computed' | 'detail' | 'meta' | 'user' | 'tenant';
|
|
260
426
|
interface RichBlockContextConfig {
|
|
261
427
|
scopes?: RichBlockContextScope[];
|
|
@@ -312,6 +478,22 @@ interface RichLinkNode extends RichBlockBaseNode {
|
|
|
312
478
|
href: string;
|
|
313
479
|
target?: '_blank' | '_self';
|
|
314
480
|
rel?: string;
|
|
481
|
+
/** Contrato opcional de Quick View governado associado ao link. */
|
|
482
|
+
quickView?: ResourceQuickViewBinding;
|
|
483
|
+
}
|
|
484
|
+
type RichRecordReferenceVariant = 'inline' | 'badge' | 'chip';
|
|
485
|
+
/**
|
|
486
|
+
* Nó semântico explícito de referência de registro com visualização rápida governada (`Quick View`).
|
|
487
|
+
* Diferente de `RichLinkNode` (`href`), não exige rota direta e renderiza gatilho acessível (`button[type="button"]`).
|
|
488
|
+
*/
|
|
489
|
+
interface RichRecordReferenceNode extends RichBlockBaseNode {
|
|
490
|
+
type: 'recordReference';
|
|
491
|
+
label?: string;
|
|
492
|
+
labelExpr?: string;
|
|
493
|
+
icon?: string;
|
|
494
|
+
tone?: RichSemanticTone;
|
|
495
|
+
variant?: RichRecordReferenceVariant;
|
|
496
|
+
quickView: ResourceQuickViewBinding;
|
|
315
497
|
}
|
|
316
498
|
type RichSemanticTone = 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'danger' | 'error' | 'neutral';
|
|
317
499
|
interface RichBadgeNode extends RichBlockBaseNode {
|
|
@@ -320,6 +502,8 @@ interface RichBadgeNode extends RichBlockBaseNode {
|
|
|
320
502
|
labelExpr?: string;
|
|
321
503
|
icon?: string;
|
|
322
504
|
tone?: RichSemanticTone;
|
|
505
|
+
/** Contrato opcional de Quick View governado associado ao badge. */
|
|
506
|
+
quickView?: ResourceQuickViewBinding;
|
|
323
507
|
}
|
|
324
508
|
interface RichAvatarNode extends RichBlockBaseNode {
|
|
325
509
|
type: 'avatar';
|
|
@@ -372,7 +556,7 @@ interface RichMicroVisualizationNode extends RichBlockBaseNode {
|
|
|
372
556
|
valueExpr?: string;
|
|
373
557
|
targetExpr?: string;
|
|
374
558
|
}
|
|
375
|
-
type RichPresenterNode = RichTextNode | RichIconNode | RichImageNode | RichLinkNode | RichBadgeNode | RichAvatarNode | RichMetricNode | RichProgressNode | RichActionButtonNode | RichMicroVisualizationNode;
|
|
559
|
+
type RichPresenterNode = RichTextNode | RichIconNode | RichImageNode | RichLinkNode | RichRecordReferenceNode | RichBadgeNode | RichAvatarNode | RichMetricNode | RichProgressNode | RichActionButtonNode | RichMicroVisualizationNode;
|
|
376
560
|
type RichComposeLayout = 'flex' | 'grid';
|
|
377
561
|
type RichComposeAlignItems = 'stretch' | 'start' | 'center' | 'end';
|
|
378
562
|
interface RichComposeNode extends RichBlockBaseNode {
|
|
@@ -651,6 +835,7 @@ interface RichRecordSummaryNode extends RichBlockBaseNode {
|
|
|
651
835
|
metaExpr?: string;
|
|
652
836
|
fields: RichRecordSummaryField[];
|
|
653
837
|
actions?: RichActionButtonNode[];
|
|
838
|
+
quickView?: ResourceQuickViewBinding;
|
|
654
839
|
}
|
|
655
840
|
type RichLookupResultStatus = 'idle' | 'resolved' | 'empty' | 'error';
|
|
656
841
|
interface RichLookupResultField {
|
|
@@ -699,7 +884,8 @@ interface RichLookupCardNode extends RichBlockBaseNode {
|
|
|
699
884
|
ctaIcon?: string;
|
|
700
885
|
variant?: 'basic' | 'raised' | 'stroked' | 'flat';
|
|
701
886
|
color?: 'basic' | 'primary' | 'accent' | 'warn';
|
|
702
|
-
action
|
|
887
|
+
action?: RichActionRef;
|
|
888
|
+
quickView?: ResourceQuickViewBinding;
|
|
703
889
|
fields: RichLookupResultField[];
|
|
704
890
|
secondaryActions?: RichActionButtonNode[];
|
|
705
891
|
}
|
|
@@ -720,6 +906,8 @@ interface RichRelatedRecordNode extends RichBlockBaseNode {
|
|
|
720
906
|
variant?: 'basic' | 'raised' | 'stroked' | 'flat';
|
|
721
907
|
color?: 'basic' | 'primary' | 'accent' | 'warn';
|
|
722
908
|
action?: RichActionRef;
|
|
909
|
+
/** Contrato opcional de Quick View governado associado ao registro relacionado. */
|
|
910
|
+
quickView?: ResourceQuickViewBinding;
|
|
723
911
|
fields: RichLookupResultField[];
|
|
724
912
|
secondaryActions?: RichActionButtonNode[];
|
|
725
913
|
}
|
|
@@ -945,141 +1133,12 @@ interface RichContentDocument {
|
|
|
945
1133
|
nodes: RichBlockNode[];
|
|
946
1134
|
}
|
|
947
1135
|
|
|
948
|
-
interface GlobalActionRef {
|
|
949
|
-
actionId: string;
|
|
950
|
-
payload?: any;
|
|
951
|
-
payloadExpr?: string;
|
|
952
|
-
meta?: {
|
|
953
|
-
label?: string;
|
|
954
|
-
icon?: string;
|
|
955
|
-
emitLocal?: boolean;
|
|
956
|
-
confirmation?: any;
|
|
957
|
-
[key: string]: any;
|
|
958
|
-
};
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
type PraxisExportFormat = 'excel' | 'pdf' | 'csv' | 'json' | 'print';
|
|
962
|
-
type PraxisExportScope = 'auto' | 'selected' | 'filtered' | 'currentPage' | 'all';
|
|
963
|
-
|
|
964
1136
|
interface PraxisRuntimeGlobalActionEffect {
|
|
965
1137
|
id?: string;
|
|
966
1138
|
kind: 'global-action';
|
|
967
1139
|
globalAction: GlobalActionRef;
|
|
968
1140
|
}
|
|
969
1141
|
|
|
970
|
-
/**
|
|
971
|
-
* Contratos compartilhados de discovery semantico consumidos pelo runtime Angular.
|
|
972
|
-
*
|
|
973
|
-
* `resourcePath` continua sendo o endereco operacional do recurso.
|
|
974
|
-
* `resourceKey` representa a identidade semantica estavel devolvida pelo backend para
|
|
975
|
-
* surfaces, actions e capabilities.
|
|
976
|
-
*
|
|
977
|
-
* O runtime usa `resourceKey` para preservar contexto semantico e gerar ids estaveis de
|
|
978
|
-
* abertura, enquanto `resourcePath`, `path`, `method` e `schemaUrl` seguem responsaveis pelo
|
|
979
|
-
* comportamento operacional.
|
|
980
|
-
*/
|
|
981
|
-
|
|
982
|
-
interface ResourceAvailabilityDecision {
|
|
983
|
-
allowed: boolean;
|
|
984
|
-
reason?: string | null;
|
|
985
|
-
metadata?: Record<string, any>;
|
|
986
|
-
}
|
|
987
|
-
type ResourceSurfaceKind = 'FORM' | 'PARTIAL_FORM' | 'VIEW' | 'READ_PROJECTION';
|
|
988
|
-
type ResourceSurfaceScope = 'COLLECTION' | 'ITEM';
|
|
989
|
-
type ResourceSurfaceResponseCardinality = 'OBJECT' | 'COLLECTION' | 'PAGE' | 'VOID' | 'UNKNOWN';
|
|
990
|
-
type RelatedResourceChildOperation = 'FILTER' | 'LIST' | 'CREATE' | 'UPDATE' | 'DELETE' | 'DUPLICATE_DRAFT';
|
|
991
|
-
interface RelatedResourceSurface {
|
|
992
|
-
parentResourceKey: string;
|
|
993
|
-
parentIdPathVariable: string;
|
|
994
|
-
childResourceKey: string;
|
|
995
|
-
childResourcePath: string;
|
|
996
|
-
childParentField: string;
|
|
997
|
-
selectable: boolean;
|
|
998
|
-
selectionKeyField: string;
|
|
999
|
-
childOperations: RelatedResourceChildOperation[];
|
|
1000
|
-
}
|
|
1001
|
-
interface ResourceSurfaceCatalogItem {
|
|
1002
|
-
id: string;
|
|
1003
|
-
resourceKey: string;
|
|
1004
|
-
kind: ResourceSurfaceKind;
|
|
1005
|
-
scope: ResourceSurfaceScope;
|
|
1006
|
-
title: string;
|
|
1007
|
-
description?: string | null;
|
|
1008
|
-
intent?: string | null;
|
|
1009
|
-
operationId: string;
|
|
1010
|
-
path: string;
|
|
1011
|
-
method: string;
|
|
1012
|
-
schemaId: string;
|
|
1013
|
-
schemaUrl: string;
|
|
1014
|
-
responseCardinality?: ResourceSurfaceResponseCardinality | null;
|
|
1015
|
-
availability: ResourceAvailabilityDecision;
|
|
1016
|
-
order: number;
|
|
1017
|
-
tags: string[];
|
|
1018
|
-
relatedResource?: RelatedResourceSurface | null;
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
type FieldPresentationTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
1022
|
-
type FieldPresentationAppearance = 'plain' | 'soft' | 'outlined' | 'filled';
|
|
1023
|
-
type FieldPresenterKind = 'text' | 'badge' | 'chip' | 'status' | 'iconValue' | 'progress' | 'rating' | 'microVisualization';
|
|
1024
|
-
interface FieldPresentationInteractions {
|
|
1025
|
-
/** Allows readonly surfaces to expose a copy affordance without changing the field value. */
|
|
1026
|
-
copy?: boolean;
|
|
1027
|
-
/** Allows readonly surfaces to expose contextual detail expansion. */
|
|
1028
|
-
details?: boolean;
|
|
1029
|
-
/** Allows readonly surfaces to expose inline expansion for long values. */
|
|
1030
|
-
expand?: boolean;
|
|
1031
|
-
/** Allows readonly surfaces to expose a link affordance when the value is navigable. */
|
|
1032
|
-
link?: boolean;
|
|
1033
|
-
}
|
|
1034
|
-
interface FieldPresentationConfig {
|
|
1035
|
-
/** Semantic display strategy for readonly/presentation surfaces. */
|
|
1036
|
-
presenter?: FieldPresenterKind;
|
|
1037
|
-
/** Alias accepted for schema authors that describe the semantic display as a variant. */
|
|
1038
|
-
variant?: FieldPresenterKind;
|
|
1039
|
-
/** Semantic tone mapped by consumers to theme tokens. */
|
|
1040
|
-
tone?: FieldPresentationTone;
|
|
1041
|
-
/** Material Symbols icon name, without arbitrary HTML. */
|
|
1042
|
-
icon?: string;
|
|
1043
|
-
/** Optional semantic label for status/chip/badge presentations. */
|
|
1044
|
-
label?: string;
|
|
1045
|
-
/** Optional secondary marker rendered by presentation-capable consumers. */
|
|
1046
|
-
badge?: string;
|
|
1047
|
-
/** Optional tooltip text for the presentation wrapper. */
|
|
1048
|
-
tooltip?: string;
|
|
1049
|
-
/** Optional readonly prefix rendered next to the displayed value without changing the raw value. */
|
|
1050
|
-
prefix?: string;
|
|
1051
|
-
/** Optional readonly suffix rendered next to the displayed value without changing the raw value. */
|
|
1052
|
-
suffix?: string;
|
|
1053
|
-
/** Optional icon override when the field resolves to a truthy boolean state. */
|
|
1054
|
-
iconTrue?: string;
|
|
1055
|
-
/** Optional icon override when the field resolves to a falsy boolean state. */
|
|
1056
|
-
iconFalse?: string;
|
|
1057
|
-
/** Optional semantic tone when the field resolves to a truthy boolean state. */
|
|
1058
|
-
toneTrue?: FieldPresentationTone;
|
|
1059
|
-
/** Optional semantic tone when the field resolves to a falsy boolean state. */
|
|
1060
|
-
toneFalse?: FieldPresentationTone;
|
|
1061
|
-
/** Optional display label when the field resolves to a truthy boolean state. */
|
|
1062
|
-
labelTrue?: string;
|
|
1063
|
-
/** Optional display label when the field resolves to a falsy boolean state. */
|
|
1064
|
-
labelFalse?: string;
|
|
1065
|
-
/** Visual density/emphasis strategy mapped by consumers to theme tokens. */
|
|
1066
|
-
appearance?: FieldPresentationAppearance;
|
|
1067
|
-
/** Optional formatter override for the presentation surface only. */
|
|
1068
|
-
valuePresentation?: ValuePresentationConfig;
|
|
1069
|
-
/** Renderer-neutral micro visualization metadata for compact presentation surfaces. */
|
|
1070
|
-
visualization?: PraxisPresentationVisualizationConfig;
|
|
1071
|
-
/** Safe readonly affordances. No commands or mutations are executed from this contract. */
|
|
1072
|
-
interactions?: FieldPresentationInteractions;
|
|
1073
|
-
}
|
|
1074
|
-
interface FieldPresentationRule {
|
|
1075
|
-
/** Json Logic guard evaluated against the presentation context. */
|
|
1076
|
-
when: JsonLogicExpression;
|
|
1077
|
-
/** Semantic presentation state merged when the guard is truthy. */
|
|
1078
|
-
set?: FieldPresentationConfig;
|
|
1079
|
-
/** Alias for `set`, useful for rule-builder terminology. */
|
|
1080
|
-
effect?: FieldPresentationConfig;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
1142
|
interface TableTooltipConfig {
|
|
1084
1143
|
text?: string;
|
|
1085
1144
|
position?: 'top' | 'right' | 'bottom' | 'left' | 'above' | 'below' | 'before' | 'after';
|
|
@@ -1174,6 +1233,8 @@ interface ColumnDefinition {
|
|
|
1174
1233
|
prefix?: string;
|
|
1175
1234
|
/** Sufixo visual aplicado ao texto do renderer sem alterar o valor bruto. */
|
|
1176
1235
|
suffix?: string;
|
|
1236
|
+
/** Contrato declarativo de Quick View governado associado ao ícone/valor. */
|
|
1237
|
+
quickView?: ResourceQuickViewBinding;
|
|
1177
1238
|
};
|
|
1178
1239
|
/** Configuração de imagem */
|
|
1179
1240
|
image?: {
|
|
@@ -1209,6 +1270,8 @@ interface ColumnDefinition {
|
|
|
1209
1270
|
icon?: string;
|
|
1210
1271
|
/** Tooltip opcional associado ao indicador visual */
|
|
1211
1272
|
tooltip?: TableTooltipConfig;
|
|
1273
|
+
/** Contrato declarativo de Quick View governado associado ao badge. */
|
|
1274
|
+
quickView?: ResourceQuickViewBinding;
|
|
1212
1275
|
};
|
|
1213
1276
|
/** Link (sanitizado) */
|
|
1214
1277
|
link?: {
|
|
@@ -1218,6 +1281,8 @@ interface ColumnDefinition {
|
|
|
1218
1281
|
hrefField?: string;
|
|
1219
1282
|
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
1220
1283
|
rel?: string;
|
|
1284
|
+
/** Contrato declarativo de Quick View governado associado ao link. */
|
|
1285
|
+
quickView?: ResourceQuickViewBinding;
|
|
1221
1286
|
};
|
|
1222
1287
|
/** Botão (ação por linha) */
|
|
1223
1288
|
button?: {
|
|
@@ -1243,6 +1308,8 @@ interface ColumnDefinition {
|
|
|
1243
1308
|
variant?: 'filled' | 'outlined' | 'soft' | 'plain';
|
|
1244
1309
|
/** Tooltip opcional associado ao chip */
|
|
1245
1310
|
tooltip?: TableTooltipConfig;
|
|
1311
|
+
/** Contrato declarativo de Quick View governado associado ao chip. */
|
|
1312
|
+
quickView?: ResourceQuickViewBinding;
|
|
1246
1313
|
};
|
|
1247
1314
|
/** Barra de progresso leve */
|
|
1248
1315
|
progress?: {
|
|
@@ -1308,6 +1375,7 @@ interface ColumnDefinition {
|
|
|
1308
1375
|
prefix?: string;
|
|
1309
1376
|
suffix?: string;
|
|
1310
1377
|
emphasis?: 'strong' | 'subtle';
|
|
1378
|
+
quickView?: ResourceQuickViewBinding;
|
|
1311
1379
|
} | {
|
|
1312
1380
|
type: 'icon';
|
|
1313
1381
|
icon?: {
|
|
@@ -1320,6 +1388,7 @@ interface ColumnDefinition {
|
|
|
1320
1388
|
ariaLabel?: string;
|
|
1321
1389
|
prefix?: string;
|
|
1322
1390
|
suffix?: string;
|
|
1391
|
+
quickView?: ResourceQuickViewBinding;
|
|
1323
1392
|
};
|
|
1324
1393
|
} | {
|
|
1325
1394
|
type: 'image';
|
|
@@ -1343,6 +1412,7 @@ interface ColumnDefinition {
|
|
|
1343
1412
|
variant?: 'filled' | 'outlined' | 'soft' | 'plain';
|
|
1344
1413
|
icon?: string;
|
|
1345
1414
|
tooltip?: TableTooltipConfig;
|
|
1415
|
+
quickView?: ResourceQuickViewBinding;
|
|
1346
1416
|
};
|
|
1347
1417
|
} | {
|
|
1348
1418
|
type: 'link';
|
|
@@ -1353,6 +1423,7 @@ interface ColumnDefinition {
|
|
|
1353
1423
|
hrefField?: string;
|
|
1354
1424
|
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
1355
1425
|
rel?: string;
|
|
1426
|
+
quickView?: ResourceQuickViewBinding;
|
|
1356
1427
|
};
|
|
1357
1428
|
} | {
|
|
1358
1429
|
type: 'button';
|
|
@@ -1378,6 +1449,7 @@ interface ColumnDefinition {
|
|
|
1378
1449
|
icon?: string;
|
|
1379
1450
|
variant?: 'filled' | 'outlined' | 'soft' | 'plain';
|
|
1380
1451
|
tooltip?: TableTooltipConfig;
|
|
1452
|
+
quickView?: ResourceQuickViewBinding;
|
|
1381
1453
|
};
|
|
1382
1454
|
} | {
|
|
1383
1455
|
type: 'progress';
|
|
@@ -1455,6 +1527,12 @@ interface ColumnDefinition {
|
|
|
1455
1527
|
};
|
|
1456
1528
|
};
|
|
1457
1529
|
};
|
|
1530
|
+
/**
|
|
1531
|
+
* Contrato declarativo e serializável de Quick View governado para a célula/coluna.
|
|
1532
|
+
* Pode ser especializado individualmente em `renderer.link.quickView`, `renderer.badge.quickView`,
|
|
1533
|
+
* `renderer.chip.quickView`, `renderer.icon.quickView` ou em itens de `renderer.compose.items`.
|
|
1534
|
+
*/
|
|
1535
|
+
quickView?: ResourceQuickViewBinding;
|
|
1458
1536
|
/** Overrides condicionais do renderer por linha (first‑match wins) */
|
|
1459
1537
|
conditionalRenderers?: Array<{
|
|
1460
1538
|
/** Identificador estável usado para reconciliação e deduplicação de regras authoradas. */
|
|
@@ -4426,6 +4504,8 @@ interface FieldDefinition {
|
|
|
4426
4504
|
presentation?: FieldPresentationConfig;
|
|
4427
4505
|
/** Conditional presentation overrides for read-only/list consumers. */
|
|
4428
4506
|
presentationRules?: FieldPresentationRule[];
|
|
4507
|
+
/** Declarative governed Quick View contract for reference fields. */
|
|
4508
|
+
quickView?: ResourceQuickViewBinding;
|
|
4429
4509
|
numericStep?: number;
|
|
4430
4510
|
numericMin?: number;
|
|
4431
4511
|
numericMax?: number;
|
|
@@ -4492,6 +4572,16 @@ interface FieldDefinition {
|
|
|
4492
4572
|
showInlineErrors?: boolean;
|
|
4493
4573
|
/** Posição preferida da mensagem de erro (ex.: below, right). */
|
|
4494
4574
|
errorPosition?: string;
|
|
4575
|
+
/** Exibe o rótulo de valor no thumb de sliders (`slider`, `rangeSlider`, `inlineRange`). */
|
|
4576
|
+
thumbLabel?: boolean;
|
|
4577
|
+
/** Controla quando o rótulo de valor é exibido em sliders (`'off' | 'auto' | 'on'`). */
|
|
4578
|
+
valueLabelDisplay?: 'off' | 'auto' | 'on';
|
|
4579
|
+
/** Ativa o modo discreto (thumb label) em sliders Material. */
|
|
4580
|
+
discrete?: boolean;
|
|
4581
|
+
/** Exibe campos numéricos auxiliares sincronizados ao slider/range. */
|
|
4582
|
+
showInputs?: boolean;
|
|
4583
|
+
/** Exibe marcações (ticks) ao longo da trilha do slider. */
|
|
4584
|
+
showTicks?: boolean | 'auto';
|
|
4495
4585
|
[key: string]: any;
|
|
4496
4586
|
}
|
|
4497
4587
|
|