@blueking/ai-ui-sdk 0.1.16-beta.1 → 0.1.16-beta.3
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-aside/index.vue.css +9 -9
- package/dist/components/render-aside/index.vue.js +1 -1
- package/dist/components/render-auto-height-textarea/index.script.vue.js.js +1 -1
- 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.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- 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/dataset-data-level/{index.script.vue.js.js → index.script.vue.js} +12 -2
- package/dist/components/render-dataset/components/dataset-data-level/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/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/dataset-form.script.vue.js +12 -23
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.d.ts +2 -0
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +8 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.d.ts +2 -0
- 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/index.vue.css +1 -1
- package/dist/components/render-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +5 -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.script.vue.js.js +8 -2
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.d.ts +2 -0
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +8 -3
- package/dist/components/render-dataset-list/index.script.vue.js.js +8 -2
- package/dist/components/render-dataset-list/index.vue.d.ts +2 -0
- package/dist/components/render-expand-collapse/index.vue.css +3 -3
- package/dist/components/render-expand-collapse/index.vue.js +1 -1
- package/dist/components/render-file-card/index.vue.css +11 -11
- 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 +5 -5
- package/dist/components/render-header/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/hooks/use-chat.d.ts +1 -0
- package/dist/hooks/use-chat.ts.js +1 -0
- package/dist/hooks/use-form-rule.d.ts +1 -1
- package/dist/hooks/use-form-rule.ts.js +101 -0
- package/dist/hooks/use-session-http.d.ts +2 -1
- package/dist/hooks/use-session-http.ts.js +8 -1
- package/dist/http/helper/agent.ts.js +6 -1
- package/dist/types/agent.d.ts +10 -0
- package/dist/types/common.d.ts +1 -1
- package/dist/types/enum.d.ts +6 -1
- package/dist/types/enum.ts.js +5 -0
- package/dist/types/session.d.ts +19 -0
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
.dataset-data-api-endpoint[data-v-
|
|
2
|
+
.dataset-data-api-endpoint[data-v-9qa8c40i] {
|
|
3
3
|
line-height: 44px;
|
|
4
4
|
background: #F5F7FA;
|
|
5
5
|
border-radius: 2px;
|
|
6
6
|
padding: 0 12px;
|
|
7
7
|
}
|
|
8
|
-
[data-v-
|
|
8
|
+
[data-v-9qa8c40i] .dataset-data-api-demo .v-show-content {
|
|
9
9
|
padding: 0 !important;
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './api.script.vue.js.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-9qa8c40i";
|
|
3
3
|
script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/api.vue";
|
|
4
4
|
import './api.vue.css';
|
|
5
5
|
export default script;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './footer.script.vue.js.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-i4r33n7d";
|
|
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-
|
|
2
|
+
.plus-dataset-data[data-v-3tr6erk8] {
|
|
3
3
|
padding: 20px 24px;
|
|
4
4
|
}
|
|
5
|
-
.plus-dataset-sideslider[data-v-
|
|
5
|
+
.plus-dataset-sideslider[data-v-3tr6erk8] .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-
|
|
2
|
+
script.__scopeId = "data-v-3tr6erk8";
|
|
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;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
|
|
2
|
-
.content[data-v-
|
|
2
|
+
.content[data-v-p3smb47p] {
|
|
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-p3smb47p] {
|
|
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-p3smb47p] {
|
|
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-p3smb47p] {
|
|
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-p3smb47p] {
|
|
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-p3smb47p] {
|
|
25
25
|
flex: 1;
|
|
26
26
|
}
|
|
27
|
-
.data-set-review-slider .bold-title[data-v-
|
|
27
|
+
.data-set-review-slider .bold-title[data-v-p3smb47p] .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-p3smb47p] .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-p3smb47p] .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-p3smb47p] .bk-modal-content >div, .data-set-review-slider[data-v-p3smb47p] .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-p3smb47p";
|
|
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;
|
package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js
CHANGED
|
@@ -576,7 +576,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
576
576
|
]),
|
|
577
577
|
default: _withCtx(()=>[
|
|
578
578
|
_cache[14] || (_cache[14] = _createElementVNode("i", {
|
|
579
|
-
class:
|
|
579
|
+
class: _normalizeClass([
|
|
580
|
+
'ai-ui-sdk-icon ai-ui-sdk-gengduo-2',
|
|
581
|
+
'g-text-16 g-p-2 g-ml-12 g-text-blue g-cursor-pointer',
|
|
582
|
+
'g-hover-bg-light-gray g-hover-round'
|
|
583
|
+
])
|
|
580
584
|
}, null, -1 /* HOISTED */ ))
|
|
581
585
|
]),
|
|
582
586
|
_: 2 /* DYNAMIC */
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
.origin-data-content[data-v-
|
|
2
|
+
.origin-data-content[data-v-sxsc35xa] {
|
|
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-sxsc35xa] {
|
|
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-sxsc35xa] {
|
|
14
14
|
width: 6.17rem;
|
|
15
15
|
}
|
|
@@ -27,7 +27,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
27
27
|
type: Boolean
|
|
28
28
|
},
|
|
29
29
|
spaceId: {},
|
|
30
|
-
tabId: {}
|
|
30
|
+
tabId: {},
|
|
31
|
+
namePlaceholder: {},
|
|
32
|
+
codePlaceholder: {}
|
|
31
33
|
},
|
|
32
34
|
emits: [
|
|
33
35
|
"success-plus-dataset"
|
|
@@ -104,12 +106,16 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
104
106
|
"api-prefix": _ctx.apiPrefix,
|
|
105
107
|
"space-id": _ctx.spaceId,
|
|
106
108
|
"is-internal": _ctx.isInternal,
|
|
109
|
+
"name-placeholder": _ctx.namePlaceholder,
|
|
110
|
+
"code-placeholder": _ctx.codePlaceholder,
|
|
107
111
|
onSuccessPlus: handleSuccessPlusDataset
|
|
108
112
|
}, null, 8 /* PROPS */ , [
|
|
109
113
|
"modelValue",
|
|
110
114
|
"api-prefix",
|
|
111
115
|
"space-id",
|
|
112
|
-
"is-internal"
|
|
116
|
+
"is-internal",
|
|
117
|
+
"name-placeholder",
|
|
118
|
+
"code-placeholder"
|
|
113
119
|
])
|
|
114
120
|
]);
|
|
115
121
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
.main-content[data-v-
|
|
2
|
+
.main-content[data-v-4sffd7uy] {
|
|
3
3
|
padding: 20px 24px;
|
|
4
4
|
height: calc(100% - 52px);
|
|
5
5
|
}
|
|
6
|
-
.main-panel[data-v-
|
|
6
|
+
.main-panel[data-v-4sffd7uy] {
|
|
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-
|
|
13
|
+
.main-search[data-v-4sffd7uy] {
|
|
14
14
|
width: 6.17rem;
|
|
15
15
|
}
|
|
@@ -6,6 +6,8 @@ interface IProps {
|
|
|
6
6
|
reviewDataset?: boolean;
|
|
7
7
|
spaceId?: string;
|
|
8
8
|
tabId: EnumCharacter;
|
|
9
|
+
namePlaceholder?: string;
|
|
10
|
+
codePlaceholder?: string;
|
|
9
11
|
}
|
|
10
12
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
13
|
"success-plus-dataset": (data: IDataset) => any;
|
|
@@ -487,9 +487,14 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
487
487
|
], 2 /* CLASS */ )
|
|
488
488
|
]),
|
|
489
489
|
default: _withCtx(()=>[
|
|
490
|
-
|
|
491
|
-
class:
|
|
492
|
-
|
|
490
|
+
_createElementVNode("i", {
|
|
491
|
+
class: _normalizeClass([
|
|
492
|
+
'ai-ui-sdk-icon ai-ui-sdk-gengduo-2',
|
|
493
|
+
'g-text-16 g-p-2 g-ml-12 g-cursor-pointer',
|
|
494
|
+
'g-hover-bg-light-gray g-hover-round',
|
|
495
|
+
isDatasetManagePermission(row) ? 'g-text-blue' : ''
|
|
496
|
+
])
|
|
497
|
+
}, null, 2 /* CLASS */ )
|
|
493
498
|
]),
|
|
494
499
|
_: 2 /* DYNAMIC */
|
|
495
500
|
}, 1536 /* NEED_PATCH, DYNAMIC_SLOTS */ )
|
|
@@ -12,7 +12,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
12
12
|
reviewDataset: {
|
|
13
13
|
type: Boolean
|
|
14
14
|
},
|
|
15
|
-
tabId: {}
|
|
15
|
+
tabId: {},
|
|
16
|
+
namePlaceholder: {},
|
|
17
|
+
codePlaceholder: {}
|
|
16
18
|
},
|
|
17
19
|
emits: [
|
|
18
20
|
"success-plus-dataset"
|
|
@@ -31,13 +33,17 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
31
33
|
"is-internal": _ctx.isInternal,
|
|
32
34
|
"review-dataset": _ctx.reviewDataset,
|
|
33
35
|
"tab-id": _ctx.tabId,
|
|
36
|
+
"name-placeholder": _ctx.namePlaceholder,
|
|
37
|
+
"code-placeholder": _ctx.codePlaceholder,
|
|
34
38
|
onSuccessPlusDataset: handleSuccessPlusDataset
|
|
35
39
|
}, null, 8 /* PROPS */ , [
|
|
36
40
|
"api-prefix",
|
|
37
41
|
"space-id",
|
|
38
42
|
"is-internal",
|
|
39
43
|
"review-dataset",
|
|
40
|
-
"tab-id"
|
|
44
|
+
"tab-id",
|
|
45
|
+
"name-placeholder",
|
|
46
|
+
"code-placeholder"
|
|
41
47
|
])
|
|
42
48
|
], 64 /* STABLE_FRAGMENT */ );
|
|
43
49
|
};
|
|
@@ -6,6 +6,8 @@ interface IProps {
|
|
|
6
6
|
isInternal?: boolean;
|
|
7
7
|
reviewDataset?: boolean;
|
|
8
8
|
tabId: EnumCharacter;
|
|
9
|
+
namePlaceholder?: string;
|
|
10
|
+
codePlaceholder?: string;
|
|
9
11
|
}
|
|
10
12
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
13
|
"success-plus-dataset": (data: IDataset) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.expend-collapse-home[data-v-
|
|
2
|
+
.expend-collapse-home[data-v-hxggeunf] {
|
|
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-
|
|
18
|
+
.expend-collapse-home[data-v-hxggeunf]:hover {
|
|
19
19
|
background: #979BA5;
|
|
20
20
|
}
|
|
21
|
-
.expend-collapse-home.is-close[data-v-
|
|
21
|
+
.expend-collapse-home.is-close[data-v-hxggeunf] {
|
|
22
22
|
left: 0;
|
|
23
23
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
.upload-file-home[data-v-
|
|
2
|
+
.upload-file-home[data-v-fjdhmr5j] {
|
|
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-fjdhmr5j]: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-fjdhmr5j] {
|
|
13
13
|
display: flex;
|
|
14
14
|
}
|
|
15
|
-
.upload-file-home .file-icon[data-v-
|
|
15
|
+
.upload-file-home .file-icon[data-v-fjdhmr5j] {
|
|
16
16
|
font-size: 32px;
|
|
17
17
|
}
|
|
18
|
-
.upload-file-home .file-content[data-v-
|
|
18
|
+
.upload-file-home .file-content[data-v-fjdhmr5j] {
|
|
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-fjdhmr5j] {
|
|
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-fjdhmr5j] {
|
|
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-fjdhmr5j] {
|
|
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-fjdhmr5j] {
|
|
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-fjdhmr5j]: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-fjdhmr5j] {
|
|
49
49
|
margin: 0;
|
|
50
50
|
}
|
|
@@ -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-xfx9fuif] {
|
|
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-xfx9fuif], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-xfx9fuif], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-xfx9fuif] {
|
|
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-xfx9fuif] {
|
|
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-xfx9fuif] {
|
|
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-xfx9fuif] {
|
|
15
15
|
color: #14A568;
|
|
16
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.header-home[data-v-
|
|
2
|
+
.header-home[data-v-z90b6ijp] {
|
|
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-
|
|
10
|
+
.header-title[data-v-z90b6ijp] {
|
|
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-
|
|
17
|
+
.header-main[data-v-z90b6ijp] {
|
|
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-
|
|
25
|
+
.header-select[data-v-z90b6ijp] {
|
|
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-
|
|
31
|
+
.header-input[data-v-z90b6ijp] {
|
|
32
32
|
width: 300px;
|
|
33
33
|
font-size: 12px;
|
|
34
34
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.router-tab[data-v-
|
|
2
|
+
.router-tab[data-v-p5eaj3v6] {
|
|
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-
|
|
9
|
+
.router-tab a[data-v-p5eaj3v6] {
|
|
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-p5eaj3v6] {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
|
21
21
|
}
|
package/dist/hooks/use-chat.d.ts
CHANGED
|
@@ -923,6 +923,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
923
923
|
deleteSessionContentApi: (id: number) => Promise<ISessionContent>;
|
|
924
924
|
batchDeleteSessionContentsApi: (ids: number[]) => Promise<number>;
|
|
925
925
|
renameSessionApi: (sessionCode: string) => Promise<ISession>;
|
|
926
|
+
getChatGroupApi: (data: import("../types/session").IChatGroupRequest) => Promise<import("../types/session").IChatGroup>;
|
|
926
927
|
updateRequestOptions: (newOptions: Partial<typeof requestOptions>) => void;
|
|
927
928
|
};
|
|
928
929
|
export {};
|
|
@@ -669,6 +669,7 @@ export const useChat = ({ handleStart, handleText, handleReferenceDoc, handleThi
|
|
|
669
669
|
deleteSessionContentApi: (...args)=>apiImpl.deleteSessionContent(...args),
|
|
670
670
|
batchDeleteSessionContentsApi: (...args)=>apiImpl.batchDeleteSessionContents(...args),
|
|
671
671
|
renameSessionApi: (...args)=>apiImpl.renameSession(...args),
|
|
672
|
+
getChatGroupApi: (...args)=>apiImpl.getChatGroup(...args),
|
|
672
673
|
updateRequestOptions
|
|
673
674
|
};
|
|
674
675
|
};
|
|
@@ -16,7 +16,7 @@ export declare const useFormRule: (apiPrefix: string, spaceId?: Ref<string>) =>
|
|
|
16
16
|
message: () => string;
|
|
17
17
|
trigger: string;
|
|
18
18
|
};
|
|
19
|
-
getCodeRule: (type: Modules, getIsEdit
|
|
19
|
+
getCodeRule: (type: Modules, getIsEdit?: () => boolean, getData?: () => Record<string, unknown>) => {
|
|
20
20
|
validator: (value: string) => Promise<boolean>;
|
|
21
21
|
message: () => string;
|
|
22
22
|
trigger: string;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2
|
+
try {
|
|
3
|
+
var info = gen[key](arg);
|
|
4
|
+
var value = info.value;
|
|
5
|
+
} catch (error) {
|
|
6
|
+
reject(error);
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
if (info.done) {
|
|
10
|
+
resolve(value);
|
|
11
|
+
} else {
|
|
12
|
+
Promise.resolve(value).then(_next, _throw);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function _async_to_generator(fn) {
|
|
16
|
+
return function() {
|
|
17
|
+
var self = this, args = arguments;
|
|
18
|
+
return new Promise(function(resolve, reject) {
|
|
19
|
+
var gen = fn.apply(self, args);
|
|
20
|
+
function _next(value) {
|
|
21
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
22
|
+
}
|
|
23
|
+
function _throw(err) {
|
|
24
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
25
|
+
}
|
|
26
|
+
_next(undefined);
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
import { useMetaHttp } from './use-meta-http.ts.js';
|
|
31
|
+
export const useFormRule = (apiPrefix, spaceId)=>{
|
|
32
|
+
const { nameValidator, codeValidator } = useMetaHttp(apiPrefix, spaceId);
|
|
33
|
+
let nameErrorMessage = '';
|
|
34
|
+
let codeErrorMessage = '';
|
|
35
|
+
const codeRule = {
|
|
36
|
+
validator: (value)=>/^[a-zA-Z0-9-]+$/.test(value),
|
|
37
|
+
message: '需要是英文字符、数字、中划线',
|
|
38
|
+
trigger: 'change'
|
|
39
|
+
};
|
|
40
|
+
const getNameRule = (type)=>({
|
|
41
|
+
validator: function() {
|
|
42
|
+
var _ref = _async_to_generator(function*(value) {
|
|
43
|
+
try {
|
|
44
|
+
nameErrorMessage = '';
|
|
45
|
+
const res = yield nameValidator(value, type)();
|
|
46
|
+
return res.data;
|
|
47
|
+
} catch (error) {
|
|
48
|
+
nameErrorMessage = error.message;
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
return function(value) {
|
|
53
|
+
return _ref.apply(this, arguments);
|
|
54
|
+
};
|
|
55
|
+
}(),
|
|
56
|
+
message: ()=>nameErrorMessage,
|
|
57
|
+
trigger: 'change'
|
|
58
|
+
});
|
|
59
|
+
const getCodeRule = (type, getIsEdit, getData)=>({
|
|
60
|
+
validator: function() {
|
|
61
|
+
var _ref = _async_to_generator(function*(value) {
|
|
62
|
+
try {
|
|
63
|
+
codeErrorMessage = '';
|
|
64
|
+
// 编辑态不校验code
|
|
65
|
+
const isEdit = getIsEdit === null || getIsEdit === void 0 ? void 0 : getIsEdit();
|
|
66
|
+
if (isEdit) {
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
// 新建态校验code
|
|
70
|
+
const res = yield codeValidator(value, type, getData === null || getData === void 0 ? void 0 : getData())();
|
|
71
|
+
return res.data;
|
|
72
|
+
} catch (error) {
|
|
73
|
+
codeErrorMessage = error.message;
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
return function(value) {
|
|
78
|
+
return _ref.apply(this, arguments);
|
|
79
|
+
};
|
|
80
|
+
}(),
|
|
81
|
+
message: ()=>codeErrorMessage,
|
|
82
|
+
trigger: 'change'
|
|
83
|
+
});
|
|
84
|
+
const getLengthRule = (label, num)=>({
|
|
85
|
+
validator: (value)=>value.length <= num,
|
|
86
|
+
message: `${label}长度不能超过${num}`,
|
|
87
|
+
trigger: 'change'
|
|
88
|
+
});
|
|
89
|
+
const getApiUrlRule = ()=>({
|
|
90
|
+
validator: (value)=>/https?:\/\//.test(value),
|
|
91
|
+
message: '需要是http://或者https://开头的字符串',
|
|
92
|
+
trigger: 'change'
|
|
93
|
+
});
|
|
94
|
+
return {
|
|
95
|
+
codeRule,
|
|
96
|
+
getApiUrlRule,
|
|
97
|
+
getNameRule,
|
|
98
|
+
getCodeRule,
|
|
99
|
+
getLengthRule
|
|
100
|
+
};
|
|
101
|
+
};
|