@praxisui/metadata-editor 8.0.0-beta.1 → 8.0.0-beta.12

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,12 @@ 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 normalizeArrayPatchValues;
161
+ private normalizeArrayCountRuleValue;
162
+ private toEditorControlValue;
156
163
  /**
157
164
  * Interpreta textarea como lista simples de strings:
158
165
  * - JSON array de strings
@@ -170,6 +177,14 @@ declare class FieldMetadataEditorComponent implements OnInit {
170
177
  onControlTypeChange(next: FieldControlType): void;
171
178
  onControlTypeChangeEvent(event: Event): void;
172
179
  private withSharedFieldMetadataProperties;
180
+ get isArrayEditor(): boolean;
181
+ private buildRenderedProps;
182
+ private cloneSnapshot;
183
+ private cloneMetadataValue;
184
+ private canEmitSettingsValue;
185
+ private validateArrayItemSchemaFields;
186
+ private parseArrayItemFields;
187
+ private setControlError;
173
188
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldMetadataEditorComponent, never>;
174
189
  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
190
  }
@@ -285,5 +300,12 @@ interface AiComponentCapabilities {
285
300
  declare const METADATA_EDITOR_AI_CAPABILITIES: AiComponentCapabilities;
286
301
  declare const METADATA_EDITOR_AI_CAPABILITY_CATALOG: AiCapabilityCatalog;
287
302
 
288
- export { CascadeManagerTabComponent, CascadeRulesService, ConfigRegistryService, ContextValidatorRegistryService, DynamicEditorRendererComponent, DynamicFormFactoryService, EditorComponentRegistryService, FieldMetadataEditorComponent, METADATA_EDITOR_AI_CAPABILITIES, METADATA_EDITOR_AI_CAPABILITY_CATALOG, SchemaNormalizerService };
303
+ declare const PRAXIS_METADATA_EDITOR_AUTHORING_MANIFEST: ComponentAuthoringManifest;
304
+
305
+ /** Metadata for Praxis Metadata Editor component */
306
+ declare const PRAXIS_METADATA_EDITOR_COMPONENT_METADATA: ComponentDocMeta;
307
+ /** Provider para auto-registrar metadados do componente Metadata Editor. */
308
+ declare function providePraxisMetadataEditorMetadata(): Provider;
309
+
310
+ 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
311
  export type { CascadeRuleViewModel, ConfigMap, EditorProperty };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxisui/metadata-editor",
3
- "version": "8.0.0-beta.1",
3
+ "version": "8.0.0-beta.12",
4
4
  "description": "Metadata editor for Praxis UI fields and components with runtime integration.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^20.0.0",