dtable-ui-component 4.4.4 → 4.4.6
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 +14 -7
- package/lib/ButtonFormatter/index.js +16 -9
- package/lib/CTimeFormatter/index.js +16 -9
- package/lib/CheckboxEditor/index.js +15 -8
- package/lib/CheckboxFormatter/index.js +15 -8
- package/lib/CollaboratorEditor/index.js +29 -21
- package/lib/CollaboratorEditor/mb-collaborator-editor-popover/index.js +32 -25
- package/lib/CollaboratorEditor/pc-collaborator-editor-popover/index.js +25 -18
- package/lib/CollaboratorFormatter/index.js +19 -12
- package/lib/CollaboratorItem/index.js +17 -10
- package/lib/CreatorFormatter/index.js +19 -12
- package/lib/DTableCommonAddTool/index.js +13 -6
- package/lib/DTableCustomizeCollaboratorSelect/index.js +26 -18
- package/lib/DTableCustomizeSelect/index.js +23 -15
- package/lib/DTableFiltersPopover/constants/index.js +38 -33
- package/lib/DTableFiltersPopover/index.js +38 -31
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +53 -46
- package/lib/DTableFiltersPopover/utils/index.js +128 -99
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +34 -26
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +33 -25
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +34 -26
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +34 -26
- package/lib/DTableFiltersPopover/widgets/filter-item.js +128 -120
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +26 -18
- package/lib/DTableFiltersPopover/widgets/rate-item.js +15 -8
- package/lib/DTablePopover/index.js +15 -8
- package/lib/DTablePopover/utils.js +9 -2
- package/lib/DTableRadio/index.js +17 -10
- package/lib/DTableSearchInput/index.js +21 -13
- package/lib/DTableSearchInput/utils.js +9 -2
- package/lib/DTableSelect/dtable-select-label.js +13 -6
- package/lib/DTableSelect/index.js +18 -10
- package/lib/DTableSelect/utils.js +20 -10
- package/lib/DTableSwitch/index.js +14 -7
- package/lib/DateEditor/index.js +30 -22
- package/lib/DateEditor/mb-date-editor-popover/index.js +55 -47
- package/lib/DateEditor/pc-date-editor-popover.js +27 -20
- package/lib/DateFormatter/index.js +16 -9
- package/lib/Department-editor/constants.js +7 -1
- package/lib/Department-editor/department-multiple-select/index.js +32 -24
- package/lib/Department-editor/department-single-select.js +41 -33
- package/lib/Department-editor/index.js +22 -14
- package/lib/Department-editor/selected-departments/index.js +32 -25
- package/lib/Department-editor/utils.js +11 -3
- package/lib/DepartmentSingleSelectFormatter/index.js +16 -9
- package/lib/DigitalSignFormatter/index.js +23 -15
- package/lib/DigitalSignFormatter/utils.js +11 -3
- package/lib/DurationFormatter/index.js +16 -9
- package/lib/EditEditorButton/index.js +12 -5
- package/lib/EmailFormatter/index.js +14 -7
- package/lib/FieldDisplaySetting/field-item.js +21 -14
- package/lib/FieldDisplaySetting/index.js +27 -19
- package/lib/FileEditor/index.js +15 -8
- package/lib/FileEditor/pc-files-addition/index.js +1 -0
- package/lib/FileEditor/pc-files-addition/pc-file-uploaded-item.js +1 -0
- package/lib/FileEditor/pc-files-preview/index.js +1 -0
- package/lib/FileEditor/pc-files-preview/pc-file-item-preview.js +1 -0
- package/lib/FileFormatter/index.js +19 -11
- package/lib/FileItemFormatter/index.js +14 -6
- package/lib/FileItemFormatter/utils.js +9 -2
- package/lib/FileUploader/index.js +11 -4
- package/lib/FormulaFormatter/cell-value-validator.js +24 -18
- package/lib/FormulaFormatter/index.js +39 -32
- package/lib/FormulaFormatter/utils.js +29 -13
- package/lib/GeolocationFormatter/index.js +16 -9
- package/lib/HtmlLongTextFormatter/index.js +17 -9
- package/lib/ImageFormatter/images-lazy-load.js +16 -9
- package/lib/ImageFormatter/index.js +24 -16
- package/lib/ImageFormatter/utils.js +9 -2
- package/lib/ImagePreviewerLightbox/index.js +19 -12
- package/lib/ImagePreviewerLightbox/utils.js +11 -3
- package/lib/LastModifierFormatter/index.js +19 -12
- package/lib/LinkEditor/index.js +33 -25
- package/lib/LinkEditor/link-editor-option.js +15 -8
- package/lib/LinkEditor/mb-link-editor-popover/index.js +30 -23
- package/lib/LinkEditor/pc-link-editor-popover/index.js +24 -17
- package/lib/LinkFormatter/index.js +20 -13
- package/lib/Loading/index.js +11 -4
- package/lib/LongTextFormatter/index.js +13 -6
- package/lib/MBEditorHeader/index.js +14 -7
- package/lib/MTimeFormatter/index.js +16 -9
- package/lib/ModalPortal/index.js +12 -5
- package/lib/MultipleSelectEditor/index.js +25 -17
- package/lib/MultipleSelectFormatter/index.js +17 -10
- package/lib/NotificationPopover/index.js +24 -16
- package/lib/NumberEditor/index.js +25 -18
- package/lib/NumberFormatter/index.js +16 -9
- package/lib/RateFormatter/index.js +15 -8
- package/lib/RoleStatusEditor/index.js +22 -14
- package/lib/RowExpandEmailFormatter/index.js +17 -10
- package/lib/RowExpandFileFormatter/index.js +16 -8
- package/lib/RowExpandFileFormatter/row-expand-file-item-formatter.js +27 -18
- package/lib/RowExpandFormatter/index.js +86 -78
- package/lib/RowExpandFormulaFormatter/index.js +42 -34
- package/lib/RowExpandImageFormatter/index.js +19 -10
- package/lib/RowExpandImageFormatter/row-expand-image-item-formatter.js +27 -18
- package/lib/RowExpandImageFormatter/utils.js +9 -2
- package/lib/RowExpandLinkFormatter/collaborator-item-formatter.js +16 -7
- package/lib/RowExpandLinkFormatter/index.js +46 -37
- package/lib/RowExpandLinkFormatter/utils.js +17 -6
- package/lib/RowExpandLinkFormatter/value-display-utils.js +12 -5
- package/lib/RowExpandRateFormatter/index.js +15 -8
- package/lib/RowExpandUrlFormatter/index.js +21 -14
- package/lib/SelectItem/index.js +12 -4
- package/lib/SelectOptionGroup/KeyCodes.js +7 -1
- package/lib/SelectOptionGroup/index.js +28 -20
- package/lib/SelectOptionGroup/option.js +11 -4
- package/lib/SimpleLongTextFormatter/index.js +27 -20
- package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +7 -1
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +15 -8
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +14 -7
- package/lib/SingleSelectEditor/index.js +26 -18
- package/lib/SingleSelectFormatter/index.js +16 -9
- package/lib/TextEditor/index.js +14 -7
- package/lib/TextFormatter/index.js +14 -7
- package/lib/UrlFormatter/index.js +14 -7
- package/lib/cellFormatterFactory/index.js +11 -4
- package/lib/common/ClickOutside.js +12 -4
- package/lib/common/delete-tip.js +20 -12
- package/lib/common/modal-portal.js +13 -5
- package/lib/constants/index.js +28 -9
- package/lib/css/mb-cell-editor.css +1 -1
- package/lib/data/dtable-value.js +11 -6
- package/lib/formatterConfig/base-formatter-config.js +53 -46
- package/lib/formatterConfig/index.js +16 -9
- package/lib/hooks/common-hooks.js +11 -4
- package/lib/index.js +432 -75
- package/lib/lang/index.js +24 -13
- package/lib/locals/de.js +7 -1
- package/lib/locals/en.js +7 -1
- package/lib/locals/fr.js +7 -1
- package/lib/locals/zh-CN.js +7 -1
- package/lib/select-editor/index.js +27 -4
- package/lib/select-editor/mb-select-editor-popover/index.js +41 -33
- package/lib/select-editor/pc-select-editor-popover/index.js +26 -19
- package/lib/select-editor/select-editor-option.js +15 -8
- package/lib/toaster/alert.js +18 -11
- package/lib/toaster/index.js +10 -3
- package/lib/toaster/toast.js +16 -8
- package/lib/toaster/toastManager.js +13 -5
- package/lib/toaster/toaster.js +15 -7
- package/lib/utils/dayjs.js +11 -4
- package/lib/utils/editor-utils.js +15 -5
- package/lib/utils/event-bus.js +7 -1
- package/lib/utils/utils.js +17 -6
- package/package.json +80 -68
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtable-ui-component",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.6",
|
|
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
|
-
"@seafile/seafile-editor": "0.
|
|
8
|
+
"@seafile/seafile-editor": "1.0.32",
|
|
9
9
|
"antd-mobile": "2.3.1",
|
|
10
10
|
"classnames": "^2.3.2",
|
|
11
11
|
"dayjs": "1.10.7",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"build": "node scripts/build.js",
|
|
28
28
|
"test": "node scripts/test.js",
|
|
29
29
|
"eslint": "eslint --ext .jsx,.js src --max-warnings=0",
|
|
30
|
-
"storybook": "
|
|
31
|
-
"build-storybook": "
|
|
30
|
+
"storybook": "storybook dev -p 6006",
|
|
31
|
+
"build-storybook": "storybook build -c .storybook -o docs",
|
|
32
32
|
"pub:esm": "npm run clean:esm && export BABEL_ENV=node && ./node_modules/.bin/babel src --out-dir es --copy-files",
|
|
33
33
|
"pub:lib": "npm run clean:lib && export BABEL_ENV=production && ./node_modules/.bin/babel src --out-dir lib --copy-files",
|
|
34
34
|
"pub:umd": "npm run build",
|
|
@@ -56,81 +56,93 @@
|
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@babel/cli": "
|
|
60
|
-
"@babel/core": "^7.
|
|
61
|
-
"@babel/
|
|
62
|
-
"@babel/plugin-proposal-
|
|
63
|
-
"@babel/plugin-
|
|
64
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.9.5",
|
|
65
|
-
"@babel/plugin-transform-runtime": "^7.10.1",
|
|
59
|
+
"@babel/cli": "7.22.15",
|
|
60
|
+
"@babel/core": "^7.16.0",
|
|
61
|
+
"@babel/eslint-parser": "^7.16.3",
|
|
62
|
+
"@babel/plugin-proposal-private-property-in-object": "7.21.11",
|
|
63
|
+
"@babel/plugin-transform-runtime": "7.22.10",
|
|
66
64
|
"@babel/polyfill": "^7.10.1",
|
|
67
65
|
"@babel/preset-env": "^7.9.5",
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"@storybook/addon-
|
|
71
|
-
"@storybook/addon-
|
|
72
|
-
"@storybook/
|
|
73
|
-
"@storybook/
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
80
|
-
"@
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
66
|
+
"@babel/runtime": "7.22.11",
|
|
67
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
68
|
+
"@storybook/addon-actions": "7.6.17",
|
|
69
|
+
"@storybook/addon-docs": "7.6.17",
|
|
70
|
+
"@storybook/addon-essentials": "7.6.17",
|
|
71
|
+
"@storybook/addon-interactions": "7.6.17",
|
|
72
|
+
"@storybook/addon-knobs": "7.0.2",
|
|
73
|
+
"@storybook/addon-links": "7.6.17",
|
|
74
|
+
"@storybook/addon-onboarding": "1.0.11",
|
|
75
|
+
"@storybook/blocks": "7.6.17",
|
|
76
|
+
"@storybook/preset-create-react-app": "7.6.17",
|
|
77
|
+
"@storybook/react": "7.6.17",
|
|
78
|
+
"@storybook/react-webpack5": "7.6.17",
|
|
79
|
+
"@storybook/test": "7.6.17",
|
|
80
|
+
"@svgr/webpack": "8.1.0",
|
|
81
|
+
"@testing-library/jest-dom": "5.17.0",
|
|
82
|
+
"@testing-library/react": "^11.1.0",
|
|
83
|
+
"@testing-library/user-event": "13.5.0",
|
|
84
|
+
"@types/jest": "^29.5.10",
|
|
85
|
+
"@wojtekmaj/enzyme-adapter-react-17": "0.8.0",
|
|
86
|
+
"autoprefixer": "10.4.5",
|
|
87
|
+
"babel-jest": "^27.4.2",
|
|
88
|
+
"babel-loader": "^8.2.3",
|
|
84
89
|
"babel-plugin-import": "^1.13.6",
|
|
85
90
|
"babel-plugin-named-asset-import": "^0.3.6",
|
|
86
|
-
"babel-preset-react-app": "^
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
91
|
+
"babel-preset-react-app": "^10.0.1",
|
|
92
|
+
"bfj": "^7.0.2",
|
|
93
|
+
"browserslist": "^4.18.1",
|
|
94
|
+
"camelcase": "^6.2.1",
|
|
95
|
+
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
96
|
+
"circular-dependency-plugin": "^5.2.2",
|
|
97
|
+
"css-loader": "^6.5.1",
|
|
98
|
+
"css-minimizer-webpack-plugin": "^3.2.0",
|
|
99
|
+
"dotenv": "^10.0.0",
|
|
100
|
+
"dotenv-expand": "^5.1.0",
|
|
92
101
|
"enzyme": "^3.11.0",
|
|
93
|
-
"eslint": "^
|
|
94
|
-
"eslint-config-react-app": "^
|
|
95
|
-
"eslint-
|
|
96
|
-
"eslint-plugin
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"eslint-plugin-react-hooks": "^1.6.1",
|
|
101
|
-
"file-loader": "4.3.0",
|
|
102
|
-
"fs-extra": "^8.1.0",
|
|
103
|
-
"html-webpack-plugin": "4.0.0-beta.11",
|
|
102
|
+
"eslint": "^8.3.0",
|
|
103
|
+
"eslint-config-react-app": "^7.0.1",
|
|
104
|
+
"eslint-plugin-storybook": "0.8.0",
|
|
105
|
+
"eslint-webpack-plugin": "^3.1.1",
|
|
106
|
+
"file-loader": "^6.2.0",
|
|
107
|
+
"fs-extra": "^10.0.0",
|
|
108
|
+
"html-webpack-plugin": "^5.5.0",
|
|
104
109
|
"i18next": "22.4.9",
|
|
105
110
|
"i18next-browser-languagedetector": "7.0.1",
|
|
106
111
|
"i18next-xhr-backend": "3.2.2",
|
|
107
112
|
"identity-obj-proxy": "3.0.0",
|
|
108
|
-
"jest": "
|
|
109
|
-
"jest-
|
|
110
|
-
"jest-
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"postcss
|
|
116
|
-
"postcss-
|
|
117
|
-
"postcss-
|
|
118
|
-
"postcss-
|
|
119
|
-
"postcss-
|
|
113
|
+
"jest": "^27.4.3",
|
|
114
|
+
"jest-resolve": "^27.4.2",
|
|
115
|
+
"jest-watch-typeahead": "^1.0.0",
|
|
116
|
+
"less": "^4.2.0",
|
|
117
|
+
"less-loader": "^11.1.3",
|
|
118
|
+
"mini-css-extract-plugin": "^2.4.5",
|
|
119
|
+
"node-polyfill-webpack-plugin": "2.0.1",
|
|
120
|
+
"postcss": "^8.4.31",
|
|
121
|
+
"postcss-flexbugs-fixes": "^5.0.2",
|
|
122
|
+
"postcss-loader": "^6.2.1",
|
|
123
|
+
"postcss-normalize": "^10.0.1",
|
|
124
|
+
"postcss-preset-env": "^7.0.1",
|
|
125
|
+
"prompts": "^2.4.2",
|
|
126
|
+
"react-app-polyfill": "^3.0.0",
|
|
120
127
|
"react-dev-utils": "^12.0.1",
|
|
121
128
|
"react-element-to-jsx-string": "^14.3.1",
|
|
122
129
|
"react-i18next": "12.1.4",
|
|
123
|
-
"
|
|
124
|
-
"resolve
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"webpack-
|
|
133
|
-
"
|
|
134
|
-
"
|
|
130
|
+
"react-refresh": "^0.11.0",
|
|
131
|
+
"resolve": "^1.20.0",
|
|
132
|
+
"resolve-url-loader": "^4.0.0",
|
|
133
|
+
"sass-loader": "^12.3.0",
|
|
134
|
+
"semver": "^7.3.5",
|
|
135
|
+
"source-map-loader": "^3.0.0",
|
|
136
|
+
"storybook": "7.6.17",
|
|
137
|
+
"style-loader": "^3.3.1",
|
|
138
|
+
"tailwindcss": "^3.0.2",
|
|
139
|
+
"terser-webpack-plugin": "^5.2.5",
|
|
140
|
+
"url-loader": "^4.1.1",
|
|
141
|
+
"web-vitals": "2.1.4",
|
|
142
|
+
"webpack": "^5.64.4",
|
|
143
|
+
"webpack-dev-server": "^4.6.0",
|
|
144
|
+
"webpack-manifest-plugin": "^4.0.2",
|
|
145
|
+
"workbox-webpack-plugin": "^6.4.1",
|
|
146
|
+
"worker-loader": "3.0.8"
|
|
135
147
|
}
|
|
136
148
|
}
|