@blueking/ai-ui-sdk 0.3.0-beta.27 → 0.3.0-beta.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/dist/components/render-agent/agent-type.vue.css +3 -3
  2. package/dist/components/render-agent/agent-type.vue.js +1 -1
  3. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  4. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  5. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  6. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  7. package/dist/components/render-card/agent/prefix-info-tool.vue.css +5 -5
  8. package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
  9. package/dist/components/render-card/base.vue.css +12 -12
  10. package/dist/components/render-card/base.vue.js +1 -1
  11. package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
  12. package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
  13. package/dist/components/render-card/llm/icons.vue.css +2 -2
  14. package/dist/components/render-card/llm/icons.vue.js +1 -1
  15. package/dist/components/render-card/llm/index.script.vue.js.js +7 -2
  16. package/dist/components/render-card/llm/index.vue.d.ts +3 -0
  17. package/dist/components/render-card/llm/info.vue.css +1 -1
  18. package/dist/components/render-card/llm/info.vue.js +1 -1
  19. package/dist/components/render-card/llm/tag-prefix.vue.css +3 -3
  20. package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
  21. package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
  22. package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
  23. package/dist/components/render-card/prompt/icons.vue.css +1 -1
  24. package/dist/components/render-card/prompt/icons.vue.js +1 -1
  25. package/dist/components/render-card/skill/tag-prefix.vue.css +3 -3
  26. package/dist/components/render-card/skill/tag-prefix.vue.js +1 -1
  27. package/dist/components/render-checkbox/index.vue.css +9 -9
  28. package/dist/components/render-checkbox/index.vue.js +1 -1
  29. package/dist/components/render-choose-tag/index.vue.css +7 -7
  30. package/dist/components/render-choose-tag/index.vue.js +1 -1
  31. package/dist/components/render-collapse/index.vue.css +2 -2
  32. package/dist/components/render-collapse/index.vue.js +1 -1
  33. package/dist/components/render-collection/content/index.vue.css +4 -4
  34. package/dist/components/render-collection/content/index.vue.js +1 -1
  35. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
  36. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
  37. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
  38. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
  39. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  40. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +1 -1
  41. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
  42. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  43. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  44. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  45. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  46. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  47. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  48. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  49. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  50. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -1
  51. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  52. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  53. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  54. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  55. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  56. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +1 -1
  57. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  58. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  59. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  60. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  61. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  62. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  63. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  64. package/dist/components/render-dataset-list/index.vue.css +2 -2
  65. package/dist/components/render-dataset-list/index.vue.js +1 -1
  66. package/dist/components/render-dialog/choose-resource.vue.css +3 -3
  67. package/dist/components/render-dialog/choose-resource.vue.js +1 -1
  68. package/dist/components/render-dialog/choose-result.vue.css +14 -14
  69. package/dist/components/render-dialog/choose-result.vue.js +1 -1
  70. package/dist/components/render-dialog/choose-space.vue.css +9 -9
  71. package/dist/components/render-dialog/choose-space.vue.js +1 -1
  72. package/dist/components/render-dialog/index.vue.css +6 -6
  73. package/dist/components/render-dialog/index.vue.js +1 -1
  74. package/dist/components/render-file-card/index.vue.css +11 -11
  75. package/dist/components/render-file-card/index.vue.js +1 -1
  76. package/dist/components/render-file-type-icon/index.vue.css +6 -6
  77. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  78. package/dist/components/render-generate-tag/index.vue.css +5 -5
  79. package/dist/components/render-generate-tag/index.vue.js +1 -1
  80. package/dist/components/render-header/index.vue.css +3 -3
  81. package/dist/components/render-header/index.vue.js +1 -1
  82. package/dist/components/render-knowledge/icon/index.vue.css +1 -1
  83. package/dist/components/render-knowledge/icon/index.vue.js +1 -1
  84. package/dist/components/render-like/index.vue.css +5 -5
  85. package/dist/components/render-like/index.vue.js +1 -1
  86. package/dist/components/render-prompt/content/index.vue.css +1 -1
  87. package/dist/components/render-prompt/content/index.vue.js +1 -1
  88. package/dist/components/render-reference/index.vue.css +2 -2
  89. package/dist/components/render-reference/index.vue.js +1 -1
  90. package/dist/components/render-relate-agent/index.script.vue.js.js +30 -14
  91. package/dist/components/render-relate-agent/index.vue.d.ts +1 -2
  92. package/dist/components/render-resource-version/index.vue.css +2 -2
  93. package/dist/components/render-resource-version/index.vue.js +1 -1
  94. package/dist/components/render-router-tab/index.vue.css +3 -3
  95. package/dist/components/render-router-tab/index.vue.js +1 -1
  96. package/dist/components/render-select-plus-extension/index.vue.css +3 -3
  97. package/dist/components/render-select-plus-extension/index.vue.js +1 -1
  98. package/dist/components/render-t-table/index.vue.css +27 -27
  99. package/dist/components/render-t-table/index.vue.js +1 -1
  100. package/dist/components/render-tag-tree/index.vue.css +7 -7
  101. package/dist/components/render-tag-tree/index.vue.js +1 -1
  102. package/dist/components/render-tags/index.vue.css +6 -6
  103. package/dist/components/render-tags/index.vue.js +1 -1
  104. package/dist/hooks/use-space-http.d.ts +2 -0
  105. package/dist/hooks/use-space-http.ts.js +10 -1
  106. package/dist/http/helper/agent.ts.js +1 -0
  107. package/dist/http/helper/space.d.ts +7 -1
  108. package/dist/http/helper/space.ts.js +15 -0
  109. package/dist/types/agent.d.ts +2 -0
  110. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
1
 
2
- .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-9ydhv1l8] {
2
+ .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-zgeo4uec] {
3
3
  color: #EA3636;
4
4
  }
5
- .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-9ydhv1l8], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-9ydhv1l8], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-9ydhv1l8] {
5
+ .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-zgeo4uec], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-zgeo4uec], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-zgeo4uec] {
6
6
  color: #3A84FF;
7
7
  }
8
- .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-9ydhv1l8] {
8
+ .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-zgeo4uec] {
9
9
  color: #C4C6CC;
10
10
  }
11
- .ai-ui-sdk-icon.ai-ui-sdk-archive-line[data-v-9ydhv1l8] {
11
+ .ai-ui-sdk-icon.ai-ui-sdk-archive-line[data-v-zgeo4uec] {
12
12
  color: #979BA5;
13
13
  }
14
- .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-9ydhv1l8] {
14
+ .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-zgeo4uec] {
15
15
  color: #2DCB56;
16
16
  }
17
- .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-9ydhv1l8] {
17
+ .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-zgeo4uec] {
18
18
  color: #14A568;
19
19
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-9ydhv1l8";
2
+ script.__scopeId = "data-v-zgeo4uec";
3
3
  script.__file = "./src/components/render-file-type-icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,22 +1,22 @@
1
1
 
2
- .generate-type-tag[data-v-6gs0yd10] {
2
+ .generate-type-tag[data-v-ohpahphg] {
3
3
  border-radius: 2px;
4
4
  text-align: left;
5
5
  white-space: nowrap;
6
6
  }
7
- .generate-type-tag.public[data-v-6gs0yd10] {
7
+ .generate-type-tag.public[data-v-ohpahphg] {
8
8
  color: #2CAF5E;
9
9
  background-color: #DAF6E5;
10
10
  }
11
- .generate-type-tag.public[data-v-6gs0yd10]:hover {
11
+ .generate-type-tag.public[data-v-ohpahphg]:hover {
12
12
  color: #299E56;
13
13
  background-color: #CBF0DA;
14
14
  }
15
- .generate-type-tag.space[data-v-6gs0yd10] {
15
+ .generate-type-tag.space[data-v-ohpahphg] {
16
16
  color: #45A0A5;
17
17
  background-color: #D8F4F5;
18
18
  }
19
- .generate-type-tag.space[data-v-6gs0yd10]:hover {
19
+ .generate-type-tag.space[data-v-ohpahphg]:hover {
20
20
  color: #388A8E;
21
21
  background-color: #B6E7E9;
22
22
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-6gs0yd10";
2
+ script.__scopeId = "data-v-ohpahphg";
3
3
  script.__file = "./src/components/render-generate-tag/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,13 +1,13 @@
1
1
 
2
- .header-home[data-v-wj6k7ajo] {
2
+ .header-home[data-v-v08a8k62] {
3
3
  width: 100%;
4
4
  background: #FFFFFF;
5
5
  box-shadow: 0 3px 4px 0 #0000000a;
6
6
  }
7
- .render-tab[data-v-wj6k7ajo] {
7
+ .render-tab[data-v-v08a8k62] {
8
8
  border-bottom: 2px solid transparent;
9
9
  }
10
- .render-tab.active[data-v-wj6k7ajo] {
10
+ .render-tab.active[data-v-v08a8k62] {
11
11
  color: #3A84FF;
12
12
  border-bottom: 2px solid #3A84FF;
13
13
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-wj6k7ajo";
2
+ script.__scopeId = "data-v-v08a8k62";
3
3
  script.__file = "./src/components/render-header/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,4 +1,4 @@
1
1
 
2
- .ai-ui-sdk-icon[data-v-0z0uus19] {
2
+ .ai-ui-sdk-icon[data-v-bypsp3bo] {
3
3
  color: #979ba5;
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-0z0uus19";
2
+ script.__scopeId = "data-v-bypsp3bo";
3
3
  script.__file = "./src/components/render-knowledge/icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,20 +1,20 @@
1
1
 
2
- .dislike-icon[data-v-3fdepc5g] {
2
+ .dislike-icon[data-v-dncikswk] {
3
3
  transform: rotateX(180deg);
4
4
  }
5
- .option-items[data-v-3fdepc5g] {
5
+ .option-items[data-v-dncikswk] {
6
6
  padding: 1px 8px;
7
7
  background-color: #F0F1F5;
8
8
  line-height: 22px;
9
9
  border-radius: 2px;
10
10
  }
11
- .option-items[data-v-3fdepc5g]:hover {
11
+ .option-items[data-v-dncikswk]:hover {
12
12
  background-color: #E1ECFF;
13
13
  color: #3A84FF;
14
14
  }
15
- .option-items-selected[data-v-3fdepc5g]{
15
+ .option-items-selected[data-v-dncikswk]{
16
16
  background-color: #E1ECFF;
17
17
  }
18
- [data-v-3fdepc5g] .bk-form-item {
18
+ [data-v-dncikswk] .bk-form-item {
19
19
  margin-bottom: 17px;
20
20
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-3fdepc5g";
2
+ script.__scopeId = "data-v-dncikswk";
3
3
  script.__file = "./src/components/render-like/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .resource-card-description[data-v-lx37fi0q] {
2
+ .resource-card-description[data-v-0bisceku] {
3
3
  color: #4D4F56;
4
4
  height: 120px;
5
5
  white-space: pre-wrap;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-lx37fi0q";
2
+ script.__scopeId = "data-v-0bisceku";
3
3
  script.__file = "./src/components/render-prompt/content/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,8 +1,8 @@
1
1
 
2
- .reference-table[data-v-216dbv4b]{
2
+ .reference-table[data-v-9u1k1237]{
3
3
  padding: 18px 24px;
4
4
  }
5
- .bk-radio-button[data-v-216dbv4b]{
5
+ .bk-radio-button[data-v-9u1k1237]{
6
6
  flex: 1;
7
7
  text-align: center;
8
8
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-216dbv4b";
2
+ script.__scopeId = "data-v-9u1k1237";
3
3
  script.__file = "./src/components/render-reference/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -89,7 +89,8 @@ import { MAX_PAGE_SIZE, MODULE_NAME } from '../../common/constants.ts.js';
89
89
  import RenderSelectPlusExtension from '../render-select-plus-extension/index.vue.js';
90
90
  import { useAgentHttp } from '../../hooks/use-agent-http.ts.js';
91
91
  import { useClickoutside } from '../../hooks/use-clickoutside.ts.js';
92
- import { AgentType, GroupType, Module, SdkNavigateActionType } from '../../types/enum.ts.js';
92
+ import { useSpaceHttp } from '../../hooks/use-space-http.ts.js';
93
+ import { AgentType, GroupType, Module, ResourceStatus, SdkNavigateActionType } from '../../types/enum.ts.js';
93
94
  export default /*@__PURE__*/ _defineComponent({
94
95
  props: {
95
96
  resourceType: {},
@@ -105,7 +106,6 @@ export default /*@__PURE__*/ _defineComponent({
105
106
  default: 'right'
106
107
  },
107
108
  spaceId: {},
108
- spaces: {},
109
109
  apiPrefix: {}
110
110
  },
111
111
  emits: [
@@ -115,25 +115,33 @@ export default /*@__PURE__*/ _defineComponent({
115
115
  const props = __props;
116
116
  const emits = __emit;
117
117
  const { getAgent, getAgentList, updateAgent, getAgentMcpPermission, resourceApply } = useAgentHttp(props.apiPrefix, toRef(props, 'spaceId'));
118
+ const { getResourceAuthorizedSpaces } = useSpaceHttp(props.apiPrefix, toRef(props, 'spaceId'));
118
119
  const { handleInitClickoutside } = useClickoutside();
119
120
  const formRef = ref();
120
121
  const agents = ref([]);
122
+ const spaces = ref([]);
121
123
  const isLoadingAgents = ref(false);
124
+ const isLoadingSpaces = ref(false);
122
125
  const isLoadingConfirm = ref(false);
123
126
  const isShowPopover = ref(false);
124
127
  const isShowApplyConfirm = ref(false);
125
128
  const hasMcpPermission = ref(undefined);
126
129
  const formData = ref({
127
130
  selectedAgentId: undefined,
128
- selectedSpaceId: props.spaceId
131
+ selectedSpaceId: undefined
129
132
  });
130
- const getPermittedSpaces = ()=>{
131
- return props.spaces.filter((space)=>{
132
- var _space_permission;
133
- return (_space_permission = space.permission) === null || _space_permission === void 0 ? void 0 : _space_permission.viewSpace;
133
+ const handleGetSpacesAndSetDefaultSpace = ()=>{
134
+ isLoadingSpaces.value = true;
135
+ return getResourceAuthorizedSpaces(props.resourceType, props.resource.id).then((data)=>{
136
+ var _data_;
137
+ spaces.value = data;
138
+ formData.value.selectedSpaceId = (_data_ = data[0]) === null || _data_ === void 0 ? void 0 : _data_.spaceId;
139
+ }).finally(()=>{
140
+ isLoadingSpaces.value = false;
134
141
  });
135
142
  };
136
143
  const handleGetAgentsAndSetDefaultAgent = ()=>{
144
+ if (!formData.value.selectedSpaceId) return;
137
145
  isLoadingAgents.value = true;
138
146
  const params = {
139
147
  page: 1,
@@ -166,20 +174,25 @@ export default /*@__PURE__*/ _defineComponent({
166
174
  });
167
175
  };
168
176
  const handleClose = ()=>{
177
+ var // 清空表单验证
178
+ _formRef_value;
179
+ // 关闭弹窗
169
180
  isShowPopover.value = false;
170
181
  isShowApplyConfirm.value = false;
182
+ // 清空表单数据
183
+ formData.value.selectedAgentId = undefined;
184
+ formData.value.selectedSpaceId = undefined;
185
+ // 清空权限检查结果
186
+ hasMcpPermission.value = undefined;
187
+ (_formRef_value = formRef.value) === null || _formRef_value === void 0 ? void 0 : _formRef_value.clearValidate();
171
188
  };
172
189
  const handleClickOutside = ()=>{
173
190
  handleClose();
174
191
  };
175
192
  const handleShow = ()=>{
176
- var _formRef_value;
177
193
  if (isShowPopover.value) return;
178
194
  isShowPopover.value = true;
179
- formData.value.selectedAgentId = undefined;
180
- formData.value.selectedSpaceId = props.spaceId;
181
- hasMcpPermission.value = undefined;
182
- (_formRef_value = formRef.value) === null || _formRef_value === void 0 ? void 0 : _formRef_value.clearValidate();
195
+ handleGetSpacesAndSetDefaultSpace();
183
196
  handleGetAgentsAndSetDefaultAgent();
184
197
  };
185
198
  const handleRelateAgentToAgent = function() {
@@ -376,7 +389,7 @@ export default /*@__PURE__*/ _defineComponent({
376
389
  isLoadingConfirm.value = true;
377
390
  const mcp = props.resource;
378
391
  getAgentMcpPermission(formData.value.selectedAgentId, mcp.mcpCode, mcp.mcpType).then((res)=>{
379
- hasMcpPermission.value = res.hasPermission;
392
+ hasMcpPermission.value = res.status !== ResourceStatus.NoPermission;
380
393
  }).catch(()=>{
381
394
  hasMcpPermission.value = undefined;
382
395
  }).finally(()=>{
@@ -430,13 +443,15 @@ export default /*@__PURE__*/ _defineComponent({
430
443
  "id-key": "spaceId",
431
444
  "display-key": "spaceName",
432
445
  clearable: false,
433
- list: getPermittedSpaces(),
446
+ loading: isLoadingSpaces.value,
447
+ list: spaces.value,
434
448
  "popover-options": {
435
449
  boundary: 'parent'
436
450
  },
437
451
  onChange: handleGetAgentsAndSetDefaultAgent
438
452
  }, null, 8 /* PROPS */ , [
439
453
  "modelValue",
454
+ "loading",
440
455
  "list"
441
456
  ])
442
457
  ]),
@@ -490,6 +505,7 @@ export default /*@__PURE__*/ _defineComponent({
490
505
  width: "280",
491
506
  title: "确认提交申请?",
492
507
  content: "当前选择的 MCP 暂无使用权限且未经申请,提交后将自动创建申请单",
508
+ boundary: "parent",
493
509
  "is-show": isShowApplyConfirm.value,
494
510
  "confirm-config": {
495
511
  loading: isLoadingConfirm.value
@@ -1,4 +1,4 @@
1
- import type { IKnowledgebase, ISpace, ITool } from '@/types';
1
+ import type { IKnowledgebase, ITool } from '@/types';
2
2
  import type { IAgent } from '@/types/agent';
3
3
  import { Module } from '@/types/enum';
4
4
  import type { IMcp } from '@/types/mcp';
@@ -13,7 +13,6 @@ interface IProps {
13
13
  boundary?: string;
14
14
  placement?: string;
15
15
  spaceId?: string;
16
- spaces?: ISpace[];
17
16
  apiPrefix: string;
18
17
  }
19
18
  declare var __VLS_8: {
@@ -1,11 +1,11 @@
1
1
 
2
- .resource-version[data-v-s2eftxty] {
2
+ .resource-version[data-v-mcnhorp5] {
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-s2eftxty] {
9
+ .resource-version .bkaidev-rizhifenxi[data-v-mcnhorp5] {
10
10
  color: #3A84FF;
11
11
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-s2eftxty";
2
+ script.__scopeId = "data-v-mcnhorp5";
3
3
  script.__file = "./src/components/render-resource-version/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,12 +1,12 @@
1
1
 
2
- .router-tab[data-v-rvvl6th8] {
2
+ .router-tab[data-v-9jl7xp3c] {
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-rvvl6th8] {
9
+ .router-tab a[data-v-9jl7xp3c] {
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-rvvl6th8] {
18
+ .router-tab a.router-link-exact-active[data-v-9jl7xp3c] {
19
19
  color: #3A84FF;
20
20
  border-bottom: 2px solid #3A84FF;
21
21
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-rvvl6th8";
2
+ script.__scopeId = "data-v-9jl7xp3c";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .select-plus-extension[data-v-2sp3u1dw] {
2
+ .select-plus-extension[data-v-l3yziqcy] {
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 .ai-ui-sdk-icon[data-v-2sp3u1dw] {
11
+ .select-plus-extension .ai-ui-sdk-icon[data-v-l3yziqcy] {
12
12
  font-size: 14px;
13
13
  margin-right: 6px;
14
14
  }
15
- .select-plus-extension[data-v-2sp3u1dw]:hover {
15
+ .select-plus-extension[data-v-l3yziqcy]:hover {
16
16
  color: #3A84FF;
17
17
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-2sp3u1dw";
2
+ script.__scopeId = "data-v-l3yziqcy";
3
3
  script.__file = "./src/components/render-select-plus-extension/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,12 +1,12 @@
1
1
 
2
- .t-t-pagination[data-v-u3uvobbm] {
2
+ .t-t-pagination[data-v-cgnzt80s] {
3
3
  position: relative;
4
4
  padding: 16px 16px 0 16px;
5
5
  }
6
- .t-t-pagination[data-v-u3uvobbm] .bk-pagination-list.is-last {
6
+ .t-t-pagination[data-v-cgnzt80s] .bk-pagination-list.is-last {
7
7
  margin-left: auto;
8
8
  }
9
- .pagination-loading[data-v-u3uvobbm]::after {
9
+ .pagination-loading[data-v-cgnzt80s]::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-u3uvobbm] {
19
+ .pagination-border[data-v-cgnzt80s] {
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-u3uvobbm] {
25
+ .t-t-table[data-v-cgnzt80s] {
26
26
  display: inline;
27
27
  font-size: 12px;
28
28
  }
29
- .t-t-table[data-v-u3uvobbm] .t-table__th-cell-inner {
29
+ .t-t-table[data-v-cgnzt80s] .t-table__th-cell-inner {
30
30
  color: #313238;
31
31
  }
32
- .t-t-table[data-v-u3uvobbm] th {
32
+ .t-t-table[data-v-cgnzt80s] th {
33
33
  padding: 0 16px;
34
34
  height: 42px;
35
35
  background-color: #FAFBFD !important;
36
36
  }
37
- .t-t-table[data-v-u3uvobbm] .t-table__body tr {
37
+ .t-t-table[data-v-cgnzt80s] .t-table__body tr {
38
38
  color: #63656e;
39
39
  font-size: 12px;
40
40
  }
41
- .t-t-table[data-v-u3uvobbm] .t-table__body tr td {
41
+ .t-t-table[data-v-cgnzt80s] .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-u3uvobbm] .t-table__body tr:hover td {
46
+ .t-t-table[data-v-cgnzt80s] .t-table__body tr:hover td {
47
47
  background-color: #f5f7fa !important;
48
48
  color: #63656E;
49
49
  }
50
- .t-t-table[data-v-u3uvobbm] .t-table__content .t-table__body .t-table__empty-row {
50
+ .t-t-table[data-v-cgnzt80s] .t-table__content .t-table__body .t-table__empty-row {
51
51
  background-color: #fff !important;
52
52
  }
53
- .t-t-table[data-v-u3uvobbm] .t-table__content .t-table__body .t-table__empty-row >td {
53
+ .t-t-table[data-v-cgnzt80s] .t-table__content .t-table__body .t-table__empty-row >td {
54
54
  border: none;
55
55
  }
56
- .t-t-table[data-v-u3uvobbm] th .t-table__ellipsis {
56
+ .t-t-table[data-v-cgnzt80s] th .t-table__ellipsis {
57
57
  width: auto !important;
58
58
  }
59
- .t-t-table[data-v-u3uvobbm] .t-loading__gradient.t-icon-loading {
59
+ .t-t-table[data-v-cgnzt80s] .t-loading__gradient.t-icon-loading {
60
60
  display: none;
61
61
  }
62
- .t-t-table[data-v-u3uvobbm]:first-of-type .t-table__affixed-header-elm-wrap{
62
+ .t-t-table[data-v-cgnzt80s]:first-of-type .t-table__affixed-header-elm-wrap{
63
63
  width: calc(100% - 6px) !important;
64
64
  }
65
- .t-t-table[data-v-u3uvobbm] .t-table__affixed-header-elm-wrap>div {
65
+ .t-t-table[data-v-cgnzt80s] .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-u3uvobbm] .t-table--layout-fixed{
69
+ .t-t-table[data-v-cgnzt80s] .t-table--layout-fixed{
70
70
  width: 100% !important;
71
71
  }
72
- .t-t-table[data-v-u3uvobbm] .bk-exception-description{
72
+ .t-t-table[data-v-cgnzt80s] .bk-exception-description{
73
73
  margin-bottom: 0;
74
74
  }
75
- .t-t-table[data-v-u3uvobbm] .t-table__content{
75
+ .t-t-table[data-v-cgnzt80s] .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-u3uvobbm] .t-table__content::-webkit-scrollbar {
80
+ .t-t-table[data-v-cgnzt80s] .t-table__content::-webkit-scrollbar {
81
81
  width: 6px;
82
82
  height: 6px;
83
83
  }
84
- .t-t-table[data-v-u3uvobbm] .t-table__content::-webkit-scrollbar-thumb {
84
+ .t-t-table[data-v-cgnzt80s] .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-u3uvobbm] .t-table__content::-webkit-scrollbar-thumb:hover {
90
+ .t-t-table[data-v-cgnzt80s] .t-table__content::-webkit-scrollbar-thumb:hover {
91
91
  background-color: #979ba5;
92
92
  }
93
- .t-t-table[data-v-u3uvobbm] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
93
+ .t-t-table[data-v-cgnzt80s] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
94
94
  line-height: 100%;
95
95
  }
96
- .t-t-table[data-v-u3uvobbm] .t-table__cell--sort-trigger.t-table__double-icons{
96
+ .t-t-table[data-v-cgnzt80s] .t-table__cell--sort-trigger.t-table__double-icons{
97
97
  gap: 5px;
98
98
  }
99
- .t-t-table[data-v-u3uvobbm] .t-table__sort-icon--active>i{
99
+ .t-t-table[data-v-cgnzt80s] .t-table__sort-icon--active>i{
100
100
  color: #3a84ff !important;
101
101
  }
102
- .t-t-table[data-v-u3uvobbm] .t-table__cell--fixed-left:has(.checkbox){
102
+ .t-t-table[data-v-cgnzt80s] .t-table__cell--fixed-left:has(.checkbox){
103
103
  line-height: 100%;
104
104
  }
105
- .t-t-table[data-v-u3uvobbm] .t-table__filter-icon.t-is-focus>span{
105
+ .t-t-table[data-v-cgnzt80s] .t-table__filter-icon.t-is-focus>span{
106
106
  color: #3a84ff !important;
107
107
  }
108
108
 
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-u3uvobbm";
2
+ script.__scopeId = "data-v-cgnzt80s";
3
3
  script.__file = "./src/components/render-t-table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,28 +1,28 @@
1
1
 
2
- .tag-tree[data-v-uz2spdxf] {
2
+ .tag-tree[data-v-hav45hyz] {
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-uz2spdxf] {
7
+ .tag-tree .manage-tree-item[data-v-hav45hyz] {
8
8
  height: 32px;
9
9
  flex: 1;
10
10
  }
11
- .tag-tree .quick-icon[data-v-uz2spdxf] {
11
+ .tag-tree .quick-icon[data-v-hav45hyz] {
12
12
  margin-left: -24px;
13
13
  padding-left: 8px;
14
14
  }
15
- .tag-tree[data-v-uz2spdxf] .tree-item:has(.bottom-line) {
15
+ .tag-tree[data-v-hav45hyz] .tree-item:has(.bottom-line) {
16
16
  border-bottom: 1px solid #F0F1F5;
17
17
  }
18
- .tag-tree[data-v-uz2spdxf] .tree-item.active .quick-icon {
18
+ .tag-tree[data-v-hav45hyz] .tree-item.active .quick-icon {
19
19
  color: #3A84FF;
20
20
  }
21
- .tag-tree[data-v-uz2spdxf] .tree-item.active .tag-number {
21
+ .tag-tree[data-v-hav45hyz] .tree-item.active .tag-number {
22
22
  background: #A3C5FD;
23
23
  color: #fff;
24
24
  }
25
- .tag-number[data-v-uz2spdxf] {
25
+ .tag-number[data-v-hav45hyz] {
26
26
  line-height: 16px;
27
27
  padding: 0 4px;
28
28
  background-color: #F0F1F5;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-uz2spdxf";
2
+ script.__scopeId = "data-v-hav45hyz";
3
3
  script.__file = "./src/components/render-tag-tree/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,24 +1,24 @@
1
1
 
2
- .tag-container[data-v-znhpg42p] {
2
+ .tag-container[data-v-28nnq69p] {
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-znhpg42p] {
8
+ .tag-home[data-v-28nnq69p] {
9
9
  vertical-align: sub;
10
10
  flex-shrink: 0;
11
11
  }
12
- [is-show="true"][data-v-znhpg42p] {
12
+ [is-show="true"][data-v-28nnq69p] {
13
13
  visibility: visible;
14
14
  }
15
- [is-show="false"][data-v-znhpg42p] {
15
+ [is-show="false"][data-v-28nnq69p] {
16
16
  display: none !important;
17
17
  }
18
- .popover-main[data-v-znhpg42p] {
18
+ .popover-main[data-v-28nnq69p] {
19
19
  padding: 8px 8px 10px;
20
20
  }
21
- .tag-list[data-v-znhpg42p] {
21
+ .tag-list[data-v-28nnq69p] {
22
22
  border-radius: 2px;
23
23
  background: #F0F1F5;
24
24
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-znhpg42p";
2
+ script.__scopeId = "data-v-28nnq69p";
3
3
  script.__file = "./src/components/render-tags/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,7 +1,9 @@
1
1
  import { Ref } from 'vue';
2
2
  import { IFetchConfig } from '@/http/fetch';
3
+ import type { Module } from '@/types/enum';
3
4
  import { IResourcesRemoveApplication, IUsableSpaceParam } from '@/types/space';
4
5
  export declare const useSpaceHttp: (apiPrefix: string, spaceId?: Ref<string>) => {
6
+ getResourceAuthorizedSpaces: (resourceType: Module, resourceId: number) => Promise<import("@/types/space").ISpace[]>;
5
7
  removeApplyResources: (data: IResourcesRemoveApplication) => Promise<unknown>;
6
8
  getUsableSpaces: {
7
9
  (data: IUsableSpaceParam, config?: IFetchConfig): Promise<import("@/types/space").IUsableSpace[]>;