@blueking/ai-ui-sdk 0.1.0-beta.11 → 0.1.0-beta.12

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 (49) 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-collapse/index.vue.css +2 -2
  6. package/dist/components/render-collapse/index.vue.js +1 -1
  7. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  8. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  9. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  10. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  11. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  12. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  13. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  14. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  15. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  16. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  17. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js +21 -3
  18. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  19. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  20. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  21. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  22. package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +22 -12
  23. package/dist/components/render-dataset/components/source-type-icon/index.vue.css +3 -3
  24. package/dist/components/render-dataset/components/source-type-icon/index.vue.js +1 -1
  25. package/dist/components/render-dataset/index.vue.css +1 -1
  26. package/dist/components/render-dataset/index.vue.js +1 -1
  27. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +1 -1
  28. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +1 -1
  29. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  30. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  31. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  32. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  33. package/dist/components/render-expand-collapse/index.vue.css +3 -3
  34. package/dist/components/render-expand-collapse/index.vue.js +1 -1
  35. package/dist/components/render-file-card/index.vue.css +11 -11
  36. package/dist/components/render-file-card/index.vue.js +1 -1
  37. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  38. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  39. package/dist/components/render-header/index.vue.css +5 -5
  40. package/dist/components/render-header/index.vue.js +1 -1
  41. package/dist/components/render-router-tab/index.vue.css +3 -3
  42. package/dist/components/render-router-tab/index.vue.js +1 -1
  43. package/dist/components/render-search-select/index.vue.d.ts +1 -4
  44. package/dist/hooks/use-dataset-http.d.ts +4 -1
  45. package/dist/hooks/use-dataset-http.ts.js +4 -4
  46. package/dist/http/helper/dataset.d.ts +10 -1
  47. package/dist/http/helper/dataset.ts.js +10 -0
  48. package/dist/types/dataset.d.ts +8 -0
  49. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
 
2
- .aside-home[data-v-fapvn6kr] {
2
+ .aside-home[data-v-uhe47pyk] {
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-fapvn6kr] .aside-item {
9
+ [data-v-uhe47pyk] .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-fapvn6kr] .aside-item.is-tab {
19
+ [data-v-uhe47pyk] .aside-item.is-tab {
20
20
  background: #F5F7FA;
21
21
  cursor: pointer;
22
22
  color: #4D4F56;
23
23
  }
24
- [data-v-fapvn6kr] .aside-item.is-tab:hover {
24
+ [data-v-uhe47pyk] .aside-item.is-tab:hover {
25
25
  background: #F0F5FF;
26
26
  }
27
- [data-v-fapvn6kr] .aside-item.active {
27
+ [data-v-uhe47pyk] .aside-item.active {
28
28
  background: #F0F5FF;
29
29
  color: #3A84FF;
30
30
  font-weight: 700;
31
31
  }
32
- [data-v-fapvn6kr] .aside-item.active .tab-num {
32
+ [data-v-uhe47pyk] .aside-item.active .tab-num {
33
33
  background: #3A84FF;
34
34
  color: #fff;
35
35
  }
36
- [data-v-fapvn6kr] .aside-item.active .active-text {
36
+ [data-v-uhe47pyk] .aside-item.active .active-text {
37
37
  color: #3A84FF;
38
38
  }
39
- [data-v-fapvn6kr] .aside-item .tab-name {
39
+ [data-v-uhe47pyk] .aside-item .tab-name {
40
40
  flex: 1;
41
41
  }
42
- [data-v-fapvn6kr] .aside-item .tab-num {
42
+ [data-v-uhe47pyk] .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-fapvn6kr";
2
+ script.__scopeId = "data-v-uhe47pyk";
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-uo486154] {
2
+ .send-container[data-v-py8p92uy] {
3
3
  position: relative;
4
4
  }
5
- .send-container[data-v-uo486154]:has(textarea:focus) {
5
+ .send-container[data-v-py8p92uy]:has(textarea:focus) {
6
6
  z-index: 2;
7
7
  }
8
- .send-container:hover .send-clear[data-v-uo486154] {
8
+ .send-container:hover .send-clear[data-v-py8p92uy] {
9
9
  display: inline-flex !important;
10
10
  }
11
- .send-input[data-v-uo486154] {
11
+ .send-input[data-v-py8p92uy] {
12
12
  width: 100%;
13
13
  flex-direction: row;
14
14
  height: var(--origin-height);
15
15
  }
16
- .send-input[data-v-uo486154]:has(textarea:focus) {
16
+ .send-input[data-v-py8p92uy]:has(textarea:focus) {
17
17
  height: var(--text-height);
18
18
  }
19
- .send-input[data-v-uo486154] textarea {
19
+ .send-input[data-v-py8p92uy] 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-uo486154] textarea::-webkit-scrollbar {
25
+ .send-input[data-v-py8p92uy] textarea::-webkit-scrollbar {
26
26
  width: 4px;
27
27
  height: 4px;
28
28
  }
29
- .send-input[data-v-uo486154] textarea::-webkit-scrollbar-thumb {
29
+ .send-input[data-v-py8p92uy] 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-uo486154] textarea::placeholder {
34
+ .send-input[data-v-py8p92uy] textarea::placeholder {
35
35
  line-height: 16px;
36
36
  }
37
- .send-clear[data-v-uo486154] {
37
+ .send-clear[data-v-py8p92uy] {
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-uo486154]:hover {
46
+ .send-clear[data-v-py8p92uy]: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-uo486154";
2
+ script.__scopeId = "data-v-py8p92uy";
3
3
  script.__file = "./src/components/render-auto-height-textarea/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,10 +1,10 @@
1
1
 
2
- .collapse-title[data-v-6fs9ou4n] {
2
+ .collapse-title[data-v-inajtubu] {
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-6fs9ou4n] {
8
+ .collapse-title .is-hidden[data-v-inajtubu] {
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-6fs9ou4n";
2
+ script.__scopeId = "data-v-inajtubu";
3
3
  script.__file = "./src/components/render-collapse/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,15 +1,15 @@
1
1
 
2
- .content[data-v-radhf568] {
2
+ .content[data-v-6zdrfwm9] {
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-radhf568] {
7
+ .data-set-edit-slider .value-content[data-v-6zdrfwm9] {
8
8
  padding: 16px;
9
9
  border: 1px solid #DCDEE5;
10
10
  line-height: 22px;
11
11
  }
12
- .data-set-edit-slider[data-v-radhf568] .bk-sideslider-title {
12
+ .data-set-edit-slider[data-v-6zdrfwm9] .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-radhf568";
2
+ script.__scopeId = "data-v-6zdrfwm9";
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-nf9jvsst] {
2
+ .content[data-v-wac7pibc] {
3
3
  padding: 0 24px 0px 32px;
4
4
  height: 100%;
5
5
  }
6
- .content .toolbar[data-v-nf9jvsst] {
6
+ .content .toolbar[data-v-wac7pibc] {
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-nf9jvsst] {
13
+ .content .toolbar .record-search[data-v-wac7pibc] {
14
14
  width: 360px;
15
15
  }
16
- .content .toolbar .record-data-picker[data-v-nf9jvsst] {
16
+ .content .toolbar .record-data-picker[data-v-wac7pibc] {
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-nf9jvsst";
2
+ script.__scopeId = "data-v-wac7pibc";
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-af4s30pr] {
2
+ .text[data-v-8vj3qqib] {
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-af4s30pr";
2
+ script.__scopeId = "data-v-8vj3qqib";
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-rnfhmh60] {
2
+ .content[data-v-qrc07o77] {
3
3
  padding: 18px 24px 0;
4
4
  height: 100%;
5
5
  overflow: auto;
6
6
  }
7
- .content .value-content[data-v-rnfhmh60] {
7
+ .content .value-content[data-v-qrc07o77] {
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-rnfhmh60";
2
+ script.__scopeId = "data-v-qrc07o77";
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-cz161dbo] {
2
+ .dataset-data-content[data-v-tkaffhzu] {
3
3
  padding: 20px 24px;
4
4
  height: 100%;
5
5
  }
6
- .dataset-data-slider[data-v-cz161dbo] .bk-modal-content {
6
+ .dataset-data-slider[data-v-tkaffhzu] .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-cz161dbo";
2
+ script.__scopeId = "data-v-tkaffhzu";
3
3
  script.__file = "./src/components/render-dataset/components/plus-dataset/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -29,6 +29,7 @@ function _async_to_generator(fn) {
29
29
  }
30
30
  import { defineComponent as _defineComponent } from 'vue';
31
31
  import { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
32
+ import { Message } from 'bkui-vue';
32
33
  import { ref } from 'vue';
33
34
  import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
34
35
  export default /*@__PURE__*/ _defineComponent({
@@ -55,7 +56,9 @@ export default /*@__PURE__*/ _defineComponent({
55
56
  // 校验
56
57
  yield handleValidate();
57
58
  // 保存
58
- yield handleSave();
59
+ const data = yield handleSave();
60
+ // 提示消息
61
+ handleMessage(data);
59
62
  // 关闭弹窗
60
63
  handleClose(true);
61
64
  // 触发事件
@@ -74,12 +77,27 @@ export default /*@__PURE__*/ _defineComponent({
74
77
  const handleSave = ()=>{
75
78
  return createDatasetData(props.datasetData);
76
79
  };
77
- const handleSuccess = ()=>{
78
- emits('success-confirm');
80
+ const handleMessage = (data)=>{
81
+ let message = '';
82
+ if (data.createCount) {
83
+ message += `新增${data.createCount}条数据`;
84
+ }
85
+ if (data.duplicateCount) {
86
+ message += `,有${data.duplicateCount}条重复数据`;
87
+ }
88
+ if (message) {
89
+ Message({
90
+ message,
91
+ theme: 'success'
92
+ });
93
+ }
79
94
  };
80
95
  const handleClose = (noValidate)=>{
81
96
  emits('close', noValidate);
82
97
  };
98
+ const handleSuccess = ()=>{
99
+ emits('success-confirm');
100
+ };
83
101
  return (_ctx, _cache)=>{
84
102
  const _component_bk_button = _resolveComponent("bk-button");
85
103
  return _openBlock(), _createElementBlock(_Fragment, null, [
@@ -1,5 +1,5 @@
1
1
 
2
- .footer-button[data-v-89aoxzkz] {
2
+ .footer-button[data-v-z4azvpqp] {
3
3
  width: 88px;
4
4
  margin-right: 8px;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import script from './footer.script.vue.js.js';
2
- script.__scopeId = "data-v-89aoxzkz";
2
+ script.__scopeId = "data-v-z4azvpqp";
3
3
  script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/footer.vue";
4
4
  import './footer.vue.css';
5
5
  export default script;
@@ -1,7 +1,7 @@
1
1
 
2
- .plus-dataset-data[data-v-bxs696g9] {
2
+ .plus-dataset-data[data-v-kd5lpvz9] {
3
3
  padding: 20px 24px;
4
4
  }
5
- .plus-dataset-sideslider[data-v-bxs696g9] .bk-modal-content {
5
+ .plus-dataset-sideslider[data-v-kd5lpvz9] .bk-modal-content {
6
6
  scrollbar-gutter: inherit !important;
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-bxs696g9";
2
+ script.__scopeId = "data-v-kd5lpvz9";
3
3
  script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -72,35 +72,45 @@ export default /*@__PURE__*/ _defineComponent({
72
72
  emits('update:modelValue', modelValue);
73
73
  };
74
74
  const handleGetMenuList = function() {
75
- var _ref = _async_to_generator(function*(data) {
75
+ var _ref = _async_to_generator(function*(data, search) {
76
76
  if (!data.async) {
77
77
  return [];
78
78
  }
79
79
  if (data.id === 'componentIds') {
80
- return handleGetComponentList();
80
+ return handleGetComponentList(search);
81
81
  }
82
82
  if (data.id === 'type') {
83
- return handleGetSchemaList();
83
+ return handleGetSchemaList(search);
84
84
  }
85
85
  });
86
- return function handleGetMenuList(data) {
86
+ return function handleGetMenuList(data, search) {
87
87
  return _ref.apply(this, arguments);
88
88
  };
89
89
  }();
90
- const handleGetSchemaList = ()=>{
90
+ const isMatchSearch = (value, search)=>{
91
+ return value.toLocaleLowerCase().includes(search.toLocaleLowerCase());
92
+ };
93
+ const handleGetSchemaList = (search)=>{
91
94
  return getSchemaList().then((schemaList)=>{
92
- const children = schemaList.map((schema)=>({
93
- id: schema.id,
94
- name: schema.name
95
- }));
95
+ const children = schemaList.reduce((acc, cur)=>{
96
+ if (isMatchSearch(cur.name, search)) {
97
+ acc.push(cur);
98
+ }
99
+ return acc;
100
+ }, []);
96
101
  data.value[1].children = children;
97
102
  return children;
98
103
  });
99
104
  };
100
- const handleGetComponentList = ()=>{
105
+ const handleGetComponentList = (search)=>{
101
106
  return getComponentList().then((componentList)=>{
102
- data.value[2].children = componentList;
103
- return componentList;
107
+ // 只取叶子节点
108
+ const children = componentList.reduce((acc, cur)=>{
109
+ acc.push(...cur.children.filter((item)=>isMatchSearch(item.name, search)));
110
+ return acc;
111
+ }, []);
112
+ data.value[2].children = children;
113
+ return children;
104
114
  });
105
115
  };
106
116
  return (_ctx, _cache)=>{
@@ -1,10 +1,10 @@
1
1
 
2
- .bkaidev-markdown[data-v-kznel9g2] {
2
+ .bkaidev-markdown[data-v-jb7vxmi6] {
3
3
  color: #3a84ff;
4
4
  }
5
- .bkaidev-wangye[data-v-kznel9g2] {
5
+ .bkaidev-wangye[data-v-jb7vxmi6] {
6
6
  color: #14A568;
7
7
  }
8
- .bkaidev-wenben[data-v-kznel9g2] {
8
+ .bkaidev-wenben[data-v-jb7vxmi6] {
9
9
  color: #979ba5;
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-kznel9g2";
2
+ script.__scopeId = "data-v-jb7vxmi6";
3
3
  script.__file = "./src/components/render-dataset/components/source-type-icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .dataset-main[data-v-prsosygu] {
2
+ .dataset-main[data-v-ankamtsk] {
3
3
  flex: 1;
4
4
  width: calc(100vw - 300px);
5
5
  height: 100%;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-prsosygu";
2
+ script.__scopeId = "data-v-ankamtsk";
3
3
  script.__file = "./src/components/render-dataset/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .ellipsis-text[data-v-bffo3w2d] {
2
+ .ellipsis-text[data-v-opfe7007] {
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';
2
- script.__scopeId = "data-v-bffo3w2d";
2
+ script.__scopeId = "data-v-opfe7007";
3
3
  script.__file = "./src/components/render-dataset-detail-origin-data/components/table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,15 +1,15 @@
1
1
 
2
- .origin-data-content[data-v-p0otrwg0] {
2
+ .origin-data-content[data-v-58ew21or] {
3
3
  padding: 24px;
4
4
  height: calc(100% - 52px - 44px);
5
5
  }
6
- .origin-data-panel[data-v-p0otrwg0] {
6
+ .origin-data-panel[data-v-58ew21or] {
7
7
  height: 100%;
8
8
  padding: 20px;
9
9
  background: #ffffff;
10
10
  box-shadow: 0 2px 4px 0 #1919290d;
11
11
  border-radius: 2px;
12
12
  }
13
- .origin-data-panel .toolbar-search[data-v-p0otrwg0] {
13
+ .origin-data-panel .toolbar-search[data-v-58ew21or] {
14
14
  width: 6.17rem;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-p0otrwg0";
2
+ script.__scopeId = "data-v-58ew21or";
3
3
  script.__file = "./src/components/render-dataset-detail-origin-data/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,15 +1,15 @@
1
1
 
2
- .main-content[data-v-onnlkawo] {
2
+ .main-content[data-v-olt371bt] {
3
3
  padding: 20px 24px;
4
4
  height: calc(100% - 52px);
5
5
  }
6
- .main-panel[data-v-onnlkawo] {
6
+ .main-panel[data-v-olt371bt] {
7
7
  height: 100%;
8
8
  padding: 20px 24px 0;
9
9
  background: #ffffff;
10
10
  box-shadow: 0 2px 4px 0 #1919290d;
11
11
  border-radius: 2px;
12
12
  }
13
- .main-search[data-v-onnlkawo] {
13
+ .main-search[data-v-olt371bt] {
14
14
  width: 6.17rem;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './main.script.vue.js.js';
2
- script.__scopeId = "data-v-onnlkawo";
2
+ script.__scopeId = "data-v-olt371bt";
3
3
  script.__file = "./src/components/render-dataset-list/components/main.vue";
4
4
  import './main.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .expend-collapse-home[data-v-k5b38l6k] {
2
+ .expend-collapse-home[data-v-vhsudawj] {
3
3
  width: 16px;
4
4
  height: 64px;
5
5
  background: #DCDEE5;
@@ -15,9 +15,9 @@
15
15
  cursor: pointer;
16
16
  z-index: 1550;
17
17
  }
18
- .expend-collapse-home[data-v-k5b38l6k]:hover {
18
+ .expend-collapse-home[data-v-vhsudawj]:hover {
19
19
  background: #979BA5;
20
20
  }
21
- .expend-collapse-home.is-close[data-v-k5b38l6k] {
21
+ .expend-collapse-home.is-close[data-v-vhsudawj] {
22
22
  left: 0;
23
23
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-k5b38l6k";
2
+ script.__scopeId = "data-v-vhsudawj";
3
3
  script.__file = "./src/components/render-expand-collapse/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,21 +1,21 @@
1
1
 
2
- .upload-file-home[data-v-kxtrpdgi] {
2
+ .upload-file-home[data-v-2x0vhm89] {
3
3
  position: relative;
4
4
  background: #FFFFFF;
5
5
  border: 1px solid #DCDEE5;
6
6
  border-radius: 4px;
7
7
  padding: 12px 12px 10px 12px;
8
8
  }
9
- .upload-file-home[data-v-kxtrpdgi]:hover {
9
+ .upload-file-home[data-v-2x0vhm89]:hover {
10
10
  border: 1px solid #3A84FF;
11
11
  }
12
- .upload-file-home:hover .file-icons[data-v-kxtrpdgi] {
12
+ .upload-file-home:hover .file-icons[data-v-2x0vhm89] {
13
13
  display: flex;
14
14
  }
15
- .upload-file-home .file-icon[data-v-kxtrpdgi] {
15
+ .upload-file-home .file-icon[data-v-2x0vhm89] {
16
16
  font-size: 32px;
17
17
  }
18
- .upload-file-home .file-content[data-v-kxtrpdgi] {
18
+ .upload-file-home .file-content[data-v-2x0vhm89] {
19
19
  font-size: 12px;
20
20
  flex: 1;
21
21
  align-items: flex-start;
@@ -23,28 +23,28 @@
23
23
  font-weight: normal;
24
24
  width: 0;
25
25
  }
26
- .upload-file-home .file-content .file-name[data-v-kxtrpdgi] {
26
+ .upload-file-home .file-content .file-name[data-v-2x0vhm89] {
27
27
  width: 100%;
28
28
  font-size: 14px;
29
29
  line-height: 20px;
30
30
  }
31
- .upload-file-home .file-content .file-size[data-v-kxtrpdgi] {
31
+ .upload-file-home .file-content .file-size[data-v-2x0vhm89] {
32
32
  font-size: 12px;
33
33
  color: #979BA5;
34
34
  line-height: 20px;
35
35
  }
36
- .upload-file-home .file-icons[data-v-kxtrpdgi] {
36
+ .upload-file-home .file-icons[data-v-2x0vhm89] {
37
37
  display: none;
38
38
  color: #979BA5;
39
39
  }
40
- .upload-file-home .file-icons .bkaidev-icon[data-v-kxtrpdgi] {
40
+ .upload-file-home .file-icons .bkaidev-icon[data-v-2x0vhm89] {
41
41
  cursor: pointer;
42
42
  margin-right: 15px;
43
43
  font-size: 16px;
44
44
  }
45
- .upload-file-home .file-icons .bkaidev-icon[data-v-kxtrpdgi]:hover {
45
+ .upload-file-home .file-icons .bkaidev-icon[data-v-2x0vhm89]:hover {
46
46
  color: #3A84FF;
47
47
  }
48
- .upload-file-home .file-icons .bkaidev-delete[data-v-kxtrpdgi] {
48
+ .upload-file-home .file-icons .bkaidev-delete[data-v-2x0vhm89] {
49
49
  margin: 0;
50
50
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-kxtrpdgi";
2
+ script.__scopeId = "data-v-2x0vhm89";
3
3
  script.__file = "./src/components/render-file-card/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,16 +1,16 @@
1
1
 
2
- .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-gsod4y5j] {
2
+ .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-rn9a3ev1] {
3
3
  color: #EA3636;
4
4
  }
5
- .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-gsod4y5j], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-gsod4y5j], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-gsod4y5j] {
5
+ .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-rn9a3ev1], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-rn9a3ev1], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-rn9a3ev1] {
6
6
  color: #3A84FF;
7
7
  }
8
- .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-gsod4y5j] {
8
+ .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-rn9a3ev1] {
9
9
  color: #C4C6CC;
10
10
  }
11
- .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-gsod4y5j] {
11
+ .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-rn9a3ev1] {
12
12
  color: #2DCB56;
13
13
  }
14
- .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-gsod4y5j] {
14
+ .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-rn9a3ev1] {
15
15
  color: #14A568;
16
16
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-gsod4y5j";
2
+ script.__scopeId = "data-v-rn9a3ev1";
3
3
  script.__file = "./src/components/render-file-type-icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .header-home[data-v-b7x5sajo] {
2
+ .header-home[data-v-ngont4j1] {
3
3
  width: 100%;
4
4
  height: 52px;
5
5
  background: #FFFFFF;
@@ -7,14 +7,14 @@
7
7
  position: relative;
8
8
  z-index: 2;
9
9
  }
10
- .header-title[data-v-b7x5sajo] {
10
+ .header-title[data-v-ngont4j1] {
11
11
  position: absolute;
12
12
  left: 24px;
13
13
  top: 14px;
14
14
  font-size: 16px;
15
15
  color: #313238;
16
16
  }
17
- .header-main[data-v-b7x5sajo] {
17
+ .header-main[data-v-ngont4j1] {
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: flex-end;
@@ -22,13 +22,13 @@
22
22
  height: 100%;
23
23
  margin: 0 auto;
24
24
  }
25
- .header-select[data-v-b7x5sajo] {
25
+ .header-select[data-v-ngont4j1] {
26
26
  width: 300px;
27
27
  margin-right: 8px;
28
28
  z-index: 9;
29
29
  font-size: 12px;
30
30
  }
31
- .header-input[data-v-b7x5sajo] {
31
+ .header-input[data-v-ngont4j1] {
32
32
  width: 300px;
33
33
  font-size: 12px;
34
34
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-b7x5sajo";
2
+ script.__scopeId = "data-v-ngont4j1";
3
3
  script.__file = "./src/components/render-header/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,12 +1,12 @@
1
1
 
2
- .router-tab[data-v-2o4slg5m] {
2
+ .router-tab[data-v-smuozfq5] {
3
3
  margin-top: 2px;
4
4
  height: 42px;
5
5
  background: #FFFFFF;
6
6
  box-shadow: 0 2px 4px 0 #1919290d;
7
7
  padding: 0 45px;
8
8
  }
9
- .router-tab a[data-v-2o4slg5m] {
9
+ .router-tab a[data-v-smuozfq5] {
10
10
  padding: 0 8px;
11
11
  margin-right: 24px;
12
12
  font-size: 14px;
@@ -15,7 +15,7 @@
15
15
  color: #4D4F56;
16
16
  box-sizing: border-box;
17
17
  }
18
- .router-tab a.router-link-exact-active[data-v-2o4slg5m] {
18
+ .router-tab a.router-link-exact-active[data-v-smuozfq5] {
19
19
  color: #3A84FF;
20
20
  border-bottom: 2px solid #3A84FF;
21
21
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-2o4slg5m";
2
+ script.__scopeId = "data-v-smuozfq5";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -13,10 +13,7 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
13
13
  name: string;
14
14
  id: number;
15
15
  }[]) => Promise<boolean | string> | boolean | string;
16
- getMenuList?: (item: {
17
- name: string;
18
- id: string;
19
- }) => any;
16
+ getMenuList?: Function;
20
17
  } & Partial<{}>> & import("vue").PublicProps;
21
18
  expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
22
19
  attrs: any;
@@ -15,7 +15,10 @@ export declare const useDatasetHttp: (apiPrefix?: string) => {
15
15
  count: number;
16
16
  results: import("@/types/dataset").IDatasetData[];
17
17
  }>;
18
- createDatasetData: (data: IDatasetDataForm) => Promise<import("@/types/dataset").IDatasetData>;
18
+ createDatasetData: (data: IDatasetDataForm) => Promise<{
19
+ createCount: number;
20
+ duplicateCount: number;
21
+ }>;
19
22
  updateDatasetData: (data: IDatasetDataForm, id: number) => Promise<import("@/types/dataset").IDatasetData>;
20
23
  deleteDatasetData: (id: number) => Promise<IDatasetDataApi>;
21
24
  getDatasetData: (id: number) => Promise<import("@/types/dataset").IDatasetData>;
@@ -1,5 +1,5 @@
1
1
  import fetch from '../http/fetch/index.ts.js';
2
- import { transferCompanyApi2Company, transferCompanyParticipantApi2CompanyParticipantList, transferDatasetApi2Dataset, transferDatasetDataApi2DatasetData, transferDatasetDataFileApi2DatasetDataFile, transferDatasetDataForm2DatasetDataFormApi, transferDatasetDataParam2DatasetDataParamApi, transferDatasetForm2DatasetFormApi, transferDatasetListParam2DatasetListParamApi, transferOperatRecordApi2OperatRecord, transferOperatRecordParam2OperatRecordParamApi, transferUserInfoApi2UserInfo, transferUserInfoForm2UserInfoFormApi } from '../http/helper/dataset.ts.js';
2
+ import { transferCompanyApi2Company, transferCompanyParticipantApi2CompanyParticipantList, transferCreateDatasetDataResultApi2CreateDatasetDataResult, transferDatasetApi2Dataset, transferDatasetDataApi2DatasetData, transferDatasetDataFileApi2DatasetDataFile, transferDatasetDataForm2DatasetDataFormApi, transferDatasetDataParam2DatasetDataParamApi, transferDatasetForm2DatasetFormApi, transferDatasetListParam2DatasetListParamApi, transferOperatRecordApi2OperatRecord, transferOperatRecordParam2OperatRecordParamApi, transferUserInfoApi2UserInfo, transferUserInfoForm2UserInfoFormApi } from '../http/helper/dataset.ts.js';
3
3
  const datasetPerfix = 'dataset/v1';
4
4
  const metaPerfix = 'meta/v1';
5
5
  // 数据集相关接口
@@ -7,7 +7,7 @@ export const useDatasetHttp = (apiPrefix)=>{
7
7
  // meta相关接口
8
8
  // 获取公司列表
9
9
  const getCompanyList = ()=>fetch.get(`${apiPrefix}/${metaPerfix}/company/`).then((data)=>data.map(transferCompanyApi2Company));
10
- // 获取公司列表
10
+ // 获取组件列表
11
11
  const getComponentList = ()=>fetch.get(`${apiPrefix}/${metaPerfix}/component/`);
12
12
  // 查询操作记录列表
13
13
  const getOperateRecordList = (param)=>fetch.post(`${apiPrefix}/${metaPerfix}/operate_record/list/`, transferOperatRecordParam2OperatRecordParamApi(param)).then(({ count, results })=>({
@@ -31,7 +31,7 @@ export const useDatasetHttp = (apiPrefix)=>{
31
31
  // 获取数据集数据信息
32
32
  const getDatasetMineInfo = ()=>fetch.get(`${apiPrefix}/${datasetPerfix}/dataset/mine_info/`);
33
33
  // 获取数据集列表
34
- const getDatasetList = (query)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset/`, transferDatasetListParam2DatasetListParamApi(query)).then(({ count, results })=>({
34
+ const getDatasetList = (query)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset/list/`, transferDatasetListParam2DatasetListParamApi(query)).then(({ count, results })=>({
35
35
  count,
36
36
  results: results.map(transferDatasetApi2Dataset)
37
37
  }));
@@ -49,7 +49,7 @@ export const useDatasetHttp = (apiPrefix)=>{
49
49
  results: results.map(transferDatasetDataApi2DatasetData)
50
50
  }));
51
51
  // 创建数据集数据
52
- const createDatasetData = (data)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset_item/`, transferDatasetDataForm2DatasetDataFormApi(data)).then(transferDatasetDataApi2DatasetData);
52
+ const createDatasetData = (data)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset_item/`, transferDatasetDataForm2DatasetDataFormApi(data)).then(transferCreateDatasetDataResultApi2CreateDatasetDataResult);
53
53
  // 更新数据集数据
54
54
  const updateDatasetData = (data, id)=>fetch.patch(`${apiPrefix}/${datasetPerfix}/dataset_item/${id}/`, transferDatasetDataForm2DatasetDataFormApi(data)).then(transferDatasetDataApi2DatasetData);
55
55
  // 删除数据集数据
@@ -1,4 +1,13 @@
1
- import { ICompany, ICompanyApi, ICompanyParticipant, ICompanyParticipantApi, IDataset, IDatasetApi, IDatasetData, IDatasetDataApi, IDatasetDataFile, IDatasetDataFileApi, IDatasetDataForm, IDatasetDataFormApi, IDatasetDataParam, IDatasetDataParamApi, IDatasetForm, IDatasetFormApi, IDatasetListParam, IDatasetListParamApi, IOperatRecord, IOperatRecordApi, IOperatRecordParam, IOperatRecordParamApi, IUserInfo, IUserInfoApi, IUserInfoForm, IUserInfoFormApi } from '@/types/dataset';
1
+ import { ICompany, ICompanyApi, ICompanyParticipant, ICompanyParticipantApi, ICreataDatasetDataResultApi, IDataset, IDatasetApi, IDatasetData, IDatasetDataApi, IDatasetDataFile, IDatasetDataFileApi, IDatasetDataForm, IDatasetDataFormApi, IDatasetDataParam, IDatasetDataParamApi, IDatasetForm, IDatasetFormApi, IDatasetListParam, IDatasetListParamApi, IOperatRecord, IOperatRecordApi, IOperatRecordParam, IOperatRecordParamApi, IUserInfo, IUserInfoApi, IUserInfoForm, IUserInfoFormApi } from '@/types/dataset';
2
+ /**
3
+ * 接口转换为ui使用
4
+ * @param data ICreataDatasetDataResultApi
5
+ * @returns ICreataDatasetDataResult
6
+ */
7
+ export declare const transferCreateDatasetDataResultApi2CreateDatasetDataResult: (data: ICreataDatasetDataResultApi) => {
8
+ createCount: number;
9
+ duplicateCount: number;
10
+ };
2
11
  /**
3
12
  * 接口转换为ui使用
4
13
  * @param data ICompanyApi
@@ -77,6 +77,16 @@ function _object_without_properties_loose(source, excluded) {
77
77
  }
78
78
  return target;
79
79
  }
80
+ /**
81
+ * 接口转换为ui使用
82
+ * @param data ICreataDatasetDataResultApi
83
+ * @returns ICreataDatasetDataResult
84
+ */ export const transferCreateDatasetDataResultApi2CreateDatasetDataResult = (data)=>{
85
+ return {
86
+ createCount: data.create_count,
87
+ duplicateCount: data.duplicate_count
88
+ };
89
+ };
80
90
  /**
81
91
  * 接口转换为ui使用
82
92
  * @param data ICompanyApi
@@ -202,3 +202,11 @@ export interface IComponent {
202
202
  code: string;
203
203
  children: IComponent[];
204
204
  }
205
+ export interface ICreataDatasetDataResultApi {
206
+ create_count: number;
207
+ duplicate_count: number;
208
+ }
209
+ export interface ICreataDatasetDataResult {
210
+ createCount: number;
211
+ duplicateCount: number;
212
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/ai-ui-sdk",
3
- "version": "0.1.0-beta.11",
3
+ "version": "0.1.0-beta.12",
4
4
  "description": "蓝鲸AI UI SDK",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",