@fluxhub/fluxhub-lib 9.0.34 → 9.0.36

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.
@@ -5725,6 +5725,7 @@ var FHGridComponent = /** @class */ (function () {
5725
5725
  // console.log( this.g_height);
5726
5726
  };
5727
5727
  FHGridComponent.prototype.autoSizeAll = function () {
5728
+ var _this = this;
5728
5729
  if (this.gridOptions == null)
5729
5730
  return;
5730
5731
  if (this.gridOptions.columnApi == null)
@@ -5734,6 +5735,11 @@ var FHGridComponent = /** @class */ (function () {
5734
5735
  allColumnIds.push(columnDef.field);
5735
5736
  });
5736
5737
  this.gridOptions.columnApi.autoSizeColumns(allColumnIds);
5738
+ if (this.gridOptions.columnApi.getColumnState().length > 0)
5739
+ if (this.gridOptions.columnApi.getColumnState()[0].width == 24) {
5740
+ setTimeout(function () { _this.autoSizeAll(); }, 300);
5741
+ return;
5742
+ }
5737
5743
  this.save_cfg();
5738
5744
  };
5739
5745
  FHGridComponent.prototype.fitSizeAll = function () {
@@ -7067,7 +7073,6 @@ var FHDatePickerComponent = /** @class */ (function () {
7067
7073
  };
7068
7074
  this.dateAdapter.setLocale('it-IT');
7069
7075
  }
7070
- FHDatePickerComponent_1 = FHDatePickerComponent;
7071
7076
  FHDatePickerComponent.prototype.checkInput = function (ob) {
7072
7077
  /* if(ob.key=='-')
7073
7078
  {
@@ -7198,7 +7203,6 @@ var FHDatePickerComponent = /** @class */ (function () {
7198
7203
  FHDatePickerComponent.prototype.registerOnTouched = function (fn) {
7199
7204
  this.onTouched = fn;
7200
7205
  };
7201
- var FHDatePickerComponent_1;
7202
7206
  FHDatePickerComponent.ctorParameters = function () { return [
7203
7207
  { type: DateAdapter },
7204
7208
  { type: UtilityService }
@@ -7235,13 +7239,12 @@ var FHDatePickerComponent = /** @class */ (function () {
7235
7239
  ViewChild('pickerId'),
7236
7240
  __metadata("design:type", ElementRef)
7237
7241
  ], FHDatePickerComponent.prototype, "pickerId", void 0);
7238
- FHDatePickerComponent = FHDatePickerComponent_1 = __decorate([
7242
+ FHDatePickerComponent = __decorate([
7239
7243
  Component({
7240
7244
  selector: 'FHDatePicker',
7241
7245
  providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4,
7242
7246
  { provide: MAT_DATE_FORMATS, useValue: ɵ1 },
7243
7247
  { provide: DateAdapter, useClass: MomentDateAdapter },
7244
- { provide: NG_VALUE_ACCESSOR, useExisting: FHDatePickerComponent_1, multi: true },
7245
7248
  { provide: MAT_DATE_LOCALE, useValue: 'it-IT' },
7246
7249
  ],
7247
7250
  template: "\n <div [hidden]=\"!show_buttons||!enabled\">\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"add_year()\">+1 Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"ini_year()\">Inizio Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"fin_year()\">Fine Anno</button>\n </div>\n\n <mat-form-field (click)=\"chxx($event)\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input [disabled]=\"!enabled\" #pickerId (dateChange)=\"ch( $event)\" (focusout)=\"dt_chg($event)\" (keyup)=\"checkInput($event)\"\n (click)=\"chxx($event)\" [(ngModel)]=\"date_sel\" matInput [matDatepicker]=\"picker\" >\n <mat-datepicker-toggle matSuffix [for]=\"picker\" (click)=\"chxx($event)\"></mat-datepicker-toggle>\n <mat-datepicker (click)=\"chxx($event)\" #picker></mat-datepicker>\n </mat-form-field>\n\n ",