@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
+ }
@@ -123,18 +123,20 @@ const _sfc_main = vue.defineComponent({
123
123
  }, null, 8, ["maxcount", "selected", "onRemove", "onClear"]),
124
124
  vue.createVNode(vue.unref(webVue.Button), { onClick: vue.unref(close) }, {
125
125
  default: vue.withCtx(() => _cache[1] || (_cache[1] = [
126
- vue.createTextVNode("\u53D6\u6D88")
126
+ vue.createTextVNode("\u53D6\u6D88", -1)
127
127
  ])),
128
- _: 1
128
+ _: 1,
129
+ __: [1]
129
130
  }, 8, ["onClick"]),
130
131
  vue.createVNode(vue.unref(webVue.Button), {
131
132
  type: "primary",
132
133
  onClick: confirm
133
134
  }, {
134
135
  default: vue.withCtx(() => _cache[2] || (_cache[2] = [
135
- vue.createTextVNode(" \u786E\u5B9A ")
136
+ vue.createTextVNode(" \u786E\u5B9A ", -1)
136
137
  ])),
137
- _: 1
138
+ _: 1,
139
+ __: [2]
138
140
  })
139
141
  ], 64)) : vue.createCommentVNode("v-if", true)
140
142
  ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
@@ -142,9 +144,10 @@ const _sfc_main = vue.defineComponent({
142
144
  vue.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 "),
143
145
  vue.createVNode(vue.unref(webVue.Button), { onClick: vue.unref(close) }, {
144
146
  default: vue.withCtx(() => _cache[3] || (_cache[3] = [
145
- vue.createTextVNode("\u53D6\u6D88")
147
+ vue.createTextVNode("\u53D6\u6D88", -1)
146
148
  ])),
147
- _: 1
149
+ _: 1,
150
+ __: [3]
148
151
  }, 8, ["onClick"]),
149
152
  vue.createVNode(vue.unref(webVue.Button), {
150
153
  disabled: isEmpty,
@@ -152,9 +155,10 @@ const _sfc_main = vue.defineComponent({
152
155
  onClick: ($event) => confirm("crop", onConfirm)
153
156
  }, {
154
157
  default: vue.withCtx(() => _cache[4] || (_cache[4] = [
155
- vue.createTextVNode(" \u7F16\u8F91 ")
158
+ vue.createTextVNode(" \u7F16\u8F91 ", -1)
156
159
  ])),
157
- _: 2
160
+ _: 2,
161
+ __: [4]
158
162
  }, 1032, ["disabled", "onClick"]),
159
163
  vue.createVNode(vue.unref(webVue.Button), {
160
164
  disabled: isEmpty,
@@ -162,9 +166,10 @@ const _sfc_main = vue.defineComponent({
162
166
  onClick: ($event) => confirm("use", onConfirm)
163
167
  }, {
164
168
  default: vue.withCtx(() => _cache[5] || (_cache[5] = [
165
- vue.createTextVNode(" \u4F7F\u7528 ")
169
+ vue.createTextVNode(" \u4F7F\u7528 ", -1)
166
170
  ])),
167
- _: 2
171
+ _: 2,
172
+ __: [5]
168
173
  }, 1032, ["disabled", "onClick"])
169
174
  ], 64))
170
175
  ]),
@@ -46,14 +46,15 @@ const _sfc_main = vue.defineComponent({
46
46
  vue.createVNode(vue.unref(vueCmstopIcons.IconComputer))
47
47
  ]),
48
48
  default: vue.withCtx(() => [
49
- _cache[0] || (_cache[0] = vue.createTextVNode(" \u672C\u5730\u4E0A\u4F20 "))
49
+ _cache[0] || (_cache[0] = vue.createTextVNode(" \u672C\u5730\u4E0A\u4F20 ", -1))
50
50
  ]),
51
- _: 1
51
+ _: 1,
52
+ __: [0]
52
53
  })
53
54
  ]),
54
55
  _: 1
55
56
  }),
56
- vue.createCommentVNode(' <a-button type="primary"> \u626B\u7801\u4E0A\u4F20 </a-button>\n <a-button type="primary"> \u5206\u4EAB\u4E0A\u4F20 </a-button> ')
57
+ vue.createCommentVNode(' <a-button type="primary"> \u626B\u7801\u4E0A\u4F20 </a-button>\r\n <a-button type="primary"> \u5206\u4EAB\u4E0A\u4F20 </a-button> ')
57
58
  ]),
58
59
  vue.createElementVNode("div", _hoisted_3, [
59
60
  vue.createVNode(vue.unref(webVue.Upload), {
@@ -23,6 +23,7 @@ const _sfc_main = vue.defineComponent({
23
23
  var _a;
24
24
  return (_a = userInfo == null ? void 0 : userInfo.value) == null ? void 0 : _a.repository_id;
25
25
  });
26
+ const { template, initTemplate } = useUpload.useUploadConfig();
26
27
  const { list, uploadFile, reTranscode, transcodingFile, removeRecord } = useUpload["default"]();
27
28
  function handleChange(file) {
28
29
  if (!baseAPI || !repoId.value)
@@ -32,7 +33,8 @@ const _sfc_main = vue.defineComponent({
32
33
  file.file,
33
34
  0,
34
35
  repoId.value,
35
- (media) => transcodingFile(baseAPI, media, repoId.value)
36
+ (media) => transcodingFile(baseAPI, media, repoId.value),
37
+ { template: template.value }
36
38
  );
37
39
  }
38
40
  async function handleOptions(e) {
@@ -55,6 +57,9 @@ const _sfc_main = vue.defineComponent({
55
57
  removeRecord(e.item);
56
58
  }
57
59
  }
60
+ vue.onMounted(() => {
61
+ initTemplate(baseAPI);
62
+ });
58
63
  return (_ctx, _cache) => {
59
64
  return vue.openBlock(), vue.createBlock(ListWraper, null, {
60
65
  "footer-extra": vue.withCtx(() => [
@@ -74,7 +79,7 @@ const _sfc_main = vue.defineComponent({
74
79
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
75
80
  key: item.sig_id
76
81
  }, [
77
- vue.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 "),
82
+ vue.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 "),
78
83
  vue.renderSlot(_ctx.$slots, "item", {
79
84
  item,
80
85
  onOptions: handleOptions
@@ -3,41 +3,70 @@ var vue = require("vue");
3
3
  var webVue = require("@arco-design/web-vue");
4
4
  var icon = require("@arco-design/web-vue/es/icon");
5
5
  var useSelection = require("../../../../hooks/useSelection.js");
6
+ var useAttachement = require("../../../../hooks/useAttachement.js");
6
7
  var typeMap = require("../../../../utils/typeMap.js");
7
8
  var selectionApis = require("../../../scripts/selectionApis.js");
8
9
  var resource = require("../../../../utils/resource.js");
10
+ var useResponsiveFilter = require("../../../hooks/useResponsiveFilter.js");
9
11
  const _hoisted_1 = { class: "list-filter-wrapper" };
10
12
  const _hoisted_2 = { class: "list-filter" };
11
- const _hoisted_3 = { class: "filter-list" };
12
- const _hoisted_4 = { style: { "width": "200px" } };
13
+ const _hoisted_3 = { class: "more-btn" };
14
+ const _hoisted_4 = { class: "right-prefix" };
13
15
  const _hoisted_5 = {
14
16
  class: "filter-item",
15
17
  style: { "width": "200px" }
16
18
  };
17
- const _hoisted_6 = { class: "filter-item" };
19
+ const _hoisted_6 = {
20
+ class: "filter-item",
21
+ style: { "width": "180px" }
22
+ };
18
23
  const _hoisted_7 = {
24
+ class: "filter-item",
25
+ style: { "width": "170px" }
26
+ };
27
+ const _hoisted_8 = {
28
+ class: "filter-item",
29
+ style: { "width": "240px" }
30
+ };
31
+ const _hoisted_9 = {
32
+ class: "filter-item",
33
+ style: { "width": "240px" }
34
+ };
35
+ const _hoisted_10 = {
19
36
  key: 0,
20
37
  class: "filter-item"
21
38
  };
22
- const _hoisted_8 = { class: "filter-extra" };
23
- const _hoisted_9 = {
39
+ const _hoisted_11 = { class: "filter-extra" };
40
+ const _hoisted_12 = { class: "filter-item" };
41
+ const _hoisted_13 = {
24
42
  key: 0,
25
43
  class: "list-filter-tags"
26
44
  };
27
- const _hoisted_10 = ["onClick"];
45
+ const _hoisted_14 = ["onClick"];
28
46
  const _sfc_main = vue.defineComponent({
29
47
  __name: "Filter",
30
48
  props: {
49
+ smallScreen: { type: Boolean },
31
50
  disableUploadBy: { type: Boolean }
32
51
  },
33
52
  emits: ["upload", "change"],
34
53
  setup(__props, { expose: __expose, emit: __emit }) {
54
+ var _a, _b, _c;
35
55
  const props = __props;
36
56
  const emits = __emit;
37
57
  const userInfo = vue.inject("userInfo");
38
58
  const baseAPI = vue.inject("baseAPI");
39
59
  const filterOptions = vue.inject("filterOptions");
40
60
  const domainId = vue.computed(() => userInfo == null ? void 0 : userInfo.value.domain_id);
61
+ const filterItemsRef = vue.ref();
62
+ const {
63
+ moreBtnRef,
64
+ popperPanelRef,
65
+ hiddenElementList,
66
+ visible,
67
+ show,
68
+ hide
69
+ } = useResponsiveFilter.useResponsiveFilter(filterItemsRef);
41
70
  const { options, loading, load, loadMore, handleSearch } = useSelection({
42
71
  labelStr: "alias",
43
72
  valueStr: "id",
@@ -57,6 +86,9 @@ const _sfc_main = vue.defineComponent({
57
86
  });
58
87
  const resourceSource = typeMap.RESOURCE_SOURCE_OPTIONS;
59
88
  const resourceCatalog = typeMap.RESOURCE_CATALOG_OPTIONS;
89
+ const { tree } = useAttachement.useDirectory({
90
+ BASE_API: baseAPI
91
+ });
60
92
  const originFilter = {
61
93
  catalog: [],
62
94
  source: "",
@@ -65,9 +97,20 @@ const _sfc_main = vue.defineComponent({
65
97
  keyword: "",
66
98
  precise_keyword: "",
67
99
  upload_by: null,
68
- sf: ""
100
+ sf: "",
101
+ directory_id: void 0
69
102
  };
70
- const filter = vue.ref(JSON.parse(JSON.stringify(originFilter)));
103
+ if ((_a = filterOptions == null ? void 0 : filterOptions.value) == null ? void 0 : _a.mediaTypeStrict) {
104
+ originFilter.catalog = filterOptions.value.mediaType.split(",");
105
+ }
106
+ const filter = vue.ref(
107
+ JSON.parse(
108
+ JSON.stringify({
109
+ ...originFilter,
110
+ catalog: ((_c = (_b = filterOptions == null ? void 0 : filterOptions.value) == null ? void 0 : _b.mediaType) == null ? void 0 : _c.split(",")) || []
111
+ })
112
+ )
113
+ );
71
114
  const handleReset = () => {
72
115
  filter.value = JSON.parse(JSON.stringify(originFilter));
73
116
  };
@@ -112,85 +155,119 @@ const _sfc_main = vue.defineComponent({
112
155
  filter.value.keyword = val;
113
156
  filter.value.precise_keyword = "";
114
157
  }
158
+ filter.value.sf = "";
115
159
  }
116
160
  });
117
- vue.watch(
118
- () => searchType.value,
119
- () => {
120
- searchInput.value = filter.value.keyword || filter.value.precise_keyword;
121
- }
122
- );
123
161
  const isEmpty = vue.computed(() => {
124
- return Object.keys(filter.value).every((key) => {
162
+ return Object.keys(originFilter).every((key) => {
163
+ if (key === "catalog") {
164
+ const currentCatalog = filter.value[key] || [];
165
+ const originCatalog = originFilter[key] || [];
166
+ return currentCatalog.length === originCatalog.length && currentCatalog.every((v) => originCatalog.includes(v));
167
+ }
125
168
  return filter.value[key] === originFilter[key];
126
169
  });
127
170
  });
128
171
  vue.watch(
129
172
  () => filter.value,
130
- () => {
131
- const result = { ...filter.value };
173
+ (val) => {
174
+ const result = { ...val };
132
175
  Object.keys(result).forEach((key) => {
133
176
  if (props.disableUploadBy && key === "upload_by")
134
177
  delete result[key];
135
- if (!result[key])
136
- delete result[key];
178
+ if (result[key] === "" || result[key] === null || result[key] === void 0) {
179
+ if (key !== "catalog") {
180
+ delete result[key];
181
+ }
182
+ }
137
183
  });
138
- if (!result.catalog)
139
- result.catalog = "image,video,audio";
140
- else
141
- result.catalog = result.catalog.join(",");
142
- emits("change", result);
143
- },
144
- { deep: true, immediate: true }
145
- );
146
- vue.watch(
147
- () => filterOptions == null ? void 0 : filterOptions.value,
148
- () => {
149
- var _a;
150
- if ((_a = filterOptions == null ? void 0 : filterOptions.value) == null ? void 0 : _a.mediaType) {
151
- filter.value.catalog = filterOptions == null ? void 0 : filterOptions.value.mediaType.split(",");
152
- if (filterOptions == null ? void 0 : filterOptions.value.mediaTypeStrict) {
153
- originFilter.catalog = filterOptions == null ? void 0 : filterOptions.value.mediaType.split(",");
184
+ if (result.catalog && Array.isArray(result.catalog)) {
185
+ if (result.catalog.length > 0) {
186
+ result.catalog = result.catalog.join(",");
187
+ } else {
188
+ delete result.catalog;
154
189
  }
155
190
  }
191
+ emits("change", result);
156
192
  },
157
- { immediate: true, deep: true }
193
+ { deep: true, immediate: true }
158
194
  );
159
195
  vue.onMounted(() => {
160
196
  load();
161
197
  });
162
198
  __expose({
163
- resetFilter: handleReset
199
+ filter,
200
+ handleReset
164
201
  });
165
202
  return (_ctx, _cache) => {
166
- var _a;
203
+ var _a2;
167
204
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
205
+ vue.createCommentVNode(" Use filterItemsRef's parentElement as the container for boundary checks "),
168
206
  vue.createElementVNode("div", _hoisted_2, [
169
- vue.createElementVNode("div", _hoisted_3, [
207
+ vue.createCommentVNode(" Filter Items Container "),
208
+ vue.createElementVNode("div", {
209
+ id: "resource-filter-pannel",
210
+ ref_key: "filterItemsRef",
211
+ ref: filterItemsRef,
212
+ class: "filter-list"
213
+ }, [
214
+ vue.createCommentVNode(" More Filters Button and Popper Panel "),
215
+ vue.createElementVNode("div", _hoisted_3, [
216
+ vue.createElementVNode("div", {
217
+ ref_key: "moreBtnRef",
218
+ ref: moreBtnRef
219
+ }, [
220
+ vue.withDirectives(vue.createVNode(vue.unref(webVue.Button), {
221
+ style: { marginRight: "10px" },
222
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => vue.unref(visible) ? vue.unref(hide)() : vue.unref(show)(), ["stop"]))
223
+ }, {
224
+ default: vue.withCtx(() => [
225
+ vue.createElementVNode("span", _hoisted_4, [
226
+ _cache[11] || (_cache[11] = vue.createTextVNode(" \u66F4\u591A ", -1)),
227
+ vue.createVNode(vue.unref(icon.IconCaretDown))
228
+ ])
229
+ ]),
230
+ _: 1
231
+ }, 512), [
232
+ [vue.vShow, vue.unref(hiddenElementList).length]
233
+ ])
234
+ ], 512),
235
+ vue.withDirectives(vue.createElementVNode("div", {
236
+ ref_key: "popperPanelRef",
237
+ ref: popperPanelRef,
238
+ class: "filter-pannel",
239
+ onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {
240
+ }, ["stop"]))
241
+ }, null, 512), [
242
+ [vue.vShow, vue.unref(visible)]
243
+ ])
244
+ ]),
170
245
  vue.createCommentVNode(" \u5173\u952E\u8BCD "),
171
- vue.createElementVNode("div", _hoisted_4, [
246
+ vue.createElementVNode("div", _hoisted_5, [
172
247
  vue.createVNode(vue.unref(webVue.Input), {
173
248
  modelValue: searchInput.value,
174
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchInput.value = $event),
249
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => searchInput.value = $event),
175
250
  "allow-clear": "",
176
251
  placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD"
177
252
  }, {
178
253
  prepend: vue.withCtx(() => [
179
254
  vue.createVNode(vue.unref(webVue.Dropdown), {
180
- onSelect: _cache[0] || (_cache[0] = (e) => searchType.value = e)
255
+ onSelect: _cache[2] || (_cache[2] = (e) => searchType.value = e)
181
256
  }, {
182
257
  content: vue.withCtx(() => [
183
258
  vue.createVNode(vue.unref(webVue.Doption), { value: 0 }, {
184
- default: vue.withCtx(() => _cache[7] || (_cache[7] = [
185
- vue.createTextVNode("\u7CBE\u51C6\u641C")
259
+ default: vue.withCtx(() => _cache[12] || (_cache[12] = [
260
+ vue.createTextVNode("\u7CBE\u51C6\u641C", -1)
186
261
  ])),
187
- _: 1
262
+ _: 1,
263
+ __: [12]
188
264
  }),
189
265
  vue.createVNode(vue.unref(webVue.Doption), { value: 1 }, {
190
- default: vue.withCtx(() => _cache[8] || (_cache[8] = [
191
- vue.createTextVNode("\u6A21\u7CCA\u641C")
266
+ default: vue.withCtx(() => _cache[13] || (_cache[13] = [
267
+ vue.createTextVNode("\u6A21\u7CCA\u641C", -1)
192
268
  ])),
193
- _: 1
269
+ _: 1,
270
+ __: [13]
194
271
  })
195
272
  ]),
196
273
  default: vue.withCtx(() => [
@@ -207,15 +284,39 @@ const _sfc_main = vue.defineComponent({
207
284
  _: 1
208
285
  }, 8, ["modelValue"])
209
286
  ]),
287
+ vue.createCommentVNode(" \u76EE\u5F55 "),
288
+ vue.createElementVNode("div", _hoisted_6, [
289
+ vue.createVNode(vue.unref(webVue.TreeSelect), {
290
+ modelValue: filter.value.directory_id,
291
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.directory_id = $event),
292
+ data: vue.unref(tree),
293
+ "popup-container": "#resource-filter-pannel",
294
+ placeholder: "\u8BF7\u9009\u62E9\u76EE\u5F55",
295
+ "field-names": {
296
+ title: "alias",
297
+ key: "id"
298
+ },
299
+ "allow-clear": "",
300
+ "allow-search": "",
301
+ "filter-tree-node": (searchValue, nodeData) => {
302
+ console.log(nodeData);
303
+ if (!nodeData.alias)
304
+ return false;
305
+ return nodeData.alias.toLowerCase().indexOf(searchValue.toLowerCase()) > -1;
306
+ }
307
+ }, null, 8, ["modelValue", "data", "filter-tree-node"])
308
+ ]),
210
309
  vue.createCommentVNode(" \u7D20\u6750\u7C7B\u578B "),
211
- vue.createElementVNode("div", _hoisted_5, [
310
+ vue.createElementVNode("div", _hoisted_7, [
212
311
  vue.createVNode(vue.unref(webVue.Select), {
213
312
  modelValue: filter.value.catalog,
214
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.catalog = $event),
215
- disabled: (_a = vue.unref(filterOptions)) == null ? void 0 : _a.mediaTypeStrict,
313
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.catalog = $event),
314
+ disabled: (_a2 = vue.unref(filterOptions)) == null ? void 0 : _a2.mediaTypeStrict,
315
+ "popup-container": "#resource-filter-pannel",
216
316
  "allow-clear": "",
217
317
  placeholder: "\u7C7B\u578B",
218
- multiple: ""
318
+ multiple: "",
319
+ "max-tag-count": 1
219
320
  }, {
220
321
  default: vue.withCtx(() => [
221
322
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(resourceCatalog), (item) => {
@@ -230,19 +331,22 @@ const _sfc_main = vue.defineComponent({
230
331
  }, 8, ["modelValue", "disabled"])
231
332
  ]),
232
333
  vue.createCommentVNode(" \u65F6\u95F4\u8303\u56F4 "),
233
- vue.createVNode(vue.unref(webVue.RangePicker), {
234
- modelValue: rangeTime.value,
235
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => rangeTime.value = $event),
236
- "allow-clear": "",
237
- style: { "width": "240px" }
238
- }, null, 8, ["modelValue"]),
334
+ vue.createElementVNode("div", _hoisted_8, [
335
+ vue.createVNode(vue.unref(webVue.RangePicker), {
336
+ modelValue: rangeTime.value,
337
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => rangeTime.value = $event),
338
+ "allow-clear": "",
339
+ "popup-container": "#resource-filter-pannel"
340
+ }, null, 8, ["modelValue"])
341
+ ]),
239
342
  vue.createCommentVNode(" \u7D20\u6750\u4E0A\u4F20\u6765\u6E90 "),
240
- vue.createElementVNode("div", _hoisted_6, [
343
+ vue.createElementVNode("div", _hoisted_9, [
241
344
  vue.createVNode(vue.unref(webVue.Select), {
242
345
  modelValue: filter.value.source,
243
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.source = $event),
346
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => filter.value.source = $event),
244
347
  "allow-clear": "",
245
- placeholder: "\u6765\u6E90"
348
+ placeholder: "\u6765\u6E90",
349
+ "popup-container": "#resource-filter-pannel"
246
350
  }, {
247
351
  default: vue.withCtx(() => [
248
352
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(resourceSource), (item) => {
@@ -257,14 +361,15 @@ const _sfc_main = vue.defineComponent({
257
361
  }, 8, ["modelValue"])
258
362
  ]),
259
363
  vue.createCommentVNode(" \u7D20\u6750\u4E0A\u4F20\u4EBA "),
260
- !_ctx.disableUploadBy ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
364
+ !_ctx.disableUploadBy ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10, [
261
365
  vue.createVNode(vue.unref(webVue.Select), {
262
366
  modelValue: filter.value.upload_by,
263
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.upload_by = $event),
367
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => filter.value.upload_by = $event),
264
368
  "allow-clear": "",
265
369
  placeholder: "\u4E0A\u4F20\u4EBA",
266
370
  loading: vue.unref(loading),
267
371
  "allow-search": "",
372
+ "popup-container": "#resource-filter-pannel",
268
373
  onSearch: vue.unref(handleSearch),
269
374
  onDropdownReachBottom: vue.unref(loadMore)
270
375
  }, {
@@ -279,40 +384,66 @@ const _sfc_main = vue.defineComponent({
279
384
  ]),
280
385
  _: 1
281
386
  }, 8, ["modelValue", "loading", "onSearch", "onDropdownReachBottom"])
282
- ])) : vue.createCommentVNode("v-if", true),
283
- !isEmpty.value ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
284
- key: 1,
285
- type: "text",
286
- onClick: handleReset
387
+ ])) : vue.createCommentVNode("v-if", true)
388
+ ], 512),
389
+ vue.createElementVNode("div", _hoisted_11, [
390
+ vue.createCommentVNode(" \u91CD\u7F6E\u6309\u94AE - Wrap in filter-item to be managed by the hook "),
391
+ vue.withDirectives(vue.createElementVNode("div", _hoisted_12, [
392
+ _ctx.smallScreen ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
393
+ key: 0,
394
+ type: "text",
395
+ onClick: handleReset
396
+ }, {
397
+ icon: vue.withCtx(() => [
398
+ vue.createVNode(vue.unref(icon.IconRefresh))
399
+ ]),
400
+ _: 1
401
+ })) : (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
402
+ key: 1,
403
+ type: "text",
404
+ onClick: handleReset
405
+ }, {
406
+ default: vue.withCtx(() => _cache[14] || (_cache[14] = [
407
+ vue.createTextVNode(" \u91CD\u7F6E ", -1)
408
+ ])),
409
+ _: 1,
410
+ __: [14]
411
+ }))
412
+ ], 512), [
413
+ [vue.vShow, !isEmpty.value]
414
+ ]),
415
+ _ctx.smallScreen ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
416
+ key: 0,
417
+ type: "primary",
418
+ onClick: _cache[9] || (_cache[9] = ($event) => emits("upload"))
287
419
  }, {
288
- default: vue.withCtx(() => _cache[9] || (_cache[9] = [
289
- vue.createTextVNode(" \u91CD\u7F6E ")
290
- ])),
420
+ icon: vue.withCtx(() => [
421
+ vue.createVNode(vue.unref(icon.IconUpload))
422
+ ]),
291
423
  _: 1
292
- })) : vue.createCommentVNode("v-if", true)
293
- ]),
294
- vue.createElementVNode("div", _hoisted_8, [
295
- vue.createVNode(vue.unref(webVue.Button), {
424
+ })) : (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
425
+ key: 1,
296
426
  type: "primary",
297
- onClick: _cache[6] || (_cache[6] = ($event) => emits("upload"))
427
+ onClick: _cache[10] || (_cache[10] = ($event) => emits("upload"))
298
428
  }, {
299
429
  icon: vue.withCtx(() => [
300
430
  vue.createVNode(vue.unref(icon.IconUpload))
301
431
  ]),
302
432
  default: vue.withCtx(() => [
303
- _cache[10] || (_cache[10] = vue.createTextVNode(" \u4E0A\u4F20 "))
433
+ _cache[15] || (_cache[15] = vue.createTextVNode(" \u4E0A\u4F20 ", -1))
304
434
  ]),
305
- _: 1
306
- })
435
+ _: 1,
436
+ __: [15]
437
+ }))
307
438
  ])
308
439
  ]),
309
- searchInput.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, [
440
+ searchInput.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
310
441
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(resource.keywordsSelection), (item) => {
311
442
  return vue.openBlock(), vue.createElementBlock("div", {
312
443
  key: item.value,
313
444
  class: vue.normalizeClass(["list-filter-tag", { active: filter.value.sf === item.value }]),
314
445
  onClick: ($event) => filter.value.sf = item.value
315
- }, vue.toDisplayString(item.name), 11, _hoisted_10);
446
+ }, vue.toDisplayString(item.name), 11, _hoisted_14);
316
447
  }), 128))
317
448
  ])) : vue.createCommentVNode("v-if", true)
318
449
  ]);