@cmstops/pro-compo 3.9.2-alpha.2 → 3.9.2-alpha.20

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 (340) hide show
  1. package/dist/index.css +4 -0
  2. package/dist/index.min.css +1 -1
  3. package/dist/index.min.js.map +1 -1
  4. package/es/baseFilter/component.js +71 -14
  5. package/es/contentDetailList/component.js +24 -0
  6. package/es/contentDetailList/components/Content/index.js +2 -1
  7. package/es/contentDetailList/components/Doc/index.js +6 -0
  8. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.js +4 -2
  9. package/es/contentModal/component.js +16 -8
  10. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +2 -1
  11. package/es/contentModal/components/storeBox/index.js +4 -2
  12. package/es/dataTags/component.js +10 -5
  13. package/es/docHistory/component.js +43 -13
  14. package/es/docHistory/scripts/diff.js +4 -3
  15. package/es/docHistory/style/index.css +4 -0
  16. package/es/docHistory/style/index.less +5 -0
  17. package/es/docPreview/component.js +10 -5
  18. package/es/editMetaInfo/components/metaInfoForm.js +4 -2
  19. package/es/hooks/useUpload.js +43 -4
  20. package/es/imageCrop/component.js +4 -2
  21. package/es/importData/component.js +6 -3
  22. package/es/index.css +4 -0
  23. package/es/index.js +1 -0
  24. package/es/mediaFilter/components/DocFilter.js +2 -1
  25. package/es/resourceGridList/component.js +4 -2
  26. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
  27. package/es/resourceModal/components/MediaSelection/MainContent/index.js +4 -2
  28. package/es/selectAddTo/component.js +126 -0
  29. package/es/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  30. package/es/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +169 -0
  31. package/es/selectAddTo/components/ViewAllColumn/columnTree/index.js +151 -0
  32. package/es/selectAddTo/components/ViewAllColumn/index.js +203 -0
  33. package/es/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  34. package/es/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +78 -0
  35. package/es/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +193 -0
  36. package/es/selectAddTo/index.js +16 -0
  37. package/es/selectAddTo/script/api.js +36 -0
  38. package/es/selectAddTo/script/useSelectAddToState.js +106 -0
  39. package/es/selectAddTo/style/css.js +1 -0
  40. package/es/selectAddTo/style/index.css +3 -0
  41. package/es/selectAddTo/style/index.js +1 -0
  42. package/es/selectAddTo/style/index.less +3 -0
  43. package/es/selectResourceModal/component.js +10 -5
  44. package/es/selectResourceModal/components/List/ListLocal/Upload.js +2 -1
  45. package/es/selectResourceModal/components/List/ListLocal/index.js +8 -3
  46. package/es/selectResourceModal/components/List/ListNormal/Filter.js +45 -22
  47. package/es/selectResourceModal/components/List/ListNormal/index.js +0 -1
  48. package/es/selectResourceModal/components/List/ListSystem/Filter.js +2 -1
  49. package/es/selectResourceModal/hooks/useResponsiveFilter.js +1 -1
  50. package/es/style.css +57 -0
  51. package/es/typeIcons/component.js +1 -1
  52. package/es/userAvater/component.js +2 -1
  53. package/es/userDirector/component.js +2 -1
  54. package/es/utils/index.js +6 -6
  55. package/lib/baseFilter/component.js +69 -12
  56. package/lib/contentDetailList/component.js +24 -0
  57. package/lib/contentDetailList/components/Content/index.js +2 -1
  58. package/lib/contentDetailList/components/Doc/index.js +6 -0
  59. package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +4 -2
  60. package/lib/contentModal/component.js +16 -8
  61. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +2 -1
  62. package/lib/contentModal/components/storeBox/index.js +4 -2
  63. package/lib/dataTags/component.js +10 -5
  64. package/lib/docHistory/component.js +41 -11
  65. package/lib/docHistory/scripts/diff.js +4 -3
  66. package/lib/docHistory/style/index.css +4 -0
  67. package/lib/docHistory/style/index.less +5 -0
  68. package/lib/docPreview/component.js +10 -5
  69. package/lib/editMetaInfo/components/metaInfoForm.js +4 -2
  70. package/lib/hooks/useUpload.js +43 -3
  71. package/lib/imageCrop/component.js +4 -2
  72. package/lib/importData/component.js +6 -3
  73. package/lib/index.css +4 -0
  74. package/lib/index.js +2 -0
  75. package/lib/mediaFilter/components/DocFilter.js +2 -1
  76. package/lib/resourceGridList/component.js +4 -2
  77. package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
  78. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +4 -2
  79. package/lib/selectAddTo/component.js +127 -0
  80. package/lib/selectAddTo/component.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
  81. package/lib/selectAddTo/components/ViewAllColumn/MediaFilter/index.js +170 -0
  82. package/lib/selectAddTo/components/ViewAllColumn/columnTree/index.js +152 -0
  83. package/lib/selectAddTo/components/ViewAllColumn/index.js +204 -0
  84. package/lib/selectAddTo/components/ViewAllColumn/index.vue_vue_type_style_index_0_scoped_true_lang.js +3 -0
  85. package/lib/selectAddTo/components/ViewAllColumn/script/useTableColumns.js +80 -0
  86. package/lib/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.js +195 -0
  87. package/lib/selectAddTo/index.js +18 -0
  88. package/lib/selectAddTo/script/api.js +42 -0
  89. package/lib/selectAddTo/script/useSelectAddToState.js +108 -0
  90. package/lib/selectAddTo/style/css.js +2 -0
  91. package/lib/selectAddTo/style/index.css +3 -0
  92. package/lib/selectAddTo/style/index.js +2 -0
  93. package/lib/selectAddTo/style/index.less +3 -0
  94. package/lib/selectResourceModal/component.js +10 -5
  95. package/lib/selectResourceModal/components/List/ListLocal/Upload.js +2 -1
  96. package/lib/selectResourceModal/components/List/ListLocal/index.js +6 -1
  97. package/lib/selectResourceModal/components/List/ListNormal/Filter.js +44 -21
  98. package/lib/selectResourceModal/components/List/ListNormal/index.js +0 -1
  99. package/lib/selectResourceModal/components/List/ListSystem/Filter.js +2 -1
  100. package/lib/selectResourceModal/hooks/useResponsiveFilter.js +1 -1
  101. package/lib/typeIcons/component.js +1 -1
  102. package/lib/userAvater/component.js +2 -1
  103. package/lib/userDirector/component.js +2 -1
  104. package/lib/utils/index.js +6 -6
  105. package/package.json +1 -1
  106. package/es/appCenter/component.d.ts +0 -0
  107. package/es/appCenter/index.d.ts +0 -2
  108. package/es/appCenter/script/api.d.ts +0 -11
  109. package/es/appCenter/script/apps.d.ts +0 -14
  110. package/es/appCenter/script/permissionMap.d.ts +0 -6
  111. package/es/appCenter/script/routeMap.d.ts +0 -4
  112. package/es/appCenter/style/index.d.ts +0 -1
  113. package/es/baseFilter/component.d.ts +0 -0
  114. package/es/baseFilter/components/FilterGroup.d.ts +0 -0
  115. package/es/baseFilter/components/filterItem.d.ts +0 -0
  116. package/es/baseFilter/index.d.ts +0 -2
  117. package/es/baseFilter/style/index.d.ts +0 -1
  118. package/es/baseFilter/useCalcWidth.d.ts +0 -16
  119. package/es/colorPalette/component.d.ts +0 -0
  120. package/es/colorPalette/components/colorPicker.d.ts +0 -0
  121. package/es/colorPalette/index.d.ts +0 -2
  122. package/es/colorPalette/style/index.d.ts +0 -1
  123. package/es/components.d.ts +0 -5
  124. package/es/config.d.ts +0 -4
  125. package/es/contentDetailList/__demo__/matrix/platform.d.ts +0 -36
  126. package/es/contentDetailList/component.d.ts +0 -0
  127. package/es/contentDetailList/components/Content/CompoItem/index.d.ts +0 -0
  128. package/es/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
  129. package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
  130. package/es/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
  131. package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
  132. package/es/contentDetailList/components/Content/GroupPieceItem/index.d.ts +0 -0
  133. package/es/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
  134. package/es/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
  135. package/es/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
  136. package/es/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
  137. package/es/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
  138. package/es/contentDetailList/components/Content/index.d.ts +0 -0
  139. package/es/contentDetailList/components/CustomWrp/CustomItem.d.ts +0 -0
  140. package/es/contentDetailList/components/CustomWrp/index.d.ts +0 -0
  141. package/es/contentDetailList/components/Doc/index.d.ts +0 -0
  142. package/es/contentDetailList/components/Records/MatrixItem/index.d.ts +0 -0
  143. package/es/contentDetailList/components/Records/index.d.ts +0 -0
  144. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.d.ts +0 -0
  145. package/es/contentDetailList/components/ShowQRCode/index.d.ts +0 -0
  146. package/es/contentDetailList/index.d.ts +0 -2
  147. package/es/contentDetailList/script/api.d.ts +0 -6
  148. package/es/contentDetailList/style/index.d.ts +0 -1
  149. package/es/contentModal/component.d.ts +0 -0
  150. package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
  151. package/es/contentModal/components/CompoList/index.d.ts +0 -0
  152. package/es/contentModal/components/ContentList/MediaFilter/index.d.ts +0 -0
  153. package/es/contentModal/components/ContentList/index.d.ts +0 -0
  154. package/es/contentModal/components/Dejin/MediaFilter/index.d.ts +0 -0
  155. package/es/contentModal/components/Dejin/index.d.ts +0 -0
  156. package/es/contentModal/components/EqxiuList/MediaFilter/index.d.ts +0 -0
  157. package/es/contentModal/components/EqxiuList/index.d.ts +0 -0
  158. package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  159. package/es/contentModal/components/LiveList/index.d.ts +0 -0
  160. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  161. package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
  162. package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  163. package/es/contentModal/components/MpContentList/index.d.ts +0 -0
  164. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  165. package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
  166. package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
  167. package/es/contentModal/components/storeBox/index.d.ts +0 -0
  168. package/es/contentModal/index.d.ts +0 -2
  169. package/es/contentModal/script/api.d.ts +0 -18
  170. package/es/contentModal/style/index.d.ts +0 -1
  171. package/es/dataTags/component.d.ts +0 -0
  172. package/es/dataTags/index.d.ts +0 -2
  173. package/es/dataTags/style/index.d.ts +0 -1
  174. package/es/docHistory/component.d.ts +0 -0
  175. package/es/docHistory/components/DocDiffPanel/index.d.ts +0 -0
  176. package/es/docHistory/components/DocHistoryList/index.d.ts +0 -0
  177. package/es/docHistory/index.d.ts +0 -2
  178. package/es/docHistory/scripts/diff.d.ts +0 -1
  179. package/es/docHistory/scripts/useDocHistory.d.ts +0 -10
  180. package/es/docHistory/style/index.d.ts +0 -1
  181. package/es/docPreview/component.d.ts +0 -0
  182. package/es/docPreview/components/PreviewIframe.d.ts +0 -0
  183. package/es/docPreview/index.d.ts +0 -2
  184. package/es/docPreview/scripts/api.d.ts +0 -1
  185. package/es/docPreview/scripts/hook.d.ts +0 -33
  186. package/es/docPreview/style/index.d.ts +0 -1
  187. package/es/editMetaInfo/component.d.ts +0 -0
  188. package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
  189. package/es/editMetaInfo/index.d.ts +0 -2
  190. package/es/editMetaInfo/script/api.d.ts +0 -6
  191. package/es/editMetaInfo/script/restaurants.d.ts +0 -4
  192. package/es/editMetaInfo/style/index.d.ts +0 -1
  193. package/es/emptyData/component.d.ts +0 -0
  194. package/es/emptyData/index.d.ts +0 -2
  195. package/es/emptyData/style/index.d.ts +0 -1
  196. package/es/emptyData/svg/add.d.ts +0 -0
  197. package/es/hooks/assets.d.ts +0 -1
  198. package/es/hooks/batch.d.ts +0 -8
  199. package/es/hooks/dialogVisible.d.ts +0 -8
  200. package/es/hooks/source.d.ts +0 -9
  201. package/es/hooks/toggle.d.ts +0 -6
  202. package/es/hooks/useAttachement.d.ts +0 -53
  203. package/es/hooks/useLocalStorage.d.ts +0 -10
  204. package/es/hooks/useMediaContext.d.ts +0 -12
  205. package/es/hooks/usePopper.d.ts +0 -8
  206. package/es/hooks/useSelection.d.ts +0 -30
  207. package/es/hooks/useUpload.d.ts +0 -30
  208. package/es/hooks/user.d.ts +0 -9
  209. package/es/imageCrop/component.d.ts +0 -0
  210. package/es/imageCrop/index.d.ts +0 -2
  211. package/es/imageCrop/script/api.d.ts +0 -1
  212. package/es/imageCrop/style/index.d.ts +0 -1
  213. package/es/importData/component.d.ts +0 -0
  214. package/es/importData/index.d.ts +0 -2
  215. package/es/importData/style/index.d.ts +0 -1
  216. package/es/index.d.ts +0 -30
  217. package/es/mediaFilter/component.d.ts +0 -0
  218. package/es/mediaFilter/components/DocFilter.d.ts +0 -0
  219. package/es/mediaFilter/components/FilterGroup.d.ts +0 -0
  220. package/es/mediaFilter/components/FilterItem.d.ts +0 -0
  221. package/es/mediaFilter/components/MpAccountFilter.d.ts +0 -0
  222. package/es/mediaFilter/components/MpContentFilter.d.ts +0 -0
  223. package/es/mediaFilter/index.d.ts +0 -3
  224. package/es/mediaFilter/script/optionsGetter.d.ts +0 -26
  225. package/es/mediaFilter/script/types.d.ts +0 -16
  226. package/es/mediaFilter/style/index.d.ts +0 -1
  227. package/es/mediaView/component.d.ts +0 -0
  228. package/es/mediaView/index.d.ts +0 -2
  229. package/es/mediaView/style/index.d.ts +0 -1
  230. package/es/messageBox/component.d.ts +0 -0
  231. package/es/messageBox/index.d.ts +0 -2
  232. package/es/messageBox/list.d.ts +0 -0
  233. package/es/messageBox/script/api.d.ts +0 -6
  234. package/es/messageBox/style/index.d.ts +0 -1
  235. package/es/previousVersion/component.d.ts +0 -0
  236. package/es/previousVersion/index.d.ts +0 -2
  237. package/es/previousVersion/script/api.d.ts +0 -15
  238. package/es/previousVersion/script/tool.d.ts +0 -6
  239. package/es/previousVersion/style/index.d.ts +0 -1
  240. package/es/resourceGridList/component.d.ts +0 -0
  241. package/es/resourceGridList/components/FileTypeThumb/index.d.ts +0 -0
  242. package/es/resourceGridList/index.d.ts +0 -2
  243. package/es/resourceGridList/style/index.d.ts +0 -1
  244. package/es/resourceModal/component.d.ts +0 -0
  245. package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
  246. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
  247. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
  248. package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
  249. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
  250. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
  251. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
  252. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
  253. package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
  254. package/es/resourceModal/index.d.ts +0 -2
  255. package/es/resourceModal/script/api.d.ts +0 -25
  256. package/es/resourceModal/script/mediaSelection.d.ts +0 -14
  257. package/es/resourceModal/style/index.d.ts +0 -1
  258. package/es/selectAvatarList/component.d.ts +0 -0
  259. package/es/selectAvatarList/index.d.ts +0 -2
  260. package/es/selectAvatarList/style/index.d.ts +0 -1
  261. package/es/selectGategory/component.d.ts +0 -0
  262. package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
  263. package/es/selectGategory/index.d.ts +0 -2
  264. package/es/selectGategory/script/api.d.ts +0 -6
  265. package/es/selectGategory/style/index.d.ts +0 -1
  266. package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +0 -268
  267. package/es/selectResourceModal/__demo__/module/basic.d.ts +0 -299
  268. package/es/selectResourceModal/component.d.ts +0 -0
  269. package/es/selectResourceModal/components/List/ListAi/index.d.ts +0 -0
  270. package/es/selectResourceModal/components/List/ListCardWrapper.d.ts +0 -0
  271. package/es/selectResourceModal/components/List/ListLocal/Upload.d.ts +0 -0
  272. package/es/selectResourceModal/components/List/ListLocal/index.d.ts +0 -0
  273. package/es/selectResourceModal/components/List/ListNormal/Filter.d.ts +0 -0
  274. package/es/selectResourceModal/components/List/ListNormal/index.d.ts +0 -0
  275. package/es/selectResourceModal/components/List/ListSystem/Filter.d.ts +0 -0
  276. package/es/selectResourceModal/components/List/ListSystem/SubList.d.ts +0 -0
  277. package/es/selectResourceModal/components/List/ListSystem/index.d.ts +0 -0
  278. package/es/selectResourceModal/components/List/ListVideo/index.d.ts +0 -0
  279. package/es/selectResourceModal/components/List/ListWraper.d.ts +0 -0
  280. package/es/selectResourceModal/components/ListSelected/index.d.ts +0 -0
  281. package/es/selectResourceModal/components/ListTabs/index.d.ts +0 -0
  282. package/es/selectResourceModal/hooks/useResponsiveFilter.d.ts +0 -21
  283. package/es/selectResourceModal/index.d.ts +0 -2
  284. package/es/selectResourceModal/scripts/selectionApis.d.ts +0 -2
  285. package/es/selectResourceModal/scripts/useCompoLf.d.ts +0 -27
  286. package/es/selectResourceModal/scripts/useResourceSelect.d.ts +0 -7
  287. package/es/selectResourceModal/scripts/useTabFilter.d.ts +0 -22
  288. package/es/selectResourceModal/style/index.d.ts +0 -1
  289. package/es/selectThumb/component.d.ts +0 -0
  290. package/es/selectThumb/components/card.d.ts +0 -0
  291. package/es/selectThumb/components/colorPalette.d.ts +0 -0
  292. package/es/selectThumb/components/colorPicker.d.ts +0 -0
  293. package/es/selectThumb/index.d.ts +0 -2
  294. package/es/selectThumb/style/index.d.ts +0 -1
  295. package/es/thumbCard/component.d.ts +0 -0
  296. package/es/thumbCard/components/ThumbUploading/index.d.ts +0 -0
  297. package/es/thumbCard/index.d.ts +0 -2
  298. package/es/thumbCard/style/index.d.ts +0 -1
  299. package/es/typeIcons/component.d.ts +0 -0
  300. package/es/typeIcons/index.d.ts +0 -2
  301. package/es/typeIcons/style/index.d.ts +0 -1
  302. package/es/uploadBefore/component.d.ts +0 -0
  303. package/es/uploadBefore/components/UploadBefore.d.ts +0 -0
  304. package/es/uploadBefore/components/UploadForClick.d.ts +0 -0
  305. package/es/uploadBefore/index.d.ts +0 -2
  306. package/es/uploadBefore/script/api.d.ts +0 -16
  307. package/es/uploadBefore/script/fileTypeAdapter.d.ts +0 -39
  308. package/es/uploadBefore/script/fileUpload.d.ts +0 -7
  309. package/es/uploadBefore/script/uploadHooks.d.ts +0 -96
  310. package/es/uploadBefore/style/index.d.ts +0 -1
  311. package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
  312. package/es/uploadStep/component.d.ts +0 -0
  313. package/es/uploadStep/index.d.ts +0 -2
  314. package/es/uploadStep/script/fileTypeAdapter.d.ts +0 -20
  315. package/es/uploadStep/style/index.d.ts +0 -1
  316. package/es/userAvater/component.d.ts +0 -0
  317. package/es/userAvater/index.d.ts +0 -2
  318. package/es/userAvater/script/api.d.ts +0 -8
  319. package/es/userAvater/style/index.d.ts +0 -1
  320. package/es/userDirector/component.d.ts +0 -0
  321. package/es/userDirector/components/userTree.d.ts +0 -0
  322. package/es/userDirector/index.d.ts +0 -2
  323. package/es/userDirector/script/api.d.ts +0 -10
  324. package/es/userDirector/style/index.d.ts +0 -1
  325. package/es/utils/auth.d.ts +0 -5
  326. package/es/utils/date.d.ts +0 -3
  327. package/es/utils/doc.d.ts +0 -76
  328. package/es/utils/filter.d.ts +0 -21
  329. package/es/utils/index.d.ts +0 -17
  330. package/es/utils/request.d.ts +0 -9
  331. package/es/utils/resource.d.ts +0 -4
  332. package/es/utils/transcodeMedia.d.ts +0 -13
  333. package/es/utils/tusUpload.d.ts +0 -16
  334. package/es/utils/typeMap.d.ts +0 -185
  335. package/es/utils/uploadCatalog.d.ts +0 -1
  336. package/es/videoThumb/component.d.ts +0 -0
  337. package/es/videoThumb/index.d.ts +0 -2
  338. package/es/videoThumb/scripts/api.d.ts +0 -9
  339. package/es/videoThumb/scripts/useVideoThumbs.d.ts +0 -12
  340. package/es/videoThumb/style/index.d.ts +0 -1
@@ -51,6 +51,7 @@ const _sfc_main = vue.defineComponent({
51
51
  },
52
52
  emits: ["upload", "change"],
53
53
  setup(__props, { expose: __expose, emit: __emit }) {
54
+ var _a, _b, _c;
54
55
  const props = __props;
55
56
  const emits = __emit;
56
57
  const userInfo = vue.inject("userInfo");
@@ -64,8 +65,7 @@ const _sfc_main = vue.defineComponent({
64
65
  hiddenElementList,
65
66
  visible,
66
67
  show,
67
- hide,
68
- refreshLayout
68
+ hide
69
69
  } = useResponsiveFilter.useResponsiveFilter(filterItemsRef);
70
70
  const { options, loading, load, loadMore, handleSearch } = useSelection({
71
71
  labelStr: "alias",
@@ -100,7 +100,17 @@ const _sfc_main = vue.defineComponent({
100
100
  sf: "",
101
101
  directory_id: void 0
102
102
  };
103
- 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
+ );
104
114
  const handleReset = () => {
105
115
  filter.value = JSON.parse(JSON.stringify(originFilter));
106
116
  };
@@ -183,22 +193,14 @@ const _sfc_main = vue.defineComponent({
183
193
  { deep: true, immediate: true }
184
194
  );
185
195
  vue.onMounted(() => {
186
- var _a;
187
196
  load();
188
- if ((_a = filterOptions == null ? void 0 : filterOptions.value) == null ? void 0 : _a.mediaType) {
189
- const initialCatalog = filterOptions.value.mediaType.split(",");
190
- filter.value.catalog = initialCatalog;
191
- if (filterOptions.value.mediaTypeStrict) {
192
- originFilter.catalog = initialCatalog;
193
- }
194
- }
195
197
  });
196
198
  __expose({
197
199
  filter,
198
200
  handleReset
199
201
  });
200
202
  return (_ctx, _cache) => {
201
- var _a;
203
+ var _a2;
202
204
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
203
205
  vue.createCommentVNode(" Use filterItemsRef's parentElement as the container for boundary checks "),
204
206
  vue.createElementVNode("div", _hoisted_2, [
@@ -257,13 +259,15 @@ const _sfc_main = vue.defineComponent({
257
259
  default: vue.withCtx(() => _cache[12] || (_cache[12] = [
258
260
  vue.createTextVNode("\u7CBE\u51C6\u641C")
259
261
  ])),
260
- _: 1
262
+ _: 1,
263
+ __: [12]
261
264
  }),
262
265
  vue.createVNode(vue.unref(webVue.Doption), { value: 1 }, {
263
266
  default: vue.withCtx(() => _cache[13] || (_cache[13] = [
264
267
  vue.createTextVNode("\u6A21\u7CCA\u641C")
265
268
  ])),
266
- _: 1
269
+ _: 1,
270
+ __: [13]
267
271
  })
268
272
  ]),
269
273
  default: vue.withCtx(() => [
@@ -292,15 +296,22 @@ const _sfc_main = vue.defineComponent({
292
296
  title: "alias",
293
297
  key: "id"
294
298
  },
295
- "allow-clear": ""
296
- }, null, 8, ["modelValue", "data"])
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"])
297
308
  ]),
298
309
  vue.createCommentVNode(" \u7D20\u6750\u7C7B\u578B "),
299
310
  vue.createElementVNode("div", _hoisted_7, [
300
311
  vue.createVNode(vue.unref(webVue.Select), {
301
312
  modelValue: filter.value.catalog,
302
313
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.catalog = $event),
303
- disabled: (_a = vue.unref(filterOptions)) == null ? void 0 : _a.mediaTypeStrict,
314
+ disabled: (_a2 = vue.unref(filterOptions)) == null ? void 0 : _a2.mediaTypeStrict,
304
315
  "popup-container": "#resource-filter-pannel",
305
316
  "allow-clear": "",
306
317
  placeholder: "\u7C7B\u578B",
@@ -378,15 +389,26 @@ const _sfc_main = vue.defineComponent({
378
389
  vue.createElementVNode("div", _hoisted_11, [
379
390
  vue.createCommentVNode(" \u91CD\u7F6E\u6309\u94AE - Wrap in filter-item to be managed by the hook "),
380
391
  vue.withDirectives(vue.createElementVNode("div", _hoisted_12, [
381
- vue.createVNode(vue.unref(webVue.Button), {
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,
382
403
  type: "text",
383
404
  onClick: handleReset
384
405
  }, {
385
406
  default: vue.withCtx(() => _cache[14] || (_cache[14] = [
386
407
  vue.createTextVNode(" \u91CD\u7F6E ")
387
408
  ])),
388
- _: 1
389
- })
409
+ _: 1,
410
+ __: [14]
411
+ }))
390
412
  ], 512), [
391
413
  [vue.vShow, !isEmpty.value]
392
414
  ]),
@@ -410,7 +432,8 @@ const _sfc_main = vue.defineComponent({
410
432
  default: vue.withCtx(() => [
411
433
  _cache[15] || (_cache[15] = vue.createTextVNode(" \u4E0A\u4F20 "))
412
434
  ]),
413
- _: 1
435
+ _: 1,
436
+ __: [15]
414
437
  }))
415
438
  ])
416
439
  ]),
@@ -35,7 +35,6 @@ const _sfc_main = vue.defineComponent({
35
35
  return (_a = listWrapper.value) == null ? void 0 : _a.offsetWidth;
36
36
  },
37
37
  (val) => {
38
- console.log(val);
39
38
  smallScreen.value = !!(val && val < 600);
40
39
  },
41
40
  { immediate: true }
@@ -131,7 +131,8 @@ const _sfc_main = vue.defineComponent({
131
131
  default: vue.withCtx(() => _cache[3] || (_cache[3] = [
132
132
  vue.createTextVNode(" \u91CD\u7F6E ")
133
133
  ])),
134
- _: 1
134
+ _: 1,
135
+ __: [3]
135
136
  })) : vue.createCommentVNode("v-if", true)
136
137
  ])
137
138
  ])
@@ -69,7 +69,7 @@ function useResponsiveFilter(filterItemsRef) {
69
69
  if (!item || !item.classList || !item.classList.contains("filter-item"))
70
70
  continue;
71
71
  const itemRect = getRect(item);
72
- if (itemRect.right > containerRight - 300) {
72
+ if (itemRect.right > containerRight - 400) {
73
73
  hideElement(item);
74
74
  } else {
75
75
  currentRightmostBoundary = Math.max(
@@ -36,7 +36,7 @@ const _sfc_main = vue.defineComponent({
36
36
  vue.createVNode(vue.unref(vueCmstopIcons.IconYinpinji), { style: { "color": "#1fb7c2" } })
37
37
  ], 2112)) : props.doc && props.type === "video_album" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 7 }, [
38
38
  vue.createCommentVNode(" \u89C6\u9891\u96C6 "),
39
- vue.createVNode(vue.unref(vueCmstopIcons.IconShipinji))
39
+ vue.createVNode(vue.unref(vueCmstopIcons.IconShipinji), { style: { "color": "#f05050" } })
40
40
  ], 2112)) : props.doc && props.type === "mini_program" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 8 }, [
41
41
  vue.createCommentVNode(" \u89C6\u9891\u96C6 "),
42
42
  vue.createVNode(vue.unref(vueCmstopIcons.IconMiniprogram))
@@ -141,7 +141,8 @@ const _sfc_main = vue.defineComponent({
141
141
  default: vue.withCtx(() => _cache[2] || (_cache[2] = [
142
142
  vue.createTextVNode("\u9000\u51FA")
143
143
  ])),
144
- _: 1
144
+ _: 1,
145
+ __: [2]
145
146
  })
146
147
  ])
147
148
  ])
@@ -229,7 +229,8 @@ const _sfc_main = vue.defineComponent({
229
229
  default: vue.withCtx(() => _cache[0] || (_cache[0] = [
230
230
  vue.createTextVNode("\u5168\u90E8\u6E05\u9664")
231
231
  ])),
232
- _: 1
232
+ _: 1,
233
+ __: [0]
233
234
  })
234
235
  ]),
235
236
  vue.createVNode(vue.unref(webVue.Scrollbar), {
@@ -144,13 +144,13 @@ async function copyContent(content) {
144
144
  }
145
145
  }
146
146
  function mediaTime(v) {
147
- const h = Math.floor(v / (60 * 60));
148
- const m = Math.floor((v - h) / 60);
149
- const s = Math.floor(v - h * 360 - m * 60);
147
+ const h = Math.floor(v / 3600);
148
+ const m = Math.floor(v % 3600 / 60);
149
+ const s = Math.floor(v % 60);
150
150
  let ret = "";
151
- ret += `${h < 10 ? `0${h}` : h || "--"}:`;
152
- ret += `${m < 10 ? `0${m}` : m || "--"}:`;
153
- ret += s < 10 ? `0${s}` : s || "--";
151
+ ret += `${h < 10 ? `0${h}` : h}:`;
152
+ ret += `${m < 10 ? `0${m}` : m}:`;
153
+ ret += s < 10 ? `0${s}` : s;
154
154
  return ret;
155
155
  }
156
156
  exports.copyContent = copyContent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "3.9.2-alpha.2",
3
+ "version": "3.9.2-alpha.20",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",
File without changes
@@ -1,2 +0,0 @@
1
- declare const appCenter: any;
2
- export default appCenter;
@@ -1,11 +0,0 @@
1
- interface Params {
2
- repo_id?: string;
3
- app_id?: number;
4
- [key: string]: any;
5
- }
6
- export declare function getUserRepoActs(BASE_API: string): Promise<import("axios").AxiosResponse<any, any>>;
7
- export declare function getPubApps(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
8
- export declare function getResentApp(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
9
- export declare function setResentApp(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
10
- export declare function getBtnSlot(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
11
- export {};
@@ -1,14 +0,0 @@
1
- declare const _default: {
2
- alias: string;
3
- actions: {
4
- id: number;
5
- key: string;
6
- alias: string;
7
- brief: string;
8
- real: string;
9
- type: number;
10
- icon: string;
11
- target_url: string;
12
- }[];
13
- }[];
14
- export default _default;
@@ -1,6 +0,0 @@
1
- declare type PermissionItem = {
2
- key: string;
3
- real: string | string[];
4
- };
5
- export default function permissionMap(permissions: string[], item: PermissionItem, hideList?: string[]): boolean;
6
- export {};
@@ -1,4 +0,0 @@
1
- export default function routeMap(BASE_API: string, rid: string | null | undefined, listType: string, app?: {
2
- type: number;
3
- setting?: any;
4
- } | null): Promise<void>;
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const baseFilter: any;
2
- export default baseFilter;
@@ -1 +0,0 @@
1
- import './index.less';
@@ -1,16 +0,0 @@
1
- import { Ref } from 'vue';
2
- /**
3
- * @deprecated 改为其他方式实现
4
- * @param filterItemsRef
5
- * @param dpPannelRef
6
- * @param moreBtnRef
7
- * @returns
8
- */
9
- export default function useCalcWidth(filterItemsRef: Ref<HTMLElement | undefined>, dpPannelRef: Ref<HTMLElement | undefined>, moreBtnRef: Ref<HTMLElement | undefined>): {
10
- pannelArray: Ref<string, string>;
11
- popperShowFlag: Ref<boolean, boolean>;
12
- showPopper: () => void;
13
- initDocWidthListener: () => void;
14
- initPopper: () => void;
15
- checkOverflow: () => void;
16
- };
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const colorPalette: any;
2
- export default colorPalette;
@@ -1 +0,0 @@
1
- import './index.less';
@@ -1,5 +0,0 @@
1
- import type { App } from 'vue';
2
- declare const Components: {
3
- install: (app: App) => void;
4
- };
5
- export default Components;
package/es/config.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export declare const DEFAULT_BASE_API: any;
2
- export declare const DEFAULT_BASE_ACCOUNT_HOST: any;
3
- export declare const DEFAULT_UPLOAD_CHUNK_SIZE: number;
4
- export declare const DEFAULT_UPLOAD_URL: string;
@@ -1,36 +0,0 @@
1
- declare const platform: ({
2
- id: number;
3
- key: string;
4
- name: string;
5
- indexUrl: string;
6
- isDataAsync: boolean;
7
- type: string[];
8
- pfIcon?: undefined;
9
- } | {
10
- id: number;
11
- key: string;
12
- name: string;
13
- indexUrl: string;
14
- pfIcon: string;
15
- isDataAsync: boolean;
16
- type: string[];
17
- })[];
18
- export declare function getPlatformInfoById(id: number): any;
19
- export declare const accounts: {
20
- id: number;
21
- createdAt: string;
22
- updatedAt: string;
23
- deletedAt: null;
24
- thirdId: string;
25
- authorId: string;
26
- platformAccountId: string;
27
- avatar: string;
28
- name: string;
29
- platformId: number;
30
- cookie: string;
31
- token: string;
32
- lastRequestAt: number;
33
- lastSyncAt: number;
34
- state: number;
35
- }[];
36
- export default platform;
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const contentDetailList: any;
2
- export default contentDetailList;
@@ -1,6 +0,0 @@
1
- interface Params {
2
- [key: string]: any;
3
- }
4
- export declare function generateDocPreviewLink(BASE_API: string, query?: Params): Promise<import("axios").AxiosResponse<any, any>>;
5
- export declare function getDocDetailsNew(BASE_API: string, query?: Params): Promise<import("axios").AxiosResponse<any, any>>;
6
- export {};
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const contentModal: any;
2
- export default contentModal;
@@ -1,18 +0,0 @@
1
- interface Params {
2
- [key: string]: any;
3
- }
4
- export declare function getCategoryCategoriesTree(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
5
- export declare function getCategoryPath(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
6
- export declare function getCategoryMediaNew(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
7
- export declare function checkCommitFulfillment(BASE_API: string, params?: Params): Promise<boolean>;
8
- export declare function searchMlists(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
9
- export declare function getCategorylistsGroups(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
10
- export declare function searchMpaccount(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
11
- export declare function getBroadcastList(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
12
- export declare function getEqxiuList(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
13
- export declare function getMpContentList(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
14
- export declare function getRevealContent(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
15
- export declare function getConfigurationNew(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
16
- export declare function getReporterContent(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
17
- export declare function getTypeConfig(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
18
- export {};
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
@@ -1,2 +0,0 @@
1
- declare const dataTags: any;
2
- export default dataTags;
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const docHistory: any;
2
- export default docHistory;
@@ -1 +0,0 @@
1
- export declare function CompareById2(leftNode: HTMLElement, rightNode: HTMLElement): string;
@@ -1,10 +0,0 @@
1
- export declare function getDocHistory(BASE_API: string, id: number, pub: boolean): Promise<import("axios").AxiosResponse<any, any>>;
2
- export declare function useDocHistory(BASE_API: string): {
3
- diffContent: import("vue").Ref<any, any>;
4
- current: import("vue").Ref<number, number>;
5
- loading: import("vue").Ref<boolean, boolean>;
6
- list: import("vue").Ref<any[], any[]>;
7
- loadData: () => Promise<void>;
8
- initParams: (mediaId: number, docPub: boolean) => void;
9
- handleSelect: (idx: number) => Promise<void>;
10
- };
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const docPreview: any;
2
- export default docPreview;
@@ -1 +0,0 @@
1
- export declare function generateDocPreviewLink(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
@@ -1,33 +0,0 @@
1
- import { Ref } from 'vue';
2
- export declare function generateDocPreviewLink(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
3
- export declare const EXPIRE_TIME_OPTIONS: {
4
- label: string;
5
- value: number;
6
- }[];
7
- declare type ShareDataType = {
8
- qrCode: string;
9
- shareUrl: string;
10
- expiredAt: number;
11
- };
12
- export declare function useDocPreview(BASE_API: string, hashid: Ref<string>): {
13
- genQrCode: (shareUrl: string, selector: string) => void;
14
- generate: (cancel?: boolean | undefined) => Promise<boolean>;
15
- cancel: (update?: boolean | undefined) => Promise<void>;
16
- copy: () => Promise<void>;
17
- qrCode: Ref<string, string>;
18
- isPublish: Ref<boolean, boolean>;
19
- loading: Ref<boolean, boolean>;
20
- expireTime: Ref<number, number>;
21
- innerUrl: Ref<string, string>;
22
- shareData: Ref<{
23
- qrCode: string;
24
- shareUrl: string;
25
- expiredAt: number;
26
- } | null, ShareDataType | {
27
- qrCode: string;
28
- shareUrl: string;
29
- expiredAt: number;
30
- } | null>;
31
- intervalTime: Ref<string, string>;
32
- };
33
- export {};
@@ -1 +0,0 @@
1
- import './index.less';
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- declare const editMetaInfo: any;
2
- export default editMetaInfo;