@blueking/ai-ui-sdk 0.3.0-beta.13 → 0.3.0-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.
- package/dist/components/render-agent/agent-type.vue.css +3 -3
- package/dist/components/render-agent/agent-type.vue.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-card/agent/actions.script.vue.js.js +51 -47
- package/dist/components/render-card/agent/prefix-info-tool.vue.css +5 -5
- package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
- package/dist/components/render-card/base.vue.css +12 -12
- package/dist/components/render-card/base.vue.js +1 -1
- package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
- package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
- package/dist/components/render-card/llm/icons.vue.css +2 -2
- package/dist/components/render-card/llm/icons.vue.js +1 -1
- package/dist/components/render-card/llm/info.vue.css +1 -1
- package/dist/components/render-card/llm/info.vue.js +1 -1
- package/dist/components/render-card/llm/tag-prefix.vue.css +3 -3
- package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
- package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
- package/dist/components/render-card/prompt/icons.vue.css +1 -1
- package/dist/components/render-card/prompt/icons.vue.js +1 -1
- package/dist/components/render-card/skill/tag-prefix.vue.css +3 -3
- package/dist/components/render-card/skill/tag-prefix.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-collection/content/index.vue.css +4 -4
- package/dist/components/render-collection/content/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.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-dialog/choose-resource.vue.css +3 -3
- package/dist/components/render-dialog/choose-resource.vue.js +1 -1
- package/dist/components/render-dialog/choose-result.vue.css +14 -14
- package/dist/components/render-dialog/choose-result.vue.js +1 -1
- package/dist/components/render-dialog/choose-space.vue.css +8 -8
- package/dist/components/render-dialog/choose-space.vue.js +1 -1
- package/dist/components/render-dialog/index.vue.css +6 -6
- package/dist/components/render-dialog/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-generate-tag/index.vue.css +5 -5
- package/dist/components/render-generate-tag/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-knowledge/icon/index.vue.css +1 -1
- package/dist/components/render-knowledge/icon/index.vue.js +1 -1
- package/dist/components/render-like/index.vue.css +5 -5
- package/dist/components/render-like/index.vue.js +1 -1
- package/dist/components/render-prompt/content/index.vue.css +1 -1
- package/dist/components/render-prompt/content/index.vue.js +1 -1
- package/dist/components/render-reference/index.vue.css +2 -2
- package/dist/components/render-reference/index.vue.js +1 -1
- package/dist/components/render-relate-agent/index.script.vue.js.js +156 -40
- package/dist/components/render-relate-agent/index.vue.d.ts +2 -2
- package/dist/components/render-resource-version/index.vue.css +2 -2
- package/dist/components/render-resource-version/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-select-plus-extension/index.vue.css +3 -3
- package/dist/components/render-select-plus-extension/index.vue.js +1 -1
- package/dist/components/render-t-table/index.vue.css +27 -27
- 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-tags/index.vue.css +6 -6
- package/dist/components/render-tags/index.vue.js +1 -1
- package/dist/css/g-utilities.css +4 -0
- package/dist/css/g-utilities.manifest.json +1 -0
- package/dist/hooks/use-agent-http.d.ts +2 -0
- package/dist/hooks/use-agent-http.ts.js +12 -2
- package/dist/hooks/use-clickoutside.d.ts +3 -0
- package/dist/hooks/use-clickoutside.ts.js +28 -0
- package/dist/hooks/use-skill-http.d.ts +4 -1
- package/dist/hooks/use-skill-http.ts.js +4 -3
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.ts.js +1 -0
- package/dist/http/helper/agent.d.ts +7 -1
- package/dist/http/helper/agent.ts.js +11 -0
- package/dist/http/helper/skill.ts.js +1 -1
- package/dist/types/agent.d.ts +14 -0
- package/dist/types/skill.d.ts +2 -2
- package/package.json +1 -1
|
@@ -81,10 +81,14 @@ function _object_spread_props(target, source) {
|
|
|
81
81
|
}
|
|
82
82
|
import { defineComponent as _defineComponent } from 'vue';
|
|
83
83
|
import { renderSlot as _renderSlot, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, resolveDirective as _resolveDirective, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, withDirectives as _withDirectives, createElementVNode as _createElementVNode, createVNode as _createVNode, unref as _unref } from "vue";
|
|
84
|
-
|
|
84
|
+
const _hoisted_1 = {
|
|
85
|
+
class: "g-flex-row g-justify-end g-mt-16"
|
|
86
|
+
};
|
|
87
|
+
import { ref, toRef, watch } from 'vue';
|
|
85
88
|
import { MAX_PAGE_SIZE, MODULE_NAME } from '../../common/constants.ts.js';
|
|
86
89
|
import RenderSelectPlusExtension from '../render-select-plus-extension/index.vue.js';
|
|
87
90
|
import { useAgentHttp } from '../../hooks/use-agent-http.ts.js';
|
|
91
|
+
import { useClickoutside } from '../../hooks/use-clickoutside.ts.js';
|
|
88
92
|
import { AgentType, GroupType, Module, SdkNavigateActionType } from '../../types/enum.ts.js';
|
|
89
93
|
export default /*@__PURE__*/ _defineComponent({
|
|
90
94
|
props: {
|
|
@@ -108,16 +112,25 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
108
112
|
setup (__props, { emit: __emit }) {
|
|
109
113
|
const props = __props;
|
|
110
114
|
const emits = __emit;
|
|
111
|
-
const { getAgent, getAgentList, updateAgent } = useAgentHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
115
|
+
const { getAgent, getAgentList, updateAgent, getAgentMcpPermission, resourceApply } = useAgentHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
116
|
+
const { handleInitClickoutside } = useClickoutside();
|
|
112
117
|
const formRef = ref();
|
|
113
118
|
const agents = ref([]);
|
|
114
119
|
const isLoadingAgents = ref(false);
|
|
115
120
|
const isLoadingConfirm = ref(false);
|
|
116
|
-
const
|
|
121
|
+
const isShowPopover = ref(false);
|
|
122
|
+
const isShowApplyConfirm = ref(false);
|
|
123
|
+
const hasMcpPermission = ref(undefined);
|
|
117
124
|
const formData = ref({
|
|
118
125
|
selectedAgentId: undefined,
|
|
119
126
|
selectedSpaceId: props.spaceId
|
|
120
127
|
});
|
|
128
|
+
const getPermittedSpaces = ()=>{
|
|
129
|
+
return props.spaces.filter((space)=>{
|
|
130
|
+
var _space_permission;
|
|
131
|
+
return (_space_permission = space.permission) === null || _space_permission === void 0 ? void 0 : _space_permission.viewSpace;
|
|
132
|
+
});
|
|
133
|
+
};
|
|
121
134
|
const handleGetAgentsAndSetDefaultAgent = ()=>{
|
|
122
135
|
isLoadingAgents.value = true;
|
|
123
136
|
const params = {
|
|
@@ -151,14 +164,19 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
151
164
|
});
|
|
152
165
|
};
|
|
153
166
|
const handleClose = ()=>{
|
|
154
|
-
|
|
167
|
+
isShowPopover.value = false;
|
|
168
|
+
isShowApplyConfirm.value = false;
|
|
169
|
+
};
|
|
170
|
+
const handleClickOutside = ()=>{
|
|
171
|
+
handleClose();
|
|
155
172
|
};
|
|
156
173
|
const handleShow = ()=>{
|
|
157
174
|
var _formRef_value;
|
|
158
|
-
if (
|
|
159
|
-
|
|
175
|
+
if (isShowPopover.value) return;
|
|
176
|
+
isShowPopover.value = true;
|
|
160
177
|
formData.value.selectedAgentId = undefined;
|
|
161
178
|
formData.value.selectedSpaceId = props.spaceId;
|
|
179
|
+
hasMcpPermission.value = undefined;
|
|
162
180
|
(_formRef_value = formRef.value) === null || _formRef_value === void 0 ? void 0 : _formRef_value.clearValidate();
|
|
163
181
|
handleGetAgentsAndSetDefaultAgent();
|
|
164
182
|
};
|
|
@@ -275,28 +293,43 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
275
293
|
return _ref.apply(this, arguments);
|
|
276
294
|
};
|
|
277
295
|
}();
|
|
296
|
+
const handleBindAndNavigate = function() {
|
|
297
|
+
var _ref = _async_to_generator(function*(selectedAgent) {
|
|
298
|
+
var _relateMap_props_resourceType;
|
|
299
|
+
const relateMap = {
|
|
300
|
+
[Module.Agent]: handleRelateAgentToAgent,
|
|
301
|
+
[Module.Mcp]: handleRelateMcpToAgent,
|
|
302
|
+
[Module.Tool]: handleRelateToolToAgent,
|
|
303
|
+
[Module.Skill]: handleRelateSkillToAgent,
|
|
304
|
+
[Module.LLM]: handleRelateLLMToAgent,
|
|
305
|
+
[Module.Knowledgebase]: handleRelateKnowledgebaseToAgent
|
|
306
|
+
};
|
|
307
|
+
yield (_relateMap_props_resourceType = relateMap[props.resourceType]) === null || _relateMap_props_resourceType === void 0 ? void 0 : _relateMap_props_resourceType.call(relateMap, selectedAgent);
|
|
308
|
+
handleClose();
|
|
309
|
+
emits('navigate', {
|
|
310
|
+
type: SdkNavigateActionType.AgentDetailSetting,
|
|
311
|
+
id: formData.value.selectedAgentId,
|
|
312
|
+
spaceId: formData.value.selectedSpaceId
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
return function handleBindAndNavigate(selectedAgent) {
|
|
316
|
+
return _ref.apply(this, arguments);
|
|
317
|
+
};
|
|
318
|
+
}();
|
|
278
319
|
const handleConfirm = function() {
|
|
279
320
|
var _ref = _async_to_generator(function*() {
|
|
280
321
|
try {
|
|
281
|
-
var _formRef_value
|
|
322
|
+
var _formRef_value;
|
|
282
323
|
yield (_formRef_value = formRef.value) === null || _formRef_value === void 0 ? void 0 : _formRef_value.validate();
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
};
|
|
293
|
-
yield (_relateMap_props_resourceType = relateMap[props.resourceType]) === null || _relateMap_props_resourceType === void 0 ? void 0 : _relateMap_props_resourceType.call(relateMap, selectedAgent);
|
|
294
|
-
handleClose();
|
|
295
|
-
emits('navigate', {
|
|
296
|
-
type: SdkNavigateActionType.AgentDetailSetting,
|
|
297
|
-
id: formData.value.selectedAgentId,
|
|
298
|
-
spaceId: formData.value.selectedSpaceId
|
|
299
|
-
});
|
|
324
|
+
if (hasMcpPermission.value === false) {
|
|
325
|
+
// 没有权限,显示申请权限弹窗
|
|
326
|
+
isShowApplyConfirm.value = true;
|
|
327
|
+
} else {
|
|
328
|
+
// 有权限,绑定并跳转
|
|
329
|
+
isLoadingConfirm.value = true;
|
|
330
|
+
const selectedAgent = yield getAgent(formData.value.selectedAgentId);
|
|
331
|
+
yield handleBindAndNavigate(selectedAgent);
|
|
332
|
+
}
|
|
300
333
|
} catch (error) {
|
|
301
334
|
console.error(error);
|
|
302
335
|
} finally{
|
|
@@ -307,34 +340,71 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
307
340
|
return _ref.apply(this, arguments);
|
|
308
341
|
};
|
|
309
342
|
}();
|
|
310
|
-
const
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
343
|
+
const handleApplyPermissionAndConfirm = function() {
|
|
344
|
+
var _ref = _async_to_generator(function*() {
|
|
345
|
+
isLoadingConfirm.value = true;
|
|
346
|
+
try {
|
|
347
|
+
const selectedAgent = yield getAgent(formData.value.selectedAgentId);
|
|
348
|
+
const resource = [
|
|
349
|
+
{
|
|
350
|
+
resourceType: Module.Mcp,
|
|
351
|
+
resourceCode: props.resource.mcpCode
|
|
352
|
+
}
|
|
353
|
+
];
|
|
354
|
+
yield resourceApply(resource, selectedAgent.id);
|
|
355
|
+
yield handleBindAndNavigate(selectedAgent);
|
|
356
|
+
isShowApplyConfirm.value = false;
|
|
357
|
+
} catch (error) {
|
|
358
|
+
console.error(error);
|
|
359
|
+
} finally{
|
|
360
|
+
isLoadingConfirm.value = false;
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
return function handleApplyPermissionAndConfirm() {
|
|
364
|
+
return _ref.apply(this, arguments);
|
|
365
|
+
};
|
|
366
|
+
}();
|
|
367
|
+
const handleCheckMcpPermission = ()=>{
|
|
368
|
+
// 如果资源类型不是 MCP 或者没有选择智能体,则不检查权限
|
|
369
|
+
if (props.resourceType !== Module.Mcp || !formData.value.selectedAgentId) {
|
|
370
|
+
hasMcpPermission.value = undefined;
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
// 检查权限
|
|
374
|
+
isLoadingConfirm.value = true;
|
|
375
|
+
const mcp = props.resource;
|
|
376
|
+
getAgentMcpPermission(formData.value.selectedAgentId, mcp.mcpCode, mcp.mcpType).then((res)=>{
|
|
377
|
+
hasMcpPermission.value = res.hasPermission;
|
|
378
|
+
}).catch(()=>{
|
|
379
|
+
hasMcpPermission.value = undefined;
|
|
380
|
+
}).finally(()=>{
|
|
381
|
+
isLoadingConfirm.value = false;
|
|
314
382
|
});
|
|
315
383
|
};
|
|
384
|
+
const handleCancelApply = ()=>{
|
|
385
|
+
isShowApplyConfirm.value = false;
|
|
386
|
+
};
|
|
387
|
+
handleInitClickoutside('render-relate-agent-popover', handleClickOutside);
|
|
388
|
+
watch(()=>formData.value.selectedAgentId, handleCheckMcpPermission);
|
|
316
389
|
return (_ctx, _cache)=>{
|
|
317
390
|
const _component_bk_button = _resolveComponent("bk-button");
|
|
318
391
|
const _component_bk_select = _resolveComponent("bk-select");
|
|
319
392
|
const _component_bk_form_item = _resolveComponent("bk-form-item");
|
|
320
393
|
const _component_bk_form = _resolveComponent("bk-form");
|
|
321
394
|
const _component_bk_pop_confirm = _resolveComponent("bk-pop-confirm");
|
|
395
|
+
const _component_bk_popover = _resolveComponent("bk-popover");
|
|
322
396
|
const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
|
|
323
|
-
return _openBlock(), _createBlock(
|
|
397
|
+
return _openBlock(), _createBlock(_component_bk_popover, {
|
|
398
|
+
trigger: "manual",
|
|
399
|
+
theme: "light",
|
|
324
400
|
width: "400",
|
|
325
|
-
|
|
326
|
-
"confirm-text": "保存并去智能体调试",
|
|
401
|
+
"ext-cls": "render-relate-agent-popover",
|
|
327
402
|
placement: props.placement,
|
|
328
|
-
"is-show": isShowPopconfirm.value,
|
|
329
403
|
boundary: props.boundary,
|
|
330
|
-
"
|
|
331
|
-
loading: isLoadingConfirm.value
|
|
332
|
-
},
|
|
333
|
-
onConfirm: handleConfirm,
|
|
334
|
-
onCancel: handleClose
|
|
404
|
+
"is-show": isShowPopover.value
|
|
335
405
|
}, {
|
|
336
406
|
content: _withCtx(()=>[
|
|
337
|
-
_cache[
|
|
407
|
+
_cache[5] || (_cache[5] = _createElementVNode("span", {
|
|
338
408
|
class: "g-text-16 g-text-black g-leading-24"
|
|
339
409
|
}, " 关联至智能体 ", -1 /* CACHED */ )),
|
|
340
410
|
_createVNode(_component_bk_form, {
|
|
@@ -410,6 +480,53 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
410
480
|
_: 1 /* STABLE */
|
|
411
481
|
}, 8 /* PROPS */ , [
|
|
412
482
|
"model"
|
|
483
|
+
]),
|
|
484
|
+
_createElementVNode("section", _hoisted_1, [
|
|
485
|
+
_createVNode(_component_bk_pop_confirm, {
|
|
486
|
+
trigger: "manual",
|
|
487
|
+
placement: "top",
|
|
488
|
+
width: "280",
|
|
489
|
+
title: "确认提交申请?",
|
|
490
|
+
content: "当前选择的 MCP 暂无使用权限且未经申请,提交后将自动创建申请单",
|
|
491
|
+
"is-show": isShowApplyConfirm.value,
|
|
492
|
+
"confirm-config": {
|
|
493
|
+
loading: isLoadingConfirm.value
|
|
494
|
+
},
|
|
495
|
+
onConfirm: handleApplyPermissionAndConfirm,
|
|
496
|
+
onCancel: handleCancelApply
|
|
497
|
+
}, {
|
|
498
|
+
default: _withCtx(()=>[
|
|
499
|
+
_createVNode(_component_bk_button, {
|
|
500
|
+
theme: "primary",
|
|
501
|
+
loading: isLoadingConfirm.value,
|
|
502
|
+
onClick: handleConfirm
|
|
503
|
+
}, {
|
|
504
|
+
default: _withCtx(()=>[
|
|
505
|
+
..._cache[3] || (_cache[3] = [
|
|
506
|
+
_createTextVNode(" 保存并去智能体调试 ", -1 /* CACHED */ )
|
|
507
|
+
])
|
|
508
|
+
]),
|
|
509
|
+
_: 1 /* STABLE */
|
|
510
|
+
}, 8 /* PROPS */ , [
|
|
511
|
+
"loading"
|
|
512
|
+
])
|
|
513
|
+
]),
|
|
514
|
+
_: 1 /* STABLE */
|
|
515
|
+
}, 8 /* PROPS */ , [
|
|
516
|
+
"is-show",
|
|
517
|
+
"confirm-config"
|
|
518
|
+
]),
|
|
519
|
+
_createVNode(_component_bk_button, {
|
|
520
|
+
class: "g-ml-8",
|
|
521
|
+
onClick: handleClose
|
|
522
|
+
}, {
|
|
523
|
+
default: _withCtx(()=>[
|
|
524
|
+
..._cache[4] || (_cache[4] = [
|
|
525
|
+
_createTextVNode(" 取消 ", -1 /* CACHED */ )
|
|
526
|
+
])
|
|
527
|
+
]),
|
|
528
|
+
_: 1 /* STABLE */
|
|
529
|
+
})
|
|
413
530
|
])
|
|
414
531
|
]),
|
|
415
532
|
default: _withCtx(()=>[
|
|
@@ -446,9 +563,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
446
563
|
_: 3 /* FORWARDED */
|
|
447
564
|
}, 8 /* PROPS */ , [
|
|
448
565
|
"placement",
|
|
449
|
-
"is-show",
|
|
450
566
|
"boundary",
|
|
451
|
-
"
|
|
567
|
+
"is-show"
|
|
452
568
|
]);
|
|
453
569
|
};
|
|
454
570
|
}
|
|
@@ -16,11 +16,11 @@ interface IProps {
|
|
|
16
16
|
spaces?: ISpace[];
|
|
17
17
|
apiPrefix: string;
|
|
18
18
|
}
|
|
19
|
-
declare var
|
|
19
|
+
declare var __VLS_8: {
|
|
20
20
|
handleShow: () => void;
|
|
21
21
|
};
|
|
22
22
|
type __VLS_Slots = {} & {
|
|
23
|
-
trigger?: (props: typeof
|
|
23
|
+
trigger?: (props: typeof __VLS_8) => any;
|
|
24
24
|
};
|
|
25
25
|
declare const __VLS_base: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
26
26
|
navigate: (value: ISdkNavigateAction) => any;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
.resource-version[data-v-
|
|
2
|
+
.resource-version[data-v-zh73nirf] {
|
|
3
3
|
border-radius: 2px;
|
|
4
4
|
text-align: left;
|
|
5
5
|
color: #4D4F56;
|
|
6
6
|
background-color: #F0F1F5;
|
|
7
7
|
white-space: nowrap;
|
|
8
8
|
}
|
|
9
|
-
.resource-version .bkaidev-rizhifenxi[data-v-
|
|
9
|
+
.resource-version .bkaidev-rizhifenxi[data-v-zh73nirf] {
|
|
10
10
|
color: #3A84FF;
|
|
11
11
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.router-tab[data-v-
|
|
2
|
+
.router-tab[data-v-al9aezym] {
|
|
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-al9aezym] {
|
|
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-al9aezym] {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
|
21
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.select-plus-extension[data-v-
|
|
2
|
+
.select-plus-extension[data-v-iu9i7o5o] {
|
|
3
3
|
cursor: pointer;
|
|
4
4
|
width: 100%;
|
|
5
5
|
display: flex;
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
font-size: 12px;
|
|
9
9
|
line-height: 20px;
|
|
10
10
|
}
|
|
11
|
-
.select-plus-extension .bkaidev-icon[data-v-
|
|
11
|
+
.select-plus-extension .bkaidev-icon[data-v-iu9i7o5o] {
|
|
12
12
|
font-size: 14px;
|
|
13
13
|
margin-right: 6px;
|
|
14
14
|
}
|
|
15
|
-
.select-plus-extension[data-v-
|
|
15
|
+
.select-plus-extension[data-v-iu9i7o5o]:hover {
|
|
16
16
|
color: #3A84FF;
|
|
17
17
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.t-t-pagination[data-v-
|
|
2
|
+
.t-t-pagination[data-v-mta60bgb] {
|
|
3
3
|
position: relative;
|
|
4
4
|
padding: 16px 16px 0 16px;
|
|
5
5
|
}
|
|
6
|
-
.t-t-pagination[data-v-
|
|
6
|
+
.t-t-pagination[data-v-mta60bgb] .bk-pagination-list.is-last {
|
|
7
7
|
margin-left: auto;
|
|
8
8
|
}
|
|
9
|
-
.pagination-loading[data-v-
|
|
9
|
+
.pagination-loading[data-v-mta60bgb]::after {
|
|
10
10
|
content: '';
|
|
11
11
|
position: absolute;
|
|
12
12
|
top: 0;
|
|
@@ -16,93 +16,93 @@
|
|
|
16
16
|
background-color: rgba(255, 255, 255, 0.6);
|
|
17
17
|
z-index: 72;
|
|
18
18
|
}
|
|
19
|
-
.pagination-border[data-v-
|
|
19
|
+
.pagination-border[data-v-mta60bgb] {
|
|
20
20
|
border-right: 1px solid #dcdee5;
|
|
21
21
|
border-left: 1px solid #dcdee5;
|
|
22
22
|
border-bottom: 1px solid #dcdee5;
|
|
23
23
|
padding-bottom: 16px;
|
|
24
24
|
}
|
|
25
|
-
.t-t-table[data-v-
|
|
25
|
+
.t-t-table[data-v-mta60bgb] {
|
|
26
26
|
display: inline;
|
|
27
27
|
font-size: 12px;
|
|
28
28
|
}
|
|
29
|
-
.t-t-table[data-v-
|
|
29
|
+
.t-t-table[data-v-mta60bgb] .t-table__th-cell-inner {
|
|
30
30
|
color: #313238;
|
|
31
31
|
}
|
|
32
|
-
.t-t-table[data-v-
|
|
32
|
+
.t-t-table[data-v-mta60bgb] th {
|
|
33
33
|
padding: 0 16px;
|
|
34
34
|
height: 42px;
|
|
35
35
|
background-color: #FAFBFD !important;
|
|
36
36
|
}
|
|
37
|
-
.t-t-table[data-v-
|
|
37
|
+
.t-t-table[data-v-mta60bgb] .t-table__body tr {
|
|
38
38
|
color: #63656e;
|
|
39
39
|
font-size: 12px;
|
|
40
40
|
}
|
|
41
|
-
.t-t-table[data-v-
|
|
41
|
+
.t-t-table[data-v-mta60bgb] .t-table__body tr td {
|
|
42
42
|
padding: 0 16px;
|
|
43
43
|
height: 40px;
|
|
44
44
|
background-color: #fff;
|
|
45
45
|
}
|
|
46
|
-
.t-t-table[data-v-
|
|
46
|
+
.t-t-table[data-v-mta60bgb] .t-table__body tr:hover td {
|
|
47
47
|
background-color: #f5f7fa !important;
|
|
48
48
|
color: #63656E;
|
|
49
49
|
}
|
|
50
|
-
.t-t-table[data-v-
|
|
50
|
+
.t-t-table[data-v-mta60bgb] .t-table__content .t-table__body .t-table__empty-row {
|
|
51
51
|
background-color: #fff !important;
|
|
52
52
|
}
|
|
53
|
-
.t-t-table[data-v-
|
|
53
|
+
.t-t-table[data-v-mta60bgb] .t-table__content .t-table__body .t-table__empty-row >td {
|
|
54
54
|
border: none;
|
|
55
55
|
}
|
|
56
|
-
.t-t-table[data-v-
|
|
56
|
+
.t-t-table[data-v-mta60bgb] th .t-table__ellipsis {
|
|
57
57
|
width: auto !important;
|
|
58
58
|
}
|
|
59
|
-
.t-t-table[data-v-
|
|
59
|
+
.t-t-table[data-v-mta60bgb] .t-loading__gradient.t-icon-loading {
|
|
60
60
|
display: none;
|
|
61
61
|
}
|
|
62
|
-
.t-t-table[data-v-
|
|
62
|
+
.t-t-table[data-v-mta60bgb]:first-of-type .t-table__affixed-header-elm-wrap{
|
|
63
63
|
width: calc(100% - 6px) !important;
|
|
64
64
|
}
|
|
65
|
-
.t-t-table[data-v-
|
|
65
|
+
.t-t-table[data-v-mta60bgb] .t-table__affixed-header-elm-wrap>div {
|
|
66
66
|
width: 100% !important;
|
|
67
67
|
scrollbar-width: none;
|
|
68
68
|
}
|
|
69
|
-
.t-t-table[data-v-
|
|
69
|
+
.t-t-table[data-v-mta60bgb] .t-table--layout-fixed{
|
|
70
70
|
width: 100% !important;
|
|
71
71
|
}
|
|
72
|
-
.t-t-table[data-v-
|
|
72
|
+
.t-t-table[data-v-mta60bgb] .bk-exception-description{
|
|
73
73
|
margin-bottom: 0;
|
|
74
74
|
}
|
|
75
|
-
.t-t-table[data-v-
|
|
75
|
+
.t-t-table[data-v-mta60bgb] .t-table__content{
|
|
76
76
|
z-index: 2;
|
|
77
77
|
max-height: 100%;
|
|
78
78
|
overflow: auto;
|
|
79
79
|
}
|
|
80
|
-
.t-t-table[data-v-
|
|
80
|
+
.t-t-table[data-v-mta60bgb] .t-table__content::-webkit-scrollbar {
|
|
81
81
|
width: 6px;
|
|
82
82
|
height: 6px;
|
|
83
83
|
}
|
|
84
|
-
.t-t-table[data-v-
|
|
84
|
+
.t-t-table[data-v-mta60bgb] .t-table__content::-webkit-scrollbar-thumb {
|
|
85
85
|
width: 6px;
|
|
86
86
|
height: 6px;
|
|
87
87
|
border-radius: 3px;
|
|
88
88
|
background-color: #dcdee5;
|
|
89
89
|
}
|
|
90
|
-
.t-t-table[data-v-
|
|
90
|
+
.t-t-table[data-v-mta60bgb] .t-table__content::-webkit-scrollbar-thumb:hover {
|
|
91
91
|
background-color: #979ba5;
|
|
92
92
|
}
|
|
93
|
-
.t-t-table[data-v-
|
|
93
|
+
.t-t-table[data-v-mta60bgb] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
|
|
94
94
|
line-height: 100%;
|
|
95
95
|
}
|
|
96
|
-
.t-t-table[data-v-
|
|
96
|
+
.t-t-table[data-v-mta60bgb] .t-table__cell--sort-trigger.t-table__double-icons{
|
|
97
97
|
gap: 5px;
|
|
98
98
|
}
|
|
99
|
-
.t-t-table[data-v-
|
|
99
|
+
.t-t-table[data-v-mta60bgb] .t-table__sort-icon--active>i{
|
|
100
100
|
color: #3a84ff !important;
|
|
101
101
|
}
|
|
102
|
-
.t-t-table[data-v-
|
|
102
|
+
.t-t-table[data-v-mta60bgb] .t-table__cell--fixed-left:has(.checkbox){
|
|
103
103
|
line-height: 100%;
|
|
104
104
|
}
|
|
105
|
-
.t-t-table[data-v-
|
|
105
|
+
.t-t-table[data-v-mta60bgb] .t-table__filter-icon.t-is-focus>span{
|
|
106
106
|
color: #3a84ff !important;
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
|
-
.tag-tree[data-v-
|
|
2
|
+
.tag-tree[data-v-984lvh3z] {
|
|
3
3
|
font-size: 12px;
|
|
4
4
|
height: auto;
|
|
5
5
|
max-height: calc(100% - 44px);
|
|
6
6
|
}
|
|
7
|
-
.tag-tree .manage-tree-item[data-v-
|
|
7
|
+
.tag-tree .manage-tree-item[data-v-984lvh3z] {
|
|
8
8
|
height: 32px;
|
|
9
9
|
flex: 1;
|
|
10
10
|
}
|
|
11
|
-
.tag-tree .quick-icon[data-v-
|
|
11
|
+
.tag-tree .quick-icon[data-v-984lvh3z] {
|
|
12
12
|
margin-left: -24px;
|
|
13
13
|
padding-left: 8px;
|
|
14
14
|
}
|
|
15
|
-
.tag-tree[data-v-
|
|
15
|
+
.tag-tree[data-v-984lvh3z] .tree-item:has(.bottom-line) {
|
|
16
16
|
border-bottom: 1px solid #F0F1F5;
|
|
17
17
|
}
|
|
18
|
-
.tag-tree[data-v-
|
|
18
|
+
.tag-tree[data-v-984lvh3z] .tree-item.active .quick-icon {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
}
|
|
21
|
-
.tag-tree[data-v-
|
|
21
|
+
.tag-tree[data-v-984lvh3z] .tree-item.active .tag-number {
|
|
22
22
|
background: #A3C5FD;
|
|
23
23
|
color: #fff;
|
|
24
24
|
}
|
|
25
|
-
.tag-number[data-v-
|
|
25
|
+
.tag-number[data-v-984lvh3z] {
|
|
26
26
|
line-height: 16px;
|
|
27
27
|
padding: 0 4px;
|
|
28
28
|
background-color: #F0F1F5;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
.tag-container[data-v-
|
|
2
|
+
.tag-container[data-v-wm9hgy6j] {
|
|
3
3
|
visibility: hidden;
|
|
4
4
|
white-space: nowrap;
|
|
5
5
|
column-gap: 4px;
|
|
6
6
|
width: calc(100% - 20px);
|
|
7
7
|
}
|
|
8
|
-
.tag-home[data-v-
|
|
8
|
+
.tag-home[data-v-wm9hgy6j] {
|
|
9
9
|
vertical-align: sub;
|
|
10
10
|
flex-shrink: 0;
|
|
11
11
|
}
|
|
12
|
-
[is-show="true"][data-v-
|
|
12
|
+
[is-show="true"][data-v-wm9hgy6j] {
|
|
13
13
|
visibility: visible;
|
|
14
14
|
}
|
|
15
|
-
[is-show="false"][data-v-
|
|
15
|
+
[is-show="false"][data-v-wm9hgy6j] {
|
|
16
16
|
display: none !important;
|
|
17
17
|
}
|
|
18
|
-
.popover-main[data-v-
|
|
18
|
+
.popover-main[data-v-wm9hgy6j] {
|
|
19
19
|
padding: 8px 8px 10px;
|
|
20
20
|
}
|
|
21
|
-
.tag-list[data-v-
|
|
21
|
+
.tag-list[data-v-wm9hgy6j] {
|
|
22
22
|
border-radius: 2px;
|
|
23
23
|
background: #F0F1F5;
|
|
24
24
|
}
|
package/dist/css/g-utilities.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { IFetchConfig } from '@/http/fetch';
|
|
3
3
|
import type { IAgent, IAgentApi, IAgentCountParam, IAgentListParam, IResourceApply } from '@/types';
|
|
4
|
+
import { McpType } from '@/types/enum';
|
|
4
5
|
export declare const useAgentHttp: (apiPrefix: string, spaceId?: Ref<string>) => {
|
|
5
6
|
getAgentList: {
|
|
6
7
|
(param: IAgentListParam, config?: IFetchConfig): Promise<import("@/types").IPaginationResponse<IAgent>>;
|
|
@@ -18,4 +19,5 @@ export declare const useAgentHttp: (apiPrefix: string, spaceId?: Ref<string>) =>
|
|
|
18
19
|
resourceApply: (data: IResourceApply[], agentId: number) => Promise<unknown>;
|
|
19
20
|
getAgentCount: (param: IAgentCountParam) => Promise<import("@/types").IResourceCount[]>;
|
|
20
21
|
getAgentReferringAgents: (id: number) => Promise<import("@/types").IReferringAgent[]>;
|
|
22
|
+
getAgentMcpPermission: (agentId: number, mcpCode: string, mcpType: McpType) => Promise<import("@/types").IAgentApigwMcpPermission>;
|
|
21
23
|
};
|