@fluxhub/fluxhub-lib 1.0.298 → 1.0.300
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/bundles/fluxhub-fluxhub-lib.umd.js +11 -1
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/docs/components/FHGridComponent.html +24 -0
- package/docs/components/FHGridJSONComponent.html +1 -1
- package/docs/coverage.html +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhgrid.js +7 -1
- package/esm2015/lib/controls/fhgrid_json.js +4 -2
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +5 -1
- package/esm5/lib/controls/fhgrid.js +7 -1
- package/esm5/lib/controls/fhgrid_json.js +4 -2
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +5 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +12 -2
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +12 -2
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhgrid.d.ts +1 -0
- package/package.json +4 -5
|
@@ -33,7 +33,7 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|
|
33
33
|
import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
34
34
|
import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
|
|
35
35
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
36
|
-
import { Injectable, Component,
|
|
36
|
+
import { Injectable, Component, Pipe, Inject, PLATFORM_ID, Directive, Input, forwardRef, Output, EventEmitter, ViewChild, ElementRef, Optional, HostListener, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
|
|
37
37
|
import { Http } from '@angular/http';
|
|
38
38
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
39
39
|
import { ToastrService } from 'ngx-toastr';
|
|
@@ -5741,6 +5741,7 @@ class FHGridComponent {
|
|
|
5741
5741
|
this.sort_field = "";
|
|
5742
5742
|
this.fields = "*";
|
|
5743
5743
|
this.filters = "1=1";
|
|
5744
|
+
this.auto_height = false;
|
|
5744
5745
|
this.abilita_export = true;
|
|
5745
5746
|
this.enabled_pag = true;
|
|
5746
5747
|
this.show_help = true;
|
|
@@ -6835,6 +6836,8 @@ class FHGridComponent {
|
|
|
6835
6836
|
return;
|
|
6836
6837
|
}
|
|
6837
6838
|
}
|
|
6839
|
+
if (this.auto_height)
|
|
6840
|
+
this.gridOptions.api.setGridAutoHeight(true);
|
|
6838
6841
|
this.onready_go();
|
|
6839
6842
|
}
|
|
6840
6843
|
/**
|
|
@@ -7193,6 +7196,7 @@ FHGridComponent.propDecorators = {
|
|
|
7193
7196
|
sort_field: [{ type: Input }],
|
|
7194
7197
|
fields: [{ type: Input }],
|
|
7195
7198
|
filters: [{ type: Input }],
|
|
7199
|
+
auto_height: [{ type: Input }],
|
|
7196
7200
|
abilita_export: [{ type: Input }],
|
|
7197
7201
|
enabled_pag: [{ type: Input }],
|
|
7198
7202
|
show_help: [{ type: Input }],
|
|
@@ -12778,7 +12782,7 @@ class FHGridJSONComponent {
|
|
|
12778
12782
|
this.sort_field = "";
|
|
12779
12783
|
this.fields = "*";
|
|
12780
12784
|
this.filters = "1=1";
|
|
12781
|
-
this.auto_height =
|
|
12785
|
+
this.auto_height = false;
|
|
12782
12786
|
this.abilita_export = true;
|
|
12783
12787
|
this.enabled_pag = true;
|
|
12784
12788
|
this.show_help = true;
|
|
@@ -13584,6 +13588,8 @@ class FHGridJSONComponent {
|
|
|
13584
13588
|
return;
|
|
13585
13589
|
}
|
|
13586
13590
|
}
|
|
13591
|
+
if (this.auto_height)
|
|
13592
|
+
this.gridOptions.api.setGridAutoHeight(true);
|
|
13587
13593
|
this.onready_go();
|
|
13588
13594
|
}
|
|
13589
13595
|
/**
|
|
@@ -15714,6 +15720,8 @@ class dati_aggiuntivi {
|
|
|
15714
15720
|
*/
|
|
15715
15721
|
return_edit() {
|
|
15716
15722
|
console.log('return_edit');
|
|
15723
|
+
console.log('rthis.m_obj.autori ', this.m_obj.autori);
|
|
15724
|
+
console.log('this.user_idp ', this.user_idp);
|
|
15717
15725
|
for (let i = 0; i < this.livs.length; i++)
|
|
15718
15726
|
if (this.livs[i].livello == this.m_obj.stato) {
|
|
15719
15727
|
if (this.livs[i].abilita_indietro == 1)
|
|
@@ -15722,6 +15730,8 @@ class dati_aggiuntivi {
|
|
|
15722
15730
|
this.respingi_enabled = false;
|
|
15723
15731
|
break;
|
|
15724
15732
|
}
|
|
15733
|
+
if (this.m_obj.autori == null)
|
|
15734
|
+
this.m_obj.autori = '';
|
|
15725
15735
|
if (this.m_obj.autori.toLowerCase().indexOf(this.user_idp.toLowerCase()) != -1) {
|
|
15726
15736
|
this.edit_b(true);
|
|
15727
15737
|
if (this.respingi_enabled)
|