@praxisui/manual-form 4.0.0-beta.0 → 5.0.0-beta.0
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-manual-form.mjs +3 -3
- package/index.d.ts +3 -3
- package/package.json +5 -5
|
@@ -978,8 +978,8 @@ const MANUAL_FORM_AI_CAPABILITIES = {
|
|
|
978
978
|
{ path: 'api.timeout', category: 'api', valueKind: 'number', description: 'Timeout da operacao de API em milissegundos.' },
|
|
979
979
|
{ path: 'api.headers', category: 'api', valueKind: 'object', description: 'Headers HTTP adicionais enviados nas operacoes de API.' },
|
|
980
980
|
{ path: 'api.idField', category: 'api', valueKind: 'string', description: 'Campo que representa o identificador primario no payload remoto.' },
|
|
981
|
-
{ path: 'api.beforeSave', category: 'api', valueKind: 'expression', description: 'Hook antes de salvar
|
|
982
|
-
{ path: 'api.afterLoad', category: 'api', valueKind: 'expression', description: 'Hook apos carregar
|
|
981
|
+
{ path: 'api.beforeSave', category: 'api', valueKind: 'expression', description: 'Hook/callback do host antes de salvar. Nao e Json Logic nem expressao computada serializavel.', safetyNotes: 'Deve ser fornecido pelo host.' },
|
|
982
|
+
{ path: 'api.afterLoad', category: 'api', valueKind: 'expression', description: 'Hook/callback do host apos carregar. Nao e Json Logic nem expressao computada serializavel.', safetyNotes: 'Deve ser fornecido pelo host.' },
|
|
983
983
|
// --- Messages ---
|
|
984
984
|
{ path: 'messages', category: 'messages', valueKind: 'object', description: 'Mensagens e i18n do formulario.' },
|
|
985
985
|
{ path: 'messages.updateRegistrySuccess', category: 'messages', valueKind: 'string', description: 'Mensagem de sucesso ao atualizar registro.' },
|
|
@@ -1012,7 +1012,7 @@ const MANUAL_FORM_AI_CAPABILITIES = {
|
|
|
1012
1012
|
{ path: 'formRules[].targetFields', category: 'rules', valueKind: 'array', description: 'Alias legado para campos alvo.' },
|
|
1013
1013
|
{ path: 'formRules[].targetFields[]', category: 'rules', valueKind: 'string', description: 'ID do campo alvo (alias legado).' },
|
|
1014
1014
|
{ path: 'formRules[].context', category: 'rules', valueKind: 'enum', allowedValues: ENUMS.formRuleContext, description: 'Contexto legado da regra.' },
|
|
1015
|
-
{ path: 'formRules[].effect.condition', category: 'rules', valueKind: 'expression', description: 'Condicao da regra.' },
|
|
1015
|
+
{ path: 'formRules[].effect.condition', category: 'rules', valueKind: 'expression', description: 'Condicao canonica da regra, expressa em Json Logic.' },
|
|
1016
1016
|
{ path: 'formRules[].effect.properties', category: 'rules', valueKind: 'object', description: 'Propriedades aplicadas quando true.' },
|
|
1017
1017
|
...generateRulePropertyCapabilities('field', RULE_PROPERTY_SCHEMA.field),
|
|
1018
1018
|
...generateRulePropertyCapabilities('section', RULE_PROPERTY_SCHEMA.section),
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FormConfig, FieldMetadata, DynamicFormService, AsyncConfigStorage, FormActionsLayout, FormActionButton, FormMessagesLayout, FormBehaviorLayout, FormHookStage, FieldDefinition, FieldControlType, AiCapabilityCategory, AiValueKind,
|
|
1
|
+
import { FormConfig, FieldMetadata, DynamicFormService, AsyncConfigStorage, FormActionsLayout, FormActionButton, AiCapability, FormMessagesLayout, FormBehaviorLayout, FormHookStage, FieldDefinition, FieldControlType, AiCapabilityCategory, AiValueKind, AiCapabilityCatalog } from '@praxisui/core';
|
|
2
2
|
import { FormGroup, FormControlName, FormGroupName, AbstractControl, FormControl } from '@angular/forms';
|
|
3
3
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
4
4
|
import * as _angular_core from '@angular/core';
|
|
5
5
|
import { AfterContentInit, OnDestroy, OnInit, OnChanges, TemplateRef, ViewContainerRef, SimpleChanges, InjectionToken } from '@angular/core';
|
|
6
|
-
import { BaseAiAdapter,
|
|
6
|
+
import { BaseAiAdapter, PatchResult } from '@praxisui/ai';
|
|
7
7
|
import { SettingsPanelRef } from '@praxisui/settings-panel';
|
|
8
8
|
|
|
9
9
|
type ManualFormId = string;
|
|
@@ -156,7 +156,7 @@ declare class ManualFormAiAdapter extends BaseAiAdapter<FormConfig> {
|
|
|
156
156
|
componentName: string;
|
|
157
157
|
constructor(host: ManualFormComponent);
|
|
158
158
|
getCurrentConfig(): FormConfig;
|
|
159
|
-
getCapabilities():
|
|
159
|
+
getCapabilities(): AiCapability[];
|
|
160
160
|
getRuntimeState(): Record<string, any>;
|
|
161
161
|
createSnapshot(): FormConfig;
|
|
162
162
|
restoreSnapshot(snapshot: FormConfig): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/manual-form",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-beta.0",
|
|
4
4
|
"description": "Manual form toolkit for Praxis UI: container, instance factory and editor bridge for @praxisui/* fields.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.1.0",
|
|
7
7
|
"@angular/core": "^20.1.0",
|
|
8
|
-
"@praxisui/core": "^
|
|
9
|
-
"@praxisui/dynamic-fields": "^
|
|
10
|
-
"@praxisui/settings-panel": "^
|
|
11
|
-
"@praxisui/metadata-editor": "^
|
|
8
|
+
"@praxisui/core": "^5.0.0-beta.0",
|
|
9
|
+
"@praxisui/dynamic-fields": "^5.0.0-beta.0",
|
|
10
|
+
"@praxisui/settings-panel": "^5.0.0-beta.0",
|
|
11
|
+
"@praxisui/metadata-editor": "^5.0.0-beta.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"tslib": "^2.3.0"
|