@fluxhub/fluxhub-lib 10.0.98 → 10.0.100
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 +6 -5
- 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/fhfieldpicklist.js +7 -7
- package/esm2015/lib/controls/fhtimepicker.js +1 -2
- package/esm2015/lib/controls/fhupload.js +6 -4
- package/esm2015/lib/wkf_engine/win_assegna.js +2 -2
- package/esm2015/lib/wkf_engine/wkf_header_bar.js +5 -5
- package/fesm2015/fluxhub-fluxhub-lib.js +16 -15
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhupload.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3630,7 +3630,6 @@
|
|
|
3630
3630
|
return typeof event.which == "undefined" ? event.keyCode : event.which;
|
|
3631
3631
|
};
|
|
3632
3632
|
FHTimePickerComponent.prototype.isKeyPressedNumeric = function (event) {
|
|
3633
|
-
console.log(event);
|
|
3634
3633
|
if ("0123456789".indexOf(event.key) !== -1 ||
|
|
3635
3634
|
event.key == "ArrowRight" ||
|
|
3636
3635
|
event.key == "ArrowLeft" ||
|
|
@@ -4368,6 +4367,7 @@
|
|
|
4368
4367
|
this.uti = uti;
|
|
4369
4368
|
this.lascia_il_file = 'Lascia il file per confermarmare upload';
|
|
4370
4369
|
this.trascina_il_file = 'Trascina un file qui o Clicca per avviare upload';
|
|
4370
|
+
this.show_download_button = true;
|
|
4371
4371
|
this.show_descri = true;
|
|
4372
4372
|
this.enabled = true;
|
|
4373
4373
|
this.single = true;
|
|
@@ -4661,7 +4661,7 @@
|
|
|
4661
4661
|
FHUploadComponent.decorators = [
|
|
4662
4662
|
{ type: i0.Component, args: [{
|
|
4663
4663
|
selector: "FHUpload",
|
|
4664
|
-
template: "\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div\n [hidden]=\"!(enabled && !loading)\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n >\n <div\n [hidden]=\"!multi_list\"\n style=\"width:380px\"\n fxLayoutAlign=\"start center\"\n >\n <FHComboBox\n [sql]=\"tipo\"\n #cmb_tipo\n [init_fill]=\"false\"\n label=\"Tipologia\"\n ></FHComboBox\n > \n </div>\n <mat-form-field\n [hidden]=\"!show_descri\"\n style=\"width: 100%\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }} {{ fixed_label }}</mat-label>\n <input\n matInput\n type=\"text\"\n name=\"descrizione\"\n [(ngModel)]=\"descrizione\"\n />\n </mat-form-field>\n \n <!-- <div\n style=\"width:140px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start start\"\n (click)=\"call_up()\"\n >\n <input\n type=\"file\"\n multiple\n ng2FileSelect\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\"\n class=\"inputfile inputfile-fh\"\n />\n <label for=\"file-fh{{ id_component }}\" style=\"width:210px\"\n ><svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"17\"\n viewBox=\"0 0 20 17\"\n >\n <path\n d=\"M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z\"\n /></svg><span style=\"font-size: 12px\"> Upload</span></label>\n </div>\n -->\n <div class=\"my-drop-zone\" style=\"width:130px\" fxLayout=\"row\" [matTooltip]=\"hasBaseDropZoneOver ? lascia_il_file : trascina_il_file\" fxLayoutAlign=\"center start\">\n <label for=\"uploader-input\" ng2FileDrop style=\"font-weight:bold\"\n [ngClass]=\"{'over-drop-zone': hasBaseDropZoneOver}\" for=\"file-fh{{ id_component }}\"\n (onFileDrop)=\"onFileDrop($event)\" (click)=\"call_up()\"\n (fileOver)=\"fileOverBase($event)\" [uploader]=\"uploader\">\n <div fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <mat-icon>{{!hasBaseDropZoneOver?'backup':'thumb_up'}}</mat-icon>\n\n <span style=\"font-size: 14px\"> Upload</span></div></label></div>\n <input type=\"file\"\n ng2FileSelect #select_file\n [multiple]=\"false\"\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\" (click)=\"call_up()\"\n (onFileSelected)=\"onFileDrop($event)\"\n id=\"uploader-input\" style=\"display:none\"/>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n \n <button\n mat-flat-button\n *ngIf=\"b_edit_loaded\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;font-weight:bold\" color=\"accent\"\n\n >\n {{ label_b }}</button\n > \n <button\n mat-flat-button\n *ngIf=\"id != null && allow_delete\"\n (click)=\"del_doc()\"\n color=\"warn\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div *ngIf=\"!enabled\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <label>{{ label }}:</label>\n <div *ngIf=\"label != descrizione\">{{ descrizione }}</div>\n <button\n mat-flat-button\n *ngIf=\"b_edit_loaded\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;background-color: #F5F5F5\"\n >\n {{ label_b }}\n </button>\n </div>\n ",
|
|
4664
|
+
template: "\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div\n [hidden]=\"!(enabled && !loading)\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start center\"\n >\n <div\n [hidden]=\"!multi_list\"\n style=\"width:380px\"\n fxLayoutAlign=\"start center\"\n >\n <FHComboBox\n [sql]=\"tipo\"\n #cmb_tipo\n [init_fill]=\"false\"\n label=\"Tipologia\"\n ></FHComboBox\n > \n </div>\n <mat-form-field\n [hidden]=\"!show_descri\"\n style=\"width: 100%\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }} {{ fixed_label }}</mat-label>\n <input\n matInput\n type=\"text\"\n name=\"descrizione\"\n [(ngModel)]=\"descrizione\"\n />\n </mat-form-field>\n \n <!-- <div\n style=\"width:140px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"start start\"\n (click)=\"call_up()\"\n >\n <input\n type=\"file\"\n multiple\n ng2FileSelect\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\"\n class=\"inputfile inputfile-fh\"\n />\n <label for=\"file-fh{{ id_component }}\" style=\"width:210px\"\n ><svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"17\"\n viewBox=\"0 0 20 17\"\n >\n <path\n d=\"M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z\"\n /></svg><span style=\"font-size: 12px\"> Upload</span></label>\n </div>\n -->\n <div class=\"my-drop-zone\" style=\"width:130px\" fxLayout=\"row\" [matTooltip]=\"hasBaseDropZoneOver ? lascia_il_file : trascina_il_file\" fxLayoutAlign=\"center start\">\n <label for=\"uploader-input\" ng2FileDrop style=\"font-weight:bold\"\n [ngClass]=\"{'over-drop-zone': hasBaseDropZoneOver}\" for=\"file-fh{{ id_component }}\"\n (onFileDrop)=\"onFileDrop($event)\" (click)=\"call_up()\"\n (fileOver)=\"fileOverBase($event)\" [uploader]=\"uploader\">\n <div fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <mat-icon>{{!hasBaseDropZoneOver?'backup':'thumb_up'}}</mat-icon>\n\n <span style=\"font-size: 14px\"> Upload</span></div></label></div>\n <input type=\"file\"\n ng2FileSelect #select_file\n [multiple]=\"false\"\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\" (click)=\"call_up()\"\n (onFileSelected)=\"onFileDrop($event)\"\n id=\"uploader-input\" style=\"display:none\"/>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n \n <button\n mat-flat-button\n *ngIf=\"b_edit_loaded && show_download_button\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;font-weight:bold\" color=\"accent\"\n\n >\n {{ label_b }}</button\n > \n <button\n mat-flat-button\n *ngIf=\"id != null && allow_delete && show_download_button\"\n (click)=\"del_doc()\"\n color=\"warn\"\n >\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div *ngIf=\"!enabled\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <label>{{ label }}:</label>\n <div *ngIf=\"label != descrizione\">{{ descrizione }}</div>\n <button\n mat-flat-button\n *ngIf=\"b_edit_loaded && show_download_button\"\n (click)=\"download_all()\"\n style=\"font-size: 12px;background-color: #F5F5F5\"\n >\n {{ label_b }}\n </button>\n </div>\n ",
|
|
4665
4665
|
styles: ["\n .fileLabel{\n display: inline-block;\n padding: .7em .4em;\n font-size: 13px;\n color: #525252;\n background-color: #e6e6e6;\n margin: 0 .2em;\n border-radius: 5px;\n }\n",
|
|
4666
4666
|
"\n .my-drop-zone { border: dotted 3px lightgray;height:35px }\n\n", "\n .nv-file-over { border: dotted 3px red; } /* Default class applied to drop zones on over */\n ", "\n .another-file-over-class { border: dotted 3px green; }\n"]
|
|
4667
4667
|
},] }
|
|
@@ -4676,6 +4676,7 @@
|
|
|
4676
4676
|
FHUploadComponent.propDecorators = {
|
|
4677
4677
|
lascia_il_file: [{ type: i0.Input }],
|
|
4678
4678
|
trascina_il_file: [{ type: i0.Input }],
|
|
4679
|
+
show_download_button: [{ type: i0.Input }],
|
|
4679
4680
|
show_descri: [{ type: i0.Input }],
|
|
4680
4681
|
enabled: [{ type: i0.Input }],
|
|
4681
4682
|
single: [{ type: i0.Input }],
|
|
@@ -9536,7 +9537,7 @@
|
|
|
9536
9537
|
}());
|
|
9537
9538
|
win_assegna.decorators = [
|
|
9538
9539
|
{ type: i0.Component, args: [{
|
|
9539
|
-
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 <h4 mat-dialog-title>{{ title }}</h4>\n <div\n mat-dialog-content\n fxLayout=\"column\"\n style=\"font-size: 15px;min-width: 750px\"\n >\n <div style=\"width:100%;height:450px\">\n <FHPickUsers\n #up\n [users_list]=\"arrAutori\"\n [vis_buttons]=\"false\"\n ></FHPickUsers>\n </div>\n <div *ngIf=\"comm_notrequired != 1\">\n <br />\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>Commento {{ nota_commento }}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"
|
|
9540
|
+
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 <h4 mat-dialog-title>{{ title }}</h4>\n <div\n mat-dialog-content\n fxLayout=\"column\"\n style=\"font-size: 15px;min-width: 750px\"\n >\n <div style=\"width:100%;height:450px\">\n <FHPickUsers\n #up\n [users_list]=\"arrAutori\"\n [vis_buttons]=\"false\"\n ></FHPickUsers>\n </div>\n <div *ngIf=\"comm_notrequired != 1\">\n <br />\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>Commento {{ nota_commento }}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"4\"></textarea>\n </mat-form-field>\n </div>\n </div>\n <br />\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\">OK</button\n > \n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n ANNULLA\n </button>\n </div>\n "
|
|
9540
9541
|
},] }
|
|
9541
9542
|
];
|
|
9542
9543
|
win_assegna.ctorParameters = function () { return [
|
|
@@ -11976,7 +11977,7 @@
|
|
|
11976
11977
|
wkf_header_bar.decorators = [
|
|
11977
11978
|
{ type: i0.Component, args: [{
|
|
11978
11979
|
selector: "wkf_header_bar",
|
|
11979
|
-
template: "\n <div fxLayout=\"row\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"
|
|
11980
|
+
template: "\n <div fxLayout=\"row\" fxLayoutGap.lt-md=\"8px\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"16px\" fxLayoutGap.lt-md=\"8px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <div>\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n Indietro</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button || force_save\"\n color=\"primary\"\n >\n Salva</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"edit_button && procedi_button\"\n color=\"accent\"\n >\n Procedi</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"respingi()\"\n *ngIf=\"respingi_button\"\n color=\"warn\"\n >\n Respingi\n </button>\n </div>\n <!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button> \n-->\n </div>\n \n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.xs=\"3px\"\n >\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button\n (click)=\"open_info()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>info_outline</mat-icon> Info Doc</button\n ></div><div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.comm_c ? dt_agg?.comm_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.comm_c ? dt_agg?.comm_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_commenti()\"\n >\n <mat-icon>insert_comment</mat-icon>Commenti</button\n ></div>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.all_c ? dt_agg?.all_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.all_c ? dt_agg?.all_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_upload()\"\n >\n <mat-icon>attach_file</mat-icon>Allegati</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"open_wkf()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>transfer_within_a_station</mat-icon>Workflow\n </button>\n </div> </div>\n </div>\n </div>\n "
|
|
11980
11981
|
},] }
|
|
11981
11982
|
];
|
|
11982
11983
|
wkf_header_bar.ctorParameters = function () { return [
|
|
@@ -12824,7 +12825,7 @@
|
|
|
12824
12825
|
{ type: i0.Component, args: [{
|
|
12825
12826
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9],
|
|
12826
12827
|
selector: "FHFieldPickList",
|
|
12827
|
-
template: "\n <div\n fxLayout=\"row\"\n
|
|
12828
|
+
template: "\n <div\n fxLayout=\"row\"\n fxFlex=\"100\"\n fxLayoutAlign=\"start center\"\n [hidden]=\"hidden\" fxLayoutGap=\"10px\"\n >\n <div fxFlex fxLayout=\"row\">\n <mat-form-field appearance=\"outline\" floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n #el1\n matInput\n [readonly]=\"!enabled || only_in_list\"\n [(ngModel)]=\"value\"\n />\n </mat-form-field>\n </div>\n\n <div fxLayout=\"row\">\n <button\n mat-flat-button\n color=\"primary\"\n (click)=\"open_pick_list()\"\n [hidden]=\"!enabled\"\n >\n SELEZIONA\n </button>\n </div>\n </div>\n ",
|
|
12828
12829
|
styles: [""]
|
|
12829
12830
|
},] }
|
|
12830
12831
|
];
|