antd-management-fast-framework 1.12.102 → 2.1.0

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 (495) hide show
  1. package/es/components/ApplicationWrapper/index.d.ts +9 -0
  2. package/es/components/Bootstrap/index.d.ts +3 -0
  3. package/es/components/DataPreviewDrawer/index.d.ts +31 -0
  4. package/es/{customComponents/Exception → components/LoadingOverlay}/index.d.ts +1 -3
  5. package/es/components/MobileContainor/MobileHtmlPreviewBox/index.d.ts +10 -0
  6. package/es/components/MobileContainor/MobilePreviewArea/index.d.ts +75 -0
  7. package/es/components/MobileContainor/MobilePreviewDrawer/index.d.ts +54 -0
  8. package/es/components/MobileContainor/index.d.ts +8 -0
  9. package/es/components/index.d.ts +5 -0
  10. package/es/configGroup/configGeneral.d.ts +27 -55
  11. package/es/configGroup/configGeneral.js +31 -138
  12. package/es/configGroup/index.d.ts +2 -0
  13. package/es/configGroup/themeCollection.d.ts +3 -25
  14. package/es/configGroup/themeCollection.js +1 -109
  15. package/es/configGroup/webpackPlugin.d.ts +0 -7
  16. package/es/configGroup/webpackPlugin.js +236 -51
  17. package/es/configs/index.d.ts +2 -0
  18. package/es/configs/themeCollection.d.ts +7 -0
  19. package/es/configs/webpackPlugin.d.ts +4 -0
  20. package/es/customComponents/ApplicationProvider/index.d.ts +12 -0
  21. package/es/customComponents/ApplicationWrapper/index.d.ts +9 -0
  22. package/es/customComponents/Bootstrap/index.d.ts +3 -0
  23. package/es/customComponents/Bootstrap/index.js +67 -0
  24. package/es/customComponents/DataPreviewDrawer/index.d.ts +5 -6
  25. package/es/customComponents/DataPreviewDrawer/index.js +78 -87
  26. package/es/customComponents/LoadingOverlay/index.d.ts +6 -0
  27. package/es/customComponents/LoadingOverloay/index.d.ts +3 -0
  28. package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.d.ts +4 -6
  29. package/es/customComponents/MobileContainor/MobileHtmlPreviewBox/index.js +57 -54
  30. package/es/customComponents/MobileContainor/MobilePreviewArea/index.d.ts +38 -12
  31. package/es/customComponents/MobileContainor/MobilePreviewArea/index.js +84 -111
  32. package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.d.ts +8 -8
  33. package/es/customComponents/MobileContainor/MobilePreviewDrawer/index.js +76 -95
  34. package/es/customComponents/MobileContainor/index.d.ts +8 -0
  35. package/es/customComponents/index.d.ts +5 -7
  36. package/es/framework/AuthorizationWrapper/index.d.ts +8 -5
  37. package/es/framework/AuthorizationWrapper/index.js +50 -59
  38. package/es/framework/ButtonExtension/SelectButton/Base/index.d.ts +5 -6
  39. package/es/framework/ButtonExtension/SelectButton/Base/index.js +52 -70
  40. package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.d.ts +6 -7
  41. package/es/framework/ButtonExtension/SelectButton/InteractiveBase/index.js +57 -85
  42. package/es/framework/ButtonExtension/SelectButton/index.d.ts +6 -0
  43. package/es/framework/ButtonExtension/index.d.ts +1 -0
  44. package/es/framework/Common/CardCollectionItemContent/index.d.ts +14 -0
  45. package/es/framework/Common/CommonInternal/index.d.ts +167 -0
  46. package/es/framework/Common/InternalBuild/index.d.ts +26 -0
  47. package/es/framework/Common/InternalFlow/index.d.ts +149 -0
  48. package/es/framework/Common/InternalLayout/index.d.ts +9 -0
  49. package/es/framework/Common/InternalMake/index.d.ts +9 -0
  50. package/es/framework/Common/InternalTabFlow/index.d.ts +12 -0
  51. package/es/framework/Common/index.d.ts +2 -205
  52. package/es/framework/Common/index.js +39 -2481
  53. package/es/framework/Core/index.d.ts +17 -6
  54. package/es/framework/Core/index.js +15 -56
  55. package/es/framework/CustomWrapper/Supplement/index.d.ts +2 -3
  56. package/es/framework/CustomWrapper/Supplement/index.js +43 -40
  57. package/es/framework/CustomWrapper/SupplementCore/index.d.ts +2 -4
  58. package/es/framework/CustomWrapper/SupplementCore/index.js +47 -66
  59. package/es/framework/CustomWrapper/SupplementWrapper/index.d.ts +2 -3
  60. package/es/framework/CustomWrapper/SupplementWrapper/index.js +44 -41
  61. package/es/framework/CustomWrapper/index.d.ts +3 -0
  62. package/es/framework/DataDrawer/Base/index.d.ts +16 -18
  63. package/es/framework/DataDrawer/Base/index.js +126 -238
  64. package/es/framework/DataDrawer/BaseAddDrawer/index.d.ts +3 -4
  65. package/es/framework/DataDrawer/BaseAddDrawer/index.js +57 -60
  66. package/es/framework/DataDrawer/BaseLoadDrawer/index.d.ts +3 -4
  67. package/es/framework/DataDrawer/BaseLoadDrawer/index.js +54 -47
  68. package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +3 -4
  69. package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +57 -63
  70. package/es/framework/DataDrawer/BaseSaveDrawer/index.d.ts +2 -3
  71. package/es/framework/DataDrawer/BaseSaveDrawer/index.js +55 -57
  72. package/es/framework/DataDrawer/BaseUpdateDrawer/index.d.ts +2 -3
  73. package/es/framework/DataDrawer/BaseUpdateDrawer/index.js +56 -56
  74. package/es/framework/DataDrawer/index.d.ts +14 -0
  75. package/es/framework/DataForm/BaseAddForm/index.d.ts +7 -7
  76. package/es/framework/DataForm/BaseAddForm/index.js +95 -162
  77. package/es/framework/DataForm/BaseUpdateForm/index.d.ts +3 -4
  78. package/es/framework/DataForm/BaseUpdateForm/index.js +66 -85
  79. package/es/framework/DataForm/BaseUpdateFormContent/index.d.ts +2 -3
  80. package/es/framework/DataForm/BaseUpdateFormContent/index.js +55 -45
  81. package/es/framework/DataForm/BaseUpdateFormTab/index.d.ts +3 -3
  82. package/es/framework/DataForm/BaseUpdateFormTab/index.js +54 -37
  83. package/es/framework/DataForm/index.d.ts +10 -0
  84. package/es/framework/DataListView/Base/index.d.ts +38 -82
  85. package/es/framework/DataListView/Base/index.js +318 -635
  86. package/es/framework/DataListView/BatchAction/index.d.ts +3 -3
  87. package/es/framework/DataListView/BatchAction/index.js +38 -68
  88. package/es/framework/DataListView/ColumnSetting/DndItem.d.ts +1 -2
  89. package/es/framework/DataListView/ColumnSetting/DndItem.js +87 -110
  90. package/es/framework/DataListView/ColumnSetting/index.d.ts +1 -2
  91. package/es/framework/DataListView/ColumnSetting/index.js +111 -160
  92. package/es/framework/DataListView/DensityAction/index.d.ts +2 -3
  93. package/es/framework/DataListView/DensityAction/index.js +29 -84
  94. package/es/framework/DataListView/index.d.ts +10 -0
  95. package/es/framework/DataMenuContainer/index.d.ts +8 -10
  96. package/es/framework/DataMenuContainer/index.js +96 -155
  97. package/es/framework/DataModal/Base/index.d.ts +10 -12
  98. package/es/framework/DataModal/Base/index.js +74 -128
  99. package/es/framework/DataModal/BaseAddModal/index.d.ts +2 -3
  100. package/es/framework/DataModal/BaseAddModal/index.js +52 -50
  101. package/es/framework/DataModal/BaseLoadModal/index.d.ts +3 -4
  102. package/es/framework/DataModal/BaseLoadModal/index.js +49 -44
  103. package/es/framework/DataModal/BaseNeedlessLoadModal/index.d.ts +6 -6
  104. package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +55 -62
  105. package/es/framework/DataModal/BaseSelectModal/index.d.ts +4 -4
  106. package/es/framework/DataModal/BaseSelectModal/index.js +52 -51
  107. package/es/framework/DataModal/BaseUpdateModal/index.d.ts +2 -3
  108. package/es/framework/DataModal/BaseUpdateModal/index.js +50 -37
  109. package/es/framework/DataModal/BaseUpdateTransferModal/index.d.ts +5 -5
  110. package/es/framework/DataModal/BaseUpdateTransferModal/index.js +63 -85
  111. package/es/framework/DataModal/index.d.ts +16 -0
  112. package/es/framework/DataMultiPageView/InnerMultiPage/index.d.ts +3 -3
  113. package/es/framework/DataMultiPageView/InnerMultiPage/index.js +66 -46
  114. package/es/framework/DataMultiPageView/MultiPage/index.d.ts +4 -3
  115. package/es/framework/DataMultiPageView/MultiPage/index.js +109 -143
  116. package/es/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +19 -21
  117. package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +179 -233
  118. package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.d.ts +4 -5
  119. package/es/framework/DataMultiPageView/MultiPageSelectDrawer/index.js +79 -73
  120. package/es/framework/DataMultiPageView/index.d.ts +10 -0
  121. package/es/framework/DataOperation/Base/index.d.ts +2 -3
  122. package/es/framework/DataOperation/Base/index.js +156 -214
  123. package/es/framework/DataOperation/BaseView/index.d.ts +2 -3
  124. package/es/framework/DataOperation/BaseView/index.js +56 -51
  125. package/es/framework/DataOperation/BaseWindow/index.d.ts +13 -14
  126. package/es/framework/DataOperation/BaseWindow/index.js +115 -163
  127. package/es/framework/DataOperation/index.d.ts +8 -0
  128. package/es/framework/DataSinglePageView/InnerSinglePage/index.d.ts +3 -3
  129. package/es/framework/DataSinglePageView/InnerSinglePage/index.js +66 -46
  130. package/es/framework/DataSinglePageView/SinglePage/index.d.ts +9 -4
  131. package/es/framework/DataSinglePageView/SinglePage/index.js +97 -121
  132. package/es/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +19 -21
  133. package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +173 -224
  134. package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.d.ts +4 -5
  135. package/es/framework/DataSinglePageView/SinglePageSelectDrawer/index.js +81 -75
  136. package/es/framework/DataSinglePageView/index.d.ts +10 -0
  137. package/es/framework/DataSingleView/DataCore/index.d.ts +13 -40
  138. package/es/framework/DataSingleView/DataCore/index.js +90 -160
  139. package/es/framework/DataSingleView/DataLoad/index.d.ts +5 -5
  140. package/es/framework/DataSingleView/DataLoad/index.js +74 -92
  141. package/es/framework/DataSingleView/index.d.ts +6 -0
  142. package/es/framework/DataTabContainer/index.d.ts +6 -29
  143. package/es/framework/DataTabContainer/index.js +133 -159
  144. package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.d.ts +6 -7
  145. package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldBase/index.js +69 -96
  146. package/es/framework/FieldExtension/SelectFieldDrawer/SelectFieldDrawerBase/index.js +65 -97
  147. package/es/framework/FieldExtension/SelectFieldDrawer/{SelectFieldDrawerBase → SelectFieldInteractiveBase}/index.d.ts +6 -7
  148. package/es/framework/FieldExtension/SelectFieldDrawer/index.d.ts +6 -0
  149. package/es/framework/FieldExtension/index.d.ts +4 -0
  150. package/es/framework/LayoutWrapper/index.d.ts +2 -0
  151. package/es/framework/Wrapper/index.d.ts +2 -3
  152. package/es/framework/Wrapper/index.js +42 -41
  153. package/es/framework/index.d.ts +17 -7
  154. package/es/get.js +28 -0
  155. package/es/getPrototypeOf.js +76 -0
  156. package/es/index.css +12 -0
  157. package/es/index.d.ts +5 -1
  158. package/es/index.js +9769 -6
  159. package/es/index2.js +2075 -0
  160. package/es/index3.js +383 -0
  161. package/es/modelBuilders/index.d.ts +1 -0
  162. package/es/modelBuilders/schedulingControl.d.ts +68 -0
  163. package/es/models/index.d.ts +1 -0
  164. package/es/models/schedulingControl.d.ts +46 -0
  165. package/es/models/schedulingControl.js +171 -0
  166. package/es/objectSpread2.js +40 -0
  167. package/es/services/schedulingControl.d.ts +4 -0
  168. package/es/services/schedulingControl.js +135 -0
  169. package/es/slicedToArray.js +43 -0
  170. package/es/toConsumableArray.js +19 -0
  171. package/es/toPropertyKey.js +19 -0
  172. package/es/typeof.js +11 -0
  173. package/es/unsupportedIterableToArray.js +16 -0
  174. package/es/utils/appListDataAssist.js +69 -0
  175. package/es/utils/applicationAssist.js +28 -0
  176. package/es/utils/applicationListDataAssist.d.ts +4 -0
  177. package/es/utils/applicationListDataCacheAssist.d.ts +24 -0
  178. package/es/utils/bootstrap.d.ts +4 -0
  179. package/es/utils/bootstrap.js +58 -0
  180. package/es/utils/configAssist.d.ts +1 -0
  181. package/es/utils/currentOperatorAssist.d.ts +5 -0
  182. package/es/utils/definition.d.ts +4 -0
  183. package/es/utils/index.d.ts +8 -0
  184. package/es/utils/layoutSettingAssist.d.ts +2 -0
  185. package/es/utils/layoutSettingAssist.js +60 -0
  186. package/es/utils/metaDataAssist.d.ts +5 -0
  187. package/es/utils/metaDataAssist.js +69 -0
  188. package/es/utils/schedulingControlAssist.d.ts +10 -0
  189. package/es/utils/storageAssist.js +153 -0
  190. package/package.json +122 -195
  191. package/License.txt +0 -21
  192. package/README.md +0 -35
  193. package/es/customComponents/AMap/UIPoiPicker.d.ts +0 -8
  194. package/es/customComponents/AMap/UIPoiPicker.js +0 -78
  195. package/es/customComponents/AMap/UIPositionPicker.d.ts +0 -8
  196. package/es/customComponents/AMap/UIPositionPicker.js +0 -87
  197. package/es/customComponents/ActiveChart/index.d.ts +0 -17
  198. package/es/customComponents/ActiveChart/index.js +0 -168
  199. package/es/customComponents/ActiveChart/index.less +0 -58
  200. package/es/customComponents/AnimalBox/FadeBox/index.d.ts +0 -14
  201. package/es/customComponents/AnimalBox/FadeBox/index.js +0 -82
  202. package/es/customComponents/AnimalBox/FadeBox/index.less +0 -61
  203. package/es/customComponents/AnimalBox/QueueBox/index.d.ts +0 -12
  204. package/es/customComponents/AnimalBox/QueueBox/index.js +0 -76
  205. package/es/customComponents/AnimalBox/QueueListBox/index.d.ts +0 -15
  206. package/es/customComponents/AnimalBox/QueueListBox/index.js +0 -117
  207. package/es/customComponents/AnimalBox/QueueListBox/index.less +0 -16
  208. package/es/customComponents/AnimalBox/RotateBox/index.d.ts +0 -14
  209. package/es/customComponents/AnimalBox/RotateBox/index.js +0 -85
  210. package/es/customComponents/ArticleListContent/index.d.ts +0 -10
  211. package/es/customComponents/ArticleListContent/index.js +0 -49
  212. package/es/customComponents/ArticleListContent/index.less +0 -41
  213. package/es/customComponents/AudioUpload/index.d.ts +0 -39
  214. package/es/customComponents/AudioUpload/index.js +0 -478
  215. package/es/customComponents/Authorized/Authorized.d.ts +0 -6
  216. package/es/customComponents/Authorized/Authorized.js +0 -33
  217. package/es/customComponents/Authorized/AuthorizedRoute.d.ts +0 -8
  218. package/es/customComponents/Authorized/AuthorizedRoute.js +0 -50
  219. package/es/customComponents/Authorized/CheckPermissions.d.ts +0 -11
  220. package/es/customComponents/Authorized/CheckPermissions.js +0 -106
  221. package/es/customComponents/Authorized/PromiseRender.d.ts +0 -13
  222. package/es/customComponents/Authorized/PromiseRender.js +0 -151
  223. package/es/customComponents/Authorized/Secured.d.ts +0 -18
  224. package/es/customComponents/Authorized/Secured.js +0 -95
  225. package/es/customComponents/Authorized/index.d.ts +0 -2
  226. package/es/customComponents/Authorized/index.js +0 -22
  227. package/es/customComponents/Authorized/renderAuthorize.d.ts +0 -3
  228. package/es/customComponents/Authorized/renderAuthorize.js +0 -37
  229. package/es/customComponents/AvatarList/index.d.ts +0 -17
  230. package/es/customComponents/AvatarList/index.js +0 -99
  231. package/es/customComponents/AvatarList/index.less +0 -53
  232. package/es/customComponents/AvatarList/index.test.d.ts +0 -1
  233. package/es/customComponents/Canvas/Bubbly/index.d.ts +0 -20
  234. package/es/customComponents/Canvas/Bubbly/index.js +0 -182
  235. package/es/customComponents/Canvas/Core/index.d.ts +0 -28
  236. package/es/customComponents/Canvas/Core/index.js +0 -163
  237. package/es/customComponents/Canvas/RadarScanning/index.d.ts +0 -20
  238. package/es/customComponents/Canvas/RadarScanning/index.js +0 -251
  239. package/es/customComponents/Canvas/Ribbon.7z +0 -0
  240. package/es/customComponents/Canvas/Spirit/index.d.ts +0 -23
  241. package/es/customComponents/Canvas/Spirit/index.js +0 -119
  242. package/es/customComponents/Canvas/index.d.ts +0 -12
  243. package/es/customComponents/Canvas/index.js +0 -27
  244. package/es/customComponents/CenterBox/index.d.ts +0 -7
  245. package/es/customComponents/CenterBox/index.js +0 -70
  246. package/es/customComponents/Charts/Bar/index.d.ts +0 -10
  247. package/es/customComponents/Charts/Bar/index.js +0 -129
  248. package/es/customComponents/Charts/ChartCard/index.d.ts +0 -8
  249. package/es/customComponents/Charts/ChartCard/index.js +0 -160
  250. package/es/customComponents/Charts/ChartCard/index.less +0 -90
  251. package/es/customComponents/Charts/Field/index.d.ts +0 -6
  252. package/es/customComponents/Charts/Field/index.js +0 -37
  253. package/es/customComponents/Charts/Field/index.less +0 -19
  254. package/es/customComponents/Charts/Gauge/index.d.ts +0 -2
  255. package/es/customComponents/Charts/Gauge/index.js +0 -185
  256. package/es/customComponents/Charts/MiniArea/index.d.ts +0 -2
  257. package/es/customComponents/Charts/MiniArea/index.js +0 -107
  258. package/es/customComponents/Charts/MiniBar/index.d.ts +0 -2
  259. package/es/customComponents/Charts/MiniBar/index.js +0 -62
  260. package/es/customComponents/Charts/MiniProgress/index.d.ts +0 -8
  261. package/es/customComponents/Charts/MiniProgress/index.js +0 -55
  262. package/es/customComponents/Charts/MiniProgress/index.less +0 -42
  263. package/es/customComponents/Charts/Pie/index.d.ts +0 -10
  264. package/es/customComponents/Charts/Pie/index.js +0 -195
  265. package/es/customComponents/Charts/Pie/index.less +0 -104
  266. package/es/customComponents/Charts/TagCloud/index.d.ts +0 -23
  267. package/es/customComponents/Charts/TagCloud/index.js +0 -276
  268. package/es/customComponents/Charts/TagCloud/index.less +0 -7
  269. package/es/customComponents/Charts/TimelineChart/index.d.ts +0 -2
  270. package/es/customComponents/Charts/TimelineChart/index.js +0 -173
  271. package/es/customComponents/Charts/TimelineChart/index.less +0 -5
  272. package/es/customComponents/Charts/WaterWave/index.d.ts +0 -18
  273. package/es/customComponents/Charts/WaterWave/index.js +0 -319
  274. package/es/customComponents/Charts/WaterWave/index.less +0 -32
  275. package/es/customComponents/Charts/autoHeight.d.ts +0 -13
  276. package/es/customComponents/Charts/autoHeight.js +0 -123
  277. package/es/customComponents/Charts/bizcharts.d.ts +0 -2
  278. package/es/customComponents/Charts/bizcharts.js +0 -17
  279. package/es/customComponents/Charts/index.d.ts +0 -27
  280. package/es/customComponents/Charts/index.js +0 -119
  281. package/es/customComponents/Charts/index.less +0 -26
  282. package/es/customComponents/ColorText/index.d.ts +0 -22
  283. package/es/customComponents/ColorText/index.js +0 -139
  284. package/es/customComponents/Countdown/index.d.ts +0 -22
  285. package/es/customComponents/Countdown/index.js +0 -158
  286. package/es/customComponents/Countdown/index.less +0 -5
  287. package/es/customComponents/DataPreviewDrawer/index.less +0 -10
  288. package/es/customComponents/DecorateAvatar/index.d.ts +0 -37
  289. package/es/customComponents/DecorateAvatar/index.js +0 -199
  290. package/es/customComponents/DisplayCopyData/index.d.ts +0 -10
  291. package/es/customComponents/DisplayCopyData/index.js +0 -86
  292. package/es/customComponents/EditableItem/index.d.ts +0 -12
  293. package/es/customComponents/EditableItem/index.js +0 -121
  294. package/es/customComponents/EditableItem/index.less +0 -25
  295. package/es/customComponents/EditableLinkGroup/index.d.ts +0 -23
  296. package/es/customComponents/EditableLinkGroup/index.js +0 -99
  297. package/es/customComponents/EditableLinkGroup/index.less +0 -18
  298. package/es/customComponents/Editor/TinymceWrapper/index.d.ts +0 -19
  299. package/es/customComponents/Editor/TinymceWrapper/index.js +0 -254
  300. package/es/customComponents/Ellipsis/index.d.ts +0 -26
  301. package/es/customComponents/Ellipsis/index.js +0 -389
  302. package/es/customComponents/Ellipsis/index.less +0 -28
  303. package/es/customComponents/Ellipsis/index.test.d.ts +0 -1
  304. package/es/customComponents/EllipsisCustom/index.d.ts +0 -26
  305. package/es/customComponents/EllipsisCustom/index.js +0 -355
  306. package/es/customComponents/EllipsisCustom/index.less +0 -27
  307. package/es/customComponents/EverySpace/index.d.ts +0 -16
  308. package/es/customComponents/EverySpace/index.js +0 -105
  309. package/es/customComponents/Exception/index.js +0 -121
  310. package/es/customComponents/Exception/index.less +0 -92
  311. package/es/customComponents/Exception/typeConfig.d.ts +0 -18
  312. package/es/customComponents/Exception/typeConfig.js +0 -25
  313. package/es/customComponents/FigureRange/index.d.ts +0 -133
  314. package/es/customComponents/FigureRange/index.js +0 -335
  315. package/es/customComponents/FigureRange/index.less +0 -73
  316. package/es/customComponents/FileBase64Upload/index.d.ts +0 -27
  317. package/es/customComponents/FileBase64Upload/index.js +0 -205
  318. package/es/customComponents/FileUpload/index.d.ts +0 -35
  319. package/es/customComponents/FileUpload/index.js +0 -402
  320. package/es/customComponents/FlexBox/index.d.ts +0 -24
  321. package/es/customComponents/FlexBox/index.js +0 -186
  322. package/es/customComponents/FlexText/index.d.ts +0 -21
  323. package/es/customComponents/FlexText/index.js +0 -109
  324. package/es/customComponents/FlexText/index.less +0 -3
  325. package/es/customComponents/FooterToolbar/index.d.ts +0 -16
  326. package/es/customComponents/FooterToolbar/index.js +0 -132
  327. package/es/customComponents/FooterToolbar/index.less +0 -33
  328. package/es/customComponents/FromDisplayItem/index.d.ts +0 -14
  329. package/es/customComponents/FromDisplayItem/index.js +0 -73
  330. package/es/customComponents/FromDisplayItem/index.less +0 -5
  331. package/es/customComponents/FunctionComponent/index.d.ts +0 -443
  332. package/es/customComponents/FunctionComponent/index.js +0 -3404
  333. package/es/customComponents/FunctionComponent/index.less +0 -63
  334. package/es/customComponents/FunctionSupplement/Whether/index.d.ts +0 -46
  335. package/es/customComponents/FunctionSupplement/Whether/index.js +0 -181
  336. package/es/customComponents/GlobalFooter/index.d.ts +0 -6
  337. package/es/customComponents/GlobalFooter/index.js +0 -39
  338. package/es/customComponents/GlobalFooter/index.less +0 -29
  339. package/es/customComponents/HelpBox/index.d.ts +0 -18
  340. package/es/customComponents/HelpBox/index.js +0 -192
  341. package/es/customComponents/HelpBox/index.less +0 -16
  342. package/es/customComponents/HelpCard/index.d.ts +0 -18
  343. package/es/customComponents/HelpCard/index.js +0 -91
  344. package/es/customComponents/HtmlBox/index.d.ts +0 -20
  345. package/es/customComponents/HtmlBox/index.js +0 -118
  346. package/es/customComponents/HtmlBox/index.less +0 -7
  347. package/es/customComponents/IconFont/index.d.ts +0 -2
  348. package/es/customComponents/IconFont/index.js +0 -14
  349. package/es/customComponents/IconInfo/index.d.ts +0 -32
  350. package/es/customComponents/IconInfo/index.js +0 -373
  351. package/es/customComponents/IconInfo/index.less +0 -5
  352. package/es/customComponents/ImageBox/index.d.ts +0 -60
  353. package/es/customComponents/ImageBox/index.js +0 -376
  354. package/es/customComponents/ImageBox/index.less +0 -114
  355. package/es/customComponents/ImageContentPreview/index.d.ts +0 -21
  356. package/es/customComponents/ImageContentPreview/index.js +0 -173
  357. package/es/customComponents/ImageContentPreview/index.less +0 -9
  358. package/es/customComponents/ImageUpload/index.d.ts +0 -45
  359. package/es/customComponents/ImageUpload/index.js +0 -413
  360. package/es/customComponents/ImageUpload/index.less +0 -81
  361. package/es/customComponents/MobileContainor/ContentView/index.d.ts +0 -20
  362. package/es/customComponents/MobileContainor/ContentView/index.js +0 -152
  363. package/es/customComponents/MobileContainor/ContentView/index.less +0 -30
  364. package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.d.ts +0 -19
  365. package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.js +0 -121
  366. package/es/customComponents/MobileContainor/Devices/IPhone5S/index.d.ts +0 -20
  367. package/es/customComponents/MobileContainor/Devices/IPhone5S/index.js +0 -124
  368. package/es/customComponents/MobileContainor/Devices/Iphone8/index.d.ts +0 -20
  369. package/es/customComponents/MobileContainor/Devices/Iphone8/index.js +0 -124
  370. package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.d.ts +0 -20
  371. package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.js +0 -124
  372. package/es/customComponents/MobileContainor/Devices/IphoneX/index.d.ts +0 -20
  373. package/es/customComponents/MobileContainor/Devices/IphoneX/index.js +0 -130
  374. package/es/customComponents/MobileContainor/Devices/RoughSketch/index.d.ts +0 -19
  375. package/es/customComponents/MobileContainor/Devices/RoughSketch/index.js +0 -97
  376. package/es/customComponents/MobileContainor/Devices/RoughSketch/index.less +0 -34
  377. package/es/customComponents/MobileContainor/Devices/devices.less +0 -2815
  378. package/es/customComponents/MobileContainor/MobileSimulation/index.d.ts +0 -23
  379. package/es/customComponents/MobileContainor/MobileSimulation/index.js +0 -243
  380. package/es/customComponents/NoticeIconCustom/NoticeList.d.ts +0 -10
  381. package/es/customComponents/NoticeIconCustom/NoticeList.js +0 -81
  382. package/es/customComponents/NoticeIconCustom/NoticeList.less +0 -90
  383. package/es/customComponents/NoticeIconCustom/index.d.ts +0 -25
  384. package/es/customComponents/NoticeIconCustom/index.js +0 -201
  385. package/es/customComponents/NoticeIconCustom/index.less +0 -31
  386. package/es/customComponents/NumberInfo/index.d.ts +0 -12
  387. package/es/customComponents/NumberInfo/index.js +0 -60
  388. package/es/customComponents/NumberInfo/index.less +0 -77
  389. package/es/customComponents/PageLoading/index.d.ts +0 -2
  390. package/es/customComponents/PageLoading/index.js +0 -13
  391. package/es/customComponents/PercentageBox/index.d.ts +0 -12
  392. package/es/customComponents/PercentageBox/index.js +0 -70
  393. package/es/customComponents/PriceBox/index.d.ts +0 -18
  394. package/es/customComponents/PriceBox/index.js +0 -115
  395. package/es/customComponents/Result/index.d.ts +0 -9
  396. package/es/customComponents/Result/index.js +0 -57
  397. package/es/customComponents/Result/index.less +0 -58
  398. package/es/customComponents/StandardFormRow/index.d.ts +0 -9
  399. package/es/customComponents/StandardFormRow/index.js +0 -47
  400. package/es/customComponents/StandardFormRow/index.less +0 -81
  401. package/es/customComponents/StandardTable/index.d.ts +0 -17
  402. package/es/customComponents/StandardTable/index.js +0 -217
  403. package/es/customComponents/StandardTable/index.less +0 -7
  404. package/es/customComponents/StandardTableCustom/index.d.ts +0 -22
  405. package/es/customComponents/StandardTableCustom/index.js +0 -234
  406. package/es/customComponents/StandardTableCustom/index.less +0 -21
  407. package/es/customComponents/StatusBar/index.d.ts +0 -13
  408. package/es/customComponents/StatusBar/index.js +0 -128
  409. package/es/customComponents/TagSelect/index.d.ts +0 -34
  410. package/es/customComponents/TagSelect/index.js +0 -226
  411. package/es/customComponents/TagSelect/index.less +0 -38
  412. package/es/customComponents/TimeLineCustom/index.d.ts +0 -37
  413. package/es/customComponents/TimeLineCustom/index.js +0 -273
  414. package/es/customComponents/TimeLineCustom/index.less +0 -180
  415. package/es/customComponents/Trend/index.d.ts +0 -10
  416. package/es/customComponents/Trend/index.js +0 -49
  417. package/es/customComponents/Trend/index.less +0 -41
  418. package/es/customComponents/VerticalBox/index.d.ts +0 -15
  419. package/es/customComponents/VerticalBox/index.js +0 -138
  420. package/es/customComponents/VerticalBox/index.less +0 -7
  421. package/es/customComponents/VideoUpload/index.d.ts +0 -39
  422. package/es/customComponents/VideoUpload/index.js +0 -472
  423. package/es/customComponents/_utils/pathTools.d.ts +0 -1
  424. package/es/customComponents/_utils/pathTools.js +0 -15
  425. package/es/customComponents/_utils/pathTools.test.d.ts +0 -1
  426. package/es/customComponents/index.js +0 -16
  427. package/es/framework/Base/index.d.ts +0 -68
  428. package/es/framework/Base/index.js +0 -338
  429. package/es/framework/Common/index.less +0 -13
  430. package/es/framework/CustomBase/index.d.ts +0 -8
  431. package/es/framework/CustomBase/index.js +0 -77
  432. package/es/framework/DataDrawer/Base/index.less +0 -27
  433. package/es/framework/DataForm/BaseAddForm/index.less +0 -51
  434. package/es/framework/DataListView/Base/index.less +0 -161
  435. package/es/framework/DataListView/BatchAction/index.less +0 -5
  436. package/es/framework/DataListView/ColumnSetting/index.less +0 -60
  437. package/es/framework/DataMenuContainer/index.less +0 -100
  438. package/es/framework/DataModal/Base/index.less +0 -6
  439. package/es/framework/DataMultiPageView/InnerMultiPage/index.less +0 -125
  440. package/es/framework/DataMultiPageView/MultiPageDrawer/index.less +0 -65
  441. package/es/framework/DataSinglePageView/InnerSinglePage/index.less +0 -50
  442. package/es/framework/DataSinglePageView/SinglePageDrawer/index.less +0 -33
  443. package/es/framework/DataSingleView/DataCore/index.less +0 -7
  444. package/es/framework/DataTabContainer/index.less +0 -51
  445. package/es/framework/index.js +0 -60
  446. package/es/utils/Authorized.d.ts +0 -4
  447. package/es/utils/Authorized.js +0 -52
  448. package/es/utils/Yuan.d.ts +0 -13
  449. package/es/utils/Yuan.js +0 -92
  450. package/es/utils/actionAssist.d.ts +0 -44
  451. package/es/utils/actionAssist.js +0 -467
  452. package/es/utils/appConfiguration.d.ts +0 -70
  453. package/es/utils/appConfiguration.js +0 -403
  454. package/es/utils/authority.d.ts +0 -7
  455. package/es/utils/authority.js +0 -259
  456. package/es/utils/cacheAssist.d.ts +0 -85
  457. package/es/utils/cacheAssist.js +0 -317
  458. package/es/utils/constants.d.ts +0 -859
  459. package/es/utils/constants.js +0 -1540
  460. package/es/utils/core.d.ts +0 -25
  461. package/es/utils/core.js +0 -95
  462. package/es/utils/defaultSettingsSpecial.d.ts +0 -67
  463. package/es/utils/defaultSettingsSpecial.js +0 -53
  464. package/es/utils/developAssist.d.ts +0 -41
  465. package/es/utils/developAssist.js +0 -224
  466. package/es/utils/dva.d.ts +0 -31
  467. package/es/utils/dva.js +0 -54
  468. package/es/utils/globalModel.d.ts +0 -17
  469. package/es/utils/globalModel.js +0 -40
  470. package/es/utils/globalStorageAssist.d.ts +0 -78
  471. package/es/utils/globalStorageAssist.js +0 -239
  472. package/es/utils/localStorageAssist.d.ts +0 -47
  473. package/es/utils/localStorageAssist.js +0 -116
  474. package/es/utils/mediaDefault.d.ts +0 -11
  475. package/es/utils/mediaDefault.js +0 -24
  476. package/es/utils/proLayoutCollection.d.ts +0 -12
  477. package/es/utils/proLayoutCollection.js +0 -76
  478. package/es/utils/request.d.ts +0 -5
  479. package/es/utils/request.js +0 -243
  480. package/es/utils/requestAssistor.d.ts +0 -79
  481. package/es/utils/requestAssistor.js +0 -596
  482. package/es/utils/sessionStorageAssist.d.ts +0 -47
  483. package/es/utils/sessionStorageAssist.js +0 -116
  484. package/es/utils/tools.d.ts +0 -698
  485. package/es/utils/tools.js +0 -2205
  486. package/es/utils/typeCheck.d.ts +0 -21
  487. package/es/utils/typeCheck.js +0 -58
  488. package/es/utils/typeConvert.d.ts +0 -7
  489. package/es/utils/typeConvert.js +0 -16
  490. package/es/utils/utils.d.ts +0 -5
  491. package/es/utils/utils.js +0 -70
  492. package/es/utils/utils.less +0 -63
  493. package/es/utils/utils.test.d.ts +0 -1
  494. package/es/utils/virtualRequest.d.ts +0 -51
  495. package/es/utils/virtualRequest.js +0 -320
@@ -1,254 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.default = void 0;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _tinymceReact = require("@tinymce/tinymce-react");
13
-
14
- var _defaultSettingsSpecial = require("../../../utils/defaultSettingsSpecial");
15
-
16
- var _globalStorageAssist = require("../../../utils/globalStorageAssist");
17
-
18
- var _requestAssistor = require("../../../utils/requestAssistor");
19
-
20
- var _tools = require("../../../utils/tools");
21
-
22
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
-
24
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
-
26
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27
-
28
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29
-
30
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31
-
32
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
33
-
34
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
35
-
36
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
37
-
38
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
39
-
40
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
41
-
42
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
43
-
44
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
45
-
46
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
47
-
48
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
49
-
50
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
51
-
52
- var TinymceWrapper = /*#__PURE__*/function (_PureComponent) {
53
- _inherits(TinymceWrapper, _PureComponent);
54
-
55
- var _super = _createSuper(TinymceWrapper);
56
-
57
- function TinymceWrapper() {
58
- var _this;
59
-
60
- _classCallCheck(this, TinymceWrapper);
61
-
62
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
63
- args[_key] = arguments[_key];
64
- }
65
-
66
- _this = _super.call.apply(_super, [this].concat(args));
67
- _this.editor = /*#__PURE__*/_react.default.createRef();
68
-
69
- _this.buildConfig = function () {
70
- var initConfig = _this.props.initConfig;
71
-
72
- var config = _objectSpread(_objectSpread({}, {
73
- language: 'zh_CN',
74
- height: 690,
75
- // plugins_ignore:
76
- // 'tinydrive powerpaste imagetools advcode formatpainter pageembed permanentpen casechange checklist advtable export tinymcespellchecker linkchecker mentions tinycomments toc',
77
- plugins: 'preview importcss searchreplace autolink autosave save directionality visualblocks visualchars fullscreen image link media template codesample code table charmap pagebreak nonbreaking anchor insertdatetime advlist lists wordcount help charmap quickbars emoticons autoresize',
78
- mobile: {
79
- plugins: 'preview importcss searchreplace autolink autosave save directionality visualblocks visualchars fullscreen image link media template codesample code table charmap pagebreak nonbreaking anchor insertdatetime advlist lists wordcount help charmap quickbars emoticons autoresize'
80
- },
81
- menu: {
82
- tc: {
83
- title: 'Comments',
84
- items: 'addcomment showcomments deleteallconversations'
85
- }
86
- },
87
- menubar: 'file edit view insert format tools table tc help',
88
- toolbar: 'undo redo bold italic underline strikethrough fontselect fontsizeselect formatselect alignleft aligncenter alignright alignjustify outdent indent numlist bullist forecolor backcolor removeformat visualblocks visualchars table tabledelete tableprops tablerowprops tablecellprops tableinsertrowbefore tableinsertrowafter tabledeleterow tableinsertcolbefore tableinsertcolafter tabledeletecol searchreplace pagebreak nonbreaking charmap emoticons fullscreen preview wordcount save insertdatetime insertfile image media template link anchor codesample code ltr rtl showcomments addcomment restoredraft help',
89
- autosave_ask_before_unload: true,
90
- autosave_interval: '30s',
91
- autosave_prefix: '{path}{query}-{id}-',
92
- autosave_restore_when_empty: false,
93
- autosave_retention: '2m',
94
- image_advtab: true,
95
- // link_list: [],
96
- // image_list: [],
97
- // 启用image_class_list 配置后,该值不能为空数组,否则将发生错误
98
- // image_class_list: ['image'],
99
- importcss_append: true,
100
- templates: [{
101
- title: '新建表格',
102
- description: 'creates a new table',
103
- content: '<div class="mceTmpl"><table width="98%%" border="0" cellspacing="0" cellpadding="0"><tr><th scope="col"> </th><th scope="col"> </th></tr><tr><td> </td><td> </td></tr></table></div>'
104
- }, {
105
- title: 'Starting my story',
106
- description: 'A cure for writers block',
107
- content: 'Once upon a time...'
108
- }, {
109
- title: '附带日期的清单',
110
- description: '附带日期的清单',
111
- content: '<div class="mceTmpl"><span class="cdate">cdate</span><br /><span class="mdate">mdate</span><h2>My List</h2><ul><li></li><li></li></ul></div>'
112
- }],
113
- template_cdate_format: '[Date Created (CDATE): %m/%d/%Y : %H:%M:%S]',
114
- template_mdate_format: '[Date Modified (MDATE): %m/%d/%Y : %H:%M:%S]',
115
- image_caption: true,
116
- quickbars_selection_toolbar: 'bold italic | quicklink h2 h3 blockquote quickimage quicktable',
117
- noneditable_noneditable_class: 'mceNonEditable',
118
- toolbar_mode: 'sliding',
119
- // spellchecker_ignore_list: ['Ephox', 'Moxiecode'],
120
- // tinycomments_mode: 'embedded',
121
- content_style: '.mymention{ color: gray; }',
122
- // contextmenu_ignore: 'imagetools configurepermanentpen',
123
- contextmenu: 'link image table',
124
- a11y_advanced_options: true,
125
- skin: 'oxide',
126
- content_css: 'default',
127
- // mentions_selector: '.mymention',
128
- // mentions_item_type: 'profile',
129
- automatic_uploads: true,
130
- images_upload_url: '',
131
- min_height: 700,
132
- toolbar_sticky: true,
133
- images_upload_handler: _this.imageUploadHandler
134
- }), initConfig || {});
135
-
136
- (0, _tools.recordObject)({
137
- tinymceCustomConfig: initConfig || {},
138
- tinymceMergeConfig: config
139
- });
140
- return config;
141
- };
142
-
143
- _this.imageUploadHandler = function (blobInfo, progress) {
144
- return new Promise(function (resolve, reject) {
145
- var imagesUploadUrl = _this.props.imagesUploadUrl;
146
- var corsUrl = (0, _tools.corsTarget)();
147
- var images_upload_url = "".concat(corsUrl).concat(imagesUploadUrl);
148
- var xhr, formData;
149
- xhr = new XMLHttpRequest();
150
- xhr.withCredentials = false;
151
- xhr.open('POST', images_upload_url);
152
- xhr.setRequestHeader((0, _globalStorageAssist.getTokenKeyName)(), (0, _globalStorageAssist.getToken)() || 'anonymous');
153
-
154
- xhr.upload.onprogress = function (e) {
155
- progress(e.loaded / e.total * 100);
156
- };
157
-
158
- xhr.onload = function () {
159
- if (xhr.status === 403) {
160
- reject({
161
- message: 'HTTP Error: ' + xhr.status,
162
- remove: true
163
- });
164
- return;
165
- }
166
-
167
- if (xhr.status < 200 || xhr.status >= 300) {
168
- reject('HTTP Error: ' + xhr.status);
169
- return;
170
- }
171
-
172
- var json = {};
173
-
174
- try {
175
- json = JSON.parse(xhr.responseText);
176
- } catch (e) {
177
- reject("\u56FE\u7247\u4E0A\u4F20\u5931\u8D25, \u8FD4\u56DE\u6570\u636E\u975EJson\u683C\u5F0F, \u8BF7\u68C0\u67E5");
178
- (0, _tools.notifyError)(xhr.responseText);
179
- return;
180
- }
181
-
182
- var v = (0, _requestAssistor.pretreatmentRemoteSingleData)(json);
183
- var dataSuccess = v.dataSuccess;
184
-
185
- if (!dataSuccess) {
186
- reject("\u56FE\u7247\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u786E\u8BA4\u4E0A\u4F20\u5730\u5740\u6709\u6548\u53EF\u7528,\u5F53\u524D\u4E0A\u4F20\u5730\u5740\u4E3A: ".concat(images_upload_url));
187
- return;
188
- }
189
-
190
- var imageUrl = v.data.imageUrl;
191
- resolve(imageUrl || '');
192
- };
193
-
194
- xhr.onerror = function () {
195
- reject('图片上传失败,请确认上传地址有效可用. Code: ' + xhr.status);
196
- };
197
-
198
- formData = new FormData();
199
- formData.append('file', blobInfo.blob(), blobInfo.filename());
200
- xhr.send(formData);
201
- });
202
- };
203
-
204
- _this.handleEditorChange = function (newValue, editor) {
205
- var afterChange = _this.props.afterChange;
206
-
207
- if ((0, _tools.isFunction)(afterChange)) {
208
- afterChange({
209
- html: editor.getContent(),
210
- text: editor.getContent({
211
- format: 'text'
212
- })
213
- });
214
- }
215
- };
216
-
217
- return _this;
218
- }
219
-
220
- _createClass(TinymceWrapper, [{
221
- key: "render",
222
- value: function render() {
223
- var _this2 = this;
224
-
225
- var _this$props = this.props,
226
- apiKey = _this$props.apiKey,
227
- content = _this$props.content;
228
- return /*#__PURE__*/_react.default.createElement("div", {
229
- style: {
230
- border: '0px solid #ccc'
231
- }
232
- }, /*#__PURE__*/_react.default.createElement(_tinymceReact.Editor, {
233
- apiKey: apiKey,
234
- onInit: function onInit(evt, editor) {
235
- return _this2.editor.current = editor;
236
- },
237
- initialValue: content,
238
- init: this.buildConfig(),
239
- onEditorChange: this.handleEditorChange
240
- }));
241
- }
242
- }]);
243
-
244
- return TinymceWrapper;
245
- }(_react.PureComponent);
246
-
247
- TinymceWrapper.defaultProps = {
248
- apiKey: _defaultSettingsSpecial.defaultSettingsLayoutCustom.getTinymceApiKey(),
249
- content: '',
250
- initConfig: null,
251
- imagesUploadUrl: _defaultSettingsSpecial.defaultSettingsLayoutCustom.getTinymceImagesUploadUrl()
252
- };
253
- var _default = TinymceWrapper;
254
- exports.default = _default;
@@ -1,26 +0,0 @@
1
- export function getStrFullLength(str?: string): number;
2
- export function cutStrByFullLength(str: string | undefined, maxLength: any): string;
3
- export default class Ellipsis extends Component<any, any, any> {
4
- constructor(props: any);
5
- constructor(props: any, context: any);
6
- state: {
7
- text: string;
8
- targetCount: number;
9
- };
10
- componentDidMount(): void;
11
- componentDidUpdate(perProps: any): void;
12
- computeLine: () => void;
13
- bisection: (th: any, m: any, b: any, e: any, text: any, shadowNode: any) => any;
14
- handleRoot: (n: any) => void;
15
- root: any;
16
- handleContent: (n: any) => void;
17
- content: any;
18
- handleNode: (n: any) => void;
19
- node: any;
20
- handleShadow: (n: any) => void;
21
- shadow: any;
22
- handleShadowChildren: (n: any) => void;
23
- shadowChildren: any;
24
- render(): any;
25
- }
26
- import { Component } from "react";
@@ -1,389 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.getStrFullLength = exports.default = exports.cutStrByFullLength = void 0;
9
-
10
- require("antd/es/tooltip/style");
11
-
12
- var _tooltip = _interopRequireDefault(require("antd/es/tooltip"));
13
-
14
- var _react = _interopRequireWildcard(require("react"));
15
-
16
- var _classnames = _interopRequireDefault(require("classnames"));
17
-
18
- var _tools = require("../../utils/tools");
19
-
20
- var _index = _interopRequireDefault(require("./index.less"));
21
-
22
- var _excluded = ["text", "length", "tooltip", "fullWidthRecognition"],
23
- _excluded2 = ["children", "lines", "length", "className", "tooltip", "fullWidthRecognition", "title", "color"];
24
-
25
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
26
-
27
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
28
-
29
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
30
-
31
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
32
-
33
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
34
-
35
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
36
-
37
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
38
-
39
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
40
-
41
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
42
-
43
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
44
-
45
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
46
-
47
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
48
-
49
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
50
-
51
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
52
-
53
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
54
-
55
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
56
-
57
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
58
-
59
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
60
-
61
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
62
-
63
- /* eslint react/no-did-mount-set-state: 0 */
64
-
65
- /* eslint no-param-reassign: 0 */
66
- var isSupportLineClamp = document.body.style.webkitLineClamp !== undefined;
67
- var TooltipOverlayStyle = {
68
- overflowWrap: 'break-word',
69
- wordWrap: 'break-word'
70
- };
71
-
72
- var getStrFullLength = function getStrFullLength() {
73
- var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
74
- return str.split('').reduce(function (pre, cur) {
75
- var charCode = cur.charCodeAt(0);
76
-
77
- if (charCode >= 0 && charCode <= 128) {
78
- return pre + 1;
79
- }
80
-
81
- return pre + 2;
82
- }, 0);
83
- };
84
-
85
- exports.getStrFullLength = getStrFullLength;
86
-
87
- var cutStrByFullLength = function cutStrByFullLength() {
88
- var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
89
- var maxLength = arguments.length > 1 ? arguments[1] : undefined;
90
- var showLength = 0;
91
- return str.split('').reduce(function (pre, cur) {
92
- var charCode = cur.charCodeAt(0);
93
-
94
- if (charCode >= 0 && charCode <= 128) {
95
- showLength += 1;
96
- } else {
97
- showLength += 2;
98
- }
99
-
100
- if (showLength <= maxLength) {
101
- return pre + cur;
102
- }
103
-
104
- return pre;
105
- }, '');
106
- };
107
-
108
- exports.cutStrByFullLength = cutStrByFullLength;
109
-
110
- var getTooltip = function getTooltip(_ref) {
111
- var tooltip = _ref.tooltip,
112
- overlayStyle = _ref.overlayStyle,
113
- title = _ref.title,
114
- color = _ref.color,
115
- children = _ref.children;
116
-
117
- if (tooltip) {
118
- var props = tooltip === true ? {
119
- overlayStyle: overlayStyle,
120
- title: title,
121
- color: color
122
- } : _objectSpread(_objectSpread({}, tooltip), {}, {
123
- overlayStyle: overlayStyle,
124
- title: title,
125
- color: color
126
- });
127
- return /*#__PURE__*/_react.default.createElement(_tooltip.default, props, children);
128
- }
129
-
130
- return children;
131
- };
132
-
133
- var EllipsisText = function EllipsisText(_ref2) {
134
- var text = _ref2.text,
135
- length = _ref2.length,
136
- tooltip = _ref2.tooltip,
137
- fullWidthRecognition = _ref2.fullWidthRecognition,
138
- other = _objectWithoutProperties(_ref2, _excluded);
139
-
140
- if (typeof text !== 'string') {
141
- throw new Error('Ellipsis children must be string.');
142
- }
143
-
144
- var textLength = fullWidthRecognition ? getStrFullLength(text) : text.length;
145
-
146
- if (textLength <= length || length < 0) {
147
- return /*#__PURE__*/_react.default.createElement("span", other, text);
148
- }
149
-
150
- var tail = '...';
151
- var displayText;
152
-
153
- if (length - tail.length <= 0) {
154
- displayText = '';
155
- } else {
156
- displayText = fullWidthRecognition ? cutStrByFullLength(text, length) : text.slice(0, length);
157
- }
158
-
159
- var spanAttrs = tooltip ? {} : _objectSpread({}, other);
160
- return getTooltip({
161
- tooltip: tooltip,
162
- overlayStyle: TooltipOverlayStyle,
163
- title: text,
164
- children: /*#__PURE__*/_react.default.createElement("span", spanAttrs, displayText, tail)
165
- });
166
- };
167
-
168
- var Ellipsis = /*#__PURE__*/function (_Component) {
169
- _inherits(Ellipsis, _Component);
170
-
171
- var _super = _createSuper(Ellipsis);
172
-
173
- function Ellipsis() {
174
- var _this;
175
-
176
- _classCallCheck(this, Ellipsis);
177
-
178
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
179
- args[_key] = arguments[_key];
180
- }
181
-
182
- _this = _super.call.apply(_super, [this].concat(args));
183
- _this.state = {
184
- text: '',
185
- targetCount: 0
186
- };
187
-
188
- _this.computeLine = function () {
189
- var lines = _this.props.lines;
190
-
191
- if (lines && !isSupportLineClamp) {
192
- var text = _this.shadowChildren.innerText || _this.shadowChildren.textContent;
193
- var lineHeight = parseInt(getComputedStyle(_this.root).lineHeight, 10);
194
- var targetHeight = lines * lineHeight;
195
- _this.content.style.height = "".concat(targetHeight, "px");
196
- var totalHeight = _this.shadowChildren.offsetHeight;
197
- var shadowNode = _this.shadow.firstChild;
198
-
199
- if (totalHeight <= targetHeight) {
200
- _this.setState({
201
- text: text,
202
- targetCount: text.length
203
- });
204
-
205
- return;
206
- } // bisection
207
-
208
-
209
- var len = text.length;
210
- var mid = Math.ceil(len / 2);
211
-
212
- var count = _this.bisection(targetHeight, mid, 0, len, text, shadowNode);
213
-
214
- _this.setState({
215
- text: text,
216
- targetCount: count
217
- });
218
- }
219
- };
220
-
221
- _this.bisection = function (th, m, b, e, text, shadowNode) {
222
- var suffix = '...';
223
- var mid = m;
224
- var end = e;
225
- var begin = b;
226
- shadowNode.innerHTML = text.substring(0, mid) + suffix;
227
- var sh = shadowNode.offsetHeight;
228
-
229
- if (sh <= th) {
230
- shadowNode.innerHTML = text.substring(0, mid + 1) + suffix;
231
- sh = shadowNode.offsetHeight;
232
-
233
- if (sh > th || mid === begin) {
234
- return mid;
235
- }
236
-
237
- begin = mid;
238
-
239
- if (end - begin === 1) {
240
- mid = 1 + begin;
241
- } else {
242
- mid = Math.floor((end - begin) / 2) + begin;
243
- }
244
-
245
- return _this.bisection(th, mid, begin, end, text, shadowNode);
246
- }
247
-
248
- if (mid - 1 < 0) {
249
- return mid;
250
- }
251
-
252
- shadowNode.innerHTML = text.substring(0, mid - 1) + suffix;
253
- sh = shadowNode.offsetHeight;
254
-
255
- if (sh <= th) {
256
- return mid - 1;
257
- }
258
-
259
- end = mid;
260
- mid = Math.floor((end - begin) / 2) + begin;
261
- return _this.bisection(th, mid, begin, end, text, shadowNode);
262
- };
263
-
264
- _this.handleRoot = function (n) {
265
- _this.root = n;
266
- };
267
-
268
- _this.handleContent = function (n) {
269
- _this.content = n;
270
- };
271
-
272
- _this.handleNode = function (n) {
273
- _this.node = n;
274
- };
275
-
276
- _this.handleShadow = function (n) {
277
- _this.shadow = n;
278
- };
279
-
280
- _this.handleShadowChildren = function (n) {
281
- _this.shadowChildren = n;
282
- };
283
-
284
- return _this;
285
- }
286
-
287
- _createClass(Ellipsis, [{
288
- key: "componentDidMount",
289
- value: function componentDidMount() {
290
- if (this.node) {
291
- this.computeLine();
292
- }
293
- }
294
- }, {
295
- key: "componentDidUpdate",
296
- value: function componentDidUpdate(perProps) {
297
- var lines = this.props.lines;
298
-
299
- if (lines !== perProps.lines) {
300
- this.computeLine();
301
- }
302
- }
303
- }, {
304
- key: "render",
305
- value: function render() {
306
- var _classNames;
307
-
308
- var _this$state = this.state,
309
- text = _this$state.text,
310
- targetCount = _this$state.targetCount;
311
-
312
- var _this$props = this.props,
313
- children = _this$props.children,
314
- lines = _this$props.lines,
315
- length = _this$props.length,
316
- className = _this$props.className,
317
- tooltip = _this$props.tooltip,
318
- fullWidthRecognition = _this$props.fullWidthRecognition,
319
- title = _this$props.title,
320
- color = _this$props.color,
321
- restProps = _objectWithoutProperties(_this$props, _excluded2);
322
-
323
- var cls = (0, _classnames.default)(_index.default.ellipsis, className, (_classNames = {}, _defineProperty(_classNames, _index.default.lines, lines && !isSupportLineClamp), _defineProperty(_classNames, _index.default.lineClamp, lines && isSupportLineClamp), _classNames));
324
-
325
- if (!lines && !length) {
326
- return /*#__PURE__*/_react.default.createElement("span", _extends({
327
- className: cls
328
- }, restProps), children);
329
- } // length
330
-
331
-
332
- if (!lines) {
333
- return /*#__PURE__*/_react.default.createElement(EllipsisText, _extends({
334
- className: cls,
335
- length: length,
336
- text: children || '',
337
- tooltip: tooltip,
338
- fullWidthRecognition: fullWidthRecognition
339
- }, restProps));
340
- }
341
-
342
- var id = "antd-pro-ellipsis-".concat("".concat(new Date().getTime()).concat(Math.floor(Math.random() * 100))); // support document.body.style.webkitLineClamp
343
-
344
- if (isSupportLineClamp) {
345
- var style = "#".concat(id, "{-webkit-line-clamp:").concat(lines, ";-webkit-box-orient: vertical;}");
346
-
347
- var node = /*#__PURE__*/_react.default.createElement("div", _extends({
348
- id: id,
349
- className: cls
350
- }, restProps), /*#__PURE__*/_react.default.createElement("style", null, style), children);
351
-
352
- return getTooltip(_objectSpread(_objectSpread({}, {
353
- tooltip: tooltip,
354
- overlayStyle: TooltipOverlayStyle,
355
- title: title || children,
356
- children: node
357
- }), (0, _tools.stringIsNullOrWhiteSpace)(color) ? {} : {
358
- color: color
359
- }));
360
- }
361
-
362
- var childNode = /*#__PURE__*/_react.default.createElement("span", {
363
- ref: this.handleNode
364
- }, targetCount > 0 && text.substring(0, targetCount), targetCount > 0 && targetCount < text.length && '...');
365
-
366
- return /*#__PURE__*/_react.default.createElement("div", _extends({}, restProps, {
367
- ref: this.handleRoot,
368
- className: cls
369
- }), /*#__PURE__*/_react.default.createElement("div", {
370
- ref: this.handleContent
371
- }, getTooltip({
372
- tooltip: tooltip,
373
- overlayStyle: TooltipOverlayStyle,
374
- title: text,
375
- children: childNode
376
- }), /*#__PURE__*/_react.default.createElement("div", {
377
- className: _index.default.shadow,
378
- ref: this.handleShadowChildren
379
- }, children), /*#__PURE__*/_react.default.createElement("div", {
380
- className: _index.default.shadow,
381
- ref: this.handleShadow
382
- }, /*#__PURE__*/_react.default.createElement("span", null, text))));
383
- }
384
- }]);
385
-
386
- return Ellipsis;
387
- }(_react.Component);
388
-
389
- exports.default = Ellipsis;