iglooform 2.5.9 → 2.5.12

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.
Files changed (59) hide show
  1. package/es/form/element/index.js +8 -1
  2. package/es/form/elements.js +2 -1
  3. package/es/form/hstep/style/index.less +1 -6
  4. package/es/form/hsteps/index.js +13 -2
  5. package/es/form/hsteps/style/index.less +24 -2
  6. package/es/form/section/style/index.less +4 -0
  7. package/es/free-form/element/index.js +8 -1
  8. package/es/index.d.ts +1 -1
  9. package/es/index.js +1 -1
  10. package/es/input/index.d.ts +1 -0
  11. package/es/input/index.js +1 -0
  12. package/es/input/input-id.d.ts +6 -0
  13. package/es/input/input-id.js +112 -0
  14. package/es/input/input-number.js +71 -1
  15. package/es/input/phone-number.js +80 -20
  16. package/es/locale/en-US/messages.json +5 -0
  17. package/es/locale/format-message.js +2 -2
  18. package/es/locale/id-ID/messages.json +14 -9
  19. package/es/locale/locale-provider.js +2 -2
  20. package/es/locale/th-TH/messages.json +14 -9
  21. package/es/locale/vi-VN/messages.json +14 -9
  22. package/es/locale/zh-CN/messages.json +14 -9
  23. package/es/locale/zh-TW/messages.json +5 -0
  24. package/es/select/select.js +4 -4
  25. package/es/types.d.ts +4 -0
  26. package/es/upload/index.js +10 -8
  27. package/es/upload/style/index.less +2 -0
  28. package/es/upload-photo/index.d.ts +1 -0
  29. package/es/upload-photo/index.js +4 -0
  30. package/lib/form/element/index.js +8 -1
  31. package/lib/form/elements.js +1 -0
  32. package/lib/form/hstep/style/index.less +1 -6
  33. package/lib/form/hsteps/index.js +13 -2
  34. package/lib/form/hsteps/style/index.less +24 -2
  35. package/lib/form/section/style/index.less +4 -0
  36. package/lib/free-form/element/index.js +8 -1
  37. package/lib/index.d.ts +1 -1
  38. package/lib/index.js +7 -0
  39. package/lib/input/index.d.ts +1 -0
  40. package/lib/input/index.js +8 -0
  41. package/lib/input/input-id.d.ts +6 -0
  42. package/lib/input/input-id.js +127 -0
  43. package/lib/input/input-number.js +72 -1
  44. package/lib/input/phone-number.js +78 -18
  45. package/lib/locale/en-US/messages.json +5 -0
  46. package/lib/locale/format-message.js +2 -2
  47. package/lib/locale/id-ID/messages.json +14 -9
  48. package/lib/locale/locale-provider.js +2 -2
  49. package/lib/locale/th-TH/messages.json +14 -9
  50. package/lib/locale/vi-VN/messages.json +14 -9
  51. package/lib/locale/zh-CN/messages.json +14 -9
  52. package/lib/locale/zh-TW/messages.json +5 -0
  53. package/lib/select/select.js +4 -4
  54. package/lib/types.d.ts +4 -0
  55. package/lib/upload/index.js +10 -8
  56. package/lib/upload/style/index.less +2 -0
  57. package/lib/upload-photo/index.d.ts +1 -0
  58. package/lib/upload-photo/index.js +4 -0
  59. package/package.json +1 -1
@@ -26,9 +26,10 @@
26
26
  "Edit": "แก้ไข",
27
27
  "Error Report": "รายงานข้อผิดพลาด",
28
28
  "Filter": "กรอง",
29
- "I agree to the Igloo": "",
29
+ "I agree to the Igloo": "ฉันเห็นด้วยกับกระท่อมน้ำแข็ง",
30
30
  "I declare that the statements I have described above are true. I further declare that the loss occured was accidental, without planning or consensus with other parties.": "ข้าพเจ้ายืนยันว่าข้อความที่ข้าพเจ้าได้อธิบายข้างต้นนั้นเป็นความจริง และยืนยันว่าความเสียหายที่เกิดขึ้นนั้นเกิดจากอุบัติเหตุ ปราศจากการวางแผน หรือ การเห็นพ้องร่วมกันกับฝ่ายอื่น",
31
31
  "Import": "นำเข้า",
32
+ "Invalid KTP Number.": "",
32
33
  "It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.": "แนะนำให้เลือกจำนวนไม่เกิน {colMax} เพื่อให้แน่ใจว่ามองเห็นค่าเริ่มต้นของข้อมูลแต่ละคอลัมน์",
33
34
  "Last 7 Days": "เมื่อ 7 วันที่แล้ว",
34
35
  "Last Day": "วันสุดท้าย",
@@ -38,20 +39,20 @@
38
39
  "No preview for this file. Only support image, video or PDF file.": "ไม่มีการแสดงตัวอย่างสำหรับไฟล์นี้ รองรับเฉพาะรูปภาพ, วิดีโอ หรือ ไฟล์ PDF",
39
40
  "Numbers only, please omit \" \" or \"-\".": "ตัวเลขเท่านั้น โปรดเว้น \" \" หรือ \"-\"",
40
41
  "OK": "ตกลง",
41
- "Once you’re happy with the above, and you’ve checked the box below, please go ahead and submit your activation.": "",
42
+ "Once you’re happy with the above, and you’ve checked the box below, please go ahead and submit your activation.": "เมื่อคุณพอใจกับสิ่งด้านบนแล้ว และคุณได้ทำเครื่องหมายที่ช่องด้านล่างแล้ว โปรดดำเนินการต่อและส่งการเปิดใช้งานของคุณ",
42
43
  "Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "หากตรวจสอบแล้วและต้องการยืนยันข้อมูลข้างต้น กรุณากดดำเนินการต่อและยืนยันการเคลมของคุณ",
43
44
  "Optional": "ไม่จำเป็น",
44
45
  "Other Reason": "เหตุผลอื่น",
45
46
  "Please enter a valid date.": "กรุณากรอกวันที่ถูกต้อง",
46
47
  "Please enter a valid time.": "กรุณากรอกเวลาที่ถูกต้อง",
47
- "Please input a date after {date}": "",
48
- "Please input a date before {date}": "",
49
- "Please read and agree to Igloo Terms of Use and Privacy Policy": "",
48
+ "Please input a date after {date}": "กรุณาใส่วันที่หลัง {date}",
49
+ "Please input a date before {date}": "กรุณาใส่วันที่ก่อน {date}",
50
+ "Please read and agree to Igloo Terms of Use and Privacy Policy": "โปรดอ่านและยอมรับข้อกำหนดการใช้งานและนโยบายความเป็นส่วนตัวของ Igloo",
50
51
  "Please select": "โปรดเลือก",
51
52
  "Please select a file type": "โปรดเลือกประเภทไฟล์",
52
53
  "Please take a moment to review what you’ve told us above.": "กรุณาอ่านทบทวนข้อมูลที่คุณกรอกก่อนกดยืนยัน",
53
54
  "Previous": "ก่อนหน้านี้",
54
- "Privacy Policy": "",
55
+ "Privacy Policy": "นโยบายความเป็นส่วนตัว",
55
56
  "Processing": "กำลังประมวลผล",
56
57
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "ไม่สามารถอัปเดตการประมวลผลได้ในขณะนี้ ไม่ต้องกังวล! ไฟล์ของคุณทั้งหมดกำลังอยู่ระหว่างดำเนินการ",
57
58
  "Quantity of files should be less than {limit}": "จำนวนไฟล์ควรน้อยกว่า {limit}",
@@ -62,14 +63,14 @@
62
63
  "Reset All Filters": "รีเซทตัวกรอง",
63
64
  "Result": "ผลลัพธ์",
64
65
  "Result: Success {success_num}; Error {fail_num}": "ผลลัพธ์: สำเร็จ {success_num}; ข้อผิดพลาด {fail_num}",
65
- "Review and Submit": "",
66
+ "Review and Submit": "ตรวจสอบและส่ง",
66
67
  "Rows per page": "แถวต่อหน้า",
67
68
  "Search": "ค้นหา",
68
69
  "Searching...": "กำลังค้นหา...",
69
70
  "Select All": "เลือกทั้งหมด",
70
71
  "Send OTP": "ส่ง OTP",
71
72
  "Submit": "ส่ง/ยืนยัน",
72
- "Terms of Use": "",
73
+ "Terms of Use": "ข้อกำหนดการใช้งาน",
73
74
  "The file type is not supported.": "ประเภทไฟล์ไม่รองรับ",
74
75
  "There are no options available currently": "ไม่มีตัวเลือกในขณะนี้",
75
76
  "This Month": "เดือนนี้",
@@ -77,7 +78,7 @@
77
78
  "Uploading": "กำลังอัพโหลด",
78
79
  "We support CSV or XLSX files (less than 20M each).": "เรารองรับ CSV หรือ XLSX ไฟล์ (แต่ละไฟล์ขนาดไฟล์ต้องไม่เกิน 20M)",
79
80
  "Yes, Close": "ใช่, ปิด",
80
- "and": "",
81
+ "and": "และ",
81
82
  "browse": "ค้นหา",
82
83
  "or": "หรือ",
83
84
  "{beginIndex}-{endIndex} of {total}": "{beginIndex}-{endIndex} ของ {total}",
@@ -86,5 +87,9 @@
86
87
  "{count} files attached.": "{count} ไฟล์ที่แนบมา",
87
88
  "{currentStep} of {allSteps}": "{currentStep} จาก {allSteps}",
88
89
  "{doneNumber} files imported.": "{doneNumber} ไฟล์นำเข้าเสร็จแล้ว",
90
+ "{label} must be at least {minLength} digits.": "{label} ต้องมีอย่างน้อย {minLength} หลัก",
91
+ "{label} must be less than {maxLength} digits.": "{label} ต้องน้อยกว่า {maxLength} หลัก",
92
+ "{label} must be {length} digits.": "{label} ต้องเป็น {length} หลัก",
93
+ "{label} must be {minLength} - {maxLength} digits.": "{label} ต้องเป็น {minLength} - {maxLength} หลัก",
89
94
  "{processingNumber} files in progress...": "{processingNumber} ไฟล์กำลังดำเนินการ..."
90
95
  }
@@ -26,9 +26,10 @@
26
26
  "Edit": "Sửa",
27
27
  "Error Report": "Báo cáo lỗi",
28
28
  "Filter": "Lọc",
29
- "I agree to the Igloo": "",
29
+ "I agree to the Igloo": "Tôi đồng ý với Igloo",
30
30
  "I declare that the statements I have described above are true. I further declare that the loss occured was accidental, without planning or consensus with other parties.": "Tôi tuyên bố rằng những điều tôi đã mô tả ở trên là đúng sự thật. Tôi tuyên bố thêm rằng tổn thất xảy ra là do ngẫu nhiên, không có kế hoạch hoặc sự đồng thuận với các bên khác.",
31
31
  "Import": "Nhập",
32
+ "Invalid KTP Number.": "",
32
33
  "It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.": "Vui lòng chọn không quá {colMax} cột.",
33
34
  "Last 7 Days": "7 ngày gần nhất",
34
35
  "Last Day": "ngày cuối",
@@ -38,20 +39,20 @@
38
39
  "No preview for this file. Only support image, video or PDF file.": "Không có bản xem trước cho tệp này. Chỉ hỗ trợ hình ảnh, video hoặc tệp PDF.",
39
40
  "Numbers only, please omit \" \" or \"-\".": "Chỉ số, vui lòng bỏ qua \" \" hoặc \"-\".",
40
41
  "OK": "Vâng",
41
- "Once you’re happy with the above, and you’ve checked the box below, please go ahead and submit your activation.": "",
42
+ "Once you’re happy with the above, and you’ve checked the box below, please go ahead and submit your activation.": "Khi bạn hài lòng với những điều trên và đã chọn hộp bên dưới, hãy tiếp tục và gửi kích hoạt của bạn.",
42
43
  "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.",
43
44
  "Optional": "Không bắt buộc",
44
45
  "Other Reason": "Lý do khác",
45
46
  "Please enter a valid date.": "Vui lòng nhập đúng ngày:",
46
47
  "Please enter a valid time.": "Vui lòng nhập thời gian hợp lệ.",
47
- "Please input a date after {date}": "",
48
- "Please input a date before {date}": "",
49
- "Please read and agree to Igloo Terms of Use and Privacy Policy": "",
48
+ "Please input a date after {date}": "Vui lòng nhập ngày sau {date}",
49
+ "Please input a date before {date}": "Vui lòng nhập ngày trước {date}",
50
+ "Please read and agree to Igloo Terms of Use and Privacy Policy": "Vui lòng đọc và đồng ý với Điều khoản sử dụng và Chính sách quyền riêng tư của Igloo",
50
51
  "Please select": "Xin hãy lựa chọn",
51
52
  "Please select a file type": "Vui lòng chọn loại tệp tin:",
52
53
  "Please take a moment to review what you’ve told us above.": "Vui lòng kiểm tra lại thông tin đã nhập",
53
54
  "Previous": "Trước",
54
- "Privacy Policy": "",
55
+ "Privacy Policy": "Chính sách bảo mật",
55
56
  "Processing": "Đang xử lý",
56
57
  "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ý.",
57
58
  "Quantity of files should be less than {limit}": "Số lượng tệp tin không vượt quá {limit}",
@@ -62,14 +63,14 @@
62
63
  "Reset All Filters": "Xóa lọc",
63
64
  "Result": "Kết quả",
64
65
  "Result: Success {success_num}; Error {fail_num}": "Kết quả: sự thành công {success_num}; lỗi {fail_num}",
65
- "Review and Submit": "",
66
+ "Review and Submit": "Xem lại và gửi",
66
67
  "Rows per page": "Dòng trên trang",
67
68
  "Search": "Tìm kiếm",
68
69
  "Searching...": "Đang tìm kiếm...",
69
70
  "Select All": "Chọn tất cả",
70
71
  "Send OTP": "Gửi OTP",
71
72
  "Submit": "Gửi",
72
- "Terms of Use": "",
73
+ "Terms of Use": "Điều khoản sử dụng",
73
74
  "The file type is not supported.": "Loại tệp không được hỗ trợ.",
74
75
  "There are no options available currently": "Hiện tại không có tùy chọn nào",
75
76
  "This Month": "Tháng này",
@@ -77,7 +78,7 @@
77
78
  "Uploading": "Đang tải lên",
78
79
  "We support CSV or XLSX files (less than 20M each).": "Hỗ trợ .CSV hoặc .XLSX (file nhỏ hơn 20MB)",
79
80
  "Yes, Close": "Đóng",
80
- "and": "",
81
+ "and": "",
81
82
  "browse": "duyệt",
82
83
  "or": "hoặc",
83
84
  "{beginIndex}-{endIndex} of {total}": "{beginIndex}-{endIndex} trên {total}",
@@ -86,5 +87,9 @@
86
87
  "{count} files attached.": "{count} tập tin đính kèm.",
87
88
  "{currentStep} of {allSteps}": "{currentStep} trong {allSteps}",
88
89
  "{doneNumber} files imported.": "{doneNumber} tệp đã được nhập.",
90
+ "{label} must be at least {minLength} digits.": "{label} phải có ít nhất {minLength} chữ số.",
91
+ "{label} must be less than {maxLength} digits.": "{label} phải có ít hơn {maxLength} chữ số.",
92
+ "{label} must be {length} digits.": "{label} phải là {length} chữ số.",
93
+ "{label} must be {minLength} - {maxLength} digits.": "{label} phải là {minLength} - {maxLength} chữ số.",
89
94
  "{processingNumber} files in progress...": "{processingNumber} đang được xử lý..."
90
95
  }
@@ -26,9 +26,10 @@
26
26
  "Edit": "编辑",
27
27
  "Error Report": "错误报告",
28
28
  "Filter": "过滤条件",
29
- "I agree to the Igloo": "",
29
+ "I agree to the Igloo": "我同意Igloo",
30
30
  "I declare that the statements I have described above are true. I further declare that the loss occured was accidental, without planning or consensus with other parties.": "我承诺上述信息均真实有效,并且物品遗失纯属意外。",
31
31
  "Import": "导入",
32
+ "Invalid KTP Number.": "",
32
33
  "It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.": "建议不要选择超过{colMax}个字段,以确保最佳展示效果。",
33
34
  "Last 7 Days": "过去7天",
34
35
  "Last Day": "昨天",
@@ -38,20 +39,20 @@
38
39
  "No preview for this file. Only support image, video or PDF file.": "此文件不支持预览。仅支持图片、视频和PDF。",
39
40
  "Numbers only, please omit \" \" or \"-\".": "仅数字,请省略“ ”或“-”。",
40
41
  "OK": "确定",
41
- "Once you’re happy with the above, and you’ve checked the box below, please go ahead and submit your activation.": "",
42
+ "Once you’re happy with the above, and you’ve checked the box below, please go ahead and submit your activation.": "如您对上述填写内容满意,请继续提交。",
42
43
  "Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "如您对上述填写内容满意,在勾选以下申明后,请继续提交您的理赔申请。",
43
44
  "Optional": "可选",
44
45
  "Other Reason": "其他原因",
45
46
  "Please enter a valid date.": "请输入一个有效的日期。",
46
47
  "Please enter a valid time.": "请输入一个有效的时间。",
47
- "Please input a date after {date}": "",
48
- "Please input a date before {date}": "",
49
- "Please read and agree to Igloo Terms of Use and Privacy Policy": "",
48
+ "Please input a date after {date}": "请输入一个{date}之后的日期",
49
+ "Please input a date before {date}": "请输入一个{date}之前的日期",
50
+ "Please read and agree to Igloo Terms of Use and Privacy Policy": "请阅读并同意Igloo使用条款和隐私策略。",
50
51
  "Please select": "请选择",
51
52
  "Please select a file type": "请选择一个文件类型",
52
53
  "Please take a moment to review what you’ve told us above.": "请您仔细审阅以上信息",
53
54
  "Previous": "上一步",
54
- "Privacy Policy": "",
55
+ "Privacy Policy": "隐私策略",
55
56
  "Processing": "解析中",
56
57
  "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "文件解析中,请耐心等待。",
57
58
  "Quantity of files should be less than {limit}": "文件数量不能超过{limit}",
@@ -62,14 +63,14 @@
62
63
  "Reset All Filters": "重置所有过滤条件",
63
64
  "Result": "结果",
64
65
  "Result: Success {success_num}; Error {fail_num}": "结果:成功 {success_num}; 失败 {fail_num}",
65
- "Review and Submit": "",
66
+ "Review and Submit": "预览和提交",
66
67
  "Rows per page": "每页条数",
67
68
  "Search": "搜索",
68
69
  "Searching...": "正在搜索...",
69
70
  "Select All": "全选",
70
71
  "Send OTP": "发送OTP",
71
72
  "Submit": "提交",
72
- "Terms of Use": "",
73
+ "Terms of Use": "使用条款",
73
74
  "The file type is not supported.": "不支持上传该类型的文件。",
74
75
  "There are no options available currently": "当前没有可用的选项",
75
76
  "This Month": "当月",
@@ -77,7 +78,7 @@
77
78
  "Uploading": "上传中",
78
79
  "We support CSV or XLSX files (less than 20M each).": "支持上传20M以内的CSV和XLSX文件",
79
80
  "Yes, Close": "确认,关闭",
80
- "and": "",
81
+ "and": "",
81
82
  "browse": "选择",
82
83
  "or": "或者",
83
84
  "{beginIndex}-{endIndex} of {total}": "{beginIndex}-{endIndex} 总计 {total}",
@@ -86,5 +87,9 @@
86
87
  "{count} files attached.": "{count}个文件已上传。",
87
88
  "{currentStep} of {allSteps}": "{currentStep} / {allSteps}",
88
89
  "{doneNumber} files imported.": "{doneNumber}个文件已导入。",
90
+ "{label} must be at least {minLength} digits.": "{label}应至少为{minLength}位数字。",
91
+ "{label} must be less than {maxLength} digits.": "{label}应少于{maxLength}位数字。",
92
+ "{label} must be {length} digits.": "{label}应为{length}位数字。",
93
+ "{label} must be {minLength} - {maxLength} digits.": "{label}应为{minLength}至{maxLength}位数字。",
89
94
  "{processingNumber} files in progress...": "{processingNumber}个文件正在处理..."
90
95
  }
@@ -29,6 +29,7 @@
29
29
  "I agree to the Igloo": "",
30
30
  "I declare that the statements I have described above are true. I further declare that the loss occured was accidental, without planning or consensus with other parties.": "我聲明我上面描述的陳述是真的。我進一步宣布發生損失是偶然的,沒有規劃或與其他方的共識。",
31
31
  "Import": "導入",
32
+ "Invalid KTP Number.": "",
32
33
  "It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.": "建議選擇不超過{colMax}指標以確保每個列輸入的默認可見性。",
33
34
  "Last 7 Days": "過去7天",
34
35
  "Last Day": "過去1天",
@@ -86,5 +87,9 @@
86
87
  "{count} files attached.": "{count}附加文件。",
87
88
  "{currentStep} of {allSteps}": "{currentStep} / {allSteps}",
88
89
  "{doneNumber} files imported.": "{doneNumber}導入的文件。",
90
+ "{label} must be at least {minLength} digits.": "",
91
+ "{label} must be less than {maxLength} digits.": "",
92
+ "{label} must be {length} digits.": "",
93
+ "{label} must be {minLength} - {maxLength} digits.": "",
89
94
  "{processingNumber} files in progress...": "{processingNumber}正在進行的文件。。。"
90
95
  }
@@ -59,7 +59,10 @@ var IglooSelect = function IglooSelect(_ref) {
59
59
  return _jsx(_Select, _objectSpread(_objectSpread({
60
60
  placeholder: placeholder || formatMessage({
61
61
  id: 'Please select'
62
- })
62
+ }),
63
+ getPopupContainer: function getPopupContainer(trigger) {
64
+ return trigger.parentNode;
65
+ }
63
66
  }, omit(rest, formMethods)), {}, {
64
67
  options: children ? void 0 : options,
65
68
  value: value,
@@ -82,9 +85,6 @@ var IglooSelect = function IglooSelect(_ref) {
82
85
  }
83
86
  })]
84
87
  }),
85
- getPopupContainer: function getPopupContainer(trigger) {
86
- return trigger.parentNode;
87
- },
88
88
  className: classnames('igloo-select', className),
89
89
  onDropdownVisibleChange: function onDropdownVisibleChange(open) {
90
90
  setOpen(open);
package/es/types.d.ts CHANGED
@@ -107,6 +107,10 @@ export interface FormItemExtraConfig extends FormItemProps {
107
107
  type: 'day' | 'month' | 'year';
108
108
  quantity: number;
109
109
  };
110
+ length?: number;
111
+ minLength?: number;
112
+ maxLength?: number;
113
+ idType?: 'KTP';
110
114
  [key: string]: any;
111
115
  }
112
116
  export interface FormItemConfig extends FormItemExtraConfig {
@@ -566,7 +566,8 @@ var IglooUpload = function IglooUpload(props) {
566
566
  handleReUpload: handleReUpload,
567
567
  handlePreview: handlePreview,
568
568
  handleDelete: handleDelete,
569
- containerRef: containerRef
569
+ containerRef: containerRef,
570
+ disabled: props.disabled
570
571
  })]
571
572
  });
572
573
  };
@@ -577,7 +578,8 @@ var FileList = function FileList(_ref7) {
577
578
  limit = _ref7.limit,
578
579
  handleDelete = _ref7.handleDelete,
579
580
  handlePreview = _ref7.handlePreview,
580
- handleReUpload = _ref7.handleReUpload;
581
+ handleReUpload = _ref7.handleReUpload,
582
+ disabled = _ref7.disabled;
581
583
 
582
584
  var _useState3 = useState(false),
583
585
  _useState4 = _slicedToArray(_useState3, 2),
@@ -648,10 +650,10 @@ var FileList = function FileList(_ref7) {
648
650
  style: {
649
651
  fontSize: 24,
650
652
  color: '#999999',
651
- cursor: 'pointer'
653
+ cursor: disabled ? 'default' : 'pointer'
652
654
  },
653
655
  onClick: function onClick() {
654
- return handleDelete(index);
656
+ return !disabled && handleDelete(index);
655
657
  }
656
658
  })]
657
659
  }), status === 'failed' && _jsxs("div", {
@@ -660,20 +662,20 @@ var FileList = function FileList(_ref7) {
660
662
  style: {
661
663
  fontSize: 24,
662
664
  color: '#999999',
663
- cursor: 'pointer'
665
+ cursor: disabled ? 'default' : 'pointer'
664
666
  },
665
667
  onClick: function onClick() {
666
- return handleReUpload(index);
668
+ return !disabled && handleReUpload(index);
667
669
  },
668
670
  className: 'igloo-upload-preview-item-operation-left-icon'
669
671
  }), _jsx(CrossOutlined, {
670
672
  style: {
671
673
  fontSize: 24,
672
674
  color: '#999999',
673
- cursor: 'pointer'
675
+ cursor: disabled ? 'default' : 'pointer'
674
676
  },
675
677
  onClick: function onClick() {
676
- return handleDelete(index);
678
+ return !disabled && handleDelete(index);
677
679
  }
678
680
  })]
679
681
  })]
@@ -33,6 +33,8 @@
33
33
  }
34
34
 
35
35
  .igloo-upload-preview-list {
36
+ width: 100%;
37
+
36
38
  .igloo-upload-preview-item {
37
39
  display: flex;
38
40
  justify-content: space-between;
@@ -17,6 +17,7 @@ export interface Props extends IglooComponentProps {
17
17
  id?: string;
18
18
  bizKey?: string;
19
19
  capture?: boolean;
20
+ disabled?: boolean;
20
21
  }
21
22
  export declare type Sample = {
22
23
  src: string;
@@ -721,6 +721,10 @@ var UploadPhoto = function UploadPhoto(props) {
721
721
  };
722
722
 
723
723
  var getBadge = function getBadge(status, index, limit) {
724
+ if (props.disabled) {
725
+ return null;
726
+ }
727
+
724
728
  if (status === 'progress') {
725
729
  return _jsx("div", {
726
730
  children: _jsx(LoadingOutlined, {
@@ -191,9 +191,16 @@ var Element = function Element(_ref) {
191
191
 
192
192
  (0, _react.useEffect)(function () {
193
193
  if (!formItemProps.name || preview || !formItemProps.copiedValue.copied) return;
194
+ var originalValue = form === null || form === void 0 ? void 0 : form.getFieldValue(formItemProps.name);
195
+ var value = formItemProps.copiedValue.value;
196
+
197
+ if (_typeof(originalValue) === 'object' && _typeof(value) === 'object') {
198
+ value = Object.assign(originalValue, formItemProps.copiedValue.value);
199
+ }
200
+
194
201
  form && form.setFields([{
195
202
  name: formItemProps.name,
196
- value: formItemProps.copiedValue.value,
203
+ value: value,
197
204
  errors: []
198
205
  }]);
199
206
  }, [formItemProps.copiedValue.value]);
@@ -48,6 +48,7 @@ var elementMap = {
48
48
  PhoneNumber: _input.PhoneNumber,
49
49
  Amount: _input.Amount,
50
50
  InputNumber: _input.InputNumber,
51
+ InputId: _input.InputId,
51
52
  TextArea: _input.TextArea,
52
53
  DatePicker: _datePicker.default,
53
54
  CreditCard: _input.CreditCard,
@@ -47,6 +47,7 @@
47
47
  .igloo-hstep-container {
48
48
  width: 100%;
49
49
  padding: 24px 16px;
50
+ margin-top: 0;
50
51
 
51
52
  .igloo-hstep-content {
52
53
  margin-top: 24px;
@@ -59,12 +60,6 @@
59
60
  margin-left: 16px;
60
61
  margin-right: 16px;
61
62
  }
62
-
63
- .igloo-hstep-label {
64
- margin-bottom: 8px;
65
- font-size: 16px;
66
- line-height: 24px;
67
- }
68
63
  }
69
64
 
70
65
  .igloo-hstep-button-container {
@@ -263,6 +263,13 @@ var HSteps = function HSteps(_ref) {
263
263
  'igloo-hsteps-bar-item': true,
264
264
  'igloo-hsteps-bar-item-current': index === current
265
265
  }),
266
+ style: {
267
+ cursor: index < current ? 'pointer' : 'default'
268
+ },
269
+ onClick: function onClick() {
270
+ if (index >= current) return;
271
+ setCurrent(index);
272
+ },
266
273
  children: [index < current && (0, _jsxRuntime.jsx)(_iglooicon.SuccessFilled, {
267
274
  className: 'igloo-hsteps-bar-item-icon'
268
275
  }), (0, _jsxRuntime.jsx)(_typography.default, {
@@ -308,6 +315,10 @@ var HSteps = function HSteps(_ref) {
308
315
  children: [withReview && !md && (0, _jsxRuntime.jsxs)(_typography.default, {
309
316
  className: "igloo-hstep-label",
310
317
  level: "h3a",
318
+ style: {
319
+ display: 'flex',
320
+ justifyContent: 'space-between'
321
+ },
311
322
  children: [(0, _jsxRuntime.jsx)("span", {
312
323
  className: "igloo-hstep-label-text",
313
324
  children: formatMessage({
@@ -331,8 +342,8 @@ var HSteps = function HSteps(_ref) {
331
342
  }, (step === null || step === void 0 ? void 0 : step.key) || (step === null || step === void 0 ? void 0 : step.name));
332
343
  }), (0, _jsxRuntime.jsxs)("div", {
333
344
  className: "igloo-hsteps-confirmation",
334
- children: [md && (0, _jsxRuntime.jsx)(_typography.default, {
335
- level: "h3a",
345
+ children: [(0, _jsxRuntime.jsx)(_typography.default, {
346
+ level: md ? 'h3a' : 'h4',
336
347
  wrapElement: "div",
337
348
  children: formatMessage({
338
349
  id: 'Review and Submit'
@@ -55,8 +55,30 @@
55
55
  .igloo-hsteps-content {
56
56
  width: 100%;
57
57
 
58
- .igloo-hsteps-confirmation {
59
- padding: 16px;
58
+ .igloo-hsteps-confirmation-container {
59
+ background: #ffffff;
60
+ padding: 24px 16px;
61
+
62
+ .igloo-hsteps-confirmation {
63
+ padding: 16px;
64
+ margin-top: 8px;
65
+ }
66
+
67
+ .igloo-hstep-container {
68
+ width: 100%;
69
+ padding: 16px;
70
+ border-radius: 10px;
71
+
72
+ &:not(:first-child) {
73
+ margin-top: 24px;
74
+ }
75
+
76
+ .igloo-hstep-label {
77
+ margin-bottom: 8px;
78
+ font-size: 16px;
79
+ line-height: 24px;
80
+ }
81
+ }
60
82
  }
61
83
  }
62
84
 
@@ -11,6 +11,10 @@
11
11
  margin-top: 16px;
12
12
  }
13
13
 
14
+ .igloo-section-collapse-divider {
15
+ margin-bottom: 0;
16
+ }
17
+
14
18
  &:last-child {
15
19
  .igloo-section-collapse-divider {
16
20
  display: none;
@@ -182,9 +182,16 @@ var Element = function Element(props) {
182
182
 
183
183
  (0, _react.useEffect)(function () {
184
184
  if (!formItemProps.name || preview || !formItemProps.copiedValue.copied) return;
185
+ var originalValue = form === null || form === void 0 ? void 0 : form.getFieldValue(formItemProps.name);
186
+ var value = formItemProps.copiedValue.value;
187
+
188
+ if (_typeof(originalValue) === 'object' && _typeof(value) === 'object') {
189
+ value = Object.assign(originalValue, formItemProps.copiedValue.value);
190
+ }
191
+
185
192
  form && form.setFields([{
186
193
  name: formItemProps.name,
187
- value: formItemProps.copiedValue.value,
194
+ value: value,
188
195
  errors: []
189
196
  }]);
190
197
  }, [formItemProps.copiedValue.value]);
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { default as Form } from './form';
2
2
  export { default as Button, GreenButton, YellowButton, RedButton, } from './button';
3
3
  export { default as DatePicker, IglooBuddhistDatePicker as BuddhistDatePicker, IglooRangePicker as RangePicker, IglooWeekPicker as WeekPicker, IglooMonthPicker as MonthPicker, } from './date-picker';
4
- export { default as Input, PhoneNumber, Amount, Password, Email, InputNumber, TextArea, InputDate, CreditCard, ExpiryDate, } from './input';
4
+ export { default as Input, PhoneNumber, Amount, Password, Email, InputNumber, TextArea, InputDate, CreditCard, ExpiryDate, InputId, } from './input';
5
5
  export { default as Select, TimeSelect, AttachedSelect } from './select';
6
6
  export { default as Radio, RadioGroup, RadioGroupWithOther } from './radio';
7
7
  export { default as Example } from './example';
package/lib/index.js CHANGED
@@ -26,6 +26,7 @@ var _exportNames = {
26
26
  InputDate: true,
27
27
  CreditCard: true,
28
28
  ExpiryDate: true,
29
+ InputId: true,
29
30
  Select: true,
30
31
  TimeSelect: true,
31
32
  AttachedSelect: true,
@@ -310,6 +311,12 @@ Object.defineProperty(exports, "InputDate", {
310
311
  return _input.InputDate;
311
312
  }
312
313
  });
314
+ Object.defineProperty(exports, "InputId", {
315
+ enumerable: true,
316
+ get: function get() {
317
+ return _input.InputId;
318
+ }
319
+ });
313
320
  Object.defineProperty(exports, "InputNumber", {
314
321
  enumerable: true,
315
322
  get: function get() {
@@ -8,5 +8,6 @@ export { default as InputDate } from './input-date';
8
8
  export { default as CreditCard } from './credit-card';
9
9
  export { default as Otp } from './otp';
10
10
  export { default as ExpiryDate } from './expiry-date';
11
+ export { default as InputId } from './input-id';
11
12
  import IglooInput from './input';
12
13
  export default IglooInput;
@@ -33,6 +33,12 @@ Object.defineProperty(exports, "InputDate", {
33
33
  return _inputDate.default;
34
34
  }
35
35
  });
36
+ Object.defineProperty(exports, "InputId", {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _inputId.default;
40
+ }
41
+ });
36
42
  Object.defineProperty(exports, "InputNumber", {
37
43
  enumerable: true,
38
44
  get: function get() {
@@ -85,6 +91,8 @@ var _otp = _interopRequireDefault(require("./otp"));
85
91
 
86
92
  var _expiryDate = _interopRequireDefault(require("./expiry-date"));
87
93
 
94
+ var _inputId = _interopRequireDefault(require("./input-id"));
95
+
88
96
  var _input = _interopRequireDefault(require("./input"));
89
97
 
90
98
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1,6 @@
1
+ import { InputProps } from 'antd/es/input';
2
+ import { FC, IglooComponentProps } from '../types';
3
+ import './style/index.less';
4
+ declare type Props = InputProps & IglooComponentProps;
5
+ declare const InputId: FC<Props>;
6
+ export default InputId;