@blueking/ai-ui-sdk 0.1.18-beta.2 → 0.1.18-beta.21

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 (74) hide show
  1. package/dist/components/render-aside/index.vue.css +9 -9
  2. package/dist/components/render-aside/index.vue.js +1 -1
  3. package/dist/components/render-auto-height-textarea/index.script.vue.js.js +3 -3
  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-checkbox/index.vue.css +9 -9
  9. package/dist/components/render-checkbox/index.vue.js +1 -1
  10. package/dist/components/render-choose-tag/index.vue.css +7 -7
  11. package/dist/components/render-choose-tag/index.vue.js +1 -1
  12. package/dist/components/render-collapse/index.vue.css +2 -2
  13. package/dist/components/render-collapse/index.vue.js +1 -1
  14. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  15. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  16. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  17. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  18. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  19. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  20. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  21. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  22. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  23. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  24. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  25. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  26. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  27. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  28. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  29. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  30. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  31. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  32. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  33. package/dist/components/render-dataset/index.vue.css +1 -1
  34. package/dist/components/render-dataset/index.vue.js +1 -1
  35. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  36. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  37. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  38. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  39. package/dist/components/render-dataset-list/components/table.script.vue.js.js +7 -9
  40. package/dist/components/render-expand-collapse/index.vue.css +3 -3
  41. package/dist/components/render-expand-collapse/index.vue.js +1 -1
  42. package/dist/components/render-file-card/index.vue.css +11 -11
  43. package/dist/components/render-file-card/index.vue.js +1 -1
  44. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  45. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  46. package/dist/components/render-header/index.vue.css +5 -5
  47. package/dist/components/render-header/index.vue.js +1 -1
  48. package/dist/components/render-like/index.script.vue.js.js +317 -0
  49. package/dist/components/render-like/index.vue.css +19 -0
  50. package/dist/components/render-like/index.vue.d.ts +30 -0
  51. package/dist/components/render-like/index.vue.js +5 -0
  52. package/dist/components/render-router-tab/index.vue.css +3 -3
  53. package/dist/components/render-router-tab/index.vue.js +1 -1
  54. package/dist/components.d.ts +2 -1
  55. package/dist/components.ts.js +2 -1
  56. package/dist/css/fonts/iconcool.eot +0 -0
  57. package/dist/css/fonts/iconcool.svg +6 -0
  58. package/dist/css/fonts/iconcool.ttf +0 -0
  59. package/dist/css/fonts/iconcool.woff +0 -0
  60. package/dist/css/iconcool.js +1 -1
  61. package/dist/css/style.css +6 -0
  62. package/dist/css/tailwind.css +929 -0
  63. package/dist/hooks/use-chat.d.ts +5 -0
  64. package/dist/hooks/use-chat.ts.js +1 -0
  65. package/dist/hooks/use-session-http.d.ts +10 -1
  66. package/dist/hooks/use-session-http.ts.js +25 -2
  67. package/dist/hooks/use-style.d.ts +1 -0
  68. package/dist/hooks/use-style.ts.js +1 -0
  69. package/dist/hooks/use-think.ts.js +1 -0
  70. package/dist/http/helper/dataset.ts.js +5 -1
  71. package/dist/http/helper/session.d.ts +25 -1
  72. package/dist/http/helper/session.ts.js +32 -0
  73. package/dist/types/session.d.ts +20 -0
  74. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
1
 
2
- .main-content[data-v-iw0biue5] {
2
+ .main-content[data-v-gl1jqtde] {
3
3
  padding: 20px 24px;
4
4
  height: calc(100% - 52px);
5
5
  }
6
- .main-panel[data-v-iw0biue5] {
6
+ .main-panel[data-v-gl1jqtde] {
7
7
  height: 100%;
8
8
  padding: 20px 24px 0;
9
9
  background: #ffffff;
10
10
  box-shadow: 0 2px 4px 0 #1919290d;
11
11
  border-radius: 2px;
12
12
  }
13
- .main-search[data-v-iw0biue5] {
13
+ .main-search[data-v-gl1jqtde] {
14
14
  width: 6.17rem;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './main.script.vue.js.js';
2
- script.__scopeId = "data-v-iw0biue5";
2
+ script.__scopeId = "data-v-gl1jqtde";
3
3
  script.__file = "./src/components/render-dataset-list/components/main.vue";
4
4
  import './main.vue.css';
5
5
  export default script;
@@ -152,7 +152,8 @@ export default /*@__PURE__*/ _defineComponent({
152
152
  'companyName',
153
153
  'componentName'
154
154
  ],
155
- 'description'
155
+ 'description',
156
+ 'createdAt'
156
157
  ],
157
158
  trigger: 'manual'
158
159
  };
@@ -287,13 +288,15 @@ export default /*@__PURE__*/ _defineComponent({
287
288
  _createVNode(_component_bk_table_column, {
288
289
  label: "数据量",
289
290
  field: "datasetItemCount",
290
- width: "80"
291
+ width: "80",
292
+ sort: true
291
293
  }),
292
294
  _ctx.reviewDataset ? (_openBlock(), _createBlock(_component_bk_table_column, {
293
295
  key: 0,
294
296
  label: "待审核数据量",
295
297
  field: "datasetItemUnreviewedCount",
296
- width: "120"
298
+ width: "120",
299
+ sort: true
297
300
  })) : _createCommentVNode("v-if", true),
298
301
  _createVNode(_component_bk_table_column, {
299
302
  label: "类型",
@@ -337,14 +340,9 @@ export default /*@__PURE__*/ _defineComponent({
337
340
  }),
338
341
  _createVNode(_component_bk_table_column, {
339
342
  label: "创建时间",
340
- field: "created_at",
343
+ field: "createdAt",
341
344
  "min-width": "180",
342
345
  sort: true
343
- }, {
344
- default: _withCtx(({ row })=>[
345
- _createTextVNode(_toDisplayString(row.createdAt), 1 /* TEXT */ )
346
- ]),
347
- _: 1 /* STABLE */
348
346
  }),
349
347
  _createVNode(_component_bk_table_column, {
350
348
  label: "操作",
@@ -1,5 +1,5 @@
1
1
 
2
- .expend-collapse-home[data-v-f77e0j8w] {
2
+ .expend-collapse-home[data-v-yt7jlp6n] {
3
3
  width: 16px;
4
4
  height: 64px;
5
5
  background: #DCDEE5;
@@ -15,9 +15,9 @@
15
15
  cursor: pointer;
16
16
  z-index: 1550;
17
17
  }
18
- .expend-collapse-home[data-v-f77e0j8w]:hover {
18
+ .expend-collapse-home[data-v-yt7jlp6n]:hover {
19
19
  background: #979BA5;
20
20
  }
21
- .expend-collapse-home.is-close[data-v-f77e0j8w] {
21
+ .expend-collapse-home.is-close[data-v-yt7jlp6n] {
22
22
  left: 0;
23
23
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-f77e0j8w";
2
+ script.__scopeId = "data-v-yt7jlp6n";
3
3
  script.__file = "./src/components/render-expand-collapse/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,21 +1,21 @@
1
1
 
2
- .upload-file-home[data-v-ylml0v7n] {
2
+ .upload-file-home[data-v-f7ivm7jo] {
3
3
  position: relative;
4
4
  background: #FFFFFF;
5
5
  border: 1px solid #DCDEE5;
6
6
  border-radius: 4px;
7
7
  padding: 12px 12px 10px 12px;
8
8
  }
9
- .upload-file-home[data-v-ylml0v7n]:hover {
9
+ .upload-file-home[data-v-f7ivm7jo]:hover {
10
10
  border: 1px solid #3A84FF;
11
11
  }
12
- .upload-file-home:hover .file-icons[data-v-ylml0v7n] {
12
+ .upload-file-home:hover .file-icons[data-v-f7ivm7jo] {
13
13
  display: flex;
14
14
  }
15
- .upload-file-home .file-icon[data-v-ylml0v7n] {
15
+ .upload-file-home .file-icon[data-v-f7ivm7jo] {
16
16
  font-size: 32px;
17
17
  }
18
- .upload-file-home .file-content[data-v-ylml0v7n] {
18
+ .upload-file-home .file-content[data-v-f7ivm7jo] {
19
19
  font-size: 12px;
20
20
  flex: 1;
21
21
  align-items: flex-start;
@@ -23,28 +23,28 @@
23
23
  font-weight: normal;
24
24
  width: 0;
25
25
  }
26
- .upload-file-home .file-content .file-name[data-v-ylml0v7n] {
26
+ .upload-file-home .file-content .file-name[data-v-f7ivm7jo] {
27
27
  width: 100%;
28
28
  font-size: 14px;
29
29
  line-height: 20px;
30
30
  }
31
- .upload-file-home .file-content .file-size[data-v-ylml0v7n] {
31
+ .upload-file-home .file-content .file-size[data-v-f7ivm7jo] {
32
32
  font-size: 12px;
33
33
  color: #979BA5;
34
34
  line-height: 20px;
35
35
  }
36
- .upload-file-home .file-icons[data-v-ylml0v7n] {
36
+ .upload-file-home .file-icons[data-v-f7ivm7jo] {
37
37
  display: none;
38
38
  color: #979BA5;
39
39
  }
40
- .upload-file-home .file-icons .bkaidev-icon[data-v-ylml0v7n] {
40
+ .upload-file-home .file-icons .bkaidev-icon[data-v-f7ivm7jo] {
41
41
  cursor: pointer;
42
42
  margin-right: 15px;
43
43
  font-size: 16px;
44
44
  }
45
- .upload-file-home .file-icons .bkaidev-icon[data-v-ylml0v7n]:hover {
45
+ .upload-file-home .file-icons .bkaidev-icon[data-v-f7ivm7jo]:hover {
46
46
  color: #3A84FF;
47
47
  }
48
- .upload-file-home .file-icons .bkaidev-delete[data-v-ylml0v7n] {
48
+ .upload-file-home .file-icons .bkaidev-delete[data-v-f7ivm7jo] {
49
49
  margin: 0;
50
50
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-ylml0v7n";
2
+ script.__scopeId = "data-v-f7ivm7jo";
3
3
  script.__file = "./src/components/render-file-card/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,16 +1,16 @@
1
1
 
2
- .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-mkzg6k8y] {
2
+ .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-ryuiu3f1] {
3
3
  color: #EA3636;
4
4
  }
5
- .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-mkzg6k8y], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-mkzg6k8y], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-mkzg6k8y] {
5
+ .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-ryuiu3f1], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-ryuiu3f1], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-ryuiu3f1] {
6
6
  color: #3A84FF;
7
7
  }
8
- .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-mkzg6k8y] {
8
+ .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-ryuiu3f1] {
9
9
  color: #C4C6CC;
10
10
  }
11
- .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-mkzg6k8y] {
11
+ .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-ryuiu3f1] {
12
12
  color: #2DCB56;
13
13
  }
14
- .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-mkzg6k8y] {
14
+ .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-ryuiu3f1] {
15
15
  color: #14A568;
16
16
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-mkzg6k8y";
2
+ script.__scopeId = "data-v-ryuiu3f1";
3
3
  script.__file = "./src/components/render-file-type-icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .header-home[data-v-u9cc14pb] {
2
+ .header-home[data-v-772g6uvf] {
3
3
  width: 100%;
4
4
  height: 52px;
5
5
  background: #FFFFFF;
@@ -7,14 +7,14 @@
7
7
  position: relative;
8
8
  z-index: 2;
9
9
  }
10
- .header-title[data-v-u9cc14pb] {
10
+ .header-title[data-v-772g6uvf] {
11
11
  position: absolute;
12
12
  left: 24px;
13
13
  top: 14px;
14
14
  font-size: 16px;
15
15
  color: #313238;
16
16
  }
17
- .header-main[data-v-u9cc14pb] {
17
+ .header-main[data-v-772g6uvf] {
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: flex-end;
@@ -22,13 +22,13 @@
22
22
  height: 100%;
23
23
  margin: 0 auto;
24
24
  }
25
- .header-select[data-v-u9cc14pb] {
25
+ .header-select[data-v-772g6uvf] {
26
26
  width: 300px;
27
27
  margin-right: 8px;
28
28
  z-index: 9;
29
29
  font-size: 12px;
30
30
  }
31
- .header-input[data-v-u9cc14pb] {
31
+ .header-input[data-v-772g6uvf] {
32
32
  width: 300px;
33
33
  font-size: 12px;
34
34
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-u9cc14pb";
2
+ script.__scopeId = "data-v-772g6uvf";
3
3
  script.__file = "./src/components/render-header/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -0,0 +1,317 @@
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"
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(_ctx.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 /* HOISTED */ )),
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
+ 3
208
+ ]
209
+ })
210
+ ]),
211
+ _: 1 /* STABLE */
212
+ }, 8 /* PROPS */ , [
213
+ "loading"
214
+ ])
215
+ ]),
216
+ _: 1 /* STABLE */
217
+ }, 8 /* PROPS */ , [
218
+ "model"
219
+ ]),
220
+ _createElementVNode("section", _hoisted_4, [
221
+ _createVNode(_unref(BkButton), {
222
+ class: "g-width-88",
223
+ theme: "primary",
224
+ disabled: !formData.value.comment && !(formData.value.labels && formData.value.labels.length > 0),
225
+ loading: submitting.value,
226
+ onClick: _withModifiers(handleSubmit, [
227
+ "stop"
228
+ ])
229
+ }, {
230
+ default: _withCtx(()=>_cache[4] || (_cache[4] = [
231
+ _createTextVNode(" 提交 ")
232
+ ])),
233
+ _: 1 /* STABLE */ ,
234
+ __: [
235
+ 4
236
+ ]
237
+ }, 8 /* PROPS */ , [
238
+ "disabled",
239
+ "loading"
240
+ ]),
241
+ _createVNode(_unref(BkButton), {
242
+ class: "g-width-88 g-ml-8",
243
+ onClick: _withModifiers(handleClose, [
244
+ "stop"
245
+ ])
246
+ }, {
247
+ default: _withCtx(()=>_cache[5] || (_cache[5] = [
248
+ _createTextVNode(" 取消 ")
249
+ ])),
250
+ _: 1 /* STABLE */ ,
251
+ __: [
252
+ 5
253
+ ]
254
+ })
255
+ ])
256
+ ])), [
257
+ [
258
+ _unref(vClickoutside),
259
+ handleClickOutside
260
+ ]
261
+ ])
262
+ ]),
263
+ default: _withCtx(()=>[
264
+ _createElementVNode("span", {
265
+ onClick: _cache[0] || (_cache[0] = _withModifiers(($event)=>handleClick(5), [
266
+ "stop"
267
+ ])),
268
+ class: "select-options g-inline-flex-row"
269
+ }, [
270
+ _renderSlot(_ctx.$slots, "like", {}, ()=>[
271
+ _withDirectives(_createElementVNode("i", {
272
+ class: _normalizeClass([
273
+ 'ai-ui-sdk-icon g-hover-text-blue g-cursor-pointer g-mr-8',
274
+ formData.value.rate === 5 ? 'g-text-blue ai-ui-sdk-like' : 'g-text-gray ai-ui-sdk-unlike'
275
+ ])
276
+ }, null, 2 /* CLASS */ ), [
277
+ [
278
+ _unref(vBkTooltips),
279
+ {
280
+ content: getTooltipContent(5),
281
+ placement: 'top'
282
+ }
283
+ ]
284
+ ])
285
+ ], true)
286
+ ]),
287
+ _createElementVNode("span", {
288
+ onClick: _cache[1] || (_cache[1] = _withModifiers(($event)=>handleClick(1), [
289
+ "stop"
290
+ ])),
291
+ class: "select-options g-inline-flex-row"
292
+ }, [
293
+ _renderSlot(_ctx.$slots, "dislike", {}, ()=>[
294
+ _withDirectives(_createElementVNode("i", {
295
+ class: _normalizeClass([
296
+ 'ai-ui-sdk-icon dislike-icon g-inline-block g-cursor-pointer g-hover-text-red',
297
+ formData.value.rate === 1 ? 'g-text-red ai-ui-sdk-like' : 'g-text-gray ai-ui-sdk-unlike'
298
+ ])
299
+ }, null, 2 /* CLASS */ ), [
300
+ [
301
+ _unref(vBkTooltips),
302
+ _object_spread({
303
+ content: getTooltipContent(1),
304
+ placement: 'top'
305
+ }, _ctx.tooltipOptions)
306
+ ]
307
+ ])
308
+ ], true)
309
+ ])
310
+ ]),
311
+ _: 3 /* FORWARDED */
312
+ }, 16 /* FULL_PROPS */ , [
313
+ "is-show"
314
+ ]);
315
+ };
316
+ }
317
+ });
@@ -0,0 +1,19 @@
1
+
2
+ .dislike-icon[data-v-2ij09uyr] {
3
+ transform: rotateX(180deg);
4
+ }
5
+ .option-items[data-v-2ij09uyr] {
6
+ padding: 1px 8px;
7
+ background-color: #F0F1F5;
8
+ border-radius: 2px;
9
+ }
10
+ .option-items[data-v-2ij09uyr]:hover {
11
+ background-color: #E1ECFF;
12
+ color: #3A84FF;
13
+ }
14
+ .option-items-selected[data-v-2ij09uyr]{
15
+ background-color: #E1ECFF;
16
+ }
17
+ [data-v-2ij09uyr] .bk-form-item {
18
+ margin-bottom: 17px;
19
+ }
@@ -0,0 +1,30 @@
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_6: {}, __VLS_8: {};
14
+ type __VLS_Slots = {} & {
15
+ like?: (props: typeof __VLS_6) => any;
16
+ } & {
17
+ dislike?: (props: typeof __VLS_8) => any;
18
+ };
19
+ declare const __VLS_component: 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 _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,5 @@
1
+ import script from './index.script.vue.js.js';
2
+ script.__scopeId = "data-v-2ij09uyr";
3
+ script.__file = "./src/components/render-like/index.vue";
4
+ import './index.vue.css';
5
+ export default script;
@@ -1,12 +1,12 @@
1
1
 
2
- .router-tab[data-v-emsbhr1e] {
2
+ .router-tab[data-v-ivu9pikx] {
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 45px;
8
8
  }
9
- .router-tab a[data-v-emsbhr1e] {
9
+ .router-tab a[data-v-ivu9pikx] {
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-emsbhr1e] {
18
+ .router-tab a.router-link-exact-active[data-v-ivu9pikx] {
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-emsbhr1e";
2
+ script.__scopeId = "data-v-ivu9pikx";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -8,6 +8,7 @@ import RenderDatasetDetail from './components/render-dataset-detail/index.vue';
8
8
  import RenderDatasetDetailOriginData from './components/render-dataset-detail-origin-data/index.vue';
9
9
  import RenderDatasetList from './components/render-dataset-list/index.vue';
10
10
  import RenderHeader from './components/render-header/index.vue';
11
+ import RenderLike from './components/render-like/index.vue';
11
12
  import RenderMarkdown from './components/render-markdown/mark-down';
12
13
  import RenderSearchSelect from './components/render-search-select/index.vue';
13
- export { renderAuthDialog, RenderAutoRefresh, RenderDataset, RenderDatasetDetail, RenderDatasetList, RenderHeader, RenderAutoHeightTextarea, RenderDatasetDetailOriginData, RenderCheckbox, RenderChooseTag, RenderMarkdown, RenderSearchSelect, };
14
+ export { renderAuthDialog, RenderAutoRefresh, RenderDataset, RenderDatasetDetail, RenderDatasetList, RenderHeader, RenderAutoHeightTextarea, RenderDatasetDetailOriginData, RenderCheckbox, RenderChooseTag, RenderMarkdown, RenderSearchSelect, RenderLike, };