@praxisui/metadata-editor 8.0.0-beta.2 → 8.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.
package/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ValidatorFn, FormBuilder, FormGroup, AbstractControl } from '@angular/forms';
2
- import { FieldControlType, FieldDefinition, FieldMetadata, IconPickerService, AiCapabilityCatalog } from '@praxisui/core';
2
+ import { FieldControlType, FieldDefinition, FieldMetadata, IconPickerService, AiCapabilityCatalog, ComponentAuthoringManifest, ComponentDocMeta } from '@praxisui/core';
3
3
  import * as i0 from '@angular/core';
4
- import { Type, OnChanges, SimpleChanges, OnInit, EventEmitter } from '@angular/core';
4
+ import { Type, OnChanges, SimpleChanges, OnInit, EventEmitter, Provider } from '@angular/core';
5
5
  import { MatDialog } from '@angular/material/dialog';
6
6
  import { BehaviorSubject } from 'rxjs';
7
7
 
@@ -123,6 +123,7 @@ declare class FieldMetadataEditorComponent implements OnInit {
123
123
  cancel: EventEmitter<void>;
124
124
  form: FormGroup;
125
125
  normalizedProps: any[];
126
+ renderedProps: any[];
126
127
  private initialSnapshot;
127
128
  private baselineReady;
128
129
  typeOptions: Array<{
@@ -153,6 +154,13 @@ declare class FieldMetadataEditorComponent implements OnInit {
153
154
  * Evita persistir strings cruas quando o componente espera arrays.
154
155
  */
155
156
  private normalizeKnownTextareaPatchValues;
157
+ private normalizeEntityLookupPatchValues;
158
+ private normalizeStringListProperty;
159
+ private normalizeJsonObjectProperty;
160
+ private normalizeJsonArrayProperty;
161
+ private normalizeArrayPatchValues;
162
+ private normalizeArrayCountRuleValue;
163
+ private toEditorControlValue;
156
164
  /**
157
165
  * Interpreta textarea como lista simples de strings:
158
166
  * - JSON array de strings
@@ -170,6 +178,14 @@ declare class FieldMetadataEditorComponent implements OnInit {
170
178
  onControlTypeChange(next: FieldControlType): void;
171
179
  onControlTypeChangeEvent(event: Event): void;
172
180
  private withSharedFieldMetadataProperties;
181
+ get isArrayEditor(): boolean;
182
+ private buildRenderedProps;
183
+ private cloneSnapshot;
184
+ private cloneMetadataValue;
185
+ private canEmitSettingsValue;
186
+ private validateArrayItemSchemaFields;
187
+ private parseArrayItemFields;
188
+ private setControlError;
173
189
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldMetadataEditorComponent, never>;
174
190
  static ɵcmp: i0.ɵɵComponentDeclaration<FieldMetadataEditorComponent, "praxis-field-metadata-editor", never, { "controlType": { "alias": "controlType"; "required": false; }; "seed": { "alias": "seed"; "required": false; }; }, { "applied": "applied"; "cancel": "cancel"; }, never, never, true, never>;
175
191
  }
@@ -285,5 +301,12 @@ interface AiComponentCapabilities {
285
301
  declare const METADATA_EDITOR_AI_CAPABILITIES: AiComponentCapabilities;
286
302
  declare const METADATA_EDITOR_AI_CAPABILITY_CATALOG: AiCapabilityCatalog;
287
303
 
288
- export { CascadeManagerTabComponent, CascadeRulesService, ConfigRegistryService, ContextValidatorRegistryService, DynamicEditorRendererComponent, DynamicFormFactoryService, EditorComponentRegistryService, FieldMetadataEditorComponent, METADATA_EDITOR_AI_CAPABILITIES, METADATA_EDITOR_AI_CAPABILITY_CATALOG, SchemaNormalizerService };
304
+ declare const PRAXIS_METADATA_EDITOR_AUTHORING_MANIFEST: ComponentAuthoringManifest;
305
+
306
+ /** Metadata for Praxis Metadata Editor component */
307
+ declare const PRAXIS_METADATA_EDITOR_COMPONENT_METADATA: ComponentDocMeta;
308
+ /** Provider para auto-registrar metadados do componente Metadata Editor. */
309
+ declare function providePraxisMetadataEditorMetadata(): Provider;
310
+
311
+ export { CascadeManagerTabComponent, CascadeRulesService, ConfigRegistryService, ContextValidatorRegistryService, DynamicEditorRendererComponent, DynamicFormFactoryService, EditorComponentRegistryService, FieldMetadataEditorComponent, METADATA_EDITOR_AI_CAPABILITIES, METADATA_EDITOR_AI_CAPABILITY_CATALOG, PRAXIS_METADATA_EDITOR_AUTHORING_MANIFEST, PRAXIS_METADATA_EDITOR_COMPONENT_METADATA, SchemaNormalizerService, providePraxisMetadataEditorMetadata };
289
312
  export type { CascadeRuleViewModel, ConfigMap, EditorProperty };
package/package.json CHANGED
@@ -1,10 +1,18 @@
1
1
  {
2
2
  "name": "@praxisui/metadata-editor",
3
- "version": "8.0.0-beta.2",
3
+ "version": "8.0.0-beta.20",
4
4
  "description": "Metadata editor for Praxis UI fields and components with runtime integration.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.0.0",
7
- "@angular/core": "^20.0.0"
7
+ "@angular/core": "^20.0.0",
8
+ "@angular/cdk": "^20.0.0",
9
+ "@angular/forms": "^20.0.0",
10
+ "@angular/material": "^20.0.0",
11
+ "@praxisui/ai": "^8.0.0-beta.20",
12
+ "@praxisui/core": "^8.0.0-beta.20",
13
+ "@praxisui/dynamic-fields": "^8.0.0-beta.20",
14
+ "@praxisui/settings-panel": "^8.0.0-beta.20",
15
+ "rxjs": "~7.8.0"
8
16
  },
9
17
  "dependencies": {
10
18
  "tslib": "^2.3.0"