@praxisui/metadata-editor 8.0.0-beta.1 → 8.0.0-beta.3
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/fesm2022/praxisui-metadata-editor.mjs +53 -3
- package/index.d.ts +8 -3
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, inject, Component, Input, ViewEncapsulation, EventEmitter, DestroyRef, Output, signal } from '@angular/core';
|
|
2
|
+
import { Injectable, inject, Component, Input, ViewEncapsulation, EventEmitter, DestroyRef, Output, signal, ENVIRONMENT_INITIALIZER } from '@angular/core';
|
|
3
3
|
import * as i3 from '@angular/forms';
|
|
4
4
|
import { FormControl, FormGroup, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
5
5
|
import * as i3$1 from '@angular/common';
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
7
|
import { DynamicFieldLoaderDirective } from '@praxisui/dynamic-fields';
|
|
8
8
|
import * as i2$1 from '@praxisui/core';
|
|
9
|
-
import { FieldControlType, PraxisIconDirective, INLINE_FILTER_CONTROL_TYPES, resolveInlineFilterControlType, normalizeControlTypeToken } from '@praxisui/core';
|
|
9
|
+
import { FieldControlType, PraxisIconDirective, INLINE_FILTER_CONTROL_TYPES, resolveInlineFilterControlType, normalizeControlTypeToken, ComponentMetadataRegistry } from '@praxisui/core';
|
|
10
10
|
import * as i5 from '@angular/material/expansion';
|
|
11
11
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
12
12
|
import * as i6 from '@angular/material/icon';
|
|
@@ -7293,8 +7293,58 @@ const METADATA_EDITOR_AI_CAPABILITY_CATALOG = {
|
|
|
7293
7293
|
enums: {},
|
|
7294
7294
|
};
|
|
7295
7295
|
|
|
7296
|
+
/** Metadata for Praxis Metadata Editor component */
|
|
7297
|
+
const PRAXIS_METADATA_EDITOR_COMPONENT_METADATA = {
|
|
7298
|
+
id: 'praxis-metadata-editor',
|
|
7299
|
+
selector: 'praxis-field-metadata-editor',
|
|
7300
|
+
component: FieldMetadataEditorComponent,
|
|
7301
|
+
friendlyName: 'Praxis Metadata Editor',
|
|
7302
|
+
description: 'Editor for field metadata and schema helpers.',
|
|
7303
|
+
inputs: [
|
|
7304
|
+
{
|
|
7305
|
+
name: 'controlType',
|
|
7306
|
+
type: 'FieldControlType',
|
|
7307
|
+
label: 'Tipo de controle',
|
|
7308
|
+
description: 'Tipo de controle do campo alvo.',
|
|
7309
|
+
},
|
|
7310
|
+
{
|
|
7311
|
+
name: 'seed',
|
|
7312
|
+
type: 'Partial<FieldDefinition>',
|
|
7313
|
+
label: 'Seed',
|
|
7314
|
+
description: 'Valores iniciais do FieldDefinition para hidratar o editor.',
|
|
7315
|
+
},
|
|
7316
|
+
],
|
|
7317
|
+
outputs: [
|
|
7318
|
+
{
|
|
7319
|
+
name: 'applied',
|
|
7320
|
+
type: 'Partial<FieldDefinition>',
|
|
7321
|
+
label: 'Aplicado',
|
|
7322
|
+
description: 'Disparado quando o patch de metadata e aplicado.',
|
|
7323
|
+
},
|
|
7324
|
+
{
|
|
7325
|
+
name: 'cancel',
|
|
7326
|
+
type: 'void',
|
|
7327
|
+
label: 'Cancelar',
|
|
7328
|
+
description: 'Disparado quando o usuario cancela a edicao.',
|
|
7329
|
+
},
|
|
7330
|
+
],
|
|
7331
|
+
tags: ['widget', 'metadata', 'configurable'],
|
|
7332
|
+
lib: '@praxisui/metadata-editor',
|
|
7333
|
+
};
|
|
7334
|
+
/** Provider para auto-registrar metadados do componente Metadata Editor. */
|
|
7335
|
+
function providePraxisMetadataEditorMetadata() {
|
|
7336
|
+
return {
|
|
7337
|
+
provide: ENVIRONMENT_INITIALIZER,
|
|
7338
|
+
multi: true,
|
|
7339
|
+
useFactory: (registry) => () => {
|
|
7340
|
+
registry.register(PRAXIS_METADATA_EDITOR_COMPONENT_METADATA);
|
|
7341
|
+
},
|
|
7342
|
+
deps: [ComponentMetadataRegistry],
|
|
7343
|
+
};
|
|
7344
|
+
}
|
|
7345
|
+
|
|
7296
7346
|
/**
|
|
7297
7347
|
* Generated bundle index. Do not edit.
|
|
7298
7348
|
*/
|
|
7299
7349
|
|
|
7300
|
-
export { CascadeManagerTabComponent, CascadeRulesService, ConfigRegistryService, ContextValidatorRegistryService, DynamicEditorRendererComponent, DynamicFormFactoryService, EditorComponentRegistryService, FieldMetadataEditorComponent, METADATA_EDITOR_AI_CAPABILITIES, METADATA_EDITOR_AI_CAPABILITY_CATALOG, SchemaNormalizerService };
|
|
7350
|
+
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 };
|
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
|
|
|
@@ -285,5 +285,10 @@ interface AiComponentCapabilities {
|
|
|
285
285
|
declare const METADATA_EDITOR_AI_CAPABILITIES: AiComponentCapabilities;
|
|
286
286
|
declare const METADATA_EDITOR_AI_CAPABILITY_CATALOG: AiCapabilityCatalog;
|
|
287
287
|
|
|
288
|
-
|
|
288
|
+
/** Metadata for Praxis Metadata Editor component */
|
|
289
|
+
declare const PRAXIS_METADATA_EDITOR_COMPONENT_METADATA: ComponentDocMeta;
|
|
290
|
+
/** Provider para auto-registrar metadados do componente Metadata Editor. */
|
|
291
|
+
declare function providePraxisMetadataEditorMetadata(): Provider;
|
|
292
|
+
|
|
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 };
|
|
289
294
|
export type { CascadeRuleViewModel, ConfigMap, EditorProperty };
|
package/package.json
CHANGED