@fangzhongya/vue-archive 0.1.21 → 0.1.23

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 (341) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs +1 -0
  2. package/dist/_virtual/_commonjsHelpers.js +6 -0
  3. package/dist/_virtual/_plugin-vue_export-helper.cjs +1 -0
  4. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  5. package/dist/_virtual/common.cjs +1 -0
  6. package/dist/_virtual/common.js +7 -0
  7. package/dist/_virtual/core.cjs +1 -0
  8. package/dist/_virtual/core.js +7 -0
  9. package/dist/index.css +1 -2
  10. package/dist/node_modules/.pnpm/@highlightjs_vue-plugin@2.1_dace39d2ab17d71b087de9a32848566a/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.cjs +1 -0
  11. package/dist/node_modules/.pnpm/@highlightjs_vue-plugin@2.1_dace39d2ab17d71b087de9a32848566a/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js +31 -0
  12. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.cjs +1 -0
  13. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.js +5 -0
  14. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.cjs +1 -0
  15. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +5 -0
  16. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.cjs +1 -0
  17. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.js +47 -0
  18. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.cjs +3 -0
  19. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1063 -0
  20. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.cjs +1 -0
  21. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.js +383 -0
  22. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.cjs +1 -0
  23. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.js +283 -0
  24. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.cjs +1 -0
  25. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.js +527 -0
  26. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.cjs +1 -0
  27. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.js +388 -0
  28. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.cjs +1 -0
  29. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.js +929 -0
  30. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.cjs +1 -0
  31. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.js +60 -0
  32. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.cjs +1 -0
  33. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.js +157 -0
  34. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.cjs +1 -0
  35. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.js +76 -0
  36. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.cjs +1 -0
  37. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.js +113 -0
  38. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.cjs +1 -0
  39. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.js +246 -0
  40. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.cjs +1 -0
  41. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.js +664 -0
  42. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.cjs +1 -0
  43. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.js +44 -0
  44. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.cjs +2 -0
  45. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.js +248 -0
  46. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.cjs +1 -0
  47. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.js +998 -0
  48. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.cjs +1 -0
  49. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.js +65 -0
  50. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.cjs +1 -0
  51. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.js +73 -0
  52. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.cjs +1 -0
  53. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.js +222 -0
  54. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.cjs +1 -0
  55. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.js +243 -0
  56. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.cjs +1 -0
  57. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.js +475 -0
  58. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.cjs +1 -0
  59. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.js +53 -0
  60. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.cjs +2 -0
  61. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.js +572 -0
  62. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.cjs +1 -0
  63. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.js +19 -0
  64. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.cjs +1 -0
  65. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.js +32 -0
  66. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.cjs +1 -0
  67. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.js +405 -0
  68. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.cjs +1 -0
  69. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.js +213 -0
  70. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.cjs +1 -0
  71. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.js +394 -0
  72. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.cjs +1 -0
  73. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.js +311 -0
  74. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.cjs +1 -0
  75. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.js +914 -0
  76. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.cjs +1 -0
  77. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.js +31 -0
  78. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.cjs +1 -0
  79. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.js +621 -0
  80. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.cjs +1 -0
  81. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.js +805 -0
  82. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.cjs +1 -0
  83. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.js +759 -0
  84. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.cjs +1 -0
  85. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.js +128 -0
  86. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.cjs +1 -0
  87. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.js +120 -0
  88. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.cjs +1 -0
  89. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.js +225 -0
  90. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.cjs +1 -0
  91. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.js +189 -0
  92. package/dist/packages/components/aside/index.vue.cjs +1 -0
  93. package/dist/packages/components/aside/index.vue.js +98 -0
  94. package/dist/packages/components/aside/index.vue2.cjs +1 -0
  95. package/dist/packages/components/aside/index.vue2.js +4 -0
  96. package/dist/packages/components/boxurl/index.vue.cjs +1 -0
  97. package/dist/packages/components/boxurl/index.vue.js +62 -0
  98. package/dist/packages/components/boxurl/index.vue2.cjs +1 -0
  99. package/dist/packages/components/boxurl/index.vue2.js +4 -0
  100. package/dist/packages/components/choice/choice.vue.cjs +1 -0
  101. package/dist/packages/components/choice/choice.vue.js +46 -0
  102. package/dist/packages/components/choice/choice.vue2.cjs +1 -0
  103. package/dist/packages/components/choice/choice.vue2.js +4 -0
  104. package/dist/packages/components/choice/index.vue.cjs +1 -0
  105. package/dist/packages/components/choice/index.vue.js +87 -0
  106. package/dist/packages/components/choice/index.vue2.cjs +1 -0
  107. package/dist/packages/components/choice/index.vue2.js +4 -0
  108. package/dist/packages/components/code/highlight.vue.cjs +1 -0
  109. package/dist/packages/components/code/highlight.vue.js +16 -0
  110. package/dist/packages/components/code/highlight.vue2.cjs +1 -0
  111. package/dist/packages/components/code/highlight.vue2.js +20 -0
  112. package/dist/packages/components/code/index.vue.cjs +1 -0
  113. package/dist/packages/components/code/index.vue.js +115 -0
  114. package/dist/packages/components/code/index.vue2.cjs +1 -0
  115. package/dist/packages/components/code/index.vue2.js +4 -0
  116. package/dist/packages/components/compo/code.vue.cjs +1 -0
  117. package/dist/packages/components/compo/code.vue.js +21 -0
  118. package/dist/packages/components/compo/code.vue3.cjs +1 -0
  119. package/dist/packages/components/compo/code.vue3.js +5 -0
  120. package/dist/packages/components/compo/ftable.vue.cjs +1 -0
  121. package/dist/packages/components/compo/ftable.vue.js +57 -0
  122. package/dist/packages/components/compo/ftable.vue2.cjs +1 -0
  123. package/dist/packages/components/compo/ftable.vue2.js +4 -0
  124. package/dist/packages/components/compo/index.cjs +1 -0
  125. package/dist/packages/components/compo/index.js +127 -0
  126. package/dist/packages/components/compo/index.vue.cjs +1 -0
  127. package/dist/packages/components/compo/index.vue.js +79 -0
  128. package/dist/packages/components/compo/index.vue2.cjs +1 -0
  129. package/dist/packages/components/compo/index.vue2.js +4 -0
  130. package/dist/packages/components/compo/info-top.vue.cjs +1 -0
  131. package/dist/packages/components/compo/info-top.vue.js +32 -0
  132. package/dist/packages/components/compo/info-top.vue2.cjs +1 -0
  133. package/dist/packages/components/compo/info-top.vue2.js +4 -0
  134. package/dist/packages/components/compo/info.vue.cjs +1 -0
  135. package/dist/packages/components/compo/info.vue.js +41 -0
  136. package/dist/packages/components/compo/info.vue2.cjs +1 -0
  137. package/dist/packages/components/compo/info.vue2.js +4 -0
  138. package/dist/packages/components/compo/props.vue.cjs +1 -0
  139. package/dist/packages/components/compo/props.vue.js +87 -0
  140. package/dist/packages/components/compo/props.vue2.cjs +1 -0
  141. package/dist/packages/components/compo/props.vue2.js +4 -0
  142. package/dist/packages/components/compo/top.cjs +1 -0
  143. package/dist/packages/components/compo/top.js +148 -0
  144. package/dist/packages/components/header/index.vue.cjs +1 -0
  145. package/dist/packages/components/header/index.vue.js +10 -0
  146. package/dist/packages/components/main/index.vue.cjs +1 -0
  147. package/dist/packages/components/main/index.vue.js +68 -0
  148. package/dist/packages/components/main/index.vue2.cjs +1 -0
  149. package/dist/packages/components/main/index.vue2.js +4 -0
  150. package/dist/packages/components/md/index.vue.cjs +1 -0
  151. package/dist/packages/components/md/index.vue.js +56 -0
  152. package/dist/packages/components/md/index.vue2.cjs +1 -0
  153. package/dist/packages/components/md/index.vue2.js +4 -0
  154. package/dist/packages/components/test/index.cjs +1 -0
  155. package/dist/packages/components/test/index.js +105 -0
  156. package/dist/packages/components/test/index.vue.cjs +1 -0
  157. package/dist/packages/components/test/index.vue.js +75 -0
  158. package/dist/packages/components/test/index.vue2.cjs +1 -0
  159. package/dist/packages/components/test/index.vue2.js +4 -0
  160. package/dist/packages/components/test/top.cjs +1 -0
  161. package/dist/packages/components/test/top.js +148 -0
  162. package/dist/packages/components/use/code.cjs +20 -0
  163. package/dist/packages/components/use/code.js +212 -0
  164. package/dist/packages/components/use/code.vue.cjs +1 -0
  165. package/dist/packages/components/use/code.vue.js +66 -0
  166. package/dist/packages/components/use/code.vue2.cjs +1 -0
  167. package/dist/packages/components/use/code.vue2.js +4 -0
  168. package/dist/packages/components/use/edit.cjs +18 -0
  169. package/dist/packages/components/use/edit.js +214 -0
  170. package/dist/packages/components/use/effect.vue.cjs +1 -0
  171. package/dist/packages/components/use/effect.vue.js +12 -0
  172. package/dist/packages/components/use/index.cjs +1 -0
  173. package/dist/packages/components/use/index.js +196 -0
  174. package/dist/packages/components/use/prettier.cjs +1 -0
  175. package/dist/packages/components/use/prettier.js +40 -0
  176. package/dist/packages/components/use/retrie/any/index.vue.cjs +1 -0
  177. package/dist/packages/components/use/retrie/any/index.vue.js +115 -0
  178. package/dist/packages/components/use/retrie/any/index.vue2.cjs +1 -0
  179. package/dist/packages/components/use/retrie/any/index.vue2.js +4 -0
  180. package/dist/packages/components/use/retrie/array/index.vue.cjs +3 -0
  181. package/dist/packages/components/use/retrie/array/index.vue.js +55 -0
  182. package/dist/packages/components/use/retrie/array/index.vue2.cjs +1 -0
  183. package/dist/packages/components/use/retrie/array/index.vue2.js +4 -0
  184. package/dist/packages/components/use/retrie/boolean/index.vue.cjs +1 -0
  185. package/dist/packages/components/use/retrie/boolean/index.vue.js +68 -0
  186. package/dist/packages/components/use/retrie/boolean/index.vue3.cjs +1 -0
  187. package/dist/packages/components/use/retrie/boolean/index.vue3.js +5 -0
  188. package/dist/packages/components/use/retrie/choice/index.vue.cjs +1 -0
  189. package/dist/packages/components/use/retrie/choice/index.vue.js +142 -0
  190. package/dist/packages/components/use/retrie/choice/index.vue3.cjs +1 -0
  191. package/dist/packages/components/use/retrie/choice/index.vue3.js +5 -0
  192. package/dist/packages/components/use/retrie/expose/index.vue.cjs +1 -0
  193. package/dist/packages/components/use/retrie/expose/index.vue.js +63 -0
  194. package/dist/packages/components/use/retrie/expose/index.vue3.cjs +1 -0
  195. package/dist/packages/components/use/retrie/expose/index.vue3.js +5 -0
  196. package/dist/packages/components/use/retrie/form/index.vue.cjs +1 -0
  197. package/dist/packages/components/use/retrie/form/index.vue.js +148 -0
  198. package/dist/packages/components/use/retrie/form/index.vue2.cjs +1 -0
  199. package/dist/packages/components/use/retrie/form/index.vue2.js +4 -0
  200. package/dist/packages/components/use/retrie/function/index.vue.cjs +3 -0
  201. package/dist/packages/components/use/retrie/function/index.vue.js +68 -0
  202. package/dist/packages/components/use/retrie/function/index.vue2.cjs +1 -0
  203. package/dist/packages/components/use/retrie/function/index.vue2.js +4 -0
  204. package/dist/packages/components/use/retrie/index.vue.cjs +1 -0
  205. package/dist/packages/components/use/retrie/index.vue.js +103 -0
  206. package/dist/packages/components/use/retrie/index.vue3.cjs +1 -0
  207. package/dist/packages/components/use/retrie/index.vue3.js +5 -0
  208. package/dist/packages/components/use/retrie/input/editor/editor.cjs +1 -0
  209. package/dist/packages/components/use/retrie/input/editor/editor.js +104 -0
  210. package/dist/packages/components/use/retrie/input/editor/editor.vue.cjs +5 -0
  211. package/dist/packages/components/use/retrie/input/editor/editor.vue.js +59 -0
  212. package/dist/packages/components/use/retrie/input/editor/editor.vue3.cjs +1 -0
  213. package/dist/packages/components/use/retrie/input/editor/editor.vue3.js +5 -0
  214. package/dist/packages/components/use/retrie/input/editor/getExtraLib.cjs +416 -0
  215. package/dist/packages/components/use/retrie/input/editor/getExtraLib.js +427 -0
  216. package/dist/packages/components/use/retrie/input/index.vue.cjs +1 -0
  217. package/dist/packages/components/use/retrie/input/index.vue.js +54 -0
  218. package/dist/packages/components/use/retrie/input/index.vue3.cjs +1 -0
  219. package/dist/packages/components/use/retrie/input/index.vue3.js +5 -0
  220. package/dist/packages/components/use/retrie/input/text.vue.cjs +5 -0
  221. package/dist/packages/components/use/retrie/input/text.vue.js +39 -0
  222. package/dist/packages/components/use/retrie/input/text.vue3.cjs +1 -0
  223. package/dist/packages/components/use/retrie/input/text.vue3.js +5 -0
  224. package/dist/packages/components/use/retrie/number/index.vue.cjs +1 -0
  225. package/dist/packages/components/use/retrie/number/index.vue.js +50 -0
  226. package/dist/packages/components/use/retrie/number/index.vue3.cjs +1 -0
  227. package/dist/packages/components/use/retrie/number/index.vue3.js +5 -0
  228. package/dist/packages/components/use/retrie/object/index.vue.cjs +3 -0
  229. package/dist/packages/components/use/retrie/object/index.vue.js +55 -0
  230. package/dist/packages/components/use/retrie/object/index.vue2.cjs +1 -0
  231. package/dist/packages/components/use/retrie/object/index.vue2.js +4 -0
  232. package/dist/packages/components/use/retrie/other/index.vue.cjs +1 -0
  233. package/dist/packages/components/use/retrie/other/index.vue.js +67 -0
  234. package/dist/packages/components/use/retrie/other/index.vue2.cjs +1 -0
  235. package/dist/packages/components/use/retrie/other/index.vue2.js +4 -0
  236. package/dist/packages/components/use/retrie/select/index.vue.cjs +1 -0
  237. package/dist/packages/components/use/retrie/select/index.vue.js +123 -0
  238. package/dist/packages/components/use/retrie/select/index.vue3.cjs +1 -0
  239. package/dist/packages/components/use/retrie/select/index.vue3.js +5 -0
  240. package/dist/packages/components/use/retrie/slot/index.vue.cjs +1 -0
  241. package/dist/packages/components/use/retrie/slot/index.vue.js +43 -0
  242. package/dist/packages/components/use/retrie/slot/index.vue2.cjs +1 -0
  243. package/dist/packages/components/use/retrie/slot/index.vue2.js +4 -0
  244. package/dist/packages/components/use/retrie/string/index.vue.cjs +1 -0
  245. package/dist/packages/components/use/retrie/string/index.vue.js +53 -0
  246. package/dist/packages/components/use/retrie/string/index.vue3.cjs +1 -0
  247. package/dist/packages/components/use/retrie/string/index.vue3.js +5 -0
  248. package/dist/packages/components/use/set-code.vue.cjs +1 -0
  249. package/dist/packages/components/use/set-code.vue.js +63 -0
  250. package/dist/packages/components/use/set-code.vue2.cjs +1 -0
  251. package/dist/packages/components/use/set-code.vue2.js +4 -0
  252. package/dist/packages/components/use/set-emit.vue.cjs +1 -0
  253. package/dist/packages/components/use/set-emit.vue.js +50 -0
  254. package/dist/packages/components/use/set-emit.vue3.cjs +1 -0
  255. package/dist/packages/components/use/set-emit.vue3.js +5 -0
  256. package/dist/packages/components/use/set-expose.vue.cjs +1 -0
  257. package/dist/packages/components/use/set-expose.vue.js +66 -0
  258. package/dist/packages/components/use/set-expose.vue3.cjs +1 -0
  259. package/dist/packages/components/use/set-expose.vue3.js +5 -0
  260. package/dist/packages/components/use/set-props.vue.cjs +1 -0
  261. package/dist/packages/components/use/set-props.vue.js +71 -0
  262. package/dist/packages/components/use/set-props.vue2.cjs +1 -0
  263. package/dist/packages/components/use/set-props.vue2.js +4 -0
  264. package/dist/packages/components/use/set-slot.vue.cjs +1 -0
  265. package/dist/packages/components/use/set-slot.vue.js +45 -0
  266. package/dist/packages/components/use/set-slot.vue2.cjs +1 -0
  267. package/dist/packages/components/use/set-slot.vue2.js +4 -0
  268. package/dist/packages/components/use/util.cjs +3 -0
  269. package/dist/packages/components/use/util.js +294 -0
  270. package/dist/packages/config.cjs +1 -0
  271. package/dist/packages/config.js +14 -0
  272. package/dist/packages/directives/adjust/index.cjs +1 -0
  273. package/dist/packages/directives/adjust/index.js +246 -0
  274. package/dist/packages/index/index.vue.cjs +1 -0
  275. package/dist/packages/index/index.vue.js +4 -0
  276. package/dist/packages/index/index.vue2.cjs +1 -0
  277. package/dist/packages/index/index.vue2.js +14 -0
  278. package/dist/packages/index.cjs +1 -0
  279. package/dist/packages/index.d.ts +1 -0
  280. package/dist/packages/index.js +20 -0
  281. package/dist/packages/page/compon/index.vue.cjs +1 -0
  282. package/dist/packages/page/compon/index.vue.js +4 -0
  283. package/dist/packages/page/compon/index.vue2.cjs +1 -0
  284. package/dist/packages/page/compon/index.vue2.js +21 -0
  285. package/dist/packages/page/comprops/index.vue.cjs +1 -0
  286. package/dist/packages/page/comprops/index.vue.js +4 -0
  287. package/dist/packages/page/comprops/index.vue2.cjs +1 -0
  288. package/dist/packages/page/comprops/index.vue2.js +91 -0
  289. package/dist/packages/page/develop/index.vue.cjs +1 -0
  290. package/dist/packages/page/develop/index.vue.js +4 -0
  291. package/dist/packages/page/develop/index.vue2.cjs +1 -0
  292. package/dist/packages/page/develop/index.vue2.js +26 -0
  293. package/dist/packages/page/edit/index.vue.cjs +1 -0
  294. package/dist/packages/page/edit/index.vue.js +4 -0
  295. package/dist/packages/page/edit/index.vue2.cjs +1 -0
  296. package/dist/packages/page/edit/index.vue2.js +27 -0
  297. package/dist/packages/page/index/index.vue.cjs +1 -0
  298. package/dist/packages/page/index/index.vue.js +4 -0
  299. package/dist/packages/page/index/index.vue2.cjs +1 -0
  300. package/dist/packages/page/index/index.vue2.js +61 -0
  301. package/dist/packages/page/single/index.vue.cjs +1 -0
  302. package/dist/packages/page/single/index.vue.js +4 -0
  303. package/dist/packages/page/single/index.vue2.cjs +1 -0
  304. package/dist/packages/page/single/index.vue2.js +60 -0
  305. package/dist/packages/page/tests/index.vue.cjs +1 -0
  306. package/dist/packages/page/tests/index.vue.js +4 -0
  307. package/dist/packages/page/tests/index.vue2.cjs +1 -0
  308. package/dist/packages/page/tests/index.vue2.js +67 -0
  309. package/dist/packages/router/file.cjs +1 -0
  310. package/dist/packages/router/file.js +44 -0
  311. package/dist/packages/router/index.cjs +1 -0
  312. package/dist/packages/router/index.js +122 -0
  313. package/dist/packages/utils/annotat.cjs +1 -0
  314. package/dist/packages/utils/annotat.js +322 -0
  315. package/dist/packages/utils/common.cjs +1 -0
  316. package/dist/packages/utils/common.js +200 -0
  317. package/dist/packages/utils/glob.cjs +5 -0
  318. package/dist/packages/utils/glob.js +502 -0
  319. package/dist/packages/utils/index.cjs +1 -0
  320. package/dist/packages/utils/index.js +14 -0
  321. package/dist/packages/utils/props.cjs +1 -0
  322. package/dist/packages/utils/props.js +110 -0
  323. package/dist/packages/utils/storage.cjs +1 -0
  324. package/dist/packages/utils/storage.js +34 -0
  325. package/dist/packages/utils/util.cjs +1 -0
  326. package/dist/packages/utils/util.js +46 -0
  327. package/package.json +5 -5
  328. package/dist/config.cjs +0 -1
  329. package/dist/config.js +0 -11
  330. package/dist/index/index.cjs +0 -1
  331. package/dist/index/index.js +0 -5
  332. package/dist/index/index.vue_vue_type_script_setup_true_lang.cjs +0 -1
  333. package/dist/index/index.vue_vue_type_script_setup_true_lang.js +0 -12
  334. package/dist/index.cjs +0 -1
  335. package/dist/index.js +0 -15
  336. package/dist/router/file.cjs +0 -1
  337. package/dist/router/file.js +0 -32
  338. package/dist/router/index.cjs +0 -1
  339. package/dist/router/index.js +0 -45
  340. package/dist/utils/storage.cjs +0 -1
  341. package/dist/utils/storage.js +0 -23
@@ -0,0 +1,122 @@
1
+ import { getConfig as p } from "../config.js";
2
+ import { setSession as d, getSession as u } from "../utils/storage.js";
3
+ import "@fangzhongya/utils/basic/string/firstUpper";
4
+ import { getFileName as h } from "./file.js";
5
+ const l = "__document", m = [
6
+ {
7
+ path: "/" + l,
8
+ name: l,
9
+ component: () => import("../index/index.vue.js"),
10
+ redirect: { name: l + "Index" },
11
+ meta: { title: "文档" },
12
+ children: []
13
+ }
14
+ ];
15
+ let s = 0;
16
+ document.addEventListener("keydown", g);
17
+ function g(t) {
18
+ t = t || window.event, (t.ctrlKey && t.location == 82 || //ctrl+R
19
+ t.location == 116) && d("-keydown-F5", 2);
20
+ }
21
+ let a = l;
22
+ function x(t) {
23
+ a = p("router") || l;
24
+ let e = "/" + a;
25
+ const r = h();
26
+ for (let n = 0; n < r.length; n++) {
27
+ const o = r[n];
28
+ m[0].children?.push({
29
+ path: o.value,
30
+ name: a + o.name,
31
+ component: o.component
32
+ });
33
+ }
34
+ if (m[0].path = e, m[0].name = a, m[0].redirect = { name: a + "Index" }, m[0].children?.unshift({
35
+ path: e + "/:chapters+",
36
+ redirect: { name: a + "Index" }
37
+ }), m.forEach((n) => {
38
+ t.addRoute(n);
39
+ }), t.beforeEach((n, o) => {
40
+ if (o.fullPath == "/") {
41
+ let y = u("-keydown-F5");
42
+ document.referrer || y == 2 ? (console.log("刷新"), s = 2) : (console.log("地址栏输入 或者 刷新"), s = 3);
43
+ } else
44
+ console.log("跳转"), s = 1;
45
+ return d("-keydown-F5", 0), !0;
46
+ }), p("redirect")) {
47
+ const n = t.getRoutes().filter((o) => o.path == "/")[0] || {
48
+ path: "/"
49
+ };
50
+ n.redirect = e, n.name ? t.addRoute(n.name, n) : t.addRoute(n);
51
+ }
52
+ }
53
+ const f = {};
54
+ function q(t) {
55
+ let e = t.path, r = t.params;
56
+ if (r && Object.keys(r).length)
57
+ return r;
58
+ {
59
+ let i = f[e];
60
+ return i && Object.keys(i).length ? i : s == 3 ? {} : u("router.toPage." + e);
61
+ }
62
+ }
63
+ function c(t, e, r = "push") {
64
+ let i = e.path || "";
65
+ const n = e.name, o = e.params || {};
66
+ delete e.params, t[r](e), n && (i = t.resolve({ name: n }).path), f[i] = o, d("router.toPage." + i, o);
67
+ }
68
+ function E(t, e) {
69
+ c(t, {
70
+ name: a + "Single",
71
+ query: {
72
+ id: e?.name + "/" + e?.value
73
+ },
74
+ params: { key: e?.key, comkey: e?.comkey }
75
+ });
76
+ }
77
+ function F(t, e) {
78
+ c(t, {
79
+ name: a + "Develop",
80
+ query: {
81
+ id: e?.value
82
+ },
83
+ params: { key: e?.key }
84
+ });
85
+ }
86
+ function R(t, e) {
87
+ c(t, {
88
+ name: a + "Edit",
89
+ query: {
90
+ id: e?.value
91
+ },
92
+ params: { key: e?.key }
93
+ });
94
+ }
95
+ function S(t, e) {
96
+ c(t, {
97
+ name: a + "Tests",
98
+ query: {
99
+ id: e?.value
100
+ },
101
+ params: { key: e?.key }
102
+ });
103
+ }
104
+ function C(t, e) {
105
+ c(t, {
106
+ name: a + "Compon",
107
+ query: {
108
+ id: e?.value
109
+ },
110
+ params: { key: e?.key }
111
+ });
112
+ }
113
+ export {
114
+ q as getPageParams,
115
+ x as init,
116
+ C as toCompon,
117
+ F as toDevelop,
118
+ R as toEdit,
119
+ c as toPage,
120
+ E as toSingle,
121
+ S as toTests
122
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("comment-parser"),q=require("@fangzhongya/utils/basic/string/firstLower"),p={titles:[],propss:[],slots:[],emitss:[],exposes:[]};function w(){Object.keys(p).forEach(e=>{p[e]=[]})}function S(e,r){let t=e.charAt(0),n=[['"','"'],["'","'"],["`","`"],["(",")"],["{","}"],["[","]"]];const s=n.map(i=>i[0]);let l=s.indexOf(t);if(l!=-1){let i=[t];for(let o=1;o<e.length;o++){if(t=e[o],l=s.indexOf(t),l!=-1)l>2?i.push(t):i[i.length-1]===t?i.pop():i.push(t);else{let u=!1;for(let a of n)if(t===a[1]&&i[i.length-1]===a[0]){u=!0;break}u&&i.pop()}if(i.length===0)return r&&e[o+1]===" ",e.substring(0,o+1)}}else return r?e.substring(0,e.indexOf(" ")):e}function A(e){delete e.problems,delete e.source;let r=e.tag,t=e.name,n=e.description,s=e.default,l="",i="";if(r=="default")t=t.trim(),t=S(t)||t;else if(r=="selectable")t=t.trim();else{const o=e.name.indexOf("=");if(o!=-1){const m=t.substring(0,o),d=t.substring(o+1);t=m;const T=d+" "+n,f=S(T,!0);f?(n=T.replace(f,""),f.startsWith("(")?s=f.substring(1,f.length-1):s=f):s=e.default||d||""}const a=/\s*\((.*)\)\s*/gi.exec(n);a&&a.length>0&&(l=a[1],n=n.replace(a[0],""))}return t.endsWith("*")&&(i="*",t=t.substring(0,t.length-1)),e.name=t,e.required=i,e.default=s||"",e.description=n,e.selectable=l,e}function P(e){let r=["title","state","text","author","date"],t=b(e),n={};r.forEach(s=>{n[s]=t.obj[s]}),E(n),t.arr.forEach(s=>{y(s.key,s.value)})}function E(e){p.titles.push(e)}function v(e){let r=["props","name","type","default","required","selectable","description","descriptions","model","return"],t=b(e),n={};r.forEach(s=>{n[s]=t.obj[s]}),g(n,"props"),t.arr.forEach(s=>{y(s.key,s.value)})}function F(e){let r=["slot","name","selectable","description","descriptions"],t=b(e),n={};r.forEach(s=>{n[s]=t.obj[s]}),g(n,"slot"),t.arr.forEach(s=>{y(s.key,s.value)})}function B(e){let r=["emits","name","selectable","description","descriptions"],t=b(e),n={};r.forEach(s=>{n[s]=t.obj[s]}),g(n,"emits"),t.arr.forEach(s=>{y(s.key,s.value)})}function I(e){let r=["expose","name","type","return","selectable","description","descriptions"],t=b(e),n={};r.forEach(s=>{n[s]=t.obj[s]}),g(n,"expose"),t.arr.forEach(s=>{y(s.key,s.value)})}function g(e,r){const t=p[r+"name"]||[],n=e.name??e[r]?.name,s=t.indexOf(n);s>=0&&(p[r+"s"].splice(s,1),t.splice(s,1)),p[r+"s"].push(e),t.push(n),p[r+"name"]=t}function b(e,r){const t={descriptions:e?.description||""},n=[];return e?.tags&&e.tags?.forEach(s=>{let l=s.tag,i=A(s);if(!t.hasOwnProperty(l))t[l]=i;else{const o={};o[l]=i,n.push({key:l,value:o})}}),{arr:n,obj:t}}function y(e,r){switch(e){case"title":return E(r),!0;case"text":return E(r),!0;case"props":return g(r,"props"),!0;case"slot":return g(r,"slot"),!0;case"emits":return g(r,"emits"),!0;case"expose":return g(r,"expose"),!0;default:return!1}}function J(e,r){switch(e){case"title":return P(r),!0;case"props":return v(r),!0;case"slot":return F(r),!0;case"emits":return B(r),!0;case"expose":return I(r),!0;default:return!1}}function L(e){return w(),e?.forEach(r=>{let t=r?.tags||[],n=t?.length||0;if(n>0)for(let s=0;s<n;s++){const l=t[s]||{};if(J(l.tag,r))break}}),JSON.parse(JSON.stringify(p))}function W(e){if(e)return j.parse(e)}function M(e){let r=W(e);return L(r)}const z=["Boolean","Any","String","Number","Array","Object","Function"];function _(e){return z.includes(e)?q.firstLower(e):e}const C=e=>{let r=[],t=!1,n=!1,s=0;for(let l=0;l<e.length;l++){const i=e[l];if(i==="["||i==="<"||i==="("?(n=!0,r.push(i),i=="["&&(t=!0),s==0&&(s=l)):(i==="]"&&r[r.length-1]==="["||i===">"&&r[r.length-1]==="<"||i===")"&&r[r.length-1]==="(")&&r.pop(),n&&r.length===0)return t&&s+1==l?{top:"Array",type:e.substring(0,s)}:{top:e.substring(0,s),type:e.substring(s+1,l)}}return{top:e,type:""}},x=(e,r)=>{let t=[],n=[],s="";for(let l=0;l<e.length;l++){const i=e[l];i==="["||i==="<"||i==="("?(t.push(i),s+=i):i==="]"&&t.length>0&&t[t.length-1]==="["||i===">"&&t.length>0&&t[t.length-1]==="<"||i===")"&&t.length>0&&t[t.length-1]==="("?(t.pop(),s+=i):i===r&&t.length===0?(n.push(s.trim()),s=""):s+=i}return s.trim()!==""&&n.push(s.trim()),n};function G(e){let r="";return typeof e=="string"?r=e:r=e.value,_(r||"any")}function N(e){const r=e[0]||"any";return G(r)}const O=e=>{if(e)if(e.startsWith("[")&&e.endsWith("]")||e.startsWith("(")&&e.endsWith(")")){const r=e.slice(1,-1).trim();return r?x(r,","):["any"]}else{if(e.startsWith("{")&&e.endsWith("}"))return["Object"];if(e.startsWith("<")&&e.endsWith(">")){const r=e.slice(1,-1).trim();return r?x(r,"|"):["any"]}else return x(e,",")}else return["any"]};function k(e){const r=[];return e.forEach(t=>{const n=C(t);if(n.type){const s=O(n.type),l=k(s);r.push({label:t,value:n.top,children:l})}else r.push(n.top)}),r}function H(e){return x(e,",").map(t=>{const n=t.trim(),s=t.match(/^([^:?]+)(\??):/);if(!s)return null;const l=s[1].trim(),i=!s[2],o=s[0].length,u=t.substring(o).trim();let a=[],m="",d="";for(let h=0;h<u.length;h++){const c=u[h];if(c==="["||c==="<"||c==="("||c==="{"?a.push(c):(c==="]"&&a[a.length-1]==="["||c===">"&&a[a.length-1]==="<"||c==="}"&&a[a.length-1]==="{"||c===")"&&a[a.length-1]==="(")&&a.pop(),a.length===0&&h>0){h==1&&c!=="]"&&c!==">"&&c!=="}"&&c!==")"?(m="",d=u.substring(0)):(m=u.substring(0,h+1).trim(),d=u.substring(h+1));break}}const T=O(m),f=k(T);return{name:l,prop:l,type:N(f),dataType:f,must:i,label:n,description:d}}).filter(Boolean)}exports.getDataType=k;exports.getDataTypeType=N;exports.getNotesText=M;exports.getTextNotes=W;exports.parseParamString=H;exports.parseTypeDefinition=O;
@@ -0,0 +1,322 @@
1
+ import { parse as W } from "comment-parser";
2
+ import { firstLower as j } from "@fangzhongya/utils/basic/string/firstLower";
3
+ const p = {
4
+ titles: [],
5
+ propss: [],
6
+ slots: [],
7
+ emitss: [],
8
+ exposes: []
9
+ };
10
+ function N() {
11
+ Object.keys(p).forEach((e) => {
12
+ p[e] = [];
13
+ });
14
+ }
15
+ function O(e, r) {
16
+ let t = e.charAt(0), n = [
17
+ ['"', '"'],
18
+ ["'", "'"],
19
+ ["`", "`"],
20
+ ["(", ")"],
21
+ ["{", "}"],
22
+ ["[", "]"]
23
+ ];
24
+ const s = n.map((i) => i[0]);
25
+ let l = s.indexOf(t);
26
+ if (l != -1) {
27
+ let i = [t];
28
+ for (let o = 1; o < e.length; o++) {
29
+ if (t = e[o], l = s.indexOf(t), l != -1)
30
+ l > 2 ? i.push(t) : i[i.length - 1] === t ? i.pop() : i.push(t);
31
+ else {
32
+ let u = !1;
33
+ for (let a of n)
34
+ if (t === a[1] && i[i.length - 1] === a[0]) {
35
+ u = !0;
36
+ break;
37
+ }
38
+ u && i.pop();
39
+ }
40
+ if (i.length === 0)
41
+ return r && e[o + 1] === " ", e.substring(0, o + 1);
42
+ }
43
+ } else
44
+ return r ? e.substring(0, e.indexOf(" ")) : e;
45
+ }
46
+ function A(e) {
47
+ delete e.problems, delete e.source;
48
+ let r = e.tag, t = e.name, n = e.description, s = e.default, l = "", i = "";
49
+ if (r == "default")
50
+ t = t.trim(), t = O(t) || t;
51
+ else if (r == "selectable")
52
+ t = t.trim();
53
+ else {
54
+ const o = e.name.indexOf("=");
55
+ if (o != -1) {
56
+ const m = t.substring(0, o), d = t.substring(o + 1);
57
+ t = m;
58
+ const x = d + " " + n, f = O(x, !0);
59
+ f ? (n = x.replace(f, ""), f.startsWith("(") ? s = f.substring(1, f.length - 1) : s = f) : s = e.default || d || "";
60
+ }
61
+ const a = /\s*\((.*)\)\s*/gi.exec(n);
62
+ a && a.length > 0 && (l = a[1], n = n.replace(a[0], ""));
63
+ }
64
+ return t.endsWith("*") && (i = "*", t = t.substring(0, t.length - 1)), e.name = t, e.required = i, e.default = s || "", e.description = n, e.selectable = l, e;
65
+ }
66
+ function w(e) {
67
+ let r = [
68
+ "title",
69
+ // 'name',
70
+ "state",
71
+ "text",
72
+ "author",
73
+ "date"
74
+ // 'description',
75
+ // 'descriptions',
76
+ ], t = b(e), n = {};
77
+ r.forEach((s) => {
78
+ n[s] = t.obj[s];
79
+ }), T(n), t.arr.forEach((s) => {
80
+ y(s.key, s.value);
81
+ });
82
+ }
83
+ function T(e) {
84
+ p.titles.push(e);
85
+ }
86
+ function q(e) {
87
+ let r = [
88
+ "props",
89
+ "name",
90
+ "type",
91
+ "default",
92
+ "required",
93
+ "selectable",
94
+ "description",
95
+ "descriptions",
96
+ "model",
97
+ "return"
98
+ ], t = b(e), n = {};
99
+ r.forEach((s) => {
100
+ n[s] = t.obj[s];
101
+ }), h(n, "props"), t.arr.forEach((s) => {
102
+ y(s.key, s.value);
103
+ });
104
+ }
105
+ function F(e) {
106
+ let r = ["slot", "name", "selectable", "description", "descriptions"], t = b(e), n = {};
107
+ r.forEach((s) => {
108
+ n[s] = t.obj[s];
109
+ }), h(n, "slot"), t.arr.forEach((s) => {
110
+ y(s.key, s.value);
111
+ });
112
+ }
113
+ function v(e) {
114
+ let r = ["emits", "name", "selectable", "description", "descriptions"], t = b(e), n = {};
115
+ r.forEach((s) => {
116
+ n[s] = t.obj[s];
117
+ }), h(n, "emits"), t.arr.forEach((s) => {
118
+ y(s.key, s.value);
119
+ });
120
+ }
121
+ function B(e) {
122
+ let r = [
123
+ "expose",
124
+ "name",
125
+ "type",
126
+ "return",
127
+ "selectable",
128
+ "description",
129
+ "descriptions"
130
+ ], t = b(e), n = {};
131
+ r.forEach((s) => {
132
+ n[s] = t.obj[s];
133
+ }), h(n, "expose"), t.arr.forEach((s) => {
134
+ y(s.key, s.value);
135
+ });
136
+ }
137
+ function h(e, r) {
138
+ const t = p[r + "name"] || [], n = e.name ?? e[r]?.name, s = t.indexOf(n);
139
+ s >= 0 && (p[r + "s"].splice(s, 1), t.splice(s, 1)), p[r + "s"].push(e), t.push(n), p[r + "name"] = t;
140
+ }
141
+ function b(e, r) {
142
+ const t = {
143
+ descriptions: e?.description || ""
144
+ }, n = [];
145
+ return e?.tags && e.tags?.forEach((s) => {
146
+ let l = s.tag, i = A(s);
147
+ if (!t.hasOwnProperty(l))
148
+ t[l] = i;
149
+ else {
150
+ const o = {};
151
+ o[l] = i, n.push({
152
+ key: l,
153
+ value: o
154
+ });
155
+ }
156
+ }), {
157
+ arr: n,
158
+ obj: t
159
+ };
160
+ }
161
+ function y(e, r) {
162
+ switch (e) {
163
+ case "title":
164
+ return T(r), !0;
165
+ case "text":
166
+ return T(r), !0;
167
+ case "props":
168
+ return h(r, "props"), !0;
169
+ case "slot":
170
+ return h(r, "slot"), !0;
171
+ case "emits":
172
+ return h(r, "emits"), !0;
173
+ case "expose":
174
+ return h(r, "expose"), !0;
175
+ default:
176
+ return !1;
177
+ }
178
+ }
179
+ function I(e, r) {
180
+ switch (e) {
181
+ case "title":
182
+ return w(r), !0;
183
+ case "props":
184
+ return q(r), !0;
185
+ case "slot":
186
+ return F(r), !0;
187
+ case "emits":
188
+ return v(r), !0;
189
+ case "expose":
190
+ return B(r), !0;
191
+ default:
192
+ return !1;
193
+ }
194
+ }
195
+ function J(e) {
196
+ return N(), e?.forEach((r) => {
197
+ let t = r?.tags || [], n = t?.length || 0;
198
+ if (n > 0)
199
+ for (let s = 0; s < n; s++) {
200
+ const l = t[s] || {};
201
+ if (I(l.tag, r))
202
+ break;
203
+ }
204
+ }), JSON.parse(JSON.stringify(p));
205
+ }
206
+ function z(e) {
207
+ if (e)
208
+ return W(e);
209
+ }
210
+ function K(e) {
211
+ let r = z(e);
212
+ return J(r);
213
+ }
214
+ const L = [
215
+ "Boolean",
216
+ "Any",
217
+ "String",
218
+ "Number",
219
+ "Array",
220
+ "Object",
221
+ "Function"
222
+ ];
223
+ function M(e) {
224
+ return L.includes(e) ? j(e) : e;
225
+ }
226
+ const P = (e) => {
227
+ let r = [], t = !1, n = !1, s = 0;
228
+ for (let l = 0; l < e.length; l++) {
229
+ const i = e[l];
230
+ if (i === "[" || i === "<" || i === "(" ? (n = !0, r.push(i), i == "[" && (t = !0), s == 0 && (s = l)) : (i === "]" && r[r.length - 1] === "[" || i === ">" && r[r.length - 1] === "<" || i === ")" && r[r.length - 1] === "(") && r.pop(), n && r.length === 0)
231
+ return t && s + 1 == l ? {
232
+ top: "Array",
233
+ type: e.substring(0, s)
234
+ } : {
235
+ top: e.substring(0, s),
236
+ type: e.substring(s + 1, l)
237
+ };
238
+ }
239
+ return {
240
+ top: e,
241
+ type: ""
242
+ };
243
+ }, E = (e, r) => {
244
+ let t = [], n = [], s = "";
245
+ for (let l = 0; l < e.length; l++) {
246
+ const i = e[l];
247
+ i === "[" || i === "<" || i === "(" ? (t.push(i), s += i) : i === "]" && t.length > 0 && t[t.length - 1] === "[" || i === ">" && t.length > 0 && t[t.length - 1] === "<" || i === ")" && t.length > 0 && t[t.length - 1] === "(" ? (t.pop(), s += i) : i === r && t.length === 0 ? (n.push(s.trim()), s = "") : s += i;
248
+ }
249
+ return s.trim() !== "" && n.push(s.trim()), n;
250
+ };
251
+ function _(e) {
252
+ let r = "";
253
+ return typeof e == "string" ? r = e : r = e.value, M(r || "any");
254
+ }
255
+ function C(e) {
256
+ const r = e[0] || "any";
257
+ return _(r);
258
+ }
259
+ const k = (e) => {
260
+ if (e)
261
+ if (e.startsWith("[") && e.endsWith("]") || e.startsWith("(") && e.endsWith(")")) {
262
+ const r = e.slice(1, -1).trim();
263
+ return r ? E(r, ",") : ["any"];
264
+ } else {
265
+ if (e.startsWith("{") && e.endsWith("}"))
266
+ return ["Object"];
267
+ if (e.startsWith("<") && e.endsWith(">")) {
268
+ const r = e.slice(1, -1).trim();
269
+ return r ? E(r, "|") : ["any"];
270
+ } else
271
+ return E(e, ",");
272
+ }
273
+ else return ["any"];
274
+ };
275
+ function S(e) {
276
+ const r = [];
277
+ return e.forEach((t) => {
278
+ const n = P(t);
279
+ if (n.type) {
280
+ const s = k(n.type), l = S(s);
281
+ r.push({
282
+ label: t,
283
+ value: n.top,
284
+ children: l
285
+ });
286
+ } else
287
+ r.push(n.top);
288
+ }), r;
289
+ }
290
+ function Q(e) {
291
+ return E(e, ",").map((t) => {
292
+ const n = t.trim(), s = t.match(/^([^:?]+)(\??):/);
293
+ if (!s) return null;
294
+ const l = s[1].trim(), i = !s[2], o = s[0].length, u = t.substring(o).trim();
295
+ let a = [], m = "", d = "";
296
+ for (let g = 0; g < u.length; g++) {
297
+ const c = u[g];
298
+ if (c === "[" || c === "<" || c === "(" || c === "{" ? a.push(c) : (c === "]" && a[a.length - 1] === "[" || c === ">" && a[a.length - 1] === "<" || c === "}" && a[a.length - 1] === "{" || c === ")" && a[a.length - 1] === "(") && a.pop(), a.length === 0 && g > 0) {
299
+ g == 1 && c !== "]" && c !== ">" && c !== "}" && c !== ")" ? (m = "", d = u.substring(0)) : (m = u.substring(0, g + 1).trim(), d = u.substring(g + 1));
300
+ break;
301
+ }
302
+ }
303
+ const x = k(m), f = S(x);
304
+ return {
305
+ name: l,
306
+ prop: l,
307
+ type: C(f),
308
+ dataType: f,
309
+ must: i,
310
+ label: n,
311
+ description: d
312
+ };
313
+ }).filter(Boolean);
314
+ }
315
+ export {
316
+ S as getDataType,
317
+ C as getDataTypeType,
318
+ K as getNotesText,
319
+ z as getTextNotes,
320
+ Q as parseParamString,
321
+ k as parseTypeDefinition
322
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./storage.cjs");require("@fangzhongya/utils/basic/object/mergeObject");require("@fangzhongya/utils/basic/array/toggleArray");const N=require("@fangzhongya/utils/name/humpToLine"),R=require("@fangzhongya/utils/name/lineToLargeHump");require("@fangzhongya/utils/basic/string/appearNum");require("@fangzhongya/utils/basic/string/firstLower");require("@fangzhongya/utils/basic/array/duplicateRemoval");require("@fangzhongya/utils/basic/array/asyncMergeArray");require("@fangzhongya/utils/basic/string/firstUpper");const w=require("@fangzhongya/utils/urls/getSuffix");require("@fangzhongya/utils/basic/array/replaceAfter");const g=require("@fangzhongya/utils/judge/matchsStart"),q=require("@fangzhongya/utils/judge/matchsEnd"),$=["vue","js","ts"];function O(t){let e=N.humpToLine(t.name),r=[];return t.alias&&r.push(t.alias+"-"+e),r}function T(t,e,r){const s=g.matchsStart(t,e);return s&&r&&r.length>0?!g.matchsStart(t,r):s}function U(t,e,r){const s=q.matchsEnd(t,e);return s&&r&&r.length>0?!q.matchsEnd(t,r):s}function v(t,e,r){e.lastIndex=0;const s=e.exec(t);if(!s)return!1;const i=s.index;return t.substring(0,i).endsWith(r)}function z(t,e){e.lastIndex=0;const r=e.exec(t);if(!r)return"";const s=r.index;return t.substring(0,s)}function I(t){const e=r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`${e(t)}$`)}function m(t,e){if(e&&e.length>0)for(const r of e)if(typeof r=="string"){if(t.endsWith(r)){const s=t.replace(I(r),"");if(s){const i=new RegExp("^.*/([^/]+)$");let n=s.match(i);if(n)return n[1]}}}else{const s=z(t,r);if(s){const i=new RegExp("^.*/([^/]+)$");let n=s.match(i);if(n)return n[1]}}return""}function d(t,e,r){const s=e.dir.replace(/^\.\/|((\.\.\/)+)/,"/");let i=t.indexOf(s),n=e.dir.substring(0,e.dir.indexOf(s))+t.substring(i),a="";if(e.getNameValue)a=e.getNameValue(t,e);else{const u=e.matchextss;u?a=m(t,[u]):a=m(t,e.matchexts)}if(a){let u={suffix:w.getSuffix(t),name:R.lineToLargeHump(a),value:a,adir:"",alias:e.alias,aliasNames:[],raw:"",getRaw:null,mds:[],tests:void 0,url:n,comprops:e.comprops,curprops:e.curprops,dir:e.dir,cwd:e.cwd,tdir:r,key:t};return u.aliasNames=O(u),u}}function K(t,e,r){for(const s of e){const i="/"+s;if(r&&r.length>0){for(const n of r)if(typeof n=="string"){if(t.endsWith(i+n))return!0}else if(v(t,n,i))return!0}else if(t.includes(s))return!0}return!1}function M(t,e,r,s){const i=[],n=s.matchextss;return n&&i.push(n),t.filter(a=>K(a,[e],i))[0]||""}function E(t,e,r,s,i){if(T(t,e.matchs,e.nomatchs)){let n=!1;if(e.isMatch?n=e.isMatch(t,"",[],e):n=U(t,e.matchexts,e.nomatchexts),n){const a=e.getMatchs,u=m(s,e.matchexts);if(a){const l=a(r,u,"component",e);return d(l,e,i)}else if(e.matchextss){const f=M([s],u,"component",e)||M(r,u,"component",e);if(f)return d(f,e,i)}else return d(s,e,i)}}}function L(t){S.setSession("aside.key",t)}function V(){return S.getSession("aside.key")}function W(t){let e=t.match(/\/([^\/]+)\/$/);return e&&e.length>1?e[1]:""}function b(t,e){if(e)for(let r=0;r<e.length;r++){const s=e[r];if(typeof s=="string"){if(t.includes(s))return!0}else if(s.test(t))return!0}return!1}function A(t,e){if(e)for(let r=0;r<e.length;r++){const s=e[r];if(typeof s=="string"){if(t.endsWith(s))return!0}else if(s.test(t))return!0}return!1}function D(t,e,r,s){const i=[],n=[],a=W(e.dir);return t.forEach(u=>{const l=e.dir.replace(/^\.\/|((\.\.\/)+)/,"/");let f=u.indexOf(l),x=e.dir.substring(0,e.dir.indexOf(l))+u.substring(f);const C=new RegExp("^"+e.dir);let p=x.replace(C,""),o=E(p,e,t,u,a);if(o&&(o.component=s[o.key],o.getRaw=h(r,o.key),n.push(o)),e.comprops&&b("/"+p,e.comprops)||e.curprops&&A("/"+p,e.curprops)){let c={};c.url=x,c.comprops=e.comprops,c.curprops=e.curprops,c.value=p,c.dir=e.dir,c.cwd=e.cwd,c.suffix=w.getSuffix(u),c.tdir=a,c.key=u,c.raw="",c.getRaw=h(r,u),i.push(c)}}),{props:i,components:n}}function h(t,e){return typeof t=="function"?t:t?t[e]:null}exports.defaultExtensions=$;exports.getAsideKey=V;exports.getComponentsArr=D;exports.getRawValue=h;exports.getUrlName=E;exports.isComprops=b;exports.isCurprops=A;exports.setAsideKey=L;
@@ -0,0 +1,200 @@
1
+ import { getSession as S, setSession as $ } from "./storage.js";
2
+ import "@fangzhongya/utils/basic/object/mergeObject";
3
+ import "@fangzhongya/utils/basic/array/toggleArray";
4
+ import { humpToLine as N } from "@fangzhongya/utils/name/humpToLine";
5
+ import { lineToLargeHump as R } from "@fangzhongya/utils/name/lineToLargeHump";
6
+ import "@fangzhongya/utils/basic/string/appearNum";
7
+ import "@fangzhongya/utils/basic/string/firstLower";
8
+ import "@fangzhongya/utils/basic/array/duplicateRemoval";
9
+ import "@fangzhongya/utils/basic/array/asyncMergeArray";
10
+ import "@fangzhongya/utils/basic/string/firstUpper";
11
+ import { getSuffix as b } from "@fangzhongya/utils/urls/getSuffix";
12
+ import "@fangzhongya/utils/basic/array/replaceAfter";
13
+ import { matchsStart as x } from "@fangzhongya/utils/judge/matchsStart";
14
+ import { matchsEnd as g } from "@fangzhongya/utils/judge/matchsEnd";
15
+ const Z = ["vue", "js", "ts"];
16
+ function O(t) {
17
+ let e = N(t.name), r = [];
18
+ return t.alias && r.push(t.alias + "-" + e), r;
19
+ }
20
+ function U(t, e, r) {
21
+ const s = x(t, e);
22
+ return s && r && r.length > 0 ? !x(t, r) : s;
23
+ }
24
+ function v(t, e, r) {
25
+ const s = g(t, e);
26
+ return s && r && r.length > 0 ? !g(t, r) : s;
27
+ }
28
+ function z(t, e, r) {
29
+ e.lastIndex = 0;
30
+ const s = e.exec(t);
31
+ if (!s) return !1;
32
+ const i = s.index;
33
+ return t.substring(0, i).endsWith(r);
34
+ }
35
+ function A(t, e) {
36
+ e.lastIndex = 0;
37
+ const r = e.exec(t);
38
+ if (!r) return "";
39
+ const s = r.index;
40
+ return t.substring(0, s);
41
+ }
42
+ function C(t) {
43
+ const e = (r) => r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
44
+ return new RegExp(`${e(t)}$`);
45
+ }
46
+ function d(t, e) {
47
+ if (e && e.length > 0)
48
+ for (const r of e)
49
+ if (typeof r == "string") {
50
+ if (t.endsWith(r)) {
51
+ const s = t.replace(C(r), "");
52
+ if (s) {
53
+ const i = new RegExp("^.*/([^/]+)$");
54
+ let n = s.match(i);
55
+ if (n)
56
+ return n[1];
57
+ }
58
+ }
59
+ } else {
60
+ const s = A(t, r);
61
+ if (s) {
62
+ const i = new RegExp("^.*/([^/]+)$");
63
+ let n = s.match(i);
64
+ if (n)
65
+ return n[1];
66
+ }
67
+ }
68
+ return "";
69
+ }
70
+ function m(t, e, r) {
71
+ const s = e.dir.replace(/^\.\/|((\.\.\/)+)/, "/");
72
+ let i = t.indexOf(s), n = e.dir.substring(0, e.dir.indexOf(s)) + t.substring(i), o = "";
73
+ if (e.getNameValue)
74
+ o = e.getNameValue(t, e);
75
+ else {
76
+ const u = e.matchextss;
77
+ u ? o = d(t, [u]) : o = d(t, e.matchexts);
78
+ }
79
+ if (o) {
80
+ let u = {
81
+ suffix: b(t),
82
+ name: R(o),
83
+ value: o,
84
+ adir: "",
85
+ alias: e.alias,
86
+ aliasNames: [],
87
+ raw: "",
88
+ getRaw: null,
89
+ mds: [],
90
+ tests: void 0,
91
+ url: n,
92
+ comprops: e.comprops,
93
+ curprops: e.curprops,
94
+ dir: e.dir,
95
+ cwd: e.cwd,
96
+ tdir: r,
97
+ key: t
98
+ };
99
+ return u.aliasNames = O(u), u;
100
+ }
101
+ }
102
+ function I(t, e, r) {
103
+ for (const s of e) {
104
+ const i = "/" + s;
105
+ if (r && r.length > 0) {
106
+ for (const n of r)
107
+ if (typeof n == "string") {
108
+ if (t.endsWith(i + n))
109
+ return !0;
110
+ } else if (z(t, n, i))
111
+ return !0;
112
+ } else if (t.includes(s))
113
+ return !0;
114
+ }
115
+ return !1;
116
+ }
117
+ function M(t, e, r, s) {
118
+ const i = [], n = s.matchextss;
119
+ return n && i.push(n), t.filter((o) => I(o, [e], i))[0] || "";
120
+ }
121
+ function W(t, e, r, s, i) {
122
+ if (U(t, e.matchs, e.nomatchs)) {
123
+ let n = !1;
124
+ if (e.isMatch ? n = e.isMatch(t, "", [], e) : n = v(t, e.matchexts, e.nomatchexts), n) {
125
+ const o = e.getMatchs, u = d(s, e.matchexts);
126
+ if (o) {
127
+ const f = o(r, u, "component", e);
128
+ return m(f, e, i);
129
+ } else if (e.matchextss) {
130
+ const c = M([s], u, "component", e) || M(r, u, "component", e);
131
+ if (c)
132
+ return m(c, e, i);
133
+ } else
134
+ return m(s, e, i);
135
+ }
136
+ }
137
+ }
138
+ function y(t) {
139
+ $("aside.key", t);
140
+ }
141
+ function k() {
142
+ return S("aside.key");
143
+ }
144
+ function D(t) {
145
+ let e = t.match(/\/([^\/]+)\/$/);
146
+ return e && e.length > 1 ? e[1] : "";
147
+ }
148
+ function T(t, e) {
149
+ if (e)
150
+ for (let r = 0; r < e.length; r++) {
151
+ const s = e[r];
152
+ if (typeof s == "string") {
153
+ if (t.includes(s))
154
+ return !0;
155
+ } else if (s.test(t))
156
+ return !0;
157
+ }
158
+ return !1;
159
+ }
160
+ function V(t, e) {
161
+ if (e)
162
+ for (let r = 0; r < e.length; r++) {
163
+ const s = e[r];
164
+ if (typeof s == "string") {
165
+ if (t.endsWith(s))
166
+ return !0;
167
+ } else if (s.test(t))
168
+ return !0;
169
+ }
170
+ return !1;
171
+ }
172
+ function ee(t, e, r, s) {
173
+ const i = [], n = [], o = D(e.dir);
174
+ return t.forEach((u) => {
175
+ const f = e.dir.replace(/^\.\/|((\.\.\/)+)/, "/");
176
+ let c = u.indexOf(f), h = e.dir.substring(0, e.dir.indexOf(f)) + u.substring(c);
177
+ const E = new RegExp("^" + e.dir);
178
+ let p = h.replace(E, ""), l = W(p, e, t, u, o);
179
+ if (l && (l.component = s[l.key], l.getRaw = w(r, l.key), n.push(l)), e.comprops && T("/" + p, e.comprops) || e.curprops && V("/" + p, e.curprops)) {
180
+ let a = {};
181
+ a.url = h, a.comprops = e.comprops, a.curprops = e.curprops, a.value = p, a.dir = e.dir, a.cwd = e.cwd, a.suffix = b(u), a.tdir = o, a.key = u, a.raw = "", a.getRaw = w(r, u), i.push(a);
182
+ }
183
+ }), {
184
+ props: i,
185
+ components: n
186
+ };
187
+ }
188
+ function w(t, e) {
189
+ return typeof t == "function" ? t : t ? t[e] : null;
190
+ }
191
+ export {
192
+ Z as defaultExtensions,
193
+ k as getAsideKey,
194
+ ee as getComponentsArr,
195
+ w as getRawValue,
196
+ W as getUrlName,
197
+ T as isComprops,
198
+ V as isCurprops,
199
+ y as setAsideKey
200
+ };