@praxisui/table-rule-builder 9.0.0-beta.9 → 9.0.0-beta.90

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/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@praxisui/table-rule-builder",
3
- "version": "9.0.0-beta.9",
3
+ "version": "9.0.0-beta.90",
4
4
  "description": "Praxis Table Rule Builder: UI components and engine utils for table rules",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
7
7
  "@angular/core": "^21.0.0",
8
8
  "@angular/forms": "^21.0.0",
9
9
  "@angular/material": "^21.0.0",
10
- "@praxisui/ai": "^9.0.0-beta.9",
11
- "@praxisui/core": "^9.0.0-beta.9",
12
- "@praxisui/dynamic-fields": "^9.0.0-beta.9",
10
+ "@praxisui/ai": "^9.0.0-beta.90",
11
+ "@praxisui/core": "^9.0.0-beta.90",
12
+ "@praxisui/dynamic-fields": "^9.0.0-beta.90",
13
13
  "rxjs": "~7.8.0"
14
14
  },
15
15
  "dependencies": {
@@ -23,6 +23,7 @@
23
23
  "keywords": [
24
24
  "angular",
25
25
  "praxisui",
26
+ "praxis",
26
27
  "table",
27
28
  "rules",
28
29
  "conditional-formatting",
@@ -38,7 +39,10 @@
38
39
  ".": {
39
40
  "types": "./types/praxisui-table-rule-builder.d.ts",
40
41
  "default": "./fesm2022/praxisui-table-rule-builder.mjs"
42
+ },
43
+ "./ai/component-registry.json": {
44
+ "default": "./ai/component-registry.json"
41
45
  }
42
46
  },
43
47
  "type": "module"
44
- }
48
+ }
@@ -1,8 +1,8 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
2
+ import { OnInit, OnDestroy, EventEmitter, Provider } from '@angular/core';
3
3
  import { FormGroup, FormBuilder } from '@angular/forms';
4
+ import { PraxisI18nService, PraxisI18nConfig, ComponentAuthoringManifest, ComponentDocMeta } from '@praxisui/core';
4
5
  import { Subject } from 'rxjs';
5
- import { ComponentAuthoringManifest } from '@praxisui/core';
6
6
 
7
7
  type RuleScope = 'cell' | 'row' | 'column' | 'table';
8
8
  type RuleAnimationPreset = 'info-soft' | 'success-confirm' | 'warning-attention' | 'critical-alert' | 'audit-review' | 'sync-pending' | 'sla-warning' | 'sla-breach' | 'risk-elevated' | 'risk-critical' | 'audit-warning' | 'sync-warning';
@@ -84,8 +84,16 @@ declare class EffectRegistryService {
84
84
  declare class RuleEffectsPanelComponent implements OnInit, OnDestroy {
85
85
  private fb;
86
86
  private registry;
87
+ private i18n;
88
+ private static readonly DEFAULT_ESTILO_FORM_VALUE;
89
+ private static readonly DEFAULT_LAYOUT_FORM_VALUE;
90
+ private static readonly DEFAULT_ICON_BADGE_FORM_VALUE;
91
+ private static readonly DEFAULT_BACKGROUND_FORM_VALUE;
87
92
  private static readonly DEFAULT_ANIMATION_FORM_VALUE;
88
- labels: Record<string, string>;
93
+ private static readonly DEFAULT_TOOLTIP_FORM_VALUE;
94
+ private _labelOverrides;
95
+ set labels(value: Record<string, string> | null | undefined);
96
+ get labels(): Record<string, string>;
89
97
  t(key: string): string;
90
98
  scope: RuleScope;
91
99
  private _value?;
@@ -99,7 +107,8 @@ declare class RuleEffectsPanelComponent implements OnInit, OnDestroy {
99
107
  destroy$: Subject<void>;
100
108
  isHovering: boolean;
101
109
  readonly tabOrder: Array<typeof this.activeTab>;
102
- constructor(fb: FormBuilder, registry: EffectRegistryService);
110
+ get conditionalSurfacePreviewUnresolved(): boolean;
111
+ constructor(fb: FormBuilder, registry: EffectRegistryService, i18n: PraxisI18nService);
103
112
  ngOnInit(): void;
104
113
  patchForm(v: RuleEffectDefinition): void;
105
114
  setTab(tab: typeof this.activeTab): void;
@@ -124,10 +133,13 @@ declare class RuleEffectsPanelComponent implements OnInit, OnDestroy {
124
133
  badgeBackground(v: RuleEffectDefinition): string | null;
125
134
  badgeBorder(v: RuleEffectDefinition): string | null;
126
135
  private toEffectDefinitionForEmit;
136
+ private nonEmptyString;
137
+ private toFiniteNumber;
138
+ private createDefaultFormValue;
127
139
  private normalizeAnimationForEmit;
128
140
  private toNonNegativeMs;
129
141
  static ɵfac: i0.ɵɵFactoryDeclaration<RuleEffectsPanelComponent, never>;
130
- static ɵcmp: i0.ɵɵComponentDeclaration<RuleEffectsPanelComponent, "praxis-rule-effects-panel", never, { "scope": { "alias": "scope"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "apply": "apply"; "reset": "reset"; }, never, never, true, never>;
142
+ static ɵcmp: i0.ɵɵComponentDeclaration<RuleEffectsPanelComponent, "praxis-rule-effects-panel", never, { "labels": { "alias": "labels"; "required": false; }; "scope": { "alias": "scope"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "apply": "apply"; "reset": "reset"; }, never, never, true, never>;
131
143
  }
132
144
 
133
145
  declare const DEFAULT_EFFECT_PRESETS: Record<string, RuleEffectDefinition>;
@@ -140,43 +152,71 @@ declare function toCellClassAndStyle(effect: RuleEffectDefinition, options?: {
140
152
  };
141
153
 
142
154
  declare class EstiloEditorComponent {
155
+ private readonly i18n;
143
156
  group: FormGroup;
157
+ constructor(i18n: PraxisI18nService);
158
+ tx(key: string, fallback: string): string;
144
159
  formatOpacity(v: number | null): string;
145
160
  static ɵfac: i0.ɵɵFactoryDeclaration<EstiloEditorComponent, never>;
146
161
  static ɵcmp: i0.ɵɵComponentDeclaration<EstiloEditorComponent, "praxis-effects-estilo-editor", never, { "group": { "alias": "group"; "required": false; }; }, {}, never, never, true, never>;
147
162
  }
148
163
 
149
164
  declare class LayoutEditorComponent {
165
+ private readonly i18n;
150
166
  group: FormGroup;
167
+ constructor(i18n: PraxisI18nService);
168
+ tx(key: string, fallback: string): string;
151
169
  static ɵfac: i0.ɵɵFactoryDeclaration<LayoutEditorComponent, never>;
152
170
  static ɵcmp: i0.ɵɵComponentDeclaration<LayoutEditorComponent, "praxis-effects-layout-editor", never, { "group": { "alias": "group"; "required": false; }; }, {}, never, never, true, never>;
153
171
  }
154
172
 
155
173
  declare class IconeBadgeEditorComponent {
174
+ private readonly i18n;
156
175
  group: FormGroup;
176
+ constructor(i18n: PraxisI18nService);
177
+ tx(key: string, fallback: string): string;
157
178
  static ɵfac: i0.ɵɵFactoryDeclaration<IconeBadgeEditorComponent, never>;
158
179
  static ɵcmp: i0.ɵɵComponentDeclaration<IconeBadgeEditorComponent, "praxis-effects-icone-badge-editor", never, { "group": { "alias": "group"; "required": false; }; }, {}, never, never, true, never>;
159
180
  }
160
181
 
161
182
  declare class FundoEditorComponent {
183
+ private readonly i18n;
162
184
  group: FormGroup;
185
+ constructor(i18n: PraxisI18nService);
186
+ tx(key: string, fallback: string): string;
163
187
  static ɵfac: i0.ɵɵFactoryDeclaration<FundoEditorComponent, never>;
164
188
  static ɵcmp: i0.ɵɵComponentDeclaration<FundoEditorComponent, "praxis-effects-fundo-editor", never, { "group": { "alias": "group"; "required": false; }; }, {}, never, never, true, never>;
165
189
  }
166
190
 
167
191
  declare class AnimacaoEditorComponent {
192
+ private readonly i18n;
168
193
  group: FormGroup;
194
+ constructor(i18n: PraxisI18nService);
195
+ tx(key: string, fallback: string): string;
169
196
  static ɵfac: i0.ɵɵFactoryDeclaration<AnimacaoEditorComponent, never>;
170
197
  static ɵcmp: i0.ɵɵComponentDeclaration<AnimacaoEditorComponent, "praxis-effects-animacao-editor", never, { "group": { "alias": "group"; "required": false; }; }, {}, never, never, true, never>;
171
198
  }
172
199
 
173
200
  declare class TooltipEditorComponent {
201
+ private readonly i18n;
174
202
  group: FormGroup;
203
+ constructor(i18n: PraxisI18nService);
204
+ tx(key: string, fallback: string): string;
175
205
  static ɵfac: i0.ɵɵFactoryDeclaration<TooltipEditorComponent, never>;
176
206
  static ɵcmp: i0.ɵɵComponentDeclaration<TooltipEditorComponent, "praxis-effects-tooltip-editor", never, { "group": { "alias": "group"; "required": false; }; }, {}, never, never, true, never>;
177
207
  }
178
208
 
209
+ declare const PRAXIS_TABLE_RULE_BUILDER_I18N_NAMESPACE = "praxisTableRuleBuilder";
210
+ declare const PRAXIS_TABLE_RULE_BUILDER_LABEL_KEYS: readonly ["panel.title", "panel.subtitle", "tabs.estilo", "tabs.layout", "tabs.icone", "tabs.fundo", "tabs.animacao", "tabs.tooltip", "preview.title", "preview.hint", "advanced.title", "advanced.description", "actions.apply", "actions.reset", "presets.label", "presets.aprovado", "presets.alerta", "presets.erro", "presets.info", "tabs.ariaLabel", "preview.sampleText", "advanced.cssClass", "advanced.inlineStyle", "advanced.descriptionPlaceholder", "advanced.cssClassPlaceholder", "advanced.inlineStylePlaceholder"];
211
+ type PraxisTableRuleBuilderLabelKey = typeof PRAXIS_TABLE_RULE_BUILDER_LABEL_KEYS[number];
212
+ declare const PRAXIS_TABLE_RULE_BUILDER_I18N_CONFIG: Partial<PraxisI18nConfig>;
213
+
179
214
  declare const PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST: ComponentAuthoringManifest;
180
215
 
181
- export { AnimacaoEditorComponent, DEFAULT_EFFECT_PRESETS, EffectRegistryService, EstiloEditorComponent, FundoEditorComponent, IconeBadgeEditorComponent, LayoutEditorComponent, PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST, RuleEffectsPanelComponent, TooltipEditorComponent, toCellClassAndStyle };
182
- export type { EffectEditorPlugin, RuleAnimationIntensity, RuleAnimationPreset, RuleAnimationRepeat, RuleAnimationTrigger, RuleAnimationType, RuleEffectDefinition, RuleScope };
216
+ /** Metadata for Praxis Table Rule Builder component */
217
+ declare const PRAXIS_TABLE_RULE_BUILDER_COMPONENT_METADATA: ComponentDocMeta;
218
+ /** Provider para auto-registrar metadados do componente Table Rule Builder. */
219
+ declare function providePraxisTableRuleBuilderMetadata(): Provider;
220
+
221
+ export { AnimacaoEditorComponent, DEFAULT_EFFECT_PRESETS, EffectRegistryService, EstiloEditorComponent, FundoEditorComponent, IconeBadgeEditorComponent, LayoutEditorComponent, PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST, PRAXIS_TABLE_RULE_BUILDER_COMPONENT_METADATA, PRAXIS_TABLE_RULE_BUILDER_I18N_CONFIG, PRAXIS_TABLE_RULE_BUILDER_I18N_NAMESPACE, PRAXIS_TABLE_RULE_BUILDER_LABEL_KEYS, RuleEffectsPanelComponent, TooltipEditorComponent, providePraxisTableRuleBuilderMetadata, toCellClassAndStyle };
222
+ export type { EffectEditorPlugin, PraxisTableRuleBuilderLabelKey, RuleAnimationIntensity, RuleAnimationPreset, RuleAnimationRepeat, RuleAnimationTrigger, RuleAnimationType, RuleEffectDefinition, RuleScope };