@fluxhub/fluxhub-lib 10.0.287 → 10.0.289

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.
@@ -15,7 +15,7 @@ import 'ag-grid-enterprise';
15
15
  import { MatSelectModule } from '@angular/material/select';
16
16
  import { Observable } from 'rxjs';
17
17
  import { MatSlideToggleModule } from '@angular/material/slide-toggle';
18
- import { MatAutocompleteModule } from '@angular/material/autocomplete';
18
+ import { MatAutocompleteTrigger, MatAutocompleteModule } from '@angular/material/autocomplete';
19
19
  import * as momentNs from 'moment';
20
20
  import { isMoment } from 'moment';
21
21
  import { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MatNativeDateModule } from '@angular/material/core';
@@ -10548,7 +10548,6 @@ class FHAutoCompleteComponent {
10548
10548
  this._dataService = _dataService;
10549
10549
  this._dataService_odbc = _dataService_odbc;
10550
10550
  this.init_fill = true; //automatic load data from database default is true
10551
- // [autoActiveFirstOption]="open_on_load"
10552
10551
  this.sql = "";
10553
10552
  this.label = "";
10554
10553
  this.types = [];
@@ -10887,6 +10886,7 @@ FHAutoCompleteComponent.decorators = [
10887
10886
  [disabled]="!enabled || hidden"
10888
10887
  [matAutocomplete]="auto"
10889
10888
  [required]="required"
10889
+ #trigger="matAutocompleteTrigger"
10890
10890
  (keyup)="onChange_up($event)"
10891
10891
  [(ngModel)]="sItem"
10892
10892
  (focus)="fi_search();onChange_up($event)"
@@ -10897,7 +10897,7 @@ FHAutoCompleteComponent.decorators = [
10897
10897
  <mat-autocomplete
10898
10898
  #auto="matAutocomplete"
10899
10899
  (optionSelected)="selectedSearchItem($event)"
10900
-
10900
+ [autoActiveFirstOption]="open_on_load"
10901
10901
  >
10902
10902
  <mat-option
10903
10903
  *ngFor="let objx of searchItemsFiltered"
@@ -10931,6 +10931,7 @@ FHAutoCompleteComponent.ctorParameters = () => [
10931
10931
  ];
10932
10932
  FHAutoCompleteComponent.propDecorators = {
10933
10933
  init_fill: [{ type: Input }],
10934
+ autocomplete: [{ type: ViewChild, args: [MatAutocompleteTrigger,] }],
10934
10935
  sql: [{ type: Input }],
10935
10936
  label: [{ type: Input }],
10936
10937
  types: [{ type: Input }],
@@ -11943,6 +11944,102 @@ ComboBoxEditor.propDecorators = {
11943
11944
  appdt: [{ type: ViewChild, args: ["appdt",] }]
11944
11945
  };
11945
11946
 
11947
+ class fh_win_auto_complete {
11948
+ constructor(dialogRef, toastr, data) {
11949
+ this.dialogRef = dialogRef;
11950
+ this.toastr = toastr;
11951
+ this.data = data;
11952
+ this.label = "";
11953
+ this.width = "100%";
11954
+ this.nota = false;
11955
+ this.nota_val = "";
11956
+ if (data == null)
11957
+ return;
11958
+ if (data != null) {
11959
+ let lab = "";
11960
+ let arrd = [];
11961
+ let nota = false;
11962
+ if (data.label != null)
11963
+ lab = data.label;
11964
+ if (data.arr_option != null)
11965
+ arrd = data.arr_option;
11966
+ if (data.nota != null)
11967
+ nota = data.nota;
11968
+ this.set_selection(lab, arrd, nota);
11969
+ }
11970
+ }
11971
+ close() {
11972
+ this.dialogRef.close(null);
11973
+ }
11974
+ set_selection(lab, myD, nota = false) {
11975
+ if (this.cmb_sel == null) {
11976
+ setTimeout(() => { this.set_selection(lab, myD, nota); }, 500);
11977
+ return;
11978
+ }
11979
+ this.nota = nota;
11980
+ this.label = lab;
11981
+ for (let i = 0; i < myD.length; i++)
11982
+ this.cmb_sel.add_option(myD[i]);
11983
+ }
11984
+ ok() {
11985
+ if (this.cmb_sel.getValue() == "-1") {
11986
+ this.toastr.error("Selezionare un valore");
11987
+ return;
11988
+ }
11989
+ this.cmb_sel.getObj().nota = this.nota_val;
11990
+ this.dialogRef.close(this.cmb_sel.getObj());
11991
+ }
11992
+ ngAfterViewInit() { }
11993
+ }
11994
+ fh_win_auto_complete.decorators = [
11995
+ { type: Component, args: [{
11996
+ selector: "fh_win_auto_complete",
11997
+ template: `
11998
+ <div style="width:100%" fxLayout="row" fxLayoutAlign="end start">
11999
+ <img
12000
+ src="assets/icons/x.png"
12001
+ style="cursor: pointer;"
12002
+ (click)="close()"
12003
+ />
12004
+ </div>
12005
+ <hr width="100%" size="0.5" color="#DDDDDD" />
12006
+
12007
+ <div fxLayout="column">
12008
+ <mat-dialog-content style="font-size: 15px;">
12009
+ <div fxLayout="column">
12010
+ <h3>
12011
+ {{ label | uppercase }}
12012
+ </h3>
12013
+ <FHAutoComplete #cmb_sel [init_fill]="false"></FHAutoComplete>
12014
+ <mat-form-field *ngIf="nota" appearance="outline" floatLabel="always"
12015
+ ><mat-label>Nota</mat-label>
12016
+ <textarea matInput [(ngModel)]="nota_val" rows="12"></textarea>
12017
+ </mat-form-field>
12018
+ </div>
12019
+ </mat-dialog-content>
12020
+
12021
+ <mat-dialog-actions
12022
+ fxFlex="100"
12023
+ fxLayout="row"
12024
+ fxLayoutAlign="center center"
12025
+ >
12026
+ <button mat-flat-button color="primary" (click)="ok()">OK</button
12027
+ >&nbsp;&nbsp;&nbsp;&nbsp;
12028
+ <button mat-flat-button color="warn" (click)="close()">ANNULLA</button>
12029
+ </mat-dialog-actions>
12030
+ </div>
12031
+ `
12032
+ },] }
12033
+ ];
12034
+ fh_win_auto_complete.ctorParameters = () => [
12035
+ { type: MatDialogRef },
12036
+ { type: ToastrService },
12037
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
12038
+ ];
12039
+ fh_win_auto_complete.propDecorators = {
12040
+ cmb_sel: [{ type: ViewChild, args: ["cmb_sel",] }]
12041
+ };
12042
+
11946
12043
  class ReplaceLineBreaks {
11947
12044
  transform(value) {
11948
12045
  let newValue = value.replace(/\n/g, "<br/>");
@@ -20448,7 +20545,7 @@ FluxhubLibModule.decorators = [
20448
20545
  win_salva_annulla,
20449
20546
  FormBuilderComponent,
20450
20547
  FormExecuterComponent,
20451
- FHTableManager, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3
20548
+ FHTableManager, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3, fh_win_auto_complete
20452
20549
  ],
20453
20550
  declarations: [
20454
20551
  fh_win_show_log_dett,
@@ -20525,7 +20622,7 @@ FluxhubLibModule.decorators = [
20525
20622
  FHTableManager,
20526
20623
  win_manage_values,
20527
20624
  win_manage_roles,
20528
- FHComboboxComponentFilter, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3
20625
+ FHComboboxComponentFilter, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3, fh_win_auto_complete
20529
20626
  ],
20530
20627
  providers: [HighlightService, DragulaService],
20531
20628
  entryComponents: [
@@ -20567,7 +20664,7 @@ FluxhubLibModule.decorators = [
20567
20664
  fh_win_ask_big_test,
20568
20665
  fh_win_output,
20569
20666
  fh_win_list, fh_win_picklist,
20570
- fh_win_wait, fh_win_show_email, fh_win_show_email_s3
20667
+ fh_win_wait, fh_win_show_email, fh_win_show_email_s3, fh_win_auto_complete
20571
20668
  ],
20572
20669
  },] }
20573
20670
  ];
@@ -20753,5 +20850,5 @@ class FSResult {
20753
20850
  * Generated bundle index. Do not edit.
20754
20851
  */
20755
20852
 
20756
- export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickFieldComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, fh_win_app_logs, fh_win_ask_big_test, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_text, fh_win_combo, fh_win_confirm, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log_dett, fh_win_time_slider, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, fhimagepreview, win_insert_commento, win_salva_annulla, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵb, win_commenti as ɵba, win_info_doc as ɵbb, win_log as ɵbc, win_recupera_doc as ɵbd, win_riassegna_select_level as ɵbe, win_riassegna_select_user as ɵbf, win_sostituisci_utente as ɵbg, win_commento_sel_notif as ɵbh, win_manage_values as ɵbi, win_manage_roles as ɵbj, FHComboboxComponentFilter as ɵbk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵl, FHHelpButton as ɵm, SafePipe as ɵn, DecimalMask as ɵo, MOMENT_DATE_FORMATS as ɵp, MomentDateAdapter as ɵq, win_grid_help as ɵr, HighlightService as ɵs, FHViewerComponent as ɵt, FHGridToolBarComponent as ɵv, win_assegna as ɵw, win_conferma as ɵx, win_select_canale as ɵy, win_select_level as ɵz };
20853
+ export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickFieldComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, fh_win_app_logs, fh_win_ask_big_test, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_text, fh_win_auto_complete, fh_win_combo, fh_win_confirm, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log_dett, fh_win_time_slider, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, fhimagepreview, win_insert_commento, win_salva_annulla, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵb, win_commenti as ɵba, win_info_doc as ɵbb, win_log as ɵbc, win_recupera_doc as ɵbd, win_riassegna_select_level as ɵbe, win_riassegna_select_user as ɵbf, win_sostituisci_utente as ɵbg, win_commento_sel_notif as ɵbh, win_manage_values as ɵbi, win_manage_roles as ɵbj, FHComboboxComponentFilter as ɵbk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵl, FHHelpButton as ɵm, SafePipe as ɵn, DecimalMask as ɵo, MOMENT_DATE_FORMATS as ɵp, MomentDateAdapter as ɵq, win_grid_help as ɵr, HighlightService as ɵs, FHViewerComponent as ɵt, FHGridToolBarComponent as ɵv, win_assegna as ɵw, win_conferma as ɵx, win_select_canale as ɵy, win_select_level as ɵz };
20757
20854
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map