iglooform 2.5.7 → 2.5.10
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/es/confirmation/index.d.ts +2 -2
- package/es/confirmation/index.js +37 -2
- package/es/form/element/index.js +22 -21
- package/es/form/hstep/index.d.ts +17 -0
- package/es/form/hstep/index.js +158 -0
- package/es/form/hstep/style/index.d.ts +1 -0
- package/es/form/hstep/style/index.js +1 -0
- package/es/form/hstep/style/index.less +79 -0
- package/es/form/hsteps/index.d.ts +19 -0
- package/es/form/hsteps/index.js +418 -0
- package/es/form/hsteps/style/index.d.ts +1 -0
- package/es/form/hsteps/style/index.js +1 -0
- package/es/form/hsteps/style/index.less +100 -0
- package/es/form/index.js +31 -40
- package/es/form/pages/index.js +2 -2
- package/es/form/section/index.d.ts +2 -0
- package/es/form/section/index.js +70 -10
- package/es/form/section/style/index.less +18 -0
- package/es/form/step/index.js +15 -10
- package/es/form/steps/index.js +27 -15
- package/es/form-step-context.d.ts +6 -0
- package/es/form-step-context.js +4 -0
- package/es/free-form/index.js +24 -38
- package/es/input/input-number.js +87 -3
- package/es/input/phone-number.js +80 -20
- package/es/locale/en-US/messages.json +13 -0
- package/es/locale/format-message.js +2 -2
- package/es/locale/id-ID/messages.json +13 -0
- package/es/locale/locale-provider.js +2 -2
- package/es/locale/th-TH/messages.json +13 -0
- package/es/locale/vi-VN/messages.json +13 -0
- package/es/locale/zh-CN/messages.json +13 -0
- package/es/locale/zh-TW/messages.json +13 -0
- package/es/types.d.ts +17 -1
- package/es/upload/style/index.less +2 -0
- package/es/upload-photo/index.js +10 -4
- package/es/utils/form-utils.js +84 -1
- package/lib/confirmation/index.d.ts +2 -2
- package/lib/confirmation/index.js +37 -1
- package/lib/form/element/index.js +22 -21
- package/lib/form/hstep/index.d.ts +17 -0
- package/lib/form/hstep/index.js +183 -0
- package/lib/form/hstep/style/index.d.ts +1 -0
- package/lib/form/hstep/style/index.js +3 -0
- package/lib/form/hstep/style/index.less +79 -0
- package/lib/form/hsteps/index.d.ts +19 -0
- package/lib/form/hsteps/index.js +448 -0
- package/lib/form/hsteps/style/index.d.ts +1 -0
- package/lib/form/hsteps/style/index.js +3 -0
- package/lib/form/hsteps/style/index.less +100 -0
- package/lib/form/index.js +31 -39
- package/lib/form/pages/index.js +2 -2
- package/lib/form/section/index.d.ts +2 -0
- package/lib/form/section/index.js +72 -8
- package/lib/form/section/style/index.less +18 -0
- package/lib/form/step/index.js +15 -10
- package/lib/form/steps/index.js +27 -14
- package/lib/form-step-context.d.ts +6 -0
- package/lib/form-step-context.js +16 -0
- package/lib/free-form/index.js +23 -37
- package/lib/input/input-number.js +88 -3
- package/lib/input/phone-number.js +78 -18
- package/lib/locale/en-US/messages.json +13 -0
- package/lib/locale/format-message.js +2 -2
- package/lib/locale/id-ID/messages.json +13 -0
- package/lib/locale/locale-provider.js +2 -2
- package/lib/locale/th-TH/messages.json +13 -0
- package/lib/locale/vi-VN/messages.json +13 -0
- package/lib/locale/zh-CN/messages.json +13 -0
- package/lib/locale/zh-TW/messages.json +13 -0
- package/lib/types.d.ts +17 -1
- package/lib/upload/style/index.less +2 -0
- package/lib/upload-photo/index.js +10 -4
- package/lib/utils/form-utils.js +85 -1
- package/package.json +1 -1
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"Edit": "Edit",
|
|
27
27
|
"Error Report": "Error Report",
|
|
28
28
|
"Filter": "Filter",
|
|
29
|
+
"I agree to the Igloo": "I agree to the Igloo",
|
|
29
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.": "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.",
|
|
30
31
|
"Import": "Import",
|
|
31
32
|
"It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.": "It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.",
|
|
@@ -37,15 +38,20 @@
|
|
|
37
38
|
"No preview for this file. Only support image, video or PDF file.": "No preview for this file. Only support image, video or PDF file.",
|
|
38
39
|
"Numbers only, please omit \" \" or \"-\".": "Numbers only, please omit \" \" or \"-\".",
|
|
39
40
|
"OK": "OK",
|
|
41
|
+
"Once you’re happy with the above, and you’ve checked the box below, please go ahead and submit your activation.": "Once you’re happy with the above, and you’ve checked the box below, please go ahead and submit your activation.",
|
|
40
42
|
"Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.",
|
|
41
43
|
"Optional": "Optional",
|
|
42
44
|
"Other Reason": "Other Reason",
|
|
43
45
|
"Please enter a valid date.": "Please enter a valid date.",
|
|
44
46
|
"Please enter a valid time.": "Please enter a valid time.",
|
|
47
|
+
"Please input a date after {date}": "Please input a date after {date}",
|
|
48
|
+
"Please input a date before {date}": "Please input a date before {date}",
|
|
49
|
+
"Please read and agree to Igloo Terms of Use and Privacy Policy": "Please read and agree to Igloo Terms of Use and Privacy Policy",
|
|
45
50
|
"Please select": "Please select",
|
|
46
51
|
"Please select a file type": "Please select a file type",
|
|
47
52
|
"Please take a moment to review what you’ve told us above.": "Please take a moment to review what you’ve told us above.",
|
|
48
53
|
"Previous": "Previous",
|
|
54
|
+
"Privacy Policy": "Privacy Policy",
|
|
49
55
|
"Processing": "Processing",
|
|
50
56
|
"Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.",
|
|
51
57
|
"Quantity of files should be less than {limit}": "Quantity of files should be less than {limit}",
|
|
@@ -56,12 +62,14 @@
|
|
|
56
62
|
"Reset All Filters": "Reset All Filters",
|
|
57
63
|
"Result": "Result",
|
|
58
64
|
"Result: Success {success_num}; Error {fail_num}": "Result: Success {success_num}; Error {fail_num}",
|
|
65
|
+
"Review and Submit": "Review and Submit",
|
|
59
66
|
"Rows per page": "Rows per page",
|
|
60
67
|
"Search": "Search",
|
|
61
68
|
"Searching...": "Searching...",
|
|
62
69
|
"Select All": "Select All",
|
|
63
70
|
"Send OTP": "Send OTP",
|
|
64
71
|
"Submit": "Submit",
|
|
72
|
+
"Terms of Use": "Terms of Use",
|
|
65
73
|
"The file type is not supported.": "The file type is not supported.",
|
|
66
74
|
"There are no options available currently": "There are no options available currently",
|
|
67
75
|
"This Month": "This Month",
|
|
@@ -69,6 +77,7 @@
|
|
|
69
77
|
"Uploading": "Uploading",
|
|
70
78
|
"We support CSV or XLSX files (less than 20M each).": "We support CSV or XLSX files (less than 20M each).",
|
|
71
79
|
"Yes, Close": "Yes, Close",
|
|
80
|
+
"and": "and",
|
|
72
81
|
"browse": "browse",
|
|
73
82
|
"or": "or",
|
|
74
83
|
"{beginIndex}-{endIndex} of {total}": "{beginIndex}-{endIndex} of {total}",
|
|
@@ -77,5 +86,9 @@
|
|
|
77
86
|
"{count} files attached.": "{count} files attached.",
|
|
78
87
|
"{currentStep} of {allSteps}": "{currentStep} of {allSteps}",
|
|
79
88
|
"{doneNumber} files imported.": "{doneNumber} files imported.",
|
|
89
|
+
"{label} must be at least {minLength} digits.": "{label} must be at least {minLength} digits.",
|
|
90
|
+
"{label} must be less than {maxLength} digits.": "{label} must be less than {maxLength} digits.",
|
|
91
|
+
"{label} must be {length} digits.": "{label} must be {length} digits.",
|
|
92
|
+
"{label} must be {minLength} - {maxLength} digits.": "{label} must be {minLength} - {maxLength} digits.",
|
|
80
93
|
"{processingNumber} files in progress...": "{processingNumber} files in progress..."
|
|
81
94
|
}
|
|
@@ -9,10 +9,10 @@ var formatMessage = function formatMessage(props) {
|
|
|
9
9
|
values = props.values;
|
|
10
10
|
|
|
11
11
|
if (!values || !Object.keys(values).length) {
|
|
12
|
-
return locale[id];
|
|
12
|
+
return locale[id] || id;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
return locale[id].replaceAll(/\{(.+?)\}/g, function (_, name) {
|
|
15
|
+
return (locale[id] || id).replaceAll(/\{(.+?)\}/g, function (_, name) {
|
|
16
16
|
return values[name];
|
|
17
17
|
});
|
|
18
18
|
};
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"Edit": "Ubah",
|
|
27
27
|
"Error Report": "Laporan Kesalahan",
|
|
28
28
|
"Filter": "Saring",
|
|
29
|
+
"I agree to the Igloo": "Saya setuju dengan Igloo",
|
|
29
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.": "Saya menyatakan bahwa pernyataan yang saya jelaskan di atas adalah benar. Selanjutnya saya nyatakan bahwa kerugian yang terjadi merupakan ketidaksengajaan, dan terjadi tanpa perencanaan atau hasil musyawarah dengan pihak lain.",
|
|
30
31
|
"Import": "Impor",
|
|
31
32
|
"It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.": "Direkomendasikan untuk memilih tidak lebih dari {colMax} metrik untuk memastikan sudut pandang default dari setiap isi kolom.",
|
|
@@ -37,15 +38,20 @@
|
|
|
37
38
|
"No preview for this file. Only support image, video or PDF file.": "Tidak ada pratinjau untuk file ini. Hanya mendukung file gambar, video atau PDF.",
|
|
38
39
|
"Numbers only, please omit \" \" or \"-\".": "Angka saja, harap hilangkan \" \" atau \"-\".",
|
|
39
40
|
"OK": "oke",
|
|
41
|
+
"Once you’re happy with the above, and you’ve checked the box below, please go ahead and submit your activation.": "Setelah Anda puas dengan hal di atas, dan Anda telah mencentang kotak di bawah, silakan lanjutkan dan kirimkan aktivasi Anda.",
|
|
40
42
|
"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.",
|
|
41
43
|
"Optional": "Pilihan",
|
|
42
44
|
"Other Reason": "Alasan lain",
|
|
43
45
|
"Please enter a valid date.": "Silakan tulis tanggal valid",
|
|
44
46
|
"Please enter a valid time.": "Harap masukkan waktu yang valid",
|
|
47
|
+
"Please input a date after {date}": "Harap masukkan tanggal setelah {date}",
|
|
48
|
+
"Please input a date before {date}": "Harap masukkan tanggal sebelum {date}",
|
|
49
|
+
"Please read and agree to Igloo Terms of Use and Privacy Policy": "Harap baca dan setujui Persyaratan Penggunaan dan Kebijakan Privasi Igloo",
|
|
45
50
|
"Please select": "Silahkan pilih",
|
|
46
51
|
"Please select a file type": "Silakan pilih tipe dokumen",
|
|
47
52
|
"Please take a moment to review what you’ve told us above.": "Mohon luangkan waktu sejenak untuk meninjau ulang seluruh data yang Anda telah sampaikan sebelumnya .",
|
|
48
53
|
"Previous": "Sebelumnya",
|
|
54
|
+
"Privacy Policy": "Kebijakan pribadi",
|
|
49
55
|
"Processing": "Sedang diproses",
|
|
50
56
|
"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 .",
|
|
51
57
|
"Quantity of files should be less than {limit}": "Jumlah dokumen tidak bisa lebih dari {limit}",
|
|
@@ -56,12 +62,14 @@
|
|
|
56
62
|
"Reset All Filters": "Setel ulang filter",
|
|
57
63
|
"Result": "Hasil",
|
|
58
64
|
"Result: Success {success_num}; Error {fail_num}": "Hasil: Sukses {success_num}; Kesalahan {fail_num}",
|
|
65
|
+
"Review and Submit": "Tinjau dan Kirim",
|
|
59
66
|
"Rows per page": "Baris per halaman",
|
|
60
67
|
"Search": "Mencari",
|
|
61
68
|
"Searching...": "Mencari...",
|
|
62
69
|
"Select All": "Pilih Semua",
|
|
63
70
|
"Send OTP": "Kirim OTP",
|
|
64
71
|
"Submit": "Ajukan",
|
|
72
|
+
"Terms of Use": "Syarat Penggunaan",
|
|
65
73
|
"The file type is not supported.": "Jenis file tidak didukung.",
|
|
66
74
|
"There are no options available currently": "Tidak ada opsi yang tersedia saat ini",
|
|
67
75
|
"This Month": "Bulan ini",
|
|
@@ -69,6 +77,7 @@
|
|
|
69
77
|
"Uploading": "Mengunggah",
|
|
70
78
|
"We support CSV or XLSX files (less than 20M each).": "Kami mendukung file CSV atau XLSX (Ukuran maksimal 20 MB) .",
|
|
71
79
|
"Yes, Close": "Ya, Tutup",
|
|
80
|
+
"and": "dan",
|
|
72
81
|
"browse": "Telusuri",
|
|
73
82
|
"or": "atau",
|
|
74
83
|
"{beginIndex}-{endIndex} of {total}": "{beginIndex}-{endIndex} dari {total}",
|
|
@@ -77,5 +86,9 @@
|
|
|
77
86
|
"{count} files attached.": "{count} file terlampir.",
|
|
78
87
|
"{currentStep} of {allSteps}": "{currentStep} dari {allSteps}",
|
|
79
88
|
"{doneNumber} files imported.": "{doneNumber} data terunggah.",
|
|
89
|
+
"{label} must be at least {minLength} digits.": "{label} minimal harus {minLength} digit.",
|
|
90
|
+
"{label} must be less than {maxLength} digits.": "{label} harus kurang dari {maxLength} digit.",
|
|
91
|
+
"{label} must be {length} digits.": "{label} harus {length} digit.",
|
|
92
|
+
"{label} must be {minLength} - {maxLength} digits.": "{label} harus {minLength} - {maxLength} digit.",
|
|
80
93
|
"{processingNumber} files in progress...": "{processingNumber} data dalam proses..."
|
|
81
94
|
}
|
|
@@ -54,10 +54,10 @@ var LocaleProvider = function LocaleProvider(_ref) {
|
|
|
54
54
|
values = _ref2.values;
|
|
55
55
|
|
|
56
56
|
if (!values || !Object.keys(values).length) {
|
|
57
|
-
return locale[id];
|
|
57
|
+
return locale[id] || id;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
return locale[id].replaceAll(/\{(.+?)\}/g, function (_, name) {
|
|
60
|
+
return (locale[id] || id).replaceAll(/\{(.+?)\}/g, function (_, name) {
|
|
61
61
|
return values[name];
|
|
62
62
|
});
|
|
63
63
|
};
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"Edit": "แก้ไข",
|
|
27
27
|
"Error Report": "รายงานข้อผิดพลาด",
|
|
28
28
|
"Filter": "กรอง",
|
|
29
|
+
"I agree to the Igloo": "ฉันเห็นด้วยกับกระท่อมน้ำแข็ง",
|
|
29
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.": "ข้าพเจ้ายืนยันว่าข้อความที่ข้าพเจ้าได้อธิบายข้างต้นนั้นเป็นความจริง และยืนยันว่าความเสียหายที่เกิดขึ้นนั้นเกิดจากอุบัติเหตุ ปราศจากการวางแผน หรือ การเห็นพ้องร่วมกันกับฝ่ายอื่น",
|
|
30
31
|
"Import": "นำเข้า",
|
|
31
32
|
"It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.": "แนะนำให้เลือกจำนวนไม่เกิน {colMax} เพื่อให้แน่ใจว่ามองเห็นค่าเริ่มต้นของข้อมูลแต่ละคอลัมน์",
|
|
@@ -37,15 +38,20 @@
|
|
|
37
38
|
"No preview for this file. Only support image, video or PDF file.": "ไม่มีการแสดงตัวอย่างสำหรับไฟล์นี้ รองรับเฉพาะรูปภาพ, วิดีโอ หรือ ไฟล์ PDF",
|
|
38
39
|
"Numbers only, please omit \" \" or \"-\".": "ตัวเลขเท่านั้น โปรดเว้น \" \" หรือ \"-\"",
|
|
39
40
|
"OK": "ตกลง",
|
|
41
|
+
"Once you’re happy with the above, and you’ve checked the box below, please go ahead and submit your activation.": "เมื่อคุณพอใจกับสิ่งด้านบนแล้ว และคุณได้ทำเครื่องหมายที่ช่องด้านล่างแล้ว โปรดดำเนินการต่อและส่งการเปิดใช้งานของคุณ",
|
|
40
42
|
"Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "หากตรวจสอบแล้วและต้องการยืนยันข้อมูลข้างต้น กรุณากดดำเนินการต่อและยืนยันการเคลมของคุณ",
|
|
41
43
|
"Optional": "ไม่จำเป็น",
|
|
42
44
|
"Other Reason": "เหตุผลอื่น",
|
|
43
45
|
"Please enter a valid date.": "กรุณากรอกวันที่ถูกต้อง",
|
|
44
46
|
"Please enter a valid time.": "กรุณากรอกเวลาที่ถูกต้อง",
|
|
47
|
+
"Please input a date after {date}": "กรุณาใส่วันที่หลัง {date}",
|
|
48
|
+
"Please input a date before {date}": "กรุณาใส่วันที่ก่อน {date}",
|
|
49
|
+
"Please read and agree to Igloo Terms of Use and Privacy Policy": "โปรดอ่านและยอมรับข้อกำหนดการใช้งานและนโยบายความเป็นส่วนตัวของ Igloo",
|
|
45
50
|
"Please select": "โปรดเลือก",
|
|
46
51
|
"Please select a file type": "โปรดเลือกประเภทไฟล์",
|
|
47
52
|
"Please take a moment to review what you’ve told us above.": "กรุณาอ่านทบทวนข้อมูลที่คุณกรอกก่อนกดยืนยัน",
|
|
48
53
|
"Previous": "ก่อนหน้านี้",
|
|
54
|
+
"Privacy Policy": "นโยบายความเป็นส่วนตัว",
|
|
49
55
|
"Processing": "กำลังประมวลผล",
|
|
50
56
|
"Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "ไม่สามารถอัปเดตการประมวลผลได้ในขณะนี้ ไม่ต้องกังวล! ไฟล์ของคุณทั้งหมดกำลังอยู่ระหว่างดำเนินการ",
|
|
51
57
|
"Quantity of files should be less than {limit}": "จำนวนไฟล์ควรน้อยกว่า {limit}",
|
|
@@ -56,12 +62,14 @@
|
|
|
56
62
|
"Reset All Filters": "รีเซทตัวกรอง",
|
|
57
63
|
"Result": "ผลลัพธ์",
|
|
58
64
|
"Result: Success {success_num}; Error {fail_num}": "ผลลัพธ์: สำเร็จ {success_num}; ข้อผิดพลาด {fail_num}",
|
|
65
|
+
"Review and Submit": "ตรวจสอบและส่ง",
|
|
59
66
|
"Rows per page": "แถวต่อหน้า",
|
|
60
67
|
"Search": "ค้นหา",
|
|
61
68
|
"Searching...": "กำลังค้นหา...",
|
|
62
69
|
"Select All": "เลือกทั้งหมด",
|
|
63
70
|
"Send OTP": "ส่ง OTP",
|
|
64
71
|
"Submit": "ส่ง/ยืนยัน",
|
|
72
|
+
"Terms of Use": "ข้อกำหนดการใช้งาน",
|
|
65
73
|
"The file type is not supported.": "ประเภทไฟล์ไม่รองรับ",
|
|
66
74
|
"There are no options available currently": "ไม่มีตัวเลือกในขณะนี้",
|
|
67
75
|
"This Month": "เดือนนี้",
|
|
@@ -69,6 +77,7 @@
|
|
|
69
77
|
"Uploading": "กำลังอัพโหลด",
|
|
70
78
|
"We support CSV or XLSX files (less than 20M each).": "เรารองรับ CSV หรือ XLSX ไฟล์ (แต่ละไฟล์ขนาดไฟล์ต้องไม่เกิน 20M)",
|
|
71
79
|
"Yes, Close": "ใช่, ปิด",
|
|
80
|
+
"and": "และ",
|
|
72
81
|
"browse": "ค้นหา",
|
|
73
82
|
"or": "หรือ",
|
|
74
83
|
"{beginIndex}-{endIndex} of {total}": "{beginIndex}-{endIndex} ของ {total}",
|
|
@@ -77,5 +86,9 @@
|
|
|
77
86
|
"{count} files attached.": "{count} ไฟล์ที่แนบมา",
|
|
78
87
|
"{currentStep} of {allSteps}": "{currentStep} จาก {allSteps}",
|
|
79
88
|
"{doneNumber} files imported.": "{doneNumber} ไฟล์นำเข้าเสร็จแล้ว",
|
|
89
|
+
"{label} must be at least {minLength} digits.": "{label} ต้องมีอย่างน้อย {minLength} หลัก",
|
|
90
|
+
"{label} must be less than {maxLength} digits.": "{label} ต้องน้อยกว่า {maxLength} หลัก",
|
|
91
|
+
"{label} must be {length} digits.": "{label} ต้องเป็น {length} หลัก",
|
|
92
|
+
"{label} must be {minLength} - {maxLength} digits.": "{label} ต้องเป็น {minLength} - {maxLength} หลัก",
|
|
80
93
|
"{processingNumber} files in progress...": "{processingNumber} ไฟล์กำลังดำเนินการ..."
|
|
81
94
|
}
|
|
@@ -26,6 +26,7 @@
|
|
|
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": "Tôi đồng ý với Igloo",
|
|
29
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.",
|
|
30
31
|
"Import": "Nhập",
|
|
31
32
|
"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.",
|
|
@@ -37,15 +38,20 @@
|
|
|
37
38
|
"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.",
|
|
38
39
|
"Numbers only, please omit \" \" or \"-\".": "Chỉ số, vui lòng bỏ qua \" \" hoặc \"-\".",
|
|
39
40
|
"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.": "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.",
|
|
40
42
|
"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.",
|
|
41
43
|
"Optional": "Không bắt buộc",
|
|
42
44
|
"Other Reason": "Lý do khác",
|
|
43
45
|
"Please enter a valid date.": "Vui lòng nhập đúng ngày:",
|
|
44
46
|
"Please enter a valid time.": "Vui lòng nhập thời gian hợp lệ.",
|
|
47
|
+
"Please input a date after {date}": "Vui lòng nhập ngày sau {date}",
|
|
48
|
+
"Please input a date before {date}": "Vui lòng nhập ngày trước {date}",
|
|
49
|
+
"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",
|
|
45
50
|
"Please select": "Xin hãy lựa chọn",
|
|
46
51
|
"Please select a file type": "Vui lòng chọn loại tệp tin:",
|
|
47
52
|
"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",
|
|
48
53
|
"Previous": "Trước",
|
|
54
|
+
"Privacy Policy": "Chính sách bảo mật",
|
|
49
55
|
"Processing": "Đang xử lý",
|
|
50
56
|
"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ý.",
|
|
51
57
|
"Quantity of files should be less than {limit}": "Số lượng tệp tin không vượt quá {limit}",
|
|
@@ -56,12 +62,14 @@
|
|
|
56
62
|
"Reset All Filters": "Xóa lọc",
|
|
57
63
|
"Result": "Kết quả",
|
|
58
64
|
"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": "Xem lại và gửi",
|
|
59
66
|
"Rows per page": "Dòng trên trang",
|
|
60
67
|
"Search": "Tìm kiếm",
|
|
61
68
|
"Searching...": "Đang tìm kiếm...",
|
|
62
69
|
"Select All": "Chọn tất cả",
|
|
63
70
|
"Send OTP": "Gửi OTP",
|
|
64
71
|
"Submit": "Gửi",
|
|
72
|
+
"Terms of Use": "Điều khoản sử dụng",
|
|
65
73
|
"The file type is not supported.": "Loại tệp không được hỗ trợ.",
|
|
66
74
|
"There are no options available currently": "Hiện tại không có tùy chọn nào",
|
|
67
75
|
"This Month": "Tháng này",
|
|
@@ -69,6 +77,7 @@
|
|
|
69
77
|
"Uploading": "Đang tải lên",
|
|
70
78
|
"We support CSV or XLSX files (less than 20M each).": "Hỗ trợ .CSV hoặc .XLSX (file nhỏ hơn 20MB)",
|
|
71
79
|
"Yes, Close": "Đóng",
|
|
80
|
+
"and": "và",
|
|
72
81
|
"browse": "duyệt",
|
|
73
82
|
"or": "hoặc",
|
|
74
83
|
"{beginIndex}-{endIndex} of {total}": "{beginIndex}-{endIndex} trên {total}",
|
|
@@ -77,5 +86,9 @@
|
|
|
77
86
|
"{count} files attached.": "{count} tập tin đính kèm.",
|
|
78
87
|
"{currentStep} of {allSteps}": "{currentStep} trong {allSteps}",
|
|
79
88
|
"{doneNumber} files imported.": "{doneNumber} tệp đã được nhập.",
|
|
89
|
+
"{label} must be at least {minLength} digits.": "{label} phải có ít nhất {minLength} chữ số.",
|
|
90
|
+
"{label} must be less than {maxLength} digits.": "{label} phải có ít hơn {maxLength} chữ số.",
|
|
91
|
+
"{label} must be {length} digits.": "{label} phải là {length} chữ số.",
|
|
92
|
+
"{label} must be {minLength} - {maxLength} digits.": "{label} phải là {minLength} - {maxLength} chữ số.",
|
|
80
93
|
"{processingNumber} files in progress...": "{processingNumber} đang được xử lý..."
|
|
81
94
|
}
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"Edit": "编辑",
|
|
27
27
|
"Error Report": "错误报告",
|
|
28
28
|
"Filter": "过滤条件",
|
|
29
|
+
"I agree to the Igloo": "我同意Igloo",
|
|
29
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.": "我承诺上述信息均真实有效,并且物品遗失纯属意外。",
|
|
30
31
|
"Import": "导入",
|
|
31
32
|
"It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.": "建议不要选择超过{colMax}个字段,以确保最佳展示效果。",
|
|
@@ -37,15 +38,20 @@
|
|
|
37
38
|
"No preview for this file. Only support image, video or PDF file.": "此文件不支持预览。仅支持图片、视频和PDF。",
|
|
38
39
|
"Numbers only, please omit \" \" or \"-\".": "仅数字,请省略“ ”或“-”。",
|
|
39
40
|
"OK": "确定",
|
|
41
|
+
"Once you’re happy with the above, and you’ve checked the box below, please go ahead and submit your activation.": "如您对上述填写内容满意,请继续提交。",
|
|
40
42
|
"Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "如您对上述填写内容满意,在勾选以下申明后,请继续提交您的理赔申请。",
|
|
41
43
|
"Optional": "可选",
|
|
42
44
|
"Other Reason": "其他原因",
|
|
43
45
|
"Please enter a valid date.": "请输入一个有效的日期。",
|
|
44
46
|
"Please enter a valid time.": "请输入一个有效的时间。",
|
|
47
|
+
"Please input a date after {date}": "请输入一个{date}之后的日期",
|
|
48
|
+
"Please input a date before {date}": "请输入一个{date}之前的日期",
|
|
49
|
+
"Please read and agree to Igloo Terms of Use and Privacy Policy": "请阅读并同意Igloo使用条款和隐私策略。",
|
|
45
50
|
"Please select": "请选择",
|
|
46
51
|
"Please select a file type": "请选择一个文件类型",
|
|
47
52
|
"Please take a moment to review what you’ve told us above.": "请您仔细审阅以上信息",
|
|
48
53
|
"Previous": "上一步",
|
|
54
|
+
"Privacy Policy": "隐私策略",
|
|
49
55
|
"Processing": "解析中",
|
|
50
56
|
"Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "文件解析中,请耐心等待。",
|
|
51
57
|
"Quantity of files should be less than {limit}": "文件数量不能超过{limit}",
|
|
@@ -56,12 +62,14 @@
|
|
|
56
62
|
"Reset All Filters": "重置所有过滤条件",
|
|
57
63
|
"Result": "结果",
|
|
58
64
|
"Result: Success {success_num}; Error {fail_num}": "结果:成功 {success_num}; 失败 {fail_num}",
|
|
65
|
+
"Review and Submit": "预览和提交",
|
|
59
66
|
"Rows per page": "每页条数",
|
|
60
67
|
"Search": "搜索",
|
|
61
68
|
"Searching...": "正在搜索...",
|
|
62
69
|
"Select All": "全选",
|
|
63
70
|
"Send OTP": "发送OTP",
|
|
64
71
|
"Submit": "提交",
|
|
72
|
+
"Terms of Use": "使用条款",
|
|
65
73
|
"The file type is not supported.": "不支持上传该类型的文件。",
|
|
66
74
|
"There are no options available currently": "当前没有可用的选项",
|
|
67
75
|
"This Month": "当月",
|
|
@@ -69,6 +77,7 @@
|
|
|
69
77
|
"Uploading": "上传中",
|
|
70
78
|
"We support CSV or XLSX files (less than 20M each).": "支持上传20M以内的CSV和XLSX文件",
|
|
71
79
|
"Yes, Close": "确认,关闭",
|
|
80
|
+
"and": "和",
|
|
72
81
|
"browse": "选择",
|
|
73
82
|
"or": "或者",
|
|
74
83
|
"{beginIndex}-{endIndex} of {total}": "{beginIndex}-{endIndex} 总计 {total}",
|
|
@@ -77,5 +86,9 @@
|
|
|
77
86
|
"{count} files attached.": "{count}个文件已上传。",
|
|
78
87
|
"{currentStep} of {allSteps}": "{currentStep} / {allSteps}",
|
|
79
88
|
"{doneNumber} files imported.": "{doneNumber}个文件已导入。",
|
|
89
|
+
"{label} must be at least {minLength} digits.": "{label}应至少为{minLength}位数字。",
|
|
90
|
+
"{label} must be less than {maxLength} digits.": "{label}应少于{maxLength}位数字。",
|
|
91
|
+
"{label} must be {length} digits.": "{label}应为{length}位数字。",
|
|
92
|
+
"{label} must be {minLength} - {maxLength} digits.": "{label}应为{minLength}至{maxLength}位数字。",
|
|
80
93
|
"{processingNumber} files in progress...": "{processingNumber}个文件正在处理..."
|
|
81
94
|
}
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"Edit": "編輯",
|
|
27
27
|
"Error Report": "錯誤報告",
|
|
28
28
|
"Filter": "篩選",
|
|
29
|
+
"I agree to the Igloo": "",
|
|
29
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.": "我聲明我上面描述的陳述是真的。我進一步宣布發生損失是偶然的,沒有規劃或與其他方的共識。",
|
|
30
31
|
"Import": "導入",
|
|
31
32
|
"It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.": "建議選擇不超過{colMax}指標以確保每個列輸入的默認可見性。",
|
|
@@ -37,15 +38,20 @@
|
|
|
37
38
|
"No preview for this file. Only support image, video or PDF file.": "不支持預覽此文件。只支持圖像,視頻或PDF文件。",
|
|
38
39
|
"Numbers only, please omit \" \" or \"-\".": "只有數字,請省略“”或“ - ”。",
|
|
39
40
|
"OK": "好",
|
|
41
|
+
"Once you’re happy with the above, and you’ve checked the box below, please go ahead and submit your activation.": "",
|
|
40
42
|
"Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "一旦您對上述內容感到滿意,您已檢查聲明,請繼續並提交您的索賠。",
|
|
41
43
|
"Optional": "可選項",
|
|
42
44
|
"Other Reason": "其他原因",
|
|
43
45
|
"Please enter a valid date.": "請輸入有效的日期。",
|
|
44
46
|
"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": "",
|
|
45
50
|
"Please select": "請選擇",
|
|
46
51
|
"Please select a file type": "請選擇文件類型",
|
|
47
52
|
"Please take a moment to review what you’ve told us above.": "請花點時間查看您在上面提供給我們的內容。",
|
|
48
53
|
"Previous": "以前的",
|
|
54
|
+
"Privacy Policy": "",
|
|
49
55
|
"Processing": "處理中",
|
|
50
56
|
"Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "此刻無法更新處理進度。別擔心!您的所有文件數據仍在進行中。",
|
|
51
57
|
"Quantity of files should be less than {limit}": "文件的數量應小於{limit}",
|
|
@@ -56,12 +62,14 @@
|
|
|
56
62
|
"Reset All Filters": "重置所有過濾器",
|
|
57
63
|
"Result": "結果",
|
|
58
64
|
"Result: Success {success_num}; Error {fail_num}": "結果:成功{success_num};錯誤{fail_num}",
|
|
65
|
+
"Review and Submit": "",
|
|
59
66
|
"Rows per page": "每頁行數",
|
|
60
67
|
"Search": "檢索",
|
|
61
68
|
"Searching...": "正在檢索...",
|
|
62
69
|
"Select All": "全選",
|
|
63
70
|
"Send OTP": "發送OTP.",
|
|
64
71
|
"Submit": "提交",
|
|
72
|
+
"Terms of Use": "",
|
|
65
73
|
"The file type is not supported.": "不支持文件類型。",
|
|
66
74
|
"There are no options available currently": "當前沒有可用的選項",
|
|
67
75
|
"This Month": "本月",
|
|
@@ -69,6 +77,7 @@
|
|
|
69
77
|
"Uploading": "上傳",
|
|
70
78
|
"We support CSV or XLSX files (less than 20M each).": "我們支持CSV或XLSX文件(小於20M)。",
|
|
71
79
|
"Yes, Close": "是的,關閉",
|
|
80
|
+
"and": "",
|
|
72
81
|
"browse": "瀏覽",
|
|
73
82
|
"or": "或者",
|
|
74
83
|
"{beginIndex}-{endIndex} of {total}": "{beginIndex} - {endIndex} 從 {total}",
|
|
@@ -77,5 +86,9 @@
|
|
|
77
86
|
"{count} files attached.": "{count}附加文件。",
|
|
78
87
|
"{currentStep} of {allSteps}": "{currentStep} / {allSteps}",
|
|
79
88
|
"{doneNumber} files imported.": "{doneNumber}導入的文件。",
|
|
89
|
+
"{label} must be at least {minLength} digits.": "",
|
|
90
|
+
"{label} must be less than {maxLength} digits.": "",
|
|
91
|
+
"{label} must be {length} digits.": "",
|
|
92
|
+
"{label} must be {minLength} - {maxLength} digits.": "",
|
|
80
93
|
"{processingNumber} files in progress...": "{processingNumber}正在進行的文件。。。"
|
|
81
94
|
}
|
package/es/types.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export interface FormBasicConfig {
|
|
|
27
27
|
onFirstModified?: () => any;
|
|
28
28
|
uploadApi?: string;
|
|
29
29
|
selectDatasourceApi?: string;
|
|
30
|
+
stepDirection?: 'vertical' | 'horizontal';
|
|
30
31
|
}
|
|
31
32
|
export declare type FormItemAssert = {
|
|
32
33
|
field: NamePath;
|
|
@@ -52,7 +53,7 @@ export interface FormItemExtraConfig extends FormItemProps {
|
|
|
52
53
|
md?: number;
|
|
53
54
|
xs?: number;
|
|
54
55
|
span?: number;
|
|
55
|
-
areaCode?: number | string;
|
|
56
|
+
areaCode?: number | string | (number | string)[];
|
|
56
57
|
phoneNumber?: number | string;
|
|
57
58
|
mergeRules?: boolean;
|
|
58
59
|
dependencies?: NamePath[];
|
|
@@ -95,6 +96,21 @@ export interface FormItemExtraConfig extends FormItemProps {
|
|
|
95
96
|
currentStep?: number;
|
|
96
97
|
subscribedFields?: FormItemName[];
|
|
97
98
|
description?: string | React.ReactNode;
|
|
99
|
+
dateLimitationType?: 'relative' | 'absolute';
|
|
100
|
+
absoluteRangeStart?: number;
|
|
101
|
+
absoluteRangeEnd?: number;
|
|
102
|
+
relativeRangeStart?: {
|
|
103
|
+
type: 'day' | 'month' | 'year';
|
|
104
|
+
quantity: number;
|
|
105
|
+
};
|
|
106
|
+
relativeRangeEnd?: {
|
|
107
|
+
type: 'day' | 'month' | 'year';
|
|
108
|
+
quantity: number;
|
|
109
|
+
};
|
|
110
|
+
length?: number;
|
|
111
|
+
minLength?: number;
|
|
112
|
+
maxLength?: number;
|
|
113
|
+
idType?: 'KTP';
|
|
98
114
|
[key: string]: any;
|
|
99
115
|
}
|
|
100
116
|
export interface FormItemConfig extends FormItemExtraConfig {
|
package/es/upload-photo/index.js
CHANGED
|
@@ -84,22 +84,28 @@ var getFileType = /*#__PURE__*/function () {
|
|
|
84
84
|
while (1) {
|
|
85
85
|
switch (_context.prev = _context.next) {
|
|
86
86
|
case 0:
|
|
87
|
-
_context.
|
|
87
|
+
_context.prev = 0;
|
|
88
|
+
_context.next = 3;
|
|
88
89
|
return fetch(src, {
|
|
89
90
|
cache: 'force-cache'
|
|
90
91
|
});
|
|
91
92
|
|
|
92
|
-
case
|
|
93
|
+
case 3:
|
|
93
94
|
r = _context.sent;
|
|
94
95
|
contentType = r.headers.get('content-type');
|
|
95
96
|
return _context.abrupt("return", ClassifyType(contentType));
|
|
96
97
|
|
|
97
|
-
case
|
|
98
|
+
case 8:
|
|
99
|
+
_context.prev = 8;
|
|
100
|
+
_context.t0 = _context["catch"](0);
|
|
101
|
+
return _context.abrupt("return", 'unknown');
|
|
102
|
+
|
|
103
|
+
case 11:
|
|
98
104
|
case "end":
|
|
99
105
|
return _context.stop();
|
|
100
106
|
}
|
|
101
107
|
}
|
|
102
|
-
}, _callee);
|
|
108
|
+
}, _callee, null, [[0, 8]]);
|
|
103
109
|
}));
|
|
104
110
|
|
|
105
111
|
return function getFileType(_x) {
|
package/es/utils/form-utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["type", "name", "required", "requiredAsserts", "showOptional", "rules", "initialValue", "normalize", "mergeRules", "getValueFromEvent", "getValueProps", "extra", "help", "label", "previewLabel", "extraLabel", "copyValue", "selectValue", "span", "halfRow", "fullRow", "valuePropName", "dependencies", "asserts", "messageVariables", "requiredMessage", "previewFormater", "disabled", "ignore", "shouldRender", "valueFormater", "antdDependencies"],
|
|
1
|
+
var _excluded = ["type", "name", "required", "requiredAsserts", "showOptional", "rules", "initialValue", "normalize", "mergeRules", "getValueFromEvent", "getValueProps", "extra", "help", "label", "previewLabel", "extraLabel", "copyValue", "selectValue", "span", "halfRow", "fullRow", "valuePropName", "dependencies", "asserts", "messageVariables", "requiredMessage", "previewFormater", "disabled", "ignore", "shouldRender", "valueFormater", "antdDependencies", "dateLimitationType", "absoluteRangeEnd", "absoluteRangeStart", "relativeRangeStart", "relativeRangeEnd"],
|
|
2
2
|
_excluded2 = ["initialValue", "normalize", "rules", "extra", "help", "getValueFromEvent", "span", "valuePropName", "fullRow", "halfRow", "messageVariables", "requiredMessage", "previewFormater", "valueFormater", "required", "requiredMark", "className"];
|
|
3
3
|
|
|
4
4
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
@@ -29,6 +29,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
29
29
|
import invariant from 'invariant';
|
|
30
30
|
import Typography from '../typography';
|
|
31
31
|
import FormattedMessage from '../locale/formatted-message';
|
|
32
|
+
import moment from 'moment';
|
|
32
33
|
export var calcNamePath = function calcNamePath(parentName, name) {
|
|
33
34
|
var names = [];
|
|
34
35
|
|
|
@@ -154,6 +155,11 @@ export var calcFormItemProps = function calcFormItemProps(config, extraProps, fo
|
|
|
154
155
|
shouldRender = config.shouldRender,
|
|
155
156
|
valueFormater = config.valueFormater,
|
|
156
157
|
antdDependencies = config.antdDependencies,
|
|
158
|
+
dateLimitationType = config.dateLimitationType,
|
|
159
|
+
absoluteRangeEnd = config.absoluteRangeEnd,
|
|
160
|
+
absoluteRangeStart = config.absoluteRangeStart,
|
|
161
|
+
relativeRangeStart = config.relativeRangeStart,
|
|
162
|
+
relativeRangeEnd = config.relativeRangeEnd,
|
|
157
163
|
rest = _objectWithoutProperties(config, _excluded);
|
|
158
164
|
|
|
159
165
|
invariant(nameProp || type === 'Divider' || type === 'Section' || type === 'Typography' || !type, "name property is required for form item config (type: ".concat(type, ")"));
|
|
@@ -213,6 +219,83 @@ export var calcFormItemProps = function calcFormItemProps(config, extraProps, fo
|
|
|
213
219
|
elementProps[key.replace('element-', '')] = rest[key];
|
|
214
220
|
});
|
|
215
221
|
elementProps.disabled = calcDisabled(disabled, form) || copiedValue.disabled || selectedValue.disabled;
|
|
222
|
+
|
|
223
|
+
if (dateLimitationType) {
|
|
224
|
+
if (['DatePicker', 'BuddhistDatePicker'].includes(type)) {
|
|
225
|
+
var rangeStart = 0;
|
|
226
|
+
var rangeEnd = Number.MAX_SAFE_INTEGER;
|
|
227
|
+
|
|
228
|
+
if (dateLimitationType === 'absolute' && absoluteRangeStart) {
|
|
229
|
+
rangeStart = +moment(absoluteRangeStart).startOf('day');
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
if (dateLimitationType === 'relative' && (relativeRangeStart === null || relativeRangeStart === void 0 ? void 0 : relativeRangeStart.quantity) !== undefined) {
|
|
233
|
+
rangeStart = +moment().add(relativeRangeStart.quantity, relativeRangeStart.type).startOf('day');
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (dateLimitationType === 'absolute' && absoluteRangeEnd) {
|
|
237
|
+
rangeEnd = +moment(absoluteRangeEnd).endOf('day');
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (dateLimitationType === 'relative' && (relativeRangeEnd === null || relativeRangeEnd === void 0 ? void 0 : relativeRangeEnd.quantity) !== undefined) {
|
|
241
|
+
rangeEnd = +moment().add(relativeRangeEnd.quantity, relativeRangeEnd.type).endOf('day');
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
elementProps.disabledDate = function (current) {
|
|
245
|
+
return +current < rangeStart || +current > (rangeEnd || Number.MAX_SAFE_INTEGER);
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
if (type === 'InputDate') {
|
|
250
|
+
var _rangeStart;
|
|
251
|
+
|
|
252
|
+
var _rangeEnd;
|
|
253
|
+
|
|
254
|
+
if (dateLimitationType === 'absolute' && absoluteRangeStart) {
|
|
255
|
+
_rangeStart = moment(absoluteRangeStart).startOf('day');
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
if (dateLimitationType === 'relative' && (relativeRangeStart === null || relativeRangeStart === void 0 ? void 0 : relativeRangeStart.quantity) !== undefined) {
|
|
259
|
+
_rangeStart = moment().add(relativeRangeStart.quantity, relativeRangeStart.type).startOf('day');
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
if (dateLimitationType === 'absolute' && absoluteRangeEnd) {
|
|
263
|
+
_rangeEnd = moment(absoluteRangeEnd).endOf('day');
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
if (dateLimitationType === 'relative' && (relativeRangeEnd === null || relativeRangeEnd === void 0 ? void 0 : relativeRangeEnd.quantity) !== undefined) {
|
|
267
|
+
_rangeEnd = moment().add(relativeRangeEnd.quantity, relativeRangeEnd.type).endOf('day');
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
rules.push({
|
|
271
|
+
validator: function validator(_, date) {
|
|
272
|
+
var trimedDate = date.replaceAll(/\s/g, '');
|
|
273
|
+
var format = elementProps.format ? elementProps.format.replaceAll(/\s/g, '') : 'DD/MM/YYYY';
|
|
274
|
+
|
|
275
|
+
if (_rangeStart && moment(trimedDate, format) < _rangeStart) {
|
|
276
|
+
return Promise.reject(_jsx(FormattedMessage, {
|
|
277
|
+
id: "Please input a date after {date}",
|
|
278
|
+
values: {
|
|
279
|
+
date: _rangeStart.format(format)
|
|
280
|
+
}
|
|
281
|
+
}));
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
if (_rangeEnd && moment(trimedDate, format) > _rangeEnd) {
|
|
285
|
+
return Promise.reject(_jsx(FormattedMessage, {
|
|
286
|
+
id: "Please input a date before {date}",
|
|
287
|
+
values: {
|
|
288
|
+
date: _rangeEnd.format(format)
|
|
289
|
+
}
|
|
290
|
+
}));
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
return Promise.resolve();
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
216
299
|
return {
|
|
217
300
|
colProps: {
|
|
218
301
|
span: extraFullRow && fullRow === undefined || fullRow || extraHalfRow && halfRow === undefined || halfRow ? 24 : span || extraSpan || 12,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { FC } from '../types';
|
|
3
|
-
interface ConfirmationProps {
|
|
3
|
+
export interface ConfirmationProps {
|
|
4
4
|
onChange?: Function;
|
|
5
5
|
value?: boolean;
|
|
6
|
-
message
|
|
6
|
+
message?: ReactNode;
|
|
7
7
|
modalContent?: ReactNode;
|
|
8
8
|
modalTitle?: ReactNode;
|
|
9
9
|
okText?: ReactNode;
|