@fluxhub/fluxhub-lib 9.0.138 → 9.0.140
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 +28 -23
- 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_s3.js +21 -21
- package/esm2015/lib/controls/fhuploadpanel_s3.js +9 -2
- package/esm5/lib/controls/fhupload_s3.js +21 -22
- package/esm5/lib/controls/fhuploadpanel_s3.js +9 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +28 -21
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +28 -23
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhuploadpanel_s3.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1814,18 +1814,18 @@ let FHUploadS3Component = class FHUploadS3Component {
|
|
|
1814
1814
|
this.tipo = "";
|
|
1815
1815
|
this.b_ini = false;
|
|
1816
1816
|
this.uploader = new FileUploader({
|
|
1817
|
-
url: this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT +
|
|
1817
|
+
url: this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT + "_new",
|
|
1818
1818
|
maxFileSize: 500 * 1024 * 1024,
|
|
1819
1819
|
});
|
|
1820
1820
|
this.id = null;
|
|
1821
|
-
this.p_cod_doc =
|
|
1822
|
-
this.p_section =
|
|
1823
|
-
this.p_system_type =
|
|
1821
|
+
this.p_cod_doc = "";
|
|
1822
|
+
this.p_section = "";
|
|
1823
|
+
this.p_system_type = "";
|
|
1824
1824
|
this.username = this.app_s.user;
|
|
1825
1825
|
this.uploader.onBeforeUploadItem = (item) => {
|
|
1826
1826
|
item.withCredentials = false;
|
|
1827
1827
|
};
|
|
1828
|
-
console.log(
|
|
1828
|
+
console.log("uploader ", this.app_s.API_ENDPOINT + this.app_s.UPLOAD_ENDPOINT + "_new");
|
|
1829
1829
|
this.uploader.onCompleteItem = (item, response, status, header) => {
|
|
1830
1830
|
if (status === 200) {
|
|
1831
1831
|
this.descrizione = "";
|
|
@@ -1976,20 +1976,18 @@ let FHUploadS3Component = class FHUploadS3Component {
|
|
|
1976
1976
|
form.append("single", this.single);
|
|
1977
1977
|
form.append("username", this.username);
|
|
1978
1978
|
form.append("system_type", this.p_system_type);
|
|
1979
|
-
form.append(
|
|
1980
|
-
form.append(
|
|
1981
|
-
form.append(
|
|
1982
|
-
form.append(
|
|
1983
|
-
form.append(
|
|
1984
|
-
form.append(
|
|
1985
|
-
|
|
1986
|
-
form.append(
|
|
1987
|
-
form.append(
|
|
1988
|
-
form.append(
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
// else form.append("tipo", this.tipo);
|
|
1992
|
-
form.append("tipo", '');
|
|
1979
|
+
form.append("uiid", this.uti.newGuid());
|
|
1980
|
+
form.append("doc_number", this.p_cod_doc);
|
|
1981
|
+
form.append("repo_uiid", "S3");
|
|
1982
|
+
form.append("parent_doc_type", this.App);
|
|
1983
|
+
form.append("parent_doc_rif", this.p_cod_doc);
|
|
1984
|
+
form.append("parent_doc_uiid", this.K);
|
|
1985
|
+
console.log('onBuildItemForm!!!!!!!!!!!!!!!!!!!!!this.p_section ', this.p_section);
|
|
1986
|
+
form.append("parent_doc_section", this.p_section);
|
|
1987
|
+
form.append("version", 1);
|
|
1988
|
+
form.append("status", "PUBLISHED");
|
|
1989
|
+
form.append("p_owner", this.app_s.user);
|
|
1990
|
+
form.append("tipo", "");
|
|
1993
1991
|
form.append("local_path", this.app_s.LOCAL_PATH);
|
|
1994
1992
|
if (this.programma_da_eseguire != "")
|
|
1995
1993
|
form.append("p1", this.programma_da_eseguire);
|
|
@@ -2129,6 +2127,7 @@ FHUploadS3Component = __decorate([
|
|
|
2129
2127
|
Component({
|
|
2130
2128
|
selector: "FHUploadS3",
|
|
2131
2129
|
template: `
|
|
2130
|
+
|
|
2132
2131
|
<div *ngIf="loading" fxLayout="row">
|
|
2133
2132
|
WAIT
|
|
2134
2133
|
</div>
|
|
@@ -2229,7 +2228,8 @@ FHUploadS3Component = __decorate([
|
|
|
2229
2228
|
__metadata("design:paramtypes", [QueryService,
|
|
2230
2229
|
ToastrService,
|
|
2231
2230
|
MatDialog,
|
|
2232
|
-
AppService,
|
|
2231
|
+
AppService,
|
|
2232
|
+
UtilityService])
|
|
2233
2233
|
], FHUploadS3Component);
|
|
2234
2234
|
|
|
2235
2235
|
class FSInput {
|
|
@@ -2672,6 +2672,12 @@ let FHUploadPanelS3Component = class FHUploadPanelS3Component {
|
|
|
2672
2672
|
});
|
|
2673
2673
|
}
|
|
2674
2674
|
ngAfterViewInit() {
|
|
2675
|
+
}
|
|
2676
|
+
init_upload() {
|
|
2677
|
+
if (this.upc == null) {
|
|
2678
|
+
setTimeout(() => { this.init_upload(); }, 500);
|
|
2679
|
+
return;
|
|
2680
|
+
}
|
|
2675
2681
|
setTimeout(() => {
|
|
2676
2682
|
setTimeout(() => {
|
|
2677
2683
|
this.b_initt = true;
|
|
@@ -2694,7 +2700,7 @@ let FHUploadPanelS3Component = class FHUploadPanelS3Component {
|
|
|
2694
2700
|
this.m_p_section = p_section;
|
|
2695
2701
|
this.m_p_system_type = p_system_type;
|
|
2696
2702
|
this.m_programma_da_eseguire = programma_da_eseguire;
|
|
2697
|
-
this.
|
|
2703
|
+
this.init_upload();
|
|
2698
2704
|
}
|
|
2699
2705
|
ref_allegato() {
|
|
2700
2706
|
if (this.App == null)
|
|
@@ -2869,6 +2875,7 @@ FHUploadPanelS3Component = __decorate([
|
|
|
2869
2875
|
<h3 *ngIf="label != ''">{{ label }}</h3>
|
|
2870
2876
|
<div fxLayout="column">
|
|
2871
2877
|
<div [hidden]="!enabled">
|
|
2878
|
+
|
|
2872
2879
|
<FHUploadS3
|
|
2873
2880
|
[single]="b_False"
|
|
2874
2881
|
[label_attendere]="
|