@blueking/ai-ui-sdk 0.1.19-beta.13 → 0.1.19-beta.15

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 (73) hide show
  1. package/dist/common/util.d.ts +6 -0
  2. package/dist/common/util.ts.js +16 -0
  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.script.vue.js.js +24 -6
  23. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  24. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  25. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  26. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  27. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  28. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  29. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  30. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  31. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  32. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  33. package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +3 -26
  34. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  35. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  36. package/dist/components/render-dataset-list/components/header.script.vue.js.js +0 -1
  37. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  38. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  39. package/dist/components/render-dataset-list/components/table.script.vue.js.js +1 -3
  40. package/dist/components/render-dataset-list/index.vue.css +1 -1
  41. package/dist/components/render-dataset-list/index.vue.js +1 -1
  42. package/dist/components/render-file-card/index.vue.css +11 -11
  43. package/dist/components/render-file-card/index.vue.js +1 -1
  44. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  45. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  46. package/dist/components/render-header/index.vue.css +3 -3
  47. package/dist/components/render-header/index.vue.js +1 -1
  48. package/dist/components/render-like/index.vue.css +5 -5
  49. package/dist/components/render-like/index.vue.js +1 -1
  50. package/dist/components/render-router-tab/index.vue.css +3 -3
  51. package/dist/components/render-router-tab/index.vue.js +1 -1
  52. package/dist/components/render-search-empty/index.script.vue.js.js +61 -0
  53. package/dist/components/render-search-empty/index.vue.d.ts +20 -0
  54. package/dist/components/render-search-empty/index.vue.js +3 -0
  55. package/dist/components/render-t-table/index.script.vue.js +311 -0
  56. package/dist/components/render-t-table/index.vue.css +160 -0
  57. package/dist/components/render-t-table/index.vue.d.ts +57 -0
  58. package/dist/components/render-t-table/index.vue.js +5 -0
  59. package/dist/components/render-tag-tree/index.script.vue.js.js +5 -2
  60. package/dist/components/render-tag-tree/index.vue.css +7 -7
  61. package/dist/components/render-tag-tree/index.vue.js +1 -1
  62. package/dist/components/render-tree/index.script.vue.js +17 -8
  63. package/dist/components/render-tree/index.vue.d.ts +4 -1
  64. package/dist/components.d.ts +3 -1
  65. package/dist/components.ts.js +3 -1
  66. package/dist/hooks/use-t-table.d.ts +39 -0
  67. package/dist/hooks/use-t-table.ts.js +86 -0
  68. package/dist/hooks.d.ts +1 -0
  69. package/dist/hooks.ts.js +1 -0
  70. package/dist/http/helper/dataset.ts.js +3 -1
  71. package/dist/types/common.d.ts +17 -0
  72. package/dist/types/dataset.d.ts +2 -0
  73. package/package.json +2 -1
@@ -1,15 +1,15 @@
1
1
 
2
- .origin-data-content[data-v-c2cxomaj] {
2
+ .origin-data-content[data-v-gbq4qoi6] {
3
3
  padding: 24px;
4
4
  height: calc(100% - 52px - 44px);
5
5
  }
6
- .origin-data-panel[data-v-c2cxomaj] {
6
+ .origin-data-panel[data-v-gbq4qoi6] {
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-c2cxomaj] {
13
+ .origin-data-panel .toolbar-search[data-v-gbq4qoi6] {
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-c2cxomaj";
2
+ script.__scopeId = "data-v-gbq4qoi6";
3
3
  script.__file = "./src/components/render-dataset-detail-origin-data/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -53,7 +53,6 @@ export default /*@__PURE__*/ _defineComponent({
53
53
  });
54
54
  return (_ctx, _cache)=>{
55
55
  return _openBlock(), _createBlock(RenderHeader, {
56
- title: "数据集",
57
56
  loading: loading.value,
58
57
  tabs: tabs.value,
59
58
  "group-type": _ctx.groupType,
@@ -1,15 +1,15 @@
1
1
 
2
- .main-content[data-v-blofmnw6] {
2
+ .main-content[data-v-hrdr5nsu] {
3
3
  padding: 20px 24px;
4
4
  height: 100%;
5
5
  }
6
- .main-panel[data-v-blofmnw6] {
6
+ .main-panel[data-v-hrdr5nsu] {
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-blofmnw6] {
13
+ .main-search[data-v-hrdr5nsu] {
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-blofmnw6";
2
+ script.__scopeId = "data-v-hrdr5nsu";
3
3
  script.__file = "./src/components/render-dataset-list/components/main.vue";
4
4
  import './main.vue.css';
5
5
  export default script;
@@ -186,8 +186,7 @@ export default /*@__PURE__*/ _defineComponent({
186
186
  const handleGetDatasetList = (params)=>{
187
187
  return getDatasetList(_object_spread_props(_object_spread({}, props.search, params), {
188
188
  groupType: props.groupType,
189
- tagId: props.tagId,
190
- tagName: props.tagName
189
+ tagId: props.tagId
191
190
  }));
192
191
  };
193
192
  const { tableData, pagination, isLoading, handlePageChange, handleSort, handlePageSizeChange, resetPagination, triggerApi } = useTable(handleGetDatasetList, 'results', {
@@ -235,7 +234,6 @@ export default /*@__PURE__*/ _defineComponent({
235
234
  ()=>props.search,
236
235
  ()=>props.spaceId,
237
236
  ()=>props.tagId,
238
- ()=>props.tagName,
239
237
  ()=>props.groupType
240
238
  ], ()=>{
241
239
  resetPagination();
@@ -1,5 +1,5 @@
1
1
 
2
- .dataset-main[data-v-umlaqss2] {
2
+ .dataset-main[data-v-7tasxyl9] {
3
3
  height: calc(100% - 90px);
4
4
  margin-top: 2px;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-umlaqss2";
2
+ script.__scopeId = "data-v-7tasxyl9";
3
3
  script.__file = "./src/components/render-dataset-list/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-k0k8kvep] {
2
+ .upload-file-home[data-v-0j345l0h] {
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-k0k8kvep]:hover {
9
+ .upload-file-home[data-v-0j345l0h]:hover {
10
10
  border: 1px solid #3A84FF;
11
11
  }
12
- .upload-file-home:hover .file-icons[data-v-k0k8kvep] {
12
+ .upload-file-home:hover .file-icons[data-v-0j345l0h] {
13
13
  display: flex;
14
14
  }
15
- .upload-file-home .file-icon[data-v-k0k8kvep] {
15
+ .upload-file-home .file-icon[data-v-0j345l0h] {
16
16
  font-size: 32px;
17
17
  }
18
- .upload-file-home .file-content[data-v-k0k8kvep] {
18
+ .upload-file-home .file-content[data-v-0j345l0h] {
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-k0k8kvep] {
26
+ .upload-file-home .file-content .file-name[data-v-0j345l0h] {
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-k0k8kvep] {
31
+ .upload-file-home .file-content .file-size[data-v-0j345l0h] {
32
32
  font-size: 12px;
33
33
  color: #979BA5;
34
34
  line-height: 20px;
35
35
  }
36
- .upload-file-home .file-icons[data-v-k0k8kvep] {
36
+ .upload-file-home .file-icons[data-v-0j345l0h] {
37
37
  display: none;
38
38
  color: #979BA5;
39
39
  }
40
- .upload-file-home .file-icons .bkaidev-icon[data-v-k0k8kvep] {
40
+ .upload-file-home .file-icons .bkaidev-icon[data-v-0j345l0h] {
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-k0k8kvep]:hover {
45
+ .upload-file-home .file-icons .bkaidev-icon[data-v-0j345l0h]:hover {
46
46
  color: #3A84FF;
47
47
  }
48
- .upload-file-home .file-icons .bkaidev-delete[data-v-k0k8kvep] {
48
+ .upload-file-home .file-icons .bkaidev-delete[data-v-0j345l0h] {
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-k0k8kvep";
2
+ script.__scopeId = "data-v-0j345l0h";
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-rx9h9go9] {
2
+ .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-h604d4rt] {
3
3
  color: #EA3636;
4
4
  }
5
- .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-rx9h9go9], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-rx9h9go9], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-rx9h9go9] {
5
+ .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-h604d4rt], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-h604d4rt], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-h604d4rt] {
6
6
  color: #3A84FF;
7
7
  }
8
- .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-rx9h9go9] {
8
+ .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-h604d4rt] {
9
9
  color: #C4C6CC;
10
10
  }
11
- .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-rx9h9go9] {
11
+ .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-h604d4rt] {
12
12
  color: #2DCB56;
13
13
  }
14
- .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-rx9h9go9] {
14
+ .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-h604d4rt] {
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-rx9h9go9";
2
+ script.__scopeId = "data-v-h604d4rt";
3
3
  script.__file = "./src/components/render-file-type-icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,13 +1,13 @@
1
1
 
2
- .header-home[data-v-4nh01ybp] {
2
+ .header-home[data-v-6dzllhju] {
3
3
  width: 100%;
4
4
  background: #FFFFFF;
5
5
  box-shadow: 0 3px 4px 0 #0000000a;
6
6
  }
7
- .render-tab[data-v-4nh01ybp] {
7
+ .render-tab[data-v-6dzllhju] {
8
8
  border-bottom: 2px solid transparent;
9
9
  }
10
- .render-tab.active[data-v-4nh01ybp] {
10
+ .render-tab.active[data-v-6dzllhju] {
11
11
  color: #3A84FF;
12
12
  border-bottom: 2px solid #3A84FF;
13
13
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-4nh01ybp";
2
+ script.__scopeId = "data-v-6dzllhju";
3
3
  script.__file = "./src/components/render-header/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,20 +1,20 @@
1
1
 
2
- .dislike-icon[data-v-ta3qbnzv] {
2
+ .dislike-icon[data-v-7i8l7mf8] {
3
3
  transform: rotateX(180deg);
4
4
  }
5
- .option-items[data-v-ta3qbnzv] {
5
+ .option-items[data-v-7i8l7mf8] {
6
6
  padding: 1px 8px;
7
7
  background-color: #F0F1F5;
8
8
  line-height: 22px;
9
9
  border-radius: 2px;
10
10
  }
11
- .option-items[data-v-ta3qbnzv]:hover {
11
+ .option-items[data-v-7i8l7mf8]:hover {
12
12
  background-color: #E1ECFF;
13
13
  color: #3A84FF;
14
14
  }
15
- .option-items-selected[data-v-ta3qbnzv]{
15
+ .option-items-selected[data-v-7i8l7mf8]{
16
16
  background-color: #E1ECFF;
17
17
  }
18
- [data-v-ta3qbnzv] .bk-form-item {
18
+ [data-v-7i8l7mf8] .bk-form-item {
19
19
  margin-bottom: 17px;
20
20
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-ta3qbnzv";
2
+ script.__scopeId = "data-v-7i8l7mf8";
3
3
  script.__file = "./src/components/render-like/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,12 +1,12 @@
1
1
 
2
- .router-tab[data-v-7cqptncj] {
2
+ .router-tab[data-v-hs0p2ouw] {
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-7cqptncj] {
9
+ .router-tab a[data-v-hs0p2ouw] {
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-7cqptncj] {
18
+ .router-tab a.router-link-exact-active[data-v-hs0p2ouw] {
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-7cqptncj";
2
+ script.__scopeId = "data-v-hs0p2ouw";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -0,0 +1,61 @@
1
+ import { defineComponent as _defineComponent } from 'vue';
2
+ import { unref as _unref, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from "vue";
3
+ const _hoisted_1 = {
4
+ class: "g-flex-column g-mb-40"
5
+ };
6
+ const _hoisted_2 = {
7
+ key: 0,
8
+ class: "g-text-12 g-text-gray g-flex-row g-justify-center"
9
+ };
10
+ import { isEmpty } from '../../common/util.ts.js';
11
+ export default /*@__PURE__*/ _defineComponent({
12
+ props: {
13
+ search: {},
14
+ scene: {},
15
+ description: {}
16
+ },
17
+ emits: [
18
+ "update:search"
19
+ ],
20
+ setup (__props, { emit: __emit }) {
21
+ const props = __props;
22
+ const emit = __emit;
23
+ const getDescription = ()=>{
24
+ return isEmpty(props.description) ? '暂无数据' : props.description;
25
+ };
26
+ const handleClearSearch = ()=>{
27
+ if (typeof props.search === 'string') {
28
+ emit('update:search', '');
29
+ }
30
+ if (typeof props.search === 'object') {
31
+ emit('update:search', {});
32
+ }
33
+ };
34
+ return (_ctx, _cache)=>{
35
+ const _component_bk_exception = _resolveComponent("bk-exception");
36
+ return _openBlock(), _createElementBlock("section", _hoisted_1, [
37
+ _createVNode(_component_bk_exception, {
38
+ class: _normalizeClass([
39
+ 'g-exception',
40
+ props.scene === 'page' ? 'g-mt-100' : 'g-mt-30'
41
+ ]),
42
+ scene: props.scene,
43
+ type: _unref(isEmpty)(props.search) ? 'empty' : 'search-empty',
44
+ description: _unref(isEmpty)(props.search) ? getDescription() : '搜索结果为空'
45
+ }, null, 8 /* PROPS */ , [
46
+ "class",
47
+ "scene",
48
+ "type",
49
+ "description"
50
+ ]),
51
+ !_unref(isEmpty)(props.search) ? (_openBlock(), _createElementBlock("div", _hoisted_2, [
52
+ _cache[0] || (_cache[0] = _createTextVNode(" 可以尝试调整筛选条件或 ")),
53
+ _createElementVNode("button", {
54
+ class: "g-text-blue g-cursor-pointer g-ml-4",
55
+ onClick: handleClearSearch
56
+ }, " 清空筛选条件 ")
57
+ ])) : _createCommentVNode("v-if", true)
58
+ ]);
59
+ };
60
+ }
61
+ });
@@ -0,0 +1,20 @@
1
+ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ props: __VLS_PrettifyLocal<{
3
+ search?: T;
4
+ scene?: "page" | "part";
5
+ description?: string;
6
+ } & {
7
+ "onUpdate:search"?: (data: T) => any;
8
+ }> & import("vue").PublicProps;
9
+ expose: (exposed: {}) => void;
10
+ attrs: any;
11
+ slots: {};
12
+ emit: (e: "update:search", data: T) => void;
13
+ }>) => import("vue").VNode & {
14
+ __ctx?: Awaited<typeof __VLS_setup>;
15
+ };
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
18
+ type __VLS_PrettifyLocal<T> = {
19
+ [K in keyof T as K]: T[K];
20
+ } & {};
@@ -0,0 +1,3 @@
1
+ import script from './index.script.vue.js.js';
2
+ script.__file = "./src/components/render-search-empty/index.vue";
3
+ export default script;