@cmstops/pro-compo 3.10.5-nanning.2 → 3.10.5-stable.10

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 (366) hide show
  1. package/dist/editDocMeta/components/fields/options/useCustom.d.ts +12 -0
  2. package/dist/editDocMeta/components/options/useThumbs.d.ts +29 -0
  3. package/dist/editDocMeta/hooks/useMetaOptions.d.ts +49 -0
  4. package/dist/editDocMeta/index.d.ts +3 -0
  5. package/dist/editDocMeta/script/api.d.ts +13 -0
  6. package/dist/index.css +281 -0
  7. package/{es → dist}/index.d.ts +1 -0
  8. package/dist/index.min.css +1 -1
  9. package/dist/selectThumb/components/colorPicker.d.ts +0 -0
  10. package/dist/thumbCard/component.d.ts +0 -0
  11. package/dist/thumbCard/components/ThumbUploading/index.d.ts +0 -0
  12. package/dist/typeIcons/component.d.ts +0 -0
  13. package/dist/uploadBefore/component.d.ts +0 -0
  14. package/dist/uploadBefore/components/UploadBefore.d.ts +0 -0
  15. package/dist/uploadBefore/components/UploadForClick.d.ts +0 -0
  16. package/dist/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
  17. package/dist/uploadStep/component.d.ts +0 -0
  18. package/dist/userAvater/component.d.ts +0 -0
  19. package/dist/userDirector/component.d.ts +0 -0
  20. package/dist/userDirector/components/userTree.d.ts +0 -0
  21. package/dist/videoThumb/component.d.ts +0 -0
  22. package/dist/videoThumb/style/index.d.ts +1 -0
  23. package/es/contentDetailList/components/Content/index.js +0 -55
  24. package/es/contentModal/component.js +2 -1
  25. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +3 -2
  26. package/es/contentModal/components/ViewAllColumn/index.js +44 -20
  27. package/es/editDocMeta/component.js +364 -0
  28. package/es/editDocMeta/components/Adapter.js +209 -0
  29. package/es/editDocMeta/components/CustomSubTitle.js +21 -0
  30. package/es/editDocMeta/components/ThumbEditCard.js +75 -0
  31. package/es/editDocMeta/components/docMetaForm.js +563 -0
  32. package/es/editDocMeta/components/fields/FCheckbox.js +61 -0
  33. package/es/editDocMeta/components/fields/FContentModel.js +82 -0
  34. package/es/editDocMeta/components/fields/FCustom.js +78 -0
  35. package/es/editDocMeta/components/fields/FDate.js +40 -0
  36. package/es/editDocMeta/components/fields/FInput.js +115 -0
  37. package/es/editDocMeta/components/fields/FRadio.js +60 -0
  38. package/es/editDocMeta/components/fields/FSelect.js +202 -0
  39. package/es/editDocMeta/components/fields/FSwitch.js +31 -0
  40. package/es/editDocMeta/components/fields/FThumb.js +372 -0
  41. package/es/editDocMeta/components/fields/options/useCustom.js +26 -0
  42. package/es/editDocMeta/components/options/useThumbs.js +274 -0
  43. package/es/editDocMeta/hooks/useMetaOptions.js +282 -0
  44. package/es/editDocMeta/index.js +10 -0
  45. package/es/editDocMeta/script/api.js +47 -0
  46. package/es/editDocMeta/style/Adapter.less +28 -0
  47. package/es/editDocMeta/style/CustomSubTitle.less +26 -0
  48. package/es/editDocMeta/style/FCheckbox.less +17 -0
  49. package/es/editDocMeta/style/FContentModel.less +32 -0
  50. package/es/editDocMeta/style/FCustom.less +18 -0
  51. package/es/editDocMeta/style/FDate.less +4 -0
  52. package/es/editDocMeta/style/FInput.less +23 -0
  53. package/es/editDocMeta/style/FRadio.less +17 -0
  54. package/es/editDocMeta/style/FSelect.less +4 -0
  55. package/es/editDocMeta/style/FSwitch.less +4 -0
  56. package/es/editDocMeta/style/FThumb.less +111 -0
  57. package/es/editDocMeta/style/ThumbEditCard.less +32 -0
  58. package/es/editDocMeta/style/css.js +1 -0
  59. package/es/editDocMeta/style/docMetaForm.less +22 -0
  60. package/es/editDocMeta/style/index.css +281 -0
  61. package/es/editDocMeta/style/index.js +1 -0
  62. package/es/editDocMeta/style/index.less +21 -0
  63. package/es/editMetaInfo/component.js +2 -2
  64. package/es/hooks/visible.js +16 -0
  65. package/es/index.css +281 -0
  66. package/es/index.js +1 -0
  67. package/es/index.less +1 -0
  68. package/es/selectResourceModal/components/List/ListNormal/index.js +4 -2
  69. package/es/style.css +281 -0
  70. package/lib/contentDetailList/components/Content/index.js +0 -55
  71. package/lib/contentModal/component.js +2 -1
  72. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +3 -2
  73. package/lib/contentModal/components/ViewAllColumn/index.js +43 -19
  74. package/lib/editDocMeta/component.js +365 -0
  75. package/lib/editDocMeta/components/Adapter.js +210 -0
  76. package/lib/editDocMeta/components/CustomSubTitle.js +22 -0
  77. package/lib/editDocMeta/components/ThumbEditCard.js +76 -0
  78. package/lib/editDocMeta/components/docMetaForm.js +564 -0
  79. package/lib/editDocMeta/components/fields/FCheckbox.js +62 -0
  80. package/lib/editDocMeta/components/fields/FContentModel.js +83 -0
  81. package/lib/editDocMeta/components/fields/FCustom.js +79 -0
  82. package/lib/editDocMeta/components/fields/FDate.js +41 -0
  83. package/lib/editDocMeta/components/fields/FInput.js +116 -0
  84. package/lib/editDocMeta/components/fields/FRadio.js +61 -0
  85. package/lib/editDocMeta/components/fields/FSelect.js +203 -0
  86. package/lib/editDocMeta/components/fields/FSwitch.js +32 -0
  87. package/lib/editDocMeta/components/fields/FThumb.js +377 -0
  88. package/lib/editDocMeta/components/fields/options/useCustom.js +28 -0
  89. package/lib/editDocMeta/components/options/useThumbs.js +283 -0
  90. package/lib/editDocMeta/hooks/useMetaOptions.js +283 -0
  91. package/lib/editDocMeta/index.js +11 -0
  92. package/lib/editDocMeta/script/api.js +54 -0
  93. package/lib/editDocMeta/style/Adapter.less +28 -0
  94. package/lib/editDocMeta/style/CustomSubTitle.less +26 -0
  95. package/lib/editDocMeta/style/FCheckbox.less +17 -0
  96. package/lib/editDocMeta/style/FContentModel.less +32 -0
  97. package/lib/editDocMeta/style/FCustom.less +18 -0
  98. package/lib/editDocMeta/style/FDate.less +4 -0
  99. package/lib/editDocMeta/style/FInput.less +23 -0
  100. package/lib/editDocMeta/style/FRadio.less +17 -0
  101. package/lib/editDocMeta/style/FSelect.less +4 -0
  102. package/lib/editDocMeta/style/FSwitch.less +4 -0
  103. package/lib/editDocMeta/style/FThumb.less +111 -0
  104. package/lib/editDocMeta/style/ThumbEditCard.less +32 -0
  105. package/lib/editDocMeta/style/css.js +2 -0
  106. package/lib/editDocMeta/style/docMetaForm.less +22 -0
  107. package/lib/editDocMeta/style/index.css +281 -0
  108. package/lib/editDocMeta/style/index.js +2 -0
  109. package/lib/editDocMeta/style/index.less +21 -0
  110. package/lib/editMetaInfo/component.js +2 -2
  111. package/lib/hooks/visible.js +17 -0
  112. package/lib/index.css +281 -0
  113. package/lib/index.js +2 -0
  114. package/lib/index.less +1 -0
  115. package/lib/selectResourceModal/components/List/ListNormal/index.js +3 -1
  116. package/package.json +21 -13
  117. package/es/contentDetailList/components/Content/CircleItem/index.js +0 -92
  118. package/lib/contentDetailList/components/Content/CircleItem/index.js +0 -93
  119. /package/{es → dist}/appCenter/component.d.ts +0 -0
  120. /package/{es → dist}/appCenter/index.d.ts +0 -0
  121. /package/{es → dist}/appCenter/script/api.d.ts +0 -0
  122. /package/{es → dist}/appCenter/script/apps.d.ts +0 -0
  123. /package/{es → dist}/appCenter/script/permissionMap.d.ts +0 -0
  124. /package/{es → dist}/appCenter/script/routeMap.d.ts +0 -0
  125. /package/{es → dist}/appCenter/style/index.d.ts +0 -0
  126. /package/{es → dist}/baseFilter/component.d.ts +0 -0
  127. /package/{es → dist}/baseFilter/components/FilterGroup.d.ts +0 -0
  128. /package/{es → dist}/baseFilter/components/filterItem.d.ts +0 -0
  129. /package/{es → dist}/baseFilter/index.d.ts +0 -0
  130. /package/{es → dist}/baseFilter/style/index.d.ts +0 -0
  131. /package/{es → dist}/baseFilter/useCalcWidth.d.ts +0 -0
  132. /package/{es → dist}/colorPalette/component.d.ts +0 -0
  133. /package/{es → dist}/colorPalette/components/colorPicker.d.ts +0 -0
  134. /package/{es → dist}/colorPalette/index.d.ts +0 -0
  135. /package/{es → dist}/colorPalette/style/index.d.ts +0 -0
  136. /package/{es → dist}/components.d.ts +0 -0
  137. /package/{es → dist}/config.d.ts +0 -0
  138. /package/{es → dist}/contentDetailList/__demo__/matrix/platform.d.ts +0 -0
  139. /package/{es → dist}/contentDetailList/component.d.ts +0 -0
  140. /package/{es/contentDetailList/components/Content/CircleItem → dist/contentDetailList/components/Content/CompoItem}/index.d.ts +0 -0
  141. /package/{es/contentDetailList/components/Content/CompoItem → dist/contentDetailList/components/Content/ContentListItem}/index.d.ts +0 -0
  142. /package/{es/contentDetailList/components/Content/ContentListItem → dist/contentDetailList/components/Content/DocItem/ApprovalStateMap}/index.d.ts +0 -0
  143. /package/{es/contentDetailList/components/Content/DocItem/ApprovalStateMap → dist/contentDetailList/components/Content/DocItem}/index.d.ts +0 -0
  144. /package/{es/contentDetailList/components/Content/DocItem → dist/contentDetailList/components/Content/DocMpItem}/index.d.ts +0 -0
  145. /package/{es/contentDetailList/components/Content/DocMpItem → dist/contentDetailList/components/Content/GroupPieceItem}/index.d.ts +0 -0
  146. /package/{es/contentDetailList/components/Content/GroupPieceItem → dist/contentDetailList/components/Content/KongoNavItem}/index.d.ts +0 -0
  147. /package/{es/contentDetailList/components/Content/KongoNavItem → dist/contentDetailList/components/Content/LiveItem}/index.d.ts +0 -0
  148. /package/{es/contentDetailList/components/Content/LiveItem → dist/contentDetailList/components/Content/MaccountItem}/index.d.ts +0 -0
  149. /package/{es/contentDetailList/components/Content/MaccountItem → dist/contentDetailList/components/Content/courseItem}/index.d.ts +0 -0
  150. /package/{es/contentDetailList/components/Content/courseItem → dist/contentDetailList/components/Content/funhdItem}/index.d.ts +0 -0
  151. /package/{es/contentDetailList/components/Content/funhdItem → dist/contentDetailList/components/Content}/index.d.ts +0 -0
  152. /package/{es → dist}/contentDetailList/components/CustomWrp/CustomItem.d.ts +0 -0
  153. /package/{es/contentDetailList/components/Content → dist/contentDetailList/components/CustomWrp}/index.d.ts +0 -0
  154. /package/{es/contentDetailList/components/CustomWrp → dist/contentDetailList/components/Doc}/index.d.ts +0 -0
  155. /package/{es/contentDetailList/components/Doc → dist/contentDetailList/components/Records/MatrixItem}/index.d.ts +0 -0
  156. /package/{es/contentDetailList/components/Records/MatrixItem → dist/contentDetailList/components/Records}/index.d.ts +0 -0
  157. /package/{es/contentDetailList/components/Records → dist/contentDetailList/components/ShowQRCode/QrcodeView}/index.d.ts +0 -0
  158. /package/{es/contentDetailList/components/ShowQRCode/QrcodeView → dist/contentDetailList/components/ShowQRCode}/index.d.ts +0 -0
  159. /package/{es → dist}/contentDetailList/index.d.ts +0 -0
  160. /package/{es → dist}/contentDetailList/script/api.d.ts +0 -0
  161. /package/{es → dist}/contentDetailList/style/index.d.ts +0 -0
  162. /package/{es → dist}/contentModal/component.d.ts +0 -0
  163. /package/{es/contentDetailList/components/ShowQRCode → dist/contentModal/components/CompoList/CompoFilter}/index.d.ts +0 -0
  164. /package/{es/contentModal/components/CompoList/CompoFilter → dist/contentModal/components/CompoList}/index.d.ts +0 -0
  165. /package/{es/contentModal/components/CompoList → dist/contentModal/components/ContentList/MediaFilter}/index.d.ts +0 -0
  166. /package/{es/contentModal/components/ContentList/MediaFilter → dist/contentModal/components/ContentList}/index.d.ts +0 -0
  167. /package/{es/contentModal/components/ContentList → dist/contentModal/components/Dejin/MediaFilter}/index.d.ts +0 -0
  168. /package/{es/contentModal/components/Dejin/MediaFilter → dist/contentModal/components/Dejin}/index.d.ts +0 -0
  169. /package/{es/contentModal/components/Dejin → dist/contentModal/components/EqxiuList/MediaFilter}/index.d.ts +0 -0
  170. /package/{es/contentModal/components/EqxiuList/MediaFilter → dist/contentModal/components/EqxiuList}/index.d.ts +0 -0
  171. /package/{es/contentModal/components/EqxiuList → dist/contentModal/components/LiveList/MediaFilter}/index.d.ts +0 -0
  172. /package/{es/contentModal/components/LiveList/MediaFilter → dist/contentModal/components/LiveList}/index.d.ts +0 -0
  173. /package/{es/contentModal/components/LiveList → dist/contentModal/components/MpAccountList/MpAccountFilter}/index.d.ts +0 -0
  174. /package/{es/contentModal/components/MpAccountList/MpAccountFilter → dist/contentModal/components/MpAccountList}/index.d.ts +0 -0
  175. /package/{es/contentModal/components/MpAccountList → dist/contentModal/components/MpContentList/MediaFilter}/index.d.ts +0 -0
  176. /package/{es/contentModal/components/MpContentList/MediaFilter → dist/contentModal/components/MpContentList}/index.d.ts +0 -0
  177. /package/{es/contentModal/components/MpContentList → dist/contentModal/components/ViewAllColumn/MediaFilter}/index.d.ts +0 -0
  178. /package/{es/contentModal/components/ViewAllColumn/MediaFilter → dist/contentModal/components/ViewAllColumn/columnTree}/index.d.ts +0 -0
  179. /package/{es/contentModal/components/ViewAllColumn/columnTree → dist/contentModal/components/ViewAllColumn}/index.d.ts +0 -0
  180. /package/{es/contentModal/components/ViewAllColumn → dist/contentModal/components/storeBox}/index.d.ts +0 -0
  181. /package/{es → dist}/contentModal/index.d.ts +0 -0
  182. /package/{es → dist}/contentModal/script/api.d.ts +0 -0
  183. /package/{es → dist}/contentModal/style/index.d.ts +0 -0
  184. /package/{es → dist}/dataTags/component.d.ts +0 -0
  185. /package/{es → dist}/dataTags/index.d.ts +0 -0
  186. /package/{es → dist}/dataTags/style/index.d.ts +0 -0
  187. /package/{es → dist}/docHistory/component.d.ts +0 -0
  188. /package/{es/contentModal/components/storeBox → dist/docHistory/components/DocDiffPanel}/index.d.ts +0 -0
  189. /package/{es/docHistory/components/DocDiffPanel → dist/docHistory/components/DocHistoryList}/index.d.ts +0 -0
  190. /package/{es → dist}/docHistory/index.d.ts +0 -0
  191. /package/{es → dist}/docHistory/scripts/diff.d.ts +0 -0
  192. /package/{es → dist}/docHistory/scripts/useDocHistory.d.ts +0 -0
  193. /package/{es → dist}/docHistory/style/index.d.ts +0 -0
  194. /package/{es → dist}/docPreview/component.d.ts +0 -0
  195. /package/{es → dist}/docPreview/components/PreviewIframe.d.ts +0 -0
  196. /package/{es → dist}/docPreview/index.d.ts +0 -0
  197. /package/{es → dist}/docPreview/scripts/api.d.ts +0 -0
  198. /package/{es → dist}/docPreview/scripts/hook.d.ts +0 -0
  199. /package/{es → dist}/docPreview/style/index.d.ts +0 -0
  200. /package/{es/editMetaInfo → dist/editDocMeta}/component.d.ts +0 -0
  201. /package/{es/docHistory/components/DocHistoryList/index.d.ts → dist/editDocMeta/components/Adapter.d.ts} +0 -0
  202. /package/{es/editMetaInfo/components/metaInfoForm.d.ts → dist/editDocMeta/components/CustomSubTitle.d.ts} +0 -0
  203. /package/{es/emptyData/component.d.ts → dist/editDocMeta/components/ThumbEditCard.d.ts} +0 -0
  204. /package/{es/emptyData/svg/add.d.ts → dist/editDocMeta/components/docMetaForm.d.ts} +0 -0
  205. /package/{es/imageCrop/component.d.ts → dist/editDocMeta/components/fields/FCheckbox.d.ts} +0 -0
  206. /package/{es/importData/component.d.ts → dist/editDocMeta/components/fields/FContentModel.d.ts} +0 -0
  207. /package/{es/mediaFilter/component.d.ts → dist/editDocMeta/components/fields/FCustom.d.ts} +0 -0
  208. /package/{es/mediaFilter/components/DocFilter.d.ts → dist/editDocMeta/components/fields/FDate.d.ts} +0 -0
  209. /package/{es/mediaFilter/components/FilterGroup.d.ts → dist/editDocMeta/components/fields/FInput.d.ts} +0 -0
  210. /package/{es/mediaFilter/components/FilterItem.d.ts → dist/editDocMeta/components/fields/FRadio.d.ts} +0 -0
  211. /package/{es/mediaFilter/components/MpAccountFilter.d.ts → dist/editDocMeta/components/fields/FSelect.d.ts} +0 -0
  212. /package/{es/mediaFilter/components/MpContentFilter.d.ts → dist/editDocMeta/components/fields/FSwitch.d.ts} +0 -0
  213. /package/{es/mediaView/component.d.ts → dist/editDocMeta/components/fields/FThumb.d.ts} +0 -0
  214. /package/{es/editMetaInfo → dist/editDocMeta}/style/index.d.ts +0 -0
  215. /package/{es/messageBox → dist/editMetaInfo}/component.d.ts +0 -0
  216. /package/{es/messageBox/list.d.ts → dist/editMetaInfo/components/metaInfoForm.d.ts} +0 -0
  217. /package/{es → dist}/editMetaInfo/index.d.ts +0 -0
  218. /package/{es → dist}/editMetaInfo/script/api.d.ts +0 -0
  219. /package/{es → dist}/editMetaInfo/script/restaurants.d.ts +0 -0
  220. /package/{es/emptyData → dist/editMetaInfo}/style/index.d.ts +0 -0
  221. /package/{es/previousVersion → dist/emptyData}/component.d.ts +0 -0
  222. /package/{es → dist}/emptyData/index.d.ts +0 -0
  223. /package/{es/imageCrop → dist/emptyData}/style/index.d.ts +0 -0
  224. /package/{es/resourceGridList/component.d.ts → dist/emptyData/svg/add.d.ts} +0 -0
  225. /package/{es → dist}/hooks/assets.d.ts +0 -0
  226. /package/{es → dist}/hooks/batch.d.ts +0 -0
  227. /package/{es → dist}/hooks/dialogVisible.d.ts +0 -0
  228. /package/{es → dist}/hooks/source.d.ts +0 -0
  229. /package/{es → dist}/hooks/toggle.d.ts +0 -0
  230. /package/{es → dist}/hooks/useAttachement.d.ts +0 -0
  231. /package/{es → dist}/hooks/useLocalStorage.d.ts +0 -0
  232. /package/{es → dist}/hooks/useMediaContext.d.ts +0 -0
  233. /package/{es → dist}/hooks/usePopper.d.ts +0 -0
  234. /package/{es → dist}/hooks/useSelection.d.ts +0 -0
  235. /package/{es → dist}/hooks/useUpload.d.ts +0 -0
  236. /package/{es → dist}/hooks/user.d.ts +0 -0
  237. /package/{es/resourceModal → dist/imageCrop}/component.d.ts +0 -0
  238. /package/{es → dist}/imageCrop/index.d.ts +0 -0
  239. /package/{es → dist}/imageCrop/script/api.d.ts +0 -0
  240. /package/{es/importData → dist/imageCrop}/style/index.d.ts +0 -0
  241. /package/{es/selectAddTo → dist/importData}/component.d.ts +0 -0
  242. /package/{es → dist}/importData/index.d.ts +0 -0
  243. /package/{es/mediaFilter → dist/importData}/style/index.d.ts +0 -0
  244. /package/{es/selectAvatarList → dist/mediaFilter}/component.d.ts +0 -0
  245. /package/{es/resourceGridList/components/FileTypeThumb/index.d.ts → dist/mediaFilter/components/DocFilter.d.ts} +0 -0
  246. /package/{es/resourceModal/components/MediaPreviewer/index.d.ts → dist/mediaFilter/components/FilterGroup.d.ts} +0 -0
  247. /package/{es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts → dist/mediaFilter/components/FilterItem.d.ts} +0 -0
  248. /package/{es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts → dist/mediaFilter/components/MpAccountFilter.d.ts} +0 -0
  249. /package/{es/resourceModal/components/MediaSelection/MainContent/index.d.ts → dist/mediaFilter/components/MpContentFilter.d.ts} +0 -0
  250. /package/{es → dist}/mediaFilter/index.d.ts +0 -0
  251. /package/{es → dist}/mediaFilter/script/optionsGetter.d.ts +0 -0
  252. /package/{es → dist}/mediaFilter/script/types.d.ts +0 -0
  253. /package/{es/mediaView → dist/mediaFilter}/style/index.d.ts +0 -0
  254. /package/{es/selectGategory → dist/mediaView}/component.d.ts +0 -0
  255. /package/{es → dist}/mediaView/index.d.ts +0 -0
  256. /package/{es/messageBox → dist/mediaView}/style/index.d.ts +0 -0
  257. /package/{es/selectResourceModal → dist/messageBox}/component.d.ts +0 -0
  258. /package/{es → dist}/messageBox/index.d.ts +0 -0
  259. /package/{es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts → dist/messageBox/list.d.ts} +0 -0
  260. /package/{es → dist}/messageBox/script/api.d.ts +0 -0
  261. /package/{es/previousVersion → dist/messageBox}/style/index.d.ts +0 -0
  262. /package/{es/selectThumb → dist/previousVersion}/component.d.ts +0 -0
  263. /package/{es → dist}/previousVersion/index.d.ts +0 -0
  264. /package/{es → dist}/previousVersion/script/api.d.ts +0 -0
  265. /package/{es → dist}/previousVersion/script/tool.d.ts +0 -0
  266. /package/{es/resourceGridList → dist/previousVersion}/style/index.d.ts +0 -0
  267. /package/{es/thumbCard → dist/resourceGridList}/component.d.ts +0 -0
  268. /package/{es/resourceModal/components/MediaSelection/SystemResourceSelected → dist/resourceGridList/components/FileTypeThumb}/index.d.ts +0 -0
  269. /package/{es → dist}/resourceGridList/index.d.ts +0 -0
  270. /package/{es/resourceModal → dist/resourceGridList}/style/index.d.ts +0 -0
  271. /package/{es/typeIcons → dist/resourceModal}/component.d.ts +0 -0
  272. /package/{es/resourceModal/components/MediaSelection/ToolbarSearch → dist/resourceModal/components/MediaPreviewer}/index.d.ts +0 -0
  273. /package/{es/resourceModal/components/MediaSelection → dist/resourceModal/components/MediaSelection/DocAiMediaSelected}/index.d.ts +0 -0
  274. /package/{es/selectAddTo/components/ViewAllColumn/MediaFilter → dist/resourceModal/components/MediaSelection/MainContent/FileTypeThumb}/index.d.ts +0 -0
  275. /package/{es/selectAddTo/components/ViewAllColumn → dist/resourceModal/components/MediaSelection/MainContent}/index.d.ts +0 -0
  276. /package/{es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts → dist/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts} +0 -0
  277. /package/{es/selectAddTo/components/SelectAddToView.d.ts → dist/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts} +0 -0
  278. /package/{es/selectGategory/components/ColumnSelection → dist/resourceModal/components/MediaSelection/SystemResourceSelected}/index.d.ts +0 -0
  279. /package/{es/selectResourceModal/components/List/ListAi → dist/resourceModal/components/MediaSelection/ToolbarSearch}/index.d.ts +0 -0
  280. /package/{es/selectResourceModal/components/List/ListLocal → dist/resourceModal/components/MediaSelection}/index.d.ts +0 -0
  281. /package/{es → dist}/resourceModal/index.d.ts +0 -0
  282. /package/{es → dist}/resourceModal/script/api.d.ts +0 -0
  283. /package/{es → dist}/resourceModal/script/mediaSelection.d.ts +0 -0
  284. /package/{es/selectAddTo → dist/resourceModal}/style/index.d.ts +0 -0
  285. /package/{es/uploadBefore → dist/selectAddTo}/component.d.ts +0 -0
  286. /package/{es/selectResourceModal/components/List/ListCardWrapper.d.ts → dist/selectAddTo/components/SelectAddToView.d.ts} +0 -0
  287. /package/{es/selectResourceModal/components/List/ListNormal → dist/selectAddTo/components/ViewAllColumn/MediaFilter}/index.d.ts +0 -0
  288. /package/{es/selectResourceModal/components/List/ListSystem → dist/selectAddTo/components/ViewAllColumn}/index.d.ts +0 -0
  289. /package/{es → dist}/selectAddTo/components/ViewAllColumn/script/useTableColumns.d.ts +0 -0
  290. /package/{es → dist}/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.d.ts +0 -0
  291. /package/{es → dist}/selectAddTo/components/ViewAllColumn/types/index.d.ts +0 -0
  292. /package/{es → dist}/selectAddTo/index.d.ts +0 -0
  293. /package/{es → dist}/selectAddTo/script/api.d.ts +0 -0
  294. /package/{es → dist}/selectAddTo/script/index.d.ts +0 -0
  295. /package/{es → dist}/selectAddTo/script/useSelectAddToState.d.ts +0 -0
  296. /package/{es/selectAvatarList → dist/selectAddTo}/style/index.d.ts +0 -0
  297. /package/{es → dist}/selectAddTo/types/index.d.ts +0 -0
  298. /package/{es/uploadStep → dist/selectAvatarList}/component.d.ts +0 -0
  299. /package/{es → dist}/selectAvatarList/index.d.ts +0 -0
  300. /package/{es/selectGategory → dist/selectAvatarList}/style/index.d.ts +0 -0
  301. /package/{es/userAvater → dist/selectGategory}/component.d.ts +0 -0
  302. /package/{es/selectResourceModal/components/List/ListVideo → dist/selectGategory/components/ColumnSelection}/index.d.ts +0 -0
  303. /package/{es → dist}/selectGategory/index.d.ts +0 -0
  304. /package/{es → dist}/selectGategory/script/api.d.ts +0 -0
  305. /package/{es/selectResourceModal → dist/selectGategory}/style/index.d.ts +0 -0
  306. /package/{es → dist}/selectResourceModal/__demo__/module/DivWrapper.d.ts +0 -0
  307. /package/{es → dist}/selectResourceModal/__demo__/module/basic.d.ts +0 -0
  308. /package/{es/userDirector → dist/selectResourceModal}/component.d.ts +0 -0
  309. /package/{es/selectResourceModal/components/ListSelected → dist/selectResourceModal/components/List/ListAi}/index.d.ts +0 -0
  310. /package/{es/selectResourceModal/components/List/ListLocal/Upload.d.ts → dist/selectResourceModal/components/List/ListCardWrapper.d.ts} +0 -0
  311. /package/{es/selectResourceModal/components/List/ListNormal/Filter.d.ts → dist/selectResourceModal/components/List/ListLocal/Upload.d.ts} +0 -0
  312. /package/{es/selectResourceModal/components/ListTabs → dist/selectResourceModal/components/List/ListLocal}/index.d.ts +0 -0
  313. /package/{es/selectResourceModal/components/List/ListSystem → dist/selectResourceModal/components/List/ListNormal}/Filter.d.ts +0 -0
  314. /package/{es/thumbCard/components/ThumbUploading → dist/selectResourceModal/components/List/ListNormal}/index.d.ts +0 -0
  315. /package/{es/selectResourceModal/components/List/ListSystem/SubList.d.ts → dist/selectResourceModal/components/List/ListSystem/Filter.d.ts} +0 -0
  316. /package/{es/selectResourceModal/components/List/ListWraper.d.ts → dist/selectResourceModal/components/List/ListSystem/SubList.d.ts} +0 -0
  317. /package/{es/selectThumb/components/card.d.ts → dist/selectResourceModal/components/List/ListSystem/index.d.ts} +0 -0
  318. /package/{es/selectThumb/components/colorPalette.d.ts → dist/selectResourceModal/components/List/ListVideo/index.d.ts} +0 -0
  319. /package/{es/selectThumb/components/colorPicker.d.ts → dist/selectResourceModal/components/List/ListWraper.d.ts} +0 -0
  320. /package/{es/uploadBefore/components/UploadBefore.d.ts → dist/selectResourceModal/components/ListSelected/index.d.ts} +0 -0
  321. /package/{es/uploadBefore/components/UploadForClick.d.ts → dist/selectResourceModal/components/ListTabs/index.d.ts} +0 -0
  322. /package/{es → dist}/selectResourceModal/hooks/useResponsiveFilter.d.ts +0 -0
  323. /package/{es → dist}/selectResourceModal/index.d.ts +0 -0
  324. /package/{es → dist}/selectResourceModal/scripts/selectionApis.d.ts +0 -0
  325. /package/{es → dist}/selectResourceModal/scripts/useCompoLf.d.ts +0 -0
  326. /package/{es → dist}/selectResourceModal/scripts/useResourceSelect.d.ts +0 -0
  327. /package/{es → dist}/selectResourceModal/scripts/useTabFilter.d.ts +0 -0
  328. /package/{es/selectThumb → dist/selectResourceModal}/style/index.d.ts +0 -0
  329. /package/{es/videoThumb → dist/selectThumb}/component.d.ts +0 -0
  330. /package/{es/uploadBefore/utils/dragUploadEvent.d.ts → dist/selectThumb/components/card.d.ts} +0 -0
  331. /package/{es/userDirector/components/userTree.d.ts → dist/selectThumb/components/colorPalette.d.ts} +0 -0
  332. /package/{es → dist}/selectThumb/index.d.ts +0 -0
  333. /package/{es/thumbCard → dist/selectThumb}/style/index.d.ts +0 -0
  334. /package/{es → dist}/thumbCard/index.d.ts +0 -0
  335. /package/{es/typeIcons → dist/thumbCard}/style/index.d.ts +0 -0
  336. /package/{es → dist}/typeIcons/index.d.ts +0 -0
  337. /package/{es/uploadBefore → dist/typeIcons}/style/index.d.ts +0 -0
  338. /package/{es → dist}/uploadBefore/index.d.ts +0 -0
  339. /package/{es → dist}/uploadBefore/script/api.d.ts +0 -0
  340. /package/{es → dist}/uploadBefore/script/fileTypeAdapter.d.ts +0 -0
  341. /package/{es → dist}/uploadBefore/script/fileUpload.d.ts +0 -0
  342. /package/{es → dist}/uploadBefore/script/uploadHooks.d.ts +0 -0
  343. /package/{es/uploadStep → dist/uploadBefore}/style/index.d.ts +0 -0
  344. /package/{es → dist}/uploadStep/index.d.ts +0 -0
  345. /package/{es → dist}/uploadStep/script/fileTypeAdapter.d.ts +0 -0
  346. /package/{es/userAvater → dist/uploadStep}/style/index.d.ts +0 -0
  347. /package/{es → dist}/userAvater/index.d.ts +0 -0
  348. /package/{es → dist}/userAvater/script/api.d.ts +0 -0
  349. /package/{es/userDirector → dist/userAvater}/style/index.d.ts +0 -0
  350. /package/{es → dist}/userDirector/index.d.ts +0 -0
  351. /package/{es → dist}/userDirector/script/api.d.ts +0 -0
  352. /package/{es/videoThumb → dist/userDirector}/style/index.d.ts +0 -0
  353. /package/{es → dist}/utils/auth.d.ts +0 -0
  354. /package/{es → dist}/utils/date.d.ts +0 -0
  355. /package/{es → dist}/utils/doc.d.ts +0 -0
  356. /package/{es → dist}/utils/filter.d.ts +0 -0
  357. /package/{es → dist}/utils/index.d.ts +0 -0
  358. /package/{es → dist}/utils/request.d.ts +0 -0
  359. /package/{es → dist}/utils/resource.d.ts +0 -0
  360. /package/{es → dist}/utils/transcodeMedia.d.ts +0 -0
  361. /package/{es → dist}/utils/tusUpload.d.ts +0 -0
  362. /package/{es → dist}/utils/typeMap.d.ts +0 -0
  363. /package/{es → dist}/utils/uploadCatalog.d.ts +0 -0
  364. /package/{es → dist}/videoThumb/index.d.ts +0 -0
  365. /package/{es → dist}/videoThumb/scripts/api.d.ts +0 -0
  366. /package/{es → dist}/videoThumb/scripts/useVideoThumbs.d.ts +0 -0
@@ -0,0 +1,377 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ var icon = require("@arco-design/web-vue/es/icon");
5
+ var draggable = require("vuedraggable");
6
+ var ThumbEditCard = require("../ThumbEditCard.js");
7
+ var colorPicker = require("../../../selectThumb/components/colorPicker.js");
8
+ var useThumbs = require("../options/useThumbs.js");
9
+ function _interopDefaultLegacy(e) {
10
+ return e && typeof e === "object" && "default" in e ? e : { "default": e };
11
+ }
12
+ var draggable__default = /* @__PURE__ */ _interopDefaultLegacy(draggable);
13
+ const _hoisted_1 = { class: "form-item-wrp form-content form-thumb-wrap" };
14
+ const _hoisted_2 = { key: 1 };
15
+ const _hoisted_3 = {
16
+ key: 2,
17
+ class: "thumb-list"
18
+ };
19
+ const _hoisted_4 = { class: "thumb-list-wrap" };
20
+ const _hoisted_5 = { class: "thumb-item" };
21
+ const _hoisted_6 = ["onClick"];
22
+ const _hoisted_7 = {
23
+ key: 0,
24
+ class: "no-thumb-tips"
25
+ };
26
+ const _hoisted_8 = {
27
+ key: 1,
28
+ class: "card-preview"
29
+ };
30
+ const _hoisted_9 = {
31
+ key: 2,
32
+ class: "card-preview"
33
+ };
34
+ const _hoisted_10 = {
35
+ key: 0,
36
+ class: "thumb-tip"
37
+ };
38
+ const _hoisted_11 = {
39
+ key: 3,
40
+ class: "color-picker-wrapper"
41
+ };
42
+ const _sfc_main = vue.defineComponent({
43
+ __name: "FThumb",
44
+ props: {
45
+ mValue: {},
46
+ label: {},
47
+ meta: {},
48
+ series: {},
49
+ payload: {},
50
+ BASE_API: {},
51
+ domainId: {},
52
+ coverModel: {}
53
+ },
54
+ emits: [
55
+ "update:mValue",
56
+ "upload",
57
+ "resource-select",
58
+ "image-edit",
59
+ "preview",
60
+ "cover-model-change"
61
+ ],
62
+ setup(__props, { emit: __emit }) {
63
+ var _a;
64
+ const emits = __emit;
65
+ const props = __props;
66
+ const isThumbType = vue.computed(() => {
67
+ var _a2;
68
+ return ((_a2 = props.meta) == null ? void 0 : _a2.type) === "thumb";
69
+ });
70
+ const isBannerType = vue.computed(() => {
71
+ var _a2;
72
+ return ((_a2 = props.meta) == null ? void 0 : _a2.type) === "banner";
73
+ });
74
+ const isColorPlate = vue.computed(() => {
75
+ var _a2, _b;
76
+ if (!((_a2 = props.meta) == null ? void 0 : _a2.color))
77
+ return false;
78
+ if (((_b = props.meta) == null ? void 0 : _b.key) === "pcBanner") {
79
+ const { series } = props;
80
+ return ["special_v3", "video_album", "audio_album"].includes(series || "");
81
+ }
82
+ return true;
83
+ });
84
+ const metaRef = vue.toRef(props, "meta");
85
+ const modelValue = vue.computed({
86
+ get: () => {
87
+ if (Array.isArray(props.mValue)) {
88
+ return props.mValue;
89
+ }
90
+ return [];
91
+ },
92
+ set: (value) => {
93
+ emits("update:mValue", value);
94
+ }
95
+ });
96
+ const { handleUpload } = useThumbs.useLocalUpload(
97
+ modelValue,
98
+ props.BASE_API,
99
+ props.domainId
100
+ );
101
+ const currentModel = vue.ref((_a = props.coverModel) != null ? _a : 3);
102
+ vue.watch(
103
+ () => props.coverModel,
104
+ (newModel) => {
105
+ if (newModel !== void 0) {
106
+ currentModel.value = newModel;
107
+ }
108
+ },
109
+ { immediate: true }
110
+ );
111
+ const { thumbOptions, selectThumb, ratioStr } = useThumbs.useThumb(
112
+ modelValue,
113
+ metaRef,
114
+ props.series,
115
+ currentModel
116
+ );
117
+ vue.watch(
118
+ () => currentModel.value,
119
+ (newModel) => {
120
+ if (isThumbType.value) {
121
+ emits("cover-model-change", newModel);
122
+ }
123
+ },
124
+ { immediate: true }
125
+ );
126
+ const bannerValueRef = vue.ref(false);
127
+ const { bannerSwitch, showSync, syncThumb } = useThumbs.useBanner(
128
+ modelValue,
129
+ metaRef,
130
+ bannerValueRef
131
+ );
132
+ vue.watch(
133
+ () => isBannerType.value,
134
+ (isBanner) => {
135
+ if (isBanner) {
136
+ bannerValueRef.value = modelValue.value.length > 0;
137
+ }
138
+ },
139
+ { immediate: true }
140
+ );
141
+ vue.watch(
142
+ () => modelValue.value,
143
+ (newValue) => {
144
+ if (isBannerType.value) {
145
+ if (newValue.length === 0 && bannerValueRef.value) {
146
+ bannerValueRef.value = false;
147
+ } else if (newValue.length > 0 && !bannerValueRef.value)
148
+ ;
149
+ }
150
+ },
151
+ { deep: true }
152
+ );
153
+ const colorListValue = vue.computed(() => {
154
+ var _a2;
155
+ if (isColorPlate.value && ((_a2 = modelValue.value[0]) == null ? void 0 : _a2.top_colorList)) {
156
+ return modelValue.value[0].top_colorList;
157
+ }
158
+ return [];
159
+ });
160
+ const { colorListShow, currentColor } = useThumbs.useColor(
161
+ modelValue,
162
+ metaRef,
163
+ props.BASE_API,
164
+ vue.toRef(colorListValue)
165
+ );
166
+ const enableSelect = vue.computed(() => {
167
+ if (isBannerType.value)
168
+ return bannerSwitch.value;
169
+ if (isThumbType.value) {
170
+ return selectThumb.value !== "4";
171
+ }
172
+ return true;
173
+ });
174
+ const shouldShowColorPlate = vue.computed(() => {
175
+ var _a2;
176
+ if (!isColorPlate.value)
177
+ return false;
178
+ if (!((_a2 = modelValue.value[0]) == null ? void 0 : _a2.url))
179
+ return false;
180
+ if (isThumbType.value && selectThumb.value === "4")
181
+ return false;
182
+ return true;
183
+ });
184
+ const aiThumbList = vue.computed(() => {
185
+ if (!props.payload)
186
+ return [];
187
+ return useThumbs.getPayloadImg(props.payload, props.series);
188
+ });
189
+ function handleShowResource(options, callback) {
190
+ const params = {
191
+ data: {
192
+ maxcount: 1,
193
+ filterOptions: {
194
+ mediaType: "image",
195
+ mediaTypeStrict: true
196
+ },
197
+ aiThumbList: aiThumbList.value,
198
+ mediaUseType: 1,
199
+ ...options
200
+ },
201
+ callback
202
+ };
203
+ if (props.series && ["video", "svideo"].includes(props.series)) {
204
+ try {
205
+ const payload = props.payload ? JSON.parse(props.payload) : {};
206
+ if (payload.url) {
207
+ params.data.videoThumbOptions = {
208
+ src: payload.url,
209
+ duration: 50
210
+ };
211
+ }
212
+ } catch (e) {
213
+ console.error("\u89E3\u6790 payload \u5931\u8D25", e);
214
+ }
215
+ }
216
+ emits("resource-select", params);
217
+ }
218
+ function handleHandle(e, idx) {
219
+ const { key } = e;
220
+ if (key === "replace") {
221
+ handleShowResource({}, (data) => {
222
+ const result = JSON.parse(JSON.stringify(modelValue.value));
223
+ const [firstItem] = data;
224
+ result[idx] = firstItem;
225
+ modelValue.value = result;
226
+ });
227
+ }
228
+ if (key === "edit") {
229
+ emits("image-edit", {
230
+ url: modelValue.value[idx].url,
231
+ callback: (data) => {
232
+ if (!data)
233
+ return;
234
+ const ret = JSON.parse(JSON.stringify(modelValue.value));
235
+ ret[idx] = data;
236
+ modelValue.value = ret;
237
+ }
238
+ });
239
+ }
240
+ }
241
+ function handleEdit(e, index) {
242
+ const key = typeof e === "string" ? e : (e == null ? void 0 : e.key) || "resource";
243
+ const maxcount = modelValue.value.reduce(
244
+ (pre, cur) => cur.url ? pre : pre + 1,
245
+ 0
246
+ );
247
+ if (key === "local") {
248
+ handleUpload(index);
249
+ } else {
250
+ handleShowResource({ maxcount }, (data) => {
251
+ let p = 0;
252
+ const result = JSON.parse(JSON.stringify(modelValue.value));
253
+ result.forEach((item, idx) => {
254
+ if (!item.url && data[p])
255
+ result[idx] = data[p++];
256
+ });
257
+ modelValue.value = result;
258
+ });
259
+ }
260
+ }
261
+ function handlePreview() {
262
+ emits("preview", {});
263
+ }
264
+ function handleRemove(idx) {
265
+ const result = JSON.parse(JSON.stringify(modelValue.value));
266
+ result[idx] = { url: "", thumb: "" };
267
+ modelValue.value = result;
268
+ }
269
+ return (_ctx, _cache) => {
270
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
271
+ vue.createCommentVNode(" \u5C01\u9762\u56FE\u7C7B\u578B\u9009\u62E9\u5668\uFF08PC \u5C01\u9762\u56FE\u4E0D\u663E\u793A\uFF09 "),
272
+ isThumbType.value && vue.unref(thumbOptions).length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.RadioGroup), {
273
+ key: 0,
274
+ "model-value": vue.unref(selectThumb),
275
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(selectThumb) ? selectThumb.value = $event : null)
276
+ }, {
277
+ default: vue.withCtx(() => [
278
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(thumbOptions), (thumb) => {
279
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Radio), {
280
+ key: thumb.value,
281
+ value: thumb.value
282
+ }, {
283
+ default: vue.withCtx(() => [
284
+ vue.createTextVNode(vue.toDisplayString(thumb.label), 1)
285
+ ]),
286
+ _: 2
287
+ }, 1032, ["value"]);
288
+ }), 128))
289
+ ]),
290
+ _: 1
291
+ }, 8, ["model-value"])) : vue.createCommentVNode("v-if", true),
292
+ vue.createCommentVNode(" \u72EC\u7ACB\u8F6E\u64AD\u56FE "),
293
+ isBannerType.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
294
+ vue.createVNode(vue.unref(webVue.Switch), {
295
+ "model-value": vue.unref(bannerSwitch),
296
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(bannerSwitch) ? bannerSwitch.value = $event : null)
297
+ }, null, 8, ["model-value"])
298
+ ])) : vue.createCommentVNode("v-if", true),
299
+ vue.createCommentVNode(" \u56FE\u7247\u9009\u62E9\u5668 "),
300
+ enableSelect.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
301
+ vue.createElementVNode("div", _hoisted_4, [
302
+ vue.createVNode(vue.unref(draggable__default["default"]), {
303
+ modelValue: modelValue.value,
304
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => modelValue.value = $event),
305
+ class: "thumb-list-wrap",
306
+ "item-key": (item) => item.id || item.url || item.sig_id || `thumb-${item}`,
307
+ sort: true,
308
+ animation: 150
309
+ }, {
310
+ item: vue.withCtx(({ element: item, index }) => [
311
+ vue.createElementVNode("div", _hoisted_5, [
312
+ vue.createVNode(ThumbEditCard, {
313
+ item,
314
+ onEdit: (e) => handleEdit(e, index),
315
+ onHandle: (e) => handleHandle(e, index)
316
+ }, null, 8, ["item", "onEdit", "onHandle"]),
317
+ item.url ? (vue.openBlock(), vue.createElementBlock("div", {
318
+ key: 0,
319
+ class: "thumb-remove-btn",
320
+ onClick: ($event) => handleRemove(index)
321
+ }, [
322
+ vue.createVNode(vue.unref(icon.IconClose), { style: { "color": "white" } })
323
+ ], 8, _hoisted_6)) : vue.createCommentVNode("v-if", true)
324
+ ])
325
+ ]),
326
+ _: 1
327
+ }, 8, ["modelValue", "item-key"]),
328
+ vue.createCommentVNode(' \u65E0\u5C01\u9762\u63D0\u793A\uFF08\u53EA\u6709\u9009\u62E9"\u65E0\u5C01\u9762"\u65F6\u624D\u663E\u793A\uFF09 '),
329
+ isThumbType.value && vue.unref(selectThumb) === "4" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7, "\u65E0\u5C01\u9762")) : vue.createCommentVNode("v-if", true),
330
+ isThumbType.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
331
+ vue.createVNode(vue.unref(webVue.Link), { onClick: handlePreview }, {
332
+ default: vue.withCtx(() => [..._cache[5] || (_cache[5] = [
333
+ vue.createTextVNode("\u9884\u89C8", -1)
334
+ ])]),
335
+ _: 1
336
+ })
337
+ ])) : vue.createCommentVNode("v-if", true),
338
+ vue.unref(showSync) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, [
339
+ vue.createVNode(vue.unref(webVue.Link), { onClick: vue.unref(syncThumb) }, {
340
+ default: vue.withCtx(() => [..._cache[6] || (_cache[6] = [
341
+ vue.createTextVNode("\u4ECE\u5C01\u9762\u56FE\u540C\u6B65", -1)
342
+ ])]),
343
+ _: 1
344
+ }, 8, ["onClick"])
345
+ ])) : vue.createCommentVNode("v-if", true)
346
+ ]),
347
+ vue.unref(ratioStr) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_10, "\u5EFA\u8BAE\u6BD4\u4F8B\uFF1A" + vue.toDisplayString(vue.unref(ratioStr)), 1)) : vue.createCommentVNode("v-if", true)
348
+ ])) : vue.createCommentVNode("v-if", true),
349
+ vue.createCommentVNode(" \u53D6\u8272\u5668 "),
350
+ shouldShowColorPlate.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_11, [
351
+ vue.createVNode(vue.unref(webVue.RadioGroup), {
352
+ "model-value": vue.unref(currentColor),
353
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(currentColor) ? currentColor.value = $event : null),
354
+ class: "color-radio-group",
355
+ type: "button"
356
+ }, {
357
+ default: vue.withCtx(() => [
358
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(colorListShow), (colr, index) => {
359
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Radio), {
360
+ key: index,
361
+ style: vue.normalizeStyle({ background: `${colr} !important` }),
362
+ value: `${colr}`
363
+ }, null, 8, ["style", "value"]);
364
+ }), 128)),
365
+ vue.createVNode(colorPicker, {
366
+ modelValue: vue.unref(currentColor),
367
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(currentColor) ? currentColor.value = $event : null)
368
+ }, null, 8, ["modelValue"])
369
+ ]),
370
+ _: 1
371
+ }, 8, ["model-value"])
372
+ ])) : vue.createCommentVNode("v-if", true)
373
+ ]);
374
+ };
375
+ }
376
+ });
377
+ module.exports = _sfc_main;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ var vue = require("vue");
4
+ function useMorn(modelValue, meta) {
5
+ if (meta.value.type !== "morn")
6
+ return { mornSwitch: vue.ref(false), radioOptions: [] };
7
+ const mornSwitch = vue.computed({
8
+ get: () => modelValue.value !== "0",
9
+ set: (value) => {
10
+ modelValue.value = value ? "1" : "0";
11
+ }
12
+ });
13
+ const radioOptions = [
14
+ { label: "\u9ED8\u54C0\u6A21\u5F0F", value: "1" },
15
+ { label: "\u975E\u9ED8\u54C0\u6A21\u5F0F", value: "2" }
16
+ ];
17
+ vue.watch(
18
+ () => mornSwitch.value,
19
+ (value) => {
20
+ modelValue.value = value ? "1" : "0";
21
+ }
22
+ );
23
+ return {
24
+ mornSwitch,
25
+ radioOptions
26
+ };
27
+ }
28
+ exports.useMorn = useMorn;
@@ -0,0 +1,283 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ var vue = require("vue");
4
+ var index = require("../../../utils/index.js");
5
+ var useUpload = require("../../../hooks/useUpload.js");
6
+ const DOC_THUMB_OPTIONS_MAP = {
7
+ imagetext: [
8
+ { label: "\u5927\u56FE", value: "1" },
9
+ { label: "\u4E09\u56FE", value: "2" },
10
+ { label: "\u5355\u56FE", value: "3" },
11
+ { label: "\u65E0\u5C01\u9762", value: "4" }
12
+ ],
13
+ video: [
14
+ { label: "\u5927\u56FE", value: "1" },
15
+ { label: "\u4E09\u56FE", value: "2" },
16
+ { label: "\u5355\u56FE", value: "3" },
17
+ { label: "\u65E0\u5C01\u9762", value: "4" },
18
+ { label: "\u6A2A\u5C4F", value: "5" }
19
+ ],
20
+ special_v3: [
21
+ { label: "\u5927\u56FE", value: "1" },
22
+ { label: "\u4E09\u56FE", value: "2" },
23
+ { label: "\u5355\u56FE", value: "3" },
24
+ { label: "\u65E0\u5C01\u9762", value: "4" }
25
+ ]
26
+ };
27
+ const docThumbObjMap = {
28
+ "1": { maxLength: 1, ratioStr: "16:9" },
29
+ "2": { maxLength: 3, ratioStr: "4:3" },
30
+ "3": { maxLength: 1, ratioStr: "4:3" },
31
+ "4": { maxLength: 0, ratioStr: "" },
32
+ "5": { maxLength: 1, ratioStr: "16:9" }
33
+ };
34
+ function getThumbLen(thumbs) {
35
+ return thumbs.filter((item) => item.url || item.sig_id).length;
36
+ }
37
+ function checkThumbIsEmpty(thumbs) {
38
+ return getThumbLen(thumbs) === 0;
39
+ }
40
+ function checkoutThumbIsOrigin(url) {
41
+ var _a;
42
+ if (!url)
43
+ return false;
44
+ try {
45
+ const { BASE_HOST, BASE_STATIC_FILE_API } = ((_a = window.situoyun) == null ? void 0 : _a.env) || {};
46
+ if (!BASE_HOST && !BASE_STATIC_FILE_API)
47
+ return true;
48
+ const ossURL = (BASE_STATIC_FILE_API == null ? void 0 : BASE_STATIC_FILE_API.replace("/maple/v1", "")) || "";
49
+ return url.includes(ossURL) || url.includes(BASE_HOST || "");
50
+ } catch (e) {
51
+ return true;
52
+ }
53
+ }
54
+ function getPayloadImg(payload, series) {
55
+ if (!payload)
56
+ return [];
57
+ if (series === "atlas") {
58
+ try {
59
+ const images = JSON.parse(payload);
60
+ return images.map((item) => item.url).filter(Boolean);
61
+ } catch (e) {
62
+ }
63
+ return [];
64
+ }
65
+ return (payload.match(/<img.*?src="(.*?)".*?>/gi) || []).filter((item) => item.indexOf("no-edit") === -1).map((item) => {
66
+ var _a;
67
+ return (_a = item.match(/src="(.*?)"/)) == null ? void 0 : _a[1];
68
+ }).filter((url) => url && checkoutThumbIsOrigin(url)).filter((url) => url && !url.startsWith("base64:image"));
69
+ }
70
+ function useThumb(modelValue, meta, series, currentModel) {
71
+ var _a, _b;
72
+ if (((_a = meta.value) == null ? void 0 : _a.key) === "pcBanner") {
73
+ return { thumbOptions: [], selectThumb: vue.ref("3"), ratioStr: "" };
74
+ }
75
+ if (((_b = meta.value) == null ? void 0 : _b.type) !== "thumb") {
76
+ return { thumbOptions: [], selectThumb: vue.ref("3"), ratioStr: "" };
77
+ }
78
+ const thumbOptions = DOC_THUMB_OPTIONS_MAP[series || "imagetext"] || DOC_THUMB_OPTIONS_MAP.imagetext;
79
+ const selectThumb = vue.computed({
80
+ get: () => {
81
+ if (currentModel == null ? void 0 : currentModel.value) {
82
+ return `${currentModel.value}`;
83
+ }
84
+ return "3";
85
+ },
86
+ set: (value) => {
87
+ if (currentModel) {
88
+ currentModel.value = parseInt(value, 10);
89
+ }
90
+ }
91
+ });
92
+ const ratioStr = vue.computed(
93
+ () => {
94
+ var _a2;
95
+ return ((_a2 = docThumbObjMap[selectThumb.value]) == null ? void 0 : _a2.ratioStr) || "";
96
+ }
97
+ );
98
+ const maxThumbCount = vue.computed(
99
+ () => {
100
+ var _a2;
101
+ return ((_a2 = docThumbObjMap[selectThumb.value]) == null ? void 0 : _a2.maxLength) || 1;
102
+ }
103
+ );
104
+ function handleChangeThumbType() {
105
+ const len = maxThumbCount.value;
106
+ if (checkThumbIsEmpty(modelValue.value)) {
107
+ modelValue.value = new Array(len).fill({});
108
+ } else if (len < modelValue.value.length) {
109
+ modelValue.value = modelValue.value.slice(0, len);
110
+ } else if (len > modelValue.value.length) {
111
+ for (let i = 0; i <= len - modelValue.value.length; i++) {
112
+ modelValue.value.push({});
113
+ }
114
+ }
115
+ }
116
+ vue.watch(() => selectThumb.value, handleChangeThumbType, { immediate: true });
117
+ return {
118
+ ratioStr,
119
+ selectThumb,
120
+ thumbOptions
121
+ };
122
+ }
123
+ function useBanner(modelValue, meta, bannerValue) {
124
+ var _a;
125
+ if (((_a = meta.value) == null ? void 0 : _a.type) !== "banner") {
126
+ return {
127
+ bannerSwitch: vue.ref(false),
128
+ showSync: vue.ref(false),
129
+ syncThumb: () => {
130
+ }
131
+ };
132
+ }
133
+ const bannerSwitch = vue.computed({
134
+ get: () => {
135
+ var _a2;
136
+ return (_a2 = bannerValue == null ? void 0 : bannerValue.value) != null ? _a2 : false;
137
+ },
138
+ set: (value) => {
139
+ if (bannerValue) {
140
+ bannerValue.value = value;
141
+ if (value) {
142
+ if (checkThumbIsEmpty(modelValue.value)) {
143
+ modelValue.value = [{}];
144
+ }
145
+ } else {
146
+ modelValue.value = [];
147
+ }
148
+ }
149
+ }
150
+ });
151
+ return {
152
+ bannerSwitch,
153
+ showSync: vue.ref(false),
154
+ syncThumb: () => {
155
+ }
156
+ };
157
+ }
158
+ function useColor(modelValue, meta, BASE_API, colorListValue) {
159
+ var _a;
160
+ if (!((_a = meta.value) == null ? void 0 : _a.color)) {
161
+ return { colorListShow: vue.ref([]), currentColor: vue.ref("rgb(0,0,0)") };
162
+ }
163
+ const image = vue.computed(() => {
164
+ var _a2;
165
+ return (_a2 = modelValue.value[0]) == null ? void 0 : _a2.url;
166
+ });
167
+ const currentColor = vue.computed({
168
+ get: () => {
169
+ var _a2;
170
+ if ((_a2 = modelValue.value[0]) == null ? void 0 : _a2.top_theme_color) {
171
+ const themeColor = modelValue.value[0].top_theme_color;
172
+ if (themeColor.startsWith("#")) {
173
+ const hex = themeColor.replace("#", "");
174
+ const r = parseInt(hex.substring(0, 2), 16);
175
+ const g = parseInt(hex.substring(2, 4), 16);
176
+ const b = parseInt(hex.substring(4, 6), 16);
177
+ return `rgb(${r},${g},${b})`;
178
+ }
179
+ if (themeColor.startsWith("rgb")) {
180
+ return themeColor;
181
+ }
182
+ }
183
+ return "rgb(0,0,0)";
184
+ },
185
+ set: (value) => {
186
+ if (modelValue.value[0]) {
187
+ const rgbMatch = value.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
188
+ if (rgbMatch) {
189
+ const r = parseInt(rgbMatch[1], 10);
190
+ const g = parseInt(rgbMatch[2], 10);
191
+ const b = parseInt(rgbMatch[3], 10);
192
+ const hex = `#${r.toString(16).padStart(2, "0")}${g.toString(16).padStart(2, "0")}${b.toString(16).padStart(2, "0")}`;
193
+ modelValue.value[0].top_theme_color = hex;
194
+ modelValue.value = [...modelValue.value];
195
+ }
196
+ }
197
+ }
198
+ });
199
+ const colorList = vue.computed({
200
+ get: () => {
201
+ var _a2;
202
+ const imgColorList = (_a2 = modelValue.value[0]) == null ? void 0 : _a2.top_colorList;
203
+ if (imgColorList && Array.isArray(imgColorList) && imgColorList.length > 0) {
204
+ return imgColorList;
205
+ }
206
+ return (colorListValue == null ? void 0 : colorListValue.value) || [];
207
+ },
208
+ set: (value) => {
209
+ if (modelValue.value[0]) {
210
+ modelValue.value[0].top_colorList = value;
211
+ modelValue.value = [...modelValue.value];
212
+ }
213
+ }
214
+ });
215
+ const colorListShow = vue.computed(
216
+ () => colorList.value.map((item) => `rgb(${item})`)
217
+ );
218
+ async function handleImageChange() {
219
+ if (!image.value) {
220
+ colorList.value = [];
221
+ currentColor.value = "rgb(0,0,0)";
222
+ return;
223
+ }
224
+ if (colorList.value && colorList.value.length > 0) {
225
+ return;
226
+ }
227
+ try {
228
+ const themeColors = await index.getThemeColor(
229
+ BASE_API,
230
+ image.value
231
+ );
232
+ if (themeColors && themeColors.length > 0) {
233
+ colorList.value = themeColors;
234
+ currentColor.value = `rgb(${themeColors[1]})`;
235
+ }
236
+ } catch (error) {
237
+ }
238
+ }
239
+ vue.watch(() => image.value, handleImageChange, { immediate: true });
240
+ return {
241
+ currentColor,
242
+ colorListShow
243
+ };
244
+ }
245
+ function useLocalUpload(modelValue, BASE_API, domainId) {
246
+ const { uploadFile } = useUpload["default"]();
247
+ const loadingList = vue.ref([]);
248
+ function handleUpload(index$1) {
249
+ loadingList.value[index$1] = true;
250
+ const input = document.createElement("input");
251
+ input.type = "file";
252
+ input.accept = "image/*";
253
+ input.onchange = (e) => {
254
+ var _a;
255
+ const file = (_a = e.target.files) == null ? void 0 : _a[0];
256
+ if (!file) {
257
+ loadingList.value[index$1] = false;
258
+ return;
259
+ }
260
+ file.sig_id = index.generateUUID();
261
+ uploadFile(BASE_API || "", file, 0, domainId || 0, (res) => {
262
+ const result = JSON.parse(JSON.stringify(modelValue.value));
263
+ result[index$1] = res;
264
+ setTimeout(() => {
265
+ modelValue.value = result;
266
+ }, 200);
267
+ loadingList.value[index$1] = false;
268
+ });
269
+ };
270
+ input.click();
271
+ }
272
+ return {
273
+ handleUpload
274
+ };
275
+ }
276
+ exports.checkThumbIsEmpty = checkThumbIsEmpty;
277
+ exports.checkoutThumbIsOrigin = checkoutThumbIsOrigin;
278
+ exports.getPayloadImg = getPayloadImg;
279
+ exports.getThumbLen = getThumbLen;
280
+ exports.useBanner = useBanner;
281
+ exports.useColor = useColor;
282
+ exports.useLocalUpload = useLocalUpload;
283
+ exports.useThumb = useThumb;