@blueking/ai-ui-sdk 0.1.12-beta.33 → 0.1.12-beta.35

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 (82) hide show
  1. package/dist/components/render-aside/index.vue.css +9 -9
  2. package/dist/components/render-aside/index.vue.js +1 -1
  3. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  4. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  5. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  6. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  7. package/dist/components/render-checkbox/index.vue.css +9 -9
  8. package/dist/components/render-checkbox/index.vue.js +1 -1
  9. package/dist/components/render-choose-tag/index.vue.css +7 -7
  10. package/dist/components/render-choose-tag/index.vue.js +1 -1
  11. package/dist/components/render-collapse/index.vue.css +2 -2
  12. package/dist/components/render-collapse/index.vue.js +1 -1
  13. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  14. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  15. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  16. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  17. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  18. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  19. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  20. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  21. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  22. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  23. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  24. package/dist/components/render-dataset/components/plus-dataset-data/form/api.script.vue.js.js +137 -0
  25. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +13 -0
  26. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.d.ts +8 -0
  27. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +5 -0
  28. package/dist/components/render-dataset/components/plus-dataset-data/form/category.script.vue.js.js +10 -1
  29. package/dist/components/render-dataset/components/plus-dataset-data/form/category.vue.d.ts +1 -0
  30. package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.script.vue.js.js +9 -4
  31. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  32. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  33. package/dist/components/render-dataset/components/plus-dataset-data/form/index.script.vue.js.js +28 -14
  34. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  35. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  36. package/dist/components/render-dataset/components/plus-dataset-data/form/manual.script.vue.js.js +3 -1
  37. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  38. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  39. package/dist/components/render-dataset/components/source-type-icon/index.script.vue.js.js +3 -0
  40. package/dist/components/render-dataset/index.vue.css +1 -1
  41. package/dist/components/render-dataset/index.vue.js +1 -1
  42. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  43. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  44. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  45. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  46. package/dist/components/render-dataset-list/components/table.script.vue.js.js +3 -15
  47. package/dist/components/render-expand-collapse/index.vue.css +3 -3
  48. package/dist/components/render-expand-collapse/index.vue.js +1 -1
  49. package/dist/components/render-file-card/index.vue.css +11 -11
  50. package/dist/components/render-file-card/index.vue.js +1 -1
  51. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  52. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  53. package/dist/components/render-header/index.vue.css +5 -5
  54. package/dist/components/render-header/index.vue.js +1 -1
  55. package/dist/components/render-markdown/mark-down-code.d.ts +2 -0
  56. package/dist/components/render-markdown/mark-down-code.ts.js +171 -0
  57. package/dist/components/render-markdown/mark-down-emoji.d.ts +2 -0
  58. package/dist/components/render-markdown/mark-down-emoji.ts.js +4 -0
  59. package/dist/components/render-markdown/mark-down.d.ts +49 -0
  60. package/dist/components/render-markdown/mark-down.postcss.css +148 -0
  61. package/dist/components/render-markdown/mark-down.ts.js +145 -0
  62. package/dist/components/render-router-tab/index.vue.css +3 -3
  63. package/dist/components/render-router-tab/index.vue.js +1 -1
  64. package/dist/components.d.ts +2 -1
  65. package/dist/components.ts.js +2 -1
  66. package/dist/css/fonts/iconcool.eot +0 -0
  67. package/dist/css/fonts/iconcool.svg +3 -0
  68. package/dist/css/fonts/iconcool.ttf +0 -0
  69. package/dist/css/fonts/iconcool.woff +0 -0
  70. package/dist/css/iconcool.js +2 -2
  71. package/dist/css/style.css +3 -0
  72. package/dist/hooks/use-chat.d.ts +4 -4
  73. package/dist/hooks/use-dataset-http.d.ts +1 -0
  74. package/dist/hooks/use-dataset-http.ts.js +8 -1
  75. package/dist/http/helper/dataset.d.ts +7 -1
  76. package/dist/http/helper/dataset.ts.js +16 -0
  77. package/dist/http/helper/knowledge.ts.js +2 -2
  78. package/dist/types/dataset.d.ts +20 -0
  79. package/dist/types/enum.d.ts +4 -0
  80. package/dist/types/enum.ts.js +5 -0
  81. package/dist/types/knowledge.d.ts +3 -3
  82. package/package.json +4 -2
@@ -1,12 +1,12 @@
1
1
 
2
- .aside-home[data-v-uptrn4st] {
2
+ .aside-home[data-v-p8z1j0dw] {
3
3
  width: 300px;
4
4
  height: 100%;
5
5
  background: #FFFFFF;
6
6
  padding: 16px;
7
7
  border-right: 1px solid #eaebf0;
8
8
  }
9
- [data-v-uptrn4st] .aside-item {
9
+ [data-v-p8z1j0dw] .aside-item {
10
10
  width: 268px;
11
11
  line-height: 36px;
12
12
  border-radius: 2px;
@@ -16,30 +16,30 @@
16
16
  justify-content: space-between;
17
17
  color: #979BA5;
18
18
  }
19
- [data-v-uptrn4st] .aside-item.is-tab {
19
+ [data-v-p8z1j0dw] .aside-item.is-tab {
20
20
  background: #F5F7FA;
21
21
  cursor: pointer;
22
22
  color: #4D4F56;
23
23
  }
24
- [data-v-uptrn4st] .aside-item.is-tab:hover {
24
+ [data-v-p8z1j0dw] .aside-item.is-tab:hover {
25
25
  background: #F0F5FF;
26
26
  }
27
- [data-v-uptrn4st] .aside-item.active {
27
+ [data-v-p8z1j0dw] .aside-item.active {
28
28
  background: #F0F5FF;
29
29
  color: #3A84FF;
30
30
  font-weight: 700;
31
31
  }
32
- [data-v-uptrn4st] .aside-item.active .tab-num {
32
+ [data-v-p8z1j0dw] .aside-item.active .tab-num {
33
33
  background: #3A84FF;
34
34
  color: #fff;
35
35
  }
36
- [data-v-uptrn4st] .aside-item.active .active-text {
36
+ [data-v-p8z1j0dw] .aside-item.active .active-text {
37
37
  color: #3A84FF;
38
38
  }
39
- [data-v-uptrn4st] .aside-item .tab-name {
39
+ [data-v-p8z1j0dw] .aside-item .tab-name {
40
40
  flex: 1;
41
41
  }
42
- [data-v-uptrn4st] .aside-item .tab-num {
42
+ [data-v-p8z1j0dw] .aside-item .tab-num {
43
43
  background: #EAEBF0;
44
44
  border-radius: 2px;
45
45
  margin-left: 5px;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-uptrn4st";
2
+ script.__scopeId = "data-v-p8z1j0dw";
3
3
  script.__file = "./src/components/render-aside/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,40 +1,40 @@
1
1
 
2
- .send-container[data-v-lp02jgyc] {
2
+ .send-container[data-v-q3cck4fp] {
3
3
  position: relative;
4
4
  }
5
- .send-container[data-v-lp02jgyc]:has(textarea:focus) {
5
+ .send-container[data-v-q3cck4fp]:has(textarea:focus) {
6
6
  z-index: 2;
7
7
  }
8
- .send-container:hover .send-clear[data-v-lp02jgyc] {
8
+ .send-container:hover .send-clear[data-v-q3cck4fp] {
9
9
  display: inline-flex !important;
10
10
  }
11
- .send-input[data-v-lp02jgyc] {
11
+ .send-input[data-v-q3cck4fp] {
12
12
  width: 100%;
13
13
  flex-direction: row;
14
14
  height: var(--origin-height);
15
15
  }
16
- .send-input[data-v-lp02jgyc]:has(textarea:focus) {
16
+ .send-input[data-v-q3cck4fp]:has(textarea:focus) {
17
17
  height: var(--text-height);
18
18
  }
19
- .send-input[data-v-lp02jgyc] textarea {
19
+ .send-input[data-v-q3cck4fp] textarea {
20
20
  font-size: 12px;
21
21
  line-height: 16px;
22
22
  padding: 7px;
23
23
  resize: none !important;
24
24
  }
25
- .send-input[data-v-lp02jgyc] textarea::-webkit-scrollbar {
25
+ .send-input[data-v-q3cck4fp] textarea::-webkit-scrollbar {
26
26
  width: 4px;
27
27
  height: 4px;
28
28
  }
29
- .send-input[data-v-lp02jgyc] textarea::-webkit-scrollbar-thumb {
29
+ .send-input[data-v-q3cck4fp] textarea::-webkit-scrollbar-thumb {
30
30
  height: 5px;
31
31
  border-radius: 3px;
32
32
  background-color: #dcdee5;
33
33
  }
34
- .send-input[data-v-lp02jgyc] textarea::placeholder {
34
+ .send-input[data-v-q3cck4fp] textarea::placeholder {
35
35
  line-height: 16px;
36
36
  }
37
- .send-clear[data-v-lp02jgyc] {
37
+ .send-clear[data-v-q3cck4fp] {
38
38
  display: none !important;
39
39
  position: absolute;
40
40
  right: 10px;
@@ -43,6 +43,6 @@
43
43
  font-size: 14px;
44
44
  cursor: pointer;
45
45
  }
46
- .send-clear[data-v-lp02jgyc]:hover {
46
+ .send-clear[data-v-q3cck4fp]:hover {
47
47
  color: #313238;
48
48
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-lp02jgyc";
2
+ script.__scopeId = "data-v-q3cck4fp";
3
3
  script.__file = "./src/components/render-auto-height-textarea/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,11 +1,11 @@
1
1
 
2
- .auto-refresh[data-v-t8ichz51] {
2
+ .auto-refresh[data-v-sj25j41x] {
3
3
  position: relative;
4
4
  cursor: pointer;
5
5
  line-height: 26px;
6
6
  padding: 0 4px;
7
7
  }
8
- .auto-refresh[data-v-t8ichz51]:after {
8
+ .auto-refresh[data-v-sj25j41x]:after {
9
9
  content: '';
10
10
  position: absolute;
11
11
  top: 5px;
@@ -15,31 +15,31 @@
15
15
  background-color: #dcdee5;
16
16
  z-index: 1;
17
17
  }
18
- .auto-refresh[data-v-t8ichz51]:hover {
18
+ .auto-refresh[data-v-sj25j41x]:hover {
19
19
  color: #3A84FF;
20
20
  background-color: #E1ECFF;
21
21
  }
22
- .refresh[data-v-t8ichz51] {
22
+ .refresh[data-v-sj25j41x] {
23
23
  cursor: pointer;
24
24
  line-height: 26px;
25
25
  padding: 0 4px;
26
26
  }
27
- .refresh[data-v-t8ichz51]:hover {
27
+ .refresh[data-v-sj25j41x]:hover {
28
28
  color: #3A84FF;
29
29
  background-color: #E1ECFF;
30
30
  }
31
- .textarea-list[data-v-t8ichz51] {
31
+ .textarea-list[data-v-sj25j41x] {
32
32
  padding: 4px 0;
33
33
  line-height: 32px;
34
34
  max-height: 300px;
35
35
  position: relative;
36
36
  z-index: 2;
37
37
  }
38
- .textarea-list .textarea-item[data-v-t8ichz51] {
38
+ .textarea-list .textarea-item[data-v-sj25j41x] {
39
39
  padding: 0 12px;
40
40
  cursor: pointer;
41
41
  }
42
- .textarea-list .textarea-item[data-v-t8ichz51]:hover {
42
+ .textarea-list .textarea-item[data-v-sj25j41x]:hover {
43
43
  background: #E1ECFF;
44
44
  color: #3A84FF;
45
45
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-t8ichz51";
2
+ script.__scopeId = "data-v-sj25j41x";
3
3
  script.__file = "./src/components/render-auto-refresh/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .checkbox[data-v-1zd2r8bu] {
2
+ .checkbox[data-v-ubureru3] {
3
3
  position: relative;
4
4
  display: inline-block;
5
5
  width: 16px;
@@ -8,27 +8,27 @@
8
8
  border-radius: 2px;
9
9
  cursor: pointer;
10
10
  }
11
- .checkbox.disabled[data-v-1zd2r8bu] {
11
+ .checkbox.disabled[data-v-ubureru3] {
12
12
  cursor: not-allowed;
13
13
  background: #fafbfd;
14
14
  border-color: #dcdee5;
15
15
  }
16
- .checkbox.disabled.checked[data-v-1zd2r8bu] {
16
+ .checkbox.disabled.checked[data-v-ubureru3] {
17
17
  background-color: #a3c5fd;
18
18
  border-color: #a3c5fd;
19
19
  }
20
- .checkbox.disabled.indeterminate[data-v-1zd2r8bu] {
20
+ .checkbox.disabled.indeterminate[data-v-ubureru3] {
21
21
  background-color: #fafbfd;
22
22
  border-color: #dcdee5;
23
23
  }
24
- .checkbox.disabled.indeterminate[data-v-1zd2r8bu]:after {
24
+ .checkbox.disabled.indeterminate[data-v-ubureru3]:after {
25
25
  background: #dcdee5;
26
26
  }
27
- .checkbox.checked[data-v-1zd2r8bu] {
27
+ .checkbox.checked[data-v-ubureru3] {
28
28
  background-color: #3a84ff;
29
29
  border: 1px solid #3a84ff;
30
30
  }
31
- .checkbox.checked[data-v-1zd2r8bu]:after {
31
+ .checkbox.checked[data-v-ubureru3]:after {
32
32
  position: absolute;
33
33
  top: 50%;
34
34
  left: 50%;
@@ -41,11 +41,11 @@
41
41
  transform: translate(-50%, -60%) rotate(45deg);
42
42
  transform-origin: center;
43
43
  }
44
- .checkbox.indeterminate[data-v-1zd2r8bu] {
44
+ .checkbox.indeterminate[data-v-ubureru3] {
45
45
  background-color: #3a84ff;
46
46
  border: 1px solid #3a84ff;
47
47
  }
48
- .checkbox.indeterminate[data-v-1zd2r8bu]:after {
48
+ .checkbox.indeterminate[data-v-ubureru3]:after {
49
49
  position: absolute;
50
50
  top: 50%;
51
51
  left: 50%;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-1zd2r8bu";
2
+ script.__scopeId = "data-v-ubureru3";
3
3
  script.__file = "./src/components/render-checkbox/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,29 +1,29 @@
1
1
 
2
- .plus-tag-input[data-v-bh20vg20] {
2
+ .plus-tag-input[data-v-nimiykf4] {
3
3
  padding: 7px 12px;
4
4
  height: 40px;
5
5
  background: #FAFBFD;
6
6
  border-top: 1px solid #DCDEE5;
7
7
  }
8
- .plus-tag-input .plus-tag-done[data-v-bh20vg20] {
8
+ .plus-tag-input .plus-tag-done[data-v-nimiykf4] {
9
9
  cursor: pointer;
10
10
  font-size: 22px;
11
11
  color: #2DCB56;
12
12
  margin: 0 5px 0 10px;
13
13
  }
14
- .plus-tag-input .plus-tag-error[data-v-bh20vg20] {
14
+ .plus-tag-input .plus-tag-error[data-v-nimiykf4] {
15
15
  cursor: pointer;
16
16
  font-size: 16px;
17
17
  color: #C4C6CC;
18
18
  margin-right: 5px;
19
19
  }
20
- .plus-tag-input .plus-tag-form[data-v-bh20vg20] {
20
+ .plus-tag-input .plus-tag-form[data-v-nimiykf4] {
21
21
  flex: 1;
22
22
  }
23
- .plus-tag-input .plus-tag-form-item[data-v-bh20vg20] {
23
+ .plus-tag-input .plus-tag-form-item[data-v-nimiykf4] {
24
24
  margin-bottom: 0;
25
25
  }
26
- .plus-tag[data-v-bh20vg20] {
26
+ .plus-tag[data-v-nimiykf4] {
27
27
  cursor: pointer;
28
28
  width: 100%;
29
29
  height: 40px;
@@ -36,7 +36,7 @@
36
36
  font-size: 12px;
37
37
  line-height: 20px;
38
38
  }
39
- .plus-tag[data-v-bh20vg20]:hover {
39
+ .plus-tag[data-v-nimiykf4]:hover {
40
40
  color: #3A84FF;
41
41
  }
42
42
 
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-bh20vg20";
2
+ script.__scopeId = "data-v-nimiykf4";
3
3
  script.__file = "./src/components/render-choose-tag/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,10 +1,10 @@
1
1
 
2
- .collapse-title[data-v-me4j11fq] {
2
+ .collapse-title[data-v-1bpwds7j] {
3
3
  height: 28px;
4
4
  background: #F0F1F5;
5
5
  border-radius: 2px;
6
6
  padding: 0 12px;
7
7
  }
8
- .collapse-title .is-hidden[data-v-me4j11fq] {
8
+ .collapse-title .is-hidden[data-v-1bpwds7j] {
9
9
  transform: rotate(-90deg);
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-me4j11fq";
2
+ script.__scopeId = "data-v-1bpwds7j";
3
3
  script.__file = "./src/components/render-collapse/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -39,7 +39,7 @@ export default /*@__PURE__*/ _defineComponent({
39
39
  }
40
40
  ]
41
41
  ]),
42
- _cache[1] || (_cache[1] = _createStaticVNode("<span class=\"click-full-screen g-cursor-pointer g-flex-row\" data-v-qkyyhnqb><i class=\"ai-ui-sdk-icon ai-ui-sdk-full-screen click-full-screen g-text-14 g-ml-24 g-mr-2\" data-v-qkyyhnqb></i><span class=\"g-text-12 click-full-screen\" data-v-qkyyhnqb>全屏</span></span><span class=\"click-un-full-screen g-cursor-pointer g-flex-row\" data-v-qkyyhnqb><i class=\"ai-ui-sdk-icon ai-ui-sdk-un-full-screen click-un-full-screen g-text-14 g-ml-24 g-mr-2\" data-v-qkyyhnqb></i><span class=\"g-text-12 click-un-full-screen\" data-v-qkyyhnqb>取消全屏</span></span>", 2))
42
+ _cache[1] || (_cache[1] = _createStaticVNode("<span class=\"click-full-screen g-cursor-pointer g-flex-row\" data-v-i25acsmh><i class=\"ai-ui-sdk-icon ai-ui-sdk-full-screen click-full-screen g-text-14 g-ml-24 g-mr-2\" data-v-i25acsmh></i><span class=\"g-text-12 click-full-screen\" data-v-i25acsmh>全屏</span></span><span class=\"click-un-full-screen g-cursor-pointer g-flex-row\" data-v-i25acsmh><i class=\"ai-ui-sdk-icon ai-ui-sdk-un-full-screen click-un-full-screen g-text-14 g-ml-24 g-mr-2\" data-v-i25acsmh></i><span class=\"g-text-12 click-un-full-screen\" data-v-i25acsmh>取消全屏</span></span>", 2))
43
43
  ]);
44
44
  };
45
45
  }
@@ -1,15 +1,15 @@
1
1
 
2
- .content[data-v-aw2fca6u] {
2
+ .content[data-v-mj7webm5] {
3
3
  padding: 18px 24px 0;
4
4
  height: 100%;
5
5
  overflow: auto;
6
6
  }
7
- .data-set-edit-slider .value-content[data-v-aw2fca6u] {
7
+ .data-set-edit-slider .value-content[data-v-mj7webm5] {
8
8
  padding: 16px;
9
9
  border: 1px solid #DCDEE5;
10
10
  line-height: 22px;
11
11
  }
12
- .data-set-edit-slider[data-v-aw2fca6u] .bk-sideslider-title {
12
+ .data-set-edit-slider[data-v-mj7webm5] .bk-sideslider-title {
13
13
  justify-content: space-between;
14
14
  width: 100%;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-aw2fca6u";
2
+ script.__scopeId = "data-v-mj7webm5";
3
3
  script.__file = "./src/components/render-dataset/components/edit-dataset-data/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,18 +1,18 @@
1
1
 
2
- .content[data-v-vhgcgr6a] {
2
+ .content[data-v-218qa83s] {
3
3
  padding: 0 24px 0px 32px;
4
4
  height: 100%;
5
5
  }
6
- .content .toolbar[data-v-vhgcgr6a] {
6
+ .content .toolbar[data-v-218qa83s] {
7
7
  margin: 16px 0;
8
8
  display: flex;
9
9
  align-items: center;
10
10
  justify-content: right;
11
11
  gap: 8px;
12
12
  }
13
- .content .toolbar .record-search[data-v-vhgcgr6a] {
13
+ .content .toolbar .record-search[data-v-218qa83s] {
14
14
  width: 360px;
15
15
  }
16
- .content .toolbar .record-data-picker[data-v-vhgcgr6a] {
16
+ .content .toolbar .record-data-picker[data-v-218qa83s] {
17
17
  width: 260px;
18
18
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-vhgcgr6a";
2
+ script.__scopeId = "data-v-218qa83s";
3
3
  script.__file = "./src/components/render-dataset/components/operation-record/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .text[data-v-pufoew2k] {
2
+ .text[data-v-dxub1bld] {
3
3
  display: -webkit-box;
4
4
  -webkit-line-clamp: 2;
5
5
  -webkit-box-orient: vertical;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-pufoew2k";
2
+ script.__scopeId = "data-v-dxub1bld";
3
3
  script.__file = "./src/components/render-dataset/components/operation-record/table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,10 +1,10 @@
1
1
 
2
- .content[data-v-ixdk1lyq] {
2
+ .content[data-v-u179hawl] {
3
3
  padding: 18px 24px 0;
4
4
  height: 100%;
5
5
  overflow: auto;
6
6
  }
7
- .content .value-content[data-v-ixdk1lyq] {
7
+ .content .value-content[data-v-u179hawl] {
8
8
  margin-top: 8px;
9
9
  padding: 16px;
10
10
  border: 1px solid #DCDEE5;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-ixdk1lyq";
2
+ script.__scopeId = "data-v-u179hawl";
3
3
  script.__file = "./src/components/render-dataset/components/operation-record/view-op-result/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,8 +1,8 @@
1
1
 
2
- .dataset-data-content[data-v-yq1wglx2] {
2
+ .dataset-data-content[data-v-ndu8e3wv] {
3
3
  padding: 20px 24px;
4
4
  height: 100%;
5
5
  }
6
- .dataset-data-slider[data-v-yq1wglx2] .bk-modal-content {
6
+ .dataset-data-slider[data-v-ndu8e3wv] .bk-modal-content {
7
7
  scrollbar-gutter: inherit !important;
8
8
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-yq1wglx2";
2
+ script.__scopeId = "data-v-ndu8e3wv";
3
3
  script.__file = "./src/components/render-dataset/components/plus-dataset/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -0,0 +1,137 @@
1
+ import { defineComponent as _defineComponent } from 'vue';
2
+ import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock } from "vue";
3
+ const _hoisted_1 = {
4
+ class: "dataset-data-api"
5
+ };
6
+ const _hoisted_2 = [
7
+ "data-clipboard-text"
8
+ ];
9
+ import { ref, toRef, watch } from 'vue';
10
+ import RenderMarkdown from '../../../../render-markdown/mark-down.ts.js';
11
+ import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
12
+ import { DatasetDataSourceType } from '../../../../../types/enum.ts.js';
13
+ export default /*@__PURE__*/ _defineComponent({
14
+ props: {
15
+ modelValue: {},
16
+ apiPrefix: {},
17
+ spaceId: {}
18
+ },
19
+ setup (__props) {
20
+ const props = __props;
21
+ // 接口 hook
22
+ const { getDatasetApiGuide } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
23
+ // 状态
24
+ const loading = ref(false);
25
+ const datasetApiGuide = ref();
26
+ // 获取数据集 API 指引
27
+ const handleGetDatasetApiGuide = ()=>{
28
+ // 如果不是 API 上报或者没有数据集 ID,则不请求
29
+ if (!props.modelValue.datasetId || props.modelValue.sourceType !== DatasetDataSourceType.ApiReport) return;
30
+ // 发起请求
31
+ loading.value = true;
32
+ getDatasetApiGuide(props.modelValue.datasetId).then((data)=>{
33
+ datasetApiGuide.value = data;
34
+ }).finally(()=>{
35
+ loading.value = false;
36
+ });
37
+ };
38
+ // 触发获取数据集 API 指引
39
+ watch([
40
+ ()=>props.modelValue.datasetId,
41
+ ()=>props.modelValue.sourceType
42
+ ], handleGetDatasetApiGuide, {
43
+ immediate: true
44
+ });
45
+ return (_ctx, _cache)=>{
46
+ const _component_bk_form_item = _resolveComponent("bk-form-item");
47
+ const _component_bk_table_column = _resolveComponent("bk-table-column");
48
+ const _component_bk_table = _resolveComponent("bk-table");
49
+ const _component_bk_loading = _resolveComponent("bk-loading");
50
+ const _component_bk_form = _resolveComponent("bk-form");
51
+ return _ctx.modelValue.sourceType === _unref(DatasetDataSourceType).ApiReport ? (_openBlock(), _createBlock(_component_bk_form, {
52
+ key: 0,
53
+ class: "g-small-form dataset-data-api-form",
54
+ "form-type": "vertical"
55
+ }, {
56
+ default: _withCtx(()=>[
57
+ _createVNode(_component_bk_loading, {
58
+ loading: loading.value,
59
+ "z-index": 1502
60
+ }, {
61
+ default: _withCtx(()=>[
62
+ _ctx.modelValue.datasetId && datasetApiGuide.value ? (_openBlock(), _createElementBlock(_Fragment, {
63
+ key: 0
64
+ }, [
65
+ _createVNode(_component_bk_form_item, null, {
66
+ default: _withCtx(()=>[
67
+ _createElementVNode("section", _hoisted_1, [
68
+ _createTextVNode(" 上报 API 地址:" + _toDisplayString(datasetApiGuide.value.apiEndpoint) + " ", 1 /* TEXT */ ),
69
+ _createElementVNode("i", {
70
+ class: "ai-ui-sdk-icon ai-ui-sdk-copy click-copy g-cursor-pointer g-ml-6",
71
+ "data-clipboard-text": datasetApiGuide.value.apiEndpoint
72
+ }, null, 8 /* PROPS */ , _hoisted_2)
73
+ ])
74
+ ]),
75
+ _: 1 /* STABLE */
76
+ }),
77
+ _createVNode(_component_bk_form_item, {
78
+ label: "上报参数"
79
+ }, {
80
+ default: _withCtx(()=>[
81
+ _createVNode(_component_bk_table, {
82
+ "show-overflow-tooltip": "",
83
+ "empty-cell-text": "--",
84
+ border: [
85
+ 'row',
86
+ 'col',
87
+ 'outer'
88
+ ],
89
+ data: datasetApiGuide.value.apiContent
90
+ }, {
91
+ default: _withCtx(()=>[
92
+ _createVNode(_component_bk_table_column, {
93
+ label: "参数名",
94
+ field: "paramName"
95
+ }),
96
+ _createVNode(_component_bk_table_column, {
97
+ label: "参数类型",
98
+ field: "paramType"
99
+ }),
100
+ _createVNode(_component_bk_table_column, {
101
+ label: "描述",
102
+ field: "paramDesc"
103
+ })
104
+ ]),
105
+ _: 1 /* STABLE */
106
+ }, 8 /* PROPS */ , [
107
+ "data"
108
+ ])
109
+ ]),
110
+ _: 1 /* STABLE */
111
+ }),
112
+ _createVNode(_component_bk_form_item, {
113
+ label: "上报示例",
114
+ class: "g-last-form-item"
115
+ }, {
116
+ default: _withCtx(()=>[
117
+ _createVNode(_unref(RenderMarkdown), {
118
+ class: "dataset-data-api-demo",
119
+ value: datasetApiGuide.value.apiDemo
120
+ }, null, 8 /* PROPS */ , [
121
+ "value"
122
+ ])
123
+ ]),
124
+ _: 1 /* STABLE */
125
+ })
126
+ ], 64 /* STABLE_FRAGMENT */ )) : _createCommentVNode("v-if", true)
127
+ ]),
128
+ _: 1 /* STABLE */
129
+ }, 8 /* PROPS */ , [
130
+ "loading"
131
+ ])
132
+ ]),
133
+ _: 1 /* STABLE */
134
+ })) : _createCommentVNode("v-if", true);
135
+ };
136
+ }
137
+ });
@@ -0,0 +1,13 @@
1
+
2
+ .dataset-data-api-form[data-v-vmuc996z] {
3
+ margin-top: -12px;
4
+ }
5
+ .dataset-data-api[data-v-vmuc996z] {
6
+ line-height: 44px;
7
+ background: #F5F7FA;
8
+ border-radius: 2px;
9
+ padding: 0 12px;
10
+ }
11
+ [data-v-vmuc996z] .dataset-data-api-demo .v-show-content {
12
+ padding: 0 !important;
13
+ }
@@ -0,0 +1,8 @@
1
+ import type { IDatasetDataForm } from '@/types/dataset';
2
+ interface IProps {
3
+ modelValue: IDatasetDataForm;
4
+ apiPrefix: string;
5
+ spaceId?: string;
6
+ }
7
+ declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import script from './api.script.vue.js.js';
2
+ script.__scopeId = "data-v-vmuc996z";
3
+ script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/api.vue";
4
+ import './api.vue.css';
5
+ export default script;
@@ -56,7 +56,10 @@ import SourceTypeIcon from '../../source-type-icon/index.vue.js';
56
56
  import { DatasetDataSourceType } from '../../../../../types/enum.ts.js';
57
57
  export default /*@__PURE__*/ _defineComponent({
58
58
  props: {
59
- modelValue: {}
59
+ modelValue: {},
60
+ isInternal: {
61
+ type: Boolean
62
+ }
60
63
  },
61
64
  emits: [
62
65
  "update:modelValue"
@@ -69,6 +72,12 @@ export default /*@__PURE__*/ _defineComponent({
69
72
  id: DatasetDataSourceType.UploadFile,
70
73
  name: '文件上传'
71
74
  },
75
+ ...props.isInternal ? [
76
+ {
77
+ id: DatasetDataSourceType.ApiReport,
78
+ name: 'API 上报'
79
+ }
80
+ ] : [],
72
81
  {
73
82
  id: DatasetDataSourceType.ManualImport,
74
83
  name: '手工录入'