@praxisui/core 10.0.0-rc.7 → 10.0.0-rc.71
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 +519 -13
- package/ai/component-registry.json +521 -372
- package/fesm2022/praxisui-core-micro-visualization.mjs +212 -0
- package/fesm2022/praxisui-core-schema.mjs +3545 -602
- package/fesm2022/praxisui-core.mjs +92118 -49298
- package/package.json +5 -1
- package/theme-bridge.css +268 -9
- package/theming/_micro-visualization.scss +103 -0
- package/theming/_theming.scss +382 -102
- package/theming/index.scss +1 -0
- package/theming/workspace-themes.scss +519 -0
- package/types/praxisui-core-micro-visualization.d.ts +70 -0
- package/types/praxisui-core-schema.d.ts +1083 -170
- package/types/praxisui-core.d.ts +19507 -11422
|
@@ -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,47 @@ 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
|
-
scope: ResourceSurfaceScope;
|
|
979
|
-
title: string;
|
|
980
|
-
description?: string | null;
|
|
981
|
-
intent?: string | null;
|
|
982
|
-
operationId: string;
|
|
983
|
-
path: string;
|
|
984
|
-
method: string;
|
|
985
|
-
schemaId: string;
|
|
986
|
-
schemaUrl: string;
|
|
987
|
-
responseCardinality?: ResourceSurfaceResponseCardinality | null;
|
|
988
|
-
availability: ResourceAvailabilityDecision;
|
|
989
|
-
order: number;
|
|
990
|
-
tags: string[];
|
|
991
|
-
relatedResource?: RelatedResourceSurface | null;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
type FieldPresentationTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
995
|
-
type FieldPresentationAppearance = 'plain' | 'soft' | 'outlined' | 'filled';
|
|
996
|
-
type FieldPresenterKind = 'text' | 'badge' | 'chip' | 'status' | 'iconValue' | 'progress' | 'rating' | 'microVisualization';
|
|
997
|
-
interface FieldPresentationInteractions {
|
|
998
|
-
/** Allows readonly surfaces to expose a copy affordance without changing the field value. */
|
|
999
|
-
copy?: boolean;
|
|
1000
|
-
/** Allows readonly surfaces to expose contextual detail expansion. */
|
|
1001
|
-
details?: boolean;
|
|
1002
|
-
/** Allows readonly surfaces to expose inline expansion for long values. */
|
|
1003
|
-
expand?: boolean;
|
|
1004
|
-
/** Allows readonly surfaces to expose a link affordance when the value is navigable. */
|
|
1005
|
-
link?: boolean;
|
|
1006
|
-
}
|
|
1007
|
-
interface FieldPresentationConfig {
|
|
1008
|
-
/** Semantic display strategy for readonly/presentation surfaces. */
|
|
1009
|
-
presenter?: FieldPresenterKind;
|
|
1010
|
-
/** Alias accepted for schema authors that describe the semantic display as a variant. */
|
|
1011
|
-
variant?: FieldPresenterKind;
|
|
1012
|
-
/** Semantic tone mapped by consumers to theme tokens. */
|
|
1013
|
-
tone?: FieldPresentationTone;
|
|
1014
|
-
/** Material Symbols icon name, without arbitrary HTML. */
|
|
1262
|
+
label: string;
|
|
1263
|
+
filter: Record<string, any> | string;
|
|
1015
1264
|
icon?: string;
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1265
|
+
tone?: PraxisQuickFilterTone;
|
|
1266
|
+
isDefault?: boolean;
|
|
1267
|
+
description?: string;
|
|
1268
|
+
order?: number;
|
|
1269
|
+
badge?: string | number;
|
|
1270
|
+
count?: number | null;
|
|
1021
1271
|
tooltip?: string;
|
|
1022
|
-
/** Optional readonly prefix rendered next to the displayed value without changing the raw value. */
|
|
1023
|
-
prefix?: string;
|
|
1024
|
-
/** Optional readonly suffix rendered next to the displayed value without changing the raw value. */
|
|
1025
|
-
suffix?: string;
|
|
1026
|
-
/** Optional icon override when the field resolves to a truthy boolean state. */
|
|
1027
|
-
iconTrue?: string;
|
|
1028
|
-
/** Optional icon override when the field resolves to a falsy boolean state. */
|
|
1029
|
-
iconFalse?: string;
|
|
1030
|
-
/** Optional semantic tone when the field resolves to a truthy boolean state. */
|
|
1031
|
-
toneTrue?: FieldPresentationTone;
|
|
1032
|
-
/** Optional semantic tone when the field resolves to a falsy boolean state. */
|
|
1033
|
-
toneFalse?: FieldPresentationTone;
|
|
1034
|
-
/** Optional display label when the field resolves to a truthy boolean state. */
|
|
1035
|
-
labelTrue?: string;
|
|
1036
|
-
/** Optional display label when the field resolves to a falsy boolean state. */
|
|
1037
|
-
labelFalse?: string;
|
|
1038
|
-
/** Visual density/emphasis strategy mapped by consumers to theme tokens. */
|
|
1039
|
-
appearance?: FieldPresentationAppearance;
|
|
1040
|
-
/** Optional formatter override for the presentation surface only. */
|
|
1041
|
-
valuePresentation?: ValuePresentationConfig;
|
|
1042
|
-
/** Renderer-neutral micro visualization metadata for compact presentation surfaces. */
|
|
1043
|
-
visualization?: PraxisPresentationVisualizationConfig;
|
|
1044
|
-
/** Safe readonly affordances. No commands or mutations are executed from this contract. */
|
|
1045
|
-
interactions?: FieldPresentationInteractions;
|
|
1046
1272
|
}
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1273
|
+
|
|
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 PraxisEpistemicMeta {
|
|
1284
|
+
kind?: PraxisEpistemicKind;
|
|
1285
|
+
availabilityState?: PraxisEpistemicAvailabilityState;
|
|
1286
|
+
statisticallySignificant?: boolean;
|
|
1287
|
+
qValueFdr?: number | null;
|
|
1288
|
+
sampleSize?: number | null;
|
|
1289
|
+
suppressedCellCount?: number | null;
|
|
1290
|
+
modelCardId?: string | null;
|
|
1291
|
+
provenanceHash?: string | null;
|
|
1292
|
+
datasetKey?: string | null;
|
|
1293
|
+
methodologyNote?: string | null;
|
|
1294
|
+
nigriniMad?: number | null;
|
|
1295
|
+
nigriniConformity?: PraxisNigriniConformity | null;
|
|
1054
1296
|
}
|
|
1055
1297
|
|
|
1056
1298
|
interface TableTooltipConfig {
|
|
@@ -1098,6 +1340,8 @@ interface ColumnDefinition {
|
|
|
1098
1340
|
headerCssClass?: string;
|
|
1099
1341
|
/** Formato de exibição dos dados */
|
|
1100
1342
|
format?: any;
|
|
1343
|
+
/** Texto exibido quando o valor resolvido da célula for null, undefined ou string vazia, sem alterar o dado bruto ou a ordenação. */
|
|
1344
|
+
emptyValue?: string;
|
|
1101
1345
|
/** Coluna calculada baseada em expressão */
|
|
1102
1346
|
computed?: {
|
|
1103
1347
|
/** Expressão segura baseada em campos da linha */
|
|
@@ -1147,6 +1391,10 @@ interface ColumnDefinition {
|
|
|
1147
1391
|
prefix?: string;
|
|
1148
1392
|
/** Sufixo visual aplicado ao texto do renderer sem alterar o valor bruto. */
|
|
1149
1393
|
suffix?: string;
|
|
1394
|
+
/** Tooltip opcional associado ao indicador visual */
|
|
1395
|
+
tooltip?: TableTooltipConfig;
|
|
1396
|
+
/** Contrato declarativo de Quick View governado associado ao ícone/valor. */
|
|
1397
|
+
quickView?: ResourceQuickViewBinding;
|
|
1150
1398
|
};
|
|
1151
1399
|
/** Configuração de imagem */
|
|
1152
1400
|
image?: {
|
|
@@ -1180,8 +1428,14 @@ interface ColumnDefinition {
|
|
|
1180
1428
|
variant?: 'filled' | 'outlined' | 'soft' | 'plain';
|
|
1181
1429
|
/** Ícone opcional dentro do badge */
|
|
1182
1430
|
icon?: string;
|
|
1431
|
+
/** Prefixo visual opcional aplicado ao texto materializado */
|
|
1432
|
+
prefix?: string;
|
|
1433
|
+
/** Sufixo visual opcional aplicado ao texto materializado */
|
|
1434
|
+
suffix?: string;
|
|
1183
1435
|
/** Tooltip opcional associado ao indicador visual */
|
|
1184
1436
|
tooltip?: TableTooltipConfig;
|
|
1437
|
+
/** Contrato declarativo de Quick View governado associado ao badge. */
|
|
1438
|
+
quickView?: ResourceQuickViewBinding;
|
|
1185
1439
|
};
|
|
1186
1440
|
/** Link (sanitizado) */
|
|
1187
1441
|
link?: {
|
|
@@ -1191,6 +1445,8 @@ interface ColumnDefinition {
|
|
|
1191
1445
|
hrefField?: string;
|
|
1192
1446
|
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
1193
1447
|
rel?: string;
|
|
1448
|
+
/** Contrato declarativo de Quick View governado associado ao link. */
|
|
1449
|
+
quickView?: ResourceQuickViewBinding;
|
|
1194
1450
|
};
|
|
1195
1451
|
/** Botão (ação por linha) */
|
|
1196
1452
|
button?: {
|
|
@@ -1213,9 +1469,13 @@ interface ColumnDefinition {
|
|
|
1213
1469
|
textField?: string;
|
|
1214
1470
|
color?: string;
|
|
1215
1471
|
icon?: string;
|
|
1472
|
+
prefix?: string;
|
|
1473
|
+
suffix?: string;
|
|
1216
1474
|
variant?: 'filled' | 'outlined' | 'soft' | 'plain';
|
|
1217
1475
|
/** Tooltip opcional associado ao chip */
|
|
1218
1476
|
tooltip?: TableTooltipConfig;
|
|
1477
|
+
/** Contrato declarativo de Quick View governado associado ao chip. */
|
|
1478
|
+
quickView?: ResourceQuickViewBinding;
|
|
1219
1479
|
};
|
|
1220
1480
|
/** Barra de progresso leve */
|
|
1221
1481
|
progress?: {
|
|
@@ -1278,7 +1538,10 @@ interface ColumnDefinition {
|
|
|
1278
1538
|
textField?: string;
|
|
1279
1539
|
valueField?: string;
|
|
1280
1540
|
text?: string;
|
|
1541
|
+
prefix?: string;
|
|
1542
|
+
suffix?: string;
|
|
1281
1543
|
emphasis?: 'strong' | 'subtle';
|
|
1544
|
+
quickView?: ResourceQuickViewBinding;
|
|
1282
1545
|
} | {
|
|
1283
1546
|
type: 'icon';
|
|
1284
1547
|
icon?: {
|
|
@@ -1291,6 +1554,7 @@ interface ColumnDefinition {
|
|
|
1291
1554
|
ariaLabel?: string;
|
|
1292
1555
|
prefix?: string;
|
|
1293
1556
|
suffix?: string;
|
|
1557
|
+
quickView?: ResourceQuickViewBinding;
|
|
1294
1558
|
};
|
|
1295
1559
|
} | {
|
|
1296
1560
|
type: 'image';
|
|
@@ -1313,7 +1577,10 @@ interface ColumnDefinition {
|
|
|
1313
1577
|
color?: string;
|
|
1314
1578
|
variant?: 'filled' | 'outlined' | 'soft' | 'plain';
|
|
1315
1579
|
icon?: string;
|
|
1580
|
+
prefix?: string;
|
|
1581
|
+
suffix?: string;
|
|
1316
1582
|
tooltip?: TableTooltipConfig;
|
|
1583
|
+
quickView?: ResourceQuickViewBinding;
|
|
1317
1584
|
};
|
|
1318
1585
|
} | {
|
|
1319
1586
|
type: 'link';
|
|
@@ -1324,6 +1591,7 @@ interface ColumnDefinition {
|
|
|
1324
1591
|
hrefField?: string;
|
|
1325
1592
|
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
1326
1593
|
rel?: string;
|
|
1594
|
+
quickView?: ResourceQuickViewBinding;
|
|
1327
1595
|
};
|
|
1328
1596
|
} | {
|
|
1329
1597
|
type: 'button';
|
|
@@ -1347,8 +1615,11 @@ interface ColumnDefinition {
|
|
|
1347
1615
|
textField?: string;
|
|
1348
1616
|
color?: string;
|
|
1349
1617
|
icon?: string;
|
|
1618
|
+
prefix?: string;
|
|
1619
|
+
suffix?: string;
|
|
1350
1620
|
variant?: 'filled' | 'outlined' | 'soft' | 'plain';
|
|
1351
1621
|
tooltip?: TableTooltipConfig;
|
|
1622
|
+
quickView?: ResourceQuickViewBinding;
|
|
1352
1623
|
};
|
|
1353
1624
|
} | {
|
|
1354
1625
|
type: 'progress';
|
|
@@ -1411,7 +1682,14 @@ interface ColumnDefinition {
|
|
|
1411
1682
|
};
|
|
1412
1683
|
}>;
|
|
1413
1684
|
layout?: {
|
|
1414
|
-
|
|
1685
|
+
/**
|
|
1686
|
+
* `row`: todos os itens na mesma linha.
|
|
1687
|
+
* `column`: todos os itens empilhados.
|
|
1688
|
+
* `media`: padrão "media object" — o primeiro item (avatar, imagem ou ícone)
|
|
1689
|
+
* fica ancorado à esquerda e os demais itens empilham-se em linhas à direita
|
|
1690
|
+
* (ex.: avatar + nome em destaque + código/e-mail sutil).
|
|
1691
|
+
*/
|
|
1692
|
+
direction?: 'row' | 'column' | 'media';
|
|
1415
1693
|
gap?: number;
|
|
1416
1694
|
align?: 'start' | 'center' | 'end';
|
|
1417
1695
|
wrap?: boolean;
|
|
@@ -1419,6 +1697,12 @@ interface ColumnDefinition {
|
|
|
1419
1697
|
};
|
|
1420
1698
|
};
|
|
1421
1699
|
};
|
|
1700
|
+
/**
|
|
1701
|
+
* Contrato declarativo e serializável de Quick View governado para a célula/coluna.
|
|
1702
|
+
* Pode ser especializado individualmente em `renderer.link.quickView`, `renderer.badge.quickView`,
|
|
1703
|
+
* `renderer.chip.quickView`, `renderer.icon.quickView` ou em itens de `renderer.compose.items`.
|
|
1704
|
+
*/
|
|
1705
|
+
quickView?: ResourceQuickViewBinding;
|
|
1422
1706
|
/** Overrides condicionais do renderer por linha (first‑match wins) */
|
|
1423
1707
|
conditionalRenderers?: Array<{
|
|
1424
1708
|
/** Identificador estável usado para reconciliação e deduplicação de regras authoradas. */
|
|
@@ -1514,6 +1798,8 @@ interface ConfigMetadata {
|
|
|
1514
1798
|
serverHash?: string;
|
|
1515
1799
|
/** Campo identificador preferido pelo usuário para o recurso (ex.: 'id', 'codigo') */
|
|
1516
1800
|
idField?: string;
|
|
1801
|
+
/** Caminho canônico do recurso associado à configuração persistida (ex.: 'workforce/employees') */
|
|
1802
|
+
resourcePath?: string;
|
|
1517
1803
|
/** Contexto de schema associado (útil para auditoria/telemetria) */
|
|
1518
1804
|
schemaContext?: {
|
|
1519
1805
|
path: string;
|
|
@@ -1749,8 +2035,8 @@ interface PaginationConfig {
|
|
|
1749
2035
|
style: 'default' | 'simple' | 'advanced' | 'compact';
|
|
1750
2036
|
/** Total de itens (para paginação server-side) */
|
|
1751
2037
|
totalItems?: number;
|
|
1752
|
-
/**
|
|
1753
|
-
strategy
|
|
2038
|
+
/** Se omitida, o runtime usa server para recurso remoto e client para dados locais. */
|
|
2039
|
+
strategy?: 'client' | 'server';
|
|
1754
2040
|
/** Configurações avançadas */
|
|
1755
2041
|
advanced?: {
|
|
1756
2042
|
/** Jump to page input */
|
|
@@ -1774,8 +2060,8 @@ interface SortingConfig {
|
|
|
1774
2060
|
}>;
|
|
1775
2061
|
/** Permitir ordenação múltipla */
|
|
1776
2062
|
multiSort: boolean;
|
|
1777
|
-
/**
|
|
1778
|
-
strategy
|
|
2063
|
+
/** Se omitida, o runtime usa server para recurso remoto e client para dados locais. */
|
|
2064
|
+
strategy?: 'client' | 'server';
|
|
1779
2065
|
/** Mostrar indicadores visuais de ordenação */
|
|
1780
2066
|
showSortIndicators: boolean;
|
|
1781
2067
|
/** Posição dos indicadores */
|
|
@@ -1834,18 +2120,20 @@ interface FilterPresentationConfig {
|
|
|
1834
2120
|
}
|
|
1835
2121
|
interface FilteringConfig {
|
|
1836
2122
|
/** Habilitar filtragem */
|
|
1837
|
-
enabled
|
|
2123
|
+
enabled?: boolean;
|
|
1838
2124
|
/** Filtros por coluna */
|
|
1839
2125
|
columnFilters?: {
|
|
1840
|
-
enabled
|
|
1841
|
-
/** Tipo de filtro padrão */
|
|
1842
|
-
defaultType
|
|
1843
|
-
/** Posição dos filtros */
|
|
1844
|
-
position
|
|
2126
|
+
enabled?: boolean;
|
|
2127
|
+
/** Tipo de filtro padrão (opcional, padrão 'text') */
|
|
2128
|
+
defaultType?: 'text' | 'select' | 'date' | 'number' | 'boolean';
|
|
2129
|
+
/** Posição dos filtros (opcional, padrão 'header') */
|
|
2130
|
+
position?: 'header' | 'subheader' | 'sidebar';
|
|
1845
2131
|
};
|
|
1846
2132
|
/** Filtros avançados */
|
|
1847
2133
|
advancedFilters?: {
|
|
1848
|
-
enabled
|
|
2134
|
+
enabled?: boolean;
|
|
2135
|
+
/** URL explícita para o schema do filtro (se omitida, inferida pelo host/CRUD a partir do resource.path) */
|
|
2136
|
+
schemaUrl?: string;
|
|
1849
2137
|
/** Interface de query builder */
|
|
1850
2138
|
queryBuilder?: boolean;
|
|
1851
2139
|
/** Salvar filtros como presets */
|
|
@@ -1853,6 +2141,22 @@ interface FilteringConfig {
|
|
|
1853
2141
|
/** Configurações específicas do componente praxis-filter */
|
|
1854
2142
|
settings?: {
|
|
1855
2143
|
presentation?: FilterPresentationConfig;
|
|
2144
|
+
/** Renderização inline de campos do filtro */
|
|
2145
|
+
inline?: boolean;
|
|
2146
|
+
/** Usar variante de seleção inline pesquisável */
|
|
2147
|
+
useInlineSearchableSelectVariant?: boolean;
|
|
2148
|
+
/** Usar variante inline para campos de slider ou intervalo numérico */
|
|
2149
|
+
useInlineRangeVariant?: boolean;
|
|
2150
|
+
/** Usar variante inline para campos de data */
|
|
2151
|
+
useInlineDateVariant?: boolean;
|
|
2152
|
+
/** Usar variante inline para campos de intervalo de datas (dateRange) */
|
|
2153
|
+
useInlineDateRangeVariant?: boolean;
|
|
2154
|
+
/** Usar variante inline para campos de horário */
|
|
2155
|
+
useInlineTimeVariant?: boolean;
|
|
2156
|
+
/** Usar variante inline para campos de intervalo de horários */
|
|
2157
|
+
useInlineTimeRangeVariant?: boolean;
|
|
2158
|
+
/** Usar variante inline para seleção em árvore (treeSelect) */
|
|
2159
|
+
useInlineTreeSelectVariant?: boolean;
|
|
1856
2160
|
/** Campos sempre visíveis */
|
|
1857
2161
|
alwaysVisibleFields?: string[];
|
|
1858
2162
|
/** Overrides de metadata por campo sempre visível (merge sobre o DTO de filtro) */
|
|
@@ -1861,6 +2165,10 @@ interface FilteringConfig {
|
|
|
1861
2165
|
selectedFieldIds?: string[];
|
|
1862
2166
|
/** Exibir opções avançadas por padrão */
|
|
1863
2167
|
showAdvanced?: boolean;
|
|
2168
|
+
/** Exibir botão "Gerenciar campos" na barra do filtro (padrão: true) */
|
|
2169
|
+
showAddButton?: boolean;
|
|
2170
|
+
/** Exibir botão "Configurações do filtro" na barra quando customização estiver disponível (padrão: true) */
|
|
2171
|
+
showFilterSettings?: boolean;
|
|
1864
2172
|
/** Permitir salvar tags/atalhos de filtro */
|
|
1865
2173
|
allowSaveTags?: boolean;
|
|
1866
2174
|
/** Atalhos governados, somente leitura, aplicados como patch do DTO de filtro */
|
|
@@ -1909,10 +2217,10 @@ interface FilteringConfig {
|
|
|
1909
2217
|
enablePerformanceMetrics?: boolean;
|
|
1910
2218
|
};
|
|
1911
2219
|
};
|
|
1912
|
-
/** Estratégia de filtragem */
|
|
1913
|
-
strategy
|
|
1914
|
-
/** Debounce para filtros em tempo real (ms) */
|
|
1915
|
-
debounceTime
|
|
2220
|
+
/** Estratégia de filtragem (opcional, padrão 'server' ou 'client' pelo modo) */
|
|
2221
|
+
strategy?: 'client' | 'server';
|
|
2222
|
+
/** Debounce para filtros em tempo real (ms, opcional) */
|
|
2223
|
+
debounceTime?: number;
|
|
1916
2224
|
}
|
|
1917
2225
|
interface SelectionConfig {
|
|
1918
2226
|
/** Habilitar seleção de linhas */
|
|
@@ -1921,6 +2229,8 @@ interface SelectionConfig {
|
|
|
1921
2229
|
type: 'single' | 'multiple';
|
|
1922
2230
|
/** Modo de seleção */
|
|
1923
2231
|
mode: 'checkbox' | 'row' | 'both';
|
|
2232
|
+
/** Permitir desselecionar a linha ao clicar ou ativar novamente em seleção única. */
|
|
2233
|
+
allowDeselect?: boolean;
|
|
1924
2234
|
/** Permitir selecionar todas as linhas */
|
|
1925
2235
|
allowSelectAll: boolean;
|
|
1926
2236
|
/** Posição do checkbox de seleção */
|
|
@@ -2219,10 +2529,10 @@ interface ElevationConfig {
|
|
|
2219
2529
|
hoverElevation?: number;
|
|
2220
2530
|
}
|
|
2221
2531
|
interface ToolbarConfig {
|
|
2222
|
-
/** Visibilidade da toolbar */
|
|
2223
|
-
visible
|
|
2224
|
-
/** Posição da toolbar */
|
|
2225
|
-
position
|
|
2532
|
+
/** Visibilidade da toolbar (opcional, padrão true) */
|
|
2533
|
+
visible?: boolean;
|
|
2534
|
+
/** Posição da toolbar (opcional, padrão 'top') */
|
|
2535
|
+
position?: 'top' | 'bottom' | 'both';
|
|
2226
2536
|
/** Posição das ações da toolbar */
|
|
2227
2537
|
actionsPosition?: 'top' | 'bottom' | 'both';
|
|
2228
2538
|
/** Cor de fundo da barra de ações */
|
|
@@ -2247,6 +2557,12 @@ interface ToolbarConfig {
|
|
|
2247
2557
|
textAlign?: 'start' | 'center' | 'end';
|
|
2248
2558
|
/** Ações da toolbar */
|
|
2249
2559
|
actions?: ToolbarAction[];
|
|
2560
|
+
/** Configuração de busca rápida na toolbar */
|
|
2561
|
+
search?: {
|
|
2562
|
+
enabled?: boolean;
|
|
2563
|
+
placeholder?: string;
|
|
2564
|
+
debounceTime?: number;
|
|
2565
|
+
};
|
|
2250
2566
|
/** Configurações de filtros na toolbar */
|
|
2251
2567
|
filters?: ToolbarFilterConfig;
|
|
2252
2568
|
/** Menu de configurações */
|
|
@@ -2330,6 +2646,8 @@ interface ToolbarAction {
|
|
|
2330
2646
|
effects?: PraxisRuntimeGlobalActionEffect[];
|
|
2331
2647
|
/** Tooltip */
|
|
2332
2648
|
tooltip?: string;
|
|
2649
|
+
/** Descrição semântica da ação para descoberta, acessibilidade e operações de governança */
|
|
2650
|
+
description?: string;
|
|
2333
2651
|
/** Tecla de atalho */
|
|
2334
2652
|
shortcut?: string;
|
|
2335
2653
|
/** Escopo do atalho: somente toolbar ativa ou global */
|
|
@@ -2349,12 +2667,7 @@ interface ToolbarFilterConfig {
|
|
|
2349
2667
|
/** Habilitar filtros rápidos na toolbar */
|
|
2350
2668
|
enabled: boolean;
|
|
2351
2669
|
/** Filtros rápidos disponíveis */
|
|
2352
|
-
quickFilters?:
|
|
2353
|
-
id: string;
|
|
2354
|
-
label: string;
|
|
2355
|
-
filter: any;
|
|
2356
|
-
icon?: string;
|
|
2357
|
-
}>;
|
|
2670
|
+
quickFilters?: PraxisResourceQuickFilter[];
|
|
2358
2671
|
/** Mostrar botões de filtros rápidos na toolbar (default: true) */
|
|
2359
2672
|
showQuickFilters?: boolean;
|
|
2360
2673
|
/** Mostrar botão de filtros avançados */
|
|
@@ -2473,6 +2786,8 @@ interface RowAction {
|
|
|
2473
2786
|
effects?: PraxisRuntimeGlobalActionEffect[];
|
|
2474
2787
|
/** Surface de registro canonica aberta por esta acao de linha */
|
|
2475
2788
|
recordSurface?: ResourceSurfaceCatalogItem;
|
|
2789
|
+
/** Contrato declarativo de Quick View governado aberto ancorado ao gatilho desta ação de linha */
|
|
2790
|
+
quickView?: ResourceQuickViewBinding;
|
|
2476
2791
|
/** Tooltip */
|
|
2477
2792
|
tooltip?: string;
|
|
2478
2793
|
/** Requer confirmação */
|
|
@@ -2803,6 +3118,11 @@ interface TableDrawerConfig {
|
|
|
2803
3118
|
tabs?: PraxisAnalyticalDrawerTab[];
|
|
2804
3119
|
/** Orquestração declarativa de sub-recursos e relações vinculadas (Issue #32) */
|
|
2805
3120
|
relations?: PraxisAnalyticalDrawerRelation[];
|
|
3121
|
+
/**
|
|
3122
|
+
* Quando verdadeiro em uma configuração local/DI, hidrata automaticamente `x-ui.calculationMemory`
|
|
3123
|
+
* publicado pelo DTO backend (`@CalculationMemory` — PLAT-EVO-20) sem duplicar trilhas no frontend.
|
|
3124
|
+
*/
|
|
3125
|
+
hydrateRemoteCalculationMemory?: boolean;
|
|
2806
3126
|
}
|
|
2807
3127
|
/**
|
|
2808
3128
|
* Esquema estrutural canônico para gavetas analíticas e dossiês multi-aba (`kind: 'praxis.analytical-drawer.schema'`).
|
|
@@ -2814,8 +3134,210 @@ interface PraxisAnalyticalDrawerSchema {
|
|
|
2814
3134
|
subtitleExpr?: string;
|
|
2815
3135
|
icon?: string;
|
|
2816
3136
|
classificationPill?: string;
|
|
2817
|
-
tabs
|
|
3137
|
+
tabs?: PraxisAnalyticalDrawerTab[];
|
|
2818
3138
|
relations?: PraxisAnalyticalDrawerRelation[];
|
|
3139
|
+
/**
|
|
3140
|
+
* Seção nativa de Memória de Cálculo Explicável (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado + Fundamentação Legal`).
|
|
3141
|
+
* Permite que hosts de Folha, Tributos ou Faturamento exibam explicabilidade algorítmica declarativamente via JSON/schema.
|
|
3142
|
+
*/
|
|
3143
|
+
calculationMemory?: PraxisAnalyticalDrawerCalculationMemoryContent | PraxisAnalyticalDrawerCalculationTrail[];
|
|
3144
|
+
/**
|
|
3145
|
+
* Hidrata automaticamente `x-ui.calculationMemory` publicado pelo `ResponseDTO` backend (`@CalculationMemory` — PLAT-EVO-20)
|
|
3146
|
+
* sobre o dossiê local registrado no `AnalyticalDrawerRegistryService`.
|
|
3147
|
+
*/
|
|
3148
|
+
hydrateRemoteCalculationMemory?: boolean;
|
|
3149
|
+
}
|
|
3150
|
+
/**
|
|
3151
|
+
* Papel semântico de uma etapa dentro de uma trilha de memória de cálculo.
|
|
3152
|
+
*/
|
|
3153
|
+
type PraxisAnalyticalDrawerCalculationStepRole = 'base' | 'factor' | 'cap' | 'target' | 'deduction' | 'addition' | 'subtotal' | 'result' | 'custom';
|
|
3154
|
+
/**
|
|
3155
|
+
* Etapa individual na sequência algorítmica de memória de cálculo
|
|
3156
|
+
* (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado`).
|
|
3157
|
+
*/
|
|
3158
|
+
interface PraxisAnalyticalDrawerCalculationStep {
|
|
3159
|
+
/** Papel semântico da etapa (ex.: 'base', 'factor', 'cap', 'subtotal', 'result'). */
|
|
3160
|
+
role?: PraxisAnalyticalDrawerCalculationStepRole;
|
|
3161
|
+
/** Discriminador canônico de etapa emitido por `@CalculationStep` (`x-ui.calculationMemory`). */
|
|
3162
|
+
kind?: PraxisAnalyticalDrawerCalculationStepRole;
|
|
3163
|
+
/** Rótulo exibido na etapa (ex.: 'Base de Cálculo', 'Fator / Alíquota', 'Trava / Teto', 'Resultado'). */
|
|
3164
|
+
label: string;
|
|
3165
|
+
/** Valor estático opcional quando não derivado por expressão. */
|
|
3166
|
+
value?: unknown;
|
|
3167
|
+
/** Expressão avaliada contra `{ row, relations, env }` via `SafeExpressionEvaluator`. */
|
|
3168
|
+
valueExpr?: string;
|
|
3169
|
+
/** Alias direto de expressão emitido por `@CalculationStep`. */
|
|
3170
|
+
expr?: string;
|
|
3171
|
+
/** Operador matemático ou lógico exibido antes da etapa (ex.: '×', '÷', '+', '-', '≤', '='). */
|
|
3172
|
+
operator?: string;
|
|
3173
|
+
/** Formato de apresentação ('currency:BRL', 'percent', 'number', 'integer', 'text'). */
|
|
3174
|
+
format?: string;
|
|
3175
|
+
/** Nota ou fórmula curta auxiliar sob o valor da etapa. */
|
|
3176
|
+
hint?: string;
|
|
3177
|
+
/** Expressão opcional para nota/fórmula curta auxiliar. */
|
|
3178
|
+
hintExpr?: string;
|
|
3179
|
+
/** Referência normativa específica da etapa (`@CalculationStep.legalBasis`). */
|
|
3180
|
+
legalBasis?: string;
|
|
3181
|
+
/** Ícone Material opcional da etapa. */
|
|
3182
|
+
icon?: string;
|
|
3183
|
+
/** Tom visual da etapa (ex.: 'neutral', 'info', 'warning', 'success', 'danger', 'primary'). */
|
|
3184
|
+
tone?: string;
|
|
3185
|
+
}
|
|
3186
|
+
/**
|
|
3187
|
+
* Trilha estruturada de memória de cálculo explicável
|
|
3188
|
+
* (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado + Fundamentação Legal`).
|
|
3189
|
+
*/
|
|
3190
|
+
interface PraxisAnalyticalDrawerCalculationTrail {
|
|
3191
|
+
/** Identificador único da trilha de cálculo (ex.: 'terco-ferias', 'abate-teto', 'irrf'). */
|
|
3192
|
+
id?: string;
|
|
3193
|
+
/** Título da memória de cálculo. */
|
|
3194
|
+
title?: string;
|
|
3195
|
+
/** Expressão opcional para título dinâmico da trilha. */
|
|
3196
|
+
titleExpr?: string;
|
|
3197
|
+
/** Subtítulo ou rubrica/competência. */
|
|
3198
|
+
subtitle?: string;
|
|
3199
|
+
/** Expressão opcional para subtítulo dinâmico. */
|
|
3200
|
+
subtitleExpr?: string;
|
|
3201
|
+
/** Ícone Material da trilha (padrão: 'calculate'). */
|
|
3202
|
+
icon?: string;
|
|
3203
|
+
/** Código da regra determinística ou rubrica que originou o cálculo. */
|
|
3204
|
+
ruleCode?: string;
|
|
3205
|
+
/** Expressão opcional para o código da regra/rubrica. */
|
|
3206
|
+
ruleCodeExpr?: string;
|
|
3207
|
+
/** Expressão algébrica legível da fórmula (ex.: 'min(Base × Alíquota, Teto)'). */
|
|
3208
|
+
formula?: string;
|
|
3209
|
+
/** Expressão opcional para fórmula algébrica dinâmica. */
|
|
3210
|
+
formulaExpr?: string;
|
|
3211
|
+
baseLabel?: string;
|
|
3212
|
+
baseValue?: unknown;
|
|
3213
|
+
baseExpr?: string;
|
|
3214
|
+
baseFormat?: string;
|
|
3215
|
+
baseHint?: string;
|
|
3216
|
+
baseHintExpr?: string;
|
|
3217
|
+
additionLabel?: string;
|
|
3218
|
+
additionValue?: unknown;
|
|
3219
|
+
additionExpr?: string;
|
|
3220
|
+
additionFormat?: string;
|
|
3221
|
+
additionHint?: string;
|
|
3222
|
+
additionHintExpr?: string;
|
|
3223
|
+
deductionLabel?: string;
|
|
3224
|
+
deductionValue?: unknown;
|
|
3225
|
+
deductionExpr?: string;
|
|
3226
|
+
deductionFormat?: string;
|
|
3227
|
+
deductionHint?: string;
|
|
3228
|
+
deductionHintExpr?: string;
|
|
3229
|
+
factorLabel?: string;
|
|
3230
|
+
factorValue?: unknown;
|
|
3231
|
+
factorExpr?: string;
|
|
3232
|
+
factorFormat?: string;
|
|
3233
|
+
factorHint?: string;
|
|
3234
|
+
factorHintExpr?: string;
|
|
3235
|
+
capLabel?: string;
|
|
3236
|
+
capOperator?: string;
|
|
3237
|
+
capValue?: unknown;
|
|
3238
|
+
capExpr?: string;
|
|
3239
|
+
capFormat?: string;
|
|
3240
|
+
capHint?: string;
|
|
3241
|
+
capHintExpr?: string;
|
|
3242
|
+
targetLabel?: string;
|
|
3243
|
+
targetValue?: unknown;
|
|
3244
|
+
targetExpr?: string;
|
|
3245
|
+
targetFormat?: string;
|
|
3246
|
+
targetHint?: string;
|
|
3247
|
+
targetHintExpr?: string;
|
|
3248
|
+
resultLabel?: string;
|
|
3249
|
+
resultValue?: unknown;
|
|
3250
|
+
resultExpr?: string;
|
|
3251
|
+
resultFormat?: string;
|
|
3252
|
+
resultHint?: string;
|
|
3253
|
+
resultHintExpr?: string;
|
|
3254
|
+
resultTone?: string;
|
|
3255
|
+
/**
|
|
3256
|
+
* Sequência explícita de etapas (`Base -> Fator/Alíquota -> Trava/Teto -> Resultado`).
|
|
3257
|
+
* Quando omitida, o componente sintetiza automaticamente os estágios configurados em
|
|
3258
|
+
* `base*`, `addition*`, `deduction*`, `factor*`, `cap*` e `result*`.
|
|
3259
|
+
*/
|
|
3260
|
+
steps?: PraxisAnalyticalDrawerCalculationStep[];
|
|
3261
|
+
/** Fundamentação legal ou normativa (ex.: 'CF/88, art. 7º, XVII; Lei 8.112/1990, art. 76'). */
|
|
3262
|
+
legalBasis?: string;
|
|
3263
|
+
/** Expressão opcional para fundamentação legal dinâmica a partir da linha ou relação. */
|
|
3264
|
+
legalBasisExpr?: string;
|
|
3265
|
+
/** Finalidade legal ou nota de conformidade normativa. */
|
|
3266
|
+
legalPurpose?: string;
|
|
3267
|
+
/** Expressão opcional para finalidade legal dinâmica. */
|
|
3268
|
+
legalPurposeExpr?: string;
|
|
3269
|
+
/** Condição opcional (`SafeExpressionEvaluator`) para exibir a trilha apenas quando aplicável. */
|
|
3270
|
+
visibleWhen?: string;
|
|
3271
|
+
/** Metadados epistêmicos estáticos da trilha de cálculo (`x-ui.calculationMemory` / `PLAT-EVO-21`). */
|
|
3272
|
+
epistemicMeta?: PraxisEpistemicMeta;
|
|
3273
|
+
/** Expressão (`SafeExpressionEvaluator`) que resolve o envelope epistêmico completo a partir do registro. */
|
|
3274
|
+
epistemicMetaExpr?: string;
|
|
3275
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.kind`. */
|
|
3276
|
+
epistemicKindExpr?: string;
|
|
3277
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.availabilityState`. */
|
|
3278
|
+
epistemicAvailabilityStateExpr?: string;
|
|
3279
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.statisticallySignificant`. */
|
|
3280
|
+
statisticallySignificantExpr?: string;
|
|
3281
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.qValueFdr`. */
|
|
3282
|
+
qValueFdrExpr?: string;
|
|
3283
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.sampleSize`. */
|
|
3284
|
+
sampleSizeExpr?: string;
|
|
3285
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.suppressedCellCount`. */
|
|
3286
|
+
suppressedCellCountExpr?: string;
|
|
3287
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.provenanceHash`. */
|
|
3288
|
+
provenanceHashExpr?: string;
|
|
3289
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.modelCardId`. */
|
|
3290
|
+
modelCardIdExpr?: string;
|
|
3291
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.datasetKey`. */
|
|
3292
|
+
datasetKeyExpr?: string;
|
|
3293
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.methodologyNote`. */
|
|
3294
|
+
methodologyNoteExpr?: string;
|
|
3295
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.nigriniMad`. */
|
|
3296
|
+
nigriniMadExpr?: string;
|
|
3297
|
+
/** Expressão (`SafeExpressionEvaluator`) para `epistemicMeta.nigriniConformity`. */
|
|
3298
|
+
nigriniConformityExpr?: string;
|
|
3299
|
+
}
|
|
3300
|
+
/**
|
|
3301
|
+
* Bloco declarativo de Memória de Cálculo Explicável para abas ou seções do `<praxis-analytical-drawer>`.
|
|
3302
|
+
*/
|
|
3303
|
+
interface PraxisAnalyticalDrawerCalculationMemoryContent {
|
|
3304
|
+
type: 'calculationMemory';
|
|
3305
|
+
/** Título opcional da seção de memória de cálculo. */
|
|
3306
|
+
title?: string;
|
|
3307
|
+
/** Expressão opcional para título dinâmico da seção. */
|
|
3308
|
+
titleExpr?: string;
|
|
3309
|
+
/** Subtítulo ou resumo explicativo da seção. */
|
|
3310
|
+
subtitle?: string;
|
|
3311
|
+
/** Expressão opcional para subtítulo dinâmico da seção. */
|
|
3312
|
+
subtitleExpr?: string;
|
|
3313
|
+
/** Ícone opcional da seção (padrão: 'calculate'). */
|
|
3314
|
+
icon?: string;
|
|
3315
|
+
/** Lista declarativa de trilhas de memória de cálculo. */
|
|
3316
|
+
trails?: PraxisAnalyticalDrawerCalculationTrail[];
|
|
3317
|
+
/** Expressão opcional (`SafeExpressionEvaluator`) que resolve trilhas dinâmicas vindas do backend. */
|
|
3318
|
+
trailsExpr?: string;
|
|
3319
|
+
/** Fundamentação legal geral da seção quando compartilhada pelas trilhas. */
|
|
3320
|
+
legalBasis?: string;
|
|
3321
|
+
/** Expressão opcional para fundamentação legal geral da seção. */
|
|
3322
|
+
legalBasisExpr?: string;
|
|
3323
|
+
/** Mensagem exibida quando nenhuma trilha for aplicável para o registro atual. */
|
|
3324
|
+
emptyText?: string;
|
|
3325
|
+
}
|
|
3326
|
+
/**
|
|
3327
|
+
* Item individual de propriedade dentro de um grid analítico em uma aba (Property Grid).
|
|
3328
|
+
*/
|
|
3329
|
+
interface PraxisAnalyticalDrawerPropertyItem {
|
|
3330
|
+
label?: string;
|
|
3331
|
+
field?: string;
|
|
3332
|
+
icon?: string;
|
|
3333
|
+
valueExpr?: string;
|
|
3334
|
+
value?: unknown;
|
|
3335
|
+
format?: string;
|
|
3336
|
+
spanFull?: boolean;
|
|
3337
|
+
toneExpr?: string;
|
|
3338
|
+
pipe?: string;
|
|
3339
|
+
fallbackText?: string;
|
|
3340
|
+
[key: string]: unknown;
|
|
2819
3341
|
}
|
|
2820
3342
|
/**
|
|
2821
3343
|
* Definição de aba temática dentro de uma gaveta analítica.
|
|
@@ -2826,7 +3348,9 @@ interface PraxisAnalyticalDrawerTab {
|
|
|
2826
3348
|
icon?: string;
|
|
2827
3349
|
badge?: string;
|
|
2828
3350
|
count?: number;
|
|
2829
|
-
content?: TableDetailSchemaNode | TableDetailInlineSchemaDocument | RichContentDocument | Record<string, unknown
|
|
3351
|
+
content?: TableDetailSchemaNode | TableDetailInlineSchemaDocument | RichContentDocument | PraxisAnalyticalDrawerCalculationMemoryContent | Record<string, unknown> | PraxisAnalyticalDrawerPropertyItem[] | Array<Record<string, unknown>>;
|
|
3352
|
+
/** Seção opcional de memória de cálculo exibida dentro desta aba analítica. */
|
|
3353
|
+
calculationMemory?: PraxisAnalyticalDrawerCalculationMemoryContent | PraxisAnalyticalDrawerCalculationTrail[];
|
|
2830
3354
|
}
|
|
2831
3355
|
/**
|
|
2832
3356
|
* Contrato declarativo de sub-recurso / relação vinculada para injeção automática no contexto reativo (`context.relations`).
|
|
@@ -2887,6 +3411,8 @@ interface PraxisKpiBandCard {
|
|
|
2887
3411
|
className?: string;
|
|
2888
3412
|
/** Tooltip explicativo ao pairar o mouse */
|
|
2889
3413
|
tooltip?: string;
|
|
3414
|
+
/** Micro-visualização declarativa opcional exibida no corpo do card KPI */
|
|
3415
|
+
visualization?: PraxisPresentationVisualizationConfig;
|
|
2890
3416
|
}
|
|
2891
3417
|
interface PraxisKpiBandConfig {
|
|
2892
3418
|
/** Se a faixa de KPIs está habilitada (padrão: true quando configurada) */
|
|
@@ -3690,6 +4216,13 @@ declare const FieldControlType: {
|
|
|
3690
4216
|
};
|
|
3691
4217
|
type FieldControlType = (typeof FieldControlType)[keyof typeof FieldControlType];
|
|
3692
4218
|
|
|
4219
|
+
/** Scalar JSON Schema items projected by the operation schema; object collections use FieldArrayConfig. */
|
|
4220
|
+
interface FieldScalarItemsSchema {
|
|
4221
|
+
type: 'string' | 'integer' | 'number' | 'boolean';
|
|
4222
|
+
format?: string;
|
|
4223
|
+
enum?: readonly (string | number | boolean | null)[];
|
|
4224
|
+
}
|
|
4225
|
+
|
|
3693
4226
|
type FormFieldHelpDisplay = 'auto' | 'inline' | 'popover' | 'hidden';
|
|
3694
4227
|
|
|
3695
4228
|
/**
|
|
@@ -3906,8 +4439,27 @@ interface FieldOption {
|
|
|
3906
4439
|
icon?: string;
|
|
3907
4440
|
/** Tooltip text for option */
|
|
3908
4441
|
tooltip?: string;
|
|
3909
|
-
/**
|
|
4442
|
+
/** Optional semantic visual tone mapped by UI consumers. */
|
|
4443
|
+
tone?: string;
|
|
4444
|
+
/**
|
|
4445
|
+
* Secondary business/domain description rendered on a dedicated line in rich selectors.
|
|
4446
|
+
* Do not concatenate `code` or `badge` here when those properties are populated separately.
|
|
4447
|
+
*/
|
|
3910
4448
|
description?: string;
|
|
4449
|
+
/**
|
|
4450
|
+
* Optional technical identifier, field key, or endpoint path rendered in a monospace slot
|
|
4451
|
+
* (both in the dropdown option and in the closed select trigger).
|
|
4452
|
+
*/
|
|
4453
|
+
code?: string;
|
|
4454
|
+
/**
|
|
4455
|
+
* Optional domain group, data type, or governance badge (e.g. `"RH · Somente leitura"`, `"integer"`)
|
|
4456
|
+
* rendered as a pill next to the option label.
|
|
4457
|
+
*/
|
|
4458
|
+
badge?: string;
|
|
4459
|
+
/**
|
|
4460
|
+
* Optional additional keywords indexed for accent-insensitive client-side search.
|
|
4461
|
+
*/
|
|
4462
|
+
searchTerms?: string[];
|
|
3911
4463
|
}
|
|
3912
4464
|
/**
|
|
3913
4465
|
* Angular Material specific styling and behavior options.
|
|
@@ -4006,6 +4558,10 @@ type FieldSubmitPolicy = 'include' | 'omit' | 'includeWhenDirty';
|
|
|
4006
4558
|
interface FieldMetadata extends ComponentMetadata {
|
|
4007
4559
|
/** Unique field identifier (required) */
|
|
4008
4560
|
name: string;
|
|
4561
|
+
/** Backend-authored custom-field identity; `name` retains the full value path. */
|
|
4562
|
+
customField?: boolean;
|
|
4563
|
+
customFieldKey?: string;
|
|
4564
|
+
customFieldScope?: string;
|
|
4009
4565
|
/** Display label for the field */
|
|
4010
4566
|
label: string;
|
|
4011
4567
|
/**
|
|
@@ -4027,6 +4583,8 @@ interface FieldMetadata extends ComponentMetadata {
|
|
|
4027
4583
|
dataType?: FieldDataType;
|
|
4028
4584
|
/** Canonical metadata for editable collection fields (`controlType: "array"`). */
|
|
4029
4585
|
array?: FieldArrayConfig;
|
|
4586
|
+
/** Scalar array item contract projected from the operation's JSON Schema. */
|
|
4587
|
+
items?: FieldScalarItemsSchema;
|
|
4030
4588
|
/** Optional top-level alias for collection validators mirrored into `array.collectionValidation`. */
|
|
4031
4589
|
collectionValidation?: FieldArrayCollectionValidation;
|
|
4032
4590
|
/** Display order in form */
|
|
@@ -4074,6 +4632,28 @@ interface FieldMetadata extends ComponentMetadata {
|
|
|
4074
4632
|
fieldAccess?: FieldAccessMetadata;
|
|
4075
4633
|
/** Field is hidden from display */
|
|
4076
4634
|
hidden?: boolean;
|
|
4635
|
+
/** Hidden specifically in collection table columns (`x-ui.tableHidden`). */
|
|
4636
|
+
tableHidden?: boolean;
|
|
4637
|
+
/** Hidden specifically inside generated forms (`x-ui.formHidden`). */
|
|
4638
|
+
formHidden?: boolean;
|
|
4639
|
+
/** Explicit column sort order inside collection tables (`x-ui.tableOrder`). */
|
|
4640
|
+
tableOrder?: number;
|
|
4641
|
+
/** Explicit sticky side inside collection tables (`x-ui.pinned`). */
|
|
4642
|
+
pinned?: 'start' | 'end';
|
|
4643
|
+
/** Marks field as primary quick-search filter target (`x-ui.primarySearch`). */
|
|
4644
|
+
primarySearch?: boolean;
|
|
4645
|
+
/** Promotes filter field to inline/always-visible bar (`x-ui.inlineFilter`). */
|
|
4646
|
+
inlineFilter?: boolean;
|
|
4647
|
+
/** Compact alias promoting filter field to inline/always-visible bar (`x-ui.inline`). */
|
|
4648
|
+
inline?: boolean;
|
|
4649
|
+
/** Explicit 12-column responsive grid span (`x-ui.colSpan`, `1..12`). */
|
|
4650
|
+
colSpan?: number;
|
|
4651
|
+
/** Active workspace context binding contract (`x-ui.contextBinding`). */
|
|
4652
|
+
contextBinding?: PraxisContextBindingContract;
|
|
4653
|
+
/** Indicates field value must clear when cloning a draft (`x-ui.draftCleared`). */
|
|
4654
|
+
draftCleared?: boolean;
|
|
4655
|
+
/** Resource-state mutability rules (`x-ui.resourceState`). */
|
|
4656
|
+
resourceState?: PraxisResourceStateContract;
|
|
4077
4657
|
/** Canonical conditional visibility guard for metadata-driven forms. */
|
|
4078
4658
|
hiddenCondition?: JsonLogicExpression | null;
|
|
4079
4659
|
/** Default value when form initializes */
|
|
@@ -4151,6 +4731,10 @@ interface FieldMetadata extends ComponentMetadata {
|
|
|
4151
4731
|
* heuristics.
|
|
4152
4732
|
*/
|
|
4153
4733
|
valuePresentation?: ValuePresentationConfig;
|
|
4734
|
+
/** Micro-visualization metadata published via `x-ui.microVisualization`. */
|
|
4735
|
+
microVisualization?: PraxisPresentationVisualizationConfig;
|
|
4736
|
+
/** Numeric format directive (`auto`, `integer`, `decimal`, `currency`, `percent`). */
|
|
4737
|
+
numericFormat?: 'auto' | 'integer' | 'decimal' | 'currency' | 'percent' | string;
|
|
4154
4738
|
/**
|
|
4155
4739
|
* Semantic presentation metadata for read-only/display surfaces.
|
|
4156
4740
|
*
|
|
@@ -4163,6 +4747,14 @@ interface FieldMetadata extends ComponentMetadata {
|
|
|
4163
4747
|
* readonly/display surfaces. Later matching rules win.
|
|
4164
4748
|
*/
|
|
4165
4749
|
presentationRules?: FieldPresentationRule[];
|
|
4750
|
+
/** Indicates that this field is curated for display in the Quick View summary list. */
|
|
4751
|
+
quickViewVisible?: boolean;
|
|
4752
|
+
/** Relative order of this field in the Quick View summary list when quickViewVisible is true. */
|
|
4753
|
+
quickViewOrder?: number;
|
|
4754
|
+
/** Canonical cross-resource reference contract published in x-ui.resourceReference. */
|
|
4755
|
+
resourceReference?: ResourceReferenceMetadata;
|
|
4756
|
+
/** Declarative governed Quick View contract for reference fields. */
|
|
4757
|
+
quickView?: ResourceQuickViewBinding;
|
|
4166
4758
|
/** Material Design specific configuration */
|
|
4167
4759
|
materialDesign?: MaterialDesignConfig;
|
|
4168
4760
|
/**
|
|
@@ -4172,12 +4764,22 @@ interface FieldMetadata extends ComponentMetadata {
|
|
|
4172
4764
|
* needs platform-governed Apply/Cancel/Clear actions.
|
|
4173
4765
|
*/
|
|
4174
4766
|
inlineOverlay?: InlineOverlayMetadata;
|
|
4767
|
+
/** Title displayed in the inline overlay panel header. */
|
|
4768
|
+
inlinePanelTitle?: string;
|
|
4769
|
+
/** Subtitle displayed under the inline overlay panel header title. */
|
|
4770
|
+
inlinePanelSubtitle?: string;
|
|
4771
|
+
/** Material icon ligature rendered in the inline overlay panel header badge. */
|
|
4772
|
+
inlinePanelIcon?: string;
|
|
4773
|
+
/** Theme palette token or CSS color applied to the inline overlay panel header icon. */
|
|
4774
|
+
inlinePanelIconColor?: string;
|
|
4175
4775
|
/** Fields this field depends on */
|
|
4176
4776
|
dependencyFields?: string[];
|
|
4177
4777
|
/** Canonical conditional required guard for metadata-driven forms. */
|
|
4178
4778
|
conditionalRequired?: JsonLogicExpression | null;
|
|
4179
4779
|
/** Canonical conditional visibility guard for metadata-driven forms. */
|
|
4180
4780
|
conditionalDisplay?: JsonLogicExpression | null;
|
|
4781
|
+
/** Conditional read-only guard (`x-ui.conditionalReadOnly`). */
|
|
4782
|
+
conditionalReadOnly?: JsonLogicExpression | string | null;
|
|
4181
4783
|
/** Reset value when dependency changes */
|
|
4182
4784
|
resetOnDependentChange?: boolean;
|
|
4183
4785
|
/** Enable native field-to-field dependency cascade inside the same form */
|
|
@@ -4210,10 +4812,6 @@ interface FieldMetadata extends ComponentMetadata {
|
|
|
4210
4812
|
textTransformApply?: 'displayOnly' | 'saveOnly' | 'both';
|
|
4211
4813
|
/** Contexts where field should be visible */
|
|
4212
4814
|
visibleIn?: Array<'form' | 'filter' | 'table' | 'dialog'>;
|
|
4213
|
-
/** Hide in specific form contexts */
|
|
4214
|
-
formHidden?: boolean;
|
|
4215
|
-
/** Hide in table contexts */
|
|
4216
|
-
tableHidden?: boolean;
|
|
4217
4815
|
/** Hide in filter contexts */
|
|
4218
4816
|
filterHidden?: boolean;
|
|
4219
4817
|
/** ARIA label for screen readers */
|
|
@@ -4232,6 +4830,21 @@ interface FieldAccessMetadata {
|
|
|
4232
4830
|
reason?: string;
|
|
4233
4831
|
}
|
|
4234
4832
|
|
|
4833
|
+
/**
|
|
4834
|
+
* Supported operator modes for inline monetary range controls.
|
|
4835
|
+
*/
|
|
4836
|
+
type InlineCurrencyRangeOperatorMode = 'between' | 'gte' | 'lte' | 'eq';
|
|
4837
|
+
|
|
4838
|
+
type PraxisContextBindingDimension = 'organization' | 'company_group' | 'unit' | 'person' | 'bond' | 'contract';
|
|
4839
|
+
interface PraxisContextBindingContract {
|
|
4840
|
+
dimension: PraxisContextBindingDimension;
|
|
4841
|
+
lockWhenActive: boolean;
|
|
4842
|
+
targetField?: string;
|
|
4843
|
+
}
|
|
4844
|
+
interface PraxisResourceStateContract {
|
|
4845
|
+
initialStates?: string[];
|
|
4846
|
+
putMutableStates?: string[];
|
|
4847
|
+
}
|
|
4235
4848
|
/**
|
|
4236
4849
|
* Contrato de saída do normalizador de esquema (SchemaNormalizerService):
|
|
4237
4850
|
* - Converte metadados `x-ui` em FieldDefinition tipado.
|
|
@@ -4244,6 +4857,10 @@ interface FieldAccessMetadata {
|
|
|
4244
4857
|
*/
|
|
4245
4858
|
interface FieldDefinition {
|
|
4246
4859
|
name: string;
|
|
4860
|
+
/** Backend-authored custom-field identity; `name` retains the full value path. */
|
|
4861
|
+
customField?: boolean;
|
|
4862
|
+
customFieldKey?: string;
|
|
4863
|
+
customFieldScope?: string;
|
|
4247
4864
|
label?: string;
|
|
4248
4865
|
description?: string;
|
|
4249
4866
|
type?: string;
|
|
@@ -4264,6 +4881,8 @@ interface FieldDefinition {
|
|
|
4264
4881
|
readOnly?: boolean;
|
|
4265
4882
|
fieldAccess?: FieldAccessMetadata;
|
|
4266
4883
|
array?: FieldArrayConfig;
|
|
4884
|
+
/** Scalar array item contract from JSON Schema; independent of object collection authoring. */
|
|
4885
|
+
items?: FieldScalarItemsSchema;
|
|
4267
4886
|
collectionValidation?: FieldArrayCollectionValidation;
|
|
4268
4887
|
multiple?: boolean;
|
|
4269
4888
|
editable?: boolean;
|
|
@@ -4273,11 +4892,28 @@ interface FieldDefinition {
|
|
|
4273
4892
|
sortable?: boolean;
|
|
4274
4893
|
/** Json Logic canônico que define obrigatoriedade condicional. */
|
|
4275
4894
|
conditionalRequired?: JsonLogicExpression | null;
|
|
4895
|
+
/** Expressão condicional de somente leitura publicada em `x-ui.conditionalReadOnly`. */
|
|
4896
|
+
conditionalReadOnly?: JsonLogicExpression | string | null;
|
|
4897
|
+
/** Span explícito em grid de 12 colunas (`1..12`). */
|
|
4898
|
+
colSpan?: number;
|
|
4899
|
+
/** Vínculo com contexto ativo de workspace (`x-ui.contextBinding`). */
|
|
4900
|
+
contextBinding?: PraxisContextBindingContract;
|
|
4901
|
+
/** Indica limpeza do campo ao clonar rascunho (`x-ui.draftCleared`). */
|
|
4902
|
+
draftCleared?: boolean;
|
|
4903
|
+
/** Regras declarativas de mutabilidade por estado (`x-ui.resourceState`). */
|
|
4904
|
+
resourceState?: PraxisResourceStateContract;
|
|
4276
4905
|
viewOnlyStyle?: string;
|
|
4277
4906
|
/** Lista de gatilhos de validação, ex.: ["blur", "change"]. */
|
|
4278
4907
|
validationTriggers?: string[];
|
|
4279
4908
|
hidden?: boolean;
|
|
4280
4909
|
tableHidden?: boolean;
|
|
4910
|
+
tableOrder?: number;
|
|
4911
|
+
pinned?: 'start' | 'end';
|
|
4912
|
+
primarySearch?: boolean;
|
|
4913
|
+
/** Promotes filter field to inline/always-visible bar (`x-ui.inlineFilter`). */
|
|
4914
|
+
inlineFilter?: boolean;
|
|
4915
|
+
/** Legacy/compact alias promoting filter field to inline bar (`x-ui.inline`). */
|
|
4916
|
+
inline?: boolean;
|
|
4281
4917
|
formHidden?: boolean;
|
|
4282
4918
|
filterable?: boolean;
|
|
4283
4919
|
/** Json Logic canônico que controla se o campo é exibido. */
|
|
@@ -4306,11 +4942,16 @@ interface FieldDefinition {
|
|
|
4306
4942
|
endpoint?: string;
|
|
4307
4943
|
resourcePath?: string;
|
|
4308
4944
|
optionSource?: OptionSourceMetadata;
|
|
4945
|
+
dialog?: LookupDialogMetadata;
|
|
4309
4946
|
emptyOptionText?: string;
|
|
4310
4947
|
options?: {
|
|
4311
4948
|
key: string;
|
|
4312
4949
|
value: string;
|
|
4313
4950
|
label?: string;
|
|
4951
|
+
icon?: string;
|
|
4952
|
+
tone?: string;
|
|
4953
|
+
description?: string;
|
|
4954
|
+
disabled?: boolean;
|
|
4314
4955
|
[key: string]: any;
|
|
4315
4956
|
}[];
|
|
4316
4957
|
filter?: any;
|
|
@@ -4321,16 +4962,28 @@ interface FieldDefinition {
|
|
|
4321
4962
|
optionLabelKey?: string;
|
|
4322
4963
|
optionValueKey?: string;
|
|
4323
4964
|
filterOptions?: any[];
|
|
4324
|
-
numericFormat?: string;
|
|
4965
|
+
numericFormat?: 'auto' | 'integer' | 'decimal' | 'currency' | 'percent' | string;
|
|
4325
4966
|
valuePresentation?: ValuePresentationConfig;
|
|
4967
|
+
/** Micro-visualização declarada em `x-ui.microVisualization`. */
|
|
4968
|
+
microVisualization?: PraxisPresentationVisualizationConfig;
|
|
4326
4969
|
/** Semantic read-only/list presentation metadata from canonical x-ui.presentation. */
|
|
4327
4970
|
presentation?: FieldPresentationConfig;
|
|
4328
4971
|
/** Conditional presentation overrides for read-only/list consumers. */
|
|
4329
4972
|
presentationRules?: FieldPresentationRule[];
|
|
4973
|
+
/** Indicates that this field is curated for display in the Quick View summary list. */
|
|
4974
|
+
quickViewVisible?: boolean;
|
|
4975
|
+
/** Relative order of this field in the Quick View summary list when quickViewVisible is true. */
|
|
4976
|
+
quickViewOrder?: number;
|
|
4977
|
+
/** Canonical cross-resource reference contract published in x-ui.resourceReference. */
|
|
4978
|
+
resourceReference?: ResourceReferenceMetadata;
|
|
4979
|
+
/** Declarative governed Quick View contract for reference fields. */
|
|
4980
|
+
quickView?: ResourceQuickViewBinding;
|
|
4330
4981
|
numericStep?: number;
|
|
4331
4982
|
numericMin?: number;
|
|
4332
4983
|
numericMax?: number;
|
|
4333
4984
|
numericMaxLength?: number;
|
|
4985
|
+
inlineVisualStyle?: 'compact' | 'graphic';
|
|
4986
|
+
percentPresets?: number[];
|
|
4334
4987
|
optionGroups?: {
|
|
4335
4988
|
key: string;
|
|
4336
4989
|
value: string;
|
|
@@ -4391,6 +5044,258 @@ interface FieldDefinition {
|
|
|
4391
5044
|
showInlineErrors?: boolean;
|
|
4392
5045
|
/** Posição preferida da mensagem de erro (ex.: below, right). */
|
|
4393
5046
|
errorPosition?: string;
|
|
5047
|
+
/** Exibe o rótulo de valor no thumb de sliders (`slider`, `rangeSlider`, `inlineRange`). */
|
|
5048
|
+
thumbLabel?: boolean;
|
|
5049
|
+
/** Controla quando o rótulo de valor é exibido em sliders (`'off' | 'auto' | 'on'`). */
|
|
5050
|
+
valueLabelDisplay?: 'off' | 'auto' | 'on';
|
|
5051
|
+
/** Ativa o modo discreto (thumb label) em sliders Material. */
|
|
5052
|
+
discrete?: boolean;
|
|
5053
|
+
/** Exibe campos numéricos auxiliares sincronizados ao slider/range. */
|
|
5054
|
+
showInputs?: boolean;
|
|
5055
|
+
/** Exibe marcações (ticks) ao longo da trilha do slider. */
|
|
5056
|
+
showTicks?: boolean | 'auto';
|
|
5057
|
+
/** Exibe âncoras clicáveis abaixo da trilha do slider/faixa inline (`true`, `false` ou `'auto'`). */
|
|
5058
|
+
showAnchors?: boolean | 'auto';
|
|
5059
|
+
/** Título exibido no cabeçalho do popover para controles inline. */
|
|
5060
|
+
inlinePanelTitle?: string;
|
|
5061
|
+
/** Subtítulo exibido no cabeçalho do popover para controles inline. */
|
|
5062
|
+
inlinePanelSubtitle?: string;
|
|
5063
|
+
/** Ligadura Material Icons exibida no cabeçalho do popover para controles inline. */
|
|
5064
|
+
inlinePanelIcon?: string;
|
|
5065
|
+
/** Cor do ícone exibido no cabeçalho do popover para controles inline. */
|
|
5066
|
+
inlinePanelIconColor?: string;
|
|
5067
|
+
/** Exibe campos numéricos inline editáveis dentro do popover de controles de slider/faixa. */
|
|
5068
|
+
showInlineInputs?: boolean;
|
|
5069
|
+
/** Histograma ou configuração de distribuição interativa exibida acima do slider inline. */
|
|
5070
|
+
inlineDistribution?: unknown;
|
|
5071
|
+
/** Modos de operador habilitados para filtros de faixa monetária inline. */
|
|
5072
|
+
operatorModes?: InlineCurrencyRangeOperatorMode[] | boolean | string;
|
|
5073
|
+
/** Modo de operador inicial para filtros de faixa monetária inline. */
|
|
5074
|
+
defaultOperatorMode?: InlineCurrencyRangeOperatorMode;
|
|
5075
|
+
/** Exige ambos os limites da faixa (ex.: BETWEEN_EXCLUSIVE). */
|
|
5076
|
+
requireTwoBounds?: boolean;
|
|
5077
|
+
/** Passo aplicado exclusivamente à trilha do slider. */
|
|
5078
|
+
sliderStep?: number;
|
|
5079
|
+
/** Incremento de teclado com modificador Shift para sliders/faixas. */
|
|
5080
|
+
shiftStep?: number;
|
|
5081
|
+
/** Distância mínima exigida entre os limites da faixa. */
|
|
5082
|
+
minDistance?: number;
|
|
5083
|
+
/** Distância máxima permitida entre os limites da faixa. */
|
|
5084
|
+
maxDistance?: number;
|
|
5085
|
+
/** Código de moeda (ex.: BRL, USD, EUR). */
|
|
5086
|
+
currency?: string;
|
|
5087
|
+
/** Alias para código de moeda (`currency`). */
|
|
5088
|
+
currencyCode?: string;
|
|
5089
|
+
/** Quantidade de casas decimais para campos numéricos/monetários. */
|
|
5090
|
+
decimalPlaces?: number;
|
|
5091
|
+
/** Precisão numérica (moeda/número) ou granularidade de avaliação ('half' | 'item'). */
|
|
5092
|
+
precision?: number | string;
|
|
5093
|
+
/** Posição do símbolo monetário em relação ao valor. */
|
|
5094
|
+
currencyPosition?: 'before' | 'after';
|
|
5095
|
+
/** Exibe símbolo/indicador monetário em cabeçalhos e inputs. */
|
|
5096
|
+
showCurrencySymbol?: boolean;
|
|
5097
|
+
/** Separador de milhar (alias de `thousandsSeparator`). */
|
|
5098
|
+
thousandSeparator?: string;
|
|
5099
|
+
/** Separador de milhar. */
|
|
5100
|
+
thousandsSeparator?: string;
|
|
5101
|
+
/** Separador decimal. */
|
|
5102
|
+
decimalSeparator?: string;
|
|
5103
|
+
/** Permite valores negativos em controles numéricos/monetários. */
|
|
5104
|
+
allowNegative?: boolean;
|
|
5105
|
+
/** Rótulo do input mínimo de faixa. */
|
|
5106
|
+
inputMinLabel?: string;
|
|
5107
|
+
/** Rótulo do input máximo de faixa. */
|
|
5108
|
+
inputMaxLabel?: string;
|
|
5109
|
+
/** Rótulo do input de valor exato em faixa monetária. */
|
|
5110
|
+
inputExactLabel?: string;
|
|
5111
|
+
/** Limite mínimo permitido para o valor inicial da faixa. */
|
|
5112
|
+
startMin?: number;
|
|
5113
|
+
/** Limite máximo permitido para o valor inicial da faixa. */
|
|
5114
|
+
startMax?: number;
|
|
5115
|
+
/** Limite mínimo permitido para o valor final da faixa. */
|
|
5116
|
+
endMin?: number;
|
|
5117
|
+
/** Limite máximo permitido para o valor final da faixa. */
|
|
5118
|
+
endMax?: number;
|
|
5119
|
+
/** Mensagens e deslocamentos relacionais de limites de faixa monetária. */
|
|
5120
|
+
startMinMessage?: string;
|
|
5121
|
+
startMaxMessage?: string;
|
|
5122
|
+
endMinMessage?: string;
|
|
5123
|
+
endMaxMessage?: string;
|
|
5124
|
+
endMinOffset?: number;
|
|
5125
|
+
endMinOffsetMessage?: string;
|
|
5126
|
+
startMaxOffset?: number;
|
|
5127
|
+
startMaxOffsetMessage?: string;
|
|
5128
|
+
/** Configuração especializada de faixa de horário inline. */
|
|
5129
|
+
stepMinute?: number;
|
|
5130
|
+
stepMinutes?: number;
|
|
5131
|
+
interval?: number;
|
|
5132
|
+
inlineTimeTrackShifts?: unknown[];
|
|
5133
|
+
inlineTrackShifts?: unknown[];
|
|
5134
|
+
trackShifts?: unknown[];
|
|
5135
|
+
minDistanceMinutes?: number;
|
|
5136
|
+
maxDistanceMinutes?: number;
|
|
5137
|
+
/** Configuração especializada de raio de distância inline. */
|
|
5138
|
+
distanceIcon?: string;
|
|
5139
|
+
distanceStart?: number;
|
|
5140
|
+
distanceEnd?: number;
|
|
5141
|
+
radiusMin?: number;
|
|
5142
|
+
radiusMax?: number;
|
|
5143
|
+
radiusStep?: number;
|
|
5144
|
+
radiusMode?: string;
|
|
5145
|
+
distanceSliderStep?: number;
|
|
5146
|
+
/** Configuração especializada de avaliação (rating) inline. */
|
|
5147
|
+
ratingGradientLowColor?: string;
|
|
5148
|
+
ratingGradientMidColor?: string;
|
|
5149
|
+
ratingGradientHighColor?: string;
|
|
5150
|
+
ratingToneLowColor?: string;
|
|
5151
|
+
ratingToneMidColor?: string;
|
|
5152
|
+
ratingToneHighColor?: string;
|
|
5153
|
+
ratingBadgeColor?: string;
|
|
5154
|
+
ratingBadgeIcon?: string;
|
|
5155
|
+
ratingBadgeIconColor?: string;
|
|
5156
|
+
ratingActiveIcon?: string;
|
|
5157
|
+
ratingInactiveIcon?: string;
|
|
5158
|
+
ratingAllowHalf?: boolean;
|
|
5159
|
+
ratingPrecision?: number | string;
|
|
5160
|
+
ratingColors?: Record<string, unknown> | string[];
|
|
5161
|
+
starColors?: Record<string, unknown> | string[];
|
|
5162
|
+
ratingLowColor?: string;
|
|
5163
|
+
ratingMidColor?: string;
|
|
5164
|
+
ratingHighColor?: string;
|
|
5165
|
+
ratingIndicatorColor?: string;
|
|
5166
|
+
ratingMin?: number;
|
|
5167
|
+
ratingMax?: number;
|
|
5168
|
+
itemsCount?: number;
|
|
5169
|
+
ratingStep?: number;
|
|
5170
|
+
/** Configuração especializada de faixa de score / prioridade inline. */
|
|
5171
|
+
scoreSubtitle?: string;
|
|
5172
|
+
scoreUnit?: string;
|
|
5173
|
+
scoreDisplayDecimals?: number;
|
|
5174
|
+
scoreShowScaleLabels?: boolean;
|
|
5175
|
+
scoreShowBandChips?: boolean;
|
|
5176
|
+
scoreRangeSeparator?: string;
|
|
5177
|
+
scoreGradientLowColor?: string;
|
|
5178
|
+
scoreGradientMidColor?: string;
|
|
5179
|
+
scoreGradientHighColor?: string;
|
|
5180
|
+
scoreValueFallbackColor?: string;
|
|
5181
|
+
scoreEmptyGradient?: string;
|
|
5182
|
+
scoreIcon?: string;
|
|
5183
|
+
scoreBandsAriaLabel?: string;
|
|
5184
|
+
scoreBandAriaLabelTemplate?: string;
|
|
5185
|
+
scoreMin?: number;
|
|
5186
|
+
scoreMax?: number;
|
|
5187
|
+
scoreStep?: number;
|
|
5188
|
+
scoreMode?: string;
|
|
5189
|
+
scoreSliderStep?: number;
|
|
5190
|
+
/** Configuração especializada de filtros gráficos e date-range inline (Onda 2). */
|
|
5191
|
+
optionSubtitleKey?: string;
|
|
5192
|
+
optionWeightKey?: string;
|
|
5193
|
+
optionColorKey?: string;
|
|
5194
|
+
optionIconKey?: string;
|
|
5195
|
+
optionEmojiKey?: string;
|
|
5196
|
+
panelSearchIcon?: string;
|
|
5197
|
+
panelSearchIconColor?: string;
|
|
5198
|
+
panelResetIcon?: string;
|
|
5199
|
+
panelResetIconColor?: string;
|
|
5200
|
+
optionSelectedIcon?: string;
|
|
5201
|
+
optionSelectedIconColor?: string;
|
|
5202
|
+
columns?: number;
|
|
5203
|
+
pipelineTitle?: string;
|
|
5204
|
+
pipelineSubtitle?: string;
|
|
5205
|
+
pipelineMode?: string;
|
|
5206
|
+
pipelineMultiple?: boolean;
|
|
5207
|
+
pipelineSearchable?: boolean;
|
|
5208
|
+
pipelineSearchPlaceholder?: string;
|
|
5209
|
+
pipelineOptionSubtitleKey?: string;
|
|
5210
|
+
pipelineOptionWeightKey?: string;
|
|
5211
|
+
pipelineOptionColorKey?: string;
|
|
5212
|
+
pipelineShowBar?: boolean;
|
|
5213
|
+
pipelineShowSelectionPills?: boolean;
|
|
5214
|
+
pipelineShowSelectAll?: boolean;
|
|
5215
|
+
pipelineSelectAllText?: string;
|
|
5216
|
+
pipelineShowClearAction?: boolean;
|
|
5217
|
+
pipelineClearActionText?: string;
|
|
5218
|
+
pipelineChipMaxVisible?: number;
|
|
5219
|
+
statusColors?: unknown;
|
|
5220
|
+
pipelineGradientLowColor?: string;
|
|
5221
|
+
pipelineGradientMidColor?: string;
|
|
5222
|
+
pipelineGradientHighColor?: string;
|
|
5223
|
+
pipelineEmptyStateText?: string;
|
|
5224
|
+
pipelineSelectionActionsAriaLabel?: string;
|
|
5225
|
+
pipelineOptionsGroupAriaLabelMultiple?: string;
|
|
5226
|
+
pipelineOptionsGroupAriaLabelSingle?: string;
|
|
5227
|
+
pipelineSelectionPillsAriaLabel?: string;
|
|
5228
|
+
pipelineBarAriaLabelEmpty?: string;
|
|
5229
|
+
pipelineBarAriaLabelSelected?: string;
|
|
5230
|
+
pipelineIcon?: string;
|
|
5231
|
+
pipelineSearchIcon?: string;
|
|
5232
|
+
pipelineSearchIconColor?: string;
|
|
5233
|
+
relativePeriodTitle?: string;
|
|
5234
|
+
relativePeriodSubtitle?: string;
|
|
5235
|
+
relativePeriodShowProgress?: boolean;
|
|
5236
|
+
relativePeriodProgressGradientLowColor?: string;
|
|
5237
|
+
relativePeriodProgressGradientMidColor?: string;
|
|
5238
|
+
relativePeriodProgressGradientHighColor?: string;
|
|
5239
|
+
relativePeriodColumns?: number;
|
|
5240
|
+
relativePeriodCloseOnSelect?: boolean;
|
|
5241
|
+
relativePeriodMultiple?: boolean;
|
|
5242
|
+
relativePeriodSearchable?: boolean;
|
|
5243
|
+
relativePeriodIcon?: string;
|
|
5244
|
+
relativePeriodIconKey?: string;
|
|
5245
|
+
relativePeriodSubtitleKey?: string;
|
|
5246
|
+
relativePeriodSelectedIcon?: string;
|
|
5247
|
+
relativePeriodSelectedIconColor?: string;
|
|
5248
|
+
relativePeriodOptionsAriaLabel?: string;
|
|
5249
|
+
relativePeriodProgressEmptyLabel?: string;
|
|
5250
|
+
relativePeriodEmptyStateText?: string;
|
|
5251
|
+
sentimentTitle?: string;
|
|
5252
|
+
sentimentSubtitle?: string;
|
|
5253
|
+
sentimentGradientLowColor?: string;
|
|
5254
|
+
sentimentGradientMidColor?: string;
|
|
5255
|
+
sentimentGradientHighColor?: string;
|
|
5256
|
+
sentimentShowBar?: boolean;
|
|
5257
|
+
sentimentAnimatedEmoji?: boolean;
|
|
5258
|
+
sentimentCloseOnSelect?: boolean;
|
|
5259
|
+
sentimentMultiple?: boolean;
|
|
5260
|
+
sentimentShowSelectionPills?: boolean;
|
|
5261
|
+
sentimentIcon?: string;
|
|
5262
|
+
sentimentColorKey?: string;
|
|
5263
|
+
sentimentEmojiKey?: string;
|
|
5264
|
+
sentimentOptionsAriaLabel?: string;
|
|
5265
|
+
sentimentSelectionPillsAriaLabel?: string;
|
|
5266
|
+
sentimentEmptyStateText?: string;
|
|
5267
|
+
colorLabelTitle?: string;
|
|
5268
|
+
colorLabelSubtitle?: string;
|
|
5269
|
+
colorLabelMultiple?: boolean;
|
|
5270
|
+
colorLabelColumns?: number;
|
|
5271
|
+
colorLabelShowSelectedBadges?: boolean;
|
|
5272
|
+
colorLabelCloseOnSelect?: boolean;
|
|
5273
|
+
colorLabelSelectionTitle?: string;
|
|
5274
|
+
colorLabelIcon?: string;
|
|
5275
|
+
colorLabelSelectedIcon?: string;
|
|
5276
|
+
colorLabelSelectedIconColor?: string;
|
|
5277
|
+
colorLabelBadgeRemoveIcon?: string;
|
|
5278
|
+
colorLabelBadgeRemoveIconColor?: string;
|
|
5279
|
+
colorLabelColorKey?: string;
|
|
5280
|
+
colorLabelOptionsAriaLabel?: string;
|
|
5281
|
+
colorLabelSelectionBadgesAriaLabel?: string;
|
|
5282
|
+
colorLabelRemoveSelectionAriaLabel?: string;
|
|
5283
|
+
colorLabelEmptyStateText?: string;
|
|
5284
|
+
startAriaLabel?: string;
|
|
5285
|
+
endAriaLabel?: string;
|
|
5286
|
+
inlineQuickPresetsAriaLabel?: string;
|
|
5287
|
+
inlineQuickPresetsCancelLabel?: string;
|
|
5288
|
+
inlineQuickPresetsCancelAriaLabel?: string;
|
|
5289
|
+
inlineQuickPresetsApplyLabel?: string;
|
|
5290
|
+
inlineQuickPresetsApplyAriaLabel?: string;
|
|
5291
|
+
shortcutsPosition?: string;
|
|
5292
|
+
applyOnShortcutClick?: boolean;
|
|
5293
|
+
i18nShortcuts?: Record<string, string>;
|
|
5294
|
+
startView?: string;
|
|
5295
|
+
startAt?: string | Date;
|
|
5296
|
+
touchUi?: boolean;
|
|
5297
|
+
minDate?: string | Date;
|
|
5298
|
+
maxDate?: string | Date;
|
|
4394
5299
|
[key: string]: any;
|
|
4395
5300
|
}
|
|
4396
5301
|
|
|
@@ -4411,8 +5316,16 @@ declare function deepMerge<T>(left: T, right: Partial<T> | undefined): T;
|
|
|
4411
5316
|
|
|
4412
5317
|
declare function resolveColumnTypeFromFieldDefinition(def: FieldDefinition, fallback?: ColumnDefinition['type']): ColumnDefinition['type'] | undefined;
|
|
4413
5318
|
declare function resolveTextMaskFormatFromFieldDefinition(def: FieldDefinition): string | undefined;
|
|
5319
|
+
interface SchemaSemanticRendererOptions {
|
|
5320
|
+
includeUndefinedBadgeChipText?: boolean;
|
|
5321
|
+
includeUndefinedBadgeChipFields?: boolean;
|
|
5322
|
+
allowTextPresenterAsIconValue?: boolean;
|
|
5323
|
+
}
|
|
5324
|
+
declare function resolveSchemaConditionalRenderers(def: FieldDefinition, options?: SchemaSemanticRendererOptions): ColumnDefinition['conditionalRenderers'] | undefined;
|
|
5325
|
+
declare function buildSchemaSemanticColumnRenderer(def: FieldDefinition, presentationOverride?: FieldPresentationConfig, options?: SchemaSemanticRendererOptions): ColumnDefinition['renderer'] | undefined;
|
|
5326
|
+
declare function normalizePresentationAffix(value: unknown): string | undefined;
|
|
4414
5327
|
|
|
4415
5328
|
type TableConfig = TableConfigV2;
|
|
4416
5329
|
|
|
4417
|
-
export { deepMerge, isPraxisPresentationVisualizationTableSafe, normalizeSchemaFields, resolveColumnTypeFromFieldDefinition, resolveTextMaskFormatFromFieldDefinition };
|
|
4418
|
-
export type { ColumnDefinition, FieldDefinition, TableConfig };
|
|
5330
|
+
export { buildSchemaSemanticColumnRenderer, deepMerge, isPraxisPresentationVisualizationTableSafe, normalizePresentationAffix, normalizeSchemaFields, resolveColumnTypeFromFieldDefinition, resolveSchemaConditionalRenderers, resolveTextMaskFormatFromFieldDefinition };
|
|
5331
|
+
export type { ColumnDefinition, FieldDefinition, SchemaSemanticRendererOptions, TableConfig };
|