@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,206 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ var api = require("../../script/api.js");
5
+ var source = require("../../../hooks/source.js");
6
+ require("./FSelect.vue_vue_type_style_index_0_scoped_true_lang.js");
7
+ var pluginVue_exportHelper = require("../../../_virtual/plugin-vue_export-helper.js");
8
+ const _hoisted_1 = ["id"];
9
+ const _sfc_main = vue.defineComponent({
10
+ __name: "FSelect",
11
+ props: {
12
+ mValue: {},
13
+ label: {},
14
+ placeholder: {},
15
+ meta: {},
16
+ value: {},
17
+ BASE_API: {},
18
+ domainId: {}
19
+ },
20
+ emits: ["update:mValue"],
21
+ setup(__props, { emit: __emit }) {
22
+ const emits = __emit;
23
+ const props = __props;
24
+ const modelValue = vue.computed({
25
+ get: () => props.mValue,
26
+ set: (value) => {
27
+ emits("update:mValue", value);
28
+ }
29
+ });
30
+ const options = vue.ref([]);
31
+ const loadOptions = async () => {
32
+ var _a, _b, _c;
33
+ if (!((_a = props.meta) == null ? void 0 : _a.key)) {
34
+ if ((_b = props.meta) == null ? void 0 : _b.options) {
35
+ options.value = props.meta.options;
36
+ }
37
+ return;
38
+ }
39
+ try {
40
+ if (props.meta.key === "signature_template_id") {
41
+ if (!props.BASE_API) {
42
+ console.warn("signature_template_id \u9700\u8981 BASE_API");
43
+ return;
44
+ }
45
+ console.log("\u5F00\u59CB\u52A0\u8F7D\u7F72\u540D\u6A21\u7248\u9009\u9879\uFF0CBASE_API:", props.BASE_API);
46
+ const { code, message } = await api.getBylineTemplates(props.BASE_API, {
47
+ default_top: true
48
+ });
49
+ console.log("\u7F72\u540D\u6A21\u7248\u63A5\u53E3\u8FD4\u56DE:", { code, message });
50
+ if (code === 0 && Array.isArray(message)) {
51
+ const formattedOptions = message.map((item) => ({
52
+ label: item.title,
53
+ value: String(item.id),
54
+ meta: item
55
+ }));
56
+ formattedOptions.unshift({
57
+ label: "\u4E0D\u4F7F\u7528\u7F72\u540D\u6A21\u677F",
58
+ value: "0"
59
+ });
60
+ options.value = formattedOptions;
61
+ console.log("\u7F72\u540D\u6A21\u7248\u9009\u9879\u52A0\u8F7D\u5B8C\u6210:", options.value);
62
+ }
63
+ } else if (props.meta.key === "dutys") {
64
+ const { code, message } = await api.getAllDutyEditor(props.BASE_API);
65
+ if (code === 0 && (message == null ? void 0 : message.data)) {
66
+ options.value = message.data.map((item) => ({
67
+ label: item.name || item.alias,
68
+ value: item.id
69
+ }));
70
+ }
71
+ } else if (props.meta.key === "sources" && props.domainId) {
72
+ const { code, message } = await source.getConfiguration(props.BASE_API, {
73
+ domain_id: props.domainId,
74
+ module: "doc_config",
75
+ key: "restaurants"
76
+ });
77
+ if (code === 0 && message && message.length > 0) {
78
+ const sources = JSON.parse(message[message.length - 1].value);
79
+ options.value = sources.map((item) => ({
80
+ label: item.name || item,
81
+ value: item.id || item
82
+ }));
83
+ }
84
+ } else if ((_c = props.meta) == null ? void 0 : _c.options) {
85
+ options.value = props.meta.options;
86
+ }
87
+ } catch (error) {
88
+ console.error("\u52A0\u8F7D\u9009\u9879\u5931\u8D25:", error);
89
+ }
90
+ };
91
+ function initDefault() {
92
+ var _a;
93
+ if (((_a = props.meta) == null ? void 0 : _a.key) === "signature_template_id" && !modelValue.value) {
94
+ const defaultItem = options.value.find(
95
+ (opt) => {
96
+ var _a2, _b;
97
+ return ((_a2 = opt.meta) == null ? void 0 : _a2.is_default) || ((_b = opt.meta) == null ? void 0 : _b.default) === true;
98
+ }
99
+ );
100
+ if (defaultItem) {
101
+ modelValue.value = defaultItem.value;
102
+ return;
103
+ }
104
+ if (options.value.length > 0) {
105
+ modelValue.value = options.value[0].value;
106
+ }
107
+ }
108
+ }
109
+ async function loadSignatureTemplates() {
110
+ var _a;
111
+ if (((_a = props.meta) == null ? void 0 : _a.key) === "signature_template_id" && props.BASE_API) {
112
+ try {
113
+ console.log("\u5F00\u59CB\u52A0\u8F7D\u7F72\u540D\u6A21\u7248\u9009\u9879\uFF0CBASE_API:", props.BASE_API);
114
+ const { code, message } = await api.getBylineTemplates(props.BASE_API, {
115
+ default_top: true
116
+ });
117
+ console.log("\u7F72\u540D\u6A21\u7248\u63A5\u53E3\u8FD4\u56DE:", { code, message });
118
+ if (code === 0 && Array.isArray(message)) {
119
+ const formattedOptions = message.map((item) => ({
120
+ label: item.title,
121
+ value: String(item.id),
122
+ meta: item
123
+ }));
124
+ formattedOptions.unshift({
125
+ label: "\u4E0D\u4F7F\u7528\u7F72\u540D\u6A21\u677F",
126
+ value: "0"
127
+ });
128
+ options.value = formattedOptions;
129
+ console.log("\u7F72\u540D\u6A21\u7248\u9009\u9879\u52A0\u8F7D\u5B8C\u6210:", options.value);
130
+ initDefault();
131
+ }
132
+ } catch (error) {
133
+ console.error("\u52A0\u8F7D\u7F72\u540D\u6A21\u7248\u5931\u8D25:", error);
134
+ }
135
+ }
136
+ }
137
+ vue.watch(
138
+ () => props.meta,
139
+ () => {
140
+ var _a;
141
+ if (((_a = props.meta) == null ? void 0 : _a.key) === "signature_template_id") {
142
+ return;
143
+ }
144
+ loadOptions();
145
+ },
146
+ { deep: true, immediate: true }
147
+ );
148
+ vue.watch(
149
+ () => options.value.length,
150
+ () => {
151
+ var _a;
152
+ if (((_a = props.meta) == null ? void 0 : _a.key) === "signature_template_id") {
153
+ return;
154
+ }
155
+ initDefault();
156
+ }
157
+ );
158
+ vue.onMounted(async () => {
159
+ var _a;
160
+ if (((_a = props.meta) == null ? void 0 : _a.key) === "signature_template_id") {
161
+ await loadSignatureTemplates();
162
+ } else {
163
+ loadOptions();
164
+ initDefault();
165
+ }
166
+ });
167
+ return (_ctx, _cache) => {
168
+ var _a, _b, _c;
169
+ return vue.openBlock(), vue.createElementBlock("div", {
170
+ id: `form-item-${__props.value}`,
171
+ class: "form-item-wrp form-content form-select-wrp"
172
+ }, [
173
+ vue.createVNode(vue.unref(webVue.Select), {
174
+ "model-value": modelValue.value,
175
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
176
+ multiple: (_a = __props.meta) == null ? void 0 : _a.isMultiple,
177
+ "allow-search": (_b = __props.meta) == null ? void 0 : _b.isSearch,
178
+ placeholder: __props.placeholder || "\u8BF7\u9009\u62E9",
179
+ limit: ((_c = __props.meta) == null ? void 0 : _c.maxcount) || 0,
180
+ "trigger-props": { updateAtScroll: true },
181
+ "popup-container": __props.value ? `#form-item-${__props.value}` : void 0,
182
+ "allow-clear": ""
183
+ }, {
184
+ default: vue.withCtx(() => [
185
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(options.value, (option) => {
186
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
187
+ key: option.value,
188
+ value: option.value,
189
+ label: option.label,
190
+ disabled: option.disabled
191
+ }, {
192
+ default: vue.withCtx(() => [
193
+ vue.createTextVNode(vue.toDisplayString(option.label), 1)
194
+ ]),
195
+ _: 2
196
+ }, 1032, ["value", "label", "disabled"]);
197
+ }), 128))
198
+ ]),
199
+ _: 1
200
+ }, 8, ["model-value", "multiple", "allow-search", "placeholder", "limit", "popup-container"])
201
+ ], 8, _hoisted_1);
202
+ };
203
+ }
204
+ });
205
+ var FSelect = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["__scopeId", "data-v-0b441498"]]);
206
+ module.exports = FSelect;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ var FSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
3
+ module.exports = FSelect_vue_vue_type_style_index_0_scoped_true_lang;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ require("./FSwitch.vue_vue_type_style_index_0_scoped_true_lang.js");
5
+ var pluginVue_exportHelper = require("../../../_virtual/plugin-vue_export-helper.js");
6
+ const _hoisted_1 = { class: "form-item-wrp form-content" };
7
+ const _sfc_main = vue.defineComponent({
8
+ __name: "FSwitch",
9
+ props: {
10
+ mValue: { type: Boolean },
11
+ label: {},
12
+ meta: {}
13
+ },
14
+ emits: ["update:mValue"],
15
+ setup(__props, { emit: __emit }) {
16
+ const emits = __emit;
17
+ const props = __props;
18
+ const modelValue = vue.computed({
19
+ get: () => props.mValue,
20
+ set: (value) => {
21
+ emits("update:mValue", value);
22
+ }
23
+ });
24
+ return (_ctx, _cache) => {
25
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
26
+ vue.createVNode(vue.unref(webVue.Switch), {
27
+ "model-value": modelValue.value,
28
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
29
+ }, null, 8, ["model-value"])
30
+ ]);
31
+ };
32
+ }
33
+ });
34
+ var FSwitch = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["__scopeId", "data-v-090be14c"]]);
35
+ module.exports = FSwitch;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ var FSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
3
+ module.exports = FSwitch_vue_vue_type_style_index_0_scoped_true_lang;
@@ -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;