@blueking/ai-ui-sdk 0.1.2-beta.8 → 0.1.2-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/render-aside/index.vue.css +9 -9
- package/dist/components/render-aside/index.vue.js +1 -1
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.script.vue.js.js +242 -0
- package/dist/components/render-choose-tag/index.vue.css +39 -0
- package/dist/components/render-choose-tag/index.vue.d.ts +12 -0
- package/dist/components/render-choose-tag/index.vue.js +5 -0
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.script.vue.js.js +4 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.script.vue.js.js +8 -5
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js +4 -3
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-footer.script.vue.js.js +4 -3
- package/dist/components/render-dataset/components/plus-dataset/dataset-footer.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +34 -19
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.d.ts +2 -0
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +15 -4
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.d.ts +2 -0
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.script.vue.js.js +4 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.script.vue.js.js +4 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js +4 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.d.ts +1 -0
- 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.script.vue.js.js +13 -4
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.script.vue.js +4 -3
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +4 -1
- package/dist/components/render-dataset/components/plus-dataset-data/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +11 -4
- package/dist/components/render-dataset/components/search-dataset/index.vue.d.ts +2 -0
- package/dist/components/render-dataset/components/source-type-icon/index.vue.css +3 -3
- package/dist/components/render-dataset/components/source-type-icon/index.vue.js +1 -1
- package/dist/components/render-dataset/index.script.vue.js.js +7 -4
- package/dist/components/render-dataset/index.vue.css +1 -1
- package/dist/components/render-dataset/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset-detail/components/header.script.vue.js.js +4 -3
- package/dist/components/render-dataset-detail/components/header.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail/index.script.vue.js.js +6 -3
- package/dist/components/render-dataset-detail/index.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +4 -3
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +12 -7
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +1 -1
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +12 -5
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.script.vue.js.js +23 -5
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.d.ts +2 -0
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +58 -20
- package/dist/components/render-dataset-list/components/table.vue.d.ts +2 -0
- package/dist/components/render-dataset-list/index.script.vue.js.js +10 -2
- package/dist/components/render-dataset-list/index.vue.d.ts +2 -0
- package/dist/components/render-expand-collapse/index.vue.css +3 -3
- package/dist/components/render-expand-collapse/index.vue.js +1 -1
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +5 -5
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +5 -5
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/hooks/use-dataset-http.d.ts +2 -1
- package/dist/hooks/use-dataset-http.ts.js +64 -22
- package/dist/hooks/use-form-rule.d.ts +29 -0
- package/dist/hooks/use-form-rule.ts.js +101 -0
- package/dist/hooks/use-meta-http.d.ts +16 -0
- package/dist/hooks/use-meta-http.ts.js +83 -0
- package/dist/http/helper/dataset.ts.js +4 -1
- package/dist/types/dataset.d.ts +4 -0
- package/dist/types/enum.d.ts +10 -0
- package/dist/types/enum.ts.js +11 -0
- package/dist/types/meta.d.ts +3 -0
- package/package.json +2 -2
package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-spmc1qh3";
|
3
3
|
script.__file = "./src/components/render-dataset/components/operation-record/view-op-result/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
package/dist/components/render-dataset/components/plus-dataset/dataset-footer.script.vue.js.js
CHANGED
@@ -29,7 +29,7 @@ function _async_to_generator(fn) {
|
|
29
29
|
}
|
30
30
|
import { defineComponent as _defineComponent } from 'vue';
|
31
31
|
import { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
32
|
-
import { ref } from 'vue';
|
32
|
+
import { ref, toRef } from 'vue';
|
33
33
|
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
34
34
|
export default /*@__PURE__*/ _defineComponent({
|
35
35
|
props: {
|
@@ -38,7 +38,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
38
38
|
},
|
39
39
|
formData: {},
|
40
40
|
apiPrefix: {},
|
41
|
-
id: {}
|
41
|
+
id: {},
|
42
|
+
spaceId: {}
|
42
43
|
},
|
43
44
|
emits: [
|
44
45
|
"success",
|
@@ -47,7 +48,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
47
48
|
setup (__props, { emit: __emit }) {
|
48
49
|
const props = __props;
|
49
50
|
const emits = __emit;
|
50
|
-
const { createDataset, updateDataset } = useDatasetHttp(props.apiPrefix);
|
51
|
+
const { createDataset, updateDataset } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
51
52
|
const loading = ref(false);
|
52
53
|
const handleConfirm = function() {
|
53
54
|
var _ref = _async_to_generator(function*() {
|
@@ -4,6 +4,7 @@ interface IProps {
|
|
4
4
|
formData: IDatasetForm;
|
5
5
|
apiPrefix: string;
|
6
6
|
id?: number;
|
7
|
+
spaceId?: string;
|
7
8
|
}
|
8
9
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
9
10
|
cancel: () => any;
|
@@ -6,14 +6,19 @@ const _hoisted_1 = {
|
|
6
6
|
const _hoisted_2 = {
|
7
7
|
class: "g-white-space-pre-line g-max-height-80vh g-scrollbar-page"
|
8
8
|
};
|
9
|
-
import { onBeforeMount, ref } from 'vue';
|
9
|
+
import { onBeforeMount, ref, toRef } from 'vue';
|
10
10
|
import RenderAutoHeightTextarea from '../../../render-auto-height-textarea/index.vue.js';
|
11
|
+
import RenderChooseTag from '../../../render-choose-tag/index.vue.js';
|
11
12
|
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
12
13
|
export default /*@__PURE__*/ _defineComponent({
|
13
14
|
props: {
|
14
15
|
id: {},
|
15
16
|
formData: {},
|
16
|
-
apiPrefix: {}
|
17
|
+
apiPrefix: {},
|
18
|
+
spaceId: {},
|
19
|
+
isInternal: {
|
20
|
+
type: Boolean
|
21
|
+
}
|
17
22
|
},
|
18
23
|
emits: [
|
19
24
|
"update:formData"
|
@@ -21,7 +26,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
21
26
|
setup (__props, { expose: __expose, emit: __emit }) {
|
22
27
|
const props = __props;
|
23
28
|
const emits = __emit;
|
24
|
-
const { getComponentList, getSchemaList
|
29
|
+
const { getComponentList, getSchemaList } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
25
30
|
const rules = {
|
26
31
|
datasetName: [
|
27
32
|
{
|
@@ -48,10 +53,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
48
53
|
}
|
49
54
|
]
|
50
55
|
};
|
51
|
-
const isLoadingCompanyList = ref(false);
|
52
56
|
const isLoadingComponentList = ref(false);
|
53
57
|
const isLoadingSchemaList = ref(false);
|
54
|
-
const companyList = ref();
|
55
58
|
const componentList = ref();
|
56
59
|
const schemaList = ref();
|
57
60
|
const renderSchema = ref();
|
@@ -75,15 +78,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
75
78
|
});
|
76
79
|
emits('update:formData', formData);
|
77
80
|
};
|
78
|
-
const handleGetCompanyList = ()=>{
|
79
|
-
isLoadingCompanyList.value = true;
|
80
|
-
getCompanyList().then((data)=>{
|
81
|
-
companyList.value = data;
|
82
|
-
}).finally(()=>{
|
83
|
-
isLoadingCompanyList.value = false;
|
84
|
-
});
|
85
|
-
};
|
86
81
|
const handleGetComponentList = ()=>{
|
82
|
+
if (props.isInternal) return;
|
87
83
|
isLoadingComponentList.value = true;
|
88
84
|
getComponentList().then((data)=>{
|
89
85
|
componentList.value = data;
|
@@ -100,7 +96,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
100
96
|
});
|
101
97
|
};
|
102
98
|
onBeforeMount(()=>{
|
103
|
-
handleGetCompanyList();
|
104
99
|
handleGetComponentList();
|
105
100
|
handleGetSchemaList();
|
106
101
|
});
|
@@ -128,7 +123,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
128
123
|
}, {
|
129
124
|
default: _withCtx(()=>[
|
130
125
|
_createElementVNode("section", null, [
|
131
|
-
_cache[
|
126
|
+
_cache[7] || (_cache[7] = _createElementVNode("h5", {
|
132
127
|
class: "g-text-14 g-text-black g-weight-bold g-mb-16"
|
133
128
|
}, " 基本信息 ", -1 /* HOISTED */ )),
|
134
129
|
_createVNode(_component_bk_form_item, {
|
@@ -204,7 +199,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
204
199
|
key: key
|
205
200
|
}, [
|
206
201
|
_createTextVNode(_toDisplayString(key) + ":", 1 /* TEXT */ ),
|
207
|
-
_cache[
|
202
|
+
_cache[6] || (_cache[6] = _createElementVNode("br", null, null, -1 /* HOISTED */ )),
|
208
203
|
_createTextVNode(" " + _toDisplayString(value), 1 /* TEXT */ )
|
209
204
|
]);
|
210
205
|
}), 128 /* KEYED_FRAGMENT */ ))
|
@@ -274,7 +269,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
274
269
|
]),
|
275
270
|
_: 1 /* STABLE */
|
276
271
|
})) : _createCommentVNode("v-if", true),
|
277
|
-
|
272
|
+
!_ctx.isInternal ? (_openBlock(), _createBlock(_component_bk_form_item, {
|
273
|
+
key: 1,
|
278
274
|
label: "所属组件",
|
279
275
|
property: "componentIds",
|
280
276
|
required: ""
|
@@ -291,7 +287,26 @@ export default /*@__PURE__*/ _defineComponent({
|
|
291
287
|
])
|
292
288
|
]),
|
293
289
|
_: 1 /* STABLE */
|
294
|
-
}),
|
290
|
+
})) : _createCommentVNode("v-if", true),
|
291
|
+
_ctx.isInternal ? (_openBlock(), _createBlock(_component_bk_form_item, {
|
292
|
+
key: 2,
|
293
|
+
label: "标签",
|
294
|
+
property: "tagNames"
|
295
|
+
}, {
|
296
|
+
default: _withCtx(()=>[
|
297
|
+
_createVNode(RenderChooseTag, {
|
298
|
+
"api-prefix": _ctx.apiPrefix,
|
299
|
+
"space-id": _ctx.spaceId,
|
300
|
+
"model-value": _ctx.formData.tagNames,
|
301
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = (value)=>handleChange('tagNames', value))
|
302
|
+
}, null, 8 /* PROPS */ , [
|
303
|
+
"api-prefix",
|
304
|
+
"space-id",
|
305
|
+
"model-value"
|
306
|
+
])
|
307
|
+
]),
|
308
|
+
_: 1 /* STABLE */
|
309
|
+
})) : _createCommentVNode("v-if", true),
|
295
310
|
_createVNode(_component_bk_form_item, {
|
296
311
|
label: "描述",
|
297
312
|
property: "description",
|
@@ -301,7 +316,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
301
316
|
_createVNode(RenderAutoHeightTextarea, {
|
302
317
|
height: 200,
|
303
318
|
"model-value": _ctx.formData.description,
|
304
|
-
"onUpdate:modelValue": _cache[
|
319
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = (value)=>handleChange('description', value))
|
305
320
|
}, null, 8 /* PROPS */ , [
|
306
321
|
"model-value"
|
307
322
|
])
|
@@ -39,7 +39,11 @@ import { useFormLeaveConfirm } from '../../../../hooks/use-form-leave-confirm.ts
|
|
39
39
|
export default /*@__PURE__*/ _defineComponent({
|
40
40
|
props: {
|
41
41
|
apiPrefix: {},
|
42
|
-
dataset: {}
|
42
|
+
dataset: {},
|
43
|
+
spaceId: {},
|
44
|
+
isInternal: {
|
45
|
+
type: Boolean
|
46
|
+
}
|
43
47
|
},
|
44
48
|
emits: [
|
45
49
|
"success-plus"
|
@@ -73,7 +77,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
73
77
|
description: '',
|
74
78
|
type: undefined,
|
75
79
|
companyId: undefined,
|
76
|
-
componentIds: []
|
80
|
+
componentIds: [],
|
81
|
+
tagNames: []
|
77
82
|
}, props.dataset);
|
78
83
|
};
|
79
84
|
const handleClearValidate = ()=>{
|
@@ -113,14 +118,16 @@ export default /*@__PURE__*/ _defineComponent({
|
|
113
118
|
_createVNode(DatasetFooter, {
|
114
119
|
"form-data": formData.value,
|
115
120
|
id: (_ctx_dataset = _ctx.dataset) === null || _ctx_dataset === void 0 ? void 0 : _ctx_dataset.id,
|
116
|
-
validate: validate,
|
117
121
|
"api-prefix": _ctx.apiPrefix,
|
122
|
+
"space-id": _ctx.spaceId,
|
123
|
+
validate: validate,
|
118
124
|
onSuccess: handleSuccess,
|
119
125
|
onCancel: handleClose
|
120
126
|
}, null, 8 /* PROPS */ , [
|
121
127
|
"form-data",
|
122
128
|
"id",
|
123
|
-
"api-prefix"
|
129
|
+
"api-prefix",
|
130
|
+
"space-id"
|
124
131
|
])
|
125
132
|
];
|
126
133
|
}),
|
@@ -133,11 +140,15 @@ export default /*@__PURE__*/ _defineComponent({
|
|
133
140
|
ref: formRef,
|
134
141
|
id: (_ctx_dataset = _ctx.dataset) === null || _ctx_dataset === void 0 ? void 0 : _ctx_dataset.id,
|
135
142
|
"api-prefix": _ctx.apiPrefix,
|
143
|
+
"space-id": _ctx.spaceId,
|
144
|
+
"is-internal": _ctx.isInternal,
|
136
145
|
"form-data": formData.value,
|
137
146
|
"onUpdate:formData": _cache[0] || (_cache[0] = ($event)=>formData.value = $event)
|
138
147
|
}, null, 8 /* PROPS */ , [
|
139
148
|
"id",
|
140
149
|
"api-prefix",
|
150
|
+
"space-id",
|
151
|
+
"is-internal",
|
141
152
|
"form-data"
|
142
153
|
])
|
143
154
|
])) : _createCommentVNode("v-if", true)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
|
-
.dataset-data-content[data-v-
|
2
|
+
.dataset-data-content[data-v-z8zlmy61] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
height: 100%;
|
5
5
|
}
|
6
|
-
.dataset-data-slider[data-v-
|
6
|
+
.dataset-data-slider[data-v-z8zlmy61] .bk-modal-content {
|
7
7
|
scrollbar-gutter: inherit !important;
|
8
8
|
}
|
@@ -2,6 +2,8 @@ import type { IDataset } from '@/types/dataset';
|
|
2
2
|
interface IProps {
|
3
3
|
apiPrefix: string;
|
4
4
|
dataset?: IDataset;
|
5
|
+
spaceId?: string;
|
6
|
+
isInternal?: boolean;
|
5
7
|
}
|
6
8
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
7
9
|
"success-plus": (data: IDataset) => any;
|
package/dist/components/render-dataset/components/plus-dataset-data/form/dataset.script.vue.js.js
CHANGED
@@ -52,7 +52,7 @@ function _object_spread_props(target, source) {
|
|
52
52
|
}
|
53
53
|
import { defineComponent as _defineComponent } from 'vue';
|
54
54
|
import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
55
|
-
import { onBeforeMount, ref, useTemplateRef } from 'vue';
|
55
|
+
import { onBeforeMount, ref, toRef, useTemplateRef } from 'vue';
|
56
56
|
import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
|
57
57
|
export default /*@__PURE__*/ _defineComponent({
|
58
58
|
props: {
|
@@ -60,7 +60,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
60
60
|
apiPrefix: {},
|
61
61
|
disabledChooseDataset: {
|
62
62
|
type: Boolean
|
63
|
-
}
|
63
|
+
},
|
64
|
+
spaceId: {}
|
64
65
|
},
|
65
66
|
emits: [
|
66
67
|
"update:modelValue"
|
@@ -68,7 +69,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
68
69
|
setup (__props, { expose: __expose, emit: __emit }) {
|
69
70
|
const props = __props;
|
70
71
|
const emits = __emit;
|
71
|
-
const { getDatasetList } = useDatasetHttp(props.apiPrefix);
|
72
|
+
const { getDatasetList } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
72
73
|
const formRef = useTemplateRef('formRef');
|
73
74
|
const loading = ref(false);
|
74
75
|
const datasets = ref([]);
|
package/dist/components/render-dataset/components/plus-dataset-data/form/file.script.vue.js.js
CHANGED
@@ -81,7 +81,7 @@ function _object_spread_props(target, source) {
|
|
81
81
|
}
|
82
82
|
import { defineComponent as _defineComponent } from 'vue';
|
83
83
|
import { unref as _unref, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, resolveDirective as _resolveDirective, openBlock as _openBlock, createBlock as _createBlock, withDirectives as _withDirectives, renderList as _renderList, Fragment as _Fragment, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass, createCommentVNode as _createCommentVNode } from "vue";
|
84
|
-
import { ref, useTemplateRef, watch } from 'vue';
|
84
|
+
import { ref, toRef, useTemplateRef, watch } from 'vue';
|
85
85
|
import { chooseFile } from '../../../../../common/util.ts.js';
|
86
86
|
import RenderFileCard from '../../../../render-file-card/index.vue.js';
|
87
87
|
import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
|
@@ -89,7 +89,8 @@ import { DatasetDataSourceType } from '../../../../../types/enum.ts.js';
|
|
89
89
|
export default /*@__PURE__*/ _defineComponent({
|
90
90
|
props: {
|
91
91
|
modelValue: {},
|
92
|
-
apiPrefix: {}
|
92
|
+
apiPrefix: {},
|
93
|
+
spaceId: {}
|
93
94
|
},
|
94
95
|
emits: [
|
95
96
|
"update:modelValue"
|
@@ -97,7 +98,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
97
98
|
setup (__props, { expose: __expose, emit: __emit }) {
|
98
99
|
const props = __props;
|
99
100
|
const emits = __emit;
|
100
|
-
const { uploadDatasetDataFiles, downloadDatasetDataTemplateFile } = useDatasetHttp(props.apiPrefix);
|
101
|
+
const { uploadDatasetDataFiles, downloadDatasetDataTemplateFile } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
101
102
|
const formRef = useTemplateRef('formRef');
|
102
103
|
const loading = ref(false);
|
103
104
|
const validate = ()=>{
|
package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js
CHANGED
@@ -30,7 +30,7 @@ function _async_to_generator(fn) {
|
|
30
30
|
import { defineComponent as _defineComponent } from 'vue';
|
31
31
|
import { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
32
32
|
import { Message } from 'bkui-vue';
|
33
|
-
import { ref } from 'vue';
|
33
|
+
import { ref, toRef } from 'vue';
|
34
34
|
import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
|
35
35
|
import { DatasetDataSourceType } from '../../../../../types/enum.ts.js';
|
36
36
|
export default /*@__PURE__*/ _defineComponent({
|
@@ -39,7 +39,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
39
39
|
type: Function
|
40
40
|
},
|
41
41
|
datasetData: {},
|
42
|
-
apiPrefix: {}
|
42
|
+
apiPrefix: {},
|
43
|
+
spaceId: {}
|
43
44
|
},
|
44
45
|
emits: [
|
45
46
|
"close",
|
@@ -48,7 +49,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
48
49
|
setup (__props, { emit: __emit }) {
|
49
50
|
const props = __props;
|
50
51
|
const emits = __emit;
|
51
|
-
const { createDatasetData } = useDatasetHttp(props.apiPrefix);
|
52
|
+
const { createDatasetData } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
52
53
|
const loading = ref(false);
|
53
54
|
const handleConfirm = function() {
|
54
55
|
var _ref = _async_to_generator(function*() {
|
@@ -3,6 +3,7 @@ interface IProps {
|
|
3
3
|
validate: () => Promise<unknown>;
|
4
4
|
datasetData: IDatasetDataForm;
|
5
5
|
apiPrefix: string;
|
6
|
+
spaceId?: string;
|
6
7
|
}
|
7
8
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
8
9
|
close: (noValidate?: boolean) => any;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './footer.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-9bkd05i5";
|
3
3
|
script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/footer.vue";
|
4
4
|
import './footer.vue.css';
|
5
5
|
export default script;
|
package/dist/components/render-dataset/components/plus-dataset-data/form/index.script.vue.js.js
CHANGED
@@ -49,7 +49,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
49
49
|
datasetData: {},
|
50
50
|
disabledChooseDataset: {
|
51
51
|
type: Boolean
|
52
|
-
}
|
52
|
+
},
|
53
|
+
spaceId: {}
|
53
54
|
},
|
54
55
|
emits: [
|
55
56
|
"update:isShow",
|
@@ -115,12 +116,14 @@ export default /*@__PURE__*/ _defineComponent({
|
|
115
116
|
_createVNode(RenderFooter, {
|
116
117
|
"dataset-data": renderDatasetData.value,
|
117
118
|
"api-prefix": _ctx.apiPrefix,
|
119
|
+
"space-id": _ctx.spaceId,
|
118
120
|
validate: validate,
|
119
121
|
onClose: handleClose,
|
120
122
|
onSuccessConfirm: handleSuccess
|
121
123
|
}, null, 8 /* PROPS */ , [
|
122
124
|
"dataset-data",
|
123
|
-
"api-prefix"
|
125
|
+
"api-prefix",
|
126
|
+
"space-id"
|
124
127
|
])
|
125
128
|
]),
|
126
129
|
default: _withCtx(()=>[
|
@@ -135,32 +138,38 @@ export default /*@__PURE__*/ _defineComponent({
|
|
135
138
|
modelValue: renderDatasetData.value,
|
136
139
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event)=>renderDatasetData.value = $event),
|
137
140
|
"api-prefix": _ctx.apiPrefix,
|
141
|
+
"space-id": _ctx.spaceId,
|
138
142
|
ref_key: "fileRef",
|
139
143
|
ref: fileRef
|
140
144
|
}, null, 8 /* PROPS */ , [
|
141
145
|
"modelValue",
|
142
|
-
"api-prefix"
|
146
|
+
"api-prefix",
|
147
|
+
"space-id"
|
143
148
|
]),
|
144
149
|
_createVNode(RenderManual, {
|
145
150
|
modelValue: renderDatasetData.value,
|
146
151
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event)=>renderDatasetData.value = $event),
|
147
152
|
"api-prefix": _ctx.apiPrefix,
|
153
|
+
"space-id": _ctx.spaceId,
|
148
154
|
ref_key: "manualRef",
|
149
155
|
ref: manualRef
|
150
156
|
}, null, 8 /* PROPS */ , [
|
151
157
|
"modelValue",
|
152
|
-
"api-prefix"
|
158
|
+
"api-prefix",
|
159
|
+
"space-id"
|
153
160
|
]),
|
154
161
|
_createVNode(RenderDataset, {
|
155
162
|
modelValue: renderDatasetData.value,
|
156
163
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event)=>renderDatasetData.value = $event),
|
157
164
|
"api-prefix": _ctx.apiPrefix,
|
165
|
+
"space-id": _ctx.spaceId,
|
158
166
|
"disabled-choose-dataset": _ctx.disabledChooseDataset,
|
159
167
|
ref_key: "datasetRef",
|
160
168
|
ref: datasetRef
|
161
169
|
}, null, 8 /* PROPS */ , [
|
162
170
|
"modelValue",
|
163
171
|
"api-prefix",
|
172
|
+
"space-id",
|
164
173
|
"disabled-choose-dataset"
|
165
174
|
])
|
166
175
|
])) : _createCommentVNode("v-if", true)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
|
-
.plus-dataset-data[data-v-
|
2
|
+
.plus-dataset-data[data-v-l9vdg3rx] {
|
3
3
|
padding: 20px 24px;
|
4
4
|
}
|
5
|
-
.plus-dataset-sideslider[data-v-
|
5
|
+
.plus-dataset-sideslider[data-v-l9vdg3rx] .bk-modal-content {
|
6
6
|
scrollbar-gutter: inherit !important;
|
7
7
|
}
|
@@ -4,6 +4,7 @@ interface IProps {
|
|
4
4
|
apiPrefix: string;
|
5
5
|
datasetData?: Partial<IDatasetDataForm>;
|
6
6
|
disabledChooseDataset?: boolean;
|
7
|
+
spaceId?: string;
|
7
8
|
}
|
8
9
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
9
10
|
"success-confirm": () => any;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import script from './index.script.vue.js.js';
|
2
|
-
script.__scopeId = "data-v-
|
2
|
+
script.__scopeId = "data-v-l9vdg3rx";
|
3
3
|
script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/index.vue";
|
4
4
|
import './index.vue.css';
|
5
5
|
export default script;
|
package/dist/components/render-dataset/components/plus-dataset-data/form/manual.script.vue.js
CHANGED
@@ -12,14 +12,15 @@ const _hoisted_3 = {
|
|
12
12
|
const _hoisted_4 = {
|
13
13
|
class: "g-flex-row"
|
14
14
|
};
|
15
|
-
import { ref, useTemplateRef, watch } from 'vue';
|
15
|
+
import { ref, toRef, useTemplateRef, watch } from 'vue';
|
16
16
|
import AutoHeightTextarea from '../../../../render-auto-height-textarea/index.vue.js';
|
17
17
|
import { useDatasetHttp } from '../../../../../hooks/use-dataset-http.ts.js';
|
18
18
|
import { DatasetDataSourceType } from '../../../../../types/enum.ts.js';
|
19
19
|
export default /*@__PURE__*/ _defineComponent({
|
20
20
|
props: {
|
21
21
|
modelValue: {},
|
22
|
-
apiPrefix: {}
|
22
|
+
apiPrefix: {},
|
23
|
+
spaceId: {}
|
23
24
|
},
|
24
25
|
emits: [
|
25
26
|
"update:modelValue"
|
@@ -27,7 +28,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
27
28
|
setup (__props, { expose: __expose, emit: __emit }) {
|
28
29
|
const props = __props;
|
29
30
|
const emits = __emit;
|
30
|
-
const { getSchemaList } = useDatasetHttp(props.apiPrefix);
|
31
|
+
const { getSchemaList } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
31
32
|
const formRef = useTemplateRef('formRef');
|
32
33
|
const loading = ref(false);
|
33
34
|
const schema = ref({});
|
@@ -8,7 +8,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
8
8
|
disabledChooseDataset: {
|
9
9
|
type: Boolean
|
10
10
|
},
|
11
|
-
apiPrefix: {}
|
11
|
+
apiPrefix: {},
|
12
|
+
spaceId: {}
|
12
13
|
},
|
13
14
|
emits: [
|
14
15
|
"success-plus"
|
@@ -42,12 +43,14 @@ export default /*@__PURE__*/ _defineComponent({
|
|
42
43
|
"onUpdate:isShow": _cache[0] || (_cache[0] = ($event)=>isShow.value = $event),
|
43
44
|
"dataset-data": _ctx.datasetData,
|
44
45
|
"api-prefix": _ctx.apiPrefix,
|
46
|
+
"space-id": _ctx.spaceId,
|
45
47
|
"disabled-choose-dataset": _ctx.disabledChooseDataset,
|
46
48
|
onSuccessConfirm: handleSuccessPlus
|
47
49
|
}, null, 8 /* PROPS */ , [
|
48
50
|
"is-show",
|
49
51
|
"dataset-data",
|
50
52
|
"api-prefix",
|
53
|
+
"space-id",
|
51
54
|
"disabled-choose-dataset"
|
52
55
|
])
|
53
56
|
], 64 /* STABLE_FRAGMENT */ );
|
@@ -3,6 +3,7 @@ interface IProps {
|
|
3
3
|
datasetData?: Partial<IDatasetDataForm>;
|
4
4
|
disabledChooseDataset?: boolean;
|
5
5
|
apiPrefix: string;
|
6
|
+
spaceId?: string;
|
6
7
|
}
|
7
8
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
8
9
|
"success-plus": () => any;
|
@@ -29,13 +29,17 @@ function _async_to_generator(fn) {
|
|
29
29
|
}
|
30
30
|
import { defineComponent as _defineComponent } from 'vue';
|
31
31
|
import { openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
32
|
-
import { ref } from 'vue';
|
32
|
+
import { ref, toRef } from 'vue';
|
33
33
|
import RenderSearchSelect from '../../../render-search-select/index.vue.js';
|
34
34
|
import { useDatasetHttp } from '../../../../hooks/use-dataset-http.ts.js';
|
35
35
|
export default /*@__PURE__*/ _defineComponent({
|
36
36
|
props: {
|
37
37
|
modelValue: {},
|
38
|
-
apiPrefix: {}
|
38
|
+
apiPrefix: {},
|
39
|
+
spaceId: {},
|
40
|
+
isInternal: {
|
41
|
+
type: Boolean
|
42
|
+
}
|
39
43
|
},
|
40
44
|
emits: [
|
41
45
|
"update:modelValue"
|
@@ -43,7 +47,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
43
47
|
setup (__props, { emit: __emit }) {
|
44
48
|
const props = __props;
|
45
49
|
const emits = __emit;
|
46
|
-
const { getSchemaList, getComponentList } = useDatasetHttp(props.apiPrefix);
|
50
|
+
const { getSchemaList, getComponentList } = useDatasetHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
47
51
|
const data = ref([
|
48
52
|
{
|
49
53
|
id: 'datasetName',
|
@@ -60,12 +64,15 @@ export default /*@__PURE__*/ _defineComponent({
|
|
60
64
|
async: true,
|
61
65
|
children: []
|
62
66
|
},
|
63
|
-
{
|
67
|
+
props.isInternal ? {
|
64
68
|
id: 'componentIds',
|
65
69
|
name: '组件',
|
66
70
|
multiple: true,
|
67
71
|
async: true,
|
68
72
|
children: []
|
73
|
+
} : {
|
74
|
+
id: 'tagName',
|
75
|
+
name: '标签'
|
69
76
|
},
|
70
77
|
{
|
71
78
|
id: 'createdBy',
|
@@ -2,6 +2,8 @@ import type { IDatasetListParam } from '@/types/dataset';
|
|
2
2
|
interface IProps {
|
3
3
|
modelValue: IDatasetListParam;
|
4
4
|
apiPrefix: string;
|
5
|
+
spaceId?: string;
|
6
|
+
isInternal?: boolean;
|
5
7
|
}
|
6
8
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
7
9
|
"update:modelValue": (modelValue: IDatasetListParam) => any;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
.bkaidev-markdown[data-v-
|
2
|
+
.bkaidev-markdown[data-v-a2dg706z] {
|
3
3
|
color: #3a84ff;
|
4
4
|
}
|
5
|
-
.bkaidev-wangye[data-v-
|
5
|
+
.bkaidev-wangye[data-v-a2dg706z] {
|
6
6
|
color: #14A568;
|
7
7
|
}
|
8
|
-
.bkaidev-wenben[data-v-
|
8
|
+
.bkaidev-wenben[data-v-a2dg706z] {
|
9
9
|
color: #979ba5;
|
10
10
|
}
|