kui-crm 0.0.187 → 0.0.189

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/cjs/index.js CHANGED
@@ -777,16 +777,27 @@ var uploadNewFile = function (loader, document) { return __awaiter(void 0, void
777
777
  }
778
778
  });
779
779
  }); };
780
- var uploadFiles = function (loader, files) { return __awaiter(void 0, void 0, void 0, function () {
780
+ var uploadFilesWithoutFilter = function (loader, files) { return __awaiter(void 0, void 0, void 0, function () {
781
781
  var res;
782
782
  return __generator(this, function (_a) {
783
783
  switch (_a.label) {
784
784
  case 0: return [4 /*yield*/, Promise.allSettled(files.map(function (file) { return uploadNewFile(loader, file); }))];
785
785
  case 1:
786
786
  res = _a.sent();
787
- return [2 /*return*/, res
788
- .map(function (result) { return (result.status === "fulfilled" ? result.value : null); })
789
- .filter(function (result) { return result; })];
787
+ return [2 /*return*/, res.map(function (result) {
788
+ return result.status === "fulfilled" ? result.value : null;
789
+ })];
790
+ }
791
+ });
792
+ }); };
793
+ var uploadFiles = function (loader, files) { return __awaiter(void 0, void 0, void 0, function () {
794
+ var res;
795
+ return __generator(this, function (_a) {
796
+ switch (_a.label) {
797
+ case 0: return [4 /*yield*/, uploadFilesWithoutFilter(loader, files)];
798
+ case 1:
799
+ res = _a.sent();
800
+ return [2 /*return*/, res.filter(function (result) { return result; })];
790
801
  }
791
802
  });
792
803
  }); };
@@ -1929,7 +1940,7 @@ function InputFileWithVisibility(props) {
1929
1940
  if (!mounted) {
1930
1941
  return null;
1931
1942
  }
1932
- return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(kuiComplex.InputFile, __assign({ form: form, name: "".concat(name, ".file"), disabled: disabled }, inputProps)), file && (jsxRuntime.jsx(kuiBasic.Box, __assign({ mt: 2 }, { children: jsxRuntime.jsx(kuiComplex.CheckboxGroupWithTitle, { title: "Visibility", options: visibilityOptions, form: form, disabled: disabled }) })))] }));
1943
+ return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(kuiComplex.InputFile, __assign({ form: form, parentName: name, name: "".concat(name, ".file"), disabled: disabled }, inputProps)), file && (jsxRuntime.jsx(kuiBasic.Box, __assign({ mt: 2 }, { children: jsxRuntime.jsx(kuiComplex.CheckboxGroupWithTitle, { title: "Visibility", options: visibilityOptions, form: form, disabled: disabled }) })))] }));
1933
1944
  }
1934
1945
 
1935
1946
  function InputByType(_a) {
@@ -4231,6 +4242,7 @@ exports.uploadDocument = uploadDocument;
4231
4242
  exports.uploadDocuments = uploadDocuments;
4232
4243
  exports.uploadFile = uploadFile;
4233
4244
  exports.uploadFiles = uploadFiles;
4245
+ exports.uploadFilesWithoutFilter = uploadFilesWithoutFilter;
4234
4246
  exports.uploadImage = uploadImage;
4235
4247
  exports.uploadImages = uploadImages;
4236
4248
  exports.uploadNewFile = uploadNewFile;