@praxisui/metadata-editor 8.0.0-beta.7 → 8.0.0-beta.71
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/README.md +35 -0
- package/fesm2022/praxisui-metadata-editor.mjs +3283 -757
- package/package.json +15 -6
- package/{index.d.ts → types/praxisui-metadata-editor.d.ts} +20 -2
package/package.json
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/metadata-editor",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.71",
|
|
4
4
|
"description": "Metadata editor for Praxis UI fields and components with runtime integration.",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@angular/common": "^
|
|
7
|
-
"@angular/core": "^
|
|
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.71",
|
|
12
|
+
"@praxisui/core": "^8.0.0-beta.71",
|
|
13
|
+
"@praxisui/dynamic-fields": "^8.0.0-beta.71",
|
|
14
|
+
"@praxisui/settings-panel": "^8.0.0-beta.71",
|
|
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": "
|
|
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": "./
|
|
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<{
|
|
@@ -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,10 +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
|
|
|
304
|
+
declare const PRAXIS_METADATA_EDITOR_AUTHORING_MANIFEST: ComponentAuthoringManifest;
|
|
305
|
+
|
|
288
306
|
/** Metadata for Praxis Metadata Editor component */
|
|
289
307
|
declare const PRAXIS_METADATA_EDITOR_COMPONENT_METADATA: ComponentDocMeta;
|
|
290
308
|
/** Provider para auto-registrar metadados do componente Metadata Editor. */
|
|
291
309
|
declare function providePraxisMetadataEditorMetadata(): Provider;
|
|
292
310
|
|
|
293
|
-
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 };
|
|
294
312
|
export type { CascadeRuleViewModel, ConfigMap, EditorProperty };
|