@blueking/ai-ui-sdk 0.1.19-beta.3 → 0.1.19-beta.30
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/common/util.d.ts +17 -0
- package/dist/common/util.ts.js +33 -0
- package/dist/components/render-auth/auth-dialog.script.vue.js.js +26 -25
- package/dist/components/render-auth/auth-dialog.vue.d.ts +2 -1
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.d.ts +2 -1
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +9 -8
- package/dist/components/render-auto-refresh/index.vue.d.ts +2 -1
- 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.d.ts +2 -1
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.script.vue.js.js +129 -92
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.d.ts +6 -1
- 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.d.ts +3 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-review-dataset-data/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/dataset-data-level/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/dataset-data-status/index.script.vue.js.js +6 -8
- package/dist/components/render-dataset/components/dataset-data-status/index.vue.d.ts +2 -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-tool-icons/index.vue.d.ts +2 -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.d.ts +2 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.script.vue.js.js +36 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js +173 -0
- 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.d.ts +6 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +2 -2
- 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.d.ts +2 -1
- 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-footer.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +39 -44
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.d.ts +4 -2
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +26 -8
- 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 +4 -3
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.script.vue.js.js +21 -29
- 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.d.ts +2 -1
- 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/category.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.script.vue.js.js +4 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.vue.d.ts +4 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.vue.d.ts +4 -2
- 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.d.ts +2 -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.d.ts +2 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.d.ts +4 -2
- package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +8 -3
- package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +5 -3
- 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.d.ts +2 -1
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +21 -31
- package/dist/components/render-dataset/components/search-dataset/index.vue.d.ts +3 -1
- package/dist/components/render-dataset/components/search-dataset-data/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/search-operation-record/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/components/source-type-icon/index.vue.d.ts +2 -1
- package/dist/components/render-dataset/index.script.vue.js +5 -0
- package/dist/components/render-dataset/index.vue.d.ts +2 -6
- package/dist/components/render-dataset/index.vue.js +2 -3
- package/dist/components/render-dataset-detail/components/header.script.vue.js.js +1 -1
- package/dist/components/render-dataset-detail/components/header.vue.d.ts +4 -2
- package/dist/components/render-dataset-detail/components/tab.vue.d.ts +2 -1
- package/dist/components/render-dataset-detail/index.vue.d.ts +2 -1
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts +2 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +245 -388
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +7 -3
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +8 -7
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.d.ts +2 -1
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/header.script.vue.js.js +68 -0
- package/dist/components/render-dataset-list/components/header.vue.d.ts +17 -0
- package/dist/components/render-dataset-list/components/header.vue.js +3 -0
- package/dist/components/render-dataset-list/components/main.script.vue.js.js +46 -16
- package/dist/components/render-dataset-list/components/main.vue.css +5 -5
- package/dist/components/render-dataset-list/components/main.vue.d.ts +16 -6
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js +408 -0
- package/dist/components/render-dataset-list/components/table.vue.d.ts +17 -3
- package/dist/components/render-dataset-list/components/table.vue.js +1 -1
- package/dist/components/render-dataset-list/index.script.vue.js.js +117 -20
- package/dist/components/render-dataset-list/index.vue.css +8 -0
- package/dist/components/render-dataset-list/index.vue.d.ts +3 -8
- package/dist/components/render-dataset-list/index.vue.js +2 -0
- package/dist/components/render-file-card/index.script.vue.js.js +5 -15
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.d.ts +8 -7
- 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.d.ts +2 -1
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.script.vue.js.js +32 -4
- package/dist/components/render-header/index.vue.css +3 -3
- package/dist/components/render-header/index.vue.d.ts +5 -3
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-like/index.script.vue.js.js +3 -3
- package/dist/components/render-like/index.vue.css +14 -13
- package/dist/components/render-like/index.vue.d.ts +6 -5
- package/dist/components/render-like/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +4 -4
- package/dist/components/render-router-tab/index.vue.d.ts +2 -1
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components/render-search-empty/index.script.vue.js.js +61 -0
- package/dist/components/render-search-empty/index.vue.d.ts +20 -0
- package/dist/components/render-search-empty/index.vue.js +3 -0
- package/dist/components/render-search-select/index.vue.d.ts +8 -7
- package/dist/components/render-t-table/index.script.vue.js +316 -0
- package/dist/components/render-t-table/index.vue.css +207 -0
- package/dist/components/render-t-table/index.vue.d.ts +58 -0
- package/dist/components/render-t-table/index.vue.js +5 -0
- package/dist/components/render-tag-tree/index.script.vue.js.js +156 -0
- package/dist/components/render-tag-tree/index.vue.css +30 -0
- package/dist/components/render-tag-tree/index.vue.d.ts +23 -0
- package/dist/components/render-tag-tree/index.vue.js +5 -0
- package/dist/components/render-tree/index.script.vue.js +171 -0
- package/dist/components/render-tree/index.vue.css +24 -0
- package/dist/components/render-tree/index.vue.d.ts +46 -0
- package/dist/components/render-tree/index.vue.js +4 -0
- package/dist/components.d.ts +5 -1
- package/dist/components.ts.js +5 -1
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +9 -0
- package/dist/css/fonts/iconcool.ttf +0 -0
- package/dist/css/fonts/iconcool.woff +0 -0
- package/dist/css/iconcool.js +1 -1
- package/dist/css/style.css +9 -0
- package/dist/css/tailwind.css +85 -11
- package/dist/hooks/use-chat.d.ts +14 -4
- package/dist/hooks/use-common-http.d.ts +8 -0
- package/dist/hooks/use-common-http.ts.js +18 -0
- package/dist/hooks/use-dataset-http.d.ts +4 -3
- package/dist/hooks/use-dataset-http.ts.js +9 -5
- package/dist/hooks/use-ellipsis-tooltip.d.ts +4 -0
- package/dist/hooks/use-ellipsis-tooltip.ts.js +87 -0
- package/dist/hooks/use-member-http.d.ts +8 -0
- package/dist/hooks/use-member-http.ts.js +30 -0
- package/dist/hooks/use-meta-http.d.ts +3 -3
- package/dist/hooks/use-meta-http.ts.js +9 -5
- package/dist/hooks/use-t-table.d.ts +39 -0
- package/dist/hooks/use-t-table.ts.js +86 -0
- package/dist/hooks/use-table.d.ts +2 -7
- package/dist/hooks/use-table.ts.js +3 -3
- package/dist/hooks.d.ts +3 -0
- package/dist/hooks.ts.js +3 -0
- package/dist/http/fetch/index.ts.js +3 -2
- package/dist/http/helper/common.d.ts +25 -0
- package/dist/http/helper/common.ts.js +45 -0
- package/dist/http/helper/dataset.ts.js +14 -19
- package/dist/http/helper/knowledge.ts.js +9 -3
- package/dist/http/helper/tool.ts.js +7 -4
- package/dist/images/market.png +0 -0
- package/dist/transforms.d.ts +1 -0
- package/dist/transforms.ts.js +1 -0
- package/dist/types/common.d.ts +60 -4
- package/dist/types/dataset.d.ts +14 -10
- package/dist/types/enum.d.ts +8 -2
- package/dist/types/enum.ts.js +8 -1
- package/dist/types/knowledge.d.ts +6 -0
- package/dist/types/model.d.ts +4 -4
- package/dist/types/tool.d.ts +5 -3
- package/dist/util.d.ts +1 -0
- package/dist/util.ts.js +1 -0
- package/package.json +12 -3
- package/dist/components/render-aside/index.script.vue.js +0 -69
- package/dist/components/render-aside/index.vue.css +0 -49
- package/dist/components/render-aside/index.vue.d.ts +0 -26
- package/dist/components/render-aside/index.vue.js +0 -5
- package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js +0 -226
- package/dist/components/render-dataset/index.script.vue.js.js +0 -126
- package/dist/components/render-dataset/index.vue.css +0 -6
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +0 -559
- package/dist/components/render-expand-collapse/index.script.vue.js.js +0 -33
- package/dist/components/render-expand-collapse/index.vue.css +0 -23
- package/dist/components/render-expand-collapse/index.vue.d.ts +0 -12
- package/dist/components/render-expand-collapse/index.vue.js +0 -5
|
@@ -28,23 +28,30 @@ function _async_to_generator(fn) {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
import { defineComponent as _defineComponent } from 'vue';
|
|
31
|
-
import { resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, unref as _unref, resolveDirective as _resolveDirective, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, createBlock as _createBlock } from "vue";
|
|
31
|
+
import { resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, unref as _unref, withModifiers as _withModifiers, resolveDirective as _resolveDirective, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, createSlots as _createSlots, createBlock as _createBlock } from "vue";
|
|
32
32
|
const _hoisted_1 = {
|
|
33
33
|
key: 0,
|
|
34
34
|
class: "g-flex-row plus-tag-input render-tag"
|
|
35
35
|
};
|
|
36
36
|
import { Done, Error } from 'bkui-vue/lib/icon';
|
|
37
|
-
import { onBeforeMount, ref, toRef, watch } from 'vue';
|
|
37
|
+
import { nextTick, onBeforeMount, ref, toRef, watch } from 'vue';
|
|
38
38
|
import { useDatasetHttp } from '../../hooks/use-dataset-http.ts.js';
|
|
39
39
|
import { useMetaHttp } from '../../hooks/use-meta-http.ts.js';
|
|
40
40
|
export default /*@__PURE__*/ _defineComponent({
|
|
41
41
|
props: {
|
|
42
42
|
modelValue: {},
|
|
43
43
|
apiPrefix: {},
|
|
44
|
+
module: {},
|
|
45
|
+
multiple: {
|
|
46
|
+
type: Boolean
|
|
47
|
+
},
|
|
44
48
|
spaceId: {},
|
|
45
49
|
isDataset: {
|
|
46
50
|
type: Boolean
|
|
47
51
|
},
|
|
52
|
+
isEnabledCreateTag: {
|
|
53
|
+
type: Boolean
|
|
54
|
+
},
|
|
48
55
|
popoverOptions: {}
|
|
49
56
|
},
|
|
50
57
|
emits: [
|
|
@@ -71,7 +78,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
71
78
|
const tagNames = handleGetTagNames(value);
|
|
72
79
|
try {
|
|
73
80
|
templateTagNameErrorMessage = '';
|
|
74
|
-
yield fun(tagNames);
|
|
81
|
+
yield fun(tagNames, props.module);
|
|
75
82
|
} catch (error) {
|
|
76
83
|
templateTagNameErrorMessage = error.message;
|
|
77
84
|
return false;
|
|
@@ -89,6 +96,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
89
96
|
checkTagRule
|
|
90
97
|
]
|
|
91
98
|
};
|
|
99
|
+
const getModuleValue = ()=>{
|
|
100
|
+
return props.multiple ? props.modelValue : props.modelValue[0] || [];
|
|
101
|
+
};
|
|
92
102
|
const handleFocus = ()=>{
|
|
93
103
|
isShow.value = true;
|
|
94
104
|
};
|
|
@@ -96,7 +106,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
96
106
|
isShow.value = false;
|
|
97
107
|
};
|
|
98
108
|
const handleChange = (val)=>{
|
|
99
|
-
|
|
109
|
+
const moduleValue = props.multiple ? val : [
|
|
110
|
+
val
|
|
111
|
+
];
|
|
112
|
+
emits('update:modelValue', moduleValue);
|
|
100
113
|
};
|
|
101
114
|
const handleTagKeyDown = (value, event)=>{
|
|
102
115
|
if (event.keyCode === 13 || event.key === 'Enter') {
|
|
@@ -120,7 +133,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
120
133
|
const tagNames = handleGetTagNames(tempTagName.value);
|
|
121
134
|
const plusTagFun = props.isDataset ? plusDatasetTag : plusTag;
|
|
122
135
|
yield tagFormRef.value.validate();
|
|
123
|
-
yield plusTagFun(tagNames);
|
|
136
|
+
yield plusTagFun(tagNames, props.module);
|
|
124
137
|
emits('update:modelValue', [
|
|
125
138
|
...props.modelValue,
|
|
126
139
|
...tagNames
|
|
@@ -139,6 +152,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
139
152
|
}();
|
|
140
153
|
const handleShowPlusTag = ()=>{
|
|
141
154
|
isShowEdit.value = true;
|
|
155
|
+
isShow.value = true;
|
|
156
|
+
nextTick(()=>{
|
|
157
|
+
var _tagRef_value;
|
|
158
|
+
(_tagRef_value = tagRef.value) === null || _tagRef_value === void 0 ? void 0 : _tagRef_value.focus();
|
|
159
|
+
});
|
|
142
160
|
};
|
|
143
161
|
const handleHidePlusTag = ()=>{
|
|
144
162
|
isShowEdit.value = false;
|
|
@@ -146,12 +164,17 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
146
164
|
};
|
|
147
165
|
const handleGetTags = ()=>{
|
|
148
166
|
isLoadingTag.value = true;
|
|
149
|
-
(props.isDataset ? getDatasetTags() : getTags()).then((result)=>{
|
|
167
|
+
(props.isDataset ? getDatasetTags(props.module) : getTags(props.module)).then((result)=>{
|
|
150
168
|
tags.value = result;
|
|
151
169
|
}).finally(()=>{
|
|
152
170
|
isLoadingTag.value = false;
|
|
153
171
|
});
|
|
154
172
|
};
|
|
173
|
+
const handleCascaderToggle = (isShow)=>{
|
|
174
|
+
if (!isShow && !tempTagName.value.trim()) {
|
|
175
|
+
isShowEdit.value = false;
|
|
176
|
+
}
|
|
177
|
+
};
|
|
155
178
|
watch(()=>props.spaceId, handleGetTags);
|
|
156
179
|
onBeforeMount(handleGetTags);
|
|
157
180
|
return (_ctx, _cache)=>{
|
|
@@ -166,94 +189,108 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
166
189
|
"id-key": "tagName",
|
|
167
190
|
"name-key": "tagName",
|
|
168
191
|
"ext-cls": "tag-cascader",
|
|
169
|
-
|
|
192
|
+
placeholder: "请选择标签",
|
|
193
|
+
multiple: _ctx.multiple,
|
|
170
194
|
loading: isLoadingTag.value,
|
|
171
195
|
list: tags.value,
|
|
172
|
-
"model-value":
|
|
173
|
-
"onUpdate:modelValue": handleChange
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
"
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
196
|
+
"model-value": getModuleValue(),
|
|
197
|
+
"onUpdate:modelValue": handleChange,
|
|
198
|
+
onToggle: handleCascaderToggle
|
|
199
|
+
}, _createSlots({
|
|
200
|
+
_: 2 /* DYNAMIC */
|
|
201
|
+
}, [
|
|
202
|
+
_ctx.isEnabledCreateTag ? {
|
|
203
|
+
name: "extension",
|
|
204
|
+
fn: _withCtx(()=>[
|
|
205
|
+
isShowEdit.value ? (_openBlock(), _createElementBlock("section", _hoisted_1, [
|
|
206
|
+
_createVNode(_component_bk_form, {
|
|
207
|
+
class: "plus-tag-form",
|
|
208
|
+
ref_key: "tagFormRef",
|
|
209
|
+
ref: tagFormRef,
|
|
210
|
+
model: {
|
|
211
|
+
tempTagName: tempTagName.value
|
|
212
|
+
},
|
|
213
|
+
rules: tagRules
|
|
214
|
+
}, {
|
|
215
|
+
default: _withCtx(()=>[
|
|
216
|
+
_createVNode(_component_bk_form_item, {
|
|
217
|
+
class: "plus-tag-form-item",
|
|
218
|
+
"label-width": 0,
|
|
219
|
+
property: "tempTagName",
|
|
220
|
+
"error-display-type": "tooltips",
|
|
221
|
+
required: ""
|
|
222
|
+
}, {
|
|
223
|
+
default: _withCtx(()=>[
|
|
224
|
+
_createVNode(_component_bk_popover, {
|
|
225
|
+
"is-show": isShow.value,
|
|
226
|
+
theme: "light",
|
|
227
|
+
trigger: "manual"
|
|
228
|
+
}, {
|
|
229
|
+
content: _withCtx(()=>_cache[1] || (_cache[1] = [
|
|
230
|
+
_createTextVNode(" 如需定义层级标签,以英文“/”分割层级,多个标签以“、”分隔 ")
|
|
231
|
+
])),
|
|
232
|
+
default: _withCtx(()=>[
|
|
233
|
+
_createVNode(_component_bk_input, {
|
|
234
|
+
modelValue: tempTagName.value,
|
|
235
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>tempTagName.value = $event),
|
|
236
|
+
ref_key: "tagRef",
|
|
237
|
+
ref: tagRef,
|
|
238
|
+
placeholder: "如需定义层级标签,以英文“/”分割层级,多个标签以“、”分隔",
|
|
239
|
+
onKeydown: handleTagKeyDown,
|
|
240
|
+
onFocus: handleFocus,
|
|
241
|
+
onBlur: handleBlur
|
|
242
|
+
}, null, 8 /* PROPS */ , [
|
|
243
|
+
"modelValue"
|
|
244
|
+
])
|
|
245
|
+
]),
|
|
246
|
+
_: 1 /* STABLE */
|
|
247
|
+
}, 8 /* PROPS */ , [
|
|
248
|
+
"is-show"
|
|
249
|
+
])
|
|
250
|
+
]),
|
|
251
|
+
_: 1 /* STABLE */
|
|
252
|
+
})
|
|
253
|
+
]),
|
|
254
|
+
_: 1 /* STABLE */
|
|
255
|
+
}, 8 /* PROPS */ , [
|
|
256
|
+
"model"
|
|
257
|
+
]),
|
|
258
|
+
_withDirectives(_createVNode(_unref(Done), {
|
|
259
|
+
class: "plus-tag-done",
|
|
260
|
+
onClick: _withModifiers(handlePlusTag, [
|
|
261
|
+
"stop"
|
|
262
|
+
])
|
|
263
|
+
}, null, 512 /* NEED_PATCH */ ), [
|
|
264
|
+
[
|
|
265
|
+
_directive_bkloading,
|
|
266
|
+
{
|
|
267
|
+
loading: isPulsingTag.value
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
]),
|
|
271
|
+
_createVNode(_unref(Error), {
|
|
272
|
+
class: "plus-tag-error",
|
|
273
|
+
onClick: _withModifiers(handleHidePlusTag, [
|
|
274
|
+
"stop"
|
|
275
|
+
])
|
|
276
|
+
})
|
|
277
|
+
])) : (_openBlock(), _createElementBlock("span", {
|
|
278
|
+
key: 1,
|
|
279
|
+
class: "plus-tag render-tag",
|
|
280
|
+
onClick: _withModifiers(handleShowPlusTag, [
|
|
281
|
+
"stop"
|
|
282
|
+
])
|
|
283
|
+
}, _cache[2] || (_cache[2] = [
|
|
284
|
+
_createElementVNode("i", {
|
|
285
|
+
class: "ai-ui-sdk-icon ai-ui-sdk-plus-circle g-text-14 g-mr-6"
|
|
286
|
+
}, null, -1 /* HOISTED */ ),
|
|
287
|
+
_createTextVNode(" 新建标签 ")
|
|
288
|
+
])))
|
|
289
|
+
]),
|
|
290
|
+
key: "0"
|
|
291
|
+
} : undefined
|
|
292
|
+
]), 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
293
|
+
"multiple",
|
|
257
294
|
"loading",
|
|
258
295
|
"list",
|
|
259
296
|
"model-value"
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
|
|
2
|
-
.plus-tag-input[data-v-
|
|
2
|
+
.plus-tag-input[data-v-kgypaxyl] {
|
|
3
3
|
padding: 7px 12px;
|
|
4
4
|
height: 40px;
|
|
5
5
|
background: #FAFBFD;
|
|
6
6
|
border-top: 1px solid #DCDEE5;
|
|
7
7
|
}
|
|
8
|
-
.plus-tag-input .plus-tag-done[data-v-
|
|
8
|
+
.plus-tag-input .plus-tag-done[data-v-kgypaxyl] {
|
|
9
9
|
cursor: pointer;
|
|
10
10
|
font-size: 22px;
|
|
11
11
|
color: #2DCB56;
|
|
12
12
|
margin: 0 5px 0 10px;
|
|
13
13
|
}
|
|
14
|
-
.plus-tag-input .plus-tag-error[data-v-
|
|
14
|
+
.plus-tag-input .plus-tag-error[data-v-kgypaxyl] {
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
font-size: 16px;
|
|
17
17
|
color: #C4C6CC;
|
|
18
18
|
margin-right: 5px;
|
|
19
19
|
}
|
|
20
|
-
.plus-tag-input .plus-tag-form[data-v-
|
|
20
|
+
.plus-tag-input .plus-tag-form[data-v-kgypaxyl] {
|
|
21
21
|
flex: 1;
|
|
22
22
|
}
|
|
23
|
-
.plus-tag-input .plus-tag-form-item[data-v-
|
|
23
|
+
.plus-tag-input .plus-tag-form-item[data-v-kgypaxyl] {
|
|
24
24
|
margin-bottom: 0;
|
|
25
25
|
}
|
|
26
|
-
.plus-tag[data-v-
|
|
26
|
+
.plus-tag[data-v-kgypaxyl] {
|
|
27
27
|
cursor: pointer;
|
|
28
28
|
width: 100%;
|
|
29
29
|
height: 40px;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
font-size: 12px;
|
|
37
37
|
line-height: 20px;
|
|
38
38
|
}
|
|
39
|
-
.plus-tag[data-v-
|
|
39
|
+
.plus-tag[data-v-kgypaxyl]:hover {
|
|
40
40
|
color: #3A84FF;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
+
import { Module } from '@/types/enum';
|
|
1
2
|
interface IProps {
|
|
2
3
|
modelValue: string[][];
|
|
3
4
|
apiPrefix: string;
|
|
5
|
+
module: Module;
|
|
6
|
+
multiple?: boolean;
|
|
4
7
|
spaceId?: string;
|
|
5
8
|
isDataset?: boolean;
|
|
9
|
+
isEnabledCreateTag?: boolean;
|
|
6
10
|
popoverOptions?: Record<string, unknown>;
|
|
7
11
|
}
|
|
8
|
-
declare const
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
13
|
"update:modelValue": (value: string[][]) => any;
|
|
10
14
|
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
11
15
|
"onUpdate:modelValue"?: (value: string[][]) => any;
|
|
12
16
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
13
18
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
.collapse-title[data-v-
|
|
2
|
+
.collapse-title[data-v-ldr20c18] {
|
|
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-
|
|
8
|
+
.collapse-title .is-hidden[data-v-ldr20c18] {
|
|
9
9
|
transform: rotate(-90deg);
|
|
10
10
|
}
|
|
@@ -8,8 +8,9 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
} & {
|
|
9
9
|
default?: (props: typeof __VLS_3) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const
|
|
12
|
-
declare const
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
13
14
|
export default _default;
|
|
14
15
|
type __VLS_WithSlots<T, S> = T & {
|
|
15
16
|
new (): {
|
|
@@ -5,11 +5,12 @@ interface IProps {
|
|
|
5
5
|
apiPrefix: string;
|
|
6
6
|
spaceId?: string;
|
|
7
7
|
}
|
|
8
|
-
declare const
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
9
|
"update:modelValue": (value: boolean) => any;
|
|
10
10
|
"success-review": () => any;
|
|
11
11
|
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
12
12
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
13
13
|
"onSuccess-review"?: () => any;
|
|
14
14
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
15
16
|
export default _default;
|
|
@@ -3,5 +3,6 @@ interface IProps {
|
|
|
3
3
|
level: DatasetDataReviewLevel;
|
|
4
4
|
reviewReason?: string;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
package/dist/components/render-dataset/components/dataset-data-status/index.script.vue.js.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
2
|
import { unref as _unref, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode } from "vue";
|
|
3
|
-
const _hoisted_1 =
|
|
4
|
-
"
|
|
5
|
-
|
|
3
|
+
const _hoisted_1 = {
|
|
4
|
+
class: "g-max-truncate g-flex-row",
|
|
5
|
+
"data-ellipsis-tooltip": ""
|
|
6
|
+
};
|
|
6
7
|
const _hoisted_2 = [
|
|
7
8
|
"href"
|
|
8
9
|
];
|
|
@@ -26,10 +27,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
26
27
|
[DatasetDataReviewStatus.AIReviewD]: '#ai-ui-sdk-sync-waiting-01'
|
|
27
28
|
};
|
|
28
29
|
return (_ctx, _cache)=>{
|
|
29
|
-
return _openBlock(), _createElementBlock("span",
|
|
30
|
-
class: "g-max-truncate g-flex-row",
|
|
31
|
-
title: _ctx.name
|
|
32
|
-
}, [
|
|
30
|
+
return _openBlock(), _createElementBlock("span", _hoisted_1, [
|
|
33
31
|
_ctx.name ? (_openBlock(), _createElementBlock("svg", {
|
|
34
32
|
key: 0,
|
|
35
33
|
class: _normalizeClass({
|
|
@@ -45,7 +43,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
45
43
|
}, null, 8 /* PROPS */ , _hoisted_2)
|
|
46
44
|
], 2 /* CLASS */ )) : _createCommentVNode("v-if", true),
|
|
47
45
|
_createTextVNode(" " + _toDisplayString(_ctx.name || '--'), 1 /* TEXT */ )
|
|
48
|
-
]
|
|
46
|
+
]);
|
|
49
47
|
};
|
|
50
48
|
}
|
|
51
49
|
});
|
|
@@ -3,5 +3,6 @@ interface IProps {
|
|
|
3
3
|
status: DatasetDataStatus | DatasetDataReviewStatus;
|
|
4
4
|
name: string;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
7
8
|
export default _default;
|
package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js
CHANGED
|
@@ -39,7 +39,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
39
39
|
}
|
|
40
40
|
]
|
|
41
41
|
]),
|
|
42
|
-
_cache[1] || (_cache[1] = _createStaticVNode("<span class=\"click-full-screen g-cursor-pointer g-flex-row\" data-v-
|
|
42
|
+
_cache[1] || (_cache[1] = _createStaticVNode("<span class=\"click-full-screen g-cursor-pointer g-flex-row\" data-v-nja57ocy><i class=\"ai-ui-sdk-icon ai-ui-sdk-full-screen click-full-screen g-text-14 g-ml-24 g-mr-2\" data-v-nja57ocy></i><span class=\"g-text-12 click-full-screen\" data-v-nja57ocy>全屏</span></span><span class=\"click-un-full-screen g-cursor-pointer g-flex-row\" data-v-nja57ocy><i class=\"ai-ui-sdk-icon ai-ui-sdk-un-full-screen click-un-full-screen g-text-14 g-ml-24 g-mr-2\" data-v-nja57ocy></i><span class=\"g-text-12 click-un-full-screen\" data-v-nja57ocy>取消全屏</span></span>", 2))
|
|
43
43
|
]);
|
|
44
44
|
};
|
|
45
45
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface IProps {
|
|
2
2
|
tips: string;
|
|
3
3
|
}
|
|
4
|
-
declare const
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
5
6
|
export default _default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
.content[data-v-
|
|
2
|
+
.content[data-v-cky6wy8o] {
|
|
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-
|
|
7
|
+
.data-set-edit-slider .value-content[data-v-cky6wy8o] {
|
|
8
8
|
padding: 16px;
|
|
9
9
|
border: 1px solid #DCDEE5;
|
|
10
10
|
line-height: 22px;
|
|
11
11
|
}
|
|
12
|
-
.data-set-edit-slider[data-v-
|
|
12
|
+
.data-set-edit-slider[data-v-cky6wy8o] .bk-sideslider-title {
|
|
13
13
|
justify-content: space-between;
|
|
14
14
|
width: 100%;
|
|
15
15
|
}
|
|
@@ -10,11 +10,12 @@ interface IProps {
|
|
|
10
10
|
manageDataset?: boolean;
|
|
11
11
|
isInternal?: boolean;
|
|
12
12
|
}
|
|
13
|
-
declare const
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
14
14
|
"update:modelValue": (modelValue: boolean) => any;
|
|
15
15
|
"success-edit": () => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
17
17
|
"onUpdate:modelValue"?: (modelValue: boolean) => any;
|
|
18
18
|
"onSuccess-edit"?: () => any;
|
|
19
19
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
20
21
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import script from './index.script.vue.js.js';
|
|
2
|
-
script.__scopeId = "data-v-
|
|
2
|
+
script.__scopeId = "data-v-cky6wy8o";
|
|
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,3 +1,31 @@
|
|
|
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
|
+
}
|
|
1
29
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
30
|
import { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
3
31
|
const _hoisted_1 = {
|
|
@@ -50,6 +78,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
50
78
|
loading.value = false;
|
|
51
79
|
});
|
|
52
80
|
};
|
|
81
|
+
const handleSearchChange = (value)=>{
|
|
82
|
+
search.value = _object_spread({
|
|
83
|
+
resourceTypeId: 'dataset_item',
|
|
84
|
+
parentId: props.datasetId
|
|
85
|
+
}, value);
|
|
86
|
+
};
|
|
53
87
|
const handleInit = ()=>{
|
|
54
88
|
search.value = {
|
|
55
89
|
resourceTypeId: 'dataset_item',
|
|
@@ -119,7 +153,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
119
153
|
"dataset-id": _ctx.datasetId,
|
|
120
154
|
search: search.value,
|
|
121
155
|
"api-prefix": _ctx.apiPrefix,
|
|
122
|
-
"space-id": _ctx.spaceId
|
|
156
|
+
"space-id": _ctx.spaceId,
|
|
157
|
+
"onUpdate:search": handleSearchChange
|
|
123
158
|
}, null, 8 /* PROPS */ , [
|
|
124
159
|
"dataset-id",
|
|
125
160
|
"search",
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
.content[data-v-
|
|
2
|
+
.content[data-v-499liind] {
|
|
3
3
|
padding: 0 24px 0px 32px;
|
|
4
4
|
height: 100%;
|
|
5
5
|
}
|
|
6
|
-
.content .toolbar[data-v-
|
|
6
|
+
.content .toolbar[data-v-499liind] {
|
|
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-
|
|
13
|
+
.content .toolbar .record-search[data-v-499liind] {
|
|
14
14
|
width: 360px;
|
|
15
15
|
}
|
|
16
|
-
.content .toolbar .record-data-picker[data-v-
|
|
16
|
+
.content .toolbar .record-data-picker[data-v-499liind] {
|
|
17
17
|
width: 260px;
|
|
18
18
|
}
|
|
@@ -5,9 +5,10 @@ interface IProps {
|
|
|
5
5
|
datasetDataId?: number;
|
|
6
6
|
spaceId?: string;
|
|
7
7
|
}
|
|
8
|
-
declare const
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
9
|
"update:modelValue": (modelValue: boolean) => any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
11
11
|
"onUpdate:modelValue"?: (modelValue: boolean) => any;
|
|
12
12
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
13
14
|
export default _default;
|