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.
Files changed (149) hide show
  1. package/lib/AutoNumberFormatter/index.js +7 -14
  2. package/lib/ButtonFormatter/index.js +9 -16
  3. package/lib/CTimeFormatter/index.js +9 -16
  4. package/lib/CheckboxEditor/index.js +8 -15
  5. package/lib/CheckboxFormatter/index.js +8 -15
  6. package/lib/CollaboratorEditor/index.js +21 -29
  7. package/lib/CollaboratorEditor/mb-collaborator-editor-popover/index.js +25 -32
  8. package/lib/CollaboratorEditor/pc-collaborator-editor-popover/index.js +18 -25
  9. package/lib/CollaboratorFormatter/index.js +12 -19
  10. package/lib/CollaboratorItem/index.js +10 -17
  11. package/lib/CreatorFormatter/index.js +12 -19
  12. package/lib/DTableCommonAddTool/index.js +6 -13
  13. package/lib/DTableCustomizeCollaboratorSelect/index.js +18 -26
  14. package/lib/DTableCustomizeSelect/index.js +15 -23
  15. package/lib/DTableFiltersPopover/constants/index.js +33 -38
  16. package/lib/DTableFiltersPopover/index.js +31 -38
  17. package/lib/DTableFiltersPopover/utils/filter-item-utils.js +46 -53
  18. package/lib/DTableFiltersPopover/utils/index.js +99 -128
  19. package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +26 -34
  20. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +25 -33
  21. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +26 -34
  22. package/lib/DTableFiltersPopover/widgets/filter-calendar.js +26 -34
  23. package/lib/DTableFiltersPopover/widgets/filter-item.js +120 -128
  24. package/lib/DTableFiltersPopover/widgets/filter-list/index.js +18 -26
  25. package/lib/DTableFiltersPopover/widgets/rate-item.js +8 -15
  26. package/lib/DTablePopover/index.js +8 -15
  27. package/lib/DTablePopover/utils.js +2 -9
  28. package/lib/DTableRadio/index.js +10 -17
  29. package/lib/DTableSearchInput/index.js +13 -21
  30. package/lib/DTableSearchInput/utils.js +2 -9
  31. package/lib/DTableSelect/dtable-select-label.js +6 -13
  32. package/lib/DTableSelect/index.js +10 -18
  33. package/lib/DTableSelect/utils.js +10 -20
  34. package/lib/DTableSwitch/index.js +7 -14
  35. package/lib/DateEditor/index.js +22 -30
  36. package/lib/DateEditor/mb-date-editor-popover/index.js +47 -55
  37. package/lib/DateEditor/pc-date-editor-popover.js +20 -27
  38. package/lib/DateFormatter/index.js +9 -16
  39. package/lib/Department-editor/constants.js +1 -7
  40. package/lib/Department-editor/department-multiple-select/index.js +24 -32
  41. package/lib/Department-editor/department-single-select.js +33 -41
  42. package/lib/Department-editor/index.js +14 -22
  43. package/lib/Department-editor/selected-departments/index.js +25 -32
  44. package/lib/Department-editor/utils.js +3 -11
  45. package/lib/DepartmentSingleSelectFormatter/index.js +9 -16
  46. package/lib/DigitalSignFormatter/index.js +15 -23
  47. package/lib/DigitalSignFormatter/utils.js +3 -11
  48. package/lib/DurationFormatter/index.js +9 -16
  49. package/lib/EditEditorButton/index.js +5 -12
  50. package/lib/EmailFormatter/index.js +7 -14
  51. package/lib/FieldDisplaySetting/field-item.js +14 -21
  52. package/lib/FieldDisplaySetting/index.js +19 -27
  53. package/lib/FileEditor/index.js +8 -15
  54. package/lib/FileEditor/pc-files-addition/index.js +0 -1
  55. package/lib/FileEditor/pc-files-addition/pc-file-uploaded-item.js +0 -1
  56. package/lib/FileEditor/pc-files-preview/index.js +0 -1
  57. package/lib/FileEditor/pc-files-preview/pc-file-item-preview.js +0 -1
  58. package/lib/FileFormatter/index.js +11 -19
  59. package/lib/FileItemFormatter/index.js +6 -14
  60. package/lib/FileItemFormatter/utils.js +2 -9
  61. package/lib/FileUploader/index.js +4 -11
  62. package/lib/FormulaFormatter/cell-value-validator.js +18 -24
  63. package/lib/FormulaFormatter/index.js +32 -39
  64. package/lib/FormulaFormatter/utils.js +13 -29
  65. package/lib/GeolocationFormatter/index.js +9 -16
  66. package/lib/HtmlLongTextFormatter/index.js +9 -17
  67. package/lib/HtmlLongTextFormatter/markdown2html.js +47 -0
  68. package/lib/HtmlLongTextFormatter/unified/index.js +400 -0
  69. package/lib/HtmlLongTextFormatter/vfile/core.js +155 -0
  70. package/lib/HtmlLongTextFormatter/vfile/index.js +40 -0
  71. package/lib/ImageFormatter/images-lazy-load.js +9 -16
  72. package/lib/ImageFormatter/index.js +16 -24
  73. package/lib/ImageFormatter/utils.js +2 -9
  74. package/lib/ImagePreviewerLightbox/index.js +12 -19
  75. package/lib/ImagePreviewerLightbox/utils.js +3 -11
  76. package/lib/LastModifierFormatter/index.js +12 -19
  77. package/lib/LinkEditor/index.js +25 -33
  78. package/lib/LinkEditor/link-editor-option.js +8 -15
  79. package/lib/LinkEditor/mb-link-editor-popover/index.js +23 -30
  80. package/lib/LinkEditor/pc-link-editor-popover/index.js +17 -24
  81. package/lib/LinkFormatter/index.js +13 -20
  82. package/lib/Loading/index.js +4 -11
  83. package/lib/LongTextFormatter/index.js +6 -13
  84. package/lib/MBEditorHeader/index.js +7 -14
  85. package/lib/MTimeFormatter/index.js +9 -16
  86. package/lib/ModalPortal/index.js +5 -12
  87. package/lib/MultipleSelectEditor/index.js +17 -25
  88. package/lib/MultipleSelectFormatter/index.js +10 -17
  89. package/lib/NotificationPopover/index.js +16 -24
  90. package/lib/NumberEditor/index.js +18 -25
  91. package/lib/NumberFormatter/index.js +9 -16
  92. package/lib/RateFormatter/index.js +8 -15
  93. package/lib/RoleStatusEditor/index.js +14 -22
  94. package/lib/RowExpandEmailFormatter/index.js +10 -17
  95. package/lib/RowExpandFileFormatter/index.js +8 -16
  96. package/lib/RowExpandFileFormatter/row-expand-file-item-formatter.js +18 -27
  97. package/lib/RowExpandFormatter/index.js +78 -86
  98. package/lib/RowExpandFormulaFormatter/index.js +34 -42
  99. package/lib/RowExpandImageFormatter/index.js +10 -19
  100. package/lib/RowExpandImageFormatter/row-expand-image-item-formatter.js +18 -27
  101. package/lib/RowExpandImageFormatter/utils.js +2 -9
  102. package/lib/RowExpandLinkFormatter/collaborator-item-formatter.js +7 -16
  103. package/lib/RowExpandLinkFormatter/index.js +37 -46
  104. package/lib/RowExpandLinkFormatter/utils.js +6 -17
  105. package/lib/RowExpandLinkFormatter/value-display-utils.js +5 -12
  106. package/lib/RowExpandRateFormatter/index.js +8 -15
  107. package/lib/RowExpandUrlFormatter/index.js +14 -21
  108. package/lib/SelectItem/index.js +4 -12
  109. package/lib/SelectOptionGroup/KeyCodes.js +1 -7
  110. package/lib/SelectOptionGroup/index.js +33 -32
  111. package/lib/SelectOptionGroup/option.js +4 -19
  112. package/lib/SimpleLongTextFormatter/index.js +20 -27
  113. package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +1 -7
  114. package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +8 -15
  115. package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +7 -14
  116. package/lib/SingleSelectEditor/index.js +18 -26
  117. package/lib/SingleSelectFormatter/index.js +9 -16
  118. package/lib/TextEditor/index.js +7 -14
  119. package/lib/TextFormatter/index.js +7 -14
  120. package/lib/UrlFormatter/index.js +7 -14
  121. package/lib/cellFormatterFactory/index.js +4 -11
  122. package/lib/common/ClickOutside.js +4 -12
  123. package/lib/common/delete-tip.js +12 -20
  124. package/lib/common/modal-portal.js +5 -13
  125. package/lib/constants/index.js +9 -28
  126. package/lib/data/dtable-value.js +6 -11
  127. package/lib/formatterConfig/base-formatter-config.js +46 -53
  128. package/lib/formatterConfig/index.js +9 -16
  129. package/lib/hooks/common-hooks.js +4 -11
  130. package/lib/index.js +75 -432
  131. package/lib/lang/index.js +13 -24
  132. package/lib/locals/de.js +1 -7
  133. package/lib/locals/en.js +1 -7
  134. package/lib/locals/fr.js +1 -7
  135. package/lib/locals/zh-CN.js +1 -7
  136. package/lib/select-editor/index.js +4 -27
  137. package/lib/select-editor/mb-select-editor-popover/index.js +33 -41
  138. package/lib/select-editor/pc-select-editor-popover/index.js +19 -26
  139. package/lib/select-editor/select-editor-option.js +8 -15
  140. package/lib/toaster/alert.js +11 -18
  141. package/lib/toaster/index.js +3 -10
  142. package/lib/toaster/toast.js +8 -16
  143. package/lib/toaster/toastManager.js +5 -13
  144. package/lib/toaster/toaster.js +7 -15
  145. package/lib/utils/dayjs.js +4 -11
  146. package/lib/utils/editor-utils.js +5 -15
  147. package/lib/utils/event-bus.js +1 -7
  148. package/lib/utils/utils.js +6 -17
  149. 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-2",
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.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",
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
- "@babel/runtime": "7.22.11",
73
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
74
- "@svgr/webpack": "8.1.0",
75
- "@testing-library/jest-dom": "5.17.0",
76
- "@testing-library/react": "^11.1.0",
77
- "@testing-library/user-event": "13.5.0",
78
- "@types/jest": "^29.5.10",
79
- "autoprefixer": "10.4.5",
80
- "babel-jest": "^27.4.2",
81
- "babel-loader": "^8.2.3",
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": "^10.0.1",
85
- "bfj": "^7.0.2",
86
- "browserslist": "^4.18.1",
87
- "camelcase": "^6.2.1",
88
- "case-sensitive-paths-webpack-plugin": "^2.4.0",
89
- "circular-dependency-plugin": "^5.2.2",
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": "^8.3.0",
96
- "eslint-config-react-app": "^7.0.1",
97
- "eslint-webpack-plugin": "^3.1.1",
98
- "file-loader": "^6.2.0",
99
- "fs-extra": "^10.0.0",
100
- "html-webpack-plugin": "^5.5.0",
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": "^27.4.3",
106
- "jest-resolve": "^27.4.2",
107
- "jest-watch-typeahead": "^1.0.0",
108
- "less": "^4.2.0",
109
- "less-loader": "^11.1.3",
110
- "mini-css-extract-plugin": "^2.4.5",
111
- "node-polyfill-webpack-plugin": "2.0.1",
112
- "postcss": "^8.4.31",
113
- "postcss-flexbugs-fixes": "^5.0.2",
114
- "postcss-loader": "^6.2.1",
115
- "postcss-normalize": "^10.0.1",
116
- "postcss-preset-env": "^7.0.1",
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": "^1.20.0",
124
- "resolve-url-loader": "^4.0.0",
125
- "sass-loader": "^12.3.0",
126
- "semver": "^7.3.5",
127
- "source-map-loader": "^3.0.0",
128
- "style-loader": "^3.3.1",
129
- "tailwindcss": "^3.0.2",
130
- "terser-webpack-plugin": "^5.2.5",
131
- "url-loader": "^4.1.1",
132
- "web-vitals": "2.1.4",
133
- "webpack": "^5.64.4",
134
- "webpack-dev-server": "^4.6.0",
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
  }