@eqproject/eqp-dynamic-module 2.10.15 → 2.10.17
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-statistics/filter-templates/boolean-filter-template/boolean-filter-template.component.mjs +7 -1
- package/esm2020/lib/components/private/form-statistics/filter-templates/date-filter-template/date-filter-template.component.mjs +7 -1
- package/esm2020/lib/components/private/form-statistics/filter-templates/list-value-filter-template/list-value-filter-template.component.mjs +9 -3
- package/esm2020/lib/components/private/form-statistics/filter-templates/numeric-filter-template/numeric-filter-template.component.mjs +7 -1
- package/esm2020/lib/components/private/form-statistics/filter-templates/text-filter-template/text-filter-template.component.mjs +7 -1
- package/esm2020/lib/components/private/form-statistics/filter-templates/textarea-filter-template/textarea-filter-template.component.mjs +7 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +38 -2
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +38 -2
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8772,6 +8772,9 @@ class TextFilterTemplateComponent {
|
|
|
8772
8772
|
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
8773
8773
|
*/
|
|
8774
8774
|
onFilterChange() {
|
|
8775
|
+
if (this.aggregations != null && this.aggregations.length > 0) {
|
|
8776
|
+
this.visible = true;
|
|
8777
|
+
}
|
|
8775
8778
|
var statistic = {
|
|
8776
8779
|
key: this.field.Name,
|
|
8777
8780
|
value: this.record[this.field.Name],
|
|
@@ -8789,6 +8792,9 @@ class TextFilterTemplateComponent {
|
|
|
8789
8792
|
*/
|
|
8790
8793
|
changeVisibility() {
|
|
8791
8794
|
this.visible = !this.visible;
|
|
8795
|
+
if (this.aggregations != null && this.aggregations.length > 0) {
|
|
8796
|
+
this.visible = true;
|
|
8797
|
+
}
|
|
8792
8798
|
this.onFilterChange();
|
|
8793
8799
|
}
|
|
8794
8800
|
}
|
|
@@ -8860,6 +8866,9 @@ class NumericFilterTemplateComponent {
|
|
|
8860
8866
|
this.filterChange.emit(statistic);
|
|
8861
8867
|
}
|
|
8862
8868
|
createStatistic() {
|
|
8869
|
+
if (this.aggregations != null && this.aggregations.length > 0) {
|
|
8870
|
+
this.visible = true;
|
|
8871
|
+
}
|
|
8863
8872
|
var statistic = {
|
|
8864
8873
|
key: this.field.Name,
|
|
8865
8874
|
value: this.record[this.field.Name],
|
|
@@ -8913,6 +8922,9 @@ class NumericFilterTemplateComponent {
|
|
|
8913
8922
|
*/
|
|
8914
8923
|
changeVisibility() {
|
|
8915
8924
|
this.visible = !this.visible;
|
|
8925
|
+
if (this.aggregations != null && this.aggregations.length > 0) {
|
|
8926
|
+
this.visible = true;
|
|
8927
|
+
}
|
|
8916
8928
|
this.onFilterChange();
|
|
8917
8929
|
}
|
|
8918
8930
|
becomeTheCoord(theCoord) {
|
|
@@ -8985,6 +8997,9 @@ class BooleanFilterTemplateComponent {
|
|
|
8985
8997
|
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
8986
8998
|
*/
|
|
8987
8999
|
onFilterChange() {
|
|
9000
|
+
if (this.aggregations != null && this.aggregations.length > 0) {
|
|
9001
|
+
this.visible = true;
|
|
9002
|
+
}
|
|
8988
9003
|
var statistic = {
|
|
8989
9004
|
key: this.field.Name,
|
|
8990
9005
|
value: this.record[this.field.Name],
|
|
@@ -9002,6 +9017,9 @@ class BooleanFilterTemplateComponent {
|
|
|
9002
9017
|
*/
|
|
9003
9018
|
changeVisibility() {
|
|
9004
9019
|
this.visible = !this.visible;
|
|
9020
|
+
if (this.aggregations != null && this.aggregations.length > 0) {
|
|
9021
|
+
this.visible = true;
|
|
9022
|
+
}
|
|
9005
9023
|
this.onFilterChange();
|
|
9006
9024
|
}
|
|
9007
9025
|
/**
|
|
@@ -9088,6 +9106,9 @@ class DateFilterTemplateComponent {
|
|
|
9088
9106
|
this.filterChange.emit(statistic);
|
|
9089
9107
|
}
|
|
9090
9108
|
createStatistic() {
|
|
9109
|
+
if (this.aggregations != null && this.aggregations.length > 0) {
|
|
9110
|
+
this.visible = true;
|
|
9111
|
+
}
|
|
9091
9112
|
var statistic = {
|
|
9092
9113
|
key: this.field.Name,
|
|
9093
9114
|
value: this.record[this.field.Name],
|
|
@@ -9121,6 +9142,9 @@ class DateFilterTemplateComponent {
|
|
|
9121
9142
|
*/
|
|
9122
9143
|
changeVisibility() {
|
|
9123
9144
|
this.visible = !this.visible;
|
|
9145
|
+
if (this.aggregations != null && this.aggregations.length > 0) {
|
|
9146
|
+
this.visible = true;
|
|
9147
|
+
}
|
|
9124
9148
|
this.onFilterChange();
|
|
9125
9149
|
}
|
|
9126
9150
|
becomeTheCoord(theCoord) {
|
|
@@ -9195,6 +9219,9 @@ class ListValueFilterTemplateComponent {
|
|
|
9195
9219
|
* Metodo per emettere l'evento che il valore del record è cambiato.
|
|
9196
9220
|
*/
|
|
9197
9221
|
onFilterChange() {
|
|
9222
|
+
if (this.aggregations != null && this.aggregations.length > 0) {
|
|
9223
|
+
this.visible = true;
|
|
9224
|
+
}
|
|
9198
9225
|
var statistic = {
|
|
9199
9226
|
key: this.field.Name,
|
|
9200
9227
|
value: this.record[this.field.Name],
|
|
@@ -9250,6 +9277,9 @@ class ListValueFilterTemplateComponent {
|
|
|
9250
9277
|
*/
|
|
9251
9278
|
changeVisibility() {
|
|
9252
9279
|
this.visible = !this.visible;
|
|
9280
|
+
if (this.aggregations != null && this.aggregations.length > 0) {
|
|
9281
|
+
this.visible = true;
|
|
9282
|
+
}
|
|
9253
9283
|
this.onFilterChange();
|
|
9254
9284
|
}
|
|
9255
9285
|
createArrayDataElement(key, value, imgUrl = null) {
|
|
@@ -9274,10 +9304,10 @@ class ListValueFilterTemplateComponent {
|
|
|
9274
9304
|
}
|
|
9275
9305
|
}
|
|
9276
9306
|
ListValueFilterTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListValueFilterTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9277
|
-
ListValueFilterTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ListValueFilterTemplateComponent, selector: "list-value-filter-template", inputs: { field: "field", record: "record", Statistic: "Statistic", showXY: "showXY" }, outputs: { filterChange: "filterChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"row\">\r\n <div class=\"col-12 rowCol\">\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\" [hidden]=\"!showXY\">\r\n\r\n </div> \r\n <div class=\"valueCol\">\r\n <eqp-select [ngStyle]=\"FieldstyleObj\" [arrayData]=\"arrayData\"\r\n [arrayKeyProperty]=\"'Value'\" [showCancelButton]=\"true\" [arrayValueProperty]=\"'Key'\"\r\n [formGroupInput]=\"field.FormFormGroup\" [formControlNameInput]=\"field.Name\" [placeholder]=\"field.Description\"\r\n [includeFullObject]=\"false\" [isRequired]=\"false\" [isDisabled]=\"false\"\r\n [(ngModelInput)]=\"record[field.Name]\" [isMultiSelect]=\"true\"\r\n (ngModelInputChange)=\"onFilterChange()\">\r\n </eqp-select>\r\n </div>\r\n <div class=\"operatorCol\">\r\n <eqp-select [enumData]=\"logicOperatorListValue\" [(ngModelInput)]=\"selectedLogicOperator\" [showCancelButton]=\"false\" (ngModelInputChange)=\"onFilterChange()\"></eqp-select>\r\n </div> \r\n <div class=\"aggregatorCol\">\r\n <eqp-select\r\n [isMultiSelect]=\"true\"\r\n [enumData]=\"aggregationFunctionEnum\"\r\n [(ngModelInput)]=\"aggregations\"\r\n (ngModelInputChange)=\"onFilterChange()\"\r\n ></eqp-select>\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;min-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;min-width:50px}.rowCol .visibleCol button{height:100%}.rowCol .coordinatesCol{width:35px;min-width:35px}.rowCol .aggregatorCol{min-width:219px}::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: "directive", type: i2$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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"] }] });
|
|
9307
|
+
ListValueFilterTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ListValueFilterTemplateComponent, selector: "list-value-filter-template", inputs: { field: "field", record: "record", Statistic: "Statistic", showXY: "showXY" }, outputs: { filterChange: "filterChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"row\">\r\n <div class=\"col-12 rowCol\">\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\" [hidden]=\"!showXY\">\r\n\r\n </div> \r\n <div class=\"valueCol\">\r\n <eqp-select [ngStyle]=\"FieldstyleObj\" [arrayData]=\"arrayData\"\r\n [arrayKeyProperty]=\"'Value'\" [showCancelButton]=\"true\" [arrayValueProperty]=\"'Key'\"\r\n [formGroupInput]=\"field.FormFormGroup\" [formControlNameInput]=\"field.Name\" [placeholder]=\"field.Description\"\r\n [includeFullObject]=\"false\" [isRequired]=\"false\" [isDisabled]=\"false\"\r\n [(ngModelInput)]=\"record[field.Name]\" [isMultiSelect]=\"true\"\r\n (ngModelInputChange)=\"onFilterChange()\">\r\n </eqp-select>\r\n </div>\r\n <div class=\"operatorCol\">\r\n <eqp-select [enumData]=\"logicOperatorListValue\" [(ngModelInput)]=\"selectedLogicOperator\" [showCancelButton]=\"false\" (ngModelInputChange)=\"onFilterChange()\"></eqp-select>\r\n </div> \r\n <div class=\"aggregatorCol\">\r\n <eqp-select\r\n [placeholder]=\"'Aggregazioni'\"\r\n [isMultiSelect]=\"true\"\r\n [enumData]=\"aggregationFunctionEnum\"\r\n [(ngModelInput)]=\"aggregations\"\r\n (ngModelInputChange)=\"onFilterChange()\"\r\n ></eqp-select>\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;min-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;min-width:50px}.rowCol .visibleCol button{height:100%}.rowCol .coordinatesCol{width:35px;min-width:35px}.rowCol .aggregatorCol{min-width:219px}::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: "directive", type: i2$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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"] }] });
|
|
9278
9308
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ListValueFilterTemplateComponent, decorators: [{
|
|
9279
9309
|
type: Component,
|
|
9280
|
-
args: [{ selector: 'list-value-filter-template', template: "<div class=\"row\">\r\n <div class=\"col-12 rowCol\">\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\" [hidden]=\"!showXY\">\r\n\r\n </div> \r\n <div class=\"valueCol\">\r\n <eqp-select [ngStyle]=\"FieldstyleObj\" [arrayData]=\"arrayData\"\r\n [arrayKeyProperty]=\"'Value'\" [showCancelButton]=\"true\" [arrayValueProperty]=\"'Key'\"\r\n [formGroupInput]=\"field.FormFormGroup\" [formControlNameInput]=\"field.Name\" [placeholder]=\"field.Description\"\r\n [includeFullObject]=\"false\" [isRequired]=\"false\" [isDisabled]=\"false\"\r\n [(ngModelInput)]=\"record[field.Name]\" [isMultiSelect]=\"true\"\r\n (ngModelInputChange)=\"onFilterChange()\">\r\n </eqp-select>\r\n </div>\r\n <div class=\"operatorCol\">\r\n <eqp-select [enumData]=\"logicOperatorListValue\" [(ngModelInput)]=\"selectedLogicOperator\" [showCancelButton]=\"false\" (ngModelInputChange)=\"onFilterChange()\"></eqp-select>\r\n </div> \r\n <div class=\"aggregatorCol\">\r\n <eqp-select\r\n [isMultiSelect]=\"true\"\r\n [enumData]=\"aggregationFunctionEnum\"\r\n [(ngModelInput)]=\"aggregations\"\r\n (ngModelInputChange)=\"onFilterChange()\"\r\n ></eqp-select>\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;min-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;min-width:50px}.rowCol .visibleCol button{height:100%}.rowCol .coordinatesCol{width:35px;min-width:35px}.rowCol .aggregatorCol{min-width:219px}::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"] }]
|
|
9310
|
+
args: [{ selector: 'list-value-filter-template', template: "<div class=\"row\">\r\n <div class=\"col-12 rowCol\">\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\" [hidden]=\"!showXY\">\r\n\r\n </div> \r\n <div class=\"valueCol\">\r\n <eqp-select [ngStyle]=\"FieldstyleObj\" [arrayData]=\"arrayData\"\r\n [arrayKeyProperty]=\"'Value'\" [showCancelButton]=\"true\" [arrayValueProperty]=\"'Key'\"\r\n [formGroupInput]=\"field.FormFormGroup\" [formControlNameInput]=\"field.Name\" [placeholder]=\"field.Description\"\r\n [includeFullObject]=\"false\" [isRequired]=\"false\" [isDisabled]=\"false\"\r\n [(ngModelInput)]=\"record[field.Name]\" [isMultiSelect]=\"true\"\r\n (ngModelInputChange)=\"onFilterChange()\">\r\n </eqp-select>\r\n </div>\r\n <div class=\"operatorCol\">\r\n <eqp-select [enumData]=\"logicOperatorListValue\" [(ngModelInput)]=\"selectedLogicOperator\" [showCancelButton]=\"false\" (ngModelInputChange)=\"onFilterChange()\"></eqp-select>\r\n </div> \r\n <div class=\"aggregatorCol\">\r\n <eqp-select\r\n [placeholder]=\"'Aggregazioni'\"\r\n [isMultiSelect]=\"true\"\r\n [enumData]=\"aggregationFunctionEnum\"\r\n [(ngModelInput)]=\"aggregations\"\r\n (ngModelInputChange)=\"onFilterChange()\"\r\n ></eqp-select>\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;min-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;min-width:50px}.rowCol .visibleCol button{height:100%}.rowCol .coordinatesCol{width:35px;min-width:35px}.rowCol .aggregatorCol{min-width:219px}::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"] }]
|
|
9281
9311
|
}], ctorParameters: function () { return []; }, propDecorators: { field: [{
|
|
9282
9312
|
type: Input
|
|
9283
9313
|
}], record: [{
|
|
@@ -9363,6 +9393,9 @@ class TextareaFilterTemplateComponent {
|
|
|
9363
9393
|
* Metodo che genera l'oggetto da inviare all'esterno
|
|
9364
9394
|
*/
|
|
9365
9395
|
generateCondition(mode) {
|
|
9396
|
+
if (this.aggregations != null && this.aggregations.length > 0) {
|
|
9397
|
+
this.visible = true;
|
|
9398
|
+
}
|
|
9366
9399
|
let output = new Statistic();
|
|
9367
9400
|
if (mode == "active") {
|
|
9368
9401
|
output = {
|
|
@@ -9395,6 +9428,9 @@ class TextareaFilterTemplateComponent {
|
|
|
9395
9428
|
*/
|
|
9396
9429
|
changeVisibility() {
|
|
9397
9430
|
this.visible = !this.visible;
|
|
9431
|
+
if (this.aggregations != null && this.aggregations.length > 0) {
|
|
9432
|
+
this.visible = true;
|
|
9433
|
+
}
|
|
9398
9434
|
this.onFilterChange();
|
|
9399
9435
|
}
|
|
9400
9436
|
}
|