@cmstops/pro-compo 3.10.5-stable.6 → 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 +4 -2
  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 +4 -2
  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,205 @@
1
+ import { defineComponent, computed, ref, watch, onMounted, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString } from "vue";
2
+ import { Select, Option } from "@arco-design/web-vue";
3
+ import { getBylineTemplates, getAllDutyEditor } from "../../script/api.js";
4
+ import { getConfiguration } from "../../../hooks/source.js";
5
+ import "./FSelect.vue_vue_type_style_index_0_scoped_true_lang.js";
6
+ import _export_sfc from "../../../_virtual/plugin-vue_export-helper.js";
7
+ const _hoisted_1 = ["id"];
8
+ const _sfc_main = defineComponent({
9
+ __name: "FSelect",
10
+ props: {
11
+ mValue: {},
12
+ label: {},
13
+ placeholder: {},
14
+ meta: {},
15
+ value: {},
16
+ BASE_API: {},
17
+ domainId: {}
18
+ },
19
+ emits: ["update:mValue"],
20
+ setup(__props, { emit: __emit }) {
21
+ const emits = __emit;
22
+ const props = __props;
23
+ const modelValue = computed({
24
+ get: () => props.mValue,
25
+ set: (value) => {
26
+ emits("update:mValue", value);
27
+ }
28
+ });
29
+ const options = ref([]);
30
+ const loadOptions = async () => {
31
+ var _a, _b, _c;
32
+ if (!((_a = props.meta) == null ? void 0 : _a.key)) {
33
+ if ((_b = props.meta) == null ? void 0 : _b.options) {
34
+ options.value = props.meta.options;
35
+ }
36
+ return;
37
+ }
38
+ try {
39
+ if (props.meta.key === "signature_template_id") {
40
+ if (!props.BASE_API) {
41
+ console.warn("signature_template_id \u9700\u8981 BASE_API");
42
+ return;
43
+ }
44
+ console.log("\u5F00\u59CB\u52A0\u8F7D\u7F72\u540D\u6A21\u7248\u9009\u9879\uFF0CBASE_API:", props.BASE_API);
45
+ const { code, message } = await getBylineTemplates(props.BASE_API, {
46
+ default_top: true
47
+ });
48
+ console.log("\u7F72\u540D\u6A21\u7248\u63A5\u53E3\u8FD4\u56DE:", { code, message });
49
+ if (code === 0 && Array.isArray(message)) {
50
+ const formattedOptions = message.map((item) => ({
51
+ label: item.title,
52
+ value: String(item.id),
53
+ meta: item
54
+ }));
55
+ formattedOptions.unshift({
56
+ label: "\u4E0D\u4F7F\u7528\u7F72\u540D\u6A21\u677F",
57
+ value: "0"
58
+ });
59
+ options.value = formattedOptions;
60
+ console.log("\u7F72\u540D\u6A21\u7248\u9009\u9879\u52A0\u8F7D\u5B8C\u6210:", options.value);
61
+ }
62
+ } else if (props.meta.key === "dutys") {
63
+ const { code, message } = await getAllDutyEditor(props.BASE_API);
64
+ if (code === 0 && (message == null ? void 0 : message.data)) {
65
+ options.value = message.data.map((item) => ({
66
+ label: item.name || item.alias,
67
+ value: item.id
68
+ }));
69
+ }
70
+ } else if (props.meta.key === "sources" && props.domainId) {
71
+ const { code, message } = await getConfiguration(props.BASE_API, {
72
+ domain_id: props.domainId,
73
+ module: "doc_config",
74
+ key: "restaurants"
75
+ });
76
+ if (code === 0 && message && message.length > 0) {
77
+ const sources = JSON.parse(message[message.length - 1].value);
78
+ options.value = sources.map((item) => ({
79
+ label: item.name || item,
80
+ value: item.id || item
81
+ }));
82
+ }
83
+ } else if ((_c = props.meta) == null ? void 0 : _c.options) {
84
+ options.value = props.meta.options;
85
+ }
86
+ } catch (error) {
87
+ console.error("\u52A0\u8F7D\u9009\u9879\u5931\u8D25:", error);
88
+ }
89
+ };
90
+ function initDefault() {
91
+ var _a;
92
+ if (((_a = props.meta) == null ? void 0 : _a.key) === "signature_template_id" && !modelValue.value) {
93
+ const defaultItem = options.value.find(
94
+ (opt) => {
95
+ var _a2, _b;
96
+ return ((_a2 = opt.meta) == null ? void 0 : _a2.is_default) || ((_b = opt.meta) == null ? void 0 : _b.default) === true;
97
+ }
98
+ );
99
+ if (defaultItem) {
100
+ modelValue.value = defaultItem.value;
101
+ return;
102
+ }
103
+ if (options.value.length > 0) {
104
+ modelValue.value = options.value[0].value;
105
+ }
106
+ }
107
+ }
108
+ async function loadSignatureTemplates() {
109
+ var _a;
110
+ if (((_a = props.meta) == null ? void 0 : _a.key) === "signature_template_id" && props.BASE_API) {
111
+ try {
112
+ console.log("\u5F00\u59CB\u52A0\u8F7D\u7F72\u540D\u6A21\u7248\u9009\u9879\uFF0CBASE_API:", props.BASE_API);
113
+ const { code, message } = await getBylineTemplates(props.BASE_API, {
114
+ default_top: true
115
+ });
116
+ console.log("\u7F72\u540D\u6A21\u7248\u63A5\u53E3\u8FD4\u56DE:", { code, message });
117
+ if (code === 0 && Array.isArray(message)) {
118
+ const formattedOptions = message.map((item) => ({
119
+ label: item.title,
120
+ value: String(item.id),
121
+ meta: item
122
+ }));
123
+ formattedOptions.unshift({
124
+ label: "\u4E0D\u4F7F\u7528\u7F72\u540D\u6A21\u677F",
125
+ value: "0"
126
+ });
127
+ options.value = formattedOptions;
128
+ console.log("\u7F72\u540D\u6A21\u7248\u9009\u9879\u52A0\u8F7D\u5B8C\u6210:", options.value);
129
+ initDefault();
130
+ }
131
+ } catch (error) {
132
+ console.error("\u52A0\u8F7D\u7F72\u540D\u6A21\u7248\u5931\u8D25:", error);
133
+ }
134
+ }
135
+ }
136
+ watch(
137
+ () => props.meta,
138
+ () => {
139
+ var _a;
140
+ if (((_a = props.meta) == null ? void 0 : _a.key) === "signature_template_id") {
141
+ return;
142
+ }
143
+ loadOptions();
144
+ },
145
+ { deep: true, immediate: true }
146
+ );
147
+ watch(
148
+ () => options.value.length,
149
+ () => {
150
+ var _a;
151
+ if (((_a = props.meta) == null ? void 0 : _a.key) === "signature_template_id") {
152
+ return;
153
+ }
154
+ initDefault();
155
+ }
156
+ );
157
+ onMounted(async () => {
158
+ var _a;
159
+ if (((_a = props.meta) == null ? void 0 : _a.key) === "signature_template_id") {
160
+ await loadSignatureTemplates();
161
+ } else {
162
+ loadOptions();
163
+ initDefault();
164
+ }
165
+ });
166
+ return (_ctx, _cache) => {
167
+ var _a, _b, _c;
168
+ return openBlock(), createElementBlock("div", {
169
+ id: `form-item-${__props.value}`,
170
+ class: "form-item-wrp form-content form-select-wrp"
171
+ }, [
172
+ createVNode(unref(Select), {
173
+ "model-value": modelValue.value,
174
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
175
+ multiple: (_a = __props.meta) == null ? void 0 : _a.isMultiple,
176
+ "allow-search": (_b = __props.meta) == null ? void 0 : _b.isSearch,
177
+ placeholder: __props.placeholder || "\u8BF7\u9009\u62E9",
178
+ limit: ((_c = __props.meta) == null ? void 0 : _c.maxcount) || 0,
179
+ "trigger-props": { updateAtScroll: true },
180
+ "popup-container": __props.value ? `#form-item-${__props.value}` : void 0,
181
+ "allow-clear": ""
182
+ }, {
183
+ default: withCtx(() => [
184
+ (openBlock(true), createElementBlock(Fragment, null, renderList(options.value, (option) => {
185
+ return openBlock(), createBlock(unref(Option), {
186
+ key: option.value,
187
+ value: option.value,
188
+ label: option.label,
189
+ disabled: option.disabled
190
+ }, {
191
+ default: withCtx(() => [
192
+ createTextVNode(toDisplayString(option.label), 1)
193
+ ]),
194
+ _: 2
195
+ }, 1032, ["value", "label", "disabled"]);
196
+ }), 128))
197
+ ]),
198
+ _: 1
199
+ }, 8, ["model-value", "multiple", "allow-search", "placeholder", "limit", "popup-container"])
200
+ ], 8, _hoisted_1);
201
+ };
202
+ }
203
+ });
204
+ var FSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0b441498"]]);
205
+ export { FSelect as default };
@@ -0,0 +1,2 @@
1
+ var FSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
2
+ export { FSelect_vue_vue_type_style_index_0_scoped_true_lang as default };
@@ -0,0 +1,34 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref } from "vue";
2
+ import { Switch } from "@arco-design/web-vue";
3
+ import "./FSwitch.vue_vue_type_style_index_0_scoped_true_lang.js";
4
+ import _export_sfc from "../../../_virtual/plugin-vue_export-helper.js";
5
+ const _hoisted_1 = { class: "form-item-wrp form-content" };
6
+ const _sfc_main = defineComponent({
7
+ __name: "FSwitch",
8
+ props: {
9
+ mValue: { type: Boolean },
10
+ label: {},
11
+ meta: {}
12
+ },
13
+ emits: ["update:mValue"],
14
+ setup(__props, { emit: __emit }) {
15
+ const emits = __emit;
16
+ const props = __props;
17
+ const modelValue = computed({
18
+ get: () => props.mValue,
19
+ set: (value) => {
20
+ emits("update:mValue", value);
21
+ }
22
+ });
23
+ return (_ctx, _cache) => {
24
+ return openBlock(), createElementBlock("div", _hoisted_1, [
25
+ createVNode(unref(Switch), {
26
+ "model-value": modelValue.value,
27
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
28
+ }, null, 8, ["model-value"])
29
+ ]);
30
+ };
31
+ }
32
+ });
33
+ var FSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-090be14c"]]);
34
+ export { FSwitch as default };
@@ -0,0 +1,2 @@
1
+ var FSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
2
+ export { FSwitch_vue_vue_type_style_index_0_scoped_true_lang as default };
@@ -0,0 +1,375 @@
1
+ import { defineComponent, computed, toRef, ref, watch, openBlock, createElementBlock, createCommentVNode, unref, createBlock, isRef, withCtx, Fragment, renderList, createTextVNode, toDisplayString, createVNode, createElementVNode, normalizeStyle } from "vue";
2
+ import { RadioGroup, Radio, Switch, Link } from "@arco-design/web-vue";
3
+ import { IconClose } from "@arco-design/web-vue/es/icon";
4
+ import draggable from "vuedraggable";
5
+ import ThumbEditCard from "../ThumbEditCard.js";
6
+ import _sfc_main$1 from "../../../selectThumb/components/colorPicker.js";
7
+ import { useLocalUpload, useThumb, useBanner, useColor, getPayloadImg } from "../options/useThumbs.js";
8
+ import "./FThumb.vue_vue_type_style_index_0_scoped_true_lang.js";
9
+ import _export_sfc from "../../../_virtual/plugin-vue_export-helper.js";
10
+ const _hoisted_1 = { class: "form-item-wrp form-content form-thumb-wrap" };
11
+ const _hoisted_2 = { key: 1 };
12
+ const _hoisted_3 = {
13
+ key: 2,
14
+ class: "thumb-list"
15
+ };
16
+ const _hoisted_4 = { class: "thumb-list-wrap" };
17
+ const _hoisted_5 = { class: "thumb-item" };
18
+ const _hoisted_6 = ["onClick"];
19
+ const _hoisted_7 = {
20
+ key: 0,
21
+ class: "no-thumb-tips"
22
+ };
23
+ const _hoisted_8 = {
24
+ key: 1,
25
+ class: "card-preview"
26
+ };
27
+ const _hoisted_9 = {
28
+ key: 2,
29
+ class: "card-preview"
30
+ };
31
+ const _hoisted_10 = {
32
+ key: 0,
33
+ class: "thumb-tip"
34
+ };
35
+ const _hoisted_11 = {
36
+ key: 3,
37
+ class: "color-picker-wrapper"
38
+ };
39
+ const _sfc_main = defineComponent({
40
+ __name: "FThumb",
41
+ props: {
42
+ mValue: {},
43
+ label: {},
44
+ meta: {},
45
+ series: {},
46
+ payload: {},
47
+ BASE_API: {},
48
+ domainId: {},
49
+ coverModel: {}
50
+ },
51
+ emits: [
52
+ "update:mValue",
53
+ "upload",
54
+ "resource-select",
55
+ "image-edit",
56
+ "preview",
57
+ "cover-model-change"
58
+ ],
59
+ setup(__props, { emit: __emit }) {
60
+ var _a;
61
+ const emits = __emit;
62
+ const props = __props;
63
+ const isThumbType = computed(() => {
64
+ var _a2;
65
+ return ((_a2 = props.meta) == null ? void 0 : _a2.type) === "thumb";
66
+ });
67
+ const isBannerType = computed(() => {
68
+ var _a2;
69
+ return ((_a2 = props.meta) == null ? void 0 : _a2.type) === "banner";
70
+ });
71
+ const isColorPlate = computed(() => {
72
+ var _a2, _b;
73
+ if (!((_a2 = props.meta) == null ? void 0 : _a2.color))
74
+ return false;
75
+ if (((_b = props.meta) == null ? void 0 : _b.key) === "pcBanner") {
76
+ const { series } = props;
77
+ return ["special_v3", "video_album", "audio_album"].includes(series || "");
78
+ }
79
+ return true;
80
+ });
81
+ const metaRef = toRef(props, "meta");
82
+ const modelValue = computed({
83
+ get: () => {
84
+ if (Array.isArray(props.mValue)) {
85
+ return props.mValue;
86
+ }
87
+ return [];
88
+ },
89
+ set: (value) => {
90
+ emits("update:mValue", value);
91
+ }
92
+ });
93
+ const { handleUpload } = useLocalUpload(
94
+ modelValue,
95
+ props.BASE_API,
96
+ props.domainId
97
+ );
98
+ const currentModel = ref((_a = props.coverModel) != null ? _a : 3);
99
+ watch(
100
+ () => props.coverModel,
101
+ (newModel) => {
102
+ if (newModel !== void 0) {
103
+ currentModel.value = newModel;
104
+ }
105
+ },
106
+ { immediate: true }
107
+ );
108
+ const { thumbOptions, selectThumb, ratioStr } = useThumb(
109
+ modelValue,
110
+ metaRef,
111
+ props.series,
112
+ currentModel
113
+ );
114
+ watch(
115
+ () => currentModel.value,
116
+ (newModel) => {
117
+ if (isThumbType.value) {
118
+ emits("cover-model-change", newModel);
119
+ }
120
+ },
121
+ { immediate: true }
122
+ );
123
+ const bannerValueRef = ref(false);
124
+ const { bannerSwitch, showSync, syncThumb } = useBanner(
125
+ modelValue,
126
+ metaRef,
127
+ bannerValueRef
128
+ );
129
+ watch(
130
+ () => isBannerType.value,
131
+ (isBanner) => {
132
+ if (isBanner) {
133
+ bannerValueRef.value = modelValue.value.length > 0;
134
+ }
135
+ },
136
+ { immediate: true }
137
+ );
138
+ watch(
139
+ () => modelValue.value,
140
+ (newValue) => {
141
+ if (isBannerType.value) {
142
+ if (newValue.length === 0 && bannerValueRef.value) {
143
+ bannerValueRef.value = false;
144
+ } else if (newValue.length > 0 && !bannerValueRef.value)
145
+ ;
146
+ }
147
+ },
148
+ { deep: true }
149
+ );
150
+ const colorListValue = computed(() => {
151
+ var _a2;
152
+ if (isColorPlate.value && ((_a2 = modelValue.value[0]) == null ? void 0 : _a2.top_colorList)) {
153
+ return modelValue.value[0].top_colorList;
154
+ }
155
+ return [];
156
+ });
157
+ const { colorListShow, currentColor } = useColor(
158
+ modelValue,
159
+ metaRef,
160
+ props.BASE_API,
161
+ toRef(colorListValue)
162
+ );
163
+ const enableSelect = computed(() => {
164
+ if (isBannerType.value)
165
+ return bannerSwitch.value;
166
+ if (isThumbType.value) {
167
+ return selectThumb.value !== "4";
168
+ }
169
+ return true;
170
+ });
171
+ const shouldShowColorPlate = computed(() => {
172
+ var _a2;
173
+ if (!isColorPlate.value)
174
+ return false;
175
+ if (!((_a2 = modelValue.value[0]) == null ? void 0 : _a2.url))
176
+ return false;
177
+ if (isThumbType.value && selectThumb.value === "4")
178
+ return false;
179
+ return true;
180
+ });
181
+ const aiThumbList = computed(() => {
182
+ if (!props.payload)
183
+ return [];
184
+ return getPayloadImg(props.payload, props.series);
185
+ });
186
+ function handleShowResource(options, callback) {
187
+ const params = {
188
+ data: {
189
+ maxcount: 1,
190
+ filterOptions: {
191
+ mediaType: "image",
192
+ mediaTypeStrict: true
193
+ },
194
+ aiThumbList: aiThumbList.value,
195
+ mediaUseType: 1,
196
+ ...options
197
+ },
198
+ callback
199
+ };
200
+ if (props.series && ["video", "svideo"].includes(props.series)) {
201
+ try {
202
+ const payload = props.payload ? JSON.parse(props.payload) : {};
203
+ if (payload.url) {
204
+ params.data.videoThumbOptions = {
205
+ src: payload.url,
206
+ duration: 50
207
+ };
208
+ }
209
+ } catch (e) {
210
+ console.error("\u89E3\u6790 payload \u5931\u8D25", e);
211
+ }
212
+ }
213
+ emits("resource-select", params);
214
+ }
215
+ function handleHandle(e, idx) {
216
+ const { key } = e;
217
+ if (key === "replace") {
218
+ handleShowResource({}, (data) => {
219
+ const result = JSON.parse(JSON.stringify(modelValue.value));
220
+ const [firstItem] = data;
221
+ result[idx] = firstItem;
222
+ modelValue.value = result;
223
+ });
224
+ }
225
+ if (key === "edit") {
226
+ emits("image-edit", {
227
+ url: modelValue.value[idx].url,
228
+ callback: (data) => {
229
+ if (!data)
230
+ return;
231
+ const ret = JSON.parse(JSON.stringify(modelValue.value));
232
+ ret[idx] = data;
233
+ modelValue.value = ret;
234
+ }
235
+ });
236
+ }
237
+ }
238
+ function handleEdit(e, index) {
239
+ const key = typeof e === "string" ? e : (e == null ? void 0 : e.key) || "resource";
240
+ const maxcount = modelValue.value.reduce(
241
+ (pre, cur) => cur.url ? pre : pre + 1,
242
+ 0
243
+ );
244
+ if (key === "local") {
245
+ handleUpload(index);
246
+ } else {
247
+ handleShowResource({ maxcount }, (data) => {
248
+ let p = 0;
249
+ const result = JSON.parse(JSON.stringify(modelValue.value));
250
+ result.forEach((item, idx) => {
251
+ if (!item.url && data[p])
252
+ result[idx] = data[p++];
253
+ });
254
+ modelValue.value = result;
255
+ });
256
+ }
257
+ }
258
+ function handlePreview() {
259
+ emits("preview", {});
260
+ }
261
+ function handleRemove(idx) {
262
+ const result = JSON.parse(JSON.stringify(modelValue.value));
263
+ result[idx] = { url: "", thumb: "" };
264
+ modelValue.value = result;
265
+ }
266
+ return (_ctx, _cache) => {
267
+ return openBlock(), createElementBlock("div", _hoisted_1, [
268
+ createCommentVNode(" \u5C01\u9762\u56FE\u7C7B\u578B\u9009\u62E9\u5668\uFF08PC \u5C01\u9762\u56FE\u4E0D\u663E\u793A\uFF09 "),
269
+ isThumbType.value && unref(thumbOptions).length > 0 ? (openBlock(), createBlock(unref(RadioGroup), {
270
+ key: 0,
271
+ "model-value": unref(selectThumb),
272
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(selectThumb) ? selectThumb.value = $event : null)
273
+ }, {
274
+ default: withCtx(() => [
275
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(thumbOptions), (thumb) => {
276
+ return openBlock(), createBlock(unref(Radio), {
277
+ key: thumb.value,
278
+ value: thumb.value
279
+ }, {
280
+ default: withCtx(() => [
281
+ createTextVNode(toDisplayString(thumb.label), 1)
282
+ ]),
283
+ _: 2
284
+ }, 1032, ["value"]);
285
+ }), 128))
286
+ ]),
287
+ _: 1
288
+ }, 8, ["model-value"])) : createCommentVNode("v-if", true),
289
+ createCommentVNode(" \u72EC\u7ACB\u8F6E\u64AD\u56FE "),
290
+ isBannerType.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
291
+ createVNode(unref(Switch), {
292
+ "model-value": unref(bannerSwitch),
293
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(bannerSwitch) ? bannerSwitch.value = $event : null)
294
+ }, null, 8, ["model-value"])
295
+ ])) : createCommentVNode("v-if", true),
296
+ createCommentVNode(" \u56FE\u7247\u9009\u62E9\u5668 "),
297
+ enableSelect.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
298
+ createElementVNode("div", _hoisted_4, [
299
+ createVNode(unref(draggable), {
300
+ modelValue: modelValue.value,
301
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => modelValue.value = $event),
302
+ class: "thumb-list-wrap",
303
+ "item-key": (item) => item.id || item.url || item.sig_id || `thumb-${item}`,
304
+ sort: true,
305
+ animation: 150
306
+ }, {
307
+ item: withCtx(({ element: item, index }) => [
308
+ createElementVNode("div", _hoisted_5, [
309
+ createVNode(ThumbEditCard, {
310
+ item,
311
+ onEdit: (e) => handleEdit(e, index),
312
+ onHandle: (e) => handleHandle(e, index)
313
+ }, null, 8, ["item", "onEdit", "onHandle"]),
314
+ item.url ? (openBlock(), createElementBlock("div", {
315
+ key: 0,
316
+ class: "thumb-remove-btn",
317
+ onClick: ($event) => handleRemove(index)
318
+ }, [
319
+ createVNode(unref(IconClose), { style: { "color": "white" } })
320
+ ], 8, _hoisted_6)) : createCommentVNode("v-if", true)
321
+ ])
322
+ ]),
323
+ _: 1
324
+ }, 8, ["modelValue", "item-key"]),
325
+ createCommentVNode(' \u65E0\u5C01\u9762\u63D0\u793A\uFF08\u53EA\u6709\u9009\u62E9"\u65E0\u5C01\u9762"\u65F6\u624D\u663E\u793A\uFF09 '),
326
+ isThumbType.value && unref(selectThumb) === "4" ? (openBlock(), createElementBlock("span", _hoisted_7, "\u65E0\u5C01\u9762")) : createCommentVNode("v-if", true),
327
+ isThumbType.value ? (openBlock(), createElementBlock("div", _hoisted_8, [
328
+ createVNode(unref(Link), { onClick: handlePreview }, {
329
+ default: withCtx(() => [..._cache[5] || (_cache[5] = [
330
+ createTextVNode("\u9884\u89C8", -1)
331
+ ])]),
332
+ _: 1
333
+ })
334
+ ])) : createCommentVNode("v-if", true),
335
+ unref(showSync) ? (openBlock(), createElementBlock("div", _hoisted_9, [
336
+ createVNode(unref(Link), { onClick: unref(syncThumb) }, {
337
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [
338
+ createTextVNode("\u4ECE\u5C01\u9762\u56FE\u540C\u6B65", -1)
339
+ ])]),
340
+ _: 1
341
+ }, 8, ["onClick"])
342
+ ])) : createCommentVNode("v-if", true)
343
+ ]),
344
+ unref(ratioStr) ? (openBlock(), createElementBlock("span", _hoisted_10, "\u5EFA\u8BAE\u6BD4\u4F8B\uFF1A" + toDisplayString(unref(ratioStr)), 1)) : createCommentVNode("v-if", true)
345
+ ])) : createCommentVNode("v-if", true),
346
+ createCommentVNode(" \u53D6\u8272\u5668 "),
347
+ shouldShowColorPlate.value ? (openBlock(), createElementBlock("div", _hoisted_11, [
348
+ createVNode(unref(RadioGroup), {
349
+ "model-value": unref(currentColor),
350
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(currentColor) ? currentColor.value = $event : null),
351
+ class: "color-radio-group",
352
+ type: "button"
353
+ }, {
354
+ default: withCtx(() => [
355
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(colorListShow), (colr, index) => {
356
+ return openBlock(), createBlock(unref(Radio), {
357
+ key: index,
358
+ style: normalizeStyle({ background: `${colr} !important` }),
359
+ value: `${colr}`
360
+ }, null, 8, ["style", "value"]);
361
+ }), 128)),
362
+ createVNode(_sfc_main$1, {
363
+ modelValue: unref(currentColor),
364
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(currentColor) ? currentColor.value = $event : null)
365
+ }, null, 8, ["modelValue"])
366
+ ]),
367
+ _: 1
368
+ }, 8, ["model-value"])
369
+ ])) : createCommentVNode("v-if", true)
370
+ ]);
371
+ };
372
+ }
373
+ });
374
+ var FThumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4f91c880"]]);
375
+ export { FThumb as default };
@@ -0,0 +1,2 @@
1
+ var FThumb_vue_vue_type_style_index_0_scoped_true_lang = "";
2
+ export { FThumb_vue_vue_type_style_index_0_scoped_true_lang as default };
@@ -0,0 +1,26 @@
1
+ import { ref, computed, watch } from "vue";
2
+ function useMorn(modelValue, meta) {
3
+ if (meta.value.type !== "morn")
4
+ return { mornSwitch: ref(false), radioOptions: [] };
5
+ const mornSwitch = computed({
6
+ get: () => modelValue.value !== "0",
7
+ set: (value) => {
8
+ modelValue.value = value ? "1" : "0";
9
+ }
10
+ });
11
+ const radioOptions = [
12
+ { label: "\u9ED8\u54C0\u6A21\u5F0F", value: "1" },
13
+ { label: "\u975E\u9ED8\u54C0\u6A21\u5F0F", value: "2" }
14
+ ];
15
+ watch(
16
+ () => mornSwitch.value,
17
+ (value) => {
18
+ modelValue.value = value ? "1" : "0";
19
+ }
20
+ );
21
+ return {
22
+ mornSwitch,
23
+ radioOptions
24
+ };
25
+ }
26
+ export { useMorn };