@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,129 +0,0 @@
1
- import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, Fragment, renderList, unref, createTextVNode, toDisplayString } from "vue";
2
- import { useFilterStoreHook } from "../../store/modules/filters.mjs";
3
- import { storeToRefs } from "pinia";
4
- import { isAllEmpty as B } from "../../node_modules/.pnpm/@pureadmin_utils@1.8.5_vue@3.2.45/node_modules/@pureadmin/utils/dist/index.mjs";
5
- import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/close.mjs";
6
- import data$1 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-down-s-line.mjs";
7
- import data$2 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-up-s-line.mjs";
8
- const _hoisted_1 = { class: "flex justify-between p-1 bg-white text-xs text-[#666]" };
9
- const _hoisted_2 = { style: { "max-width": "calc(100% - 300px)" } };
10
- const _hoisted_3 = { class: "flex items-center align-middle justify-items-start flex-wrap" };
11
- const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", { class: "mr-1 p-2" }, [
12
- /* @__PURE__ */ createTextVNode("全部结果 "),
13
- /* @__PURE__ */ createElementVNode("span", null, ">")
14
- ], -1);
15
- const _hoisted_5 = ["onClick"];
16
- const _hoisted_6 = { class: "flex items-center" };
17
- const _hoisted_7 = { class: "mr-1" };
18
- const _hoisted_8 = { class: "text-[#e4393c] flex items-center" };
19
- const _hoisted_9 = {
20
- class: "truncate",
21
- style: { "max-width": "8rem" }
22
- };
23
- const _hoisted_10 = { class: "flex items-center" };
24
- const _hoisted_11 = { class: "arrow-down inline-block" };
25
- const _sfc_main = /* @__PURE__ */ defineComponent({
26
- __name: "FilterHead",
27
- setup(__props) {
28
- const filterStore = useFilterStoreHook();
29
- const { selProject, selFilterIds, filterList } = storeToRefs(filterStore);
30
- const { selFilters, collapseFilter } = filterStore;
31
- const filterTags = computed(() => {
32
- const tags = [];
33
- filterList.value.forEach((rowFilter) => {
34
- const rowName = rowFilter.name;
35
- const rowId = rowFilter.id;
36
- const subFilters = rowFilter.childAppCategoryList || [];
37
- const value = [];
38
- subFilters.forEach((f) => {
39
- if (selFilterIds.value.includes(f.id)) {
40
- value.push({
41
- name: f.name,
42
- id: f.id
43
- });
44
- }
45
- });
46
- if (!B(value)) {
47
- tags.push({
48
- name: rowName,
49
- id: rowId,
50
- value
51
- });
52
- }
53
- });
54
- return tags;
55
- });
56
- const handleTriggerCollapse = () => {
57
- collapseFilter(selProject.value, !selProject.value.collapse);
58
- };
59
- return (_ctx, _cache) => {
60
- var _a, _b;
61
- const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
62
- const _component_el_tooltip = resolveComponent("el-tooltip");
63
- const _component_el_scrollbar = resolveComponent("el-scrollbar");
64
- return openBlock(), createElementBlock("div", _hoisted_1, [
65
- createElementVNode("div", _hoisted_2, [
66
- createVNode(_component_el_scrollbar, null, {
67
- default: withCtx(() => [
68
- createElementVNode("div", _hoisted_3, [
69
- _hoisted_4,
70
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(filterTags), (tag) => {
71
- return openBlock(), createElementBlock("div", {
72
- class: "flex items-center hover:border-[red] hover:!bg-[white] bg-[#f3f3f3] border-[#DDD] border mr-3 px-2 py-1 cursor-pointer",
73
- key: tag.id,
74
- onClick: ($event) => unref(selFilters)(
75
- tag.value.map((v) => v.id),
76
- []
77
- )
78
- }, [
79
- createVNode(_component_el_tooltip, null, {
80
- content: withCtx(() => [
81
- createTextVNode(toDisplayString(tag.value.map((item) => item.name).join("、")), 1)
82
- ]),
83
- default: withCtx(() => [
84
- createElementVNode("div", _hoisted_6, [
85
- createElementVNode("div", _hoisted_7, toDisplayString(tag.name) + ":", 1),
86
- createElementVNode("div", _hoisted_8, [
87
- createElementVNode("span", _hoisted_9, toDisplayString(tag.value.map((item) => item.name).join("、")), 1),
88
- createVNode(_component_IconifyIconOffline, {
89
- class: "ml-3 mr-1",
90
- icon: unref(data)
91
- }, null, 8, ["icon"])
92
- ])
93
- ])
94
- ]),
95
- _: 2
96
- }, 1024)
97
- ], 8, _hoisted_5);
98
- }), 128))
99
- ])
100
- ]),
101
- _: 1
102
- })
103
- ]),
104
- createElementVNode("div", {
105
- class: "flex-auto",
106
- onClick: _cache[0] || (_cache[0] = ($event) => unref(collapseFilter)(unref(selProject), false))
107
- }),
108
- createElementVNode("div", _hoisted_10, [
109
- createElementVNode("div", {
110
- class: "flex justify-center items-center p-1 ml-2 mr-2 cursor-pointer hover:text-red-600 text-xs inline-block text-[#333]",
111
- onClick: handleTriggerCollapse
112
- }, [
113
- createTextVNode(toDisplayString(((_a = unref(selProject)) == null ? void 0 : _a.collapse) ? "展示筛选" : "收起筛选") + " ", 1),
114
- createElementVNode("span", _hoisted_11, [
115
- createVNode(_component_IconifyIconOffline, {
116
- style: { "width": "20px", "height": "20px" },
117
- icon: ((_b = unref(selProject)) == null ? void 0 : _b.collapse) ? unref(data$1) : unref(data$2),
118
- class: "dark:text-white"
119
- }, null, 8, ["icon"])
120
- ])
121
- ])
122
- ])
123
- ]);
124
- };
125
- }
126
- });
127
- export {
128
- _sfc_main as default
129
- };
@@ -1,4 +0,0 @@
1
- import _sfc_main from "./FilterHead.vue.mjs";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./FilterItem.vue2.mjs";
2
- import "./FilterItem.vue3.mjs";
3
- import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const FilterItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-918b7288"]]);
5
- export {
6
- FilterItem as default
7
- };
@@ -1,114 +0,0 @@
1
- import { defineComponent, toRefs, ref, watch, resolveComponent, unref, openBlock, createBlock, withCtx, createTextVNode, toDisplayString, createElementVNode, createVNode, withDirectives, vShow, createCommentVNode, createElementBlock, pushScopeId, popScopeId } from "vue";
2
- import { storeToRefs } from "pinia";
3
- import { useFilterStoreHook } from "../../store/modules/filters.mjs";
4
- import { EnumFilterKind } from "../../store/modules/types.mjs";
5
- import data from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs";
6
- import { getFilterRemark } from "../../utils/home.mjs";
7
- const _withScopeId = (n) => (pushScopeId("data-v-918b7288"), n = n(), popScopeId(), n);
8
- const _hoisted_1 = { class: "p-2" };
9
- const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("line", null, null, -1));
10
- const _hoisted_3 = ["innerHTML"];
11
- const _hoisted_4 = {
12
- key: 1,
13
- class: "flex items-center text-xs text-[#606266]"
14
- };
15
- const _hoisted_5 = { class: "tagText" };
16
- const _sfc_main = /* @__PURE__ */ defineComponent({
17
- __name: "FilterItem",
18
- props: {
19
- subFilter: null,
20
- rowIndex: null,
21
- multipleSel: { type: Boolean },
22
- checkout_prop: { type: Boolean }
23
- },
24
- emits: ["clickF", "edit"],
25
- setup(__props, { expose, emit }) {
26
- const props = __props;
27
- const { subFilter, multipleSel, checkout_prop } = toRefs(props);
28
- const filterStore = useFilterStoreHook();
29
- const { selFilterIds, filterList } = storeToRefs(filterStore);
30
- const { selFilter } = filterStore;
31
- const checkOut = ref(false);
32
- watch(multipleSel, () => {
33
- if (multipleSel.value) {
34
- checkOut.value = checkout_prop.value;
35
- } else {
36
- checkOut.value = false;
37
- }
38
- });
39
- const clickFilter = (filter) => {
40
- selFilter(filter);
41
- emit("clickF");
42
- };
43
- const showEdit = ref(false);
44
- const handleHoverAccount = (isShow) => {
45
- showEdit.value = isShow;
46
- };
47
- expose({
48
- checkOut
49
- });
50
- return (_ctx, _cache) => {
51
- const _component_el_divider = resolveComponent("el-divider");
52
- const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
53
- const _component_el_tooltip = resolveComponent("el-tooltip");
54
- const _component_el_button = resolveComponent("el-button");
55
- const _component_el_checkbox = resolveComponent("el-checkbox");
56
- return !unref(multipleSel) ? (openBlock(), createBlock(_component_el_button, {
57
- key: 0,
58
- size: "small",
59
- class: "tagText gap-1.5",
60
- link: "",
61
- type: unref(selFilterIds).includes(unref(subFilter).id) ? "warning" : "",
62
- onClick: _cache[0] || (_cache[0] = ($event) => clickFilter(unref(subFilter))),
63
- onMouseenter: _cache[1] || (_cache[1] = ($event) => handleHoverAccount(true)),
64
- onMouseleave: _cache[2] || (_cache[2] = ($event) => handleHoverAccount(false))
65
- }, {
66
- default: withCtx(() => [
67
- createTextVNode(toDisplayString(unref(subFilter).name) + " ", 1),
68
- unref(subFilter).kind !== unref(EnumFilterKind).XinYuan ? (openBlock(), createBlock(_component_el_tooltip, {
69
- key: 0,
70
- class: "box-item",
71
- effect: "light",
72
- "show-after": 300,
73
- placement: "right"
74
- }, {
75
- content: withCtx(() => [
76
- createElementVNode("div", _hoisted_1, [
77
- createElementVNode("p", null, toDisplayString(unref(subFilter).name), 1),
78
- createVNode(_component_el_divider, { style: { "padding": "0", "margin": "5px 5px 5px 0" } }),
79
- _hoisted_2,
80
- createElementVNode("div", {
81
- innerHTML: unref(getFilterRemark)(unref(subFilter), unref(filterList))
82
- }, null, 8, _hoisted_3),
83
- createVNode(_component_el_divider, { style: { "padding": "0", "margin": "5px 5px 5px 0" } })
84
- ])
85
- ]),
86
- default: withCtx(() => [
87
- withDirectives(createVNode(_component_IconifyIconOffline, {
88
- class: "ml-3",
89
- icon: unref(data)
90
- }, null, 8, ["icon"]), [
91
- [vShow, showEdit.value]
92
- ])
93
- ]),
94
- _: 1
95
- })) : createCommentVNode("", true)
96
- ]),
97
- _: 1
98
- }, 8, ["type"])) : (openBlock(), createElementBlock("div", _hoisted_4, [
99
- createVNode(_component_el_checkbox, {
100
- modelValue: checkOut.value,
101
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => checkOut.value = $event)
102
- }, {
103
- default: withCtx(() => [
104
- createElementVNode("span", _hoisted_5, toDisplayString(unref(subFilter).name), 1)
105
- ]),
106
- _: 1
107
- }, 8, ["modelValue"])
108
- ]));
109
- };
110
- }
111
- });
112
- export {
113
- _sfc_main as default
114
- };
@@ -1,4 +0,0 @@
1
- const FilterItem_vue_vue_type_style_index_0_scoped_918b7288_lang = "";
2
- export {
3
- FilterItem_vue_vue_type_style_index_0_scoped_918b7288_lang as default
4
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./FilterItemIcon.vue2.mjs";
2
- import "./FilterItemIcon.vue3.mjs";
3
- import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const FilterItemIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-26e11e66"]]);
5
- export {
6
- FilterItemIcon as default
7
- };
@@ -1,171 +0,0 @@
1
- import { defineComponent, toRefs, ref, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, withDirectives, createElementVNode, toDisplayString, vShow, createBlock, createCommentVNode, pushScopeId, popScopeId } from "vue";
2
- import { storeToRefs } from "pinia";
3
- import { useFilterStoreHook } from "../../store/modules/filters.mjs";
4
- import data from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs";
5
- import data$1 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/check-fill.mjs";
6
- import { getFilterRemark } from "../../utils/home.mjs";
7
- const _withScopeId = (n) => (pushScopeId("data-v-26e11e66"), n = n(), popScopeId(), n);
8
- const _hoisted_1 = {
9
- key: 0,
10
- class: "flex items-end"
11
- };
12
- const _hoisted_2 = { class: "image-slot" };
13
- const _hoisted_3 = { class: "p-2" };
14
- const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("line", null, null, -1));
15
- const _hoisted_5 = ["innerHTML"];
16
- const _hoisted_6 = {
17
- key: 1,
18
- class: "flex items-center text-xs text-[#606266]"
19
- };
20
- const _hoisted_7 = { class: "image-slot" };
21
- const _sfc_main = /* @__PURE__ */ defineComponent({
22
- __name: "FilterItemIcon",
23
- props: {
24
- subFilter: null,
25
- rowIndex: null,
26
- multipleSel: { type: Boolean },
27
- checkout_prop: { type: Boolean }
28
- },
29
- emits: ["clickF", "edit"],
30
- setup(__props, { expose, emit }) {
31
- const props = __props;
32
- const { subFilter, multipleSel, checkout_prop } = toRefs(props);
33
- const filterStore = useFilterStoreHook();
34
- const { selFilterIds, filterList } = storeToRefs(filterStore);
35
- const { selFilter } = filterStore;
36
- const checkOut = ref(false);
37
- watch(multipleSel, () => {
38
- if (multipleSel.value) {
39
- checkOut.value = checkout_prop.value;
40
- } else {
41
- checkOut.value = false;
42
- }
43
- });
44
- const clickFilter = (filter) => {
45
- selFilter(filter);
46
- emit("clickF");
47
- };
48
- const showEdit = ref(false);
49
- const handleHoverAccount = (isShow) => {
50
- showEdit.value = isShow;
51
- };
52
- const hancleClickCheck = () => {
53
- checkOut.value = !checkOut.value;
54
- };
55
- expose({
56
- checkOut
57
- });
58
- return (_ctx, _cache) => {
59
- const _component_el_image = resolveComponent("el-image");
60
- const _component_el_divider = resolveComponent("el-divider");
61
- const _component_IconifyIconOffline = resolveComponent("IconifyIconOffline");
62
- const _component_el_tooltip = resolveComponent("el-tooltip");
63
- const _component_el_button = resolveComponent("el-button");
64
- return openBlock(), createElementBlock("div", {
65
- class: normalizeClass([{ hover: showEdit.value }, "relative"])
66
- }, [
67
- !unref(multipleSel) ? (openBlock(), createElementBlock("div", _hoisted_1, [
68
- createVNode(_component_el_button, {
69
- size: "small",
70
- link: "",
71
- class: "tagText gap-1.5",
72
- type: unref(selFilterIds).includes(unref(subFilter).id) ? "warning" : "",
73
- onClick: _cache[0] || (_cache[0] = ($event) => clickFilter(unref(subFilter))),
74
- onMouseenter: _cache[1] || (_cache[1] = ($event) => handleHoverAccount(true)),
75
- onMouseleave: _cache[2] || (_cache[2] = ($event) => handleHoverAccount(false))
76
- }, {
77
- default: withCtx(() => [
78
- withDirectives(createVNode(_component_el_image, {
79
- style: { "width": "103px", "height": "36px" },
80
- src: unref(subFilter).icon,
81
- fit: "none"
82
- }, {
83
- error: withCtx(() => [
84
- createElementVNode("div", _hoisted_2, toDisplayString(unref(subFilter).name), 1)
85
- ]),
86
- _: 1
87
- }, 8, ["src"]), [
88
- [vShow, !showEdit.value]
89
- ]),
90
- withDirectives(createElementVNode("div", {
91
- class: "truncate flex items-center justify-center",
92
- style: { "width": "103px", "height": "36px" }
93
- }, toDisplayString(unref(subFilter).name), 513), [
94
- [vShow, showEdit.value]
95
- ]),
96
- createVNode(_component_el_tooltip, {
97
- class: "box-item",
98
- effect: "light",
99
- "show-after": 300,
100
- placement: "right"
101
- }, {
102
- content: withCtx(() => [
103
- createElementVNode("div", _hoisted_3, [
104
- createElementVNode("p", null, toDisplayString(unref(subFilter).name), 1),
105
- createVNode(_component_el_divider, { style: { "padding": "0", "margin": "5px 5px 5px 0" } }),
106
- _hoisted_4,
107
- createElementVNode("div", {
108
- innerHTML: unref(getFilterRemark)(unref(subFilter), unref(filterList))
109
- }, null, 8, _hoisted_5),
110
- createVNode(_component_el_divider, { style: { "padding": "0", "margin": "5px 5px 5px 0" } })
111
- ])
112
- ]),
113
- default: withCtx(() => [
114
- withDirectives(createVNode(_component_IconifyIconOffline, {
115
- class: "ml-3",
116
- icon: unref(data)
117
- }, null, 8, ["icon"]), [
118
- [vShow, showEdit.value]
119
- ])
120
- ]),
121
- _: 1
122
- })
123
- ]),
124
- _: 1
125
- }, 8, ["type"])
126
- ])) : (openBlock(), createElementBlock("div", _hoisted_6, [
127
- createVNode(_component_el_button, {
128
- size: "small",
129
- link: "",
130
- class: "tagText gap-1.5",
131
- type: unref(selFilterIds).includes(unref(subFilter).id) ? "warning" : "",
132
- onClick: hancleClickCheck,
133
- onMouseenter: _cache[3] || (_cache[3] = ($event) => handleHoverAccount(true)),
134
- onMouseleave: _cache[4] || (_cache[4] = ($event) => handleHoverAccount(false))
135
- }, {
136
- default: withCtx(() => [
137
- withDirectives(createVNode(_component_el_image, {
138
- style: { "width": "103px", "height": "36px" },
139
- src: unref(subFilter).icon,
140
- fit: "none"
141
- }, {
142
- error: withCtx(() => [
143
- createElementVNode("div", _hoisted_7, toDisplayString(unref(subFilter).name), 1)
144
- ]),
145
- _: 1
146
- }, 8, ["src"]), [
147
- [vShow, !showEdit.value]
148
- ]),
149
- withDirectives(createElementVNode("div", {
150
- class: "truncate",
151
- style: { "width": "80px" }
152
- }, toDisplayString(unref(subFilter).name), 513), [
153
- [vShow, showEdit.value]
154
- ])
155
- ]),
156
- _: 1
157
- }, 8, ["type"]),
158
- checkOut.value ? (openBlock(), createBlock(_component_IconifyIconOffline, {
159
- key: 0,
160
- class: "absolute right-0 bottom-0",
161
- icon: unref(data$1),
162
- style: { "color": "red", "width": "16px", "height": "16px" }
163
- }, null, 8, ["icon"])) : createCommentVNode("", true)
164
- ]))
165
- ], 2);
166
- };
167
- }
168
- });
169
- export {
170
- _sfc_main as default
171
- };
@@ -1,4 +0,0 @@
1
- const FilterItemIcon_vue_vue_type_style_index_0_scoped_26e11e66_lang = "";
2
- export {
3
- FilterItemIcon_vue_vue_type_style_index_0_scoped_26e11e66_lang as default
4
- };
@@ -1,17 +0,0 @@
1
- import { defineComponent, openBlock, createElementBlock, Fragment, createVNode } from "vue";
2
- import FilterArea from "./FilterArea.vue.mjs";
3
- import _sfc_main$1 from "./FilterHead.vue.mjs";
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "index",
6
- setup(__props) {
7
- return (_ctx, _cache) => {
8
- return openBlock(), createElementBlock(Fragment, null, [
9
- createVNode(_sfc_main$1),
10
- createVNode(FilterArea)
11
- ], 64);
12
- };
13
- }
14
- });
15
- export {
16
- _sfc_main as default
17
- };
@@ -1,4 +0,0 @@
1
- import _sfc_main from "./index.vue.mjs";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./index.vue2.mjs";
2
- import "./index.vue3.mjs";
3
- import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const LProject = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9ecf9b8d"]]);
5
- export {
6
- LProject as default
7
- };
@@ -1,70 +0,0 @@
1
- import { defineComponent, watch, resolveComponent, openBlock, createElementBlock, unref, createCommentVNode, createElementVNode, createVNode, withCtx, Fragment, renderList, createBlock, toDisplayString } from "vue";
2
- import { useFilterStoreHook } from "../../store/modules/filters.mjs";
3
- import { storeToRefs } from "pinia";
4
- const _hoisted_1 = { class: "flex p-2 bg-white align-middle justify-items-start flex-wrap mb-1" };
5
- const _hoisted_2 = {
6
- key: 0,
7
- class: "flex items-center text-gray-800"
8
- };
9
- const _hoisted_3 = {
10
- class: "",
11
- style: { "max-width": "calc(100% - 40px)" }
12
- };
13
- const _hoisted_4 = { class: "flex" };
14
- const _hoisted_5 = { class: "font-bold" };
15
- const _sfc_main = /* @__PURE__ */ defineComponent({
16
- __name: "index",
17
- setup(__props) {
18
- const filterStore = useFilterStoreHook();
19
- const { projectList, selProjectId, selProject } = storeToRefs(filterStore);
20
- const {
21
- getFilterList,
22
- clearFilterList,
23
- getAllMapData_xinyuan,
24
- getXinyuanHead,
25
- setSelProjectId
26
- } = filterStore;
27
- const clickPro = (pro) => {
28
- setSelProjectId(pro.id);
29
- };
30
- watch(selProjectId, () => {
31
- clearFilterList();
32
- getFilterList();
33
- getAllMapData_xinyuan();
34
- getXinyuanHead();
35
- });
36
- return (_ctx, _cache) => {
37
- const _component_el_button = resolveComponent("el-button");
38
- const _component_el_scrollbar = resolveComponent("el-scrollbar");
39
- return openBlock(), createElementBlock("div", _hoisted_1, [
40
- unref(projectList).length === 0 ? (openBlock(), createElementBlock("div", _hoisted_2, " 空 ")) : createCommentVNode("", true),
41
- createElementVNode("div", _hoisted_3, [
42
- createVNode(_component_el_scrollbar, null, {
43
- default: withCtx(() => [
44
- createElementVNode("div", _hoisted_4, [
45
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(projectList), (pro) => {
46
- var _a;
47
- return openBlock(), createBlock(_component_el_button, {
48
- key: pro.id,
49
- class: "last:pr-10 my-1",
50
- onClick: ($event) => clickPro(pro),
51
- type: pro.id === ((_a = unref(selProject)) == null ? void 0 : _a.id) ? "warning" : ""
52
- }, {
53
- default: withCtx(() => [
54
- createElementVNode("span", _hoisted_5, toDisplayString(pro.name), 1)
55
- ]),
56
- _: 2
57
- }, 1032, ["onClick", "type"]);
58
- }), 128))
59
- ])
60
- ]),
61
- _: 1
62
- })
63
- ])
64
- ]);
65
- };
66
- }
67
- });
68
- export {
69
- _sfc_main as default
70
- };
@@ -1,4 +0,0 @@
1
- const index_vue_vue_type_style_index_0_scoped_9ecf9b8d_lang = "";
2
- export {
3
- index_vue_vue_type_style_index_0_scoped_9ecf9b8d_lang as default
4
- };
@@ -1,7 +0,0 @@
1
- import _sfc_main from "./index.vue2.mjs";
2
- import "./index.vue3.mjs";
3
- import _export_sfc from "../_virtual/_plugin-vue_export-helper.mjs";
4
- const Home = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0d23acf9"]]);
5
- export {
6
- Home as default
7
- };
@@ -1,80 +0,0 @@
1
- import { defineComponent, onMounted, onUnmounted, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx } from "vue";
2
- import { useFilterStoreHook } from "../store/modules/filters.mjs";
3
- import LProject from "./LProject/index.vue.mjs";
4
- import _sfc_main$1 from "./LFilter/index.vue.mjs";
5
- import { storeToRefs } from "pinia";
6
- const _hoisted_1 = { class: "panel common-layout" };
7
- const __default__ = defineComponent({
8
- name: "Home"
9
- });
10
- const _sfc_main = /* @__PURE__ */ defineComponent({
11
- ...__default__,
12
- props: {
13
- token: null
14
- },
15
- emits: ["selFilterChange"],
16
- setup(__props, { expose, emit }) {
17
- const props = __props;
18
- const filterStore = useFilterStoreHook();
19
- const { getProjectList, setSelProjectId } = filterStore;
20
- const { projectList, selProject, getCurSelFilter, filterList, selFilterIds } = storeToRefs(filterStore);
21
- onMounted(() => {
22
- init();
23
- });
24
- onUnmounted(() => {
25
- setSelProjectId(0);
26
- });
27
- const init = async () => {
28
- window["know_token"] = props.token;
29
- await getProjectList();
30
- };
31
- const getAllProject = () => {
32
- return projectList.value;
33
- };
34
- const getSelProject = () => {
35
- return selProject.value;
36
- };
37
- const getSelFilter = () => {
38
- return getCurSelFilter.value;
39
- };
40
- const getAllFilter = () => {
41
- return filterList.value;
42
- };
43
- watch(selFilterIds.value, () => {
44
- emit("selFilterChange", getCurSelFilter.value);
45
- });
46
- expose({
47
- getAllProject,
48
- getSelProject,
49
- getSelFilter,
50
- getAllFilter
51
- });
52
- return (_ctx, _cache) => {
53
- const _component_el_header = resolveComponent("el-header");
54
- const _component_el_container = resolveComponent("el-container");
55
- return openBlock(), createElementBlock("div", _hoisted_1, [
56
- createVNode(_component_el_container, {
57
- class: "",
58
- style: { "height": "100%" }
59
- }, {
60
- default: withCtx(() => [
61
- createVNode(_component_el_header, {
62
- class: "mb-1",
63
- style: { "padding": "0", "height": "auto" }
64
- }, {
65
- default: withCtx(() => [
66
- createVNode(LProject),
67
- createVNode(_sfc_main$1, { ref: "filterArea" }, null, 512)
68
- ]),
69
- _: 1
70
- })
71
- ]),
72
- _: 1
73
- })
74
- ]);
75
- };
76
- }
77
- });
78
- export {
79
- _sfc_main as default
80
- };
@@ -1,4 +0,0 @@
1
- const index_vue_vue_type_style_index_0_scoped_0d23acf9_lang = "";
2
- export {
3
- index_vue_vue_type_style_index_0_scoped_0d23acf9_lang as default
4
- };