iglooform 2.4.27 → 2.4.28

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.
@@ -63,7 +63,7 @@ var useComponent = function useComponent(config) {
63
63
  return {
64
64
  Component: Component,
65
65
  formItemProps: formItemProps,
66
- withoutForm: type === 'Divider' || Boolean(config.withoutForm)
66
+ withoutForm: type === 'Divider' || Boolean(config.withoutForm) || !config.name
67
67
  };
68
68
  }, [config.type]);
69
69
  };
@@ -4,7 +4,7 @@
4
4
  "1 file in progress...": "1 data dalam proses",
5
5
  "Accept": "Menerima",
6
6
  "Action": "Beroperasi",
7
- "Add": "",
7
+ "Add": "Menambahkan",
8
8
  "Apply": "Terapkan",
9
9
  "Apply Columns": "Terapkan Kolom",
10
10
  "Cancel": "Batal",
@@ -38,7 +38,7 @@
38
38
  "OK": "oke",
39
39
  "Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "Jika Anda puas dengan apa yang telah disampaikan, dan Anda telah memeriksa deklarasi tersebut, silakan lanjutkan dan ajukan klaim Anda.",
40
40
  "Optional": "Pilihan",
41
- "Other Reason": "",
41
+ "Other Reason": "Alasan lain",
42
42
  "Please enter a valid date.": "Silakan tulis tanggal valid",
43
43
  "Please enter a valid time.": "Harap masukkan waktu yang valid",
44
44
  "Please select": "Silahkan pilih",
@@ -49,7 +49,7 @@
49
49
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "Perkembangan terkait proses belum dapat diperbarui saat ini. Jangan khawatir! Semua data Anda masih dalam proses .",
50
50
  "Quantity of files should be less than {limit}": "Jumlah dokumen tidak bisa lebih dari {limit}",
51
51
  "Reject": "Menolak",
52
- "Remove": "",
52
+ "Remove": "Menghapus",
53
53
  "Resend OTP": "Kirim ulang OTP",
54
54
  "Resend in": "Kirim ulang",
55
55
  "Reset All Filters": "Setel ulang filter",
@@ -4,7 +4,7 @@
4
4
  "1 file in progress...": "กำลังดำเนินการ 1 ไฟล์...",
5
5
  "Accept": "ยอมรับ",
6
6
  "Action": "ดำเนินงาน",
7
- "Add": "",
7
+ "Add": "เพิ่ม",
8
8
  "Apply": "ใช้",
9
9
  "Apply Columns": "ใช้คอลัมน์",
10
10
  "Cancel": "ยกเลิก",
@@ -38,7 +38,7 @@
38
38
  "OK": "ตกลง",
39
39
  "Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "หากตรวจสอบแล้วและต้องการยืนยันข้อมูลข้างต้น กรุณากดดำเนินการต่อและยืนยันการเคลมของคุณ",
40
40
  "Optional": "ไม่จำเป็น",
41
- "Other Reason": "",
41
+ "Other Reason": "เหตุผลอื่น",
42
42
  "Please enter a valid date.": "กรุณากรอกวันที่ถูกต้อง",
43
43
  "Please enter a valid time.": "กรุณากรอกเวลาที่ถูกต้อง",
44
44
  "Please select": "โปรดเลือก",
@@ -49,7 +49,7 @@
49
49
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "ไม่สามารถอัปเดตการประมวลผลได้ในขณะนี้ ไม่ต้องกังวล! ไฟล์ของคุณทั้งหมดกำลังอยู่ระหว่างดำเนินการ",
50
50
  "Quantity of files should be less than {limit}": "จำนวนไฟล์ควรน้อยกว่า {limit}",
51
51
  "Reject": "ปฏิเสธ",
52
- "Remove": "",
52
+ "Remove": "ลบ",
53
53
  "Resend OTP": "ขอ OTP อีกครั้ง",
54
54
  "Resend in": "ส่งอีกครั้งใน",
55
55
  "Reset All Filters": "รีเซทตัวกรอง",
@@ -4,7 +4,7 @@
4
4
  "1 file in progress...": "1 tệp đang được xử lý",
5
5
  "Accept": "Chấp nhận",
6
6
  "Action": "Chạy",
7
- "Add": "",
7
+ "Add": "Thêm vào",
8
8
  "Apply": "Áp dụng",
9
9
  "Apply Columns": "Áp dụng Cột",
10
10
  "Cancel": "Hủy",
@@ -38,7 +38,7 @@
38
38
  "OK": "Vâng",
39
39
  "Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "Vui lòng xác nhận và gửi yêu cầu bồi thường.",
40
40
  "Optional": "Không bắt buộc",
41
- "Other Reason": "",
41
+ "Other Reason": "Lý do khác",
42
42
  "Please enter a valid date.": "Vui lòng nhập đúng ngày:",
43
43
  "Please enter a valid time.": "Vui lòng nhập thời gian hợp lệ.",
44
44
  "Please select": "Xin hãy lựa chọn",
@@ -49,7 +49,7 @@
49
49
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "Dữ liệu chưa được cập nhật và đang trong quá trình xử lý.",
50
50
  "Quantity of files should be less than {limit}": "Số lượng tệp tin không vượt quá {limit}",
51
51
  "Reject": "Từ chối",
52
- "Remove": "",
52
+ "Remove": "tẩy",
53
53
  "Resend OTP": "Gửi lại OTP",
54
54
  "Resend in": "Gửi lại trong",
55
55
  "Reset All Filters": "Xóa lọc",
@@ -4,7 +4,7 @@
4
4
  "1 file in progress...": "1个文件正在处理...",
5
5
  "Accept": "接受",
6
6
  "Action": "操作",
7
- "Add": "",
7
+ "Add": "增加",
8
8
  "Apply": "应用",
9
9
  "Apply Columns": "应用",
10
10
  "Cancel": "取消",
@@ -38,7 +38,7 @@
38
38
  "OK": "确定",
39
39
  "Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "如您对上述填写内容满意,在勾选以下申明后,请继续提交您的理赔申请。",
40
40
  "Optional": "可选",
41
- "Other Reason": "",
41
+ "Other Reason": "其他原因",
42
42
  "Please enter a valid date.": "请输入一个有效的日期。",
43
43
  "Please enter a valid time.": "请输入一个有效的时间。",
44
44
  "Please select": "请选择",
@@ -49,7 +49,7 @@
49
49
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "文件解析中,请耐心等待。",
50
50
  "Quantity of files should be less than {limit}": "文件数量不能超过{limit}",
51
51
  "Reject": "拒绝",
52
- "Remove": "",
52
+ "Remove": "移除",
53
53
  "Resend OTP": "重新发送OTP",
54
54
  "Resend in": "重新发送",
55
55
  "Reset All Filters": "重置所有过滤条件",
@@ -235,14 +235,10 @@ var UploadPhoto = function UploadPhoto(props) {
235
235
  };
236
236
 
237
237
  useEffect(function () {
238
- if (Array.isArray(value) && value.some(function (url) {
239
- return typeof url === 'string' && !files.find(function (file) {
240
- return file.url === url;
241
- });
242
- })) {
238
+ if (Array.isArray(value)) {
243
239
  mapFilesFromValue(value);
244
240
  }
245
- }, [value, files]);
241
+ }, []);
246
242
  var uploadId = useMemo(function () {
247
243
  return "igloo-upload-photo-input-".concat(Math.random());
248
244
  }, []);
@@ -92,7 +92,7 @@ var useComponent = function useComponent(config) {
92
92
  return {
93
93
  Component: Component,
94
94
  formItemProps: formItemProps,
95
- withoutForm: type === 'Divider' || Boolean(config.withoutForm)
95
+ withoutForm: type === 'Divider' || Boolean(config.withoutForm) || !config.name
96
96
  };
97
97
  }, [config.type]);
98
98
  };
@@ -4,7 +4,7 @@
4
4
  "1 file in progress...": "1 data dalam proses",
5
5
  "Accept": "Menerima",
6
6
  "Action": "Beroperasi",
7
- "Add": "",
7
+ "Add": "Menambahkan",
8
8
  "Apply": "Terapkan",
9
9
  "Apply Columns": "Terapkan Kolom",
10
10
  "Cancel": "Batal",
@@ -38,7 +38,7 @@
38
38
  "OK": "oke",
39
39
  "Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "Jika Anda puas dengan apa yang telah disampaikan, dan Anda telah memeriksa deklarasi tersebut, silakan lanjutkan dan ajukan klaim Anda.",
40
40
  "Optional": "Pilihan",
41
- "Other Reason": "",
41
+ "Other Reason": "Alasan lain",
42
42
  "Please enter a valid date.": "Silakan tulis tanggal valid",
43
43
  "Please enter a valid time.": "Harap masukkan waktu yang valid",
44
44
  "Please select": "Silahkan pilih",
@@ -49,7 +49,7 @@
49
49
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "Perkembangan terkait proses belum dapat diperbarui saat ini. Jangan khawatir! Semua data Anda masih dalam proses .",
50
50
  "Quantity of files should be less than {limit}": "Jumlah dokumen tidak bisa lebih dari {limit}",
51
51
  "Reject": "Menolak",
52
- "Remove": "",
52
+ "Remove": "Menghapus",
53
53
  "Resend OTP": "Kirim ulang OTP",
54
54
  "Resend in": "Kirim ulang",
55
55
  "Reset All Filters": "Setel ulang filter",
@@ -4,7 +4,7 @@
4
4
  "1 file in progress...": "กำลังดำเนินการ 1 ไฟล์...",
5
5
  "Accept": "ยอมรับ",
6
6
  "Action": "ดำเนินงาน",
7
- "Add": "",
7
+ "Add": "เพิ่ม",
8
8
  "Apply": "ใช้",
9
9
  "Apply Columns": "ใช้คอลัมน์",
10
10
  "Cancel": "ยกเลิก",
@@ -38,7 +38,7 @@
38
38
  "OK": "ตกลง",
39
39
  "Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "หากตรวจสอบแล้วและต้องการยืนยันข้อมูลข้างต้น กรุณากดดำเนินการต่อและยืนยันการเคลมของคุณ",
40
40
  "Optional": "ไม่จำเป็น",
41
- "Other Reason": "",
41
+ "Other Reason": "เหตุผลอื่น",
42
42
  "Please enter a valid date.": "กรุณากรอกวันที่ถูกต้อง",
43
43
  "Please enter a valid time.": "กรุณากรอกเวลาที่ถูกต้อง",
44
44
  "Please select": "โปรดเลือก",
@@ -49,7 +49,7 @@
49
49
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "ไม่สามารถอัปเดตการประมวลผลได้ในขณะนี้ ไม่ต้องกังวล! ไฟล์ของคุณทั้งหมดกำลังอยู่ระหว่างดำเนินการ",
50
50
  "Quantity of files should be less than {limit}": "จำนวนไฟล์ควรน้อยกว่า {limit}",
51
51
  "Reject": "ปฏิเสธ",
52
- "Remove": "",
52
+ "Remove": "ลบ",
53
53
  "Resend OTP": "ขอ OTP อีกครั้ง",
54
54
  "Resend in": "ส่งอีกครั้งใน",
55
55
  "Reset All Filters": "รีเซทตัวกรอง",
@@ -4,7 +4,7 @@
4
4
  "1 file in progress...": "1 tệp đang được xử lý",
5
5
  "Accept": "Chấp nhận",
6
6
  "Action": "Chạy",
7
- "Add": "",
7
+ "Add": "Thêm vào",
8
8
  "Apply": "Áp dụng",
9
9
  "Apply Columns": "Áp dụng Cột",
10
10
  "Cancel": "Hủy",
@@ -38,7 +38,7 @@
38
38
  "OK": "Vâng",
39
39
  "Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "Vui lòng xác nhận và gửi yêu cầu bồi thường.",
40
40
  "Optional": "Không bắt buộc",
41
- "Other Reason": "",
41
+ "Other Reason": "Lý do khác",
42
42
  "Please enter a valid date.": "Vui lòng nhập đúng ngày:",
43
43
  "Please enter a valid time.": "Vui lòng nhập thời gian hợp lệ.",
44
44
  "Please select": "Xin hãy lựa chọn",
@@ -49,7 +49,7 @@
49
49
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "Dữ liệu chưa được cập nhật và đang trong quá trình xử lý.",
50
50
  "Quantity of files should be less than {limit}": "Số lượng tệp tin không vượt quá {limit}",
51
51
  "Reject": "Từ chối",
52
- "Remove": "",
52
+ "Remove": "tẩy",
53
53
  "Resend OTP": "Gửi lại OTP",
54
54
  "Resend in": "Gửi lại trong",
55
55
  "Reset All Filters": "Xóa lọc",
@@ -4,7 +4,7 @@
4
4
  "1 file in progress...": "1个文件正在处理...",
5
5
  "Accept": "接受",
6
6
  "Action": "操作",
7
- "Add": "",
7
+ "Add": "增加",
8
8
  "Apply": "应用",
9
9
  "Apply Columns": "应用",
10
10
  "Cancel": "取消",
@@ -38,7 +38,7 @@
38
38
  "OK": "确定",
39
39
  "Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "如您对上述填写内容满意,在勾选以下申明后,请继续提交您的理赔申请。",
40
40
  "Optional": "可选",
41
- "Other Reason": "",
41
+ "Other Reason": "其他原因",
42
42
  "Please enter a valid date.": "请输入一个有效的日期。",
43
43
  "Please enter a valid time.": "请输入一个有效的时间。",
44
44
  "Please select": "请选择",
@@ -49,7 +49,7 @@
49
49
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "文件解析中,请耐心等待。",
50
50
  "Quantity of files should be less than {limit}": "文件数量不能超过{limit}",
51
51
  "Reject": "拒绝",
52
- "Remove": "",
52
+ "Remove": "移除",
53
53
  "Resend OTP": "重新发送OTP",
54
54
  "Resend in": "重新发送",
55
55
  "Reset All Filters": "重置所有过滤条件",
@@ -268,14 +268,10 @@ var UploadPhoto = function UploadPhoto(props) {
268
268
  };
269
269
 
270
270
  (0, _react.useEffect)(function () {
271
- if (Array.isArray(value) && value.some(function (url) {
272
- return typeof url === 'string' && !files.find(function (file) {
273
- return file.url === url;
274
- });
275
- })) {
271
+ if (Array.isArray(value)) {
276
272
  mapFilesFromValue(value);
277
273
  }
278
- }, [value, files]);
274
+ }, []);
279
275
  var uploadId = (0, _react.useMemo)(function () {
280
276
  return "igloo-upload-photo-input-".concat(Math.random());
281
277
  }, []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iglooform",
3
- "version": "2.4.27",
3
+ "version": "2.4.28",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "build-dev": "dumi build",