@fluxhub/fluxhub-lib 10.0.1 → 10.0.6
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 +13 -18
- 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/fhdatepicker.js +7 -7
- package/esm2015/lib/controls/fhpickfield.js +54 -54
- package/esm2015/lib/controls/fhupload.js +9 -12
- package/esm2015/lib/controls/fhupload_s3.js +1 -2
- package/esm2015/lib/controls/fhuploadpanel_s3.js +1 -2
- package/esm2015/lib/controls/win_show_email.js +55 -55
- package/esm2015/lib/services/utility.service.js +2 -2
- package/esm2015/public_api.js +1 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +121 -126
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1535,7 +1535,6 @@
|
|
|
1535
1535
|
}
|
|
1536
1536
|
this.upc.single = false;
|
|
1537
1537
|
this.b_mobile = this._appservice.getState().pageFullscreen;
|
|
1538
|
-
console.log(this.App, this.K, this.m_p_cod_doc, this.m_p_section, 'Attachment Description', this.m_p_system_type, this.m_programma_da_eseguire);
|
|
1539
1538
|
if (this.force_en)
|
|
1540
1539
|
this.upc.init(this.App, this.K, this.m_p_cod_doc, this.m_p_section, 'Attachment Description', this.m_p_system_type, this.m_programma_da_eseguire);
|
|
1541
1540
|
else
|
|
@@ -1917,7 +1916,6 @@
|
|
|
1917
1916
|
form.append("parent_doc_type", _this.App);
|
|
1918
1917
|
form.append("parent_doc_rif", _this.p_cod_doc);
|
|
1919
1918
|
form.append("parent_doc_uiid", _this.K);
|
|
1920
|
-
console.log('onBuildItemForm!!!!!!!!!!!!!!!!!!!!!this.p_section ', _this.p_section);
|
|
1921
1919
|
form.append("parent_doc_section", _this.p_section);
|
|
1922
1920
|
form.append("version", 1);
|
|
1923
1921
|
form.append("status", "PUBLISHED");
|
|
@@ -4169,15 +4167,11 @@
|
|
|
4169
4167
|
};
|
|
4170
4168
|
this.uploader.onCompleteItem = function (item, response, status, header) {
|
|
4171
4169
|
if (status === 200) {
|
|
4172
|
-
_this.descrizione =
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
progressBar: true,
|
|
4178
|
-
});
|
|
4179
|
-
else
|
|
4180
|
-
_this.toastr.error(res.msg);
|
|
4170
|
+
_this.descrizione = "";
|
|
4171
|
+
_this.toastr.info("INFO", _this.allegato_inserito, {
|
|
4172
|
+
timeOut: 1000,
|
|
4173
|
+
progressBar: true,
|
|
4174
|
+
});
|
|
4181
4175
|
_this.ref_allegato();
|
|
4182
4176
|
_this.last_result = {
|
|
4183
4177
|
item: item,
|
|
@@ -4249,6 +4243,7 @@
|
|
|
4249
4243
|
}, 200);
|
|
4250
4244
|
return;
|
|
4251
4245
|
}
|
|
4246
|
+
console.log("this.cmb_tipo.sql ", this.cmb_tipo.sql);
|
|
4252
4247
|
this.cmb_tipo.sql = this.tipo;
|
|
4253
4248
|
this.cmb_tipo.fillCombo();
|
|
4254
4249
|
};
|
|
@@ -4416,7 +4411,7 @@
|
|
|
4416
4411
|
FHUploadComponent.decorators = [
|
|
4417
4412
|
{ type: i0.Component, args: [{
|
|
4418
4413
|
selector: "FHUpload",
|
|
4419
|
-
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)\"\n (fileOver)=\"fileOverBase($event)\" [uploader]=\"uploader\">\n <div fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <mat-icon
|
|
4414
|
+
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)\"\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\n [multiple]=\"false\"\n [uploader]=\"uploader\"\n name=\"file-fh{{ id_component }}\"\n id=\"file-fh{{ id_component }}\"\n (onFileSelected)=\"onFileDrop($event)\"\n id=\"uploader-input\" style=\"display:none\"/>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n \n <button\n mat-raised-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-raised-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-raised-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 ",
|
|
4420
4415
|
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",
|
|
4421
4416
|
"\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"]
|
|
4422
4417
|
},] }
|
|
@@ -7263,12 +7258,12 @@
|
|
|
7263
7258
|
// this.myDatePickerOptions.componentDisabled=!this.enabled;
|
|
7264
7259
|
};
|
|
7265
7260
|
FHDatePickerComponent.prototype.setLimits = function () {
|
|
7266
|
-
/*let copy = this.getCopyOfOptions();
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7261
|
+
/* let copy = this.getCopyOfOptions();
|
|
7262
|
+
|
|
7263
|
+
if ( this.min_date != null ) {this.min_date.setDate(this.min_date.getDate() -1 ); copy.disableUntil = { year: this.min_date.getFullYear( ), month: this.min_date.getMonth( )+1, day: this.min_date.getDate( ) }};
|
|
7264
|
+
if ( this.max_date != null ) {this.max_date.setDate(this.max_date.getDate() +1 );copy.disableSince = { year: this.max_date.getFullYear( ), month: this.max_date.getMonth( )+1, day: this.max_date.getDate( ) }};
|
|
7265
|
+
this.myDatePickerOptions = copy;
|
|
7266
|
+
*/
|
|
7272
7267
|
};
|
|
7273
7268
|
FHDatePickerComponent.prototype.setToday = function () {
|
|
7274
7269
|
this.date_sel = new Date();
|