@praxisui/table-rule-builder 9.0.0-beta.2 → 9.0.0-beta.20

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Input, ChangeDetectionStrategy, Component, Injectable, EventEmitter, Output } from '@angular/core';
2
+ import { Input, ChangeDetectionStrategy, Component, Injectable, EventEmitter, Output, ENVIRONMENT_INITIALIZER } from '@angular/core';
3
3
  import * as i3$1 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import * as i1 from '@angular/forms';
@@ -23,6 +23,7 @@ import { MatButtonToggleModule } from '@angular/material/button-toggle';
23
23
  import * as i6 from '@angular/material/slider';
24
24
  import { MatSliderModule } from '@angular/material/slider';
25
25
  import { PdxColorPickerComponent } from '@praxisui/dynamic-fields';
26
+ import { ComponentMetadataRegistry } from '@praxisui/core';
26
27
 
27
28
  const RULE_ANIMATION_TYPE_SET = new Set([
28
29
  'pulse',
@@ -1731,8 +1732,64 @@ const PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST = {
1731
1732
  ],
1732
1733
  };
1733
1734
 
1735
+ /** Metadata for Praxis Table Rule Builder component */
1736
+ const PRAXIS_TABLE_RULE_BUILDER_COMPONENT_METADATA = {
1737
+ id: 'praxis-table-rule-builder',
1738
+ selector: 'praxis-rule-effects-panel',
1739
+ component: RuleEffectsPanelComponent,
1740
+ friendlyName: 'Praxis Table Rule Builder',
1741
+ description: 'Editor for table rule effects and conditional styling.',
1742
+ inputs: [
1743
+ {
1744
+ name: 'scope',
1745
+ type: 'RuleScope',
1746
+ label: 'Escopo',
1747
+ description: 'Escopo do efeito (cell, row, column, table).',
1748
+ },
1749
+ {
1750
+ name: 'value',
1751
+ type: 'RuleEffectDefinition | undefined',
1752
+ label: 'Valor',
1753
+ description: 'Valor inicial para hidratar o formulario.',
1754
+ },
1755
+ ],
1756
+ outputs: [
1757
+ {
1758
+ name: 'valueChange',
1759
+ type: 'RuleEffectDefinition',
1760
+ label: 'Mudanca de valor',
1761
+ description: 'Disparado quando o valor consolidado e atualizado.',
1762
+ },
1763
+ {
1764
+ name: 'apply',
1765
+ type: 'void',
1766
+ label: 'Aplicar',
1767
+ description: 'Disparado quando o usuario aplica as mudancas.',
1768
+ },
1769
+ {
1770
+ name: 'reset',
1771
+ type: 'void',
1772
+ label: 'Resetar',
1773
+ description: 'Disparado quando o usuario reseta o formulario.',
1774
+ },
1775
+ ],
1776
+ tags: ['widget', 'rules', 'table', 'configurable'],
1777
+ lib: '@praxisui/table-rule-builder',
1778
+ };
1779
+ /** Provider para auto-registrar metadados do componente Table Rule Builder. */
1780
+ function providePraxisTableRuleBuilderMetadata() {
1781
+ return {
1782
+ provide: ENVIRONMENT_INITIALIZER,
1783
+ multi: true,
1784
+ useFactory: (registry) => () => {
1785
+ registry.register(PRAXIS_TABLE_RULE_BUILDER_COMPONENT_METADATA);
1786
+ },
1787
+ deps: [ComponentMetadataRegistry],
1788
+ };
1789
+ }
1790
+
1734
1791
  /**
1735
1792
  * Generated bundle index. Do not edit.
1736
1793
  */
1737
1794
 
1738
- export { AnimacaoEditorComponent, DEFAULT_EFFECT_PRESETS, EffectRegistryService, EstiloEditorComponent, FundoEditorComponent, IconeBadgeEditorComponent, LayoutEditorComponent, PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST, RuleEffectsPanelComponent, TooltipEditorComponent, toCellClassAndStyle };
1795
+ 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 };
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@praxisui/table-rule-builder",
3
- "version": "9.0.0-beta.2",
3
+ "version": "9.0.0-beta.20",
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.2",
11
- "@praxisui/core": "^9.0.0-beta.2",
12
- "@praxisui/dynamic-fields": "^9.0.0-beta.2",
10
+ "@praxisui/ai": "^9.0.0-beta.20",
11
+ "@praxisui/core": "^9.0.0-beta.20",
12
+ "@praxisui/dynamic-fields": "^9.0.0-beta.20",
13
13
  "rxjs": "~7.8.0"
14
14
  },
15
15
  "dependencies": {
@@ -19,17 +19,11 @@
19
19
  "publishConfig": {
20
20
  "access": "public"
21
21
  },
22
- "repository": {
23
- "type": "git",
24
- "url": "git+https://github.com/codexrodrigues/praxis-ui-angular.git"
25
- },
26
- "homepage": "https://praxisui.dev",
27
- "bugs": {
28
- "url": "https://github.com/codexrodrigues/praxis-ui-angular/issues"
29
- },
22
+ "homepage": "https://praxisui.dev/components/table",
30
23
  "keywords": [
31
24
  "angular",
32
25
  "praxisui",
26
+ "praxis",
33
27
  "table",
34
28
  "rules",
35
29
  "conditional-formatting",
@@ -45,7 +39,10 @@
45
39
  ".": {
46
40
  "types": "./types/praxisui-table-rule-builder.d.ts",
47
41
  "default": "./fesm2022/praxisui-table-rule-builder.mjs"
42
+ },
43
+ "./ai/component-registry.json": {
44
+ "default": "./ai/component-registry.json"
48
45
  }
49
46
  },
50
47
  "type": "module"
51
- }
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
4
  import { Subject } from 'rxjs';
5
- import { ComponentAuthoringManifest } from '@praxisui/core';
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';
@@ -178,5 +178,10 @@ declare class TooltipEditorComponent {
178
178
 
179
179
  declare const PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST: ComponentAuthoringManifest;
180
180
 
181
- export { AnimacaoEditorComponent, DEFAULT_EFFECT_PRESETS, EffectRegistryService, EstiloEditorComponent, FundoEditorComponent, IconeBadgeEditorComponent, LayoutEditorComponent, PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST, RuleEffectsPanelComponent, TooltipEditorComponent, toCellClassAndStyle };
181
+ /** Metadata for Praxis Table Rule Builder component */
182
+ declare const PRAXIS_TABLE_RULE_BUILDER_COMPONENT_METADATA: ComponentDocMeta;
183
+ /** Provider para auto-registrar metadados do componente Table Rule Builder. */
184
+ declare function providePraxisTableRuleBuilderMetadata(): Provider;
185
+
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 };
182
187
  export type { EffectEditorPlugin, RuleAnimationIntensity, RuleAnimationPreset, RuleAnimationRepeat, RuleAnimationTrigger, RuleAnimationType, RuleEffectDefinition, RuleScope };