cnhis-design-vue 3.3.1-release.5 → 3.3.2-release.0
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/README.md +87 -87
- package/es/components/audio-sdk/index.d.ts +20 -0
- package/es/components/audio-sdk/src/Index.vue.d.ts +20 -0
- package/es/components/audio-sdk/src/Index.vue2.js +1 -1
- package/es/components/audio-sdk/src/audioSDK.d.ts +1 -0
- package/es/components/audio-sdk/src/audioSDK.js +11 -3
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +10 -0
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +10 -0
- package/es/components/audio-sdk/src/components/recording.vue2.js +5 -0
- package/es/components/audio-sdk/src/constants/index.d.ts +1 -0
- package/es/components/audio-sdk/src/constants/index.js +3 -0
- package/es/components/audio-sdk/src/utils/recorder/fft.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/recorder/mp3-engine.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/recorder/mp3.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/recorder/recorder.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/recorder/wave.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/recordingModal.js +13 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/callback/src/components/render/popupMaps.d.ts +17 -1
- package/es/components/card-render/index.d.ts +4 -4
- package/es/components/card-render/src/CardRender.vue.d.ts +4 -4
- package/es/components/card-render/src/components/index.d.ts +23 -23
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +12 -6
- package/es/components/field-editor/index.d.ts +4 -0
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +4 -0
- package/es/components/form-config/index.d.ts +80 -5
- package/es/components/form-config/src/FormConfig.vue.d.ts +80 -5
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +57 -4
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +16 -1
- package/es/components/form-config/src/constants/index.d.ts +2 -1
- package/es/components/form-config/src/constants/index.js +1 -0
- package/es/components/form-config/src/hooks/useConfigurationField.js +19 -1
- package/es/components/form-config/src/hooks/useLocale.d.ts +1 -0
- package/es/components/form-config/src/hooks/useLocale.js +1 -0
- package/es/components/form-config/src/types/index.d.ts +1 -0
- package/es/components/form-render/index.d.ts +4 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +4 -0
- package/es/components/form-render/src/FormRender.vue2.js +3 -2
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -0
- package/es/components/form-render/src/components/renderer/combination/combination.js +1 -1
- package/es/components/form-render/src/components/renderer/date.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/input.d.ts +16 -4
- package/es/components/form-render/src/components/renderer/input.js +39 -7
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +3 -0
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +9 -8
- package/es/components/form-render/src/components/renderer/text.js +1 -1
- package/es/components/form-render/src/components/renderer/textarea.d.ts +16 -1
- package/es/components/form-render/src/components/renderer/textarea.js +36 -8
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -0
- package/es/components/form-render/src/hooks/useComplexOptions.js +3 -2
- package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +2 -2
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +4 -3
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormField.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormField.js +5 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -0
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +11 -0
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/src/utils/index.js +1 -0
- package/es/components/form-render/src/utils/schema.js +60 -15
- package/es/components/guide/src/renderer.d.ts +2 -2
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-table/index.d.ts +13 -1
- package/es/components/iho-table/src/IhoTable.vue.d.ts +13 -2
- package/es/components/iho-table/src/IhoTable.vue2.js +27 -20
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +6 -0
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +0 -3
- package/es/components/info-header/index.d.ts +13 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +13 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +5 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -0
- package/es/components/scale-view/index.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +2 -2
- package/es/components/scale-view/src/hooks/scaleview-init.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +2 -2
- package/es/components/select-person/src/SelectPerson.vue2.js +8 -5
- package/es/components/shortcut-setter/index.d.ts +16 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +16 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +11 -11
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/CancelRadio/CancelRadio.d.ts +7 -0
- package/es/shared/components/CancelRadio/CancelRadio.js +6 -6
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +76 -77
- package/es/components/ai-chat/index.d.ts +0 -680
- package/es/components/ai-chat/index.js +0 -10
- package/es/components/ai-chat/src/Index.vue.d.ts +0 -682
- package/es/components/ai-chat/src/Index.vue.js +0 -6
- package/es/components/ai-chat/src/Index.vue2.js +0 -175
- package/es/components/ai-chat/src/api/index.d.ts +0 -8
- package/es/components/ai-chat/src/api/index.js +0 -87
- package/es/components/ai-chat/src/components/ChatAudio.vue.d.ts +0 -38
- package/es/components/ai-chat/src/components/ChatAudio.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatAudio.vue2.js +0 -103
- package/es/components/ai-chat/src/components/ChatBI.vue.d.ts +0 -101
- package/es/components/ai-chat/src/components/ChatBI.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatBI.vue2.js +0 -73
- package/es/components/ai-chat/src/components/ChatCard.d.ts +0 -43
- package/es/components/ai-chat/src/components/ChatCard.js +0 -403
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +0 -203
- package/es/components/ai-chat/src/components/ChatFooter.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +0 -373
- package/es/components/ai-chat/src/components/ChatMain.d.ts +0 -2
- package/es/components/ai-chat/src/components/ChatMain.js +0 -350
- package/es/components/ai-chat/src/components/ChatMainDefault.d.ts +0 -2
- package/es/components/ai-chat/src/components/ChatMainDefault.js +0 -278
- package/es/components/ai-chat/src/components/ChatPatient.vue.d.ts +0 -59
- package/es/components/ai-chat/src/components/ChatPatient.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatPatient.vue2.js +0 -218
- package/es/components/ai-chat/src/components/ChatPrompt.vue.d.ts +0 -45
- package/es/components/ai-chat/src/components/ChatPrompt.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatPrompt.vue2.js +0 -143
- package/es/components/ai-chat/src/components/ChatRight.vue.d.ts +0 -57
- package/es/components/ai-chat/src/components/ChatRight.vue.js +0 -6
- package/es/components/ai-chat/src/components/ChatRight.vue2.js +0 -190
- package/es/components/ai-chat/src/components/card/JsonCard.d.ts +0 -25
- package/es/components/ai-chat/src/components/card/JsonCard.js +0 -574
- package/es/components/ai-chat/src/components/message-render/CardRender.d.ts +0 -16
- package/es/components/ai-chat/src/components/message-render/CardRender.js +0 -80
- package/es/components/ai-chat/src/components/message-render/FormRender.d.ts +0 -16
- package/es/components/ai-chat/src/components/message-render/FormRender.js +0 -173
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue.d.ts +0 -36
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue.js +0 -6
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue2.js +0 -96
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue.d.ts +0 -105
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue.js +0 -6
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue2.js +0 -260
- package/es/components/ai-chat/src/components/svgs/AddIcon.vue.js +0 -18
- package/es/components/ai-chat/src/components/svgs/AudioIcon.vue.js +0 -37
- package/es/components/ai-chat/src/components/svgs/KeyboardIcon.vue.js +0 -20
- package/es/components/ai-chat/src/components/svgs/MicroPhone.vue.js +0 -48
- package/es/components/ai-chat/src/hooks/index.d.ts +0 -2
- package/es/components/ai-chat/src/hooks/index.js +0 -2
- package/es/components/ai-chat/src/hooks/useChartAudioContext.d.ts +0 -18
- package/es/components/ai-chat/src/hooks/useChartAudioContext.js +0 -202
- package/es/components/ai-chat/src/hooks/useData.d.ts +0 -77
- package/es/components/ai-chat/src/hooks/useData.js +0 -289
- package/es/components/ai-chat/src/hooks/useFooterContext.d.ts +0 -38
- package/es/components/ai-chat/src/hooks/useFooterContext.js +0 -218
- package/es/components/ai-chat/src/hooks/useProgram.d.ts +0 -14
- package/es/components/ai-chat/src/hooks/useProgram.js +0 -306
- package/es/components/ai-chat/src/hooks/useSSE.d.ts +0 -9
- package/es/components/ai-chat/src/hooks/useSSE.js +0 -138
- package/es/components/ai-chat/src/hooks/useWebsocket.d.ts +0 -4
- package/es/components/ai-chat/src/hooks/useWebsocket.js +0 -66
- package/es/components/ai-chat/src/types/index.d.ts +0 -45
- package/es/components/ai-chat/src/types/index.js +0 -1
- package/es/components/ai-chat/src/utils/index.d.ts +0 -7
- package/es/components/ai-chat/src/utils/index.js +0 -41
- package/es/components/ai-chat/style/index.css +0 -1
- package/es/shared/assets/img/ai__avatar.png.js +0 -3
- package/es/shared/assets/img/file-emr.png.js +0 -3
- package/es/shared/assets/img/file.png.js +0 -3
- package/es/shared/assets/img/logo.png.js +0 -3
- package/es/shared/assets/img/use.png.js +0 -3
@@ -1,373 +0,0 @@
|
|
1
|
-
import { defineComponent, ref, onMounted, computed, watch, nextTick, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, createBlock, withCtx, createVNode, createTextVNode, toDisplayString, createCommentVNode, Fragment, renderList, normalizeStyle, createSlots, withModifiers, isRef, getCurrentInstance } from 'vue';
|
2
|
-
import { NButton, NIcon, NPopover, NInput, NTag, NBreadcrumb, NBreadcrumbItem, NSwitch } from 'naive-ui';
|
3
|
-
import { PeopleOutline, SparklesSharp, PaperPlane, ChevronBack, ChevronForward } from '@vicons/ionicons5';
|
4
|
-
import { useFooterContext } from '../hooks/useFooterContext.js';
|
5
|
-
import '../../../audio-sdk/index.js';
|
6
|
-
import { last, cloneDeep } from 'lodash-es';
|
7
|
-
import ChatPrompt from './ChatPrompt.vue.js';
|
8
|
-
import ChatPatient from './ChatPatient.vue.js';
|
9
|
-
import ChatAudio from './ChatAudio.vue.js';
|
10
|
-
import MicroPhone from './svgs/MicroPhone.vue.js';
|
11
|
-
import AudioSDK from '../../../audio-sdk/src/audioSDK.js';
|
12
|
-
|
13
|
-
const _hoisted_1 = {
|
14
|
-
key: 0,
|
15
|
-
class: "menu-box fillet-8"
|
16
|
-
};
|
17
|
-
const _hoisted_2 = {
|
18
|
-
class: "input-wrapper fillet-10"
|
19
|
-
};
|
20
|
-
const _hoisted_3 = {
|
21
|
-
key: 0,
|
22
|
-
class: "btn-box"
|
23
|
-
};
|
24
|
-
const _hoisted_4 = ["disabled"];
|
25
|
-
const _hoisted_5 = {
|
26
|
-
class: "command-box"
|
27
|
-
};
|
28
|
-
const _hoisted_6 = {
|
29
|
-
class: "command-box__header"
|
30
|
-
};
|
31
|
-
const _hoisted_7 = {
|
32
|
-
key: 0,
|
33
|
-
class: "title"
|
34
|
-
};
|
35
|
-
const _hoisted_8 = {
|
36
|
-
class: "command-box__menu"
|
37
|
-
};
|
38
|
-
const _hoisted_9 = ["onMouseover", "onClick"];
|
39
|
-
const _hoisted_10 = {
|
40
|
-
class: "label"
|
41
|
-
};
|
42
|
-
const _hoisted_11 = {
|
43
|
-
class: "remark"
|
44
|
-
};
|
45
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
46
|
-
__name: "ChatFooter",
|
47
|
-
setup(__props) {
|
48
|
-
const {
|
49
|
-
state,
|
50
|
-
shortcutList,
|
51
|
-
getShortcutName,
|
52
|
-
isAllDisabled,
|
53
|
-
isStreamingOutput,
|
54
|
-
handleShortcut,
|
55
|
-
showPopover,
|
56
|
-
handleKeyDown,
|
57
|
-
handleInput,
|
58
|
-
btnDisabled,
|
59
|
-
commandList,
|
60
|
-
showAudio,
|
61
|
-
handleSend,
|
62
|
-
isDefault,
|
63
|
-
breadcrumb,
|
64
|
-
currentShortcutId,
|
65
|
-
currentCommand,
|
66
|
-
clickMenu,
|
67
|
-
audioTimed,
|
68
|
-
showLBtn,
|
69
|
-
isSmall,
|
70
|
-
cssVars
|
71
|
-
} = useFooterContext();
|
72
|
-
function railStyle({
|
73
|
-
focused,
|
74
|
-
checked
|
75
|
-
}) {
|
76
|
-
const style = {};
|
77
|
-
if (checked) {
|
78
|
-
style.background = "#d03050";
|
79
|
-
if (focused) {
|
80
|
-
style.boxShadow = "0 0 0 2px #d0305040";
|
81
|
-
}
|
82
|
-
} else {
|
83
|
-
style.background = "#2080f0";
|
84
|
-
if (focused) {
|
85
|
-
style.boxShadow = "0 0 0 2px #2080f040";
|
86
|
-
}
|
87
|
-
}
|
88
|
-
return style;
|
89
|
-
}
|
90
|
-
const inputRef = ref();
|
91
|
-
onMounted(() => {
|
92
|
-
var _a;
|
93
|
-
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
94
|
-
});
|
95
|
-
const placeholder = computed(() => {
|
96
|
-
if (isDefault.value)
|
97
|
-
return "\u8BF7\u5411\u6211\u63D0\u95EE\uFF0CShift+Enter\u6362\u884C";
|
98
|
-
return isSmall.value ? '\u8BF7\u5411\u6211\u63D0\u95EE\u6216\u8F93\u5165"/"\u67E5\u770B\u6307\u4EE4' : '\u8BF7\u5411\u6211\u63D0\u95EE\u6216\u8F93\u5165"/"\u67E5\u770B\u6307\u4EE4\uFF0CShift+Enter\u6362\u884C';
|
99
|
-
});
|
100
|
-
watch(() => state.loading, async (value) => {
|
101
|
-
var _a;
|
102
|
-
if (!value) {
|
103
|
-
await nextTick();
|
104
|
-
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
105
|
-
}
|
106
|
-
});
|
107
|
-
const audioSdk = AudioSDK.create();
|
108
|
-
async function recorderStart() {
|
109
|
-
try {
|
110
|
-
const data = await audioSdk.start({
|
111
|
-
instance: getCurrentInstance(),
|
112
|
-
allowPunctuationMark: false,
|
113
|
-
timed: audioTimed.value || 10,
|
114
|
-
realTimeRecognition: true
|
115
|
-
});
|
116
|
-
if ((data == null ? void 0 : data.result) !== "success")
|
117
|
-
return;
|
118
|
-
state.sendContent = data.data || "";
|
119
|
-
} catch (error) {
|
120
|
-
console.log(error);
|
121
|
-
}
|
122
|
-
}
|
123
|
-
onBeforeUnmount(() => {
|
124
|
-
AudioSDK.destroy();
|
125
|
-
});
|
126
|
-
const showPrompt = ref(false);
|
127
|
-
const showPatient = ref(false);
|
128
|
-
const showMagicWand = computed(() => {
|
129
|
-
var _a;
|
130
|
-
return !state.sendContent && !((_a = inputRef.value) == null ? void 0 : _a.activated.value);
|
131
|
-
});
|
132
|
-
const patient = computed(() => {
|
133
|
-
var _a, _b;
|
134
|
-
if (!state.selectedPatient)
|
135
|
-
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.190")) || "\u9009\u62E9\u60A3\u8005";
|
136
|
-
const {
|
137
|
-
bcq04b,
|
138
|
-
vaa05
|
139
|
-
} = state.selectedPatient;
|
140
|
-
let str = "";
|
141
|
-
if (bcq04b) {
|
142
|
-
str += bcq04b + (((_b = window.getLanguageByCode) == null ? void 0 : _b.call(window, "10010.1.191")) || "\u5E8A");
|
143
|
-
}
|
144
|
-
const getPrefix = () => !str || str.endsWith("/") ? "" : "/";
|
145
|
-
if (vaa05) {
|
146
|
-
str += getPrefix() + vaa05;
|
147
|
-
}
|
148
|
-
return str;
|
149
|
-
});
|
150
|
-
function handleBack() {
|
151
|
-
var _a;
|
152
|
-
breadcrumb.value.pop();
|
153
|
-
currentCommand.value = last(breadcrumb.value) ? (_a = last(breadcrumb.value)) == null ? void 0 : _a.children : cloneDeep(commandList.value || []);
|
154
|
-
currentShortcutId.value = currentCommand.value[0].shortcutId;
|
155
|
-
inputRef.value.focus();
|
156
|
-
}
|
157
|
-
function updateShow(value) {
|
158
|
-
if (!value) {
|
159
|
-
state.showPatient = false;
|
160
|
-
}
|
161
|
-
}
|
162
|
-
watch(() => state.showPatient, (value) => {
|
163
|
-
if (value) {
|
164
|
-
showPatient.value = value;
|
165
|
-
}
|
166
|
-
});
|
167
|
-
return (_ctx, _cache) => {
|
168
|
-
return openBlock(), createElementBlock("section", {
|
169
|
-
class: normalizeClass(["chat-footer-wrapper", {
|
170
|
-
"is-small": unref(isSmall)
|
171
|
-
}])
|
172
|
-
}, [createElementVNode("div", {
|
173
|
-
class: normalizeClass(["chat-footer", unref(state).loading ? "disabled" : ""])
|
174
|
-
}, [unref(isDefault) && unref(shortcutList) && unref(shortcutList).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1, [!unref(isSmall) && !unref(isDefault) ? (openBlock(), createBlock(unref(NButton), {
|
175
|
-
key: 0,
|
176
|
-
secondary: "",
|
177
|
-
size: "small",
|
178
|
-
onClick: _cache[0] || (_cache[0] = () => showPatient.value = true)
|
179
|
-
}, {
|
180
|
-
icon: withCtx(() => [createVNode(unref(NIcon), {
|
181
|
-
color: unref(cssVars)["--c-primary-color"],
|
182
|
-
size: "20",
|
183
|
-
component: unref(PeopleOutline)
|
184
|
-
}, null, 8, ["color", "component"])]),
|
185
|
-
default: withCtx(() => [createTextVNode(" " + toDisplayString(unref(patient)), 1)]),
|
186
|
-
_: 1
|
187
|
-
})) : createCommentVNode("v-if", true), unref(shortcutList) && unref(shortcutList).length > 0 ? (openBlock(true), createElementBlock(Fragment, {
|
188
|
-
key: 1
|
189
|
-
}, renderList(unref(shortcutList), (item) => {
|
190
|
-
return openBlock(), createBlock(unref(NButton), {
|
191
|
-
secondary: "",
|
192
|
-
size: "small",
|
193
|
-
style: normalizeStyle(unref(isSmall) ? "background: #fff" : ""),
|
194
|
-
round: unref(isSmall),
|
195
|
-
key: unref(getShortcutName)(item),
|
196
|
-
disabled: unref(isAllDisabled) || unref(isStreamingOutput) && unref(state).loading,
|
197
|
-
onClick: () => unref(handleShortcut)(item)
|
198
|
-
}, {
|
199
|
-
default: withCtx(() => [createTextVNode(toDisplayString(unref(getShortcutName)(item)), 1)]),
|
200
|
-
_: 2
|
201
|
-
}, 1032, ["style", "round", "disabled", "onClick"]);
|
202
|
-
}), 128)) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), createVNode(unref(NPopover), {
|
203
|
-
"content-style": "height: 400px",
|
204
|
-
placement: "top-start",
|
205
|
-
trigger: "manual",
|
206
|
-
width: "trigger",
|
207
|
-
"show-arrow": false,
|
208
|
-
to: false,
|
209
|
-
show: unref(showPopover),
|
210
|
-
onClickoutside: _cache[5] || (_cache[5] = ($event) => showPopover.value = false)
|
211
|
-
}, {
|
212
|
-
trigger: withCtx(() => [createElementVNode("div", _hoisted_2, [createVNode(unref(NInput), {
|
213
|
-
ref_key: "inputRef",
|
214
|
-
ref: inputRef,
|
215
|
-
placeholder: unref(placeholder),
|
216
|
-
type: "textarea",
|
217
|
-
autosize: {
|
218
|
-
minRows: unref(isSmall) ? 1 : 2,
|
219
|
-
maxRows: 7
|
220
|
-
},
|
221
|
-
disabled: unref(isAllDisabled) || unref(state).loading || unref(showAudio),
|
222
|
-
value: unref(state).sendContent,
|
223
|
-
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => unref(state).sendContent = $event),
|
224
|
-
onKeydownCapture: unref(handleKeyDown),
|
225
|
-
onInput: unref(handleInput)
|
226
|
-
}, createSlots({
|
227
|
-
_: 2
|
228
|
-
}, [!unref(isDefault) ? {
|
229
|
-
name: "prefix",
|
230
|
-
fn: withCtx(() => [unref(state).selectedCommand && unref(state).selectedCommand.shortcutTitle ? (openBlock(), createBlock(unref(NTag), {
|
231
|
-
key: 0,
|
232
|
-
bordered: false,
|
233
|
-
color: {
|
234
|
-
textColor: unref(cssVars)["--c-primary-color"]
|
235
|
-
},
|
236
|
-
style: {
|
237
|
-
"--n-border-radius": "5px"
|
238
|
-
}
|
239
|
-
}, {
|
240
|
-
default: withCtx(() => [createTextVNode(" /" + toDisplayString(unref(state).selectedCommand.shortcutTitle), 1)]),
|
241
|
-
_: 1
|
242
|
-
}, 8, ["color"])) : unref(showMagicWand) ? (openBlock(), createBlock(unref(NButton), {
|
243
|
-
key: 1,
|
244
|
-
text: "",
|
245
|
-
onClick: _cache[1] || (_cache[1] = () => showPrompt.value = true)
|
246
|
-
}, {
|
247
|
-
default: withCtx(() => [createVNode(unref(NIcon), {
|
248
|
-
color: "#8f66f7",
|
249
|
-
size: "18",
|
250
|
-
component: unref(SparklesSharp)
|
251
|
-
}, null, 8, ["component"])]),
|
252
|
-
_: 1
|
253
|
-
})) : createCommentVNode("v-if", true)]),
|
254
|
-
key: "0"
|
255
|
-
} : void 0, unref(isSmall) ? {
|
256
|
-
name: "suffix",
|
257
|
-
fn: withCtx(() => [createVNode(unref(NButton), {
|
258
|
-
text: "",
|
259
|
-
disabled: unref(state).loading,
|
260
|
-
onClick: recorderStart
|
261
|
-
}, {
|
262
|
-
icon: withCtx(() => [createVNode(unref(NIcon), {
|
263
|
-
size: "30"
|
264
|
-
}, {
|
265
|
-
default: withCtx(() => [createVNode(MicroPhone)]),
|
266
|
-
_: 1
|
267
|
-
})]),
|
268
|
-
_: 1
|
269
|
-
}, 8, ["disabled"]), createVNode(unref(NButton), {
|
270
|
-
circle: "",
|
271
|
-
class: "gradient",
|
272
|
-
style: {
|
273
|
-
"margin-left": "10px"
|
274
|
-
},
|
275
|
-
disabled: unref(btnDisabled),
|
276
|
-
onClick: unref(handleSend)
|
277
|
-
}, {
|
278
|
-
icon: withCtx(() => [createVNode(unref(NIcon), {
|
279
|
-
color: "#fff",
|
280
|
-
size: "20",
|
281
|
-
component: unref(PaperPlane)
|
282
|
-
}, null, 8, ["component"])]),
|
283
|
-
_: 1
|
284
|
-
}, 8, ["disabled", "onClick"])]),
|
285
|
-
key: "1"
|
286
|
-
} : void 0]), 1032, ["placeholder", "autosize", "disabled", "value", "onKeydownCapture", "onInput"]), !unref(isSmall) ? (openBlock(), createElementBlock("div", _hoisted_3, [unref(isDefault) ? (openBlock(), createBlock(unref(NButton), {
|
287
|
-
key: 0,
|
288
|
-
text: "",
|
289
|
-
disabled: unref(isAllDisabled) || unref(showAudio) || unref(state).loading,
|
290
|
-
onClick: _cache[3] || (_cache[3] = ($event) => showAudio.value = true)
|
291
|
-
}, {
|
292
|
-
icon: withCtx(() => [createVNode(unref(NIcon), {
|
293
|
-
size: "60"
|
294
|
-
}, {
|
295
|
-
default: withCtx(() => [createVNode(MicroPhone)]),
|
296
|
-
_: 1
|
297
|
-
})]),
|
298
|
-
_: 1
|
299
|
-
}, 8, ["disabled"])) : createCommentVNode("v-if", true), createElementVNode("span", {
|
300
|
-
class: normalizeClass(["btn-send", "gradient", "fillet-8", unref(btnDisabled) || unref(showAudio) ? "disabled" : ""]),
|
301
|
-
disabled: unref(btnDisabled) || unref(showAudio),
|
302
|
-
onClick: _cache[4] || (_cache[4] = (...args) => unref(handleSend) && unref(handleSend)(...args))
|
303
|
-
}, [createVNode(unref(NIcon), {
|
304
|
-
color: "#fff",
|
305
|
-
size: "36",
|
306
|
-
component: unref(PaperPlane)
|
307
|
-
}, null, 8, ["component"])], 10, _hoisted_4)])) : createCommentVNode("v-if", true)])]),
|
308
|
-
default: withCtx(() => {
|
309
|
-
var _a;
|
310
|
-
return [createElementVNode("div", _hoisted_5, [createElementVNode("div", _hoisted_6, [unref(breadcrumb).length === 0 ? (openBlock(), createElementBlock("span", _hoisted_7, ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.189")) || "\u63A8\u8350\u6307\u4EE4")) : (openBlock(), createElementBlock(Fragment, {
|
311
|
-
key: 1
|
312
|
-
}, [createVNode(unref(NButton), {
|
313
|
-
text: "",
|
314
|
-
onClick: handleBack
|
315
|
-
}, {
|
316
|
-
default: withCtx(() => [createVNode(unref(NIcon), {
|
317
|
-
color: "#999",
|
318
|
-
size: "20",
|
319
|
-
component: unref(ChevronBack)
|
320
|
-
}, null, 8, ["component"])]),
|
321
|
-
_: 1
|
322
|
-
}), createVNode(unref(NBreadcrumb), null, {
|
323
|
-
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(breadcrumb), (item) => {
|
324
|
-
return openBlock(), createBlock(unref(NBreadcrumbItem), {
|
325
|
-
key: item.shortcutId
|
326
|
-
}, {
|
327
|
-
default: withCtx(() => [createTextVNode(toDisplayString(item.shortcutTitle), 1)]),
|
328
|
-
_: 2
|
329
|
-
}, 1024);
|
330
|
-
}), 128))]),
|
331
|
-
_: 1
|
332
|
-
})], 64))]), createElementVNode("div", _hoisted_8, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(currentCommand), (item) => {
|
333
|
-
return openBlock(), createElementBlock("div", {
|
334
|
-
class: normalizeClass(["menu-item", !item.children || !item.children.length ? "selectable" : "", unref(currentShortcutId) === item.shortcutId ? "selected" : ""]),
|
335
|
-
key: item.shortcutId,
|
336
|
-
onMouseover: withModifiers(() => currentShortcutId.value = item.shortcutId, ["stop"]),
|
337
|
-
onClick: () => unref(clickMenu)(item)
|
338
|
-
}, [createElementVNode("span", _hoisted_10, toDisplayString(item.shortcutTitle), 1), createElementVNode("span", _hoisted_11, toDisplayString(item.shortcutDescription), 1), item.children && item.children.length ? (openBlock(), createBlock(unref(NIcon), {
|
339
|
-
key: 0,
|
340
|
-
color: "#999",
|
341
|
-
size: "20",
|
342
|
-
component: unref(ChevronForward)
|
343
|
-
}, null, 8, ["component"])) : createCommentVNode("v-if", true)], 42, _hoisted_9);
|
344
|
-
}), 128))])])];
|
345
|
-
}),
|
346
|
-
_: 1
|
347
|
-
}, 8, ["show"]), !unref(isDefault) ? (openBlock(), createElementBlock(Fragment, {
|
348
|
-
key: 1
|
349
|
-
}, [createVNode(ChatPrompt, {
|
350
|
-
show: showPrompt.value,
|
351
|
-
"onUpdate:show": _cache[6] || (_cache[6] = ($event) => showPrompt.value = $event)
|
352
|
-
}, null, 8, ["show"]), createVNode(ChatPatient, {
|
353
|
-
show: showPatient.value,
|
354
|
-
"onUpdate:show": [_cache[7] || (_cache[7] = ($event) => showPatient.value = $event), updateShow]
|
355
|
-
}, null, 8, ["show"])], 64)) : (openBlock(), createBlock(ChatAudio, {
|
356
|
-
key: 2,
|
357
|
-
show: unref(showAudio),
|
358
|
-
"onUpdate:show": _cache[8] || (_cache[8] = ($event) => isRef(showAudio) ? showAudio.value = $event : null)
|
359
|
-
}, null, 8, ["show"])), unref(isDefault) && unref(showLBtn) ? (openBlock(), createBlock(unref(NSwitch), {
|
360
|
-
key: 3,
|
361
|
-
value: unref(state).switchFlag,
|
362
|
-
"onUpdate:value": _cache[9] || (_cache[9] = ($event) => unref(state).switchFlag = $event),
|
363
|
-
"rail-style": railStyle
|
364
|
-
}, {
|
365
|
-
checked: withCtx(() => [createTextVNode("L1")]),
|
366
|
-
unchecked: withCtx(() => [createTextVNode("L2")]),
|
367
|
-
_: 1
|
368
|
-
}, 8, ["value"])) : createCommentVNode("v-if", true)], 2)], 2);
|
369
|
-
};
|
370
|
-
}
|
371
|
-
});
|
372
|
-
|
373
|
-
export { _sfc_main as default };
|
@@ -1,2 +0,0 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
2
|
-
export default _default;
|