@fluxhub/fluxhub-lib 11.0.96 → 11.0.98
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 +20 -7
- 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/fhupload.js +2 -5
- package/esm2015/lib/controls/fhwinupload.js +21 -5
- package/fesm2015/fluxhub-fluxhub-lib.js +21 -8
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhwinupload.d.ts +5 -0
- package/package.json +1 -1
|
@@ -3189,7 +3189,11 @@
|
|
|
3189
3189
|
this.app_s = app_s;
|
|
3190
3190
|
this.enabled = true;
|
|
3191
3191
|
this.show_descri = true;
|
|
3192
|
+
this.close_auto = false;
|
|
3193
|
+
this.allow_delete = false;
|
|
3192
3194
|
this.App = '';
|
|
3195
|
+
this.tipo = '';
|
|
3196
|
+
this.programma_da_eseguire = '';
|
|
3193
3197
|
this.label = '';
|
|
3194
3198
|
this.K = '';
|
|
3195
3199
|
this.title = 'ALLEGATI';
|
|
@@ -3205,11 +3209,23 @@
|
|
|
3205
3209
|
this.show_descri = data.show_descri;
|
|
3206
3210
|
if (data.label != null)
|
|
3207
3211
|
this.label = data.label;
|
|
3212
|
+
if (data.close_auto != null)
|
|
3213
|
+
this.close_auto = data.close_auto;
|
|
3214
|
+
if (data.allow_delete != null)
|
|
3215
|
+
this.allow_delete = data.allow_delete;
|
|
3216
|
+
if (data.tipo != null)
|
|
3217
|
+
this.tipo = data.tipo;
|
|
3218
|
+
if (data.programma_da_eseguire != null)
|
|
3219
|
+
this.programma_da_eseguire = data.programma_da_eseguire;
|
|
3208
3220
|
}
|
|
3209
3221
|
}
|
|
3210
3222
|
fh_win_upload.prototype.close = function () {
|
|
3211
3223
|
this.dialogRef.close(null);
|
|
3212
3224
|
};
|
|
3225
|
+
fh_win_upload.prototype.upload_ended = function () {
|
|
3226
|
+
if (this.close_auto)
|
|
3227
|
+
this.close();
|
|
3228
|
+
};
|
|
3213
3229
|
fh_win_upload.prototype.ngAfterViewInit = function () {
|
|
3214
3230
|
var _this = this;
|
|
3215
3231
|
setTimeout(function () {
|
|
@@ -3224,14 +3240,14 @@
|
|
|
3224
3240
|
this.App = p_app;
|
|
3225
3241
|
this.K = p_k;
|
|
3226
3242
|
if (this.upc)
|
|
3227
|
-
this.upc.init(this.App, this.K, this.label);
|
|
3243
|
+
this.upc.init(this.App, this.K, this.label, this.tipo, this.programma_da_eseguire, this.allow_delete);
|
|
3228
3244
|
};
|
|
3229
3245
|
return fh_win_upload;
|
|
3230
3246
|
}());
|
|
3231
3247
|
fh_win_upload.decorators = [
|
|
3232
3248
|
{ type: i0.Component, args: [{
|
|
3233
|
-
selector: '
|
|
3234
|
-
template: "\n <div fxLayout=\"column\" fxLayoutGap=\"5px\">\n <div fxFlex=\"100\" fxLayout=\"row\" class=\"dialog_header\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" style=\"width:50%\">\n {{ title | translate }}\n </div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <mat-dialog-content style=\"font-size:12px\">\n <br /><br />\n <FHUpload\n [enabled]=\"enabled\"\n #upc\n [show_descri]=\"show_descri\"\n [sovrascrivi_path]=\"sovrascrivi_path\"\n
|
|
3249
|
+
selector: 'fh_win_upload',
|
|
3250
|
+
template: "\n <div fxLayout=\"column\" fxLayoutGap=\"5px\">\n <div fxFlex=\"100\" fxLayout=\"row\" class=\"dialog_header\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" style=\"width:50%\">\n {{ title | translate }}\n </div>\n <div style=\"width:50%\" fxLayout=\"row\" fxLayoutAlign=\"end start\">\n <img\n src=\"assets/icons/x.png\"\n style=\"cursor: pointer;\"\n (click)=\"close()\"\n />\n </div>\n </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\" />\n\n <mat-dialog-content style=\"font-size:12px\">\n <br /><br />\n <FHUpload\n [enabled]=\"enabled\"\n #upc\n (upload_ended)=\"upload_ended()\"\n [show_descri]=\"show_descri\"\n [sovrascrivi_path]=\"sovrascrivi_path\"\n ></FHUpload>\n </mat-dialog-content>\n <br /><br />\n <div style=\"width:100%;text-align:center;\" [hidden]=\"close_auto\">\n <button\n mat-flat-button\n style=\"background-color: #F5F5F5\"\n (click)=\"close()\"\n >\n {{ 'CHIUDI' | translate }}\n </button>\n </div>\n </div>\n ",
|
|
3235
3251
|
styles: [""]
|
|
3236
3252
|
},] }
|
|
3237
3253
|
];
|
|
@@ -5158,9 +5174,7 @@
|
|
|
5158
5174
|
p.sql = 'DELETE_ALLEGATO';
|
|
5159
5175
|
p.types = ['int', 'string'];
|
|
5160
5176
|
p.values = [_this.id, _this.app_s.user];
|
|
5161
|
-
var ok_op = false;
|
|
5162
5177
|
_this._dataService.doQuery(p).subscribe(function (data) {
|
|
5163
|
-
var ok_op = false;
|
|
5164
5178
|
if (data != null)
|
|
5165
5179
|
if (data.result_msg == 'OK') {
|
|
5166
5180
|
// this.arr_g = data.result_data;
|
|
@@ -5169,9 +5183,8 @@
|
|
|
5169
5183
|
timeOut: 1000,
|
|
5170
5184
|
progressBar: true,
|
|
5171
5185
|
});
|
|
5172
|
-
ok_op = true;
|
|
5173
5186
|
}
|
|
5174
|
-
}
|
|
5187
|
+
});
|
|
5175
5188
|
}
|
|
5176
5189
|
});
|
|
5177
5190
|
};
|