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

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 (115) 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-auth/auth-dialog.script.vue.js.js +1 -1
  4. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  5. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  6. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  7. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  8. package/dist/components/render-card/agent/actions.script.vue.js.js +1 -1
  9. package/dist/components/render-card/agent/prefix-info-tool.vue.css +5 -5
  10. package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
  11. package/dist/components/render-card/base/application-base-actions.script.vue.js.js +1 -1
  12. package/dist/components/render-card/base.vue.css +12 -12
  13. package/dist/components/render-card/base.vue.js +1 -1
  14. package/dist/components/render-card/llm/actions.script.vue.js.js +2 -2
  15. package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
  16. package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
  17. package/dist/components/render-card/llm/icons.vue.css +2 -2
  18. package/dist/components/render-card/llm/icons.vue.js +1 -1
  19. package/dist/components/render-card/llm/info.vue.css +1 -1
  20. package/dist/components/render-card/llm/info.vue.js +1 -1
  21. package/dist/components/render-card/llm/tag-prefix.vue.css +3 -3
  22. package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
  23. package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
  24. package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
  25. package/dist/components/render-card/prompt/icons.vue.css +1 -1
  26. package/dist/components/render-card/prompt/icons.vue.js +1 -1
  27. package/dist/components/render-card/skill/tag-prefix.vue.css +3 -3
  28. package/dist/components/render-card/skill/tag-prefix.vue.js +1 -1
  29. package/dist/components/render-checkbox/index.vue.css +9 -9
  30. package/dist/components/render-checkbox/index.vue.js +1 -1
  31. package/dist/components/render-choose-tag/index.vue.css +7 -7
  32. package/dist/components/render-choose-tag/index.vue.js +1 -1
  33. package/dist/components/render-collapse/index.vue.css +2 -2
  34. package/dist/components/render-collapse/index.vue.js +1 -1
  35. package/dist/components/render-collection/content/index.vue.css +4 -4
  36. package/dist/components/render-collection/content/index.vue.js +1 -1
  37. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
  38. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
  39. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
  40. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
  41. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  42. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +1 -1
  43. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
  44. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  45. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  46. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  47. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  48. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  49. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  50. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  51. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  52. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -1
  53. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  54. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  55. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  56. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  57. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  58. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +1 -1
  59. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  60. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  61. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  62. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  63. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  64. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  65. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  66. package/dist/components/render-dataset-list/index.vue.css +2 -2
  67. package/dist/components/render-dataset-list/index.vue.js +1 -1
  68. package/dist/components/render-dialog/choose-resource.vue.css +3 -3
  69. package/dist/components/render-dialog/choose-resource.vue.js +1 -1
  70. package/dist/components/render-dialog/choose-result.vue.css +14 -14
  71. package/dist/components/render-dialog/choose-result.vue.js +1 -1
  72. package/dist/components/render-dialog/choose-space.vue.css +9 -9
  73. package/dist/components/render-dialog/choose-space.vue.js +1 -1
  74. package/dist/components/render-dialog/index.vue.css +6 -6
  75. package/dist/components/render-dialog/index.vue.js +1 -1
  76. package/dist/components/render-file-card/index.vue.css +11 -11
  77. package/dist/components/render-file-card/index.vue.js +1 -1
  78. package/dist/components/render-file-type-icon/index.vue.css +6 -6
  79. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  80. package/dist/components/render-generate-tag/index.vue.css +5 -5
  81. package/dist/components/render-generate-tag/index.vue.js +1 -1
  82. package/dist/components/render-header/index.vue.css +3 -3
  83. package/dist/components/render-header/index.vue.js +1 -1
  84. package/dist/components/render-knowledge/icon/index.vue.css +1 -1
  85. package/dist/components/render-knowledge/icon/index.vue.js +1 -1
  86. package/dist/components/render-like/index.vue.css +5 -5
  87. package/dist/components/render-like/index.vue.js +1 -1
  88. package/dist/components/render-mcp/install/index.script.vue.js.js +1 -1
  89. package/dist/components/render-prompt/content/index.vue.css +1 -1
  90. package/dist/components/render-prompt/content/index.vue.js +1 -1
  91. package/dist/components/render-reference/index.vue.css +2 -2
  92. package/dist/components/render-reference/index.vue.js +1 -1
  93. package/dist/components/render-relate-agent/index.script.vue.js.js +22 -9
  94. package/dist/components/render-relate-agent/index.vue.d.ts +1 -1
  95. package/dist/components/render-resource-version/index.vue.css +2 -2
  96. package/dist/components/render-resource-version/index.vue.js +1 -1
  97. package/dist/components/render-router-tab/index.vue.css +3 -3
  98. package/dist/components/render-router-tab/index.vue.js +1 -1
  99. package/dist/components/render-select-plus-extension/index.vue.css +3 -3
  100. package/dist/components/render-select-plus-extension/index.vue.js +1 -1
  101. package/dist/components/render-skill/actions/index.script.vue.js.js +1 -1
  102. package/dist/components/render-t-table/index.vue.css +27 -27
  103. package/dist/components/render-t-table/index.vue.js +1 -1
  104. package/dist/components/render-tag-tree/index.vue.css +7 -7
  105. package/dist/components/render-tag-tree/index.vue.js +1 -1
  106. package/dist/components/render-tags/index.vue.css +6 -6
  107. package/dist/components/render-tags/index.vue.js +1 -1
  108. package/dist/hooks/use-dataset-http.ts.js +2 -2
  109. package/dist/hooks/use-space-http.d.ts +2 -3
  110. package/dist/hooks/use-space-http.ts.js +2 -5
  111. package/dist/http/helper/space.d.ts +7 -1
  112. package/dist/http/helper/space.ts.js +9 -0
  113. package/dist/types/navigate.d.ts +1 -0
  114. package/dist/types/space.d.ts +11 -1
  115. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
1
 
2
- .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-zgeo4uec] {
2
+ .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-9ngvgqbu] {
3
3
  color: #EA3636;
4
4
  }
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] {
5
+ .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-9ngvgqbu], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-9ngvgqbu], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-9ngvgqbu] {
6
6
  color: #3A84FF;
7
7
  }
8
- .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-zgeo4uec] {
8
+ .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-9ngvgqbu] {
9
9
  color: #C4C6CC;
10
10
  }
11
- .ai-ui-sdk-icon.ai-ui-sdk-archive-line[data-v-zgeo4uec] {
11
+ .ai-ui-sdk-icon.ai-ui-sdk-archive-line[data-v-9ngvgqbu] {
12
12
  color: #979BA5;
13
13
  }
14
- .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-zgeo4uec] {
14
+ .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-9ngvgqbu] {
15
15
  color: #2DCB56;
16
16
  }
17
- .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-zgeo4uec] {
17
+ .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-9ngvgqbu] {
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-zgeo4uec";
2
+ script.__scopeId = "data-v-9ngvgqbu";
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-ohpahphg] {
2
+ .generate-type-tag[data-v-aqm36qvy] {
3
3
  border-radius: 2px;
4
4
  text-align: left;
5
5
  white-space: nowrap;
6
6
  }
7
- .generate-type-tag.public[data-v-ohpahphg] {
7
+ .generate-type-tag.public[data-v-aqm36qvy] {
8
8
  color: #2CAF5E;
9
9
  background-color: #DAF6E5;
10
10
  }
11
- .generate-type-tag.public[data-v-ohpahphg]:hover {
11
+ .generate-type-tag.public[data-v-aqm36qvy]:hover {
12
12
  color: #299E56;
13
13
  background-color: #CBF0DA;
14
14
  }
15
- .generate-type-tag.space[data-v-ohpahphg] {
15
+ .generate-type-tag.space[data-v-aqm36qvy] {
16
16
  color: #45A0A5;
17
17
  background-color: #D8F4F5;
18
18
  }
19
- .generate-type-tag.space[data-v-ohpahphg]:hover {
19
+ .generate-type-tag.space[data-v-aqm36qvy]: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-ohpahphg";
2
+ script.__scopeId = "data-v-aqm36qvy";
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-v08a8k62] {
2
+ .header-home[data-v-8qsvjoq1] {
3
3
  width: 100%;
4
4
  background: #FFFFFF;
5
5
  box-shadow: 0 3px 4px 0 #0000000a;
6
6
  }
7
- .render-tab[data-v-v08a8k62] {
7
+ .render-tab[data-v-8qsvjoq1] {
8
8
  border-bottom: 2px solid transparent;
9
9
  }
10
- .render-tab.active[data-v-v08a8k62] {
10
+ .render-tab.active[data-v-8qsvjoq1] {
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-v08a8k62";
2
+ script.__scopeId = "data-v-8qsvjoq1";
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-bypsp3bo] {
2
+ .ai-ui-sdk-icon[data-v-dh31fchu] {
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-bypsp3bo";
2
+ script.__scopeId = "data-v-dh31fchu";
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-dncikswk] {
2
+ .dislike-icon[data-v-hftc4sar] {
3
3
  transform: rotateX(180deg);
4
4
  }
5
- .option-items[data-v-dncikswk] {
5
+ .option-items[data-v-hftc4sar] {
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-dncikswk]:hover {
11
+ .option-items[data-v-hftc4sar]:hover {
12
12
  background-color: #E1ECFF;
13
13
  color: #3A84FF;
14
14
  }
15
- .option-items-selected[data-v-dncikswk]{
15
+ .option-items-selected[data-v-hftc4sar]{
16
16
  background-color: #E1ECFF;
17
17
  }
18
- [data-v-dncikswk] .bk-form-item {
18
+ [data-v-hftc4sar] .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-dncikswk";
2
+ script.__scopeId = "data-v-hftc4sar";
3
3
  script.__file = "./src/components/render-like/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -40,7 +40,7 @@ export default /*@__PURE__*/ _defineComponent({
40
40
  name: props.selectedMcp.mcpCode,
41
41
  config: base64Config
42
42
  });
43
- window.open(`cursor://anysphere.cursor-deeplink/mcp/install?${params}`, '_blank');
43
+ window.open(`cursor://anysphere.cursor-deeplink/mcp/install?${params}`, '_blank', 'noopener,noreferrer');
44
44
  };
45
45
  const handleConfirm = ()=>{
46
46
  if (selectedInstallTargetType.value === McpInstallTargetType.Cursor) {
@@ -1,5 +1,5 @@
1
1
 
2
- .resource-card-description[data-v-0bisceku] {
2
+ .resource-card-description[data-v-ic83e4ly] {
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-0bisceku";
2
+ script.__scopeId = "data-v-ic83e4ly";
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-9u1k1237]{
2
+ .reference-table[data-v-pvzw1ku6]{
3
3
  padding: 18px 24px;
4
4
  }
5
- .bk-radio-button[data-v-9u1k1237]{
5
+ .bk-radio-button[data-v-pvzw1ku6]{
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-9u1k1237";
2
+ script.__scopeId = "data-v-pvzw1ku6";
3
3
  script.__file = "./src/components/render-reference/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -132,7 +132,14 @@ export default /*@__PURE__*/ _defineComponent({
132
132
  });
133
133
  const handleGetSpacesAndSetDefaultSpace = ()=>{
134
134
  isLoadingSpaces.value = true;
135
- return getResourceAuthorizedSpaces(props.resourceType, props.resource.id).then((data)=>{
135
+ const params = {
136
+ resourceType: props.resourceType,
137
+ resourceId: props.resource.id
138
+ };
139
+ if (props.resourceType === Module.Mcp) {
140
+ params.mcpType = props.resource.mcpType;
141
+ }
142
+ return getResourceAuthorizedSpaces(params).then((data)=>{
136
143
  var _data_;
137
144
  spaces.value = data;
138
145
  formData.value.selectedSpaceId = (_data_ = data[0]) === null || _data_ === void 0 ? void 0 : _data_.spaceId;
@@ -189,12 +196,17 @@ export default /*@__PURE__*/ _defineComponent({
189
196
  const handleClickOutside = ()=>{
190
197
  handleClose();
191
198
  };
192
- const handleShow = ()=>{
193
- if (isShowPopover.value) return;
194
- isShowPopover.value = true;
195
- handleGetSpacesAndSetDefaultSpace();
196
- handleGetAgentsAndSetDefaultAgent();
197
- };
199
+ const handleShow = function() {
200
+ var _ref = _async_to_generator(function*() {
201
+ if (isShowPopover.value) return;
202
+ isShowPopover.value = true;
203
+ yield handleGetSpacesAndSetDefaultSpace();
204
+ handleGetAgentsAndSetDefaultAgent();
205
+ });
206
+ return function handleShow() {
207
+ return _ref.apply(this, arguments);
208
+ };
209
+ }();
198
210
  const handleRelateAgentToAgent = function() {
199
211
  var _ref = _async_to_generator(function*(selectedAgent) {
200
212
  var _selectedAgent_relatedAgents_agents, _selectedAgent_relatedAgents, _selectedAgent_relatedAgents1;
@@ -320,12 +332,13 @@ export default /*@__PURE__*/ _defineComponent({
320
332
  [Module.Knowledgebase]: handleRelateKnowledgebaseToAgent
321
333
  };
322
334
  yield (_relateMap_props_resourceType = relateMap[props.resourceType]) === null || _relateMap_props_resourceType === void 0 ? void 0 : _relateMap_props_resourceType.call(relateMap, selectedAgent);
323
- handleClose();
324
335
  emits('navigate', {
325
336
  type: SdkNavigateActionType.AgentDetailSetting,
326
337
  id: formData.value.selectedAgentId,
327
- spaceId: formData.value.selectedSpaceId
338
+ spaceId: formData.value.selectedSpaceId,
339
+ isNewTab: true
328
340
  });
341
+ handleClose();
329
342
  });
330
343
  return function handleBindAndNavigate(selectedAgent) {
331
344
  return _ref.apply(this, arguments);
@@ -16,7 +16,7 @@ interface IProps {
16
16
  apiPrefix: string;
17
17
  }
18
18
  declare var __VLS_8: {
19
- handleShow: () => void;
19
+ handleShow: () => Promise<void>;
20
20
  };
21
21
  type __VLS_Slots = {} & {
22
22
  trigger?: (props: typeof __VLS_8) => any;
@@ -1,11 +1,11 @@
1
1
 
2
- .resource-version[data-v-mcnhorp5] {
2
+ .resource-version[data-v-ntawcpas] {
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-mcnhorp5] {
9
+ .resource-version .bkaidev-rizhifenxi[data-v-ntawcpas] {
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-mcnhorp5";
2
+ script.__scopeId = "data-v-ntawcpas";
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-9jl7xp3c] {
2
+ .router-tab[data-v-e1x1ixtz] {
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-9jl7xp3c] {
9
+ .router-tab a[data-v-e1x1ixtz] {
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-9jl7xp3c] {
18
+ .router-tab a.router-link-exact-active[data-v-e1x1ixtz] {
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-9jl7xp3c";
2
+ script.__scopeId = "data-v-e1x1ixtz";
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-l3yziqcy] {
2
+ .select-plus-extension[data-v-wvkxoieo] {
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-l3yziqcy] {
11
+ .select-plus-extension .ai-ui-sdk-icon[data-v-wvkxoieo] {
12
12
  font-size: 14px;
13
13
  margin-right: 6px;
14
14
  }
15
- .select-plus-extension[data-v-l3yziqcy]:hover {
15
+ .select-plus-extension[data-v-wvkxoieo]: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-l3yziqcy";
2
+ script.__scopeId = "data-v-wvkxoieo";
3
3
  script.__file = "./src/components/render-select-plus-extension/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -108,7 +108,7 @@ export default /*@__PURE__*/ _defineComponent({
108
108
  const executeSkillApiCall = (apiCall)=>{
109
109
  isDownloadingSkill.value = true;
110
110
  apiCall.then((res)=>{
111
- window.open(res.url, '_blank');
111
+ window.open(res.url, '_blank', 'noopener,noreferrer');
112
112
  emits('success-download', res.downloadCount);
113
113
  }).finally(()=>{
114
114
  isDownloadingSkill.value = false;
@@ -1,12 +1,12 @@
1
1
 
2
- .t-t-pagination[data-v-cgnzt80s] {
2
+ .t-t-pagination[data-v-jpkrsz61] {
3
3
  position: relative;
4
4
  padding: 16px 16px 0 16px;
5
5
  }
6
- .t-t-pagination[data-v-cgnzt80s] .bk-pagination-list.is-last {
6
+ .t-t-pagination[data-v-jpkrsz61] .bk-pagination-list.is-last {
7
7
  margin-left: auto;
8
8
  }
9
- .pagination-loading[data-v-cgnzt80s]::after {
9
+ .pagination-loading[data-v-jpkrsz61]::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-cgnzt80s] {
19
+ .pagination-border[data-v-jpkrsz61] {
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-cgnzt80s] {
25
+ .t-t-table[data-v-jpkrsz61] {
26
26
  display: inline;
27
27
  font-size: 12px;
28
28
  }
29
- .t-t-table[data-v-cgnzt80s] .t-table__th-cell-inner {
29
+ .t-t-table[data-v-jpkrsz61] .t-table__th-cell-inner {
30
30
  color: #313238;
31
31
  }
32
- .t-t-table[data-v-cgnzt80s] th {
32
+ .t-t-table[data-v-jpkrsz61] th {
33
33
  padding: 0 16px;
34
34
  height: 42px;
35
35
  background-color: #FAFBFD !important;
36
36
  }
37
- .t-t-table[data-v-cgnzt80s] .t-table__body tr {
37
+ .t-t-table[data-v-jpkrsz61] .t-table__body tr {
38
38
  color: #63656e;
39
39
  font-size: 12px;
40
40
  }
41
- .t-t-table[data-v-cgnzt80s] .t-table__body tr td {
41
+ .t-t-table[data-v-jpkrsz61] .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-cgnzt80s] .t-table__body tr:hover td {
46
+ .t-t-table[data-v-jpkrsz61] .t-table__body tr:hover td {
47
47
  background-color: #f5f7fa !important;
48
48
  color: #63656E;
49
49
  }
50
- .t-t-table[data-v-cgnzt80s] .t-table__content .t-table__body .t-table__empty-row {
50
+ .t-t-table[data-v-jpkrsz61] .t-table__content .t-table__body .t-table__empty-row {
51
51
  background-color: #fff !important;
52
52
  }
53
- .t-t-table[data-v-cgnzt80s] .t-table__content .t-table__body .t-table__empty-row >td {
53
+ .t-t-table[data-v-jpkrsz61] .t-table__content .t-table__body .t-table__empty-row >td {
54
54
  border: none;
55
55
  }
56
- .t-t-table[data-v-cgnzt80s] th .t-table__ellipsis {
56
+ .t-t-table[data-v-jpkrsz61] th .t-table__ellipsis {
57
57
  width: auto !important;
58
58
  }
59
- .t-t-table[data-v-cgnzt80s] .t-loading__gradient.t-icon-loading {
59
+ .t-t-table[data-v-jpkrsz61] .t-loading__gradient.t-icon-loading {
60
60
  display: none;
61
61
  }
62
- .t-t-table[data-v-cgnzt80s]:first-of-type .t-table__affixed-header-elm-wrap{
62
+ .t-t-table[data-v-jpkrsz61]:first-of-type .t-table__affixed-header-elm-wrap{
63
63
  width: calc(100% - 6px) !important;
64
64
  }
65
- .t-t-table[data-v-cgnzt80s] .t-table__affixed-header-elm-wrap>div {
65
+ .t-t-table[data-v-jpkrsz61] .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-cgnzt80s] .t-table--layout-fixed{
69
+ .t-t-table[data-v-jpkrsz61] .t-table--layout-fixed{
70
70
  width: 100% !important;
71
71
  }
72
- .t-t-table[data-v-cgnzt80s] .bk-exception-description{
72
+ .t-t-table[data-v-jpkrsz61] .bk-exception-description{
73
73
  margin-bottom: 0;
74
74
  }
75
- .t-t-table[data-v-cgnzt80s] .t-table__content{
75
+ .t-t-table[data-v-jpkrsz61] .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-cgnzt80s] .t-table__content::-webkit-scrollbar {
80
+ .t-t-table[data-v-jpkrsz61] .t-table__content::-webkit-scrollbar {
81
81
  width: 6px;
82
82
  height: 6px;
83
83
  }
84
- .t-t-table[data-v-cgnzt80s] .t-table__content::-webkit-scrollbar-thumb {
84
+ .t-t-table[data-v-jpkrsz61] .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-cgnzt80s] .t-table__content::-webkit-scrollbar-thumb:hover {
90
+ .t-t-table[data-v-jpkrsz61] .t-table__content::-webkit-scrollbar-thumb:hover {
91
91
  background-color: #979ba5;
92
92
  }
93
- .t-t-table[data-v-cgnzt80s] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
93
+ .t-t-table[data-v-jpkrsz61] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
94
94
  line-height: 100%;
95
95
  }
96
- .t-t-table[data-v-cgnzt80s] .t-table__cell--sort-trigger.t-table__double-icons{
96
+ .t-t-table[data-v-jpkrsz61] .t-table__cell--sort-trigger.t-table__double-icons{
97
97
  gap: 5px;
98
98
  }
99
- .t-t-table[data-v-cgnzt80s] .t-table__sort-icon--active>i{
99
+ .t-t-table[data-v-jpkrsz61] .t-table__sort-icon--active>i{
100
100
  color: #3a84ff !important;
101
101
  }
102
- .t-t-table[data-v-cgnzt80s] .t-table__cell--fixed-left:has(.checkbox){
102
+ .t-t-table[data-v-jpkrsz61] .t-table__cell--fixed-left:has(.checkbox){
103
103
  line-height: 100%;
104
104
  }
105
- .t-t-table[data-v-cgnzt80s] .t-table__filter-icon.t-is-focus>span{
105
+ .t-t-table[data-v-jpkrsz61] .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-cgnzt80s";
2
+ script.__scopeId = "data-v-jpkrsz61";
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-hav45hyz] {
2
+ .tag-tree[data-v-0b7ef4io] {
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-hav45hyz] {
7
+ .tag-tree .manage-tree-item[data-v-0b7ef4io] {
8
8
  height: 32px;
9
9
  flex: 1;
10
10
  }
11
- .tag-tree .quick-icon[data-v-hav45hyz] {
11
+ .tag-tree .quick-icon[data-v-0b7ef4io] {
12
12
  margin-left: -24px;
13
13
  padding-left: 8px;
14
14
  }
15
- .tag-tree[data-v-hav45hyz] .tree-item:has(.bottom-line) {
15
+ .tag-tree[data-v-0b7ef4io] .tree-item:has(.bottom-line) {
16
16
  border-bottom: 1px solid #F0F1F5;
17
17
  }
18
- .tag-tree[data-v-hav45hyz] .tree-item.active .quick-icon {
18
+ .tag-tree[data-v-0b7ef4io] .tree-item.active .quick-icon {
19
19
  color: #3A84FF;
20
20
  }
21
- .tag-tree[data-v-hav45hyz] .tree-item.active .tag-number {
21
+ .tag-tree[data-v-0b7ef4io] .tree-item.active .tag-number {
22
22
  background: #A3C5FD;
23
23
  color: #fff;
24
24
  }
25
- .tag-number[data-v-hav45hyz] {
25
+ .tag-number[data-v-0b7ef4io] {
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-hav45hyz";
2
+ script.__scopeId = "data-v-0b7ef4io";
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-28nnq69p] {
2
+ .tag-container[data-v-ivaupvh9] {
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-28nnq69p] {
8
+ .tag-home[data-v-ivaupvh9] {
9
9
  vertical-align: sub;
10
10
  flex-shrink: 0;
11
11
  }
12
- [is-show="true"][data-v-28nnq69p] {
12
+ [is-show="true"][data-v-ivaupvh9] {
13
13
  visibility: visible;
14
14
  }
15
- [is-show="false"][data-v-28nnq69p] {
15
+ [is-show="false"][data-v-ivaupvh9] {
16
16
  display: none !important;
17
17
  }
18
- .popover-main[data-v-28nnq69p] {
18
+ .popover-main[data-v-ivaupvh9] {
19
19
  padding: 8px 8px 10px;
20
20
  }
21
- .tag-list[data-v-28nnq69p] {
21
+ .tag-list[data-v-ivaupvh9] {
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-28nnq69p";
2
+ script.__scopeId = "data-v-ivaupvh9";
3
3
  script.__file = "./src/components/render-tags/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -107,7 +107,7 @@ export const useDatasetHttp = (apiPrefix, spaceId)=>{
107
107
  // 导出数据集
108
108
  const exportDataset = (id)=>{
109
109
  const url = `${apiPrefix}/${datasetPerfix}/dataset/${id}/export/`;
110
- window.open(url, '_blank');
110
+ window.open(url, '_blank', 'noopener,noreferrer');
111
111
  };
112
112
  // 获取数据集 API 指引
113
113
  const getDatasetApiGuide = (id)=>fetch.get(`${apiPrefix}/${datasetPerfix}/dataset/${id}/api_guide/`, undefined, {
@@ -179,7 +179,7 @@ export const useDatasetHttp = (apiPrefix, spaceId)=>{
179
179
  // 下载数据集数据模板文件
180
180
  const downloadDatasetDataTemplateFile = (id)=>{
181
181
  const url = `${apiPrefix}/${datasetPerfix}/dataset/${id}/download/?responseType=arraybuffer`;
182
- window.open(url, '_blank');
182
+ window.open(url, '_blank', 'noopener,noreferrer');
183
183
  };
184
184
  // 获取schema列表
185
185
  const getSchemaList = (datasetId)=>fetch.get(`${apiPrefix}/${datasetPerfix}/schema/schema_list/`, {
@@ -1,9 +1,8 @@
1
1
  import { Ref } from 'vue';
2
2
  import { IFetchConfig } from '@/http/fetch';
3
- import type { Module } from '@/types/enum';
4
- import { IResourcesRemoveApplication, IUsableSpaceParam } from '@/types/space';
3
+ import { IResourceAuthorizedSpacesParam, IResourcesRemoveApplication, IUsableSpaceParam } from '@/types/space';
5
4
  export declare const useSpaceHttp: (apiPrefix: string, spaceId?: Ref<string>) => {
6
- getResourceAuthorizedSpaces: (resourceType: Module, resourceId: number) => Promise<import("@/types/space").ISpace[]>;
5
+ getResourceAuthorizedSpaces: (data: IResourceAuthorizedSpacesParam) => Promise<import("@/types/space").ISpace[]>;
7
6
  removeApplyResources: (data: IResourcesRemoveApplication) => Promise<unknown>;
8
7
  getUsableSpaces: {
9
8
  (data: IUsableSpaceParam, config?: IFetchConfig): Promise<import("@/types/space").IUsableSpace[]>;
@@ -51,12 +51,9 @@ function _object_spread_props(target, source) {
51
51
  return target;
52
52
  }
53
53
  import fetch, { withAbort } from '../http/fetch/index.ts.js';
54
- import { transferResourcesRemoveApplication2ResourcesRemoveApplicationApi, transferSpaceApi2Space, transferUsableSpaceApi2UsableSpace, transferUsableSpaceParam2UsableSpaceParamApi } from '../http/helper/space.ts.js';
54
+ import { transferResourceAuthorizedSpacesParam2ResourceAuthorizedSpacesParamApi, transferResourcesRemoveApplication2ResourcesRemoveApplicationApi, transferSpaceApi2Space, transferUsableSpaceApi2UsableSpace, transferUsableSpaceParam2UsableSpaceParamApi } from '../http/helper/space.ts.js';
55
55
  export const useSpaceHttp = (apiPrefix, spaceId)=>{
56
- const getResourceAuthorizedSpaces = (resourceType, resourceId)=>fetch.get(`${apiPrefix}/meta/v1/space/authorized_spaces/`, {
57
- resource_type: resourceType,
58
- resource_id: resourceId
59
- }, {
56
+ const getResourceAuthorizedSpaces = (data)=>fetch.get(`${apiPrefix}/meta/v1/space/authorized_spaces/`, transferResourceAuthorizedSpacesParam2ResourceAuthorizedSpacesParamApi(data), {
60
57
  headers: {
61
58
  'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
62
59
  }
@@ -1,4 +1,4 @@
1
- import type { IResourcesRemoveApplication, ISpace, ISpaceApi, IUsableSpace, IUsableSpaceApi, IUsableSpaceParam, IUsableSpaceParamApi } from '@/types/space';
1
+ import type { IResourceAuthorizedSpacesParam, IResourceAuthorizedSpacesParamApi, IResourcesRemoveApplication, ISpace, ISpaceApi, IUsableSpace, IUsableSpaceApi, IUsableSpaceParam, IUsableSpaceParamApi } from '@/types/space';
2
2
  /**
3
3
  * ui转换为接口
4
4
  * @param data IResourcesRemoveApplication
@@ -26,3 +26,9 @@ export declare const transferUsableSpaceApi2UsableSpace: (data: IUsableSpaceApi)
26
26
  * @returns ISpace
27
27
  */
28
28
  export declare const transferSpaceApi2Space: (data: ISpaceApi) => ISpace;
29
+ /**
30
+ * ui转换为接口
31
+ * @param data IResourceAuthorizedSpacesParam
32
+ * @returns IResourceAuthorizedSpacesParamApi
33
+ */
34
+ export declare const transferResourceAuthorizedSpacesParam2ResourceAuthorizedSpacesParamApi: (data: IResourceAuthorizedSpacesParam) => IResourceAuthorizedSpacesParamApi;