iglooform 2.5.8 → 2.5.11
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/form/element/index.js +22 -21
- package/es/form/elements.js +2 -1
- package/es/form/hstep/index.js +14 -5
- package/es/form/hstep/style/index.less +2 -7
- package/es/form/hsteps/index.d.ts +9 -3
- package/es/form/hsteps/index.js +48 -14
- package/es/form/hsteps/style/index.less +31 -3
- package/es/form/pages/index.js +2 -2
- package/es/form/section/style/index.less +4 -0
- package/es/form/step/index.js +14 -5
- package/es/form/steps/index.js +2 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/input/index.d.ts +1 -0
- package/es/input/index.js +1 -0
- package/es/input/input-id.d.ts +6 -0
- package/es/input/input-id.js +112 -0
- package/es/input/input-number.js +71 -1
- package/es/input/phone-number.js +80 -20
- package/es/locale/en-US/messages.json +5 -0
- package/es/locale/format-message.js +2 -2
- package/es/locale/id-ID/messages.json +14 -9
- package/es/locale/locale-provider.js +2 -2
- package/es/locale/th-TH/messages.json +14 -9
- package/es/locale/vi-VN/messages.json +14 -9
- package/es/locale/zh-CN/messages.json +14 -9
- package/es/locale/zh-TW/messages.json +5 -0
- package/es/types.d.ts +4 -0
- package/es/upload/style/index.less +2 -0
- package/es/upload-photo/index.js +10 -4
- package/lib/form/element/index.js +22 -21
- package/lib/form/elements.js +1 -0
- package/lib/form/hstep/index.js +14 -5
- package/lib/form/hstep/style/index.less +2 -7
- package/lib/form/hsteps/index.d.ts +9 -3
- package/lib/form/hsteps/index.js +48 -14
- package/lib/form/hsteps/style/index.less +31 -3
- package/lib/form/pages/index.js +2 -2
- package/lib/form/section/style/index.less +4 -0
- package/lib/form/step/index.js +14 -5
- package/lib/form/steps/index.js +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +7 -0
- package/lib/input/index.d.ts +1 -0
- package/lib/input/index.js +8 -0
- package/lib/input/input-id.d.ts +6 -0
- package/lib/input/input-id.js +127 -0
- package/lib/input/input-number.js +72 -1
- package/lib/input/phone-number.js +78 -18
- package/lib/locale/en-US/messages.json +5 -0
- package/lib/locale/format-message.js +2 -2
- package/lib/locale/id-ID/messages.json +14 -9
- package/lib/locale/locale-provider.js +2 -2
- package/lib/locale/th-TH/messages.json +14 -9
- package/lib/locale/vi-VN/messages.json +14 -9
- package/lib/locale/zh-CN/messages.json +14 -9
- package/lib/locale/zh-TW/messages.json +5 -0
- package/lib/types.d.ts +4 -0
- package/lib/upload/style/index.less +2 -0
- package/lib/upload-photo/index.js +10 -4
- package/package.json +1 -1
package/es/input/phone-number.js
CHANGED
|
@@ -14,11 +14,11 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
14
14
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
15
|
|
|
16
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
-
import { useState,
|
|
17
|
+
import { useState, useEffect } from 'react';
|
|
18
18
|
import classnames from 'classnames';
|
|
19
19
|
import invariant from 'invariant';
|
|
20
20
|
import Select from '../select';
|
|
21
|
-
import { staticFormatMessage
|
|
21
|
+
import { staticFormatMessage as formatMessage } from '../locale';
|
|
22
22
|
import './style/index';
|
|
23
23
|
|
|
24
24
|
var PhoneNumber = function PhoneNumber(_ref) {
|
|
@@ -29,13 +29,6 @@ var PhoneNumber = function PhoneNumber(_ref) {
|
|
|
29
29
|
value = _ref.value,
|
|
30
30
|
formChangeProps = _ref.onChange,
|
|
31
31
|
style = _ref.style;
|
|
32
|
-
|
|
33
|
-
var _useContext = useContext(LocaleContext),
|
|
34
|
-
formatMessage = _useContext.formatMessage;
|
|
35
|
-
|
|
36
|
-
formatMessage({
|
|
37
|
-
id: 'Numbers only, please omit " " or "-".'
|
|
38
|
-
});
|
|
39
32
|
invariant(Array.isArray(areaCode) ? areaCode.length : true, 'areaCode cant be an empty array');
|
|
40
33
|
invariant(areaCode != undefined, 'areaCode must be set');
|
|
41
34
|
|
|
@@ -95,22 +88,89 @@ var PhoneNumber = function PhoneNumber(_ref) {
|
|
|
95
88
|
|
|
96
89
|
PhoneNumber.formItemPropsHandler = function (_ref2) {
|
|
97
90
|
var areaCode = _ref2.areaCode,
|
|
98
|
-
phoneNumber = _ref2.phoneNumber
|
|
91
|
+
phoneNumber = _ref2.phoneNumber,
|
|
92
|
+
length = _ref2.length,
|
|
93
|
+
maxLength = _ref2.maxLength,
|
|
94
|
+
minLength = _ref2.minLength,
|
|
95
|
+
label = _ref2.label;
|
|
96
|
+
var rules = [{
|
|
97
|
+
validator: function validator(rule, value) {
|
|
98
|
+
if (!value) return Promise.resolve();
|
|
99
|
+
var phoneNumber = value.phoneNumber;
|
|
100
|
+
var pattern = /^[0-9]*$/;
|
|
101
|
+
return pattern.test(phoneNumber) ? Promise.resolve() : Promise.reject(formatMessage({
|
|
102
|
+
id: 'Numbers only, please omit " " or "-".'
|
|
103
|
+
}));
|
|
104
|
+
}
|
|
105
|
+
}];
|
|
106
|
+
|
|
107
|
+
if (length !== undefined) {
|
|
108
|
+
rules.push({
|
|
109
|
+
validator: function validator(_, value) {
|
|
110
|
+
if (value === undefined || value === null || value.phoneNumber.length === length) return Promise.resolve();
|
|
111
|
+
return Promise.reject(formatMessage({
|
|
112
|
+
id: '{label} must be {length} digits.',
|
|
113
|
+
values: {
|
|
114
|
+
length: length,
|
|
115
|
+
label: label
|
|
116
|
+
}
|
|
117
|
+
}));
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (maxLength !== undefined && minLength !== undefined) {
|
|
123
|
+
rules.push({
|
|
124
|
+
validator: function validator(_, value) {
|
|
125
|
+
if (value === undefined || value === null || value.phoneNumber.length >= minLength && value.phoneNumber.length <= maxLength) return Promise.resolve();
|
|
126
|
+
return Promise.reject(formatMessage({
|
|
127
|
+
id: '{label} must be {minLength} - {maxLength} digits.',
|
|
128
|
+
values: {
|
|
129
|
+
maxLength: maxLength,
|
|
130
|
+
minLength: minLength,
|
|
131
|
+
label: label
|
|
132
|
+
}
|
|
133
|
+
}));
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if (maxLength !== undefined && minLength === undefined) {
|
|
139
|
+
rules.push({
|
|
140
|
+
validator: function validator(_, value) {
|
|
141
|
+
if (value === undefined || value === null || value.phoneNumber.length <= maxLength) return Promise.resolve();
|
|
142
|
+
return Promise.reject(formatMessage({
|
|
143
|
+
id: '{label} must be less than {maxLength} digits.',
|
|
144
|
+
values: {
|
|
145
|
+
maxLength: maxLength,
|
|
146
|
+
label: label
|
|
147
|
+
}
|
|
148
|
+
}));
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (maxLength === undefined && minLength !== undefined) {
|
|
154
|
+
rules.push({
|
|
155
|
+
validator: function validator(_, value) {
|
|
156
|
+
if (value === undefined || value === null || value.phoneNumber.length >= minLength) return Promise.resolve();
|
|
157
|
+
return Promise.reject(formatMessage({
|
|
158
|
+
id: '{label} must be at least {minLength} digits.',
|
|
159
|
+
values: {
|
|
160
|
+
minLength: minLength,
|
|
161
|
+
label: label
|
|
162
|
+
}
|
|
163
|
+
}));
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
|
|
99
168
|
return {
|
|
100
169
|
initialValue: phoneNumber ? {
|
|
101
170
|
areaCode: Array.isArray(areaCode) ? areaCode[0] : areaCode,
|
|
102
171
|
phoneNumber: phoneNumber
|
|
103
172
|
} : undefined,
|
|
104
|
-
rules:
|
|
105
|
-
validator: function validator(rule, value) {
|
|
106
|
-
if (!value) return Promise.resolve();
|
|
107
|
-
var phoneNumber = value.phoneNumber;
|
|
108
|
-
var pattern = /^[0-9]*$/;
|
|
109
|
-
return pattern.test(phoneNumber) ? Promise.resolve() : Promise.reject(staticFormatMessage({
|
|
110
|
-
id: 'Numbers only, please omit " " or "-".'
|
|
111
|
-
}));
|
|
112
|
-
}
|
|
113
|
-
}],
|
|
173
|
+
rules: rules,
|
|
114
174
|
previewFormater: function previewFormater(_ref3) {
|
|
115
175
|
var areaCode = _ref3.areaCode,
|
|
116
176
|
phoneNumber = _ref3.phoneNumber;
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"I agree to the Igloo": "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.": "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": "Import",
|
|
32
|
+
"Invalid KTP Number.": "Invalid KTP Number.",
|
|
32
33
|
"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.",
|
|
33
34
|
"Last 7 Days": "Last 7 Days",
|
|
34
35
|
"Last Day": "Last Day",
|
|
@@ -86,5 +87,9 @@
|
|
|
86
87
|
"{count} files attached.": "{count} files attached.",
|
|
87
88
|
"{currentStep} of {allSteps}": "{currentStep} of {allSteps}",
|
|
88
89
|
"{doneNumber} files imported.": "{doneNumber} files imported.",
|
|
90
|
+
"{label} must be at least {minLength} digits.": "{label} must be at least {minLength} digits.",
|
|
91
|
+
"{label} must be less than {maxLength} digits.": "{label} must be less than {maxLength} digits.",
|
|
92
|
+
"{label} must be {length} digits.": "{label} must be {length} digits.",
|
|
93
|
+
"{label} must be {minLength} - {maxLength} digits.": "{label} must be {minLength} - {maxLength} digits.",
|
|
89
94
|
"{processingNumber} files in progress...": "{processingNumber} files in progress..."
|
|
90
95
|
}
|
|
@@ -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,9 +26,10 @@
|
|
|
26
26
|
"Edit": "Ubah",
|
|
27
27
|
"Error Report": "Laporan Kesalahan",
|
|
28
28
|
"Filter": "Saring",
|
|
29
|
-
"I agree to the Igloo": "",
|
|
29
|
+
"I agree to the Igloo": "Saya setuju dengan 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.": "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.",
|
|
31
31
|
"Import": "Impor",
|
|
32
|
+
"Invalid KTP Number.": "Số KTP không hợp lệ.",
|
|
32
33
|
"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.",
|
|
33
34
|
"Last 7 Days": "7 hari terakhir",
|
|
34
35
|
"Last Day": "hari terakhir",
|
|
@@ -38,20 +39,20 @@
|
|
|
38
39
|
"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.",
|
|
39
40
|
"Numbers only, please omit \" \" or \"-\".": "Angka saja, harap hilangkan \" \" atau \"-\".",
|
|
40
41
|
"OK": "oke",
|
|
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.": "Setelah Anda puas dengan hal di atas, dan Anda telah mencentang kotak di bawah, silakan lanjutkan dan kirimkan aktivasi Anda.",
|
|
42
43
|
"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.",
|
|
43
44
|
"Optional": "Pilihan",
|
|
44
45
|
"Other Reason": "Alasan lain",
|
|
45
46
|
"Please enter a valid date.": "Silakan tulis tanggal valid",
|
|
46
47
|
"Please enter a valid time.": "Harap masukkan waktu yang valid",
|
|
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}": "Harap masukkan tanggal setelah {date}",
|
|
49
|
+
"Please input a date before {date}": "Harap masukkan tanggal sebelum {date}",
|
|
50
|
+
"Please read and agree to Igloo Terms of Use and Privacy Policy": "Harap baca dan setujui Persyaratan Penggunaan dan Kebijakan Privasi Igloo",
|
|
50
51
|
"Please select": "Silahkan pilih",
|
|
51
52
|
"Please select a file type": "Silakan pilih tipe dokumen",
|
|
52
53
|
"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 .",
|
|
53
54
|
"Previous": "Sebelumnya",
|
|
54
|
-
"Privacy Policy": "",
|
|
55
|
+
"Privacy Policy": "Kebijakan pribadi",
|
|
55
56
|
"Processing": "Sedang diproses",
|
|
56
57
|
"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 .",
|
|
57
58
|
"Quantity of files should be less than {limit}": "Jumlah dokumen tidak bisa lebih dari {limit}",
|
|
@@ -62,14 +63,14 @@
|
|
|
62
63
|
"Reset All Filters": "Setel ulang filter",
|
|
63
64
|
"Result": "Hasil",
|
|
64
65
|
"Result: Success {success_num}; Error {fail_num}": "Hasil: Sukses {success_num}; Kesalahan {fail_num}",
|
|
65
|
-
"Review and Submit": "",
|
|
66
|
+
"Review and Submit": "Tinjau dan Kirim",
|
|
66
67
|
"Rows per page": "Baris per halaman",
|
|
67
68
|
"Search": "Mencari",
|
|
68
69
|
"Searching...": "Mencari...",
|
|
69
70
|
"Select All": "Pilih Semua",
|
|
70
71
|
"Send OTP": "Kirim OTP",
|
|
71
72
|
"Submit": "Ajukan",
|
|
72
|
-
"Terms of Use": "",
|
|
73
|
+
"Terms of Use": "Syarat Penggunaan",
|
|
73
74
|
"The file type is not supported.": "Jenis file tidak didukung.",
|
|
74
75
|
"There are no options available currently": "Tidak ada opsi yang tersedia saat ini",
|
|
75
76
|
"This Month": "Bulan ini",
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
"Uploading": "Mengunggah",
|
|
78
79
|
"We support CSV or XLSX files (less than 20M each).": "Kami mendukung file CSV atau XLSX (Ukuran maksimal 20 MB) .",
|
|
79
80
|
"Yes, Close": "Ya, Tutup",
|
|
80
|
-
"and": "",
|
|
81
|
+
"and": "dan",
|
|
81
82
|
"browse": "Telusuri",
|
|
82
83
|
"or": "atau",
|
|
83
84
|
"{beginIndex}-{endIndex} of {total}": "{beginIndex}-{endIndex} dari {total}",
|
|
@@ -86,5 +87,9 @@
|
|
|
86
87
|
"{count} files attached.": "{count} file terlampir.",
|
|
87
88
|
"{currentStep} of {allSteps}": "{currentStep} dari {allSteps}",
|
|
88
89
|
"{doneNumber} files imported.": "{doneNumber} data terunggah.",
|
|
90
|
+
"{label} must be at least {minLength} digits.": "{label} minimal harus {minLength} digit.",
|
|
91
|
+
"{label} must be less than {maxLength} digits.": "{label} harus kurang dari {maxLength} digit.",
|
|
92
|
+
"{label} must be {length} digits.": "{label} harus {length} digit.",
|
|
93
|
+
"{label} must be {minLength} - {maxLength} digits.": "{label} harus {minLength} - {maxLength} digit.",
|
|
89
94
|
"{processingNumber} files in progress...": "{processingNumber} data dalam proses..."
|
|
90
95
|
}
|
|
@@ -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,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": "và",
|
|
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
|
}
|
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 {
|
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) {
|
|
@@ -180,26 +180,6 @@ var Element = function Element(_ref) {
|
|
|
180
180
|
var _useBreakpoint = useBreakpoint(),
|
|
181
181
|
md = _useBreakpoint.md;
|
|
182
182
|
|
|
183
|
-
if (type === 'Section') {
|
|
184
|
-
return (0, _jsxRuntime.jsx)(_section.default, {
|
|
185
|
-
parentName: parentName,
|
|
186
|
-
config: config,
|
|
187
|
-
preview: preview,
|
|
188
|
-
disabled: disabled,
|
|
189
|
-
setShowStepButton: setShowStepButton
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
if (type === 'AddableSection') {
|
|
194
|
-
return (0, _jsxRuntime.jsx)(_addableSection.default, {
|
|
195
|
-
parentName: parentName,
|
|
196
|
-
config: config,
|
|
197
|
-
preview: preview,
|
|
198
|
-
disabled: disabled,
|
|
199
|
-
setShowStepButton: setShowStepButton
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
|
|
203
183
|
var _calcFormItemProps = (0, _formUtils.calcFormItemProps)(config, _objectSpread(_objectSpread({}, extraConfig), {}, {
|
|
204
184
|
requiredMark: requiredMark
|
|
205
185
|
}), form, parentName),
|
|
@@ -264,7 +244,28 @@ var Element = function Element(_ref) {
|
|
|
264
244
|
name: formItemProps.name,
|
|
265
245
|
value: formItemProps.initialValue
|
|
266
246
|
}]);
|
|
267
|
-
}, [formItemProps.initialValue]);
|
|
247
|
+
}, [formItemProps.initialValue]);
|
|
248
|
+
|
|
249
|
+
if (type === 'Section') {
|
|
250
|
+
return (0, _jsxRuntime.jsx)(_section.default, {
|
|
251
|
+
parentName: parentName,
|
|
252
|
+
config: config,
|
|
253
|
+
preview: preview,
|
|
254
|
+
disabled: disabled,
|
|
255
|
+
setShowStepButton: setShowStepButton
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
if (type === 'AddableSection') {
|
|
260
|
+
return (0, _jsxRuntime.jsx)(_addableSection.default, {
|
|
261
|
+
parentName: parentName,
|
|
262
|
+
config: config,
|
|
263
|
+
preview: preview,
|
|
264
|
+
disabled: disabled,
|
|
265
|
+
setShowStepButton: setShowStepButton
|
|
266
|
+
});
|
|
267
|
+
} //这里要想一下有没有更优雅的实现方式
|
|
268
|
+
|
|
268
269
|
|
|
269
270
|
if (withoutForm) {
|
|
270
271
|
var hideWhenPreview = elementProps.hideWhenPreview,
|
package/lib/form/elements.js
CHANGED