@fluxhub/fluxhub-lib 19.0.61 → 19.0.63

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.
@@ -629,36 +629,42 @@ class UtilityService {
629
629
  return false;
630
630
  }
631
631
  sql_date(dt) {
632
- if (dt == null)
633
- return 'dbnull';
634
- if (typeof dt == 'undefined')
635
- return 'dbnull';
636
- if (typeof dt == 'string') {
637
- let apdt = this.string2date(dt, 2);
638
- if (apdt)
639
- dt = new Date(apdt);
632
+ try {
633
+ if (dt == null)
634
+ return 'dbnull';
635
+ if (typeof dt == 'undefined')
636
+ return 'dbnull';
637
+ if (typeof dt == 'string') {
638
+ let apdt = this.string2date(dt, 2);
639
+ if (apdt)
640
+ dt = new Date(apdt);
641
+ }
642
+ if (dt.getFullYear() == 1970)
643
+ return 'dbnull';
644
+ var mm = dt.getMonth() + 1; // getMonth() is zero-based
645
+ var dd = dt.getDate();
646
+ if (this.app_s.SQL_SERVER_LANG == 'it')
647
+ return [
648
+ (dd > 9 ? '' : '0') + dd,
649
+ '-',
650
+ (mm > 9 ? '' : '0') + mm,
651
+ '-',
652
+ dt.getFullYear(),
653
+ ].join('');
654
+ if (this.app_s.SQL_SERVER_LANG == 'uk')
655
+ return [
656
+ dt.getFullYear(),
657
+ '-',
658
+ (mm > 9 ? '' : '0') + mm,
659
+ '-',
660
+ (dd > 9 ? '' : '0') + dd,
661
+ ].join('');
662
+ return 'Parametro SQL_SERVER_LANG non corretto';
640
663
  }
641
- if (dt.getFullYear() == 1970)
664
+ catch (e) {
665
+ console.log('ERRORE CONV DATE', dt, typeof dt);
642
666
  return 'dbnull';
643
- var mm = dt.getMonth() + 1; // getMonth() is zero-based
644
- var dd = dt.getDate();
645
- if (this.app_s.SQL_SERVER_LANG == 'it')
646
- return [
647
- (dd > 9 ? '' : '0') + dd,
648
- '-',
649
- (mm > 9 ? '' : '0') + mm,
650
- '-',
651
- dt.getFullYear(),
652
- ].join('');
653
- if (this.app_s.SQL_SERVER_LANG == 'uk')
654
- return [
655
- dt.getFullYear(),
656
- '-',
657
- (mm > 9 ? '' : '0') + mm,
658
- '-',
659
- (dd > 9 ? '' : '0') + dd,
660
- ].join('');
661
- return 'Parametro SQL_SERVER_LANG non corretto';
667
+ }
662
668
  }
663
669
  sql_date_grid(dt, adds = '') {
664
670
  if (dt == null)
@@ -4100,10 +4106,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
4100
4106
  }] } });
4101
4107
 
4102
4108
  class FHConfirmValues {
4103
- title_dialog = "";
4109
+ title = "";
4104
4110
  b_commento = false;
4105
4111
  noCancel = false;
4106
- msg_dialog = "";
4112
+ message = "";
4107
4113
  confirm_mgs = "CONFERMA";
4108
4114
  annulla_mgs = "ANNULLA";
4109
4115
  commento_mgs = "Commento";
@@ -4149,8 +4155,13 @@ class FHWinConfirmComponent {
4149
4155
  localStorage.getItem(this.app_s.COMPANY_KEY + 'msg_dialog') || '';
4150
4156
  return;
4151
4157
  }
4152
- this.title = conf.title_dialog;
4153
- this.msg = conf.msg_dialog;
4158
+ let cp = JSON.parse(JSON.stringify(conf));
4159
+ if (cp.title_dialog != null)
4160
+ conf.title = cp.title_dialog;
4161
+ if (cp.msg_dialog != null)
4162
+ conf.message = cp.msg_dialog;
4163
+ this.title = conf.title;
4164
+ this.msg = conf.message;
4154
4165
  if (conf.b_commento != null)
4155
4166
  this.b_commento = conf.b_commento;
4156
4167
  if (conf.confirm_mgs != null)
@@ -7187,20 +7198,22 @@ class FHWinAskTextComponent {
7187
7198
  appearance="outline"
7188
7199
  floatLabel="always"
7189
7200
  style="width:100%"
7190
- ><mat-label>{{ label }}</mat-label>
7191
- <input matInput type="text" [(ngModel)]="value" required />
7201
+ >
7202
+ <mat-label>{{ label }}</mat-label>
7203
+ <input matInput type="text" [(ngModel)]="value" required (keydown.enter)="do_check()" />
7192
7204
  </mat-form-field>
7193
7205
  <mat-form-field
7194
7206
  appearance="outline"
7195
7207
  floatLabel="always"
7196
7208
  *ngIf="password_mode"
7197
- ><mat-label>{{ label | translate }}</mat-label>
7198
-
7209
+ >
7210
+ <mat-label>{{ label | translate }}</mat-label>
7199
7211
  <input
7200
7212
  autocomplete="new-password"
7201
7213
  matInput
7202
7214
  type="password"
7203
7215
  [(ngModel)]="value"
7216
+ (keydown.enter)="do_check()"
7204
7217
  />
7205
7218
  </mat-form-field>
7206
7219
  <br /><br />
@@ -7274,20 +7287,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
7274
7287
  appearance="outline"
7275
7288
  floatLabel="always"
7276
7289
  style="width:100%"
7277
- ><mat-label>{{ label }}</mat-label>
7278
- <input matInput type="text" [(ngModel)]="value" required />
7290
+ >
7291
+ <mat-label>{{ label }}</mat-label>
7292
+ <input matInput type="text" [(ngModel)]="value" required (keydown.enter)="do_check()" />
7279
7293
  </mat-form-field>
7280
7294
  <mat-form-field
7281
7295
  appearance="outline"
7282
7296
  floatLabel="always"
7283
7297
  *ngIf="password_mode"
7284
- ><mat-label>{{ label | translate }}</mat-label>
7285
-
7298
+ >
7299
+ <mat-label>{{ label | translate }}</mat-label>
7286
7300
  <input
7287
7301
  autocomplete="new-password"
7288
7302
  matInput
7289
7303
  type="password"
7290
7304
  [(ngModel)]="value"
7305
+ (keydown.enter)="do_check()"
7291
7306
  />
7292
7307
  </mat-form-field>
7293
7308
  <br /><br />