@praxisui/core 9.0.0-beta.32 → 9.0.0-beta.33
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 +3 -0
- package/ai/component-registry.json +2 -2
- package/fesm2022/praxisui-core.mjs +15111 -15104
- package/package.json +1 -1
- package/types/praxisui-core.d.ts +68 -67
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/core",
|
|
3
|
-
"version": "9.0.0-beta.
|
|
3
|
+
"version": "9.0.0-beta.33",
|
|
4
4
|
"description": "Core library for Praxis UI Workspace: types, tokens, services and utilities shared across @praxisui/* packages.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
package/types/praxisui-core.d.ts
CHANGED
|
@@ -1506,7 +1506,7 @@ interface ColumnDefinition {
|
|
|
1506
1506
|
/** Cor do badge (primary/accent/warn ou CSS) */
|
|
1507
1507
|
color?: string;
|
|
1508
1508
|
/** Variante visual */
|
|
1509
|
-
variant?: 'filled' | 'outlined' | 'soft';
|
|
1509
|
+
variant?: 'filled' | 'outlined' | 'soft' | 'plain';
|
|
1510
1510
|
/** Ícone opcional dentro do badge */
|
|
1511
1511
|
icon?: string;
|
|
1512
1512
|
/** Tooltip opcional associado ao indicador visual */
|
|
@@ -1542,7 +1542,7 @@ interface ColumnDefinition {
|
|
|
1542
1542
|
textField?: string;
|
|
1543
1543
|
color?: string;
|
|
1544
1544
|
icon?: string;
|
|
1545
|
-
variant?: 'filled' | 'outlined' | 'soft';
|
|
1545
|
+
variant?: 'filled' | 'outlined' | 'soft' | 'plain';
|
|
1546
1546
|
/** Tooltip opcional associado ao chip */
|
|
1547
1547
|
tooltip?: TableTooltipConfig;
|
|
1548
1548
|
};
|
|
@@ -1629,7 +1629,7 @@ interface ColumnDefinition {
|
|
|
1629
1629
|
text?: string;
|
|
1630
1630
|
textField?: string;
|
|
1631
1631
|
color?: string;
|
|
1632
|
-
variant?: 'filled' | 'outlined' | 'soft';
|
|
1632
|
+
variant?: 'filled' | 'outlined' | 'soft' | 'plain';
|
|
1633
1633
|
icon?: string;
|
|
1634
1634
|
tooltip?: TableTooltipConfig;
|
|
1635
1635
|
};
|
|
@@ -1665,7 +1665,7 @@ interface ColumnDefinition {
|
|
|
1665
1665
|
textField?: string;
|
|
1666
1666
|
color?: string;
|
|
1667
1667
|
icon?: string;
|
|
1668
|
-
variant?: 'filled' | 'outlined' | 'soft';
|
|
1668
|
+
variant?: 'filled' | 'outlined' | 'soft' | 'plain';
|
|
1669
1669
|
tooltip?: TableTooltipConfig;
|
|
1670
1670
|
};
|
|
1671
1671
|
} | {
|
|
@@ -3506,6 +3506,69 @@ interface ResolvedValuePresentation {
|
|
|
3506
3506
|
dateTime?: DateTimeLocaleConfig;
|
|
3507
3507
|
}
|
|
3508
3508
|
|
|
3509
|
+
type FieldPresentationTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
3510
|
+
type FieldPresentationAppearance = 'plain' | 'soft' | 'outlined' | 'filled';
|
|
3511
|
+
type FieldPresenterKind = 'text' | 'badge' | 'chip' | 'status' | 'iconValue' | 'progress' | 'rating' | 'microVisualization';
|
|
3512
|
+
interface FieldPresentationInteractions {
|
|
3513
|
+
/** Allows readonly surfaces to expose a copy affordance without changing the field value. */
|
|
3514
|
+
copy?: boolean;
|
|
3515
|
+
/** Allows readonly surfaces to expose contextual detail expansion. */
|
|
3516
|
+
details?: boolean;
|
|
3517
|
+
/** Allows readonly surfaces to expose inline expansion for long values. */
|
|
3518
|
+
expand?: boolean;
|
|
3519
|
+
/** Allows readonly surfaces to expose a link affordance when the value is navigable. */
|
|
3520
|
+
link?: boolean;
|
|
3521
|
+
}
|
|
3522
|
+
interface FieldPresentationConfig {
|
|
3523
|
+
/** Semantic display strategy for readonly/presentation surfaces. */
|
|
3524
|
+
presenter?: FieldPresenterKind;
|
|
3525
|
+
/** Alias accepted for schema authors that describe the semantic display as a variant. */
|
|
3526
|
+
variant?: FieldPresenterKind;
|
|
3527
|
+
/** Semantic tone mapped by consumers to theme tokens. */
|
|
3528
|
+
tone?: FieldPresentationTone;
|
|
3529
|
+
/** Material Symbols icon name, without arbitrary HTML. */
|
|
3530
|
+
icon?: string;
|
|
3531
|
+
/** Optional semantic label for status/chip/badge presentations. */
|
|
3532
|
+
label?: string;
|
|
3533
|
+
/** Optional secondary marker rendered by presentation-capable consumers. */
|
|
3534
|
+
badge?: string;
|
|
3535
|
+
/** Optional tooltip text for the presentation wrapper. */
|
|
3536
|
+
tooltip?: string;
|
|
3537
|
+
/** Visual density/emphasis strategy mapped by consumers to theme tokens. */
|
|
3538
|
+
appearance?: FieldPresentationAppearance;
|
|
3539
|
+
/** Optional formatter override for the presentation surface only. */
|
|
3540
|
+
valuePresentation?: ValuePresentationConfig;
|
|
3541
|
+
/** Renderer-neutral micro visualization metadata for compact presentation surfaces. */
|
|
3542
|
+
visualization?: PraxisPresentationVisualizationConfig;
|
|
3543
|
+
/** Safe readonly affordances. No commands or mutations are executed from this contract. */
|
|
3544
|
+
interactions?: FieldPresentationInteractions;
|
|
3545
|
+
}
|
|
3546
|
+
interface FieldPresentationRule {
|
|
3547
|
+
/** Json Logic guard evaluated against the presentation context. */
|
|
3548
|
+
when: JsonLogicExpression;
|
|
3549
|
+
/** Semantic presentation state merged when the guard is truthy. */
|
|
3550
|
+
set?: FieldPresentationConfig;
|
|
3551
|
+
/** Alias for `set`, useful for rule-builder terminology. */
|
|
3552
|
+
effect?: FieldPresentationConfig;
|
|
3553
|
+
}
|
|
3554
|
+
interface ResolvedFieldPresentation extends FieldPresentationConfig {
|
|
3555
|
+
/** Indicates at least one conditional rule matched the current context. */
|
|
3556
|
+
matchedRule?: boolean;
|
|
3557
|
+
}
|
|
3558
|
+
interface FieldPresentationJsonLogicEvaluator {
|
|
3559
|
+
evaluate(expression: JsonLogicExpression, data: JsonLogicDataRecord): unknown;
|
|
3560
|
+
truthy?(value: unknown): boolean;
|
|
3561
|
+
}
|
|
3562
|
+
interface ResolveFieldPresentationOptions {
|
|
3563
|
+
jsonLogic?: FieldPresentationJsonLogicEvaluator | null;
|
|
3564
|
+
}
|
|
3565
|
+
/**
|
|
3566
|
+
* Resolves readonly field presentation from a base semantic config plus ordered
|
|
3567
|
+
* Json Logic rules. Later matching rules override earlier presentation values.
|
|
3568
|
+
*/
|
|
3569
|
+
declare function resolveFieldPresentation(base: FieldPresentationConfig | null | undefined, rules: readonly FieldPresentationRule[] | null | undefined, context?: JsonLogicDataRecord, options?: ResolveFieldPresentationOptions): ResolvedFieldPresentation;
|
|
3570
|
+
declare function normalizeFieldPresentation(value: FieldPresentationConfig | null | undefined): ResolvedFieldPresentation;
|
|
3571
|
+
|
|
3509
3572
|
/**
|
|
3510
3573
|
* Enum que define os tipos de dados (`TYPE`) disponíveis para configuração dos campos de formulário.
|
|
3511
3574
|
*/
|
|
@@ -3689,69 +3752,6 @@ interface FormHelpPresentationConfig {
|
|
|
3689
3752
|
preferPopoverForControls?: string[];
|
|
3690
3753
|
}
|
|
3691
3754
|
|
|
3692
|
-
type FieldPresentationTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
3693
|
-
type FieldPresentationAppearance = 'plain' | 'soft' | 'outlined' | 'filled';
|
|
3694
|
-
type FieldPresenterKind = 'text' | 'badge' | 'chip' | 'status' | 'iconValue' | 'progress' | 'rating' | 'microVisualization';
|
|
3695
|
-
interface FieldPresentationInteractions {
|
|
3696
|
-
/** Allows readonly surfaces to expose a copy affordance without changing the field value. */
|
|
3697
|
-
copy?: boolean;
|
|
3698
|
-
/** Allows readonly surfaces to expose contextual detail expansion. */
|
|
3699
|
-
details?: boolean;
|
|
3700
|
-
/** Allows readonly surfaces to expose inline expansion for long values. */
|
|
3701
|
-
expand?: boolean;
|
|
3702
|
-
/** Allows readonly surfaces to expose a link affordance when the value is navigable. */
|
|
3703
|
-
link?: boolean;
|
|
3704
|
-
}
|
|
3705
|
-
interface FieldPresentationConfig {
|
|
3706
|
-
/** Semantic display strategy for readonly/presentation surfaces. */
|
|
3707
|
-
presenter?: FieldPresenterKind;
|
|
3708
|
-
/** Alias accepted for schema authors that describe the semantic display as a variant. */
|
|
3709
|
-
variant?: FieldPresenterKind;
|
|
3710
|
-
/** Semantic tone mapped by consumers to theme tokens. */
|
|
3711
|
-
tone?: FieldPresentationTone;
|
|
3712
|
-
/** Material Symbols icon name, without arbitrary HTML. */
|
|
3713
|
-
icon?: string;
|
|
3714
|
-
/** Optional semantic label for status/chip/badge presentations. */
|
|
3715
|
-
label?: string;
|
|
3716
|
-
/** Optional secondary marker rendered by presentation-capable consumers. */
|
|
3717
|
-
badge?: string;
|
|
3718
|
-
/** Optional tooltip text for the presentation wrapper. */
|
|
3719
|
-
tooltip?: string;
|
|
3720
|
-
/** Visual density/emphasis strategy mapped by consumers to theme tokens. */
|
|
3721
|
-
appearance?: FieldPresentationAppearance;
|
|
3722
|
-
/** Optional formatter override for the presentation surface only. */
|
|
3723
|
-
valuePresentation?: ValuePresentationConfig;
|
|
3724
|
-
/** Renderer-neutral micro visualization metadata for compact presentation surfaces. */
|
|
3725
|
-
visualization?: PraxisPresentationVisualizationConfig;
|
|
3726
|
-
/** Safe readonly affordances. No commands or mutations are executed from this contract. */
|
|
3727
|
-
interactions?: FieldPresentationInteractions;
|
|
3728
|
-
}
|
|
3729
|
-
interface FieldPresentationRule {
|
|
3730
|
-
/** Json Logic guard evaluated against the presentation context. */
|
|
3731
|
-
when: JsonLogicExpression;
|
|
3732
|
-
/** Semantic presentation state merged when the guard is truthy. */
|
|
3733
|
-
set?: FieldPresentationConfig;
|
|
3734
|
-
/** Alias for `set`, useful for rule-builder terminology. */
|
|
3735
|
-
effect?: FieldPresentationConfig;
|
|
3736
|
-
}
|
|
3737
|
-
interface ResolvedFieldPresentation extends FieldPresentationConfig {
|
|
3738
|
-
/** Indicates at least one conditional rule matched the current context. */
|
|
3739
|
-
matchedRule?: boolean;
|
|
3740
|
-
}
|
|
3741
|
-
interface FieldPresentationJsonLogicEvaluator {
|
|
3742
|
-
evaluate(expression: JsonLogicExpression, data: JsonLogicDataRecord): unknown;
|
|
3743
|
-
truthy?(value: unknown): boolean;
|
|
3744
|
-
}
|
|
3745
|
-
interface ResolveFieldPresentationOptions {
|
|
3746
|
-
jsonLogic?: FieldPresentationJsonLogicEvaluator | null;
|
|
3747
|
-
}
|
|
3748
|
-
/**
|
|
3749
|
-
* Resolves readonly field presentation from a base semantic config plus ordered
|
|
3750
|
-
* Json Logic rules. Later matching rules override earlier presentation values.
|
|
3751
|
-
*/
|
|
3752
|
-
declare function resolveFieldPresentation(base: FieldPresentationConfig | null | undefined, rules: readonly FieldPresentationRule[] | null | undefined, context?: JsonLogicDataRecord, options?: ResolveFieldPresentationOptions): ResolvedFieldPresentation;
|
|
3753
|
-
declare function normalizeFieldPresentation(value: FieldPresentationConfig | null | undefined): ResolvedFieldPresentation;
|
|
3754
|
-
|
|
3755
3755
|
/**
|
|
3756
3756
|
* @fileoverview Base metadata interfaces for dynamic Angular Material components
|
|
3757
3757
|
*
|
|
@@ -4474,6 +4474,7 @@ interface FieldDefinition {
|
|
|
4474
4474
|
filterOptions?: any[];
|
|
4475
4475
|
numericFormat?: string;
|
|
4476
4476
|
valuePresentation?: ValuePresentationConfig;
|
|
4477
|
+
presentation?: FieldPresentationConfig;
|
|
4477
4478
|
numericStep?: number;
|
|
4478
4479
|
numericMin?: number;
|
|
4479
4480
|
numericMax?: number;
|