@blueking/ai-ui-sdk 0.4.1-beta.1 → 0.4.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/render-agent/agent-type.vue.css +3 -3
- package/dist/components/render-agent/agent-type.vue.js +1 -1
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +8 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-card/agent/prefix-info-tool.vue.css +5 -5
- package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
- package/dist/components/render-card/base.vue.css +12 -12
- package/dist/components/render-card/base.vue.js +1 -1
- package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
- package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
- package/dist/components/render-card/llm/icons.vue.css +2 -2
- package/dist/components/render-card/llm/icons.vue.js +1 -1
- package/dist/components/render-card/llm/info.vue.css +1 -1
- package/dist/components/render-card/llm/info.vue.js +1 -1
- package/dist/components/render-card/llm/tag-prefix.vue.css +3 -3
- package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
- package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
- package/dist/components/render-card/prompt/icons.vue.css +1 -1
- package/dist/components/render-card/prompt/icons.vue.js +1 -1
- package/dist/components/render-card/skill/tag-prefix.vue.css +3 -3
- package/dist/components/render-card/skill/tag-prefix.vue.js +1 -1
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-collection/actions/index.script.vue.js.js +19 -80
- package/dist/components/render-collection/content/index.script.vue.js +3 -4
- package/dist/components/render-collection/content/index.vue.css +4 -4
- package/dist/components/render-collection/content/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/index.vue.css +2 -2
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-dialog/choose-resource.vue.css +3 -3
- package/dist/components/render-dialog/choose-resource.vue.js +1 -1
- package/dist/components/render-dialog/choose-result.vue.css +14 -14
- package/dist/components/render-dialog/choose-result.vue.js +1 -1
- package/dist/components/render-dialog/choose-space.vue.css +9 -9
- package/dist/components/render-dialog/choose-space.vue.js +1 -1
- package/dist/components/render-dialog/index.vue.css +6 -6
- package/dist/components/render-dialog/index.vue.js +1 -1
- package/dist/components/render-dropdown/index.vue.d.ts +2 -2
- 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 +6 -6
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-generate-tag/index.vue.css +5 -5
- package/dist/components/render-generate-tag/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +3 -3
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-knowledge/icon/index.vue.css +1 -1
- package/dist/components/render-knowledge/icon/index.vue.js +1 -1
- package/dist/components/render-prompt/actions/index.script.vue.js.js +21 -76
- package/dist/components/render-prompt/content/index.vue.css +1 -1
- package/dist/components/render-prompt/content/index.vue.js +1 -1
- package/dist/components/render-reference/index.vue.css +2 -2
- package/dist/components/render-reference/index.vue.js +1 -1
- package/dist/components/render-resource-version/index.vue.css +2 -2
- package/dist/components/render-resource-version/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components/render-select-plus-extension/index.vue.css +3 -3
- package/dist/components/render-select-plus-extension/index.vue.js +1 -1
- package/dist/components/render-t-table/index.vue.css +27 -27
- package/dist/components/render-t-table/index.vue.js +1 -1
- package/dist/components/render-tag-tree/index.vue.css +7 -7
- package/dist/components/render-tag-tree/index.vue.js +1 -1
- package/dist/components/render-tags/index.vue.css +6 -6
- package/dist/components/render-tags/index.vue.js +1 -1
- package/dist/components.d.ts +1 -2
- package/dist/components.ts.js +1 -2
- package/dist/css/g-utilities.css +2 -10
- package/dist/css/g-utilities.manifest.json +0 -2
- package/dist/hooks/use-style.ts.js +2 -9
- package/dist/hooks.d.ts +0 -4
- package/dist/hooks.ts.js +0 -4
- package/dist/http/helper/agent.d.ts +1 -7
- package/dist/http/helper/agent.ts.js +0 -26
- package/dist/http/helper/permission.ts.js +8 -2
- package/dist/https.d.ts +0 -1
- package/dist/https.ts.js +0 -1
- package/dist/transforms.d.ts +0 -1
- package/dist/transforms.ts.js +0 -1
- package/dist/types/agent.d.ts +0 -39
- package/dist/types/common.d.ts +2 -2
- package/dist/types/enum.d.ts +4 -48
- package/dist/types/enum.ts.js +3 -51
- package/dist/types/permission.d.ts +6 -0
- package/dist/types.d.ts +0 -1
- package/dist/types.ts.js +0 -1
- package/package.json +2 -8
- package/dist/common/chart-helper.d.ts +0 -39
- package/dist/common/chart-helper.ts.js +0 -196
- package/dist/components/render-like/index.script.vue.js.js +0 -312
- package/dist/components/render-like/index.vue.css +0 -20
- package/dist/components/render-like/index.vue.d.ts +0 -31
- package/dist/components/render-like/index.vue.js +0 -5
- package/dist/helpers.d.ts +0 -1
- package/dist/helpers.ts.js +0 -1
- package/dist/hooks/use-chat.d.ts +0 -1083
- package/dist/hooks/use-chat.ts.js +0 -678
- package/dist/hooks/use-reference-doc.d.ts +0 -14
- package/dist/hooks/use-reference-doc.ts.js +0 -176
- package/dist/hooks/use-session-http.d.ts +0 -38
- package/dist/hooks/use-session-http.ts.js +0 -159
- package/dist/hooks/use-summary.d.ts +0 -9
- package/dist/hooks/use-summary.ts.js +0 -55
- package/dist/hooks/use-think.d.ts +0 -21
- package/dist/hooks/use-think.ts.js +0 -136
- package/dist/http/helper/session.d.ts +0 -65
- package/dist/http/helper/session.ts.js +0 -267
- package/dist/types/session.d.ts +0 -199
- package/dist/types/session.ts.js +0 -1
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
function _define_property(obj, key, value) {
|
|
2
|
-
if (key in obj) {
|
|
3
|
-
Object.defineProperty(obj, key, {
|
|
4
|
-
value: value,
|
|
5
|
-
enumerable: true,
|
|
6
|
-
configurable: true,
|
|
7
|
-
writable: true
|
|
8
|
-
});
|
|
9
|
-
} else {
|
|
10
|
-
obj[key] = value;
|
|
11
|
-
}
|
|
12
|
-
return obj;
|
|
13
|
-
}
|
|
14
|
-
function _object_spread(target) {
|
|
15
|
-
for(var i = 1; i < arguments.length; i++){
|
|
16
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
-
var ownKeys = Object.keys(source);
|
|
18
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
-
}));
|
|
22
|
-
}
|
|
23
|
-
ownKeys.forEach(function(key) {
|
|
24
|
-
_define_property(target, key, source[key]);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
}
|
|
29
|
-
import { defineComponent as _defineComponent } from 'vue';
|
|
30
|
-
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, unref as _unref, createElementVNode as _createElementVNode, withDirectives as _withDirectives, withModifiers as _withModifiers, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, withCtx as _withCtx, createVNode as _createVNode, createTextVNode as _createTextVNode, mergeProps as _mergeProps, createBlock as _createBlock } from "vue";
|
|
31
|
-
const _hoisted_1 = {
|
|
32
|
-
class: "select-options"
|
|
33
|
-
};
|
|
34
|
-
const _hoisted_2 = {
|
|
35
|
-
class: "g-text-16 !g-mb-16 g-text-black"
|
|
36
|
-
};
|
|
37
|
-
const _hoisted_3 = [
|
|
38
|
-
"onClick"
|
|
39
|
-
];
|
|
40
|
-
const _hoisted_4 = {
|
|
41
|
-
class: "g-flex-row g-justify-end !g-mt-16"
|
|
42
|
-
};
|
|
43
|
-
import { bkTooltips as vBkTooltips, Button as BkButton, clickoutside as vClickoutside, Form as BkForm, Loading as BkLoading, Popover as BkPopover } from 'bkui-vue';
|
|
44
|
-
import { BkFormItem } from 'bkui-vue/lib/form';
|
|
45
|
-
import { ref, watch } from 'vue';
|
|
46
|
-
import RenderAutoHeightTextarea from '../render-auto-height-textarea/index.vue.js';
|
|
47
|
-
import { useSessionHttp } from '../../hooks/use-session-http.ts.js';
|
|
48
|
-
export default /*@__PURE__*/ _defineComponent({
|
|
49
|
-
props: {
|
|
50
|
-
apiPrefix: {},
|
|
51
|
-
sessionCode: {},
|
|
52
|
-
sessionContentIds: {},
|
|
53
|
-
spaceId: {},
|
|
54
|
-
rate: {},
|
|
55
|
-
comment: {},
|
|
56
|
-
labels: {},
|
|
57
|
-
popoverOptions: {},
|
|
58
|
-
tooltipOptions: {}
|
|
59
|
-
},
|
|
60
|
-
emits: [
|
|
61
|
-
"update-session-content-list"
|
|
62
|
-
],
|
|
63
|
-
setup (__props, { emit: __emit }) {
|
|
64
|
-
const props = __props;
|
|
65
|
-
const emit = __emit;
|
|
66
|
-
const { getSessionFeedbackLabels, postSessionFeedback } = useSessionHttp({
|
|
67
|
-
apiPrefix: props.apiPrefix,
|
|
68
|
-
headers: {
|
|
69
|
-
'x-space-id': props.spaceId
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
const isShow = ref(false);
|
|
73
|
-
const loading = ref(false);
|
|
74
|
-
const submitting = ref(false);
|
|
75
|
-
const feedbackOptions = ref([]);
|
|
76
|
-
const formData = ref({
|
|
77
|
-
sessionCode: props.sessionCode,
|
|
78
|
-
sessionContentIds: props.sessionContentIds,
|
|
79
|
-
rate: props.rate === 5 || props.rate === 1 ? props.rate : 0,
|
|
80
|
-
comment: props.comment,
|
|
81
|
-
labels: props.labels || []
|
|
82
|
-
});
|
|
83
|
-
const getTooltipContent = (number)=>{
|
|
84
|
-
const tooltipMap = {
|
|
85
|
-
5: {
|
|
86
|
-
5: '取消满意',
|
|
87
|
-
1: '满意',
|
|
88
|
-
0: '满意'
|
|
89
|
-
},
|
|
90
|
-
1: {
|
|
91
|
-
5: '不满意',
|
|
92
|
-
1: '取消不满意',
|
|
93
|
-
0: '不满意'
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
const rate = formData.value.rate;
|
|
97
|
-
return tooltipMap[number][rate];
|
|
98
|
-
};
|
|
99
|
-
const toggleOption = (option)=>{
|
|
100
|
-
const selected = formData.value.labels || [];
|
|
101
|
-
formData.value.labels = selected.includes(option) ? selected.filter((i)=>i !== option) : [
|
|
102
|
-
...selected,
|
|
103
|
-
option
|
|
104
|
-
];
|
|
105
|
-
};
|
|
106
|
-
const handleClick = (number)=>{
|
|
107
|
-
formData.value.rate = formData.value.rate === number ? 0 : number;
|
|
108
|
-
formData.value.comment = '';
|
|
109
|
-
formData.value.labels = [];
|
|
110
|
-
formData.value.sessionContentIds = props.sessionContentIds;
|
|
111
|
-
isShow.value = formData.value.rate !== 0;
|
|
112
|
-
if (isShow.value) {
|
|
113
|
-
handleGetSessionFeedbackLabels();
|
|
114
|
-
} else {
|
|
115
|
-
postSessionFeedback(formData.value).then(()=>{
|
|
116
|
-
emit('update-session-content-list', formData.value);
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
const handleGetSessionFeedbackLabels = ()=>{
|
|
121
|
-
loading.value = true;
|
|
122
|
-
getSessionFeedbackLabels(formData.value.rate).then((result)=>{
|
|
123
|
-
feedbackOptions.value = result;
|
|
124
|
-
}).finally(()=>{
|
|
125
|
-
loading.value = false;
|
|
126
|
-
});
|
|
127
|
-
};
|
|
128
|
-
const handleSubmit = ()=>{
|
|
129
|
-
submitting.value = true;
|
|
130
|
-
postSessionFeedback(formData.value).then(()=>{
|
|
131
|
-
emit('update-session-content-list', formData.value);
|
|
132
|
-
isShow.value = false;
|
|
133
|
-
}).finally(()=>{
|
|
134
|
-
submitting.value = false;
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
const handleClose = ()=>{
|
|
138
|
-
isShow.value = false;
|
|
139
|
-
formData.value.rate = 0;
|
|
140
|
-
};
|
|
141
|
-
const handleClickOutside = (event)=>{
|
|
142
|
-
const target = event.target;
|
|
143
|
-
if (!target.closest('.select-options')) {
|
|
144
|
-
handleClose();
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
watch(()=>props.rate, (newRate)=>{
|
|
148
|
-
formData.value.rate = newRate === 5 || newRate === 1 ? newRate : 0;
|
|
149
|
-
});
|
|
150
|
-
return (_ctx, _cache)=>{
|
|
151
|
-
return _openBlock(), _createBlock(_unref(BkPopover), _mergeProps(__props.popoverOptions, {
|
|
152
|
-
theme: "light",
|
|
153
|
-
placement: "bottom",
|
|
154
|
-
width: "450",
|
|
155
|
-
trigger: "manual",
|
|
156
|
-
arrow: false,
|
|
157
|
-
"is-show": isShow.value
|
|
158
|
-
}), {
|
|
159
|
-
content: _withCtx(()=>[
|
|
160
|
-
_withDirectives((_openBlock(), _createElementBlock("section", _hoisted_1, [
|
|
161
|
-
_createVNode(_unref(BkForm), {
|
|
162
|
-
"form-type": "vertical",
|
|
163
|
-
ref: "formRef",
|
|
164
|
-
class: "g-small-form g-short-form",
|
|
165
|
-
model: formData.value
|
|
166
|
-
}, {
|
|
167
|
-
default: _withCtx(()=>[
|
|
168
|
-
_createVNode(_unref(BkLoading), {
|
|
169
|
-
loading: loading.value
|
|
170
|
-
}, {
|
|
171
|
-
default: _withCtx(()=>[
|
|
172
|
-
_createVNode(_unref(BkFormItem), null, {
|
|
173
|
-
default: _withCtx(()=>[
|
|
174
|
-
_createElementVNode("h5", _hoisted_2, _toDisplayString(formData.value.rate === 5 ? '什么原因让你满意?' : '什么原因让你不满意?'), 1 /* TEXT */ ),
|
|
175
|
-
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(feedbackOptions.value, (option, index)=>{
|
|
176
|
-
return _openBlock(), _createElementBlock("span", {
|
|
177
|
-
class: _normalizeClass({
|
|
178
|
-
'option-items !g-text-12 g-mr-4 g-mb-4 !g-cursor-pointer g-float-left': true,
|
|
179
|
-
'option-items-selected g-text-blue': formData.value.labels.includes(option)
|
|
180
|
-
}),
|
|
181
|
-
key: index,
|
|
182
|
-
onClick: _withModifiers(($event)=>toggleOption(option), [
|
|
183
|
-
"stop"
|
|
184
|
-
])
|
|
185
|
-
}, _toDisplayString(option), 11 /* TEXT, CLASS, PROPS */ , _hoisted_3);
|
|
186
|
-
}), 128 /* KEYED_FRAGMENT */ ))
|
|
187
|
-
]),
|
|
188
|
-
_: 1 /* STABLE */
|
|
189
|
-
}),
|
|
190
|
-
_createVNode(_unref(BkFormItem), null, {
|
|
191
|
-
default: _withCtx(()=>[
|
|
192
|
-
_cache[3] || (_cache[3] = _createElementVNode("h5", {
|
|
193
|
-
class: "!g-text-12 g-mb-4"
|
|
194
|
-
}, " 其他原因 ", -1 /* CACHED */ )),
|
|
195
|
-
_createVNode(RenderAutoHeightTextarea, {
|
|
196
|
-
placeholder: "说出你的想法",
|
|
197
|
-
height: 74,
|
|
198
|
-
width: 368,
|
|
199
|
-
"model-value": formData.value.comment,
|
|
200
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = (value)=>formData.value.comment = value)
|
|
201
|
-
}, null, 8 /* PROPS */ , [
|
|
202
|
-
"model-value"
|
|
203
|
-
])
|
|
204
|
-
]),
|
|
205
|
-
_: 1 /* STABLE */
|
|
206
|
-
})
|
|
207
|
-
]),
|
|
208
|
-
_: 1 /* STABLE */
|
|
209
|
-
}, 8 /* PROPS */ , [
|
|
210
|
-
"loading"
|
|
211
|
-
])
|
|
212
|
-
]),
|
|
213
|
-
_: 1 /* STABLE */
|
|
214
|
-
}, 8 /* PROPS */ , [
|
|
215
|
-
"model"
|
|
216
|
-
]),
|
|
217
|
-
_createElementVNode("section", _hoisted_4, [
|
|
218
|
-
_createVNode(_unref(BkButton), {
|
|
219
|
-
class: "g-w-88",
|
|
220
|
-
theme: "primary",
|
|
221
|
-
disabled: !formData.value.comment && !(formData.value.labels && formData.value.labels.length > 0),
|
|
222
|
-
loading: submitting.value,
|
|
223
|
-
onClick: _withModifiers(handleSubmit, [
|
|
224
|
-
"stop"
|
|
225
|
-
])
|
|
226
|
-
}, {
|
|
227
|
-
default: _withCtx(()=>[
|
|
228
|
-
..._cache[4] || (_cache[4] = [
|
|
229
|
-
_createTextVNode(" 提交 ", -1 /* CACHED */ )
|
|
230
|
-
])
|
|
231
|
-
]),
|
|
232
|
-
_: 1 /* STABLE */
|
|
233
|
-
}, 8 /* PROPS */ , [
|
|
234
|
-
"disabled",
|
|
235
|
-
"loading"
|
|
236
|
-
]),
|
|
237
|
-
_createVNode(_unref(BkButton), {
|
|
238
|
-
class: "g-w-88 g-ml-8",
|
|
239
|
-
onClick: _withModifiers(handleClose, [
|
|
240
|
-
"stop"
|
|
241
|
-
])
|
|
242
|
-
}, {
|
|
243
|
-
default: _withCtx(()=>[
|
|
244
|
-
..._cache[5] || (_cache[5] = [
|
|
245
|
-
_createTextVNode(" 取消 ", -1 /* CACHED */ )
|
|
246
|
-
])
|
|
247
|
-
]),
|
|
248
|
-
_: 1 /* STABLE */
|
|
249
|
-
})
|
|
250
|
-
])
|
|
251
|
-
])), [
|
|
252
|
-
[
|
|
253
|
-
_unref(vClickoutside),
|
|
254
|
-
handleClickOutside
|
|
255
|
-
]
|
|
256
|
-
])
|
|
257
|
-
]),
|
|
258
|
-
default: _withCtx(()=>[
|
|
259
|
-
_createElementVNode("span", {
|
|
260
|
-
onClick: _cache[0] || (_cache[0] = _withModifiers(($event)=>handleClick(5), [
|
|
261
|
-
"stop"
|
|
262
|
-
])),
|
|
263
|
-
class: "select-options g-inline-flex-row"
|
|
264
|
-
}, [
|
|
265
|
-
_renderSlot(_ctx.$slots, "like", {}, ()=>[
|
|
266
|
-
_withDirectives(_createElementVNode("i", {
|
|
267
|
-
class: _normalizeClass([
|
|
268
|
-
'ai-ui-sdk-icon hover:!g-text-blue !g-cursor-pointer g-mr-8 !g-text-18',
|
|
269
|
-
formData.value.rate === 5 ? 'g-text-blue ai-ui-sdk-like' : 'g-text-gray ai-ui-sdk-unlike'
|
|
270
|
-
])
|
|
271
|
-
}, null, 2 /* CLASS */ ), [
|
|
272
|
-
[
|
|
273
|
-
_unref(vBkTooltips),
|
|
274
|
-
{
|
|
275
|
-
content: getTooltipContent(5),
|
|
276
|
-
placement: 'top'
|
|
277
|
-
}
|
|
278
|
-
]
|
|
279
|
-
])
|
|
280
|
-
], true)
|
|
281
|
-
]),
|
|
282
|
-
_createElementVNode("span", {
|
|
283
|
-
onClick: _cache[1] || (_cache[1] = _withModifiers(($event)=>handleClick(1), [
|
|
284
|
-
"stop"
|
|
285
|
-
])),
|
|
286
|
-
class: "select-options g-inline-flex-row"
|
|
287
|
-
}, [
|
|
288
|
-
_renderSlot(_ctx.$slots, "dislike", {}, ()=>[
|
|
289
|
-
_withDirectives(_createElementVNode("i", {
|
|
290
|
-
class: _normalizeClass([
|
|
291
|
-
'ai-ui-sdk-icon dislike-icon !g-inline-block !g-cursor-pointer hover:g-text-danger-red !g-text-18',
|
|
292
|
-
formData.value.rate === 1 ? 'g-text-red ai-ui-sdk-like' : 'g-text-gray ai-ui-sdk-unlike'
|
|
293
|
-
])
|
|
294
|
-
}, null, 2 /* CLASS */ ), [
|
|
295
|
-
[
|
|
296
|
-
_unref(vBkTooltips),
|
|
297
|
-
_object_spread({
|
|
298
|
-
content: getTooltipContent(1),
|
|
299
|
-
placement: 'top'
|
|
300
|
-
}, __props.tooltipOptions)
|
|
301
|
-
]
|
|
302
|
-
])
|
|
303
|
-
], true)
|
|
304
|
-
])
|
|
305
|
-
]),
|
|
306
|
-
_: 3 /* FORWARDED */
|
|
307
|
-
}, 16 /* FULL_PROPS */ , [
|
|
308
|
-
"is-show"
|
|
309
|
-
]);
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.dislike-icon[data-v-nuqw3hrv] {
|
|
3
|
-
transform: rotateX(180deg);
|
|
4
|
-
}
|
|
5
|
-
.option-items[data-v-nuqw3hrv] {
|
|
6
|
-
padding: 1px 8px;
|
|
7
|
-
background-color: #F0F1F5;
|
|
8
|
-
line-height: 22px;
|
|
9
|
-
border-radius: 2px;
|
|
10
|
-
}
|
|
11
|
-
.option-items[data-v-nuqw3hrv]:hover {
|
|
12
|
-
background-color: #E1ECFF;
|
|
13
|
-
color: #3A84FF;
|
|
14
|
-
}
|
|
15
|
-
.option-items-selected[data-v-nuqw3hrv]{
|
|
16
|
-
background-color: #E1ECFF;
|
|
17
|
-
}
|
|
18
|
-
[data-v-nuqw3hrv] .bk-form-item {
|
|
19
|
-
margin-bottom: 17px;
|
|
20
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { ISessionFeedback } from '@/types/session';
|
|
2
|
-
interface IProps {
|
|
3
|
-
apiPrefix: string;
|
|
4
|
-
sessionCode: string;
|
|
5
|
-
sessionContentIds: number[];
|
|
6
|
-
spaceId?: string;
|
|
7
|
-
rate?: number;
|
|
8
|
-
comment?: string;
|
|
9
|
-
labels?: string[];
|
|
10
|
-
popoverOptions?: Record<string, unknown>;
|
|
11
|
-
tooltipOptions?: Record<string, unknown>;
|
|
12
|
-
}
|
|
13
|
-
declare var __VLS_8: {}, __VLS_10: {};
|
|
14
|
-
type __VLS_Slots = {} & {
|
|
15
|
-
like?: (props: typeof __VLS_8) => any;
|
|
16
|
-
} & {
|
|
17
|
-
dislike?: (props: typeof __VLS_10) => any;
|
|
18
|
-
};
|
|
19
|
-
declare const __VLS_base: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
|
-
"update-session-content-list": (data: ISessionFeedback) => any;
|
|
21
|
-
}, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
|
|
22
|
-
"onUpdate-session-content-list"?: (data: ISessionFeedback) => any;
|
|
23
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
-
declare const _default: typeof __VLS_export;
|
|
26
|
-
export default _default;
|
|
27
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
-
new (): {
|
|
29
|
-
$slots: S;
|
|
30
|
-
};
|
|
31
|
-
};
|
package/dist/helpers.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './common/chart-helper';
|
package/dist/helpers.ts.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './common/chart-helper.ts.js';
|