@eqproject/eqp-dynamic-module 2.9.40 → 2.10.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/private/form-records/add-form-record/add-form-record.component.mjs +5 -3
- package/esm2020/lib/components/private/form-statistics/dynamic-module-filter-fix/dynamic-module-filter-fix.component.mjs +5 -3
- package/esm2020/lib/components/private/form-statistics/filter-form-statistic/filter-form-statistic.component.mjs +16 -5
- package/esm2020/lib/components/private/form-statistics/filter-templates/attachment-filter-template/attachment-filter-template.component.mjs +7 -3
- package/esm2020/lib/components/private/form-statistics/filter-templates/boolean-filter-template/boolean-filter-template.component.mjs +4 -2
- package/esm2020/lib/components/private/form-statistics/filter-templates/date-filter-template/date-filter-template.component.mjs +32 -5
- package/esm2020/lib/components/private/form-statistics/filter-templates/image-filter-template/image-filter-template.component.mjs +7 -3
- package/esm2020/lib/components/private/form-statistics/filter-templates/image-selector-filter-template/image-selector-filter-template.component.mjs +7 -3
- package/esm2020/lib/components/private/form-statistics/filter-templates/list-form-record-filter-template/list-form-record-filter-template.component.mjs +4 -2
- package/esm2020/lib/components/private/form-statistics/filter-templates/list-value-filter-template/list-value-filter-template.component.mjs +4 -2
- package/esm2020/lib/components/private/form-statistics/filter-templates/numeric-filter-template/numeric-filter-template.component.mjs +32 -5
- package/esm2020/lib/components/private/form-statistics/filter-templates/text-filter-template/text-filter-template.component.mjs +4 -2
- package/esm2020/lib/components/private/form-statistics/filter-templates/textarea-filter-template/textarea-filter-template.component.mjs +7 -3
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/list-form-record-trigger-template/list-form-record-trigger-template.component.mjs +7 -3
- package/esm2020/lib/models/baseField.model.mjs +3 -1
- package/esm2020/lib/models/dynamicModuleFilterResultViewModeEnum.model.mjs +2 -1
- package/esm2020/lib/models/statistic.model.mjs +3 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +132 -30
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +132 -30
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/private/form-statistics/dynamic-module-filter-fix/dynamic-module-filter-fix.component.d.ts +3 -1
- package/lib/components/private/form-statistics/filter-templates/attachment-filter-template/attachment-filter-template.component.d.ts +2 -0
- package/lib/components/private/form-statistics/filter-templates/boolean-filter-template/boolean-filter-template.component.d.ts +2 -0
- package/lib/components/private/form-statistics/filter-templates/date-filter-template/date-filter-template.component.d.ts +9 -2
- package/lib/components/private/form-statistics/filter-templates/image-filter-template/image-filter-template.component.d.ts +2 -0
- package/lib/components/private/form-statistics/filter-templates/image-selector-filter-template/image-selector-filter-template.component.d.ts +2 -0
- package/lib/components/private/form-statistics/filter-templates/list-form-record-filter-template/list-form-record-filter-template.component.d.ts +2 -0
- package/lib/components/private/form-statistics/filter-templates/list-value-filter-template/list-value-filter-template.component.d.ts +2 -0
- package/lib/components/private/form-statistics/filter-templates/numeric-filter-template/numeric-filter-template.component.d.ts +9 -2
- package/lib/components/private/form-statistics/filter-templates/text-filter-template/text-filter-template.component.d.ts +2 -0
- package/lib/components/private/form-statistics/filter-templates/textarea-filter-template/textarea-filter-template.component.d.ts +2 -0
- package/lib/components/private/trigger-creator/trigger-templates/list-form-record-trigger-template/list-form-record-trigger-template.component.d.ts +2 -0
- package/lib/models/dynamicModuleFilterResultViewModeEnum.model.d.ts +2 -1
- package/lib/models/statistic.model.d.ts +2 -0
- package/package.json +1 -1
|
@@ -217,6 +217,8 @@ var FieldTypeEnum;
|
|
|
217
217
|
FieldTypeEnum[FieldTypeEnum["Immagine con markers"] = 13] = "Immagine con markers";
|
|
218
218
|
FieldTypeEnum[FieldTypeEnum["Bottone azione"] = 14] = "Bottone azione";
|
|
219
219
|
})(FieldTypeEnum || (FieldTypeEnum = {}));
|
|
220
|
+
// se si aggiungono nuove modalità di recupero
|
|
221
|
+
// devono essere gestite in add-form-record > getResponseValues
|
|
220
222
|
var DataGetterTypeEnum;
|
|
221
223
|
(function (DataGetterTypeEnum) {
|
|
222
224
|
DataGetterTypeEnum[DataGetterTypeEnum["Manuale"] = 1] = "Manuale";
|
|
@@ -1388,6 +1390,7 @@ var DynamicModuleFilterResultViewModeEnum;
|
|
|
1388
1390
|
DynamicModuleFilterResultViewModeEnum[DynamicModuleFilterResultViewModeEnum["INTERNAL_LISTVIEW"] = 1] = "INTERNAL_LISTVIEW";
|
|
1389
1391
|
DynamicModuleFilterResultViewModeEnum[DynamicModuleFilterResultViewModeEnum["INTERNAL_EQPTABLE"] = 2] = "INTERNAL_EQPTABLE";
|
|
1390
1392
|
DynamicModuleFilterResultViewModeEnum[DynamicModuleFilterResultViewModeEnum["FILTERS_ONLY"] = 3] = "FILTERS_ONLY";
|
|
1393
|
+
DynamicModuleFilterResultViewModeEnum[DynamicModuleFilterResultViewModeEnum["FILTERS_ONLY_WITH_XY"] = 4] = "FILTERS_ONLY_WITH_XY";
|
|
1391
1394
|
})(DynamicModuleFilterResultViewModeEnum || (DynamicModuleFilterResultViewModeEnum = {}));
|
|
1392
1395
|
|
|
1393
1396
|
class Record {
|
|
@@ -6663,7 +6666,9 @@ class AddFormRecordComponent {
|
|
|
6663
6666
|
field.ValuePairs = inverted;
|
|
6664
6667
|
if (record[field.Name] != null && field.IsMultiChoiche) {
|
|
6665
6668
|
let value = "";
|
|
6666
|
-
|
|
6669
|
+
// se DataGetter nullo (retrocompatibilità(?)) oppure NON Da database
|
|
6670
|
+
if (!(field === null || field === void 0 ? void 0 : field.DataGetter) || (field.DataGetter.DataGetterType != DataGetterTypeEnum['Da database'])) {
|
|
6671
|
+
// prima: if ((<ListValueField>field).DataGetter == null){
|
|
6667
6672
|
// caso MULTISCELTA NORMALE
|
|
6668
6673
|
record[field.Name].forEach((element, i) => {
|
|
6669
6674
|
value += field.ValuePairs[element];
|
|
@@ -6671,7 +6676,7 @@ class AddFormRecordComponent {
|
|
|
6671
6676
|
});
|
|
6672
6677
|
}
|
|
6673
6678
|
else {
|
|
6674
|
-
// caso MULTISCELTA DATAGETTER
|
|
6679
|
+
// caso MULTISCELTA DATAGETTER: DataGetterTypeEnum['Da database']
|
|
6675
6680
|
var values = new Array();
|
|
6676
6681
|
if (record[field.Name] != null && record[field.Name].length > 0) {
|
|
6677
6682
|
record[field.Name].forEach((element) => {
|
|
@@ -8590,6 +8595,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
8590
8595
|
class Statistic {
|
|
8591
8596
|
constructor() {
|
|
8592
8597
|
this.visible = false;
|
|
8598
|
+
this.isX = false;
|
|
8599
|
+
this.isY = false;
|
|
8593
8600
|
}
|
|
8594
8601
|
}
|
|
8595
8602
|
class FilterStatistic {
|
|
@@ -8652,7 +8659,9 @@ class TextFilterTemplateComponent {
|
|
|
8652
8659
|
value: this.record[this.field.Name],
|
|
8653
8660
|
logicoperator: this.selectedLogicOperator,
|
|
8654
8661
|
fieldtype: this.field.FieldType,
|
|
8655
|
-
visible: this.visible
|
|
8662
|
+
visible: this.visible,
|
|
8663
|
+
isX: this.isX,
|
|
8664
|
+
isY: this.isY
|
|
8656
8665
|
};
|
|
8657
8666
|
this.filterChange.emit(statistic);
|
|
8658
8667
|
}
|
|
@@ -8697,11 +8706,19 @@ class NumericFilterTemplateComponent {
|
|
|
8697
8706
|
this.selectedLogicOperator = this.Statistic.logicoperator;
|
|
8698
8707
|
this.record[this.field.Name] = this.Statistic.value;
|
|
8699
8708
|
this.visible = this.Statistic.visible;
|
|
8709
|
+
this.isX = this.Statistic.isX;
|
|
8710
|
+
this.isY = this.Statistic.isY;
|
|
8700
8711
|
}
|
|
8701
8712
|
this.configureEqpNumericOptions();
|
|
8702
8713
|
this.configureControllers();
|
|
8703
8714
|
this.initStyles();
|
|
8704
8715
|
}
|
|
8716
|
+
ngOnChanges(changes) {
|
|
8717
|
+
if (changes.hasOwnProperty('Statistic') && !changes['Statistic'].firstChange) {
|
|
8718
|
+
this.isX = changes['Statistic'].currentValue.isX;
|
|
8719
|
+
this.isY = changes['Statistic'].currentValue.isY;
|
|
8720
|
+
}
|
|
8721
|
+
}
|
|
8705
8722
|
//Funzione per parsare il campo stylecss dell'oggetto field ed applicarlo all'html
|
|
8706
8723
|
initStyles() {
|
|
8707
8724
|
if (this.field.FieldstyleCSS != null || this.field.FieldstyleCSS != undefined)
|
|
@@ -8713,14 +8730,20 @@ class NumericFilterTemplateComponent {
|
|
|
8713
8730
|
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
8714
8731
|
*/
|
|
8715
8732
|
onFilterChange() {
|
|
8733
|
+
var statistic = this.createStatistic();
|
|
8734
|
+
this.filterChange.emit(statistic);
|
|
8735
|
+
}
|
|
8736
|
+
createStatistic() {
|
|
8716
8737
|
var statistic = {
|
|
8717
8738
|
key: this.field.Name,
|
|
8718
8739
|
value: this.record[this.field.Name],
|
|
8719
8740
|
logicoperator: this.selectedLogicOperator,
|
|
8720
8741
|
fieldtype: this.field.FieldType,
|
|
8721
|
-
visible: this.visible
|
|
8742
|
+
visible: this.visible,
|
|
8743
|
+
isX: this.isX,
|
|
8744
|
+
isY: this.isY
|
|
8722
8745
|
};
|
|
8723
|
-
|
|
8746
|
+
return statistic;
|
|
8724
8747
|
}
|
|
8725
8748
|
/**
|
|
8726
8749
|
* Metodo per configurare eqp-numeric
|
|
@@ -8765,18 +8788,31 @@ class NumericFilterTemplateComponent {
|
|
|
8765
8788
|
this.visible = !this.visible;
|
|
8766
8789
|
this.onFilterChange();
|
|
8767
8790
|
}
|
|
8791
|
+
becomeTheCoord(theCoord) {
|
|
8792
|
+
if (theCoord == "X") {
|
|
8793
|
+
this.isY = false;
|
|
8794
|
+
this.isX = !this.isX;
|
|
8795
|
+
}
|
|
8796
|
+
if (theCoord == "Y") {
|
|
8797
|
+
this.isX = false;
|
|
8798
|
+
this.isY = !this.isY;
|
|
8799
|
+
}
|
|
8800
|
+
this.onFilterChange();
|
|
8801
|
+
}
|
|
8768
8802
|
}
|
|
8769
8803
|
NumericFilterTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NumericFilterTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8770
|
-
NumericFilterTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: NumericFilterTemplateComponent, selector: "numeric-filter-template", inputs: { field: "field", record: "record", Statistic: "Statistic" }, outputs: { filterChange: "filterChange" }, ngImport: i0, template: "<div class=\"row\">\r\n <div class=\"col-12 rowCol\">\r\n <div class=\"valueCol\">\r\n <mat-form-field [formGroup]=\"field.FormFormGroup\">\r\n <mat-label class=\"pt-1\" [ngStyle]=\"LabelstyleObj\"> {{field.Description}} </mat-label>\r\n <input [ngStyle]=\"FieldstyleObj\" matInput eqpNumericMask [formControlName]=\"field.Name\" [readonly]=\"false\"\r\n [required]=\"false\" [(ngModel)]=\"record[field.Name]\" [options]=\"eqpNumericOptions\"\r\n [step]=\"field.IsInteger ? 1 : null\" (ngModelChange)=\"onFilterChange()\" />\r\n <mat-error *ngIf=\"!field.FormFormGroup.valid && field.FormFormGroup.controls[field.Name].touched\">\r\n Min: {{field.MinValue}} - Max: {{field.MaxValue}}\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"operatorCol\">\r\n <eqp-select [enumData]=\"logicOperatorNumeric\" [(ngModelInput)]=\"selectedLogicOperator\" (ngModelInputChange)=\"onFilterChange()\"></eqp-select>\r\n </div>\r\n <div class=\"visibleCol\">\r\n <button class=\"btn\" [ngClass]=\"{'btn-success': visible , 'btn-danger': !visible }\" (click)=\"changeVisibility()\">\r\n <mat-icon *ngIf=\"visible\">visibility</mat-icon>\r\n <mat-icon *ngIf=\"!visible\">visibility_off</mat-icon>\r\n </button>\r\n </div> \r\n </div>\r\n</div>", styles: [".rowCol{display:flex;height:56px}.rowCol>*{height:100%}.rowCol .valueCol{padding-right:0;width:100%}.rowCol .operatorCol{padding-left:0;padding-right:0;width:110px}.rowCol .visibleCol{display:flex;justify-content:center;align-items:flex-start;border-top-left-radius:0;border-bottom-left-radius:0;width:50px}.rowCol .visibleCol button{height:100%}::ng-deep .operatorCol .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#a5afc0!important}::ng-deep .operatorCol .mat-mdc-select-value{color:#081c45;font-size:16px;font-weight:700;position:relative;top:-6px}::ng-deep eqp-select mat-form-field.mat-mdc-form-field{margin-top:initial!important}::ng-deep eqp-select mat-form-field .mdc-text-field{padding-top:initial!important;height:56px}\n"], dependencies: [{ kind: "directive", type: i1$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i2$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i6$2.EqpSelectComponent, selector: "eqp-select", inputs: ["placeholder", "enumData", "enumDataToExclude", "arrayData", "arrayKeyProperty", "arrayValueProperty", "ngModelOptions", "ngModelInput", "formGroupInput", "formControlNameInput", "isRequired", "isDisabled", "isMultiLanguage", "multilanguagePrefixKey", "isAlphabeticalOrderable", "suffixIcon", "prefixIcon", "isMultiSelect", "includeFullObject", "showCancelButton", "isSearchable", "searchText", "noResultSearchText", "data"], outputs: ["ngModelInputChange"] }, { kind: "directive", type: i5$1.EqpNumericDirective, selector: "[eqpNumericMask]", inputs: ["options"] }] });
|
|
8804
|
+
NumericFilterTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: NumericFilterTemplateComponent, selector: "numeric-filter-template", inputs: { field: "field", record: "record", Statistic: "Statistic", filterResultViewMode: "filterResultViewMode" }, outputs: { filterChange: "filterChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"row\">\r\n <div class=\"col-12 rowCol\">\r\n <div class=\"valueCol\">\r\n <mat-form-field [formGroup]=\"field.FormFormGroup\">\r\n <mat-label class=\"pt-1\" [ngStyle]=\"LabelstyleObj\"> {{field.Description}} </mat-label>\r\n <input [ngStyle]=\"FieldstyleObj\" matInput eqpNumericMask [formControlName]=\"field.Name\" [readonly]=\"false\"\r\n [required]=\"false\" [(ngModel)]=\"record[field.Name]\" [options]=\"eqpNumericOptions\"\r\n [step]=\"field.IsInteger ? 1 : null\" (ngModelChange)=\"onFilterChange()\" />\r\n <mat-error *ngIf=\"!field.FormFormGroup.valid && field.FormFormGroup.controls[field.Name].touched\">\r\n Min: {{field.MinValue}} - Max: {{field.MaxValue}}\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"operatorCol\">\r\n <eqp-select [enumData]=\"logicOperatorNumeric\" [(ngModelInput)]=\"selectedLogicOperator\" (ngModelInputChange)=\"onFilterChange()\"></eqp-select>\r\n </div>\r\n <div class=\"visibleCol\">\r\n <button class=\"btn\" [ngClass]=\"{'btn-success': visible , 'btn-danger': !visible }\" (click)=\"changeVisibility()\">\r\n <mat-icon *ngIf=\"visible\">visibility</mat-icon>\r\n <mat-icon *ngIf=\"!visible\">visibility_off</mat-icon>\r\n </button>\r\n </div> \r\n <div class=\"coordinatesCol\">\r\n <button class=\"btn\" [ngClass]=\"{'btn-primary': !isX , 'btn-success': isX }\" (click)=\"becomeTheCoord('X')\">X</button>\r\n <button class=\"btn\" [ngClass]=\"{'btn-primary': !isY , 'btn-success': isY }\" (click)=\"becomeTheCoord('Y')\">Y</button>\r\n </div> \r\n </div>\r\n</div>", styles: [".rowCol{display:flex;height:56px}.rowCol>*{height:100%}.rowCol .valueCol{padding-right:0;width:100%}.rowCol .operatorCol{padding-left:0;padding-right:0;width:110px}.rowCol .visibleCol{display:flex;justify-content:center;align-items:flex-start;border-top-left-radius:0;border-bottom-left-radius:0;width:50px}.rowCol .visibleCol button{height:100%}.rowCol .coordinatesCol{display:flex;justify-content:center;align-items:flex-start;flex-direction:row;border-top-left-radius:0;border-bottom-left-radius:0;width:104px}.rowCol .coordinatesCol button{height:100%;width:50px;margin:0 1px}::ng-deep .operatorCol .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#a5afc0!important}::ng-deep .operatorCol .mat-mdc-select-value{color:#081c45;font-size:16px;font-weight:700;position:relative;top:-6px}::ng-deep eqp-select mat-form-field.mat-mdc-form-field{margin-top:initial!important}::ng-deep eqp-select mat-form-field .mdc-text-field{padding-top:initial!important;height:56px}\n"], dependencies: [{ kind: "directive", type: i1$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i2$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2$2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i6$2.EqpSelectComponent, selector: "eqp-select", inputs: ["placeholder", "enumData", "enumDataToExclude", "arrayData", "arrayKeyProperty", "arrayValueProperty", "ngModelOptions", "ngModelInput", "formGroupInput", "formControlNameInput", "isRequired", "isDisabled", "isMultiLanguage", "multilanguagePrefixKey", "isAlphabeticalOrderable", "suffixIcon", "prefixIcon", "isMultiSelect", "includeFullObject", "showCancelButton", "isSearchable", "searchText", "noResultSearchText", "data"], outputs: ["ngModelInputChange"] }, { kind: "directive", type: i5$1.EqpNumericDirective, selector: "[eqpNumericMask]", inputs: ["options"] }] });
|
|
8771
8805
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NumericFilterTemplateComponent, decorators: [{
|
|
8772
8806
|
type: Component,
|
|
8773
|
-
args: [{ selector: 'numeric-filter-template', template: "<div class=\"row\">\r\n <div class=\"col-12 rowCol\">\r\n <div class=\"valueCol\">\r\n <mat-form-field [formGroup]=\"field.FormFormGroup\">\r\n <mat-label class=\"pt-1\" [ngStyle]=\"LabelstyleObj\"> {{field.Description}} </mat-label>\r\n <input [ngStyle]=\"FieldstyleObj\" matInput eqpNumericMask [formControlName]=\"field.Name\" [readonly]=\"false\"\r\n [required]=\"false\" [(ngModel)]=\"record[field.Name]\" [options]=\"eqpNumericOptions\"\r\n [step]=\"field.IsInteger ? 1 : null\" (ngModelChange)=\"onFilterChange()\" />\r\n <mat-error *ngIf=\"!field.FormFormGroup.valid && field.FormFormGroup.controls[field.Name].touched\">\r\n Min: {{field.MinValue}} - Max: {{field.MaxValue}}\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"operatorCol\">\r\n <eqp-select [enumData]=\"logicOperatorNumeric\" [(ngModelInput)]=\"selectedLogicOperator\" (ngModelInputChange)=\"onFilterChange()\"></eqp-select>\r\n </div>\r\n <div class=\"visibleCol\">\r\n <button class=\"btn\" [ngClass]=\"{'btn-success': visible , 'btn-danger': !visible }\" (click)=\"changeVisibility()\">\r\n <mat-icon *ngIf=\"visible\">visibility</mat-icon>\r\n <mat-icon *ngIf=\"!visible\">visibility_off</mat-icon>\r\n </button>\r\n </div> \r\n </div>\r\n</div>", styles: [".rowCol{display:flex;height:56px}.rowCol>*{height:100%}.rowCol .valueCol{padding-right:0;width:100%}.rowCol .operatorCol{padding-left:0;padding-right:0;width:110px}.rowCol .visibleCol{display:flex;justify-content:center;align-items:flex-start;border-top-left-radius:0;border-bottom-left-radius:0;width:50px}.rowCol .visibleCol button{height:100%}::ng-deep .operatorCol .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#a5afc0!important}::ng-deep .operatorCol .mat-mdc-select-value{color:#081c45;font-size:16px;font-weight:700;position:relative;top:-6px}::ng-deep eqp-select mat-form-field.mat-mdc-form-field{margin-top:initial!important}::ng-deep eqp-select mat-form-field .mdc-text-field{padding-top:initial!important;height:56px}\n"] }]
|
|
8807
|
+
args: [{ selector: 'numeric-filter-template', template: "<div class=\"row\">\r\n <div class=\"col-12 rowCol\">\r\n <div class=\"valueCol\">\r\n <mat-form-field [formGroup]=\"field.FormFormGroup\">\r\n <mat-label class=\"pt-1\" [ngStyle]=\"LabelstyleObj\"> {{field.Description}} </mat-label>\r\n <input [ngStyle]=\"FieldstyleObj\" matInput eqpNumericMask [formControlName]=\"field.Name\" [readonly]=\"false\"\r\n [required]=\"false\" [(ngModel)]=\"record[field.Name]\" [options]=\"eqpNumericOptions\"\r\n [step]=\"field.IsInteger ? 1 : null\" (ngModelChange)=\"onFilterChange()\" />\r\n <mat-error *ngIf=\"!field.FormFormGroup.valid && field.FormFormGroup.controls[field.Name].touched\">\r\n Min: {{field.MinValue}} - Max: {{field.MaxValue}}\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div class=\"operatorCol\">\r\n <eqp-select [enumData]=\"logicOperatorNumeric\" [(ngModelInput)]=\"selectedLogicOperator\" (ngModelInputChange)=\"onFilterChange()\"></eqp-select>\r\n </div>\r\n <div class=\"visibleCol\">\r\n <button class=\"btn\" [ngClass]=\"{'btn-success': visible , 'btn-danger': !visible }\" (click)=\"changeVisibility()\">\r\n <mat-icon *ngIf=\"visible\">visibility</mat-icon>\r\n <mat-icon *ngIf=\"!visible\">visibility_off</mat-icon>\r\n </button>\r\n </div> \r\n <div class=\"coordinatesCol\">\r\n <button class=\"btn\" [ngClass]=\"{'btn-primary': !isX , 'btn-success': isX }\" (click)=\"becomeTheCoord('X')\">X</button>\r\n <button class=\"btn\" [ngClass]=\"{'btn-primary': !isY , 'btn-success': isY }\" (click)=\"becomeTheCoord('Y')\">Y</button>\r\n </div> \r\n </div>\r\n</div>", styles: [".rowCol{display:flex;height:56px}.rowCol>*{height:100%}.rowCol .valueCol{padding-right:0;width:100%}.rowCol .operatorCol{padding-left:0;padding-right:0;width:110px}.rowCol .visibleCol{display:flex;justify-content:center;align-items:flex-start;border-top-left-radius:0;border-bottom-left-radius:0;width:50px}.rowCol .visibleCol button{height:100%}.rowCol .coordinatesCol{display:flex;justify-content:center;align-items:flex-start;flex-direction:row;border-top-left-radius:0;border-bottom-left-radius:0;width:104px}.rowCol .coordinatesCol button{height:100%;width:50px;margin:0 1px}::ng-deep .operatorCol .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#a5afc0!important}::ng-deep .operatorCol .mat-mdc-select-value{color:#081c45;font-size:16px;font-weight:700;position:relative;top:-6px}::ng-deep eqp-select mat-form-field.mat-mdc-form-field{margin-top:initial!important}::ng-deep eqp-select mat-form-field .mdc-text-field{padding-top:initial!important;height:56px}\n"] }]
|
|
8774
8808
|
}], ctorParameters: function () { return []; }, propDecorators: { field: [{
|
|
8775
8809
|
type: Input
|
|
8776
8810
|
}], record: [{
|
|
8777
8811
|
type: Input
|
|
8778
8812
|
}], Statistic: [{
|
|
8779
8813
|
type: Input
|
|
8814
|
+
}], filterResultViewMode: [{
|
|
8815
|
+
type: Input
|
|
8780
8816
|
}], filterChange: [{
|
|
8781
8817
|
type: Output
|
|
8782
8818
|
}] } });
|
|
@@ -8814,7 +8850,9 @@ class BooleanFilterTemplateComponent {
|
|
|
8814
8850
|
value: this.record[this.field.Name],
|
|
8815
8851
|
logicoperator: this.selectedLogicOperator,
|
|
8816
8852
|
fieldtype: this.field.FieldType,
|
|
8817
|
-
visible: this.visible
|
|
8853
|
+
visible: this.visible,
|
|
8854
|
+
isX: this.isX,
|
|
8855
|
+
isY: this.isY
|
|
8818
8856
|
};
|
|
8819
8857
|
this.filterChange.emit(statistic);
|
|
8820
8858
|
}
|
|
@@ -8865,10 +8903,18 @@ class DateFilterTemplateComponent {
|
|
|
8865
8903
|
this.selectedLogicOperator = this.Statistic.logicoperator;
|
|
8866
8904
|
this.record[this.field.Name] = this.Statistic.value;
|
|
8867
8905
|
this.visible = this.Statistic.visible;
|
|
8906
|
+
this.isX = this.Statistic.isX;
|
|
8907
|
+
this.isY = this.Statistic.isY;
|
|
8868
8908
|
}
|
|
8869
8909
|
this.setTimeType();
|
|
8870
8910
|
this.setOutputFormat();
|
|
8871
8911
|
}
|
|
8912
|
+
ngOnChanges(changes) {
|
|
8913
|
+
if (changes.hasOwnProperty('Statistic') && !changes['Statistic'].firstChange) {
|
|
8914
|
+
this.isX = changes['Statistic'].currentValue.isX;
|
|
8915
|
+
this.isY = changes['Statistic'].currentValue.isY;
|
|
8916
|
+
}
|
|
8917
|
+
}
|
|
8872
8918
|
/**
|
|
8873
8919
|
* In base al formato della data richiesta nel DateField (solo data, solo orario o data e ora)
|
|
8874
8920
|
* imposta la visualizzazione corretta del componente eqp-datetimepicker.
|
|
@@ -8890,14 +8936,20 @@ class DateFilterTemplateComponent {
|
|
|
8890
8936
|
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
8891
8937
|
*/
|
|
8892
8938
|
onFilterChange() {
|
|
8939
|
+
var statistic = this.createStatistic();
|
|
8940
|
+
this.filterChange.emit(statistic);
|
|
8941
|
+
}
|
|
8942
|
+
createStatistic() {
|
|
8893
8943
|
var statistic = {
|
|
8894
8944
|
key: this.field.Name,
|
|
8895
8945
|
value: this.record[this.field.Name],
|
|
8896
8946
|
logicoperator: this.selectedLogicOperator,
|
|
8897
8947
|
fieldtype: this.field.FieldType,
|
|
8898
|
-
visible: this.visible
|
|
8948
|
+
visible: this.visible,
|
|
8949
|
+
isX: this.isX,
|
|
8950
|
+
isY: this.isY
|
|
8899
8951
|
};
|
|
8900
|
-
|
|
8952
|
+
return statistic;
|
|
8901
8953
|
}
|
|
8902
8954
|
setOutputFormat() {
|
|
8903
8955
|
if (this.outputFormat != null) {
|
|
@@ -8922,18 +8974,31 @@ class DateFilterTemplateComponent {
|
|
|
8922
8974
|
this.visible = !this.visible;
|
|
8923
8975
|
this.onFilterChange();
|
|
8924
8976
|
}
|
|
8977
|
+
becomeTheCoord(theCoord) {
|
|
8978
|
+
if (theCoord == "X") {
|
|
8979
|
+
this.isY = false;
|
|
8980
|
+
this.isX = !this.isX;
|
|
8981
|
+
}
|
|
8982
|
+
if (theCoord == "Y") {
|
|
8983
|
+
this.isX = false;
|
|
8984
|
+
this.isY = !this.isY;
|
|
8985
|
+
}
|
|
8986
|
+
this.onFilterChange();
|
|
8987
|
+
}
|
|
8925
8988
|
}
|
|
8926
8989
|
DateFilterTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateFilterTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8927
|
-
DateFilterTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateFilterTemplateComponent, selector: "date-filter-template", inputs: { field: "field", record: "record", Statistic: "Statistic" }, outputs: { filterChange: "filterChange" }, ngImport: i0, template: "<div class=\"row\">\r\n <div class=\"col-12 rowCol\">\r\n <div class=\"valueCol\">\r\n <tmw-datetimepicker [placeholder]=\"field.Description\" [label]=\"field.Description\" [pickerMode]=\"mode\"\r\n [formGroupInput]=\"field.FormFormGroup\" [formControlNameInput]=\"field.Name\"\r\n [minDate]=\"field.MinDate ? field.MinDate : null\" [maxDate]=\"field.MaxDate ? field.MaxDate : null\"\r\n [disabled]=\"field.FormFormGroup.disabled\" [(ngModelInput)]=\"record[field.Name]\"\r\n (ngModelInputChange)=\"onFilterChange()\" [outputFormat]=\"outputFormat\" >\r\n </tmw-datetimepicker>\r\n </div>\r\n <div class=\"operatorCol\">\r\n <eqp-select [enumData]=\"logicOperatorNumeric\" [(ngModelInput)]=\"selectedLogicOperator\" (ngModelInputChange)=\"onFilterChange()\"></eqp-select>\r\n </div>\r\n <div class=\"visibleCol\">\r\n <button class=\"btn\" [ngClass]=\"{'btn-success': visible , 'btn-danger': !visible }\" (click)=\"changeVisibility()\">\r\n <mat-icon *ngIf=\"visible\">visibility</mat-icon>\r\n <mat-icon *ngIf=\"!visible\">visibility_off</mat-icon>\r\n </button>\r\n </div>
|
|
8990
|
+
DateFilterTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DateFilterTemplateComponent, selector: "date-filter-template", inputs: { field: "field", record: "record", Statistic: "Statistic", filterResultViewMode: "filterResultViewMode" }, outputs: { filterChange: "filterChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"row\">\r\n <div class=\"col-12 rowCol\">\r\n <div class=\"valueCol\">\r\n <tmw-datetimepicker [placeholder]=\"field.Description\" [label]=\"field.Description\" [pickerMode]=\"mode\"\r\n [formGroupInput]=\"field.FormFormGroup\" [formControlNameInput]=\"field.Name\"\r\n [minDate]=\"field.MinDate ? field.MinDate : null\" [maxDate]=\"field.MaxDate ? field.MaxDate : null\"\r\n [disabled]=\"field.FormFormGroup.disabled\" [(ngModelInput)]=\"record[field.Name]\"\r\n (ngModelInputChange)=\"onFilterChange()\" [outputFormat]=\"outputFormat\" >\r\n </tmw-datetimepicker>\r\n </div>\r\n <div class=\"operatorCol\">\r\n <eqp-select [enumData]=\"logicOperatorNumeric\" [(ngModelInput)]=\"selectedLogicOperator\" (ngModelInputChange)=\"onFilterChange()\"></eqp-select>\r\n </div>\r\n <div class=\"visibleCol\">\r\n <button class=\"btn\" [ngClass]=\"{'btn-success': visible , 'btn-danger': !visible }\" (click)=\"changeVisibility()\">\r\n <mat-icon *ngIf=\"visible\">visibility</mat-icon>\r\n <mat-icon *ngIf=\"!visible\">visibility_off</mat-icon>\r\n </button>\r\n </div> \r\n <div class=\"coordinatesCol\">\r\n <button class=\"btn\" [ngClass]=\"{'btn-primary': !isX , 'btn-success': isX }\" (click)=\"becomeTheCoord('X')\">X</button>\r\n </div> \r\n </div>\r\n</div>", styles: [".rowCol{display:flex;height:56px}.rowCol>*{height:100%}.rowCol .valueCol{padding-right:0;width:100%}.rowCol .operatorCol{padding-left:0;padding-right:0;width:110px}.rowCol .visibleCol{display:flex;justify-content:center;align-items:flex-start;border-top-left-radius:0;border-bottom-left-radius:0;width:50px}.rowCol .visibleCol button{height:100%}.rowCol .coordinatesCol{display:flex;justify-content:center;align-items:flex-start;flex-direction:row;border-top-left-radius:0;border-bottom-left-radius:0;width:104px}.rowCol .coordinatesCol button{height:100%;width:50px;margin:0 1px}::ng-deep .operatorCol .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#a5afc0!important}::ng-deep .operatorCol .mat-mdc-select-value{color:#081c45;font-size:16px;font-weight:700;position:relative;top:-6px}\n"], dependencies: [{ kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$2.EqpSelectComponent, selector: "eqp-select", inputs: ["placeholder", "enumData", "enumDataToExclude", "arrayData", "arrayKeyProperty", "arrayValueProperty", "ngModelOptions", "ngModelInput", "formGroupInput", "formControlNameInput", "isRequired", "isDisabled", "isMultiLanguage", "multilanguagePrefixKey", "isAlphabeticalOrderable", "suffixIcon", "prefixIcon", "isMultiSelect", "includeFullObject", "showCancelButton", "isSearchable", "searchText", "noResultSearchText", "data"], outputs: ["ngModelInputChange"] }, { kind: "component", type: i8.TmwDateTimePickerComponent, selector: "tmw-datetimepicker", inputs: ["debugMode", "ngModelInput", "formGroupInput", "formControlNameInput", "pickerMode", "timeType", "label", "placeholder", "hint", "minDate", "maxDate", "locale", "inputFormat", "outputFormat", "forSaveLocalOnDB", "disabled", "readonly", "currentDateAsDefault", "showSpinners", "touchUi", "enableMeridian", "hideTime", "stepHour", "showHours", "hourLabel", "stepMinute", "showMinutes", "minuteLabel", "stepSecond", "showSeconds", "secondLabel", "disableMinute", "dayLabel", "monthLabel", "yearLabel", "highLightedDates", "highLightedAriaFormat"], outputs: ["ngModelInputChange"] }] });
|
|
8928
8991
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateFilterTemplateComponent, decorators: [{
|
|
8929
8992
|
type: Component,
|
|
8930
|
-
args: [{ selector: 'date-filter-template', template: "<div class=\"row\">\r\n <div class=\"col-12 rowCol\">\r\n <div class=\"valueCol\">\r\n <tmw-datetimepicker [placeholder]=\"field.Description\" [label]=\"field.Description\" [pickerMode]=\"mode\"\r\n [formGroupInput]=\"field.FormFormGroup\" [formControlNameInput]=\"field.Name\"\r\n [minDate]=\"field.MinDate ? field.MinDate : null\" [maxDate]=\"field.MaxDate ? field.MaxDate : null\"\r\n [disabled]=\"field.FormFormGroup.disabled\" [(ngModelInput)]=\"record[field.Name]\"\r\n (ngModelInputChange)=\"onFilterChange()\" [outputFormat]=\"outputFormat\" >\r\n </tmw-datetimepicker>\r\n </div>\r\n <div class=\"operatorCol\">\r\n <eqp-select [enumData]=\"logicOperatorNumeric\" [(ngModelInput)]=\"selectedLogicOperator\" (ngModelInputChange)=\"onFilterChange()\"></eqp-select>\r\n </div>\r\n <div class=\"visibleCol\">\r\n <button class=\"btn\" [ngClass]=\"{'btn-success': visible , 'btn-danger': !visible }\" (click)=\"changeVisibility()\">\r\n <mat-icon *ngIf=\"visible\">visibility</mat-icon>\r\n <mat-icon *ngIf=\"!visible\">visibility_off</mat-icon>\r\n </button>\r\n </div>
|
|
8993
|
+
args: [{ selector: 'date-filter-template', template: "<div class=\"row\">\r\n <div class=\"col-12 rowCol\">\r\n <div class=\"valueCol\">\r\n <tmw-datetimepicker [placeholder]=\"field.Description\" [label]=\"field.Description\" [pickerMode]=\"mode\"\r\n [formGroupInput]=\"field.FormFormGroup\" [formControlNameInput]=\"field.Name\"\r\n [minDate]=\"field.MinDate ? field.MinDate : null\" [maxDate]=\"field.MaxDate ? field.MaxDate : null\"\r\n [disabled]=\"field.FormFormGroup.disabled\" [(ngModelInput)]=\"record[field.Name]\"\r\n (ngModelInputChange)=\"onFilterChange()\" [outputFormat]=\"outputFormat\" >\r\n </tmw-datetimepicker>\r\n </div>\r\n <div class=\"operatorCol\">\r\n <eqp-select [enumData]=\"logicOperatorNumeric\" [(ngModelInput)]=\"selectedLogicOperator\" (ngModelInputChange)=\"onFilterChange()\"></eqp-select>\r\n </div>\r\n <div class=\"visibleCol\">\r\n <button class=\"btn\" [ngClass]=\"{'btn-success': visible , 'btn-danger': !visible }\" (click)=\"changeVisibility()\">\r\n <mat-icon *ngIf=\"visible\">visibility</mat-icon>\r\n <mat-icon *ngIf=\"!visible\">visibility_off</mat-icon>\r\n </button>\r\n </div> \r\n <div class=\"coordinatesCol\">\r\n <button class=\"btn\" [ngClass]=\"{'btn-primary': !isX , 'btn-success': isX }\" (click)=\"becomeTheCoord('X')\">X</button>\r\n </div> \r\n </div>\r\n</div>", styles: [".rowCol{display:flex;height:56px}.rowCol>*{height:100%}.rowCol .valueCol{padding-right:0;width:100%}.rowCol .operatorCol{padding-left:0;padding-right:0;width:110px}.rowCol .visibleCol{display:flex;justify-content:center;align-items:flex-start;border-top-left-radius:0;border-bottom-left-radius:0;width:50px}.rowCol .visibleCol button{height:100%}.rowCol .coordinatesCol{display:flex;justify-content:center;align-items:flex-start;flex-direction:row;border-top-left-radius:0;border-bottom-left-radius:0;width:104px}.rowCol .coordinatesCol button{height:100%;width:50px;margin:0 1px}::ng-deep .operatorCol .mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#a5afc0!important}::ng-deep .operatorCol .mat-mdc-select-value{color:#081c45;font-size:16px;font-weight:700;position:relative;top:-6px}\n"] }]
|
|
8931
8994
|
}], ctorParameters: function () { return []; }, propDecorators: { field: [{
|
|
8932
8995
|
type: Input
|
|
8933
8996
|
}], record: [{
|
|
8934
8997
|
type: Input
|
|
8935
8998
|
}], Statistic: [{
|
|
8936
8999
|
type: Input
|
|
9000
|
+
}], filterResultViewMode: [{
|
|
9001
|
+
type: Input
|
|
8937
9002
|
}], filterChange: [{
|
|
8938
9003
|
type: Output
|
|
8939
9004
|
}] } });
|
|
@@ -8973,7 +9038,9 @@ class ListValueFilterTemplateComponent {
|
|
|
8973
9038
|
value: this.record[this.field.Name],
|
|
8974
9039
|
logicoperator: this.selectedLogicOperator,
|
|
8975
9040
|
fieldtype: this.field.FieldType,
|
|
8976
|
-
visible: this.visible
|
|
9041
|
+
visible: this.visible,
|
|
9042
|
+
isX: this.isX,
|
|
9043
|
+
isY: this.isY
|
|
8977
9044
|
};
|
|
8978
9045
|
this.filterChange.emit(statistic);
|
|
8979
9046
|
}
|
|
@@ -9127,7 +9194,9 @@ class TextareaFilterTemplateComponent {
|
|
|
9127
9194
|
value: this.record[this.field.Name],
|
|
9128
9195
|
logicoperator: this.selectedLogicOperator,
|
|
9129
9196
|
fieldtype: this.field.FieldType,
|
|
9130
|
-
visible: this.visible
|
|
9197
|
+
visible: this.visible,
|
|
9198
|
+
isX: this.isX,
|
|
9199
|
+
isY: this.isY
|
|
9131
9200
|
};
|
|
9132
9201
|
}
|
|
9133
9202
|
else {
|
|
@@ -9136,7 +9205,9 @@ class TextareaFilterTemplateComponent {
|
|
|
9136
9205
|
value: null,
|
|
9137
9206
|
logicoperator: null,
|
|
9138
9207
|
fieldtype: null,
|
|
9139
|
-
visible: this.visible
|
|
9208
|
+
visible: this.visible,
|
|
9209
|
+
isX: this.isX,
|
|
9210
|
+
isY: this.isY
|
|
9140
9211
|
};
|
|
9141
9212
|
}
|
|
9142
9213
|
return output;
|
|
@@ -9193,7 +9264,9 @@ class AttachmentFilterTemplateComponent {
|
|
|
9193
9264
|
value: this.record[this.field.Name],
|
|
9194
9265
|
logicoperator: this.selectedLogicOperator,
|
|
9195
9266
|
fieldtype: this.field.FieldType,
|
|
9196
|
-
visible: false
|
|
9267
|
+
visible: false,
|
|
9268
|
+
isX: this.isX,
|
|
9269
|
+
isY: this.isY
|
|
9197
9270
|
};
|
|
9198
9271
|
}
|
|
9199
9272
|
else {
|
|
@@ -9202,7 +9275,9 @@ class AttachmentFilterTemplateComponent {
|
|
|
9202
9275
|
value: null,
|
|
9203
9276
|
logicoperator: null,
|
|
9204
9277
|
fieldtype: null,
|
|
9205
|
-
visible: false
|
|
9278
|
+
visible: false,
|
|
9279
|
+
isX: this.isX,
|
|
9280
|
+
isY: this.isY
|
|
9206
9281
|
};
|
|
9207
9282
|
}
|
|
9208
9283
|
return output;
|
|
@@ -9248,7 +9323,9 @@ class ImageFilterTemplateComponent {
|
|
|
9248
9323
|
value: this.record[this.field.Name],
|
|
9249
9324
|
logicoperator: this.selectedLogicOperator,
|
|
9250
9325
|
fieldtype: this.field.FieldType,
|
|
9251
|
-
visible: false
|
|
9326
|
+
visible: false,
|
|
9327
|
+
isX: this.isX,
|
|
9328
|
+
isY: this.isY
|
|
9252
9329
|
};
|
|
9253
9330
|
}
|
|
9254
9331
|
else {
|
|
@@ -9257,7 +9334,9 @@ class ImageFilterTemplateComponent {
|
|
|
9257
9334
|
value: null,
|
|
9258
9335
|
logicoperator: null,
|
|
9259
9336
|
fieldtype: null,
|
|
9260
|
-
visible: false
|
|
9337
|
+
visible: false,
|
|
9338
|
+
isX: this.isX,
|
|
9339
|
+
isY: this.isY
|
|
9261
9340
|
};
|
|
9262
9341
|
}
|
|
9263
9342
|
return output;
|
|
@@ -9291,7 +9370,9 @@ class ListFormRecordFilterTemplateComponent {
|
|
|
9291
9370
|
value: this.record[this.field.Name],
|
|
9292
9371
|
logicoperator: this.selectedLogicOperator,
|
|
9293
9372
|
fieldtype: this.field.FieldType,
|
|
9294
|
-
visible: false
|
|
9373
|
+
visible: false,
|
|
9374
|
+
isX: this.isX,
|
|
9375
|
+
isY: this.isY
|
|
9295
9376
|
};
|
|
9296
9377
|
this.filterChange.emit(statistic);
|
|
9297
9378
|
}
|
|
@@ -9351,7 +9432,9 @@ class ImageSelectorFilterTemplateComponent {
|
|
|
9351
9432
|
value: this.record[this.field.Name],
|
|
9352
9433
|
logicoperator: this.selectedLogicOperator,
|
|
9353
9434
|
fieldtype: this.field.FieldType,
|
|
9354
|
-
visible: false
|
|
9435
|
+
visible: false,
|
|
9436
|
+
isX: this.isX,
|
|
9437
|
+
isY: this.isY
|
|
9355
9438
|
};
|
|
9356
9439
|
}
|
|
9357
9440
|
else {
|
|
@@ -9360,7 +9443,9 @@ class ImageSelectorFilterTemplateComponent {
|
|
|
9360
9443
|
value: null,
|
|
9361
9444
|
logicoperator: null,
|
|
9362
9445
|
fieldtype: null,
|
|
9363
|
-
visible: false
|
|
9446
|
+
visible: false,
|
|
9447
|
+
isX: this.isX,
|
|
9448
|
+
isY: this.isY
|
|
9364
9449
|
};
|
|
9365
9450
|
}
|
|
9366
9451
|
return output;
|
|
@@ -9468,10 +9553,10 @@ class DynamicModuleFilterFixComponent {
|
|
|
9468
9553
|
}
|
|
9469
9554
|
}
|
|
9470
9555
|
DynamicModuleFilterFixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DynamicModuleFilterFixComponent, deps: [{ token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
9471
|
-
DynamicModuleFilterFixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DynamicModuleFilterFixComponent, selector: "dynamic-module-filter-fix", inputs: { field: "field", form: "form", record: "record", Statistic: "Statistic" }, outputs: { filterChange: "filterChange" }, viewQueries: [{ propertyName: "dialogInnerFormRecord", first: true, predicate: ["dialogInnerFormRecord"], descendants: true, static: true }, { propertyName: "fieldTemplate", predicate: ["fieldTemplate"], descendants: true }, { propertyName: "listInnerFormRecords", predicate: ["listInnerFormRecords"], descendants: true }], ngImport: i0, template: "
|
|
9556
|
+
DynamicModuleFilterFixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: DynamicModuleFilterFixComponent, selector: "dynamic-module-filter-fix", inputs: { field: "field", form: "form", record: "record", Statistic: "Statistic", filterResultViewMode: "filterResultViewMode" }, outputs: { filterChange: "filterChange" }, viewQueries: [{ propertyName: "dialogInnerFormRecord", first: true, predicate: ["dialogInnerFormRecord"], descendants: true, static: true }, { propertyName: "fieldTemplate", predicate: ["fieldTemplate"], descendants: true }, { propertyName: "listInnerFormRecords", predicate: ["listInnerFormRecords"], descendants: true }], ngImport: i0, template: "<text-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Campo di testo']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" [Statistic]=\"Statistic\" (filterChange)=\"onFilterChange($event)\">\r\n</text-filter-template>\r\n\r\n<textarea-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Area di testo']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" [Statistic]=\"Statistic\" (filterChange)=\"onFilterChange($event)\">\r\n</textarea-filter-template>\r\n\r\n<boolean-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Booleano']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" [Statistic]=\"Statistic\" (filterChange)=\"onFilterChange($event)\">\r\n</boolean-filter-template>\r\n\r\n<date-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Data e/o ora']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" [filterResultViewMode]=\"filterResultViewMode\" [Statistic]=\"Statistic\" (filterChange)=\"onFilterChange($event)\">\r\n</date-filter-template>\r\n\r\n<numeric-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Campo numerico']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" [filterResultViewMode]=\"filterResultViewMode\" [Statistic]=\"Statistic\" (filterChange)=\"onFilterChange($event)\">\r\n</numeric-filter-template>\r\n\r\n<list-value-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Elenco generico']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" [Statistic]=\"Statistic\" (filterChange)=\"onFilterChange($event)\">\r\n</list-value-filter-template>\r\n\r\n <attachment-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Allegato']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (filterChange)=\"onFilterChange($event)\">\r\n</attachment-filter-template>\r\n\r\n<image-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Immagine']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (filterChange)=\"onFilterChange($event)\">\r\n</image-filter-template>\r\n\r\n\r\n<image-selector-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Elenco immagini']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (filterChange)=\"onFilterChange($event)\">\r\n</image-selector-filter-template>\r\n\r\n<list-form-record-filter-template #listInnerFormRecords *ngIf=\"field.FieldType == FieldTypeEnum['Form di dettaglio']\">\r\n</list-form-record-filter-template>", styles: [""], dependencies: [{ kind: "directive", type: i3$3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TextFilterTemplateComponent, selector: "text-filter-template", inputs: ["field", "record", "Statistic"], outputs: ["recordChange", "filterChange"] }, { kind: "component", type: NumericFilterTemplateComponent, selector: "numeric-filter-template", inputs: ["field", "record", "Statistic", "filterResultViewMode"], outputs: ["filterChange"] }, { kind: "component", type: BooleanFilterTemplateComponent, selector: "boolean-filter-template", inputs: ["field", "record", "Statistic"], outputs: ["filterChange"] }, { kind: "component", type: DateFilterTemplateComponent, selector: "date-filter-template", inputs: ["field", "record", "Statistic", "filterResultViewMode"], outputs: ["filterChange"] }, { kind: "component", type: ListValueFilterTemplateComponent, selector: "list-value-filter-template", inputs: ["field", "record", "Statistic"], outputs: ["filterChange"] }, { kind: "component", type: TextareaFilterTemplateComponent, selector: "textarea-filter-template", inputs: ["field", "record", "Statistic"], outputs: ["recordChange", "filterChange"] }, { kind: "component", type: AttachmentFilterTemplateComponent, selector: "attachment-filter-template", inputs: ["field", "record"], outputs: ["filterChange"] }, { kind: "component", type: ImageFilterTemplateComponent, selector: "image-filter-template", inputs: ["field", "record"], outputs: ["filterChange"] }, { kind: "component", type: ListFormRecordFilterTemplateComponent, selector: "list-form-record-filter-template", inputs: ["field", "record"], outputs: ["filterChange"] }, { kind: "component", type: ImageSelectorFilterTemplateComponent, selector: "image-selector-filter-template", inputs: ["field", "record"], outputs: ["filterChange"] }] });
|
|
9472
9557
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DynamicModuleFilterFixComponent, decorators: [{
|
|
9473
9558
|
type: Component,
|
|
9474
|
-
args: [{ selector: 'dynamic-module-filter-fix', template: "
|
|
9559
|
+
args: [{ selector: 'dynamic-module-filter-fix', template: "<text-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Campo di testo']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" [Statistic]=\"Statistic\" (filterChange)=\"onFilterChange($event)\">\r\n</text-filter-template>\r\n\r\n<textarea-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Area di testo']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" [Statistic]=\"Statistic\" (filterChange)=\"onFilterChange($event)\">\r\n</textarea-filter-template>\r\n\r\n<boolean-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Booleano']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" [Statistic]=\"Statistic\" (filterChange)=\"onFilterChange($event)\">\r\n</boolean-filter-template>\r\n\r\n<date-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Data e/o ora']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" [filterResultViewMode]=\"filterResultViewMode\" [Statistic]=\"Statistic\" (filterChange)=\"onFilterChange($event)\">\r\n</date-filter-template>\r\n\r\n<numeric-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Campo numerico']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" [filterResultViewMode]=\"filterResultViewMode\" [Statistic]=\"Statistic\" (filterChange)=\"onFilterChange($event)\">\r\n</numeric-filter-template>\r\n\r\n<list-value-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Elenco generico']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" [Statistic]=\"Statistic\" (filterChange)=\"onFilterChange($event)\">\r\n</list-value-filter-template>\r\n\r\n <attachment-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Allegato']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (filterChange)=\"onFilterChange($event)\">\r\n</attachment-filter-template>\r\n\r\n<image-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Immagine']\"\r\n [matTooltip]=\"field.Description\" [(record)]=\"record\" [field]=\"field\" (filterChange)=\"onFilterChange($event)\">\r\n</image-filter-template>\r\n\r\n\r\n<image-selector-filter-template #fieldTemplate *ngIf=\"field.FieldType == FieldTypeEnum['Elenco immagini']\"\r\n [matTooltip]=\"field.Tooltip\" [(record)]=\"record\" [field]=\"field\" (filterChange)=\"onFilterChange($event)\">\r\n</image-selector-filter-template>\r\n\r\n<list-form-record-filter-template #listInnerFormRecords *ngIf=\"field.FieldType == FieldTypeEnum['Form di dettaglio']\">\r\n</list-form-record-filter-template>" }]
|
|
9475
9560
|
}], ctorParameters: function () { return [{ type: i1$3.MatDialog }]; }, propDecorators: { field: [{
|
|
9476
9561
|
type: Input
|
|
9477
9562
|
}], form: [{
|
|
@@ -9480,6 +9565,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
9480
9565
|
type: Input
|
|
9481
9566
|
}], Statistic: [{
|
|
9482
9567
|
type: Input
|
|
9568
|
+
}], filterResultViewMode: [{
|
|
9569
|
+
type: Input
|
|
9483
9570
|
}], filterChange: [{
|
|
9484
9571
|
type: Output
|
|
9485
9572
|
}], dialogInnerFormRecord: [{
|
|
@@ -9648,8 +9735,19 @@ class FilterFormStatisticComponent {
|
|
|
9648
9735
|
* Serve ad aggiornare il valore di tutti i campi che hanno una formula.
|
|
9649
9736
|
*/
|
|
9650
9737
|
onFilterChange(ev) {
|
|
9651
|
-
|
|
9652
|
-
if (ev.
|
|
9738
|
+
var statistics = JSON.parse(JSON.stringify(this.filters.Statistics.filter(x => x.key != ev.key)));
|
|
9739
|
+
if (ev.isX || ev.isY) {
|
|
9740
|
+
statistics.forEach(element => {
|
|
9741
|
+
if (ev.isX) {
|
|
9742
|
+
element.isX = false;
|
|
9743
|
+
}
|
|
9744
|
+
if (ev.isY) {
|
|
9745
|
+
element.isY = false;
|
|
9746
|
+
}
|
|
9747
|
+
});
|
|
9748
|
+
}
|
|
9749
|
+
this.filters.Statistics = statistics;
|
|
9750
|
+
if ((ev.logicoperator != null && ev.value != null) || ev.visible || ev.isY || ev.isX) {
|
|
9653
9751
|
this.filters.Statistics.push(ev);
|
|
9654
9752
|
}
|
|
9655
9753
|
}
|
|
@@ -9972,10 +10070,10 @@ class FilterFormStatisticComponent {
|
|
|
9972
10070
|
}
|
|
9973
10071
|
}
|
|
9974
10072
|
FilterFormStatisticComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FilterFormStatisticComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: UtilityHelperService }], target: i0.ɵɵFactoryTarget.Component });
|
|
9975
|
-
FilterFormStatisticComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FilterFormStatisticComponent, selector: "filter-form-statistic", inputs: { configurations: "configurations", endPointConfiguration: "endPointConfiguration", userID: "userID", externalButtons: "externalButtons", actionButtons: "actionButtons", formID: "formID", form: "form", record: "record", onlyView: "onlyView", defaultListActions: "defaultListActions", filterResultViewMode: "filterResultViewMode", Statistic: "Statistic" }, outputs: { fireTrigger: "fireTrigger", saveRecordEvent: "saveRecordEvent", afterSaveRecordEvent: "afterSaveRecordEvent", afterFilter: "afterFilter", afterOutputExternalFilters: "afterOutputExternalFilters" }, viewQueries: [{ propertyName: "tableOutdated", first: true, predicate: ["tableOutdated"], descendants: true }, { propertyName: "fieldTemplate", predicate: ["fieldTemplate"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"loader\">\r\n\r\n <div class=\"row eqp-dynamic-module-title add-form-record-header\" *ngIf=\"showTitle\">\r\n <div class=\"col-md-12\">\r\n <h4><b>{{form.Name}}</b></h4>\r\n </div>\r\n </div>\r\n\r\n <form [formGroup]=\"formForm\" class=\"add-form-record-form\">\r\n\r\n <!-- VISUALIZZAZIONE SEMPLICE -->\r\n <ng-container *ngIf=\"form.FormScalarType == FormScalarTypeEnum.Semplice && !showListView\" [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: form.Fields }\" class=\"add-form-record-semplice\">\r\n </ng-container>\r\n\r\n </form>\r\n\r\n <div class=\"row mt-2 m-2 add-form-record-buttons\"\r\n *ngIf=\"(showBackButton || showSaveButton) && form.FormScalarType != FormScalarTypeEnum['A step']\">\r\n <div class=\"col-sm-12 m-2 text-right\">\r\n <button mat-raised-button color=\"primary\" type=\"button\" *ngIf=\"showListView && showNewSearchButton\" (click)=\"reset()\">\r\n Nuova ricerca\r\n </button>\r\n <button mat-raised-button color=\"primary\" type=\"button\" *ngIf=\"!showListView && filterResultViewMode != filterResultViewModes.FILTERS_ONLY\"\r\n (click)=\"ApplyFilter()\">\r\n Esegui Filtro\r\n </button>\r\n <button mat-raised-button color=\"primary\" type=\"button\" *ngIf=\"filterResultViewMode == filterResultViewModes.FILTERS_ONLY\"\r\n (click)=\"outputExternalFilters()\">\r\n
|
|
10073
|
+
FilterFormStatisticComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FilterFormStatisticComponent, selector: "filter-form-statistic", inputs: { configurations: "configurations", endPointConfiguration: "endPointConfiguration", userID: "userID", externalButtons: "externalButtons", actionButtons: "actionButtons", formID: "formID", form: "form", record: "record", onlyView: "onlyView", defaultListActions: "defaultListActions", filterResultViewMode: "filterResultViewMode", Statistic: "Statistic" }, outputs: { fireTrigger: "fireTrigger", saveRecordEvent: "saveRecordEvent", afterSaveRecordEvent: "afterSaveRecordEvent", afterFilter: "afterFilter", afterOutputExternalFilters: "afterOutputExternalFilters" }, viewQueries: [{ propertyName: "tableOutdated", first: true, predicate: ["tableOutdated"], descendants: true }, { propertyName: "fieldTemplate", predicate: ["fieldTemplate"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"loader\">\r\n\r\n <div class=\"row eqp-dynamic-module-title add-form-record-header\" *ngIf=\"showTitle\">\r\n <div class=\"col-md-12\">\r\n <h4><b>{{form.Name}}</b></h4>\r\n </div>\r\n </div>\r\n\r\n <form [formGroup]=\"formForm\" class=\"add-form-record-form\">\r\n\r\n <!-- VISUALIZZAZIONE SEMPLICE -->\r\n <ng-container *ngIf=\"form.FormScalarType == FormScalarTypeEnum.Semplice && !showListView\" [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: form.Fields }\" class=\"add-form-record-semplice\">\r\n </ng-container>\r\n\r\n </form>\r\n\r\n <div class=\"row mt-2 m-2 add-form-record-buttons\"\r\n *ngIf=\"(showBackButton || showSaveButton) && form.FormScalarType != FormScalarTypeEnum['A step']\">\r\n <div class=\"col-sm-12 m-2 text-right\">\r\n <button mat-raised-button color=\"primary\" type=\"button\" *ngIf=\"showListView && showNewSearchButton\" (click)=\"reset()\">\r\n Nuova ricerca\r\n </button>\r\n <button mat-raised-button color=\"primary\" type=\"button\" *ngIf=\"!showListView && filterResultViewMode != filterResultViewModes.FILTERS_ONLY\"\r\n (click)=\"ApplyFilter()\">\r\n Esegui Filtro\r\n </button>\r\n <button mat-raised-button color=\"primary\" type=\"button\" *ngIf=\"filterResultViewMode == filterResultViewModes.FILTERS_ONLY\"\r\n (click)=\"outputExternalFilters()\">\r\n Salva modifiche filtro\r\n </button> \r\n </div>\r\n </div>\r\n\r\n <list-view-form-record\r\n *ngIf=\"showListView && filterResultViewMode == filterResultViewModes.INTERNAL_LISTVIEW && filterResults != null\"\r\n class=\"dynamic-module-list-view\"\r\n [configurations]=\"listViewConfigurations\"\r\n [compileConfigurations]=\"configurations\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [formID]=\"formID\"\r\n [onlyView]=\"true\"\r\n [records]=\"filterResults\"\r\n [externalButtons]=\"externalButtons\"\r\n >\r\n </list-view-form-record>\r\n\r\n <div *ngIf=\"showListView && filterResultViewMode == filterResultViewModes.INTERNAL_EQPTABLE && filterEqpTableResults != null\" class=\"dynamic-module-eqp-table\">\r\n <eqp-table \r\n\r\n style=\"cursor: pointer\"\r\n #table\r\n emptyTableMessage=\"\"\r\n [data]=\"filterEqpTableResults\"\r\n [columns]=\"columns\"\r\n [exportEqpTable]=\"exportEqpTable\"\r\n\r\n [chooseColumnsToShow]=\"true\"\r\n [switchFilterType]=\"true\"\r\n\r\n [createMatCard]=\"false\"\r\n [disablePageStorageSave]=\"true\"\r\n [isMultiLanguage]=\"true\"\r\n \r\n [matPaginatorCount]=\"filterEqpTableResults != null && filterEqpTableResults.length > 0 ? filterEqpTableResults.length : 0\"\r\n [matPaginatorIndex]=\"pageIndex\"\r\n [matPaginatorSize]=\"pageSize\"\r\n [matPaginatorLength]=\"pageLength\"\r\n >\r\n </eqp-table> \r\n </div> \r\n\r\n</ng-container>\r\n\r\n\r\n\r\n<!-- TEMPLATE PER LA VISUALIZZAZIONE DEI CAMPI DELLA FORM -->\r\n<ng-template #fieldTemplates let-fields='fields' let-outdatedfields='outdatedFields'>\r\n <div class=\"row\" *ngIf=\"!showListView\">\r\n <div class=\"mt-2\" *ngFor=\"let field of fields\" [hidden]=\"!field.InListView\"\r\n [ngClass]=\"utilityService.getFieldSyleClass(field)\">\r\n <dynamic-module-filter-fix #fieldTemplate [field]=\"field\" [form]=\"form\" [record]=\"record\" [filterResultViewMode]=\"filterResultViewMode\" [Statistic]=\"getStatisticFromFieldName(Statistic?.Statistics,field.Name)\"\r\n (filterChange)=\"onFilterChange($event)\">\r\n </dynamic-module-filter-fix>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row\" *ngIf=\"outdatedTableLoaded && outdatedFields != null && outdatedFields.length > 0\">\r\n\r\n <div class=\"outdatedTableContainer\">\r\n\r\n <h2>Filtri Obsoleti</h2>\r\n <p>Sono filtri che sono stati configurati in una versione precedente di questo modulo e poi salvati</p>\r\n\r\n <eqp-table \r\n class=\"outdatedTable\"\r\n style=\"cursor: pointer\"\r\n #tableOutdated\r\n emptyTableMessage=\"\"\r\n [data]=\"outdatedFields\"\r\n [columns]=\"columnsOutdated\"\r\n\r\n [createMatCard]=\"false\"\r\n \r\n [matPaginatorCount]=\"outdatedFields != null && outdatedFields.length > 0 ? outdatedFields.length : 0\"\r\n [matPaginatorIndex]=\"0\"\r\n [matPaginatorSize]=\"5\"\r\n [matPaginatorLength]=\"[5]\"\r\n >\r\n </eqp-table> \r\n </div>\r\n </div>\r\n</ng-template>", styles: [".dynamic-module-eqp-table{padding:20px}.outdatedTableContainer{width:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;margin-top:35px}.outdatedTableContainer .outdatedTable{width:80%}\n"], dependencies: [{ kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i6$1.EqpTableComponent, selector: "eqp-table" }, { kind: "component", type: ListViewFormRecordComponent, selector: "list-view-form-record", inputs: ["configurations", "compileConfigurations", "endPointConfiguration", "userID", "formID", "orgaID", "form", "defaultListViewFunction", "externalButtons", "actionButtons", "onlyView", "records", "highlightFilter", "QueryEditorComponent", "formulaObject"], outputs: ["onAddViewEditRecord", "onDeleteRecord", "saveRecordEvent", "afterSaveRecordEvent", "dragStarted", "dragReleased", "out", "fireTrigger", "clickDragIndicator"] }, { kind: "component", type: DynamicModuleFilterFixComponent, selector: "dynamic-module-filter-fix", inputs: ["field", "form", "record", "Statistic", "filterResultViewMode"], outputs: ["filterChange"] }] });
|
|
9976
10074
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FilterFormStatisticComponent, decorators: [{
|
|
9977
10075
|
type: Component,
|
|
9978
|
-
args: [{ selector: 'filter-form-statistic', template: "<ng-container *ngIf=\"loader\">\r\n\r\n <div class=\"row eqp-dynamic-module-title add-form-record-header\" *ngIf=\"showTitle\">\r\n <div class=\"col-md-12\">\r\n <h4><b>{{form.Name}}</b></h4>\r\n </div>\r\n </div>\r\n\r\n <form [formGroup]=\"formForm\" class=\"add-form-record-form\">\r\n\r\n <!-- VISUALIZZAZIONE SEMPLICE -->\r\n <ng-container *ngIf=\"form.FormScalarType == FormScalarTypeEnum.Semplice && !showListView\" [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: form.Fields }\" class=\"add-form-record-semplice\">\r\n </ng-container>\r\n\r\n </form>\r\n\r\n <div class=\"row mt-2 m-2 add-form-record-buttons\"\r\n *ngIf=\"(showBackButton || showSaveButton) && form.FormScalarType != FormScalarTypeEnum['A step']\">\r\n <div class=\"col-sm-12 m-2 text-right\">\r\n <button mat-raised-button color=\"primary\" type=\"button\" *ngIf=\"showListView && showNewSearchButton\" (click)=\"reset()\">\r\n Nuova ricerca\r\n </button>\r\n <button mat-raised-button color=\"primary\" type=\"button\" *ngIf=\"!showListView && filterResultViewMode != filterResultViewModes.FILTERS_ONLY\"\r\n (click)=\"ApplyFilter()\">\r\n Esegui Filtro\r\n </button>\r\n <button mat-raised-button color=\"primary\" type=\"button\" *ngIf=\"filterResultViewMode == filterResultViewModes.FILTERS_ONLY\"\r\n (click)=\"outputExternalFilters()\">\r\n
|
|
10076
|
+
args: [{ selector: 'filter-form-statistic', template: "<ng-container *ngIf=\"loader\">\r\n\r\n <div class=\"row eqp-dynamic-module-title add-form-record-header\" *ngIf=\"showTitle\">\r\n <div class=\"col-md-12\">\r\n <h4><b>{{form.Name}}</b></h4>\r\n </div>\r\n </div>\r\n\r\n <form [formGroup]=\"formForm\" class=\"add-form-record-form\">\r\n\r\n <!-- VISUALIZZAZIONE SEMPLICE -->\r\n <ng-container *ngIf=\"form.FormScalarType == FormScalarTypeEnum.Semplice && !showListView\" [ngTemplateOutlet]=\"fieldTemplates\"\r\n [ngTemplateOutletContext]=\"{ fields: form.Fields }\" class=\"add-form-record-semplice\">\r\n </ng-container>\r\n\r\n </form>\r\n\r\n <div class=\"row mt-2 m-2 add-form-record-buttons\"\r\n *ngIf=\"(showBackButton || showSaveButton) && form.FormScalarType != FormScalarTypeEnum['A step']\">\r\n <div class=\"col-sm-12 m-2 text-right\">\r\n <button mat-raised-button color=\"primary\" type=\"button\" *ngIf=\"showListView && showNewSearchButton\" (click)=\"reset()\">\r\n Nuova ricerca\r\n </button>\r\n <button mat-raised-button color=\"primary\" type=\"button\" *ngIf=\"!showListView && filterResultViewMode != filterResultViewModes.FILTERS_ONLY\"\r\n (click)=\"ApplyFilter()\">\r\n Esegui Filtro\r\n </button>\r\n <button mat-raised-button color=\"primary\" type=\"button\" *ngIf=\"filterResultViewMode == filterResultViewModes.FILTERS_ONLY\"\r\n (click)=\"outputExternalFilters()\">\r\n Salva modifiche filtro\r\n </button> \r\n </div>\r\n </div>\r\n\r\n <list-view-form-record\r\n *ngIf=\"showListView && filterResultViewMode == filterResultViewModes.INTERNAL_LISTVIEW && filterResults != null\"\r\n class=\"dynamic-module-list-view\"\r\n [configurations]=\"listViewConfigurations\"\r\n [compileConfigurations]=\"configurations\"\r\n [endPointConfiguration]=\"endPointConfiguration\"\r\n [formID]=\"formID\"\r\n [onlyView]=\"true\"\r\n [records]=\"filterResults\"\r\n [externalButtons]=\"externalButtons\"\r\n >\r\n </list-view-form-record>\r\n\r\n <div *ngIf=\"showListView && filterResultViewMode == filterResultViewModes.INTERNAL_EQPTABLE && filterEqpTableResults != null\" class=\"dynamic-module-eqp-table\">\r\n <eqp-table \r\n\r\n style=\"cursor: pointer\"\r\n #table\r\n emptyTableMessage=\"\"\r\n [data]=\"filterEqpTableResults\"\r\n [columns]=\"columns\"\r\n [exportEqpTable]=\"exportEqpTable\"\r\n\r\n [chooseColumnsToShow]=\"true\"\r\n [switchFilterType]=\"true\"\r\n\r\n [createMatCard]=\"false\"\r\n [disablePageStorageSave]=\"true\"\r\n [isMultiLanguage]=\"true\"\r\n \r\n [matPaginatorCount]=\"filterEqpTableResults != null && filterEqpTableResults.length > 0 ? filterEqpTableResults.length : 0\"\r\n [matPaginatorIndex]=\"pageIndex\"\r\n [matPaginatorSize]=\"pageSize\"\r\n [matPaginatorLength]=\"pageLength\"\r\n >\r\n </eqp-table> \r\n </div> \r\n\r\n</ng-container>\r\n\r\n\r\n\r\n<!-- TEMPLATE PER LA VISUALIZZAZIONE DEI CAMPI DELLA FORM -->\r\n<ng-template #fieldTemplates let-fields='fields' let-outdatedfields='outdatedFields'>\r\n <div class=\"row\" *ngIf=\"!showListView\">\r\n <div class=\"mt-2\" *ngFor=\"let field of fields\" [hidden]=\"!field.InListView\"\r\n [ngClass]=\"utilityService.getFieldSyleClass(field)\">\r\n <dynamic-module-filter-fix #fieldTemplate [field]=\"field\" [form]=\"form\" [record]=\"record\" [filterResultViewMode]=\"filterResultViewMode\" [Statistic]=\"getStatisticFromFieldName(Statistic?.Statistics,field.Name)\"\r\n (filterChange)=\"onFilterChange($event)\">\r\n </dynamic-module-filter-fix>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row\" *ngIf=\"outdatedTableLoaded && outdatedFields != null && outdatedFields.length > 0\">\r\n\r\n <div class=\"outdatedTableContainer\">\r\n\r\n <h2>Filtri Obsoleti</h2>\r\n <p>Sono filtri che sono stati configurati in una versione precedente di questo modulo e poi salvati</p>\r\n\r\n <eqp-table \r\n class=\"outdatedTable\"\r\n style=\"cursor: pointer\"\r\n #tableOutdated\r\n emptyTableMessage=\"\"\r\n [data]=\"outdatedFields\"\r\n [columns]=\"columnsOutdated\"\r\n\r\n [createMatCard]=\"false\"\r\n \r\n [matPaginatorCount]=\"outdatedFields != null && outdatedFields.length > 0 ? outdatedFields.length : 0\"\r\n [matPaginatorIndex]=\"0\"\r\n [matPaginatorSize]=\"5\"\r\n [matPaginatorLength]=\"[5]\"\r\n >\r\n </eqp-table> \r\n </div>\r\n </div>\r\n</ng-template>", styles: [".dynamic-module-eqp-table{padding:20px}.outdatedTableContainer{width:100%;display:flex;justify-content:center;align-items:center;flex-flow:column;margin-top:35px}.outdatedTableContainer .outdatedTable{width:80%}\n"] }]
|
|
9979
10077
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: UtilityHelperService }]; }, propDecorators: { configurations: [{
|
|
9980
10078
|
type: Input
|
|
9981
10079
|
}], endPointConfiguration: [{
|
|
@@ -14990,7 +15088,9 @@ class ListFormRecordTriggerTemplateComponent {
|
|
|
14990
15088
|
value: this.record[this.field.Name],
|
|
14991
15089
|
logicoperator: this.selectedLogicOperator,
|
|
14992
15090
|
fieldtype: this.field.FieldType,
|
|
14993
|
-
visible: true
|
|
15091
|
+
visible: true,
|
|
15092
|
+
isX: this.isX,
|
|
15093
|
+
isY: this.isY
|
|
14994
15094
|
};
|
|
14995
15095
|
}
|
|
14996
15096
|
else {
|
|
@@ -14999,7 +15099,9 @@ class ListFormRecordTriggerTemplateComponent {
|
|
|
14999
15099
|
value: null,
|
|
15000
15100
|
logicoperator: null,
|
|
15001
15101
|
fieldtype: null,
|
|
15002
|
-
visible: true
|
|
15102
|
+
visible: true,
|
|
15103
|
+
isX: this.isX,
|
|
15104
|
+
isY: this.isY
|
|
15003
15105
|
};
|
|
15004
15106
|
}
|
|
15005
15107
|
return output;
|