halo-pc 1.0.40 → 1.0.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (376) hide show
  1. package/dist/{Article-CqtkXVmQ.js → Article-DFUSows8.js} +63 -57
  2. package/dist/{ArticleFooter-DeJdTtZD.js → ArticleFooter-Cj1BBlA1.js} +25 -19
  3. package/dist/{Autocomplete-0fxB2_FC.js → Autocomplete-BwXXwn67.js} +1 -1
  4. package/dist/Autocomplete-CkaC4B9a.js +55 -0
  5. package/dist/Autocomplete-lOArRE-3.js +54 -0
  6. package/dist/{CSharp-BIFRQLaK.js → CSharp-DKso7gNM.js} +1 -1
  7. package/dist/{Calender-DPNTn-S4.js → Calender-D-SOVcZj.js} +2 -2
  8. package/dist/Callback-BR41Vj-N.js +26 -0
  9. package/dist/Cascader-CgATYx_L.js +87 -0
  10. package/dist/Cascader-_zr2LKml.js +47 -0
  11. package/dist/{Checkbox-CIim5NiB.js → Checkbox-5ILQf19K.js} +1 -1
  12. package/dist/Checkbox-BL8CgSAj.js +76 -0
  13. package/dist/Code-B4PQhSMK.js +4 -0
  14. package/dist/{Code-yDKaH1uF.js → Code-C-YP2p5l.js} +1 -1
  15. package/dist/Code-DFyhE56y.js +60 -0
  16. package/dist/Code-DiXOxLRf.js +42 -0
  17. package/dist/Code.vue_vue_type_style_index_0_lang-XgvwusB0.js +65 -0
  18. package/dist/Column-Bc7Oihiz.js +75 -0
  19. package/dist/{Comment-tU2wBvGO.js → Comment-xRgfVwWf.js} +25 -19
  20. package/dist/Compare-Bs02uoCu.js +43 -0
  21. package/dist/Compare-CzjhvoMB.js +63 -0
  22. package/dist/Copy-Cm2a5gNO.js +49 -0
  23. package/dist/Custom-DUwgObv0.js +55 -0
  24. package/dist/{DataExport-BDftKI0U.js → DataExport-Bl8Gnd65.js} +1 -1
  25. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dzy9UC11.js → DataExport.vue_vue_type_script_setup_true_lang-BdcGXCd-.js} +31 -25
  26. package/dist/{DataImport-CRYaaQfA.js → DataImport-a0LeLUqN.js} +1 -1
  27. package/dist/DataImport.vue_vue_type_script_setup_true_lang-SUTAEcM1.js +178 -0
  28. package/dist/{Date-Dlh1_S7p.js → Date-3ShwD2-i.js} +1 -1
  29. package/dist/Date-Bxg6thBd.js +43 -0
  30. package/dist/{DateRange-BgF_T3ls.js → DateRange-Bs02SlBL.js} +17 -11
  31. package/dist/DateTime-9zVeZZU1.js +44 -0
  32. package/dist/{DateTime-CNjPeK9t.js → DateTime-CBvGI0QK.js} +1 -1
  33. package/dist/{DateTimeRange-DbEpW4nB.js → DateTimeRange-BvzT4ePX.js} +15 -9
  34. package/dist/{Daterange-DHVjhrK9.js → Daterange-jjGQtOYX.js} +23 -17
  35. package/dist/{Decimal-BDEWVSsK.js → Decimal-ZCkGNnu6.js} +1 -1
  36. package/dist/Delete-DFYWGXxR.js +62 -0
  37. package/dist/Detail-BCOVW_Bc.js +75 -0
  38. package/dist/{Dictionary-CJwZPQz6.js → Dictionary-CzVkbTgC.js} +15 -9
  39. package/dist/Email-BkTp1o4W.js +54 -0
  40. package/dist/File-B5gD6gIN.js +164 -0
  41. package/dist/Image-CJehZtl1.js +9 -0
  42. package/dist/{Index-j15c7lwJ.js → Index--k39OOeR.js} +1 -1
  43. package/dist/Index-BgaidjN1.js +4 -0
  44. package/dist/{Index-D2FOeoNQ.js → Index-Bkk7Lbow.js} +1 -1
  45. package/dist/Index-C1d92iVF.js +4 -0
  46. package/dist/Index-CqcpoI5q.js +179 -0
  47. package/dist/Index-D46msJe6.js +4 -0
  48. package/dist/Index-DNzPzZAD.js +4 -0
  49. package/dist/Index-fLIY_xZz.js +76 -0
  50. package/dist/Index.vue_vue_type_script_setup_true_lang-B5I-mP-B.js +72 -0
  51. package/dist/{Index.vue_vue_type_script_setup_true_lang-ByxBNAdg.js → Index.vue_vue_type_script_setup_true_lang-BBos3LCo.js} +26 -20
  52. package/dist/{Install-WR3b4IfI.js → Install-D5a1Clhz.js} +40 -34
  53. package/dist/Int-BCPaDwRr.js +47 -0
  54. package/dist/Int-vbDN15ge.js +44 -0
  55. package/dist/List-1gzG3Hh5.js +77 -0
  56. package/dist/Maintaince-or5c_o4Q.js +20 -0
  57. package/dist/{Markdown-nVfQs7kc.js → Markdown-DA3F0wmz.js} +1 -1
  58. package/dist/{Month-CxKMP4kO.js → Month-BNmPXwr5.js} +1 -1
  59. package/dist/Month-C5Gs9TzA.js +44 -0
  60. package/dist/Month-DWJvfZWH.js +43 -0
  61. package/dist/Normal-C08A_LBQ.js +266 -0
  62. package/dist/Paging-CTYEtfU6.js +100 -0
  63. package/dist/{PagingHeader-C8UpM9Kj.js → PagingHeader-ooBPU84X.js} +33 -27
  64. package/dist/{PagingRow-oQWCofO4.js → PagingRow-BBzD3uJR.js} +26 -20
  65. package/dist/{Racebar-CvoF2ySW.js → Racebar-CGxwvdJg.js} +29 -23
  66. package/dist/{Radio-DhjfkC14.js → Radio-Rf8Dk0Kt.js} +1 -1
  67. package/dist/{Register-B0Vx60wY.js → Register-CRG2u_Oc.js} +82 -76
  68. package/dist/RichText-D9mVss4s.js +47 -0
  69. package/dist/{SearchForm-BHVnQaSL.js → SearchForm-DhNSuvIB.js} +1 -1
  70. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-ByICIL6w.js → SearchForm.vue_vue_type_style_index_0_lang-rTj9jfpz.js} +58 -52
  71. package/dist/{SearchHeader-C9yovXli.js → SearchHeader-BH9MZ9J0.js} +1 -1
  72. package/dist/{SearchHeader.vue_vue_type_style_index_0_lang-CHAg97-Y.js → SearchHeader.vue_vue_type_style_index_0_lang-BCguAmMx.js} +1 -1
  73. package/dist/{Select-vgwpegBi.js → Select-BGxScF1V.js} +35 -29
  74. package/dist/{Select-CX4i5KPQ.js → Select-D6zMSIK-.js} +1 -1
  75. package/dist/{Select-BDoCqD3I.js → Select-pxgFT4W6.js} +32 -26
  76. package/dist/Single-Dur5AQwJ.js +325 -0
  77. package/dist/{Statistic-WPezAlUn.js → Statistic-D2Ui-cl9.js} +37 -31
  78. package/dist/{Stock-EPM3j2f_.js → Stock-CPNV5oAr.js} +1 -1
  79. package/dist/{Stock-BD5Acf8y.js → Stock-S-yoIR63.js} +1 -1
  80. package/dist/{Stock.vue_vue_type_style_index_0_lang-D5RR2MRP.js → Stock.vue_vue_type_style_index_0_lang-CBM83HPm.js} +30 -24
  81. package/dist/{Switch-B0XN4K-9.js → Switch-Ddzu0cVc.js} +1 -1
  82. package/dist/{Table-BklK1hSh.js → Table-Dehxw_Mm.js} +115 -109
  83. package/dist/{Table-JFdOXuME.js → Table-td4DoauS.js} +96 -90
  84. package/dist/Text-BQ2sP6BX.js +54 -0
  85. package/dist/Text-BlDU58Cj.js +4 -0
  86. package/dist/Text-DzOAFDPQ.js +58 -0
  87. package/dist/Text.vue_vue_type_style_index_0_lang-SkwvLnGj.js +59 -0
  88. package/dist/TextLink-BNd6HG70.js +65 -0
  89. package/dist/{Textarea-3SWLqQvO.js → Textarea-BEGLCMlW.js} +1 -1
  90. package/dist/Time-6IjugDB1.js +43 -0
  91. package/dist/{Timeline-B6hUIYhL.js → Timeline-rO6-BdP9.js} +19 -13
  92. package/dist/{Tree-JexLPBXX.js → Tree-B4CrBXsk.js} +41 -35
  93. package/dist/Tree-Ba3IsT-8.js +298 -0
  94. package/dist/TreeNode-D3zRAE68.js +43 -0
  95. package/dist/Update-DustuC7M.js +70 -0
  96. package/dist/{UpdateChild-DUG7pAuO.js → UpdateChild-D_vBiyT5.js} +26 -20
  97. package/dist/Upload-ByD17bHe.js +71 -0
  98. package/dist/Upload-pOEf-6VG.js +150 -0
  99. package/dist/{Year-BRsJ7b1J.js → Year-CWW-xi29.js} +1 -1
  100. package/dist/Year-DkYUnUm3.js +47 -0
  101. package/dist/assets/{clipboard-ClN4QccS.js → clipboard-DjQPoCBJ.js} +3 -1
  102. package/dist/assets/clone-BZn0cTAu.js +134 -0
  103. package/dist/assets/file-saver-CwlpTZSc.js +74 -0
  104. package/dist/assets/liquidjs-BfOWWjtJ.js +2907 -0
  105. package/dist/assets/moment-h96o7c8I.js +2578 -0
  106. package/dist/assets/sprintf-js-BPTdvBYM.js +148 -0
  107. package/dist/assets/underscore-B0BCaBxV.js +1070 -0
  108. package/dist/assets/underscore.string-DVXD2SZo.js +425 -0
  109. package/dist/assets/util-deprecate-Dzun97re.js +28 -0
  110. package/dist/main-DSgfGXqN.js +10966 -0
  111. package/dist/main.js +163 -164
  112. package/dist/style.css +1 -1
  113. package/esm/@types/CreatePcOptions.d.ts +1 -2
  114. package/esm/@types/index.d.ts +1 -2
  115. package/esm/coms/business/@types/DrawerProps.d.ts +1 -2
  116. package/esm/coms/business/@types/FormProps.d.ts +1 -2
  117. package/esm/coms/business/@types/index.d.ts +2 -3
  118. package/esm/coms/business/Condition.vue.d.ts +3 -3
  119. package/esm/coms/business/Drawer.vue.d.ts +2 -2
  120. package/esm/coms/business/Form.vue.d.ts +3 -2
  121. package/esm/coms/commons/@types/TableProps.d.ts +1 -2
  122. package/esm/coms/commons/@types/index.d.ts +1 -2
  123. package/esm/coms/commons/Captcha.vue.d.ts +1 -1
  124. package/esm/coms/commons/Debug.vue.d.ts +2 -1
  125. package/esm/coms/commons/Editable.vue.d.ts +2 -1
  126. package/esm/coms/commons/Loading.vue.d.ts +2 -1
  127. package/esm/coms/commons/Resizer.vue.d.ts +3 -2
  128. package/esm/coms/commons/Table.vue.d.ts +8 -3
  129. package/esm/coms/commons/TableColumn.vue.d.ts +2 -1
  130. package/esm/coms/controls/@types/ControlProps.d.ts +1 -2
  131. package/esm/coms/controls/@types/index.d.ts +1 -2
  132. package/esm/coms/controls/Autocomplete.vue.d.ts +4 -5
  133. package/esm/coms/controls/Cascader.vue.d.ts +4 -5
  134. package/esm/coms/controls/Checkbox.vue.d.ts +5 -6
  135. package/esm/coms/controls/Code.vue.d.ts +4 -5
  136. package/esm/coms/controls/Color.vue.d.ts +4 -5
  137. package/esm/coms/controls/Compare.vue.d.ts +5 -6
  138. package/esm/coms/controls/Date.vue.d.ts +4 -5
  139. package/esm/coms/controls/DateRange.vue.d.ts +4 -5
  140. package/esm/coms/controls/DateTime.vue.d.ts +4 -5
  141. package/esm/coms/controls/DateTimeRange.vue.d.ts +4 -5
  142. package/esm/coms/controls/Decimal.vue.d.ts +4 -5
  143. package/esm/coms/controls/Email.vue.d.ts +4 -5
  144. package/esm/coms/controls/Index.vue.d.ts +4 -5
  145. package/esm/coms/controls/Int.vue.d.ts +4 -5
  146. package/esm/coms/controls/Markdown.vue.d.ts +4 -5
  147. package/esm/coms/controls/Month.vue.d.ts +4 -5
  148. package/esm/coms/controls/Password.vue.d.ts +4 -5
  149. package/esm/coms/controls/Progress.vue.d.ts +4 -5
  150. package/esm/coms/controls/Radio.vue.d.ts +4 -5
  151. package/esm/coms/controls/Rate.vue.d.ts +4 -5
  152. package/esm/coms/controls/RichText.vue.d.ts +4 -4
  153. package/esm/coms/controls/Select.vue.d.ts +4 -5
  154. package/esm/coms/controls/Switch.vue.d.ts +5 -6
  155. package/esm/coms/controls/Text.vue.d.ts +4 -5
  156. package/esm/coms/controls/Textarea.vue.d.ts +4 -5
  157. package/esm/coms/controls/Time.vue.d.ts +4 -5
  158. package/esm/coms/controls/Upload.vue.d.ts +5 -6
  159. package/esm/coms/controls/Year.vue.d.ts +4 -5
  160. package/esm/coms/drivers/@types/CrudProps.d.ts +3 -4
  161. package/esm/coms/drivers/@types/DriverBaseProps.d.ts +1 -2
  162. package/esm/coms/drivers/@types/DriverEmit.d.ts +1 -2
  163. package/esm/coms/drivers/@types/DriverFormProps.d.ts +2 -3
  164. package/esm/coms/drivers/@types/DriverKindEmit.d.ts +2 -3
  165. package/esm/coms/drivers/@types/DriverProps.d.ts +3 -4
  166. package/esm/coms/drivers/@types/KindFormProps.d.ts +0 -1
  167. package/esm/coms/drivers/@types/KindProps.d.ts +2 -3
  168. package/esm/coms/drivers/@types/index.d.ts +5 -6
  169. package/esm/coms/drivers/Crud.vue.d.ts +6 -3
  170. package/esm/coms/drivers/Index.vue.d.ts +2 -1
  171. package/esm/coms/drivers/Kind.vue.d.ts +2 -1
  172. package/esm/coms/globals/@types/WindowEmit.d.ts +6 -7
  173. package/esm/coms/globals/@types/WindowOptions.d.ts +1 -2
  174. package/esm/coms/globals/@types/WindowProps.d.ts +2 -3
  175. package/esm/coms/globals/@types/index.d.ts +3 -4
  176. package/esm/coms/globals/HeaderTab.vue.d.ts +3 -2
  177. package/esm/coms/globals/HeaderTabs.vue.d.ts +4 -3
  178. package/esm/coms/globals/MenuItem.vue.d.ts +1 -1
  179. package/esm/coms/globals/MissComponent.vue.d.ts +3 -2
  180. package/esm/coms/globals/SideTab.vue.d.ts +3 -2
  181. package/esm/coms/globals/SideTabs.vue.d.ts +2 -1
  182. package/esm/coms/globals/Window.vue.d.ts +43 -2
  183. package/esm/coms/headers/@types/ChangeProps.d.ts +1 -2
  184. package/esm/coms/headers/@types/HeaderProps.d.ts +1 -2
  185. package/esm/coms/headers/@types/TipsProps.d.ts +1 -2
  186. package/esm/coms/headers/@types/index.d.ts +3 -4
  187. package/esm/coms/headers/Hamburger.vue.d.ts +1 -1
  188. package/esm/coms/headers/Index.vue.d.ts +3 -2
  189. package/esm/coms/headers/Logo.vue.d.ts +1 -1
  190. package/esm/coms/headers/Refresh.vue.d.ts +1 -1
  191. package/esm/coms/layouts/@types/ITaskBar.d.ts +1 -2
  192. package/esm/coms/layouts/@types/index.d.ts +1 -2
  193. package/esm/coms/layouts/Desktop.vue.d.ts +1 -1
  194. package/esm/coms/layouts/Index.vue.d.ts +6 -6
  195. package/esm/coms/layouts/Side.vue.d.ts +2 -2
  196. package/esm/coms/layouts/Top.vue.d.ts +1 -1
  197. package/esm/coms/lists/@types/ListProps.d.ts +1 -2
  198. package/esm/coms/lists/@types/index.d.ts +1 -2
  199. package/esm/coms/lists/Calender.vue.d.ts +1 -1
  200. package/esm/coms/lists/Racebar.vue.d.ts +1 -1
  201. package/esm/coms/lists/Statistic.vue.d.ts +1 -1
  202. package/esm/coms/lists/Stock.vue.d.ts +1 -1
  203. package/esm/coms/lists/Timeline.vue.d.ts +1 -1
  204. package/esm/coms/lists/Tree.vue.d.ts +1 -1
  205. package/esm/coms/pages/@types/ColumnPageProps.d.ts +2 -3
  206. package/esm/coms/pages/@types/CustomPageProps.d.ts +2 -3
  207. package/esm/coms/pages/@types/DeletePageProps.d.ts +2 -3
  208. package/esm/coms/pages/@types/ListPageProps.d.ts +2 -3
  209. package/esm/coms/pages/@types/PageEmit.d.ts +1 -2
  210. package/esm/coms/pages/@types/PageProps.d.ts +1 -2
  211. package/esm/coms/pages/@types/PagingPageProps.d.ts +2 -3
  212. package/esm/coms/pages/@types/SchemaProps.d.ts +3 -4
  213. package/esm/coms/pages/@types/SinglePageProps.d.ts +2 -3
  214. package/esm/coms/pages/@types/index.d.ts +9 -10
  215. package/esm/coms/pages/Column.vue.d.ts +1 -1
  216. package/esm/coms/pages/Delete.vue.d.ts +1 -1
  217. package/esm/coms/pages/Paging.vue.d.ts +1 -2
  218. package/esm/coms/pagings/@types/PagingProps.d.ts +1 -2
  219. package/esm/coms/pagings/@types/SearchFormProps.d.ts +1 -2
  220. package/esm/coms/pagings/@types/SearchHeaderProps.d.ts +1 -2
  221. package/esm/coms/pagings/@types/index.d.ts +3 -4
  222. package/esm/coms/pagings/Article.vue.d.ts +1 -1
  223. package/esm/coms/pagings/Code.vue.d.ts +1 -1
  224. package/esm/coms/pagings/File.vue.d.ts +1 -1
  225. package/esm/coms/pagings/Index.vue.d.ts +1 -2
  226. package/esm/coms/pagings/SearchHeader.vue.d.ts +1 -1
  227. package/esm/coms/pagings/Table.vue.d.ts +2 -3
  228. package/esm/coms/panels/@types/OperationProps.d.ts +1 -2
  229. package/esm/coms/panels/@types/index.d.ts +1 -2
  230. package/esm/coms/panels/Group.vue.d.ts +3 -2
  231. package/esm/coms/panels/Header.vue.d.ts +1 -1
  232. package/esm/coms/panels/Operation.vue.d.ts +3 -2
  233. package/esm/coms/panels/Panel.vue.d.ts +3 -2
  234. package/esm/coms/panels/Shrink.vue.d.ts +3 -2
  235. package/esm/coms/partials/@types/ArticleFooterEmit.d.ts +1 -2
  236. package/esm/coms/partials/@types/DetailEmit.d.ts +1 -2
  237. package/esm/coms/partials/@types/DetailProps.d.ts +1 -2
  238. package/esm/coms/partials/@types/PagingHeaderEmit.d.ts +2 -3
  239. package/esm/coms/partials/@types/PagingHeaderProps.d.ts +1 -2
  240. package/esm/coms/partials/@types/PagingRowEmit.d.ts +1 -2
  241. package/esm/coms/partials/@types/PagingRowProps.d.ts +1 -2
  242. package/esm/coms/partials/@types/TreeNodeProps.d.ts +1 -2
  243. package/esm/coms/partials/@types/UpdateChildEmit.d.ts +1 -2
  244. package/esm/coms/partials/@types/UpdateChildProps.d.ts +1 -2
  245. package/esm/coms/partials/@types/UpdateEmit.d.ts +1 -2
  246. package/esm/coms/partials/@types/UpdateProps.d.ts +1 -2
  247. package/esm/coms/partials/@types/index.d.ts +12 -13
  248. package/esm/coms/partials/ArticleFooter.vue.d.ts +1 -1
  249. package/esm/coms/partials/Detail.vue.d.ts +1 -1
  250. package/esm/coms/partials/PagingHeader.vue.d.ts +2 -2
  251. package/esm/coms/partials/PagingRow.vue.d.ts +2 -2
  252. package/esm/coms/partials/TreeNode.vue.d.ts +1 -1
  253. package/esm/coms/partials/Update.vue.d.ts +1 -1
  254. package/esm/coms/searches/@types/SearchProps.d.ts +1 -2
  255. package/esm/coms/searches/@types/index.d.ts +1 -2
  256. package/esm/coms/searches/Autocomplete.vue.d.ts +4 -5
  257. package/esm/coms/searches/Daterange.vue.d.ts +4 -5
  258. package/esm/coms/searches/Int.vue.d.ts +4 -5
  259. package/esm/coms/searches/Month.vue.d.ts +4 -5
  260. package/esm/coms/searches/Select.vue.d.ts +4 -5
  261. package/esm/coms/searches/Text.vue.d.ts +4 -2
  262. package/esm/coms/singles/@types/SingleProps.d.ts +1 -2
  263. package/esm/coms/singles/@types/index.d.ts +1 -2
  264. package/esm/coms/singles/Code.vue.d.ts +1 -1
  265. package/esm/coms/singles/Comment.vue.d.ts +1 -1
  266. package/esm/coms/singles/Normal.vue.d.ts +1 -1
  267. package/esm/coms/singles/Statistic.vue.d.ts +1 -1
  268. package/esm/coms/singles/Stock.vue.d.ts +1 -1
  269. package/esm/coms/singles/Tree.vue.d.ts +1 -1
  270. package/esm/coms/texts/Autocomplete.vue.d.ts +3 -4
  271. package/esm/coms/texts/CSharp.vue.d.ts +3 -4
  272. package/esm/coms/texts/Cascader.vue.d.ts +5 -6
  273. package/esm/coms/texts/Checkbox.vue.d.ts +3 -4
  274. package/esm/coms/texts/Code.vue.d.ts +3 -4
  275. package/esm/coms/texts/Color.vue.d.ts +3 -4
  276. package/esm/coms/texts/Compare.vue.d.ts +3 -4
  277. package/esm/coms/texts/Copy.vue.d.ts +6 -6
  278. package/esm/coms/texts/Date.vue.d.ts +3 -4
  279. package/esm/coms/texts/DateRange.vue.d.ts +3 -4
  280. package/esm/coms/texts/DateTime.vue.d.ts +3 -4
  281. package/esm/coms/texts/Decimal.vue.d.ts +3 -4
  282. package/esm/coms/texts/Dictionary.vue.d.ts +5 -6
  283. package/esm/coms/texts/Email.vue.d.ts +3 -4
  284. package/esm/coms/texts/Index.vue.d.ts +4 -5
  285. package/esm/coms/texts/Int.vue.d.ts +3 -4
  286. package/esm/coms/texts/Markdown.vue.d.ts +3 -4
  287. package/esm/coms/texts/Month.vue.d.ts +3 -4
  288. package/esm/coms/texts/Password.vue.d.ts +3 -4
  289. package/esm/coms/texts/Progress.vue.d.ts +3 -4
  290. package/esm/coms/texts/Radio.vue.d.ts +3 -4
  291. package/esm/coms/texts/Rate.vue.d.ts +4 -5
  292. package/esm/coms/texts/RichText.vue.d.ts +3 -4
  293. package/esm/coms/texts/Select.vue.d.ts +3 -4
  294. package/esm/coms/texts/Switch.vue.d.ts +3 -4
  295. package/esm/coms/texts/Text.vue.d.ts +3 -4
  296. package/esm/coms/texts/TextLink.vue.d.ts +2 -1
  297. package/esm/coms/texts/Textarea.vue.d.ts +3 -4
  298. package/esm/coms/texts/Upload.vue.d.ts +3 -4
  299. package/esm/coms/texts/Year.vue.d.ts +3 -4
  300. package/esm/drivers/index.d.ts +0 -1
  301. package/esm/drivers/messengers/PcMessenger.d.ts +1 -2
  302. package/esm/drivers/messengers/index.d.ts +1 -2
  303. package/esm/repos/UploadApi.d.ts +1 -2
  304. package/esm/repos/index.d.ts +1 -2
  305. package/esm/svcs/AppSvc.d.ts +1 -2
  306. package/esm/svcs/ComponentSvc.d.ts +1 -2
  307. package/esm/svcs/ControlSvc.d.ts +1 -2
  308. package/esm/svcs/LayoutSvc.d.ts +1 -2
  309. package/esm/svcs/ModuleSvc.d.ts +3 -4
  310. package/esm/svcs/PageSvc.d.ts +1 -2
  311. package/esm/svcs/RouterSvc.d.ts +1 -2
  312. package/esm/svcs/Svcs.d.ts +11 -0
  313. package/esm/svcs/UploadSvc.d.ts +1 -2
  314. package/esm/svcs/WindowSvc.d.ts +1 -2
  315. package/esm/svcs/index.d.ts +10 -9
  316. package/esm/views/helps/401.vue.d.ts +1 -1
  317. package/esm/views/helps/404.vue.d.ts +1 -1
  318. package/esm/views/helps/Install.vue.d.ts +1 -1
  319. package/esm/views/helps/Maintaince.vue.d.ts +1 -1
  320. package/esm/views/logins/Callback.vue.d.ts +1 -1
  321. package/esm/views/logins/Index.vue.d.ts +1 -1
  322. package/esm/views/logins/Register.vue.d.ts +1 -1
  323. package/package.json +6 -6
  324. package/dist/Autocomplete-BfhYwZ5G.js +0 -49
  325. package/dist/Autocomplete-LQiKcvz1.js +0 -48
  326. package/dist/Callback-Ci5KrWOC.js +0 -20
  327. package/dist/Cascader-CnOEgPDf.js +0 -41
  328. package/dist/Cascader-Vhc81TDV.js +0 -81
  329. package/dist/Checkbox-D9Sp6ZGQ.js +0 -70
  330. package/dist/Code-BEjqqeFZ.js +0 -54
  331. package/dist/Code-BSrEPuXk.js +0 -4
  332. package/dist/Code-Dp1-k8sW.js +0 -36
  333. package/dist/Code.vue_vue_type_style_index_0_lang-CmkomJXY.js +0 -59
  334. package/dist/Column-B0ViSver.js +0 -69
  335. package/dist/Compare-D7Gz-lE9.js +0 -37
  336. package/dist/Compare-DqvGyQWA.js +0 -57
  337. package/dist/Copy-Dm1LH9qB.js +0 -43
  338. package/dist/Custom-CLKAPWEo.js +0 -49
  339. package/dist/DataImport.vue_vue_type_script_setup_true_lang-D7UdCnBM.js +0 -172
  340. package/dist/Date-DPPiYLWw.js +0 -37
  341. package/dist/DateTime-DP-VfmtN.js +0 -38
  342. package/dist/Delete-Bl0GmthL.js +0 -56
  343. package/dist/Detail-BozyhOTt.js +0 -69
  344. package/dist/Email-D5X1SzuJ.js +0 -48
  345. package/dist/File-DixK0K7p.js +0 -158
  346. package/dist/Image-BrelhCGo.js +0 -9
  347. package/dist/Index-BeM6hKX9.js +0 -4
  348. package/dist/Index-BkfLyqpm.js +0 -173
  349. package/dist/Index-D8UVsXwf.js +0 -4
  350. package/dist/Index-DbXgnBz6.js +0 -70
  351. package/dist/Index-FL-dxfFB.js +0 -4
  352. package/dist/Index-fWOqfFkG.js +0 -4
  353. package/dist/Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js +0 -66
  354. package/dist/Int-CWsDtoxE.js +0 -38
  355. package/dist/Int-GGWiUqO2.js +0 -41
  356. package/dist/List-kRCsHp6d.js +0 -71
  357. package/dist/Maintaince-BG8MUi3A.js +0 -14
  358. package/dist/Month-B1icZmL4.js +0 -37
  359. package/dist/Month-DnYlAi7k.js +0 -38
  360. package/dist/Normal-RcqEyIFN.js +0 -256
  361. package/dist/Paging-DrdGzxeP.js +0 -94
  362. package/dist/RichText-4wrLw9cy.js +0 -41
  363. package/dist/Single-C3629BdC.js +0 -317
  364. package/dist/Text-CNtHdodK.js +0 -4
  365. package/dist/Text-DrJkdxZF.js +0 -52
  366. package/dist/Text-KAuEjP7I.js +0 -48
  367. package/dist/Text.vue_vue_type_style_index_0_lang-BJIbv4kF.js +0 -53
  368. package/dist/TextLink-BnijIoEJ.js +0 -59
  369. package/dist/Time-C3qlNZkJ.js +0 -37
  370. package/dist/Tree-DBvFF4Rj.js +0 -292
  371. package/dist/TreeNode-BOWB2WN9.js +0 -37
  372. package/dist/Update-CDLYYwgj.js +0 -64
  373. package/dist/Upload-B2hbxDsT.js +0 -144
  374. package/dist/Upload-mlk6Y4Po.js +0 -65
  375. package/dist/Year-BUF60NmB.js +0 -41
  376. package/dist/main-DymfKjqO.js +0 -16480
@@ -0,0 +1,62 @@
1
+ import { defineComponent as g, toRefs as D, ref as y, resolveComponent as B, openBlock as N, createElementBlock as V, createElementVNode as i, toDisplayString as o, unref as e, createVNode as a, withCtx as m, createTextVNode as d } from "vue";
2
+ import { I as l, D as u, r as w } from "./main-DSgfGXqN.js";
3
+ import "./assets/liquidjs-BfOWWjtJ.js";
4
+ import "./assets/underscore-B0BCaBxV.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/clone-BZn0cTAu.js";
7
+ import "./assets/underscore.string-DVXD2SZo.js";
8
+ import "./assets/moment-h96o7c8I.js";
9
+ const E = { class: "delete" }, I = { class: "delete-title" }, S = { class: "delete-buttons" }, H = /* @__PURE__ */ g({
10
+ __name: "Delete",
11
+ props: {
12
+ base: {},
13
+ route: {},
14
+ url: {},
15
+ win: {}
16
+ },
17
+ emits: ["navigate", "succeed", "close"],
18
+ setup(p, { emit: _ }) {
19
+ let s = _, f = p, { base: v, route: h } = D(f), n = y(), k = (t) => {
20
+ n.value = t.next;
21
+ };
22
+ (() => {
23
+ k(v.value.data);
24
+ })();
25
+ let C = () => {
26
+ let t = [h.value.query.id];
27
+ u.http.post(n.value.delete.route, t).then((c) => {
28
+ u.messenger.success(c.message), b();
29
+ });
30
+ }, b = () => {
31
+ w.toBackUrl(), s("succeed", "delete");
32
+ }, x = () => {
33
+ s("close");
34
+ };
35
+ return (t, c) => {
36
+ const r = B("el-button");
37
+ return N(), V("div", E, [
38
+ i("div", I, o(e(l).t("common.confirm_delete")), 1),
39
+ i("div", S, [
40
+ a(r, {
41
+ type: "danger",
42
+ onClick: e(C)
43
+ }, {
44
+ default: m(() => [
45
+ d(o(e(l).t("common.confirm")), 1)
46
+ ]),
47
+ _: 1
48
+ }, 8, ["onClick"]),
49
+ a(r, { onClick: e(x) }, {
50
+ default: m(() => [
51
+ d(o(e(l).t("common.cancel")), 1)
52
+ ]),
53
+ _: 1
54
+ }, 8, ["onClick"])
55
+ ])
56
+ ]);
57
+ };
58
+ }
59
+ });
60
+ export {
61
+ H as default
62
+ };
@@ -0,0 +1,75 @@
1
+ import { defineComponent as v, toRefs as x, resolveComponent as b, openBlock as N, createBlock as V, unref as t, withCtx as e, createVNode as a, createElementVNode as m, createTextVNode as p, toDisplayString as r } from "vue";
2
+ import "./assets/liquidjs-BfOWWjtJ.js";
3
+ import "./assets/underscore-B0BCaBxV.js";
4
+ import "./assets/file-saver-CwlpTZSc.js";
5
+ import "./assets/clone-BZn0cTAu.js";
6
+ import "./assets/underscore.string-DVXD2SZo.js";
7
+ import "./assets/moment-h96o7c8I.js";
8
+ import { p as g, I as c } from "./main-DSgfGXqN.js";
9
+ import "element-plus";
10
+ import "vue-router";
11
+ import "./assets/intro.js-Cg1adLK7.js";
12
+ const F = /* @__PURE__ */ v({
13
+ __name: "Detail",
14
+ props: {
15
+ route: {},
16
+ table: {},
17
+ next: {},
18
+ set: {}
19
+ },
20
+ emits: ["copy", "edit", "close"],
21
+ setup(u, { emit: d }) {
22
+ let n = d, y = u, { route: B, table: s, set: f, next: D } = x(y), k = (l) => {
23
+ n("copy", f.value[s.value.name][0], l);
24
+ }, C = (l) => {
25
+ n("edit", f.value[s.value.name][0], l);
26
+ }, _ = () => {
27
+ n("close");
28
+ };
29
+ return (l, o) => {
30
+ const i = b("el-button");
31
+ return N(), V(t(g), { padding: 5 }, {
32
+ default: e(() => [
33
+ a(i, {
34
+ type: "primary",
35
+ onClick: t(C)
36
+ }, {
37
+ icon: e(() => o[0] || (o[0] = [
38
+ m("i", { class: "fa fa-edit" }, null, -1)
39
+ ])),
40
+ default: e(() => [
41
+ p(" " + r(t(c).t("common.modify")), 1)
42
+ ]),
43
+ _: 1
44
+ }, 8, ["onClick"]),
45
+ a(i, {
46
+ type: "primary",
47
+ plain: "",
48
+ onClick: t(k)
49
+ }, {
50
+ icon: e(() => o[1] || (o[1] = [
51
+ m("i", { class: "fa fa-copy" }, null, -1)
52
+ ])),
53
+ default: e(() => [
54
+ p(" " + r(t(c).t("common.copy")), 1)
55
+ ]),
56
+ _: 1
57
+ }, 8, ["onClick"]),
58
+ a(i, { onClick: t(_) }, {
59
+ icon: e(() => o[2] || (o[2] = [
60
+ m("i", { class: "fa fa-chevron-left" }, null, -1)
61
+ ])),
62
+ default: e(() => [
63
+ p(" " + r(t(c).t("common.back")), 1)
64
+ ]),
65
+ _: 1
66
+ }, 8, ["onClick"])
67
+ ]),
68
+ _: 1
69
+ });
70
+ };
71
+ }
72
+ });
73
+ export {
74
+ F as default
75
+ };
@@ -1,9 +1,15 @@
1
1
  import { defineComponent as g, toRefs as x, computed as a, resolveComponent as b, openBlock as o, createElementBlock as n, Fragment as h, renderList as V, unref as k, createBlock as B, normalizeStyle as C, withCtx as N, createTextVNode as S, toDisplayString as s, createCommentVNode as j } from "vue";
2
- import { d as r } from "./main-DymfKjqO.js";
2
+ import { U as r } from "./main-DSgfGXqN.js";
3
+ import "./assets/liquidjs-BfOWWjtJ.js";
4
+ import "./assets/underscore-B0BCaBxV.js";
5
+ import "./assets/file-saver-CwlpTZSc.js";
6
+ import "./assets/clone-BZn0cTAu.js";
7
+ import "./assets/underscore.string-DVXD2SZo.js";
8
+ import "./assets/moment-h96o7c8I.js";
3
9
  const w = { class: "text-dictionary" }, D = {
4
10
  key: 0,
5
11
  class: "suffix"
6
- }, T = /* @__PURE__ */ g({
12
+ }, I = /* @__PURE__ */ g({
7
13
  __name: "Dictionary",
8
14
  props: {
9
15
  schema: {},
@@ -14,15 +20,15 @@ const w = { class: "text-dictionary" }, D = {
14
20
  modelValue: { type: [String, Number, Boolean] }
15
21
  },
16
22
  emits: ["submit", "change", "update:modelValue"],
17
- setup(i, { emit: c }) {
18
- let u = c, m = i, { table: E, field: d, set: z, modelValue: f } = x(m), t = a({
23
+ setup(i, { emit: m }) {
24
+ let u = m, c = i, { table: E, field: p, set: U, modelValue: d } = x(c), t = a({
19
25
  get() {
20
- return f.value;
26
+ return d.value;
21
27
  },
22
28
  set(e) {
23
29
  u("update:modelValue", e), u("change", e);
24
30
  }
25
- }), p = a(() => {
31
+ }), f = a(() => {
26
32
  if (t.value == null)
27
33
  return [];
28
34
  if (r.object.isNumber(t.value))
@@ -31,8 +37,8 @@ const w = { class: "text-dictionary" }, D = {
31
37
  return [t.value];
32
38
  let e = t.value.toString();
33
39
  return r.string.isEmpty(e) ? [] : e.split(",");
34
- }), _ = a(() => r.array.fromValues(p.value, d.value.control.data.data, "value", "text"));
35
- return (e, F) => {
40
+ }), _ = a(() => r.array.fromValues(f.value, p.value.control.data.data, "value", "text"));
41
+ return (e, z) => {
36
42
  const v = b("el-tag");
37
43
  return o(), n("div", w, [
38
44
  (o(!0), n(h, null, V(k(_), (l, y) => (o(), B(v, {
@@ -51,5 +57,5 @@ const w = { class: "text-dictionary" }, D = {
51
57
  }
52
58
  });
53
59
  export {
54
- T as default
60
+ I as default
55
61
  };
@@ -0,0 +1,54 @@
1
+ import { defineComponent as f, toRefs as _, computed as V, resolveComponent as b, openBlock as h, createBlock as y, unref as e, withKeys as x, isRef as g, createSlots as k, withCtx as v, createTextVNode as w, toDisplayString as C } from "vue";
2
+ import "./assets/liquidjs-BfOWWjtJ.js";
3
+ import "./assets/underscore-B0BCaBxV.js";
4
+ import "./assets/file-saver-CwlpTZSc.js";
5
+ import "./assets/clone-BZn0cTAu.js";
6
+ import "./assets/underscore.string-DVXD2SZo.js";
7
+ import "./assets/moment-h96o7c8I.js";
8
+ import { I as K } from "./main-DSgfGXqN.js";
9
+ const j = /* @__PURE__ */ f({
10
+ __name: "Email",
11
+ props: {
12
+ schema: {},
13
+ table: {},
14
+ field: {},
15
+ set: {},
16
+ row: {},
17
+ modelValue: {}
18
+ },
19
+ emits: ["submit", "change", "update:modelValue"],
20
+ setup(n, { emit: p }) {
21
+ let l = p, r = n, { table: d, field: t, set: B, modelValue: s } = _(r), u = () => {
22
+ l("submit");
23
+ }, o = V({
24
+ get() {
25
+ return s.value;
26
+ },
27
+ set(a) {
28
+ l("update:modelValue", a), l("change", a);
29
+ }
30
+ });
31
+ return (a, m) => {
32
+ const c = b("el-input");
33
+ return h(), y(c, {
34
+ type: "email",
35
+ disabled: e(t).control.readonly,
36
+ placeholder: e(K).field_placeholder(e(d).name, e(t).name),
37
+ onKeyup: x(e(u), ["enter", "native"]),
38
+ modelValue: e(o),
39
+ "onUpdate:modelValue": m[0] || (m[0] = (i) => g(o) ? o.value = i : o = i)
40
+ }, k({ _: 2 }, [
41
+ e(t).suffix ? {
42
+ name: "append",
43
+ fn: v(() => [
44
+ w(C(e(t).suffix), 1)
45
+ ]),
46
+ key: "0"
47
+ } : void 0
48
+ ]), 1032, ["disabled", "placeholder", "onKeyup", "modelValue"]);
49
+ };
50
+ }
51
+ });
52
+ export {
53
+ j as default
54
+ };
@@ -0,0 +1,164 @@
1
+ import { defineComponent as T, toRefs as A, ref as G, resolveComponent as p, openBlock as l, createElementBlock as u, createVNode as g, unref as e, withCtx as r, createElementVNode as n, normalizeClass as w, Fragment as x, renderList as L, createBlock as y, toDisplayString as d, createTextVNode as q, createCommentVNode as S } from "vue";
2
+ import { useRoute as H, useRouter as J } from "vue-router";
3
+ import { n as K, I as D, S as m, D as z } from "./main-DSgfGXqN.js";
4
+ import "./assets/liquidjs-BfOWWjtJ.js";
5
+ import "./assets/underscore-B0BCaBxV.js";
6
+ import "./assets/file-saver-CwlpTZSc.js";
7
+ import "./assets/clone-BZn0cTAu.js";
8
+ import "./assets/underscore.string-DVXD2SZo.js";
9
+ import "./assets/moment-h96o7c8I.js";
10
+ import "element-plus";
11
+ import "./assets/intro.js-Cg1adLK7.js";
12
+ import { _ as M } from "./SearchForm.vue_vue_type_style_index_0_lang-rTj9jfpz.js";
13
+ const O = { class: "file-layout" }, Q = { class: "toolbar" }, U = {
14
+ key: 0,
15
+ class: "files-image"
16
+ }, W = { class: "file-image" }, X = ["src"], Y = { class: "file-title" }, Z = { class: "file-name" }, ee = ["src", "alt"], te = { class: "file-title" }, oe = {
17
+ key: 2,
18
+ class: "not-support"
19
+ }, ge = /* @__PURE__ */ T({
20
+ __name: "File",
21
+ props: {
22
+ searchData: {},
23
+ module: {},
24
+ schema: {},
25
+ table: {},
26
+ layout: {},
27
+ next: {},
28
+ set: {},
29
+ url: {},
30
+ win: {}
31
+ },
32
+ setup(F) {
33
+ let N = F, { schema: V, table: s, layout: i, next: f, set: b, searchData: ae } = A(N), _ = H(), v = J(), k = G(), C = (a) => {
34
+ let t = { type: "fileLayout", value: a };
35
+ z.http.post("/config/save", t).then((h) => {
36
+ m.config.fileLayout = a;
37
+ });
38
+ }, B = (a) => {
39
+ let t = { ..._.query };
40
+ t.page = a, v.push({ path: f.value.paging.route, query: t });
41
+ }, R = () => {
42
+ let a = { ..._.query };
43
+ a.page = "1", a.condition = z.base64.encode(k.value);
44
+ let t = { path: f.value.paging.route, query: a };
45
+ v.push(t);
46
+ };
47
+ return (a, t) => {
48
+ const h = p("router-link"), E = p("el-table-column"), I = p("el-table"), j = p("el-button"), P = p("el-pagination");
49
+ return l(), u("div", O, [
50
+ g(e(K), {
51
+ title: e(D).module(a.module.type, a.module.name)
52
+ }, {
53
+ operation: r(() => [
54
+ n("div", Q, [
55
+ n("a", {
56
+ class: w({ active: e(m).config.fileLayout == "list" }),
57
+ onClick: t[0] || (t[0] = (o) => e(C)("list"))
58
+ }, t[2] || (t[2] = [
59
+ n("i", { class: "fa fa-list" }, null, -1)
60
+ ]), 2),
61
+ n("a", {
62
+ class: w({ active: e(m).config.fileLayout == "image" }),
63
+ onClick: t[1] || (t[1] = (o) => e(C)("image"))
64
+ }, t[3] || (t[3] = [
65
+ n("i", { class: "fa fa-image" }, null, -1)
66
+ ]), 2)
67
+ ])
68
+ ]),
69
+ append: r(() => [
70
+ e(m).config.fileLayout == "image" ? (l(), u("div", U, [
71
+ (l(!0), u(x, null, L(e(b)[e(s).name], (o, $) => (l(), y(h, {
72
+ class: "file",
73
+ to: { path: e(f).detail.route, query: { id: o[e(s).key.name], m: e(_).query.m } },
74
+ key: $
75
+ }, {
76
+ default: r(() => [
77
+ n("div", W, [
78
+ n("img", {
79
+ src: o[e(i).url],
80
+ alt: ""
81
+ }, null, 8, X)
82
+ ]),
83
+ n("div", Y, d(o[e(i).name]), 1)
84
+ ]),
85
+ _: 2
86
+ }, 1032, ["to"]))), 128))
87
+ ])) : e(m).config.fileLayout == "list" ? (l(), y(I, {
88
+ key: 1,
89
+ class: "files-list",
90
+ border: "",
91
+ data: e(b)[e(s).name]
92
+ }, {
93
+ empty: r(() => [
94
+ q(d(e(D).t("common.no_data")), 1)
95
+ ]),
96
+ default: r(() => [
97
+ (l(!0), u(x, null, L(e(s).show, (o, $) => (l(), y(E, {
98
+ "show-overflow-tooltip": "",
99
+ sortable: e(s) ? "custom" : !1,
100
+ "min-width": "180",
101
+ "sort-orders": ["descending", "ascending"],
102
+ prop: o.name,
103
+ label: `${o.label}${o.prefix || o.suffix ? "(" + (o.prefix || o.suffix) + ")" : ""}`,
104
+ key: `${e(s).name}.${o.name}`
105
+ }, {
106
+ default: r((c) => [
107
+ n("div", Z, [
108
+ c.column.property == e(i).name ? (l(), u("img", {
109
+ key: 0,
110
+ class: "file-image",
111
+ src: c.row[e(i).url],
112
+ alt: c.row[e(i).name]
113
+ }, null, 8, ee)) : S("", !0),
114
+ n("div", te, d(c.row[c.column.property]), 1)
115
+ ])
116
+ ]),
117
+ _: 2
118
+ }, 1032, ["sortable", "prop", "label"]))), 128))
119
+ ]),
120
+ _: 1
121
+ }, 8, ["data"])) : (l(), u("div", oe, "未支持的文件布局:" + d(e(m).config.fileLayout), 1))
122
+ ]),
123
+ default: r(() => [
124
+ e(s).search.length > 0 ? (l(), y(M, {
125
+ key: 0,
126
+ schema: e(V),
127
+ table: e(s),
128
+ search: e(k),
129
+ onSubmit: e(R)
130
+ }, null, 8, ["schema", "table", "search", "onSubmit"])) : S("", !0)
131
+ ]),
132
+ _: 1
133
+ }, 8, ["title"]),
134
+ g(j, {
135
+ type: "primary",
136
+ icon: "el-icon-plus"
137
+ }, {
138
+ default: r(() => [
139
+ g(h, {
140
+ to: { path: e(f).insert.route, query: { m: e(_).query.m } }
141
+ }, {
142
+ default: r(() => [
143
+ q("添加新" + d(e(s).title), 1)
144
+ ]),
145
+ _: 1
146
+ }, 8, ["to"])
147
+ ]),
148
+ _: 1
149
+ }),
150
+ g(P, {
151
+ background: "",
152
+ layout: "total, prev, pager, next, jumper",
153
+ "current-page": e(i).page,
154
+ "page-size": e(i).size,
155
+ total: e(i).count,
156
+ onCurrentChange: e(B)
157
+ }, null, 8, ["current-page", "page-size", "total", "onCurrentChange"])
158
+ ]);
159
+ };
160
+ }
161
+ });
162
+ export {
163
+ ge as default
164
+ };
@@ -0,0 +1,9 @@
1
+ import { e } from "./main-DSgfGXqN.js";
2
+ const r = {};
3
+ function c(n, t) {
4
+ return null;
5
+ }
6
+ const o = /* @__PURE__ */ e(r, [["render", c]]);
7
+ export {
8
+ o as default
9
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-DT7eOyjs.js";
1
+ import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-BBos3LCo.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,4 @@
1
+ import { k as f } from "./main-DSgfGXqN.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-ByxBNAdg.js";
1
+ import { _ as f } from "./Index.vue_vue_type_script_setup_true_lang-B5I-mP-B.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,4 @@
1
+ import { a as f } from "./main-DSgfGXqN.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,179 @@
1
+ import { defineComponent as H, ref as u, onMounted as P, computed as j, watch as Q, resolveComponent as f, openBlock as p, createElementBlock as U, createVNode as _, unref as l, withCtx as c, createElementVNode as n, toDisplayString as k, createBlock as v, createCommentVNode as C, isRef as L, withKeys as T, normalizeClass as Z, withModifiers as G, createTextVNode as $, Fragment as J, renderList as W, nextTick as A } from "vue";
2
+ import { useRoute as X } from "vue-router";
3
+ import { D as Y, S as w, I as a, U as F, F as I, t as ee, r as K, R as te } from "./main-DSgfGXqN.js";
4
+ import "./assets/liquidjs-BfOWWjtJ.js";
5
+ import "./assets/underscore-B0BCaBxV.js";
6
+ import "./assets/file-saver-CwlpTZSc.js";
7
+ import "./assets/clone-BZn0cTAu.js";
8
+ import "./assets/underscore.string-DVXD2SZo.js";
9
+ import "./assets/moment-h96o7c8I.js";
10
+ const le = { class: "login-container" }, oe = { class: "title-container" }, se = { class: "title" }, re = { class: "btn-others" }, ne = ["href"], ae = ["innerHTML"], ke = /* @__PURE__ */ H({
11
+ __name: "Index",
12
+ setup(ie) {
13
+ let i = u({ id: "", secret: "" }), d = u("password"), r = u(!1), y = u(!1), V = u(), h = u(), b = u(), x = X(), M = {
14
+ id: [{
15
+ required: !0,
16
+ trigger: "blur",
17
+ validator: (t, e, s) => {
18
+ e ? e.indexOf("@") > -1 ? F.string.isEmail(e) ? s() : s(new Error("邮箱格式不正确")) : s() : s(new Error(a.t("common.username_or_email") + " " + a.t("common.should_not_null")));
19
+ }
20
+ }]
21
+ // secret: [{required: true, trigger: 'blur', validator: validateSecret}]
22
+ }, N = (t) => {
23
+ t.key && t.key.length == 1 && (t.shiftKey && t.key >= "a" && t.key <= "z" || !t.shiftKey && t.key >= "A" && t.key <= "Z" ? r.value = !0 : r.value = !1), t.key == "CapsLock" && r.value == !0 && (r.value = !1);
24
+ }, B = () => {
25
+ d.value == "password" ? d.value = "" : d.value = "password", A(() => {
26
+ b.value.focus();
27
+ });
28
+ }, E = async (t) => {
29
+ y.value = !0, V.value.validate(async (e) => {
30
+ if (!e)
31
+ return y.value = !1, !1;
32
+ (await I.sso.createAsync(t)).login(i.value).then(async ({ data: m }) => {
33
+ await ee(m), F.url.getBackUrl() != null ? K.toBackUrl() : K.to("/");
34
+ }).finally(() => {
35
+ A(() => {
36
+ y.value = !1;
37
+ });
38
+ });
39
+ });
40
+ }, O = async (t) => {
41
+ let e = await I.sso.createAsync(t), s = x.query.return_url, m = `${window.location.origin}/sso/callback?type=${t.toLowerCase()}&return_url=${s}`;
42
+ return e.loginUrl(te.setting.api.url + `/user/login?type=${t.toLowerCase()}&callback_url=` + encodeURIComponent(m));
43
+ }, S = (t) => Object.keys(t).reduce((e, s) => (e[s] = t[s], e), {});
44
+ P(async () => {
45
+ Y.i18n.setI18nTitle("common.login");
46
+ for (let t = 0; t < w.setting.ssos.length; t++) {
47
+ let e = w.setting.ssos[t];
48
+ e.loginUrl = await O(e.type);
49
+ }
50
+ g.value != null && (i.value.id == "" ? h.value.focus() : i.value.secret == "" && b.value.focus());
51
+ });
52
+ let g = j(() => w.setting.ssos.find((e) => e.type.toUpperCase() == "BEARER"));
53
+ return Q(() => x, (t) => {
54
+ debugger;
55
+ const e = t.query;
56
+ e && S(e);
57
+ }), (t, e) => {
58
+ const s = f("el-input"), m = f("el-form-item"), R = f("el-tooltip"), q = f("el-button"), D = f("router-link"), z = f("el-form");
59
+ return p(), U("div", le, [
60
+ _(z, {
61
+ ref_key: "loginFormRef",
62
+ ref: V,
63
+ autocomplete: "on",
64
+ "label-position": "left",
65
+ model: l(i),
66
+ rules: l(M)
67
+ }, {
68
+ default: c(() => [
69
+ n("div", oe, [
70
+ n("h3", se, k(l(a).sys("title")), 1)
71
+ ]),
72
+ l(g) ? (p(), v(m, {
73
+ key: 0,
74
+ prop: "id"
75
+ }, {
76
+ default: c(() => [
77
+ e[7] || (e[7] = n("span", { class: "svg-container" }, [
78
+ n("i", { class: "fa fa-user" })
79
+ ], -1)),
80
+ _(s, {
81
+ ref_key: "idRef",
82
+ ref: h,
83
+ placeholder: l(a).t("common.username_or_email"),
84
+ name: "id",
85
+ type: "text",
86
+ tabindex: "1",
87
+ autocomplete: "on",
88
+ modelValue: l(i).id,
89
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => l(i).id = o)
90
+ }, null, 8, ["placeholder", "modelValue"])
91
+ ]),
92
+ _: 1
93
+ })) : C("", !0),
94
+ l(g) ? (p(), v(R, {
95
+ key: 1,
96
+ content: "Caps lock is On",
97
+ placement: "right",
98
+ manual: "",
99
+ modelValue: l(r),
100
+ "onUpdate:modelValue": e[5] || (e[5] = (o) => L(r) ? r.value = o : r = o)
101
+ }, {
102
+ default: c(() => [
103
+ _(m, { prop: "secret" }, {
104
+ default: c(() => [
105
+ e[8] || (e[8] = n("span", { class: "svg-container" }, [
106
+ n("i", { class: "fa fa-key" })
107
+ ], -1)),
108
+ (p(), v(s, {
109
+ ref_key: "secretRef",
110
+ ref: b,
111
+ key: l(d),
112
+ type: l(d),
113
+ placeholder: l(a).t("common.password"),
114
+ name: "secret",
115
+ tabindex: "2",
116
+ autocomplete: "on",
117
+ onKeyup: [
118
+ T(l(N), ["native"]),
119
+ e[2] || (e[2] = T((o) => l(E)("Bearer"), ["enter", "native"]))
120
+ ],
121
+ onBlur: e[1] || (e[1] = (o) => L(r) ? r.value = !1 : r = !1),
122
+ modelValue: l(i).secret,
123
+ "onUpdate:modelValue": e[3] || (e[3] = (o) => l(i).secret = o)
124
+ }, null, 8, ["type", "placeholder", "onKeyup", "modelValue"])),
125
+ n("span", {
126
+ class: "btn-pwd",
127
+ onClick: e[4] || (e[4] = //@ts-ignore
128
+ (...o) => l(B) && l(B)(...o))
129
+ }, [
130
+ n("i", {
131
+ class: Z(l(d) == "password" ? "fa fa-eye" : "fa fa-eye-slash")
132
+ }, null, 2)
133
+ ])
134
+ ]),
135
+ _: 1
136
+ })
137
+ ]),
138
+ _: 1
139
+ }, 8, ["modelValue"])) : C("", !0),
140
+ l(g) ? (p(), v(q, {
141
+ key: 2,
142
+ type: "primary",
143
+ class: "btn-login",
144
+ loading: l(y),
145
+ onClick: e[6] || (e[6] = G((o) => l(E)("Bearer"), ["prevent"]))
146
+ }, {
147
+ default: c(() => [
148
+ $(k(l(a).t("common.login")), 1)
149
+ ]),
150
+ _: 1
151
+ }, 8, ["loading"])) : C("", !0),
152
+ n("div", re, [
153
+ (p(!0), U(J, null, W(l(w).setting.ssos.filter((o) => o.type.toUpperCase() != "BEARER"), (o) => (p(), U("a", {
154
+ href: o.loginUrl
155
+ }, k(l(a).t(o.text)), 9, ne))), 256)),
156
+ _(D, {
157
+ class: "btn-register",
158
+ to: "/register"
159
+ }, {
160
+ default: c(() => [
161
+ $(k(l(a).t("common.register")), 1)
162
+ ]),
163
+ _: 1
164
+ })
165
+ ])
166
+ ]),
167
+ _: 1
168
+ }, 8, ["model", "rules"]),
169
+ n("div", {
170
+ class: "powered-by",
171
+ innerHTML: l(a).t("sys.powered_by")
172
+ }, null, 8, ae)
173
+ ]);
174
+ };
175
+ }
176
+ });
177
+ export {
178
+ ke as default
179
+ };
@@ -0,0 +1,4 @@
1
+ import { b as f } from "./main-DSgfGXqN.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { x as f } from "./main-DSgfGXqN.js";
2
+ export {
3
+ f as default
4
+ };