@fluxhub/fluxhub-lib 9.0.36 → 9.0.38
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 -2
- 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/lib/controls/fhdatepicker.js +5 -2
- package/esm2015/lib/services/utility.service.js +10 -2
- package/esm5/lib/controls/fhdatepicker.js +5 -2
- package/esm5/lib/services/utility.service.js +10 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +13 -2
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +13 -2
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -652,7 +652,7 @@
|
|
|
652
652
|
if (typeof dt == "undefined")
|
|
653
653
|
return 'dbnull';
|
|
654
654
|
if (typeof dt == "string")
|
|
655
|
-
|
|
655
|
+
dt = new Date(this.string2date(dt, 2));
|
|
656
656
|
if (dt.getFullYear() == 1970)
|
|
657
657
|
return 'dbnull';
|
|
658
658
|
var mm = dt.getMonth() + 1; // getMonth() is zero-based
|
|
@@ -859,6 +859,14 @@
|
|
|
859
859
|
}
|
|
860
860
|
};
|
|
861
861
|
UtilityService.prototype.sql_date_time = function (dt) {
|
|
862
|
+
if (dt == null)
|
|
863
|
+
return 'dbnull';
|
|
864
|
+
if (typeof dt == "undefined")
|
|
865
|
+
return 'dbnull';
|
|
866
|
+
if (typeof dt == "string")
|
|
867
|
+
dt = new Date(this.string2date(dt, 2));
|
|
868
|
+
if (dt.getFullYear() == 1970)
|
|
869
|
+
return 'dbnull';
|
|
862
870
|
var mm = dt.getMonth() + 1; // getMonth() is zero-based
|
|
863
871
|
var dd = dt.getDate();
|
|
864
872
|
if (this.app_s.SQL_SERVER_LANG == 'it')
|
|
@@ -7255,6 +7263,7 @@
|
|
|
7255
7263
|
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' }
|
|
7256
7264
|
};*/
|
|
7257
7265
|
FHDatePickerComponent.prototype.ch = function (event) {
|
|
7266
|
+
console.log('ON CHANGE ', this.getValue());
|
|
7258
7267
|
this.onChange(this.getValue());
|
|
7259
7268
|
this.change.emit(this.getValue());
|
|
7260
7269
|
};
|
|
@@ -7314,6 +7323,8 @@
|
|
|
7314
7323
|
this.date_sel = null;
|
|
7315
7324
|
return;
|
|
7316
7325
|
}
|
|
7326
|
+
if (typeof (d) == 'string')
|
|
7327
|
+
d = new Date(this.uti_s.string2date(d, 2));
|
|
7317
7328
|
if (!(d instanceof Date)) {
|
|
7318
7329
|
if (d.value != null) {
|
|
7319
7330
|
d = new Date(d.value);
|
|
@@ -7380,7 +7391,7 @@
|
|
|
7380
7391
|
{ provide: core$1.DateAdapter, useClass: MomentDateAdapter },
|
|
7381
7392
|
{ provide: core$1.MAT_DATE_LOCALE, useValue: 'it-IT' },
|
|
7382
7393
|
],
|
|
7383
|
-
template: "\n <div [hidden]=\"!show_buttons||!enabled\">\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"add_year()\">+1 Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"ini_year()\">Inizio Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"fin_year()\">Fine Anno</button>\n </div>\n\n <mat-form-field (click)=\"chxx($event)\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input [disabled]=\"!enabled\" #pickerId (dateChange)=\"ch(
|
|
7394
|
+
template: "\n <div [hidden]=\"!show_buttons||!enabled\">\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"add_year()\">+1 Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"ini_year()\">Inizio Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"fin_year()\">Fine Anno</button>\n </div>\n\n <mat-form-field (click)=\"chxx($event)\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input [disabled]=\"!enabled\" #pickerId (dateChange)=\"ch($event)\" (focusout)=\"dt_chg($event)\" (keyup)=\"checkInput($event)\"\n (click)=\"chxx($event)\" [(ngModel)]=\"date_sel\" matInput [matDatepicker]=\"picker\" >\n <mat-datepicker-toggle matSuffix [for]=\"picker\" (click)=\"chxx($event)\"></mat-datepicker-toggle>\n <mat-datepicker (click)=\"chxx($event)\" #picker></mat-datepicker>\n </mat-form-field>\n\n ",
|
|
7384
7395
|
styles: ["\n .lb_small_grigia {\n font-size: 15px;\n color: #B8B8B8;\n }\n\n .label_dis {\n font-size: 14px;\n font-weight: bold;\n }\n\n :host.ng-invalid > .ng-touched ::ng-deep .mat-input-element,\n :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-label {\n color: #f44336;\n }\n\n :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-underline,\n :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-ripple {\n background-color: #f44336;\n }\n "]
|
|
7385
7396
|
}),
|
|
7386
7397
|
__metadata("design:paramtypes", [core$1.DateAdapter, UtilityService])
|