@eqproject/eqp-dynamic-module 2.9.14 → 2.9.15

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.
Files changed (26) hide show
  1. package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +3 -3
  2. package/esm2020/lib/components/private/action-button-creator/action-button-creator.component.mjs +19 -5
  3. package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +12 -3
  4. package/esm2020/lib/components/private/dbg-templates/list-value-dbg-template/list-value-dbg-template.component.mjs +37 -0
  5. package/esm2020/lib/components/private/dbgetter/dbgetter.component.mjs +126 -13
  6. package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +13 -11
  7. package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +18 -6
  8. package/esm2020/lib/components/private/trigger-creator/trigger-creator.component.mjs +30 -6
  9. package/esm2020/lib/eqp-dynamic-module.module.mjs +6 -3
  10. package/esm2020/lib/models/baseField.model.mjs +2 -1
  11. package/esm2020/lib/models/fields/actionButton.model.mjs +1 -1
  12. package/esm2020/lib/models/trigger.model.mjs +4 -1
  13. package/fesm2015/eqproject-eqp-dynamic-module.mjs +254 -44
  14. package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
  15. package/fesm2020/eqproject-eqp-dynamic-module.mjs +254 -44
  16. package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
  17. package/lib/components/private/action-button-creator/action-button-creator.component.d.ts +4 -0
  18. package/lib/components/private/dbg-templates/list-value-dbg-template/list-value-dbg-template.component.d.ts +13 -0
  19. package/lib/components/private/dbgetter/dbgetter.component.d.ts +17 -2
  20. package/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.d.ts +1 -3
  21. package/lib/components/private/trigger-creator/trigger-creator.component.d.ts +2 -0
  22. package/lib/eqp-dynamic-module.module.d.ts +15 -14
  23. package/lib/models/baseField.model.d.ts +1 -0
  24. package/lib/models/fields/actionButton.model.d.ts +3 -0
  25. package/lib/models/trigger.model.d.ts +8 -1
  26. package/package.json +1 -1
@@ -31,6 +31,10 @@ export declare class ActionButtonCreatorComponent {
31
31
  constructor(dialog: MatDialog, utilityHelperService: UtilityHelperService);
32
32
  ngOnInit(): void;
33
33
  openFormulaDialog(formulaField: any): void;
34
+ /**aggiorna selectedFormula con il valore restituito dalla select
35
+ * qui non è chiaro se e quando richiamare il changeSomething
36
+ * */
37
+ onDropDownSelection(selectedAllowedValue: any): void;
34
38
  onFormulaFieldChange(formulaField: any): void;
35
39
  onEqpSelectModule(ev: any, formulaField: any): void;
36
40
  saveOrExitForm(exit: boolean): void;
@@ -0,0 +1,13 @@
1
+ import { Record } from '../../../../models/record.model';
2
+ import { ListValueElement } from '../../dbgetter/dbgetter.component';
3
+ import { ListValueField } from '../../../../models/fields/listValueField.model';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ListValueDbgTemplateComponent {
6
+ field: ListValueField;
7
+ record: Record;
8
+ arrayData: Array<ListValueElement>;
9
+ loaded: boolean;
10
+ ngOnInit(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListValueDbgTemplateComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListValueDbgTemplateComponent, "list-value-dbg-template", never, { "field": "field"; "record": "record"; }, {}, never, never, false, never>;
13
+ }
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { Form } from '@angular/forms';
3
3
  import { DynamicLoaderDirectiveData, eventOut } from '../../../directives/dynamic-loader/dynamic-loader.directive';
4
- import { BaseField } from '../../../models/baseField.model';
4
+ import { BaseField, FieldTypeEnum } from '../../../models/baseField.model';
5
5
  import { Record } from '../../../models/record.model';
6
6
  import { HttpClient } from '@angular/common/http';
7
7
  import { DynamicModuleCompileConfig } from '../../../models/dynamicModuleCompileConfig.model';
@@ -35,20 +35,35 @@ export declare class DbgetterComponent {
35
35
  }>;
36
36
  relationsLoaded: boolean;
37
37
  backupQuestionFields: Array<string>;
38
+ isMultiselect: boolean;
39
+ multiselectPhase: number;
40
+ selectedColumn: string;
41
+ selectedElements: Array<ListValueElement>;
42
+ fieldTypeEnum: typeof FieldTypeEnum;
38
43
  constructor(httpClient: HttpClient);
39
44
  ngOnInit(): void;
40
45
  reloadComponent(): void;
41
46
  checkRelations(): void;
42
47
  onExternalSQLResultOut(ev: eventOut): void;
43
48
  processResult(data: any, behaviours?: Array<string>): void;
44
- selectValue(row: any, value: any): void;
49
+ selectValue(row: any, key: any): void;
50
+ renderSelected(): void;
45
51
  close(): void;
46
52
  delete(): void;
47
53
  activateTable(): void;
48
54
  reloadData(): void;
55
+ selectColumn(key: any): void;
56
+ confirmSelection(): void;
49
57
  static ɵfac: i0.ɵɵFactoryDeclaration<DbgetterComponent, never>;
50
58
  static ɵcmp: i0.ɵɵComponentDeclaration<DbgetterComponent, "dbgetter", never, { "configurations": "configurations"; "form": "form"; "field": "field"; "record": "record"; "inConfig": "inConfig"; "DirectlyOpenTable": "DirectlyOpenTable"; "QueryEditorComponent": "QueryEditorComponent"; "data": "data"; }, { "out": "out"; "selectedValue": "selectedValue"; "doReload": "doReload"; }, never, never, false, never>;
51
59
  }
60
+ export declare class ListValueElement {
61
+ ID: string | number;
62
+ Selected: boolean;
63
+ Field: string;
64
+ Key: string;
65
+ Value: string;
66
+ }
52
67
  export declare enum QueryEditorModeEnum {
53
68
  "CONFIGURATOR" = 1,
54
69
  "COMPOSER" = 2,
@@ -30,13 +30,11 @@ export declare class DynamicModuleFieldFixComponent implements OnInit, IBaseFiel
30
30
  configList: DynamicModuleListConfig;
31
31
  FieldTypeEnum: typeof FieldTypeEnum;
32
32
  DataGetterTypeEnum: typeof DataGetterTypeEnum;
33
- DBGetterValue: any;
34
33
  DBGetterLoaded: boolean;
35
- DBGetterExact: boolean;
36
- DBGetterHaveQuestions: boolean;
37
34
  directlyOpenTable: boolean;
38
35
  dmloaded: boolean;
39
36
  loadedDBGetter: boolean;
37
+ DBGetterFieldsLoaded: boolean;
40
38
  selectedInnerForm: Form;
41
39
  selectedInnerFormRecord: Record;
42
40
  indexInnerFormRecord: number;
@@ -34,6 +34,8 @@ export declare class TriggerCreatorComponent {
34
34
  saveOrExitForm(exit: boolean): void;
35
35
  onChangeFormula(formula: any): void;
36
36
  onFormulaFieldChange(formulaField: any): void;
37
+ /** azioni sulla selezione nel caso di DROPDOWN_LIST*/
38
+ onDropDownSelection(selectedAllowedValue: any, formulaField: any): void;
37
39
  openFormulaDialog(formulaField: any): void;
38
40
  getAllModules(): void;
39
41
  onEqpSelectModule(ev: any, formulaField: any): void;
@@ -55,19 +55,20 @@ import * as i52 from "./directives/speech-to-text/speech-to-text.directive";
55
55
  import * as i53 from "./components/private/action-button-creator/action-button-creator.component";
56
56
  import * as i54 from "./components/private/field-templates/action-button-field-template/action-button-field-template.component";
57
57
  import * as i55 from "./components/private/dynamic-module-field-extra-fix/dynamic-module-field-extra-fix.component";
58
- import * as i56 from "./modules/material.module";
59
- import * as i57 from "@angular/forms";
60
- import * as i58 from "@angular/common";
61
- import * as i59 from "@eqproject/eqp-table";
62
- import * as i60 from "@eqproject/eqp-attachments";
63
- import * as i61 from "@eqproject/eqp-select";
64
- import * as i62 from "@eqproject/eqp-datetimepicker";
65
- import * as i63 from "@eqproject/eqp-filters";
66
- import * as i64 from "@eqproject/eqp-img-drawing";
67
- import * as i65 from "@angular/cdk/drag-drop";
68
- import * as i66 from "@eqproject/eqp-numeric";
69
- import * as i67 from "@canvasjs/angular-stockcharts";
70
- import * as i68 from "tmw-picker";
58
+ import * as i56 from "./components/private/dbg-templates/list-value-dbg-template/list-value-dbg-template.component";
59
+ import * as i57 from "./modules/material.module";
60
+ import * as i58 from "@angular/forms";
61
+ import * as i59 from "@angular/common";
62
+ import * as i60 from "@eqproject/eqp-table";
63
+ import * as i61 from "@eqproject/eqp-attachments";
64
+ import * as i62 from "@eqproject/eqp-select";
65
+ import * as i63 from "@eqproject/eqp-datetimepicker";
66
+ import * as i64 from "@eqproject/eqp-filters";
67
+ import * as i65 from "@eqproject/eqp-img-drawing";
68
+ import * as i66 from "@angular/cdk/drag-drop";
69
+ import * as i67 from "@eqproject/eqp-numeric";
70
+ import * as i68 from "@canvasjs/angular-stockcharts";
71
+ import * as i69 from "tmw-picker";
71
72
  export declare const customNumericMaskConfig: {
72
73
  align: string;
73
74
  allowNegative: boolean;
@@ -84,6 +85,6 @@ export declare const customNumericMaskConfig: {
84
85
  };
85
86
  export declare class EqpDynamicModuleModule {
86
87
  static ɵfac: i0.ɵɵFactoryDeclaration<EqpDynamicModuleModule, never>;
87
- 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.DynamicModuleFieldExtraFixComponent], [typeof i56.MaterialModule, typeof i57.FormsModule, typeof i58.CommonModule, typeof i57.ReactiveFormsModule, typeof i59.EqpTableModule, typeof i60.EqpAttachmentsModule, typeof i61.EqpSelectModule, typeof i62.EqpDatetimepickerModule, typeof i63.EqpFiltersModule, typeof i64.EqpImgDrawingModule, typeof i65.DragDropModule, typeof i66.EqpNumericModule, typeof i67.CanvasJSAngularStockChartsModule, typeof i68.TmwPickerModule], [typeof i1.EqpDynamicModuleComponent, typeof i2.EqpDynamicModuleConfiguratorComponent, typeof i65.DragDropModule, typeof i67.CanvasJSChart, typeof i67.CanvasJSStockChart, typeof i42.DynamicLoaderDirective, typeof i68.TmwPickerModule]>;
88
+ 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.DynamicModuleFieldExtraFixComponent, typeof i56.ListValueDbgTemplateComponent], [typeof i57.MaterialModule, typeof i58.FormsModule, typeof i59.CommonModule, typeof i58.ReactiveFormsModule, typeof i60.EqpTableModule, typeof i61.EqpAttachmentsModule, typeof i62.EqpSelectModule, typeof i63.EqpDatetimepickerModule, typeof i64.EqpFiltersModule, typeof i65.EqpImgDrawingModule, typeof i66.DragDropModule, typeof i67.EqpNumericModule, typeof i68.CanvasJSAngularStockChartsModule, typeof i69.TmwPickerModule], [typeof i1.EqpDynamicModuleComponent, typeof i2.EqpDynamicModuleConfiguratorComponent, typeof i66.DragDropModule, typeof i68.CanvasJSChart, typeof i68.CanvasJSStockChart, typeof i42.DynamicLoaderDirective, typeof i69.TmwPickerModule]>;
88
89
  static ɵinj: i0.ɵɵInjectorDeclaration<EqpDynamicModuleModule>;
89
90
  }
@@ -54,6 +54,7 @@ export declare class DataGetter {
54
54
  DataGetterColumnForce: any;
55
55
  DataGetterCardinality: DataGetterCardinalityEnum;
56
56
  DataGetterContestualization: Contestualization;
57
+ DataGetterHasResetButton: boolean;
57
58
  }
58
59
  export declare enum FieldTypeEnum {
59
60
  'Campo di testo' = 1,
@@ -1,4 +1,5 @@
1
1
  import { BaseField } from "../baseField.model";
2
+ import { KeyValue } from "../trigger.model";
2
3
  export declare class ActionButtonField extends BaseField {
3
4
  ButtonUniqueId: string;
4
5
  ButtonCode: string;
@@ -15,4 +16,6 @@ export declare class KeyTypeValue {
15
16
  tooltip: string;
16
17
  type: string;
17
18
  value: string;
19
+ allowedValues: KeyValue[];
20
+ selectedAllowedValue: KeyValue;
18
21
  }
@@ -22,11 +22,14 @@ export declare class TriggerProperty {
22
22
  type: TriggerPropertyTypeEnum;
23
23
  value: string;
24
24
  tooltip: string;
25
+ allowedValues?: KeyValue[];
26
+ selectedAllowedValue?: KeyValue;
25
27
  constructor(type: any);
26
28
  }
27
29
  export declare enum TriggerPropertyTypeEnum {
28
30
  STRING = 1,
29
- DMMODULE = 2
31
+ DMMODULE = 2,
32
+ DROPDOWN_LIST = 3
30
33
  }
31
34
  export declare class Condition {
32
35
  fieldType: FieldTypeEnum;
@@ -66,3 +69,7 @@ export declare enum ActionFlagEnum {
66
69
  LISTVIEW = 4,
67
70
  ADDRECORD = 8
68
71
  }
72
+ export declare class KeyValue {
73
+ key: string;
74
+ value: string;
75
+ }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "EqProject"
6
6
  },
7
- "version": "2.9.14",
7
+ "version": "2.9.15",
8
8
  "peerDependencies": {
9
9
  "@angular-material-components/datetime-picker": "^15.0.0",
10
10
  "@angular-material-components/moment-adapter": "^15.0.0",