@fluxhub/fluxhub-lib 11.0.130 → 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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +315 -98
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/fluxhub-fluxhub-lib.js +40 -39
- package/esm2015/lib/controls/fhdatepicker.js +9 -9
- package/esm2015/lib/controls/fhdaterangepicker.js +257 -0
- package/esm2015/lib/controls/fhupload.js +1 -4
- package/esm2015/lib/fluxhub-lib.module.js +6 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +297 -47
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.d.ts +40 -39
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhdatepicker.d.ts +2 -2
- package/lib/controls/fhdaterangepicker.d.ts +52 -0
- package/package.json +1 -1
|
@@ -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';
|
|
@@ -74,6 +74,9 @@ import { MatTableModule } from '@angular/material/table';
|
|
|
74
74
|
import { MatBadgeModule } from '@angular/material/badge';
|
|
75
75
|
import { QuillModule } from 'ngx-quill';
|
|
76
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';
|
|
77
80
|
|
|
78
81
|
class FSInput {
|
|
79
82
|
constructor() {
|
|
@@ -1311,8 +1314,8 @@ OdbcService.ctorParameters = () => [
|
|
|
1311
1314
|
];
|
|
1312
1315
|
|
|
1313
1316
|
const noop$9 = () => { };
|
|
1314
|
-
const ɵ0$
|
|
1315
|
-
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
1317
|
+
const ɵ0$a = noop$9;
|
|
1318
|
+
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$b = {
|
|
1316
1319
|
provide: NG_VALUE_ACCESSOR,
|
|
1317
1320
|
useExisting: forwardRef(() => FHComboboxComponent),
|
|
1318
1321
|
multi: true,
|
|
@@ -1698,7 +1701,7 @@ class FHComboboxComponent {
|
|
|
1698
1701
|
FHComboboxComponent.decorators = [
|
|
1699
1702
|
{ type: Component, args: [{
|
|
1700
1703
|
selector: "FHComboBox",
|
|
1701
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
1704
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$b],
|
|
1702
1705
|
template: `
|
|
1703
1706
|
<div style="min-height:45px" *ngIf="enabled && !hidden && !is_loaded && myData?.length==0"><mat-spinner diameter="25" ></mat-spinner></div>
|
|
1704
1707
|
<mat-form-field
|
|
@@ -3963,7 +3966,7 @@ fh_win_picklist.propDecorators = {
|
|
|
3963
3966
|
value_sel: [{ type: Input }]
|
|
3964
3967
|
};
|
|
3965
3968
|
|
|
3966
|
-
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
3969
|
+
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a = {
|
|
3967
3970
|
provide: NG_VALUE_ACCESSOR,
|
|
3968
3971
|
useExisting: forwardRef(() => FHPickFieldComponent),
|
|
3969
3972
|
multi: true,
|
|
@@ -4067,7 +4070,7 @@ class FHPickFieldComponent {
|
|
|
4067
4070
|
FHPickFieldComponent.decorators = [
|
|
4068
4071
|
{ type: Component, args: [{
|
|
4069
4072
|
selector: "FHPickField",
|
|
4070
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
4073
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a],
|
|
4071
4074
|
template: `
|
|
4072
4075
|
<div fxLayout="row" [hidden]="!enabled || hidden">
|
|
4073
4076
|
<mat-form-field [class.fh_field]="enabled"
|
|
@@ -5088,7 +5091,7 @@ win_riassegna_select_user.propDecorators = {
|
|
|
5088
5091
|
up: [{ type: ViewChild, args: ['up',] }]
|
|
5089
5092
|
};
|
|
5090
5093
|
|
|
5091
|
-
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
5094
|
+
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 = {
|
|
5092
5095
|
provide: NG_VALUE_ACCESSOR,
|
|
5093
5096
|
useExisting: forwardRef(() => FHUserFieldComponent),
|
|
5094
5097
|
multi: true,
|
|
@@ -5299,7 +5302,7 @@ class FHUserFieldComponent {
|
|
|
5299
5302
|
FHUserFieldComponent.decorators = [
|
|
5300
5303
|
{ type: Component, args: [{
|
|
5301
5304
|
selector: "FHUserField",
|
|
5302
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
5305
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
|
|
5303
5306
|
template: `
|
|
5304
5307
|
<div fxLayout="row" [hidden]="!enabled || hidden">
|
|
5305
5308
|
<mat-form-field
|
|
@@ -8970,7 +8973,6 @@ class FHUploadComponent {
|
|
|
8970
8973
|
this.id_component = this.uti.newGuid();
|
|
8971
8974
|
if (this.app_s.user)
|
|
8972
8975
|
this.username = this.app_s.user;
|
|
8973
|
-
console.log('this.app_s.user ', this.app_s.user);
|
|
8974
8976
|
this.uploader.onBeforeUploadItem = (item) => {
|
|
8975
8977
|
item.withCredentials = false;
|
|
8976
8978
|
};
|
|
@@ -8993,7 +8995,6 @@ class FHUploadComponent {
|
|
|
8993
8995
|
};
|
|
8994
8996
|
}
|
|
8995
8997
|
call_up() {
|
|
8996
|
-
console.log('this.app_s.user ', this.app_s.user);
|
|
8997
8998
|
this.call_upload.emit({
|
|
8998
8999
|
App: this.App,
|
|
8999
9000
|
K: this.K,
|
|
@@ -9151,7 +9152,6 @@ class FHUploadComponent {
|
|
|
9151
9152
|
form.append('single', this.single);
|
|
9152
9153
|
form.append('username', this.app_s.user);
|
|
9153
9154
|
form.append('ver', this.ver);
|
|
9154
|
-
// console.log('this.app_s.user ', this.app_s.user);
|
|
9155
9155
|
if ((this.multi_list && this.show_upload) || this.direct_type) {
|
|
9156
9156
|
if (this.cmb_tipo && !this.direct_type)
|
|
9157
9157
|
form.append('tipo', (this.cmb_tipo.getDescri() || '').split('-1').join(''));
|
|
@@ -11311,8 +11311,8 @@ FHFormToolBarComponent.propDecorators = {
|
|
|
11311
11311
|
};
|
|
11312
11312
|
|
|
11313
11313
|
const noop$8 = () => { };
|
|
11314
|
-
const ɵ0$
|
|
11315
|
-
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
11314
|
+
const ɵ0$9 = noop$8;
|
|
11315
|
+
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 = {
|
|
11316
11316
|
provide: NG_VALUE_ACCESSOR,
|
|
11317
11317
|
useExisting: forwardRef(() => FHTextArea),
|
|
11318
11318
|
multi: true,
|
|
@@ -11362,7 +11362,7 @@ class FHTextArea {
|
|
|
11362
11362
|
FHTextArea.decorators = [
|
|
11363
11363
|
{ type: Component, args: [{
|
|
11364
11364
|
selector: "FHTextArea",
|
|
11365
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
11365
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8],
|
|
11366
11366
|
template: `
|
|
11367
11367
|
<mat-form-field [hidden]="hidden" appearance="outline" floatLabel="always" [class.fh_field]="enabled" [class.fh_field_dis]="!enabled"
|
|
11368
11368
|
><mat-label>{{ label }}</mat-label>
|
|
@@ -11739,8 +11739,8 @@ fh_win_time_slider.ctorParameters = () => [
|
|
|
11739
11739
|
];
|
|
11740
11740
|
|
|
11741
11741
|
const noop$7 = () => { };
|
|
11742
|
-
const ɵ0$
|
|
11743
|
-
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
11742
|
+
const ɵ0$8 = noop$7;
|
|
11743
|
+
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 = {
|
|
11744
11744
|
provide: NG_VALUE_ACCESSOR,
|
|
11745
11745
|
useExisting: forwardRef(() => FHTimePickerComponent),
|
|
11746
11746
|
multi: true,
|
|
@@ -11978,7 +11978,7 @@ class FHTimePickerComponent {
|
|
|
11978
11978
|
FHTimePickerComponent.decorators = [
|
|
11979
11979
|
{ type: Component, args: [{
|
|
11980
11980
|
selector: 'FHTimePicker',
|
|
11981
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
11981
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7],
|
|
11982
11982
|
template: `
|
|
11983
11983
|
<div
|
|
11984
11984
|
fxLayout="row"
|
|
@@ -12176,8 +12176,8 @@ CurrencyComponent.decorators = [
|
|
|
12176
12176
|
];
|
|
12177
12177
|
|
|
12178
12178
|
const noop$6 = () => { };
|
|
12179
|
-
const ɵ0$
|
|
12180
|
-
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
12179
|
+
const ɵ0$7 = noop$6;
|
|
12180
|
+
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 = {
|
|
12181
12181
|
provide: NG_VALUE_ACCESSOR,
|
|
12182
12182
|
useExisting: forwardRef(() => FHAutoCompleteComponent),
|
|
12183
12183
|
multi: true,
|
|
@@ -12550,7 +12550,7 @@ class FHAutoCompleteComponent {
|
|
|
12550
12550
|
FHAutoCompleteComponent.decorators = [
|
|
12551
12551
|
{ type: Component, args: [{
|
|
12552
12552
|
selector: "FHAutoComplete",
|
|
12553
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
12553
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6],
|
|
12554
12554
|
template: `
|
|
12555
12555
|
<div style="min-height:45px" *ngIf="enabled && !hidden && !is_loaded && myData?.length==0"><mat-spinner diameter="25" ></mat-spinner></div>
|
|
12556
12556
|
<mat-form-field
|
|
@@ -12802,8 +12802,8 @@ class MomentDateAdapter extends DateAdapter {
|
|
|
12802
12802
|
}
|
|
12803
12803
|
|
|
12804
12804
|
const noop$5 = () => { };
|
|
12805
|
-
const ɵ0$
|
|
12806
|
-
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
12805
|
+
const ɵ0$6 = noop$5;
|
|
12806
|
+
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 = {
|
|
12807
12807
|
provide: NG_VALUE_ACCESSOR,
|
|
12808
12808
|
useExisting: forwardRef(() => FHDatePickerComponent),
|
|
12809
12809
|
multi: true,
|
|
@@ -12819,8 +12819,8 @@ class FHDatePickerComponent {
|
|
|
12819
12819
|
this.required = false;
|
|
12820
12820
|
this.show_buttons = false;
|
|
12821
12821
|
this.enabled = true;
|
|
12822
|
-
this.
|
|
12823
|
-
this.
|
|
12822
|
+
this.min = null;
|
|
12823
|
+
this.max = null;
|
|
12824
12824
|
this.change = new EventEmitter();
|
|
12825
12825
|
this.pickerId = null;
|
|
12826
12826
|
this.init_end = new EventEmitter();
|
|
@@ -12959,8 +12959,8 @@ class FHDatePickerComponent {
|
|
|
12959
12959
|
setLimits() {
|
|
12960
12960
|
/* let copy = this.getCopyOfOptions();
|
|
12961
12961
|
|
|
12962
|
-
if ( this.
|
|
12963
|
-
if ( this.
|
|
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( ) }};
|
|
12964
12964
|
this.myDatePickerOptions = copy;
|
|
12965
12965
|
*/
|
|
12966
12966
|
}
|
|
@@ -13008,7 +13008,7 @@ FHDatePickerComponent.decorators = [
|
|
|
13008
13008
|
{ type: Component, args: [{
|
|
13009
13009
|
selector: 'FHDatePicker',
|
|
13010
13010
|
providers: [
|
|
13011
|
-
CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
13011
|
+
CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5,
|
|
13012
13012
|
{ provide: MAT_DATE_FORMATS, useValue: ɵ1 },
|
|
13013
13013
|
{ provide: DateAdapter, useClass: MomentDateAdapter },
|
|
13014
13014
|
],
|
|
@@ -13050,8 +13050,8 @@ FHDatePickerComponent.decorators = [
|
|
|
13050
13050
|
(dateChange)="ch($event)"
|
|
13051
13051
|
(focusout)="dt_chg($event)"
|
|
13052
13052
|
(keyup)="checkInput($event)"
|
|
13053
|
-
[min]="
|
|
13054
|
-
[max]="
|
|
13053
|
+
[min]="min"
|
|
13054
|
+
[max]="max"
|
|
13055
13055
|
[required]="required"
|
|
13056
13056
|
(click)="chxx($event)"
|
|
13057
13057
|
[(ngModel)]="date_sel"
|
|
@@ -13101,16 +13101,16 @@ FHDatePickerComponent.propDecorators = {
|
|
|
13101
13101
|
required: [{ type: Input }],
|
|
13102
13102
|
show_buttons: [{ type: Input }],
|
|
13103
13103
|
enabled: [{ type: Input }],
|
|
13104
|
-
|
|
13105
|
-
|
|
13104
|
+
min: [{ type: Input }],
|
|
13105
|
+
max: [{ type: Input }],
|
|
13106
13106
|
change: [{ type: Output }],
|
|
13107
13107
|
pickerId: [{ type: ViewChild, args: ['pickerId',] }],
|
|
13108
13108
|
init_end: [{ type: Output }]
|
|
13109
13109
|
};
|
|
13110
13110
|
|
|
13111
13111
|
const noop$4 = () => { };
|
|
13112
|
-
const ɵ0$
|
|
13113
|
-
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
13112
|
+
const ɵ0$5 = noop$4;
|
|
13113
|
+
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 = {
|
|
13114
13114
|
provide: NG_VALUE_ACCESSOR,
|
|
13115
13115
|
useExisting: forwardRef(() => FHTextInput),
|
|
13116
13116
|
multi: true,
|
|
@@ -13169,7 +13169,7 @@ class FHTextInput {
|
|
|
13169
13169
|
FHTextInput.decorators = [
|
|
13170
13170
|
{ type: Component, args: [{
|
|
13171
13171
|
selector: "FHTextInput",
|
|
13172
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
13172
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4],
|
|
13173
13173
|
template: `
|
|
13174
13174
|
<mat-form-field [hidden]="hidden" appearance="outline" floatLabel="always" [class.fh_field]="enabled" [class.fh_field_dis]="!enabled"
|
|
13175
13175
|
><mat-label>{{ label }}</mat-label>
|
|
@@ -14035,7 +14035,7 @@ FHLogPanelComponent.propDecorators = {
|
|
|
14035
14035
|
};
|
|
14036
14036
|
|
|
14037
14037
|
const noop$3 = () => { };
|
|
14038
|
-
const ɵ0$
|
|
14038
|
+
const ɵ0$4 = noop$3;
|
|
14039
14039
|
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT = {
|
|
14040
14040
|
provide: NG_VALUE_ACCESSOR,
|
|
14041
14041
|
useExisting: forwardRef(() => FHRichText),
|
|
@@ -14220,7 +14220,7 @@ fh_win_output.propDecorators = {
|
|
|
14220
14220
|
};
|
|
14221
14221
|
|
|
14222
14222
|
const noop$2 = () => { };
|
|
14223
|
-
const ɵ0$
|
|
14223
|
+
const ɵ0$3 = noop$2;
|
|
14224
14224
|
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC = {
|
|
14225
14225
|
provide: NG_VALUE_ACCESSOR,
|
|
14226
14226
|
useExisting: forwardRef(() => FHNumericFieldComponent),
|
|
@@ -21207,7 +21207,7 @@ SafePipe.ctorParameters = () => [
|
|
|
21207
21207
|
{ type: DomSanitizer }
|
|
21208
21208
|
];
|
|
21209
21209
|
|
|
21210
|
-
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
21210
|
+
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 = {
|
|
21211
21211
|
provide: NG_VALUE_ACCESSOR,
|
|
21212
21212
|
useExisting: forwardRef(() => FHFieldPickListComponent),
|
|
21213
21213
|
multi: true,
|
|
@@ -21286,7 +21286,7 @@ class FHFieldPickListComponent {
|
|
|
21286
21286
|
}
|
|
21287
21287
|
FHFieldPickListComponent.decorators = [
|
|
21288
21288
|
{ type: Component, args: [{
|
|
21289
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
21289
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3],
|
|
21290
21290
|
selector: "FHFieldPickList",
|
|
21291
21291
|
template: `
|
|
21292
21292
|
<div
|
|
@@ -22616,8 +22616,8 @@ FHHelpButton.propDecorators = {
|
|
|
22616
22616
|
};
|
|
22617
22617
|
|
|
22618
22618
|
const noop$1 = () => { };
|
|
22619
|
-
const ɵ0$
|
|
22620
|
-
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
22619
|
+
const ɵ0$2 = noop$1;
|
|
22620
|
+
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 = {
|
|
22621
22621
|
provide: NG_VALUE_ACCESSOR,
|
|
22622
22622
|
useExisting: forwardRef(() => FHCheckBox),
|
|
22623
22623
|
multi: true,
|
|
@@ -22671,7 +22671,7 @@ class FHCheckBox {
|
|
|
22671
22671
|
FHCheckBox.decorators = [
|
|
22672
22672
|
{ type: Component, args: [{
|
|
22673
22673
|
selector: "FHCheckBox",
|
|
22674
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$
|
|
22674
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2],
|
|
22675
22675
|
template: `
|
|
22676
22676
|
<mat-checkbox [class.fh_field_ck]="enabled" [class.fh_field_dis_ck]="!enabled"
|
|
22677
22677
|
[(ngModel)]="value_b"
|
|
@@ -29848,8 +29848,8 @@ fh_win_select_by_grid.propDecorators = {
|
|
|
29848
29848
|
};
|
|
29849
29849
|
|
|
29850
29850
|
const noop = () => { };
|
|
29851
|
-
const ɵ0 = noop;
|
|
29852
|
-
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR = {
|
|
29851
|
+
const ɵ0$1 = noop;
|
|
29852
|
+
const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 = {
|
|
29853
29853
|
provide: NG_VALUE_ACCESSOR,
|
|
29854
29854
|
useExisting: forwardRef(() => FHMultiComboboxComponent),
|
|
29855
29855
|
multi: true,
|
|
@@ -30180,7 +30180,7 @@ class FHMultiComboboxComponent {
|
|
|
30180
30180
|
FHMultiComboboxComponent.decorators = [
|
|
30181
30181
|
{ type: Component, args: [{
|
|
30182
30182
|
selector: "FHMultiComboBox",
|
|
30183
|
-
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR],
|
|
30183
|
+
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1],
|
|
30184
30184
|
template: `
|
|
30185
30185
|
<div style="min-height:45px" *ngIf="enabled && !hidden && !is_loaded && myData?.length==0"><mat-spinner diameter="25" ></mat-spinner></div>
|
|
30186
30186
|
<mat-form-field
|
|
@@ -30387,6 +30387,254 @@ fh_win_grid_selection.propDecorators = {
|
|
|
30387
30387
|
dtm: [{ type: ViewChild, args: ["dtm",] }]
|
|
30388
30388
|
};
|
|
30389
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
|
+
|
|
30390
30638
|
class FluxhubLibModule {
|
|
30391
30639
|
static forRoot() {
|
|
30392
30640
|
return {
|
|
@@ -30452,7 +30700,7 @@ FluxhubLibModule.decorators = [
|
|
|
30452
30700
|
MatTableModule,
|
|
30453
30701
|
MatNativeDateModule,
|
|
30454
30702
|
FileUploadModule,
|
|
30455
|
-
AgGridModule
|
|
30703
|
+
AgGridModule,
|
|
30456
30704
|
CommonModule,
|
|
30457
30705
|
DragulaModule,
|
|
30458
30706
|
FormsModule,
|
|
@@ -30461,9 +30709,10 @@ FluxhubLibModule.decorators = [
|
|
|
30461
30709
|
}),
|
|
30462
30710
|
FlexLayoutModule,
|
|
30463
30711
|
QuillModule,
|
|
30464
|
-
MarkdownModule
|
|
30712
|
+
MarkdownModule,
|
|
30465
30713
|
],
|
|
30466
30714
|
exports: [
|
|
30715
|
+
FHDateRangePickerComponent,
|
|
30467
30716
|
fh_win_show_log_dett,
|
|
30468
30717
|
fh_win_show_log,
|
|
30469
30718
|
FHFormToolBarComponent,
|
|
@@ -30527,6 +30776,7 @@ FluxhubLibModule.decorators = [
|
|
|
30527
30776
|
wkf_header_bar_v2
|
|
30528
30777
|
],
|
|
30529
30778
|
declarations: [
|
|
30779
|
+
FHDateRangePickerComponent,
|
|
30530
30780
|
fh_win_upload,
|
|
30531
30781
|
fh_win_show_log_dett,
|
|
30532
30782
|
win_show_log_info_dett,
|
|
@@ -31921,5 +32171,5 @@ wkfapp_v2.ctorParameters = () => [
|
|
|
31921
32171
|
* Generated bundle index. Do not edit.
|
|
31922
32172
|
*/
|
|
31923
32173
|
|
|
31924
|
-
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$
|
|
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 };
|
|
31925
32175
|
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|