@fluxhub/fluxhub-lib 10.0.592 → 10.0.594

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.
@@ -19,7 +19,7 @@ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
19
19
  import { MatAutocompleteTrigger, MatAutocompleteModule } from '@angular/material/autocomplete';
20
20
  import * as momentNs from 'moment';
21
21
  import { isMoment } from 'moment';
22
- import { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MatNativeDateModule } from '@angular/material/core';
22
+ import { DateAdapter, MAT_DATE_FORMATS, MatNativeDateModule } from '@angular/material/core';
23
23
  import { isPlatformBrowser, CommonModule } from '@angular/common';
24
24
  import 'clipboard';
25
25
  import 'prismjs';
@@ -2484,7 +2484,7 @@ fh_win_combo.decorators = [
2484
2484
  >
2485
2485
  <button mat-flat-button color="primary" (click)="ok()">OK</button
2486
2486
  >&nbsp;&nbsp;&nbsp;&nbsp;
2487
- <button mat-flat-button color="warn" (click)="close()">ANNULLA</button>
2487
+ <button mat-flat-button color="warn" (click)="close()">{{'ANNULLA' | translate}}</button>
2488
2488
  </mat-dialog-actions>
2489
2489
  </div>
2490
2490
  `
@@ -4201,7 +4201,7 @@ fh_win_ask_text.decorators = [
4201
4201
  >
4202
4202
  <button mat-flat-button color="primary" (click)="do_check()">OK</button
4203
4203
  >&nbsp;&nbsp;&nbsp;
4204
- <button mat-flat-button color="warn" (click)="chiudi()">ANNULLA</button>
4204
+ <button mat-flat-button color="warn" (click)="chiudi()">{{'ANNULLA' | translate}}</button>
4205
4205
  </div>
4206
4206
  <div
4207
4207
  fxLayout="row"
@@ -4209,7 +4209,7 @@ fh_win_ask_text.decorators = [
4209
4209
  style="width: 100%"
4210
4210
  [hidden]="!readonly"
4211
4211
  >
4212
- <button mat-flat-button color="warn" (click)="chiudi()">CHIUDI</button>
4212
+ <button mat-flat-button color="warn" (click)="chiudi()">{{'CHIUDI' | translate}}</button>
4213
4213
  </div>
4214
4214
  </mat-dialog-actions>
4215
4215
  </div>
@@ -4816,7 +4816,7 @@ win_riassegna_select_user.decorators = [
4816
4816
  template: `
4817
4817
  <div   fxLayout="column" fxLayoutGap="5px">
4818
4818
      <div  fxFlex="100" fxLayout="row"   class="dialog_header">
4819
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title}}</div>
4819
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{title |translate}}</div>
4820
4820
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
4821
4821
  <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
4822
4822
  </div>
@@ -4835,7 +4835,7 @@ win_riassegna_select_user.decorators = [
4835
4835
  [hidden]="commento_hidden"
4836
4836
  appearance="outline"
4837
4837
  floatLabel="always"
4838
- ><mat-label>Commento {{ nota_commento }}</mat-label>
4838
+ ><mat-label>{{'Commento' | translate}} {{ nota_commento }}</mat-label>
4839
4839
  <textarea matInput [(ngModel)]="nota" rows="2"></textarea>
4840
4840
  </mat-form-field>
4841
4841
  </div>
@@ -4850,7 +4850,7 @@ win_riassegna_select_user.decorators = [
4850
4850
  style="background-color: #F5F5F5"
4851
4851
  (click)="close()"
4852
4852
  >
4853
- ANNULLA
4853
+ {{'ANNULLA' | translate}}
4854
4854
  </button>
4855
4855
  </div>
4856
4856
  </div>
@@ -11949,9 +11949,10 @@ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 = {
11949
11949
  };
11950
11950
  const ɵ1 = MOMENT_DATE_FORMATS;
11951
11951
  class FHDatePickerComponent {
11952
- constructor(dateAdapter, uti_s) {
11952
+ constructor(dateAdapter, uti_s, _apps) {
11953
11953
  this.dateAdapter = dateAdapter;
11954
11954
  this.uti_s = uti_s;
11955
+ this._apps = _apps;
11955
11956
  this.label = "";
11956
11957
  this.required = false;
11957
11958
  this.show_buttons = false;
@@ -11965,7 +11966,12 @@ class FHDatePickerComponent {
11965
11966
  this.v_date_sel = "";
11966
11967
  this.onChange = (_) => { };
11967
11968
  this.onTouched = () => { };
11968
- this.dateAdapter.setLocale("it-IT");
11969
+ if (this._apps.user_lang == 'it')
11970
+ this.dateAdapter.setLocale("it-IT");
11971
+ else if (this._apps.user_lang == 'en')
11972
+ this.dateAdapter.setLocale("en-EN");
11973
+ else
11974
+ this.dateAdapter.setLocale("it-IT");
11969
11975
  }
11970
11976
  checkInput(ob) {
11971
11977
  /* if(ob.key=='-')
@@ -12109,8 +12115,7 @@ FHDatePickerComponent.decorators = [
12109
12115
  providers: [
12110
12116
  CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6,
12111
12117
  { provide: MAT_DATE_FORMATS, useValue: ɵ1 },
12112
- { provide: DateAdapter, useClass: MomentDateAdapter },
12113
- { provide: MAT_DATE_LOCALE, useValue: "it-IT" },
12118
+ { provide: DateAdapter, useClass: MomentDateAdapter }
12114
12119
  ],
12115
12120
  template: `
12116
12121
  <div [hidden]="!show_buttons || !enabled">
@@ -12189,7 +12194,8 @@ FHDatePickerComponent.decorators = [
12189
12194
  ];
12190
12195
  FHDatePickerComponent.ctorParameters = () => [
12191
12196
  { type: DateAdapter },
12192
- { type: UtilityService }
12197
+ { type: UtilityService },
12198
+ { type: AppService }
12193
12199
  ];
12194
12200
  FHDatePickerComponent.propDecorators = {
12195
12201
  label: [{ type: Input }],
@@ -12629,7 +12635,7 @@ TextAreaEditor.decorators = [
12629
12635
  CONFERMA
12630
12636
  </button>
12631
12637
  <!-- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
12632
- <button mat-flat-button (click)="this.params.api.stopEditing();">ANNULLA</button>
12638
+ <button mat-flat-button (click)="this.params.api.stopEditing();">{{'ANNULLA' | translate}}</button>
12633
12639
  --></div>
12634
12640
  `,
12635
12641
  styles: [`
@@ -12754,7 +12760,7 @@ ComboBoxEditor.decorators = [
12754
12760
  CONFERMA
12755
12761
  </button>
12756
12762
  <!-- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
12757
- <button mat-flat-button (click)="this.params.api.stopEditing();">ANNULLA</button>
12763
+ <button mat-flat-button (click)="this.params.api.stopEditing();">{{'ANNULLA' | translate}}</button>
12758
12764
  --></div>
12759
12765
  `,
12760
12766
  styles: [`
@@ -12873,7 +12879,7 @@ fh_win_auto_complete.decorators = [
12873
12879
  >
12874
12880
  <button mat-flat-button color="primary" (click)="ok()">OK</button
12875
12881
  >&nbsp;&nbsp;&nbsp;&nbsp;
12876
- <button mat-flat-button color="warn" (click)="close()">ANNULLA</button>
12882
+ <button mat-flat-button color="warn" (click)="close()">{{'ANNULLA' | translate}}</button>
12877
12883
  </mat-dialog-actions>
12878
12884
  </div>
12879
12885
  `
@@ -13268,10 +13274,10 @@ fh_win_output.decorators = [
13268
13274
  template: `
13269
13275
 
13270
13276
  <div   fxLayout="column" fxLayoutGap="5px">
13271
-          <div  fxFlex="100" fxLayout="row"   class="dialog_header"> 
13272
- <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{ title }}</div> 
13277
+          <div  fxFlex="100" fxLayout="row"   class="dialog_header">
13278
+ <div fxLayout="row" fxLayoutAlign="start center" style="width:50%">{{ title }}</div>
13273
13279
  <div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
13274
- <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />    
13280
+ <img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="close()" />
13275
13281
  </div>
13276
13282
  </div>
13277
13283
  <hr width="100%" size="0.5" color="#DDDDDD">
@@ -13281,7 +13287,7 @@ fh_win_output.decorators = [
13281
13287
  </mat-dialog-content>
13282
13288
  <mat-dialog-actions>
13283
13289
  <div fxFlex="100" fxLayout="row" fxLayoutAlign="end center">
13284
- <button mat-flat-button color="warn" (click)="chiudi()">CHIUDI</button>
13290
+ <button mat-flat-button color="warn" (click)="chiudi()">{{'CHIUDI' | translate}}</button>
13285
13291
  </div>
13286
13292
  </mat-dialog-actions>
13287
13293
  `
@@ -13790,7 +13796,7 @@ win_assegna.decorators = [
13790
13796
  <div *ngIf="comm_notrequired != 1">
13791
13797
  <br />
13792
13798
  <mat-form-field appearance="outline" floatLabel="always"
13793
- ><mat-label>Commento {{ nota_commento }}</mat-label>
13799
+ ><mat-label>{{'Commento' | translate}} {{ nota_commento }}</mat-label>
13794
13800
  <textarea matInput [(ngModel)]="nota" rows="4"></textarea>
13795
13801
  </mat-form-field>
13796
13802
  </div>
@@ -13823,12 +13829,13 @@ win_assegna.propDecorators = {
13823
13829
  };
13824
13830
 
13825
13831
  class win_conferma {
13826
- constructor(dialogRef, m_appService, toastr, _dataService, data) {
13832
+ constructor(dialogRef, m_appService, toastr, _dataService, data, _tsr) {
13827
13833
  this.dialogRef = dialogRef;
13828
13834
  this.m_appService = m_appService;
13829
13835
  this.toastr = toastr;
13830
13836
  this._dataService = _dataService;
13831
13837
  this.data = data;
13838
+ this._tsr = _tsr;
13832
13839
  this.utenti = "";
13833
13840
  this.lbl = "";
13834
13841
  this.nota = "";
@@ -13837,11 +13844,11 @@ class win_conferma {
13837
13844
  this.comm_notrequired = 0;
13838
13845
  this.mobile = false;
13839
13846
  this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
13840
- this.title = this.m_appService.getState().wkf_doc_info.title;
13841
- this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
13847
+ this.title = this._tsr.instant(this.m_appService.getState().wkf_doc_info.title);
13848
+ this.lbl = this._tsr.instant(this.m_appService.getState().wkf_doc_info.lbl);
13842
13849
  this.utenti = this.m_appService.getState().wkf_doc_info.utenti;
13843
13850
  if (this.comm_notrequired == 2)
13844
- this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
13851
+ this.nota_commento = this._tsr.instant(" (COMMENTO NON OBBLIGATORIO)");
13845
13852
  this.mobile = this.m_appService.getState().pageFullscreen;
13846
13853
  if (data != null) {
13847
13854
  if (data.commento_default != null)
@@ -13853,7 +13860,7 @@ class win_conferma {
13853
13860
  ok() {
13854
13861
  if (this.comm_notrequired == 0)
13855
13862
  if (this.nota == "") {
13856
- this.toastr.error("ERRORE", "INSERIRE IL COMMENTO", {
13863
+ this.toastr.error("ERRORE", this._tsr.instant("INSERIRE IL COMMENTO"), {
13857
13864
  timeOut: 1000,
13858
13865
  progressBar: true,
13859
13866
  });
@@ -13888,19 +13895,19 @@ win_conferma.decorators = [
13888
13895
  *ngIf="mobile && utenti?.toLocaleLowerCase().indexOf('system') == -1"
13889
13896
  style="font-size:10px"
13890
13897
  >
13891
- Assegnata a: {{ utenti }}
13898
+ {{'Assegnata a'}}: {{ utenti }}
13892
13899
  </div>
13893
13900
  <h3
13894
13901
  *ngIf="!mobile && utenti?.toLocaleLowerCase().indexOf('system') == -1"
13895
13902
  >
13896
- Assegnata a: {{ utenti }}
13903
+ {{'Assegnata a'}}: {{ utenti }}
13897
13904
  </h3>
13898
13905
  <br />
13899
13906
  <mat-form-field
13900
13907
  [hidden]="comm_notrequired == 1"
13901
13908
  appearance="outline"
13902
13909
  floatLabel="always"
13903
- ><mat-label>Commento {{ nota_commento }}</mat-label>
13910
+ ><mat-label> {{'Commento'}} {{ nota_commento }}</mat-label>
13904
13911
  <textarea matInput [(ngModel)]="nota" rows="6"></textarea>
13905
13912
  </mat-form-field>
13906
13913
  </div>
@@ -13913,7 +13920,7 @@ win_conferma.decorators = [
13913
13920
  style="background-color: #F5F5F5"
13914
13921
  (click)="close()"
13915
13922
  >
13916
- ANNULLA
13923
+ {{'ANNULLA'}}
13917
13924
  </button>
13918
13925
  </div>
13919
13926
  `
@@ -13924,7 +13931,8 @@ win_conferma.ctorParameters = () => [
13924
13931
  { type: AppService },
13925
13932
  { type: ToastrService },
13926
13933
  { type: QueryService },
13927
- { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
13934
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
13935
+ { type: TranslateService }
13928
13936
  ];
13929
13937
 
13930
13938
  class win_select_canale {
@@ -14205,7 +14213,7 @@ win_commento_sel_notif.decorators = [
14205
14213
  <div style="width:100%;text-align:center;">
14206
14214
  <button mat-flat-button color="primary" (click)="ok()">OK</button
14207
14215
  >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
14208
- <button mat-flat-button color="warn" (click)="close()">ANNULLA</button>
14216
+ <button mat-flat-button color="warn" (click)="close()">{{'ANNULLA' | translate}}</button>
14209
14217
  </div>
14210
14218
  </div>
14211
14219
  `
@@ -17277,7 +17285,7 @@ class dati_aggiuntivi {
17277
17285
  this.insert_commento(this.id_applicativo, this.id_documento, this.nota, this.user_idp); //id_applicativo,uiid,commento,creatore
17278
17286
  }
17279
17287
  this.m_liv = this.nlevel.livello;
17280
- this.m_statox = "Assegnata a:" + nomi_autori;
17288
+ this.m_statox = this.tsr.instant("Assegnata a") + ": " + nomi_autori;
17281
17289
  this.m_autori_paralleli = "";
17282
17290
  this.m_obj.assegnati_paralleli = "";
17283
17291
  this.chstato(this.m_liv);
@@ -18232,10 +18240,10 @@ class dati_aggiuntivi {
18232
18240
  s,
18233
18241
  this.m_obj.partecipanti + "," + s,
18234
18242
  lvlb,
18235
- "Assegnata a:" + s_auto,
18243
+ this.tsr.instant("Assegnata a") + ":" + s_auto,
18236
18244
  "",
18237
18245
  "",
18238
- this.getLvlDescri(String(lvlb), "Assegnata a:" + s_auto),
18246
+ this.getLvlDescri(String(lvlb), this.tsr.instant("Assegnata") + ': ' + s_auto),
18239
18247
  this.getUsersList(s_auto, this.m_obj.assegnati_paralleli),
18240
18248
  this.user_idp,
18241
18249
  this.getTitle(),
@@ -18249,10 +18257,10 @@ class dati_aggiuntivi {
18249
18257
  s,
18250
18258
  "",
18251
18259
  lvlb,
18252
- "Assegnata a:" + s_auto,
18260
+ this.tsr.instant("Assegnata a") + ": " + s_auto,
18253
18261
  "",
18254
18262
  "",
18255
- this.getLvlDescri(String(lvlb), "Assegnata a:" + s_auto),
18263
+ this.getLvlDescri(String(lvlb), this.tsr.instant("Assegnata a") + ": " + s_auto),
18256
18264
  this.getUsersList(s_auto, this.m_obj.assegnati_paralleli),
18257
18265
  this.user_idp,
18258
18266
  this.getTitle(),
@@ -19534,7 +19542,7 @@ fh_win_ask_buttons.decorators = [
19534
19542
  </mat-dialog-content>
19535
19543
  <br *ngIf="show_close" /><br *ngIf="show_close" />
19536
19544
  <div style="width:100%;text-align:center;" *ngIf="show_close">
19537
- <button mat-flat-button color="accent" (click)="close()">CHIUDI</button>
19545
+ <button mat-flat-button color="accent" (click)="close()">{{'CHIUDI' | translate}}</button>
19538
19546
  </div>
19539
19547
  </div>
19540
19548
  `
@@ -19586,7 +19594,7 @@ fh_win_show_image.decorators = [
19586
19594
  <!-- <ngx-image-viewer [src]="images" [(index)]="imageIndex"></ngx-image-viewer>-->
19587
19595
 
19588
19596
  <mat-dialog-actions>
19589
- <button mat-flat-button (click)="dialogRef.close('')">CHIUDI</button>
19597
+ <button mat-flat-button (click)="dialogRef.close('')">{{'CHIUDI' | translate}}</button>
19590
19598
  </mat-dialog-actions>
19591
19599
  `,
19592
19600
  styles: [``]
@@ -21215,17 +21223,17 @@ win_insert_commento.decorators = [
21215
21223
 
21216
21224
  <div mat-dialog-content style="min-width:800px;font-size: 15px;">
21217
21225
  <mat-form-field appearance="outline" floatLabel="always"
21218
- ><mat-label>Commento</mat-label>
21226
+ ><mat-label>{{'Commento' | translate}}</mat-label>
21219
21227
  <textarea matInput [(ngModel)]="nota" rows="12"></textarea>
21220
21228
  </mat-form-field>
21221
21229
 
21222
21230
  <div>
21223
21231
  <button mat-flat-button color="primary" (click)="ok()">OK</button
21224
21232
  >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
21225
- <button mat-flat-button color="warn" (click)="annulla()">ANNULLA</button
21233
+ <button mat-flat-button color="warn" (click)="annulla()">{{'ANNULLA' | translate}}</button
21226
21234
  >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
21227
21235
  <mat-checkbox [(ngModel)]="not_int" [hidden]="lettori === ''">
21228
- Notifica Interessati
21236
+ {{'Notifica Interessati' | translate}}
21229
21237
  </mat-checkbox>
21230
21238
  </div>
21231
21239
  </div>
@@ -25086,10 +25094,10 @@ class dati_aggiuntivi_v2 {
25086
25094
  s,
25087
25095
  this.m_obj.partecipanti + "," + s,
25088
25096
  lvlb,
25089
- "Assegnata a:" + s_auto,
25097
+ this.tsr.instant("Assegnata a") + ": " + s_auto,
25090
25098
  "",
25091
25099
  "",
25092
- this.getLvlDescri(String(lvlb), "Assegnata a:" + s_auto),
25100
+ this.getLvlDescri(String(lvlb), this.tsr.instant("Assegnata a") + ": " + s_auto),
25093
25101
  this.getUsersList(s_auto, this.m_obj.assegnati_paralleli),
25094
25102
  this.user_idp,
25095
25103
  this.getTitle(),
@@ -25103,10 +25111,10 @@ class dati_aggiuntivi_v2 {
25103
25111
  s,
25104
25112
  "",
25105
25113
  lvlb,
25106
- "Assegnata a:" + s_auto,
25114
+ this.tsr.instant("Assegnata a") + ": " + s_auto,
25107
25115
  "",
25108
25116
  "",
25109
- this.getLvlDescri(String(lvlb), "Assegnata a:" + s_auto),
25117
+ this.getLvlDescri(String(lvlb), this.tsr.instant("Assegnata a") + ": " + s_auto),
25110
25118
  this.getUsersList(s_auto, this.m_obj.assegnati_paralleli),
25111
25119
  this.user_idp,
25112
25120
  this.getTitle(),