@cmstops/pro-compo 3.9.1-rc.3 → 3.9.2-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/dist/index.css +5 -1
  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/components/Content/CompoItem/index.d.ts +0 -0
  25. package/es/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
  26. package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
  27. package/es/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
  28. package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
  29. package/es/contentDetailList/components/Content/GroupPieceItem/index.d.ts +0 -0
  30. package/es/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
  31. package/es/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
  32. package/es/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
  33. package/es/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
  34. package/es/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
  35. package/es/contentDetailList/components/Content/index.d.ts +0 -0
  36. package/es/contentDetailList/components/CustomWrp/CustomItem.d.ts +0 -0
  37. package/es/contentDetailList/components/CustomWrp/index.d.ts +0 -0
  38. package/es/contentDetailList/components/Doc/index.d.ts +0 -0
  39. package/es/contentDetailList/components/Records/MatrixItem/index.d.ts +0 -0
  40. package/es/contentDetailList/components/Records/index.d.ts +0 -0
  41. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.d.ts +0 -0
  42. package/es/contentDetailList/components/ShowQRCode/index.d.ts +0 -0
  43. package/es/contentDetailList/index.d.ts +2 -0
  44. package/es/contentDetailList/script/api.d.ts +6 -0
  45. package/es/contentDetailList/style/index.d.ts +1 -0
  46. package/es/contentModal/component.d.ts +0 -0
  47. package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
  48. package/es/contentModal/components/CompoList/index.d.ts +0 -0
  49. package/es/contentModal/components/ContentList/MediaFilter/index.d.ts +0 -0
  50. package/es/contentModal/components/ContentList/index.d.ts +0 -0
  51. package/es/contentModal/components/Dejin/MediaFilter/index.d.ts +0 -0
  52. package/es/contentModal/components/Dejin/index.d.ts +0 -0
  53. package/es/contentModal/components/EqxiuList/MediaFilter/index.d.ts +0 -0
  54. package/es/contentModal/components/EqxiuList/index.d.ts +0 -0
  55. package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  56. package/es/contentModal/components/LiveList/index.d.ts +0 -0
  57. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  58. package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
  59. package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  60. package/es/contentModal/components/MpContentList/index.d.ts +0 -0
  61. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  62. package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
  63. package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
  64. package/es/contentModal/components/storeBox/index.d.ts +0 -0
  65. package/es/contentModal/index.d.ts +2 -0
  66. package/es/contentModal/script/api.d.ts +18 -0
  67. package/es/contentModal/style/index.d.ts +1 -0
  68. package/es/dataTags/component.d.ts +0 -0
  69. package/es/dataTags/index.d.ts +2 -0
  70. package/es/dataTags/style/index.d.ts +1 -0
  71. package/es/docHistory/component.d.ts +0 -0
  72. package/es/docHistory/components/DocDiffPanel/index.d.ts +0 -0
  73. package/es/docHistory/components/DocHistoryList/index.d.ts +0 -0
  74. package/es/docHistory/index.d.ts +2 -0
  75. package/es/docHistory/scripts/diff.d.ts +1 -0
  76. package/es/docHistory/scripts/useDocHistory.d.ts +10 -0
  77. package/es/docHistory/style/index.d.ts +1 -0
  78. package/es/docPreview/component.d.ts +0 -0
  79. package/es/docPreview/components/PreviewIframe.d.ts +0 -0
  80. package/es/docPreview/index.d.ts +2 -0
  81. package/es/docPreview/scripts/api.d.ts +1 -0
  82. package/es/docPreview/scripts/hook.d.ts +33 -0
  83. package/es/docPreview/style/index.d.ts +1 -0
  84. package/es/editMetaInfo/component.d.ts +0 -0
  85. package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
  86. package/es/editMetaInfo/index.d.ts +2 -0
  87. package/es/editMetaInfo/script/api.d.ts +6 -0
  88. package/es/editMetaInfo/script/restaurants.d.ts +4 -0
  89. package/es/editMetaInfo/style/index.d.ts +1 -0
  90. package/es/emptyData/component.d.ts +0 -0
  91. package/es/emptyData/index.d.ts +2 -0
  92. package/es/emptyData/style/index.d.ts +1 -0
  93. package/es/emptyData/svg/add.d.ts +0 -0
  94. package/es/hooks/assets.d.ts +1 -0
  95. package/es/hooks/batch.d.ts +8 -0
  96. package/es/hooks/dialogVisible.d.ts +8 -0
  97. package/es/hooks/source.d.ts +9 -0
  98. package/es/hooks/toggle.d.ts +6 -0
  99. package/es/hooks/useAttachement.d.ts +53 -0
  100. package/es/hooks/useLocalStorage.d.ts +10 -0
  101. package/es/hooks/useMediaContext.d.ts +12 -0
  102. package/es/hooks/usePopper.d.ts +8 -0
  103. package/es/hooks/useSelection.d.ts +30 -0
  104. package/es/hooks/useUpload.d.ts +30 -0
  105. package/es/hooks/user.d.ts +9 -0
  106. package/es/imageCrop/component.d.ts +0 -0
  107. package/es/imageCrop/index.d.ts +2 -0
  108. package/es/imageCrop/script/api.d.ts +1 -0
  109. package/es/imageCrop/style/index.d.ts +1 -0
  110. package/es/importData/component.d.ts +0 -0
  111. package/es/importData/index.d.ts +2 -0
  112. package/es/importData/style/index.d.ts +1 -0
  113. package/es/index.css +5 -1
  114. package/es/index.d.ts +30 -0
  115. package/es/mediaFilter/component.d.ts +0 -0
  116. package/es/mediaFilter/components/DocFilter.d.ts +0 -0
  117. package/es/mediaFilter/components/FilterGroup.d.ts +0 -0
  118. package/es/mediaFilter/components/FilterItem.d.ts +0 -0
  119. package/es/mediaFilter/components/MpAccountFilter.d.ts +0 -0
  120. package/es/mediaFilter/components/MpContentFilter.d.ts +0 -0
  121. package/es/mediaFilter/index.d.ts +3 -0
  122. package/es/mediaFilter/script/optionsGetter.d.ts +26 -0
  123. package/es/mediaFilter/script/types.d.ts +16 -0
  124. package/es/mediaFilter/style/index.d.ts +1 -0
  125. package/es/mediaView/component.d.ts +0 -0
  126. package/es/mediaView/index.d.ts +2 -0
  127. package/es/mediaView/style/index.d.ts +1 -0
  128. package/es/messageBox/component.d.ts +0 -0
  129. package/es/messageBox/index.d.ts +2 -0
  130. package/es/messageBox/list.d.ts +0 -0
  131. package/es/messageBox/script/api.d.ts +6 -0
  132. package/es/messageBox/style/index.d.ts +1 -0
  133. package/es/previousVersion/component.d.ts +0 -0
  134. package/es/previousVersion/index.d.ts +2 -0
  135. package/es/previousVersion/script/api.d.ts +15 -0
  136. package/es/previousVersion/script/tool.d.ts +6 -0
  137. package/es/previousVersion/style/index.d.ts +1 -0
  138. package/es/resourceGridList/component.d.ts +0 -0
  139. package/es/resourceGridList/components/FileTypeThumb/index.d.ts +0 -0
  140. package/es/resourceGridList/index.d.ts +2 -0
  141. package/es/resourceGridList/style/index.d.ts +1 -0
  142. package/es/resourceModal/component.d.ts +0 -0
  143. package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
  144. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
  145. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
  146. package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
  147. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
  148. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
  149. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
  150. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
  151. package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
  152. package/es/resourceModal/index.d.ts +2 -0
  153. package/es/resourceModal/script/api.d.ts +25 -0
  154. package/es/resourceModal/script/mediaSelection.d.ts +14 -0
  155. package/es/resourceModal/style/index.d.ts +1 -0
  156. package/es/selectAvatarList/component.d.ts +0 -0
  157. package/es/selectAvatarList/index.d.ts +2 -0
  158. package/es/selectAvatarList/style/index.d.ts +1 -0
  159. package/es/selectGategory/component.d.ts +0 -0
  160. package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
  161. package/es/selectGategory/index.d.ts +2 -0
  162. package/es/selectGategory/script/api.d.ts +6 -0
  163. package/es/selectGategory/style/index.d.ts +1 -0
  164. package/es/selectResourceModal/component.d.ts +0 -0
  165. package/es/selectResourceModal/components/List/ListAi/index.d.ts +0 -0
  166. package/es/selectResourceModal/components/List/ListCardWrapper.d.ts +0 -0
  167. package/es/selectResourceModal/components/List/ListLocal/Upload.d.ts +0 -0
  168. package/es/selectResourceModal/components/List/ListLocal/index.d.ts +0 -0
  169. package/es/selectResourceModal/components/List/ListNormal/Filter.d.ts +0 -0
  170. package/es/selectResourceModal/components/List/ListNormal/index.d.ts +0 -0
  171. package/es/selectResourceModal/components/List/ListNormal/index.js +21 -6
  172. package/es/selectResourceModal/components/List/ListSystem/Filter.d.ts +0 -0
  173. package/es/selectResourceModal/components/List/ListSystem/SubList.d.ts +0 -0
  174. package/es/selectResourceModal/components/List/ListSystem/index.d.ts +0 -0
  175. package/es/selectResourceModal/components/List/ListVideo/index.d.ts +0 -0
  176. package/es/selectResourceModal/components/List/ListWraper.d.ts +0 -0
  177. package/es/selectResourceModal/components/ListSelected/index.d.ts +0 -0
  178. package/es/selectResourceModal/components/ListTabs/index.d.ts +0 -0
  179. package/es/selectResourceModal/index.d.ts +2 -0
  180. package/es/selectResourceModal/scripts/selectionApis.d.ts +2 -0
  181. package/es/selectResourceModal/scripts/useCompoLf.d.ts +27 -0
  182. package/es/selectResourceModal/scripts/useResourceSelect.d.ts +7 -0
  183. package/es/selectResourceModal/scripts/useTabFilter.d.ts +22 -0
  184. package/es/selectResourceModal/style/index.css +5 -1
  185. package/es/selectResourceModal/style/index.d.ts +1 -0
  186. package/es/selectResourceModal/style/index.less +5 -0
  187. package/es/selectResourceModal/style/list.less +1 -1
  188. package/es/selectThumb/component.d.ts +0 -0
  189. package/es/selectThumb/component.js +18 -7
  190. package/es/selectThumb/components/card.d.ts +0 -0
  191. package/es/selectThumb/components/colorPalette.d.ts +0 -0
  192. package/es/selectThumb/components/colorPicker.d.ts +0 -0
  193. package/es/selectThumb/index.d.ts +2 -0
  194. package/es/selectThumb/style/index.d.ts +1 -0
  195. package/es/thumbCard/component.d.ts +0 -0
  196. package/es/thumbCard/components/ThumbUploading/index.d.ts +0 -0
  197. package/es/thumbCard/index.d.ts +2 -0
  198. package/es/thumbCard/style/index.d.ts +1 -0
  199. package/es/typeIcons/component.d.ts +0 -0
  200. package/es/typeIcons/index.d.ts +2 -0
  201. package/es/typeIcons/style/index.d.ts +1 -0
  202. package/es/uploadBefore/component.d.ts +0 -0
  203. package/es/uploadBefore/components/UploadBefore.d.ts +0 -0
  204. package/es/uploadBefore/components/UploadForClick.d.ts +0 -0
  205. package/es/uploadBefore/index.d.ts +2 -0
  206. package/es/uploadBefore/script/api.d.ts +16 -0
  207. package/es/uploadBefore/script/fileTypeAdapter.d.ts +39 -0
  208. package/es/uploadBefore/script/fileUpload.d.ts +7 -0
  209. package/es/uploadBefore/script/uploadHooks.d.ts +96 -0
  210. package/es/uploadBefore/style/index.d.ts +1 -0
  211. package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
  212. package/es/uploadStep/component.d.ts +0 -0
  213. package/es/uploadStep/index.d.ts +2 -0
  214. package/es/uploadStep/script/fileTypeAdapter.d.ts +20 -0
  215. package/es/uploadStep/style/index.d.ts +1 -0
  216. package/es/userAvater/component.d.ts +0 -0
  217. package/es/userAvater/index.d.ts +2 -0
  218. package/es/userAvater/script/api.d.ts +8 -0
  219. package/es/userAvater/style/index.d.ts +1 -0
  220. package/es/userDirector/component.d.ts +0 -0
  221. package/es/userDirector/components/userTree.d.ts +0 -0
  222. package/es/userDirector/index.d.ts +2 -0
  223. package/es/userDirector/script/api.d.ts +10 -0
  224. package/es/userDirector/style/index.d.ts +1 -0
  225. package/es/utils/auth.d.ts +5 -0
  226. package/es/utils/date.d.ts +3 -0
  227. package/es/utils/doc.d.ts +76 -0
  228. package/es/utils/filter.d.ts +21 -0
  229. package/es/utils/index.d.ts +17 -0
  230. package/es/utils/request.d.ts +9 -0
  231. package/es/utils/resource.d.ts +4 -0
  232. package/es/utils/transcodeMedia.d.ts +13 -0
  233. package/es/utils/tusUpload.d.ts +16 -0
  234. package/es/utils/typeMap.d.ts +185 -0
  235. package/es/utils/uploadCatalog.d.ts +1 -0
  236. package/es/videoThumb/component.d.ts +0 -0
  237. package/es/videoThumb/index.d.ts +2 -0
  238. package/es/videoThumb/scripts/api.d.ts +9 -0
  239. package/es/videoThumb/scripts/useVideoThumbs.d.ts +12 -0
  240. package/es/videoThumb/style/index.d.ts +1 -0
  241. package/lib/index.css +5 -1
  242. package/lib/selectResourceModal/components/List/ListNormal/index.js +20 -5
  243. package/lib/selectResourceModal/style/index.css +5 -1
  244. package/lib/selectResourceModal/style/index.less +5 -0
  245. package/lib/selectResourceModal/style/list.less +1 -1
  246. package/lib/selectThumb/component.js +18 -7
  247. package/package.json +1 -1
@@ -0,0 +1,26 @@
1
+ declare type KeyValueType = {
2
+ [key: number]: string;
3
+ };
4
+ export declare const approveFlowStatusMap: KeyValueType;
5
+ export declare const provalTypeMap: KeyValueType;
6
+ export declare function getApprovalStateOptions(): {
7
+ value: any;
8
+ label: string;
9
+ }[];
10
+ export declare function getProvalTypeOptions(): {
11
+ value: any;
12
+ label: string;
13
+ }[];
14
+ declare type OSType = {
15
+ value: number | string;
16
+ label: string;
17
+ type?: string;
18
+ key?: string;
19
+ };
20
+ declare type FilterType = 'APV' | 'MINE' | 'CONTENT' | 'STORE';
21
+ export declare function useHighLevelSearch(filterType: FilterType): {
22
+ sortOptions: OSType[];
23
+ showHighLevelSearch: import("vue").ComputedRef<boolean>;
24
+ highLevelSearchOptions: import("vue").ComputedRef<OSType[]>;
25
+ };
26
+ export {};
@@ -0,0 +1,16 @@
1
+ export declare type FilterType = 'DOC' | 'MEDIA' | 'MP_ACOUNT' | 'MP_CONTENT';
2
+ export declare type DocFilterType = 'APV' | 'MINE' | 'CONTENT' | 'STORE';
3
+ export declare type Keys = 'doc_type' | 'doc_state' | 'doc_thumb' | 'pub_time' | 'doc_banner' | 'apv_state';
4
+ export declare type DocFilterKeys = Keys[];
5
+ export interface FilterValue {
6
+ keywords: string;
7
+ doc_type: string;
8
+ doc_state: string;
9
+ doc_thumb: string;
10
+ pub_time: [];
11
+ highSearch: {
12
+ order: string;
13
+ sort: -1 | 1;
14
+ meta: any;
15
+ };
16
+ }
@@ -0,0 +1 @@
1
+ import './index.less';
File without changes
@@ -0,0 +1,2 @@
1
+ declare const mediaView: any;
2
+ export default mediaView;
@@ -0,0 +1 @@
1
+ import './index.less';
File without changes
@@ -0,0 +1,2 @@
1
+ declare const messageBox: any;
2
+ export default messageBox;
File without changes
@@ -0,0 +1,6 @@
1
+ interface Params {
2
+ [key: string]: any;
3
+ }
4
+ export declare function getNoticeList(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
5
+ export declare function setAllMsgRead(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
6
+ export {};
@@ -0,0 +1 @@
1
+ import './index.less';
File without changes
@@ -0,0 +1,2 @@
1
+ declare const previousVersion: any;
2
+ export default previousVersion;
@@ -0,0 +1,15 @@
1
+ interface Params {
2
+ repo_id?: string;
3
+ app_id?: number;
4
+ [key: string]: any;
5
+ }
6
+ export declare function getChildCategorylists(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
7
+ export declare function getCategorylists(BASE_API: string, repository_id: string, channel_id: string): Promise<import("axios").AxiosResponse<any, any>>;
8
+ export declare function getCategorylistsGroups(BASE_API: string, params: Params, data?: {
9
+ repeatReport: boolean;
10
+ }): Promise<any>;
11
+ export declare function getMlists(BASE_API: string, params: Params, data?: {
12
+ repeatReport: boolean;
13
+ }): Promise<import("axios").AxiosResponse<any, any>>;
14
+ export declare function submitTo(BASE_API: string, data: Params): Promise<import("axios").AxiosResponse<any, any>>;
15
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 统计相同元素
3
+ * @param {Array} array
4
+ * @param {String} field 相同元素标识
5
+ */
6
+ export declare function repeatReport(array: Array<any>, field: string): void;
@@ -0,0 +1 @@
1
+ import './index.less';
File without changes
@@ -0,0 +1,2 @@
1
+ declare const resourceGridList: any;
2
+ export default resourceGridList;
@@ -0,0 +1 @@
1
+ import './index.less';
File without changes
@@ -0,0 +1,2 @@
1
+ declare const resourceModal: any;
2
+ export default resourceModal;
@@ -0,0 +1,25 @@
1
+ interface Params {
2
+ [key: string]: any;
3
+ }
4
+ export declare function getAttachmentsAll(BASE_API: string, query?: Params): Promise<import("axios").AxiosResponse<any, any>>;
5
+ export declare function getAttachmentsMy(BASE_API: string, query?: Params): Promise<import("axios").AxiosResponse<any, any>>;
6
+ export declare function getDirectories(BASE_API: string, query?: Params): Promise<import("axios").AxiosResponse<any, any>>;
7
+ export declare function getAccountList(BASE_API: string, id: number, query: Params): Promise<import("axios").AxiosResponse<any, any>>;
8
+ /** @description 系统内置素材部分接口 --- */
9
+ /**
10
+ * ps:
11
+ * 1. 内置素材分类 type:
12
+ * thumb:稿件素材
13
+ * compoIcon:组件 icon
14
+ * pushIcon:品宣 icon
15
+ * navBg:导航背景
16
+ * navIcon:导航 icon
17
+ */
18
+ export declare function addSysRs(BASE_API: string, data: any, params: any): Promise<import("axios").AxiosResponse<any, any>>;
19
+ export declare function setSysRsClassifyName(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
20
+ export declare function getSysRsClassifyList(BASE_API: string, sys_tag: number): Promise<import("axios").AxiosResponse<any, any>>;
21
+ export declare function addSysRsClassify(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
22
+ export declare function delSySRsClassify(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
23
+ export declare function getSysRsByTag(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
24
+ export declare function getSysRsPage(BASE_API: string, params: any): Promise<import("axios").AxiosResponse<any, any>>;
25
+ export {};
@@ -0,0 +1,14 @@
1
+ export declare type BreadCrumbsType = {
2
+ directory_id: number;
3
+ alias: string;
4
+ };
5
+ export declare type FilesQueryParamType = {
6
+ directory_id: number;
7
+ limit: number;
8
+ offset: number;
9
+ catalog: string;
10
+ };
11
+ export declare type MediaUseType = 0 | 1 | 2 | 3 | 4 | 5 | 6;
12
+ export declare const mediaUseEnum: {
13
+ [key: string]: MediaUseType;
14
+ };
@@ -0,0 +1 @@
1
+ import './index.less';
File without changes
@@ -0,0 +1,2 @@
1
+ declare const selectAvatarList: any;
2
+ export default selectAvatarList;
@@ -0,0 +1 @@
1
+ import './index.less';
File without changes
@@ -0,0 +1,2 @@
1
+ declare const selectGategory: any;
2
+ export default selectGategory;
@@ -0,0 +1,6 @@
1
+ interface Params {
2
+ [key: string]: any;
3
+ }
4
+ export declare function getCategoryPath(BASE_API: string, params: Params): Promise<import("axios").AxiosResponse<any, any>>;
5
+ export declare function getCategoryCategoriesTree(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any, any>>;
6
+ export {};
@@ -0,0 +1 @@
1
+ import './index.less';
File without changes
@@ -1,9 +1,8 @@
1
- import { defineComponent, inject, watch, onMounted, openBlock, createBlock, unref, withCtx, renderSlot, createVNode, isRef, createElementVNode, createElementBlock, Fragment, renderList } from "vue";
1
+ import { defineComponent, inject, watch, ref, onMounted, openBlock, createBlock, unref, withCtx, renderSlot, createVNode, isRef, createElementVNode, createElementBlock, Fragment, renderList } from "vue";
2
2
  import { Pagination } from "@arco-design/web-vue";
3
3
  import _sfc_main$1 from "../ListWraper.js";
4
4
  import useAttachement from "../../../../hooks/useAttachement.js";
5
5
  import _sfc_main$2 from "./Filter.js";
6
- const _hoisted_1 = { class: "list-item-grid" };
7
6
  const _sfc_main = defineComponent({
8
7
  __name: "index",
9
8
  props: {
@@ -27,6 +26,18 @@ const _sfc_main = defineComponent({
27
26
  changeKey
28
27
  } = useAttachement({ key: props.activeKey, BASE_API });
29
28
  watch(() => props.activeKey, changeKey);
29
+ const listWrapper = ref(null);
30
+ const showPageSize = ref(true);
31
+ watch(
32
+ () => {
33
+ var _a;
34
+ return (_a = listWrapper.value) == null ? void 0 : _a.offsetWidth;
35
+ },
36
+ (val) => {
37
+ showPageSize.value = !(val && val < 480);
38
+ },
39
+ { immediate: true }
40
+ );
30
41
  onMounted(() => {
31
42
  loadData();
32
43
  });
@@ -51,22 +62,26 @@ const _sfc_main = defineComponent({
51
62
  total: unref(total),
52
63
  "page-size": unref(limit),
53
64
  "show-total": "",
54
- "show-page-size": "",
65
+ "show-page-size": showPageSize.value,
55
66
  "base-size": 3,
56
67
  "buffer-size": 1,
57
68
  onChange: _cache[2] || (_cache[2] = (e) => unref(changePage)((e - 1) * unref(limit))),
58
69
  onPageSizeChange: unref(changeSize)
59
- }, null, 8, ["current", "total", "page-size", "onPageSizeChange"])
70
+ }, null, 8, ["current", "total", "page-size", "show-page-size", "onPageSizeChange"])
60
71
  ]),
61
72
  default: withCtx(() => [
62
- createElementVNode("div", _hoisted_1, [
73
+ createElementVNode("div", {
74
+ ref_key: "listWrapper",
75
+ ref: listWrapper,
76
+ class: "list-item-grid"
77
+ }, [
63
78
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(list), (item) => {
64
79
  return renderSlot(_ctx.$slots, "item", {
65
80
  key: item.id,
66
81
  item
67
82
  });
68
83
  }), 128))
69
- ])
84
+ ], 512)
70
85
  ]),
71
86
  _: 3
72
87
  }, 8, ["loading", "is-empty"]);
@@ -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 {};
@@ -197,7 +197,7 @@
197
197
  .resource-list .list-item-grid {
198
198
  display: grid;
199
199
  grid-gap: 20px;
200
- grid-template-columns: repeat(5, 1fr);
200
+ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
201
201
  }
202
202
  .resource-list .list-content {
203
203
  margin-top: 30px;
@@ -284,6 +284,10 @@
284
284
  height: 16px;
285
285
  background-color: #4886ff;
286
286
  }
287
+ .resource-select-wrap {
288
+ width: 100%;
289
+ height: 100%;
290
+ }
287
291
  .resource-select-modal-body {
288
292
  height: 80vh;
289
293
  padding: 0;
@@ -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;
@@ -47,7 +47,7 @@
47
47
  .list-item-grid {
48
48
  display: grid;
49
49
  grid-gap: 20px;
50
- grid-template-columns: repeat(5, 1fr);
50
+ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
51
51
  }
52
52
  }
53
53
 
File without changes
@@ -351,11 +351,9 @@ const _sfc_main = defineComponent({
351
351
  if (!props.dataValue)
352
352
  return;
353
353
  if (styleData.value.model === oldData.value.model) {
354
- nextTick(() => {
355
- styleData.value.data = oldData.value.data;
356
- styleData.value.cover_theme_color = oldData.value.cover_theme_color;
357
- styleData.value.cover_colorList = oldData.value.cover_colorList;
358
- });
354
+ styleData.value.data = oldData.value.data;
355
+ styleData.value.cover_theme_color = oldData.value.cover_theme_color;
356
+ styleData.value.cover_colorList = oldData.value.cover_colorList;
359
357
  } else {
360
358
  styleData.value.data = [];
361
359
  }
@@ -411,8 +409,21 @@ const _sfc_main = defineComponent({
411
409
  callback(styleData2);
412
410
  };
413
411
  onMounted(() => {
414
- if (!styleData.value.cover_url)
415
- ;
412
+ if (!styleData.value.cover_url) {
413
+ setTimeout(() => {
414
+ styleData.value.cover_url = styleData.value.data[0].url;
415
+ const getColors = getThemeColor(BASE_API, styleData.value.data[0].url);
416
+ getColors.then((themes) => {
417
+ styleData.value.cover_colorList = JSON.parse(JSON.stringify(themes));
418
+ styleData.value.cover_theme_color = `rgb(${themes[1]})`;
419
+ oldData.value = JSON.parse(JSON.stringify(styleData.value));
420
+ callback(styleData.value);
421
+ }).catch((e) => {
422
+ styleData.value.banner_theme_color = `rgb(255, 255, 255)`;
423
+ callback(styleData.value);
424
+ });
425
+ }, 700);
426
+ }
416
427
  });
417
428
  return (_ctx, _cache) => {
418
429
  var _a, _b, _c, _d, _e, _f;
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>;