@fluxhub/fluxhub-lib 11.0.129 → 11.0.131

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.
@@ -21,7 +21,7 @@ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
21
21
  import 'ag-grid-enterprise';
22
22
  import { MatSelectModule } from '@angular/material/select';
23
23
  import { MatAutocompleteTrigger, MatAutocompleteModule } from '@angular/material/autocomplete';
24
- import { DateAdapter, MAT_DATE_FORMATS, MatNativeDateModule } from '@angular/material/core';
24
+ import { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MatNativeDateModule } from '@angular/material/core';
25
25
  import * as momentNs from 'moment';
26
26
  import { isMoment } from 'moment';
27
27
  import { isPlatformBrowser, CommonModule } from '@angular/common';
@@ -73,6 +73,10 @@ import { MatSortModule } from '@angular/material/sort';
73
73
  import { MatTableModule } from '@angular/material/table';
74
74
  import { MatBadgeModule } from '@angular/material/badge';
75
75
  import { QuillModule } from 'ngx-quill';
76
+ import { ServerSideStoreType } from 'ag-grid-community';
77
+ import { MAT_MOMENT_DATE_FORMATS, MomentDateAdapter as MomentDateAdapter$1, MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular/material-moment-adapter';
78
+ import 'moment/locale/it';
79
+ import 'moment/locale/en-gb';
76
80
 
77
81
  class FSInput {
78
82
  constructor() {
@@ -1310,8 +1314,8 @@ OdbcService.ctorParameters = () => [
1310
1314
  ];
1311
1315
 
1312
1316
  const noop$9 = () => { };
1313
- const ɵ0$9 = noop$9;
1314
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a = {
1317
+ const ɵ0$a = noop$9;
1318
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$b = {
1315
1319
  provide: NG_VALUE_ACCESSOR,
1316
1320
  useExisting: forwardRef(() => FHComboboxComponent),
1317
1321
  multi: true,
@@ -1697,7 +1701,7 @@ class FHComboboxComponent {
1697
1701
  FHComboboxComponent.decorators = [
1698
1702
  { type: Component, args: [{
1699
1703
  selector: "FHComboBox",
1700
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a],
1704
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$b],
1701
1705
  template: `
1702
1706
  <div style="min-height:45px" *ngIf="enabled && !hidden && !is_loaded && myData?.length==0"><mat-spinner diameter="25" ></mat-spinner></div>
1703
1707
  <mat-form-field
@@ -3962,7 +3966,7 @@ fh_win_picklist.propDecorators = {
3962
3966
  value_sel: [{ type: Input }]
3963
3967
  };
3964
3968
 
3965
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 = {
3969
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a = {
3966
3970
  provide: NG_VALUE_ACCESSOR,
3967
3971
  useExisting: forwardRef(() => FHPickFieldComponent),
3968
3972
  multi: true,
@@ -4066,7 +4070,7 @@ class FHPickFieldComponent {
4066
4070
  FHPickFieldComponent.decorators = [
4067
4071
  { type: Component, args: [{
4068
4072
  selector: "FHPickField",
4069
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
4073
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a],
4070
4074
  template: `
4071
4075
  <div fxLayout="row" [hidden]="!enabled || hidden">
4072
4076
  <mat-form-field [class.fh_field]="enabled"
@@ -5087,7 +5091,7 @@ win_riassegna_select_user.propDecorators = {
5087
5091
  up: [{ type: ViewChild, args: ['up',] }]
5088
5092
  };
5089
5093
 
5090
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
5094
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 = {
5091
5095
  provide: NG_VALUE_ACCESSOR,
5092
5096
  useExisting: forwardRef(() => FHUserFieldComponent),
5093
5097
  multi: true,
@@ -5298,7 +5302,7 @@ class FHUserFieldComponent {
5298
5302
  FHUserFieldComponent.decorators = [
5299
5303
  { type: Component, args: [{
5300
5304
  selector: "FHUserField",
5301
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
5305
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
5302
5306
  template: `
5303
5307
  <div fxLayout="row" [hidden]="!enabled || hidden">
5304
5308
  <mat-form-field
@@ -8969,7 +8973,6 @@ class FHUploadComponent {
8969
8973
  this.id_component = this.uti.newGuid();
8970
8974
  if (this.app_s.user)
8971
8975
  this.username = this.app_s.user;
8972
- console.log('this.app_s.user ', this.app_s.user);
8973
8976
  this.uploader.onBeforeUploadItem = (item) => {
8974
8977
  item.withCredentials = false;
8975
8978
  };
@@ -8992,7 +8995,6 @@ class FHUploadComponent {
8992
8995
  };
8993
8996
  }
8994
8997
  call_up() {
8995
- console.log('this.app_s.user ', this.app_s.user);
8996
8998
  this.call_upload.emit({
8997
8999
  App: this.App,
8998
9000
  K: this.K,
@@ -9150,7 +9152,6 @@ class FHUploadComponent {
9150
9152
  form.append('single', this.single);
9151
9153
  form.append('username', this.app_s.user);
9152
9154
  form.append('ver', this.ver);
9153
- // console.log('this.app_s.user ', this.app_s.user);
9154
9155
  if ((this.multi_list && this.show_upload) || this.direct_type) {
9155
9156
  if (this.cmb_tipo && !this.direct_type)
9156
9157
  form.append('tipo', (this.cmb_tipo.getDescri() || '').split('-1').join(''));
@@ -11310,8 +11311,8 @@ FHFormToolBarComponent.propDecorators = {
11310
11311
  };
11311
11312
 
11312
11313
  const noop$8 = () => { };
11313
- const ɵ0$8 = noop$8;
11314
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 = {
11314
+ const ɵ0$9 = noop$8;
11315
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
11315
11316
  provide: NG_VALUE_ACCESSOR,
11316
11317
  useExisting: forwardRef(() => FHTextArea),
11317
11318
  multi: true,
@@ -11361,7 +11362,7 @@ class FHTextArea {
11361
11362
  FHTextArea.decorators = [
11362
11363
  { type: Component, args: [{
11363
11364
  selector: "FHTextArea",
11364
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7],
11365
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
11365
11366
  template: `
11366
11367
  <mat-form-field [hidden]="hidden" appearance="outline" floatLabel="always" [class.fh_field]="enabled" [class.fh_field_dis]="!enabled"
11367
11368
  ><mat-label>{{ label }}</mat-label>
@@ -11738,8 +11739,8 @@ fh_win_time_slider.ctorParameters = () => [
11738
11739
  ];
11739
11740
 
11740
11741
  const noop$7 = () => { };
11741
- const ɵ0$7 = noop$7;
11742
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 = {
11742
+ const ɵ0$8 = noop$7;
11743
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 = {
11743
11744
  provide: NG_VALUE_ACCESSOR,
11744
11745
  useExisting: forwardRef(() => FHTimePickerComponent),
11745
11746
  multi: true,
@@ -11977,7 +11978,7 @@ class FHTimePickerComponent {
11977
11978
  FHTimePickerComponent.decorators = [
11978
11979
  { type: Component, args: [{
11979
11980
  selector: 'FHTimePicker',
11980
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6],
11981
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7],
11981
11982
  template: `
11982
11983
  <div
11983
11984
  fxLayout="row"
@@ -12175,8 +12176,8 @@ CurrencyComponent.decorators = [
12175
12176
  ];
12176
12177
 
12177
12178
  const noop$6 = () => { };
12178
- const ɵ0$6 = noop$6;
12179
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 = {
12179
+ const ɵ0$7 = noop$6;
12180
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 = {
12180
12181
  provide: NG_VALUE_ACCESSOR,
12181
12182
  useExisting: forwardRef(() => FHAutoCompleteComponent),
12182
12183
  multi: true,
@@ -12549,7 +12550,7 @@ class FHAutoCompleteComponent {
12549
12550
  FHAutoCompleteComponent.decorators = [
12550
12551
  { type: Component, args: [{
12551
12552
  selector: "FHAutoComplete",
12552
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5],
12553
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6],
12553
12554
  template: `
12554
12555
  <div style="min-height:45px" *ngIf="enabled && !hidden && !is_loaded && myData?.length==0"><mat-spinner diameter="25" ></mat-spinner></div>
12555
12556
  <mat-form-field
@@ -12801,8 +12802,8 @@ class MomentDateAdapter extends DateAdapter {
12801
12802
  }
12802
12803
 
12803
12804
  const noop$5 = () => { };
12804
- const ɵ0$5 = noop$5;
12805
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 = {
12805
+ const ɵ0$6 = noop$5;
12806
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 = {
12806
12807
  provide: NG_VALUE_ACCESSOR,
12807
12808
  useExisting: forwardRef(() => FHDatePickerComponent),
12808
12809
  multi: true,
@@ -12818,8 +12819,8 @@ class FHDatePickerComponent {
12818
12819
  this.required = false;
12819
12820
  this.show_buttons = false;
12820
12821
  this.enabled = true;
12821
- this.min_date = null;
12822
- this.max_date = null;
12822
+ this.min = null;
12823
+ this.max = null;
12823
12824
  this.change = new EventEmitter();
12824
12825
  this.pickerId = null;
12825
12826
  this.init_end = new EventEmitter();
@@ -12958,8 +12959,8 @@ class FHDatePickerComponent {
12958
12959
  setLimits() {
12959
12960
  /* let copy = this.getCopyOfOptions();
12960
12961
 
12961
- if ( this.min_date != null ) {this.min_date.setDate(this.min_date.getDate() -1 ); copy.disableUntil = { year: this.min_date.getFullYear( ), month: this.min_date.getMonth( )+1, day: this.min_date.getDate( ) }};
12962
- if ( this.max_date != null ) {this.max_date.setDate(this.max_date.getDate() +1 );copy.disableSince = { year: this.max_date.getFullYear( ), month: this.max_date.getMonth( )+1, day: this.max_date.getDate( ) }};
12962
+ if ( this.min != null ) {this.min.setDate(this.min.getDate() -1 ); copy.disableUntil = { year: this.min.getFullYear( ), month: this.min.getMonth( )+1, day: this.min.getDate( ) }};
12963
+ if ( this.max != null ) {this.max.setDate(this.max.getDate() +1 );copy.disableSince = { year: this.max.getFullYear( ), month: this.max.getMonth( )+1, day: this.max.getDate( ) }};
12963
12964
  this.myDatePickerOptions = copy;
12964
12965
  */
12965
12966
  }
@@ -13007,7 +13008,7 @@ FHDatePickerComponent.decorators = [
13007
13008
  { type: Component, args: [{
13008
13009
  selector: 'FHDatePicker',
13009
13010
  providers: [
13010
- CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4,
13011
+ CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5,
13011
13012
  { provide: MAT_DATE_FORMATS, useValue: ɵ1 },
13012
13013
  { provide: DateAdapter, useClass: MomentDateAdapter },
13013
13014
  ],
@@ -13049,8 +13050,8 @@ FHDatePickerComponent.decorators = [
13049
13050
  (dateChange)="ch($event)"
13050
13051
  (focusout)="dt_chg($event)"
13051
13052
  (keyup)="checkInput($event)"
13052
- [min]="min_date"
13053
- [max]="max_date"
13053
+ [min]="min"
13054
+ [max]="max"
13054
13055
  [required]="required"
13055
13056
  (click)="chxx($event)"
13056
13057
  [(ngModel)]="date_sel"
@@ -13100,16 +13101,16 @@ FHDatePickerComponent.propDecorators = {
13100
13101
  required: [{ type: Input }],
13101
13102
  show_buttons: [{ type: Input }],
13102
13103
  enabled: [{ type: Input }],
13103
- min_date: [{ type: Input }],
13104
- max_date: [{ type: Input }],
13104
+ min: [{ type: Input }],
13105
+ max: [{ type: Input }],
13105
13106
  change: [{ type: Output }],
13106
13107
  pickerId: [{ type: ViewChild, args: ['pickerId',] }],
13107
13108
  init_end: [{ type: Output }]
13108
13109
  };
13109
13110
 
13110
13111
  const noop$4 = () => { };
13111
- const ɵ0$4 = noop$4;
13112
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 = {
13112
+ const ɵ0$5 = noop$4;
13113
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 = {
13113
13114
  provide: NG_VALUE_ACCESSOR,
13114
13115
  useExisting: forwardRef(() => FHTextInput),
13115
13116
  multi: true,
@@ -13168,7 +13169,7 @@ class FHTextInput {
13168
13169
  FHTextInput.decorators = [
13169
13170
  { type: Component, args: [{
13170
13171
  selector: "FHTextInput",
13171
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3],
13172
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4],
13172
13173
  template: `
13173
13174
  <mat-form-field [hidden]="hidden" appearance="outline" floatLabel="always" [class.fh_field]="enabled" [class.fh_field_dis]="!enabled"
13174
13175
  ><mat-label>{{ label }}</mat-label>
@@ -14034,7 +14035,7 @@ FHLogPanelComponent.propDecorators = {
14034
14035
  };
14035
14036
 
14036
14037
  const noop$3 = () => { };
14037
- const ɵ0$3 = noop$3;
14038
+ const ɵ0$4 = noop$3;
14038
14039
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT = {
14039
14040
  provide: NG_VALUE_ACCESSOR,
14040
14041
  useExisting: forwardRef(() => FHRichText),
@@ -14219,7 +14220,7 @@ fh_win_output.propDecorators = {
14219
14220
  };
14220
14221
 
14221
14222
  const noop$2 = () => { };
14222
- const ɵ0$2 = noop$2;
14223
+ const ɵ0$3 = noop$2;
14223
14224
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC = {
14224
14225
  provide: NG_VALUE_ACCESSOR,
14225
14226
  useExisting: forwardRef(() => FHNumericFieldComponent),
@@ -21206,7 +21207,7 @@ SafePipe.ctorParameters = () => [
21206
21207
  { type: DomSanitizer }
21207
21208
  ];
21208
21209
 
21209
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 = {
21210
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 = {
21210
21211
  provide: NG_VALUE_ACCESSOR,
21211
21212
  useExisting: forwardRef(() => FHFieldPickListComponent),
21212
21213
  multi: true,
@@ -21285,7 +21286,7 @@ class FHFieldPickListComponent {
21285
21286
  }
21286
21287
  FHFieldPickListComponent.decorators = [
21287
21288
  { type: Component, args: [{
21288
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2],
21289
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3],
21289
21290
  selector: "FHFieldPickList",
21290
21291
  template: `
21291
21292
  <div
@@ -22615,8 +22616,8 @@ FHHelpButton.propDecorators = {
22615
22616
  };
22616
22617
 
22617
22618
  const noop$1 = () => { };
22618
- const ɵ0$1 = noop$1;
22619
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 = {
22619
+ const ɵ0$2 = noop$1;
22620
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 = {
22620
22621
  provide: NG_VALUE_ACCESSOR,
22621
22622
  useExisting: forwardRef(() => FHCheckBox),
22622
22623
  multi: true,
@@ -22670,7 +22671,7 @@ class FHCheckBox {
22670
22671
  FHCheckBox.decorators = [
22671
22672
  { type: Component, args: [{
22672
22673
  selector: "FHCheckBox",
22673
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1],
22674
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2],
22674
22675
  template: `
22675
22676
  <mat-checkbox [class.fh_field_ck]="enabled" [class.fh_field_dis_ck]="!enabled"
22676
22677
  [(ngModel)]="value_b"
@@ -28707,6 +28708,7 @@ class FHGridComponentN {
28707
28708
  cacheBlockSize: this.num_per_pag,
28708
28709
  headerHeight: this.header_h,
28709
28710
  paginationAutoPageSize: this.paginationAutoPageSize,
28711
+ serverSideStoreType: ServerSideStoreType.Partial,
28710
28712
  rowHeight: this.row_height,
28711
28713
  enableRangeSelection: true,
28712
28714
  defaultColDef: { resizable: true, sortable: true, floatingFilter: true },
@@ -29846,8 +29848,8 @@ fh_win_select_by_grid.propDecorators = {
29846
29848
  };
29847
29849
 
29848
29850
  const noop = () => { };
29849
- const ɵ0 = noop;
29850
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
29851
+ const ɵ0$1 = noop;
29852
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 = {
29851
29853
  provide: NG_VALUE_ACCESSOR,
29852
29854
  useExisting: forwardRef(() => FHMultiComboboxComponent),
29853
29855
  multi: true,
@@ -30178,7 +30180,7 @@ class FHMultiComboboxComponent {
30178
30180
  FHMultiComboboxComponent.decorators = [
30179
30181
  { type: Component, args: [{
30180
30182
  selector: "FHMultiComboBox",
30181
- providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
30183
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1],
30182
30184
  template: `
30183
30185
  <div style="min-height:45px" *ngIf="enabled && !hidden && !is_loaded && myData?.length==0"><mat-spinner diameter="25" ></mat-spinner></div>
30184
30186
  <mat-form-field
@@ -30385,6 +30387,254 @@ fh_win_grid_selection.propDecorators = {
30385
30387
  dtm: [{ type: ViewChild, args: ["dtm",] }]
30386
30388
  };
30387
30389
 
30390
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
30391
+ provide: NG_VALUE_ACCESSOR,
30392
+ useExisting: forwardRef(() => FHDateRangePickerComponent),
30393
+ multi: true,
30394
+ };
30395
+ const ɵ0 = MAT_MOMENT_DATE_FORMATS;
30396
+ class FHDateRangePickerComponent {
30397
+ constructor(uti_s, _apps, adapter) {
30398
+ this.uti_s = uti_s;
30399
+ this._apps = _apps;
30400
+ this.adapter = adapter;
30401
+ this.label = '';
30402
+ this.error = null;
30403
+ this.required = false;
30404
+ this.show_buttons = false;
30405
+ this.enabled = true;
30406
+ this.min = null;
30407
+ this.max = null;
30408
+ this.dateStart = null;
30409
+ this.dateEnd = null;
30410
+ this.change = new EventEmitter();
30411
+ this.pickerId = null;
30412
+ this.init_end = new EventEmitter();
30413
+ this.v_view = this.uti_s.date2String(new Date());
30414
+ this.date_sel = null;
30415
+ this.v_date_sel = '';
30416
+ this.onChange = (_) => { };
30417
+ this.onTouched = () => { };
30418
+ this.setlocalt();
30419
+ }
30420
+ checkInput(ob) {
30421
+ /* if(ob.key=='-')
30422
+ {
30423
+ ob.preventDefault();
30424
+ //this.date_sel+=this.date_sel+'/';
30425
+ this.pickerId.nativeElement.value=this.pickerId.nativeElement.value.split('-').join('/');
30426
+
30427
+ }
30428
+ let arr: Array<string> = this.pickerId.nativeElement.value.split('-').join('/').split('/');
30429
+ console.log(arr);
30430
+ if (arr.length == 3) {
30431
+ let yy=parseInt(arr[2]);
30432
+
30433
+ if(yy<25 && yy!=20){yy+=2000;
30434
+ this.pickerId.nativeElement.value=arr[0]+'/'+arr[1]+'/'+yy;}
30435
+ }*/
30436
+ }
30437
+ dt_chg(event) {
30438
+ let s = event.target.value;
30439
+ let arr = s.split('-').join('/').split('/');
30440
+ if (arr.length == 3) {
30441
+ if (arr[1].length == 1)
30442
+ arr[1] = '0' + arr[1];
30443
+ if (arr[0].length == 1)
30444
+ arr[0] = '0' + arr[0];
30445
+ if (parseInt(arr[2]) < 3000 &&
30446
+ parseInt(arr[0]) > 0 &&
30447
+ parseInt(arr[0]) <= 31 &&
30448
+ parseInt(arr[1]) > 0 &&
30449
+ parseInt(arr[1]) <= 12) {
30450
+ let yy = parseInt(arr[2]);
30451
+ if (yy < 100)
30452
+ yy += 2000;
30453
+ this.date_sel = new Date(yy, parseInt(arr[1]) - 1, parseInt(arr[0]));
30454
+ }
30455
+ else
30456
+ console.log('data non valida! ', arr);
30457
+ }
30458
+ }
30459
+ chxx(e) {
30460
+ this.setlocalt();
30461
+ //console.log(e);
30462
+ //e.stopPropagation();
30463
+ }
30464
+ /*public myDatePickerOptions: IMyDpOptions = {
30465
+ // other options...
30466
+ width:'150px',
30467
+ dateFormat: 'dd/mm/yyyy',
30468
+ dayLabels: {su: 'Dom', mo: 'Lun', tu: 'Mar', we: 'Mer', th: 'Gio', fr: 'Ven', sa: 'Sab'},
30469
+ monthLabels: { 1: 'Gen', 2: 'Feb', 3: 'Mar', 4: 'Apr', 5: 'Mag', 6: 'Giu', 7: 'Lug', 8: 'Ago', 9: 'Set', 10: 'Ott', 11: 'Nov', 12: 'Dic' }
30470
+ };*/
30471
+ ch(event) {
30472
+ // console.log("ON CHANGE ", this.getValue());
30473
+ this.onChange(this.getValue());
30474
+ this.change.emit(this.getValue());
30475
+ }
30476
+ setlocalt() {
30477
+ //console.log('setlocalt ',this._apps.user_lang);
30478
+ if (this._apps.user_lang == null || this._apps.user_lang == '') {
30479
+ setTimeout(() => {
30480
+ this.setlocalt();
30481
+ }, 500);
30482
+ return;
30483
+ }
30484
+ if ((this._apps.user_lang || '') == 'it') {
30485
+ this.adapter.setLocale('it');
30486
+ //console.log('set locale it');
30487
+ }
30488
+ else if (this._apps.user_lang == 'en') {
30489
+ this.adapter.setLocale('en');
30490
+ // console.log('set locale gb');
30491
+ }
30492
+ else {
30493
+ this.adapter.setLocale('it');
30494
+ }
30495
+ }
30496
+ setFocus() {
30497
+ if (this.pickerId)
30498
+ this.pickerId.nativeElement.focus();
30499
+ }
30500
+ dt_ch() {
30501
+ setTimeout(() => {
30502
+ this.ch();
30503
+ }, 50);
30504
+ }
30505
+ dateChange() {
30506
+ setTimeout(() => {
30507
+ this.onChange(this.getValue());
30508
+ this.change.emit(this.getValue());
30509
+ }, 0);
30510
+ }
30511
+ getValue() {
30512
+ if (this.dateStart && this.dateStart) {
30513
+ return { start: this.dateStart, end: this.dateEnd };
30514
+ }
30515
+ return null;
30516
+ }
30517
+ ngAfterViewInit() {
30518
+ setTimeout(() => {
30519
+ this.setLimits();
30520
+ this.init_end.emit();
30521
+ });
30522
+ // this.myDatePickerOptions.componentDisabled=!this.enabled;
30523
+ }
30524
+ setLimits() {
30525
+ /* let copy = this.getCopyOfOptions();
30526
+
30527
+ if ( this.min_date != null ) {this.min_date.setDate(this.min_date.getDate() -1 ); copy.disableUntil = { year: this.min_date.getFullYear( ), month: this.min_date.getMonth( )+1, day: this.min_date.getDate( ) }};
30528
+ if ( this.max_date != null ) {this.max_date.setDate(this.max_date.getDate() +1 );copy.disableSince = { year: this.max_date.getFullYear( ), month: this.max_date.getMonth( )+1, day: this.max_date.getDate( ) }};
30529
+ this.myDatePickerOptions = copy;
30530
+ */
30531
+ }
30532
+ setToday() {
30533
+ this.date_sel = new Date();
30534
+ }
30535
+ setValue(d) {
30536
+ // console.log("🚀 ~ file: FHDateRangePicker.ts:284 ~ setValue ~ d", d)
30537
+ this.setlocalt();
30538
+ // this.dateAdapter.setLocale("it-IT");
30539
+ if (d == null) {
30540
+ this.dateStart = null;
30541
+ this.dateEnd = null;
30542
+ return;
30543
+ }
30544
+ if (d.start == null)
30545
+ this.dateStart = d.start;
30546
+ if (d.end == null)
30547
+ this.dateEnd = d.start;
30548
+ }
30549
+ writeValue(value) {
30550
+ this.setValue(value);
30551
+ }
30552
+ registerOnChange(fn) {
30553
+ this.onChange = fn;
30554
+ }
30555
+ registerOnTouched(fn) {
30556
+ this.onTouched = fn;
30557
+ }
30558
+ }
30559
+ FHDateRangePickerComponent.decorators = [
30560
+ { type: Component, args: [{
30561
+ selector: 'FHDateRangePicker',
30562
+ providers: [
30563
+ // The locale would typically be provided on the root module of your application. We do it at
30564
+ // the component level here, due to limitations of our example generation script.
30565
+ { provide: MAT_DATE_LOCALE, useValue: 'it-IT' },
30566
+ // `MomentDateAdapter` and `MAT_MOMENT_DATE_FORMATS` can be automatically provided by importing
30567
+ // `MatMomentDateModule` in your applications root module. We provide it at the component level
30568
+ // here, due to limitations of our example generation script.
30569
+ {
30570
+ provide: DateAdapter,
30571
+ useClass: MomentDateAdapter$1,
30572
+ deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS],
30573
+ },
30574
+ { provide: MAT_DATE_FORMATS, useValue: ɵ0 },
30575
+ CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR
30576
+ ],
30577
+ template: `
30578
+
30579
+ <mat-form-field
30580
+ appearance="outline"
30581
+ floatLabel="always"
30582
+ class="fh_date_picker"
30583
+ ><mat-label>{{ label | translate }}</mat-label>
30584
+ <mat-date-range-input [rangePicker]="picker">
30585
+ <input matStartDate [min]="min" [max]="max" [required]="required" [(ngModel)]="dateStart" [disabled]="!enabled"
30586
+ (ngModelChange)="dateChange()" placeholder="Start date">
30587
+ <input matEndDate [min]="min" [max]="max" [required]="required" [(ngModel)]="dateEnd"
30588
+ (ngModelChange)="dateChange()" placeholder="End date" [disabled]="!enabled">
30589
+ </mat-date-range-input>
30590
+ <mat-datepicker-toggle matIconSuffix [for]="picker"></mat-datepicker-toggle>
30591
+ <mat-date-range-picker (click)="chxx($event)" #picker></mat-date-range-picker>
30592
+ <mat-error *ngIf="error == null">{{ error }}</mat-error>
30593
+ </mat-form-field>
30594
+ `,
30595
+ styles: [`
30596
+ .lb_small_grigia {
30597
+ font-size: 15px;
30598
+ color: #b8b8b8;
30599
+ }
30600
+
30601
+ .label_dis {
30602
+ font-size: 14px;
30603
+ font-weight: bold;
30604
+ }
30605
+
30606
+ :host.ng-invalid > .ng-touched ::ng-deep .mat-input-element,
30607
+ :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-label {
30608
+ color: #f44336;
30609
+ }
30610
+
30611
+ :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-underline,
30612
+ :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-ripple {
30613
+ background-color: #f44336;
30614
+ }
30615
+ `]
30616
+ },] }
30617
+ ];
30618
+ FHDateRangePickerComponent.ctorParameters = () => [
30619
+ { type: UtilityService },
30620
+ { type: AppService },
30621
+ { type: DateAdapter }
30622
+ ];
30623
+ FHDateRangePickerComponent.propDecorators = {
30624
+ label: [{ type: Input }],
30625
+ error: [{ type: Input }],
30626
+ required: [{ type: Input }],
30627
+ show_buttons: [{ type: Input }],
30628
+ enabled: [{ type: Input }],
30629
+ min: [{ type: Input }],
30630
+ max: [{ type: Input }],
30631
+ dateStart: [{ type: Input }],
30632
+ dateEnd: [{ type: Input }],
30633
+ change: [{ type: Output }],
30634
+ pickerId: [{ type: ViewChild, args: ['pickerId',] }],
30635
+ init_end: [{ type: Output }]
30636
+ };
30637
+
30388
30638
  class FluxhubLibModule {
30389
30639
  static forRoot() {
30390
30640
  return {
@@ -30450,7 +30700,7 @@ FluxhubLibModule.decorators = [
30450
30700
  MatTableModule,
30451
30701
  MatNativeDateModule,
30452
30702
  FileUploadModule,
30453
- AgGridModule.withComponents([NumericEditorComponent]),
30703
+ AgGridModule,
30454
30704
  CommonModule,
30455
30705
  DragulaModule,
30456
30706
  FormsModule,
@@ -30459,9 +30709,10 @@ FluxhubLibModule.decorators = [
30459
30709
  }),
30460
30710
  FlexLayoutModule,
30461
30711
  QuillModule,
30462
- MarkdownModule
30712
+ MarkdownModule,
30463
30713
  ],
30464
30714
  exports: [
30715
+ FHDateRangePickerComponent,
30465
30716
  fh_win_show_log_dett,
30466
30717
  fh_win_show_log,
30467
30718
  FHFormToolBarComponent,
@@ -30525,6 +30776,7 @@ FluxhubLibModule.decorators = [
30525
30776
  wkf_header_bar_v2
30526
30777
  ],
30527
30778
  declarations: [
30779
+ FHDateRangePickerComponent,
30528
30780
  fh_win_upload,
30529
30781
  fh_win_show_log_dett,
30530
30782
  win_show_log_info_dett,
@@ -31919,5 +32171,5 @@ wkfapp_v2.ctorParameters = () => [
31919
32171
  * Generated bundle index. Do not edit.
31920
32172
  */
31921
32173
 
31922
- export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHFormToolBarComponent, FHGridComponent, FHGridComponentN, FHGridJSONComponent, FHGuard, FHHelpButton, FHListComponent, FHLogPanelComponent, FHMdReader, FHMultiComboboxComponent, FHNumericFieldComponent, FHPickFieldComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, dati_aggiuntivi_v2, fh_win_app_logs, fh_win_ask_big_text, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_richtext, fh_win_ask_text, fh_win_auto_complete, fh_win_combo, fh_win_confirm, fh_win_grid_selection, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_select_by_grid, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log, fh_win_show_log_dett, fh_win_time_slider, fh_win_upload, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, fhimagepreview, win_insert_commento, win_salva_annulla, wkf_header_bar, wkf_header_bar_v2, wkfapp, wkfapp_v2, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵb, win_commenti as ɵba, win_info_doc as ɵbb, win_log as ɵbc, win_recupera_doc as ɵbd, win_riassegna_select_level as ɵbe, win_riassegna_select_user as ɵbf, win_sostituisci_utente as ɵbg, win_commento_sel_notif as ɵbh, win_manage_values as ɵbi, win_manage_roles as ɵbj, FHComboboxComponentFilter as ɵbk, win_salva_annulla_v2 as ɵbl, win_assegna_v2 as ɵbm, win_conferma_v2 as ɵbn, win_select_canale_v2 as ɵbo, win_select_level_v2 as ɵbp, win_uploads_v2 as ɵbq, win_commenti_v2 as ɵbr, win_info_doc_v2 as ɵbs, win_log_v2 as ɵbt, win_recupera_doc_v2 as ɵbu, win_riassegna_select_level_v2 as ɵbv, win_riassegna_select_user_v2 as ɵbw, win_sostituisci_utente_v2 as ɵbx, win_commento_sel_notif_v2 as ɵby, win_insert_commento_v2 as ɵbz, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵc, win_assegna_a as ɵca, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵl, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵm, MOMENT_DATE_FORMATS as ɵn, MomentDateAdapter as ɵo, HighlightService as ɵp, win_show_log_info_dett as ɵq, SafePipe as ɵr, FHViewerComponent as ɵs, FHGridToolBarComponent as ɵu, win_grid_help as ɵv, win_assegna as ɵw, win_conferma as ɵx, win_select_canale as ɵy, win_select_level as ɵz };
32174
+ export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHFormToolBarComponent, FHGridComponent, FHGridComponentN, FHGridJSONComponent, FHGuard, FHHelpButton, FHListComponent, FHLogPanelComponent, FHMdReader, FHMultiComboboxComponent, FHNumericFieldComponent, FHPickFieldComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, dati_aggiuntivi_v2, fh_win_app_logs, fh_win_ask_big_text, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_richtext, fh_win_ask_text, fh_win_auto_complete, fh_win_combo, fh_win_confirm, fh_win_grid_selection, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_select_by_grid, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log, fh_win_show_log_dett, fh_win_time_slider, fh_win_upload, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, fhimagepreview, win_insert_commento, win_salva_annulla, wkf_header_bar, wkf_header_bar_v2, wkfapp, wkfapp_v2, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵb, win_select_canale as ɵba, win_select_level as ɵbb, win_commenti as ɵbc, win_info_doc as ɵbd, win_log as ɵbe, win_recupera_doc as ɵbf, win_riassegna_select_level as ɵbg, win_riassegna_select_user as ɵbh, win_sostituisci_utente as ɵbi, win_commento_sel_notif as ɵbj, win_manage_values as ɵbk, win_manage_roles as ɵbl, FHComboboxComponentFilter as ɵbm, win_salva_annulla_v2 as ɵbn, win_assegna_v2 as ɵbo, win_conferma_v2 as ɵbp, win_select_canale_v2 as ɵbq, win_select_level_v2 as ɵbr, win_uploads_v2 as ɵbs, win_commenti_v2 as ɵbt, win_info_doc_v2 as ɵbu, win_log_v2 as ɵbv, win_recupera_doc_v2 as ɵbw, win_riassegna_select_level_v2 as ɵbx, win_riassegna_select_user_v2 as ɵby, win_sostituisci_utente_v2 as ɵbz, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵc, win_commento_sel_notif_v2 as ɵca, win_insert_commento_v2 as ɵcb, win_assegna_a as ɵcc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$b as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵl, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵm, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵn, FHDateRangePickerComponent as ɵo, MOMENT_DATE_FORMATS as ɵp, MomentDateAdapter as ɵq, HighlightService as ɵr, win_show_log_info_dett as ɵs, SafePipe as ɵt, FHViewerComponent as ɵu, FHGridToolBarComponent as ɵw, win_grid_help as ɵx, win_assegna as ɵy, win_conferma as ɵz };
31923
32175
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map