@praxisui/metadata-editor 8.0.0-beta.0 → 8.0.0-beta.11
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 +9 -0
- package/fesm2022/praxisui-metadata-editor.mjs +1550 -29
- package/index.d.ts +24 -3
- package/package.json +1 -1
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, 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
|
|
@@ -169,6 +176,15 @@ declare class FieldMetadataEditorComponent implements OnInit {
|
|
|
169
176
|
reset(): void;
|
|
170
177
|
onControlTypeChange(next: FieldControlType): void;
|
|
171
178
|
onControlTypeChangeEvent(event: Event): void;
|
|
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;
|
|
172
188
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldMetadataEditorComponent, never>;
|
|
173
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>;
|
|
174
190
|
}
|
|
@@ -284,5 +300,10 @@ interface AiComponentCapabilities {
|
|
|
284
300
|
declare const METADATA_EDITOR_AI_CAPABILITIES: AiComponentCapabilities;
|
|
285
301
|
declare const METADATA_EDITOR_AI_CAPABILITY_CATALOG: AiCapabilityCatalog;
|
|
286
302
|
|
|
287
|
-
|
|
303
|
+
/** Metadata for Praxis Metadata Editor component */
|
|
304
|
+
declare const PRAXIS_METADATA_EDITOR_COMPONENT_METADATA: ComponentDocMeta;
|
|
305
|
+
/** Provider para auto-registrar metadados do componente Metadata Editor. */
|
|
306
|
+
declare function providePraxisMetadataEditorMetadata(): Provider;
|
|
307
|
+
|
|
308
|
+
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 };
|
|
288
309
|
export type { CascadeRuleViewModel, ConfigMap, EditorProperty };
|
package/package.json
CHANGED