@eqproject/eqp-dynamic-module 2.8.38 → 2.9.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/esm2020/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.mjs +3 -9
- package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +42 -43
- package/esm2020/lib/components/private/action-button-creator/action-button-creator.component.mjs +204 -0
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +38 -78
- package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +12 -3
- package/esm2020/lib/components/private/field-templates/action-button-field-template/action-button-field-template.component.mjs +52 -0
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +19 -17
- package/esm2020/lib/components/private/form-records/hlist-form-record/hlist-form-record.component.mjs +2 -9
- package/esm2020/lib/components/private/form-records/list-form-record/list-form-record.component.mjs +2 -8
- package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +45 -17
- package/esm2020/lib/components/private/form-records/list-view-form-record/single-record/single-record.component.mjs +3 -9
- package/esm2020/lib/components/private/form-records/view-form-record/view-form-record.component.mjs +2 -8
- package/esm2020/lib/components/private/form-statistics/filter-form-statistic/filter-form-statistic.component.mjs +4 -7
- package/esm2020/lib/components/private/graphs/graphs.component.mjs +4 -7
- package/esm2020/lib/components/private/trigger-creator/trigger-creator.component.mjs +1 -1
- package/esm2020/lib/eqp-dynamic-module.module.mjs +9 -3
- package/esm2020/lib/models/baseField.model.mjs +2 -1
- package/esm2020/lib/models/fields/actionButton.model.mjs +6 -0
- package/esm2020/lib/models/trigger.model.mjs +5 -7
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +408 -209
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +408 -209
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/exported/eqp-dynamic-module/eqp-dynamic-module.component.d.ts +2 -4
- package/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.d.ts +8 -5
- package/lib/components/private/action-button-creator/action-button-creator.component.d.ts +42 -0
- package/lib/components/private/add-form-field/add-form-field.component.d.ts +5 -12
- package/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.d.ts +4 -1
- package/lib/components/private/field-templates/action-button-field-template/action-button-field-template.component.d.ts +19 -0
- package/lib/components/private/form-records/add-form-record/add-form-record.component.d.ts +3 -4
- package/lib/components/private/form-records/hlist-form-record/hlist-form-record.component.d.ts +2 -4
- package/lib/components/private/form-records/list-form-record/list-form-record.component.d.ts +2 -4
- package/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.d.ts +2 -4
- package/lib/components/private/form-records/list-view-form-record/single-record/single-record.component.d.ts +2 -4
- package/lib/components/private/form-records/view-form-record/view-form-record.component.d.ts +2 -4
- package/lib/components/private/form-statistics/filter-form-statistic/filter-form-statistic.component.d.ts +3 -4
- package/lib/components/private/graphs/graphs.component.d.ts +3 -4
- package/lib/eqp-dynamic-module.module.d.ts +16 -14
- package/lib/models/baseField.model.d.ts +2 -1
- package/lib/models/fields/actionButton.model.d.ts +17 -0
- package/lib/models/trigger.model.d.ts +7 -14
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import { DynRecord, Record, RecordButton } from "../../../models/record.model";
|
|
|
12
12
|
import { UtilityHelperService } from "../../../services/utilityHelper.services";
|
|
13
13
|
import { DynamicModuleFilterResultViewModeEnum } from "../../../models/dynamicModuleFilterResultViewModeEnum.model";
|
|
14
14
|
import { eventOut } from "../../../directives/dynamic-loader/dynamic-loader.directive";
|
|
15
|
-
import { ActionButton,
|
|
15
|
+
import { ActionButton, FireTrigger } from "../../../models/trigger.model";
|
|
16
16
|
import { ListViewFormRecordComponent } from '../../private/form-records/list-view-form-record/list-view-form-record.component';
|
|
17
17
|
import * as i0 from "@angular/core";
|
|
18
18
|
export declare class EqpDynamicModuleComponent implements OnInit, AfterViewInit {
|
|
@@ -84,7 +84,6 @@ export declare class EqpDynamicModuleComponent implements OnInit, AfterViewInit
|
|
|
84
84
|
clickDragIndicator: EventEmitter<Record>;
|
|
85
85
|
out: EventEmitter<eventOut>;
|
|
86
86
|
fireTrigger: EventEmitter<FireTrigger>;
|
|
87
|
-
fireAction: EventEmitter<FireAction>;
|
|
88
87
|
listViewFormRecord: ListViewFormRecordComponent;
|
|
89
88
|
form: Form;
|
|
90
89
|
lastform: Form;
|
|
@@ -162,9 +161,8 @@ export declare class EqpDynamicModuleComponent implements OnInit, AfterViewInit
|
|
|
162
161
|
onClickDragIndicator(el: any): void;
|
|
163
162
|
onExternalComponentOut(ev: eventOut): void;
|
|
164
163
|
onFireTrigger(ev: FireTrigger): void;
|
|
165
|
-
onFireAction(ev: FireAction): void;
|
|
166
164
|
parseValueString(field: any, record: any): any;
|
|
167
165
|
reloadHTMLReadableValues(answerId: string): void;
|
|
168
166
|
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleComponent, never>;
|
|
169
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EqpDynamicModuleComponent, "eqp-dynamic-module", never, { "debugMode": "debugMode"; "configurations": "configurations"; "formID": "formID"; "starterViewMode": "starterViewMode"; "userID": "userID"; "orgaID": "orgaID"; "showTitle": "showTitle"; "showBackButton": "showBackButton"; "showSaveButton": "showSaveButton"; "values": "values"; "FormJSON": "FormJSON"; "externalButtons": "externalButtons"; "actionButtons": "actionButtons"; "listViewRecordTitle": "listViewRecordTitle"; "defaultListViewFunction": "defaultListViewFunction"; "defaultListActions": "defaultListActions"; "onSaveBackToList": "onSaveBackToList"; "onBackTo": "onBackTo"; "filterResultViewMode": "filterResultViewMode"; "additionalParams": "additionalParams"; "additionalInfo": "additionalInfo"; "updateInfo": "updateInfo"; "prefilterParams": "prefilterParams"; "showNewSearchButton": "showNewSearchButton"; "answerToDuplicateId": "answerToDuplicateId"; "highlightFilter": "highlightFilter"; "selectedRecord": "selectedRecord"; "isDraggableListView": "isDraggableListView"; "QueryEditorComponent": "QueryEditorComponent"; }, { "saveRecord": "saveRecord"; "deleteRecord": "deleteRecord"; "SaveJSON": "SaveJSON"; "afterFilter": "afterFilter"; "afterSaveRecord": "afterSaveRecord"; "afterDeleteRecord": "afterDeleteRecord"; "dragStarted": "dragStarted"; "dragReleased": "dragReleased"; "clickDragIndicator": "clickDragIndicator"; "out": "out"; "fireTrigger": "fireTrigger";
|
|
167
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EqpDynamicModuleComponent, "eqp-dynamic-module", never, { "debugMode": "debugMode"; "configurations": "configurations"; "formID": "formID"; "starterViewMode": "starterViewMode"; "userID": "userID"; "orgaID": "orgaID"; "showTitle": "showTitle"; "showBackButton": "showBackButton"; "showSaveButton": "showSaveButton"; "values": "values"; "FormJSON": "FormJSON"; "externalButtons": "externalButtons"; "actionButtons": "actionButtons"; "listViewRecordTitle": "listViewRecordTitle"; "defaultListViewFunction": "defaultListViewFunction"; "defaultListActions": "defaultListActions"; "onSaveBackToList": "onSaveBackToList"; "onBackTo": "onBackTo"; "filterResultViewMode": "filterResultViewMode"; "additionalParams": "additionalParams"; "additionalInfo": "additionalInfo"; "updateInfo": "updateInfo"; "prefilterParams": "prefilterParams"; "showNewSearchButton": "showNewSearchButton"; "answerToDuplicateId": "answerToDuplicateId"; "highlightFilter": "highlightFilter"; "selectedRecord": "selectedRecord"; "isDraggableListView": "isDraggableListView"; "QueryEditorComponent": "QueryEditorComponent"; }, { "saveRecord": "saveRecord"; "deleteRecord": "deleteRecord"; "SaveJSON": "SaveJSON"; "afterFilter": "afterFilter"; "afterSaveRecord": "afterSaveRecord"; "afterDeleteRecord": "afterDeleteRecord"; "dragStarted": "dragStarted"; "dragReleased": "dragReleased"; "clickDragIndicator": "clickDragIndicator"; "out": "out"; "fireTrigger": "fireTrigger"; }, never, never, false, never>;
|
|
170
168
|
}
|
|
@@ -11,7 +11,7 @@ import { DynamicModuleCompileConfig } from "../../../models/dynamicModuleCompile
|
|
|
11
11
|
import { DynamicModuleConfiguratorConfig } from "../../../models/dynamicModuleConfiguratorConfig.model";
|
|
12
12
|
import { DomSanitizer } from "@angular/platform-browser";
|
|
13
13
|
import { DynamicLoaderDirectiveData, eventOut } from "../../../directives/dynamic-loader/dynamic-loader.directive";
|
|
14
|
-
import { Trigger, ActionButton, ActionFlagEnum } from '../../../models/trigger.model';
|
|
14
|
+
import { Trigger, ActionButton, ActionFlagEnum, FireTrigger } from '../../../models/trigger.model';
|
|
15
15
|
import { Contestualization } from "../../../models/getter.model";
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
@@ -26,7 +26,9 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
26
26
|
viewMode: string;
|
|
27
27
|
QueryEditorComponent: DynamicLoaderDirectiveData;
|
|
28
28
|
triggers: any;
|
|
29
|
+
actionButtons: any;
|
|
29
30
|
contestualization: Array<Contestualization>;
|
|
31
|
+
fireTrigger: EventEmitter<FireTrigger>;
|
|
30
32
|
loader: boolean;
|
|
31
33
|
/**
|
|
32
34
|
* Token da usare negli endpoint da chiamare per recuperare o salvare i record.
|
|
@@ -203,7 +205,7 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
203
205
|
* Se il parametro passato è null sono in aggiunta altrimenti sono in modifica.
|
|
204
206
|
* @param action ActionButton da modificare (se null allora vado in add).
|
|
205
207
|
*/
|
|
206
|
-
openActionButtonDialog(
|
|
208
|
+
openActionButtonDialog(ev?: ActionButton): void;
|
|
207
209
|
/**
|
|
208
210
|
* Metodo per impostare i valori da suggerire nell'autocomplete del campo Formula.
|
|
209
211
|
* Viene scatenato al focus (in questo caso viene passato il parametro a null per differenziarlo
|
|
@@ -220,7 +222,7 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
220
222
|
/**
|
|
221
223
|
* Metodo per salvare l'azione creata/modificate.
|
|
222
224
|
*/
|
|
223
|
-
saveActionButtons(): void;
|
|
225
|
+
saveActionButtons(element: ActionButton): void;
|
|
224
226
|
/**
|
|
225
227
|
* Metodo per chiudere il dialog della inner form.
|
|
226
228
|
*/
|
|
@@ -270,7 +272,6 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
270
272
|
* Crea il FormGroup epr l'aggiunta o la modifica di una action sui record della Form.
|
|
271
273
|
*/
|
|
272
274
|
private createActionOnRecordForm;
|
|
273
|
-
private createActionButtonForm;
|
|
274
275
|
/**
|
|
275
276
|
* Chiude il dialog per aggiungere/modificare un Field senza salvare
|
|
276
277
|
*/
|
|
@@ -337,9 +338,11 @@ export declare class EqpDynamicModuleConfiguratorComponent implements OnInit {
|
|
|
337
338
|
openTriggersDialog(ev?: Trigger): void;
|
|
338
339
|
saveTrigger(element: Trigger): void;
|
|
339
340
|
deleteTrigger(element: Trigger): void;
|
|
341
|
+
deleteActionButton(element: ActionButton): void;
|
|
340
342
|
onContestualizationSelect(): void;
|
|
341
343
|
onContestualizationSelectValue(): void;
|
|
342
344
|
applyContestualization(element: any): void;
|
|
345
|
+
onFireTrigger(ev: FireTrigger): void;
|
|
343
346
|
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleConfiguratorComponent, never>;
|
|
344
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EqpDynamicModuleConfiguratorComponent, "eqp-dynamic-module-configurator", never, { "debugMode": "debugMode"; "configurations": "configurations"; "formID": "formID"; "ProjectName": "ProjectName"; "viewMode": "viewMode"; "QueryEditorComponent": "QueryEditorComponent"; "triggers": "triggers"; "contestualization": "contestualization"; }, { "saveFormEvent": "saveFormEvent"; "afterSaveFormEvent": "afterSaveFormEvent"; "out": "out"; }, never, never, false, never>;
|
|
347
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EqpDynamicModuleConfiguratorComponent, "eqp-dynamic-module-configurator", never, { "debugMode": "debugMode"; "configurations": "configurations"; "formID": "formID"; "ProjectName": "ProjectName"; "viewMode": "viewMode"; "QueryEditorComponent": "QueryEditorComponent"; "triggers": "triggers"; "actionButtons": "actionButtons"; "contestualization": "contestualization"; }, { "fireTrigger": "fireTrigger"; "saveFormEvent": "saveFormEvent"; "afterSaveFormEvent": "afterSaveFormEvent"; "out": "out"; }, never, never, false, never>;
|
|
345
348
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { ActionButton, ActionFlagEnum, TriggerPropertyTypeEnum } from '../../../models/trigger.model';
|
|
3
|
+
import { Form } from '../../../models/form.model';
|
|
4
|
+
import { EndPointConfiguration } from '../../../models/endPointConfiguration.model';
|
|
5
|
+
import { FieldTypeEnum } from '../../../models/baseField.model';
|
|
6
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
7
|
+
import { UtilityHelperService } from '../../../services/utilityHelper.services';
|
|
8
|
+
import { ActionButtonField } from '../../../models/fields/actionButton.model';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class ActionButtonCreatorComponent {
|
|
11
|
+
private dialog;
|
|
12
|
+
private utilityHelperService;
|
|
13
|
+
form: Form;
|
|
14
|
+
actionButton: ActionButton;
|
|
15
|
+
actionButtonField: ActionButtonField;
|
|
16
|
+
formulas: any;
|
|
17
|
+
endPointConfiguration: EndPointConfiguration;
|
|
18
|
+
InField: boolean;
|
|
19
|
+
onSaveRecord: EventEmitter<ActionButton>;
|
|
20
|
+
onChangeSomething: EventEmitter<ActionButton>;
|
|
21
|
+
FieldTypeEnum: typeof FieldTypeEnum;
|
|
22
|
+
isSaving: boolean;
|
|
23
|
+
selectedFormula: any;
|
|
24
|
+
formulaKeys: Array<any>;
|
|
25
|
+
formulaFieldsStructure: Array<any>;
|
|
26
|
+
actionsFlag: typeof ActionFlagEnum;
|
|
27
|
+
triggerPropertyType: typeof TriggerPropertyTypeEnum;
|
|
28
|
+
dialogFormulaRef: MatDialogRef<TemplateRef<any>>;
|
|
29
|
+
dialogFormula: TemplateRef<any>;
|
|
30
|
+
forms: Array<Form>;
|
|
31
|
+
constructor(dialog: MatDialog, utilityHelperService: UtilityHelperService);
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
openFormulaDialog(formulaField: any): void;
|
|
34
|
+
onFormulaFieldChange(formulaField: any): void;
|
|
35
|
+
onEqpSelectModule(ev: any, formulaField: any): void;
|
|
36
|
+
saveOrExitForm(exit: boolean): void;
|
|
37
|
+
changeSomething(): void;
|
|
38
|
+
getAllModules(): void;
|
|
39
|
+
onChangeFormula(formula: any): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionButtonCreatorComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionButtonCreatorComponent, "action-button-creator", never, { "form": "form"; "actionButton": "actionButton"; "actionButtonField": "actionButtonField"; "formulas": "formulas"; "endPointConfiguration": "endPointConfiguration"; "InField": "InField"; }, { "onSaveRecord": "onSaveRecord"; "onChangeSomething": "onChangeSomething"; }, never, never, false, never>;
|
|
42
|
+
}
|
|
@@ -18,6 +18,7 @@ import { DataGetterTypeEnum } from '../../../models/baseField.model';
|
|
|
18
18
|
import { ModeEnum, TimeTypeEnum } from "tmw-picker";
|
|
19
19
|
import { EndPointConfiguration } from "../../../models/endPointConfiguration.model";
|
|
20
20
|
import { Contestualization } from "../../../models/getter.model";
|
|
21
|
+
import { ActionButtonField } from "../../../models/fields/actionButton.model";
|
|
21
22
|
import * as i0 from "@angular/core";
|
|
22
23
|
export declare class AddFormFieldComponent implements OnInit {
|
|
23
24
|
private formBuilder;
|
|
@@ -36,6 +37,7 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
36
37
|
fieldTypesToExclude: Array<FieldTypeEnum>;
|
|
37
38
|
QueryEditorComponent: DynamicLoaderDirectiveData;
|
|
38
39
|
contestualization: Array<Contestualization>;
|
|
40
|
+
actionButtons: any;
|
|
39
41
|
out: EventEmitter<eventOut>;
|
|
40
42
|
saveFieldEvent: EventEmitter<BaseField | any>;
|
|
41
43
|
resizedImagesHeightPx: number;
|
|
@@ -70,6 +72,7 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
70
72
|
fieldTypeFormTemplate: TemplateRef<any>;
|
|
71
73
|
textFieldFormTemplate: TemplateRef<any>;
|
|
72
74
|
labelFieldFormTemplate: TemplateRef<any>;
|
|
75
|
+
buttonFieldFormTemplate: TemplateRef<any>;
|
|
73
76
|
textareaFieldFormTemplate: TemplateRef<any>;
|
|
74
77
|
booleadFieldFormTemplate: TemplateRef<any>;
|
|
75
78
|
dateFieldFormTemplate: TemplateRef<any>;
|
|
@@ -211,21 +214,10 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
211
214
|
* @param key Nome della chiave da rimuovere
|
|
212
215
|
*/
|
|
213
216
|
deleteKeyFromDictionary(key: string): void;
|
|
214
|
-
/**
|
|
215
|
-
* Metodo per aprire il dialog per aggiungere/modificare un metadata in un campo di tipo Allegato o Immagine.
|
|
216
|
-
* @param metadata Metadata da modificare, se null allora ne sto creando uno nuovo.
|
|
217
|
-
*/
|
|
218
217
|
openFormulaDialog(): void;
|
|
219
218
|
openVisibleIfDialog(): void;
|
|
220
219
|
openAnswerStyleVisibleIfDialog(): void;
|
|
221
220
|
stringSanitizer(value: any): void;
|
|
222
|
-
/**
|
|
223
|
-
* Metodo invocato dall'output dal dialog per aggiungere/modificare un metadata
|
|
224
|
-
* nei campi di tipo Allegato o Immagine. Prima di aggiungere il metadata nell'elenco
|
|
225
|
-
* contolla se esiste un altro metadata con lo stesso nome e nel caso genera un errore
|
|
226
|
-
* (i metadata, come per i campi della form, devono avere un nome univoco).
|
|
227
|
-
* @param metadata Metadata aggiunto o modificato, se null allora il dialog è stato chiuso senza fare modifiche.
|
|
228
|
-
*/
|
|
229
221
|
/**
|
|
230
222
|
* Metodo per disabilitare il pulsante per salvare il campo inserito/modificato.
|
|
231
223
|
* @returns Restituisce un booleano, se true il salvataggio viene disabilitato.
|
|
@@ -259,6 +251,7 @@ export declare class AddFormFieldComponent implements OnInit {
|
|
|
259
251
|
onChangeDMModule(): void;
|
|
260
252
|
onChangeDMField(): void;
|
|
261
253
|
onChangeDMContestualization(): void;
|
|
254
|
+
changedButtonField(field: ActionButtonField): void;
|
|
262
255
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddFormFieldComponent, never>;
|
|
263
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AddFormFieldComponent, "eqp-dynamic-module-add-form-field", never, { "form": "form"; "endPointConfiguration": "endPointConfiguration"; "field": "field"; "indexField": "indexField"; "formFieldsGroups": "formFieldsGroups"; "availableFields": "availableFields"; "fieldTypesToExclude": "fieldTypesToExclude"; "QueryEditorComponent": "QueryEditorComponent"; "contestualization": "contestualization"; }, { "out": "out"; "saveFieldEvent": "saveFieldEvent"; }, never, never, false, never>;
|
|
256
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddFormFieldComponent, "eqp-dynamic-module-add-form-field", never, { "form": "form"; "endPointConfiguration": "endPointConfiguration"; "field": "field"; "indexField": "indexField"; "formFieldsGroups": "formFieldsGroups"; "availableFields": "availableFields"; "fieldTypesToExclude": "fieldTypesToExclude"; "QueryEditorComponent": "QueryEditorComponent"; "contestualization": "contestualization"; "actionButtons": "actionButtons"; }, { "out": "out"; "saveFieldEvent": "saveFieldEvent"; }, never, never, false, never>;
|
|
264
257
|
}
|
|
@@ -11,6 +11,7 @@ import { DynAttachment } from '../../../models/dynAttachment';
|
|
|
11
11
|
import { DynamicLoaderDirectiveData, eventOut } from '../../../directives/dynamic-loader/dynamic-loader.directive';
|
|
12
12
|
import { UtilityHelperService } from '../../../services/utilityHelper.services';
|
|
13
13
|
import { DynamicModuleCompileConfig } from '../../../models/dynamicModuleCompileConfig.model';
|
|
14
|
+
import { FireTrigger } from '../../../models/trigger.model';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
export declare class DynamicModuleFieldFixComponent implements OnInit, IBaseFieldComponent {
|
|
16
17
|
private dialog;
|
|
@@ -25,6 +26,7 @@ export declare class DynamicModuleFieldFixComponent implements OnInit, IBaseFiel
|
|
|
25
26
|
QueryEditorComponent: DynamicLoaderDirectiveData;
|
|
26
27
|
recordChange: EventEmitter<Record>;
|
|
27
28
|
out: EventEmitter<eventOut>;
|
|
29
|
+
fireTrigger: EventEmitter<FireTrigger>;
|
|
28
30
|
configList: DynamicModuleListConfig;
|
|
29
31
|
FieldTypeEnum: typeof FieldTypeEnum;
|
|
30
32
|
DataGetterTypeEnum: typeof DataGetterTypeEnum;
|
|
@@ -79,6 +81,7 @@ export declare class DynamicModuleFieldFixComponent implements OnInit, IBaseFiel
|
|
|
79
81
|
onExternalComponentOut(ev: eventOut): void;
|
|
80
82
|
onSelectedValue(value: any): void;
|
|
81
83
|
manageDMGetter(): void;
|
|
84
|
+
onFireTrigger(ev: FireTrigger): void;
|
|
82
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicModuleFieldFixComponent, never>;
|
|
83
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicModuleFieldFixComponent, "dynamic-module-field-fix", never, { "configurations": "configurations"; "endPointConfiguration": "endPointConfiguration"; "field": "field"; "form": "form"; "record": "record"; "inConfig": "inConfig"; "userID": "userID"; "QueryEditorComponent": "QueryEditorComponent"; }, { "recordChange": "recordChange"; "out": "out"; }, never, never, false, never>;
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicModuleFieldFixComponent, "dynamic-module-field-fix", never, { "configurations": "configurations"; "endPointConfiguration": "endPointConfiguration"; "field": "field"; "form": "form"; "record": "record"; "inConfig": "inConfig"; "userID": "userID"; "QueryEditorComponent": "QueryEditorComponent"; }, { "recordChange": "recordChange"; "out": "out"; "fireTrigger": "fireTrigger"; }, never, never, false, never>;
|
|
84
87
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Record } from '../../../../models/record.model';
|
|
3
|
+
import { FireTrigger } from '../../../../models/trigger.model';
|
|
4
|
+
import { ActionButtonField } from '../../../../models/fields/actionButton.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ActionButtonFieldTemplateComponent {
|
|
7
|
+
field: ActionButtonField;
|
|
8
|
+
record: Record;
|
|
9
|
+
inConfig: boolean;
|
|
10
|
+
fireTrigger: EventEmitter<FireTrigger>;
|
|
11
|
+
FieldstyleObj: any;
|
|
12
|
+
constructor();
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
initStyles(): void;
|
|
15
|
+
generateAction(actionButton: ActionButtonField): void;
|
|
16
|
+
onFireTrigger(ev: FireTrigger): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionButtonFieldTemplateComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionButtonFieldTemplateComponent, "action-button-field-template", never, { "field": "field"; "record": "record"; "inConfig": "inConfig"; }, { "fireTrigger": "fireTrigger"; }, never, never, false, never>;
|
|
19
|
+
}
|
|
@@ -8,7 +8,7 @@ import { UtilityHelperService } from '../../../../services/utilityHelper.service
|
|
|
8
8
|
import { DynamicModuleFieldFixComponent } from '../../dynamic-module-field-fix/dynamic-module-field.component';
|
|
9
9
|
import { EndPointConfiguration } from './../../../../models/endPointConfiguration.model';
|
|
10
10
|
import { DynamicLoaderDirectiveData, eventOut } from "../../../../directives/dynamic-loader/dynamic-loader.directive";
|
|
11
|
-
import { FireTrigger, ActionButton
|
|
11
|
+
import { FireTrigger, ActionButton } from '../../../../models/trigger.model';
|
|
12
12
|
import { DatePipe } from '@angular/common';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
export declare class AddFormRecordComponent implements OnInit {
|
|
@@ -33,7 +33,6 @@ export declare class AddFormRecordComponent implements OnInit {
|
|
|
33
33
|
afterSaveRecordEvent: EventEmitter<Record>;
|
|
34
34
|
out: EventEmitter<eventOut>;
|
|
35
35
|
fireTrigger: EventEmitter<FireTrigger>;
|
|
36
|
-
fireAction: EventEmitter<FireAction>;
|
|
37
36
|
showSaveButton: boolean;
|
|
38
37
|
showBackButton: boolean;
|
|
39
38
|
loader: boolean;
|
|
@@ -102,8 +101,8 @@ export declare class AddFormRecordComponent implements OnInit {
|
|
|
102
101
|
setDataGetter(form: any): void;
|
|
103
102
|
checkTriggers(record: Record): void;
|
|
104
103
|
logTrigger(trigger: any, condition: any, record: any): void;
|
|
105
|
-
|
|
104
|
+
onFireTrigger(ev: FireTrigger): void;
|
|
106
105
|
generateAction(actionButton: ActionButton): void;
|
|
107
106
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddFormRecordComponent, never>;
|
|
108
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AddFormRecordComponent, "add-form-record", never, { "configurations": "configurations"; "endPointConfiguration": "endPointConfiguration"; "userID": "userID"; "orgaID": "orgaID"; "formID": "formID"; "form": "form"; "record": "record"; "onlyView": "onlyView"; "isDuplicate": "isDuplicate"; "inConfig": "inConfig"; "showAllFields": "showAllFields"; "showTitle": "showTitle"; "actionButtons": "actionButtons"; "QueryEditorComponent": "QueryEditorComponent"; }, { "saveRecordEvent": "saveRecordEvent"; "afterSaveRecordEvent": "afterSaveRecordEvent"; "out": "out"; "fireTrigger": "fireTrigger";
|
|
107
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddFormRecordComponent, "add-form-record", never, { "configurations": "configurations"; "endPointConfiguration": "endPointConfiguration"; "userID": "userID"; "orgaID": "orgaID"; "formID": "formID"; "form": "form"; "record": "record"; "onlyView": "onlyView"; "isDuplicate": "isDuplicate"; "inConfig": "inConfig"; "showAllFields": "showAllFields"; "showTitle": "showTitle"; "actionButtons": "actionButtons"; "QueryEditorComponent": "QueryEditorComponent"; }, { "saveRecordEvent": "saveRecordEvent"; "afterSaveRecordEvent": "afterSaveRecordEvent"; "out": "out"; "fireTrigger": "fireTrigger"; }, never, never, false, never>;
|
|
109
108
|
}
|
package/lib/components/private/form-records/hlist-form-record/hlist-form-record.component.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { DynamicModuleListConfig } from "../../../../models/dynamicModuleListCon
|
|
|
8
8
|
import { EndPointConfiguration } from "../../../../models/endPointConfiguration.model";
|
|
9
9
|
import { ModeEnum } from "tmw-picker";
|
|
10
10
|
import { DatePipe } from "@angular/common";
|
|
11
|
-
import { ActionButton
|
|
11
|
+
import { ActionButton } from '../../../../models/trigger.model';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare class HListFormRecordComponent implements OnInit, OnChanges {
|
|
14
14
|
private utilityHelperService;
|
|
@@ -33,7 +33,6 @@ export declare class HListFormRecordComponent implements OnInit, OnChanges {
|
|
|
33
33
|
}>;
|
|
34
34
|
onDeleteRecord: EventEmitter<Record>;
|
|
35
35
|
onAfterDeleteRecord: EventEmitter<Record>;
|
|
36
|
-
fireAction: EventEmitter<FireAction>;
|
|
37
36
|
modes: typeof ModeEnum;
|
|
38
37
|
minDate: Date;
|
|
39
38
|
maxDate: Date;
|
|
@@ -105,7 +104,6 @@ export declare class HListFormRecordComponent implements OnInit, OnChanges {
|
|
|
105
104
|
setMinMaxDates(): void;
|
|
106
105
|
printValue(fieldType: any, value: any, fieldconfig: any, record: any): any;
|
|
107
106
|
private resizeBase64Image;
|
|
108
|
-
onFireAction(ev: FireAction): void;
|
|
109
107
|
static ɵfac: i0.ɵɵFactoryDeclaration<HListFormRecordComponent, never>;
|
|
110
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HListFormRecordComponent, "hlist-form-record", never, { "configurations": "configurations"; "endPointConfiguration": "endPointConfiguration"; "formID": "formID"; "form": "form"; "externalButtons": "externalButtons"; "actionButtons": "actionButtons"; }, { "onViewRecord": "onViewRecord"; "onAddViewEditRecord": "onAddViewEditRecord"; "onDeleteRecord": "onDeleteRecord"; "onAfterDeleteRecord": "onAfterDeleteRecord";
|
|
108
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HListFormRecordComponent, "hlist-form-record", never, { "configurations": "configurations"; "endPointConfiguration": "endPointConfiguration"; "formID": "formID"; "form": "form"; "externalButtons": "externalButtons"; "actionButtons": "actionButtons"; }, { "onViewRecord": "onViewRecord"; "onAddViewEditRecord": "onAddViewEditRecord"; "onDeleteRecord": "onDeleteRecord"; "onAfterDeleteRecord": "onAfterDeleteRecord"; }, never, never, false, never>;
|
|
111
109
|
}
|
package/lib/components/private/form-records/list-form-record/list-form-record.component.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { UtilityHelperService } from "../../../../services/utilityHelper.service
|
|
|
6
6
|
import { DynamicModuleListFormRecordActionsDefault } from "../../../../models/dynamicModuleListFormRecordActionsDefault";
|
|
7
7
|
import { DynamicModuleListConfig } from "../../../../models/dynamicModuleListConfig.model";
|
|
8
8
|
import { EndPointConfiguration } from "../../../../models/endPointConfiguration.model";
|
|
9
|
-
import { ActionButton
|
|
9
|
+
import { ActionButton } from '../../../../models/trigger.model';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare class ListFormRecordComponent implements OnInit, OnChanges {
|
|
12
12
|
private utilityHelperService;
|
|
@@ -29,7 +29,6 @@ export declare class ListFormRecordComponent implements OnInit, OnChanges {
|
|
|
29
29
|
}>;
|
|
30
30
|
onDeleteRecord: EventEmitter<Record>;
|
|
31
31
|
onAfterDeleteRecord: EventEmitter<Record>;
|
|
32
|
-
fireAction: EventEmitter<FireAction>;
|
|
33
32
|
constructor(utilityHelperService: UtilityHelperService, changeDetector: ChangeDetectorRef);
|
|
34
33
|
ngOnInit(): void;
|
|
35
34
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -77,11 +76,10 @@ export declare class ListFormRecordComponent implements OnInit, OnChanges {
|
|
|
77
76
|
* @param record Record da eliminare selezionato sulla eqp-table.
|
|
78
77
|
*/
|
|
79
78
|
deleteRecord(record: Record): void;
|
|
80
|
-
onFireAction(ev: FireAction): void;
|
|
81
79
|
/**
|
|
82
80
|
* Metodo per ricaricare i dati della eqp-table.
|
|
83
81
|
*/
|
|
84
82
|
private reloadTables;
|
|
85
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListFormRecordComponent, never>;
|
|
86
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListFormRecordComponent, "list-form-record", never, { "configurations": "configurations"; "endPointConfiguration": "endPointConfiguration"; "formID": "formID"; "form": "form"; "externalButtons": "externalButtons"; "actionButtons": "actionButtons"; }, { "onViewRecord": "onViewRecord"; "onAddViewEditRecord": "onAddViewEditRecord"; "onDeleteRecord": "onDeleteRecord"; "onAfterDeleteRecord": "onAfterDeleteRecord";
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListFormRecordComponent, "list-form-record", never, { "configurations": "configurations"; "endPointConfiguration": "endPointConfiguration"; "formID": "formID"; "form": "form"; "externalButtons": "externalButtons"; "actionButtons": "actionButtons"; }, { "onViewRecord": "onViewRecord"; "onAddViewEditRecord": "onAddViewEditRecord"; "onDeleteRecord": "onDeleteRecord"; "onAfterDeleteRecord": "onAfterDeleteRecord"; }, never, never, false, never>;
|
|
87
85
|
}
|
|
@@ -10,7 +10,7 @@ import { EndPointConfiguration } from "./../../../../models/endPointConfiguratio
|
|
|
10
10
|
import { MatDialog, MatDialogRef } from "@angular/material/dialog";
|
|
11
11
|
import { Router } from "@angular/router";
|
|
12
12
|
import { DynamicLoaderDirectiveData, eventOut } from "../../../../directives/dynamic-loader/dynamic-loader.directive";
|
|
13
|
-
import { FireTrigger, ActionButton
|
|
13
|
+
import { FireTrigger, ActionButton } from '../../../../models/trigger.model';
|
|
14
14
|
import { dbDateService } from "../../../../services/db-date.service";
|
|
15
15
|
import { DatePipe } from "@angular/common";
|
|
16
16
|
import { ModeEnum, TimeTypeEnum } from 'tmw-picker';
|
|
@@ -90,7 +90,6 @@ export declare class ListViewFormRecordComponent implements OnInit, OnChanges {
|
|
|
90
90
|
dragReleased: EventEmitter<void>;
|
|
91
91
|
out: EventEmitter<eventOut>;
|
|
92
92
|
fireTrigger: EventEmitter<FireTrigger>;
|
|
93
|
-
fireAction: EventEmitter<FireAction>;
|
|
94
93
|
clickDragIndicator: EventEmitter<any>;
|
|
95
94
|
constructor(utilityHelperService: UtilityHelperService, changeDetector: ChangeDetectorRef, dialog: MatDialog, router: Router, dbDateService: dbDateService, datePipe: DatePipe);
|
|
96
95
|
ngOnInit(): void;
|
|
@@ -177,10 +176,9 @@ export declare class ListViewFormRecordComponent implements OnInit, OnChanges {
|
|
|
177
176
|
onDragReleased(): void;
|
|
178
177
|
onExternalComponentOut(ev: eventOut): void;
|
|
179
178
|
onFireTrigger(ev: FireTrigger): void;
|
|
180
|
-
onFireAction(ev: FireAction): void;
|
|
181
179
|
reloadHTMLReadableValues(answerId: string): void;
|
|
182
180
|
generateAction(actionButton: ActionButton): void;
|
|
183
181
|
static ɵfac: i0.ɵɵFactoryDeclaration<ListViewFormRecordComponent, never>;
|
|
184
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ListViewFormRecordComponent, "list-view-form-record", never, { "configurations": "configurations"; "compileConfigurations": "compileConfigurations"; "endPointConfiguration": "endPointConfiguration"; "userID": "userID"; "formID": "formID"; "orgaID": "orgaID"; "form": "form"; "defaultListViewFunction": "defaultListViewFunction"; "externalButtons": "externalButtons"; "actionButtons": "actionButtons"; "onlyView": "onlyView"; "records": "records"; "highlightFilter": "highlightFilter"; "QueryEditorComponent": "QueryEditorComponent"; }, { "onAddViewEditRecord": "onAddViewEditRecord"; "onDeleteRecord": "onDeleteRecord"; "saveRecordEvent": "saveRecordEvent"; "afterSaveRecordEvent": "afterSaveRecordEvent"; "dragStarted": "dragStarted"; "dragReleased": "dragReleased"; "out": "out"; "fireTrigger": "fireTrigger"; "
|
|
182
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListViewFormRecordComponent, "list-view-form-record", never, { "configurations": "configurations"; "compileConfigurations": "compileConfigurations"; "endPointConfiguration": "endPointConfiguration"; "userID": "userID"; "formID": "formID"; "orgaID": "orgaID"; "form": "form"; "defaultListViewFunction": "defaultListViewFunction"; "externalButtons": "externalButtons"; "actionButtons": "actionButtons"; "onlyView": "onlyView"; "records": "records"; "highlightFilter": "highlightFilter"; "QueryEditorComponent": "QueryEditorComponent"; }, { "onAddViewEditRecord": "onAddViewEditRecord"; "onDeleteRecord": "onDeleteRecord"; "saveRecordEvent": "saveRecordEvent"; "afterSaveRecordEvent": "afterSaveRecordEvent"; "dragStarted": "dragStarted"; "dragReleased": "dragReleased"; "out": "out"; "fireTrigger": "fireTrigger"; "clickDragIndicator": "clickDragIndicator"; }, never, never, false, never>;
|
|
185
183
|
}
|
|
186
184
|
export {};
|
|
@@ -5,7 +5,7 @@ import { Form } from '../../../../../models/form.model';
|
|
|
5
5
|
import { Record } from "../../../../../models/record.model";
|
|
6
6
|
import { UtilityHelperService } from '../../../../../services/utilityHelper.services';
|
|
7
7
|
import { DynamicLoaderDirectiveData, eventOut } from '../../../../../directives/dynamic-loader/dynamic-loader.directive';
|
|
8
|
-
import { FireTrigger,
|
|
8
|
+
import { FireTrigger, ActionButton } from '../../../../../models/trigger.model';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
type PageState = null | 'visualizzaContenuto' | 'modificaContenuto';
|
|
11
11
|
export declare class SingleRecordComponent implements OnInit {
|
|
@@ -24,7 +24,6 @@ export declare class SingleRecordComponent implements OnInit {
|
|
|
24
24
|
afterSaveRecordEvent: EventEmitter<Record>;
|
|
25
25
|
out: EventEmitter<eventOut>;
|
|
26
26
|
fireTrigger: EventEmitter<FireTrigger>;
|
|
27
|
-
fireAction: EventEmitter<FireAction>;
|
|
28
27
|
loaded: boolean;
|
|
29
28
|
constructor(utilityHelperService: UtilityHelperService);
|
|
30
29
|
ngOnInit(): void;
|
|
@@ -35,8 +34,7 @@ export declare class SingleRecordComponent implements OnInit {
|
|
|
35
34
|
onAfterSaveRecord(event: any): void;
|
|
36
35
|
onExternalComponentOut(ev: eventOut): void;
|
|
37
36
|
onFireTrigger(ev: FireTrigger): void;
|
|
38
|
-
onFireAction(ev: FireAction): void;
|
|
39
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<SingleRecordComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SingleRecordComponent, "lib-single-record", never, { "endPointConfiguration": "endPointConfiguration"; "record": "record"; "pageState": "pageState"; "userID": "userID"; "form": "form"; "showBackButton": "showBackButton"; "outCompileConfigurations": "outCompileConfigurations"; "onlyView": "onlyView"; "actionButtons": "actionButtons"; "QueryEditorComponent": "QueryEditorComponent"; }, { "saveRecordEvent": "saveRecordEvent"; "afterSaveRecordEvent": "afterSaveRecordEvent"; "out": "out"; "fireTrigger": "fireTrigger";
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SingleRecordComponent, "lib-single-record", never, { "endPointConfiguration": "endPointConfiguration"; "record": "record"; "pageState": "pageState"; "userID": "userID"; "form": "form"; "showBackButton": "showBackButton"; "outCompileConfigurations": "outCompileConfigurations"; "onlyView": "onlyView"; "actionButtons": "actionButtons"; "QueryEditorComponent": "QueryEditorComponent"; }, { "saveRecordEvent": "saveRecordEvent"; "afterSaveRecordEvent": "afterSaveRecordEvent"; "out": "out"; "fireTrigger": "fireTrigger"; }, never, never, false, never>;
|
|
41
39
|
}
|
|
42
40
|
export {};
|
package/lib/components/private/form-records/view-form-record/view-form-record.component.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { UtilityHelperService } from "../../../../services/utilityHelper.service
|
|
|
6
6
|
import { DynamicModuleFieldFixComponent } from "../../dynamic-module-field-fix/dynamic-module-field.component";
|
|
7
7
|
import { EndPointConfiguration } from "./../../../../models/endPointConfiguration.model";
|
|
8
8
|
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
|
|
9
|
-
import { ActionButton
|
|
9
|
+
import { ActionButton } from '../../../../models/trigger.model';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare class ViewFormRecordComponent implements OnInit {
|
|
12
12
|
utilityService: UtilityHelperService;
|
|
@@ -20,7 +20,6 @@ export declare class ViewFormRecordComponent implements OnInit {
|
|
|
20
20
|
loader: boolean;
|
|
21
21
|
FieldTypeEnum: typeof FieldTypeEnum;
|
|
22
22
|
goBackEvent: EventEmitter<null>;
|
|
23
|
-
fireAction: EventEmitter<FireAction>;
|
|
24
23
|
fieldTemplate: QueryList<DynamicModuleFieldFixComponent>;
|
|
25
24
|
constructor(utilityService: UtilityHelperService, domSanitizer: DomSanitizer);
|
|
26
25
|
ngOnInit(): void;
|
|
@@ -30,11 +29,10 @@ export declare class ViewFormRecordComponent implements OnInit {
|
|
|
30
29
|
goBack(): void;
|
|
31
30
|
getRecordByID(): void;
|
|
32
31
|
getFormByIDandVersion(): void;
|
|
33
|
-
onFireAction(ev: FireAction): void;
|
|
34
32
|
/**
|
|
35
33
|
* Metodo per creare il FormGroup che rappresenta la form.
|
|
36
34
|
*/
|
|
37
35
|
private createOutput;
|
|
38
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<ViewFormRecordComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ViewFormRecordComponent, "view-form-record", never, { "endPointConfiguration": "endPointConfiguration"; "record": "record"; "showBackButton": "showBackButton"; "actionButtons": "actionButtons"; }, { "goBackEvent": "goBackEvent";
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ViewFormRecordComponent, "view-form-record", never, { "endPointConfiguration": "endPointConfiguration"; "record": "record"; "showBackButton": "showBackButton"; "actionButtons": "actionButtons"; }, { "goBackEvent": "goBackEvent"; }, never, never, false, never>;
|
|
40
38
|
}
|
|
@@ -12,7 +12,7 @@ import { DynamicModuleListConfig } from '../../../../models/dynamicModuleListCon
|
|
|
12
12
|
import { DynamicModuleListFormRecordActionsDefault } from '../../../../models/dynamicModuleListFormRecordActionsDefault';
|
|
13
13
|
import { ConfigColumn, ExportEqpTable } from '@eqproject/eqp-table';
|
|
14
14
|
import { DynamicModuleFilterResultViewModeEnum } from '../../../../models/dynamicModuleFilterResultViewModeEnum.model';
|
|
15
|
-
import { ActionButton,
|
|
15
|
+
import { ActionButton, FireTrigger } from '../../../../models/trigger.model';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
export declare class FilterFormStatisticComponent {
|
|
18
18
|
private cdr;
|
|
@@ -28,7 +28,7 @@ export declare class FilterFormStatisticComponent {
|
|
|
28
28
|
onlyView: boolean;
|
|
29
29
|
defaultListActions: DynamicModuleListFormRecordActionsDefault;
|
|
30
30
|
filterResultViewMode: DynamicModuleFilterResultViewModeEnum;
|
|
31
|
-
|
|
31
|
+
fireTrigger: EventEmitter<FireTrigger>;
|
|
32
32
|
pageSize: number;
|
|
33
33
|
pageIndex: number;
|
|
34
34
|
pageLength: Array<number>;
|
|
@@ -107,7 +107,6 @@ export declare class FilterFormStatisticComponent {
|
|
|
107
107
|
private getResponseValues;
|
|
108
108
|
private getResponseTemplate;
|
|
109
109
|
private replaceTemplatePlaceholdersWithValues;
|
|
110
|
-
onFireAction(ev: FireAction): void;
|
|
111
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterFormStatisticComponent, never>;
|
|
112
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterFormStatisticComponent, "filter-form-statistic", never, { "configurations": "configurations"; "endPointConfiguration": "endPointConfiguration"; "userID": "userID"; "externalButtons": "externalButtons"; "actionButtons": "actionButtons"; "formID": "formID"; "form": "form"; "record": "record"; "onlyView": "onlyView"; "defaultListActions": "defaultListActions"; "filterResultViewMode": "filterResultViewMode"; }, { "
|
|
111
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterFormStatisticComponent, "filter-form-statistic", never, { "configurations": "configurations"; "endPointConfiguration": "endPointConfiguration"; "userID": "userID"; "externalButtons": "externalButtons"; "actionButtons": "actionButtons"; "formID": "formID"; "form": "form"; "record": "record"; "onlyView": "onlyView"; "defaultListActions": "defaultListActions"; "filterResultViewMode": "filterResultViewMode"; }, { "fireTrigger": "fireTrigger"; "saveRecordEvent": "saveRecordEvent"; "afterSaveRecordEvent": "afterSaveRecordEvent"; "afterFilter": "afterFilter"; }, never, never, false, never>;
|
|
113
112
|
}
|
|
@@ -8,7 +8,7 @@ import { UtilityHelperService } from '../../../services/utilityHelper.services';
|
|
|
8
8
|
import { DynRecord } from '../../../models/record.model';
|
|
9
9
|
import { DatePipe } from '@angular/common';
|
|
10
10
|
import { ModeEnum, TimeTypeEnum } from 'tmw-picker';
|
|
11
|
-
import { ActionButton,
|
|
11
|
+
import { ActionButton, FireTrigger } from '../../../models/trigger.model';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare class GraphsComponent implements OnInit {
|
|
14
14
|
private utilityHelperService;
|
|
@@ -19,7 +19,7 @@ export declare class GraphsComponent implements OnInit {
|
|
|
19
19
|
formID: string;
|
|
20
20
|
form: Form;
|
|
21
21
|
actionButtons: Array<ActionButton>;
|
|
22
|
-
|
|
22
|
+
fireTrigger: EventEmitter<FireTrigger>;
|
|
23
23
|
fieldFormGroup: UntypedFormGroup;
|
|
24
24
|
loaded: boolean;
|
|
25
25
|
generated: boolean;
|
|
@@ -45,7 +45,6 @@ export declare class GraphsComponent implements OnInit {
|
|
|
45
45
|
getRecordsByFormID(): Promise<void>;
|
|
46
46
|
generateGraph(): void;
|
|
47
47
|
getEligibleAnswers(): void;
|
|
48
|
-
onFireAction(ev: FireAction): void;
|
|
49
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<GraphsComponent, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GraphsComponent, "graphs", never, { "configurations": "configurations"; "endPointConfiguration": "endPointConfiguration"; "userID": "userID"; "formID": "formID"; "form": "form"; "actionButtons": "actionButtons"; }, { "
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraphsComponent, "graphs", never, { "configurations": "configurations"; "endPointConfiguration": "endPointConfiguration"; "userID": "userID"; "formID": "formID"; "form": "form"; "actionButtons": "actionButtons"; }, { "fireTrigger": "fireTrigger"; }, never, never, false, never>;
|
|
51
50
|
}
|
|
@@ -52,19 +52,21 @@ import * as i49 from "./components/private/trigger-creator/trigger-templates/lis
|
|
|
52
52
|
import * as i50 from "./components/private/trigger-creator/trigger-templates/textarea-trigger-template/textarea-trigger-template.component";
|
|
53
53
|
import * as i51 from "./components/private/trigger-creator/trigger-templates/list-form-record-trigger-template/list-form-record-trigger-template.component";
|
|
54
54
|
import * as i52 from "./directives/speech-to-text/speech-to-text.directive";
|
|
55
|
-
import * as i53 from "./
|
|
56
|
-
import * as i54 from "
|
|
57
|
-
import * as i55 from "
|
|
58
|
-
import * as i56 from "@
|
|
59
|
-
import * as i57 from "@
|
|
60
|
-
import * as i58 from "@eqproject/eqp-
|
|
61
|
-
import * as i59 from "@eqproject/eqp-
|
|
62
|
-
import * as i60 from "@eqproject/eqp-
|
|
63
|
-
import * as i61 from "@eqproject/eqp-
|
|
64
|
-
import * as i62 from "@
|
|
65
|
-
import * as i63 from "@eqproject/eqp-
|
|
66
|
-
import * as i64 from "@
|
|
67
|
-
import * as i65 from "
|
|
55
|
+
import * as i53 from "./components/private/action-button-creator/action-button-creator.component";
|
|
56
|
+
import * as i54 from "./components/private/field-templates/action-button-field-template/action-button-field-template.component";
|
|
57
|
+
import * as i55 from "./modules/material.module";
|
|
58
|
+
import * as i56 from "@angular/forms";
|
|
59
|
+
import * as i57 from "@angular/common";
|
|
60
|
+
import * as i58 from "@eqproject/eqp-table";
|
|
61
|
+
import * as i59 from "@eqproject/eqp-attachments";
|
|
62
|
+
import * as i60 from "@eqproject/eqp-select";
|
|
63
|
+
import * as i61 from "@eqproject/eqp-datetimepicker";
|
|
64
|
+
import * as i62 from "@eqproject/eqp-filters";
|
|
65
|
+
import * as i63 from "@eqproject/eqp-img-drawing";
|
|
66
|
+
import * as i64 from "@angular/cdk/drag-drop";
|
|
67
|
+
import * as i65 from "@eqproject/eqp-numeric";
|
|
68
|
+
import * as i66 from "@canvasjs/angular-stockcharts";
|
|
69
|
+
import * as i67 from "tmw-picker";
|
|
68
70
|
export declare const customNumericMaskConfig: {
|
|
69
71
|
align: string;
|
|
70
72
|
allowNegative: boolean;
|
|
@@ -81,6 +83,6 @@ export declare const customNumericMaskConfig: {
|
|
|
81
83
|
};
|
|
82
84
|
export declare class EqpDynamicModuleModule {
|
|
83
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleModule, never>;
|
|
84
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EqpDynamicModuleModule, [typeof i1.EqpDynamicModuleComponent, typeof i2.EqpDynamicModuleConfiguratorComponent, typeof i3.AddFormFieldComponent, typeof i4.TextFieldTemplateComponent, typeof i5.BooleanFieldTemplateComponent, typeof i6.DateFieldTemplateComponent, typeof i7.TextareaFieldTemplateComponent, typeof i8.NumericFieldTemplateComponent, typeof i9.ListValueFieldTemplateComponent, typeof i10.AttachmentFieldTemplateComponent, typeof i11.ImageFieldTemplateComponent, typeof i12.ListFormRecordComponent, typeof i13.HListFormRecordComponent, typeof i14.ListViewFormRecordComponent, typeof i15.AddFormRecordComponent, typeof i16.ViewFormRecordComponent, typeof i17.DynamicModuleFieldFixComponent, typeof i18.SpinnerComponent, typeof i19.AddFormulaComponent, typeof i19.DialogDataExampleDialog, typeof i20.RepairFormFieldsComponent, typeof i21.SingleRecordComponent, typeof i22.FilterFormStatisticComponent, typeof i23.DynamicModuleFilterFixComponent, typeof i24.DynamicModuleTriggerFixComponent, typeof i25.TextFilterTemplateComponent, typeof i26.NumericFilterTemplateComponent, typeof i27.BooleanFilterTemplateComponent, typeof i28.DateFilterTemplateComponent, typeof i29.ListValueFilterTemplateComponent, typeof i30.TextareaFilterTemplateComponent, typeof i31.AttachmentFilterTemplateComponent, typeof i32.ImageFilterTemplateComponent, typeof i33.ListFormRecordFilterTemplateComponent, typeof i34.GraphsComponent, typeof i35.GraphComponent, typeof i36.ImageFieldSelectorTemplateComponent, typeof i37.LabelFieldTemplateComponent, typeof i38.ImageSelectorFilterTemplateComponent, typeof i39.TmwImageDrawerComponent, typeof i40.ImageWithMarkersFieldTemplateComponent, typeof i41.TmwImageMarkerComponent, typeof i42.DynamicLoaderDirective, typeof i43.DbgetterComponent, typeof i44.TriggerCreatorComponent, typeof i45.TextTriggerTemplateComponent, typeof i46.NumericTriggerTemplateComponent, typeof i47.BooleanTriggerTemplateComponent, typeof i48.DateTriggerTemplateComponent, typeof i49.ListValueTriggerTemplateComponent, typeof i50.TextareaTriggerTemplateComponent, typeof i51.ListFormRecordTriggerTemplateComponent, typeof i52.SpeechToTextDirective], [typeof
|
|
86
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EqpDynamicModuleModule, [typeof i1.EqpDynamicModuleComponent, typeof i2.EqpDynamicModuleConfiguratorComponent, typeof i3.AddFormFieldComponent, typeof i4.TextFieldTemplateComponent, typeof i5.BooleanFieldTemplateComponent, typeof i6.DateFieldTemplateComponent, typeof i7.TextareaFieldTemplateComponent, typeof i8.NumericFieldTemplateComponent, typeof i9.ListValueFieldTemplateComponent, typeof i10.AttachmentFieldTemplateComponent, typeof i11.ImageFieldTemplateComponent, typeof i12.ListFormRecordComponent, typeof i13.HListFormRecordComponent, typeof i14.ListViewFormRecordComponent, typeof i15.AddFormRecordComponent, typeof i16.ViewFormRecordComponent, typeof i17.DynamicModuleFieldFixComponent, typeof i18.SpinnerComponent, typeof i19.AddFormulaComponent, typeof i19.DialogDataExampleDialog, typeof i20.RepairFormFieldsComponent, typeof i21.SingleRecordComponent, typeof i22.FilterFormStatisticComponent, typeof i23.DynamicModuleFilterFixComponent, typeof i24.DynamicModuleTriggerFixComponent, typeof i25.TextFilterTemplateComponent, typeof i26.NumericFilterTemplateComponent, typeof i27.BooleanFilterTemplateComponent, typeof i28.DateFilterTemplateComponent, typeof i29.ListValueFilterTemplateComponent, typeof i30.TextareaFilterTemplateComponent, typeof i31.AttachmentFilterTemplateComponent, typeof i32.ImageFilterTemplateComponent, typeof i33.ListFormRecordFilterTemplateComponent, typeof i34.GraphsComponent, typeof i35.GraphComponent, typeof i36.ImageFieldSelectorTemplateComponent, typeof i37.LabelFieldTemplateComponent, typeof i38.ImageSelectorFilterTemplateComponent, typeof i39.TmwImageDrawerComponent, typeof i40.ImageWithMarkersFieldTemplateComponent, typeof i41.TmwImageMarkerComponent, typeof i42.DynamicLoaderDirective, typeof i43.DbgetterComponent, typeof i44.TriggerCreatorComponent, typeof i45.TextTriggerTemplateComponent, typeof i46.NumericTriggerTemplateComponent, typeof i47.BooleanTriggerTemplateComponent, typeof i48.DateTriggerTemplateComponent, typeof i49.ListValueTriggerTemplateComponent, typeof i50.TextareaTriggerTemplateComponent, typeof i51.ListFormRecordTriggerTemplateComponent, typeof i52.SpeechToTextDirective, typeof i53.ActionButtonCreatorComponent, typeof i54.ActionButtonFieldTemplateComponent], [typeof i55.MaterialModule, typeof i56.FormsModule, typeof i57.CommonModule, typeof i56.ReactiveFormsModule, typeof i58.EqpTableModule, typeof i59.EqpAttachmentsModule, typeof i60.EqpSelectModule, typeof i61.EqpDatetimepickerModule, typeof i62.EqpFiltersModule, typeof i63.EqpImgDrawingModule, typeof i64.DragDropModule, typeof i65.EqpNumericModule, typeof i66.CanvasJSAngularStockChartsModule, typeof i67.TmwPickerModule], [typeof i1.EqpDynamicModuleComponent, typeof i2.EqpDynamicModuleConfiguratorComponent, typeof i64.DragDropModule, typeof i66.CanvasJSChart, typeof i66.CanvasJSStockChart, typeof i42.DynamicLoaderDirective, typeof i67.TmwPickerModule]>;
|
|
85
87
|
static ɵinj: i0.ɵɵInjectorDeclaration<EqpDynamicModuleModule>;
|
|
86
88
|
}
|
|
@@ -68,7 +68,8 @@ export declare enum FieldTypeEnum {
|
|
|
68
68
|
'Form di dettaglio' = 10,
|
|
69
69
|
'Elenco immagini' = 11,
|
|
70
70
|
"Etichetta" = 12,
|
|
71
|
-
"Immagine con markers" = 13
|
|
71
|
+
"Immagine con markers" = 13,
|
|
72
|
+
"Bottone azione" = 14
|
|
72
73
|
}
|
|
73
74
|
export declare enum DataGetterTypeEnum {
|
|
74
75
|
'Manuale' = 1,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseField } from "../baseField.model";
|
|
2
|
+
export declare class ActionButtonField extends BaseField {
|
|
3
|
+
ButtonCode: string;
|
|
4
|
+
Icon: string;
|
|
5
|
+
ButtonLabel: string;
|
|
6
|
+
execution: string;
|
|
7
|
+
formulas: KeyTypeValue;
|
|
8
|
+
formulasTemp?: any;
|
|
9
|
+
userPatient: string;
|
|
10
|
+
userMedicalExamination: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class KeyTypeValue {
|
|
13
|
+
key: string;
|
|
14
|
+
tooltip: string;
|
|
15
|
+
type: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}
|
|
@@ -50,25 +50,18 @@ export declare class FireTrigger {
|
|
|
50
50
|
userMedicalExamination: number;
|
|
51
51
|
}
|
|
52
52
|
export declare class ActionButton {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
ButtonCode: string;
|
|
54
|
+
ButtonLabel: string;
|
|
55
55
|
Icon: string;
|
|
56
|
+
execution: string;
|
|
56
57
|
OrdinalPosition: number;
|
|
57
|
-
ShowIn
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
form: Form;
|
|
61
|
-
action: ActionButton;
|
|
62
|
-
record: Record;
|
|
58
|
+
ShowIn?: ActionFlagEnum;
|
|
59
|
+
formulas: any;
|
|
60
|
+
formulasTemp?: any;
|
|
63
61
|
userPatient: string;
|
|
64
62
|
userMedicalExamination: number;
|
|
65
|
-
extraParams: any;
|
|
66
63
|
}
|
|
67
64
|
export declare enum ActionFlagEnum {
|
|
68
|
-
LIST = 2,
|
|
69
65
|
LISTVIEW = 4,
|
|
70
|
-
ADDRECORD = 8
|
|
71
|
-
VIEWRECORD = 16,
|
|
72
|
-
STATISTIC = 32,
|
|
73
|
-
GRAPHS = 64
|
|
66
|
+
ADDRECORD = 8
|
|
74
67
|
}
|