@cmstops/pro-compo 3.10.5-stable.1 → 3.10.5-stable.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/dist/editDocMeta/components/fields/options/useCustom.d.ts +12 -0
  2. package/dist/editDocMeta/components/options/useThumbs.d.ts +29 -0
  3. package/dist/editDocMeta/hooks/useMetaOptions.d.ts +49 -0
  4. package/dist/editDocMeta/index.d.ts +3 -0
  5. package/dist/editDocMeta/script/api.d.ts +13 -0
  6. package/dist/editMetaInfo/script/api.d.ts +13 -0
  7. package/dist/index.css +281 -0
  8. package/{es → dist}/index.d.ts +1 -0
  9. package/dist/index.min.css +1 -1
  10. package/dist/selectThumb/components/colorPalette.d.ts +0 -0
  11. package/dist/selectThumb/components/colorPicker.d.ts +0 -0
  12. package/dist/thumbCard/component.d.ts +0 -0
  13. package/dist/thumbCard/components/ThumbUploading/index.d.ts +0 -0
  14. package/dist/typeIcons/component.d.ts +0 -0
  15. package/dist/uploadBefore/component.d.ts +0 -0
  16. package/dist/uploadBefore/components/UploadBefore.d.ts +0 -0
  17. package/dist/uploadBefore/components/UploadForClick.d.ts +0 -0
  18. package/dist/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
  19. package/dist/uploadStep/component.d.ts +0 -0
  20. package/dist/userAvater/component.d.ts +0 -0
  21. package/dist/userDirector/component.d.ts +0 -0
  22. package/dist/userDirector/components/userTree.d.ts +0 -0
  23. package/dist/videoThumb/component.d.ts +0 -0
  24. package/dist/videoThumb/style/index.d.ts +1 -0
  25. package/es/contentModal/component.js +2 -1
  26. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +3 -2
  27. package/es/contentModal/components/ViewAllColumn/index.js +44 -20
  28. package/es/editDocMeta/component.js +364 -0
  29. package/es/editDocMeta/components/Adapter.js +209 -0
  30. package/es/editDocMeta/components/CustomSubTitle.js +21 -0
  31. package/es/editDocMeta/components/ThumbEditCard.js +75 -0
  32. package/es/editDocMeta/components/docMetaForm.js +563 -0
  33. package/es/editDocMeta/components/fields/FCheckbox.js +61 -0
  34. package/es/editDocMeta/components/fields/FContentModel.js +82 -0
  35. package/es/editDocMeta/components/fields/FCustom.js +78 -0
  36. package/es/editDocMeta/components/fields/FDate.js +40 -0
  37. package/es/editDocMeta/components/fields/FInput.js +115 -0
  38. package/es/editDocMeta/components/fields/FRadio.js +60 -0
  39. package/es/editDocMeta/components/fields/FSelect.js +202 -0
  40. package/es/editDocMeta/components/fields/FSwitch.js +31 -0
  41. package/es/editDocMeta/components/fields/FThumb.js +372 -0
  42. package/es/editDocMeta/components/fields/options/useCustom.js +26 -0
  43. package/es/editDocMeta/components/options/useThumbs.js +274 -0
  44. package/es/editDocMeta/hooks/useMetaOptions.js +282 -0
  45. package/es/editDocMeta/index.js +10 -0
  46. package/es/editDocMeta/script/api.js +47 -0
  47. package/es/editDocMeta/style/Adapter.less +28 -0
  48. package/es/editDocMeta/style/CustomSubTitle.less +26 -0
  49. package/es/editDocMeta/style/FCheckbox.less +17 -0
  50. package/es/editDocMeta/style/FContentModel.less +32 -0
  51. package/es/editDocMeta/style/FCustom.less +18 -0
  52. package/es/editDocMeta/style/FDate.less +4 -0
  53. package/es/editDocMeta/style/FInput.less +23 -0
  54. package/es/editDocMeta/style/FRadio.less +17 -0
  55. package/es/editDocMeta/style/FSelect.less +4 -0
  56. package/es/editDocMeta/style/FSwitch.less +4 -0
  57. package/es/editDocMeta/style/FThumb.less +111 -0
  58. package/es/editDocMeta/style/ThumbEditCard.less +32 -0
  59. package/es/editDocMeta/style/css.js +1 -0
  60. package/es/editDocMeta/style/docMetaForm.less +22 -0
  61. package/es/editDocMeta/style/index.css +281 -0
  62. package/es/editDocMeta/style/index.js +1 -0
  63. package/es/editDocMeta/style/index.less +21 -0
  64. package/es/editMetaInfo/component.js +26 -6
  65. package/es/editMetaInfo/components/metaInfoForm.js +347 -6
  66. package/es/editMetaInfo/script/api.js +20 -1
  67. package/es/hooks/visible.js +16 -0
  68. package/es/index.css +281 -0
  69. package/es/index.js +1 -0
  70. package/es/index.less +1 -0
  71. package/es/selectResourceModal/components/List/ListNormal/index.js +4 -2
  72. package/es/style.css +281 -0
  73. package/lib/contentModal/component.js +2 -1
  74. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +3 -2
  75. package/lib/contentModal/components/ViewAllColumn/index.js +43 -19
  76. package/lib/editDocMeta/component.js +365 -0
  77. package/lib/editDocMeta/components/Adapter.js +210 -0
  78. package/lib/editDocMeta/components/CustomSubTitle.js +22 -0
  79. package/lib/editDocMeta/components/ThumbEditCard.js +76 -0
  80. package/lib/editDocMeta/components/docMetaForm.js +564 -0
  81. package/lib/editDocMeta/components/fields/FCheckbox.js +62 -0
  82. package/lib/editDocMeta/components/fields/FContentModel.js +83 -0
  83. package/lib/editDocMeta/components/fields/FCustom.js +79 -0
  84. package/lib/editDocMeta/components/fields/FDate.js +41 -0
  85. package/lib/editDocMeta/components/fields/FInput.js +116 -0
  86. package/lib/editDocMeta/components/fields/FRadio.js +61 -0
  87. package/lib/editDocMeta/components/fields/FSelect.js +203 -0
  88. package/lib/editDocMeta/components/fields/FSwitch.js +32 -0
  89. package/lib/editDocMeta/components/fields/FThumb.js +377 -0
  90. package/lib/editDocMeta/components/fields/options/useCustom.js +28 -0
  91. package/lib/editDocMeta/components/options/useThumbs.js +283 -0
  92. package/lib/editDocMeta/hooks/useMetaOptions.js +283 -0
  93. package/lib/editDocMeta/index.js +11 -0
  94. package/lib/editDocMeta/script/api.js +54 -0
  95. package/lib/editDocMeta/style/Adapter.less +28 -0
  96. package/lib/editDocMeta/style/CustomSubTitle.less +26 -0
  97. package/lib/editDocMeta/style/FCheckbox.less +17 -0
  98. package/lib/editDocMeta/style/FContentModel.less +32 -0
  99. package/lib/editDocMeta/style/FCustom.less +18 -0
  100. package/lib/editDocMeta/style/FDate.less +4 -0
  101. package/lib/editDocMeta/style/FInput.less +23 -0
  102. package/lib/editDocMeta/style/FRadio.less +17 -0
  103. package/lib/editDocMeta/style/FSelect.less +4 -0
  104. package/lib/editDocMeta/style/FSwitch.less +4 -0
  105. package/lib/editDocMeta/style/FThumb.less +111 -0
  106. package/lib/editDocMeta/style/ThumbEditCard.less +32 -0
  107. package/lib/editDocMeta/style/css.js +2 -0
  108. package/lib/editDocMeta/style/docMetaForm.less +22 -0
  109. package/lib/editDocMeta/style/index.css +281 -0
  110. package/lib/editDocMeta/style/index.js +2 -0
  111. package/lib/editDocMeta/style/index.less +21 -0
  112. package/lib/editMetaInfo/component.js +25 -5
  113. package/lib/editMetaInfo/components/metaInfoForm.js +345 -4
  114. package/lib/editMetaInfo/script/api.js +21 -0
  115. package/lib/hooks/visible.js +17 -0
  116. package/lib/index.css +281 -0
  117. package/lib/index.js +2 -0
  118. package/lib/index.less +1 -0
  119. package/lib/selectResourceModal/components/List/ListNormal/index.js +3 -1
  120. package/package.json +21 -13
  121. package/es/editMetaInfo/script/api.d.ts +0 -6
  122. /package/{es → dist}/appCenter/component.d.ts +0 -0
  123. /package/{es → dist}/appCenter/index.d.ts +0 -0
  124. /package/{es → dist}/appCenter/script/api.d.ts +0 -0
  125. /package/{es → dist}/appCenter/script/apps.d.ts +0 -0
  126. /package/{es → dist}/appCenter/script/permissionMap.d.ts +0 -0
  127. /package/{es → dist}/appCenter/script/routeMap.d.ts +0 -0
  128. /package/{es → dist}/appCenter/style/index.d.ts +0 -0
  129. /package/{es → dist}/baseFilter/component.d.ts +0 -0
  130. /package/{es → dist}/baseFilter/components/FilterGroup.d.ts +0 -0
  131. /package/{es → dist}/baseFilter/components/filterItem.d.ts +0 -0
  132. /package/{es → dist}/baseFilter/index.d.ts +0 -0
  133. /package/{es → dist}/baseFilter/style/index.d.ts +0 -0
  134. /package/{es → dist}/baseFilter/useCalcWidth.d.ts +0 -0
  135. /package/{es → dist}/colorPalette/component.d.ts +0 -0
  136. /package/{es → dist}/colorPalette/components/colorPicker.d.ts +0 -0
  137. /package/{es → dist}/colorPalette/index.d.ts +0 -0
  138. /package/{es → dist}/colorPalette/style/index.d.ts +0 -0
  139. /package/{es → dist}/components.d.ts +0 -0
  140. /package/{es → dist}/config.d.ts +0 -0
  141. /package/{es → dist}/contentDetailList/__demo__/matrix/platform.d.ts +0 -0
  142. /package/{es → dist}/contentDetailList/component.d.ts +0 -0
  143. /package/{es → dist}/contentDetailList/components/Content/CompoItem/index.d.ts +0 -0
  144. /package/{es → dist}/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
  145. /package/{es → dist}/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
  146. /package/{es → dist}/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
  147. /package/{es → dist}/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
  148. /package/{es → dist}/contentDetailList/components/Content/GroupPieceItem/index.d.ts +0 -0
  149. /package/{es → dist}/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
  150. /package/{es → dist}/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
  151. /package/{es → dist}/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
  152. /package/{es → dist}/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
  153. /package/{es → dist}/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
  154. /package/{es → dist}/contentDetailList/components/Content/index.d.ts +0 -0
  155. /package/{es → dist}/contentDetailList/components/CustomWrp/CustomItem.d.ts +0 -0
  156. /package/{es → dist}/contentDetailList/components/CustomWrp/index.d.ts +0 -0
  157. /package/{es → dist}/contentDetailList/components/Doc/index.d.ts +0 -0
  158. /package/{es → dist}/contentDetailList/components/Records/MatrixItem/index.d.ts +0 -0
  159. /package/{es → dist}/contentDetailList/components/Records/index.d.ts +0 -0
  160. /package/{es → dist}/contentDetailList/components/ShowQRCode/QrcodeView/index.d.ts +0 -0
  161. /package/{es → dist}/contentDetailList/components/ShowQRCode/index.d.ts +0 -0
  162. /package/{es → dist}/contentDetailList/index.d.ts +0 -0
  163. /package/{es → dist}/contentDetailList/script/api.d.ts +0 -0
  164. /package/{es → dist}/contentDetailList/style/index.d.ts +0 -0
  165. /package/{es → dist}/contentModal/component.d.ts +0 -0
  166. /package/{es → dist}/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
  167. /package/{es → dist}/contentModal/components/CompoList/index.d.ts +0 -0
  168. /package/{es → dist}/contentModal/components/ContentList/MediaFilter/index.d.ts +0 -0
  169. /package/{es → dist}/contentModal/components/ContentList/index.d.ts +0 -0
  170. /package/{es → dist}/contentModal/components/Dejin/MediaFilter/index.d.ts +0 -0
  171. /package/{es → dist}/contentModal/components/Dejin/index.d.ts +0 -0
  172. /package/{es → dist}/contentModal/components/EqxiuList/MediaFilter/index.d.ts +0 -0
  173. /package/{es → dist}/contentModal/components/EqxiuList/index.d.ts +0 -0
  174. /package/{es → dist}/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  175. /package/{es → dist}/contentModal/components/LiveList/index.d.ts +0 -0
  176. /package/{es → dist}/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  177. /package/{es → dist}/contentModal/components/MpAccountList/index.d.ts +0 -0
  178. /package/{es → dist}/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  179. /package/{es → dist}/contentModal/components/MpContentList/index.d.ts +0 -0
  180. /package/{es → dist}/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  181. /package/{es → dist}/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
  182. /package/{es → dist}/contentModal/components/ViewAllColumn/index.d.ts +0 -0
  183. /package/{es → dist}/contentModal/components/storeBox/index.d.ts +0 -0
  184. /package/{es → dist}/contentModal/index.d.ts +0 -0
  185. /package/{es → dist}/contentModal/script/api.d.ts +0 -0
  186. /package/{es → dist}/contentModal/style/index.d.ts +0 -0
  187. /package/{es → dist}/dataTags/component.d.ts +0 -0
  188. /package/{es → dist}/dataTags/index.d.ts +0 -0
  189. /package/{es → dist}/dataTags/style/index.d.ts +0 -0
  190. /package/{es → dist}/docHistory/component.d.ts +0 -0
  191. /package/{es → dist}/docHistory/components/DocDiffPanel/index.d.ts +0 -0
  192. /package/{es → dist}/docHistory/components/DocHistoryList/index.d.ts +0 -0
  193. /package/{es → dist}/docHistory/index.d.ts +0 -0
  194. /package/{es → dist}/docHistory/scripts/diff.d.ts +0 -0
  195. /package/{es → dist}/docHistory/scripts/useDocHistory.d.ts +0 -0
  196. /package/{es → dist}/docHistory/style/index.d.ts +0 -0
  197. /package/{es → dist}/docPreview/component.d.ts +0 -0
  198. /package/{es → dist}/docPreview/components/PreviewIframe.d.ts +0 -0
  199. /package/{es → dist}/docPreview/index.d.ts +0 -0
  200. /package/{es → dist}/docPreview/scripts/api.d.ts +0 -0
  201. /package/{es → dist}/docPreview/scripts/hook.d.ts +0 -0
  202. /package/{es → dist}/docPreview/style/index.d.ts +0 -0
  203. /package/{es/editMetaInfo → dist/editDocMeta}/component.d.ts +0 -0
  204. /package/{es/editMetaInfo/components/metaInfoForm.d.ts → dist/editDocMeta/components/Adapter.d.ts} +0 -0
  205. /package/{es/emptyData/component.d.ts → dist/editDocMeta/components/CustomSubTitle.d.ts} +0 -0
  206. /package/{es/emptyData/svg/add.d.ts → dist/editDocMeta/components/ThumbEditCard.d.ts} +0 -0
  207. /package/{es/imageCrop/component.d.ts → dist/editDocMeta/components/docMetaForm.d.ts} +0 -0
  208. /package/{es/importData/component.d.ts → dist/editDocMeta/components/fields/FCheckbox.d.ts} +0 -0
  209. /package/{es/mediaFilter/component.d.ts → dist/editDocMeta/components/fields/FContentModel.d.ts} +0 -0
  210. /package/{es/mediaFilter/components/DocFilter.d.ts → dist/editDocMeta/components/fields/FCustom.d.ts} +0 -0
  211. /package/{es/mediaFilter/components/FilterGroup.d.ts → dist/editDocMeta/components/fields/FDate.d.ts} +0 -0
  212. /package/{es/mediaFilter/components/FilterItem.d.ts → dist/editDocMeta/components/fields/FInput.d.ts} +0 -0
  213. /package/{es/mediaFilter/components/MpAccountFilter.d.ts → dist/editDocMeta/components/fields/FRadio.d.ts} +0 -0
  214. /package/{es/mediaFilter/components/MpContentFilter.d.ts → dist/editDocMeta/components/fields/FSelect.d.ts} +0 -0
  215. /package/{es/mediaView/component.d.ts → dist/editDocMeta/components/fields/FSwitch.d.ts} +0 -0
  216. /package/{es/messageBox/component.d.ts → dist/editDocMeta/components/fields/FThumb.d.ts} +0 -0
  217. /package/{es/editMetaInfo → dist/editDocMeta}/style/index.d.ts +0 -0
  218. /package/{es/previousVersion → dist/editMetaInfo}/component.d.ts +0 -0
  219. /package/{es/messageBox/list.d.ts → dist/editMetaInfo/components/metaInfoForm.d.ts} +0 -0
  220. /package/{es → dist}/editMetaInfo/index.d.ts +0 -0
  221. /package/{es → dist}/editMetaInfo/script/restaurants.d.ts +0 -0
  222. /package/{es/emptyData → dist/editMetaInfo}/style/index.d.ts +0 -0
  223. /package/{es/resourceGridList → dist/emptyData}/component.d.ts +0 -0
  224. /package/{es → dist}/emptyData/index.d.ts +0 -0
  225. /package/{es/imageCrop → dist/emptyData}/style/index.d.ts +0 -0
  226. /package/{es/resourceGridList/components/FileTypeThumb/index.d.ts → dist/emptyData/svg/add.d.ts} +0 -0
  227. /package/{es → dist}/hooks/assets.d.ts +0 -0
  228. /package/{es → dist}/hooks/batch.d.ts +0 -0
  229. /package/{es → dist}/hooks/dialogVisible.d.ts +0 -0
  230. /package/{es → dist}/hooks/source.d.ts +0 -0
  231. /package/{es → dist}/hooks/toggle.d.ts +0 -0
  232. /package/{es → dist}/hooks/useAttachement.d.ts +0 -0
  233. /package/{es → dist}/hooks/useLocalStorage.d.ts +0 -0
  234. /package/{es → dist}/hooks/useMediaContext.d.ts +0 -0
  235. /package/{es → dist}/hooks/usePopper.d.ts +0 -0
  236. /package/{es → dist}/hooks/useSelection.d.ts +0 -0
  237. /package/{es → dist}/hooks/useUpload.d.ts +0 -0
  238. /package/{es → dist}/hooks/user.d.ts +0 -0
  239. /package/{es/resourceModal → dist/imageCrop}/component.d.ts +0 -0
  240. /package/{es → dist}/imageCrop/index.d.ts +0 -0
  241. /package/{es → dist}/imageCrop/script/api.d.ts +0 -0
  242. /package/{es/importData → dist/imageCrop}/style/index.d.ts +0 -0
  243. /package/{es/selectAddTo → dist/importData}/component.d.ts +0 -0
  244. /package/{es → dist}/importData/index.d.ts +0 -0
  245. /package/{es/mediaFilter → dist/importData}/style/index.d.ts +0 -0
  246. /package/{es/selectAvatarList → dist/mediaFilter}/component.d.ts +0 -0
  247. /package/{es/resourceModal/components/MediaPreviewer/index.d.ts → dist/mediaFilter/components/DocFilter.d.ts} +0 -0
  248. /package/{es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts → dist/mediaFilter/components/FilterGroup.d.ts} +0 -0
  249. /package/{es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts → dist/mediaFilter/components/FilterItem.d.ts} +0 -0
  250. /package/{es/resourceModal/components/MediaSelection/MainContent/index.d.ts → dist/mediaFilter/components/MpAccountFilter.d.ts} +0 -0
  251. /package/{es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts → dist/mediaFilter/components/MpContentFilter.d.ts} +0 -0
  252. /package/{es → dist}/mediaFilter/index.d.ts +0 -0
  253. /package/{es → dist}/mediaFilter/script/optionsGetter.d.ts +0 -0
  254. /package/{es → dist}/mediaFilter/script/types.d.ts +0 -0
  255. /package/{es/mediaView → dist/mediaFilter}/style/index.d.ts +0 -0
  256. /package/{es/selectGategory → dist/mediaView}/component.d.ts +0 -0
  257. /package/{es → dist}/mediaView/index.d.ts +0 -0
  258. /package/{es/messageBox → dist/mediaView}/style/index.d.ts +0 -0
  259. /package/{es/selectResourceModal → dist/messageBox}/component.d.ts +0 -0
  260. /package/{es → dist}/messageBox/index.d.ts +0 -0
  261. /package/{es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts → dist/messageBox/list.d.ts} +0 -0
  262. /package/{es → dist}/messageBox/script/api.d.ts +0 -0
  263. /package/{es/previousVersion → dist/messageBox}/style/index.d.ts +0 -0
  264. /package/{es/selectThumb → dist/previousVersion}/component.d.ts +0 -0
  265. /package/{es → dist}/previousVersion/index.d.ts +0 -0
  266. /package/{es → dist}/previousVersion/script/api.d.ts +0 -0
  267. /package/{es → dist}/previousVersion/script/tool.d.ts +0 -0
  268. /package/{es/resourceGridList → dist/previousVersion}/style/index.d.ts +0 -0
  269. /package/{es/thumbCard → dist/resourceGridList}/component.d.ts +0 -0
  270. /package/{es/resourceModal/components/MediaSelection/SystemResourceSelected → dist/resourceGridList/components/FileTypeThumb}/index.d.ts +0 -0
  271. /package/{es → dist}/resourceGridList/index.d.ts +0 -0
  272. /package/{es/resourceModal → dist/resourceGridList}/style/index.d.ts +0 -0
  273. /package/{es/typeIcons → dist/resourceModal}/component.d.ts +0 -0
  274. /package/{es/resourceModal/components/MediaSelection/ToolbarSearch → dist/resourceModal/components/MediaPreviewer}/index.d.ts +0 -0
  275. /package/{es/resourceModal/components/MediaSelection → dist/resourceModal/components/MediaSelection/DocAiMediaSelected}/index.d.ts +0 -0
  276. /package/{es/selectAddTo/components/ViewAllColumn/MediaFilter → dist/resourceModal/components/MediaSelection/MainContent/FileTypeThumb}/index.d.ts +0 -0
  277. /package/{es/selectAddTo/components/ViewAllColumn → dist/resourceModal/components/MediaSelection/MainContent}/index.d.ts +0 -0
  278. /package/{es/selectAddTo/components/SelectAddToView.d.ts → dist/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts} +0 -0
  279. /package/{es/selectGategory/components/ColumnSelection/index.d.ts → dist/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts} +0 -0
  280. /package/{es/selectResourceModal/components/List/ListAi → dist/resourceModal/components/MediaSelection/SystemResourceSelected}/index.d.ts +0 -0
  281. /package/{es/selectResourceModal/components/List/ListLocal → dist/resourceModal/components/MediaSelection/ToolbarSearch}/index.d.ts +0 -0
  282. /package/{es/selectResourceModal/components/List/ListNormal → dist/resourceModal/components/MediaSelection}/index.d.ts +0 -0
  283. /package/{es → dist}/resourceModal/index.d.ts +0 -0
  284. /package/{es → dist}/resourceModal/script/api.d.ts +0 -0
  285. /package/{es → dist}/resourceModal/script/mediaSelection.d.ts +0 -0
  286. /package/{es/selectAddTo → dist/resourceModal}/style/index.d.ts +0 -0
  287. /package/{es/uploadBefore → dist/selectAddTo}/component.d.ts +0 -0
  288. /package/{es/selectResourceModal/components/List/ListCardWrapper.d.ts → dist/selectAddTo/components/SelectAddToView.d.ts} +0 -0
  289. /package/{es/selectResourceModal/components/List/ListSystem → dist/selectAddTo/components/ViewAllColumn/MediaFilter}/index.d.ts +0 -0
  290. /package/{es/selectResourceModal/components/List/ListVideo → dist/selectAddTo/components/ViewAllColumn}/index.d.ts +0 -0
  291. /package/{es → dist}/selectAddTo/components/ViewAllColumn/script/useTableColumns.d.ts +0 -0
  292. /package/{es → dist}/selectAddTo/components/ViewAllColumn/script/useViewAllColumnState.d.ts +0 -0
  293. /package/{es → dist}/selectAddTo/components/ViewAllColumn/types/index.d.ts +0 -0
  294. /package/{es → dist}/selectAddTo/index.d.ts +0 -0
  295. /package/{es → dist}/selectAddTo/script/api.d.ts +0 -0
  296. /package/{es → dist}/selectAddTo/script/index.d.ts +0 -0
  297. /package/{es → dist}/selectAddTo/script/useSelectAddToState.d.ts +0 -0
  298. /package/{es/selectAvatarList → dist/selectAddTo}/style/index.d.ts +0 -0
  299. /package/{es → dist}/selectAddTo/types/index.d.ts +0 -0
  300. /package/{es/uploadStep → dist/selectAvatarList}/component.d.ts +0 -0
  301. /package/{es → dist}/selectAvatarList/index.d.ts +0 -0
  302. /package/{es/selectGategory → dist/selectAvatarList}/style/index.d.ts +0 -0
  303. /package/{es/userAvater → dist/selectGategory}/component.d.ts +0 -0
  304. /package/{es/selectResourceModal/components/ListSelected → dist/selectGategory/components/ColumnSelection}/index.d.ts +0 -0
  305. /package/{es → dist}/selectGategory/index.d.ts +0 -0
  306. /package/{es → dist}/selectGategory/script/api.d.ts +0 -0
  307. /package/{es/selectResourceModal → dist/selectGategory}/style/index.d.ts +0 -0
  308. /package/{es → dist}/selectResourceModal/__demo__/module/DivWrapper.d.ts +0 -0
  309. /package/{es → dist}/selectResourceModal/__demo__/module/basic.d.ts +0 -0
  310. /package/{es/userDirector → dist/selectResourceModal}/component.d.ts +0 -0
  311. /package/{es/selectResourceModal/components/ListTabs → dist/selectResourceModal/components/List/ListAi}/index.d.ts +0 -0
  312. /package/{es/selectResourceModal/components/List/ListLocal/Upload.d.ts → dist/selectResourceModal/components/List/ListCardWrapper.d.ts} +0 -0
  313. /package/{es/selectResourceModal/components/List/ListNormal/Filter.d.ts → dist/selectResourceModal/components/List/ListLocal/Upload.d.ts} +0 -0
  314. /package/{es/thumbCard/components/ThumbUploading → dist/selectResourceModal/components/List/ListLocal}/index.d.ts +0 -0
  315. /package/{es/selectResourceModal/components/List/ListSystem → dist/selectResourceModal/components/List/ListNormal}/Filter.d.ts +0 -0
  316. /package/{es/selectResourceModal/components/List/ListSystem/SubList.d.ts → dist/selectResourceModal/components/List/ListNormal/index.d.ts} +0 -0
  317. /package/{es/selectResourceModal/components/List/ListWraper.d.ts → dist/selectResourceModal/components/List/ListSystem/Filter.d.ts} +0 -0
  318. /package/{es/selectThumb/components/card.d.ts → dist/selectResourceModal/components/List/ListSystem/SubList.d.ts} +0 -0
  319. /package/{es/selectThumb/components/colorPalette.d.ts → dist/selectResourceModal/components/List/ListSystem/index.d.ts} +0 -0
  320. /package/{es/selectThumb/components/colorPicker.d.ts → dist/selectResourceModal/components/List/ListVideo/index.d.ts} +0 -0
  321. /package/{es/uploadBefore/components/UploadBefore.d.ts → dist/selectResourceModal/components/List/ListWraper.d.ts} +0 -0
  322. /package/{es/uploadBefore/components/UploadForClick.d.ts → dist/selectResourceModal/components/ListSelected/index.d.ts} +0 -0
  323. /package/{es/uploadBefore/utils/dragUploadEvent.d.ts → dist/selectResourceModal/components/ListTabs/index.d.ts} +0 -0
  324. /package/{es → dist}/selectResourceModal/hooks/useResponsiveFilter.d.ts +0 -0
  325. /package/{es → dist}/selectResourceModal/index.d.ts +0 -0
  326. /package/{es → dist}/selectResourceModal/scripts/selectionApis.d.ts +0 -0
  327. /package/{es → dist}/selectResourceModal/scripts/useCompoLf.d.ts +0 -0
  328. /package/{es → dist}/selectResourceModal/scripts/useResourceSelect.d.ts +0 -0
  329. /package/{es → dist}/selectResourceModal/scripts/useTabFilter.d.ts +0 -0
  330. /package/{es/selectThumb → dist/selectResourceModal}/style/index.d.ts +0 -0
  331. /package/{es/videoThumb → dist/selectThumb}/component.d.ts +0 -0
  332. /package/{es/userDirector/components/userTree.d.ts → dist/selectThumb/components/card.d.ts} +0 -0
  333. /package/{es → dist}/selectThumb/index.d.ts +0 -0
  334. /package/{es/thumbCard → dist/selectThumb}/style/index.d.ts +0 -0
  335. /package/{es → dist}/thumbCard/index.d.ts +0 -0
  336. /package/{es/typeIcons → dist/thumbCard}/style/index.d.ts +0 -0
  337. /package/{es → dist}/typeIcons/index.d.ts +0 -0
  338. /package/{es/uploadBefore → dist/typeIcons}/style/index.d.ts +0 -0
  339. /package/{es → dist}/uploadBefore/index.d.ts +0 -0
  340. /package/{es → dist}/uploadBefore/script/api.d.ts +0 -0
  341. /package/{es → dist}/uploadBefore/script/fileTypeAdapter.d.ts +0 -0
  342. /package/{es → dist}/uploadBefore/script/fileUpload.d.ts +0 -0
  343. /package/{es → dist}/uploadBefore/script/uploadHooks.d.ts +0 -0
  344. /package/{es/uploadStep → dist/uploadBefore}/style/index.d.ts +0 -0
  345. /package/{es → dist}/uploadStep/index.d.ts +0 -0
  346. /package/{es → dist}/uploadStep/script/fileTypeAdapter.d.ts +0 -0
  347. /package/{es/userAvater → dist/uploadStep}/style/index.d.ts +0 -0
  348. /package/{es → dist}/userAvater/index.d.ts +0 -0
  349. /package/{es → dist}/userAvater/script/api.d.ts +0 -0
  350. /package/{es/userDirector → dist/userAvater}/style/index.d.ts +0 -0
  351. /package/{es → dist}/userDirector/index.d.ts +0 -0
  352. /package/{es → dist}/userDirector/script/api.d.ts +0 -0
  353. /package/{es/videoThumb → dist/userDirector}/style/index.d.ts +0 -0
  354. /package/{es → dist}/utils/auth.d.ts +0 -0
  355. /package/{es → dist}/utils/date.d.ts +0 -0
  356. /package/{es → dist}/utils/doc.d.ts +0 -0
  357. /package/{es → dist}/utils/filter.d.ts +0 -0
  358. /package/{es → dist}/utils/index.d.ts +0 -0
  359. /package/{es → dist}/utils/request.d.ts +0 -0
  360. /package/{es → dist}/utils/resource.d.ts +0 -0
  361. /package/{es → dist}/utils/transcodeMedia.d.ts +0 -0
  362. /package/{es → dist}/utils/tusUpload.d.ts +0 -0
  363. /package/{es → dist}/utils/typeMap.d.ts +0 -0
  364. /package/{es → dist}/utils/uploadCatalog.d.ts +0 -0
  365. /package/{es → dist}/videoThumb/index.d.ts +0 -0
  366. /package/{es → dist}/videoThumb/scripts/api.d.ts +0 -0
  367. /package/{es → dist}/videoThumb/scripts/useVideoThumbs.d.ts +0 -0
@@ -0,0 +1,83 @@
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
+ const _hoisted_1 = { class: "form-item-wrp form-content form-content-wrapper" };
6
+ const _hoisted_2 = { class: "content-list-wrapper" };
7
+ const _hoisted_3 = { class: "title" };
8
+ const _sfc_main = vue.defineComponent({
9
+ __name: "FContentModel",
10
+ props: {
11
+ mValue: {},
12
+ label: {},
13
+ placeholder: {},
14
+ meta: {}
15
+ },
16
+ emits: ["update:mValue", "select-content"],
17
+ setup(__props, { emit: __emit }) {
18
+ const emits = __emit;
19
+ const props = __props;
20
+ vue.computed({
21
+ get: () => props.mValue || [],
22
+ set: (value) => {
23
+ emits("update:mValue", value);
24
+ }
25
+ });
26
+ const contentList = vue.computed({
27
+ get: () => {
28
+ return Array.isArray(props.mValue) ? props.mValue : [];
29
+ },
30
+ set: (value) => {
31
+ emits("update:mValue", value);
32
+ }
33
+ });
34
+ function handleClick() {
35
+ emits("select-content", {
36
+ meta: props.meta,
37
+ defaultSelectedData: contentList.value
38
+ });
39
+ }
40
+ function handleDelete(index) {
41
+ const newList = [...contentList.value];
42
+ newList.splice(index, 1);
43
+ contentList.value = newList;
44
+ }
45
+ return (_ctx, _cache) => {
46
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
47
+ vue.createVNode(vue.unref(webVue.Button), {
48
+ type: "primary",
49
+ onClick: handleClick
50
+ }, {
51
+ icon: vue.withCtx(() => [
52
+ vue.createVNode(vue.unref(icon.IconPlus))
53
+ ]),
54
+ default: vue.withCtx(() => [
55
+ vue.createTextVNode(" \u6DFB\u52A0\u76F8\u5173" + vue.toDisplayString(__props.meta.label || "\u5185\u5BB9"), 1)
56
+ ]),
57
+ _: 1
58
+ }),
59
+ vue.createElementVNode("div", _hoisted_2, [
60
+ contentList.value && contentList.value.length > 0 ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(contentList.value, (item, index) => {
61
+ return vue.openBlock(), vue.createElementBlock("div", {
62
+ key: index,
63
+ class: "content-item-wrapper"
64
+ }, [
65
+ vue.createElementVNode("div", _hoisted_3, vue.toDisplayString(item.title || item.name || `\u9879\u76EE ${index + 1}`), 1),
66
+ vue.createVNode(vue.unref(webVue.Button), {
67
+ size: "mini",
68
+ type: "text",
69
+ onClick: ($event) => handleDelete(index)
70
+ }, {
71
+ icon: vue.withCtx(() => [
72
+ vue.createVNode(vue.unref(icon.IconDelete))
73
+ ]),
74
+ _: 1
75
+ }, 8, ["onClick"])
76
+ ]);
77
+ }), 128)) : vue.createCommentVNode("v-if", true)
78
+ ])
79
+ ]);
80
+ };
81
+ }
82
+ });
83
+ module.exports = _sfc_main;
@@ -0,0 +1,79 @@
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 useCustom = require("./options/useCustom.js");
6
+ const _hoisted_1 = { class: "form-item-wrp form-content form-custom-wrapper" };
7
+ const _hoisted_2 = {
8
+ key: 0,
9
+ class: "form-morn-item"
10
+ };
11
+ const _hoisted_3 = {
12
+ key: 1,
13
+ class: "form-morn-desc"
14
+ };
15
+ const _sfc_main = vue.defineComponent({
16
+ __name: "FCustom",
17
+ props: {
18
+ mValue: {},
19
+ label: {},
20
+ placeholder: {},
21
+ meta: {}
22
+ },
23
+ emits: ["update:mValue"],
24
+ setup(__props, { emit: __emit }) {
25
+ const emits = __emit;
26
+ const props = __props;
27
+ const customType = vue.computed(() => {
28
+ var _a;
29
+ return (_a = props.meta) == null ? void 0 : _a.type;
30
+ });
31
+ const modelValue = vue.computed({
32
+ get: () => props.mValue,
33
+ set: (value) => {
34
+ emits("update:mValue", value);
35
+ }
36
+ });
37
+ const { mornSwitch, radioOptions } = useCustom.useMorn(modelValue, vue.toRef(props, "meta"));
38
+ return (_ctx, _cache) => {
39
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
40
+ customType.value === "morn" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
41
+ vue.createVNode(vue.unref(webVue.Switch), {
42
+ modelValue: vue.unref(mornSwitch),
43
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(mornSwitch) ? mornSwitch.value = $event : null)
44
+ }, null, 8, ["modelValue"]),
45
+ vue.unref(mornSwitch) ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.RadioGroup), {
46
+ key: 0,
47
+ modelValue: modelValue.value,
48
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => modelValue.value = $event)
49
+ }, {
50
+ default: vue.withCtx(() => [
51
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(radioOptions), (item) => {
52
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Radio), {
53
+ key: item.value,
54
+ value: item.value
55
+ }, {
56
+ default: vue.withCtx(() => [
57
+ vue.createTextVNode(vue.toDisplayString(item.label), 1)
58
+ ]),
59
+ _: 2
60
+ }, 1032, ["value"]);
61
+ }), 128))
62
+ ]),
63
+ _: 1
64
+ }, 8, ["modelValue"])) : vue.createCommentVNode("v-if", true),
65
+ vue.unref(mornSwitch) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
66
+ vue.createVNode(vue.unref(icon.IconInfoCircle)),
67
+ modelValue.value === "1" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
68
+ vue.createTextVNode(" \u542F\u7528\u6B64\u9009\u9879\u540E\u8BE5\u7A3F\u4EF6\u5C06\u5728\u5BA2\u6237\u7AEF\u4FE1\u606F\u6D41\u5185\u4EE5\u9ED8\u8BA4\u9ED1\u767D\u6837\u5F0F\u5448\u73B0\u3002\u8BE5\u9009\u9879\u9002\u7528\u4E8E\uFF1A\u4EC5\u9700\u8981\u6307\u5B9A\u5185\u5BB9\u9ED8\u54C0\uFF0C\u65E0\u9700\u5BA2\u6237\u7AEF\u5168\u5C40\u9ED8\u54C0\u7684\u573A\u666F\u3002 ")
69
+ ], 64)) : vue.createCommentVNode("v-if", true),
70
+ modelValue.value === "2" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
71
+ vue.createTextVNode(" \u542F\u7528\u6B64\u9009\u9879\u540E\u8BE5\u7A3F\u4EF6\u5C06\u5728\u5BA2\u6237\u7AEF\u5F3A\u5236\u5F69\u8272\u663E\u793A\uFF0C\u4E0D\u53D7\u5168\u5C40\u9ED8\u54C0\u914D\u7F6E\u7684\u5F71\u54CD\u3002\u8BE5\u9009\u9879\u9002\u7528\u4E8E\uFF1A\u5F53\u5BA2\u6237\u7AEF\u542F\u7528\u4E86\u5168\u5C40\u9ED8\u54C0\u6216\u9891\u9053\u9ED8\u54C0\u65F6\uFF0C\u671F\u671B\u6307\u5B9A\u5185\u5BB9\u5728\u4FE1\u606F\u6D41\u4FDD\u6301\u6B63\u5E38\u5F69\u8272\u663E\u793A\u7684\u573A\u666F\u3002 ")
72
+ ], 64)) : vue.createCommentVNode("v-if", true)
73
+ ])) : vue.createCommentVNode("v-if", true)
74
+ ])) : vue.createCommentVNode("v-if", true)
75
+ ]);
76
+ };
77
+ }
78
+ });
79
+ module.exports = _sfc_main;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ const _hoisted_1 = { class: "form-item-wrp form-content" };
5
+ const _sfc_main = vue.defineComponent({
6
+ __name: "FDate",
7
+ props: {
8
+ mValue: {},
9
+ label: {},
10
+ placeholder: {},
11
+ meta: {}
12
+ },
13
+ emits: ["update:mValue"],
14
+ setup(__props, { emit: __emit }) {
15
+ const emits = __emit;
16
+ const props = __props;
17
+ const modelValue = vue.computed({
18
+ get: () => props.mValue,
19
+ set: (value) => {
20
+ if (value == null) {
21
+ emits("update:mValue", "");
22
+ return;
23
+ }
24
+ emits("update:mValue", value);
25
+ }
26
+ });
27
+ return (_ctx, _cache) => {
28
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
29
+ vue.createVNode(vue.unref(webVue.DatePicker), {
30
+ "model-value": modelValue.value,
31
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
32
+ style: { "width": "100%" },
33
+ "show-time": "",
34
+ format: "YYYY-MM-DD HH:mm",
35
+ "trigger-props": { updateAtScroll: true }
36
+ }, null, 8, ["model-value"])
37
+ ]);
38
+ };
39
+ }
40
+ });
41
+ module.exports = _sfc_main;
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ const _hoisted_1 = { class: "form-item-wrp form-content form-input-wrp" };
5
+ const _hoisted_2 = { class: "tag-count" };
6
+ const _sfc_main = vue.defineComponent({
7
+ __name: "FInput",
8
+ props: {
9
+ mValue: {},
10
+ label: {},
11
+ placeholder: {},
12
+ meta: {}
13
+ },
14
+ emits: ["update:mValue"],
15
+ setup(__props, { emit: __emit }) {
16
+ const emits = __emit;
17
+ const props = __props;
18
+ const type = vue.computed(() => {
19
+ var _a;
20
+ return (_a = props.meta) == null ? void 0 : _a.type;
21
+ });
22
+ const modelValue = vue.computed({
23
+ get: () => props.mValue,
24
+ set: (value) => {
25
+ if (type.value === "multi") {
26
+ const res = Array.isArray(props.mValue) ? value : [value];
27
+ emits("update:mValue", res);
28
+ return;
29
+ }
30
+ if (typeof props.mValue === "number" && value == null) {
31
+ emits("update:mValue", 0);
32
+ return;
33
+ }
34
+ emits("update:mValue", value);
35
+ }
36
+ });
37
+ const component = vue.computed(() => {
38
+ if (type.value === "number")
39
+ return webVue.InputNumber;
40
+ if (type.value === "textarea")
41
+ return webVue.Textarea;
42
+ if (type.value === "multi")
43
+ return webVue.InputTag;
44
+ return webVue.Input;
45
+ });
46
+ const isShowMultiTagCount = vue.computed(
47
+ () => {
48
+ var _a;
49
+ return type.value === "multi" && ((_a = props.meta) == null ? void 0 : _a.maxcount) && typeof modelValue.value !== "number";
50
+ }
51
+ );
52
+ const componentBind = vue.computed(() => {
53
+ var _a, _b, _c;
54
+ const componentBindObj = {
55
+ number: {
56
+ type: "number",
57
+ mode: "button",
58
+ min: (_a = props.meta) == null ? void 0 : _a.min,
59
+ style: { width: "180px" }
60
+ },
61
+ multi: {
62
+ style: { width: "100%" }
63
+ },
64
+ textarea: {
65
+ type: "textarea",
66
+ showWordLimit: true,
67
+ maxLength: Number(props.meta.maxcount),
68
+ autoSize: {
69
+ minRows: 1,
70
+ maxRows: 10
71
+ },
72
+ style: { width: "100%" }
73
+ },
74
+ default: {
75
+ allowClear: true,
76
+ showWordLimit: true,
77
+ maxLength: Number((_b = props.meta) == null ? void 0 : _b.maxcount) || Number((_c = props.meta) == null ? void 0 : _c.maxLength),
78
+ style: { width: "100%" }
79
+ }
80
+ };
81
+ const result = {
82
+ placeholder: props.placeholder || "\u8BF7\u8F93\u5165",
83
+ ...componentBindObj[type.value] || componentBindObj.default
84
+ };
85
+ return result;
86
+ });
87
+ function handleValueChange(e) {
88
+ var _a;
89
+ if (type.value === "multi" && Array.isArray(e)) {
90
+ if (((_a = props.meta) == null ? void 0 : _a.maxcount) && e.length > props.meta.maxcount) {
91
+ return;
92
+ }
93
+ modelValue.value = [...new Set(e)];
94
+ return;
95
+ }
96
+ modelValue.value = e;
97
+ }
98
+ return (_ctx, _cache) => {
99
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
100
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(component.value), vue.mergeProps({ "model-value": modelValue.value }, componentBind.value, { "onUpdate:modelValue": handleValueChange }), vue.createSlots({ _: 2 }, [
101
+ isShowMultiTagCount.value ? {
102
+ name: "suffix",
103
+ fn: vue.withCtx(() => {
104
+ var _a;
105
+ return [
106
+ vue.createElementVNode("div", _hoisted_2, vue.toDisplayString(modelValue.value.length) + "/" + vue.toDisplayString((_a = __props.meta) == null ? void 0 : _a.maxcount), 1)
107
+ ];
108
+ }),
109
+ key: "0"
110
+ } : void 0
111
+ ]), 1040, ["model-value"]))
112
+ ]);
113
+ };
114
+ }
115
+ });
116
+ module.exports = _sfc_main;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ const _hoisted_1 = { class: "form-item-wrp form-content form-radio-wrp" };
5
+ const _sfc_main = vue.defineComponent({
6
+ __name: "FRadio",
7
+ props: {
8
+ mValue: { type: [String, Number, Boolean] },
9
+ label: {},
10
+ placeholder: {},
11
+ meta: {}
12
+ },
13
+ emits: ["update:mValue"],
14
+ setup(__props, { emit: __emit }) {
15
+ const emits = __emit;
16
+ const props = __props;
17
+ const options = vue.computed(() => {
18
+ var _a;
19
+ if (((_a = props.meta) == null ? void 0 : _a.options) && Array.isArray(props.meta.options)) {
20
+ return props.meta.options;
21
+ }
22
+ return [];
23
+ });
24
+ const modelValue = vue.computed({
25
+ get: () => {
26
+ return props.mValue != null ? String(props.mValue) : props.mValue;
27
+ },
28
+ set: (value) => {
29
+ emits("update:mValue", value);
30
+ }
31
+ });
32
+ return (_ctx, _cache) => {
33
+ var _a, _b;
34
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
35
+ vue.createVNode(vue.unref(webVue.RadioGroup), {
36
+ "model-value": modelValue.value,
37
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
38
+ direction: ((_a = __props.meta) == null ? void 0 : _a.direction) || "horizontal",
39
+ size: ((_b = __props.meta) == null ? void 0 : _b.size) || "medium"
40
+ }, {
41
+ default: vue.withCtx(() => [
42
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(options.value, (option) => {
43
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Radio), {
44
+ key: option.value,
45
+ value: option.value,
46
+ disabled: option.disabled
47
+ }, {
48
+ default: vue.withCtx(() => [
49
+ vue.createTextVNode(vue.toDisplayString(option.label), 1)
50
+ ]),
51
+ _: 2
52
+ }, 1032, ["value", "disabled"]);
53
+ }), 128))
54
+ ]),
55
+ _: 1
56
+ }, 8, ["model-value", "direction", "size"])
57
+ ]);
58
+ };
59
+ }
60
+ });
61
+ module.exports = _sfc_main;
@@ -0,0 +1,203 @@
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
+ const _hoisted_1 = ["id"];
7
+ const _sfc_main = vue.defineComponent({
8
+ __name: "FSelect",
9
+ props: {
10
+ mValue: {},
11
+ label: {},
12
+ placeholder: {},
13
+ meta: {},
14
+ value: {},
15
+ BASE_API: {},
16
+ domainId: {}
17
+ },
18
+ emits: ["update:mValue"],
19
+ setup(__props, { emit: __emit }) {
20
+ const emits = __emit;
21
+ const props = __props;
22
+ const modelValue = vue.computed({
23
+ get: () => props.mValue,
24
+ set: (value) => {
25
+ emits("update:mValue", value);
26
+ }
27
+ });
28
+ const options = vue.ref([]);
29
+ const loadOptions = async () => {
30
+ var _a, _b, _c;
31
+ if (!((_a = props.meta) == null ? void 0 : _a.key)) {
32
+ if ((_b = props.meta) == null ? void 0 : _b.options) {
33
+ options.value = props.meta.options;
34
+ }
35
+ return;
36
+ }
37
+ try {
38
+ if (props.meta.key === "signature_template_id") {
39
+ if (!props.BASE_API) {
40
+ console.warn("signature_template_id \u9700\u8981 BASE_API");
41
+ return;
42
+ }
43
+ console.log("\u5F00\u59CB\u52A0\u8F7D\u7F72\u540D\u6A21\u7248\u9009\u9879\uFF0CBASE_API:", props.BASE_API);
44
+ const { code, message } = await api.getBylineTemplates(props.BASE_API, {
45
+ default_top: true
46
+ });
47
+ console.log("\u7F72\u540D\u6A21\u7248\u63A5\u53E3\u8FD4\u56DE:", { code, message });
48
+ if (code === 0 && Array.isArray(message)) {
49
+ const formattedOptions = message.map((item) => ({
50
+ label: item.title,
51
+ value: String(item.id),
52
+ meta: item
53
+ }));
54
+ formattedOptions.unshift({
55
+ label: "\u4E0D\u4F7F\u7528\u7F72\u540D\u6A21\u677F",
56
+ value: "0"
57
+ });
58
+ options.value = formattedOptions;
59
+ console.log("\u7F72\u540D\u6A21\u7248\u9009\u9879\u52A0\u8F7D\u5B8C\u6210:", options.value);
60
+ }
61
+ } else if (props.meta.key === "dutys") {
62
+ const { code, message } = await api.getAllDutyEditor(props.BASE_API);
63
+ if (code === 0 && (message == null ? void 0 : message.data)) {
64
+ options.value = message.data.map((item) => ({
65
+ label: item.name || item.alias,
66
+ value: item.id
67
+ }));
68
+ }
69
+ } else if (props.meta.key === "sources" && props.domainId) {
70
+ const { code, message } = await source.getConfiguration(props.BASE_API, {
71
+ domain_id: props.domainId,
72
+ module: "doc_config",
73
+ key: "restaurants"
74
+ });
75
+ if (code === 0 && message && message.length > 0) {
76
+ const sources = JSON.parse(message[message.length - 1].value);
77
+ options.value = sources.map((item) => ({
78
+ label: item.name || item,
79
+ value: item.id || item
80
+ }));
81
+ }
82
+ } else if ((_c = props.meta) == null ? void 0 : _c.options) {
83
+ options.value = props.meta.options;
84
+ }
85
+ } catch (error) {
86
+ console.error("\u52A0\u8F7D\u9009\u9879\u5931\u8D25:", error);
87
+ }
88
+ };
89
+ function initDefault() {
90
+ var _a;
91
+ if (((_a = props.meta) == null ? void 0 : _a.key) === "signature_template_id" && !modelValue.value) {
92
+ const defaultItem = options.value.find(
93
+ (opt) => {
94
+ var _a2, _b;
95
+ return ((_a2 = opt.meta) == null ? void 0 : _a2.is_default) || ((_b = opt.meta) == null ? void 0 : _b.default) === true;
96
+ }
97
+ );
98
+ if (defaultItem) {
99
+ modelValue.value = defaultItem.value;
100
+ return;
101
+ }
102
+ if (options.value.length > 0) {
103
+ modelValue.value = options.value[0].value;
104
+ }
105
+ }
106
+ }
107
+ async function loadSignatureTemplates() {
108
+ var _a;
109
+ if (((_a = props.meta) == null ? void 0 : _a.key) === "signature_template_id" && props.BASE_API) {
110
+ try {
111
+ console.log("\u5F00\u59CB\u52A0\u8F7D\u7F72\u540D\u6A21\u7248\u9009\u9879\uFF0CBASE_API:", props.BASE_API);
112
+ const { code, message } = await api.getBylineTemplates(props.BASE_API, {
113
+ default_top: true
114
+ });
115
+ console.log("\u7F72\u540D\u6A21\u7248\u63A5\u53E3\u8FD4\u56DE:", { code, message });
116
+ if (code === 0 && Array.isArray(message)) {
117
+ const formattedOptions = message.map((item) => ({
118
+ label: item.title,
119
+ value: String(item.id),
120
+ meta: item
121
+ }));
122
+ formattedOptions.unshift({
123
+ label: "\u4E0D\u4F7F\u7528\u7F72\u540D\u6A21\u677F",
124
+ value: "0"
125
+ });
126
+ options.value = formattedOptions;
127
+ console.log("\u7F72\u540D\u6A21\u7248\u9009\u9879\u52A0\u8F7D\u5B8C\u6210:", options.value);
128
+ initDefault();
129
+ }
130
+ } catch (error) {
131
+ console.error("\u52A0\u8F7D\u7F72\u540D\u6A21\u7248\u5931\u8D25:", error);
132
+ }
133
+ }
134
+ }
135
+ vue.watch(
136
+ () => props.meta,
137
+ () => {
138
+ var _a;
139
+ if (((_a = props.meta) == null ? void 0 : _a.key) === "signature_template_id") {
140
+ return;
141
+ }
142
+ loadOptions();
143
+ },
144
+ { deep: true, immediate: true }
145
+ );
146
+ vue.watch(
147
+ () => options.value.length,
148
+ () => {
149
+ var _a;
150
+ if (((_a = props.meta) == null ? void 0 : _a.key) === "signature_template_id") {
151
+ return;
152
+ }
153
+ initDefault();
154
+ }
155
+ );
156
+ vue.onMounted(async () => {
157
+ var _a;
158
+ if (((_a = props.meta) == null ? void 0 : _a.key) === "signature_template_id") {
159
+ await loadSignatureTemplates();
160
+ } else {
161
+ loadOptions();
162
+ initDefault();
163
+ }
164
+ });
165
+ return (_ctx, _cache) => {
166
+ var _a, _b, _c;
167
+ return vue.openBlock(), vue.createElementBlock("div", {
168
+ id: `form-item-${__props.value}`,
169
+ class: "form-item-wrp form-content form-select-wrp"
170
+ }, [
171
+ vue.createVNode(vue.unref(webVue.Select), {
172
+ "model-value": modelValue.value,
173
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
174
+ multiple: (_a = __props.meta) == null ? void 0 : _a.isMultiple,
175
+ "allow-search": (_b = __props.meta) == null ? void 0 : _b.isSearch,
176
+ placeholder: __props.placeholder || "\u8BF7\u9009\u62E9",
177
+ limit: ((_c = __props.meta) == null ? void 0 : _c.maxcount) || 0,
178
+ "trigger-props": { updateAtScroll: true },
179
+ "popup-container": __props.value ? `#form-item-${__props.value}` : void 0,
180
+ "allow-clear": ""
181
+ }, {
182
+ default: vue.withCtx(() => [
183
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(options.value, (option) => {
184
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
185
+ key: option.value,
186
+ value: option.value,
187
+ label: option.label,
188
+ disabled: option.disabled
189
+ }, {
190
+ default: vue.withCtx(() => [
191
+ vue.createTextVNode(vue.toDisplayString(option.label), 1)
192
+ ]),
193
+ _: 2
194
+ }, 1032, ["value", "label", "disabled"]);
195
+ }), 128))
196
+ ]),
197
+ _: 1
198
+ }, 8, ["model-value", "multiple", "allow-search", "placeholder", "limit", "popup-container"])
199
+ ], 8, _hoisted_1);
200
+ };
201
+ }
202
+ });
203
+ module.exports = _sfc_main;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
4
+ const _hoisted_1 = { class: "form-item-wrp form-content" };
5
+ const _sfc_main = vue.defineComponent({
6
+ __name: "FSwitch",
7
+ props: {
8
+ mValue: { type: Boolean },
9
+ label: {},
10
+ meta: {}
11
+ },
12
+ emits: ["update:mValue"],
13
+ setup(__props, { emit: __emit }) {
14
+ const emits = __emit;
15
+ const props = __props;
16
+ const modelValue = vue.computed({
17
+ get: () => props.mValue,
18
+ set: (value) => {
19
+ emits("update:mValue", value);
20
+ }
21
+ });
22
+ return (_ctx, _cache) => {
23
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
24
+ vue.createVNode(vue.unref(webVue.Switch), {
25
+ "model-value": modelValue.value,
26
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
27
+ }, null, 8, ["model-value"])
28
+ ]);
29
+ };
30
+ }
31
+ });
32
+ module.exports = _sfc_main;