@cmstops/pro-compo 3.10.5-stable.5 → 3.10.5-stable.8

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