iglooform 2.5.27 → 2.5.29
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.js +16 -0
- package/es/locale/en-US/messages.json +5 -4
- package/es/locale/id-ID/messages.json +4 -3
- package/es/locale/th-TH/messages.json +4 -3
- package/es/locale/vi-VN/messages.json +4 -3
- package/es/locale/zh-CN/messages.json +4 -3
- package/es/locale/zh-TW/messages.json +4 -3
- package/es/media/media.js +1 -1
- package/es/media/preview.js +1 -1
- package/es/upload-photo/media.js +1 -1
- package/es/upload-preview/media.js +1 -1
- package/lib/input/input.js +16 -0
- package/lib/locale/en-US/messages.json +5 -4
- package/lib/locale/id-ID/messages.json +4 -3
- package/lib/locale/th-TH/messages.json +4 -3
- package/lib/locale/vi-VN/messages.json +4 -3
- package/lib/locale/zh-CN/messages.json +4 -3
- package/lib/locale/zh-TW/messages.json +4 -3
- package/lib/media/media.js +3 -3
- package/lib/media/preview.js +5 -5
- package/lib/upload-photo/media.js +3 -3
- package/lib/upload-preview/media.js +3 -3
- package/package.json +1 -1
package/es/input/input.js
CHANGED
|
@@ -24,10 +24,26 @@ var IglooInput = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
24
24
|
IglooInput.formItemPropsHandler = function (config) {
|
|
25
25
|
var maxLength = config.maxLength,
|
|
26
26
|
minLength = config.minLength,
|
|
27
|
+
length = config.length,
|
|
27
28
|
pattern = config.pattern,
|
|
28
29
|
label = config.label;
|
|
29
30
|
var rules = [];
|
|
30
31
|
|
|
32
|
+
if (length !== undefined) {
|
|
33
|
+
rules.push({
|
|
34
|
+
validator: function validator(_, value) {
|
|
35
|
+
if (value === undefined || value === null || value.length === length) return Promise.resolve();
|
|
36
|
+
return Promise.reject(formatMessage({
|
|
37
|
+
id: '{label} must be {length} characters.',
|
|
38
|
+
values: {
|
|
39
|
+
length: length,
|
|
40
|
+
label: label
|
|
41
|
+
}
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
31
47
|
if (maxLength !== undefined && minLength !== undefined) {
|
|
32
48
|
rules.push({
|
|
33
49
|
validator: function validator(_, value) {
|
|
@@ -94,13 +94,14 @@
|
|
|
94
94
|
"{count} files attached.": "{count} files attached.",
|
|
95
95
|
"{currentStep} of {allSteps}": "{currentStep} of {allSteps}",
|
|
96
96
|
"{doneNumber} files imported.": "{doneNumber} files imported.",
|
|
97
|
+
"{label} must be at least {minLength} characters.": "{label} must be at least {minLength} characters.",
|
|
97
98
|
"{label} must be at least {minLength} digits.": "{label} must be at least {minLength} digits.",
|
|
99
|
+
"{label} must be less than {maxLength} characters.": "{label} must be less than {maxLength} characters.",
|
|
98
100
|
"{label} must be less than {maxLength} digits.": "{label} must be less than {maxLength} digits.",
|
|
101
|
+
"{label} must be {length} characters.": "{label} must be {length} characters.",
|
|
99
102
|
"{label} must be {length} digits.": "{label} must be {length} digits.",
|
|
100
|
-
"{label} must be {minLength} - {maxLength} digits.": "{label} must be {minLength} - {maxLength} digits.",
|
|
101
|
-
"{label} must be at least {minLength} characters.": "{label} must be at least {minLength} characters.",
|
|
102
|
-
"{label} must be less than {maxLength} characters.": "{label} must be less than {maxLength} characters.",
|
|
103
|
-
"{label} must match the pattern {pattern}.": "{label} must match ther pattern {pattern}.",
|
|
104
103
|
"{label} must be {minLength} - {maxLength} characters.": "{label} must be {minLength} - {maxLength} characters.",
|
|
104
|
+
"{label} must be {minLength} - {maxLength} digits.": "{label} must be {minLength} - {maxLength} digits.",
|
|
105
|
+
"{label} must match the pattern {pattern}.": "{label} must match the pattern {pattern}.",
|
|
105
106
|
"{processingNumber} files in progress...": "{processingNumber} files in progress..."
|
|
106
107
|
}
|
|
@@ -94,13 +94,14 @@
|
|
|
94
94
|
"{count} files attached.": "{count} file terlampir.",
|
|
95
95
|
"{currentStep} of {allSteps}": "{currentStep} dari {allSteps}",
|
|
96
96
|
"{doneNumber} files imported.": "{doneNumber} data terunggah.",
|
|
97
|
+
"{label} must be at least {minLength} characters.": "{label} minimal harus {minLength} karakter.",
|
|
97
98
|
"{label} must be at least {minLength} digits.": "{label} minimal harus {minLength} digit.",
|
|
99
|
+
"{label} must be less than {maxLength} characters.": "{label} harus kurang dari {maxLength} karakter.",
|
|
98
100
|
"{label} must be less than {maxLength} digits.": "{label} harus kurang dari {maxLength} digit.",
|
|
101
|
+
"{label} must be {length} characters.": "{label} harus {length} karakter.",
|
|
99
102
|
"{label} must be {length} digits.": "{label} harus {length} digit.",
|
|
103
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label} harus {minLength} - {maxLength} karakter.",
|
|
100
104
|
"{label} must be {minLength} - {maxLength} digits.": "{label} harus {minLength} - {maxLength} digit.",
|
|
101
|
-
"{label} must be at least {minLength} characters.": "{label} minimal harus {minLength} karakter.",
|
|
102
|
-
"{label} must be less than {maxLength} characters.": "{label} harus kurang dari {maxLength} karakter.",
|
|
103
105
|
"{label} must match the pattern {pattern}.": "{label} harus sesuai dengan pola {pattern}.",
|
|
104
|
-
"{label} must be {minLength} - {maxLength} characters.": "{label} harus {minLength} - {maxLength} karakter.",
|
|
105
106
|
"{processingNumber} files in progress...": "{processingNumber} data dalam proses..."
|
|
106
107
|
}
|
|
@@ -94,13 +94,14 @@
|
|
|
94
94
|
"{count} files attached.": "{count} ไฟล์ที่แนบมา",
|
|
95
95
|
"{currentStep} of {allSteps}": "{currentStep} จาก {allSteps}",
|
|
96
96
|
"{doneNumber} files imported.": "{doneNumber} ไฟล์นำเข้าเสร็จแล้ว",
|
|
97
|
+
"{label} must be at least {minLength} characters.": "{label} ต้องมีอย่างน้อย {minLength} ตัวอักษร",
|
|
97
98
|
"{label} must be at least {minLength} digits.": "{label} ต้องมีอย่างน้อย {minLength} หลัก",
|
|
99
|
+
"{label} must be less than {maxLength} characters.": "{label} ต้องน้อยกว่า {maxLength} ตัวอักษร",
|
|
98
100
|
"{label} must be less than {maxLength} digits.": "{label} ต้องน้อยกว่า {maxLength} หลัก",
|
|
101
|
+
"{label} must be {length} characters.": "{label} ต้องเป็น {length} ตัวอักษร",
|
|
99
102
|
"{label} must be {length} digits.": "{label} ต้องเป็น {length} หลัก",
|
|
103
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label} ต้องเป็น {minLength} - {maxLength} ตัวอักษร",
|
|
100
104
|
"{label} must be {minLength} - {maxLength} digits.": "{label} ต้องเป็น {minLength} - {maxLength} หลัก",
|
|
101
|
-
"{label} must be at least {minLength} characters.": "{label} ต้องมีอย่างน้อย {minLength} ตัวอักษร",
|
|
102
|
-
"{label} must be less than {maxLength} characters.": "{label} ต้องน้อยกว่า {maxLength} ตัวอักษร",
|
|
103
105
|
"{label} must match the pattern {pattern}.": "{label} ต้องตรงกับรูปแบบ {pattern}.",
|
|
104
|
-
"{label} must be {minLength} - {maxLength} characters.": "{label} ต้องเป็น {minLength} - {maxLength} ตัวอักษร",
|
|
105
106
|
"{processingNumber} files in progress...": "{processingNumber} ไฟล์กำลังดำเนินการ..."
|
|
106
107
|
}
|
|
@@ -94,13 +94,14 @@
|
|
|
94
94
|
"{count} files attached.": "{count} tập tin đính kèm.",
|
|
95
95
|
"{currentStep} of {allSteps}": "{currentStep} trong {allSteps}",
|
|
96
96
|
"{doneNumber} files imported.": "{doneNumber} tệp đã được nhập.",
|
|
97
|
+
"{label} must be at least {minLength} characters.": "{label} phải có ít nhất {minLength} nhân vật.",
|
|
97
98
|
"{label} must be at least {minLength} digits.": "{label} phải có ít nhất {minLength} chữ số.",
|
|
99
|
+
"{label} must be less than {maxLength} characters.": "{label} phải có ít hơn {maxLength} nhân vật.",
|
|
98
100
|
"{label} must be less than {maxLength} digits.": "{label} phải có ít hơn {maxLength} chữ số.",
|
|
101
|
+
"{label} must be {length} characters.": "{label} phải là {length} nhân vật.",
|
|
99
102
|
"{label} must be {length} digits.": "{label} phải là {length} chữ số.",
|
|
103
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label} phải là {minLength} - {maxLength} nhân vật.",
|
|
100
104
|
"{label} must be {minLength} - {maxLength} digits.": "{label} phải là {minLength} - {maxLength} chữ số.",
|
|
101
|
-
"{label} must be at least {minLength} characters.": "{label} phải có ít nhất {minLength} nhân vật.",
|
|
102
|
-
"{label} must be less than {maxLength} characters.": "{label} phải có ít hơn {maxLength} nhân vật.",
|
|
103
105
|
"{label} must match the pattern {pattern}.": "{label} phải khớp với mẫu {pattern}.",
|
|
104
|
-
"{label} must be {minLength} - {maxLength} characters.": "{label} phải là {minLength} - {maxLength} nhân vật.",
|
|
105
106
|
"{processingNumber} files in progress...": "{processingNumber} đang được xử lý..."
|
|
106
107
|
}
|
|
@@ -94,13 +94,14 @@
|
|
|
94
94
|
"{count} files attached.": "{count}个文件已上传。",
|
|
95
95
|
"{currentStep} of {allSteps}": "{currentStep} / {allSteps}",
|
|
96
96
|
"{doneNumber} files imported.": "{doneNumber}个文件已导入。",
|
|
97
|
+
"{label} must be at least {minLength} characters.": "{label}应至少为{minLength}位字符。",
|
|
97
98
|
"{label} must be at least {minLength} digits.": "{label}应至少为{minLength}位数字。",
|
|
99
|
+
"{label} must be less than {maxLength} characters.": "{label}应少于{maxLength}位字符。",
|
|
98
100
|
"{label} must be less than {maxLength} digits.": "{label}应少于{maxLength}位数字。",
|
|
101
|
+
"{label} must be {length} characters.": "{label}应为{length}位字符。",
|
|
99
102
|
"{label} must be {length} digits.": "{label}应为{length}位数字。",
|
|
103
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label}应为{length}位字符。",
|
|
100
104
|
"{label} must be {minLength} - {maxLength} digits.": "{label}应为{minLength}至{maxLength}位数字。",
|
|
101
|
-
"{label} must be at least {minLength} characters.": "{label}应至少为{minLength}位字符。",
|
|
102
|
-
"{label} must be less than {maxLength} characters.": "{label}应少于{maxLength}位字符。",
|
|
103
105
|
"{label} must match the pattern {pattern}.": "{label}与模式{pattern}不匹配。",
|
|
104
|
-
"{label} must be {minLength} - {maxLength} characters.": "{label}应为{length}位字符。",
|
|
105
106
|
"{processingNumber} files in progress...": "{processingNumber}个文件正在处理..."
|
|
106
107
|
}
|
|
@@ -94,13 +94,14 @@
|
|
|
94
94
|
"{count} files attached.": "{count}附加文件。",
|
|
95
95
|
"{currentStep} of {allSteps}": "{currentStep} / {allSteps}",
|
|
96
96
|
"{doneNumber} files imported.": "{doneNumber}導入的文件。",
|
|
97
|
+
"{label} must be at least {minLength} characters.": "",
|
|
97
98
|
"{label} must be at least {minLength} digits.": "",
|
|
99
|
+
"{label} must be less than {maxLength} characters.": "",
|
|
98
100
|
"{label} must be less than {maxLength} digits.": "",
|
|
101
|
+
"{label} must be {length} characters.": "",
|
|
99
102
|
"{label} must be {length} digits.": "",
|
|
103
|
+
"{label} must be {minLength} - {maxLength} characters.": "",
|
|
100
104
|
"{label} must be {minLength} - {maxLength} digits.": "",
|
|
101
|
-
"{label} must be at least {minLength} characters.": "",
|
|
102
|
-
"{label} must be less than {maxLength} characters.": "",
|
|
103
105
|
"{label} must match the pattern {pattern}.": "",
|
|
104
|
-
"{label} must be {minLength} - {maxLength} characters.": "",
|
|
105
106
|
"{processingNumber} files in progress...": "{processingNumber}正在進行的文件。。。"
|
|
106
107
|
}
|
package/es/media/media.js
CHANGED
|
@@ -15,7 +15,7 @@ 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
17
|
import { useRef, useState, useContext } from 'react';
|
|
18
|
-
import { Document, Page } from 'react-pdf';
|
|
18
|
+
import { Document, Page } from 'react-pdf/dist/esm/entry.webpack';
|
|
19
19
|
import { LocaleContext } from '../locale';
|
|
20
20
|
|
|
21
21
|
var MediaItem = function MediaItem(_ref) {
|
package/es/media/preview.js
CHANGED
|
@@ -23,7 +23,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
23
23
|
|
|
24
24
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
25
|
import { useState, useRef, useContext, useReducer } from 'react';
|
|
26
|
-
import { Document, Page } from 'react-pdf';
|
|
26
|
+
import { Document, Page } from 'react-pdf/dist/esm/entry.webpack';
|
|
27
27
|
import classnames from 'classnames';
|
|
28
28
|
import { ArrowLeftOutlined, ArrowRightOutlined } from 'iglooicon';
|
|
29
29
|
import Modal from '../modal';
|
package/es/upload-photo/media.js
CHANGED
|
@@ -12,7 +12,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
12
12
|
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import { useState, useContext } from 'react';
|
|
15
|
-
import { Document, Page } from 'react-pdf';
|
|
15
|
+
import { Document, Page } from 'react-pdf/dist/esm/entry.webpack';
|
|
16
16
|
import { LocaleContext } from '../locale';
|
|
17
17
|
|
|
18
18
|
var MediaItem = function MediaItem(_ref) {
|
|
@@ -18,7 +18,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
18
18
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
19
|
import { useState, useContext, useReducer, useRef } from 'react';
|
|
20
20
|
import Typography from '../typography';
|
|
21
|
-
import { Document, Page } from 'react-pdf';
|
|
21
|
+
import { Document, Page } from 'react-pdf/dist/esm/entry.webpack';
|
|
22
22
|
import { ErrorFilled } from 'iglooicon';
|
|
23
23
|
import LocaleContext from '../locale/locale-context';
|
|
24
24
|
import Modal from '../modal';
|
package/lib/input/input.js
CHANGED
|
@@ -40,10 +40,26 @@ var IglooInput = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
40
40
|
IglooInput.formItemPropsHandler = function (config) {
|
|
41
41
|
var maxLength = config.maxLength,
|
|
42
42
|
minLength = config.minLength,
|
|
43
|
+
length = config.length,
|
|
43
44
|
pattern = config.pattern,
|
|
44
45
|
label = config.label;
|
|
45
46
|
var rules = [];
|
|
46
47
|
|
|
48
|
+
if (length !== undefined) {
|
|
49
|
+
rules.push({
|
|
50
|
+
validator: function validator(_, value) {
|
|
51
|
+
if (value === undefined || value === null || value.length === length) return Promise.resolve();
|
|
52
|
+
return Promise.reject((0, _locale.staticFormatMessage)({
|
|
53
|
+
id: '{label} must be {length} characters.',
|
|
54
|
+
values: {
|
|
55
|
+
length: length,
|
|
56
|
+
label: label
|
|
57
|
+
}
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
47
63
|
if (maxLength !== undefined && minLength !== undefined) {
|
|
48
64
|
rules.push({
|
|
49
65
|
validator: function validator(_, value) {
|
|
@@ -94,13 +94,14 @@
|
|
|
94
94
|
"{count} files attached.": "{count} files attached.",
|
|
95
95
|
"{currentStep} of {allSteps}": "{currentStep} of {allSteps}",
|
|
96
96
|
"{doneNumber} files imported.": "{doneNumber} files imported.",
|
|
97
|
+
"{label} must be at least {minLength} characters.": "{label} must be at least {minLength} characters.",
|
|
97
98
|
"{label} must be at least {minLength} digits.": "{label} must be at least {minLength} digits.",
|
|
99
|
+
"{label} must be less than {maxLength} characters.": "{label} must be less than {maxLength} characters.",
|
|
98
100
|
"{label} must be less than {maxLength} digits.": "{label} must be less than {maxLength} digits.",
|
|
101
|
+
"{label} must be {length} characters.": "{label} must be {length} characters.",
|
|
99
102
|
"{label} must be {length} digits.": "{label} must be {length} digits.",
|
|
100
|
-
"{label} must be {minLength} - {maxLength} digits.": "{label} must be {minLength} - {maxLength} digits.",
|
|
101
|
-
"{label} must be at least {minLength} characters.": "{label} must be at least {minLength} characters.",
|
|
102
|
-
"{label} must be less than {maxLength} characters.": "{label} must be less than {maxLength} characters.",
|
|
103
|
-
"{label} must match the pattern {pattern}.": "{label} must match ther pattern {pattern}.",
|
|
104
103
|
"{label} must be {minLength} - {maxLength} characters.": "{label} must be {minLength} - {maxLength} characters.",
|
|
104
|
+
"{label} must be {minLength} - {maxLength} digits.": "{label} must be {minLength} - {maxLength} digits.",
|
|
105
|
+
"{label} must match the pattern {pattern}.": "{label} must match the pattern {pattern}.",
|
|
105
106
|
"{processingNumber} files in progress...": "{processingNumber} files in progress..."
|
|
106
107
|
}
|
|
@@ -94,13 +94,14 @@
|
|
|
94
94
|
"{count} files attached.": "{count} file terlampir.",
|
|
95
95
|
"{currentStep} of {allSteps}": "{currentStep} dari {allSteps}",
|
|
96
96
|
"{doneNumber} files imported.": "{doneNumber} data terunggah.",
|
|
97
|
+
"{label} must be at least {minLength} characters.": "{label} minimal harus {minLength} karakter.",
|
|
97
98
|
"{label} must be at least {minLength} digits.": "{label} minimal harus {minLength} digit.",
|
|
99
|
+
"{label} must be less than {maxLength} characters.": "{label} harus kurang dari {maxLength} karakter.",
|
|
98
100
|
"{label} must be less than {maxLength} digits.": "{label} harus kurang dari {maxLength} digit.",
|
|
101
|
+
"{label} must be {length} characters.": "{label} harus {length} karakter.",
|
|
99
102
|
"{label} must be {length} digits.": "{label} harus {length} digit.",
|
|
103
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label} harus {minLength} - {maxLength} karakter.",
|
|
100
104
|
"{label} must be {minLength} - {maxLength} digits.": "{label} harus {minLength} - {maxLength} digit.",
|
|
101
|
-
"{label} must be at least {minLength} characters.": "{label} minimal harus {minLength} karakter.",
|
|
102
|
-
"{label} must be less than {maxLength} characters.": "{label} harus kurang dari {maxLength} karakter.",
|
|
103
105
|
"{label} must match the pattern {pattern}.": "{label} harus sesuai dengan pola {pattern}.",
|
|
104
|
-
"{label} must be {minLength} - {maxLength} characters.": "{label} harus {minLength} - {maxLength} karakter.",
|
|
105
106
|
"{processingNumber} files in progress...": "{processingNumber} data dalam proses..."
|
|
106
107
|
}
|
|
@@ -94,13 +94,14 @@
|
|
|
94
94
|
"{count} files attached.": "{count} ไฟล์ที่แนบมา",
|
|
95
95
|
"{currentStep} of {allSteps}": "{currentStep} จาก {allSteps}",
|
|
96
96
|
"{doneNumber} files imported.": "{doneNumber} ไฟล์นำเข้าเสร็จแล้ว",
|
|
97
|
+
"{label} must be at least {minLength} characters.": "{label} ต้องมีอย่างน้อย {minLength} ตัวอักษร",
|
|
97
98
|
"{label} must be at least {minLength} digits.": "{label} ต้องมีอย่างน้อย {minLength} หลัก",
|
|
99
|
+
"{label} must be less than {maxLength} characters.": "{label} ต้องน้อยกว่า {maxLength} ตัวอักษร",
|
|
98
100
|
"{label} must be less than {maxLength} digits.": "{label} ต้องน้อยกว่า {maxLength} หลัก",
|
|
101
|
+
"{label} must be {length} characters.": "{label} ต้องเป็น {length} ตัวอักษร",
|
|
99
102
|
"{label} must be {length} digits.": "{label} ต้องเป็น {length} หลัก",
|
|
103
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label} ต้องเป็น {minLength} - {maxLength} ตัวอักษร",
|
|
100
104
|
"{label} must be {minLength} - {maxLength} digits.": "{label} ต้องเป็น {minLength} - {maxLength} หลัก",
|
|
101
|
-
"{label} must be at least {minLength} characters.": "{label} ต้องมีอย่างน้อย {minLength} ตัวอักษร",
|
|
102
|
-
"{label} must be less than {maxLength} characters.": "{label} ต้องน้อยกว่า {maxLength} ตัวอักษร",
|
|
103
105
|
"{label} must match the pattern {pattern}.": "{label} ต้องตรงกับรูปแบบ {pattern}.",
|
|
104
|
-
"{label} must be {minLength} - {maxLength} characters.": "{label} ต้องเป็น {minLength} - {maxLength} ตัวอักษร",
|
|
105
106
|
"{processingNumber} files in progress...": "{processingNumber} ไฟล์กำลังดำเนินการ..."
|
|
106
107
|
}
|
|
@@ -94,13 +94,14 @@
|
|
|
94
94
|
"{count} files attached.": "{count} tập tin đính kèm.",
|
|
95
95
|
"{currentStep} of {allSteps}": "{currentStep} trong {allSteps}",
|
|
96
96
|
"{doneNumber} files imported.": "{doneNumber} tệp đã được nhập.",
|
|
97
|
+
"{label} must be at least {minLength} characters.": "{label} phải có ít nhất {minLength} nhân vật.",
|
|
97
98
|
"{label} must be at least {minLength} digits.": "{label} phải có ít nhất {minLength} chữ số.",
|
|
99
|
+
"{label} must be less than {maxLength} characters.": "{label} phải có ít hơn {maxLength} nhân vật.",
|
|
98
100
|
"{label} must be less than {maxLength} digits.": "{label} phải có ít hơn {maxLength} chữ số.",
|
|
101
|
+
"{label} must be {length} characters.": "{label} phải là {length} nhân vật.",
|
|
99
102
|
"{label} must be {length} digits.": "{label} phải là {length} chữ số.",
|
|
103
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label} phải là {minLength} - {maxLength} nhân vật.",
|
|
100
104
|
"{label} must be {minLength} - {maxLength} digits.": "{label} phải là {minLength} - {maxLength} chữ số.",
|
|
101
|
-
"{label} must be at least {minLength} characters.": "{label} phải có ít nhất {minLength} nhân vật.",
|
|
102
|
-
"{label} must be less than {maxLength} characters.": "{label} phải có ít hơn {maxLength} nhân vật.",
|
|
103
105
|
"{label} must match the pattern {pattern}.": "{label} phải khớp với mẫu {pattern}.",
|
|
104
|
-
"{label} must be {minLength} - {maxLength} characters.": "{label} phải là {minLength} - {maxLength} nhân vật.",
|
|
105
106
|
"{processingNumber} files in progress...": "{processingNumber} đang được xử lý..."
|
|
106
107
|
}
|
|
@@ -94,13 +94,14 @@
|
|
|
94
94
|
"{count} files attached.": "{count}个文件已上传。",
|
|
95
95
|
"{currentStep} of {allSteps}": "{currentStep} / {allSteps}",
|
|
96
96
|
"{doneNumber} files imported.": "{doneNumber}个文件已导入。",
|
|
97
|
+
"{label} must be at least {minLength} characters.": "{label}应至少为{minLength}位字符。",
|
|
97
98
|
"{label} must be at least {minLength} digits.": "{label}应至少为{minLength}位数字。",
|
|
99
|
+
"{label} must be less than {maxLength} characters.": "{label}应少于{maxLength}位字符。",
|
|
98
100
|
"{label} must be less than {maxLength} digits.": "{label}应少于{maxLength}位数字。",
|
|
101
|
+
"{label} must be {length} characters.": "{label}应为{length}位字符。",
|
|
99
102
|
"{label} must be {length} digits.": "{label}应为{length}位数字。",
|
|
103
|
+
"{label} must be {minLength} - {maxLength} characters.": "{label}应为{length}位字符。",
|
|
100
104
|
"{label} must be {minLength} - {maxLength} digits.": "{label}应为{minLength}至{maxLength}位数字。",
|
|
101
|
-
"{label} must be at least {minLength} characters.": "{label}应至少为{minLength}位字符。",
|
|
102
|
-
"{label} must be less than {maxLength} characters.": "{label}应少于{maxLength}位字符。",
|
|
103
105
|
"{label} must match the pattern {pattern}.": "{label}与模式{pattern}不匹配。",
|
|
104
|
-
"{label} must be {minLength} - {maxLength} characters.": "{label}应为{length}位字符。",
|
|
105
106
|
"{processingNumber} files in progress...": "{processingNumber}个文件正在处理..."
|
|
106
107
|
}
|
|
@@ -94,13 +94,14 @@
|
|
|
94
94
|
"{count} files attached.": "{count}附加文件。",
|
|
95
95
|
"{currentStep} of {allSteps}": "{currentStep} / {allSteps}",
|
|
96
96
|
"{doneNumber} files imported.": "{doneNumber}導入的文件。",
|
|
97
|
+
"{label} must be at least {minLength} characters.": "",
|
|
97
98
|
"{label} must be at least {minLength} digits.": "",
|
|
99
|
+
"{label} must be less than {maxLength} characters.": "",
|
|
98
100
|
"{label} must be less than {maxLength} digits.": "",
|
|
101
|
+
"{label} must be {length} characters.": "",
|
|
99
102
|
"{label} must be {length} digits.": "",
|
|
103
|
+
"{label} must be {minLength} - {maxLength} characters.": "",
|
|
100
104
|
"{label} must be {minLength} - {maxLength} digits.": "",
|
|
101
|
-
"{label} must be at least {minLength} characters.": "",
|
|
102
|
-
"{label} must be less than {maxLength} characters.": "",
|
|
103
105
|
"{label} must match the pattern {pattern}.": "",
|
|
104
|
-
"{label} must be {minLength} - {maxLength} characters.": "",
|
|
105
106
|
"{processingNumber} files in progress...": "{processingNumber}正在進行的文件。。。"
|
|
106
107
|
}
|
package/lib/media/media.js
CHANGED
|
@@ -13,7 +13,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
|
|
14
14
|
var _react = require("react");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _entry = require("react-pdf/dist/esm/entry.webpack");
|
|
17
17
|
|
|
18
18
|
var _locale = require("../locale");
|
|
19
19
|
|
|
@@ -79,7 +79,7 @@ var MediaItem = function MediaItem(_ref) {
|
|
|
79
79
|
maxHeight: 80,
|
|
80
80
|
position: 'absolute'
|
|
81
81
|
},
|
|
82
|
-
children: (0, _jsxRuntime.jsx)(
|
|
82
|
+
children: (0, _jsxRuntime.jsx)(_entry.Document, {
|
|
83
83
|
ref: documentRef,
|
|
84
84
|
file: src,
|
|
85
85
|
onPassword: needPassword,
|
|
@@ -89,7 +89,7 @@ var MediaItem = function MediaItem(_ref) {
|
|
|
89
89
|
},
|
|
90
90
|
children: errorText
|
|
91
91
|
}),
|
|
92
|
-
children: (0, _jsxRuntime.jsx)(
|
|
92
|
+
children: (0, _jsxRuntime.jsx)(_entry.Page, {
|
|
93
93
|
pageNumber: 1,
|
|
94
94
|
scale: 0.1
|
|
95
95
|
})
|
package/lib/media/preview.js
CHANGED
|
@@ -17,7 +17,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
17
17
|
|
|
18
18
|
var _react = require("react");
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _entry = require("react-pdf/dist/esm/entry.webpack");
|
|
21
21
|
|
|
22
22
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
23
23
|
|
|
@@ -184,7 +184,7 @@ var PdfViewer = function PdfViewer(_ref) {
|
|
|
184
184
|
position: 'absolute',
|
|
185
185
|
overflow: 'auto'
|
|
186
186
|
},
|
|
187
|
-
children: (0, _jsxRuntime.jsx)(
|
|
187
|
+
children: (0, _jsxRuntime.jsx)(_entry.Document, {
|
|
188
188
|
file: src,
|
|
189
189
|
onLoadSuccess: handlePageInit,
|
|
190
190
|
ref: documentRef,
|
|
@@ -192,7 +192,7 @@ var PdfViewer = function PdfViewer(_ref) {
|
|
|
192
192
|
children: Array.from({
|
|
193
193
|
length: pageSize
|
|
194
194
|
}).map(function (_, index) {
|
|
195
|
-
return (0, _jsxRuntime.jsx)(
|
|
195
|
+
return (0, _jsxRuntime.jsx)(_entry.Page, {
|
|
196
196
|
pageNumber: index + 1,
|
|
197
197
|
scale: scale
|
|
198
198
|
}, index);
|
|
@@ -210,12 +210,12 @@ var PdfViewer = function PdfViewer(_ref) {
|
|
|
210
210
|
position: 'absolute',
|
|
211
211
|
overflow: 'auto'
|
|
212
212
|
},
|
|
213
|
-
children: (0, _jsxRuntime.jsx)(
|
|
213
|
+
children: (0, _jsxRuntime.jsx)(_entry.Document, {
|
|
214
214
|
file: src,
|
|
215
215
|
onLoadSuccess: handlePageInit,
|
|
216
216
|
ref: documentRef,
|
|
217
217
|
onPassword: onPassword,
|
|
218
|
-
children: (0, _jsxRuntime.jsx)(
|
|
218
|
+
children: (0, _jsxRuntime.jsx)(_entry.Page, {
|
|
219
219
|
pageNumber: page,
|
|
220
220
|
scale: scale
|
|
221
221
|
})
|
|
@@ -9,7 +9,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
9
9
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _entry = require("react-pdf/dist/esm/entry.webpack");
|
|
13
13
|
|
|
14
14
|
var _locale = require("../locale");
|
|
15
15
|
|
|
@@ -55,12 +55,12 @@ var MediaItem = function MediaItem(_ref) {
|
|
|
55
55
|
className: className,
|
|
56
56
|
children: needPassword ? formatMessage({
|
|
57
57
|
id: 'Encrypted PDF'
|
|
58
|
-
}) : (0, _jsxRuntime.jsx)(
|
|
58
|
+
}) : (0, _jsxRuntime.jsx)(_entry.Document, {
|
|
59
59
|
file: src,
|
|
60
60
|
onPassword: function onPassword() {
|
|
61
61
|
setNeedPassword(true);
|
|
62
62
|
},
|
|
63
|
-
children: (0, _jsxRuntime.jsx)(
|
|
63
|
+
children: (0, _jsxRuntime.jsx)(_entry.Page, {
|
|
64
64
|
pageNumber: 1,
|
|
65
65
|
height: 96
|
|
66
66
|
})
|
|
@@ -19,7 +19,7 @@ var _react = require("react");
|
|
|
19
19
|
|
|
20
20
|
var _typography = _interopRequireDefault(require("../typography"));
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _entry = require("react-pdf/dist/esm/entry.webpack");
|
|
23
23
|
|
|
24
24
|
var _iglooicon = require("iglooicon");
|
|
25
25
|
|
|
@@ -157,14 +157,14 @@ var PDF = function PDF(_ref) {
|
|
|
157
157
|
|
|
158
158
|
return (0, _jsxRuntime.jsx)("div", {
|
|
159
159
|
className: "igloo-upload-preview-pdf",
|
|
160
|
-
children: (0, _jsxRuntime.jsx)(
|
|
160
|
+
children: (0, _jsxRuntime.jsx)(_entry.Document, {
|
|
161
161
|
file: src,
|
|
162
162
|
onLoadSuccess: handlePageInit,
|
|
163
163
|
onPassword: onPassword,
|
|
164
164
|
children: Array.from({
|
|
165
165
|
length: pageSize
|
|
166
166
|
}).map(function (_, index) {
|
|
167
|
-
return (0, _jsxRuntime.jsx)(
|
|
167
|
+
return (0, _jsxRuntime.jsx)(_entry.Page, {
|
|
168
168
|
pageNumber: index + 1,
|
|
169
169
|
scale: md ? 1 : 0.5
|
|
170
170
|
}, index);
|