@praxisui/table-rule-builder 9.0.0-beta.27 → 9.0.0-beta.29
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.
|
|
3
|
+
"version": "9.0.0-beta.29",
|
|
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.
|
|
11
|
-
"@praxisui/core": "^9.0.0-beta.
|
|
12
|
-
"@praxisui/dynamic-fields": "^9.0.0-beta.
|
|
10
|
+
"@praxisui/ai": "^9.0.0-beta.29",
|
|
11
|
+
"@praxisui/core": "^9.0.0-beta.29",
|
|
12
|
+
"@praxisui/dynamic-fields": "^9.0.0-beta.29",
|
|
13
13
|
"rxjs": "~7.8.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
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, ComponentDocMeta } 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
|
-
|
|
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,7 @@ 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
|
+
constructor(fb: FormBuilder, registry: EffectRegistryService, i18n: PraxisI18nService);
|
|
103
111
|
ngOnInit(): void;
|
|
104
112
|
patchForm(v: RuleEffectDefinition): void;
|
|
105
113
|
setTab(tab: typeof this.activeTab): void;
|
|
@@ -124,10 +132,13 @@ declare class RuleEffectsPanelComponent implements OnInit, OnDestroy {
|
|
|
124
132
|
badgeBackground(v: RuleEffectDefinition): string | null;
|
|
125
133
|
badgeBorder(v: RuleEffectDefinition): string | null;
|
|
126
134
|
private toEffectDefinitionForEmit;
|
|
135
|
+
private nonEmptyString;
|
|
136
|
+
private toFiniteNumber;
|
|
137
|
+
private createDefaultFormValue;
|
|
127
138
|
private normalizeAnimationForEmit;
|
|
128
139
|
private toNonNegativeMs;
|
|
129
140
|
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>;
|
|
141
|
+
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
142
|
}
|
|
132
143
|
|
|
133
144
|
declare const DEFAULT_EFFECT_PRESETS: Record<string, RuleEffectDefinition>;
|
|
@@ -140,42 +151,65 @@ declare function toCellClassAndStyle(effect: RuleEffectDefinition, options?: {
|
|
|
140
151
|
};
|
|
141
152
|
|
|
142
153
|
declare class EstiloEditorComponent {
|
|
154
|
+
private readonly i18n;
|
|
143
155
|
group: FormGroup;
|
|
156
|
+
constructor(i18n: PraxisI18nService);
|
|
157
|
+
tx(key: string, fallback: string): string;
|
|
144
158
|
formatOpacity(v: number | null): string;
|
|
145
159
|
static ɵfac: i0.ɵɵFactoryDeclaration<EstiloEditorComponent, never>;
|
|
146
160
|
static ɵcmp: i0.ɵɵComponentDeclaration<EstiloEditorComponent, "praxis-effects-estilo-editor", never, { "group": { "alias": "group"; "required": false; }; }, {}, never, never, true, never>;
|
|
147
161
|
}
|
|
148
162
|
|
|
149
163
|
declare class LayoutEditorComponent {
|
|
164
|
+
private readonly i18n;
|
|
150
165
|
group: FormGroup;
|
|
166
|
+
constructor(i18n: PraxisI18nService);
|
|
167
|
+
tx(key: string, fallback: string): string;
|
|
151
168
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutEditorComponent, never>;
|
|
152
169
|
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutEditorComponent, "praxis-effects-layout-editor", never, { "group": { "alias": "group"; "required": false; }; }, {}, never, never, true, never>;
|
|
153
170
|
}
|
|
154
171
|
|
|
155
172
|
declare class IconeBadgeEditorComponent {
|
|
173
|
+
private readonly i18n;
|
|
156
174
|
group: FormGroup;
|
|
175
|
+
constructor(i18n: PraxisI18nService);
|
|
176
|
+
tx(key: string, fallback: string): string;
|
|
157
177
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconeBadgeEditorComponent, never>;
|
|
158
178
|
static ɵcmp: i0.ɵɵComponentDeclaration<IconeBadgeEditorComponent, "praxis-effects-icone-badge-editor", never, { "group": { "alias": "group"; "required": false; }; }, {}, never, never, true, never>;
|
|
159
179
|
}
|
|
160
180
|
|
|
161
181
|
declare class FundoEditorComponent {
|
|
182
|
+
private readonly i18n;
|
|
162
183
|
group: FormGroup;
|
|
184
|
+
constructor(i18n: PraxisI18nService);
|
|
185
|
+
tx(key: string, fallback: string): string;
|
|
163
186
|
static ɵfac: i0.ɵɵFactoryDeclaration<FundoEditorComponent, never>;
|
|
164
187
|
static ɵcmp: i0.ɵɵComponentDeclaration<FundoEditorComponent, "praxis-effects-fundo-editor", never, { "group": { "alias": "group"; "required": false; }; }, {}, never, never, true, never>;
|
|
165
188
|
}
|
|
166
189
|
|
|
167
190
|
declare class AnimacaoEditorComponent {
|
|
191
|
+
private readonly i18n;
|
|
168
192
|
group: FormGroup;
|
|
193
|
+
constructor(i18n: PraxisI18nService);
|
|
194
|
+
tx(key: string, fallback: string): string;
|
|
169
195
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnimacaoEditorComponent, never>;
|
|
170
196
|
static ɵcmp: i0.ɵɵComponentDeclaration<AnimacaoEditorComponent, "praxis-effects-animacao-editor", never, { "group": { "alias": "group"; "required": false; }; }, {}, never, never, true, never>;
|
|
171
197
|
}
|
|
172
198
|
|
|
173
199
|
declare class TooltipEditorComponent {
|
|
200
|
+
private readonly i18n;
|
|
174
201
|
group: FormGroup;
|
|
202
|
+
constructor(i18n: PraxisI18nService);
|
|
203
|
+
tx(key: string, fallback: string): string;
|
|
175
204
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipEditorComponent, never>;
|
|
176
205
|
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipEditorComponent, "praxis-effects-tooltip-editor", never, { "group": { "alias": "group"; "required": false; }; }, {}, never, never, true, never>;
|
|
177
206
|
}
|
|
178
207
|
|
|
208
|
+
declare const PRAXIS_TABLE_RULE_BUILDER_I18N_NAMESPACE = "praxisTableRuleBuilder";
|
|
209
|
+
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"];
|
|
210
|
+
type PraxisTableRuleBuilderLabelKey = typeof PRAXIS_TABLE_RULE_BUILDER_LABEL_KEYS[number];
|
|
211
|
+
declare const PRAXIS_TABLE_RULE_BUILDER_I18N_CONFIG: Partial<PraxisI18nConfig>;
|
|
212
|
+
|
|
179
213
|
declare const PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST: ComponentAuthoringManifest;
|
|
180
214
|
|
|
181
215
|
/** Metadata for Praxis Table Rule Builder component */
|
|
@@ -183,5 +217,5 @@ declare const PRAXIS_TABLE_RULE_BUILDER_COMPONENT_METADATA: ComponentDocMeta;
|
|
|
183
217
|
/** Provider para auto-registrar metadados do componente Table Rule Builder. */
|
|
184
218
|
declare function providePraxisTableRuleBuilderMetadata(): Provider;
|
|
185
219
|
|
|
186
|
-
export { AnimacaoEditorComponent, DEFAULT_EFFECT_PRESETS, EffectRegistryService, EstiloEditorComponent, FundoEditorComponent, IconeBadgeEditorComponent, LayoutEditorComponent, PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST, PRAXIS_TABLE_RULE_BUILDER_COMPONENT_METADATA, RuleEffectsPanelComponent, TooltipEditorComponent, providePraxisTableRuleBuilderMetadata, toCellClassAndStyle };
|
|
187
|
-
export type { EffectEditorPlugin, RuleAnimationIntensity, RuleAnimationPreset, RuleAnimationRepeat, RuleAnimationTrigger, RuleAnimationType, RuleEffectDefinition, RuleScope };
|
|
220
|
+
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 };
|
|
221
|
+
export type { EffectEditorPlugin, PraxisTableRuleBuilderLabelKey, RuleAnimationIntensity, RuleAnimationPreset, RuleAnimationRepeat, RuleAnimationTrigger, RuleAnimationType, RuleEffectDefinition, RuleScope };
|