@fluxhub/fluxhub-lib 1.0.304 → 1.0.305
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 +13 -12
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhdatepicker.js +14 -13
- package/esm5/lib/controls/fhdatepicker.js +14 -13
- package/fesm2015/fluxhub-fluxhub-lib.js +14 -13
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +14 -13
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|
|
37
37
|
import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
38
38
|
import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_FORMATS, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
|
|
39
39
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
40
|
-
import { Injectable, Component,
|
|
40
|
+
import { Injectable, Component, Pipe, Inject, PLATFORM_ID, Directive, Input, forwardRef, Output, EventEmitter, ViewChild, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
|
|
41
41
|
import { Http } from '@angular/http';
|
|
42
42
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
43
43
|
import { ToastrService } from 'ngx-toastr';
|
|
@@ -8768,20 +8768,13 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
|
|
|
8768
8768
|
* @return {?}
|
|
8769
8769
|
*/
|
|
8770
8770
|
function (s) {
|
|
8771
|
-
console.log('s ', s);
|
|
8772
|
-
console.log('this.date_sel prima ', this.date_sel);
|
|
8773
8771
|
/** @type {?} */
|
|
8774
8772
|
var arr = s.split('/');
|
|
8775
8773
|
if (arr.length == 3) {
|
|
8776
|
-
console.log('arr[2]) < 3000 ', (parseInt(arr[2]) < 3000));
|
|
8777
|
-
console.log('parseInt(arr[0]) > 0 && parseInt(arr[0]) <= 31 ', (parseInt(arr[0]) > 0 && parseInt(arr[0]) <= 31));
|
|
8778
|
-
console.log('parseInt(arr[1]) > 0 && parseInt(arr[1]) <= 12 ', (parseInt(arr[1]) > 0 && parseInt(arr[1]) <= 12));
|
|
8779
8774
|
if (parseInt(arr[2]) < 3000 && parseInt(arr[0]) > 0 && parseInt(arr[0]) <= 31 && parseInt(arr[1]) > 0 && parseInt(arr[1]) <= 12) {
|
|
8780
|
-
console.log('data ', arr);
|
|
8781
8775
|
/** @type {?} */
|
|
8782
8776
|
var dtp = new MomentDateAdapter();
|
|
8783
8777
|
this.date_sel = dtp.createDate(parseInt(arr[2]), parseInt(arr[1]) - 1, parseInt(arr[0]));
|
|
8784
|
-
console.log('this.date_sel dopo ', this.date_sel);
|
|
8785
8778
|
}
|
|
8786
8779
|
else
|
|
8787
8780
|
console.log('data non valida! ', arr);
|
|
@@ -8864,7 +8857,9 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
|
|
|
8864
8857
|
* @return {?}
|
|
8865
8858
|
*/
|
|
8866
8859
|
function () {
|
|
8867
|
-
|
|
8860
|
+
/** @type {?} */
|
|
8861
|
+
var dtp = new MomentDateAdapter();
|
|
8862
|
+
this.date_sel = dtp.createDate(this.getValue().getFullYear() + 1, this.getValue().getMonth(), this.getValue().getDate());
|
|
8868
8863
|
this.v_view = this.uti_s.date2String(this.date_sel);
|
|
8869
8864
|
this.ch();
|
|
8870
8865
|
};
|
|
@@ -8875,7 +8870,9 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
|
|
|
8875
8870
|
* @return {?}
|
|
8876
8871
|
*/
|
|
8877
8872
|
function () {
|
|
8878
|
-
|
|
8873
|
+
/** @type {?} */
|
|
8874
|
+
var dtp = new MomentDateAdapter();
|
|
8875
|
+
this.date_sel = dtp.createDate(this.getValue().getFullYear() + 1, 1, 1);
|
|
8879
8876
|
this.v_view = this.uti_s.date2String(this.date_sel);
|
|
8880
8877
|
this.ch();
|
|
8881
8878
|
};
|
|
@@ -8886,7 +8883,9 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
|
|
|
8886
8883
|
* @return {?}
|
|
8887
8884
|
*/
|
|
8888
8885
|
function () {
|
|
8889
|
-
|
|
8886
|
+
/** @type {?} */
|
|
8887
|
+
var dtp = new MomentDateAdapter();
|
|
8888
|
+
this.date_sel = dtp.createDate(this.getValue().getFullYear() + 1, 12, 31);
|
|
8890
8889
|
this.v_view = this.uti_s.date2String(this.date_sel);
|
|
8891
8890
|
this.ch();
|
|
8892
8891
|
};
|
|
@@ -8899,7 +8898,7 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
|
|
|
8899
8898
|
function () {
|
|
8900
8899
|
if (this.date_sel == null)
|
|
8901
8900
|
return null;
|
|
8902
|
-
return this.date_sel;
|
|
8901
|
+
return this.date_sel.toDate();
|
|
8903
8902
|
};
|
|
8904
8903
|
/**
|
|
8905
8904
|
* @return {?}
|
|
@@ -8953,7 +8952,9 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
|
|
|
8953
8952
|
d = new Date(d.value);
|
|
8954
8953
|
}
|
|
8955
8954
|
}
|
|
8956
|
-
|
|
8955
|
+
/** @type {?} */
|
|
8956
|
+
var dtp = new MomentDateAdapter();
|
|
8957
|
+
this.date_sel = dtp.createDate(d.getFullYear(), d.getMonth(), d.getDate());
|
|
8957
8958
|
this.v_view = this.uti_s.date2String(this.date_sel);
|
|
8958
8959
|
};
|
|
8959
8960
|
FHDatePickerComponent.decorators = [
|