@eqproject/eqp-dynamic-module 2.10.51 → 2.10.53

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.
@@ -121,6 +121,26 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
121
121
  selectedContestualizationValue: number;
122
122
  showDeleteButton: boolean;
123
123
  selectedFields: Array<BaseField>;
124
+ dialogAiEditRef: MatDialogRef<TemplateRef<any>>;
125
+ dialogAiEdit: TemplateRef<any>;
126
+ aiEditPrompt: string;
127
+ aiEditAttachments: Array<{
128
+ fileName: string;
129
+ base64Content: string;
130
+ mediaType: string;
131
+ }>;
132
+ aiEditAutosave: boolean;
133
+ aiEditLoading: boolean;
134
+ private readonly AI_MODIFIER_SKILL_TOKENS;
135
+ private readonly AI_TOKENS_PER_FIELD;
136
+ private readonly AI_OUTPUT_TOKENS;
137
+ private readonly AI_PDF_CHARS;
138
+ private readonly AI_CHARS_PER_TOKEN;
139
+ private readonly AI_EUR_USD_RATE;
140
+ get aiEditCostFirstEur(): number;
141
+ get aiEditCostSubsequentEur(): number;
142
+ formatAiEditCost(eur: number): string;
143
+ get isNewForm(): boolean;
124
144
  constructor(formBuilder: UntypedFormBuilder, dialog: MatDialog, utilityHelperService: UtilityHelperService, sanitizer: DomSanitizer);
125
145
  ngOnInit(): void;
126
146
  /**
@@ -355,6 +375,11 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
355
375
  saveTrigger(element: Trigger): void;
356
376
  deleteTrigger(element: Trigger): void;
357
377
  deleteActionButton(element: ActionButton): void;
378
+ openAiEditDialog(): void;
379
+ closeAiEditDialog(): void;
380
+ onAiEditFileChange(event: Event): void;
381
+ removeAiEditAttachment(index: number): void;
382
+ sendAiEdit(): void;
358
383
  onContestualizationSelect(): void;
359
384
  onContestualizationSelectValue(): void;
360
385
  applyContestualization(element: any): void;
@@ -20,6 +20,7 @@ export declare class EndPointConfiguration {
20
20
  SaveEndPoint: EndPointData;
21
21
  SaveAttachmentEndPoint: EndPointData;
22
22
  ExportByIDEndPoint: EndPointData;
23
+ SpeechToFormEditEndPoint: EndPointData;
23
24
  };
24
25
  constructor(baseUrl?: string, userToken?: string);
25
26
  }
@@ -96,7 +96,12 @@ export declare class UtilityHelperService {
96
96
  * @param errorCallBack Metodo da eseguire in caso di errore dopo la chiamata http.
97
97
  * NOTA: in input viene passato l'errore generato della chiamata stessa.
98
98
  */
99
- RunEndPointCall(endPointData: EndPointData, dynamicModuleParams?: Array<EndPointDataParams>, callback?: (e: Form | Array<Form> | Record | Array<Record> | DynAttachment | Array<DynAttachment> | string) => void, errorCallBack?: (err: unknown) => void): void;
99
+ RunEndPointCall(endPointData: EndPointData, dynamicModuleParams?: Array<EndPointDataParams>, callback?: (e: Form | Array<Form> | Record | Array<Record> | DynAttachment | Array<DynAttachment> | string | {
100
+ Form: Form;
101
+ Warnings: string[];
102
+ CostCents: number;
103
+ ElapsedMs: number;
104
+ }) => void, errorCallBack?: (err: unknown) => void): void;
100
105
  static base64ToBlob(b64Data: any, contentType?: string, sliceSize?: number): Blob;
101
106
  static parseValueString(field: any, record: any): any;
102
107
  static ɵfac: i0.ɵɵFactoryDeclaration<UtilityHelperService, never>;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "EqProject"
6
6
  },
7
- "version": "2.10.51",
7
+ "version": "2.10.53",
8
8
  "peerDependencies": {
9
9
  "@angular-material-components/datetime-picker": "^15.0.0",
10
10
  "@angular-material-components/moment-adapter": "^15.0.0",