dtable-ui-component 4.4.3-2 → 4.4.3-alpha1
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/lib/AutoNumberFormatter/index.js +7 -14
- package/lib/ButtonFormatter/index.js +9 -16
- package/lib/CTimeFormatter/index.js +9 -16
- package/lib/CheckboxEditor/index.js +8 -15
- package/lib/CheckboxFormatter/index.js +8 -15
- package/lib/CollaboratorEditor/index.js +21 -29
- package/lib/CollaboratorEditor/mb-collaborator-editor-popover/index.js +25 -32
- package/lib/CollaboratorEditor/pc-collaborator-editor-popover/index.js +18 -25
- package/lib/CollaboratorFormatter/index.js +12 -19
- package/lib/CollaboratorItem/index.js +10 -17
- package/lib/CreatorFormatter/index.js +12 -19
- package/lib/DTableCommonAddTool/index.js +6 -13
- package/lib/DTableCustomizeCollaboratorSelect/index.js +18 -26
- package/lib/DTableCustomizeSelect/index.js +15 -23
- package/lib/DTableFiltersPopover/constants/index.js +33 -38
- package/lib/DTableFiltersPopover/index.js +31 -38
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +46 -53
- package/lib/DTableFiltersPopover/utils/index.js +99 -128
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +26 -34
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +25 -33
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +26 -34
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +26 -34
- package/lib/DTableFiltersPopover/widgets/filter-item.js +120 -128
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +18 -26
- package/lib/DTableFiltersPopover/widgets/rate-item.js +8 -15
- package/lib/DTablePopover/index.js +8 -15
- package/lib/DTablePopover/utils.js +2 -9
- package/lib/DTableRadio/index.js +10 -17
- package/lib/DTableSearchInput/index.js +13 -21
- package/lib/DTableSearchInput/utils.js +2 -9
- package/lib/DTableSelect/dtable-select-label.js +6 -13
- package/lib/DTableSelect/index.js +10 -18
- package/lib/DTableSelect/utils.js +10 -20
- package/lib/DTableSwitch/index.js +7 -14
- package/lib/DateEditor/index.js +22 -30
- package/lib/DateEditor/mb-date-editor-popover/index.js +47 -55
- package/lib/DateEditor/pc-date-editor-popover.js +20 -27
- package/lib/DateFormatter/index.js +9 -16
- package/lib/Department-editor/constants.js +1 -7
- package/lib/Department-editor/department-multiple-select/index.js +24 -32
- package/lib/Department-editor/department-single-select.js +33 -41
- package/lib/Department-editor/index.js +14 -22
- package/lib/Department-editor/selected-departments/index.js +25 -32
- package/lib/Department-editor/utils.js +3 -11
- package/lib/DepartmentSingleSelectFormatter/index.js +9 -16
- package/lib/DigitalSignFormatter/index.js +15 -23
- package/lib/DigitalSignFormatter/utils.js +3 -11
- package/lib/DurationFormatter/index.js +9 -16
- package/lib/EditEditorButton/index.js +5 -12
- package/lib/EmailFormatter/index.js +7 -14
- package/lib/FieldDisplaySetting/field-item.js +14 -21
- package/lib/FieldDisplaySetting/index.js +19 -27
- package/lib/FileEditor/index.js +8 -15
- package/lib/FileEditor/pc-files-addition/index.js +0 -1
- package/lib/FileEditor/pc-files-addition/pc-file-uploaded-item.js +0 -1
- package/lib/FileEditor/pc-files-preview/index.js +0 -1
- package/lib/FileEditor/pc-files-preview/pc-file-item-preview.js +0 -1
- package/lib/FileFormatter/index.js +11 -19
- package/lib/FileItemFormatter/index.js +6 -14
- package/lib/FileItemFormatter/utils.js +2 -9
- package/lib/FileUploader/index.js +4 -11
- package/lib/FormulaFormatter/cell-value-validator.js +18 -24
- package/lib/FormulaFormatter/index.js +32 -39
- package/lib/FormulaFormatter/utils.js +13 -29
- package/lib/GeolocationFormatter/index.js +9 -16
- package/lib/HtmlLongTextFormatter/index.js +9 -17
- package/lib/HtmlLongTextFormatter/markdown2html.js +47 -0
- package/lib/HtmlLongTextFormatter/unified/index.js +400 -0
- package/lib/HtmlLongTextFormatter/vfile/core.js +155 -0
- package/lib/HtmlLongTextFormatter/vfile/index.js +40 -0
- package/lib/ImageFormatter/images-lazy-load.js +9 -16
- package/lib/ImageFormatter/index.js +16 -24
- package/lib/ImageFormatter/utils.js +2 -9
- package/lib/ImagePreviewerLightbox/index.js +12 -19
- package/lib/ImagePreviewerLightbox/utils.js +3 -11
- package/lib/LastModifierFormatter/index.js +12 -19
- package/lib/LinkEditor/index.js +25 -33
- package/lib/LinkEditor/link-editor-option.js +8 -15
- package/lib/LinkEditor/mb-link-editor-popover/index.js +23 -30
- package/lib/LinkEditor/pc-link-editor-popover/index.js +17 -24
- package/lib/LinkFormatter/index.js +13 -20
- package/lib/Loading/index.js +4 -11
- package/lib/LongTextFormatter/index.js +6 -13
- package/lib/MBEditorHeader/index.js +7 -14
- package/lib/MTimeFormatter/index.js +9 -16
- package/lib/ModalPortal/index.js +5 -12
- package/lib/MultipleSelectEditor/index.js +17 -25
- package/lib/MultipleSelectFormatter/index.js +10 -17
- package/lib/NotificationPopover/index.js +16 -24
- package/lib/NumberEditor/index.js +18 -25
- package/lib/NumberFormatter/index.js +9 -16
- package/lib/RateFormatter/index.js +8 -15
- package/lib/RoleStatusEditor/index.js +14 -22
- package/lib/RowExpandEmailFormatter/index.js +10 -17
- package/lib/RowExpandFileFormatter/index.js +8 -16
- package/lib/RowExpandFileFormatter/row-expand-file-item-formatter.js +18 -27
- package/lib/RowExpandFormatter/index.js +78 -86
- package/lib/RowExpandFormulaFormatter/index.js +34 -42
- package/lib/RowExpandImageFormatter/index.js +10 -19
- package/lib/RowExpandImageFormatter/row-expand-image-item-formatter.js +18 -27
- package/lib/RowExpandImageFormatter/utils.js +2 -9
- package/lib/RowExpandLinkFormatter/collaborator-item-formatter.js +7 -16
- package/lib/RowExpandLinkFormatter/index.js +37 -46
- package/lib/RowExpandLinkFormatter/utils.js +6 -17
- package/lib/RowExpandLinkFormatter/value-display-utils.js +5 -12
- package/lib/RowExpandRateFormatter/index.js +8 -15
- package/lib/RowExpandUrlFormatter/index.js +14 -21
- package/lib/SelectItem/index.js +4 -12
- package/lib/SelectOptionGroup/KeyCodes.js +1 -7
- package/lib/SelectOptionGroup/index.js +33 -32
- package/lib/SelectOptionGroup/option.js +4 -19
- package/lib/SimpleLongTextFormatter/index.js +20 -27
- package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +1 -7
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +8 -15
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +7 -14
- package/lib/SingleSelectEditor/index.js +18 -26
- package/lib/SingleSelectFormatter/index.js +9 -16
- package/lib/TextEditor/index.js +7 -14
- package/lib/TextFormatter/index.js +7 -14
- package/lib/UrlFormatter/index.js +7 -14
- package/lib/cellFormatterFactory/index.js +4 -11
- package/lib/common/ClickOutside.js +4 -12
- package/lib/common/delete-tip.js +12 -20
- package/lib/common/modal-portal.js +5 -13
- package/lib/constants/index.js +9 -28
- package/lib/data/dtable-value.js +6 -11
- package/lib/formatterConfig/base-formatter-config.js +46 -53
- package/lib/formatterConfig/index.js +9 -16
- package/lib/hooks/common-hooks.js +4 -11
- package/lib/index.js +75 -432
- package/lib/lang/index.js +13 -24
- package/lib/locals/de.js +1 -7
- package/lib/locals/en.js +1 -7
- package/lib/locals/fr.js +1 -7
- package/lib/locals/zh-CN.js +1 -7
- package/lib/select-editor/index.js +4 -27
- package/lib/select-editor/mb-select-editor-popover/index.js +33 -41
- package/lib/select-editor/pc-select-editor-popover/index.js +19 -26
- package/lib/select-editor/select-editor-option.js +8 -15
- package/lib/toaster/alert.js +11 -18
- package/lib/toaster/index.js +3 -10
- package/lib/toaster/toast.js +8 -16
- package/lib/toaster/toastManager.js +5 -13
- package/lib/toaster/toaster.js +7 -15
- package/lib/utils/dayjs.js +4 -11
- package/lib/utils/editor-utils.js +5 -15
- package/lib/utils/event-bus.js +1 -7
- package/lib/utils/utils.js +6 -17
- package/package.json +77 -63
package/package.json
CHANGED
|
@@ -1,22 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtable-ui-component",
|
|
3
|
-
"version": "4.4.3-
|
|
3
|
+
"version": "4.4.3-alpha1",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@seafile/react-image-lightbox": "2.0.5",
|
|
7
7
|
"@seafile/seafile-calendar": "0.0.24",
|
|
8
8
|
"@seafile/seafile-editor": "0.3.146",
|
|
9
9
|
"antd-mobile": "2.3.1",
|
|
10
|
+
"bail": "1.0.5",
|
|
10
11
|
"classnames": "^2.3.2",
|
|
11
12
|
"dayjs": "1.10.7",
|
|
13
|
+
"deepmerge": "^2.1.0",
|
|
12
14
|
"dtable-utils": "4.4.0",
|
|
15
|
+
"hast-util-sanitize": "^1.1.2",
|
|
16
|
+
"hast-util-to-html": "3.1.0",
|
|
13
17
|
"is-hotkey": "0.2.0",
|
|
14
18
|
"react": "17.0.2",
|
|
15
19
|
"react-app-polyfill": "^3.0.0",
|
|
16
20
|
"react-dom": "17.0.2",
|
|
17
21
|
"react-responsive": "9.0.2",
|
|
18
22
|
"react-select": "5.7.0",
|
|
19
|
-
"react-transition-group": "^4.4.1"
|
|
23
|
+
"react-transition-group": "^4.4.1",
|
|
24
|
+
"reactstrap": "8.9.0",
|
|
25
|
+
"rehype-format": "^2.2.0",
|
|
26
|
+
"rehype-mathjax": "^2.0.0",
|
|
27
|
+
"rehype-raw": "^2.0.0",
|
|
28
|
+
"remark-breaks": "^1.0.0",
|
|
29
|
+
"remark-math": "^3.0.0",
|
|
30
|
+
"remark-parse": "^5.0.0",
|
|
31
|
+
"remark-rehype": "^3.0.0",
|
|
32
|
+
"remark-slug": "^5.0.0",
|
|
33
|
+
"trough": "1.0.5",
|
|
34
|
+
"vfile": "2.3.0",
|
|
35
|
+
"x-is-string": "0.1.0",
|
|
36
|
+
"xtend": "^4.0.1"
|
|
20
37
|
},
|
|
21
38
|
"scripts": {
|
|
22
39
|
"lint": "./node_modules/.bin/eslint ./src/ --fix",
|
|
@@ -56,11 +73,13 @@
|
|
|
56
73
|
]
|
|
57
74
|
},
|
|
58
75
|
"devDependencies": {
|
|
59
|
-
"@babel/cli": "7.
|
|
60
|
-
"@babel/core": "^7.
|
|
61
|
-
"@babel/
|
|
62
|
-
"@babel/plugin-proposal-
|
|
63
|
-
"@babel/plugin-
|
|
76
|
+
"@babel/cli": "^7.8.4",
|
|
77
|
+
"@babel/core": "^7.8.4",
|
|
78
|
+
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
|
79
|
+
"@babel/plugin-proposal-export-default-from": "^7.8.3",
|
|
80
|
+
"@babel/plugin-proposal-export-namespace-from": "^7.8.3",
|
|
81
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.9.5",
|
|
82
|
+
"@babel/plugin-transform-runtime": "^7.10.1",
|
|
64
83
|
"@babel/polyfill": "^7.10.1",
|
|
65
84
|
"@babel/preset-env": "^7.9.5",
|
|
66
85
|
"@storybook/addon-actions": "^5.3.14",
|
|
@@ -69,71 +88,66 @@
|
|
|
69
88
|
"@storybook/addon-links": "^5.3.14",
|
|
70
89
|
"@storybook/addons": "^5.3.14",
|
|
71
90
|
"@storybook/react": "^7.5.0",
|
|
72
|
-
"@
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
75
|
-
"@testing-library/
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"
|
|
80
|
-
"babel-jest": "^
|
|
81
|
-
"babel-loader": "
|
|
91
|
+
"@svgr/webpack": "4.3.3",
|
|
92
|
+
"@testing-library/jest-dom": "^4.2.4",
|
|
93
|
+
"@testing-library/react": "^9.5.0",
|
|
94
|
+
"@testing-library/user-event": "^7.2.1",
|
|
95
|
+
"@typescript-eslint/eslint-plugin": "^2.10.0",
|
|
96
|
+
"@typescript-eslint/parser": "^2.10.0",
|
|
97
|
+
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
|
|
98
|
+
"babel-eslint": "10.0.3",
|
|
99
|
+
"babel-jest": "^24.9.0",
|
|
100
|
+
"babel-loader": "8.0.6",
|
|
82
101
|
"babel-plugin-import": "^1.13.6",
|
|
83
102
|
"babel-plugin-named-asset-import": "^0.3.6",
|
|
84
|
-
"babel-preset-react-app": "^
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"css-loader": "^6.5.1",
|
|
91
|
-
"css-minimizer-webpack-plugin": "^3.2.0",
|
|
92
|
-
"dotenv": "^10.0.0",
|
|
93
|
-
"dotenv-expand": "^5.1.0",
|
|
103
|
+
"babel-preset-react-app": "^9.1.1",
|
|
104
|
+
"camelcase": "^5.3.1",
|
|
105
|
+
"case-sensitive-paths-webpack-plugin": "2.3.0",
|
|
106
|
+
"css-loader": "3.4.2",
|
|
107
|
+
"dotenv": "8.2.0",
|
|
108
|
+
"dotenv-expand": "5.1.0",
|
|
94
109
|
"enzyme": "^3.11.0",
|
|
95
|
-
"eslint": "^
|
|
96
|
-
"eslint-config-react-app": "^
|
|
97
|
-
"eslint-
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
110
|
+
"eslint": "^6.6.0",
|
|
111
|
+
"eslint-config-react-app": "^5.2.0",
|
|
112
|
+
"eslint-loader": "3.0.3",
|
|
113
|
+
"eslint-plugin-flowtype": "4.6.0",
|
|
114
|
+
"eslint-plugin-import": "2.20.0",
|
|
115
|
+
"eslint-plugin-jsx-a11y": "6.2.3",
|
|
116
|
+
"eslint-plugin-react": "7.18.0",
|
|
117
|
+
"eslint-plugin-react-hooks": "^1.6.1",
|
|
118
|
+
"file-loader": "4.3.0",
|
|
119
|
+
"fs-extra": "^8.1.0",
|
|
120
|
+
"html-webpack-plugin": "4.0.0-beta.11",
|
|
101
121
|
"i18next": "22.4.9",
|
|
102
122
|
"i18next-browser-languagedetector": "7.0.1",
|
|
103
123
|
"i18next-xhr-backend": "3.2.2",
|
|
104
124
|
"identity-obj-proxy": "3.0.0",
|
|
105
|
-
"jest": "
|
|
106
|
-
"jest-
|
|
107
|
-
"jest-
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"postcss": "
|
|
113
|
-
"postcss-
|
|
114
|
-
"postcss-
|
|
115
|
-
"postcss-
|
|
116
|
-
"postcss-
|
|
117
|
-
"prompts": "^2.4.2",
|
|
118
|
-
"react-app-polyfill": "^3.0.0",
|
|
125
|
+
"jest": "24.9.0",
|
|
126
|
+
"jest-environment-jsdom-fourteen": "1.0.1",
|
|
127
|
+
"jest-resolve": "24.9.0",
|
|
128
|
+
"jest-watch-typeahead": "0.4.2",
|
|
129
|
+
"mini-css-extract-plugin": "0.9.0",
|
|
130
|
+
"optimize-css-assets-webpack-plugin": "5.0.3",
|
|
131
|
+
"pnp-webpack-plugin": "1.6.0",
|
|
132
|
+
"postcss-flexbugs-fixes": "4.1.0",
|
|
133
|
+
"postcss-loader": "3.0.0",
|
|
134
|
+
"postcss-normalize": "8.0.1",
|
|
135
|
+
"postcss-preset-env": "6.7.0",
|
|
136
|
+
"postcss-safe-parser": "4.0.1",
|
|
119
137
|
"react-dev-utils": "^12.0.1",
|
|
120
|
-
"react-refresh": "^0.11.0",
|
|
121
138
|
"react-element-to-jsx-string": "^14.3.1",
|
|
122
139
|
"react-i18next": "12.1.4",
|
|
123
|
-
"resolve": "
|
|
124
|
-
"resolve-url-loader": "
|
|
125
|
-
"sass-loader": "
|
|
126
|
-
"semver": "
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"webpack": "
|
|
134
|
-
"webpack-
|
|
135
|
-
"webpack-manifest-plugin": "^4.0.2",
|
|
136
|
-
"workbox-webpack-plugin": "^6.4.1",
|
|
137
|
-
"worker-loader": "3.0.8"
|
|
140
|
+
"resolve": "1.15.0",
|
|
141
|
+
"resolve-url-loader": "3.1.5",
|
|
142
|
+
"sass-loader": "8.0.2",
|
|
143
|
+
"semver": "6.3.1",
|
|
144
|
+
"style-loader": "0.23.1",
|
|
145
|
+
"terser-webpack-plugin": "2.3.4",
|
|
146
|
+
"ts-pnp": "1.1.5",
|
|
147
|
+
"url-loader": "2.3.0",
|
|
148
|
+
"webpack": "4.41.5",
|
|
149
|
+
"webpack-dev-server": "3.11.3",
|
|
150
|
+
"webpack-manifest-plugin": "2.2.0",
|
|
151
|
+
"workbox-webpack-plugin": "4.3.1"
|
|
138
152
|
}
|
|
139
153
|
}
|