@kg-ui/kg-ui-plus 0.0.0 → 0.0.1

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 (156) hide show
  1. package/README.md +2 -38
  2. package/package.json +1 -2
  3. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +0 -16
  4. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +0 -4
  5. package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +0 -26
  6. package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +0 -4
  7. package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue.mjs +0 -7
  8. package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue2.mjs +0 -49
  9. package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue3.mjs +0 -4
  10. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue.mjs +0 -7
  11. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue2.mjs +0 -94
  12. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue3.mjs +0 -4
  13. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue.mjs +0 -7
  14. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue2.mjs +0 -33
  15. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue3.mjs +0 -4
  16. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue.mjs +0 -7
  17. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue2.mjs +0 -140
  18. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue3.mjs +0 -4
  19. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue.mjs +0 -7
  20. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue2.mjs +0 -131
  21. package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue3.mjs +0 -4
  22. package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +0 -7
  23. package/dist/es/KgCopilot/CopiFooter/index.vue2.mjs +0 -21
  24. package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +0 -4
  25. package/dist/es/KgCopilot/dialogue.vue.mjs +0 -7
  26. package/dist/es/KgCopilot/dialogue.vue2.mjs +0 -131
  27. package/dist/es/KgCopilot/dialogue.vue3.mjs +0 -4
  28. package/dist/es/KgCopilot/index.vue.mjs +0 -7
  29. package/dist/es/KgCopilot/index.vue2.mjs +0 -49
  30. package/dist/es/KgCopilot/index.vue3.mjs +0 -4
  31. package/dist/es/KgCopilot/mdInCode.mjs +0 -56
  32. package/dist/es/KgCopilot/readMd.vue.mjs +0 -7
  33. package/dist/es/KgCopilot/readMd.vue2.mjs +0 -87
  34. package/dist/es/KgCopilot/readMd.vue3.mjs +0 -4
  35. package/dist/es/ReIcon/index.mjs +0 -11
  36. package/dist/es/ReIcon/src/iconfont.mjs +0 -46
  37. package/dist/es/ReIcon/src/iconifyIconOffline.mjs +0 -30
  38. package/dist/es/ReIcon/src/iconifyIconOnline.mjs +0 -29
  39. package/dist/es/_virtual/___vite-browser-external.mjs +0 -6
  40. package/dist/es/_virtual/__vite-browser-external.mjs +0 -4
  41. package/dist/es/_virtual/_commonjsHelpers.mjs +0 -34
  42. package/dist/es/_virtual/_plugin-vue_export-helper.mjs +0 -10
  43. package/dist/es/_virtual/index.mjs +0 -13
  44. package/dist/es/api/project.mjs +0 -51
  45. package/dist/es/directives/heighlight/index.mjs +0 -69
  46. package/dist/es/directives/index.mjs +0 -4
  47. package/dist/es/home/LFilter/FilterArea.vue.mjs +0 -7
  48. package/dist/es/home/LFilter/FilterArea.vue2.mjs +0 -507
  49. package/dist/es/home/LFilter/FilterArea.vue3.mjs +0 -4
  50. package/dist/es/home/LFilter/FilterHead.vue.mjs +0 -129
  51. package/dist/es/home/LFilter/FilterHead.vue2.mjs +0 -4
  52. package/dist/es/home/LFilter/FilterItem.vue.mjs +0 -7
  53. package/dist/es/home/LFilter/FilterItem.vue2.mjs +0 -114
  54. package/dist/es/home/LFilter/FilterItem.vue3.mjs +0 -4
  55. package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +0 -7
  56. package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +0 -171
  57. package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +0 -4
  58. package/dist/es/home/LFilter/index.vue.mjs +0 -17
  59. package/dist/es/home/LFilter/index.vue2.mjs +0 -4
  60. package/dist/es/home/LProject/index.vue.mjs +0 -7
  61. package/dist/es/home/LProject/index.vue2.mjs +0 -70
  62. package/dist/es/home/LProject/index.vue3.mjs +0 -4
  63. package/dist/es/home/index.vue.mjs +0 -7
  64. package/dist/es/home/index.vue2.mjs +0 -80
  65. package/dist/es/home/index.vue3.mjs +0 -4
  66. package/dist/es/index.mjs +0 -36
  67. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/check.mjs +0 -8
  68. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/circle-plus.mjs +0 -8
  69. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/close.mjs +0 -8
  70. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/microphone.mjs +0 -8
  71. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/paperclip.mjs +0 -8
  72. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/promotion.mjs +0 -8
  73. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/upload.mjs +0 -8
  74. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/copy-simple.mjs +0 -8
  75. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/speaker-high-light.mjs +0 -8
  76. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-down-thin.mjs +0 -8
  77. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-up-thin.mjs +0 -8
  78. package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/warning-bold.mjs +0 -8
  79. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/add-line.mjs +0 -8
  80. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-down-s-line.mjs +0 -8
  81. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-up-s-line.mjs +0 -8
  82. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/check-fill.mjs +0 -8
  83. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/download-line.mjs +0 -8
  84. package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs +0 -8
  85. package/dist/es/node_modules/.pnpm/@iconify_vue@4.0.0_vue@3.2.45/node_modules/@iconify/vue/dist/iconify.mjs +0 -1702
  86. package/dist/es/node_modules/.pnpm/@iconify_vue@4.0.0_vue@3.2.45/node_modules/@iconify/vue/dist/offline.mjs +0 -436
  87. package/dist/es/node_modules/.pnpm/@pureadmin_utils@1.8.5_vue@3.2.45/node_modules/@pureadmin/utils/dist/index.mjs +0 -70
  88. package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.mjs +0 -16
  89. package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.mjs +0 -36
  90. package/dist/es/node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.mjs +0 -48
  91. package/dist/es/node_modules/.pnpm/dompurify@3.0.10/node_modules/dompurify/dist/purify.es.mjs +0 -949
  92. package/dist/es/node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.mjs +0 -22
  93. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.mjs +0 -4
  94. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.mjs +0 -4
  95. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.mjs +0 -4
  96. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.mjs +0 -4
  97. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.mjs +0 -4
  98. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.mjs +0 -4
  99. package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.mjs +0 -4
  100. package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +0 -72
  101. package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +0 -6
  102. package/dist/es/node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.mjs +0 -320
  103. package/dist/es/node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.mjs +0 -14
  104. package/dist/es/node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.mjs +0 -19
  105. package/dist/es/node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.mjs +0 -11
  106. package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.mjs +0 -21
  107. package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.mjs +0 -48
  108. package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +0 -8
  109. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/core.mjs +0 -5
  110. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/apache.mjs +0 -91
  111. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/bash.mjs +0 -377
  112. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/basic.mjs +0 -221
  113. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/c.mjs +0 -280
  114. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/css.mjs +0 -732
  115. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dart.mjs +0 -247
  116. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/django.mjs +0 -47
  117. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dns.mjs +0 -71
  118. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dos.mjs +0 -160
  119. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dust.mjs +0 -38
  120. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/erlang.mjs +0 -176
  121. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/go.mjs +0 -135
  122. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/http.mjs +0 -89
  123. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/java.mjs +0 -254
  124. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/javascript.mjs +0 -698
  125. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/json.mjs +0 -40
  126. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/markdown.mjs +0 -227
  127. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/nginx.mjs +0 -144
  128. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/php.mjs +0 -589
  129. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/python.mjs +0 -414
  130. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/ruby.mjs +0 -414
  131. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/stylus.mjs +0 -766
  132. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/swift.mjs +0 -832
  133. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/typescript.mjs +0 -788
  134. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/xml.mjs +0 -227
  135. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/lib/core.mjs +0 -1580
  136. package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/styles/paraiso-light.css.mjs +0 -4
  137. package/dist/es/node_modules/.pnpm/marked@12.0.1/node_modules/marked/lib/marked.esm.mjs +0 -2045
  138. package/dist/es/node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.mjs +0 -514
  139. package/dist/es/node_modules/.pnpm/pinyin-match@1.2.4/node_modules/pinyin-match/es/main.mjs +0 -124
  140. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/formats.mjs +0 -22
  141. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/index.mjs +0 -14
  142. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/parse.mjs +0 -199
  143. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/stringify.mjs +0 -262
  144. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/utils.mjs +0 -196
  145. package/dist/es/node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.mjs +0 -54
  146. package/dist/es/node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.mjs +0 -115
  147. package/dist/es/store/index.mjs +0 -8
  148. package/dist/es/store/modules/copilot.mjs +0 -108
  149. package/dist/es/store/modules/filters.mjs +0 -346
  150. package/dist/es/store/modules/types.mjs +0 -19
  151. package/dist/es/style/index.scss.mjs +0 -4
  152. package/dist/es/style/tailwind.css.mjs +0 -4
  153. package/dist/es/style.css +0 -1
  154. package/dist/es/utils/home.mjs +0 -129
  155. package/dist/es/utils/http/index.mjs +0 -90
  156. package/dist/es/utils/message.mjs +0 -42
@@ -1,69 +0,0 @@
1
- import HighlightJS from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/lib/core.mjs";
2
- import "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/styles/paraiso-light.css.mjs";
3
- import python from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/python.mjs";
4
- import java from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/java.mjs";
5
- import c from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/c.mjs";
6
- import javascript from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/javascript.mjs";
7
- import typescript from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/typescript.mjs";
8
- import swift from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/swift.mjs";
9
- import stylus from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/stylus.mjs";
10
- import php from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/php.mjs";
11
- import nginx from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/nginx.mjs";
12
- import json from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/json.mjs";
13
- import go from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/go.mjs";
14
- import http from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/http.mjs";
15
- import erlang from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/erlang.mjs";
16
- import ruby from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/ruby.mjs";
17
- import dust from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dust.mjs";
18
- import dos from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dos.mjs";
19
- import dns from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dns.mjs";
20
- import django from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/django.mjs";
21
- import dart from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dart.mjs";
22
- import markdown from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/markdown.mjs";
23
- import css from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/css.mjs";
24
- import bash from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/bash.mjs";
25
- import basic from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/basic.mjs";
26
- import xml from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/xml.mjs";
27
- import apache from "../../node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/apache.mjs";
28
- HighlightJS.registerLanguage("python", python);
29
- HighlightJS.registerLanguage("java", java);
30
- HighlightJS.registerLanguage("c", c);
31
- HighlightJS.registerLanguage("javascript", javascript);
32
- HighlightJS.registerLanguage("typescript", typescript);
33
- HighlightJS.registerLanguage("swift", swift);
34
- HighlightJS.registerLanguage("stylus", stylus);
35
- HighlightJS.registerLanguage("php", php);
36
- HighlightJS.registerLanguage("nginx", nginx);
37
- HighlightJS.registerLanguage("json", json);
38
- HighlightJS.registerLanguage("go", go);
39
- HighlightJS.registerLanguage("http", http);
40
- HighlightJS.registerLanguage("erlang", erlang);
41
- HighlightJS.registerLanguage("ruby", ruby);
42
- HighlightJS.registerLanguage("dust", dust);
43
- HighlightJS.registerLanguage("dos", dos);
44
- HighlightJS.registerLanguage("dns", dns);
45
- HighlightJS.registerLanguage("django", django);
46
- HighlightJS.registerLanguage("dart", dart);
47
- HighlightJS.registerLanguage("markdown", markdown);
48
- HighlightJS.registerLanguage("css", css);
49
- HighlightJS.registerLanguage("bash", bash);
50
- HighlightJS.registerLanguage("basic", basic);
51
- HighlightJS.registerLanguage("xml", xml);
52
- HighlightJS.registerLanguage("apache", apache);
53
- const highlightByEl = (e) => {
54
- const blocks = e.querySelectorAll("code");
55
- blocks.forEach((block) => {
56
- HighlightJS.highlightBlock(block);
57
- });
58
- };
59
- const highlight = {
60
- updated(el) {
61
- highlightByEl(el);
62
- },
63
- mounted(el) {
64
- highlightByEl(el);
65
- }
66
- };
67
- export {
68
- highlight
69
- };
@@ -1,4 +0,0 @@
1
- import { highlight } from "./heighlight/index.mjs";
2
- export {
3
- highlight
4
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./FilterArea.vue2.mjs";
2
- import "./FilterArea.vue3.mjs";
3
- import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const FilterArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4220641b"]]);
5
- export {
6
- FilterArea as default
7
- };
@@ -1,507 +0,0 @@
1
- import { defineComponent, getCurrentInstance, computed, resolveComponent, openBlock, createBlock, Transition, withCtx, unref, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, createVNode, toDisplayString, createCommentVNode, createTextVNode, withDirectives, vShow, pushScopeId, popScopeId } from "vue";
2
- import { storeToRefs } from "pinia";
3
- import { isAllEmpty as B, delay as I } from "../../node_modules/.pnpm/@pureadmin_utils@1.8.5_vue@3.2.45/node_modules/@pureadmin/utils/dist/index.mjs";
4
- import { EnumFilterKind, EnumEffectPanel } from "../../store/modules/types.mjs";
5
- import { useFilterStoreHook } from "../../store/modules/filters.mjs";
6
- import data from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-down-s-line.mjs";
7
- import data$1 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-up-s-line.mjs";
8
- import data$2 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/add-line.mjs";
9
- import { checkFilterShow_xinyuan, checkFilterShow, checkFilterShow_letter } from "../../utils/home.mjs";
10
- import FilterItem from "./FilterItem.vue.mjs";
11
- import FilterItemIcon from "./FilterItemIcon.vue.mjs";
12
- const _withScopeId = (n) => (pushScopeId("data-v-4220641b"), n = n(), popScopeId(), n);
13
- const _hoisted_1 = { id: "filterWrap" };
14
- const _hoisted_2 = { key: 0 };
15
- const _hoisted_3 = { class: "flex flex-1 align-middle justify-items-start flex-wrap" };
16
- const _hoisted_4 = ["onMouseenter", "onMouseleave"];
17
- const _hoisted_5 = {
18
- class: "truncate cursor-pointer",
19
- style: { "width": "90%" }
20
- };
21
- const _hoisted_6 = { class: "flex flex-1 flex-col" };
22
- const _hoisted_7 = {
23
- key: 0,
24
- class: "letterWrap flex justify-start items-center px-2 p-2"
25
- };
26
- const _hoisted_8 = ["onMouseenter"];
27
- const _hoisted_9 = { class: "flex flex-wrap" };
28
- const _hoisted_10 = ["id"];
29
- const _hoisted_11 = {
30
- key: 1,
31
- class: "flex flex-1 justify-center mb-3"
32
- };
33
- const _hoisted_12 = {
34
- key: 0,
35
- class: "flex mr-3 my-1"
36
- };
37
- const _hoisted_13 = {
38
- key: 0,
39
- class: "flex-1"
40
- };
41
- const _hoisted_14 = ["onClick"];
42
- const _hoisted_15 = { class: "arrow-down inline-block" };
43
- const _hoisted_16 = {
44
- key: 1,
45
- class: "flex-1 ml-2"
46
- };
47
- const _hoisted_17 = ["onClick"];
48
- const _hoisted_18 = { class: "arrow-down inline-block" };
49
- const _hoisted_19 = { key: 0 };
50
- const _hoisted_20 = {
51
- class: "highOptionWrap flex align-middle justify-items-start flex-wrap relative",
52
- style: { "max-height": "45px" }
53
- };
54
- const _hoisted_21 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
55
- class: "flex rowTitle cursor-pointer px-3 text-sm truncate",
56
- style: { "background-color": "#ececea", "height": "45px", "line-height": "45px" }
57
- }, " 高级选项: ", -1));
58
- const _hoisted_22 = {
59
- class: "flex flex-1 flex-wrap items-center gap-y-4 p-2",
60
- style: { "height": "45px", "overflow": "hidden" }
61
- };
62
- const _hoisted_23 = ["onMouseenter", "onMouseleave"];
63
- const _hoisted_24 = { class: "downRowTitle" };
64
- const _hoisted_25 = { class: "flex items-center mr-2 mr-auto" };
65
- const _hoisted_26 = { class: "arrow-down" };
66
- const _hoisted_27 = {
67
- class: "flex justify-between",
68
- style: { "max-height": "40vh" }
69
- };
70
- const _hoisted_28 = { class: "flex flex-1 flex-col" };
71
- const _hoisted_29 = { class: "flex flex-wrap gap-x-8 gap-y-6 py-5 px-1" };
72
- const _hoisted_30 = { key: 0 };
73
- const _hoisted_31 = {
74
- key: 0,
75
- class: "flex flex-1 justify-center mb-3"
76
- };
77
- const _hoisted_32 = ["onClick"];
78
- const _hoisted_33 = { class: "arrow-down inline-block" };
79
- const _sfc_main = /* @__PURE__ */ defineComponent({
80
- __name: "FilterArea",
81
- setup(__props) {
82
- const { proxy } = getCurrentInstance();
83
- const filterStore = useFilterStoreHook();
84
- const {
85
- selProject,
86
- selFilterIds,
87
- filterList,
88
- mappingData_selAll,
89
- mappingData_selAll_xinyuan,
90
- selFilter_maxRowIndex,
91
- selFilter_rootIdArr,
92
- effectPanel
93
- } = storeToRefs(filterStore);
94
- const { selFilters } = filterStore;
95
- const showList = computed(() => {
96
- const filterArr = filterList.value.filter((f) => {
97
- const fitlerArr = f.childAppCategoryList || [];
98
- let curRowIncludeSel = false;
99
- fitlerArr.forEach((f2) => {
100
- f2.isMapShow = f2.kind === EnumFilterKind.XinYuan ? checkFilterShow_xinyuan(
101
- f2,
102
- selFilterIds.value,
103
- selFilter_rootIdArr.value,
104
- mappingData_selAll_xinyuan.value
105
- ) : checkFilterShow(
106
- f2,
107
- filterList.value,
108
- selFilterIds.value,
109
- selFilter_maxRowIndex.value,
110
- selFilter_rootIdArr.value,
111
- mappingData_selAll.value
112
- );
113
- if (selFilterIds.value.includes(f2.id))
114
- curRowIncludeSel = true;
115
- });
116
- return !curRowIncludeSel;
117
- });
118
- filterArr.forEach((f) => {
119
- var _a;
120
- if (!f.collapse) {
121
- (_a = f.childAppCategoryList) == null ? void 0 : _a.forEach((suf) => {
122
- suf.isMapShow = suf.isMapShow && checkFilterShow_letter(suf, f.selLetter);
123
- });
124
- }
125
- });
126
- return filterArr;
127
- });
128
- const getFilterRowIndex = (rowFilter) => {
129
- return filterList.value.findIndex((obj) => obj.id === rowFilter.id);
130
- };
131
- const clickFilter = (filter) => {
132
- filter.collapse = true;
133
- filter.selLetter = "所有";
134
- };
135
- const getRowSelFitler = (rootFilter = {}) => {
136
- var _a, _b, _c;
137
- const str = (_c = (_b = (_a = rootFilter == null ? void 0 : rootFilter.childAppCategoryList) == null ? void 0 : _a.filter((f) => {
138
- return selFilterIds.value.includes(f.id);
139
- })) == null ? void 0 : _b.map((f) => {
140
- return f.name;
141
- })) == null ? void 0 : _c.join("、");
142
- return str ? ": " + str : "";
143
- };
144
- const handleHoverRowFilter = (filter, isHover, index) => {
145
- filter.isEdit = isHover;
146
- I(310).then(() => {
147
- const el = document.querySelector(".subFilterWrap" + index);
148
- el == null ? void 0 : el.focus();
149
- });
150
- };
151
- const handleTriggerCollapse = (filter) => {
152
- filter.collapse = !filter.collapse;
153
- filter.selLetter = "所有";
154
- };
155
- const handleMultipleSel = (filter, open) => {
156
- filter.selLetter = "所有";
157
- if (open) {
158
- if (filter.collapse)
159
- handleTriggerCollapse(filter);
160
- }
161
- filter.multipleSel = open;
162
- };
163
- const handleMultipleSel_ok = (filter) => {
164
- const selRowIds = [];
165
- filter.childAppCategoryList.forEach((f) => {
166
- var _a;
167
- const el = "subFilter" + f.id;
168
- if ((_a = proxy.$refs[el][0]) == null ? void 0 : _a.checkOut) {
169
- selRowIds.push(f.id);
170
- }
171
- });
172
- selFilters(filter.childAppCategoryList, selRowIds);
173
- handleMultipleSel(filter, false);
174
- };
175
- const A_Z = computed(() => {
176
- const uppercaseLetters = [];
177
- uppercaseLetters.push("所有");
178
- for (let i = 65; i <= 90; i++) {
179
- const uppercaseLetter = String.fromCharCode(i);
180
- uppercaseLetters.push(uppercaseLetter);
181
- }
182
- uppercaseLetters.push("其他");
183
- return uppercaseLetters;
184
- });
185
- const handleHoverLetterFilter = (filter, letter) => {
186
- filter.selLetter = letter;
187
- };
188
- const isIconRow = (rowF) => {
189
- let boo = false;
190
- if (rowF == null ? void 0 : rowF.childAppCategoryList) {
191
- rowF == null ? void 0 : rowF.childAppCategoryList.forEach((f) => {
192
- if (f.icon) {
193
- boo = true;
194
- return false;
195
- }
196
- });
197
- }
198
- return boo;
199
- };
200
- return (_ctx, _cache) => {
201
- const _component_el_tooltip = resolveComponent("el-tooltip");
202
- const _component_el_button = resolveComponent("el-button");
203
- const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
204
- const _component_el_scrollbar = resolveComponent("el-scrollbar");
205
- const _component_el_popover = resolveComponent("el-popover");
206
- return openBlock(), createBlock(Transition, { name: "fade" }, {
207
- default: withCtx(() => {
208
- var _a;
209
- return [
210
- !((_a = unref(selProject)) == null ? void 0 : _a.collapse) ? (openBlock(), createElementBlock("div", {
211
- key: 0,
212
- class: normalizeClass(["filterAreaWrap bg-white mt-1", {
213
- activePanel: unref(effectPanel) === unref(EnumEffectPanel).Category,
214
- filterWrap: true
215
- }])
216
- }, [
217
- createElementVNode("div", _hoisted_1, [
218
- unref(B)(unref(selProject)) ? (openBlock(), createElementBlock("div", _hoisted_2, "空")) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
219
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(showList), (filter, rowIndex) => {
220
- var _a2, _b;
221
- return openBlock(), createElementBlock(Fragment, {
222
- key: filter.id
223
- }, [
224
- rowIndex < 4 ? (openBlock(), createElementBlock("div", {
225
- key: 0,
226
- class: normalizeClass(["flex justify-between gap-x-5 rowWrap", {
227
- multiple: filter.multipleSel,
228
- xinyuan: filter.kind === unref(EnumFilterKind).XinYuan,
229
- zhuti: filter.kind === unref(EnumFilterKind).ZhuTi,
230
- huati: filter.kind === unref(EnumFilterKind).HuaTi
231
- }])
232
- }, [
233
- createElementVNode("div", _hoisted_3, [
234
- createElementVNode("div", {
235
- class: "flex-bc rowTitle frontRowTitle px-3 py-1 text-sm font-black font-bold truncate",
236
- onMouseenter: ($event) => handleHoverRowFilter(filter, true, rowIndex),
237
- onMouseleave: ($event) => handleHoverRowFilter(filter, false, rowIndex)
238
- }, [
239
- createElementVNode("div", _hoisted_5, [
240
- createVNode(_component_el_tooltip, {
241
- class: "box-item",
242
- content: filter.name,
243
- placement: "bottom-end"
244
- }, {
245
- default: withCtx(() => [
246
- createElementVNode("strong", null, toDisplayString(filter.name) + ": ", 1)
247
- ]),
248
- _: 2
249
- }, 1032, ["content"])
250
- ])
251
- ], 40, _hoisted_4),
252
- createElementVNode("div", _hoisted_6, [
253
- !filter.collapse ? (openBlock(), createElementBlock("div", _hoisted_7, [
254
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(A_Z), (letter) => {
255
- return openBlock(), createElementBlock("div", {
256
- key: letter,
257
- class: normalizeClass(["letter", { active: filter.selLetter === letter }]),
258
- onMouseenter: ($event) => handleHoverLetterFilter(filter, letter)
259
- }, toDisplayString(letter), 43, _hoisted_8);
260
- }), 128))
261
- ])) : createCommentVNode("", true),
262
- createElementVNode("div", _hoisted_9, [
263
- createElementVNode("div", {
264
- class: normalizeClass(["fWrap overflow-hidden flex flex-wrap content-start gap-x-10 gap-y-2 px-2 py-1", {
265
- more: !filter.collapse,
266
- iconRow: isIconRow(filter)
267
- }])
268
- }, [
269
- (openBlock(true), createElementBlock(Fragment, null, renderList(filter.childAppCategoryList, (subFilter) => {
270
- return openBlock(), createElementBlock(Fragment, {
271
- key: subFilter.id
272
- }, [
273
- subFilter.isMapShow ? (openBlock(), createElementBlock("div", {
274
- key: 0,
275
- class: "flex justify-center",
276
- id: subFilter.id
277
- }, [
278
- !subFilter.icon ? (openBlock(), createBlock(FilterItem, {
279
- key: 0,
280
- ref_for: true,
281
- ref: "subFilter" + subFilter.id,
282
- subFilter,
283
- multipleSel: filter.multipleSel,
284
- rowIndex: getFilterRowIndex(filter),
285
- checkout_prop: unref(selFilterIds).includes(subFilter.id)
286
- }, null, 8, ["subFilter", "multipleSel", "rowIndex", "checkout_prop"])) : (openBlock(), createBlock(FilterItemIcon, {
287
- key: 1,
288
- ref_for: true,
289
- ref: "subFilter" + subFilter.id,
290
- subFilter,
291
- multipleSel: filter.multipleSel,
292
- rowIndex: getFilterRowIndex(filter),
293
- checkout_prop: unref(selFilterIds).includes(subFilter.id)
294
- }, null, 8, ["subFilter", "multipleSel", "rowIndex", "checkout_prop"]))
295
- ], 8, _hoisted_10)) : createCommentVNode("", true)
296
- ], 64);
297
- }), 128))
298
- ], 2)
299
- ]),
300
- filter.multipleSel ? (openBlock(), createElementBlock("div", _hoisted_11, [
301
- createVNode(_component_el_button, {
302
- size: "small",
303
- onClick: ($event) => handleMultipleSel(filter, false)
304
- }, {
305
- default: withCtx(() => [
306
- createTextVNode("取消")
307
- ]),
308
- _: 2
309
- }, 1032, ["onClick"]),
310
- createVNode(_component_el_button, {
311
- size: "small",
312
- onClick: ($event) => handleMultipleSel_ok(filter)
313
- }, {
314
- default: withCtx(() => [
315
- createTextVNode("确定")
316
- ]),
317
- _: 2
318
- }, 1032, ["onClick"])
319
- ])) : createCommentVNode("", true)
320
- ])
321
- ]),
322
- !filter.multipleSel ? (openBlock(), createElementBlock("div", _hoisted_12, [
323
- ((_a2 = filter.childAppCategoryList) == null ? void 0 : _a2.length) && filter.childAppCategoryList.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_13, [
324
- createElementVNode("div", {
325
- class: "flex hover:text-red-600 items-center p-1 border cursor-pointer text-xs inline-block border-[#ddd] text-[#333]",
326
- style: { "flex-grow": "1", "height": "24px" },
327
- onClick: ($event) => handleTriggerCollapse(filter)
328
- }, [
329
- createTextVNode(toDisplayString(filter.collapse ? "更多" : "收起") + " ", 1),
330
- createElementVNode("span", _hoisted_15, [
331
- createVNode(_component_IconifyIconOffline, {
332
- style: { "width": "20px", "height": "20px" },
333
- icon: filter.collapse ? unref(data) : unref(data$1),
334
- class: "dark:text-white"
335
- }, null, 8, ["icon"])
336
- ])
337
- ], 8, _hoisted_14)
338
- ])) : createCommentVNode("", true),
339
- ((_b = filter.childAppCategoryList) == null ? void 0 : _b.length) && filter.childAppCategoryList.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_16, [
340
- createElementVNode("div", {
341
- class: "flex hover:text-red-600 items-center p-1 border cursor-pointer text-xs inline-block border-[#ddd] text-[#333]",
342
- style: { "flex-grow": "1", "height": "24px" },
343
- onClick: ($event) => handleMultipleSel(filter, true)
344
- }, [
345
- createTextVNode(toDisplayString("多选") + " "),
346
- createElementVNode("span", _hoisted_18, [
347
- createVNode(_component_IconifyIconOffline, {
348
- style: { "width": "20px", "height": "20px" },
349
- icon: unref(data$2),
350
- class: "dark:text-white"
351
- }, null, 8, ["icon"])
352
- ])
353
- ], 8, _hoisted_17)
354
- ])) : createCommentVNode("", true)
355
- ])) : createCommentVNode("", true)
356
- ], 2)) : createCommentVNode("", true)
357
- ], 64);
358
- }), 128)),
359
- unref(showList).length > 4 ? (openBlock(), createElementBlock("div", _hoisted_19, [
360
- createElementVNode("div", _hoisted_20, [
361
- _hoisted_21,
362
- createElementVNode("div", _hoisted_22, [
363
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(showList).slice(4), (filter, rowIndex) => {
364
- return openBlock(), createElementBlock("div", {
365
- key: filter.id,
366
- class: "flex flex-wrap items-center",
367
- onMouseenter: ($event) => handleHoverRowFilter(filter, true, rowIndex + 4),
368
- onMouseleave: ($event) => handleHoverRowFilter(filter, false, rowIndex + 4)
369
- }, [
370
- createVNode(_component_el_popover, {
371
- placement: "bottom-start",
372
- width: "100%",
373
- teleported: false,
374
- tabindex: rowIndex,
375
- "popper-class": [
376
- "subFilterWrap" + (rowIndex + 4),
377
- "subFilterWrap",
378
- { multiple: filter.multipleSel }
379
- ],
380
- "show-arrow": false,
381
- "show-after": 300,
382
- "popper-options": {
383
- modifiers: [
384
- {
385
- name: "computeStyles",
386
- options: {
387
- roundOffsets: ({ x, y }) => ({
388
- x: Math.round(x - 8),
389
- y: Math.round(y - 12)
390
- })
391
- }
392
- }
393
- ]
394
- },
395
- onHide: ($event) => handleMultipleSel(filter, false)
396
- }, {
397
- reference: withCtx(() => [
398
- createElementVNode("div", {
399
- class: normalizeClass(["flex bottomRowTitle flex-wrap items-center border py-1 px-2 text-xs cursor-pointer relative mr-3", {
400
- multiple: filter.multipleSel,
401
- xinyuan: filter.kind === unref(EnumFilterKind).XinYuan,
402
- zhuti: filter.kind === unref(EnumFilterKind).ZhuTi,
403
- huati: filter.kind === unref(EnumFilterKind).HuaTi
404
- }])
405
- }, [
406
- createElementVNode("span", _hoisted_24, toDisplayString(filter.name) + toDisplayString(getRowSelFitler(filter)), 1),
407
- createElementVNode("div", _hoisted_25, [
408
- createElementVNode("span", _hoisted_26, [
409
- createVNode(_component_IconifyIconOffline, {
410
- style: { "width": "20px", "height": "20px" },
411
- icon: filter.isEdit ? unref(data$1) : unref(data),
412
- class: "dark:text-white"
413
- }, null, 8, ["icon"])
414
- ])
415
- ])
416
- ], 2)
417
- ]),
418
- default: withCtx(() => [
419
- createVNode(_component_el_scrollbar, null, {
420
- default: withCtx(() => {
421
- var _a2;
422
- return [
423
- createElementVNode("div", _hoisted_27, [
424
- createElementVNode("div", _hoisted_28, [
425
- createElementVNode("div", _hoisted_29, [
426
- (openBlock(true), createElementBlock(Fragment, null, renderList(filter.childAppCategoryList, (subFilter) => {
427
- return openBlock(), createElementBlock(Fragment, {
428
- key: subFilter.id
429
- }, [
430
- subFilter.isMapShow ? (openBlock(), createElementBlock("div", _hoisted_30, [
431
- createVNode(FilterItem, {
432
- ref_for: true,
433
- ref: "subFilter" + subFilter.id,
434
- subFilter,
435
- multipleSel: filter.multipleSel,
436
- rowIndex: getFilterRowIndex(filter),
437
- checkout_prop: unref(selFilterIds).includes(subFilter.id),
438
- onClickF: ($event) => clickFilter(filter)
439
- }, null, 8, ["subFilter", "multipleSel", "rowIndex", "checkout_prop", "onClickF"])
440
- ])) : createCommentVNode("", true)
441
- ], 64);
442
- }), 128))
443
- ]),
444
- filter.multipleSel ? (openBlock(), createElementBlock("div", _hoisted_31, [
445
- createVNode(_component_el_button, {
446
- size: "small",
447
- onClick: ($event) => handleMultipleSel(filter, false)
448
- }, {
449
- default: withCtx(() => [
450
- createTextVNode("取消")
451
- ]),
452
- _: 2
453
- }, 1032, ["onClick"]),
454
- createVNode(_component_el_button, {
455
- size: "small",
456
- onClick: ($event) => handleMultipleSel_ok(filter)
457
- }, {
458
- default: withCtx(() => [
459
- createTextVNode("确定")
460
- ]),
461
- _: 2
462
- }, 1032, ["onClick"])
463
- ])) : createCommentVNode("", true)
464
- ]),
465
- ((_a2 = filter.childAppCategoryList) == null ? void 0 : _a2.length) && filter.childAppCategoryList.length > 1 ? withDirectives((openBlock(), createElementBlock("div", {
466
- key: 0,
467
- class: "flex ml-auto mr-3 mt-3 hover:text-red-600 items-center p-1 border cursor-pointer text-xs inline-block border-[#ddd] text-[#333]",
468
- style: { "height": "24px" },
469
- onClick: ($event) => handleMultipleSel(filter, true)
470
- }, [
471
- createTextVNode(toDisplayString("多选") + " "),
472
- createElementVNode("span", _hoisted_33, [
473
- createVNode(_component_IconifyIconOffline, {
474
- style: { "width": "20px", "height": "20px" },
475
- icon: unref(data$2),
476
- class: "dark:text-white"
477
- }, null, 8, ["icon"])
478
- ])
479
- ], 8, _hoisted_32)), [
480
- [vShow, !filter.multipleSel]
481
- ]) : createCommentVNode("", true)
482
- ])
483
- ];
484
- }),
485
- _: 2
486
- }, 1024)
487
- ]),
488
- _: 2
489
- }, 1032, ["tabindex", "popper-class", "popper-options", "onHide"])
490
- ], 40, _hoisted_23);
491
- }), 128))
492
- ])
493
- ])
494
- ])) : createCommentVNode("", true)
495
- ], 64))
496
- ])
497
- ], 2)) : createCommentVNode("", true)
498
- ];
499
- }),
500
- _: 1
501
- });
502
- };
503
- }
504
- });
505
- export {
506
- _sfc_main as default
507
- };
@@ -1,4 +0,0 @@
1
- const FilterArea_vue_vue_type_style_index_0_scoped_4220641b_lang = "";
2
- export {
3
- FilterArea_vue_vue_type_style_index_0_scoped_4220641b_lang as default
4
- };