@fluxhub/fluxhub-lib 10.0.593 → 10.0.595
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 +22 -7
- 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 +24 -8
- package/esm2015/lib/wkf_engine/win_conferma.js +4 -4
- package/fesm2015/fluxhub-fluxhub-lib.js +25 -10
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhdatepicker.d.ts +4 -1
- package/package.json +1 -1
|
@@ -8320,9 +8320,10 @@
|
|
|
8320
8320
|
};
|
|
8321
8321
|
var ɵ1 = MOMENT_DATE_FORMATS;
|
|
8322
8322
|
var FHDatePickerComponent = /** @class */ (function () {
|
|
8323
|
-
function FHDatePickerComponent(dateAdapter, uti_s) {
|
|
8323
|
+
function FHDatePickerComponent(dateAdapter, uti_s, _apps) {
|
|
8324
8324
|
this.dateAdapter = dateAdapter;
|
|
8325
8325
|
this.uti_s = uti_s;
|
|
8326
|
+
this._apps = _apps;
|
|
8326
8327
|
this.label = "";
|
|
8327
8328
|
this.required = false;
|
|
8328
8329
|
this.show_buttons = false;
|
|
@@ -8336,7 +8337,7 @@
|
|
|
8336
8337
|
this.v_date_sel = "";
|
|
8337
8338
|
this.onChange = function (_) { };
|
|
8338
8339
|
this.onTouched = function () { };
|
|
8339
|
-
this.
|
|
8340
|
+
this.setlocalt();
|
|
8340
8341
|
}
|
|
8341
8342
|
FHDatePickerComponent.prototype.checkInput = function (ob) {
|
|
8342
8343
|
/* if(ob.key=='-')
|
|
@@ -8394,6 +8395,19 @@
|
|
|
8394
8395
|
this.onChange(this.getValue());
|
|
8395
8396
|
this.change.emit(this.getValue());
|
|
8396
8397
|
};
|
|
8398
|
+
FHDatePickerComponent.prototype.setlocalt = function () {
|
|
8399
|
+
if (this._apps.user_lang == 'it') {
|
|
8400
|
+
this.dateAdapter.setLocale("it-IT");
|
|
8401
|
+
console.log('set locale it');
|
|
8402
|
+
}
|
|
8403
|
+
else if (this._apps.user_lang == 'en') {
|
|
8404
|
+
this.dateAdapter.setLocale("en-GB");
|
|
8405
|
+
console.log('set locale gb');
|
|
8406
|
+
}
|
|
8407
|
+
else {
|
|
8408
|
+
this.dateAdapter.setLocale("it-IT");
|
|
8409
|
+
}
|
|
8410
|
+
};
|
|
8397
8411
|
FHDatePickerComponent.prototype.setFocus = function () {
|
|
8398
8412
|
this.pickerId.nativeElement.focus();
|
|
8399
8413
|
};
|
|
@@ -8446,7 +8460,8 @@
|
|
|
8446
8460
|
this.date_sel = new Date();
|
|
8447
8461
|
};
|
|
8448
8462
|
FHDatePickerComponent.prototype.setValue = function (d) {
|
|
8449
|
-
this.
|
|
8463
|
+
this.setlocalt();
|
|
8464
|
+
// this.dateAdapter.setLocale("it-IT");
|
|
8450
8465
|
if (d == null) {
|
|
8451
8466
|
this.date_sel = null;
|
|
8452
8467
|
return;
|
|
@@ -8483,8 +8498,7 @@
|
|
|
8483
8498
|
providers: [
|
|
8484
8499
|
CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5,
|
|
8485
8500
|
{ provide: core$1.MAT_DATE_FORMATS, useValue: ɵ1 },
|
|
8486
|
-
{ provide: core$1.DateAdapter, useClass: MomentDateAdapter }
|
|
8487
|
-
{ provide: core$1.MAT_DATE_LOCALE, useValue: "it-IT" },
|
|
8501
|
+
{ provide: core$1.DateAdapter, useClass: MomentDateAdapter }
|
|
8488
8502
|
],
|
|
8489
8503
|
template: "\n <div [hidden]=\"!show_buttons || !enabled\">\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"add_year()\"\n >\n +1 Anno\n </button>\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"ini_year()\"\n >\n Inizio Anno\n </button>\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"fin_year()\"\n >\n Fine Anno\n </button>\n </div>\n\n <mat-form-field\n (click)=\"chxx($event)\"\n appearance=\"outline\"\n floatLabel=\"always\" [class.fh_field]=\"enabled\" [class.fh_field_dis]=\"!enabled\"\n ><mat-label>{{ label }}</mat-label>\n <input\n [disabled]=\"!enabled\"\n #pickerId\n (dateChange)=\"ch($event)\"\n (focusout)=\"dt_chg($event)\"\n (keyup)=\"checkInput($event)\"\n [min]=\"min_date\"\n [max]=\"max_date\"\n [required]=\"required\"\n (click)=\"chxx($event)\"\n [(ngModel)]=\"date_sel\"\n matInput\n [matDatepicker]=\"picker\"\n />\n <mat-datepicker-toggle\n matSuffix\n [for]=\"picker\"\n (click)=\"chxx($event)\"\n ></mat-datepicker-toggle>\n <mat-datepicker (click)=\"chxx($event)\" #picker></mat-datepicker>\n </mat-form-field>\n ",
|
|
8490
8504
|
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 "]
|
|
@@ -8492,7 +8506,8 @@
|
|
|
8492
8506
|
];
|
|
8493
8507
|
FHDatePickerComponent.ctorParameters = function () { return [
|
|
8494
8508
|
{ type: core$1.DateAdapter },
|
|
8495
|
-
{ type: UtilityService }
|
|
8509
|
+
{ type: UtilityService },
|
|
8510
|
+
{ type: AppService }
|
|
8496
8511
|
]; };
|
|
8497
8512
|
FHDatePickerComponent.propDecorators = {
|
|
8498
8513
|
label: [{ type: i0.Input }],
|
|
@@ -10426,7 +10441,7 @@
|
|
|
10426
10441
|
}());
|
|
10427
10442
|
win_conferma.decorators = [
|
|
10428
10443
|
{ type: i0.Component, args: [{
|
|
10429
|
-
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <mat-toolbar>\n <div style=\"font-size:10px\" *ngIf=\"mobile\">{{ lbl }}</div>\n <div *ngIf=\"!mobile\">{{ lbl }}</div>\n </mat-toolbar>\n <br />\n <div mat-dialog-content style=\"min-width:800px;font-size: 15px;\">\n <div\n *ngIf=\"mobile && utenti?.toLocaleLowerCase().indexOf('system') == -1\"\n style=\"font-size:10px\"\n >\n {{'Assegnata a'}}: {{ utenti }}\n </div>\n <h3\n *ngIf=\"!mobile && utenti?.toLocaleLowerCase().indexOf('system') == -1\"\n >\n {{'Assegnata a'}}: {{ utenti }}\n </h3>\n <br />\n <mat-form-field\n [hidden]=\"comm_notrequired == 1\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label> {{'Commento'}} {{ nota_commento }}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"6\"></textarea>\n </mat-form-field>\n </div>\n <br />\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button\n > \n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n {{'ANNULLA'}}\n </button>\n </div>\n "
|
|
10444
|
+
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <mat-toolbar>\n <div style=\"font-size:10px\" *ngIf=\"mobile\">{{ lbl }}</div>\n <div *ngIf=\"!mobile\">{{ lbl }}</div>\n </mat-toolbar>\n <br />\n <div mat-dialog-content style=\"min-width:800px;font-size: 15px;\">\n <div\n *ngIf=\"mobile && utenti?.toLocaleLowerCase().indexOf('system') == -1\"\n style=\"font-size:10px\"\n >\n {{'Assegnata a' | translate}}: {{ utenti }}\n </div>\n <h3\n *ngIf=\"!mobile && utenti?.toLocaleLowerCase().indexOf('system') == -1\"\n >\n {{'Assegnata a' | translate}}: {{ utenti }}\n </h3>\n <br />\n <mat-form-field\n [hidden]=\"comm_notrequired == 1\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label> {{'Commento'}} {{ nota_commento }}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"6\"></textarea>\n </mat-form-field>\n </div>\n <br />\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button\n > \n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n {{'ANNULLA' | translate}}\n </button>\n </div>\n "
|
|
10430
10445
|
},] }
|
|
10431
10446
|
];
|
|
10432
10447
|
win_conferma.ctorParameters = function () { return [
|