@praxisui/metadata-editor 8.0.0-beta.9 → 8.0.0-beta.91

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,10 +1,18 @@
1
1
  {
2
2
  "name": "@praxisui/metadata-editor",
3
- "version": "8.0.0-beta.9",
3
+ "version": "8.0.0-beta.91",
4
4
  "description": "Metadata editor for Praxis UI fields and components with runtime integration.",
5
5
  "peerDependencies": {
6
- "@angular/common": "^20.0.0",
7
- "@angular/core": "^20.0.0"
6
+ "@angular/common": "^21.0.0",
7
+ "@angular/core": "^21.0.0",
8
+ "@angular/cdk": "^21.0.0",
9
+ "@angular/forms": "^21.0.0",
10
+ "@angular/material": "^21.0.0",
11
+ "@praxisui/ai": "^8.0.0-beta.91",
12
+ "@praxisui/core": "^8.0.0-beta.91",
13
+ "@praxisui/dynamic-fields": "^8.0.0-beta.91",
14
+ "@praxisui/settings-panel": "^8.0.0-beta.91",
15
+ "rxjs": "~7.8.0"
8
16
  },
9
17
  "dependencies": {
10
18
  "tslib": "^2.3.0"
@@ -31,14 +39,15 @@
31
39
  ],
32
40
  "sideEffects": false,
33
41
  "module": "fesm2022/praxisui-metadata-editor.mjs",
34
- "typings": "index.d.ts",
42
+ "typings": "types/praxisui-metadata-editor.d.ts",
35
43
  "exports": {
36
44
  "./package.json": {
37
45
  "default": "./package.json"
38
46
  },
39
47
  ".": {
40
- "types": "./index.d.ts",
48
+ "types": "./types/praxisui-metadata-editor.d.ts",
41
49
  "default": "./fesm2022/praxisui-metadata-editor.mjs"
42
50
  }
43
- }
51
+ },
52
+ "type": "module"
44
53
  }
@@ -1,5 +1,5 @@
1
1
  import { ValidatorFn, FormBuilder, FormGroup, AbstractControl } from '@angular/forms';
2
- import { FieldControlType, FieldDefinition, FieldMetadata, IconPickerService, AiCapabilityCatalog, ComponentDocMeta } from '@praxisui/core';
2
+ import { FieldControlType, FieldDefinition, FieldMetadata, IconPickerService, AiCapabilityCatalog, ComponentAuthoringManifest, ComponentDocMeta } from '@praxisui/core';
3
3
  import * as i0 from '@angular/core';
4
4
  import { Type, OnChanges, SimpleChanges, OnInit, EventEmitter, Provider } from '@angular/core';
5
5
  import { MatDialog } from '@angular/material/dialog';
@@ -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<{
@@ -156,6 +157,7 @@ declare class FieldMetadataEditorComponent implements OnInit {
156
157
  private normalizeEntityLookupPatchValues;
157
158
  private normalizeStringListProperty;
158
159
  private normalizeJsonObjectProperty;
160
+ private normalizeJsonArrayProperty;
159
161
  private normalizeArrayPatchValues;
160
162
  private normalizeArrayCountRuleValue;
161
163
  private toEditorControlValue;
@@ -176,6 +178,14 @@ declare class FieldMetadataEditorComponent implements OnInit {
176
178
  onControlTypeChange(next: FieldControlType): void;
177
179
  onControlTypeChangeEvent(event: Event): void;
178
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;
179
189
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldMetadataEditorComponent, never>;
180
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>;
181
191
  }
@@ -291,10 +301,12 @@ interface AiComponentCapabilities {
291
301
  declare const METADATA_EDITOR_AI_CAPABILITIES: AiComponentCapabilities;
292
302
  declare const METADATA_EDITOR_AI_CAPABILITY_CATALOG: AiCapabilityCatalog;
293
303
 
304
+ declare const PRAXIS_METADATA_EDITOR_AUTHORING_MANIFEST: ComponentAuthoringManifest;
305
+
294
306
  /** Metadata for Praxis Metadata Editor component */
295
307
  declare const PRAXIS_METADATA_EDITOR_COMPONENT_METADATA: ComponentDocMeta;
296
308
  /** Provider para auto-registrar metadados do componente Metadata Editor. */
297
309
  declare function providePraxisMetadataEditorMetadata(): Provider;
298
310
 
299
- export { CascadeManagerTabComponent, CascadeRulesService, ConfigRegistryService, ContextValidatorRegistryService, DynamicEditorRendererComponent, DynamicFormFactoryService, EditorComponentRegistryService, FieldMetadataEditorComponent, METADATA_EDITOR_AI_CAPABILITIES, METADATA_EDITOR_AI_CAPABILITY_CATALOG, PRAXIS_METADATA_EDITOR_COMPONENT_METADATA, SchemaNormalizerService, providePraxisMetadataEditorMetadata };
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 };
300
312
  export type { CascadeRuleViewModel, ConfigMap, EditorProperty };