@churchillliving/se-ui-toolkit 6.53.452 → 6.53.453
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/churchillliving-se-ui-toolkit.umd.js +5 -8
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/file-upload/file-upload.component.js +4 -7
- package/fesm2015/churchillliving-se-ui-toolkit.js +3 -6
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -8981,7 +8981,7 @@
|
|
|
8981
8981
|
FileUploadComponent.prototype.ngOnInit = function () { };
|
|
8982
8982
|
FileUploadComponent.prototype.uploadFile = function (files) {
|
|
8983
8983
|
var _this = this;
|
|
8984
|
-
var _a, _b, _c, _d, _e, _f
|
|
8984
|
+
var _a, _b, _c, _d, _e, _f;
|
|
8985
8985
|
var fileData = new FormData();
|
|
8986
8986
|
var chooseFile = false;
|
|
8987
8987
|
for (var i = 0; i < files.length; i++) {
|
|
@@ -8994,11 +8994,8 @@
|
|
|
8994
8994
|
if (this.fields && ((_a = this.fields.uniqueKey) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
8995
8995
|
fileData.append('uniqueKey', (_b = this.fields) === null || _b === void 0 ? void 0 : _b.uniqueKey);
|
|
8996
8996
|
}
|
|
8997
|
-
else if (this.fields && ((_c = this.fields.
|
|
8998
|
-
fileData.append('
|
|
8999
|
-
}
|
|
9000
|
-
else if (this.fields && ((_f = this.fields.azureContainer) === null || _f === void 0 ? void 0 : _f.length) > 0 && ((_g = this.fields) === null || _g === void 0 ? void 0 : _g.SetfileTypes) === exports.ESelectFileType.MRT) {
|
|
9001
|
-
fileData.append('azureContainer', (_h = this.fields) === null || _h === void 0 ? void 0 : _h.azureContainer);
|
|
8997
|
+
else if (this.fields && (((_c = this.fields.azureContainer) === null || _c === void 0 ? void 0 : _c.length) > 0 || ((_d = this.fields.pathSystemConfig) === null || _d === void 0 ? void 0 : _d.length) > 0)) {
|
|
8998
|
+
fileData.append('azureContainer', ((_e = this.fields) === null || _e === void 0 ? void 0 : _e.SetfileTypes) === exports.ESelectFileType.MRT ? (_f = this.fields) === null || _f === void 0 ? void 0 : _f.azureContainer : this.fields.pathSystemConfig);
|
|
9002
8999
|
}
|
|
9003
9000
|
this.requestService.get('/Upload', fileData).subscribe(function (data) {
|
|
9004
9001
|
var _a;
|
|
@@ -9010,8 +9007,8 @@
|
|
|
9010
9007
|
}
|
|
9011
9008
|
_this.fileUrl.emit(data.results);
|
|
9012
9009
|
}
|
|
9013
|
-
}, function (
|
|
9014
|
-
var error =
|
|
9010
|
+
}, function (_g) {
|
|
9011
|
+
var error = _g.error;
|
|
9015
9012
|
_this.alertService.apiError(error);
|
|
9016
9013
|
if (_this.fields.onReturn) {
|
|
9017
9014
|
_this.fields.onReturn(error);
|