iglooform 2.5.18 → 2.5.19
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/input/input-id.js +14 -0
- package/es/locale/en-US/messages.json +1 -0
- package/es/locale/id-ID/messages.json +1 -0
- package/es/locale/th-TH/messages.json +1 -0
- package/es/locale/vi-VN/messages.json +1 -0
- package/es/locale/zh-CN/messages.json +1 -0
- package/es/locale/zh-TW/messages.json +1 -0
- package/es/types.d.ts +1 -1
- package/es/typography/style/index.less +1 -0
- package/lib/input/input-id.js +14 -0
- package/lib/locale/en-US/messages.json +1 -0
- package/lib/locale/id-ID/messages.json +1 -0
- package/lib/locale/th-TH/messages.json +1 -0
- package/lib/locale/vi-VN/messages.json +1 -0
- package/lib/locale/zh-CN/messages.json +1 -0
- package/lib/locale/zh-TW/messages.json +1 -0
- package/lib/types.d.ts +1 -1
- package/lib/typography/style/index.less +1 -0
- package/package.json +1 -1
package/es/input/input-id.js
CHANGED
|
@@ -104,6 +104,20 @@ InputId.formItemPropsHandler = function (config) {
|
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
if (idType === 'NIK') {
|
|
108
|
+
rules.push({
|
|
109
|
+
validator: function validator(rule, value) {
|
|
110
|
+
if (!/^((1[1-9])|(21)|([37][1-6])|(5[1-4])|(6[1-5])|([8-9][1-2]))[0-9]{4}(([0-6][0-9])|(7[0-1]))((0[1-9])|(1[0-2]))[0-9]{6}$/.test(value)) {
|
|
111
|
+
return Promise.reject(formatMessage({
|
|
112
|
+
id: 'Invalid NIK Number.'
|
|
113
|
+
}));
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return Promise.resolve();
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
107
121
|
return {
|
|
108
122
|
rules: rules
|
|
109
123
|
};
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"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.",
|
|
34
34
|
"Import": "Import",
|
|
35
35
|
"Invalid KTP Number.": "Invalid KTP Number.",
|
|
36
|
+
"Invalid NIK Number.": "Invalid NIK Number.",
|
|
36
37
|
"Invalid password.": "Invalid password.",
|
|
37
38
|
"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.",
|
|
38
39
|
"Last 7 Days": "Last 7 Days",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"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.",
|
|
34
34
|
"Import": "Impor",
|
|
35
35
|
"Invalid KTP Number.": "Nomor KTP Tidak Valid",
|
|
36
|
+
"Invalid NIK Number.": "Nomor NIK Tidak Valid",
|
|
36
37
|
"Invalid password.": "Kata sandi salah.",
|
|
37
38
|
"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.",
|
|
38
39
|
"Last 7 Days": "7 hari terakhir",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"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.": "ข้าพเจ้ายืนยันว่าข้อความที่ข้าพเจ้าได้อธิบายข้างต้นนั้นเป็นความจริง และยืนยันว่าความเสียหายที่เกิดขึ้นนั้นเกิดจากอุบัติเหตุ ปราศจากการวางแผน หรือ การเห็นพ้องร่วมกันกับฝ่ายอื่น",
|
|
34
34
|
"Import": "นำเข้า",
|
|
35
35
|
"Invalid KTP Number.": "หมายเลข KTP ไม่ถูกต้อง",
|
|
36
|
+
"Invalid NIK Number.": "",
|
|
36
37
|
"Invalid password.": "รหัสผ่านไม่ถูกต้อง.",
|
|
37
38
|
"It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.": "แนะนำให้เลือกจำนวนไม่เกิน {colMax} เพื่อให้แน่ใจว่ามองเห็นค่าเริ่มต้นของข้อมูลแต่ละคอลัมน์",
|
|
38
39
|
"Last 7 Days": "เมื่อ 7 วันที่แล้ว",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"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.",
|
|
34
34
|
"Import": "Nhập",
|
|
35
35
|
"Invalid KTP Number.": "Số KTP không hợp lệ.",
|
|
36
|
+
"Invalid NIK Number.": "",
|
|
36
37
|
"Invalid password.": "Mật khẩu không hợp lệ.",
|
|
37
38
|
"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.",
|
|
38
39
|
"Last 7 Days": "7 ngày gần nhất",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"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.": "我承诺上述信息均真实有效,并且物品遗失纯属意外。",
|
|
34
34
|
"Import": "导入",
|
|
35
35
|
"Invalid KTP Number.": "不合法的ID",
|
|
36
|
+
"Invalid NIK Number.": "",
|
|
36
37
|
"Invalid password.": "无效的密码",
|
|
37
38
|
"It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.": "建议不要选择超过{colMax}个字段,以确保最佳展示效果。",
|
|
38
39
|
"Last 7 Days": "过去7天",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"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.": "我聲明我上面描述的陳述是真的。我進一步宣布發生損失是偶然的,沒有規劃或與其他方的共識。",
|
|
34
34
|
"Import": "導入",
|
|
35
35
|
"Invalid KTP Number.": "",
|
|
36
|
+
"Invalid NIK Number.": "",
|
|
36
37
|
"Invalid password.": "",
|
|
37
38
|
"It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.": "建議選擇不超過{colMax}指標以確保每個列輸入的默認可見性。",
|
|
38
39
|
"Last 7 Days": "過去7天",
|
package/es/types.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ export interface FormItemExtraConfig extends FormItemProps {
|
|
|
110
110
|
length?: number;
|
|
111
111
|
minLength?: number;
|
|
112
112
|
maxLength?: number;
|
|
113
|
-
idType?: 'KTP';
|
|
113
|
+
idType?: 'KTP' | 'NIK';
|
|
114
114
|
[key: string]: any;
|
|
115
115
|
}
|
|
116
116
|
export interface FormItemConfig extends FormItemExtraConfig {
|
package/lib/input/input-id.js
CHANGED
|
@@ -118,6 +118,20 @@ InputId.formItemPropsHandler = function (config) {
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
if (idType === 'NIK') {
|
|
122
|
+
rules.push({
|
|
123
|
+
validator: function validator(rule, value) {
|
|
124
|
+
if (!/^((1[1-9])|(21)|([37][1-6])|(5[1-4])|(6[1-5])|([8-9][1-2]))[0-9]{4}(([0-6][0-9])|(7[0-1]))((0[1-9])|(1[0-2]))[0-9]{6}$/.test(value)) {
|
|
125
|
+
return Promise.reject((0, _locale.staticFormatMessage)({
|
|
126
|
+
id: 'Invalid NIK Number.'
|
|
127
|
+
}));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return Promise.resolve();
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
|
|
121
135
|
return {
|
|
122
136
|
rules: rules
|
|
123
137
|
};
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"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.",
|
|
34
34
|
"Import": "Import",
|
|
35
35
|
"Invalid KTP Number.": "Invalid KTP Number.",
|
|
36
|
+
"Invalid NIK Number.": "Invalid NIK Number.",
|
|
36
37
|
"Invalid password.": "Invalid password.",
|
|
37
38
|
"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.",
|
|
38
39
|
"Last 7 Days": "Last 7 Days",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"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.",
|
|
34
34
|
"Import": "Impor",
|
|
35
35
|
"Invalid KTP Number.": "Nomor KTP Tidak Valid",
|
|
36
|
+
"Invalid NIK Number.": "Nomor NIK Tidak Valid",
|
|
36
37
|
"Invalid password.": "Kata sandi salah.",
|
|
37
38
|
"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.",
|
|
38
39
|
"Last 7 Days": "7 hari terakhir",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"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.": "ข้าพเจ้ายืนยันว่าข้อความที่ข้าพเจ้าได้อธิบายข้างต้นนั้นเป็นความจริง และยืนยันว่าความเสียหายที่เกิดขึ้นนั้นเกิดจากอุบัติเหตุ ปราศจากการวางแผน หรือ การเห็นพ้องร่วมกันกับฝ่ายอื่น",
|
|
34
34
|
"Import": "นำเข้า",
|
|
35
35
|
"Invalid KTP Number.": "หมายเลข KTP ไม่ถูกต้อง",
|
|
36
|
+
"Invalid NIK Number.": "",
|
|
36
37
|
"Invalid password.": "รหัสผ่านไม่ถูกต้อง.",
|
|
37
38
|
"It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.": "แนะนำให้เลือกจำนวนไม่เกิน {colMax} เพื่อให้แน่ใจว่ามองเห็นค่าเริ่มต้นของข้อมูลแต่ละคอลัมน์",
|
|
38
39
|
"Last 7 Days": "เมื่อ 7 วันที่แล้ว",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"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.",
|
|
34
34
|
"Import": "Nhập",
|
|
35
35
|
"Invalid KTP Number.": "Số KTP không hợp lệ.",
|
|
36
|
+
"Invalid NIK Number.": "",
|
|
36
37
|
"Invalid password.": "Mật khẩu không hợp lệ.",
|
|
37
38
|
"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.",
|
|
38
39
|
"Last 7 Days": "7 ngày gần nhất",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"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.": "我承诺上述信息均真实有效,并且物品遗失纯属意外。",
|
|
34
34
|
"Import": "导入",
|
|
35
35
|
"Invalid KTP Number.": "不合法的ID",
|
|
36
|
+
"Invalid NIK Number.": "",
|
|
36
37
|
"Invalid password.": "无效的密码",
|
|
37
38
|
"It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.": "建议不要选择超过{colMax}个字段,以确保最佳展示效果。",
|
|
38
39
|
"Last 7 Days": "过去7天",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"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.": "我聲明我上面描述的陳述是真的。我進一步宣布發生損失是偶然的,沒有規劃或與其他方的共識。",
|
|
34
34
|
"Import": "導入",
|
|
35
35
|
"Invalid KTP Number.": "",
|
|
36
|
+
"Invalid NIK Number.": "",
|
|
36
37
|
"Invalid password.": "",
|
|
37
38
|
"It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.": "建議選擇不超過{colMax}指標以確保每個列輸入的默認可見性。",
|
|
38
39
|
"Last 7 Days": "過去7天",
|
package/lib/types.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ export interface FormItemExtraConfig extends FormItemProps {
|
|
|
110
110
|
length?: number;
|
|
111
111
|
minLength?: number;
|
|
112
112
|
maxLength?: number;
|
|
113
|
-
idType?: 'KTP';
|
|
113
|
+
idType?: 'KTP' | 'NIK';
|
|
114
114
|
[key: string]: any;
|
|
115
115
|
}
|
|
116
116
|
export interface FormItemConfig extends FormItemExtraConfig {
|