@fluxhub/fluxhub-lib 10.0.288 → 10.0.290
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 +80 -3
- 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/fhautocomplete.js +12 -1
- package/esm2015/lib/controls/win_auto_complete.js +100 -0
- package/esm2015/lib/fluxhub-lib.module.js +5 -4
- package/esm2015/public_api.js +2 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +111 -4
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhautocomplete.d.ts +1 -0
- package/lib/controls/win_auto_complete.d.ts +19 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -10625,6 +10625,17 @@ class FHAutoCompleteComponent {
|
|
|
10625
10625
|
}
|
|
10626
10626
|
}
|
|
10627
10627
|
}
|
|
10628
|
+
add_option(o) {
|
|
10629
|
+
let b_found = false;
|
|
10630
|
+
this.myData.map((v) => {
|
|
10631
|
+
if (v.descrizione_valore == o.descrizione_valore || v.valore == o.valore)
|
|
10632
|
+
b_found = true;
|
|
10633
|
+
});
|
|
10634
|
+
if (!b_found) {
|
|
10635
|
+
// console.log('Inserisco ',o);
|
|
10636
|
+
this.myData.push(o);
|
|
10637
|
+
} //else console.log('Esiste già ',o);
|
|
10638
|
+
}
|
|
10628
10639
|
selectedSearchItem(event) {
|
|
10629
10640
|
this.setByDescri(event.option.value);
|
|
10630
10641
|
this.sItem = event.option.value;
|
|
@@ -11944,6 +11955,102 @@ ComboBoxEditor.propDecorators = {
|
|
|
11944
11955
|
appdt: [{ type: ViewChild, args: ["appdt",] }]
|
|
11945
11956
|
};
|
|
11946
11957
|
|
|
11958
|
+
class fh_win_auto_complete {
|
|
11959
|
+
constructor(dialogRef, toastr, data) {
|
|
11960
|
+
this.dialogRef = dialogRef;
|
|
11961
|
+
this.toastr = toastr;
|
|
11962
|
+
this.data = data;
|
|
11963
|
+
this.label = "";
|
|
11964
|
+
this.width = "100%";
|
|
11965
|
+
this.nota = false;
|
|
11966
|
+
this.nota_val = "";
|
|
11967
|
+
if (data == null)
|
|
11968
|
+
return;
|
|
11969
|
+
if (data != null) {
|
|
11970
|
+
let lab = "";
|
|
11971
|
+
let arrd = [];
|
|
11972
|
+
let nota = false;
|
|
11973
|
+
if (data.label != null)
|
|
11974
|
+
lab = data.label;
|
|
11975
|
+
if (data.arr_option != null)
|
|
11976
|
+
arrd = data.arr_option;
|
|
11977
|
+
if (data.nota != null)
|
|
11978
|
+
nota = data.nota;
|
|
11979
|
+
this.set_selection(lab, arrd, nota);
|
|
11980
|
+
}
|
|
11981
|
+
}
|
|
11982
|
+
close() {
|
|
11983
|
+
this.dialogRef.close(null);
|
|
11984
|
+
}
|
|
11985
|
+
set_selection(lab, myD, nota = false) {
|
|
11986
|
+
if (this.cmb_sel == null) {
|
|
11987
|
+
setTimeout(() => { this.set_selection(lab, myD, nota); }, 500);
|
|
11988
|
+
return;
|
|
11989
|
+
}
|
|
11990
|
+
this.nota = nota;
|
|
11991
|
+
this.label = lab;
|
|
11992
|
+
for (let i = 0; i < myD.length; i++)
|
|
11993
|
+
this.cmb_sel.add_option(myD[i]);
|
|
11994
|
+
}
|
|
11995
|
+
ok() {
|
|
11996
|
+
if (this.cmb_sel.getValue() == "-1") {
|
|
11997
|
+
this.toastr.error("Selezionare un valore");
|
|
11998
|
+
return;
|
|
11999
|
+
}
|
|
12000
|
+
this.cmb_sel.getObj().nota = this.nota_val;
|
|
12001
|
+
this.dialogRef.close(this.cmb_sel.getObj());
|
|
12002
|
+
}
|
|
12003
|
+
ngAfterViewInit() { }
|
|
12004
|
+
}
|
|
12005
|
+
fh_win_auto_complete.decorators = [
|
|
12006
|
+
{ type: Component, args: [{
|
|
12007
|
+
selector: "fh_win_auto_complete",
|
|
12008
|
+
template: `
|
|
12009
|
+
<div style="width:100%" fxLayout="row" fxLayoutAlign="end start">
|
|
12010
|
+
<img
|
|
12011
|
+
src="assets/icons/x.png"
|
|
12012
|
+
style="cursor: pointer;"
|
|
12013
|
+
(click)="close()"
|
|
12014
|
+
/>
|
|
12015
|
+
</div>
|
|
12016
|
+
<hr width="100%" size="0.5" color="#DDDDDD" />
|
|
12017
|
+
|
|
12018
|
+
<div fxLayout="column">
|
|
12019
|
+
<mat-dialog-content style="font-size: 15px;">
|
|
12020
|
+
<div fxLayout="column">
|
|
12021
|
+
<h3>
|
|
12022
|
+
{{ label | uppercase }}
|
|
12023
|
+
</h3>
|
|
12024
|
+
<FHAutoComplete #cmb_sel [init_fill]="false" [only_from_list]="true"></FHAutoComplete>
|
|
12025
|
+
<mat-form-field *ngIf="nota" appearance="outline" floatLabel="always"
|
|
12026
|
+
><mat-label>Nota</mat-label>
|
|
12027
|
+
<textarea matInput [(ngModel)]="nota_val" rows="12"></textarea>
|
|
12028
|
+
</mat-form-field>
|
|
12029
|
+
</div>
|
|
12030
|
+
</mat-dialog-content>
|
|
12031
|
+
|
|
12032
|
+
<mat-dialog-actions
|
|
12033
|
+
fxFlex="100"
|
|
12034
|
+
fxLayout="row"
|
|
12035
|
+
fxLayoutAlign="center center"
|
|
12036
|
+
>
|
|
12037
|
+
<button mat-flat-button color="primary" (click)="ok()">OK</button
|
|
12038
|
+
>
|
|
12039
|
+
<button mat-flat-button color="warn" (click)="close()">ANNULLA</button>
|
|
12040
|
+
</mat-dialog-actions>
|
|
12041
|
+
</div>
|
|
12042
|
+
`
|
|
12043
|
+
},] }
|
|
12044
|
+
];
|
|
12045
|
+
fh_win_auto_complete.ctorParameters = () => [
|
|
12046
|
+
{ type: MatDialogRef },
|
|
12047
|
+
{ type: ToastrService },
|
|
12048
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
12049
|
+
];
|
|
12050
|
+
fh_win_auto_complete.propDecorators = {
|
|
12051
|
+
cmb_sel: [{ type: ViewChild, args: ["cmb_sel",] }]
|
|
12052
|
+
};
|
|
12053
|
+
|
|
11947
12054
|
class ReplaceLineBreaks {
|
|
11948
12055
|
transform(value) {
|
|
11949
12056
|
let newValue = value.replace(/\n/g, "<br/>");
|
|
@@ -20449,7 +20556,7 @@ FluxhubLibModule.decorators = [
|
|
|
20449
20556
|
win_salva_annulla,
|
|
20450
20557
|
FormBuilderComponent,
|
|
20451
20558
|
FormExecuterComponent,
|
|
20452
|
-
FHTableManager, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3
|
|
20559
|
+
FHTableManager, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3, fh_win_auto_complete
|
|
20453
20560
|
],
|
|
20454
20561
|
declarations: [
|
|
20455
20562
|
fh_win_show_log_dett,
|
|
@@ -20526,7 +20633,7 @@ FluxhubLibModule.decorators = [
|
|
|
20526
20633
|
FHTableManager,
|
|
20527
20634
|
win_manage_values,
|
|
20528
20635
|
win_manage_roles,
|
|
20529
|
-
FHComboboxComponentFilter, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3
|
|
20636
|
+
FHComboboxComponentFilter, FHPickFieldComponent, FHUploadPanelS3Component, FHUploadS3Component, fh_win_show_email, fh_win_show_email_s3, fh_win_auto_complete
|
|
20530
20637
|
],
|
|
20531
20638
|
providers: [HighlightService, DragulaService],
|
|
20532
20639
|
entryComponents: [
|
|
@@ -20568,7 +20675,7 @@ FluxhubLibModule.decorators = [
|
|
|
20568
20675
|
fh_win_ask_big_test,
|
|
20569
20676
|
fh_win_output,
|
|
20570
20677
|
fh_win_list, fh_win_picklist,
|
|
20571
|
-
fh_win_wait, fh_win_show_email, fh_win_show_email_s3
|
|
20678
|
+
fh_win_wait, fh_win_show_email, fh_win_show_email_s3, fh_win_auto_complete
|
|
20572
20679
|
],
|
|
20573
20680
|
},] }
|
|
20574
20681
|
];
|
|
@@ -20754,5 +20861,5 @@ class FSResult {
|
|
|
20754
20861
|
* Generated bundle index. Do not edit.
|
|
20755
20862
|
*/
|
|
20756
20863
|
|
|
20757
|
-
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 };
|
|
20864
|
+
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 };
|
|
20758
20865
|
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|