@apexcura/ui-components 0.0.13-Beta63 → 0.0.13-Beta65

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/dist/index.js CHANGED
@@ -795,7 +795,7 @@ var UploadElement = (props) => {
795
795
  if (!fileList || fileList.length === 0) return;
796
796
  const existingFiles = Array.isArray(props.value) ? props.value : [];
797
797
  const newFileList = [...existingFiles];
798
- console.log("newFileList-------------", newFileList);
798
+ console.log(newFileList);
799
799
  for (let i = 0; i < fileList.length; i++) {
800
800
  const selectedFile = fileList[i];
801
801
  const isCorrectFile = ["image/png", "image/jpg", "image/jpeg"].includes(
@@ -832,14 +832,6 @@ var UploadElement = (props) => {
832
832
  value: newFileList
833
833
  });
834
834
  };
835
- const uploadChange2 = ({ file, fileList }) => {
836
- const existingFiles = Array.isArray(props.value) ? props.value : [];
837
- const newFileList = [...existingFiles, ...fileList];
838
- props.onChange && props.onChange({
839
- name: props.name,
840
- value: newFileList
841
- });
842
- };
843
835
  const handlePreview = async (file) => {
844
836
  if (!file.url && !file.preview) {
845
837
  file.preview = await URL.createObjectURL(file.originFileObj);
@@ -876,7 +868,6 @@ var UploadElement = (props) => {
876
868
  maxCount: props.max_count,
877
869
  multiple: true,
878
870
  fileList: Array.isArray(props.value) ? props.value : [],
879
- onChange: uploadChange2,
880
871
  onPreview: handlePreview,
881
872
  showUploadList: true
882
873
  },
package/dist/index.mjs CHANGED
@@ -739,7 +739,7 @@ var UploadElement = (props) => {
739
739
  if (!fileList || fileList.length === 0) return;
740
740
  const existingFiles = Array.isArray(props.value) ? props.value : [];
741
741
  const newFileList = [...existingFiles];
742
- console.log("newFileList-------------", newFileList);
742
+ console.log(newFileList);
743
743
  for (let i = 0; i < fileList.length; i++) {
744
744
  const selectedFile = fileList[i];
745
745
  const isCorrectFile = ["image/png", "image/jpg", "image/jpeg"].includes(
@@ -776,14 +776,6 @@ var UploadElement = (props) => {
776
776
  value: newFileList
777
777
  });
778
778
  };
779
- const uploadChange2 = ({ file, fileList }) => {
780
- const existingFiles = Array.isArray(props.value) ? props.value : [];
781
- const newFileList = [...existingFiles, ...fileList];
782
- props.onChange && props.onChange({
783
- name: props.name,
784
- value: newFileList
785
- });
786
- };
787
779
  const handlePreview = async (file) => {
788
780
  if (!file.url && !file.preview) {
789
781
  file.preview = await URL.createObjectURL(file.originFileObj);
@@ -820,7 +812,6 @@ var UploadElement = (props) => {
820
812
  maxCount: props.max_count,
821
813
  multiple: true,
822
814
  fileList: Array.isArray(props.value) ? props.value : [],
823
- onChange: uploadChange2,
824
815
  onPreview: handlePreview,
825
816
  showUploadList: true
826
817
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.13-Beta63",
3
+ "version": "0.0.13-Beta65",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",