@praxisui/core 10.0.0-rc.8 → 10.0.0-rc.80
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/README.md +508 -13
- package/ai/component-registry.json +515 -372
- package/fesm2022/praxisui-core-micro-visualization.mjs +258 -0
- package/fesm2022/praxisui-core-schema.mjs +3563 -606
- package/fesm2022/praxisui-core.mjs +87490 -42093
- package/package.json +5 -1
- package/theme-bridge.css +268 -9
- package/theming/_micro-visualization.scss +103 -0
- package/theming/_theming.scss +375 -102
- package/theming/index.scss +1 -0
- package/theming/workspace-themes.scss +519 -0
- package/types/praxisui-core-micro-visualization.d.ts +73 -0
- package/types/praxisui-core-schema.d.ts +1150 -169
- package/types/praxisui-core.d.ts +20083 -11438
|
@@ -5,6 +5,7 @@ type OptionSourceSelectedReloadPolicy = 'required' | 'supported' | 'unsupported-
|
|
|
5
5
|
type OptionSourceInvalidSortPolicy = 'reject' | 'ignore' | 'unsupported';
|
|
6
6
|
type LookupOpenDetailMode = 'samePage' | 'newTab' | 'drawer' | 'modal' | 'route';
|
|
7
7
|
type LookupStatusTone = 'success' | 'warning' | 'danger' | 'neutral';
|
|
8
|
+
type LookupDialogSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
8
9
|
type LookupFilterFieldType = 'text' | 'enum' | 'date' | 'number' | 'reference';
|
|
9
10
|
type LookupFilterOperator = 'contains' | 'startsWith' | 'equals' | 'in' | 'before' | 'after' | 'between' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
10
11
|
type EntityLookupSelectedLayout = 'card' | 'inline' | 'compact' | 'token';
|
|
@@ -48,7 +49,9 @@ interface LookupDetailMetadata {
|
|
|
48
49
|
routeTemplate?: string;
|
|
49
50
|
openDetailMode?: LookupOpenDetailMode;
|
|
50
51
|
kind?: 'surface' | 'route' | 'href' | string;
|
|
52
|
+
resourceKey?: string;
|
|
51
53
|
surfaceId?: string;
|
|
54
|
+
previewSurfaceId?: string;
|
|
52
55
|
presentation?: 'modal' | 'drawer' | string;
|
|
53
56
|
preferredWidget?: string;
|
|
54
57
|
mode?: 'view' | 'edit' | 'create' | string;
|
|
@@ -58,12 +61,24 @@ interface LookupCreateMetadata {
|
|
|
58
61
|
routeTemplate?: string;
|
|
59
62
|
openMode?: LookupOpenDetailMode;
|
|
60
63
|
}
|
|
64
|
+
interface LookupFilterOptionMetadata {
|
|
65
|
+
value: string | number | boolean;
|
|
66
|
+
label: string;
|
|
67
|
+
icon?: string;
|
|
68
|
+
tone?: LookupStatusTone | string;
|
|
69
|
+
description?: string;
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
}
|
|
61
72
|
interface LookupFilterDefinitionMetadata {
|
|
62
73
|
field: string;
|
|
63
74
|
label?: string;
|
|
64
75
|
type: LookupFilterFieldType;
|
|
65
76
|
operators: LookupFilterOperator[];
|
|
66
77
|
defaultOperator?: LookupFilterOperator;
|
|
78
|
+
options?: LookupFilterOptionMetadata[];
|
|
79
|
+
optionSource?: OptionSourceMetadata | string;
|
|
80
|
+
dependsOn?: string[];
|
|
81
|
+
dependencyFilterMap?: Record<string, string>;
|
|
67
82
|
optionsSource?: string;
|
|
68
83
|
required?: boolean;
|
|
69
84
|
hidden?: boolean;
|
|
@@ -91,8 +106,29 @@ interface LookupFilteringMetadata {
|
|
|
91
106
|
quickFilterFields?: string[];
|
|
92
107
|
searchPlaceholder?: string;
|
|
93
108
|
searchStrategies?: LookupSearchStrategyMetadata[];
|
|
109
|
+
defaultSearchStrategy?: string;
|
|
110
|
+
}
|
|
111
|
+
interface LookupDialogMetadata {
|
|
112
|
+
enabled?: boolean;
|
|
113
|
+
title?: string;
|
|
114
|
+
size?: LookupDialogSize;
|
|
115
|
+
previewPanel?: boolean;
|
|
116
|
+
allowColumnChooser?: boolean;
|
|
117
|
+
allowSavedViews?: boolean;
|
|
118
|
+
resultColumns?: LookupResultColumnMetadata[];
|
|
119
|
+
openActionLabel?: string;
|
|
120
|
+
applyActionLabel?: string;
|
|
121
|
+
cancelActionLabel?: string;
|
|
122
|
+
}
|
|
123
|
+
type LookupResultColumnKind = 'code' | 'label' | 'description' | 'status' | 'disabledReason' | 'custom';
|
|
124
|
+
interface LookupResultColumnMetadata {
|
|
125
|
+
field: string;
|
|
126
|
+
label?: string;
|
|
127
|
+
kind?: LookupResultColumnKind;
|
|
128
|
+
width?: string;
|
|
94
129
|
}
|
|
95
130
|
interface EntityLookupActionsMetadata {
|
|
131
|
+
showQuickView?: boolean;
|
|
96
132
|
showDetail?: boolean;
|
|
97
133
|
showChange?: boolean;
|
|
98
134
|
showCopyCode?: boolean;
|
|
@@ -122,6 +158,7 @@ interface EntityLookupDisplayMetadata {
|
|
|
122
158
|
statusToneMap?: Record<string, LookupStatusTone>;
|
|
123
159
|
badgeKeys?: string[];
|
|
124
160
|
maxVisibleBadges?: number;
|
|
161
|
+
quickViewActionLabel?: string;
|
|
125
162
|
detailActionLabel?: string;
|
|
126
163
|
changeActionLabel?: string;
|
|
127
164
|
copyCodeActionLabel?: string;
|
|
@@ -153,6 +190,7 @@ interface OptionSourceMetadata {
|
|
|
153
190
|
create?: LookupCreateMetadata;
|
|
154
191
|
display?: EntityLookupDisplayMetadata;
|
|
155
192
|
filtering?: LookupFilteringMetadata;
|
|
193
|
+
dialog?: LookupDialogMetadata;
|
|
156
194
|
excludeSelfField?: boolean;
|
|
157
195
|
searchMode?: OptionSourceSearchMode;
|
|
158
196
|
pageSize?: number;
|
|
@@ -180,19 +218,34 @@ type JsonLogicExpression = JsonLogicPrimitive | JsonLogicVarExpression | JsonLog
|
|
|
180
218
|
type JsonLogicDerivedValueExpression = Exclude<JsonLogicExpression, string>;
|
|
181
219
|
type JsonLogicValue = JsonLogicPrimitive | JsonLogicExpression | JsonLogicArray | JsonLogicRecord;
|
|
182
220
|
|
|
183
|
-
type PraxisPresentationVisualizationKind = 'line' | 'area' | 'column' | 'comparison' | 'stackedBar' | 'radial' | 'harveyBall' | 'bullet' | 'delta' | 'processFlow';
|
|
221
|
+
type PraxisPresentationVisualizationKind = 'line' | 'area' | 'column' | 'comparison' | 'stackedBar' | 'radial' | 'harveyBall' | 'bullet' | 'delta' | 'processFlow' | 'waterfall';
|
|
222
|
+
type PraxisPresentationVisualizationWaterfallRole = 'start' | 'increase' | 'decrease' | 'subtotal' | 'total';
|
|
184
223
|
type PraxisPresentationVisualizationSurface = 'table-cell' | 'list-item' | 'object-header' | 'card-summary' | 'form-presentation';
|
|
185
224
|
type PraxisPresentationVisualizationSize = 'xs' | 'sm' | 'md' | 'lg' | 'responsive';
|
|
186
225
|
type PraxisPresentationVisualizationTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger' | 'critical';
|
|
226
|
+
/**
|
|
227
|
+
* Defines how numerical bounds (`min` / `max` / `total`) are resolved when rendering
|
|
228
|
+
* a micro-visualization inside a collection:
|
|
229
|
+
* - `'row'` (default): each record scales independently using its own series/values or explicit `min`/`max`/`total`.
|
|
230
|
+
* - `'page'`: records on the current loaded page share a synchronized column scale when explicit bounds are not fixed.
|
|
231
|
+
*/
|
|
232
|
+
type PraxisPresentationVisualizationScaleScope = 'row' | 'page';
|
|
187
233
|
interface PraxisPresentationVisualizationPoint {
|
|
188
234
|
label?: string;
|
|
189
235
|
value: number;
|
|
190
236
|
tone?: PraxisPresentationVisualizationTone;
|
|
237
|
+
suppressed?: boolean;
|
|
238
|
+
privacySuppressed?: boolean;
|
|
191
239
|
}
|
|
192
240
|
interface PraxisPresentationVisualizationSegment {
|
|
241
|
+
key?: string;
|
|
193
242
|
label?: string;
|
|
194
243
|
value: number;
|
|
195
244
|
tone?: PraxisPresentationVisualizationTone;
|
|
245
|
+
color?: string;
|
|
246
|
+
active?: boolean;
|
|
247
|
+
suppressed?: boolean;
|
|
248
|
+
privacySuppressed?: boolean;
|
|
196
249
|
}
|
|
197
250
|
interface PraxisPresentationVisualizationThreshold {
|
|
198
251
|
label?: string;
|
|
@@ -205,30 +258,51 @@ interface PraxisPresentationVisualizationThreshold {
|
|
|
205
258
|
interface PraxisPresentationVisualizationItem {
|
|
206
259
|
id?: string;
|
|
207
260
|
label?: string;
|
|
208
|
-
value?: number;
|
|
261
|
+
value?: number | null;
|
|
209
262
|
icon?: string;
|
|
210
263
|
tone?: PraxisPresentationVisualizationTone;
|
|
264
|
+
color?: string;
|
|
211
265
|
state?: string;
|
|
266
|
+
role?: PraxisPresentationVisualizationWaterfallRole;
|
|
267
|
+
suppressed?: boolean;
|
|
268
|
+
privacySuppressed?: boolean;
|
|
212
269
|
}
|
|
213
270
|
interface PraxisPresentationVisualizationConfig {
|
|
214
271
|
kind: PraxisPresentationVisualizationKind;
|
|
215
272
|
surface?: PraxisPresentationVisualizationSurface;
|
|
216
273
|
size?: PraxisPresentationVisualizationSize;
|
|
274
|
+
scaleScope?: PraxisPresentationVisualizationScaleScope;
|
|
275
|
+
title?: string;
|
|
276
|
+
titleExpr?: JsonLogicExpression | string;
|
|
277
|
+
legend?: boolean;
|
|
217
278
|
value?: unknown;
|
|
218
279
|
valueExpr?: JsonLogicExpression | string;
|
|
219
280
|
valueSuffix?: string;
|
|
220
281
|
valueSuffixExpr?: JsonLogicExpression | string;
|
|
282
|
+
/**
|
|
283
|
+
* Compact numeric formatting / value display toggle:
|
|
284
|
+
* - For `bullet` (`compactValue !== false`, defaults to `true`): shows/hides the textual value next to the bar.
|
|
285
|
+
* - For numeric/series kinds (`delta`, `line`, `area`, `column`, `comparison`, `stackedBar`, `waterfall`; `compactValue === true`, defaults to `false`): enables compact `Intl.NumberFormat` notation on labels and readouts.
|
|
286
|
+
*/
|
|
221
287
|
compactValue?: boolean;
|
|
288
|
+
min?: number;
|
|
289
|
+
minExpr?: JsonLogicExpression | string;
|
|
290
|
+
max?: number;
|
|
291
|
+
maxExpr?: JsonLogicExpression | string;
|
|
222
292
|
total?: number;
|
|
223
293
|
totalExpr?: JsonLogicExpression | string;
|
|
224
294
|
target?: number;
|
|
225
295
|
targetExpr?: JsonLogicExpression | string;
|
|
296
|
+
targetLabel?: string;
|
|
297
|
+
targetLabelExpr?: JsonLogicExpression | string;
|
|
226
298
|
baseline?: number;
|
|
227
299
|
baselineExpr?: JsonLogicExpression | string;
|
|
228
|
-
points?: PraxisPresentationVisualizationPoint
|
|
300
|
+
points?: Array<PraxisPresentationVisualizationPoint | number>;
|
|
229
301
|
pointsExpr?: JsonLogicExpression | string;
|
|
230
302
|
segments?: PraxisPresentationVisualizationSegment[];
|
|
231
303
|
segmentsExpr?: JsonLogicExpression | string;
|
|
304
|
+
interactiveSegments?: boolean;
|
|
305
|
+
activeSelectionCount?: number;
|
|
232
306
|
thresholds?: PraxisPresentationVisualizationThreshold[];
|
|
233
307
|
thresholdsExpr?: JsonLogicExpression | string;
|
|
234
308
|
items?: PraxisPresentationVisualizationItem[];
|
|
@@ -241,9 +315,192 @@ interface PraxisPresentationVisualizationConfig {
|
|
|
241
315
|
ariaLabelExpr?: JsonLogicExpression | string;
|
|
242
316
|
fallbackText: string;
|
|
243
317
|
fallbackTextExpr?: JsonLogicExpression | string;
|
|
318
|
+
suppressedCount?: number;
|
|
244
319
|
}
|
|
245
320
|
declare function isPraxisPresentationVisualizationTableSafe(value: PraxisPresentationVisualizationConfig | null | undefined): boolean;
|
|
246
321
|
|
|
322
|
+
type FieldPresentationTone = 'neutral' | 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';
|
|
323
|
+
type FieldPresentationAppearance = 'plain' | 'soft' | 'outlined' | 'filled';
|
|
324
|
+
type FieldPresenterKind = 'text' | 'badge' | 'chip' | 'status' | 'iconValue' | 'progress' | 'rating' | 'microVisualization';
|
|
325
|
+
interface FieldPresentationInteractions {
|
|
326
|
+
/** Allows readonly surfaces to expose a copy affordance without changing the field value. */
|
|
327
|
+
copy?: boolean;
|
|
328
|
+
/** Allows readonly surfaces to expose contextual detail expansion. */
|
|
329
|
+
details?: boolean;
|
|
330
|
+
/** Allows readonly surfaces to expose inline expansion for long values. */
|
|
331
|
+
expand?: boolean;
|
|
332
|
+
/** Allows readonly surfaces to expose a link affordance when the value is navigable. */
|
|
333
|
+
link?: boolean;
|
|
334
|
+
/** Optional governed Quick View binding for readonly/presentation reference fields. */
|
|
335
|
+
quickView?: ResourceQuickViewBinding;
|
|
336
|
+
}
|
|
337
|
+
interface FieldPresentationConfig {
|
|
338
|
+
/** Semantic display strategy for readonly/presentation surfaces. */
|
|
339
|
+
presenter?: FieldPresenterKind;
|
|
340
|
+
/** Alias accepted for schema authors that describe the semantic display as a variant. */
|
|
341
|
+
variant?: FieldPresenterKind;
|
|
342
|
+
/** Semantic tone mapped by consumers to theme tokens. */
|
|
343
|
+
tone?: FieldPresentationTone;
|
|
344
|
+
/** Material Symbols icon name, without arbitrary HTML. */
|
|
345
|
+
icon?: string;
|
|
346
|
+
/** Optional semantic label for status/chip/badge presentations. */
|
|
347
|
+
label?: string;
|
|
348
|
+
/** Optional secondary marker rendered by presentation-capable consumers. */
|
|
349
|
+
badge?: string;
|
|
350
|
+
/** Optional tooltip text for the presentation wrapper. */
|
|
351
|
+
tooltip?: string;
|
|
352
|
+
/** Optional readonly prefix rendered next to the displayed value without changing the raw value. */
|
|
353
|
+
prefix?: string;
|
|
354
|
+
/** Optional readonly suffix rendered next to the displayed value without changing the raw value. */
|
|
355
|
+
suffix?: string;
|
|
356
|
+
/** Optional icon override when the field resolves to a truthy boolean state. */
|
|
357
|
+
iconTrue?: string;
|
|
358
|
+
/** Optional icon override when the field resolves to a falsy boolean state. */
|
|
359
|
+
iconFalse?: string;
|
|
360
|
+
/** Optional semantic tone when the field resolves to a truthy boolean state. */
|
|
361
|
+
toneTrue?: FieldPresentationTone;
|
|
362
|
+
/** Optional semantic tone when the field resolves to a falsy boolean state. */
|
|
363
|
+
toneFalse?: FieldPresentationTone;
|
|
364
|
+
/** Optional display label when the field resolves to a truthy boolean state. */
|
|
365
|
+
labelTrue?: string;
|
|
366
|
+
/** Optional display label when the field resolves to a falsy boolean state. */
|
|
367
|
+
labelFalse?: string;
|
|
368
|
+
/** Visual density/emphasis strategy mapped by consumers to theme tokens. */
|
|
369
|
+
appearance?: FieldPresentationAppearance;
|
|
370
|
+
/** Optional formatter override for the presentation surface only. */
|
|
371
|
+
valuePresentation?: ValuePresentationConfig;
|
|
372
|
+
/** Renderer-neutral micro visualization metadata for compact presentation surfaces. */
|
|
373
|
+
visualization?: PraxisPresentationVisualizationConfig;
|
|
374
|
+
/** Safe readonly affordances. No commands or mutations are executed from this contract. */
|
|
375
|
+
interactions?: FieldPresentationInteractions;
|
|
376
|
+
}
|
|
377
|
+
interface FieldPresentationRule {
|
|
378
|
+
/** Json Logic guard evaluated against the presentation context. */
|
|
379
|
+
when: JsonLogicExpression;
|
|
380
|
+
/** Semantic presentation state merged when the guard is truthy. */
|
|
381
|
+
set?: FieldPresentationConfig;
|
|
382
|
+
/** Alias for `set`, useful for rule-builder terminology. */
|
|
383
|
+
effect?: FieldPresentationConfig;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
type PraxisExportFormat = 'excel' | 'pdf' | 'csv' | 'json' | 'print';
|
|
387
|
+
type PraxisExportScope = 'auto' | 'selected' | 'filtered' | 'currentPage' | 'all';
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Contratos compartilhados de discovery semantico consumidos pelo runtime Angular.
|
|
391
|
+
*
|
|
392
|
+
* `resourcePath` continua sendo o endereco operacional do recurso.
|
|
393
|
+
* `resourceKey` representa a identidade semantica estavel devolvida pelo backend para
|
|
394
|
+
* surfaces, actions e capabilities.
|
|
395
|
+
*
|
|
396
|
+
* O runtime usa `resourceKey` para preservar contexto semantico e gerar ids estaveis de
|
|
397
|
+
* abertura, enquanto `resourcePath`, `path`, `method` e `schemaUrl` seguem responsaveis pelo
|
|
398
|
+
* comportamento operacional.
|
|
399
|
+
*/
|
|
400
|
+
|
|
401
|
+
interface ResourceAvailabilityDecision {
|
|
402
|
+
allowed: boolean;
|
|
403
|
+
reason?: string | null;
|
|
404
|
+
metadata?: Record<string, any>;
|
|
405
|
+
}
|
|
406
|
+
type ResourceSurfaceKind = 'FORM' | 'PARTIAL_FORM' | 'VIEW' | 'READ_PROJECTION' | 'HIERARCHY_TREE';
|
|
407
|
+
type ResourceSurfaceScope = 'COLLECTION' | 'ITEM';
|
|
408
|
+
type ResourceSurfaceResponseCardinality = 'OBJECT' | 'COLLECTION' | 'PAGE' | 'VOID' | 'UNKNOWN';
|
|
409
|
+
type RelatedResourceChildOperation = 'FILTER' | 'LIST' | 'CREATE' | 'UPDATE' | 'DELETE' | 'DUPLICATE_DRAFT';
|
|
410
|
+
interface RelatedResourceSurface {
|
|
411
|
+
parentResourceKey: string;
|
|
412
|
+
parentIdPathVariable: string;
|
|
413
|
+
childResourceKey: string;
|
|
414
|
+
childResourcePath: string;
|
|
415
|
+
childParentField: string;
|
|
416
|
+
selectable: boolean;
|
|
417
|
+
selectionKeyField: string;
|
|
418
|
+
childOperations: RelatedResourceChildOperation[];
|
|
419
|
+
}
|
|
420
|
+
interface ResourceSurfaceCatalogItem {
|
|
421
|
+
id: string;
|
|
422
|
+
resourceKey: string;
|
|
423
|
+
kind: ResourceSurfaceKind;
|
|
424
|
+
scope: ResourceSurfaceScope;
|
|
425
|
+
title: string;
|
|
426
|
+
description?: string | null;
|
|
427
|
+
intent?: string | null;
|
|
428
|
+
icon?: string | null;
|
|
429
|
+
contextualReadPath?: string | null;
|
|
430
|
+
operationId: string;
|
|
431
|
+
path: string;
|
|
432
|
+
method: string;
|
|
433
|
+
schemaId: string;
|
|
434
|
+
schemaUrl: string;
|
|
435
|
+
responseCardinality?: ResourceSurfaceResponseCardinality | null;
|
|
436
|
+
availability: ResourceAvailabilityDecision;
|
|
437
|
+
order: number;
|
|
438
|
+
tags: string[];
|
|
439
|
+
relatedResource?: RelatedResourceSurface | null;
|
|
440
|
+
}
|
|
441
|
+
interface ResourceRecordOpenRef {
|
|
442
|
+
sourceIdentityField: string;
|
|
443
|
+
target: {
|
|
444
|
+
resourceKey: string;
|
|
445
|
+
surfaceId: string;
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
interface GlobalActionRef {
|
|
450
|
+
actionId: string;
|
|
451
|
+
payload?: any;
|
|
452
|
+
payloadExpr?: string;
|
|
453
|
+
meta?: {
|
|
454
|
+
label?: string;
|
|
455
|
+
icon?: string;
|
|
456
|
+
emitLocal?: boolean;
|
|
457
|
+
confirmation?: any;
|
|
458
|
+
[key: string]: any;
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
type SurfacePresentation = 'modal' | 'drawer';
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Referência imutável e versionada a um preset de `rich-block` permitido
|
|
466
|
+
* como corpo customizado de Quick View.
|
|
467
|
+
*/
|
|
468
|
+
type ResourceQuickViewPresetRef = CorePresetRef & {
|
|
469
|
+
kind: 'rich-block';
|
|
470
|
+
namespace: string;
|
|
471
|
+
presetId: string;
|
|
472
|
+
version: string;
|
|
473
|
+
};
|
|
474
|
+
/**
|
|
475
|
+
* Contrato declarativo de referência cruzada publicado pelo backend em `x-ui.resourceReference`
|
|
476
|
+
* (via `@ResourceReference`), permitindo sintetizar `ResourceQuickViewBinding` sem configuração manual.
|
|
477
|
+
*/
|
|
478
|
+
interface ResourceReferenceMetadata {
|
|
479
|
+
resourceKey: string;
|
|
480
|
+
valueField?: string;
|
|
481
|
+
surfaceId?: string;
|
|
482
|
+
previewSurfaceId?: string;
|
|
483
|
+
detailPresentation?: SurfacePresentation;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Contrato declarativo e serializável de Quick View transversal.
|
|
487
|
+
*
|
|
488
|
+
* Regras arquiteturais:
|
|
489
|
+
* - Nunca contém elementos DOM, coordenadas de viewport ou funções;
|
|
490
|
+
* - Reutiliza `ResourceRecordOpenRef` (`{ sourceIdentityField, target: { resourceKey, surfaceId } }`)
|
|
491
|
+
* para governança de descoberta, leitura e CTA;
|
|
492
|
+
* - Opcionalmente declara `previewSurfaceId` quando a projeção de leitura do preview
|
|
493
|
+
* diferir da surface de detalhe completo aberta pelo CTA primário;
|
|
494
|
+
* - Não permite `popover` em `detailPresentation` (`popover` não pertence a `SurfacePresentation`);
|
|
495
|
+
* - Não permite override de ação, rota arbitrária nem árvore `RichContentDocument` inline no primeiro slice.
|
|
496
|
+
*/
|
|
497
|
+
interface ResourceQuickViewBinding {
|
|
498
|
+
recordOpen: ResourceRecordOpenRef;
|
|
499
|
+
previewSurfaceId?: string;
|
|
500
|
+
contentRef?: ResourceQuickViewPresetRef | null;
|
|
501
|
+
detailPresentation?: SurfacePresentation;
|
|
502
|
+
}
|
|
503
|
+
|
|
247
504
|
type RichBlockContextScope = 'row' | 'computed' | 'detail' | 'meta' | 'user' | 'tenant';
|
|
248
505
|
interface RichBlockContextConfig {
|
|
249
506
|
scopes?: RichBlockContextScope[];
|
|
@@ -300,6 +557,22 @@ interface RichLinkNode extends RichBlockBaseNode {
|
|
|
300
557
|
href: string;
|
|
301
558
|
target?: '_blank' | '_self';
|
|
302
559
|
rel?: string;
|
|
560
|
+
/** Contrato opcional de Quick View governado associado ao link. */
|
|
561
|
+
quickView?: ResourceQuickViewBinding;
|
|
562
|
+
}
|
|
563
|
+
type RichRecordReferenceVariant = 'inline' | 'badge' | 'chip';
|
|
564
|
+
/**
|
|
565
|
+
* Nó semântico explícito de referência de registro com visualização rápida governada (`Quick View`).
|
|
566
|
+
* Diferente de `RichLinkNode` (`href`), não exige rota direta e renderiza gatilho acessível (`button[type="button"]`).
|
|
567
|
+
*/
|
|
568
|
+
interface RichRecordReferenceNode extends RichBlockBaseNode {
|
|
569
|
+
type: 'recordReference';
|
|
570
|
+
label?: string;
|
|
571
|
+
labelExpr?: string;
|
|
572
|
+
icon?: string;
|
|
573
|
+
tone?: RichSemanticTone;
|
|
574
|
+
variant?: RichRecordReferenceVariant;
|
|
575
|
+
quickView: ResourceQuickViewBinding;
|
|
303
576
|
}
|
|
304
577
|
type RichSemanticTone = 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'danger' | 'error' | 'neutral';
|
|
305
578
|
interface RichBadgeNode extends RichBlockBaseNode {
|
|
@@ -308,6 +581,8 @@ interface RichBadgeNode extends RichBlockBaseNode {
|
|
|
308
581
|
labelExpr?: string;
|
|
309
582
|
icon?: string;
|
|
310
583
|
tone?: RichSemanticTone;
|
|
584
|
+
/** Contrato opcional de Quick View governado associado ao badge. */
|
|
585
|
+
quickView?: ResourceQuickViewBinding;
|
|
311
586
|
}
|
|
312
587
|
interface RichAvatarNode extends RichBlockBaseNode {
|
|
313
588
|
type: 'avatar';
|
|
@@ -335,11 +610,22 @@ interface RichProgressNode extends RichBlockBaseNode {
|
|
|
335
610
|
labelExpr?: string;
|
|
336
611
|
showPercent?: boolean;
|
|
337
612
|
}
|
|
613
|
+
interface RichActionCheckRule {
|
|
614
|
+
id?: string;
|
|
615
|
+
/** Regra JSON Logic que deve avaliar para `true` para habilitar o disparo da ação. */
|
|
616
|
+
when: JsonLogicExpression;
|
|
617
|
+
/** Mensagem de pré-condição exibida quando a checagem falha. */
|
|
618
|
+
message: string;
|
|
619
|
+
}
|
|
338
620
|
interface RichActionRef {
|
|
339
621
|
actionId: string;
|
|
340
622
|
payload?: unknown;
|
|
341
623
|
payloadExpr?: string;
|
|
624
|
+
/** Quando `true` (padrão quando há `payload` estruturado), interpola recursivamente `${...}` / `{{...}}` nos valores de `payload`. */
|
|
625
|
+
interpolatePayload?: boolean;
|
|
342
626
|
availabilityExpr?: string;
|
|
627
|
+
/** Regras declarativas de pré-condição avaliadas em cliente antes de habilitar/disparar a ação. */
|
|
628
|
+
checks?: RichActionCheckRule[];
|
|
343
629
|
confirmMessage?: string;
|
|
344
630
|
}
|
|
345
631
|
interface RichActionButtonNode extends RichBlockBaseNode {
|
|
@@ -357,10 +643,11 @@ interface RichMicroVisualizationNode extends RichBlockBaseNode {
|
|
|
357
643
|
visualizationExpr?: string;
|
|
358
644
|
kind?: string;
|
|
359
645
|
pointsExpr?: string;
|
|
646
|
+
itemsExpr?: string;
|
|
360
647
|
valueExpr?: string;
|
|
361
648
|
targetExpr?: string;
|
|
362
649
|
}
|
|
363
|
-
type RichPresenterNode = RichTextNode | RichIconNode | RichImageNode | RichLinkNode | RichBadgeNode | RichAvatarNode | RichMetricNode | RichProgressNode | RichActionButtonNode | RichMicroVisualizationNode;
|
|
650
|
+
type RichPresenterNode = RichTextNode | RichIconNode | RichImageNode | RichLinkNode | RichRecordReferenceNode | RichBadgeNode | RichAvatarNode | RichMetricNode | RichProgressNode | RichActionButtonNode | RichMicroVisualizationNode;
|
|
364
651
|
type RichComposeLayout = 'flex' | 'grid';
|
|
365
652
|
type RichComposeAlignItems = 'stretch' | 'start' | 'center' | 'end';
|
|
366
653
|
interface RichComposeNode extends RichBlockBaseNode {
|
|
@@ -372,14 +659,18 @@ interface RichComposeNode extends RichBlockBaseNode {
|
|
|
372
659
|
columns?: number | 'auto-fit' | 'auto-fill';
|
|
373
660
|
minColumnWidth?: string;
|
|
374
661
|
alignItems?: RichComposeAlignItems;
|
|
375
|
-
items
|
|
662
|
+
items?: RichBlockNode[];
|
|
663
|
+
/** Caminho opcional no contexto apontando para um array de registros a projetar com `itemTemplate`. */
|
|
664
|
+
itemsExpr?: string;
|
|
665
|
+
/** Template de bloco aplicado a cada entrada de `itemsExpr` com escopo `item` / `row` / `index` / `$index`. */
|
|
666
|
+
itemTemplate?: RichBlockNode;
|
|
376
667
|
}
|
|
377
668
|
type RichCardVariant = 'plain' | 'outlined' | 'elevated' | 'filled' | 'transparent' | 'unstyled';
|
|
378
|
-
type RichCardTone =
|
|
669
|
+
type RichCardTone = RichSemanticTone;
|
|
379
670
|
type RichCardSize = 'sm' | 'md' | 'lg';
|
|
380
671
|
type RichCardDensity = 'compact' | 'comfortable';
|
|
381
672
|
type RichCardOrientation = 'vertical' | 'horizontal';
|
|
382
|
-
type RichCardMediaKind = 'image' | 'video' | 'icon' | 'avatar' | 'telemetry' | 'lottie';
|
|
673
|
+
type RichCardMediaKind = 'image' | 'video' | 'icon' | 'avatar' | 'telemetry' | 'lottie' | 'component';
|
|
383
674
|
interface RichCardMediaTelemetry {
|
|
384
675
|
variant?: 'radar' | 'pulse' | 'wave' | 'signal';
|
|
385
676
|
speed?: 'slow' | 'normal' | 'fast';
|
|
@@ -400,9 +691,15 @@ interface RichCardMedia {
|
|
|
400
691
|
labelExpr?: string;
|
|
401
692
|
placement?: RichCardMediaPlacement;
|
|
402
693
|
aspectRatio?: RichCardMediaAspectRatio;
|
|
694
|
+
width?: string;
|
|
695
|
+
height?: string;
|
|
403
696
|
objectFit?: RichCardMediaObjectFit;
|
|
404
697
|
telemetry?: RichCardMediaTelemetry;
|
|
405
698
|
animationSrc?: string;
|
|
699
|
+
/** Registered component ID in ComponentMetadataRegistry when kind === 'component'. */
|
|
700
|
+
componentId?: string;
|
|
701
|
+
/** Declarative input map forwarded to the dynamic component when kind === 'component'. */
|
|
702
|
+
componentInputs?: Record<string, unknown>;
|
|
406
703
|
verticalAlign?: 'center' | 'top' | 'bottom' | 'stretch';
|
|
407
704
|
}
|
|
408
705
|
type RichCardInteractionMode = 'none' | 'action' | 'selectable';
|
|
@@ -494,13 +791,18 @@ interface RichKeyValueItem {
|
|
|
494
791
|
badge?: string;
|
|
495
792
|
badgeExpr?: string;
|
|
496
793
|
icon?: string;
|
|
794
|
+
quickView?: ResourceQuickViewBinding;
|
|
497
795
|
}
|
|
498
796
|
interface RichKeyValueListNode extends RichBlockBaseNode {
|
|
499
797
|
type: 'keyValueList';
|
|
500
798
|
title?: string;
|
|
501
799
|
titleExpr?: string;
|
|
502
800
|
layout?: 'stacked' | 'inline';
|
|
503
|
-
items
|
|
801
|
+
items?: RichKeyValueItem[];
|
|
802
|
+
/** Caminho opcional no contexto apontando para um array de registros a projetar em itens chave/valor. */
|
|
803
|
+
itemsExpr?: string;
|
|
804
|
+
/** Template opcional para mapear cada registro de `itemsExpr` em um `RichKeyValueItem`. */
|
|
805
|
+
itemTemplate?: RichKeyValueItem;
|
|
504
806
|
}
|
|
505
807
|
type RichPropertySheetColumns = 1 | 2;
|
|
506
808
|
type RichPropertySheetTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
@@ -514,6 +816,7 @@ interface RichPropertySheetItem {
|
|
|
514
816
|
hintExpr?: string;
|
|
515
817
|
icon?: string;
|
|
516
818
|
tone?: RichPropertySheetTone;
|
|
819
|
+
quickView?: ResourceQuickViewBinding;
|
|
517
820
|
}
|
|
518
821
|
interface RichPropertySheetNode extends RichBlockBaseNode {
|
|
519
822
|
type: 'propertySheet';
|
|
@@ -581,7 +884,11 @@ interface RichStatGroupNode extends RichBlockBaseNode {
|
|
|
581
884
|
headerSpacing?: RichStatGroupHeaderSpacing;
|
|
582
885
|
tileLayout?: RichStatGroupTileLayout;
|
|
583
886
|
layout?: RichStatGroupLayout;
|
|
584
|
-
items
|
|
887
|
+
items?: RichStatItem[];
|
|
888
|
+
/** Caminho opcional no contexto apontando para um array de métricas/registros a projetar em cartões de KPI. */
|
|
889
|
+
itemsExpr?: string;
|
|
890
|
+
/** Template opcional para mapear cada registro de `itemsExpr` em um `RichStatItem`. */
|
|
891
|
+
itemTemplate?: RichStatItem;
|
|
585
892
|
}
|
|
586
893
|
type RichTabsAppearance = 'underline' | 'pills';
|
|
587
894
|
interface RichTabsItem extends RichBlockRuleSet {
|
|
@@ -622,6 +929,7 @@ interface RichRecordSummaryField {
|
|
|
622
929
|
labelExpr?: string;
|
|
623
930
|
value?: string;
|
|
624
931
|
valueExpr?: string;
|
|
932
|
+
quickView?: ResourceQuickViewBinding;
|
|
625
933
|
}
|
|
626
934
|
interface RichRecordSummaryNode extends RichBlockBaseNode {
|
|
627
935
|
type: 'recordSummary';
|
|
@@ -633,6 +941,7 @@ interface RichRecordSummaryNode extends RichBlockBaseNode {
|
|
|
633
941
|
metaExpr?: string;
|
|
634
942
|
fields: RichRecordSummaryField[];
|
|
635
943
|
actions?: RichActionButtonNode[];
|
|
944
|
+
quickView?: ResourceQuickViewBinding;
|
|
636
945
|
}
|
|
637
946
|
type RichLookupResultStatus = 'idle' | 'resolved' | 'empty' | 'error';
|
|
638
947
|
interface RichLookupResultField {
|
|
@@ -681,7 +990,8 @@ interface RichLookupCardNode extends RichBlockBaseNode {
|
|
|
681
990
|
ctaIcon?: string;
|
|
682
991
|
variant?: 'basic' | 'raised' | 'stroked' | 'flat';
|
|
683
992
|
color?: 'basic' | 'primary' | 'accent' | 'warn';
|
|
684
|
-
action
|
|
993
|
+
action?: RichActionRef;
|
|
994
|
+
quickView?: ResourceQuickViewBinding;
|
|
685
995
|
fields: RichLookupResultField[];
|
|
686
996
|
secondaryActions?: RichActionButtonNode[];
|
|
687
997
|
}
|
|
@@ -702,6 +1012,8 @@ interface RichRelatedRecordNode extends RichBlockBaseNode {
|
|
|
702
1012
|
variant?: 'basic' | 'raised' | 'stroked' | 'flat';
|
|
703
1013
|
color?: 'basic' | 'primary' | 'accent' | 'warn';
|
|
704
1014
|
action?: RichActionRef;
|
|
1015
|
+
/** Contrato opcional de Quick View governado associado ao registro relacionado. */
|
|
1016
|
+
quickView?: ResourceQuickViewBinding;
|
|
705
1017
|
fields: RichLookupResultField[];
|
|
706
1018
|
secondaryActions?: RichActionButtonNode[];
|
|
707
1019
|
}
|
|
@@ -837,7 +1149,11 @@ interface RichAccordionNode extends RichBlockBaseNode {
|
|
|
837
1149
|
title?: string;
|
|
838
1150
|
titleExpr?: string;
|
|
839
1151
|
multi?: boolean;
|
|
840
|
-
items
|
|
1152
|
+
items?: RichAccordionItem[];
|
|
1153
|
+
/** Caminho opcional no contexto apontando para um array de registros a projetar em painéis do accordion. */
|
|
1154
|
+
itemsExpr?: string;
|
|
1155
|
+
/** Template opcional para mapear cada registro de `itemsExpr` em um `RichAccordionItem`. */
|
|
1156
|
+
itemTemplate?: RichAccordionItem;
|
|
841
1157
|
}
|
|
842
1158
|
interface RichMediaBlockNode extends RichBlockBaseNode {
|
|
843
1159
|
type: 'mediaBlock';
|
|
@@ -861,18 +1177,25 @@ interface RichTimelineItem {
|
|
|
861
1177
|
iconExpr?: string;
|
|
862
1178
|
badge?: string;
|
|
863
1179
|
badgeExpr?: string;
|
|
1180
|
+
badgeTone?: RichTimelineColor;
|
|
1181
|
+
avatar?: RichAvatarNode;
|
|
1182
|
+
itemLayout?: RichTimelineItemLayout;
|
|
864
1183
|
markerColor?: RichTimelineColor;
|
|
865
1184
|
markerStyle?: RichTimelineMarkerStyle;
|
|
866
1185
|
connectorColor?: RichTimelineColor;
|
|
867
1186
|
connectorVariant?: RichTimelineConnectorVariant;
|
|
868
1187
|
action?: RichActionRef;
|
|
1188
|
+
/** Contrato opcional de Quick View governado associado ao item da timeline. */
|
|
1189
|
+
quickView?: ResourceQuickViewBinding;
|
|
1190
|
+
children?: RichTimelineItem[];
|
|
869
1191
|
}
|
|
870
1192
|
type RichTimelinePosition = 'left' | 'right' | 'alternate' | 'alternate-reverse';
|
|
871
1193
|
type RichTimelineOrientation = 'vertical' | 'horizontal';
|
|
872
1194
|
type RichTimelineOrder = 'normal' | 'reverse';
|
|
873
1195
|
type RichTimelineConnectorVariant = 'solid' | 'dashed' | 'none';
|
|
874
1196
|
type RichTimelineMarkerVariant = 'dot' | 'icon' | 'number';
|
|
875
|
-
type RichTimelineMarkerStyle = 'filled' | 'outlined';
|
|
1197
|
+
type RichTimelineMarkerStyle = 'filled' | 'outlined' | 'soft';
|
|
1198
|
+
type RichTimelineItemLayout = 'stacked' | 'split';
|
|
876
1199
|
type RichTimelineColor = RichSemanticTone;
|
|
877
1200
|
type RichTimelineEmphasis = 'subtle' | 'standard' | 'strong' | 'hero';
|
|
878
1201
|
type RichTimelineDensity = 'compact' | 'comfortable' | 'spacious';
|
|
@@ -885,6 +1208,7 @@ interface RichTimelineNode extends RichBlockBaseNode {
|
|
|
885
1208
|
orientation?: RichTimelineOrientation;
|
|
886
1209
|
order?: RichTimelineOrder;
|
|
887
1210
|
position?: RichTimelinePosition;
|
|
1211
|
+
itemLayout?: RichTimelineItemLayout;
|
|
888
1212
|
connectorVariant?: RichTimelineConnectorVariant;
|
|
889
1213
|
connectorColor?: RichTimelineColor;
|
|
890
1214
|
markerVariant?: RichTimelineMarkerVariant;
|
|
@@ -893,7 +1217,10 @@ interface RichTimelineNode extends RichBlockBaseNode {
|
|
|
893
1217
|
emphasis?: RichTimelineEmphasis;
|
|
894
1218
|
density?: RichTimelineDensity;
|
|
895
1219
|
textAppearance?: RichTimelineTextAppearance;
|
|
896
|
-
|
|
1220
|
+
initialLimit?: number;
|
|
1221
|
+
items?: RichTimelineItem[];
|
|
1222
|
+
itemsExpr?: string;
|
|
1223
|
+
itemTemplate?: RichTimelineItem;
|
|
897
1224
|
}
|
|
898
1225
|
type CorePresetKind = 'surface-open' | 'widget-page-layout' | 'widget-page-theme' | 'editorial-theme' | 'editorial-compliance' | 'editorial-solution' | 'rich-block';
|
|
899
1226
|
interface CorePresetRef {
|
|
@@ -918,22 +1245,6 @@ interface RichContentDocument {
|
|
|
918
1245
|
nodes: RichBlockNode[];
|
|
919
1246
|
}
|
|
920
1247
|
|
|
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
1248
|
interface PraxisRuntimeGlobalActionEffect {
|
|
938
1249
|
id?: string;
|
|
939
1250
|
kind: 'global-action';
|
|
@@ -941,116 +1252,106 @@ interface PraxisRuntimeGlobalActionEffect {
|
|
|
941
1252
|
}
|
|
942
1253
|
|
|
943
1254
|
/**
|
|
944
|
-
*
|
|
945
|
-
*
|
|
946
|
-
*
|
|
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.
|
|
1255
|
+
* Contrato canônico de filtros rápidos (`quickFilters`) compartilhado entre
|
|
1256
|
+
* `x-ui.resource.quickFilters`, `GenericCrudService`, `<praxis-table>`,
|
|
1257
|
+
* `<praxis-scope-bar>`, `<praxis-crud>` e `<praxis-resource-page>`.
|
|
953
1258
|
*/
|
|
954
|
-
|
|
955
|
-
interface
|
|
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 {
|
|
1259
|
+
type PraxisQuickFilterTone = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'ready';
|
|
1260
|
+
interface PraxisResourceQuickFilter {
|
|
975
1261
|
id: string;
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
schemaUrl: string;
|
|
987
|
-
responseCardinality?: ResourceSurfaceResponseCardinality | null;
|
|
988
|
-
availability: ResourceAvailabilityDecision;
|
|
989
|
-
order: number;
|
|
990
|
-
tags: string[];
|
|
991
|
-
relatedResource?: RelatedResourceSurface | null;
|
|
1262
|
+
label: string;
|
|
1263
|
+
filter: Record<string, any> | string;
|
|
1264
|
+
icon?: string;
|
|
1265
|
+
tone?: PraxisQuickFilterTone;
|
|
1266
|
+
isDefault?: boolean;
|
|
1267
|
+
description?: string;
|
|
1268
|
+
order?: number;
|
|
1269
|
+
badge?: string | number;
|
|
1270
|
+
count?: number | null;
|
|
1271
|
+
tooltip?: string;
|
|
992
1272
|
}
|
|
993
1273
|
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1274
|
+
/**
|
|
1275
|
+
* Canonical epistemic metadata, intelligence job lifecycle, and fail-closed error
|
|
1276
|
+
* contracts aligned with `praxis-intelligence-contracts` v1.
|
|
1277
|
+
*/
|
|
1278
|
+
declare const PRAXIS_EPISTEMIC_KINDS: readonly ["DETERMINISTIC_LAW", "CALIBRATED_PROBABILITY", "STOCHASTIC_SIMULATION", "CAUSAL_HYPOTHESIS", "OPTIMIZATION_RESULT"];
|
|
1279
|
+
type PraxisEpistemicKind = (typeof PRAXIS_EPISTEMIC_KINDS)[number];
|
|
1280
|
+
declare const PRAXIS_EPISTEMIC_AVAILABILITY_STATES: readonly ["AVAILABLE", "INSUFFICIENT_SAMPLE", "K_ANONYMITY_SUPPRESSED", "ENGINE_UNAVAILABLE", "DEGRADED"];
|
|
1281
|
+
type PraxisEpistemicAvailabilityState = (typeof PRAXIS_EPISTEMIC_AVAILABILITY_STATES)[number];
|
|
1282
|
+
type PraxisNigriniConformity = 'CLOSE_CONFORMITY' | 'ACCEPTABLE_CONFORMITY' | 'MARGINAL_CONFORMITY' | 'MARGINALLY_ACCEPTABLE' | 'NON_CONFORMITY' | (string & {});
|
|
1283
|
+
interface PraxisModelCardInterpretationGuide {
|
|
1284
|
+
plainLanguageSummary?: string | null;
|
|
1285
|
+
businessPurpose?: string | null;
|
|
1286
|
+
howToRead?: readonly string[];
|
|
1287
|
+
keyMetricsExplained?: Readonly<Record<string, string>>;
|
|
1288
|
+
limitations?: readonly string[];
|
|
1289
|
+
decisionGuidance?: string | null;
|
|
1290
|
+
decisionBoundary?: string | null;
|
|
1291
|
+
cautionNote?: string | null;
|
|
1292
|
+
locale?: string | null;
|
|
1293
|
+
}
|
|
1294
|
+
interface PraxisEpistemicMeta {
|
|
1295
|
+
kind?: PraxisEpistemicKind;
|
|
1296
|
+
availabilityState?: PraxisEpistemicAvailabilityState;
|
|
1297
|
+
statisticallySignificant?: boolean;
|
|
1298
|
+
qValueFdr?: number | null;
|
|
1299
|
+
sampleSize?: number | null;
|
|
1300
|
+
suppressedCellCount?: number | null;
|
|
1301
|
+
modelCardId?: string | null;
|
|
1302
|
+
provenanceHash?: string | null;
|
|
1303
|
+
datasetKey?: string | null;
|
|
1304
|
+
methodologyNote?: string | null;
|
|
1305
|
+
nigriniMad?: number | null;
|
|
1306
|
+
nigriniConformity?: PraxisNigriniConformity | null;
|
|
1307
|
+
interpretationGuide?: PraxisModelCardInterpretationGuide | null;
|
|
1006
1308
|
}
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
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. */
|
|
1015
|
-
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. */
|
|
1021
|
-
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;
|
|
1309
|
+
|
|
1310
|
+
interface PraxisTranslationParams {
|
|
1311
|
+
[key: string]: string | number | boolean | null | undefined;
|
|
1046
1312
|
}
|
|
1047
|
-
interface
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1313
|
+
interface PraxisI18nMessageDescriptor {
|
|
1314
|
+
key?: string;
|
|
1315
|
+
text?: string;
|
|
1316
|
+
params?: PraxisTranslationParams;
|
|
1317
|
+
}
|
|
1318
|
+
type PraxisTextValue = string | PraxisI18nMessageDescriptor;
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* Standardized didactic guide ("How to read this indicator") attached to KPIs,
|
|
1322
|
+
* charts, widgets, epistemic badges, and analytical drawer metrics.
|
|
1323
|
+
*/
|
|
1324
|
+
interface PraxisIndicatorReadingGuide {
|
|
1325
|
+
/** Short heading shown inside the reading-guide popover. */
|
|
1326
|
+
readonly title?: PraxisTextValue;
|
|
1327
|
+
/** Concise short tooltip shown on hover/focus of the guide trigger. */
|
|
1328
|
+
readonly tooltip?: PraxisTextValue;
|
|
1329
|
+
/** Plain-language summary explaining what this indicator measures. */
|
|
1330
|
+
readonly summary: PraxisTextValue;
|
|
1331
|
+
/** Non-technical explanation of the formula or aggregation criterion. */
|
|
1332
|
+
readonly formula?: PraxisTextValue;
|
|
1333
|
+
/** Guidance on how to read favorable, warning, and critical values. */
|
|
1334
|
+
readonly interpretation?: PraxisTextValue;
|
|
1335
|
+
/** Reference threshold, regulatory band, or target range. */
|
|
1336
|
+
readonly targetBand?: PraxisTextValue;
|
|
1337
|
+
/** Optional normative or regulatory citation supporting the indicator. */
|
|
1338
|
+
readonly legalBasis?: PraxisTextValue;
|
|
1339
|
+
/** Methodological caveat, sample minimum, or privacy limitation. */
|
|
1340
|
+
readonly caveat?: PraxisTextValue;
|
|
1341
|
+
/** Optional epistemic nature associated with this indicator. */
|
|
1342
|
+
readonly epistemicKind?: PraxisEpistemicKind;
|
|
1343
|
+
/** Contextual prompt sent when clicking the "Ask Assistant" CTA. */
|
|
1344
|
+
readonly assistantPrompt?: PraxisTextValue;
|
|
1345
|
+
/** Optional semantic topic key forwarded to `PraxisOperationalAssistantLaunchService`. */
|
|
1346
|
+
readonly assistantTopicKey?: string;
|
|
1347
|
+
/** Optional target resource path forwarded to the contextual assistant. */
|
|
1348
|
+
readonly resourcePath?: string | null;
|
|
1349
|
+
/** Optional target resource key forwarded to the contextual assistant. */
|
|
1350
|
+
readonly resourceKey?: string | null;
|
|
1351
|
+
/** Optional target surface identifier forwarded to the contextual assistant. */
|
|
1352
|
+
readonly surfaceId?: string;
|
|
1353
|
+
/** Optional indicator or entity key forwarded to the contextual assistant. */
|
|
1354
|
+
readonly entityKey?: string | null;
|
|
1054
1355
|
}
|
|
1055
1356
|
|
|
1056
1357
|
interface TableTooltipConfig {
|
|
@@ -1098,6 +1399,8 @@ interface ColumnDefinition {
|
|
|
1098
1399
|
headerCssClass?: string;
|
|
1099
1400
|
/** Formato de exibição dos dados */
|
|
1100
1401
|
format?: any;
|
|
1402
|
+
/** Texto exibido quando o valor resolvido da célula for null, undefined ou string vazia, sem alterar o dado bruto ou a ordenação. */
|
|
1403
|
+
emptyValue?: string;
|
|
1101
1404
|
/** Coluna calculada baseada em expressão */
|
|
1102
1405
|
computed?: {
|
|
1103
1406
|
/** Expressão segura baseada em campos da linha */
|
|
@@ -1147,6 +1450,10 @@ interface ColumnDefinition {
|
|
|
1147
1450
|
prefix?: string;
|
|
1148
1451
|
/** Sufixo visual aplicado ao texto do renderer sem alterar o valor bruto. */
|
|
1149
1452
|
suffix?: string;
|
|
1453
|
+
/** Tooltip opcional associado ao indicador visual */
|
|
1454
|
+
tooltip?: TableTooltipConfig;
|
|
1455
|
+
/** Contrato declarativo de Quick View governado associado ao ícone/valor. */
|
|
1456
|
+
quickView?: ResourceQuickViewBinding;
|
|
1150
1457
|
};
|
|
1151
1458
|
/** Configuração de imagem */
|
|
1152
1459
|
image?: {
|
|
@@ -1180,8 +1487,14 @@ interface ColumnDefinition {
|
|
|
1180
1487
|
variant?: 'filled' | 'outlined' | 'soft' | 'plain';
|
|
1181
1488
|
/** Ícone opcional dentro do badge */
|
|
1182
1489
|
icon?: string;
|
|
1490
|
+
/** Prefixo visual opcional aplicado ao texto materializado */
|
|
1491
|
+
prefix?: string;
|
|
1492
|
+
/** Sufixo visual opcional aplicado ao texto materializado */
|
|
1493
|
+
suffix?: string;
|
|
1183
1494
|
/** Tooltip opcional associado ao indicador visual */
|
|
1184
1495
|
tooltip?: TableTooltipConfig;
|
|
1496
|
+
/** Contrato declarativo de Quick View governado associado ao badge. */
|
|
1497
|
+
quickView?: ResourceQuickViewBinding;
|
|
1185
1498
|
};
|
|
1186
1499
|
/** Link (sanitizado) */
|
|
1187
1500
|
link?: {
|
|
@@ -1191,6 +1504,8 @@ interface ColumnDefinition {
|
|
|
1191
1504
|
hrefField?: string;
|
|
1192
1505
|
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
1193
1506
|
rel?: string;
|
|
1507
|
+
/** Contrato declarativo de Quick View governado associado ao link. */
|
|
1508
|
+
quickView?: ResourceQuickViewBinding;
|
|
1194
1509
|
};
|
|
1195
1510
|
/** Botão (ação por linha) */
|
|
1196
1511
|
button?: {
|
|
@@ -1213,9 +1528,13 @@ interface ColumnDefinition {
|
|
|
1213
1528
|
textField?: string;
|
|
1214
1529
|
color?: string;
|
|
1215
1530
|
icon?: string;
|
|
1531
|
+
prefix?: string;
|
|
1532
|
+
suffix?: string;
|
|
1216
1533
|
variant?: 'filled' | 'outlined' | 'soft' | 'plain';
|
|
1217
1534
|
/** Tooltip opcional associado ao chip */
|
|
1218
1535
|
tooltip?: TableTooltipConfig;
|
|
1536
|
+
/** Contrato declarativo de Quick View governado associado ao chip. */
|
|
1537
|
+
quickView?: ResourceQuickViewBinding;
|
|
1219
1538
|
};
|
|
1220
1539
|
/** Barra de progresso leve */
|
|
1221
1540
|
progress?: {
|
|
@@ -1278,7 +1597,10 @@ interface ColumnDefinition {
|
|
|
1278
1597
|
textField?: string;
|
|
1279
1598
|
valueField?: string;
|
|
1280
1599
|
text?: string;
|
|
1600
|
+
prefix?: string;
|
|
1601
|
+
suffix?: string;
|
|
1281
1602
|
emphasis?: 'strong' | 'subtle';
|
|
1603
|
+
quickView?: ResourceQuickViewBinding;
|
|
1282
1604
|
} | {
|
|
1283
1605
|
type: 'icon';
|
|
1284
1606
|
icon?: {
|
|
@@ -1291,6 +1613,7 @@ interface ColumnDefinition {
|
|
|
1291
1613
|
ariaLabel?: string;
|
|
1292
1614
|
prefix?: string;
|
|
1293
1615
|
suffix?: string;
|
|
1616
|
+
quickView?: ResourceQuickViewBinding;
|
|
1294
1617
|
};
|
|
1295
1618
|
} | {
|
|
1296
1619
|
type: 'image';
|
|
@@ -1313,7 +1636,10 @@ interface ColumnDefinition {
|
|
|
1313
1636
|
color?: string;
|
|
1314
1637
|
variant?: 'filled' | 'outlined' | 'soft' | 'plain';
|
|
1315
1638
|
icon?: string;
|
|
1639
|
+
prefix?: string;
|
|
1640
|
+
suffix?: string;
|
|
1316
1641
|
tooltip?: TableTooltipConfig;
|
|
1642
|
+
quickView?: ResourceQuickViewBinding;
|
|
1317
1643
|
};
|
|
1318
1644
|
} | {
|
|
1319
1645
|
type: 'link';
|
|
@@ -1324,6 +1650,7 @@ interface ColumnDefinition {
|
|
|
1324
1650
|
hrefField?: string;
|
|
1325
1651
|
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
1326
1652
|
rel?: string;
|
|
1653
|
+
quickView?: ResourceQuickViewBinding;
|
|
1327
1654
|
};
|
|
1328
1655
|
} | {
|
|
1329
1656
|
type: 'button';
|
|
@@ -1347,8 +1674,11 @@ interface ColumnDefinition {
|
|
|
1347
1674
|
textField?: string;
|
|
1348
1675
|
color?: string;
|
|
1349
1676
|
icon?: string;
|
|
1677
|
+
prefix?: string;
|
|
1678
|
+
suffix?: string;
|
|
1350
1679
|
variant?: 'filled' | 'outlined' | 'soft' | 'plain';
|
|
1351
1680
|
tooltip?: TableTooltipConfig;
|
|
1681
|
+
quickView?: ResourceQuickViewBinding;
|
|
1352
1682
|
};
|
|
1353
1683
|
} | {
|
|
1354
1684
|
type: 'progress';
|
|
@@ -1411,7 +1741,14 @@ interface ColumnDefinition {
|
|
|
1411
1741
|
};
|
|
1412
1742
|
}>;
|
|
1413
1743
|
layout?: {
|
|
1414
|
-
|
|
1744
|
+
/**
|
|
1745
|
+
* `row`: todos os itens na mesma linha.
|
|
1746
|
+
* `column`: todos os itens empilhados.
|
|
1747
|
+
* `media`: padrão "media object" — o primeiro item (avatar, imagem ou ícone)
|
|
1748
|
+
* fica ancorado à esquerda e os demais itens empilham-se em linhas à direita
|
|
1749
|
+
* (ex.: avatar + nome em destaque + código/e-mail sutil).
|
|
1750
|
+
*/
|
|
1751
|
+
direction?: 'row' | 'column' | 'media';
|
|
1415
1752
|
gap?: number;
|
|
1416
1753
|
align?: 'start' | 'center' | 'end';
|
|
1417
1754
|
wrap?: boolean;
|
|
@@ -1419,6 +1756,12 @@ interface ColumnDefinition {
|
|
|
1419
1756
|
};
|
|
1420
1757
|
};
|
|
1421
1758
|
};
|
|
1759
|
+
/**
|
|
1760
|
+
* Contrato declarativo e serializável de Quick View governado para a célula/coluna.
|
|
1761
|
+
* Pode ser especializado individualmente em `renderer.link.quickView`, `renderer.badge.quickView`,
|
|
1762
|
+
* `renderer.chip.quickView`, `renderer.icon.quickView` ou em itens de `renderer.compose.items`.
|
|
1763
|
+
*/
|
|
1764
|
+
quickView?: ResourceQuickViewBinding;
|
|
1422
1765
|
/** Overrides condicionais do renderer por linha (first‑match wins) */
|
|
1423
1766
|
conditionalRenderers?: Array<{
|
|
1424
1767
|
/** Identificador estável usado para reconciliação e deduplicação de regras authoradas. */
|
|
@@ -1514,6 +1857,8 @@ interface ConfigMetadata {
|
|
|
1514
1857
|
serverHash?: string;
|
|
1515
1858
|
/** Campo identificador preferido pelo usuário para o recurso (ex.: 'id', 'codigo') */
|
|
1516
1859
|
idField?: string;
|
|
1860
|
+
/** Caminho canônico do recurso associado à configuração persistida (ex.: 'workforce/employees') */
|
|
1861
|
+
resourcePath?: string;
|
|
1517
1862
|
/** Contexto de schema associado (útil para auditoria/telemetria) */
|
|
1518
1863
|
schemaContext?: {
|
|
1519
1864
|
path: string;
|
|
@@ -1749,8 +2094,8 @@ interface PaginationConfig {
|
|
|
1749
2094
|
style: 'default' | 'simple' | 'advanced' | 'compact';
|
|
1750
2095
|
/** Total de itens (para paginação server-side) */
|
|
1751
2096
|
totalItems?: number;
|
|
1752
|
-
/**
|
|
1753
|
-
strategy
|
|
2097
|
+
/** Se omitida, o runtime usa server para recurso remoto e client para dados locais. */
|
|
2098
|
+
strategy?: 'client' | 'server';
|
|
1754
2099
|
/** Configurações avançadas */
|
|
1755
2100
|
advanced?: {
|
|
1756
2101
|
/** Jump to page input */
|
|
@@ -1774,8 +2119,8 @@ interface SortingConfig {
|
|
|
1774
2119
|
}>;
|
|
1775
2120
|
/** Permitir ordenação múltipla */
|
|
1776
2121
|
multiSort: boolean;
|
|
1777
|
-
/**
|
|
1778
|
-
strategy
|
|
2122
|
+
/** Se omitida, o runtime usa server para recurso remoto e client para dados locais. */
|
|
2123
|
+
strategy?: 'client' | 'server';
|
|
1779
2124
|
/** Mostrar indicadores visuais de ordenação */
|
|
1780
2125
|
showSortIndicators: boolean;
|
|
1781
2126
|
/** Posição dos indicadores */
|
|
@@ -1834,18 +2179,20 @@ interface FilterPresentationConfig {
|
|
|
1834
2179
|
}
|
|
1835
2180
|
interface FilteringConfig {
|
|
1836
2181
|
/** Habilitar filtragem */
|
|
1837
|
-
enabled
|
|
2182
|
+
enabled?: boolean;
|
|
1838
2183
|
/** Filtros por coluna */
|
|
1839
2184
|
columnFilters?: {
|
|
1840
|
-
enabled
|
|
1841
|
-
/** Tipo de filtro padrão */
|
|
1842
|
-
defaultType
|
|
1843
|
-
/** Posição dos filtros */
|
|
1844
|
-
position
|
|
2185
|
+
enabled?: boolean;
|
|
2186
|
+
/** Tipo de filtro padrão (opcional, padrão 'text') */
|
|
2187
|
+
defaultType?: 'text' | 'select' | 'date' | 'number' | 'boolean';
|
|
2188
|
+
/** Posição dos filtros (opcional, padrão 'header') */
|
|
2189
|
+
position?: 'header' | 'subheader' | 'sidebar';
|
|
1845
2190
|
};
|
|
1846
2191
|
/** Filtros avançados */
|
|
1847
2192
|
advancedFilters?: {
|
|
1848
|
-
enabled
|
|
2193
|
+
enabled?: boolean;
|
|
2194
|
+
/** URL explícita para o schema do filtro (se omitida, inferida pelo host/CRUD a partir do resource.path) */
|
|
2195
|
+
schemaUrl?: string;
|
|
1849
2196
|
/** Interface de query builder */
|
|
1850
2197
|
queryBuilder?: boolean;
|
|
1851
2198
|
/** Salvar filtros como presets */
|
|
@@ -1853,6 +2200,22 @@ interface FilteringConfig {
|
|
|
1853
2200
|
/** Configurações específicas do componente praxis-filter */
|
|
1854
2201
|
settings?: {
|
|
1855
2202
|
presentation?: FilterPresentationConfig;
|
|
2203
|
+
/** Renderização inline de campos do filtro */
|
|
2204
|
+
inline?: boolean;
|
|
2205
|
+
/** Usar variante de seleção inline pesquisável */
|
|
2206
|
+
useInlineSearchableSelectVariant?: boolean;
|
|
2207
|
+
/** Usar variante inline para campos de slider ou intervalo numérico */
|
|
2208
|
+
useInlineRangeVariant?: boolean;
|
|
2209
|
+
/** Usar variante inline para campos de data */
|
|
2210
|
+
useInlineDateVariant?: boolean;
|
|
2211
|
+
/** Usar variante inline para campos de intervalo de datas (dateRange) */
|
|
2212
|
+
useInlineDateRangeVariant?: boolean;
|
|
2213
|
+
/** Usar variante inline para campos de horário */
|
|
2214
|
+
useInlineTimeVariant?: boolean;
|
|
2215
|
+
/** Usar variante inline para campos de intervalo de horários */
|
|
2216
|
+
useInlineTimeRangeVariant?: boolean;
|
|
2217
|
+
/** Usar variante inline para seleção em árvore (treeSelect) */
|
|
2218
|
+
useInlineTreeSelectVariant?: boolean;
|
|
1856
2219
|
/** Campos sempre visíveis */
|
|
1857
2220
|
alwaysVisibleFields?: string[];
|
|
1858
2221
|
/** Overrides de metadata por campo sempre visível (merge sobre o DTO de filtro) */
|
|
@@ -1861,6 +2224,10 @@ interface FilteringConfig {
|
|
|
1861
2224
|
selectedFieldIds?: string[];
|
|
1862
2225
|
/** Exibir opções avançadas por padrão */
|
|
1863
2226
|
showAdvanced?: boolean;
|
|
2227
|
+
/** Exibir botão "Gerenciar campos" na barra do filtro (padrão: true) */
|
|
2228
|
+
showAddButton?: boolean;
|
|
2229
|
+
/** Exibir botão "Configurações do filtro" na barra quando customização estiver disponível (padrão: true) */
|
|
2230
|
+
showFilterSettings?: boolean;
|
|
1864
2231
|
/** Permitir salvar tags/atalhos de filtro */
|
|
1865
2232
|
allowSaveTags?: boolean;
|
|
1866
2233
|
/** Atalhos governados, somente leitura, aplicados como patch do DTO de filtro */
|
|
@@ -1909,10 +2276,10 @@ interface FilteringConfig {
|
|
|
1909
2276
|
enablePerformanceMetrics?: boolean;
|
|
1910
2277
|
};
|
|
1911
2278
|
};
|
|
1912
|
-
/** Estratégia de filtragem */
|
|
1913
|
-
strategy
|
|
1914
|
-
/** Debounce para filtros em tempo real (ms) */
|
|
1915
|
-
debounceTime
|
|
2279
|
+
/** Estratégia de filtragem (opcional, padrão 'server' ou 'client' pelo modo) */
|
|
2280
|
+
strategy?: 'client' | 'server';
|
|
2281
|
+
/** Debounce para filtros em tempo real (ms, opcional) */
|
|
2282
|
+
debounceTime?: number;
|
|
1916
2283
|
}
|
|
1917
2284
|
interface SelectionConfig {
|
|
1918
2285
|
/** Habilitar seleção de linhas */
|
|
@@ -1921,6 +2288,8 @@ interface SelectionConfig {
|
|
|
1921
2288
|
type: 'single' | 'multiple';
|
|
1922
2289
|
/** Modo de seleção */
|
|
1923
2290
|
mode: 'checkbox' | 'row' | 'both';
|
|
2291
|
+
/** Permitir desselecionar a linha ao clicar ou ativar novamente em seleção única. */
|
|
2292
|
+
allowDeselect?: boolean;
|
|
1924
2293
|
/** Permitir selecionar todas as linhas */
|
|
1925
2294
|
allowSelectAll: boolean;
|
|
1926
2295
|
/** Posição do checkbox de seleção */
|
|
@@ -2219,10 +2588,10 @@ interface ElevationConfig {
|
|
|
2219
2588
|
hoverElevation?: number;
|
|
2220
2589
|
}
|
|
2221
2590
|
interface ToolbarConfig {
|
|
2222
|
-
/** Visibilidade da toolbar */
|
|
2223
|
-
visible
|
|
2224
|
-
/** Posição da toolbar */
|
|
2225
|
-
position
|
|
2591
|
+
/** Visibilidade da toolbar (opcional, padrão true) */
|
|
2592
|
+
visible?: boolean;
|
|
2593
|
+
/** Posição da toolbar (opcional, padrão 'top') */
|
|
2594
|
+
position?: 'top' | 'bottom' | 'both';
|
|
2226
2595
|
/** Posição das ações da toolbar */
|
|
2227
2596
|
actionsPosition?: 'top' | 'bottom' | 'both';
|
|
2228
2597
|
/** Cor de fundo da barra de ações */
|
|
@@ -2247,6 +2616,12 @@ interface ToolbarConfig {
|
|
|
2247
2616
|
textAlign?: 'start' | 'center' | 'end';
|
|
2248
2617
|
/** Ações da toolbar */
|
|
2249
2618
|
actions?: ToolbarAction[];
|
|
2619
|
+
/** Configuração de busca rápida na toolbar */
|
|
2620
|
+
search?: {
|
|
2621
|
+
enabled?: boolean;
|
|
2622
|
+
placeholder?: string;
|
|
2623
|
+
debounceTime?: number;
|
|
2624
|
+
};
|
|
2250
2625
|
/** Configurações de filtros na toolbar */
|
|
2251
2626
|
filters?: ToolbarFilterConfig;
|
|
2252
2627
|
/** Menu de configurações */
|
|
@@ -2330,6 +2705,8 @@ interface ToolbarAction {
|
|
|
2330
2705
|
effects?: PraxisRuntimeGlobalActionEffect[];
|
|
2331
2706
|
/** Tooltip */
|
|
2332
2707
|
tooltip?: string;
|
|
2708
|
+
/** Descrição semântica da ação para descoberta, acessibilidade e operações de governança */
|
|
2709
|
+
description?: string;
|
|
2333
2710
|
/** Tecla de atalho */
|
|
2334
2711
|
shortcut?: string;
|
|
2335
2712
|
/** Escopo do atalho: somente toolbar ativa ou global */
|
|
@@ -2349,12 +2726,7 @@ interface ToolbarFilterConfig {
|
|
|
2349
2726
|
/** Habilitar filtros rápidos na toolbar */
|
|
2350
2727
|
enabled: boolean;
|
|
2351
2728
|
/** Filtros rápidos disponíveis */
|
|
2352
|
-
quickFilters?:
|
|
2353
|
-
id: string;
|
|
2354
|
-
label: string;
|
|
2355
|
-
filter: any;
|
|
2356
|
-
icon?: string;
|
|
2357
|
-
}>;
|
|
2729
|
+
quickFilters?: PraxisResourceQuickFilter[];
|
|
2358
2730
|
/** Mostrar botões de filtros rápidos na toolbar (default: true) */
|
|
2359
2731
|
showQuickFilters?: boolean;
|
|
2360
2732
|
/** Mostrar botão de filtros avançados */
|
|
@@ -2473,6 +2845,8 @@ interface RowAction {
|
|
|
2473
2845
|
effects?: PraxisRuntimeGlobalActionEffect[];
|
|
2474
2846
|
/** Surface de registro canonica aberta por esta acao de linha */
|
|
2475
2847
|
recordSurface?: ResourceSurfaceCatalogItem;
|
|
2848
|
+
/** Contrato declarativo de Quick View governado aberto ancorado ao gatilho desta ação de linha */
|
|
2849
|
+
quickView?: ResourceQuickViewBinding;
|
|
2476
2850
|
/** Tooltip */
|
|
2477
2851
|
tooltip?: string;
|
|
2478
2852
|
/** Requer confirmação */
|
|
@@ -2803,6 +3177,11 @@ interface TableDrawerConfig {
|
|
|
2803
3177
|
tabs?: PraxisAnalyticalDrawerTab[];
|
|
2804
3178
|
/** Orquestração declarativa de sub-recursos e relações vinculadas (Issue #32) */
|
|
2805
3179
|
relations?: PraxisAnalyticalDrawerRelation[];
|
|
3180
|
+
/**
|
|
3181
|
+
* Quando verdadeiro em uma configuração local/DI, hidrata automaticamente `x-ui.calculationMemory`
|
|
3182
|
+
* publicado pelo DTO backend (`@CalculationMemory` — PLAT-EVO-20) sem duplicar trilhas no frontend.
|
|
3183
|
+
*/
|
|
3184
|
+
hydrateRemoteCalculationMemory?: boolean;
|
|
2806
3185
|
}
|
|
2807
3186
|
/**
|
|
2808
3187
|
* Esquema estrutural canônico para gavetas analíticas e dossiês multi-aba (`kind: 'praxis.analytical-drawer.schema'`).
|
|
@@ -2814,8 +3193,216 @@ interface PraxisAnalyticalDrawerSchema {
|
|
|
2814
3193
|
subtitleExpr?: string;
|
|
2815
3194
|
icon?: string;
|
|
2816
3195
|
classificationPill?: string;
|
|
2817
|
-
tabs
|
|
3196
|
+
tabs?: PraxisAnalyticalDrawerTab[];
|
|
2818
3197
|
relations?: PraxisAnalyticalDrawerRelation[];
|
|
3198
|
+
/**
|
|
3199
|
+
* Seção nativa de Memória de Cálculo Explicável (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado + Fundamentação Legal`).
|
|
3200
|
+
* Permite que hosts de Folha, Tributos ou Faturamento exibam explicabilidade algorítmica declarativamente via JSON/schema.
|
|
3201
|
+
*/
|
|
3202
|
+
calculationMemory?: PraxisAnalyticalDrawerCalculationMemoryContent | PraxisAnalyticalDrawerCalculationTrail[];
|
|
3203
|
+
/**
|
|
3204
|
+
* Hidrata automaticamente `x-ui.calculationMemory` publicado pelo `ResponseDTO` backend (`@CalculationMemory` — PLAT-EVO-20)
|
|
3205
|
+
* sobre o dossiê local registrado no `AnalyticalDrawerRegistryService`.
|
|
3206
|
+
*/
|
|
3207
|
+
hydrateRemoteCalculationMemory?: boolean;
|
|
3208
|
+
/** Guia didático opcional ("Como ler este indicador") exibido no cabeçalho do dossiê. */
|
|
3209
|
+
readingGuide?: PraxisIndicatorReadingGuide;
|
|
3210
|
+
}
|
|
3211
|
+
/**
|
|
3212
|
+
* Papel semântico de uma etapa dentro de uma trilha de memória de cálculo.
|
|
3213
|
+
*/
|
|
3214
|
+
type PraxisAnalyticalDrawerCalculationStepRole = 'base' | 'factor' | 'cap' | 'target' | 'deduction' | 'addition' | 'subtotal' | 'result' | 'custom';
|
|
3215
|
+
/**
|
|
3216
|
+
* Etapa individual na sequência algorítmica de memória de cálculo
|
|
3217
|
+
* (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado`).
|
|
3218
|
+
*/
|
|
3219
|
+
interface PraxisAnalyticalDrawerCalculationStep {
|
|
3220
|
+
/** Papel semântico da etapa (ex.: 'base', 'factor', 'cap', 'subtotal', 'result'). */
|
|
3221
|
+
role?: PraxisAnalyticalDrawerCalculationStepRole;
|
|
3222
|
+
/** Discriminador canônico de etapa emitido por `@CalculationStep` (`x-ui.calculationMemory`). */
|
|
3223
|
+
kind?: PraxisAnalyticalDrawerCalculationStepRole;
|
|
3224
|
+
/** Rótulo exibido na etapa (ex.: 'Base de Cálculo', 'Fator / Alíquota', 'Trava / Teto', 'Resultado'). */
|
|
3225
|
+
label: string;
|
|
3226
|
+
/** Valor estático opcional quando não derivado por expressão. */
|
|
3227
|
+
value?: unknown;
|
|
3228
|
+
/** Expressão avaliada contra `{ row, relations, env }` via `SafeExpressionEvaluator`. */
|
|
3229
|
+
valueExpr?: string;
|
|
3230
|
+
/** Alias direto de expressão emitido por `@CalculationStep`. */
|
|
3231
|
+
expr?: string;
|
|
3232
|
+
/** Operador matemático ou lógico exibido antes da etapa (ex.: '×', '÷', '+', '-', '≤', '='). */
|
|
3233
|
+
operator?: string;
|
|
3234
|
+
/** Formato de apresentação ('currency:BRL', 'percent', 'number', 'integer', 'text'). */
|
|
3235
|
+
format?: string;
|
|
3236
|
+
/** Nota ou fórmula curta auxiliar sob o valor da etapa. */
|
|
3237
|
+
hint?: string;
|
|
3238
|
+
/** Expressão opcional para nota/fórmula curta auxiliar. */
|
|
3239
|
+
hintExpr?: string;
|
|
3240
|
+
/** Referência normativa específica da etapa (`@CalculationStep.legalBasis`). */
|
|
3241
|
+
legalBasis?: string;
|
|
3242
|
+
/** Ícone Material opcional da etapa. */
|
|
3243
|
+
icon?: string;
|
|
3244
|
+
/** Tom visual da etapa (ex.: 'neutral', 'info', 'warning', 'success', 'danger', 'primary'). */
|
|
3245
|
+
tone?: string;
|
|
3246
|
+
}
|
|
3247
|
+
/**
|
|
3248
|
+
* Trilha estruturada de memória de cálculo explicável
|
|
3249
|
+
* (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado + Fundamentação Legal`).
|
|
3250
|
+
*/
|
|
3251
|
+
interface PraxisAnalyticalDrawerCalculationTrail {
|
|
3252
|
+
/** Identificador único da trilha de cálculo (ex.: 'terco-ferias', 'abate-teto', 'irrf'). */
|
|
3253
|
+
id?: string;
|
|
3254
|
+
/** Título da memória de cálculo. */
|
|
3255
|
+
title?: string;
|
|
3256
|
+
/** Expressão opcional para título dinâmico da trilha. */
|
|
3257
|
+
titleExpr?: string;
|
|
3258
|
+
/** Subtítulo ou rubrica/competência. */
|
|
3259
|
+
subtitle?: string;
|
|
3260
|
+
/** Expressão opcional para subtítulo dinâmico. */
|
|
3261
|
+
subtitleExpr?: string;
|
|
3262
|
+
/** Ícone Material da trilha (padrão: 'calculate'). */
|
|
3263
|
+
icon?: string;
|
|
3264
|
+
/** Código da regra determinística ou rubrica que originou o cálculo. */
|
|
3265
|
+
ruleCode?: string;
|
|
3266
|
+
/** Expressão opcional para o código da regra/rubrica. */
|
|
3267
|
+
ruleCodeExpr?: string;
|
|
3268
|
+
/** Expressão algébrica legível da fórmula (ex.: 'min(Base × Alíquota, Teto)'). */
|
|
3269
|
+
formula?: string;
|
|
3270
|
+
/** Expressão opcional para fórmula algébrica dinâmica. */
|
|
3271
|
+
formulaExpr?: string;
|
|
3272
|
+
baseLabel?: string;
|
|
3273
|
+
baseValue?: unknown;
|
|
3274
|
+
baseExpr?: string;
|
|
3275
|
+
baseFormat?: string;
|
|
3276
|
+
baseHint?: string;
|
|
3277
|
+
baseHintExpr?: string;
|
|
3278
|
+
additionLabel?: string;
|
|
3279
|
+
additionValue?: unknown;
|
|
3280
|
+
additionExpr?: string;
|
|
3281
|
+
additionFormat?: string;
|
|
3282
|
+
additionHint?: string;
|
|
3283
|
+
additionHintExpr?: string;
|
|
3284
|
+
deductionLabel?: string;
|
|
3285
|
+
deductionValue?: unknown;
|
|
3286
|
+
deductionExpr?: string;
|
|
3287
|
+
deductionFormat?: string;
|
|
3288
|
+
deductionHint?: string;
|
|
3289
|
+
deductionHintExpr?: string;
|
|
3290
|
+
factorLabel?: string;
|
|
3291
|
+
factorValue?: unknown;
|
|
3292
|
+
factorExpr?: string;
|
|
3293
|
+
factorFormat?: string;
|
|
3294
|
+
factorHint?: string;
|
|
3295
|
+
factorHintExpr?: string;
|
|
3296
|
+
capLabel?: string;
|
|
3297
|
+
capOperator?: string;
|
|
3298
|
+
capValue?: unknown;
|
|
3299
|
+
capExpr?: string;
|
|
3300
|
+
capFormat?: string;
|
|
3301
|
+
capHint?: string;
|
|
3302
|
+
capHintExpr?: string;
|
|
3303
|
+
targetLabel?: string;
|
|
3304
|
+
targetValue?: unknown;
|
|
3305
|
+
targetExpr?: string;
|
|
3306
|
+
targetFormat?: string;
|
|
3307
|
+
targetHint?: string;
|
|
3308
|
+
targetHintExpr?: string;
|
|
3309
|
+
resultLabel?: string;
|
|
3310
|
+
resultValue?: unknown;
|
|
3311
|
+
resultExpr?: string;
|
|
3312
|
+
resultFormat?: string;
|
|
3313
|
+
resultHint?: string;
|
|
3314
|
+
resultHintExpr?: string;
|
|
3315
|
+
resultTone?: string;
|
|
3316
|
+
/**
|
|
3317
|
+
* Sequência explícita de etapas (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado`).
|
|
3318
|
+
* Quando omitida, o componente sintetiza automaticamente os estágios configurados em
|
|
3319
|
+
* `base*`, `addition*`, `deduction*`, `factor*`, `cap*` e `result*`.
|
|
3320
|
+
*/
|
|
3321
|
+
steps?: PraxisAnalyticalDrawerCalculationStep[];
|
|
3322
|
+
/** Fundamentação legal ou normativa (ex.: 'CF/88, art. 7º, XVII; Lei 8.112/1990, art. 76'). */
|
|
3323
|
+
legalBasis?: string;
|
|
3324
|
+
/** Expressão opcional para fundamentação legal dinâmica a partir da linha ou relação. */
|
|
3325
|
+
legalBasisExpr?: string;
|
|
3326
|
+
/** Finalidade legal ou nota de conformidade normativa. */
|
|
3327
|
+
legalPurpose?: string;
|
|
3328
|
+
/** Expressão opcional para finalidade legal dinâmica. */
|
|
3329
|
+
legalPurposeExpr?: string;
|
|
3330
|
+
/** Condição opcional (`SafeExpressionEvaluator`) para exibir a trilha apenas quando aplicável. */
|
|
3331
|
+
visibleWhen?: string;
|
|
3332
|
+
/** Metadados epistêmicos estáticos da trilha de cálculo (`x-ui.calculationMemory` / `PLAT-EVO-21`). */
|
|
3333
|
+
epistemicMeta?: PraxisEpistemicMeta;
|
|
3334
|
+
/** Expressão (`SafeExpressionEvaluator`) que resolve o envelope epistêmico completo a partir do registro. */
|
|
3335
|
+
epistemicMetaExpr?: string;
|
|
3336
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.kind`. */
|
|
3337
|
+
epistemicKindExpr?: string;
|
|
3338
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.availabilityState`. */
|
|
3339
|
+
epistemicAvailabilityStateExpr?: string;
|
|
3340
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.statisticallySignificant`. */
|
|
3341
|
+
statisticallySignificantExpr?: string;
|
|
3342
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.qValueFdr`. */
|
|
3343
|
+
qValueFdrExpr?: string;
|
|
3344
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.sampleSize`. */
|
|
3345
|
+
sampleSizeExpr?: string;
|
|
3346
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.suppressedCellCount`. */
|
|
3347
|
+
suppressedCellCountExpr?: string;
|
|
3348
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.provenanceHash`. */
|
|
3349
|
+
provenanceHashExpr?: string;
|
|
3350
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.modelCardId`. */
|
|
3351
|
+
modelCardIdExpr?: string;
|
|
3352
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.datasetKey`. */
|
|
3353
|
+
datasetKeyExpr?: string;
|
|
3354
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.methodologyNote`. */
|
|
3355
|
+
methodologyNoteExpr?: string;
|
|
3356
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.nigriniMad`. */
|
|
3357
|
+
nigriniMadExpr?: string;
|
|
3358
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.nigriniConformity`. */
|
|
3359
|
+
nigriniConformityExpr?: string;
|
|
3360
|
+
}
|
|
3361
|
+
/**
|
|
3362
|
+
* Bloco declarativo de Memória de Cálculo Explicável para abas ou seções do `<praxis-analytical-drawer>`.
|
|
3363
|
+
*/
|
|
3364
|
+
interface PraxisAnalyticalDrawerCalculationMemoryContent {
|
|
3365
|
+
type: 'calculationMemory';
|
|
3366
|
+
/** Título opcional da seção de memória de cálculo. */
|
|
3367
|
+
title?: string;
|
|
3368
|
+
/** Expressão opcional para título dinâmico da seção. */
|
|
3369
|
+
titleExpr?: string;
|
|
3370
|
+
/** Subtítulo ou resumo explicativo da seção. */
|
|
3371
|
+
subtitle?: string;
|
|
3372
|
+
/** Expressão opcional para subtítulo dinâmico da seção. */
|
|
3373
|
+
subtitleExpr?: string;
|
|
3374
|
+
/** Ícone opcional da seção (padrão: 'calculate'). */
|
|
3375
|
+
icon?: string;
|
|
3376
|
+
/** Lista declarativa de trilhas de memória de cálculo. */
|
|
3377
|
+
trails?: PraxisAnalyticalDrawerCalculationTrail[];
|
|
3378
|
+
/** Expressão opcional (`SafeExpressionEvaluator`) que resolve trilhas dinâmicas vindas do backend. */
|
|
3379
|
+
trailsExpr?: string;
|
|
3380
|
+
/** Fundamentação legal geral da seção quando compartilhada pelas trilhas. */
|
|
3381
|
+
legalBasis?: string;
|
|
3382
|
+
/** Expressão opcional para fundamentação legal geral da seção. */
|
|
3383
|
+
legalBasisExpr?: string;
|
|
3384
|
+
/** Mensagem exibida quando nenhuma trilha for aplicável para o registro atual. */
|
|
3385
|
+
emptyText?: string;
|
|
3386
|
+
}
|
|
3387
|
+
/**
|
|
3388
|
+
* Item individual de propriedade dentro de um grid analítico em uma aba (Property Grid).
|
|
3389
|
+
*/
|
|
3390
|
+
interface PraxisAnalyticalDrawerPropertyItem {
|
|
3391
|
+
label?: string;
|
|
3392
|
+
field?: string;
|
|
3393
|
+
icon?: string;
|
|
3394
|
+
valueExpr?: string;
|
|
3395
|
+
value?: unknown;
|
|
3396
|
+
format?: string;
|
|
3397
|
+
spanFull?: boolean;
|
|
3398
|
+
toneExpr?: string;
|
|
3399
|
+
pipe?: string;
|
|
3400
|
+
fallbackText?: string;
|
|
3401
|
+
/** Texto auxiliar curto (tooltip ou resumo herdado de `@UISchema(helpText)`). */
|
|
3402
|
+
helpText?: string;
|
|
3403
|
+
/** Guia didático opcional ("Como ler este indicador") exibido no rótulo da propriedade/métrica. */
|
|
3404
|
+
readingGuide?: PraxisIndicatorReadingGuide;
|
|
3405
|
+
[key: string]: unknown;
|
|
2819
3406
|
}
|
|
2820
3407
|
/**
|
|
2821
3408
|
* Definição de aba temática dentro de uma gaveta analítica.
|
|
@@ -2826,7 +3413,9 @@ interface PraxisAnalyticalDrawerTab {
|
|
|
2826
3413
|
icon?: string;
|
|
2827
3414
|
badge?: string;
|
|
2828
3415
|
count?: number;
|
|
2829
|
-
content?: TableDetailSchemaNode | TableDetailInlineSchemaDocument | RichContentDocument | Record<string, unknown
|
|
3416
|
+
content?: TableDetailSchemaNode | TableDetailInlineSchemaDocument | RichContentDocument | PraxisAnalyticalDrawerCalculationMemoryContent | Record<string, unknown> | PraxisAnalyticalDrawerPropertyItem[] | Array<Record<string, unknown>>;
|
|
3417
|
+
/** Seção opcional de memória de cálculo exibida dentro desta aba analítica. */
|
|
3418
|
+
calculationMemory?: PraxisAnalyticalDrawerCalculationMemoryContent | PraxisAnalyticalDrawerCalculationTrail[];
|
|
2830
3419
|
}
|
|
2831
3420
|
/**
|
|
2832
3421
|
* Contrato declarativo de sub-recurso / relação vinculada para injeção automática no contexto reativo (`context.relations`).
|
|
@@ -2887,6 +3476,10 @@ interface PraxisKpiBandCard {
|
|
|
2887
3476
|
className?: string;
|
|
2888
3477
|
/** Tooltip explicativo ao pairar o mouse */
|
|
2889
3478
|
tooltip?: string;
|
|
3479
|
+
/** Micro-visualização declarativa opcional exibida no corpo do card KPI */
|
|
3480
|
+
visualization?: PraxisPresentationVisualizationConfig;
|
|
3481
|
+
/** Guia didático estruturado ("Como ler este indicador") exibido no card KPI */
|
|
3482
|
+
readingGuide?: PraxisIndicatorReadingGuide;
|
|
2890
3483
|
}
|
|
2891
3484
|
interface PraxisKpiBandConfig {
|
|
2892
3485
|
/** Se a faixa de KPIs está habilitada (padrão: true quando configurada) */
|
|
@@ -3690,6 +4283,13 @@ declare const FieldControlType: {
|
|
|
3690
4283
|
};
|
|
3691
4284
|
type FieldControlType = (typeof FieldControlType)[keyof typeof FieldControlType];
|
|
3692
4285
|
|
|
4286
|
+
/** Scalar JSON Schema items projected by the operation schema; object collections use FieldArrayConfig. */
|
|
4287
|
+
interface FieldScalarItemsSchema {
|
|
4288
|
+
type: 'string' | 'integer' | 'number' | 'boolean';
|
|
4289
|
+
format?: string;
|
|
4290
|
+
enum?: readonly (string | number | boolean | null)[];
|
|
4291
|
+
}
|
|
4292
|
+
|
|
3693
4293
|
type FormFieldHelpDisplay = 'auto' | 'inline' | 'popover' | 'hidden';
|
|
3694
4294
|
|
|
3695
4295
|
/**
|
|
@@ -3906,8 +4506,27 @@ interface FieldOption {
|
|
|
3906
4506
|
icon?: string;
|
|
3907
4507
|
/** Tooltip text for option */
|
|
3908
4508
|
tooltip?: string;
|
|
3909
|
-
/**
|
|
4509
|
+
/** Optional semantic visual tone mapped by UI consumers. */
|
|
4510
|
+
tone?: string;
|
|
4511
|
+
/**
|
|
4512
|
+
* Secondary business/domain description rendered on a dedicated line in rich selectors.
|
|
4513
|
+
* Do not concatenate `code` or `badge` here when those properties are populated separately.
|
|
4514
|
+
*/
|
|
3910
4515
|
description?: string;
|
|
4516
|
+
/**
|
|
4517
|
+
* Optional technical identifier, field key, or endpoint path rendered in a monospace slot
|
|
4518
|
+
* (both in the dropdown option and in the closed select trigger).
|
|
4519
|
+
*/
|
|
4520
|
+
code?: string;
|
|
4521
|
+
/**
|
|
4522
|
+
* Optional domain group, data type, or governance badge (e.g. `"RH · Somente leitura"`, `"integer"`)
|
|
4523
|
+
* rendered as a pill next to the option label.
|
|
4524
|
+
*/
|
|
4525
|
+
badge?: string;
|
|
4526
|
+
/**
|
|
4527
|
+
* Optional additional keywords indexed for accent-insensitive client-side search.
|
|
4528
|
+
*/
|
|
4529
|
+
searchTerms?: string[];
|
|
3911
4530
|
}
|
|
3912
4531
|
/**
|
|
3913
4532
|
* Angular Material specific styling and behavior options.
|
|
@@ -4006,6 +4625,10 @@ type FieldSubmitPolicy = 'include' | 'omit' | 'includeWhenDirty';
|
|
|
4006
4625
|
interface FieldMetadata extends ComponentMetadata {
|
|
4007
4626
|
/** Unique field identifier (required) */
|
|
4008
4627
|
name: string;
|
|
4628
|
+
/** Backend-authored custom-field identity; `name` retains the full value path. */
|
|
4629
|
+
customField?: boolean;
|
|
4630
|
+
customFieldKey?: string;
|
|
4631
|
+
customFieldScope?: string;
|
|
4009
4632
|
/** Display label for the field */
|
|
4010
4633
|
label: string;
|
|
4011
4634
|
/**
|
|
@@ -4027,6 +4650,8 @@ interface FieldMetadata extends ComponentMetadata {
|
|
|
4027
4650
|
dataType?: FieldDataType;
|
|
4028
4651
|
/** Canonical metadata for editable collection fields (`controlType: "array"`). */
|
|
4029
4652
|
array?: FieldArrayConfig;
|
|
4653
|
+
/** Scalar array item contract projected from the operation's JSON Schema. */
|
|
4654
|
+
items?: FieldScalarItemsSchema;
|
|
4030
4655
|
/** Optional top-level alias for collection validators mirrored into `array.collectionValidation`. */
|
|
4031
4656
|
collectionValidation?: FieldArrayCollectionValidation;
|
|
4032
4657
|
/** Display order in form */
|
|
@@ -4074,6 +4699,28 @@ interface FieldMetadata extends ComponentMetadata {
|
|
|
4074
4699
|
fieldAccess?: FieldAccessMetadata;
|
|
4075
4700
|
/** Field is hidden from display */
|
|
4076
4701
|
hidden?: boolean;
|
|
4702
|
+
/** Hidden specifically in collection table columns (`x-ui.tableHidden`). */
|
|
4703
|
+
tableHidden?: boolean;
|
|
4704
|
+
/** Hidden specifically inside generated forms (`x-ui.formHidden`). */
|
|
4705
|
+
formHidden?: boolean;
|
|
4706
|
+
/** Explicit column sort order inside collection tables (`x-ui.tableOrder`). */
|
|
4707
|
+
tableOrder?: number;
|
|
4708
|
+
/** Explicit sticky side inside collection tables (`x-ui.pinned`). */
|
|
4709
|
+
pinned?: 'start' | 'end';
|
|
4710
|
+
/** Marks field as primary quick-search filter target (`x-ui.primarySearch`). */
|
|
4711
|
+
primarySearch?: boolean;
|
|
4712
|
+
/** Promotes filter field to inline/always-visible bar (`x-ui.inlineFilter`). */
|
|
4713
|
+
inlineFilter?: boolean;
|
|
4714
|
+
/** Compact alias promoting filter field to inline/always-visible bar (`x-ui.inline`). */
|
|
4715
|
+
inline?: boolean;
|
|
4716
|
+
/** Explicit 12-column responsive grid span (`x-ui.colSpan`, `1..12`). */
|
|
4717
|
+
colSpan?: number;
|
|
4718
|
+
/** Active workspace context binding contract (`x-ui.contextBinding`). */
|
|
4719
|
+
contextBinding?: PraxisContextBindingContract;
|
|
4720
|
+
/** Indicates field value must clear when cloning a draft (`x-ui.draftCleared`). */
|
|
4721
|
+
draftCleared?: boolean;
|
|
4722
|
+
/** Resource-state mutability rules (`x-ui.resourceState`). */
|
|
4723
|
+
resourceState?: PraxisResourceStateContract;
|
|
4077
4724
|
/** Canonical conditional visibility guard for metadata-driven forms. */
|
|
4078
4725
|
hiddenCondition?: JsonLogicExpression | null;
|
|
4079
4726
|
/** Default value when form initializes */
|
|
@@ -4151,6 +4798,10 @@ interface FieldMetadata extends ComponentMetadata {
|
|
|
4151
4798
|
* heuristics.
|
|
4152
4799
|
*/
|
|
4153
4800
|
valuePresentation?: ValuePresentationConfig;
|
|
4801
|
+
/** Micro-visualization metadata published via `x-ui.microVisualization`. */
|
|
4802
|
+
microVisualization?: PraxisPresentationVisualizationConfig;
|
|
4803
|
+
/** Numeric format directive (`auto`, `integer`, `decimal`, `currency`, `percent`). */
|
|
4804
|
+
numericFormat?: 'auto' | 'integer' | 'decimal' | 'currency' | 'percent' | string;
|
|
4154
4805
|
/**
|
|
4155
4806
|
* Semantic presentation metadata for read-only/display surfaces.
|
|
4156
4807
|
*
|
|
@@ -4163,6 +4814,14 @@ interface FieldMetadata extends ComponentMetadata {
|
|
|
4163
4814
|
* readonly/display surfaces. Later matching rules win.
|
|
4164
4815
|
*/
|
|
4165
4816
|
presentationRules?: FieldPresentationRule[];
|
|
4817
|
+
/** Indicates that this field is curated for display in the Quick View summary list. */
|
|
4818
|
+
quickViewVisible?: boolean;
|
|
4819
|
+
/** Relative order of this field in the Quick View summary list when quickViewVisible is true. */
|
|
4820
|
+
quickViewOrder?: number;
|
|
4821
|
+
/** Canonical cross-resource reference contract published in x-ui.resourceReference. */
|
|
4822
|
+
resourceReference?: ResourceReferenceMetadata;
|
|
4823
|
+
/** Declarative governed Quick View contract for reference fields. */
|
|
4824
|
+
quickView?: ResourceQuickViewBinding;
|
|
4166
4825
|
/** Material Design specific configuration */
|
|
4167
4826
|
materialDesign?: MaterialDesignConfig;
|
|
4168
4827
|
/**
|
|
@@ -4172,12 +4831,22 @@ interface FieldMetadata extends ComponentMetadata {
|
|
|
4172
4831
|
* needs platform-governed Apply/Cancel/Clear actions.
|
|
4173
4832
|
*/
|
|
4174
4833
|
inlineOverlay?: InlineOverlayMetadata;
|
|
4834
|
+
/** Title displayed in the inline overlay panel header. */
|
|
4835
|
+
inlinePanelTitle?: string;
|
|
4836
|
+
/** Subtitle displayed under the inline overlay panel header title. */
|
|
4837
|
+
inlinePanelSubtitle?: string;
|
|
4838
|
+
/** Material icon ligature rendered in the inline overlay panel header badge. */
|
|
4839
|
+
inlinePanelIcon?: string;
|
|
4840
|
+
/** Theme palette token or CSS color applied to the inline overlay panel header icon. */
|
|
4841
|
+
inlinePanelIconColor?: string;
|
|
4175
4842
|
/** Fields this field depends on */
|
|
4176
4843
|
dependencyFields?: string[];
|
|
4177
4844
|
/** Canonical conditional required guard for metadata-driven forms. */
|
|
4178
4845
|
conditionalRequired?: JsonLogicExpression | null;
|
|
4179
4846
|
/** Canonical conditional visibility guard for metadata-driven forms. */
|
|
4180
4847
|
conditionalDisplay?: JsonLogicExpression | null;
|
|
4848
|
+
/** Conditional read-only guard (`x-ui.conditionalReadOnly`). */
|
|
4849
|
+
conditionalReadOnly?: JsonLogicExpression | string | null;
|
|
4181
4850
|
/** Reset value when dependency changes */
|
|
4182
4851
|
resetOnDependentChange?: boolean;
|
|
4183
4852
|
/** Enable native field-to-field dependency cascade inside the same form */
|
|
@@ -4210,10 +4879,6 @@ interface FieldMetadata extends ComponentMetadata {
|
|
|
4210
4879
|
textTransformApply?: 'displayOnly' | 'saveOnly' | 'both';
|
|
4211
4880
|
/** Contexts where field should be visible */
|
|
4212
4881
|
visibleIn?: Array<'form' | 'filter' | 'table' | 'dialog'>;
|
|
4213
|
-
/** Hide in specific form contexts */
|
|
4214
|
-
formHidden?: boolean;
|
|
4215
|
-
/** Hide in table contexts */
|
|
4216
|
-
tableHidden?: boolean;
|
|
4217
4882
|
/** Hide in filter contexts */
|
|
4218
4883
|
filterHidden?: boolean;
|
|
4219
4884
|
/** ARIA label for screen readers */
|
|
@@ -4232,6 +4897,21 @@ interface FieldAccessMetadata {
|
|
|
4232
4897
|
reason?: string;
|
|
4233
4898
|
}
|
|
4234
4899
|
|
|
4900
|
+
/**
|
|
4901
|
+
* Supported operator modes for inline monetary range controls.
|
|
4902
|
+
*/
|
|
4903
|
+
type InlineCurrencyRangeOperatorMode = 'between' | 'gte' | 'lte' | 'eq';
|
|
4904
|
+
|
|
4905
|
+
type PraxisContextBindingDimension = 'organization' | 'company_group' | 'unit' | 'person' | 'bond' | 'contract';
|
|
4906
|
+
interface PraxisContextBindingContract {
|
|
4907
|
+
dimension: PraxisContextBindingDimension;
|
|
4908
|
+
lockWhenActive: boolean;
|
|
4909
|
+
targetField?: string;
|
|
4910
|
+
}
|
|
4911
|
+
interface PraxisResourceStateContract {
|
|
4912
|
+
initialStates?: string[];
|
|
4913
|
+
putMutableStates?: string[];
|
|
4914
|
+
}
|
|
4235
4915
|
/**
|
|
4236
4916
|
* Contrato de saída do normalizador de esquema (SchemaNormalizerService):
|
|
4237
4917
|
* - Converte metadados `x-ui` em FieldDefinition tipado.
|
|
@@ -4244,6 +4924,10 @@ interface FieldAccessMetadata {
|
|
|
4244
4924
|
*/
|
|
4245
4925
|
interface FieldDefinition {
|
|
4246
4926
|
name: string;
|
|
4927
|
+
/** Backend-authored custom-field identity; `name` retains the full value path. */
|
|
4928
|
+
customField?: boolean;
|
|
4929
|
+
customFieldKey?: string;
|
|
4930
|
+
customFieldScope?: string;
|
|
4247
4931
|
label?: string;
|
|
4248
4932
|
description?: string;
|
|
4249
4933
|
type?: string;
|
|
@@ -4264,6 +4948,8 @@ interface FieldDefinition {
|
|
|
4264
4948
|
readOnly?: boolean;
|
|
4265
4949
|
fieldAccess?: FieldAccessMetadata;
|
|
4266
4950
|
array?: FieldArrayConfig;
|
|
4951
|
+
/** Scalar array item contract from JSON Schema; independent of object collection authoring. */
|
|
4952
|
+
items?: FieldScalarItemsSchema;
|
|
4267
4953
|
collectionValidation?: FieldArrayCollectionValidation;
|
|
4268
4954
|
multiple?: boolean;
|
|
4269
4955
|
editable?: boolean;
|
|
@@ -4273,11 +4959,28 @@ interface FieldDefinition {
|
|
|
4273
4959
|
sortable?: boolean;
|
|
4274
4960
|
/** Json Logic canônico que define obrigatoriedade condicional. */
|
|
4275
4961
|
conditionalRequired?: JsonLogicExpression | null;
|
|
4962
|
+
/** Expressão condicional de somente leitura publicada em `x-ui.conditionalReadOnly`. */
|
|
4963
|
+
conditionalReadOnly?: JsonLogicExpression | string | null;
|
|
4964
|
+
/** Span explícito em grid de 12 colunas (`1..12`). */
|
|
4965
|
+
colSpan?: number;
|
|
4966
|
+
/** Vínculo com contexto ativo de workspace (`x-ui.contextBinding`). */
|
|
4967
|
+
contextBinding?: PraxisContextBindingContract;
|
|
4968
|
+
/** Indica limpeza do campo ao clonar rascunho (`x-ui.draftCleared`). */
|
|
4969
|
+
draftCleared?: boolean;
|
|
4970
|
+
/** Regras declarativas de mutabilidade por estado (`x-ui.resourceState`). */
|
|
4971
|
+
resourceState?: PraxisResourceStateContract;
|
|
4276
4972
|
viewOnlyStyle?: string;
|
|
4277
4973
|
/** Lista de gatilhos de validação, ex.: ["blur", "change"]. */
|
|
4278
4974
|
validationTriggers?: string[];
|
|
4279
4975
|
hidden?: boolean;
|
|
4280
4976
|
tableHidden?: boolean;
|
|
4977
|
+
tableOrder?: number;
|
|
4978
|
+
pinned?: 'start' | 'end';
|
|
4979
|
+
primarySearch?: boolean;
|
|
4980
|
+
/** Promotes filter field to inline/always-visible bar (`x-ui.inlineFilter`). */
|
|
4981
|
+
inlineFilter?: boolean;
|
|
4982
|
+
/** Legacy/compact alias promoting filter field to inline bar (`x-ui.inline`). */
|
|
4983
|
+
inline?: boolean;
|
|
4281
4984
|
formHidden?: boolean;
|
|
4282
4985
|
filterable?: boolean;
|
|
4283
4986
|
/** Json Logic canônico que controla se o campo é exibido. */
|
|
@@ -4306,11 +5009,16 @@ interface FieldDefinition {
|
|
|
4306
5009
|
endpoint?: string;
|
|
4307
5010
|
resourcePath?: string;
|
|
4308
5011
|
optionSource?: OptionSourceMetadata;
|
|
5012
|
+
dialog?: LookupDialogMetadata;
|
|
4309
5013
|
emptyOptionText?: string;
|
|
4310
5014
|
options?: {
|
|
4311
5015
|
key: string;
|
|
4312
5016
|
value: string;
|
|
4313
5017
|
label?: string;
|
|
5018
|
+
icon?: string;
|
|
5019
|
+
tone?: string;
|
|
5020
|
+
description?: string;
|
|
5021
|
+
disabled?: boolean;
|
|
4314
5022
|
[key: string]: any;
|
|
4315
5023
|
}[];
|
|
4316
5024
|
filter?: any;
|
|
@@ -4321,16 +5029,28 @@ interface FieldDefinition {
|
|
|
4321
5029
|
optionLabelKey?: string;
|
|
4322
5030
|
optionValueKey?: string;
|
|
4323
5031
|
filterOptions?: any[];
|
|
4324
|
-
numericFormat?: string;
|
|
5032
|
+
numericFormat?: 'auto' | 'integer' | 'decimal' | 'currency' | 'percent' | string;
|
|
4325
5033
|
valuePresentation?: ValuePresentationConfig;
|
|
5034
|
+
/** Micro-visualização declarada em `x-ui.microVisualization`. */
|
|
5035
|
+
microVisualization?: PraxisPresentationVisualizationConfig;
|
|
4326
5036
|
/** Semantic read-only/list presentation metadata from canonical x-ui.presentation. */
|
|
4327
5037
|
presentation?: FieldPresentationConfig;
|
|
4328
5038
|
/** Conditional presentation overrides for read-only/list consumers. */
|
|
4329
5039
|
presentationRules?: FieldPresentationRule[];
|
|
5040
|
+
/** Indicates that this field is curated for display in the Quick View summary list. */
|
|
5041
|
+
quickViewVisible?: boolean;
|
|
5042
|
+
/** Relative order of this field in the Quick View summary list when quickViewVisible is true. */
|
|
5043
|
+
quickViewOrder?: number;
|
|
5044
|
+
/** Canonical cross-resource reference contract published in x-ui.resourceReference. */
|
|
5045
|
+
resourceReference?: ResourceReferenceMetadata;
|
|
5046
|
+
/** Declarative governed Quick View contract for reference fields. */
|
|
5047
|
+
quickView?: ResourceQuickViewBinding;
|
|
4330
5048
|
numericStep?: number;
|
|
4331
5049
|
numericMin?: number;
|
|
4332
5050
|
numericMax?: number;
|
|
4333
5051
|
numericMaxLength?: number;
|
|
5052
|
+
inlineVisualStyle?: 'compact' | 'graphic';
|
|
5053
|
+
percentPresets?: number[];
|
|
4334
5054
|
optionGroups?: {
|
|
4335
5055
|
key: string;
|
|
4336
5056
|
value: string;
|
|
@@ -4391,6 +5111,258 @@ interface FieldDefinition {
|
|
|
4391
5111
|
showInlineErrors?: boolean;
|
|
4392
5112
|
/** Posição preferida da mensagem de erro (ex.: below, right). */
|
|
4393
5113
|
errorPosition?: string;
|
|
5114
|
+
/** Exibe o rótulo de valor no thumb de sliders (`slider`, `rangeSlider`, `inlineRange`). */
|
|
5115
|
+
thumbLabel?: boolean;
|
|
5116
|
+
/** Controla quando o rótulo de valor é exibido em sliders (`'off' | 'auto' | 'on'`). */
|
|
5117
|
+
valueLabelDisplay?: 'off' | 'auto' | 'on';
|
|
5118
|
+
/** Ativa o modo discreto (thumb label) em sliders Material. */
|
|
5119
|
+
discrete?: boolean;
|
|
5120
|
+
/** Exibe campos numéricos auxiliares sincronizados ao slider/range. */
|
|
5121
|
+
showInputs?: boolean;
|
|
5122
|
+
/** Exibe marcações (ticks) ao longo da trilha do slider. */
|
|
5123
|
+
showTicks?: boolean | 'auto';
|
|
5124
|
+
/** Exibe âncoras clicáveis abaixo da trilha do slider/faixa inline (`true`, `false` ou `'auto'`). */
|
|
5125
|
+
showAnchors?: boolean | 'auto';
|
|
5126
|
+
/** Título exibido no cabeçalho do popover para controles inline. */
|
|
5127
|
+
inlinePanelTitle?: string;
|
|
5128
|
+
/** Subtítulo exibido no cabeçalho do popover para controles inline. */
|
|
5129
|
+
inlinePanelSubtitle?: string;
|
|
5130
|
+
/** Ligadura Material Icons exibida no cabeçalho do popover para controles inline. */
|
|
5131
|
+
inlinePanelIcon?: string;
|
|
5132
|
+
/** Cor do ícone exibido no cabeçalho do popover para controles inline. */
|
|
5133
|
+
inlinePanelIconColor?: string;
|
|
5134
|
+
/** Exibe campos numéricos inline editáveis dentro do popover de controles de slider/faixa. */
|
|
5135
|
+
showInlineInputs?: boolean;
|
|
5136
|
+
/** Histograma ou configuração de distribuição interativa exibida acima do slider inline. */
|
|
5137
|
+
inlineDistribution?: unknown;
|
|
5138
|
+
/** Modos de operador habilitados para filtros de faixa monetária inline. */
|
|
5139
|
+
operatorModes?: InlineCurrencyRangeOperatorMode[] | boolean | string;
|
|
5140
|
+
/** Modo de operador inicial para filtros de faixa monetária inline. */
|
|
5141
|
+
defaultOperatorMode?: InlineCurrencyRangeOperatorMode;
|
|
5142
|
+
/** Exige ambos os limites da faixa (ex.: BETWEEN_EXCLUSIVE). */
|
|
5143
|
+
requireTwoBounds?: boolean;
|
|
5144
|
+
/** Passo aplicado exclusivamente à trilha do slider. */
|
|
5145
|
+
sliderStep?: number;
|
|
5146
|
+
/** Incremento de teclado com modificador Shift para sliders/faixas. */
|
|
5147
|
+
shiftStep?: number;
|
|
5148
|
+
/** Distância mínima exigida entre os limites da faixa. */
|
|
5149
|
+
minDistance?: number;
|
|
5150
|
+
/** Distância máxima permitida entre os limites da faixa. */
|
|
5151
|
+
maxDistance?: number;
|
|
5152
|
+
/** Código de moeda (ex.: BRL, USD, EUR). */
|
|
5153
|
+
currency?: string;
|
|
5154
|
+
/** Alias para código de moeda (`currency`). */
|
|
5155
|
+
currencyCode?: string;
|
|
5156
|
+
/** Quantidade de casas decimais para campos numéricos/monetários. */
|
|
5157
|
+
decimalPlaces?: number;
|
|
5158
|
+
/** Precisão numérica (moeda/número) ou granularidade de avaliação ('half' | 'item'). */
|
|
5159
|
+
precision?: number | string;
|
|
5160
|
+
/** Posição do símbolo monetário em relação ao valor. */
|
|
5161
|
+
currencyPosition?: 'before' | 'after';
|
|
5162
|
+
/** Exibe símbolo/indicador monetário em cabeçalhos e inputs. */
|
|
5163
|
+
showCurrencySymbol?: boolean;
|
|
5164
|
+
/** Separador de milhar (alias de `thousandsSeparator`). */
|
|
5165
|
+
thousandSeparator?: string;
|
|
5166
|
+
/** Separador de milhar. */
|
|
5167
|
+
thousandsSeparator?: string;
|
|
5168
|
+
/** Separador decimal. */
|
|
5169
|
+
decimalSeparator?: string;
|
|
5170
|
+
/** Permite valores negativos em controles numéricos/monetários. */
|
|
5171
|
+
allowNegative?: boolean;
|
|
5172
|
+
/** Rótulo do input mínimo de faixa. */
|
|
5173
|
+
inputMinLabel?: string;
|
|
5174
|
+
/** Rótulo do input máximo de faixa. */
|
|
5175
|
+
inputMaxLabel?: string;
|
|
5176
|
+
/** Rótulo do input de valor exato em faixa monetária. */
|
|
5177
|
+
inputExactLabel?: string;
|
|
5178
|
+
/** Limite mínimo permitido para o valor inicial da faixa. */
|
|
5179
|
+
startMin?: number;
|
|
5180
|
+
/** Limite máximo permitido para o valor inicial da faixa. */
|
|
5181
|
+
startMax?: number;
|
|
5182
|
+
/** Limite mínimo permitido para o valor final da faixa. */
|
|
5183
|
+
endMin?: number;
|
|
5184
|
+
/** Limite máximo permitido para o valor final da faixa. */
|
|
5185
|
+
endMax?: number;
|
|
5186
|
+
/** Mensagens e deslocamentos relacionais de limites de faixa monetária. */
|
|
5187
|
+
startMinMessage?: string;
|
|
5188
|
+
startMaxMessage?: string;
|
|
5189
|
+
endMinMessage?: string;
|
|
5190
|
+
endMaxMessage?: string;
|
|
5191
|
+
endMinOffset?: number;
|
|
5192
|
+
endMinOffsetMessage?: string;
|
|
5193
|
+
startMaxOffset?: number;
|
|
5194
|
+
startMaxOffsetMessage?: string;
|
|
5195
|
+
/** Configuração especializada de faixa de horário inline. */
|
|
5196
|
+
stepMinute?: number;
|
|
5197
|
+
stepMinutes?: number;
|
|
5198
|
+
interval?: number;
|
|
5199
|
+
inlineTimeTrackShifts?: unknown[];
|
|
5200
|
+
inlineTrackShifts?: unknown[];
|
|
5201
|
+
trackShifts?: unknown[];
|
|
5202
|
+
minDistanceMinutes?: number;
|
|
5203
|
+
maxDistanceMinutes?: number;
|
|
5204
|
+
/** Configuração especializada de raio de distância inline. */
|
|
5205
|
+
distanceIcon?: string;
|
|
5206
|
+
distanceStart?: number;
|
|
5207
|
+
distanceEnd?: number;
|
|
5208
|
+
radiusMin?: number;
|
|
5209
|
+
radiusMax?: number;
|
|
5210
|
+
radiusStep?: number;
|
|
5211
|
+
radiusMode?: string;
|
|
5212
|
+
distanceSliderStep?: number;
|
|
5213
|
+
/** Configuração especializada de avaliação (rating) inline. */
|
|
5214
|
+
ratingGradientLowColor?: string;
|
|
5215
|
+
ratingGradientMidColor?: string;
|
|
5216
|
+
ratingGradientHighColor?: string;
|
|
5217
|
+
ratingToneLowColor?: string;
|
|
5218
|
+
ratingToneMidColor?: string;
|
|
5219
|
+
ratingToneHighColor?: string;
|
|
5220
|
+
ratingBadgeColor?: string;
|
|
5221
|
+
ratingBadgeIcon?: string;
|
|
5222
|
+
ratingBadgeIconColor?: string;
|
|
5223
|
+
ratingActiveIcon?: string;
|
|
5224
|
+
ratingInactiveIcon?: string;
|
|
5225
|
+
ratingAllowHalf?: boolean;
|
|
5226
|
+
ratingPrecision?: number | string;
|
|
5227
|
+
ratingColors?: Record<string, unknown> | string[];
|
|
5228
|
+
starColors?: Record<string, unknown> | string[];
|
|
5229
|
+
ratingLowColor?: string;
|
|
5230
|
+
ratingMidColor?: string;
|
|
5231
|
+
ratingHighColor?: string;
|
|
5232
|
+
ratingIndicatorColor?: string;
|
|
5233
|
+
ratingMin?: number;
|
|
5234
|
+
ratingMax?: number;
|
|
5235
|
+
itemsCount?: number;
|
|
5236
|
+
ratingStep?: number;
|
|
5237
|
+
/** Configuração especializada de faixa de score / prioridade inline. */
|
|
5238
|
+
scoreSubtitle?: string;
|
|
5239
|
+
scoreUnit?: string;
|
|
5240
|
+
scoreDisplayDecimals?: number;
|
|
5241
|
+
scoreShowScaleLabels?: boolean;
|
|
5242
|
+
scoreShowBandChips?: boolean;
|
|
5243
|
+
scoreRangeSeparator?: string;
|
|
5244
|
+
scoreGradientLowColor?: string;
|
|
5245
|
+
scoreGradientMidColor?: string;
|
|
5246
|
+
scoreGradientHighColor?: string;
|
|
5247
|
+
scoreValueFallbackColor?: string;
|
|
5248
|
+
scoreEmptyGradient?: string;
|
|
5249
|
+
scoreIcon?: string;
|
|
5250
|
+
scoreBandsAriaLabel?: string;
|
|
5251
|
+
scoreBandAriaLabelTemplate?: string;
|
|
5252
|
+
scoreMin?: number;
|
|
5253
|
+
scoreMax?: number;
|
|
5254
|
+
scoreStep?: number;
|
|
5255
|
+
scoreMode?: string;
|
|
5256
|
+
scoreSliderStep?: number;
|
|
5257
|
+
/** Configuração especializada de filtros gráficos e date-range inline (Onda 2). */
|
|
5258
|
+
optionSubtitleKey?: string;
|
|
5259
|
+
optionWeightKey?: string;
|
|
5260
|
+
optionColorKey?: string;
|
|
5261
|
+
optionIconKey?: string;
|
|
5262
|
+
optionEmojiKey?: string;
|
|
5263
|
+
panelSearchIcon?: string;
|
|
5264
|
+
panelSearchIconColor?: string;
|
|
5265
|
+
panelResetIcon?: string;
|
|
5266
|
+
panelResetIconColor?: string;
|
|
5267
|
+
optionSelectedIcon?: string;
|
|
5268
|
+
optionSelectedIconColor?: string;
|
|
5269
|
+
columns?: number;
|
|
5270
|
+
pipelineTitle?: string;
|
|
5271
|
+
pipelineSubtitle?: string;
|
|
5272
|
+
pipelineMode?: string;
|
|
5273
|
+
pipelineMultiple?: boolean;
|
|
5274
|
+
pipelineSearchable?: boolean;
|
|
5275
|
+
pipelineSearchPlaceholder?: string;
|
|
5276
|
+
pipelineOptionSubtitleKey?: string;
|
|
5277
|
+
pipelineOptionWeightKey?: string;
|
|
5278
|
+
pipelineOptionColorKey?: string;
|
|
5279
|
+
pipelineShowBar?: boolean;
|
|
5280
|
+
pipelineShowSelectionPills?: boolean;
|
|
5281
|
+
pipelineShowSelectAll?: boolean;
|
|
5282
|
+
pipelineSelectAllText?: string;
|
|
5283
|
+
pipelineShowClearAction?: boolean;
|
|
5284
|
+
pipelineClearActionText?: string;
|
|
5285
|
+
pipelineChipMaxVisible?: number;
|
|
5286
|
+
statusColors?: unknown;
|
|
5287
|
+
pipelineGradientLowColor?: string;
|
|
5288
|
+
pipelineGradientMidColor?: string;
|
|
5289
|
+
pipelineGradientHighColor?: string;
|
|
5290
|
+
pipelineEmptyStateText?: string;
|
|
5291
|
+
pipelineSelectionActionsAriaLabel?: string;
|
|
5292
|
+
pipelineOptionsGroupAriaLabelMultiple?: string;
|
|
5293
|
+
pipelineOptionsGroupAriaLabelSingle?: string;
|
|
5294
|
+
pipelineSelectionPillsAriaLabel?: string;
|
|
5295
|
+
pipelineBarAriaLabelEmpty?: string;
|
|
5296
|
+
pipelineBarAriaLabelSelected?: string;
|
|
5297
|
+
pipelineIcon?: string;
|
|
5298
|
+
pipelineSearchIcon?: string;
|
|
5299
|
+
pipelineSearchIconColor?: string;
|
|
5300
|
+
relativePeriodTitle?: string;
|
|
5301
|
+
relativePeriodSubtitle?: string;
|
|
5302
|
+
relativePeriodShowProgress?: boolean;
|
|
5303
|
+
relativePeriodProgressGradientLowColor?: string;
|
|
5304
|
+
relativePeriodProgressGradientMidColor?: string;
|
|
5305
|
+
relativePeriodProgressGradientHighColor?: string;
|
|
5306
|
+
relativePeriodColumns?: number;
|
|
5307
|
+
relativePeriodCloseOnSelect?: boolean;
|
|
5308
|
+
relativePeriodMultiple?: boolean;
|
|
5309
|
+
relativePeriodSearchable?: boolean;
|
|
5310
|
+
relativePeriodIcon?: string;
|
|
5311
|
+
relativePeriodIconKey?: string;
|
|
5312
|
+
relativePeriodSubtitleKey?: string;
|
|
5313
|
+
relativePeriodSelectedIcon?: string;
|
|
5314
|
+
relativePeriodSelectedIconColor?: string;
|
|
5315
|
+
relativePeriodOptionsAriaLabel?: string;
|
|
5316
|
+
relativePeriodProgressEmptyLabel?: string;
|
|
5317
|
+
relativePeriodEmptyStateText?: string;
|
|
5318
|
+
sentimentTitle?: string;
|
|
5319
|
+
sentimentSubtitle?: string;
|
|
5320
|
+
sentimentGradientLowColor?: string;
|
|
5321
|
+
sentimentGradientMidColor?: string;
|
|
5322
|
+
sentimentGradientHighColor?: string;
|
|
5323
|
+
sentimentShowBar?: boolean;
|
|
5324
|
+
sentimentAnimatedEmoji?: boolean;
|
|
5325
|
+
sentimentCloseOnSelect?: boolean;
|
|
5326
|
+
sentimentMultiple?: boolean;
|
|
5327
|
+
sentimentShowSelectionPills?: boolean;
|
|
5328
|
+
sentimentIcon?: string;
|
|
5329
|
+
sentimentColorKey?: string;
|
|
5330
|
+
sentimentEmojiKey?: string;
|
|
5331
|
+
sentimentOptionsAriaLabel?: string;
|
|
5332
|
+
sentimentSelectionPillsAriaLabel?: string;
|
|
5333
|
+
sentimentEmptyStateText?: string;
|
|
5334
|
+
colorLabelTitle?: string;
|
|
5335
|
+
colorLabelSubtitle?: string;
|
|
5336
|
+
colorLabelMultiple?: boolean;
|
|
5337
|
+
colorLabelColumns?: number;
|
|
5338
|
+
colorLabelShowSelectedBadges?: boolean;
|
|
5339
|
+
colorLabelCloseOnSelect?: boolean;
|
|
5340
|
+
colorLabelSelectionTitle?: string;
|
|
5341
|
+
colorLabelIcon?: string;
|
|
5342
|
+
colorLabelSelectedIcon?: string;
|
|
5343
|
+
colorLabelSelectedIconColor?: string;
|
|
5344
|
+
colorLabelBadgeRemoveIcon?: string;
|
|
5345
|
+
colorLabelBadgeRemoveIconColor?: string;
|
|
5346
|
+
colorLabelColorKey?: string;
|
|
5347
|
+
colorLabelOptionsAriaLabel?: string;
|
|
5348
|
+
colorLabelSelectionBadgesAriaLabel?: string;
|
|
5349
|
+
colorLabelRemoveSelectionAriaLabel?: string;
|
|
5350
|
+
colorLabelEmptyStateText?: string;
|
|
5351
|
+
startAriaLabel?: string;
|
|
5352
|
+
endAriaLabel?: string;
|
|
5353
|
+
inlineQuickPresetsAriaLabel?: string;
|
|
5354
|
+
inlineQuickPresetsCancelLabel?: string;
|
|
5355
|
+
inlineQuickPresetsCancelAriaLabel?: string;
|
|
5356
|
+
inlineQuickPresetsApplyLabel?: string;
|
|
5357
|
+
inlineQuickPresetsApplyAriaLabel?: string;
|
|
5358
|
+
shortcutsPosition?: string;
|
|
5359
|
+
applyOnShortcutClick?: boolean;
|
|
5360
|
+
i18nShortcuts?: Record<string, string>;
|
|
5361
|
+
startView?: string;
|
|
5362
|
+
startAt?: string | Date;
|
|
5363
|
+
touchUi?: boolean;
|
|
5364
|
+
minDate?: string | Date;
|
|
5365
|
+
maxDate?: string | Date;
|
|
4394
5366
|
[key: string]: any;
|
|
4395
5367
|
}
|
|
4396
5368
|
|
|
@@ -4411,8 +5383,17 @@ declare function deepMerge<T>(left: T, right: Partial<T> | undefined): T;
|
|
|
4411
5383
|
|
|
4412
5384
|
declare function resolveColumnTypeFromFieldDefinition(def: FieldDefinition, fallback?: ColumnDefinition['type']): ColumnDefinition['type'] | undefined;
|
|
4413
5385
|
declare function resolveTextMaskFormatFromFieldDefinition(def: FieldDefinition): string | undefined;
|
|
5386
|
+
declare function resolveSchemaIntegerFormatFromFieldDefinition(def: FieldDefinition): string;
|
|
5387
|
+
interface SchemaSemanticRendererOptions {
|
|
5388
|
+
includeUndefinedBadgeChipText?: boolean;
|
|
5389
|
+
includeUndefinedBadgeChipFields?: boolean;
|
|
5390
|
+
allowTextPresenterAsIconValue?: boolean;
|
|
5391
|
+
}
|
|
5392
|
+
declare function resolveSchemaConditionalRenderers(def: FieldDefinition, options?: SchemaSemanticRendererOptions): ColumnDefinition['conditionalRenderers'] | undefined;
|
|
5393
|
+
declare function buildSchemaSemanticColumnRenderer(def: FieldDefinition, presentationOverride?: FieldPresentationConfig, options?: SchemaSemanticRendererOptions): ColumnDefinition['renderer'] | undefined;
|
|
5394
|
+
declare function normalizePresentationAffix(value: unknown): string | undefined;
|
|
4414
5395
|
|
|
4415
5396
|
type TableConfig = TableConfigV2;
|
|
4416
5397
|
|
|
4417
|
-
export { deepMerge, isPraxisPresentationVisualizationTableSafe, normalizeSchemaFields, resolveColumnTypeFromFieldDefinition, resolveTextMaskFormatFromFieldDefinition };
|
|
4418
|
-
export type { ColumnDefinition, FieldDefinition, TableConfig };
|
|
5398
|
+
export { buildSchemaSemanticColumnRenderer, deepMerge, isPraxisPresentationVisualizationTableSafe, normalizePresentationAffix, normalizeSchemaFields, resolveColumnTypeFromFieldDefinition, resolveSchemaConditionalRenderers, resolveSchemaIntegerFormatFromFieldDefinition, resolveTextMaskFormatFromFieldDefinition };
|
|
5399
|
+
export type { ColumnDefinition, FieldDefinition, SchemaSemanticRendererOptions, TableConfig };
|