@praxisui/table-rule-builder 9.0.0-beta.3 → 9.0.0-beta.31

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 CHANGED
@@ -31,9 +31,9 @@ Peer dependencies:
31
31
  - `@angular/common` `^21.0.0`
32
32
  - `@angular/forms` `^21.0.0`
33
33
  - `@angular/material` `^21.0.0`
34
- - `@praxisui/ai` `^9.0.0-beta.3`
35
- - `@praxisui/core` `^9.0.0-beta.3`
36
- - `@praxisui/dynamic-fields` `^9.0.0-beta.3`
34
+ - `@praxisui/ai` `^9.0.0-beta.12`
35
+ - `@praxisui/core` `^9.0.0-beta.12`
36
+ - `@praxisui/dynamic-fields` `^9.0.0-beta.12`
37
37
  - `rxjs` `~7.8.0`
38
38
 
39
39
  ## Standalone authoring panel
@@ -53,12 +53,16 @@ import {
53
53
  <praxis-rule-effects-panel
54
54
  scope="cell"
55
55
  [value]="effect"
56
+ [labels]="labels"
56
57
  (valueChange)="effect = $event"
57
58
  (apply)="applyEffect()" />
58
59
  `,
59
60
  })
60
61
  export class RuleEffectsEditorComponent {
61
62
  effect: RuleEffectDefinition = { style: { fontWeight: '600' } };
63
+ labels = {
64
+ 'preview.sampleText': 'Valor de exemplo',
65
+ };
62
66
 
63
67
  applyEffect(): void {
64
68
  // Persist inside the table-owned conditional rule surface.
@@ -83,6 +87,14 @@ When the panel is embedded by `@praxisui/table`, the table rule entry stores the
83
87
 
84
88
  Existing singular `effects: RuleEffectDefinition` payloads are accepted on load and normalized back to the canonical array on apply.
85
89
 
90
+ ## Theming and copy
91
+
92
+ The panel chrome uses Angular Material/Praxis CSS tokens for surfaces, borders, text and elevation so host applications can theme light, dark and high-contrast contexts without patching internal CSS. Effect payload colors remain part of `RuleEffectDefinition` because they describe the conditional visual outcome, not the panel shell.
93
+
94
+ Use the `labels` input to override panel text such as preview sample text, preset names, aria labels and advanced-field placeholders. The input accepts partial maps and merges them with the panel defaults. These labels are host/editor chrome and must not be persisted as table rule semantics.
95
+
96
+ Default panel copy is provided through the exported `praxisTableRuleBuilder` i18n namespace (`PRAXIS_TABLE_RULE_BUILDER_I18N_CONFIG`). Use `labels` only for host-specific copy overrides on top of that catalog.
97
+
86
98
  ## Testes
87
99
 
88
100
  - Target oficial no workspace: `ng test praxis-table-rule-builder --watch=false --browsers=ChromeHeadless`