@blueking/ai-ui-sdk 0.2.0-beta.5 → 0.2.0-beta.7
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.
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +8 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-checkbox/index.script.vue.js.js +23 -4
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.d.ts +1 -0
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.script.vue.js.js +4 -2
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +3 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/index.vue.css +2 -2
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.d.ts +9 -5
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +5 -5
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +3 -3
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-like/index.vue.css +5 -5
- package/dist/components/render-like/index.vue.d.ts +3 -3
- package/dist/components/render-like/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components/render-search-empty/index.vue.d.ts +9 -5
- package/dist/components/render-search-select/index.script.vue.js.js +176 -20
- package/dist/components/render-search-select/index.vue.d.ts +14 -5
- package/dist/components/render-t-table/index.vue.css +27 -27
- package/dist/components/render-t-table/index.vue.d.ts +9 -5
- package/dist/components/render-t-table/index.vue.js +1 -1
- package/dist/components/render-tag-tree/index.vue.css +7 -7
- package/dist/components/render-tag-tree/index.vue.js +1 -1
- package/dist/components/render-tree/index.script.vue.js +22 -1
- package/dist/components/render-tree/index.vue.d.ts +9 -5
- package/dist/css/tailwind.css +35 -1
- package/dist/hooks/use-chat.d.ts +20 -12
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.ts.js +1 -0
- package/dist/http/helper/agent.ts.js +2 -0
- package/dist/types/agent.d.ts +2 -0
- package/dist/types/enum.d.ts +5 -0
- package/dist/types/enum.ts.js +6 -0
- package/dist/types/tool.d.ts +2 -1
- package/package.json +2 -2
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
|
|
2
|
-
.content[data-v-
|
|
2
|
+
.content[data-v-4gnrdmsb] {
|
|
3
3
|
padding: 18px 24px 0;
|
|
4
4
|
height: 100%;
|
|
5
5
|
overflow: auto;
|
|
6
6
|
}
|
|
7
|
-
.data-set-review-slider .value-content[data-v-
|
|
7
|
+
.data-set-review-slider .value-content[data-v-4gnrdmsb] {
|
|
8
8
|
padding: 16px;
|
|
9
9
|
border: 1px solid #DCDEE5;
|
|
10
10
|
line-height: 22px;
|
|
11
11
|
}
|
|
12
|
-
.data-set-review-slider .review-data[data-v-
|
|
12
|
+
.data-set-review-slider .review-data[data-v-4gnrdmsb] {
|
|
13
13
|
height: calc(100% - 337px);
|
|
14
14
|
padding: 18px 24px;
|
|
15
15
|
}
|
|
16
|
-
.data-set-review-slider .review-level[data-v-
|
|
16
|
+
.data-set-review-slider .review-level[data-v-4gnrdmsb] {
|
|
17
17
|
box-shadow: 0 -2px 4px 0 #1919291f;
|
|
18
18
|
height: 337px;
|
|
19
19
|
padding: 16px 24px 24px;
|
|
20
20
|
}
|
|
21
|
-
.data-set-review-slider .review-level .level-score[data-v-
|
|
21
|
+
.data-set-review-slider .review-level .level-score[data-v-4gnrdmsb] {
|
|
22
22
|
gap: 50px;
|
|
23
23
|
}
|
|
24
|
-
.data-set-review-slider .review-level .level-score .bk-form-item[data-v-
|
|
24
|
+
.data-set-review-slider .review-level .level-score .bk-form-item[data-v-4gnrdmsb] {
|
|
25
25
|
flex: 1;
|
|
26
26
|
}
|
|
27
|
-
.data-set-review-slider .bold-title[data-v-
|
|
27
|
+
.data-set-review-slider .bold-title[data-v-4gnrdmsb] .bk-form-label {
|
|
28
28
|
font-weight: bold;
|
|
29
29
|
font-size: 14px;
|
|
30
30
|
}
|
|
31
|
-
.data-set-review-slider[data-v-
|
|
31
|
+
.data-set-review-slider[data-v-4gnrdmsb] .bk-sideslider-title {
|
|
32
32
|
justify-content: space-between;
|
|
33
33
|
width: 100%;
|
|
34
34
|
}
|
|
35
|
-
.data-set-review-slider[data-v-
|
|
35
|
+
.data-set-review-slider[data-v-4gnrdmsb] .bk-modal-content {
|
|
36
36
|
height: calc(100% - 100px) !important;
|
|
37
37
|
scrollbar-gutter: inherit !important;
|
|
38
38
|
}
|
|
39
|
-
.data-set-review-slider[data-v-
|
|
39
|
+
.data-set-review-slider[data-v-4gnrdmsb] .bk-modal-content >div, .data-set-review-slider[data-v-4gnrdmsb] .bk-modal-content .bk-sideslider-content {
|
|
40
40
|
height: 100%;
|
|
41
41
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './index.script.vue.js.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-4gnrdmsb";
|
|
3
3
|
script.__file = "./src/components/render-dataset/components/review-dataset-data/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-
|
|
2
|
+
.origin-data-content[data-v-ps7betud] {
|
|
3
3
|
padding: 24px;
|
|
4
4
|
height: calc(100% - 52px - 44px);
|
|
5
5
|
}
|
|
6
|
-
.origin-data-panel[data-v-
|
|
6
|
+
.origin-data-panel[data-v-ps7betud] {
|
|
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-
|
|
13
|
+
.origin-data-panel .toolbar-search[data-v-ps7betud] {
|
|
14
14
|
width: 6.17rem;
|
|
15
15
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
.main-content[data-v-
|
|
2
|
+
.main-content[data-v-yd8xh6xs] {
|
|
3
3
|
padding: 20px 24px;
|
|
4
4
|
height: 100%;
|
|
5
5
|
}
|
|
6
|
-
.main-panel[data-v-
|
|
6
|
+
.main-panel[data-v-yd8xh6xs] {
|
|
7
7
|
height: 100%;
|
|
8
8
|
padding: 20px 24px 24px;
|
|
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-
|
|
13
|
+
.main-search[data-v-yd8xh6xs] {
|
|
14
14
|
width: 6.17rem;
|
|
15
15
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
.upload-file-home[data-v-
|
|
2
|
+
.upload-file-home[data-v-pwt6lkwg] {
|
|
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-
|
|
9
|
+
.upload-file-home[data-v-pwt6lkwg]:hover {
|
|
10
10
|
border: 1px solid #3A84FF;
|
|
11
11
|
}
|
|
12
|
-
.upload-file-home:hover .file-icons[data-v-
|
|
12
|
+
.upload-file-home:hover .file-icons[data-v-pwt6lkwg] {
|
|
13
13
|
display: flex;
|
|
14
14
|
}
|
|
15
|
-
.upload-file-home .file-icon[data-v-
|
|
15
|
+
.upload-file-home .file-icon[data-v-pwt6lkwg] {
|
|
16
16
|
font-size: 32px;
|
|
17
17
|
}
|
|
18
|
-
.upload-file-home .file-content[data-v-
|
|
18
|
+
.upload-file-home .file-content[data-v-pwt6lkwg] {
|
|
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-
|
|
26
|
+
.upload-file-home .file-content .file-name[data-v-pwt6lkwg] {
|
|
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-
|
|
31
|
+
.upload-file-home .file-content .file-size[data-v-pwt6lkwg] {
|
|
32
32
|
font-size: 12px;
|
|
33
33
|
color: #979BA5;
|
|
34
34
|
line-height: 20px;
|
|
35
35
|
}
|
|
36
|
-
.upload-file-home .file-icons[data-v-
|
|
36
|
+
.upload-file-home .file-icons[data-v-pwt6lkwg] {
|
|
37
37
|
display: none;
|
|
38
38
|
color: #979BA5;
|
|
39
39
|
}
|
|
40
|
-
.upload-file-home .file-icons .bkaidev-icon[data-v-
|
|
40
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-pwt6lkwg] {
|
|
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-
|
|
45
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-pwt6lkwg]:hover {
|
|
46
46
|
color: #3A84FF;
|
|
47
47
|
}
|
|
48
|
-
.upload-file-home .file-icons .bkaidev-delete[data-v-
|
|
48
|
+
.upload-file-home .file-icons .bkaidev-delete[data-v-pwt6lkwg] {
|
|
49
49
|
margin: 0;
|
|
50
50
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { IFileInfo } from '@/types/file';
|
|
2
|
-
declare const __VLS_export: <T extends IFileInfo>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>,
|
|
3
|
-
props: __VLS_PrettifyLocal<{
|
|
2
|
+
declare const __VLS_export: <T extends IFileInfo>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
4
4
|
file: T;
|
|
5
5
|
} & {
|
|
6
6
|
onDelete?: (file: T) => any;
|
|
7
|
-
}> &
|
|
7
|
+
}> & (typeof globalThis extends {
|
|
8
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
9
|
+
} ? P : {});
|
|
8
10
|
expose: (exposed: {}) => void;
|
|
9
11
|
attrs: any;
|
|
10
12
|
slots: {
|
|
@@ -16,6 +18,8 @@ declare const __VLS_export: <T extends IFileInfo>(__VLS_props: NonNullable<Await
|
|
|
16
18
|
};
|
|
17
19
|
declare const _default: typeof __VLS_export;
|
|
18
20
|
export default _default;
|
|
19
|
-
type __VLS_PrettifyLocal<T> = {
|
|
21
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
22
|
+
[K in keyof T]: T[K];
|
|
23
|
+
} : {
|
|
20
24
|
[K in keyof T as K]: T[K];
|
|
21
|
-
} & {};
|
|
25
|
+
}) & {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-
|
|
2
|
+
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-fdafftei] {
|
|
3
3
|
color: #EA3636;
|
|
4
4
|
}
|
|
5
|
-
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-
|
|
5
|
+
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-fdafftei], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-fdafftei], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-fdafftei] {
|
|
6
6
|
color: #3A84FF;
|
|
7
7
|
}
|
|
8
|
-
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-
|
|
8
|
+
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-fdafftei] {
|
|
9
9
|
color: #C4C6CC;
|
|
10
10
|
}
|
|
11
|
-
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-
|
|
11
|
+
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-fdafftei] {
|
|
12
12
|
color: #2DCB56;
|
|
13
13
|
}
|
|
14
|
-
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-
|
|
14
|
+
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-fdafftei] {
|
|
15
15
|
color: #14A568;
|
|
16
16
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
.header-home[data-v-
|
|
2
|
+
.header-home[data-v-ikccyals] {
|
|
3
3
|
width: 100%;
|
|
4
4
|
background: #FFFFFF;
|
|
5
5
|
box-shadow: 0 3px 4px 0 #0000000a;
|
|
6
6
|
}
|
|
7
|
-
.render-tab[data-v-
|
|
7
|
+
.render-tab[data-v-ikccyals] {
|
|
8
8
|
border-bottom: 2px solid transparent;
|
|
9
9
|
}
|
|
10
|
-
.render-tab.active[data-v-
|
|
10
|
+
.render-tab.active[data-v-ikccyals] {
|
|
11
11
|
color: #3A84FF;
|
|
12
12
|
border-bottom: 2px solid #3A84FF;
|
|
13
13
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
.dislike-icon[data-v-
|
|
2
|
+
.dislike-icon[data-v-3xpsbzww] {
|
|
3
3
|
transform: rotateX(180deg);
|
|
4
4
|
}
|
|
5
|
-
.option-items[data-v-
|
|
5
|
+
.option-items[data-v-3xpsbzww] {
|
|
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-
|
|
11
|
+
.option-items[data-v-3xpsbzww]:hover {
|
|
12
12
|
background-color: #E1ECFF;
|
|
13
13
|
color: #3A84FF;
|
|
14
14
|
}
|
|
15
|
-
.option-items-selected[data-v-
|
|
15
|
+
.option-items-selected[data-v-3xpsbzww]{
|
|
16
16
|
background-color: #E1ECFF;
|
|
17
17
|
}
|
|
18
|
-
[data-v-
|
|
18
|
+
[data-v-3xpsbzww] .bk-form-item {
|
|
19
19
|
margin-bottom: 17px;
|
|
20
20
|
}
|
|
@@ -10,11 +10,11 @@ interface IProps {
|
|
|
10
10
|
popoverOptions?: Record<string, unknown>;
|
|
11
11
|
tooltipOptions?: Record<string, unknown>;
|
|
12
12
|
}
|
|
13
|
-
declare var
|
|
13
|
+
declare var __VLS_8: {}, __VLS_10: {};
|
|
14
14
|
type __VLS_Slots = {} & {
|
|
15
|
-
like?: (props: typeof
|
|
15
|
+
like?: (props: typeof __VLS_8) => any;
|
|
16
16
|
} & {
|
|
17
|
-
dislike?: (props: typeof
|
|
17
|
+
dislike?: (props: typeof __VLS_10) => any;
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_base: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
20
|
"update-session-content-list": (data: ISessionFeedback) => any;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.router-tab[data-v-
|
|
2
|
+
.router-tab[data-v-8096919w] {
|
|
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 24px;
|
|
8
8
|
}
|
|
9
|
-
.router-tab a[data-v-
|
|
9
|
+
.router-tab a[data-v-8096919w] {
|
|
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-
|
|
18
|
+
.router-tab a.router-link-exact-active[data-v-8096919w] {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
|
21
21
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
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">>,
|
|
2
|
-
props: __VLS_PrettifyLocal<{
|
|
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_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
2
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
3
3
|
search?: T;
|
|
4
4
|
scene?: "page" | "part";
|
|
5
5
|
description?: string;
|
|
6
6
|
} & {
|
|
7
7
|
"onUpdate:search"?: (data: T) => any;
|
|
8
|
-
}> &
|
|
8
|
+
}> & (typeof globalThis extends {
|
|
9
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
10
|
+
} ? P : {});
|
|
9
11
|
expose: (exposed: {}) => void;
|
|
10
12
|
attrs: any;
|
|
11
13
|
slots: {};
|
|
@@ -15,6 +17,8 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
|
|
|
15
17
|
};
|
|
16
18
|
declare const _default: typeof __VLS_export;
|
|
17
19
|
export default _default;
|
|
18
|
-
type __VLS_PrettifyLocal<T> = {
|
|
20
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
21
|
+
[K in keyof T]: T[K];
|
|
22
|
+
} : {
|
|
19
23
|
[K in keyof T as K]: T[K];
|
|
20
|
-
} & {};
|
|
24
|
+
}) & {};
|
|
@@ -1,6 +1,63 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function ownKeys(object, enumerableOnly) {
|
|
30
|
+
var keys = Object.keys(object);
|
|
31
|
+
if (Object.getOwnPropertySymbols) {
|
|
32
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
33
|
+
if (enumerableOnly) {
|
|
34
|
+
symbols = symbols.filter(function(sym) {
|
|
35
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
keys.push.apply(keys, symbols);
|
|
39
|
+
}
|
|
40
|
+
return keys;
|
|
41
|
+
}
|
|
42
|
+
function _object_spread_props(target, source) {
|
|
43
|
+
source = source != null ? source : {};
|
|
44
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
45
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
46
|
+
} else {
|
|
47
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
48
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return target;
|
|
52
|
+
}
|
|
1
53
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
|
-
import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
3
|
-
|
|
54
|
+
import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock } from "vue";
|
|
55
|
+
const _hoisted_1 = {
|
|
56
|
+
class: "g-flex-row"
|
|
57
|
+
};
|
|
58
|
+
import { computed, onBeforeMount, ref, toRef } from 'vue';
|
|
59
|
+
import { useCommonHttp } from '../../hooks/use-common-http.ts.js';
|
|
60
|
+
import { GroupType, Module } from '../../types/enum.ts.js';
|
|
4
61
|
export default /*@__PURE__*/ _defineComponent({
|
|
5
62
|
props: {
|
|
6
63
|
data: {},
|
|
@@ -11,7 +68,13 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
11
68
|
},
|
|
12
69
|
getMenuList: {
|
|
13
70
|
type: Function
|
|
14
|
-
}
|
|
71
|
+
},
|
|
72
|
+
isShowTagSearch: {
|
|
73
|
+
type: Boolean
|
|
74
|
+
},
|
|
75
|
+
apiPrefix: {},
|
|
76
|
+
spaceId: {},
|
|
77
|
+
module: {}
|
|
15
78
|
},
|
|
16
79
|
emits: [
|
|
17
80
|
"update:modelValue"
|
|
@@ -19,7 +82,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
19
82
|
setup (__props, { emit: __emit }) {
|
|
20
83
|
const props = __props;
|
|
21
84
|
const emits = __emit;
|
|
22
|
-
const
|
|
85
|
+
const { getTagTree } = useCommonHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
86
|
+
const tagList = ref([]);
|
|
87
|
+
const isLoadingTagList = ref(false);
|
|
88
|
+
const renderSearchSelectValue = computed(()=>Object.keys(props.modelValue || {}).reduce((acc, cur)=>{
|
|
89
|
+
if (cur === 'tagId') return acc;
|
|
23
90
|
const item = props.data.find((item)=>item.id === cur || (item === null || item === void 0 ? void 0 : item.multipleKey) === cur);
|
|
24
91
|
const value = props.modelValue[cur];
|
|
25
92
|
if (item === null || item === void 0 ? void 0 : item.multiple) {
|
|
@@ -71,6 +138,28 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
71
138
|
}
|
|
72
139
|
return acc;
|
|
73
140
|
}, []));
|
|
141
|
+
const getTagIds = ()=>{
|
|
142
|
+
const tagId = props.modelValue.tagId;
|
|
143
|
+
if (tagId) {
|
|
144
|
+
const tagIds = [];
|
|
145
|
+
const buildTagIds = (tag)=>{
|
|
146
|
+
const currentTagId = tag.tagId;
|
|
147
|
+
tagIds.push(currentTagId);
|
|
148
|
+
if (currentTagId === tagId) {
|
|
149
|
+
return true;
|
|
150
|
+
}
|
|
151
|
+
const isHit = (tag.children || []).some(buildTagIds);
|
|
152
|
+
if (isHit) {
|
|
153
|
+
return true;
|
|
154
|
+
}
|
|
155
|
+
tagIds.pop();
|
|
156
|
+
return false;
|
|
157
|
+
};
|
|
158
|
+
tagList.value.some(buildTagIds);
|
|
159
|
+
return tagIds;
|
|
160
|
+
}
|
|
161
|
+
return [];
|
|
162
|
+
};
|
|
74
163
|
const hackValue = (value, valueType)=>{
|
|
75
164
|
switch(valueType){
|
|
76
165
|
case 'number':
|
|
@@ -79,7 +168,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
79
168
|
return typeof value === 'string' ? String(value).trim() : value;
|
|
80
169
|
}
|
|
81
170
|
};
|
|
82
|
-
const
|
|
171
|
+
const handleUpdateSearchSelectValue = (values)=>{
|
|
83
172
|
// 不在模型中的数据,直接保留
|
|
84
173
|
const keepModelValue = Object.keys(props.modelValue).reduce((acc, cur)=>{
|
|
85
174
|
const item = props.data.find((item)=>item.id === cur || (item === null || item === void 0 ? void 0 : item.multipleKey) === cur);
|
|
@@ -115,23 +204,90 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
115
204
|
}, keepModelValue);
|
|
116
205
|
emits('update:modelValue', modelValue);
|
|
117
206
|
};
|
|
207
|
+
const handleUpdateCascaderValue = (tagIds)=>{
|
|
208
|
+
const tagId = tagIds[tagIds.length - 1];
|
|
209
|
+
// 防止组件误触发
|
|
210
|
+
if (tagId !== props.modelValue.tagId) {
|
|
211
|
+
emits('update:modelValue', _object_spread_props(_object_spread({}, props.modelValue), {
|
|
212
|
+
tagId
|
|
213
|
+
}));
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
const handleGetTagTree = ()=>{
|
|
217
|
+
if (!props.isShowTagSearch) return;
|
|
218
|
+
const tagTreeModuleMap = {
|
|
219
|
+
[Module.Tool]: {
|
|
220
|
+
module: Module.Tool,
|
|
221
|
+
subModule: Module.Tool
|
|
222
|
+
},
|
|
223
|
+
[Module.Mcp]: {
|
|
224
|
+
module: Module.Mcp,
|
|
225
|
+
subModule: Module.Mcp
|
|
226
|
+
},
|
|
227
|
+
[Module.Agent]: {
|
|
228
|
+
module: Module.Agent,
|
|
229
|
+
subModule: Module.Agent
|
|
230
|
+
},
|
|
231
|
+
[Module.Collection]: {
|
|
232
|
+
module: Module.Collection,
|
|
233
|
+
subModule: Module.Collection
|
|
234
|
+
},
|
|
235
|
+
[Module.Prompt]: {
|
|
236
|
+
module: Module.Prompt,
|
|
237
|
+
subModule: Module.Prompt
|
|
238
|
+
},
|
|
239
|
+
[Module.Skill]: {
|
|
240
|
+
module: Module.Skill,
|
|
241
|
+
subModule: Module.Skill
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
const tagTreeModuleConfig = tagTreeModuleMap[props.module];
|
|
245
|
+
isLoadingTagList.value = true;
|
|
246
|
+
getTagTree(tagTreeModuleConfig.module, tagTreeModuleConfig.subModule, '', GroupType.All).then((data)=>{
|
|
247
|
+
tagList.value = data.tree;
|
|
248
|
+
}).finally(()=>{
|
|
249
|
+
isLoadingTagList.value = false;
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
onBeforeMount(handleGetTagTree);
|
|
118
253
|
return (_ctx, _cache)=>{
|
|
119
254
|
const _component_bk_search_select = _resolveComponent("bk-search-select");
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
255
|
+
const _component_bk_cascader = _resolveComponent("bk-cascader");
|
|
256
|
+
return _openBlock(), _createElementBlock("section", _hoisted_1, [
|
|
257
|
+
_createVNode(_component_bk_search_select, {
|
|
258
|
+
"unique-select": "",
|
|
259
|
+
"value-behavior": "need-key",
|
|
260
|
+
class: "g-flex-1",
|
|
261
|
+
"model-value": renderSearchSelectValue.value,
|
|
262
|
+
data: _ctx.data,
|
|
263
|
+
placeholder: _ctx.placeholder,
|
|
264
|
+
"validate-values": _ctx.validateValues,
|
|
265
|
+
"get-menu-list": _ctx.getMenuList,
|
|
266
|
+
"onUpdate:modelValue": handleUpdateSearchSelectValue
|
|
267
|
+
}, null, 8 /* PROPS */ , [
|
|
268
|
+
"model-value",
|
|
269
|
+
"data",
|
|
270
|
+
"placeholder",
|
|
271
|
+
"validate-values",
|
|
272
|
+
"get-menu-list"
|
|
273
|
+
]),
|
|
274
|
+
_ctx.isShowTagSearch ? (_openBlock(), _createBlock(_component_bk_cascader, {
|
|
275
|
+
key: 0,
|
|
276
|
+
class: "g-width-200 g-ml-8",
|
|
277
|
+
clearable: "",
|
|
278
|
+
placeholder: "搜索标签",
|
|
279
|
+
"id-key": "tagId",
|
|
280
|
+
"name-key": "tagName",
|
|
281
|
+
"show-complete-name": false,
|
|
282
|
+
loading: isLoadingTagList.value,
|
|
283
|
+
list: tagList.value,
|
|
284
|
+
"model-value": getTagIds(),
|
|
285
|
+
"onUpdate:modelValue": handleUpdateCascaderValue
|
|
286
|
+
}, null, 8 /* PROPS */ , [
|
|
287
|
+
"loading",
|
|
288
|
+
"list",
|
|
289
|
+
"model-value"
|
|
290
|
+
])) : _createCommentVNode("v-if", true)
|
|
135
291
|
]);
|
|
136
292
|
};
|
|
137
293
|
}
|