@churchillliving/se-ui-toolkit 6.53.452 → 6.53.454
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 +8 -10
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/churchillliving-se-ui-toolkit.metadata.json +1 -1
- package/esm2015/lib/components/base/file-upload/file-upload.component.js +4 -7
- package/esm2015/lib/models/form.model.js +2 -2
- package/esm2015/lib/services/card.service.js +3 -2
- package/fesm2015/churchillliving-se-ui-toolkit.js +6 -8
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/models/form.model.d.ts +1 -1
- package/package.json +1 -1
|
@@ -996,7 +996,7 @@
|
|
|
996
996
|
exports.ESystemConfig = void 0;
|
|
997
997
|
(function (ESystemConfig) {
|
|
998
998
|
ESystemConfig["FURNITUREITEMPICTUREPATH"] = "FurnitureItemPicutrePath";
|
|
999
|
-
ESystemConfig["FILEROOTPATH"] = "
|
|
999
|
+
ESystemConfig["FILEROOTPATH"] = "FileRootPath";
|
|
1000
1000
|
ESystemConfig["EMPLOYEEPICTUREPATH"] = "EmployeePicutrePath";
|
|
1001
1001
|
ESystemConfig["REPORTPATH"] = "ReportPath";
|
|
1002
1002
|
ESystemConfig["SUITEPICTUREPATH"] = "SuitePicutrePath";
|
|
@@ -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);
|
|
@@ -10509,8 +10506,9 @@
|
|
|
10509
10506
|
var _a;
|
|
10510
10507
|
if (response) {
|
|
10511
10508
|
response.forEach(function (res) {
|
|
10509
|
+
var _a;
|
|
10512
10510
|
if (res.fileExtension !== ".mrt" && containerName && uploadImgBaseUrlDev) {
|
|
10513
|
-
res['blobFileUrl'] = uploadImgBaseUrlDev + '/' + containerName + '/' + res.actualFileName;
|
|
10511
|
+
res['blobFileUrl'] = (_a = (uploadImgBaseUrlDev + '/' + containerName + '/' + res.actualFileName)) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
10514
10512
|
}
|
|
10515
10513
|
});
|
|
10516
10514
|
(_a = dynamicForm.formSections) === null || _a === void 0 ? void 0 : _a.forEach(function (x) {
|