@cmstops/pro-compo 3.9.1-rc.3 → 3.9.1-rc.5

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 (262) hide show
  1. package/dist/index.css +45 -4
  2. package/dist/index.min.css +1 -1
  3. package/es/appCenter/component.d.ts +0 -0
  4. package/es/appCenter/index.d.ts +2 -0
  5. package/es/appCenter/script/api.d.ts +11 -0
  6. package/es/appCenter/script/apps.d.ts +14 -0
  7. package/es/appCenter/script/permissionMap.d.ts +6 -0
  8. package/es/appCenter/script/routeMap.d.ts +4 -0
  9. package/es/appCenter/style/index.d.ts +1 -0
  10. package/es/baseFilter/component.d.ts +0 -0
  11. package/es/baseFilter/components/FilterGroup.d.ts +0 -0
  12. package/es/baseFilter/components/filterItem.d.ts +0 -0
  13. package/es/baseFilter/index.d.ts +2 -0
  14. package/es/baseFilter/style/index.d.ts +1 -0
  15. package/es/baseFilter/useCalcWidth.d.ts +16 -0
  16. package/es/colorPalette/component.d.ts +0 -0
  17. package/es/colorPalette/components/colorPicker.d.ts +0 -0
  18. package/es/colorPalette/index.d.ts +2 -0
  19. package/es/colorPalette/style/index.d.ts +1 -0
  20. package/es/components.d.ts +5 -0
  21. package/es/config.d.ts +4 -0
  22. package/es/contentDetailList/__demo__/matrix/platform.d.ts +36 -0
  23. package/es/contentDetailList/component.d.ts +0 -0
  24. package/es/contentDetailList/component.js +24 -0
  25. package/es/contentDetailList/components/Content/CompoItem/index.d.ts +0 -0
  26. package/es/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
  27. package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
  28. package/es/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
  29. package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
  30. package/es/contentDetailList/components/Content/GroupPieceItem/index.d.ts +0 -0
  31. package/es/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
  32. package/es/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
  33. package/es/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
  34. package/es/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
  35. package/es/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
  36. package/es/contentDetailList/components/Content/index.d.ts +0 -0
  37. package/es/contentDetailList/components/Content/index.js +2 -1
  38. package/es/contentDetailList/components/CustomWrp/CustomItem.d.ts +0 -0
  39. package/es/contentDetailList/components/CustomWrp/index.d.ts +0 -0
  40. package/es/contentDetailList/components/Doc/index.d.ts +0 -0
  41. package/es/contentDetailList/components/Doc/index.js +6 -0
  42. package/es/contentDetailList/components/Records/MatrixItem/index.d.ts +0 -0
  43. package/es/contentDetailList/components/Records/index.d.ts +0 -0
  44. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.d.ts +0 -0
  45. package/es/contentDetailList/components/ShowQRCode/index.d.ts +0 -0
  46. package/es/contentDetailList/index.d.ts +2 -0
  47. package/es/contentDetailList/script/api.d.ts +6 -0
  48. package/es/contentDetailList/style/index.d.ts +1 -0
  49. package/es/contentModal/component.d.ts +0 -0
  50. package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
  51. package/es/contentModal/components/CompoList/index.d.ts +0 -0
  52. package/es/contentModal/components/ContentList/MediaFilter/index.d.ts +0 -0
  53. package/es/contentModal/components/ContentList/index.d.ts +0 -0
  54. package/es/contentModal/components/Dejin/MediaFilter/index.d.ts +0 -0
  55. package/es/contentModal/components/Dejin/index.d.ts +0 -0
  56. package/es/contentModal/components/EqxiuList/MediaFilter/index.d.ts +0 -0
  57. package/es/contentModal/components/EqxiuList/index.d.ts +0 -0
  58. package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  59. package/es/contentModal/components/LiveList/index.d.ts +0 -0
  60. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  61. package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
  62. package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  63. package/es/contentModal/components/MpContentList/index.d.ts +0 -0
  64. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  65. package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
  66. package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
  67. package/es/contentModal/components/storeBox/index.d.ts +0 -0
  68. package/es/contentModal/index.d.ts +2 -0
  69. package/es/contentModal/script/api.d.ts +18 -0
  70. package/es/contentModal/style/index.d.ts +1 -0
  71. package/es/dataTags/component.d.ts +0 -0
  72. package/es/dataTags/index.d.ts +2 -0
  73. package/es/dataTags/style/index.d.ts +1 -0
  74. package/es/docHistory/component.d.ts +0 -0
  75. package/es/docHistory/components/DocDiffPanel/index.d.ts +0 -0
  76. package/es/docHistory/components/DocHistoryList/index.d.ts +0 -0
  77. package/es/docHistory/index.d.ts +2 -0
  78. package/es/docHistory/scripts/diff.d.ts +1 -0
  79. package/es/docHistory/scripts/useDocHistory.d.ts +10 -0
  80. package/es/docHistory/style/index.d.ts +1 -0
  81. package/es/docPreview/component.d.ts +0 -0
  82. package/es/docPreview/components/PreviewIframe.d.ts +0 -0
  83. package/es/docPreview/index.d.ts +2 -0
  84. package/es/docPreview/scripts/api.d.ts +1 -0
  85. package/es/docPreview/scripts/hook.d.ts +33 -0
  86. package/es/docPreview/style/index.d.ts +1 -0
  87. package/es/editMetaInfo/component.d.ts +0 -0
  88. package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
  89. package/es/editMetaInfo/index.d.ts +2 -0
  90. package/es/editMetaInfo/script/api.d.ts +6 -0
  91. package/es/editMetaInfo/script/restaurants.d.ts +4 -0
  92. package/es/editMetaInfo/style/index.d.ts +1 -0
  93. package/es/emptyData/component.d.ts +0 -0
  94. package/es/emptyData/index.d.ts +2 -0
  95. package/es/emptyData/style/index.d.ts +1 -0
  96. package/es/emptyData/svg/add.d.ts +0 -0
  97. package/es/hooks/assets.d.ts +1 -0
  98. package/es/hooks/batch.d.ts +8 -0
  99. package/es/hooks/dialogVisible.d.ts +8 -0
  100. package/es/hooks/source.d.ts +9 -0
  101. package/es/hooks/toggle.d.ts +6 -0
  102. package/es/hooks/useAttachement.d.ts +53 -0
  103. package/es/hooks/useLocalStorage.d.ts +10 -0
  104. package/es/hooks/useMediaContext.d.ts +12 -0
  105. package/es/hooks/usePopper.d.ts +8 -0
  106. package/es/hooks/usePopper.js +3 -3
  107. package/es/hooks/useSelection.d.ts +30 -0
  108. package/es/hooks/useUpload.d.ts +30 -0
  109. package/es/hooks/user.d.ts +9 -0
  110. package/es/imageCrop/component.d.ts +0 -0
  111. package/es/imageCrop/index.d.ts +2 -0
  112. package/es/imageCrop/script/api.d.ts +1 -0
  113. package/es/imageCrop/style/index.d.ts +1 -0
  114. package/es/importData/component.d.ts +0 -0
  115. package/es/importData/index.d.ts +2 -0
  116. package/es/importData/style/index.d.ts +1 -0
  117. package/es/index.css +45 -4
  118. package/es/index.d.ts +30 -0
  119. package/es/mediaFilter/component.d.ts +0 -0
  120. package/es/mediaFilter/components/DocFilter.d.ts +0 -0
  121. package/es/mediaFilter/components/FilterGroup.d.ts +0 -0
  122. package/es/mediaFilter/components/FilterItem.d.ts +0 -0
  123. package/es/mediaFilter/components/MpAccountFilter.d.ts +0 -0
  124. package/es/mediaFilter/components/MpContentFilter.d.ts +0 -0
  125. package/es/mediaFilter/index.d.ts +3 -0
  126. package/es/mediaFilter/script/optionsGetter.d.ts +26 -0
  127. package/es/mediaFilter/script/types.d.ts +16 -0
  128. package/es/mediaFilter/style/index.d.ts +1 -0
  129. package/es/mediaView/component.d.ts +0 -0
  130. package/es/mediaView/index.d.ts +2 -0
  131. package/es/mediaView/style/index.d.ts +1 -0
  132. package/es/messageBox/component.d.ts +0 -0
  133. package/es/messageBox/index.d.ts +2 -0
  134. package/es/messageBox/list.d.ts +0 -0
  135. package/es/messageBox/script/api.d.ts +6 -0
  136. package/es/messageBox/style/index.d.ts +1 -0
  137. package/es/previousVersion/component.d.ts +0 -0
  138. package/es/previousVersion/index.d.ts +2 -0
  139. package/es/previousVersion/script/api.d.ts +15 -0
  140. package/es/previousVersion/script/tool.d.ts +6 -0
  141. package/es/previousVersion/style/index.d.ts +1 -0
  142. package/es/resourceGridList/component.d.ts +0 -0
  143. package/es/resourceGridList/components/FileTypeThumb/index.d.ts +0 -0
  144. package/es/resourceGridList/index.d.ts +2 -0
  145. package/es/resourceGridList/style/index.d.ts +1 -0
  146. package/es/resourceModal/component.d.ts +0 -0
  147. package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
  148. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
  149. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
  150. package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
  151. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
  152. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
  153. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
  154. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
  155. package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
  156. package/es/resourceModal/index.d.ts +2 -0
  157. package/es/resourceModal/script/api.d.ts +25 -0
  158. package/es/resourceModal/script/mediaSelection.d.ts +14 -0
  159. package/es/resourceModal/style/index.d.ts +1 -0
  160. package/es/selectAvatarList/component.d.ts +0 -0
  161. package/es/selectAvatarList/index.d.ts +2 -0
  162. package/es/selectAvatarList/style/index.d.ts +1 -0
  163. package/es/selectGategory/component.d.ts +0 -0
  164. package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
  165. package/es/selectGategory/index.d.ts +2 -0
  166. package/es/selectGategory/script/api.d.ts +6 -0
  167. package/es/selectGategory/style/index.d.ts +1 -0
  168. package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +268 -0
  169. package/es/selectResourceModal/__demo__/module/basic.d.ts +299 -0
  170. package/es/selectResourceModal/component.d.ts +0 -0
  171. package/es/selectResourceModal/components/List/ListAi/index.d.ts +0 -0
  172. package/es/selectResourceModal/components/List/ListCardWrapper.d.ts +0 -0
  173. package/es/selectResourceModal/components/List/ListLocal/Upload.d.ts +0 -0
  174. package/es/selectResourceModal/components/List/ListLocal/index.d.ts +0 -0
  175. package/es/selectResourceModal/components/List/ListNormal/Filter.d.ts +0 -0
  176. package/es/selectResourceModal/components/List/ListNormal/Filter.js +192 -90
  177. package/es/selectResourceModal/components/List/ListNormal/index.d.ts +0 -0
  178. package/es/selectResourceModal/components/List/ListNormal/index.js +23 -7
  179. package/es/selectResourceModal/components/List/ListSystem/Filter.d.ts +0 -0
  180. package/es/selectResourceModal/components/List/ListSystem/SubList.d.ts +0 -0
  181. package/es/selectResourceModal/components/List/ListSystem/index.d.ts +0 -0
  182. package/es/selectResourceModal/components/List/ListVideo/index.d.ts +0 -0
  183. package/es/selectResourceModal/components/List/ListWraper.d.ts +0 -0
  184. package/es/selectResourceModal/components/ListSelected/index.d.ts +0 -0
  185. package/es/selectResourceModal/components/ListTabs/index.d.ts +0 -0
  186. package/es/selectResourceModal/hooks/useResponsiveFilter.d.ts +21 -0
  187. package/es/selectResourceModal/hooks/useResponsiveFilter.js +142 -0
  188. package/es/selectResourceModal/index.d.ts +2 -0
  189. package/es/selectResourceModal/scripts/selectionApis.d.ts +2 -0
  190. package/es/selectResourceModal/scripts/useCompoLf.d.ts +27 -0
  191. package/es/selectResourceModal/scripts/useResourceSelect.d.ts +7 -0
  192. package/es/selectResourceModal/scripts/useTabFilter.d.ts +22 -0
  193. package/es/selectResourceModal/style/index.css +45 -4
  194. package/es/selectResourceModal/style/index.d.ts +1 -0
  195. package/es/selectResourceModal/style/index.less +14 -0
  196. package/es/selectResourceModal/style/list.less +40 -4
  197. package/es/selectThumb/component.d.ts +0 -0
  198. package/es/selectThumb/components/card.d.ts +0 -0
  199. package/es/selectThumb/components/colorPalette.d.ts +0 -0
  200. package/es/selectThumb/components/colorPicker.d.ts +0 -0
  201. package/es/selectThumb/index.d.ts +2 -0
  202. package/es/selectThumb/style/index.d.ts +1 -0
  203. package/es/thumbCard/component.d.ts +0 -0
  204. package/es/thumbCard/components/ThumbUploading/index.d.ts +0 -0
  205. package/es/thumbCard/index.d.ts +2 -0
  206. package/es/thumbCard/style/index.d.ts +1 -0
  207. package/es/typeIcons/component.d.ts +0 -0
  208. package/es/typeIcons/index.d.ts +2 -0
  209. package/es/typeIcons/style/index.d.ts +1 -0
  210. package/es/uploadBefore/component.d.ts +0 -0
  211. package/es/uploadBefore/components/UploadBefore.d.ts +0 -0
  212. package/es/uploadBefore/components/UploadForClick.d.ts +0 -0
  213. package/es/uploadBefore/index.d.ts +2 -0
  214. package/es/uploadBefore/script/api.d.ts +16 -0
  215. package/es/uploadBefore/script/fileTypeAdapter.d.ts +39 -0
  216. package/es/uploadBefore/script/fileUpload.d.ts +7 -0
  217. package/es/uploadBefore/script/uploadHooks.d.ts +96 -0
  218. package/es/uploadBefore/style/index.d.ts +1 -0
  219. package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
  220. package/es/uploadStep/component.d.ts +0 -0
  221. package/es/uploadStep/index.d.ts +2 -0
  222. package/es/uploadStep/script/fileTypeAdapter.d.ts +20 -0
  223. package/es/uploadStep/style/index.d.ts +1 -0
  224. package/es/userAvater/component.d.ts +0 -0
  225. package/es/userAvater/index.d.ts +2 -0
  226. package/es/userAvater/script/api.d.ts +8 -0
  227. package/es/userAvater/style/index.d.ts +1 -0
  228. package/es/userDirector/component.d.ts +0 -0
  229. package/es/userDirector/components/userTree.d.ts +0 -0
  230. package/es/userDirector/index.d.ts +2 -0
  231. package/es/userDirector/script/api.d.ts +10 -0
  232. package/es/userDirector/style/index.d.ts +1 -0
  233. package/es/utils/auth.d.ts +5 -0
  234. package/es/utils/date.d.ts +3 -0
  235. package/es/utils/doc.d.ts +76 -0
  236. package/es/utils/filter.d.ts +21 -0
  237. package/es/utils/index.d.ts +17 -0
  238. package/es/utils/index.js +6 -6
  239. package/es/utils/request.d.ts +9 -0
  240. package/es/utils/resource.d.ts +4 -0
  241. package/es/utils/transcodeMedia.d.ts +13 -0
  242. package/es/utils/tusUpload.d.ts +16 -0
  243. package/es/utils/typeMap.d.ts +185 -0
  244. package/es/utils/uploadCatalog.d.ts +1 -0
  245. package/es/videoThumb/component.d.ts +0 -0
  246. package/es/videoThumb/index.d.ts +2 -0
  247. package/es/videoThumb/scripts/api.d.ts +9 -0
  248. package/es/videoThumb/scripts/useVideoThumbs.d.ts +12 -0
  249. package/es/videoThumb/style/index.d.ts +1 -0
  250. package/lib/contentDetailList/component.js +24 -0
  251. package/lib/contentDetailList/components/Content/index.js +2 -1
  252. package/lib/contentDetailList/components/Doc/index.js +6 -0
  253. package/lib/hooks/usePopper.js +3 -3
  254. package/lib/index.css +45 -4
  255. package/lib/selectResourceModal/components/List/ListNormal/Filter.js +189 -87
  256. package/lib/selectResourceModal/components/List/ListNormal/index.js +22 -6
  257. package/lib/selectResourceModal/hooks/useResponsiveFilter.js +144 -0
  258. package/lib/selectResourceModal/style/index.css +45 -4
  259. package/lib/selectResourceModal/style/index.less +14 -0
  260. package/lib/selectResourceModal/style/list.less +40 -4
  261. package/lib/utils/index.js +6 -6
  262. package/package.json +1 -1
@@ -0,0 +1,142 @@
1
+ import { ref, onMounted, nextTick, onUnmounted } from "vue";
2
+ import usePopper from "../../hooks/usePopper.js";
3
+ const getRect = (el) => {
4
+ if (!el || typeof el.getClientRects !== "function")
5
+ return { right: 0, width: 0 };
6
+ const rects = el.getClientRects();
7
+ if (rects.length === 0)
8
+ return { right: 0, width: 0 };
9
+ const rect = rects[0];
10
+ return {
11
+ right: rect.right,
12
+ width: rect.width
13
+ };
14
+ };
15
+ function useResponsiveFilter(filterItemsRef) {
16
+ const moreBtnRef = ref();
17
+ const popperPanelRef = ref();
18
+ const { initPopper, show, visible, hide } = usePopper(
19
+ popperPanelRef,
20
+ moreBtnRef
21
+ );
22
+ const windowWidth = ref(0);
23
+ const filterContainerRightBoundary = ref(0);
24
+ const hiddenElementList = ref([]);
25
+ const initWidths = () => {
26
+ var _a, _b;
27
+ windowWidth.value = ((_a = document.body) == null ? void 0 : _a.clientWidth) || 0;
28
+ const containerElement = (_b = filterItemsRef.value) == null ? void 0 : _b.parentElement;
29
+ if (containerElement) {
30
+ filterContainerRightBoundary.value = getRect(containerElement).right;
31
+ }
32
+ };
33
+ const initResizeListener = () => {
34
+ window.addEventListener("resize", refreshLayout);
35
+ };
36
+ const removeResizeListener = () => {
37
+ window.removeEventListener("resize", refreshLayout);
38
+ };
39
+ const hideElement = (el) => {
40
+ var _a, _b, _c;
41
+ const { width } = getRect(el);
42
+ if (width > 0 && ((_a = filterItemsRef.value) == null ? void 0 : _a.contains(el))) {
43
+ hiddenElementList.value.push({ width, el });
44
+ (_b = filterItemsRef.value) == null ? void 0 : _b.removeChild(el);
45
+ (_c = popperPanelRef.value) == null ? void 0 : _c.insertBefore(el, popperPanelRef.value.firstChild);
46
+ }
47
+ };
48
+ const showElement = () => {
49
+ var _a, _b;
50
+ if (!hiddenElementList.value.length || !filterItemsRef.value)
51
+ return;
52
+ const popEl = hiddenElementList.value.pop();
53
+ if (!popEl)
54
+ return;
55
+ const { el } = popEl;
56
+ (_a = popperPanelRef.value) == null ? void 0 : _a.removeChild(el);
57
+ (_b = filterItemsRef.value) == null ? void 0 : _b.appendChild(el);
58
+ };
59
+ const checkOverflow = () => {
60
+ if (!filterItemsRef.value)
61
+ return -1;
62
+ const containerRight = filterContainerRightBoundary.value;
63
+ const children = filterItemsRef.value.children;
64
+ let currentRightmostBoundary = getRect(filterItemsRef.value).right - getRect(filterItemsRef.value).width;
65
+ for (let i = children.length - 1; i >= 0; i--) {
66
+ const item = children[i];
67
+ if (!item || !item.classList || !item.classList.contains("filter-item"))
68
+ continue;
69
+ const itemRect = getRect(item);
70
+ if (itemRect.right > containerRight - 400) {
71
+ hideElement(item);
72
+ } else {
73
+ currentRightmostBoundary = Math.max(
74
+ currentRightmostBoundary,
75
+ itemRect.right
76
+ );
77
+ }
78
+ }
79
+ return currentRightmostBoundary;
80
+ };
81
+ const refreshLayout = async () => {
82
+ await nextTick();
83
+ initWidths();
84
+ if (!filterItemsRef.value || !popperPanelRef.value)
85
+ return;
86
+ const containerRight = filterContainerRightBoundary.value;
87
+ let lastVisibleItemRight = checkOverflow();
88
+ if (lastVisibleItemRight === -1 && filterItemsRef.value.children.length > 0) {
89
+ lastVisibleItemRight = getRect(filterItemsRef.value).left;
90
+ } else if (filterItemsRef.value.children.length === 0) {
91
+ lastVisibleItemRight = getRect(filterItemsRef.value).left;
92
+ }
93
+ await nextTick();
94
+ let availableSpace = containerRight - lastVisibleItemRight;
95
+ while (hiddenElementList.value.length > 0) {
96
+ const nextHiddenItem = hiddenElementList.value[hiddenElementList.value.length - 1];
97
+ const nextHiddenItemWidth = nextHiddenItem.width;
98
+ if (availableSpace > nextHiddenItemWidth + 10) {
99
+ showElement();
100
+ await nextTick();
101
+ const visibleElements = Array.from(
102
+ filterItemsRef.value.children
103
+ );
104
+ if (visibleElements.length > 0) {
105
+ lastVisibleItemRight = visibleElements.reduce((maxRight, el) => {
106
+ var _a;
107
+ if ((_a = el.classList) == null ? void 0 : _a.contains("filter-item")) {
108
+ return Math.max(maxRight, getRect(el).right);
109
+ }
110
+ return maxRight;
111
+ }, getRect(filterItemsRef.value).left);
112
+ } else {
113
+ lastVisibleItemRight = getRect(filterItemsRef.value).left;
114
+ }
115
+ availableSpace = containerRight - lastVisibleItemRight;
116
+ } else {
117
+ break;
118
+ }
119
+ }
120
+ };
121
+ onMounted(async () => {
122
+ initResizeListener();
123
+ initPopper("bottom-start", [0, 40]);
124
+ await nextTick();
125
+ initWidths();
126
+ await nextTick();
127
+ refreshLayout();
128
+ });
129
+ onUnmounted(() => {
130
+ removeResizeListener();
131
+ });
132
+ return {
133
+ moreBtnRef,
134
+ popperPanelRef,
135
+ hiddenElementList,
136
+ visible,
137
+ show,
138
+ hide,
139
+ refreshLayout
140
+ };
141
+ }
142
+ export { useResponsiveFilter };
@@ -0,0 +1,2 @@
1
+ declare const selectResourceModal: any;
2
+ export default selectResourceModal;
@@ -0,0 +1,2 @@
1
+ export declare function getAccountList(BASE_API: string, id: number, query: any): Promise<import("axios").AxiosResponse<any, any>>;
2
+ export declare function getSysRsClassifyList(BASE_API: string, sys_tag: number): Promise<import("axios").AxiosResponse<any, any>>;
@@ -0,0 +1,27 @@
1
+ declare type LifeCycleHandler = {
2
+ onClose: () => void;
3
+ };
4
+ export default function useCompoentLifycycle(props: any, emits: any, handler?: LifeCycleHandler): {
5
+ wrapProps: import("vue").ComputedRef<{
6
+ class: string;
7
+ header: boolean;
8
+ width: string;
9
+ footer: boolean;
10
+ unmountOnClose: boolean;
11
+ bodyClass?: undefined;
12
+ closable?: undefined;
13
+ hideTitle?: undefined;
14
+ } | {
15
+ bodyClass: string;
16
+ width: string;
17
+ closable: boolean;
18
+ hideTitle: boolean;
19
+ footer: boolean;
20
+ unmountOnClose: boolean;
21
+ class?: undefined;
22
+ header?: undefined;
23
+ }>;
24
+ close: () => void;
25
+ submit: (data: any, ...args: any) => void;
26
+ };
27
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare function useResourceSelect(props: any): {
2
+ selected: import("vue").Ref<any[], any[]>;
3
+ selectedKeys: import("vue").ComputedRef<any[]>;
4
+ disableSelect: import("vue").ComputedRef<any>;
5
+ handleSelect: (params: any) => void;
6
+ handleClear: () => void;
7
+ };
@@ -0,0 +1,22 @@
1
+ export declare enum TabEnum {
2
+ ALL = "all",
3
+ MY = "my",
4
+ REMIND = "remind",
5
+ LOCAL = "local",
6
+ SYSTEM = "system",
7
+ AI = "ai",
8
+ VIDEO = "video"
9
+ }
10
+ declare const TAB_DICT: any;
11
+ export declare type TabListType = {
12
+ key: string;
13
+ title: string;
14
+ };
15
+ export declare type TabKeyType = keyof typeof TAB_DICT;
16
+ export default function useTabFilter(props: any): {
17
+ activeKey: import("vue").Ref<string | number | symbol, string | number | symbol>;
18
+ activeComponent: import("vue").ComputedRef<any>;
19
+ tabKeyList: import("vue").ComputedRef<TabListType[]>;
20
+ handelChangeTab: (tabKey: TabEnum) => void;
21
+ };
22
+ export {};
@@ -172,11 +172,13 @@
172
172
  }
173
173
  .resource-list-footer,
174
174
  .resource-list-header,
175
+ .resource-list-content .resource-list-content-empty,
175
176
  .resource-list-content .arco-scrollbar-container {
176
177
  padding: 0 40px;
177
178
  }
178
179
  .resource-list-footer {
179
180
  display: flex;
181
+ flex-wrap: wrap;
180
182
  justify-content: space-between;
181
183
  padding-bottom: 20px;
182
184
  }
@@ -186,6 +188,10 @@
186
188
  gap: 10px;
187
189
  align-items: center;
188
190
  justify-content: flex-end;
191
+ margin-top: 10px;
192
+ }
193
+ .resource-list-footer .footer-right .list-selected-wrapper {
194
+ font-size: 12px;
189
195
  }
190
196
  .resource-list-content-loading {
191
197
  display: flex;
@@ -197,7 +203,7 @@
197
203
  .resource-list .list-item-grid {
198
204
  display: grid;
199
205
  grid-gap: 20px;
200
- grid-template-columns: repeat(5, 1fr);
206
+ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
201
207
  }
202
208
  .resource-list .list-content {
203
209
  margin-top: 30px;
@@ -240,7 +246,8 @@
240
246
  }
241
247
  .resource-list .list-filter-wrapper .list-filter-tags {
242
248
  display: flex;
243
- justify-content: space-between;
249
+ flex-wrap: wrap;
250
+ gap: 10px;
244
251
  margin-top: 10px;
245
252
  }
246
253
  .resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag {
@@ -261,16 +268,41 @@
261
268
  justify-content: space-between;
262
269
  }
263
270
  .resource-list .list-filter-wrapper .list-filter .filter-list {
271
+ position: relative;
272
+ /** 给 popup 一个参考 */
264
273
  display: flex;
265
- flex-wrap: wrap;
266
- gap: 10px;
267
274
  }
268
275
  .resource-list .list-filter-wrapper .list-filter .filter-list .filter-item {
269
276
  width: 100px;
277
+ margin-right: 10px;
278
+ }
279
+ .resource-list .list-filter-wrapper .list-filter .filter-list .arco-trigger-popup {
280
+ z-index: 100000 !important;
270
281
  }
271
282
  .resource-list .list-filter-wrapper .list-filter .arco-input-prepend {
272
283
  padding: 0;
273
284
  }
285
+ .resource-list .list-filter-wrapper .list-filter .more-btn {
286
+ position: relative;
287
+ /** 给 poperjs 一个参考 */
288
+ }
289
+ .resource-list .list-filter-wrapper .list-filter .more-btn .filter-pannel {
290
+ inset: 40px auto auto auto !important;
291
+ }
292
+ .resource-list .list-filter-wrapper .filter-extra {
293
+ display: flex;
294
+ gap: 10px;
295
+ }
296
+ .resource-list .list-filter-wrapper .filter-pannel {
297
+ z-index: 100000;
298
+ display: flex;
299
+ flex-direction: column;
300
+ gap: 10px;
301
+ padding: 10px;
302
+ background-color: #fff;
303
+ border-radius: 4px;
304
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
305
+ }
274
306
  .resource-list .title {
275
307
  display: flex;
276
308
  gap: 8px;
@@ -284,6 +316,10 @@
284
316
  height: 16px;
285
317
  background-color: #4886ff;
286
318
  }
319
+ .resource-select-wrap {
320
+ width: 100%;
321
+ height: 100%;
322
+ }
287
323
  .resource-select-modal-body {
288
324
  height: 80vh;
289
325
  padding: 0;
@@ -312,3 +348,8 @@
312
348
  .resource-select-container .resource-select-header .arco-tabs-content {
313
349
  display: none !important;
314
350
  }
351
+ .resource-select-container .resource-list-content .resource-list-content-empty {
352
+ box-sizing: border-box;
353
+ width: 100%;
354
+ height: 100%;
355
+ }
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -2,6 +2,11 @@
2
2
  @import './listCardWrapper.less';
3
3
  @import './list.less';
4
4
 
5
+ .resource-select-wrap {
6
+ width: 100%;
7
+ height: 100%;
8
+ }
9
+
5
10
  .resource-select-modal-body {
6
11
  height: 80vh;
7
12
  padding: 0;
@@ -38,4 +43,13 @@
38
43
  display: none !important;
39
44
  }
40
45
  }
46
+
47
+ // 内容区域样式
48
+ .resource-list-content {
49
+ .resource-list-content-empty {
50
+ box-sizing: border-box;
51
+ width: 100%;
52
+ height: 100%;
53
+ }
54
+ }
41
55
  }
@@ -14,12 +14,14 @@
14
14
 
15
15
  &-footer,
16
16
  &-header,
17
+ &-content .resource-list-content-empty,
17
18
  &-content .arco-scrollbar-container {
18
19
  padding: 0 40px;
19
20
  }
20
21
 
21
22
  &-footer {
22
23
  display: flex;
24
+ flex-wrap: wrap;
23
25
  justify-content: space-between;
24
26
  padding-bottom: 20px;
25
27
 
@@ -29,6 +31,11 @@
29
31
  gap: 10px;
30
32
  align-items: center;
31
33
  justify-content: flex-end;
34
+ margin-top: 10px;
35
+
36
+ .list-selected-wrapper {
37
+ font-size: 12px;
38
+ }
32
39
  }
33
40
  }
34
41
 
@@ -47,7 +54,7 @@
47
54
  .list-item-grid {
48
55
  display: grid;
49
56
  grid-gap: 20px;
50
- grid-template-columns: repeat(5, 1fr);
57
+ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
51
58
  }
52
59
  }
53
60
 
@@ -108,7 +115,8 @@
108
115
  .resource-list .list-filter-wrapper {
109
116
  .list-filter-tags {
110
117
  display: flex;
111
- justify-content: space-between;
118
+ flex-wrap: wrap;
119
+ gap: 10px;
112
120
  margin-top: 10px;
113
121
 
114
122
  .list-filter-tag {
@@ -133,18 +141,46 @@
133
141
  justify-content: space-between;
134
142
 
135
143
  .filter-list {
144
+ position: relative; /** 给 popup 一个参考 */
136
145
  display: flex;
137
- flex-wrap: wrap;
138
- gap: 10px;
139
146
 
140
147
  .filter-item {
141
148
  width: 100px;
149
+ margin-right: 10px;
150
+ }
151
+
152
+ .arco-trigger-popup {
153
+ z-index: 100000 !important;
142
154
  }
143
155
  }
144
156
 
145
157
  .arco-input-prepend {
146
158
  padding: 0;
147
159
  }
160
+
161
+ .more-btn {
162
+ position: relative; /** 给 poperjs 一个参考 */
163
+
164
+ .filter-pannel {
165
+ inset: 40px auto auto auto !important;
166
+ }
167
+ }
168
+ }
169
+
170
+ .filter-extra {
171
+ display: flex;
172
+ gap: 10px;
173
+ }
174
+
175
+ .filter-pannel {
176
+ z-index: 100000;
177
+ display: flex;
178
+ flex-direction: column;
179
+ gap: 10px;
180
+ padding: 10px;
181
+ background-color: #fff;
182
+ border-radius: 4px;
183
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
148
184
  }
149
185
  }
150
186
 
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ declare const selectThumb: any;
2
+ export default selectThumb;
@@ -0,0 +1 @@
1
+ import './index.less';
File without changes
@@ -0,0 +1,2 @@
1
+ declare const thumbCard: any;
2
+ export default thumbCard;
@@ -0,0 +1 @@
1
+ import './index.less';
File without changes
@@ -0,0 +1,2 @@
1
+ declare const typeIcons: any;
2
+ export default typeIcons;
@@ -0,0 +1 @@
1
+ import './index.less';
File without changes
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ declare const uploadBefore: any;
2
+ export default uploadBefore;
@@ -0,0 +1,16 @@
1
+ export declare function getWaterMark(BASE_API: string): Promise<import("axios").AxiosResponse<any, any>>;
2
+ export declare function getVideoTransTemplate(BASE_API: string): Promise<import("axios").AxiosResponse<any, any>>;
3
+ export declare function getAudioTransTrempalte(BASE_API: string): Promise<import("axios").AxiosResponse<any, any>>;
4
+ export declare type TypeAddMediaParam = {
5
+ url: string;
6
+ alias: string;
7
+ catalog: string;
8
+ repository_id: number;
9
+ directory_id: number;
10
+ size: number;
11
+ enable_ai_catalog?: 0 | 1;
12
+ watermark?: any;
13
+ video_transcode_template?: any;
14
+ audio_transcode_template?: any;
15
+ };
16
+ export declare function addMedia(BASE_API: string, params: TypeAddMediaParam): Promise<import("axios").AxiosResponse<any, any>>;
@@ -0,0 +1,39 @@
1
+ /** @description 文件类型适配器 @author LilMartin */
2
+ import type { FileItem } from '@arco-design/web-vue';
3
+ export interface CFileItem {
4
+ file: File;
5
+ id: string;
6
+ url?: string;
7
+ dirId?: string;
8
+ }
9
+ export interface SFileItem {
10
+ name: string;
11
+ size: number;
12
+ sizeCN: string;
13
+ type: string;
14
+ typeCN?: string;
15
+ id: string;
16
+ dirId?: string;
17
+ }
18
+ export interface BFileItem extends SFileItem {
19
+ isAnalize?: 0 | 1;
20
+ watermark?: any;
21
+ videotemp?: any;
22
+ audiotemp?: any;
23
+ }
24
+ export interface LFileItem extends BFileItem {
25
+ percent: number;
26
+ state: number;
27
+ count?: number;
28
+ }
29
+ declare type FileMaybeType = File | FileItem;
30
+ export declare function fileAdapter(fileMeta: FileMaybeType): {
31
+ url: string;
32
+ file: File;
33
+ id: string;
34
+ dirId?: string | undefined;
35
+ } | undefined;
36
+ export declare function checkType(type: string): "图片" | "目录" | "其他";
37
+ export declare function getMediaType(type: string): string;
38
+ export declare function getSize(value: number): string;
39
+ export {};
@@ -0,0 +1,7 @@
1
+ import { BFileItem } from './fileTypeAdapter';
2
+ export declare function uploadFile(file: File, cb: (p: number) => void): Promise<false | import("tus-js-client").Upload>;
3
+ export declare function uploadAddRequest(file: BFileItem, metaData: {
4
+ rid: number;
5
+ dirId: number;
6
+ url: string;
7
+ }, BASE_API: string, cb?: (cbData: any) => void): Promise<void>;
@@ -0,0 +1,96 @@
1
+ import { BFileItem, CFileItem, LFileItem } from './fileTypeAdapter';
2
+ export declare function usePannelList(): {
3
+ panelList: import("vue").Ref<{
4
+ percent: number;
5
+ state: number;
6
+ count?: number | undefined;
7
+ isAnalize?: 0 | 1 | undefined;
8
+ watermark?: any;
9
+ videotemp?: any;
10
+ audiotemp?: any;
11
+ name: string;
12
+ size: number;
13
+ sizeCN: string;
14
+ type: string;
15
+ typeCN?: string | undefined;
16
+ id: string;
17
+ dirId?: string | undefined;
18
+ }[], LFileItem[] | {
19
+ percent: number;
20
+ state: number;
21
+ count?: number | undefined;
22
+ isAnalize?: 0 | 1 | undefined;
23
+ watermark?: any;
24
+ videotemp?: any;
25
+ audiotemp?: any;
26
+ name: string;
27
+ size: number;
28
+ sizeCN: string;
29
+ type: string;
30
+ typeCN?: string | undefined;
31
+ id: string;
32
+ dirId?: string | undefined;
33
+ }[]>;
34
+ panelFIleAdd: (fileMetaData: LFileItem) => void;
35
+ panelFileStatusChange: (id: string, p: number, s: number) => void;
36
+ };
37
+ export declare function usePreUploadOptions(): {
38
+ preOptionsList: import("vue").Ref<{
39
+ isAnalize?: 0 | 1 | undefined;
40
+ watermark?: any;
41
+ videotemp?: any;
42
+ audiotemp?: any;
43
+ name: string;
44
+ size: number;
45
+ sizeCN: string;
46
+ type: string;
47
+ typeCN?: string | undefined;
48
+ id: string;
49
+ dirId?: string | undefined;
50
+ }[], BFileItem[] | {
51
+ isAnalize?: 0 | 1 | undefined;
52
+ watermark?: any;
53
+ videotemp?: any;
54
+ audiotemp?: any;
55
+ name: string;
56
+ size: number;
57
+ sizeCN: string;
58
+ type: string;
59
+ typeCN?: string | undefined;
60
+ id: string;
61
+ dirId?: string | undefined;
62
+ }[]>;
63
+ uploadFileToShowFileTrans: (file: CFileItem) => void;
64
+ };
65
+ export declare function useUplaodList(): {
66
+ fileList: import("vue").Ref<{
67
+ file: {
68
+ readonly lastModified: number;
69
+ readonly name: string;
70
+ readonly size: number;
71
+ readonly type: string;
72
+ arrayBuffer: () => Promise<ArrayBuffer>;
73
+ slice: (start?: number | undefined, end?: number | undefined, contentType?: string | undefined) => Blob;
74
+ stream: () => ReadableStream<any>;
75
+ text: () => Promise<string>;
76
+ };
77
+ id: string;
78
+ url?: string | undefined;
79
+ dirId?: string | undefined;
80
+ }[], CFileItem[] | {
81
+ file: {
82
+ readonly lastModified: number;
83
+ readonly name: string;
84
+ readonly size: number;
85
+ readonly type: string;
86
+ arrayBuffer: () => Promise<ArrayBuffer>;
87
+ slice: (start?: number | undefined, end?: number | undefined, contentType?: string | undefined) => Blob;
88
+ stream: () => ReadableStream<any>;
89
+ text: () => Promise<string>;
90
+ };
91
+ id: string;
92
+ url?: string | undefined;
93
+ dirId?: string | undefined;
94
+ }[]>;
95
+ uploadFileAdd: (file: CFileItem) => void;
96
+ };
@@ -0,0 +1 @@
1
+ import './index.less';
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ declare const uploadStep: any;
2
+ export default uploadStep;
@@ -0,0 +1,20 @@
1
+ export interface CFileItem {
2
+ file: File;
3
+ id: string;
4
+ url?: string;
5
+ dirId?: string;
6
+ }
7
+ export interface SFileItem {
8
+ name: string;
9
+ size: number;
10
+ sizeCN: string;
11
+ type: string;
12
+ typeCN?: string;
13
+ id: string;
14
+ dirId?: string;
15
+ }
16
+ export interface LFileItem extends SFileItem {
17
+ percent: number;
18
+ state: number;
19
+ count?: number;
20
+ }