@praxisui/core 10.0.0-rc.40 → 10.0.0-rc.41
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 +56 -0
- package/ai/component-registry.json +2 -2
- package/fesm2022/praxisui-core-schema.mjs +443 -4
- package/fesm2022/praxisui-core.mjs +2065 -853
- package/package.json +1 -1
- package/types/praxisui-core-schema.d.ts +59 -0
- package/types/praxisui-core.d.ts +200 -31
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/core",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.41",
|
|
4
4
|
"description": "Core library for Praxis UI Workspace: types, tokens, services and utilities shared across @praxisui/* packages.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/cdk": "^21.0.0",
|
|
@@ -48,7 +48,9 @@ interface LookupDetailMetadata {
|
|
|
48
48
|
routeTemplate?: string;
|
|
49
49
|
openDetailMode?: LookupOpenDetailMode;
|
|
50
50
|
kind?: 'surface' | 'route' | 'href' | string;
|
|
51
|
+
resourceKey?: string;
|
|
51
52
|
surfaceId?: string;
|
|
53
|
+
previewSurfaceId?: string;
|
|
52
54
|
presentation?: 'modal' | 'drawer' | string;
|
|
53
55
|
preferredWidget?: string;
|
|
54
56
|
mode?: 'view' | 'edit' | 'create' | string;
|
|
@@ -93,6 +95,7 @@ interface LookupFilteringMetadata {
|
|
|
93
95
|
searchStrategies?: LookupSearchStrategyMetadata[];
|
|
94
96
|
}
|
|
95
97
|
interface EntityLookupActionsMetadata {
|
|
98
|
+
showQuickView?: boolean;
|
|
96
99
|
showDetail?: boolean;
|
|
97
100
|
showChange?: boolean;
|
|
98
101
|
showCopyCode?: boolean;
|
|
@@ -122,6 +125,7 @@ interface EntityLookupDisplayMetadata {
|
|
|
122
125
|
statusToneMap?: Record<string, LookupStatusTone>;
|
|
123
126
|
badgeKeys?: string[];
|
|
124
127
|
maxVisibleBadges?: number;
|
|
128
|
+
quickViewActionLabel?: string;
|
|
125
129
|
detailActionLabel?: string;
|
|
126
130
|
changeActionLabel?: string;
|
|
127
131
|
copyCodeActionLabel?: string;
|
|
@@ -362,6 +366,7 @@ interface ResourceSurfaceCatalogItem {
|
|
|
362
366
|
title: string;
|
|
363
367
|
description?: string | null;
|
|
364
368
|
intent?: string | null;
|
|
369
|
+
icon?: string | null;
|
|
365
370
|
operationId: string;
|
|
366
371
|
path: string;
|
|
367
372
|
method: string;
|
|
@@ -406,6 +411,17 @@ type ResourceQuickViewPresetRef = CorePresetRef & {
|
|
|
406
411
|
presetId: string;
|
|
407
412
|
version: string;
|
|
408
413
|
};
|
|
414
|
+
/**
|
|
415
|
+
* Contrato declarativo de referência cruzada publicado pelo backend em `x-ui.resourceReference`
|
|
416
|
+
* (via `@ResourceReference`), permitindo sintetizar `ResourceQuickViewBinding` sem configuração manual.
|
|
417
|
+
*/
|
|
418
|
+
interface ResourceReferenceMetadata {
|
|
419
|
+
resourceKey: string;
|
|
420
|
+
valueField?: string;
|
|
421
|
+
surfaceId?: string;
|
|
422
|
+
previewSurfaceId?: string;
|
|
423
|
+
detailPresentation?: SurfacePresentation;
|
|
424
|
+
}
|
|
409
425
|
/**
|
|
410
426
|
* Contrato declarativo e serializável de Quick View transversal.
|
|
411
427
|
*
|
|
@@ -413,11 +429,14 @@ type ResourceQuickViewPresetRef = CorePresetRef & {
|
|
|
413
429
|
* - Nunca contém elementos DOM, coordenadas de viewport ou funções;
|
|
414
430
|
* - Reutiliza `ResourceRecordOpenRef` (`{ sourceIdentityField, target: { resourceKey, surfaceId } }`)
|
|
415
431
|
* para governança de descoberta, leitura e CTA;
|
|
432
|
+
* - Opcionalmente declara `previewSurfaceId` quando a projeção de leitura do preview
|
|
433
|
+
* diferir da surface de detalhe completo aberta pelo CTA primário;
|
|
416
434
|
* - Não permite `popover` em `detailPresentation` (`popover` não pertence a `SurfacePresentation`);
|
|
417
435
|
* - Não permite override de ação, rota arbitrária nem árvore `RichContentDocument` inline no primeiro slice.
|
|
418
436
|
*/
|
|
419
437
|
interface ResourceQuickViewBinding {
|
|
420
438
|
recordOpen: ResourceRecordOpenRef;
|
|
439
|
+
previewSurfaceId?: string;
|
|
421
440
|
contentRef?: ResourceQuickViewPresetRef | null;
|
|
422
441
|
detailPresentation?: SurfacePresentation;
|
|
423
442
|
}
|
|
@@ -696,6 +715,7 @@ interface RichKeyValueItem {
|
|
|
696
715
|
badge?: string;
|
|
697
716
|
badgeExpr?: string;
|
|
698
717
|
icon?: string;
|
|
718
|
+
quickView?: ResourceQuickViewBinding;
|
|
699
719
|
}
|
|
700
720
|
interface RichKeyValueListNode extends RichBlockBaseNode {
|
|
701
721
|
type: 'keyValueList';
|
|
@@ -716,6 +736,7 @@ interface RichPropertySheetItem {
|
|
|
716
736
|
hintExpr?: string;
|
|
717
737
|
icon?: string;
|
|
718
738
|
tone?: RichPropertySheetTone;
|
|
739
|
+
quickView?: ResourceQuickViewBinding;
|
|
719
740
|
}
|
|
720
741
|
interface RichPropertySheetNode extends RichBlockBaseNode {
|
|
721
742
|
type: 'propertySheet';
|
|
@@ -824,6 +845,7 @@ interface RichRecordSummaryField {
|
|
|
824
845
|
labelExpr?: string;
|
|
825
846
|
value?: string;
|
|
826
847
|
valueExpr?: string;
|
|
848
|
+
quickView?: ResourceQuickViewBinding;
|
|
827
849
|
}
|
|
828
850
|
interface RichRecordSummaryNode extends RichBlockBaseNode {
|
|
829
851
|
type: 'recordSummary';
|
|
@@ -1075,6 +1097,8 @@ interface RichTimelineItem {
|
|
|
1075
1097
|
connectorColor?: RichTimelineColor;
|
|
1076
1098
|
connectorVariant?: RichTimelineConnectorVariant;
|
|
1077
1099
|
action?: RichActionRef;
|
|
1100
|
+
/** Contrato opcional de Quick View governado associado ao item da timeline. */
|
|
1101
|
+
quickView?: ResourceQuickViewBinding;
|
|
1078
1102
|
children?: RichTimelineItem[];
|
|
1079
1103
|
}
|
|
1080
1104
|
type RichTimelinePosition = 'left' | 'right' | 'alternate' | 'alternate-reverse';
|
|
@@ -2617,6 +2641,8 @@ interface RowAction {
|
|
|
2617
2641
|
effects?: PraxisRuntimeGlobalActionEffect[];
|
|
2618
2642
|
/** Surface de registro canonica aberta por esta acao de linha */
|
|
2619
2643
|
recordSurface?: ResourceSurfaceCatalogItem;
|
|
2644
|
+
/** Contrato declarativo de Quick View governado aberto ancorado ao gatilho desta ação de linha */
|
|
2645
|
+
quickView?: ResourceQuickViewBinding;
|
|
2620
2646
|
/** Tooltip */
|
|
2621
2647
|
tooltip?: string;
|
|
2622
2648
|
/** Requer confirmação */
|
|
@@ -3850,6 +3876,13 @@ declare const FieldControlType: {
|
|
|
3850
3876
|
};
|
|
3851
3877
|
type FieldControlType = (typeof FieldControlType)[keyof typeof FieldControlType];
|
|
3852
3878
|
|
|
3879
|
+
/** Scalar JSON Schema items projected by the operation schema; object collections use FieldArrayConfig. */
|
|
3880
|
+
interface FieldScalarItemsSchema {
|
|
3881
|
+
type: 'string' | 'integer' | 'number' | 'boolean';
|
|
3882
|
+
format?: string;
|
|
3883
|
+
enum?: readonly (string | number | boolean | null)[];
|
|
3884
|
+
}
|
|
3885
|
+
|
|
3853
3886
|
type FormFieldHelpDisplay = 'auto' | 'inline' | 'popover' | 'hidden';
|
|
3854
3887
|
|
|
3855
3888
|
/**
|
|
@@ -4183,6 +4216,10 @@ type FieldSubmitPolicy = 'include' | 'omit' | 'includeWhenDirty';
|
|
|
4183
4216
|
interface FieldMetadata extends ComponentMetadata {
|
|
4184
4217
|
/** Unique field identifier (required) */
|
|
4185
4218
|
name: string;
|
|
4219
|
+
/** Backend-authored custom-field identity; `name` retains the full value path. */
|
|
4220
|
+
customField?: boolean;
|
|
4221
|
+
customFieldKey?: string;
|
|
4222
|
+
customFieldScope?: string;
|
|
4186
4223
|
/** Display label for the field */
|
|
4187
4224
|
label: string;
|
|
4188
4225
|
/**
|
|
@@ -4204,6 +4241,8 @@ interface FieldMetadata extends ComponentMetadata {
|
|
|
4204
4241
|
dataType?: FieldDataType;
|
|
4205
4242
|
/** Canonical metadata for editable collection fields (`controlType: "array"`). */
|
|
4206
4243
|
array?: FieldArrayConfig;
|
|
4244
|
+
/** Scalar array item contract projected from the operation's JSON Schema. */
|
|
4245
|
+
items?: FieldScalarItemsSchema;
|
|
4207
4246
|
/** Optional top-level alias for collection validators mirrored into `array.collectionValidation`. */
|
|
4208
4247
|
collectionValidation?: FieldArrayCollectionValidation;
|
|
4209
4248
|
/** Display order in form */
|
|
@@ -4340,6 +4379,14 @@ interface FieldMetadata extends ComponentMetadata {
|
|
|
4340
4379
|
* readonly/display surfaces. Later matching rules win.
|
|
4341
4380
|
*/
|
|
4342
4381
|
presentationRules?: FieldPresentationRule[];
|
|
4382
|
+
/** Indicates that this field is curated for display in the Quick View summary list. */
|
|
4383
|
+
quickViewVisible?: boolean;
|
|
4384
|
+
/** Relative order of this field in the Quick View summary list when quickViewVisible is true. */
|
|
4385
|
+
quickViewOrder?: number;
|
|
4386
|
+
/** Canonical cross-resource reference contract published in x-ui.resourceReference. */
|
|
4387
|
+
resourceReference?: ResourceReferenceMetadata;
|
|
4388
|
+
/** Declarative governed Quick View contract for reference fields. */
|
|
4389
|
+
quickView?: ResourceQuickViewBinding;
|
|
4343
4390
|
/** Material Design specific configuration */
|
|
4344
4391
|
materialDesign?: MaterialDesignConfig;
|
|
4345
4392
|
/**
|
|
@@ -4421,6 +4468,10 @@ interface FieldAccessMetadata {
|
|
|
4421
4468
|
*/
|
|
4422
4469
|
interface FieldDefinition {
|
|
4423
4470
|
name: string;
|
|
4471
|
+
/** Backend-authored custom-field identity; `name` retains the full value path. */
|
|
4472
|
+
customField?: boolean;
|
|
4473
|
+
customFieldKey?: string;
|
|
4474
|
+
customFieldScope?: string;
|
|
4424
4475
|
label?: string;
|
|
4425
4476
|
description?: string;
|
|
4426
4477
|
type?: string;
|
|
@@ -4441,6 +4492,8 @@ interface FieldDefinition {
|
|
|
4441
4492
|
readOnly?: boolean;
|
|
4442
4493
|
fieldAccess?: FieldAccessMetadata;
|
|
4443
4494
|
array?: FieldArrayConfig;
|
|
4495
|
+
/** Scalar array item contract from JSON Schema; independent of object collection authoring. */
|
|
4496
|
+
items?: FieldScalarItemsSchema;
|
|
4444
4497
|
collectionValidation?: FieldArrayCollectionValidation;
|
|
4445
4498
|
multiple?: boolean;
|
|
4446
4499
|
editable?: boolean;
|
|
@@ -4504,6 +4557,12 @@ interface FieldDefinition {
|
|
|
4504
4557
|
presentation?: FieldPresentationConfig;
|
|
4505
4558
|
/** Conditional presentation overrides for read-only/list consumers. */
|
|
4506
4559
|
presentationRules?: FieldPresentationRule[];
|
|
4560
|
+
/** Indicates that this field is curated for display in the Quick View summary list. */
|
|
4561
|
+
quickViewVisible?: boolean;
|
|
4562
|
+
/** Relative order of this field in the Quick View summary list when quickViewVisible is true. */
|
|
4563
|
+
quickViewOrder?: number;
|
|
4564
|
+
/** Canonical cross-resource reference contract published in x-ui.resourceReference. */
|
|
4565
|
+
resourceReference?: ResourceReferenceMetadata;
|
|
4507
4566
|
/** Declarative governed Quick View contract for reference fields. */
|
|
4508
4567
|
quickView?: ResourceQuickViewBinding;
|
|
4509
4568
|
numericStep?: number;
|