@cmstops/pro-compo 3.9.0 → 3.9.1-harbin.1

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 (547) hide show
  1. package/README.md +107 -107
  2. package/dist/gif.worker.js +3 -3
  3. package/dist/index.css +49 -4
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.css +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/es/appCenter/style/index.less +120 -120
  8. package/es/baseFilter/component.js +71 -14
  9. package/es/baseFilter/components/FilterGroup.js +1 -1
  10. package/es/baseFilter/style/filterGroup.less +53 -53
  11. package/es/baseFilter/style/index.less +45 -45
  12. package/es/colorPalette/style/index.less +44 -44
  13. package/es/config.js +1 -1
  14. package/es/contentDetailList/component.js +24 -0
  15. package/es/contentDetailList/components/Content/CompoItem/index.js +1 -1
  16. package/es/contentDetailList/components/Content/ContentListItem/index.js +1 -1
  17. package/es/contentDetailList/components/Content/DocItem/index.js +1 -1
  18. package/es/contentDetailList/components/Content/DocMpItem/index.js +1 -1
  19. package/es/contentDetailList/components/Content/GroupPieceItem/index.js +1 -1
  20. package/es/contentDetailList/components/Content/KongoNavItem/index.js +1 -1
  21. package/es/contentDetailList/components/Content/LiveItem/index.js +1 -1
  22. package/es/contentDetailList/components/Content/MaccountItem/index.js +1 -1
  23. package/es/contentDetailList/components/Content/courseItem/index.js +1 -1
  24. package/es/contentDetailList/components/Content/funhdItem/index.js +1 -1
  25. package/es/contentDetailList/components/Content/index.js +2 -1
  26. package/es/contentDetailList/components/CustomWrp/CustomItem.js +1 -1
  27. package/es/contentDetailList/components/Doc/index.js +6 -0
  28. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.js +6 -4
  29. package/es/contentDetailList/style/ComoItem.less +99 -99
  30. package/es/contentDetailList/style/Content.less +49 -49
  31. package/es/contentDetailList/style/ContentListItem.less +132 -132
  32. package/es/contentDetailList/style/CustomItem.less +25 -25
  33. package/es/contentDetailList/style/Doc.less +3 -3
  34. package/es/contentDetailList/style/DocItem.less +152 -152
  35. package/es/contentDetailList/style/DocMpItem.less +135 -135
  36. package/es/contentDetailList/style/GroupPieceItem.less +108 -108
  37. package/es/contentDetailList/style/KongoNavItem.less +104 -104
  38. package/es/contentDetailList/style/LiveItem.less +108 -108
  39. package/es/contentDetailList/style/MaccountItem.less +111 -111
  40. package/es/contentDetailList/style/MatrixItem.less +214 -214
  41. package/es/contentDetailList/style/QrCodeView.less +93 -93
  42. package/es/contentDetailList/style/ShowQRCode.less +3 -3
  43. package/es/contentDetailList/style/courseItem.less +108 -108
  44. package/es/contentDetailList/style/funhdItem.less +108 -108
  45. package/es/contentDetailList/style/index.less +30 -30
  46. package/es/contentModal/component.js +24 -16
  47. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +6 -176
  48. package/es/contentModal/components/ViewAllColumn/index.js +0 -1
  49. package/es/contentModal/components/storeBox/index.js +6 -4
  50. package/es/contentModal/script/api.js +1 -7
  51. package/es/contentModal/style/MediaFilter.less +47 -47
  52. package/es/contentModal/style/ViewAllColumn.less +68 -68
  53. package/es/contentModal/style/columnTree.less +32 -32
  54. package/es/contentModal/style/index.less +23 -23
  55. package/es/contentModal/style/storeBox.less +55 -55
  56. package/es/dataTags/component.js +15 -10
  57. package/es/dataTags/style/index.less +73 -73
  58. package/es/docHistory/component.js +44 -14
  59. package/es/docHistory/scripts/diff.js +4 -3
  60. package/es/docHistory/style/docDiffPanel.less +43 -43
  61. package/es/docHistory/style/docHistoryList.less +58 -58
  62. package/es/docHistory/style/index.css +4 -0
  63. package/es/docHistory/style/index.less +37 -32
  64. package/es/docPreview/component.js +15 -10
  65. package/es/docPreview/style/index.less +140 -140
  66. package/es/docPreview/style/previewIframe.less +36 -36
  67. package/es/editMetaInfo/components/metaInfoForm.js +6 -4
  68. package/es/editMetaInfo/style/index.less +60 -60
  69. package/es/emptyData/style/index.less +34 -34
  70. package/es/gif.worker.js +3 -3
  71. package/es/hooks/useAttachement.js +42 -2
  72. package/es/hooks/usePopper.js +3 -3
  73. package/es/hooks/useUpload.js +43 -4
  74. package/es/imageCrop/component.js +6 -4
  75. package/es/imageCrop/style/cropper.less +291 -291
  76. package/es/imageCrop/style/imageCropper.less +133 -133
  77. package/es/imageCrop/style/index.less +2 -2
  78. package/es/importData/component.js +10 -7
  79. package/es/importData/style/index.less +48 -48
  80. package/es/index.css +49 -4
  81. package/es/index.js +1 -0
  82. package/es/index.less +30 -30
  83. package/es/mediaFilter/components/DocFilter.js +3 -2
  84. package/es/mediaFilter/components/FilterGroup.js +1 -1
  85. package/es/mediaFilter/style/index.less +115 -115
  86. package/es/mediaView/style/index.less +71 -71
  87. package/es/messageBox/component.js +1 -1
  88. package/es/messageBox/list.js +1 -1
  89. package/es/messageBox/style/index.less +76 -76
  90. package/es/previousVersion/style/index.less +209 -209
  91. package/es/resourceGridList/component.js +5 -3
  92. package/es/resourceGridList/style/FileTypeThumb.less +96 -96
  93. package/es/resourceGridList/style/index.less +233 -233
  94. package/es/resourceModal/component.js +1 -1
  95. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
  96. package/es/resourceModal/components/MediaSelection/MainContent/index.js +5 -3
  97. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +1 -1
  98. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +1 -1
  99. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -1
  100. package/es/resourceModal/style/DocAiMediaSelected.less +55 -55
  101. package/es/resourceModal/style/FileTypeThumb.less +205 -205
  102. package/es/resourceModal/style/MainContent.less +222 -222
  103. package/es/resourceModal/style/MediaPreviewer.less +71 -71
  104. package/es/resourceModal/style/MediaSelection.less +69 -69
  105. package/es/resourceModal/style/SystemResourceSelected.less +154 -154
  106. package/es/resourceModal/style/ToolbarSearch.less +53 -53
  107. package/es/resourceModal/style/index.less +18 -18
  108. package/es/selectAddTo/component.js +47 -0
  109. package/es/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  110. package/es/selectAddTo/components/SelectAddToView.js +91 -0
  111. package/es/selectAddTo/components/SelectAddToView.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  112. package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +166 -0
  113. package/es/selectAddTo/components/ViewAllColumn/index.js +212 -0
  114. package/es/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  115. package/es/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +102 -0
  116. package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +182 -0
  117. package/es/selectAddTo/index.js +7 -0
  118. package/es/selectAddTo/script/api.js +23 -0
  119. package/es/selectAddTo/script/useSelectAddToState.js +55 -0
  120. package/es/selectAddTo/style/css.js +1 -0
  121. package/es/selectAddTo/style/index.css +3 -0
  122. package/es/selectAddTo/style/index.js +1 -0
  123. package/es/selectAddTo/style/index.less +3 -0
  124. package/es/selectAvatarList/style/index.less +4 -4
  125. package/es/selectGategory/component.js +1 -1
  126. package/es/selectGategory/style/ColumnSelection.less +190 -190
  127. package/es/selectGategory/style/index.less +40 -40
  128. package/es/selectResourceModal/component.js +15 -10
  129. package/es/selectResourceModal/components/List/ListLocal/Upload.js +4 -3
  130. package/es/selectResourceModal/components/List/ListLocal/index.js +9 -4
  131. package/es/selectResourceModal/components/List/ListNormal/Filter.js +215 -84
  132. package/es/selectResourceModal/components/List/ListNormal/index.js +23 -7
  133. package/es/selectResourceModal/components/List/ListSystem/Filter.js +3 -2
  134. package/es/selectResourceModal/components/List/ListSystem/SubList.js +1 -1
  135. package/es/selectResourceModal/hooks/useResponsiveFilter.js +142 -0
  136. package/es/selectResourceModal/scripts/useCompoLf.js +1 -1
  137. package/es/selectResourceModal/style/index.css +45 -4
  138. package/es/selectResourceModal/style/index.less +55 -41
  139. package/es/selectResourceModal/style/list.less +203 -167
  140. package/es/selectResourceModal/style/listCardWrapper.less +97 -97
  141. package/es/selectResourceModal/style/listSelected.less +94 -94
  142. package/es/selectThumb/component.js +65 -11
  143. package/es/selectThumb/style/card.less +95 -95
  144. package/es/selectThumb/style/colorPalette.less +30 -30
  145. package/es/selectThumb/style/index.less +62 -62
  146. package/es/style/index.less +1 -1
  147. package/es/style.css +63 -0
  148. package/es/thumbCard/style/index.less +90 -90
  149. package/es/thumbCard/style/thumbUploading.less +26 -26
  150. package/es/typeIcons/component.js +1 -1
  151. package/es/typeIcons/style/index.less +6 -6
  152. package/es/uploadBefore/components/UploadBefore.js +1 -1
  153. package/es/uploadBefore/style/index.less +144 -144
  154. package/es/uploadStep/style/index.less +152 -152
  155. package/es/userAvater/component.js +3 -2
  156. package/es/userAvater/style/index.less +54 -54
  157. package/es/userDirector/component.js +3 -2
  158. package/es/userDirector/style/index.less +96 -96
  159. package/es/utils/index.js +6 -6
  160. package/es/videoThumb/style/index.less +77 -77
  161. package/lib/appCenter/style/index.less +120 -120
  162. package/lib/baseFilter/component.js +69 -12
  163. package/lib/baseFilter/components/FilterGroup.js +1 -1
  164. package/lib/baseFilter/style/filterGroup.less +53 -53
  165. package/lib/baseFilter/style/index.less +45 -45
  166. package/lib/colorPalette/style/index.less +44 -44
  167. package/lib/config.js +1 -1
  168. package/lib/contentDetailList/component.js +24 -0
  169. package/lib/contentDetailList/components/Content/CompoItem/index.js +1 -1
  170. package/lib/contentDetailList/components/Content/ContentListItem/index.js +1 -1
  171. package/lib/contentDetailList/components/Content/DocItem/index.js +1 -1
  172. package/lib/contentDetailList/components/Content/DocMpItem/index.js +1 -1
  173. package/lib/contentDetailList/components/Content/GroupPieceItem/index.js +1 -1
  174. package/lib/contentDetailList/components/Content/KongoNavItem/index.js +1 -1
  175. package/lib/contentDetailList/components/Content/LiveItem/index.js +1 -1
  176. package/lib/contentDetailList/components/Content/MaccountItem/index.js +1 -1
  177. package/lib/contentDetailList/components/Content/courseItem/index.js +1 -1
  178. package/lib/contentDetailList/components/Content/funhdItem/index.js +1 -1
  179. package/lib/contentDetailList/components/Content/index.js +2 -1
  180. package/lib/contentDetailList/components/CustomWrp/CustomItem.js +1 -1
  181. package/lib/contentDetailList/components/Doc/index.js +6 -0
  182. package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +6 -4
  183. package/lib/contentDetailList/style/ComoItem.less +99 -99
  184. package/lib/contentDetailList/style/Content.less +49 -49
  185. package/lib/contentDetailList/style/ContentListItem.less +132 -132
  186. package/lib/contentDetailList/style/CustomItem.less +25 -25
  187. package/lib/contentDetailList/style/Doc.less +3 -3
  188. package/lib/contentDetailList/style/DocItem.less +152 -152
  189. package/lib/contentDetailList/style/DocMpItem.less +135 -135
  190. package/lib/contentDetailList/style/GroupPieceItem.less +108 -108
  191. package/lib/contentDetailList/style/KongoNavItem.less +104 -104
  192. package/lib/contentDetailList/style/LiveItem.less +108 -108
  193. package/lib/contentDetailList/style/MaccountItem.less +111 -111
  194. package/lib/contentDetailList/style/MatrixItem.less +214 -214
  195. package/lib/contentDetailList/style/QrCodeView.less +93 -93
  196. package/lib/contentDetailList/style/ShowQRCode.less +3 -3
  197. package/lib/contentDetailList/style/courseItem.less +108 -108
  198. package/lib/contentDetailList/style/funhdItem.less +108 -108
  199. package/lib/contentDetailList/style/index.less +30 -30
  200. package/lib/contentModal/component.js +24 -16
  201. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +5 -175
  202. package/lib/contentModal/components/ViewAllColumn/index.js +0 -1
  203. package/lib/contentModal/components/storeBox/index.js +6 -4
  204. package/lib/contentModal/script/api.js +0 -7
  205. package/lib/contentModal/style/MediaFilter.less +47 -47
  206. package/lib/contentModal/style/ViewAllColumn.less +68 -68
  207. package/lib/contentModal/style/columnTree.less +32 -32
  208. package/lib/contentModal/style/index.less +23 -23
  209. package/lib/contentModal/style/storeBox.less +55 -55
  210. package/lib/dataTags/component.js +15 -10
  211. package/lib/dataTags/style/index.less +73 -73
  212. package/lib/docHistory/component.js +42 -12
  213. package/lib/docHistory/scripts/diff.js +4 -3
  214. package/lib/docHistory/style/docDiffPanel.less +43 -43
  215. package/lib/docHistory/style/docHistoryList.less +58 -58
  216. package/lib/docHistory/style/index.css +4 -0
  217. package/lib/docHistory/style/index.less +37 -32
  218. package/lib/docPreview/component.js +15 -10
  219. package/lib/docPreview/style/index.less +140 -140
  220. package/lib/docPreview/style/previewIframe.less +36 -36
  221. package/lib/editMetaInfo/components/metaInfoForm.js +6 -4
  222. package/lib/editMetaInfo/style/index.less +60 -60
  223. package/lib/emptyData/style/index.less +34 -34
  224. package/lib/hooks/useAttachement.js +42 -0
  225. package/lib/hooks/usePopper.js +3 -3
  226. package/lib/hooks/useUpload.js +43 -3
  227. package/lib/imageCrop/component.js +6 -4
  228. package/lib/imageCrop/style/cropper.less +291 -291
  229. package/lib/imageCrop/style/imageCropper.less +133 -133
  230. package/lib/imageCrop/style/index.less +2 -2
  231. package/lib/importData/component.js +10 -7
  232. package/lib/importData/style/index.less +48 -48
  233. package/lib/index.css +49 -4
  234. package/lib/index.js +2 -0
  235. package/lib/index.less +30 -30
  236. package/lib/mediaFilter/components/DocFilter.js +3 -2
  237. package/lib/mediaFilter/components/FilterGroup.js +1 -1
  238. package/lib/mediaFilter/style/index.less +115 -115
  239. package/lib/mediaView/style/index.less +71 -71
  240. package/lib/messageBox/component.js +1 -1
  241. package/lib/messageBox/list.js +1 -1
  242. package/lib/messageBox/style/index.less +76 -76
  243. package/lib/previousVersion/style/index.less +209 -209
  244. package/lib/resourceGridList/component.js +5 -3
  245. package/lib/resourceGridList/style/FileTypeThumb.less +96 -96
  246. package/lib/resourceGridList/style/index.less +233 -233
  247. package/lib/resourceModal/component.js +1 -1
  248. package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
  249. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +5 -3
  250. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +1 -1
  251. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +1 -1
  252. package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +1 -1
  253. package/lib/resourceModal/style/DocAiMediaSelected.less +55 -55
  254. package/lib/resourceModal/style/FileTypeThumb.less +205 -205
  255. package/lib/resourceModal/style/MainContent.less +222 -222
  256. package/lib/resourceModal/style/MediaPreviewer.less +71 -71
  257. package/lib/resourceModal/style/MediaSelection.less +69 -69
  258. package/lib/resourceModal/style/SystemResourceSelected.less +154 -154
  259. package/lib/resourceModal/style/ToolbarSearch.less +53 -53
  260. package/lib/resourceModal/style/index.less +18 -18
  261. package/lib/selectAddTo/component.js +48 -0
  262. package/lib/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
  263. package/lib/selectAddTo/components/SelectAddToView.js +92 -0
  264. package/lib/selectAddTo/components/SelectAddToView.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
  265. package/lib/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +167 -0
  266. package/lib/selectAddTo/components/ViewAllColumn/index.js +213 -0
  267. package/lib/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
  268. package/lib/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +108 -0
  269. package/lib/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +184 -0
  270. package/lib/selectAddTo/index.js +8 -0
  271. package/lib/selectAddTo/script/api.js +27 -0
  272. package/lib/selectAddTo/script/useSelectAddToState.js +57 -0
  273. package/lib/selectAddTo/style/css.js +2 -0
  274. package/lib/selectAddTo/style/index.css +3 -0
  275. package/lib/selectAddTo/style/index.js +2 -0
  276. package/lib/selectAddTo/style/index.less +3 -0
  277. package/lib/selectAvatarList/style/index.less +4 -4
  278. package/lib/selectGategory/component.js +1 -1
  279. package/lib/selectGategory/style/ColumnSelection.less +190 -190
  280. package/lib/selectGategory/style/index.less +40 -40
  281. package/lib/selectResourceModal/component.js +15 -10
  282. package/lib/selectResourceModal/components/List/ListLocal/Upload.js +4 -3
  283. package/lib/selectResourceModal/components/List/ListLocal/index.js +7 -2
  284. package/lib/selectResourceModal/components/List/ListNormal/Filter.js +212 -81
  285. package/lib/selectResourceModal/components/List/ListNormal/index.js +22 -6
  286. package/lib/selectResourceModal/components/List/ListSystem/Filter.js +3 -2
  287. package/lib/selectResourceModal/components/List/ListSystem/SubList.js +1 -1
  288. package/lib/selectResourceModal/hooks/useResponsiveFilter.js +144 -0
  289. package/lib/selectResourceModal/scripts/useCompoLf.js +1 -1
  290. package/lib/selectResourceModal/style/index.css +45 -4
  291. package/lib/selectResourceModal/style/index.less +55 -41
  292. package/lib/selectResourceModal/style/list.less +203 -167
  293. package/lib/selectResourceModal/style/listCardWrapper.less +97 -97
  294. package/lib/selectResourceModal/style/listSelected.less +94 -94
  295. package/lib/selectThumb/component.js +64 -10
  296. package/lib/selectThumb/style/card.less +95 -95
  297. package/lib/selectThumb/style/colorPalette.less +30 -30
  298. package/lib/selectThumb/style/index.less +62 -62
  299. package/lib/style/index.less +1 -1
  300. package/lib/thumbCard/style/index.less +90 -90
  301. package/lib/thumbCard/style/thumbUploading.less +26 -26
  302. package/lib/typeIcons/component.js +1 -1
  303. package/lib/typeIcons/style/index.less +6 -6
  304. package/lib/uploadBefore/components/UploadBefore.js +1 -1
  305. package/lib/uploadBefore/style/index.less +144 -144
  306. package/lib/uploadStep/style/index.less +152 -152
  307. package/lib/userAvater/component.js +3 -2
  308. package/lib/userAvater/style/index.less +54 -54
  309. package/lib/userDirector/component.js +3 -2
  310. package/lib/userDirector/style/index.less +96 -96
  311. package/lib/utils/index.js +6 -6
  312. package/lib/videoThumb/style/index.less +77 -77
  313. package/package.json +138 -138
  314. package/es/appCenter/component.d.ts +0 -0
  315. package/es/appCenter/index.d.ts +0 -2
  316. package/es/appCenter/script/api.d.ts +0 -11
  317. package/es/appCenter/script/apps.d.ts +0 -14
  318. package/es/appCenter/script/permissionMap.d.ts +0 -6
  319. package/es/appCenter/script/routeMap.d.ts +0 -4
  320. package/es/appCenter/style/index.d.ts +0 -1
  321. package/es/baseFilter/component.d.ts +0 -0
  322. package/es/baseFilter/components/FilterGroup.d.ts +0 -0
  323. package/es/baseFilter/components/filterItem.d.ts +0 -0
  324. package/es/baseFilter/index.d.ts +0 -2
  325. package/es/baseFilter/style/index.d.ts +0 -1
  326. package/es/baseFilter/useCalcWidth.d.ts +0 -16
  327. package/es/colorPalette/component.d.ts +0 -0
  328. package/es/colorPalette/components/colorPicker.d.ts +0 -0
  329. package/es/colorPalette/index.d.ts +0 -2
  330. package/es/colorPalette/style/index.d.ts +0 -1
  331. package/es/components.d.ts +0 -5
  332. package/es/config.d.ts +0 -4
  333. package/es/contentDetailList/__demo__/matrix/platform.d.ts +0 -36
  334. package/es/contentDetailList/component.d.ts +0 -0
  335. package/es/contentDetailList/components/Content/CompoItem/index.d.ts +0 -0
  336. package/es/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
  337. package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
  338. package/es/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
  339. package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
  340. package/es/contentDetailList/components/Content/GroupPieceItem/index.d.ts +0 -0
  341. package/es/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
  342. package/es/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
  343. package/es/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
  344. package/es/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
  345. package/es/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
  346. package/es/contentDetailList/components/Content/index.d.ts +0 -0
  347. package/es/contentDetailList/components/CustomWrp/CustomItem.d.ts +0 -0
  348. package/es/contentDetailList/components/CustomWrp/index.d.ts +0 -0
  349. package/es/contentDetailList/components/Doc/index.d.ts +0 -0
  350. package/es/contentDetailList/components/Records/MatrixItem/index.d.ts +0 -0
  351. package/es/contentDetailList/components/Records/index.d.ts +0 -0
  352. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.d.ts +0 -0
  353. package/es/contentDetailList/components/ShowQRCode/index.d.ts +0 -0
  354. package/es/contentDetailList/index.d.ts +0 -2
  355. package/es/contentDetailList/script/api.d.ts +0 -6
  356. package/es/contentDetailList/style/index.d.ts +0 -1
  357. package/es/contentModal/component.d.ts +0 -0
  358. package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
  359. package/es/contentModal/components/CompoList/index.d.ts +0 -0
  360. package/es/contentModal/components/ContentList/MediaFilter/index.d.ts +0 -0
  361. package/es/contentModal/components/ContentList/index.d.ts +0 -0
  362. package/es/contentModal/components/Dejin/MediaFilter/index.d.ts +0 -0
  363. package/es/contentModal/components/Dejin/index.d.ts +0 -0
  364. package/es/contentModal/components/EqxiuList/MediaFilter/index.d.ts +0 -0
  365. package/es/contentModal/components/EqxiuList/index.d.ts +0 -0
  366. package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  367. package/es/contentModal/components/LiveList/index.d.ts +0 -0
  368. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  369. package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
  370. package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  371. package/es/contentModal/components/MpContentList/index.d.ts +0 -0
  372. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  373. package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
  374. package/es/contentModal/components/ViewAllColumn/columnTree/index.js +0 -151
  375. package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
  376. package/es/contentModal/components/storeBox/index.d.ts +0 -0
  377. package/es/contentModal/index.d.ts +0 -2
  378. package/es/contentModal/script/api.d.ts +0 -18
  379. package/es/contentModal/style/index.d.ts +0 -1
  380. package/es/dataTags/component.d.ts +0 -0
  381. package/es/dataTags/index.d.ts +0 -2
  382. package/es/dataTags/style/index.d.ts +0 -1
  383. package/es/docHistory/component.d.ts +0 -0
  384. package/es/docHistory/components/DocDiffPanel/index.d.ts +0 -0
  385. package/es/docHistory/components/DocHistoryList/index.d.ts +0 -0
  386. package/es/docHistory/index.d.ts +0 -2
  387. package/es/docHistory/scripts/diff.d.ts +0 -1
  388. package/es/docHistory/scripts/useDocHistory.d.ts +0 -10
  389. package/es/docHistory/style/index.d.ts +0 -1
  390. package/es/docPreview/component.d.ts +0 -0
  391. package/es/docPreview/components/PreviewIframe.d.ts +0 -0
  392. package/es/docPreview/index.d.ts +0 -2
  393. package/es/docPreview/scripts/api.d.ts +0 -1
  394. package/es/docPreview/scripts/hook.d.ts +0 -33
  395. package/es/docPreview/style/index.d.ts +0 -1
  396. package/es/editMetaInfo/component.d.ts +0 -0
  397. package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
  398. package/es/editMetaInfo/index.d.ts +0 -2
  399. package/es/editMetaInfo/script/api.d.ts +0 -6
  400. package/es/editMetaInfo/script/restaurants.d.ts +0 -4
  401. package/es/editMetaInfo/style/index.d.ts +0 -1
  402. package/es/emptyData/component.d.ts +0 -0
  403. package/es/emptyData/index.d.ts +0 -2
  404. package/es/emptyData/style/index.d.ts +0 -1
  405. package/es/emptyData/svg/add.d.ts +0 -0
  406. package/es/hooks/assets.d.ts +0 -1
  407. package/es/hooks/batch.d.ts +0 -8
  408. package/es/hooks/dialogVisible.d.ts +0 -8
  409. package/es/hooks/source.d.ts +0 -9
  410. package/es/hooks/toggle.d.ts +0 -6
  411. package/es/hooks/useAttachement.d.ts +0 -34
  412. package/es/hooks/useLocalStorage.d.ts +0 -10
  413. package/es/hooks/useMediaContext.d.ts +0 -12
  414. package/es/hooks/usePopper.d.ts +0 -8
  415. package/es/hooks/useSelection.d.ts +0 -30
  416. package/es/hooks/useUpload.d.ts +0 -30
  417. package/es/hooks/user.d.ts +0 -9
  418. package/es/imageCrop/component.d.ts +0 -0
  419. package/es/imageCrop/index.d.ts +0 -2
  420. package/es/imageCrop/script/api.d.ts +0 -1
  421. package/es/imageCrop/style/index.d.ts +0 -1
  422. package/es/importData/component.d.ts +0 -0
  423. package/es/importData/index.d.ts +0 -2
  424. package/es/importData/style/index.d.ts +0 -1
  425. package/es/index.d.ts +0 -30
  426. package/es/mediaFilter/component.d.ts +0 -0
  427. package/es/mediaFilter/components/DocFilter.d.ts +0 -0
  428. package/es/mediaFilter/components/FilterGroup.d.ts +0 -0
  429. package/es/mediaFilter/components/FilterItem.d.ts +0 -0
  430. package/es/mediaFilter/components/MpAccountFilter.d.ts +0 -0
  431. package/es/mediaFilter/components/MpContentFilter.d.ts +0 -0
  432. package/es/mediaFilter/index.d.ts +0 -3
  433. package/es/mediaFilter/script/optionsGetter.d.ts +0 -26
  434. package/es/mediaFilter/script/types.d.ts +0 -16
  435. package/es/mediaFilter/style/index.d.ts +0 -1
  436. package/es/mediaView/component.d.ts +0 -0
  437. package/es/mediaView/index.d.ts +0 -2
  438. package/es/mediaView/style/index.d.ts +0 -1
  439. package/es/messageBox/component.d.ts +0 -0
  440. package/es/messageBox/index.d.ts +0 -2
  441. package/es/messageBox/list.d.ts +0 -0
  442. package/es/messageBox/script/api.d.ts +0 -6
  443. package/es/messageBox/style/index.d.ts +0 -1
  444. package/es/previousVersion/component.d.ts +0 -0
  445. package/es/previousVersion/index.d.ts +0 -2
  446. package/es/previousVersion/script/api.d.ts +0 -15
  447. package/es/previousVersion/script/tool.d.ts +0 -6
  448. package/es/previousVersion/style/index.d.ts +0 -1
  449. package/es/resourceGridList/component.d.ts +0 -0
  450. package/es/resourceGridList/components/FileTypeThumb/index.d.ts +0 -0
  451. package/es/resourceGridList/index.d.ts +0 -2
  452. package/es/resourceGridList/style/index.d.ts +0 -1
  453. package/es/resourceModal/component.d.ts +0 -0
  454. package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
  455. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
  456. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
  457. package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
  458. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
  459. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
  460. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
  461. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
  462. package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
  463. package/es/resourceModal/index.d.ts +0 -2
  464. package/es/resourceModal/script/api.d.ts +0 -25
  465. package/es/resourceModal/script/mediaSelection.d.ts +0 -14
  466. package/es/resourceModal/style/index.d.ts +0 -1
  467. package/es/selectAvatarList/component.d.ts +0 -0
  468. package/es/selectAvatarList/index.d.ts +0 -2
  469. package/es/selectAvatarList/style/index.d.ts +0 -1
  470. package/es/selectGategory/component.d.ts +0 -0
  471. package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
  472. package/es/selectGategory/index.d.ts +0 -2
  473. package/es/selectGategory/script/api.d.ts +0 -6
  474. package/es/selectGategory/style/index.d.ts +0 -1
  475. package/es/selectResourceModal/component.d.ts +0 -0
  476. package/es/selectResourceModal/components/List/ListAi/index.d.ts +0 -0
  477. package/es/selectResourceModal/components/List/ListCardWrapper.d.ts +0 -0
  478. package/es/selectResourceModal/components/List/ListLocal/Upload.d.ts +0 -0
  479. package/es/selectResourceModal/components/List/ListLocal/index.d.ts +0 -0
  480. package/es/selectResourceModal/components/List/ListNormal/Filter.d.ts +0 -0
  481. package/es/selectResourceModal/components/List/ListNormal/index.d.ts +0 -0
  482. package/es/selectResourceModal/components/List/ListSystem/Filter.d.ts +0 -0
  483. package/es/selectResourceModal/components/List/ListSystem/SubList.d.ts +0 -0
  484. package/es/selectResourceModal/components/List/ListSystem/index.d.ts +0 -0
  485. package/es/selectResourceModal/components/List/ListVideo/index.d.ts +0 -0
  486. package/es/selectResourceModal/components/List/ListWraper.d.ts +0 -0
  487. package/es/selectResourceModal/components/ListSelected/index.d.ts +0 -0
  488. package/es/selectResourceModal/components/ListTabs/index.d.ts +0 -0
  489. package/es/selectResourceModal/index.d.ts +0 -2
  490. package/es/selectResourceModal/scripts/selectionApis.d.ts +0 -2
  491. package/es/selectResourceModal/scripts/useCompoLf.d.ts +0 -27
  492. package/es/selectResourceModal/scripts/useResourceSelect.d.ts +0 -7
  493. package/es/selectResourceModal/scripts/useTabFilter.d.ts +0 -22
  494. package/es/selectResourceModal/style/index.d.ts +0 -1
  495. package/es/selectThumb/component.d.ts +0 -0
  496. package/es/selectThumb/components/card.d.ts +0 -0
  497. package/es/selectThumb/components/colorPalette.d.ts +0 -0
  498. package/es/selectThumb/components/colorPicker.d.ts +0 -0
  499. package/es/selectThumb/index.d.ts +0 -2
  500. package/es/selectThumb/style/index.d.ts +0 -1
  501. package/es/thumbCard/component.d.ts +0 -0
  502. package/es/thumbCard/components/ThumbUploading/index.d.ts +0 -0
  503. package/es/thumbCard/index.d.ts +0 -2
  504. package/es/thumbCard/style/index.d.ts +0 -1
  505. package/es/typeIcons/component.d.ts +0 -0
  506. package/es/typeIcons/index.d.ts +0 -2
  507. package/es/typeIcons/style/index.d.ts +0 -1
  508. package/es/uploadBefore/component.d.ts +0 -0
  509. package/es/uploadBefore/components/UploadBefore.d.ts +0 -0
  510. package/es/uploadBefore/components/UploadForClick.d.ts +0 -0
  511. package/es/uploadBefore/index.d.ts +0 -2
  512. package/es/uploadBefore/script/api.d.ts +0 -16
  513. package/es/uploadBefore/script/fileTypeAdapter.d.ts +0 -39
  514. package/es/uploadBefore/script/fileUpload.d.ts +0 -7
  515. package/es/uploadBefore/script/uploadHooks.d.ts +0 -96
  516. package/es/uploadBefore/style/index.d.ts +0 -1
  517. package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
  518. package/es/uploadStep/component.d.ts +0 -0
  519. package/es/uploadStep/index.d.ts +0 -2
  520. package/es/uploadStep/script/fileTypeAdapter.d.ts +0 -20
  521. package/es/uploadStep/style/index.d.ts +0 -1
  522. package/es/userAvater/component.d.ts +0 -0
  523. package/es/userAvater/index.d.ts +0 -2
  524. package/es/userAvater/script/api.d.ts +0 -8
  525. package/es/userAvater/style/index.d.ts +0 -1
  526. package/es/userDirector/component.d.ts +0 -0
  527. package/es/userDirector/components/userTree.d.ts +0 -0
  528. package/es/userDirector/index.d.ts +0 -2
  529. package/es/userDirector/script/api.d.ts +0 -10
  530. package/es/userDirector/style/index.d.ts +0 -1
  531. package/es/utils/auth.d.ts +0 -5
  532. package/es/utils/date.d.ts +0 -3
  533. package/es/utils/doc.d.ts +0 -76
  534. package/es/utils/filter.d.ts +0 -21
  535. package/es/utils/index.d.ts +0 -17
  536. package/es/utils/request.d.ts +0 -9
  537. package/es/utils/resource.d.ts +0 -4
  538. package/es/utils/transcodeMedia.d.ts +0 -13
  539. package/es/utils/tusUpload.d.ts +0 -16
  540. package/es/utils/typeMap.d.ts +0 -185
  541. package/es/utils/uploadCatalog.d.ts +0 -1
  542. package/es/videoThumb/component.d.ts +0 -0
  543. package/es/videoThumb/index.d.ts +0 -2
  544. package/es/videoThumb/scripts/api.d.ts +0 -9
  545. package/es/videoThumb/scripts/useVideoThumbs.d.ts +0 -12
  546. package/es/videoThumb/style/index.d.ts +0 -1
  547. package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +0 -152
@@ -1,40 +1,40 @@
1
- @import './ColumnSelection.less';
2
-
3
- .add-category-modal-wrapper {
4
- .arco-modal-header {
5
- border-bottom: none;
6
- }
7
-
8
- .arco-modal-body {
9
- min-height: 200px;
10
- padding: 20px;
11
- padding-bottom: 0;
12
-
13
- .form-view {
14
- padding: 0 20px;
15
-
16
- .title {
17
- padding: 20px 0;
18
- font-weight: bold;
19
- font-size: 14px;
20
- }
21
-
22
- .item-title {
23
- display: inline-block;
24
- color: #4e5969;
25
- font-weight: 700;
26
- font-size: 14px;
27
- line-height: 40px;
28
- text-align: left;
29
-
30
- &.big {
31
- line-height: 60px;
32
- }
33
- }
34
- }
35
- }
36
-
37
- .arco-modal-footer {
38
- border-top: 0;
39
- }
40
- }
1
+ @import './ColumnSelection.less';
2
+
3
+ .add-category-modal-wrapper {
4
+ .arco-modal-header {
5
+ border-bottom: none;
6
+ }
7
+
8
+ .arco-modal-body {
9
+ min-height: 200px;
10
+ padding: 20px;
11
+ padding-bottom: 0;
12
+
13
+ .form-view {
14
+ padding: 0 20px;
15
+
16
+ .title {
17
+ padding: 20px 0;
18
+ font-weight: bold;
19
+ font-size: 14px;
20
+ }
21
+
22
+ .item-title {
23
+ display: inline-block;
24
+ color: #4e5969;
25
+ font-weight: 700;
26
+ font-size: 14px;
27
+ line-height: 40px;
28
+ text-align: left;
29
+
30
+ &.big {
31
+ line-height: 60px;
32
+ }
33
+ }
34
+ }
35
+ }
36
+
37
+ .arco-modal-footer {
38
+ border-top: 0;
39
+ }
40
+ }
@@ -122,18 +122,20 @@ const _sfc_main = defineComponent({
122
122
  }, null, 8, ["maxcount", "selected", "onRemove", "onClear"]),
123
123
  createVNode(unref(Button), { onClick: unref(close) }, {
124
124
  default: withCtx(() => _cache[1] || (_cache[1] = [
125
- createTextVNode("\u53D6\u6D88")
125
+ createTextVNode("\u53D6\u6D88", -1)
126
126
  ])),
127
- _: 1
127
+ _: 1,
128
+ __: [1]
128
129
  }, 8, ["onClick"]),
129
130
  createVNode(unref(Button), {
130
131
  type: "primary",
131
132
  onClick: confirm
132
133
  }, {
133
134
  default: withCtx(() => _cache[2] || (_cache[2] = [
134
- createTextVNode(" \u786E\u5B9A ")
135
+ createTextVNode(" \u786E\u5B9A ", -1)
135
136
  ])),
136
- _: 1
137
+ _: 1,
138
+ __: [2]
137
139
  })
138
140
  ], 64)) : createCommentVNode("v-if", true)
139
141
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
@@ -141,9 +143,10 @@ const _sfc_main = defineComponent({
141
143
  createCommentVNode(" \u89C6\u9891\u5C01\u9762\u7C7B\u578B\u4E0D\u5B58\u5728\u591A\u9009\u7684\u903B\u8F91\uFF0C\u65E0\u8BBA\u662F\u70B9\u51FB\u88C1\u526A\u8FD8\u662F\u4F7F\u7528\uFF0C\u90FD\u662F\u5355\u9009 "),
142
144
  createVNode(unref(Button), { onClick: unref(close) }, {
143
145
  default: withCtx(() => _cache[3] || (_cache[3] = [
144
- createTextVNode("\u53D6\u6D88")
146
+ createTextVNode("\u53D6\u6D88", -1)
145
147
  ])),
146
- _: 1
148
+ _: 1,
149
+ __: [3]
147
150
  }, 8, ["onClick"]),
148
151
  createVNode(unref(Button), {
149
152
  disabled: isEmpty,
@@ -151,9 +154,10 @@ const _sfc_main = defineComponent({
151
154
  onClick: ($event) => confirm("crop", onConfirm)
152
155
  }, {
153
156
  default: withCtx(() => _cache[4] || (_cache[4] = [
154
- createTextVNode(" \u7F16\u8F91 ")
157
+ createTextVNode(" \u7F16\u8F91 ", -1)
155
158
  ])),
156
- _: 2
159
+ _: 2,
160
+ __: [4]
157
161
  }, 1032, ["disabled", "onClick"]),
158
162
  createVNode(unref(Button), {
159
163
  disabled: isEmpty,
@@ -161,9 +165,10 @@ const _sfc_main = defineComponent({
161
165
  onClick: ($event) => confirm("use", onConfirm)
162
166
  }, {
163
167
  default: withCtx(() => _cache[5] || (_cache[5] = [
164
- createTextVNode(" \u4F7F\u7528 ")
168
+ createTextVNode(" \u4F7F\u7528 ", -1)
165
169
  ])),
166
- _: 2
170
+ _: 2,
171
+ __: [5]
167
172
  }, 1032, ["disabled", "onClick"])
168
173
  ], 64))
169
174
  ]),
@@ -45,14 +45,15 @@ const _sfc_main = defineComponent({
45
45
  createVNode(unref(IconComputer))
46
46
  ]),
47
47
  default: withCtx(() => [
48
- _cache[0] || (_cache[0] = createTextVNode(" \u672C\u5730\u4E0A\u4F20 "))
48
+ _cache[0] || (_cache[0] = createTextVNode(" \u672C\u5730\u4E0A\u4F20 ", -1))
49
49
  ]),
50
- _: 1
50
+ _: 1,
51
+ __: [0]
51
52
  })
52
53
  ]),
53
54
  _: 1
54
55
  }),
55
- createCommentVNode(' <a-button type="primary"> \u626B\u7801\u4E0A\u4F20 </a-button>\n <a-button type="primary"> \u5206\u4EAB\u4E0A\u4F20 </a-button> ')
56
+ createCommentVNode(' <a-button type="primary"> \u626B\u7801\u4E0A\u4F20 </a-button>\r\n <a-button type="primary"> \u5206\u4EAB\u4E0A\u4F20 </a-button> ')
56
57
  ]),
57
58
  createElementVNode("div", _hoisted_3, [
58
59
  createVNode(unref(Upload), {
@@ -1,6 +1,6 @@
1
- import { defineComponent, inject, computed, openBlock, createBlock, withCtx, renderSlot, createElementVNode, createVNode, unref, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList } from "vue";
1
+ import { defineComponent, inject, computed, onMounted, openBlock, createBlock, withCtx, renderSlot, createElementVNode, createVNode, unref, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList } from "vue";
2
2
  import _sfc_main$2 from "./Upload.js";
3
- import useUpload from "../../../../hooks/useUpload.js";
3
+ import useUpload, { useUploadConfig } from "../../../../hooks/useUpload.js";
4
4
  import _sfc_main$1 from "../ListWraper.js";
5
5
  const _hoisted_1 = { class: "list-upload" };
6
6
  const _hoisted_2 = { class: "list-content" };
@@ -22,6 +22,7 @@ const _sfc_main = defineComponent({
22
22
  var _a;
23
23
  return (_a = userInfo == null ? void 0 : userInfo.value) == null ? void 0 : _a.repository_id;
24
24
  });
25
+ const { template, initTemplate } = useUploadConfig();
25
26
  const { list, uploadFile, reTranscode, transcodingFile, removeRecord } = useUpload();
26
27
  function handleChange(file) {
27
28
  if (!baseAPI || !repoId.value)
@@ -31,7 +32,8 @@ const _sfc_main = defineComponent({
31
32
  file.file,
32
33
  0,
33
34
  repoId.value,
34
- (media) => transcodingFile(baseAPI, media, repoId.value)
35
+ (media) => transcodingFile(baseAPI, media, repoId.value),
36
+ { template: template.value }
35
37
  );
36
38
  }
37
39
  async function handleOptions(e) {
@@ -54,6 +56,9 @@ const _sfc_main = defineComponent({
54
56
  removeRecord(e.item);
55
57
  }
56
58
  }
59
+ onMounted(() => {
60
+ initTemplate(baseAPI);
61
+ });
57
62
  return (_ctx, _cache) => {
58
63
  return openBlock(), createBlock(_sfc_main$1, null, {
59
64
  "footer-extra": withCtx(() => [
@@ -73,7 +78,7 @@ const _sfc_main = defineComponent({
73
78
  return openBlock(), createElementBlock(Fragment, {
74
79
  key: item.sig_id
75
80
  }, [
76
- createCommentVNode(" \n onOptions \u7528\u4E8E\u5904\u7406\u5361\u7247\u91CC\u5916\u90E8\u4E0D\u80FD\u6355\u83B7\u7684\u64CD\u4F5C\n 1. \u6BD4\u5982\u5916\u90E8\u65E0\u6CD5\u5904\u7406\u9700\u8981\u91CD\u65B0\u4E0A\u4F20/\u8F6C\u7801/\u5220\u9664\u7684\u903B\u8F91 \n 2. \u90A3\u4E48\u5C31\u5C06\u5904\u7406\u7684\u65B9\u6CD5\u4E5F\u4E00\u540C\u629B\u51FA\uFF0C\u7531\u5916\u90E8\u8C03\u7528\n "),
81
+ createCommentVNode(" \r\n onOptions \u7528\u4E8E\u5904\u7406\u5361\u7247\u91CC\u5916\u90E8\u4E0D\u80FD\u6355\u83B7\u7684\u64CD\u4F5C\r\n 1. \u6BD4\u5982\u5916\u90E8\u65E0\u6CD5\u5904\u7406\u9700\u8981\u91CD\u65B0\u4E0A\u4F20/\u8F6C\u7801/\u5220\u9664\u7684\u903B\u8F91 \r\n 2. \u90A3\u4E48\u5C31\u5C06\u5904\u7406\u7684\u65B9\u6CD5\u4E5F\u4E00\u540C\u629B\u51FA\uFF0C\u7531\u5916\u90E8\u8C03\u7528\r\n "),
77
82
  renderSlot(_ctx.$slots, "item", {
78
83
  item,
79
84
  onOptions: handleOptions
@@ -1,42 +1,71 @@
1
- import { defineComponent, inject, computed, ref, watch, onMounted, openBlock, createElementBlock, createElementVNode, createCommentVNode, createVNode, unref, withCtx, createTextVNode, toDisplayString, Fragment, renderList, createBlock, normalizeClass } from "vue";
2
- import { Input, Dropdown, Doption, Button, Select, Option, RangePicker } from "@arco-design/web-vue";
3
- import { IconUpload } from "@arco-design/web-vue/es/icon";
1
+ import { defineComponent, inject, computed, ref, watch, onMounted, openBlock, createElementBlock, createCommentVNode, createElementVNode, withDirectives, createVNode, unref, withModifiers, withCtx, createTextVNode, vShow, toDisplayString, Fragment, renderList, createBlock, normalizeClass } from "vue";
2
+ import { Button, Input, Dropdown, Doption, TreeSelect, Select, Option, RangePicker } from "@arco-design/web-vue";
3
+ import { IconCaretDown, IconRefresh, IconUpload } from "@arco-design/web-vue/es/icon";
4
4
  import useSelection from "../../../../hooks/useSelection.js";
5
+ import { useDirectory } from "../../../../hooks/useAttachement.js";
5
6
  import { RESOURCE_SOURCE_OPTIONS, RESOURCE_CATALOG_OPTIONS } from "../../../../utils/typeMap.js";
6
7
  import { getAccountList } from "../../../scripts/selectionApis.js";
7
8
  import { keywordsSelection } from "../../../../utils/resource.js";
9
+ import { useResponsiveFilter } from "../../../hooks/useResponsiveFilter.js";
8
10
  const _hoisted_1 = { class: "list-filter-wrapper" };
9
11
  const _hoisted_2 = { class: "list-filter" };
10
- const _hoisted_3 = { class: "filter-list" };
11
- const _hoisted_4 = { style: { "width": "200px" } };
12
+ const _hoisted_3 = { class: "more-btn" };
13
+ const _hoisted_4 = { class: "right-prefix" };
12
14
  const _hoisted_5 = {
13
15
  class: "filter-item",
14
16
  style: { "width": "200px" }
15
17
  };
16
- const _hoisted_6 = { class: "filter-item" };
18
+ const _hoisted_6 = {
19
+ class: "filter-item",
20
+ style: { "width": "180px" }
21
+ };
17
22
  const _hoisted_7 = {
23
+ class: "filter-item",
24
+ style: { "width": "170px" }
25
+ };
26
+ const _hoisted_8 = {
27
+ class: "filter-item",
28
+ style: { "width": "240px" }
29
+ };
30
+ const _hoisted_9 = {
31
+ class: "filter-item",
32
+ style: { "width": "240px" }
33
+ };
34
+ const _hoisted_10 = {
18
35
  key: 0,
19
36
  class: "filter-item"
20
37
  };
21
- const _hoisted_8 = { class: "filter-extra" };
22
- const _hoisted_9 = {
38
+ const _hoisted_11 = { class: "filter-extra" };
39
+ const _hoisted_12 = { class: "filter-item" };
40
+ const _hoisted_13 = {
23
41
  key: 0,
24
42
  class: "list-filter-tags"
25
43
  };
26
- const _hoisted_10 = ["onClick"];
44
+ const _hoisted_14 = ["onClick"];
27
45
  const _sfc_main = defineComponent({
28
46
  __name: "Filter",
29
47
  props: {
48
+ smallScreen: { type: Boolean },
30
49
  disableUploadBy: { type: Boolean }
31
50
  },
32
51
  emits: ["upload", "change"],
33
52
  setup(__props, { expose: __expose, emit: __emit }) {
53
+ var _a, _b, _c;
34
54
  const props = __props;
35
55
  const emits = __emit;
36
56
  const userInfo = inject("userInfo");
37
57
  const baseAPI = inject("baseAPI");
38
58
  const filterOptions = inject("filterOptions");
39
59
  const domainId = computed(() => userInfo == null ? void 0 : userInfo.value.domain_id);
60
+ const filterItemsRef = ref();
61
+ const {
62
+ moreBtnRef,
63
+ popperPanelRef,
64
+ hiddenElementList,
65
+ visible,
66
+ show,
67
+ hide
68
+ } = useResponsiveFilter(filterItemsRef);
40
69
  const { options, loading, load, loadMore, handleSearch } = useSelection({
41
70
  labelStr: "alias",
42
71
  valueStr: "id",
@@ -56,6 +85,9 @@ const _sfc_main = defineComponent({
56
85
  });
57
86
  const resourceSource = RESOURCE_SOURCE_OPTIONS;
58
87
  const resourceCatalog = RESOURCE_CATALOG_OPTIONS;
88
+ const { tree } = useDirectory({
89
+ BASE_API: baseAPI
90
+ });
59
91
  const originFilter = {
60
92
  catalog: [],
61
93
  source: "",
@@ -64,9 +96,20 @@ const _sfc_main = defineComponent({
64
96
  keyword: "",
65
97
  precise_keyword: "",
66
98
  upload_by: null,
67
- sf: ""
99
+ sf: "",
100
+ directory_id: void 0
68
101
  };
69
- const filter = ref(JSON.parse(JSON.stringify(originFilter)));
102
+ if ((_a = filterOptions == null ? void 0 : filterOptions.value) == null ? void 0 : _a.mediaTypeStrict) {
103
+ originFilter.catalog = filterOptions.value.mediaType.split(",");
104
+ }
105
+ const filter = ref(
106
+ JSON.parse(
107
+ JSON.stringify({
108
+ ...originFilter,
109
+ catalog: ((_c = (_b = filterOptions == null ? void 0 : filterOptions.value) == null ? void 0 : _b.mediaType) == null ? void 0 : _c.split(",")) || []
110
+ })
111
+ )
112
+ );
70
113
  const handleReset = () => {
71
114
  filter.value = JSON.parse(JSON.stringify(originFilter));
72
115
  };
@@ -111,85 +154,119 @@ const _sfc_main = defineComponent({
111
154
  filter.value.keyword = val;
112
155
  filter.value.precise_keyword = "";
113
156
  }
157
+ filter.value.sf = "";
114
158
  }
115
159
  });
116
- watch(
117
- () => searchType.value,
118
- () => {
119
- searchInput.value = filter.value.keyword || filter.value.precise_keyword;
120
- }
121
- );
122
160
  const isEmpty = computed(() => {
123
- return Object.keys(filter.value).every((key) => {
161
+ return Object.keys(originFilter).every((key) => {
162
+ if (key === "catalog") {
163
+ const currentCatalog = filter.value[key] || [];
164
+ const originCatalog = originFilter[key] || [];
165
+ return currentCatalog.length === originCatalog.length && currentCatalog.every((v) => originCatalog.includes(v));
166
+ }
124
167
  return filter.value[key] === originFilter[key];
125
168
  });
126
169
  });
127
170
  watch(
128
171
  () => filter.value,
129
- () => {
130
- const result = { ...filter.value };
172
+ (val) => {
173
+ const result = { ...val };
131
174
  Object.keys(result).forEach((key) => {
132
175
  if (props.disableUploadBy && key === "upload_by")
133
176
  delete result[key];
134
- if (!result[key])
135
- delete result[key];
177
+ if (result[key] === "" || result[key] === null || result[key] === void 0) {
178
+ if (key !== "catalog") {
179
+ delete result[key];
180
+ }
181
+ }
136
182
  });
137
- if (!result.catalog)
138
- result.catalog = "image,video,audio";
139
- else
140
- result.catalog = result.catalog.join(",");
141
- emits("change", result);
142
- },
143
- { deep: true, immediate: true }
144
- );
145
- watch(
146
- () => filterOptions == null ? void 0 : filterOptions.value,
147
- () => {
148
- var _a;
149
- if ((_a = filterOptions == null ? void 0 : filterOptions.value) == null ? void 0 : _a.mediaType) {
150
- filter.value.catalog = filterOptions == null ? void 0 : filterOptions.value.mediaType.split(",");
151
- if (filterOptions == null ? void 0 : filterOptions.value.mediaTypeStrict) {
152
- originFilter.catalog = filterOptions == null ? void 0 : filterOptions.value.mediaType.split(",");
183
+ if (result.catalog && Array.isArray(result.catalog)) {
184
+ if (result.catalog.length > 0) {
185
+ result.catalog = result.catalog.join(",");
186
+ } else {
187
+ delete result.catalog;
153
188
  }
154
189
  }
190
+ emits("change", result);
155
191
  },
156
- { immediate: true, deep: true }
192
+ { deep: true, immediate: true }
157
193
  );
158
194
  onMounted(() => {
159
195
  load();
160
196
  });
161
197
  __expose({
162
- resetFilter: handleReset
198
+ filter,
199
+ handleReset
163
200
  });
164
201
  return (_ctx, _cache) => {
165
- var _a;
202
+ var _a2;
166
203
  return openBlock(), createElementBlock("div", _hoisted_1, [
204
+ createCommentVNode(" Use filterItemsRef's parentElement as the container for boundary checks "),
167
205
  createElementVNode("div", _hoisted_2, [
168
- createElementVNode("div", _hoisted_3, [
206
+ createCommentVNode(" Filter Items Container "),
207
+ createElementVNode("div", {
208
+ id: "resource-filter-pannel",
209
+ ref_key: "filterItemsRef",
210
+ ref: filterItemsRef,
211
+ class: "filter-list"
212
+ }, [
213
+ createCommentVNode(" More Filters Button and Popper Panel "),
214
+ createElementVNode("div", _hoisted_3, [
215
+ createElementVNode("div", {
216
+ ref_key: "moreBtnRef",
217
+ ref: moreBtnRef
218
+ }, [
219
+ withDirectives(createVNode(unref(Button), {
220
+ style: { marginRight: "10px" },
221
+ onClick: _cache[0] || (_cache[0] = withModifiers(() => unref(visible) ? unref(hide)() : unref(show)(), ["stop"]))
222
+ }, {
223
+ default: withCtx(() => [
224
+ createElementVNode("span", _hoisted_4, [
225
+ _cache[11] || (_cache[11] = createTextVNode(" \u66F4\u591A ", -1)),
226
+ createVNode(unref(IconCaretDown))
227
+ ])
228
+ ]),
229
+ _: 1
230
+ }, 512), [
231
+ [vShow, unref(hiddenElementList).length]
232
+ ])
233
+ ], 512),
234
+ withDirectives(createElementVNode("div", {
235
+ ref_key: "popperPanelRef",
236
+ ref: popperPanelRef,
237
+ class: "filter-pannel",
238
+ onClick: _cache[1] || (_cache[1] = withModifiers(() => {
239
+ }, ["stop"]))
240
+ }, null, 512), [
241
+ [vShow, unref(visible)]
242
+ ])
243
+ ]),
169
244
  createCommentVNode(" \u5173\u952E\u8BCD "),
170
- createElementVNode("div", _hoisted_4, [
245
+ createElementVNode("div", _hoisted_5, [
171
246
  createVNode(unref(Input), {
172
247
  modelValue: searchInput.value,
173
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchInput.value = $event),
248
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => searchInput.value = $event),
174
249
  "allow-clear": "",
175
250
  placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD"
176
251
  }, {
177
252
  prepend: withCtx(() => [
178
253
  createVNode(unref(Dropdown), {
179
- onSelect: _cache[0] || (_cache[0] = (e) => searchType.value = e)
254
+ onSelect: _cache[2] || (_cache[2] = (e) => searchType.value = e)
180
255
  }, {
181
256
  content: withCtx(() => [
182
257
  createVNode(unref(Doption), { value: 0 }, {
183
- default: withCtx(() => _cache[7] || (_cache[7] = [
184
- createTextVNode("\u7CBE\u51C6\u641C")
258
+ default: withCtx(() => _cache[12] || (_cache[12] = [
259
+ createTextVNode("\u7CBE\u51C6\u641C", -1)
185
260
  ])),
186
- _: 1
261
+ _: 1,
262
+ __: [12]
187
263
  }),
188
264
  createVNode(unref(Doption), { value: 1 }, {
189
- default: withCtx(() => _cache[8] || (_cache[8] = [
190
- createTextVNode("\u6A21\u7CCA\u641C")
265
+ default: withCtx(() => _cache[13] || (_cache[13] = [
266
+ createTextVNode("\u6A21\u7CCA\u641C", -1)
191
267
  ])),
192
- _: 1
268
+ _: 1,
269
+ __: [13]
193
270
  })
194
271
  ]),
195
272
  default: withCtx(() => [
@@ -206,15 +283,39 @@ const _sfc_main = defineComponent({
206
283
  _: 1
207
284
  }, 8, ["modelValue"])
208
285
  ]),
286
+ createCommentVNode(" \u76EE\u5F55 "),
287
+ createElementVNode("div", _hoisted_6, [
288
+ createVNode(unref(TreeSelect), {
289
+ modelValue: filter.value.directory_id,
290
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.directory_id = $event),
291
+ data: unref(tree),
292
+ "popup-container": "#resource-filter-pannel",
293
+ placeholder: "\u8BF7\u9009\u62E9\u76EE\u5F55",
294
+ "field-names": {
295
+ title: "alias",
296
+ key: "id"
297
+ },
298
+ "allow-clear": "",
299
+ "allow-search": "",
300
+ "filter-tree-node": (searchValue, nodeData) => {
301
+ console.log(nodeData);
302
+ if (!nodeData.alias)
303
+ return false;
304
+ return nodeData.alias.toLowerCase().indexOf(searchValue.toLowerCase()) > -1;
305
+ }
306
+ }, null, 8, ["modelValue", "data", "filter-tree-node"])
307
+ ]),
209
308
  createCommentVNode(" \u7D20\u6750\u7C7B\u578B "),
210
- createElementVNode("div", _hoisted_5, [
309
+ createElementVNode("div", _hoisted_7, [
211
310
  createVNode(unref(Select), {
212
311
  modelValue: filter.value.catalog,
213
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.catalog = $event),
214
- disabled: (_a = unref(filterOptions)) == null ? void 0 : _a.mediaTypeStrict,
312
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.catalog = $event),
313
+ disabled: (_a2 = unref(filterOptions)) == null ? void 0 : _a2.mediaTypeStrict,
314
+ "popup-container": "#resource-filter-pannel",
215
315
  "allow-clear": "",
216
316
  placeholder: "\u7C7B\u578B",
217
- multiple: ""
317
+ multiple: "",
318
+ "max-tag-count": 1
218
319
  }, {
219
320
  default: withCtx(() => [
220
321
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(resourceCatalog), (item) => {
@@ -229,19 +330,22 @@ const _sfc_main = defineComponent({
229
330
  }, 8, ["modelValue", "disabled"])
230
331
  ]),
231
332
  createCommentVNode(" \u65F6\u95F4\u8303\u56F4 "),
232
- createVNode(unref(RangePicker), {
233
- modelValue: rangeTime.value,
234
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => rangeTime.value = $event),
235
- "allow-clear": "",
236
- style: { "width": "240px" }
237
- }, null, 8, ["modelValue"]),
333
+ createElementVNode("div", _hoisted_8, [
334
+ createVNode(unref(RangePicker), {
335
+ modelValue: rangeTime.value,
336
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => rangeTime.value = $event),
337
+ "allow-clear": "",
338
+ "popup-container": "#resource-filter-pannel"
339
+ }, null, 8, ["modelValue"])
340
+ ]),
238
341
  createCommentVNode(" \u7D20\u6750\u4E0A\u4F20\u6765\u6E90 "),
239
- createElementVNode("div", _hoisted_6, [
342
+ createElementVNode("div", _hoisted_9, [
240
343
  createVNode(unref(Select), {
241
344
  modelValue: filter.value.source,
242
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.source = $event),
345
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => filter.value.source = $event),
243
346
  "allow-clear": "",
244
- placeholder: "\u6765\u6E90"
347
+ placeholder: "\u6765\u6E90",
348
+ "popup-container": "#resource-filter-pannel"
245
349
  }, {
246
350
  default: withCtx(() => [
247
351
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(resourceSource), (item) => {
@@ -256,14 +360,15 @@ const _sfc_main = defineComponent({
256
360
  }, 8, ["modelValue"])
257
361
  ]),
258
362
  createCommentVNode(" \u7D20\u6750\u4E0A\u4F20\u4EBA "),
259
- !_ctx.disableUploadBy ? (openBlock(), createElementBlock("div", _hoisted_7, [
363
+ !_ctx.disableUploadBy ? (openBlock(), createElementBlock("div", _hoisted_10, [
260
364
  createVNode(unref(Select), {
261
365
  modelValue: filter.value.upload_by,
262
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.upload_by = $event),
366
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => filter.value.upload_by = $event),
263
367
  "allow-clear": "",
264
368
  placeholder: "\u4E0A\u4F20\u4EBA",
265
369
  loading: unref(loading),
266
370
  "allow-search": "",
371
+ "popup-container": "#resource-filter-pannel",
267
372
  onSearch: unref(handleSearch),
268
373
  onDropdownReachBottom: unref(loadMore)
269
374
  }, {
@@ -278,40 +383,66 @@ const _sfc_main = defineComponent({
278
383
  ]),
279
384
  _: 1
280
385
  }, 8, ["modelValue", "loading", "onSearch", "onDropdownReachBottom"])
281
- ])) : createCommentVNode("v-if", true),
282
- !isEmpty.value ? (openBlock(), createBlock(unref(Button), {
283
- key: 1,
284
- type: "text",
285
- onClick: handleReset
386
+ ])) : createCommentVNode("v-if", true)
387
+ ], 512),
388
+ createElementVNode("div", _hoisted_11, [
389
+ createCommentVNode(" \u91CD\u7F6E\u6309\u94AE - Wrap in filter-item to be managed by the hook "),
390
+ withDirectives(createElementVNode("div", _hoisted_12, [
391
+ _ctx.smallScreen ? (openBlock(), createBlock(unref(Button), {
392
+ key: 0,
393
+ type: "text",
394
+ onClick: handleReset
395
+ }, {
396
+ icon: withCtx(() => [
397
+ createVNode(unref(IconRefresh))
398
+ ]),
399
+ _: 1
400
+ })) : (openBlock(), createBlock(unref(Button), {
401
+ key: 1,
402
+ type: "text",
403
+ onClick: handleReset
404
+ }, {
405
+ default: withCtx(() => _cache[14] || (_cache[14] = [
406
+ createTextVNode(" \u91CD\u7F6E ", -1)
407
+ ])),
408
+ _: 1,
409
+ __: [14]
410
+ }))
411
+ ], 512), [
412
+ [vShow, !isEmpty.value]
413
+ ]),
414
+ _ctx.smallScreen ? (openBlock(), createBlock(unref(Button), {
415
+ key: 0,
416
+ type: "primary",
417
+ onClick: _cache[9] || (_cache[9] = ($event) => emits("upload"))
286
418
  }, {
287
- default: withCtx(() => _cache[9] || (_cache[9] = [
288
- createTextVNode(" \u91CD\u7F6E ")
289
- ])),
419
+ icon: withCtx(() => [
420
+ createVNode(unref(IconUpload))
421
+ ]),
290
422
  _: 1
291
- })) : createCommentVNode("v-if", true)
292
- ]),
293
- createElementVNode("div", _hoisted_8, [
294
- createVNode(unref(Button), {
423
+ })) : (openBlock(), createBlock(unref(Button), {
424
+ key: 1,
295
425
  type: "primary",
296
- onClick: _cache[6] || (_cache[6] = ($event) => emits("upload"))
426
+ onClick: _cache[10] || (_cache[10] = ($event) => emits("upload"))
297
427
  }, {
298
428
  icon: withCtx(() => [
299
429
  createVNode(unref(IconUpload))
300
430
  ]),
301
431
  default: withCtx(() => [
302
- _cache[10] || (_cache[10] = createTextVNode(" \u4E0A\u4F20 "))
432
+ _cache[15] || (_cache[15] = createTextVNode(" \u4E0A\u4F20 ", -1))
303
433
  ]),
304
- _: 1
305
- })
434
+ _: 1,
435
+ __: [15]
436
+ }))
306
437
  ])
307
438
  ]),
308
- searchInput.value ? (openBlock(), createElementBlock("div", _hoisted_9, [
439
+ searchInput.value ? (openBlock(), createElementBlock("div", _hoisted_13, [
309
440
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(keywordsSelection), (item) => {
310
441
  return openBlock(), createElementBlock("div", {
311
442
  key: item.value,
312
443
  class: normalizeClass(["list-filter-tag", { active: filter.value.sf === item.value }]),
313
444
  onClick: ($event) => filter.value.sf = item.value
314
- }, toDisplayString(item.name), 11, _hoisted_10);
445
+ }, toDisplayString(item.name), 11, _hoisted_14);
315
446
  }), 128))
316
447
  ])) : createCommentVNode("v-if", true)
317
448
  ]);