dtable-ui-component 0.3.2 → 0.3.3
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/assets/dtable-font/dtable-font.eot +0 -0
- package/assets/dtable-font/dtable-font.svg +319 -11
- package/assets/dtable-font/dtable-font.ttf +0 -0
- package/assets/dtable-font/dtable-font.woff +0 -0
- package/assets/dtable-font/dtable-font.woff2 +0 -0
- package/assets/dtable-font.css +630 -14
- package/lib/ButtonFormatter/index.js +2 -6
- package/lib/DTableCustomizeCollaboratorSelect/index.css +1 -1
- package/lib/FileFormatter/index.js +3 -2
- package/lib/FileItemFormatter/index.js +1 -1
- package/lib/ImageFormatter/images-lazy-load.js +11 -15
- package/lib/RowExpandFileFormatter/index.css +72 -0
- package/lib/RowExpandFileFormatter/index.js +59 -0
- package/lib/RowExpandFileFormatter/row-expand-file-item-formatter.js +125 -0
- package/lib/RowExpandFormatter/index.css +73 -0
- package/lib/RowExpandFormatter/index.js +439 -0
- package/lib/RowExpandImageFormatter/index.css +79 -0
- package/lib/RowExpandImageFormatter/index.js +127 -0
- package/lib/RowExpandImageFormatter/row-expand-image-item-formatter.js +128 -0
- package/lib/RowExpandImageFormatter/utils.js +7 -0
- package/lib/RowExpandLinkFormatter/collaborator-item-formatter.js +164 -0
- package/lib/RowExpandLinkFormatter/column-data-constants.js +20 -0
- package/lib/RowExpandLinkFormatter/date-utils.js +127 -0
- package/lib/RowExpandLinkFormatter/formula-constants.js +9 -0
- package/lib/RowExpandLinkFormatter/index.css +25 -0
- package/lib/RowExpandLinkFormatter/index.js +170 -0
- package/lib/RowExpandLinkFormatter/number-precision.js +116 -0
- package/lib/RowExpandLinkFormatter/utils.js +58 -0
- package/lib/RowExpandLinkFormatter/value-display-utils.js +401 -0
- package/lib/common/delete-tip.css +16 -0
- package/lib/common/delete-tip.js +84 -0
- package/lib/common/modal-portal.js +44 -0
- package/lib/constants/cell-types.js +5 -1
- package/lib/data/dtable-value.js +2731 -0
- package/lib/index.js +7 -1
- package/lib/lang/index.js +1 -1
- package/lib/locals/en.js +17 -13
- package/lib/locals/zh-CN.js +16 -12
- package/package.json +3 -1
package/lib/index.js
CHANGED
|
@@ -33,7 +33,13 @@ export { default as ButtonFormatter } from './ButtonFormatter';
|
|
|
33
33
|
export { default as ImagePreviewerLightbox } from './ImagePreviewerLightbox';
|
|
34
34
|
export { default as CollaboratorItem } from './CollaboratorItem';
|
|
35
35
|
export { default as FileItemFormatter } from './FileItemFormatter';
|
|
36
|
-
export { default as DigitalSignFormatter } from './DigitalSignFormatter';
|
|
36
|
+
export { default as DigitalSignFormatter } from './DigitalSignFormatter';
|
|
37
|
+
export { default as SimpleLongTextFormatter } from './SimpleLongTextFormatter'; // row expand formatter
|
|
38
|
+
|
|
39
|
+
export { default as RowExpandFileFormatter } from './RowExpandFileFormatter';
|
|
40
|
+
export { default as RowExpandImageFormatter } from './RowExpandImageFormatter';
|
|
41
|
+
export { default as RowExpandLinkFormatter } from './RowExpandLinkFormatter';
|
|
42
|
+
export { default as RowExpandFormatter } from './RowExpandFormatter'; // editor
|
|
37
43
|
|
|
38
44
|
export { default as TextEditor } from './TextEditor';
|
|
39
45
|
export { default as NumberEditor } from './NumberEditor';
|
package/lib/lang/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var langData = {
|
|
|
9
9
|
'zh-cn': zh_CN
|
|
10
10
|
};
|
|
11
11
|
var LANGUAGE = 'en';
|
|
12
|
-
var LANGUAGE_MAP =
|
|
12
|
+
var LANGUAGE_MAP = langData[LANGUAGE];
|
|
13
13
|
export function setLocale(args) {
|
|
14
14
|
var lang = typeof args === 'string' ? args : LANGUAGE;
|
|
15
15
|
LANGUAGE_MAP = langData[lang] || langData[LANGUAGE];
|
package/lib/locals/en.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
var en = {
|
|
2
|
-
Add_an_option:
|
|
3
|
-
Find_an_option:
|
|
4
|
-
No_options_available:
|
|
5
|
-
Current_option:
|
|
6
|
-
No_option:
|
|
7
|
-
Choose_an_option:
|
|
8
|
-
Add_a_collaborator:
|
|
9
|
-
Find_a_collaborator:
|
|
10
|
-
No_collaborators_available:
|
|
2
|
+
Add_an_option: 'Add an option',
|
|
3
|
+
Find_an_option: 'Find a option',
|
|
4
|
+
No_options_available: 'No options available',
|
|
5
|
+
Current_option: 'Current option',
|
|
6
|
+
No_option: 'No option',
|
|
7
|
+
Choose_an_option: 'Choose an option',
|
|
8
|
+
Add_a_collaborator: 'Add a collaborator',
|
|
9
|
+
Find_a_collaborator: 'Find a collaborator',
|
|
10
|
+
No_collaborators_available: 'No collaborators available',
|
|
11
11
|
Done: 'Done',
|
|
12
|
-
Choose_a_collaborator:
|
|
13
|
-
Please_input:
|
|
14
|
-
Please_select:
|
|
15
|
-
Clear:
|
|
12
|
+
Choose_a_collaborator: 'Choose a collaborator',
|
|
13
|
+
Please_input: 'Please input',
|
|
14
|
+
Please_select: 'Please select',
|
|
15
|
+
Clear: 'Clear',
|
|
16
|
+
Are_you_sure_you_want_to_delete_this_file: 'Are you sure you want to delete this file?',
|
|
17
|
+
Are_you_sure_you_want_to_delete_this_image: 'Are you sure you want to delete this image?',
|
|
18
|
+
Cancel: 'Cancel',
|
|
19
|
+
Delete: 'Delete'
|
|
16
20
|
};
|
|
17
21
|
export default en;
|
package/lib/locals/zh-CN.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
var zh_CN = {
|
|
2
2
|
Add_an_option: '添加一个选项',
|
|
3
|
-
Find_an_option:
|
|
4
|
-
No_options_available:
|
|
5
|
-
Current_option:
|
|
6
|
-
No_option:
|
|
7
|
-
Choose_an_option:
|
|
8
|
-
Add_a_collaborator:
|
|
9
|
-
Find_a_collaborator:
|
|
10
|
-
No_collaborators_available:
|
|
3
|
+
Find_an_option: '查找标签',
|
|
4
|
+
No_options_available: '没有找到标签。',
|
|
5
|
+
Current_option: '当前标签',
|
|
6
|
+
No_option: '没有标签',
|
|
7
|
+
Choose_an_option: '选择一个标签',
|
|
8
|
+
Add_a_collaborator: '添加协作者',
|
|
9
|
+
Find_a_collaborator: '查找协作者',
|
|
10
|
+
No_collaborators_available: '没有找到协作者',
|
|
11
11
|
Done: '完成',
|
|
12
|
-
Choose_a_collaborator:
|
|
13
|
-
Please_input:
|
|
14
|
-
Please_select:
|
|
15
|
-
Clear:
|
|
12
|
+
Choose_a_collaborator: '选择一个协作者',
|
|
13
|
+
Please_input: '请输入',
|
|
14
|
+
Please_select: '请选择',
|
|
15
|
+
Clear: '清空',
|
|
16
|
+
Are_you_sure_you_want_to_delete_this_file: '你确定要删除此文件吗?',
|
|
17
|
+
Are_you_sure_you_want_to_delete_this_image: '你确定要删除此图片吗?',
|
|
18
|
+
Cancel: '取消',
|
|
19
|
+
Delete: '删除'
|
|
16
20
|
};
|
|
17
21
|
export default zh_CN;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtable-ui-component",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@seafile/react-image-lightbox": "0.0.9",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"antd-mobile": "^2.3.3",
|
|
10
10
|
"astro-classname": "^2.1.0",
|
|
11
11
|
"bail": "1.0.5",
|
|
12
|
+
"classnames": "^2.3.2",
|
|
12
13
|
"dayjs": "1.10.7",
|
|
13
14
|
"deepmerge": "^2.1.0",
|
|
14
15
|
"enzyme": "^3.11.0",
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
"xtend": "^4.0.1"
|
|
39
40
|
},
|
|
40
41
|
"scripts": {
|
|
42
|
+
"lint": "./node_modules/.bin/eslint ./src/ --fix",
|
|
41
43
|
"clean:esm": "rm -rf es && mkdir es",
|
|
42
44
|
"clean:lib": "rm -rf lib && mkdir lib",
|
|
43
45
|
"clean:dist": "rm -rf dist && mkdir dist",
|