@fluxhub/fluxhub-lib 19.0.43 → 19.0.44

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, forwardRef, EventEmitter, Input, Output, ViewChild, Component, Inject, Pipe, HostListener, Directive, ViewContainerRef, Optional, HostBinding } from '@angular/core';
2
+ import { Injectable, forwardRef, EventEmitter, Input, Output, ViewChild, Component, Inject, Pipe, HostListener, Directive, ChangeDetectionStrategy, ViewEncapsulation, ViewContainerRef, Optional, HostBinding } from '@angular/core';
3
3
  import * as i1$1 from '@angular/common/http';
4
4
  import { HttpHeaders, HttpErrorResponse } from '@angular/common/http';
5
5
  import { map, catchError, flatMap, debounceTime, switchMap, filter, take, tap } from 'rxjs/operators';
@@ -10,7 +10,7 @@ import { AES } from 'crypto-ts';
10
10
  import * as i1 from '@angular/platform-browser';
11
11
  import { Observable, Subject, forkJoin, throwError, BehaviorSubject } from 'rxjs';
12
12
  import * as i6$2 from '@angular/forms';
13
- import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
13
+ import { NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
14
14
  import * as i3$2 from '@ngx-translate/core';
15
15
  import { TranslateModule } from '@ngx-translate/core';
16
16
  import * as i10 from '@angular/common';
@@ -44,13 +44,15 @@ import * as i8$1 from 'ngx-flexible-layout/flex';
44
44
  import * as i3$3 from '@angular/material/progress-bar';
45
45
  import { MatProgressBarModule } from '@angular/material/progress-bar';
46
46
  import * as i10$1 from 'ngx-flexible-layout/extended';
47
- import { MAT_MOMENT_DATE_ADAPTER_OPTIONS, MomentDateAdapter, MAT_MOMENT_DATE_FORMATS } from '@angular/material-moment-adapter';
47
+ import { MAT_MOMENT_DATE_ADAPTER_OPTIONS, MomentDateAdapter, MAT_MOMENT_DATE_FORMATS, provideMomentDateAdapter } from '@angular/material-moment-adapter';
48
48
  import * as i3$4 from '@angular/material/core';
49
49
  import { MAT_DATE_LOCALE, DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
50
50
  import 'moment/locale/it';
51
51
  import 'moment/locale/en-gb';
52
52
  import * as i8$3 from '@angular/material/datepicker';
53
53
  import { MatDatepickerModule } from '@angular/material/datepicker';
54
+ import * as _rollupMoment from 'moment';
55
+ import _rollupMoment__default from 'moment';
54
56
  import * as i4 from '@angular/material/slide-toggle';
55
57
  import { MatSlideToggleModule } from '@angular/material/slide-toggle';
56
58
  import { ServerSideRowModelModule, RowGroupingModule, CellSelectionModule, ContextMenuModule, SetFilterModule } from 'ag-grid-enterprise';
@@ -1893,7 +1895,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
1893
1895
  }], ctorParameters: () => [{ type: i1$1.HttpClient }, { type: AppService }, { type: i3.ToastrService }] });
1894
1896
 
1895
1897
  const noop$9 = () => { };
1896
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$c = {
1898
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$e = {
1897
1899
  provide: NG_VALUE_ACCESSOR,
1898
1900
  useExisting: forwardRef(() => FHComboboxComponent),
1899
1901
  multi: true,
@@ -2299,7 +2301,7 @@ class FHComboboxComponent {
2299
2301
  this.onTouched = fn;
2300
2302
  }
2301
2303
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FHComboboxComponent, deps: [{ token: QueryService }, { token: OdbcService }, { token: i3$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
2302
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FHComboboxComponent, isStandalone: true, selector: "FHComboBox", inputs: { error: "error", init_fill: "init_fill", sql: "sql", types: "types", values: "values", hidden: "hidden", disableTranslation: "disableTranslation", label: "label", enabled: "enabled", required: "required", load_delay: "load_delay", show_empty: "show_empty", sel_label: "sel_label", tooltip: "tooltip", option_values: "option_values", valDef: "valDef", db_type: "db_type" }, outputs: { fillend: "fillend", selchange: "selchange", initend: "initend" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$c], viewQueries: [{ propertyName: "smtr", first: true, predicate: ["cmb"], descendants: true }], ngImport: i0, template: `
2304
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FHComboboxComponent, isStandalone: true, selector: "FHComboBox", inputs: { error: "error", init_fill: "init_fill", sql: "sql", types: "types", values: "values", hidden: "hidden", disableTranslation: "disableTranslation", label: "label", enabled: "enabled", required: "required", load_delay: "load_delay", show_empty: "show_empty", sel_label: "sel_label", tooltip: "tooltip", option_values: "option_values", valDef: "valDef", db_type: "db_type" }, outputs: { fillend: "fillend", selchange: "selchange", initend: "initend" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$e], viewQueries: [{ propertyName: "smtr", first: true, predicate: ["cmb"], descendants: true }], ngImport: i0, template: `
2303
2305
  <div
2304
2306
  style="min-height:45px"
2305
2307
  *ngIf="enabled && !hidden && !is_loaded && myData?.length == 0"
@@ -2363,7 +2365,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
2363
2365
  MatTooltipModule,
2364
2366
  FormsModule,
2365
2367
  MatInputModule
2366
- ], providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$c], template: `
2368
+ ], providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$e], template: `
2367
2369
  <div
2368
2370
  style="min-height:45px"
2369
2371
  *ngIf="enabled && !hidden && !is_loaded && myData?.length == 0"
@@ -2461,7 +2463,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
2461
2463
  }] } });
2462
2464
 
2463
2465
  const noop$8 = () => { };
2464
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$b = {
2466
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$d = {
2465
2467
  provide: NG_VALUE_ACCESSOR,
2466
2468
  useExisting: forwardRef(() => FHAutoCompleteComponent),
2467
2469
  multi: true,
@@ -2892,7 +2894,7 @@ class FHAutoCompleteComponent {
2892
2894
  this.onTouched = fn;
2893
2895
  }
2894
2896
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FHAutoCompleteComponent, deps: [{ token: QueryService }, { token: OdbcService }, { token: i3$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
2895
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FHAutoCompleteComponent, isStandalone: true, selector: "FHAutoComplete", inputs: { init_fill: "init_fill", error: "error", sql: "sql", label: "label", types: "types", values: "values", hidden: "hidden", db_type: "db_type", max_item_show: "max_item_show", enabled: "enabled", open_on_load: "open_on_load", option_values: "option_values", required: "required", min_length_search: "min_length_search", only_from_list: "only_from_list", disableTranslation: "disableTranslation", load_delay: "load_delay" }, outputs: { fillend: "fillend", selchange: "selchange", change: "change", initend: "initend", focusout: "focusout" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$b], viewQueries: [{ propertyName: "autocomplet", first: true, predicate: MatAutocompleteTrigger, descendants: true }, { propertyName: "searchp", first: true, predicate: ["searchp"], descendants: true }, { propertyName: "auto", first: true, predicate: ["auto"], descendants: true }], ngImport: i0, template: `
2897
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FHAutoCompleteComponent, isStandalone: true, selector: "FHAutoComplete", inputs: { init_fill: "init_fill", error: "error", sql: "sql", label: "label", types: "types", values: "values", hidden: "hidden", db_type: "db_type", max_item_show: "max_item_show", enabled: "enabled", open_on_load: "open_on_load", option_values: "option_values", required: "required", min_length_search: "min_length_search", only_from_list: "only_from_list", disableTranslation: "disableTranslation", load_delay: "load_delay" }, outputs: { fillend: "fillend", selchange: "selchange", change: "change", initend: "initend", focusout: "focusout" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$d], viewQueries: [{ propertyName: "autocomplet", first: true, predicate: MatAutocompleteTrigger, descendants: true }, { propertyName: "searchp", first: true, predicate: ["searchp"], descendants: true }, { propertyName: "auto", first: true, predicate: ["auto"], descendants: true }], ngImport: i0, template: `
2896
2898
  <div
2897
2899
  style="min-height:45px"
2898
2900
  *ngIf="enabled && !hidden && !is_loaded && myData?.length == 0"
@@ -2964,7 +2966,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
2964
2966
  MatAutocompleteModule,
2965
2967
  FormsModule,
2966
2968
  MatInputModule,
2967
- ], providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$b], template: `
2969
+ ], providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$d], template: `
2968
2970
  <div
2969
2971
  style="min-height:45px"
2970
2972
  *ngIf="enabled && !hidden && !is_loaded && myData?.length == 0"
@@ -3902,7 +3904,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
3902
3904
  }] } });
3903
3905
 
3904
3906
  const noop$7 = () => { };
3905
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a = {
3907
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$c = {
3906
3908
  provide: NG_VALUE_ACCESSOR,
3907
3909
  useExisting: forwardRef(() => FHCheckBoxComponent),
3908
3910
  multi: true,
@@ -3952,7 +3954,7 @@ class FHCheckBoxComponent {
3952
3954
  this.onTouched = fn;
3953
3955
  }
3954
3956
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FHCheckBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3955
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FHCheckBoxComponent, isStandalone: true, selector: "FHCheckBox", inputs: { hidden: "hidden", label: "label", enabled: "enabled", required: "required" }, outputs: { change: "change", click: "click" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a], ngImport: i0, template: `
3957
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FHCheckBoxComponent, isStandalone: true, selector: "FHCheckBox", inputs: { hidden: "hidden", label: "label", enabled: "enabled", required: "required" }, outputs: { change: "change", click: "click" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$c], ngImport: i0, template: `
3956
3958
  <mat-checkbox [class.fh_field_ck]="enabled" [class.fh_field_dis_ck]="!enabled"
3957
3959
  [(ngModel)]="value_b"
3958
3960
  (click)="onCl()"
@@ -3970,7 +3972,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
3970
3972
  CommonModule,
3971
3973
  MatCheckboxModule,
3972
3974
  FormsModule
3973
- ], providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a], template: `
3975
+ ], providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$c], template: `
3974
3976
  <mat-checkbox [class.fh_field_ck]="enabled" [class.fh_field_dis_ck]="!enabled"
3975
3977
  [(ngModel)]="value_b"
3976
3978
  (click)="onCl()"
@@ -3995,7 +3997,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
3995
3997
  }] } });
3996
3998
 
3997
3999
  const noop$6 = () => { };
3998
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 = {
4000
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$b = {
3999
4001
  provide: NG_VALUE_ACCESSOR,
4000
4002
  useExisting: forwardRef(() => FHTextAreaComponent),
4001
4003
  multi: true,
@@ -4041,7 +4043,7 @@ class FHTextAreaComponent {
4041
4043
  this.onTouched = fn;
4042
4044
  }
4043
4045
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FHTextAreaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4044
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FHTextAreaComponent, isStandalone: true, selector: "FHTextArea", inputs: { hidden: "hidden", label: "label", enabled: "enabled", required: "required", rows: "rows", error: "error" }, outputs: { change: "change", focusout: "focusout", focusin: "focusin" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9], ngImport: i0, template: `
4046
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: FHTextAreaComponent, isStandalone: true, selector: "FHTextArea", inputs: { hidden: "hidden", label: "label", enabled: "enabled", required: "required", rows: "rows", error: "error" }, outputs: { change: "change", focusout: "focusout", focusin: "focusin" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$b], ngImport: i0, template: `
4045
4047
  <mat-form-field [hidden]="hidden" appearance="outline" floatLabel="always" [class.fh_field]="enabled" [class.fh_field_dis]="!enabled"
4046
4048
  ><mat-label>{{ label | translate}}</mat-label>
4047
4049
  <textarea
@@ -4068,7 +4070,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
4068
4070
  FormsModule,
4069
4071
  CommonModule,
4070
4072
  MatInputModule
4071
- ], providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9], template: `
4073
+ ], providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$b], template: `
4072
4074
  <mat-form-field [hidden]="hidden" appearance="outline" floatLabel="always" [class.fh_field]="enabled" [class.fh_field_dis]="!enabled"
4073
4075
  ><mat-label>{{ label | translate}}</mat-label>
4074
4076
  <textarea
@@ -5382,7 +5384,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
5382
5384
  args: ["blur", ["$event.target.value"]]
5383
5385
  }] } });
5384
5386
 
5385
- const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
5387
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a = {
5386
5388
  provide: NG_VALUE_ACCESSOR,
5387
5389
  useExisting: forwardRef(() => FHDatePickerComponent),
5388
5390
  multi: true,
@@ -5619,7 +5621,7 @@ class FHDatePickerComponent {
5619
5621
  deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS],
5620
5622
  },
5621
5623
  { provide: MAT_DATE_FORMATS, useValue: MAT_MOMENT_DATE_FORMATS },
5622
- CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8
5624
+ CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a
5623
5625
  ], viewQueries: [{ propertyName: "pickerId", first: true, predicate: ["pickerId"], descendants: true }], ngImport: i0, template: `
5624
5626
 
5625
5627
  <div [hidden]="!show_buttons || !enabled || hidden">
@@ -5708,7 +5710,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
5708
5710
  deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS],
5709
5711
  },
5710
5712
  { provide: MAT_DATE_FORMATS, useValue: MAT_MOMENT_DATE_FORMATS },
5711
- CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8
5713
+ CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a
5712
5714
  ], template: `
5713
5715
 
5714
5716
  <div [hidden]="!show_buttons || !enabled || hidden">
@@ -5799,6 +5801,310 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
5799
5801
  type: Output
5800
5802
  }] } });
5801
5803
 
5804
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 = {
5805
+ provide: NG_VALUE_ACCESSOR,
5806
+ useExisting: forwardRef(() => MonthYearPickerComponent),
5807
+ multi: true,
5808
+ };
5809
+ const moment$1 = _rollupMoment__default || _rollupMoment;
5810
+ // See the Moment.js docs for the meaning of these formats:
5811
+ // https://momentjs.com/docs/#/displaying/format/
5812
+ const MY_FORMATS$1 = {
5813
+ parse: {
5814
+ dateInput: 'MM/YYYY',
5815
+ },
5816
+ display: {
5817
+ dateInput: 'MM/YYYY',
5818
+ monthYearLabel: 'MMM YYYY',
5819
+ dateA11yLabel: 'LL',
5820
+ monthYearA11yLabel: 'MMMM YYYY',
5821
+ },
5822
+ };
5823
+ /** @title Datepicker emulating a Year and month picker */
5824
+ class MonthYearPickerComponent {
5825
+ uti_s;
5826
+ label = '';
5827
+ error = null;
5828
+ required = false;
5829
+ show_buttons = false;
5830
+ hidden = false;
5831
+ enabled = true;
5832
+ min_date = null;
5833
+ max_date = null;
5834
+ change = new EventEmitter();
5835
+ pickerId = null;
5836
+ init_end = new EventEmitter();
5837
+ date = moment$1();
5838
+ constructor(uti_s) {
5839
+ this.uti_s = uti_s;
5840
+ }
5841
+ setMonthAndYear(normalizedMonthAndYear, datepicker) {
5842
+ const ctrlValue = this.date ?? moment$1();
5843
+ ctrlValue.month(normalizedMonthAndYear.month());
5844
+ ctrlValue.year(normalizedMonthAndYear.year());
5845
+ this.date = ctrlValue;
5846
+ this.setValue(ctrlValue);
5847
+ this.onChange(this.getValue());
5848
+ this.change.emit(this.getValue());
5849
+ datepicker.close();
5850
+ }
5851
+ getValue() {
5852
+ return this.date.toDate() ?? null;
5853
+ }
5854
+ setValue(d) {
5855
+ if (d == null) {
5856
+ this.date = null;
5857
+ return;
5858
+ }
5859
+ if (typeof d == 'string') {
5860
+ const dtx = this.uti_s.string2date(d, 2);
5861
+ if (dtx)
5862
+ d = new Date(dtx);
5863
+ }
5864
+ if (!(d instanceof Date)) {
5865
+ if (d.value != null) {
5866
+ d = new Date(d.value);
5867
+ }
5868
+ }
5869
+ if ((d._isAMomentObject)) {
5870
+ if (d._d != null) {
5871
+ d = new Date(d._d);
5872
+ }
5873
+ }
5874
+ if (isNaN(d.valueOf())) {
5875
+ this.date = (null);
5876
+ return;
5877
+ }
5878
+ if (d instanceof Date) {
5879
+ if (d.getFullYear() == 1970) {
5880
+ this.date = (null);
5881
+ return;
5882
+ }
5883
+ this.date = (moment$1(d)); // Imposta il valore come oggetto Moment
5884
+ }
5885
+ else {
5886
+ console.error('Impossibile parsare data ---> ', d);
5887
+ }
5888
+ }
5889
+ writeValue(value) {
5890
+ this.setValue(value);
5891
+ }
5892
+ onChange = (_) => { };
5893
+ onTouched = () => { };
5894
+ registerOnChange(fn) {
5895
+ this.onChange = fn;
5896
+ }
5897
+ registerOnTouched(fn) {
5898
+ this.onTouched = fn;
5899
+ }
5900
+ ch(event) {
5901
+ const value = this.date ? this.date.toDate() : null;
5902
+ console.log("Valore aggiornato:", value);
5903
+ this.onChange(value);
5904
+ this.change.emit(value);
5905
+ }
5906
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: MonthYearPickerComponent, deps: [{ token: UtilityService }], target: i0.ɵɵFactoryTarget.Component });
5907
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: MonthYearPickerComponent, isStandalone: true, selector: "FHMonthYearPicker", inputs: { label: "label", error: "error", required: "required", show_buttons: "show_buttons", hidden: "hidden", enabled: "enabled", min_date: "min_date", max_date: "max_date" }, outputs: { change: "change", init_end: "init_end" }, providers: [
5908
+ // Moment can be provided globally to your app by adding `provideMomentDateAdapter`
5909
+ // to your app config. We provide it at the component level here, due to limitations
5910
+ // of our example generation script.
5911
+ provideMomentDateAdapter(MY_FORMATS$1),
5912
+ CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9
5913
+ ], viewQueries: [{ propertyName: "pickerId", first: true, predicate: ["pickerId"], descendants: true }], ngImport: i0, template: "<mat-form-field\r\n appearance=\"outline\"\r\n floatLabel=\"always\"\r\n [class.fh_field]=\"enabled\"\r\n [class.fh_field_dis]=\"!enabled\"\r\n class=\"fh_date_picker\"\r\n>\r\n <mat-label>{{ label | translate }}</mat-label>\r\n <input matInput\r\n [matDatepicker]=\"dp\" [(ngModel)]=\"date\"\r\n [required]=\"required\"\r\n [disabled]=\"!enabled\"\r\n (dateChange)=\"ch($event)\"\r\n >\r\n <mat-datepicker-toggle matIconSuffix [for]=\"dp\"></mat-datepicker-toggle>\r\n <mat-datepicker #dp\r\n startView=\"multi-year\"\r\n (monthSelected)=\"setMonthAndYear($event, dp)\"\r\n panelClass=\"example-month-picker\">\r\n </mat-datepicker>\r\n</mat-form-field>\r\n", dependencies: [{ kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i6.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i8$3.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i8$3.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i8$3.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i6$2.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: i6$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i6$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5914
+ }
5915
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: MonthYearPickerComponent, decorators: [{
5916
+ type: Component,
5917
+ args: [{ selector: 'FHMonthYearPicker', providers: [
5918
+ // Moment can be provided globally to your app by adding `provideMomentDateAdapter`
5919
+ // to your app config. We provide it at the component level here, due to limitations
5920
+ // of our example generation script.
5921
+ provideMomentDateAdapter(MY_FORMATS$1),
5922
+ CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9
5923
+ ], encapsulation: ViewEncapsulation.None, imports: [
5924
+ MatFormFieldModule,
5925
+ MatInputModule,
5926
+ MatDatepickerModule,
5927
+ FormsModule,
5928
+ ReactiveFormsModule,
5929
+ TranslateModule
5930
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-form-field\r\n appearance=\"outline\"\r\n floatLabel=\"always\"\r\n [class.fh_field]=\"enabled\"\r\n [class.fh_field_dis]=\"!enabled\"\r\n class=\"fh_date_picker\"\r\n>\r\n <mat-label>{{ label | translate }}</mat-label>\r\n <input matInput\r\n [matDatepicker]=\"dp\" [(ngModel)]=\"date\"\r\n [required]=\"required\"\r\n [disabled]=\"!enabled\"\r\n (dateChange)=\"ch($event)\"\r\n >\r\n <mat-datepicker-toggle matIconSuffix [for]=\"dp\"></mat-datepicker-toggle>\r\n <mat-datepicker #dp\r\n startView=\"multi-year\"\r\n (monthSelected)=\"setMonthAndYear($event, dp)\"\r\n panelClass=\"example-month-picker\">\r\n </mat-datepicker>\r\n</mat-form-field>\r\n" }]
5931
+ }], ctorParameters: () => [{ type: UtilityService }], propDecorators: { label: [{
5932
+ type: Input
5933
+ }], error: [{
5934
+ type: Input
5935
+ }], required: [{
5936
+ type: Input
5937
+ }], show_buttons: [{
5938
+ type: Input
5939
+ }], hidden: [{
5940
+ type: Input
5941
+ }], enabled: [{
5942
+ type: Input
5943
+ }], min_date: [{
5944
+ type: Input
5945
+ }], max_date: [{
5946
+ type: Input
5947
+ }], change: [{
5948
+ type: Output
5949
+ }], pickerId: [{
5950
+ type: ViewChild,
5951
+ args: ['pickerId']
5952
+ }], init_end: [{
5953
+ type: Output
5954
+ }] } });
5955
+
5956
+ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
5957
+ provide: NG_VALUE_ACCESSOR,
5958
+ useExisting: forwardRef(() => YearPickerComponent),
5959
+ multi: true,
5960
+ };
5961
+ const moment = _rollupMoment__default || _rollupMoment;
5962
+ // See the Moment.js docs for the meaning of these formats:
5963
+ // https://momentjs.com/docs/#/displaying/format/
5964
+ const MY_FORMATS = {
5965
+ parse: {
5966
+ dateInput: 'YYY',
5967
+ },
5968
+ display: {
5969
+ dateInput: 'YYYY',
5970
+ monthYearLabel: 'YYYY',
5971
+ dateA11yLabel: 'LL',
5972
+ monthYearA11yLabel: 'YYYY',
5973
+ },
5974
+ };
5975
+ /** @title Datepicker emulating a Year and month picker */
5976
+ class YearPickerComponent {
5977
+ uti_s;
5978
+ label = '';
5979
+ error = null;
5980
+ required = false;
5981
+ show_buttons = false;
5982
+ hidden = false;
5983
+ enabled = true;
5984
+ min_date = null;
5985
+ max_date = null;
5986
+ change = new EventEmitter();
5987
+ pickerId = null;
5988
+ init_end = new EventEmitter();
5989
+ date = moment();
5990
+ constructor(uti_s) {
5991
+ this.uti_s = uti_s;
5992
+ }
5993
+ setYear(normalizedMonthAndYear, datepicker) {
5994
+ const ctrlValue = this.date ?? moment();
5995
+ ctrlValue.month(normalizedMonthAndYear.month());
5996
+ ctrlValue.year(normalizedMonthAndYear.year());
5997
+ this.date = ctrlValue;
5998
+ this.setValue(ctrlValue);
5999
+ this.onChange(this.getValue());
6000
+ this.change.emit(this.getValue());
6001
+ datepicker.close();
6002
+ }
6003
+ getValue() {
6004
+ return this.date.toDate() ?? null;
6005
+ }
6006
+ setValue(d) {
6007
+ if (d == null) {
6008
+ this.date = null;
6009
+ return;
6010
+ }
6011
+ if (typeof d == 'string') {
6012
+ const dtx = this.uti_s.string2date(d, 2);
6013
+ if (dtx)
6014
+ d = new Date(dtx);
6015
+ }
6016
+ if (!(d instanceof Date)) {
6017
+ if (d.value != null) {
6018
+ d = new Date(d.value);
6019
+ }
6020
+ }
6021
+ if ((d._isAMomentObject)) {
6022
+ if (d._d != null) {
6023
+ d = new Date(d._d);
6024
+ }
6025
+ }
6026
+ if (isNaN(d.valueOf())) {
6027
+ this.date = (null);
6028
+ return;
6029
+ }
6030
+ if (d instanceof Date) {
6031
+ if (d.getFullYear() == 1970) {
6032
+ this.date = (null);
6033
+ return;
6034
+ }
6035
+ this.date = (moment(d)); // Imposta il valore come oggetto Moment
6036
+ }
6037
+ else {
6038
+ console.error('Impossibile parsare data ---> ', d);
6039
+ }
6040
+ }
6041
+ writeValue(value) {
6042
+ this.setValue(value);
6043
+ }
6044
+ onChange = (_) => { };
6045
+ onTouched = () => { };
6046
+ registerOnChange(fn) {
6047
+ this.onChange = fn;
6048
+ }
6049
+ registerOnTouched(fn) {
6050
+ this.onTouched = fn;
6051
+ }
6052
+ ch(event) {
6053
+ const value = this.date ? this.date.toDate() : null;
6054
+ console.log("Valore aggiornato:", value);
6055
+ this.onChange(value);
6056
+ this.change.emit(value);
6057
+ }
6058
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: YearPickerComponent, deps: [{ token: UtilityService }], target: i0.ɵɵFactoryTarget.Component });
6059
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: YearPickerComponent, isStandalone: true, selector: "FHYearPicker", inputs: { label: "label", error: "error", required: "required", show_buttons: "show_buttons", hidden: "hidden", enabled: "enabled", min_date: "min_date", max_date: "max_date" }, outputs: { change: "change", init_end: "init_end" }, providers: [
6060
+ // Moment can be provided globally to your app by adding `provideMomentDateAdapter`
6061
+ // to your app config. We provide it at the component level here, due to limitations
6062
+ // of our example generation script.
6063
+ provideMomentDateAdapter(MY_FORMATS),
6064
+ CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8
6065
+ ], viewQueries: [{ propertyName: "pickerId", first: true, predicate: ["pickerId"], descendants: true }], ngImport: i0, template: "<mat-form-field\r\n appearance=\"outline\"\r\n floatLabel=\"always\"\r\n [class.fh_field]=\"enabled\"\r\n [class.fh_field_dis]=\"!enabled\"\r\n class=\"fh_date_picker\"\r\n>\r\n <mat-label>{{ label | translate }}</mat-label>\r\n <input matInput\r\n [matDatepicker]=\"dp\" [(ngModel)]=\"date\"\r\n [required]=\"required\"\r\n [disabled]=\"!enabled\"\r\n (dateChange)=\"ch($event)\"\r\n >\r\n <mat-datepicker-toggle matIconSuffix [for]=\"dp\"></mat-datepicker-toggle>\r\n <mat-datepicker #dp\r\n startView=\"multi-year\"\r\n (yearSelected)=\"setYear($event, dp)\"\r\n panelClass=\"example-month-picker\">\r\n </mat-datepicker>\r\n</mat-form-field>\r\n", dependencies: [{ kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i6.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i8$3.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i8$3.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i8$3.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i6$2.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: i6$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i6$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
6066
+ }
6067
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: YearPickerComponent, decorators: [{
6068
+ type: Component,
6069
+ args: [{ selector: 'FHYearPicker', providers: [
6070
+ // Moment can be provided globally to your app by adding `provideMomentDateAdapter`
6071
+ // to your app config. We provide it at the component level here, due to limitations
6072
+ // of our example generation script.
6073
+ provideMomentDateAdapter(MY_FORMATS),
6074
+ CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8
6075
+ ], encapsulation: ViewEncapsulation.None, imports: [
6076
+ MatFormFieldModule,
6077
+ MatInputModule,
6078
+ MatDatepickerModule,
6079
+ FormsModule,
6080
+ ReactiveFormsModule,
6081
+ TranslateModule
6082
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-form-field\r\n appearance=\"outline\"\r\n floatLabel=\"always\"\r\n [class.fh_field]=\"enabled\"\r\n [class.fh_field_dis]=\"!enabled\"\r\n class=\"fh_date_picker\"\r\n>\r\n <mat-label>{{ label | translate }}</mat-label>\r\n <input matInput\r\n [matDatepicker]=\"dp\" [(ngModel)]=\"date\"\r\n [required]=\"required\"\r\n [disabled]=\"!enabled\"\r\n (dateChange)=\"ch($event)\"\r\n >\r\n <mat-datepicker-toggle matIconSuffix [for]=\"dp\"></mat-datepicker-toggle>\r\n <mat-datepicker #dp\r\n startView=\"multi-year\"\r\n (yearSelected)=\"setYear($event, dp)\"\r\n panelClass=\"example-month-picker\">\r\n </mat-datepicker>\r\n</mat-form-field>\r\n" }]
6083
+ }], ctorParameters: () => [{ type: UtilityService }], propDecorators: { label: [{
6084
+ type: Input
6085
+ }], error: [{
6086
+ type: Input
6087
+ }], required: [{
6088
+ type: Input
6089
+ }], show_buttons: [{
6090
+ type: Input
6091
+ }], hidden: [{
6092
+ type: Input
6093
+ }], enabled: [{
6094
+ type: Input
6095
+ }], min_date: [{
6096
+ type: Input
6097
+ }], max_date: [{
6098
+ type: Input
6099
+ }], change: [{
6100
+ type: Output
6101
+ }], pickerId: [{
6102
+ type: ViewChild,
6103
+ args: ['pickerId']
6104
+ }], init_end: [{
6105
+ type: Output
6106
+ }] } });
6107
+
5802
6108
  const noop$5 = () => { };
5803
6109
  const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 = {
5804
6110
  provide: NG_VALUE_ACCESSOR,
@@ -35674,5 +35980,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
35674
35980
  * Generated bundle index. Do not edit.
35675
35981
  */
35676
35982
 
35677
- export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWait, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowView, FSInput, FSResult, FileService, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService };
35983
+ export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWait, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowView, FSInput, FSResult, FileService, GridService, LocalDBService, MonthYearPickerComponent, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService, YearPickerComponent };
35678
35984
  //# sourceMappingURL=fluxhub-fluxhub-lib.mjs.map