@eqproject/eqp-dynamic-module 1.0.3 → 1.0.5
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/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +27 -4
- package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +3 -3
- package/esm2020/lib/components/private/field-templates/attachment-field-template/attachment-field-template.component.mjs +5 -1
- package/esm2020/lib/components/private/field-templates/boolean-field-template/boolean-field-template.component.mjs +7 -3
- package/esm2020/lib/components/private/field-templates/date-field-template/date-field-template.component.mjs +5 -1
- package/esm2020/lib/components/private/field-templates/image-field-template/image-field-template.component.mjs +5 -1
- package/esm2020/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.mjs +36 -5
- package/esm2020/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.mjs +13 -3
- package/esm2020/lib/components/private/field-templates/text-field-template/text-field-template.component.mjs +66 -10
- package/esm2020/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.mjs +62 -10
- package/esm2020/lib/eqp-dynamic-module.module.mjs +1 -1
- package/esm2020/lib/models/baseField.model.mjs +1 -1
- package/esm2020/lib/services/utilityHelper.services.mjs +12 -1
- package/esm2020/lib/services/voice-recognition.service.mjs +69 -0
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +316 -57
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +316 -57
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/private/add-form-field/add-form-field.component.d.ts +5 -0
- package/lib/components/private/field-templates/list-value-field-template/list-value-field-template.component.d.ts +5 -1
- package/lib/components/private/field-templates/numeric-field-template/numeric-field-template.component.d.ts +3 -0
- package/lib/components/private/field-templates/text-field-template/text-field-template.component.d.ts +14 -1
- package/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.d.ts +14 -1
- package/lib/models/baseField.model.d.ts +4 -0
- package/lib/services/utilityHelper.services.d.ts +2 -0
- package/lib/services/voice-recognition.service.d.ts +18 -0
- package/package.json +1 -1
|
@@ -33,6 +33,10 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
33
33
|
label: string;
|
|
34
34
|
value: string;
|
|
35
35
|
}>;
|
|
36
|
+
VisibleIfAutocompleteOptions: Array<{
|
|
37
|
+
label: string;
|
|
38
|
+
value: string;
|
|
39
|
+
}>;
|
|
36
40
|
AvailableFileExtensions: {
|
|
37
41
|
key: string;
|
|
38
42
|
value: string;
|
|
@@ -77,6 +81,7 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
77
81
|
* oppure al keyup sulla tastiera di un tasto diverso dalle frecce.
|
|
78
82
|
*/
|
|
79
83
|
setFormulaAutocompleteOptions(keyboardEvent: KeyboardEvent): void;
|
|
84
|
+
setVisibleIfAutocompleteOptions(keyboardEvent: KeyboardEvent): void;
|
|
80
85
|
/**
|
|
81
86
|
* Crea il FormGroup per l'aggiunta di un nuovo campo all'interno della form.
|
|
82
87
|
* Metodo richiamato ogni volta che cambia il tipo del campo scelto o viene aggiunto/modificato un Field
|
|
@@ -14,7 +14,10 @@ export declare class ListValueFieldTemplateComponent implements OnInit, OnChange
|
|
|
14
14
|
Selected?: boolean;
|
|
15
15
|
ImgUrl?: string;
|
|
16
16
|
}[];
|
|
17
|
+
FieldstyleObj: any;
|
|
18
|
+
LabelstyleObj: any;
|
|
17
19
|
constructor();
|
|
20
|
+
initStyles(): void;
|
|
18
21
|
ngOnInit(): void;
|
|
19
22
|
ngOnChanges(changes: SimpleChanges): void;
|
|
20
23
|
/**
|
|
@@ -27,7 +30,7 @@ export declare class ListValueFieldTemplateComponent implements OnInit, OnChange
|
|
|
27
30
|
*/
|
|
28
31
|
buttonSelectClick(data: {
|
|
29
32
|
Key: string;
|
|
30
|
-
Value:
|
|
33
|
+
Value: string;
|
|
31
34
|
Selected?: boolean;
|
|
32
35
|
ImgUrl?: string;
|
|
33
36
|
}): void;
|
|
@@ -45,6 +48,7 @@ export declare class ListValueFieldTemplateComponent implements OnInit, OnChange
|
|
|
45
48
|
*/
|
|
46
49
|
private setArrayData;
|
|
47
50
|
private createArrayDataElement;
|
|
51
|
+
private createNumberArrayDataElement;
|
|
48
52
|
/**
|
|
49
53
|
* Metodo per aggiornare il valore e il validator del FormControl associato al campo.
|
|
50
54
|
*/
|
|
@@ -10,8 +10,11 @@ export declare class NumericFieldTemplateComponent implements OnInit, OnChanges,
|
|
|
10
10
|
recordChange: EventEmitter<Record>;
|
|
11
11
|
validatorsArray: any[];
|
|
12
12
|
eqpNumericOptions: Partial<NumericMaskConfig>;
|
|
13
|
+
FieldstyleObj: any;
|
|
14
|
+
LabelstyleObj: any;
|
|
13
15
|
constructor();
|
|
14
16
|
ngOnInit(): void;
|
|
17
|
+
initStyles(): void;
|
|
15
18
|
ngOnChanges(changes: SimpleChanges): void;
|
|
16
19
|
/**
|
|
17
20
|
* Metodo per aggiornare il valore del campo quando questo è rappresentato da una formula.
|
|
@@ -2,16 +2,29 @@ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { Record } from '../../../../models/record.model';
|
|
3
3
|
import { TextMaskEnum, TextField } from '../../../../models/fields/textField.model';
|
|
4
4
|
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
5
|
+
import { VoiceRecognitionService } from '../../../../services/voice-recognition.service';
|
|
6
|
+
import { Subscription } from 'rxjs';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
export declare class TextFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
9
|
+
voiceservice: VoiceRecognitionService;
|
|
10
|
+
isStillRecoginze: boolean;
|
|
11
|
+
source: import("rxjs").Observable<number>;
|
|
12
|
+
newtext: string;
|
|
13
|
+
subscription: Subscription;
|
|
7
14
|
field: TextField;
|
|
8
15
|
record: Record;
|
|
16
|
+
FieldstyleObj: any;
|
|
17
|
+
LabelstyleObj: any;
|
|
9
18
|
recordChange: EventEmitter<Record>;
|
|
10
19
|
InputMaskEnum: typeof TextMaskEnum;
|
|
11
|
-
constructor();
|
|
20
|
+
constructor(voiceservice: VoiceRecognitionService);
|
|
12
21
|
ngOnInit(): void;
|
|
22
|
+
initStyles(): void;
|
|
13
23
|
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
ttsClick(): void;
|
|
14
25
|
getInputType(): "email" | "password" | "tel" | "url" | "text";
|
|
26
|
+
updateRTVoiceField(): void;
|
|
27
|
+
updateVoiceField(): void;
|
|
15
28
|
/**
|
|
16
29
|
* Metodo per aggiornare il valore del campo quando questo è rappresentato da una formula.
|
|
17
30
|
*/
|
|
@@ -2,18 +2,31 @@ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { IBaseFieldComponent } from '../../../../interfaces/iBaseFieldComponent.interface';
|
|
3
3
|
import { Record } from '../../../../models/record.model';
|
|
4
4
|
import { TextareaField } from '../../../../models/fields/textareaField.model';
|
|
5
|
+
import { VoiceRecognitionService } from '../../../../services/voice-recognition.service';
|
|
6
|
+
import { Subscription } from 'rxjs';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
export declare class TextareaFieldTemplateComponent implements OnInit, OnChanges, IBaseFieldComponent {
|
|
9
|
+
voiceservice: VoiceRecognitionService;
|
|
10
|
+
isStillRecoginze: boolean;
|
|
7
11
|
field: TextareaField;
|
|
8
12
|
record: Record;
|
|
13
|
+
source: import("rxjs").Observable<number>;
|
|
14
|
+
newtext: string;
|
|
9
15
|
recordChange: EventEmitter<Record>;
|
|
10
|
-
|
|
16
|
+
subscription: Subscription;
|
|
17
|
+
FieldstyleObj: any;
|
|
18
|
+
LabelstyleObj: any;
|
|
19
|
+
constructor(voiceservice: VoiceRecognitionService);
|
|
11
20
|
ngOnInit(): void;
|
|
21
|
+
initStyles(): void;
|
|
12
22
|
ngOnChanges(changes: SimpleChanges): void;
|
|
23
|
+
ttsClick(): void;
|
|
13
24
|
/**
|
|
14
25
|
* Metodo per aggiornare il valore del campo quando questo è rappresentato da una formula.
|
|
15
26
|
*/
|
|
16
27
|
updateField(): void;
|
|
28
|
+
updateRTVoiceField(): void;
|
|
29
|
+
updateVoiceField(): void;
|
|
17
30
|
/**
|
|
18
31
|
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
19
32
|
*/
|
|
@@ -14,9 +14,13 @@ export declare class BaseField extends BaseObj {
|
|
|
14
14
|
Description: string;
|
|
15
15
|
Required: boolean;
|
|
16
16
|
Formula: string;
|
|
17
|
+
Tooltip: string;
|
|
17
18
|
OrdinalPosition: number;
|
|
18
19
|
Disabled: boolean;
|
|
19
20
|
Readonly: boolean;
|
|
21
|
+
VisibleIf: string;
|
|
22
|
+
FieldstyleCSS: string;
|
|
23
|
+
LabelstyleCSS: string;
|
|
20
24
|
/**
|
|
21
25
|
* Entità a cui appartiene il campo. Si tenga presente che sono ammessi anche campi
|
|
22
26
|
* di sola visualizzazione e calcolati, da utilizzare nelle form,
|
|
@@ -16,6 +16,8 @@ export declare class UtilityHelperService {
|
|
|
16
16
|
constructor(formBuilder: UntypedFormBuilder, http: HttpClient, spinnerService: SpinnerService);
|
|
17
17
|
static EvaluateFieldFormula(formula: string, rec: Record, ctx: any): any;
|
|
18
18
|
static SetContext(ctx: Context): void;
|
|
19
|
+
static isNumeric(n: any): boolean;
|
|
20
|
+
static initStyles(stylecss: any): any;
|
|
19
21
|
static GetFieldType(field: BaseField): TextField;
|
|
20
22
|
/**
|
|
21
23
|
* Metodo per impostare i valori da suggerire nell'autocomplete per i campi in cui l'utente deve scrivere comandi javascript.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class VoiceRecognitionService {
|
|
3
|
+
recognition: any;
|
|
4
|
+
isStoppedSpeechRecog: boolean;
|
|
5
|
+
text: string;
|
|
6
|
+
tempWords: any;
|
|
7
|
+
transcript_arr: any[];
|
|
8
|
+
confidence_arr: any[];
|
|
9
|
+
isStarted: boolean;
|
|
10
|
+
isStoppedAutomatically: boolean;
|
|
11
|
+
constructor();
|
|
12
|
+
init(): void;
|
|
13
|
+
start(): boolean;
|
|
14
|
+
stop(): boolean;
|
|
15
|
+
wordConcat(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VoiceRecognitionService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<VoiceRecognitionService>;
|
|
18
|
+
}
|