@fluxhub/fluxhub-lib 10.0.594 → 10.0.596

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.
@@ -8337,12 +8337,7 @@
8337
8337
  this.v_date_sel = "";
8338
8338
  this.onChange = function (_) { };
8339
8339
  this.onTouched = function () { };
8340
- if (this._apps.user_lang == 'it')
8341
- this.dateAdapter.setLocale("it-IT");
8342
- else if (this._apps.user_lang == 'en')
8343
- this.dateAdapter.setLocale("en-EN");
8344
- else
8345
- this.dateAdapter.setLocale("it-IT");
8340
+ this.setlocalt();
8346
8341
  }
8347
8342
  FHDatePickerComponent.prototype.checkInput = function (ob) {
8348
8343
  /* if(ob.key=='-')
@@ -8400,6 +8395,25 @@
8400
8395
  this.onChange(this.getValue());
8401
8396
  this.change.emit(this.getValue());
8402
8397
  };
8398
+ FHDatePickerComponent.prototype.setlocalt = function () {
8399
+ var _this = this;
8400
+ console.log('setlocalt ', this._apps.user_lang);
8401
+ if (this._apps.user_lang == null || this._apps.user_lang == '') {
8402
+ setTimeout(function () { _this.setlocalt(); }, 500);
8403
+ return;
8404
+ }
8405
+ if (this._apps.user_lang == 'it') {
8406
+ this.dateAdapter.setLocale("it-IT");
8407
+ console.log('set locale it');
8408
+ }
8409
+ else if (this._apps.user_lang == 'en') {
8410
+ this.dateAdapter.setLocale("en-GB");
8411
+ console.log('set locale gb');
8412
+ }
8413
+ else {
8414
+ this.dateAdapter.setLocale("it-IT");
8415
+ }
8416
+ };
8403
8417
  FHDatePickerComponent.prototype.setFocus = function () {
8404
8418
  this.pickerId.nativeElement.focus();
8405
8419
  };
@@ -8452,7 +8466,8 @@
8452
8466
  this.date_sel = new Date();
8453
8467
  };
8454
8468
  FHDatePickerComponent.prototype.setValue = function (d) {
8455
- this.dateAdapter.setLocale("it-IT");
8469
+ this.setlocalt();
8470
+ // this.dateAdapter.setLocale("it-IT");
8456
8471
  if (d == null) {
8457
8472
  this.date_sel = null;
8458
8473
  return;
@@ -10432,7 +10447,7 @@
10432
10447
  }());
10433
10448
  win_conferma.decorators = [
10434
10449
  { type: i0.Component, args: [{
10435
- 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 >&nbsp;&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n {{'ANNULLA'}}\n </button>\n </div>\n "
10450
+ 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 >&nbsp;&nbsp;&nbsp;&nbsp;\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n {{'ANNULLA' | translate}}\n </button>\n </div>\n "
10436
10451
  },] }
10437
10452
  ];
10438
10453
  win_conferma.ctorParameters = function () { return [