@kg-ui/kg-ui-plus 0.1.31 → 0.1.33

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 (158) hide show
  1. package/README.md +3 -3
  2. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue.mjs +7 -0
  3. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue2.mjs +81 -0
  4. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue3.mjs +4 -0
  5. package/dist/es/KgCopilot/CopiCanvas/FileSkeletion.vue.mjs +96 -0
  6. package/dist/es/KgCopilot/CopiCanvas/FileSkeletion.vue2.mjs +4 -0
  7. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue.mjs +7 -0
  8. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue2.mjs +41 -0
  9. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue3.mjs +4 -0
  10. package/dist/es/KgCopilot/CopiCanvas/index.vue.mjs +7 -0
  11. package/dist/es/KgCopilot/CopiCanvas/index.vue2.mjs +52 -0
  12. package/dist/es/KgCopilot/CopiCanvas/index.vue3.mjs +4 -0
  13. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +1 -1
  14. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +1 -1
  15. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue3.mjs +2 -2
  16. package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +2 -2
  17. package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +2 -2
  18. package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue.mjs +7 -0
  19. package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue2.mjs +61 -0
  20. package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue3.mjs +4 -0
  21. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue.mjs +1 -1
  22. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue2.mjs +1 -1
  23. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue3.mjs +2 -2
  24. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue.mjs +1 -1
  25. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue2.mjs +1 -1
  26. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue3.mjs +2 -2
  27. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue.mjs +1 -1
  28. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue2.mjs +10 -20
  29. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue3.mjs +2 -2
  30. package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +1 -1
  31. package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +2 -2
  32. package/dist/es/KgCopilot/dialogue/SuggestMessage.vue.mjs +1 -1
  33. package/dist/es/KgCopilot/dialogue/SuggestMessage.vue2.mjs +1 -1
  34. package/dist/es/KgCopilot/dialogue/SuggestMessage.vue3.mjs +2 -2
  35. package/dist/es/KgCopilot/dialogue/index.vue.mjs +1 -1
  36. package/dist/es/KgCopilot/dialogue/index.vue2.mjs +1 -1
  37. package/dist/es/KgCopilot/dialogue/index.vue3.mjs +2 -2
  38. package/dist/es/KgCopilot/dialogue/messageParse/edit.vue.mjs +1 -1
  39. package/dist/es/KgCopilot/dialogue/messageParse/edit.vue3.mjs +2 -2
  40. package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue.mjs +19 -5
  41. package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue2.mjs +2 -2
  42. package/dist/es/KgCopilot/dialogue/messageParse/index.vue.mjs +1 -1
  43. package/dist/es/KgCopilot/dialogue/messageParse/index.vue3.mjs +2 -2
  44. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue.mjs +1 -1
  45. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue2.mjs +2 -2
  46. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue3.mjs +2 -2
  47. package/dist/es/KgCopilot/historyRecord/index.vue.mjs +1 -1
  48. package/dist/es/KgCopilot/historyRecord/index.vue2.mjs +6 -6
  49. package/dist/es/KgCopilot/historyRecord/index.vue3.mjs +2 -2
  50. package/dist/es/KgCopilot/index.vue.mjs +1 -1
  51. package/dist/es/KgCopilot/index.vue2.mjs +61 -38
  52. package/dist/es/KgCopilot/index.vue3.mjs +2 -2
  53. package/dist/es/_virtual/_commonjs-dynamic-modules.mjs +6 -0
  54. package/dist/es/_virtual/jszip.min.mjs +13 -0
  55. package/dist/es/api/copilot.mjs +8 -0
  56. package/dist/es/assets/empty.png.mjs +4 -0
  57. package/dist/es/directives/heighlight/index.mjs +27 -27
  58. package/dist/es/home/LFilter/FilterArea.vue.mjs +1 -1
  59. package/dist/es/home/LFilter/FilterArea.vue2.mjs +1 -1
  60. package/dist/es/home/LFilter/FilterArea.vue3.mjs +2 -2
  61. package/dist/es/home/LFilter/FilterHead.vue.mjs +1 -1
  62. package/dist/es/home/LFilter/FilterItem.vue.mjs +1 -1
  63. package/dist/es/home/LFilter/FilterItem.vue2.mjs +1 -1
  64. package/dist/es/home/LFilter/FilterItem.vue3.mjs +2 -2
  65. package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +1 -1
  66. package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +1 -1
  67. package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +2 -2
  68. package/dist/es/home/LProject/index.vue.mjs +1 -1
  69. package/dist/es/home/LProject/index.vue3.mjs +2 -2
  70. package/dist/es/home/index.vue.mjs +1 -1
  71. package/dist/es/home/index.vue3.mjs +2 -2
  72. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/folder-opened.mjs +8 -0
  73. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/notebook.mjs +8 -0
  74. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/reading.mjs +8 -0
  75. package/dist/es/node_modules/.pnpm/@vueuse_core@9.13.0_vue@3.2.45/node_modules/@vueuse/core/index.mjs +8 -1
  76. package/dist/es/node_modules/.pnpm/@vueuse_shared@9.13.0_vue@3.2.45/node_modules/@vueuse/shared/index.mjs +115 -2
  77. package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/actualApply.mjs +12 -0
  78. package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionApply.mjs +12 -0
  79. package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs +4 -0
  80. package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/index.mjs +17 -0
  81. package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/reflectApply.mjs +4 -0
  82. package/dist/es/node_modules/.pnpm/call-bound@1.0.3/node_modules/call-bound/index.mjs +18 -0
  83. package/dist/es/node_modules/.pnpm/docx-preview@0.3.3/node_modules/docx-preview/dist/docx-preview.mjs +3877 -0
  84. package/dist/es/node_modules/.pnpm/{dompurify@3.0.10 → dompurify@3.2.3}/node_modules/dompurify/dist/purify.es.mjs +119 -91
  85. package/dist/es/node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.mjs +37 -0
  86. package/dist/es/node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.mjs +12 -0
  87. package/dist/es/node_modules/.pnpm/es-object-atoms@1.0.0/node_modules/es-object-atoms/index.mjs +4 -0
  88. package/dist/es/node_modules/.pnpm/{get-intrinsic@1.2.4 → get-intrinsic@1.2.6}/node_modules/get-intrinsic/index.mjs +43 -24
  89. package/dist/es/node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.mjs +4 -0
  90. package/dist/es/node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.mjs +13 -0
  91. package/dist/es/node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.mjs +29 -0
  92. package/dist/es/node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.mjs +59 -0
  93. package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +13 -5
  94. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/apache.mjs +4 -0
  95. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/bash.mjs +20 -2
  96. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/basic.mjs +7 -1
  97. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/c.mjs +19 -4
  98. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/css.mjs +214 -8
  99. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/dart.mjs +10 -2
  100. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/erlang.mjs +48 -6
  101. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/go.mjs +23 -3
  102. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/java.mjs +3 -1
  103. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/javascript.mjs +15 -11
  104. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/json.mjs +1 -0
  105. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/markdown.mjs +7 -1
  106. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/php.mjs +16 -2
  107. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/python.mjs +3 -1
  108. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/ruby.mjs +1 -1
  109. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/stylus.mjs +214 -8
  110. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/swift.mjs +60 -14
  111. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/typescript.mjs +45 -18
  112. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/lib/core.mjs +8 -8
  113. package/dist/es/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.mjs +2649 -0
  114. package/dist/es/node_modules/.pnpm/{marked@12.0.1 → marked@12.0.2}/node_modules/marked/lib/marked.esm.mjs +2 -1
  115. package/dist/es/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.mjs +4 -0
  116. package/dist/es/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.mjs +4 -0
  117. package/dist/es/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.mjs +4 -0
  118. package/dist/es/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.mjs +4 -0
  119. package/dist/es/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.mjs +4 -0
  120. package/dist/es/node_modules/.pnpm/{object-inspect@1.13.1 → object-inspect@1.13.3}/node_modules/object-inspect/index.mjs +17 -4
  121. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/stringify.mjs +1 -1
  122. package/dist/es/node_modules/.pnpm/side-channel-list@1.0.0/node_modules/side-channel-list/index.mjs +92 -0
  123. package/dist/es/node_modules/.pnpm/side-channel-map@1.0.1/node_modules/side-channel-map/index.mjs +56 -0
  124. package/dist/es/node_modules/.pnpm/side-channel-weakmap@1.0.2/node_modules/side-channel-weakmap/index.mjs +74 -0
  125. package/dist/es/node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.mjs +40 -0
  126. package/dist/es/store/modules/copilot.mjs +41 -9
  127. package/dist/es/style.css +1 -1
  128. package/dist/es/utils/http/index.mjs +1 -1
  129. package/package.json +124 -123
  130. package/dist/es/_virtual/index.mjs +0 -13
  131. package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.mjs +0 -16
  132. package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.mjs +0 -36
  133. package/dist/es/node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.mjs +0 -48
  134. package/dist/es/node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.mjs +0 -22
  135. package/dist/es/node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.mjs +0 -14
  136. package/dist/es/node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.mjs +0 -19
  137. package/dist/es/node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.mjs +0 -11
  138. package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.mjs +0 -21
  139. package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.mjs +0 -48
  140. package/dist/es/node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.mjs +0 -54
  141. package/dist/es/node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.mjs +0 -115
  142. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/arrow-left.mjs +0 -0
  143. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/arrow-right.mjs +0 -0
  144. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/check.mjs +0 -0
  145. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/close.mjs +0 -0
  146. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/delete.mjs +0 -0
  147. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/edit.mjs +0 -0
  148. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/promotion.mjs +0 -0
  149. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/search.mjs +0 -0
  150. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/core.mjs +0 -0
  151. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/django.mjs +0 -0
  152. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/dns.mjs +0 -0
  153. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/dos.mjs +0 -0
  154. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/dust.mjs +0 -0
  155. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/http.mjs +0 -0
  156. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/nginx.mjs +0 -0
  157. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/xml.mjs +0 -0
  158. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/styles/sunburst.css.mjs +0 -0
@@ -50,7 +50,7 @@ const _PureHttp = class {
50
50
  instance.interceptors.response.use(
51
51
  (response) => {
52
52
  delete _PureHttp.requestMap[response.config.url || ""];
53
- return response.data;
53
+ return response.config.needHeader ? response : response.data;
54
54
  },
55
55
  (error) => {
56
56
  const $error = error;
package/package.json CHANGED
@@ -1,123 +1,124 @@
1
- {
2
- "name": "@kg-ui/kg-ui-plus",
3
- "version": "0.1.31",
4
- "description": "A Component Library for Vue 3",
5
- "private": false,
6
- "main": "dist/es/index.mjs",
7
- "files": [
8
- "dist"
9
- ],
10
- "scripts": {
11
- "dev": "NODE_OPTIONS=--max-old-space-size=4096 vite",
12
- "serve": "pnpm dev",
13
- "build": "rimraf dist && NODE_OPTIONS=--max-old-space-size=8192 vite build",
14
- "report": "rimraf dist && vite build",
15
- "preview": "vite preview",
16
- "preview:build": "pnpm build && vite preview",
17
- "typecheck": "tsc --noEmit && vue-tsc --noEmit --skipLibCheck",
18
- "svgo": "svgo -f src/assets/svg -o src/assets/svg",
19
- "cloc": "NODE_OPTIONS=--max-old-space-size=4096 cloc . --exclude-dir=node_modules --exclude-lang=YAML",
20
- "clean:cache": "rm -rf node_modules && rm -rf .eslintcache && pnpm install",
21
- "lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock,build}/**/*.{vue,js,ts,tsx}\" --fix",
22
- "lint:prettier": "prettier --write \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
23
- "lint:stylelint": "stylelint --cache --fix \"**/*.{vue,css,scss,postcss,less}\" --cache --cache-location node_modules/.cache/stylelint/",
24
- "lint:lint-staged": "lint-staged -c ./.husky/lintstagedrc.js",
25
- "lint:pretty": "pretty-quick --staged",
26
- "lint": "pnpm lint:eslint && pnpm lint:prettier && pnpm lint:stylelint",
27
- "preinstall": "npx only-allow pnpm"
28
- },
29
- "browserslist": [
30
- "> 1%",
31
- "not ie 11",
32
- "not op_mini all"
33
- ],
34
- "dependencies": {
35
- "@microsoft/fetch-event-source": "^2.0.1",
36
- "@pureadmin/utils": "1.8.5",
37
- "@vueuse/core": "^9.13.0",
38
- "axios": "1.2.0",
39
- "dayjs": "1.11.6",
40
- "dompurify": "^3.0.10",
41
- "element-plus": "2.2.27",
42
- "highlight.js": "^11.9.0",
43
- "marked": "^12.0.1",
44
- "path": "0.12.7",
45
- "pinia": "2.0.28",
46
- "pinyin-match": "1.2.4",
47
- "qs": "6.11.0"
48
- },
49
- "devDependencies": {
50
- "@babel/core": ">=7.0.0-0 <8.0.0",
51
- "@commitlint/cli": "13.1.0",
52
- "@commitlint/config-conventional": "13.1.0",
53
- "@iconify-icons/ep": "1.2.7",
54
- "@iconify-icons/ph": "^1.2.5",
55
- "@iconify-icons/ri": "1.2.3",
56
- "@iconify/vue": "4.0.0",
57
- "@types/node": "18.11.9",
58
- "@types/qs": "6.9.7",
59
- "@typescript-eslint/eslint-plugin": "5.42.1",
60
- "@typescript-eslint/parser": "5.42.1",
61
- "@vitejs/plugin-vue": "4.0.0",
62
- "@vitejs/plugin-vue-jsx": "3.0.0",
63
- "@vue/eslint-config-prettier": "7.0.0",
64
- "@vue/eslint-config-typescript": "11.0.2",
65
- "autoprefixer": "10.4.13",
66
- "cloc": "2.10.0",
67
- "cssnano": "5.1.14",
68
- "eslint": "8.8.0",
69
- "eslint-plugin-prettier": "4.0.0",
70
- "eslint-plugin-vue": "9.7.0",
71
- "husky": "7.0.4",
72
- "lint-staged": "11.1.2",
73
- "picocolors": "1.0.0",
74
- "postcss": "8.4.18",
75
- "postcss-html": "1.5.0",
76
- "postcss-import": "15.0.0",
77
- "postcss-scss": "4.0.5",
78
- "prettier": "2.5.1",
79
- "pretty-quick": "3.1.1",
80
- "rimraf": "3.0.2",
81
- "rollup-plugin-visualizer": "5.8.3",
82
- "sass": "^1.72.0",
83
- "sass-loader": "^14.1.1",
84
- "stylelint": "^14.16.1",
85
- "stylelint-config-html": "^1.1.0",
86
- "stylelint-config-prettier": "^9.0.5",
87
- "stylelint-config-recommended": "^9.0.0",
88
- "stylelint-config-standard": "^29.0.0",
89
- "stylelint-order": "^5.0.0",
90
- "svgo": "3.0.2",
91
- "tailwindcss": "3.2.4",
92
- "terser": "5.16.1",
93
- "typescript": "4.9.3",
94
- "unplugin-vue-define-options": "0.12.2",
95
- "vite": "4.0.3",
96
- "vite-plugin-cdn-import": "0.3.5",
97
- "vite-plugin-compression": "0.5.1",
98
- "vite-plugin-dts": "1.4.1",
99
- "vite-plugin-remove-console": "1.3.0",
100
- "vite-svg-loader": "3.6.0",
101
- "vue": "3.2.45",
102
- "vue-eslint-parser": "9.1.0",
103
- "vue-tsc": "1.0.9",
104
- "webpack": "^5.0.0"
105
- },
106
- "publishConfig": {
107
- "access": "public",
108
- "registry": "https://registry.npmjs.org/"
109
- },
110
- "pnpm": {
111
- "peerDependencyRules": {
112
- "ignoreMissing": [
113
- "rollup",
114
- "webpack"
115
- ]
116
- }
117
- },
118
- "volta": {
119
- "node": "16.13.1"
120
- },
121
- "author": "lyn",
122
- "license": "MIT"
123
- }
1
+ {
2
+ "name": "@kg-ui/kg-ui-plus",
3
+ "version": "0.1.33",
4
+ "description": "A Component Library for Vue 3",
5
+ "private": false,
6
+ "main": "dist/es/index.mjs",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "dev": "NODE_OPTIONS=--max-old-space-size=4096 vite",
12
+ "serve": "pnpm dev",
13
+ "build": "rimraf dist && NODE_OPTIONS=--max-old-space-size=8192 vite build",
14
+ "report": "rimraf dist && vite build",
15
+ "preview": "vite preview",
16
+ "preview:build": "pnpm build && vite preview",
17
+ "typecheck": "tsc --noEmit && vue-tsc --noEmit --skipLibCheck",
18
+ "svgo": "svgo -f src/assets/svg -o src/assets/svg",
19
+ "cloc": "NODE_OPTIONS=--max-old-space-size=4096 cloc . --exclude-dir=node_modules --exclude-lang=YAML",
20
+ "clean:cache": "rm -rf node_modules && rm -rf .eslintcache && pnpm install",
21
+ "lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock,build}/**/*.{vue,js,ts,tsx}\" --fix",
22
+ "lint:prettier": "prettier --write \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
23
+ "lint:stylelint": "stylelint --cache --fix \"**/*.{vue,css,scss,postcss,less}\" --cache --cache-location node_modules/.cache/stylelint/",
24
+ "lint:lint-staged": "lint-staged -c ./.husky/lintstagedrc.js",
25
+ "lint:pretty": "pretty-quick --staged",
26
+ "lint": "pnpm lint:eslint && pnpm lint:prettier && pnpm lint:stylelint",
27
+ "preinstall": "npx only-allow pnpm"
28
+ },
29
+ "browserslist": [
30
+ "> 1%",
31
+ "not ie 11",
32
+ "not op_mini all"
33
+ ],
34
+ "dependencies": {
35
+ "@microsoft/fetch-event-source": "^2.0.1",
36
+ "@pureadmin/utils": "1.8.5",
37
+ "@vueuse/core": "^9.13.0",
38
+ "axios": "1.2.0",
39
+ "dayjs": "1.11.6",
40
+ "docx-preview": "^0.3.3",
41
+ "dompurify": "^3.0.10",
42
+ "element-plus": "2.2.27",
43
+ "highlight.js": "^11.9.0",
44
+ "marked": "^12.0.1",
45
+ "path": "0.12.7",
46
+ "pinia": "2.0.28",
47
+ "pinyin-match": "1.2.4",
48
+ "qs": "6.11.0"
49
+ },
50
+ "devDependencies": {
51
+ "@babel/core": ">=7.0.0-0 <8.0.0",
52
+ "@commitlint/cli": "13.1.0",
53
+ "@commitlint/config-conventional": "13.1.0",
54
+ "@iconify-icons/ep": "1.2.12",
55
+ "@iconify-icons/ph": "^1.2.5",
56
+ "@iconify-icons/ri": "1.2.3",
57
+ "@iconify/vue": "4.0.0",
58
+ "@types/node": "18.11.9",
59
+ "@types/qs": "6.9.7",
60
+ "@typescript-eslint/eslint-plugin": "5.42.1",
61
+ "@typescript-eslint/parser": "5.42.1",
62
+ "@vitejs/plugin-vue": "4.0.0",
63
+ "@vitejs/plugin-vue-jsx": "3.0.0",
64
+ "@vue/eslint-config-prettier": "7.0.0",
65
+ "@vue/eslint-config-typescript": "11.0.2",
66
+ "autoprefixer": "10.4.13",
67
+ "cloc": "2.10.0",
68
+ "cssnano": "5.1.14",
69
+ "eslint": "8.8.0",
70
+ "eslint-plugin-prettier": "4.0.0",
71
+ "eslint-plugin-vue": "9.7.0",
72
+ "husky": "7.0.4",
73
+ "lint-staged": "11.1.2",
74
+ "picocolors": "1.0.0",
75
+ "postcss": "8.4.18",
76
+ "postcss-html": "1.5.0",
77
+ "postcss-import": "15.0.0",
78
+ "postcss-scss": "4.0.5",
79
+ "prettier": "2.5.1",
80
+ "pretty-quick": "3.1.1",
81
+ "rimraf": "3.0.2",
82
+ "rollup-plugin-visualizer": "5.8.3",
83
+ "sass": "^1.72.0",
84
+ "sass-loader": "^14.1.1",
85
+ "stylelint": "^14.16.1",
86
+ "stylelint-config-html": "^1.1.0",
87
+ "stylelint-config-prettier": "^9.0.5",
88
+ "stylelint-config-recommended": "^9.0.0",
89
+ "stylelint-config-standard": "^29.0.0",
90
+ "stylelint-order": "^5.0.0",
91
+ "svgo": "3.0.2",
92
+ "tailwindcss": "3.2.4",
93
+ "terser": "5.16.1",
94
+ "typescript": "4.9.3",
95
+ "unplugin-vue-define-options": "0.12.2",
96
+ "vite": "4.0.3",
97
+ "vite-plugin-cdn-import": "0.3.5",
98
+ "vite-plugin-compression": "0.5.1",
99
+ "vite-plugin-dts": "1.4.1",
100
+ "vite-plugin-remove-console": "1.3.0",
101
+ "vite-svg-loader": "3.6.0",
102
+ "vue": "3.2.45",
103
+ "vue-eslint-parser": "9.1.0",
104
+ "vue-tsc": "1.0.9",
105
+ "webpack": "^5.0.0"
106
+ },
107
+ "publishConfig": {
108
+ "access": "public",
109
+ "registry": "https://registry.npmjs.org/"
110
+ },
111
+ "pnpm": {
112
+ "peerDependencyRules": {
113
+ "ignoreMissing": [
114
+ "rollup",
115
+ "webpack"
116
+ ]
117
+ }
118
+ },
119
+ "volta": {
120
+ "node": "16.13.1"
121
+ },
122
+ "author": "lyn",
123
+ "license": "MIT"
124
+ }
@@ -1,13 +0,0 @@
1
- var callBindExports = {};
2
- var callBind = {
3
- get exports() {
4
- return callBindExports;
5
- },
6
- set exports(v) {
7
- callBindExports = v;
8
- }
9
- };
10
- export {
11
- callBind as __module,
12
- callBindExports as exports
13
- };
@@ -1,16 +0,0 @@
1
- import getIntrinsic from "../../../get-intrinsic@1.2.4/node_modules/get-intrinsic/index.mjs";
2
- import "./index.mjs";
3
- import { exports as callBindExports } from "../../../../../_virtual/index.mjs";
4
- var GetIntrinsic = getIntrinsic;
5
- var callBind = callBindExports;
6
- var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
7
- var callBound = function callBoundIntrinsic(name, allowMissing) {
8
- var intrinsic = GetIntrinsic(name, !!allowMissing);
9
- if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
10
- return callBind(intrinsic);
11
- }
12
- return intrinsic;
13
- };
14
- export {
15
- callBound as default
16
- };
@@ -1,36 +0,0 @@
1
- import { __module as callBind } from "../../../../../_virtual/index.mjs";
2
- import functionBind from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
3
- import getIntrinsic from "../../../get-intrinsic@1.2.4/node_modules/get-intrinsic/index.mjs";
4
- import setFunctionLength from "../../../set-function-length@1.2.2/node_modules/set-function-length/index.mjs";
5
- import type from "../../../es-errors@1.3.0/node_modules/es-errors/type.mjs";
6
- import { __require as requireEsDefineProperty } from "../../../es-define-property@1.0.0/node_modules/es-define-property/index.mjs";
7
- (function(module) {
8
- var bind = functionBind;
9
- var GetIntrinsic = getIntrinsic;
10
- var setFunctionLength$1 = setFunctionLength;
11
- var $TypeError = type;
12
- var $apply = GetIntrinsic("%Function.prototype.apply%");
13
- var $call = GetIntrinsic("%Function.prototype.call%");
14
- var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
15
- var $defineProperty = requireEsDefineProperty();
16
- var $max = GetIntrinsic("%Math.max%");
17
- module.exports = function callBind2(originalFunction) {
18
- if (typeof originalFunction !== "function") {
19
- throw new $TypeError("a function is required");
20
- }
21
- var func = $reflectApply(bind, $call, arguments);
22
- return setFunctionLength$1(
23
- func,
24
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
25
- true
26
- );
27
- };
28
- var applyBind = function applyBind2() {
29
- return $reflectApply(bind, $apply, arguments);
30
- };
31
- if ($defineProperty) {
32
- $defineProperty(module.exports, "apply", { value: applyBind });
33
- } else {
34
- module.exports.apply = applyBind;
35
- }
36
- })(callBind);
@@ -1,48 +0,0 @@
1
- import { __require as requireEsDefineProperty } from "../../../es-define-property@1.0.0/node_modules/es-define-property/index.mjs";
2
- import syntax from "../../../es-errors@1.3.0/node_modules/es-errors/syntax.mjs";
3
- import type from "../../../es-errors@1.3.0/node_modules/es-errors/type.mjs";
4
- import gopd$1 from "../../../gopd@1.0.1/node_modules/gopd/index.mjs";
5
- var $defineProperty = requireEsDefineProperty();
6
- var $SyntaxError = syntax;
7
- var $TypeError = type;
8
- var gopd = gopd$1;
9
- var defineDataProperty = function defineDataProperty2(obj, property, value) {
10
- if (!obj || typeof obj !== "object" && typeof obj !== "function") {
11
- throw new $TypeError("`obj` must be an object or a function`");
12
- }
13
- if (typeof property !== "string" && typeof property !== "symbol") {
14
- throw new $TypeError("`property` must be a string or a symbol`");
15
- }
16
- if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
17
- throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
18
- }
19
- if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
20
- throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
21
- }
22
- if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
23
- throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
24
- }
25
- if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
26
- throw new $TypeError("`loose`, if provided, must be a boolean");
27
- }
28
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
29
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
30
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
31
- var loose = arguments.length > 6 ? arguments[6] : false;
32
- var desc = !!gopd && gopd(obj, property);
33
- if ($defineProperty) {
34
- $defineProperty(obj, property, {
35
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
36
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
37
- value,
38
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
39
- });
40
- } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
41
- obj[property] = value;
42
- } else {
43
- throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
44
- }
45
- };
46
- export {
47
- defineDataProperty as default
48
- };
@@ -1,22 +0,0 @@
1
- import getIntrinsic from "../../../get-intrinsic@1.2.4/node_modules/get-intrinsic/index.mjs";
2
- var esDefineProperty;
3
- var hasRequiredEsDefineProperty;
4
- function requireEsDefineProperty() {
5
- if (hasRequiredEsDefineProperty)
6
- return esDefineProperty;
7
- hasRequiredEsDefineProperty = 1;
8
- var GetIntrinsic = getIntrinsic;
9
- var $defineProperty = GetIntrinsic("%Object.defineProperty%", true) || false;
10
- if ($defineProperty) {
11
- try {
12
- $defineProperty({}, "a", { value: 1 });
13
- } catch (e) {
14
- $defineProperty = false;
15
- }
16
- }
17
- esDefineProperty = $defineProperty;
18
- return esDefineProperty;
19
- }
20
- export {
21
- requireEsDefineProperty as __require
22
- };
@@ -1,14 +0,0 @@
1
- import getIntrinsic from "../../../get-intrinsic@1.2.4/node_modules/get-intrinsic/index.mjs";
2
- var GetIntrinsic = getIntrinsic;
3
- var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
4
- if ($gOPD) {
5
- try {
6
- $gOPD([], "length");
7
- } catch (e) {
8
- $gOPD = null;
9
- }
10
- }
11
- var gopd = $gOPD;
12
- export {
13
- gopd as default
14
- };
@@ -1,19 +0,0 @@
1
- import { __require as requireEsDefineProperty } from "../../../es-define-property@1.0.0/node_modules/es-define-property/index.mjs";
2
- var $defineProperty = requireEsDefineProperty();
3
- var hasPropertyDescriptors = function hasPropertyDescriptors2() {
4
- return !!$defineProperty;
5
- };
6
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
7
- if (!$defineProperty) {
8
- return null;
9
- }
10
- try {
11
- return $defineProperty([], "length", { value: 1 }).length !== 1;
12
- } catch (e) {
13
- return true;
14
- }
15
- };
16
- var hasPropertyDescriptors_1 = hasPropertyDescriptors;
17
- export {
18
- hasPropertyDescriptors_1 as default
19
- };
@@ -1,11 +0,0 @@
1
- var test = {
2
- __proto__: null,
3
- foo: {}
4
- };
5
- var $Object = Object;
6
- var hasProto = function hasProto2() {
7
- return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
8
- };
9
- export {
10
- hasProto as default
11
- };
@@ -1,21 +0,0 @@
1
- import shams from "./shams.mjs";
2
- var origSymbol = typeof Symbol !== "undefined" && Symbol;
3
- var hasSymbolSham = shams;
4
- var hasSymbols = function hasNativeSymbols() {
5
- if (typeof origSymbol !== "function") {
6
- return false;
7
- }
8
- if (typeof Symbol !== "function") {
9
- return false;
10
- }
11
- if (typeof origSymbol("foo") !== "symbol") {
12
- return false;
13
- }
14
- if (typeof Symbol("bar") !== "symbol") {
15
- return false;
16
- }
17
- return hasSymbolSham();
18
- };
19
- export {
20
- hasSymbols as default
21
- };
@@ -1,48 +0,0 @@
1
- var shams = function hasSymbols() {
2
- if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
3
- return false;
4
- }
5
- if (typeof Symbol.iterator === "symbol") {
6
- return true;
7
- }
8
- var obj = {};
9
- var sym = Symbol("test");
10
- var symObj = Object(sym);
11
- if (typeof sym === "string") {
12
- return false;
13
- }
14
- if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
15
- return false;
16
- }
17
- if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
18
- return false;
19
- }
20
- var symVal = 42;
21
- obj[sym] = symVal;
22
- for (sym in obj) {
23
- return false;
24
- }
25
- if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
26
- return false;
27
- }
28
- if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
29
- return false;
30
- }
31
- var syms = Object.getOwnPropertySymbols(obj);
32
- if (syms.length !== 1 || syms[0] !== sym) {
33
- return false;
34
- }
35
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
36
- return false;
37
- }
38
- if (typeof Object.getOwnPropertyDescriptor === "function") {
39
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
40
- if (descriptor.value !== symVal || descriptor.enumerable !== true) {
41
- return false;
42
- }
43
- }
44
- return true;
45
- };
46
- export {
47
- shams as default
48
- };
@@ -1,54 +0,0 @@
1
- import getIntrinsic from "../../../get-intrinsic@1.2.4/node_modules/get-intrinsic/index.mjs";
2
- import defineDataProperty from "../../../define-data-property@1.1.4/node_modules/define-data-property/index.mjs";
3
- import hasPropertyDescriptors_1 from "../../../has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.mjs";
4
- import gopd from "../../../gopd@1.0.1/node_modules/gopd/index.mjs";
5
- import type from "../../../es-errors@1.3.0/node_modules/es-errors/type.mjs";
6
- var GetIntrinsic = getIntrinsic;
7
- var define = defineDataProperty;
8
- var hasDescriptors = hasPropertyDescriptors_1();
9
- var gOPD = gopd;
10
- var $TypeError = type;
11
- var $floor = GetIntrinsic("%Math.floor%");
12
- var setFunctionLength = function setFunctionLength2(fn, length) {
13
- if (typeof fn !== "function") {
14
- throw new $TypeError("`fn` is not a function");
15
- }
16
- if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) {
17
- throw new $TypeError("`length` must be a positive 32-bit integer");
18
- }
19
- var loose = arguments.length > 2 && !!arguments[2];
20
- var functionLengthIsConfigurable = true;
21
- var functionLengthIsWritable = true;
22
- if ("length" in fn && gOPD) {
23
- var desc = gOPD(fn, "length");
24
- if (desc && !desc.configurable) {
25
- functionLengthIsConfigurable = false;
26
- }
27
- if (desc && !desc.writable) {
28
- functionLengthIsWritable = false;
29
- }
30
- }
31
- if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
32
- if (hasDescriptors) {
33
- define(
34
- /** @type {Parameters<define>[0]} */
35
- fn,
36
- "length",
37
- length,
38
- true,
39
- true
40
- );
41
- } else {
42
- define(
43
- /** @type {Parameters<define>[0]} */
44
- fn,
45
- "length",
46
- length
47
- );
48
- }
49
- }
50
- return fn;
51
- };
52
- export {
53
- setFunctionLength as default
54
- };