cnhis-design-vue 3.2.13-beta.4 → 3.2.14-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/es/components/ai-chat/index.d.ts +97 -7
- package/es/components/ai-chat/src/Index.vue.d.ts +98 -8
- package/es/components/ai-chat/src/Index.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatBI.vue.d.ts +101 -0
- package/es/components/ai-chat/src/components/ChatBI.vue.js +1 -0
- package/es/components/ai-chat/src/components/ChatBI.vue2.js +1 -0
- package/es/components/ai-chat/src/components/ChatCard.d.ts +21 -2
- package/es/components/ai-chat/src/components/ChatCard.js +1 -1
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +61 -3
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatMain.d.ts +1 -1
- package/es/components/ai-chat/src/components/ChatMain.js +1 -1
- package/es/components/ai-chat/src/components/ChatPatient.vue.d.ts +59 -0
- package/es/components/ai-chat/src/components/ChatPatient.vue.js +1 -0
- package/es/components/ai-chat/src/components/ChatPatient.vue2.js +1 -0
- package/es/components/ai-chat/src/types/index.d.ts +4 -3
- package/es/components/ai-chat/src/utils/index.d.ts +1 -0
- package/es/components/ai-chat/src/utils/index.js +1 -0
- package/es/components/ai-chat/style/index.css +1 -1
- package/es/components/button-print/index.d.ts +4 -4
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +4 -4
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +8 -6
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCommon.js +1 -1
- package/es/components/form-config/index.d.ts +2 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +2 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +2 -0
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +2 -1
- package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -1
- package/es/components/form-config/src/constants/index.d.ts +1 -0
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +1 -0
- package/es/components/form-config/src/utils/index.d.ts +1 -0
- package/es/components/form-config/src/utils/index.js +1 -1
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/iho-table/index.d.ts +8 -6
- package/es/components/iho-table/src/IhoTable.vue.d.ts +8 -6
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/crossHeaderPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +20 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +7 -2
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -1,5 +1,9 @@
|
|
1
1
|
import { SFCWithInstall } from '../../shared/types';
|
2
2
|
declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
3
|
+
token: {
|
4
|
+
type: StringConstructor;
|
5
|
+
required: true;
|
6
|
+
};
|
3
7
|
userAvatar: {
|
4
8
|
type: StringConstructor;
|
5
9
|
};
|
@@ -34,11 +38,21 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
34
38
|
type: import("vue").PropType<import("./src/types").QueryPrompt>;
|
35
39
|
};
|
36
40
|
patientInfo: {
|
37
|
-
type: import("vue").PropType<
|
41
|
+
type: import("vue").PropType<Partial<{
|
42
|
+
info: import("../../shared/types").AnyObject;
|
43
|
+
queryPatient: (props: {
|
44
|
+
keyword: string;
|
45
|
+
businessType: string;
|
46
|
+
}) => Promise<import("../../shared/types").AnyObject[]>;
|
47
|
+
}>>;
|
38
48
|
};
|
39
49
|
}, {
|
40
50
|
cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
|
41
51
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
52
|
+
token: {
|
53
|
+
type: StringConstructor;
|
54
|
+
required: true;
|
55
|
+
};
|
42
56
|
userAvatar: {
|
43
57
|
type: StringConstructor;
|
44
58
|
};
|
@@ -73,16 +87,24 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
73
87
|
type: import("vue").PropType<import("./src/types").QueryPrompt>;
|
74
88
|
};
|
75
89
|
patientInfo: {
|
76
|
-
type: import("vue").PropType<
|
90
|
+
type: import("vue").PropType<Partial<{
|
91
|
+
info: import("../../shared/types").AnyObject;
|
92
|
+
queryPatient: (props: {
|
93
|
+
keyword: string;
|
94
|
+
businessType: string;
|
95
|
+
}) => Promise<import("../../shared/types").AnyObject[]>;
|
96
|
+
}>>;
|
77
97
|
};
|
78
98
|
}>> & {
|
79
99
|
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
80
100
|
}>>;
|
101
|
+
axiosInstance: import("axios").AxiosInstance;
|
81
102
|
emit: (event: "button-click", ...args: any[]) => void;
|
82
103
|
state: import("../../shared/types").AnyObject;
|
104
|
+
NMessageProvider: any;
|
83
105
|
ChatMain: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
84
106
|
[x: string]: unknown;
|
85
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<readonly string[] | import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
107
|
+
}>>, () => JSX.Element[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<readonly string[] | import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
86
108
|
[x: string]: unknown;
|
87
109
|
}>>>> & {}, {
|
88
110
|
readonly [x: number]: string;
|
@@ -97,7 +119,6 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
97
119
|
audioTimed: any;
|
98
120
|
commandList: any;
|
99
121
|
inputRef: import("vue").Ref<any>;
|
100
|
-
content: import("vue").Ref<string>;
|
101
122
|
showPopover: import("vue").Ref<boolean>;
|
102
123
|
breadcrumb: import("vue").Ref<{
|
103
124
|
[x: string]: any;
|
@@ -115,10 +136,11 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
115
136
|
}[]>;
|
116
137
|
showPrompt: import("vue").Ref<boolean>;
|
117
138
|
currentShortcutId: import("vue").Ref<string>;
|
118
|
-
|
139
|
+
showPatient: import("vue").Ref<boolean>;
|
140
|
+
btnDisabled: import("vue").ComputedRef<any>;
|
119
141
|
showMagicWand: import("vue").ComputedRef<boolean>;
|
142
|
+
patient: import("vue").ComputedRef<string>;
|
120
143
|
recorderStart: () => Promise<void>;
|
121
|
-
isValidJSON: (str: string) => boolean;
|
122
144
|
getShortcutName: (item: string | import("../../shared/types").AnyObject) => any;
|
123
145
|
handleShortcut: (item: string | import("../../shared/types").AnyObject) => void;
|
124
146
|
resetCurrentCommand: () => void;
|
@@ -128,6 +150,7 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
128
150
|
handleSend: () => void;
|
129
151
|
clickMenu: (menu: import("./src/types").CommandItem) => void;
|
130
152
|
handleBack: () => void;
|
153
|
+
updateShow: (value: boolean) => void;
|
131
154
|
NButton: any;
|
132
155
|
NInput: any;
|
133
156
|
NIcon: any;
|
@@ -139,6 +162,7 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
139
162
|
ChevronBack: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
140
163
|
ChevronForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
141
164
|
SparklesSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
165
|
+
PeopleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
142
166
|
ChatPrompt: import("vue").DefineComponent<{
|
143
167
|
show: {
|
144
168
|
type: BooleanConstructor;
|
@@ -182,8 +206,68 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
182
206
|
}, {
|
183
207
|
show: boolean;
|
184
208
|
}>;
|
209
|
+
ChatPatient: import("vue").DefineComponent<{
|
210
|
+
show: {
|
211
|
+
type: BooleanConstructor;
|
212
|
+
};
|
213
|
+
}, {
|
214
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
215
|
+
show: {
|
216
|
+
type: BooleanConstructor;
|
217
|
+
};
|
218
|
+
}>> & {
|
219
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
220
|
+
}>>;
|
221
|
+
emit: (event: "update:show", ...args: any[]) => void;
|
222
|
+
patientInfo: any;
|
223
|
+
state: any;
|
224
|
+
formValue: {
|
225
|
+
businessType: string;
|
226
|
+
vaa01: null;
|
227
|
+
bck03a: string;
|
228
|
+
};
|
229
|
+
rules: {
|
230
|
+
businessType: {
|
231
|
+
required: boolean;
|
232
|
+
trigger: string;
|
233
|
+
message: string;
|
234
|
+
};
|
235
|
+
vaa01: {
|
236
|
+
required: boolean;
|
237
|
+
trigger: string[];
|
238
|
+
message: string;
|
239
|
+
};
|
240
|
+
};
|
241
|
+
options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
242
|
+
formRef: import("vue").Ref<any>;
|
243
|
+
renderLabel: (option: import("../../shared/types").AnyObject) => string;
|
244
|
+
handleUpdateValue: (value: string, option: import("naive-ui").SelectOption) => void;
|
245
|
+
handleSearch: (keyword: string) => Promise<void>;
|
246
|
+
handleBusinessTypeUpdate: () => void;
|
247
|
+
handleValidateClick: (e: MouseEvent) => void;
|
248
|
+
NDrawer: any;
|
249
|
+
NDrawerContent: any;
|
250
|
+
NForm: any;
|
251
|
+
NFormItem: any;
|
252
|
+
NButton: any;
|
253
|
+
NRadioGroup: any;
|
254
|
+
NRadio: any;
|
255
|
+
NSelect: any;
|
256
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
257
|
+
show: {
|
258
|
+
type: BooleanConstructor;
|
259
|
+
};
|
260
|
+
}>> & {
|
261
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
262
|
+
}, {
|
263
|
+
show: boolean;
|
264
|
+
}>;
|
185
265
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
186
266
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "button-click"[], "button-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
267
|
+
token: {
|
268
|
+
type: StringConstructor;
|
269
|
+
required: true;
|
270
|
+
};
|
187
271
|
userAvatar: {
|
188
272
|
type: StringConstructor;
|
189
273
|
};
|
@@ -218,7 +302,13 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
218
302
|
type: import("vue").PropType<import("./src/types").QueryPrompt>;
|
219
303
|
};
|
220
304
|
patientInfo: {
|
221
|
-
type: import("vue").PropType<
|
305
|
+
type: import("vue").PropType<Partial<{
|
306
|
+
info: import("../../shared/types").AnyObject;
|
307
|
+
queryPatient: (props: {
|
308
|
+
keyword: string;
|
309
|
+
businessType: string;
|
310
|
+
}) => Promise<import("../../shared/types").AnyObject[]>;
|
311
|
+
}>>;
|
222
312
|
};
|
223
313
|
}>> & {
|
224
314
|
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
@@ -2,6 +2,10 @@ import { type PropType } from 'vue';
|
|
2
2
|
import { QueryData, QueryRecord, CommandItem, QueryPrompt } from './types';
|
3
3
|
import { AnyObject } from '../../../shared/types';
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
5
|
+
token: {
|
6
|
+
type: StringConstructor;
|
7
|
+
required: true;
|
8
|
+
};
|
5
9
|
userAvatar: {
|
6
10
|
type: StringConstructor;
|
7
11
|
};
|
@@ -36,11 +40,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
36
40
|
type: PropType<QueryPrompt>;
|
37
41
|
};
|
38
42
|
patientInfo: {
|
39
|
-
type: PropType<
|
43
|
+
type: PropType<Partial<{
|
44
|
+
info: AnyObject;
|
45
|
+
queryPatient: (props: {
|
46
|
+
keyword: string;
|
47
|
+
businessType: string;
|
48
|
+
}) => Promise<AnyObject[]>;
|
49
|
+
}>>;
|
40
50
|
};
|
41
51
|
}, {
|
42
52
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
43
53
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
54
|
+
token: {
|
55
|
+
type: StringConstructor;
|
56
|
+
required: true;
|
57
|
+
};
|
44
58
|
userAvatar: {
|
45
59
|
type: StringConstructor;
|
46
60
|
};
|
@@ -75,23 +89,31 @@ declare const _default: import("vue").DefineComponent<{
|
|
75
89
|
type: PropType<QueryPrompt>;
|
76
90
|
};
|
77
91
|
patientInfo: {
|
78
|
-
type: PropType<
|
92
|
+
type: PropType<Partial<{
|
93
|
+
info: AnyObject;
|
94
|
+
queryPatient: (props: {
|
95
|
+
keyword: string;
|
96
|
+
businessType: string;
|
97
|
+
}) => Promise<AnyObject[]>;
|
98
|
+
}>>;
|
79
99
|
};
|
80
100
|
}>> & {
|
81
101
|
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
82
102
|
}>>;
|
103
|
+
axiosInstance: import("axios").AxiosInstance;
|
83
104
|
emit: (event: "button-click", ...args: any[]) => void;
|
84
105
|
state: AnyObject;
|
106
|
+
NMessageProvider: any;
|
85
107
|
ChatMain: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
86
108
|
[x: string]: unknown;
|
87
|
-
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<readonly string[] | import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
109
|
+
}>>, () => JSX.Element[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<readonly string[] | import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
88
110
|
[x: string]: unknown;
|
89
111
|
}>>>> & {}, {
|
90
112
|
readonly [x: number]: string;
|
91
113
|
} | {}>;
|
92
114
|
ChatFooter: import("vue").DefineComponent<{}, {
|
93
115
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
94
|
-
audioSdk: import("
|
116
|
+
audioSdk: import("../..").CAudioSDK;
|
95
117
|
emit: (event: string, ...args: any[]) => void;
|
96
118
|
shortcutList: any;
|
97
119
|
state: any;
|
@@ -99,7 +121,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
99
121
|
audioTimed: any;
|
100
122
|
commandList: any;
|
101
123
|
inputRef: import("vue").Ref<any>;
|
102
|
-
content: import("vue").Ref<string>;
|
103
124
|
showPopover: import("vue").Ref<boolean>;
|
104
125
|
breadcrumb: import("vue").Ref<{
|
105
126
|
[x: string]: any;
|
@@ -117,10 +138,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
117
138
|
}[]>;
|
118
139
|
showPrompt: import("vue").Ref<boolean>;
|
119
140
|
currentShortcutId: import("vue").Ref<string>;
|
120
|
-
|
141
|
+
showPatient: import("vue").Ref<boolean>;
|
142
|
+
btnDisabled: import("vue").ComputedRef<any>;
|
121
143
|
showMagicWand: import("vue").ComputedRef<boolean>;
|
144
|
+
patient: import("vue").ComputedRef<string>;
|
122
145
|
recorderStart: () => Promise<void>;
|
123
|
-
isValidJSON: (str: string) => boolean;
|
124
146
|
getShortcutName: (item: string | AnyObject) => any;
|
125
147
|
handleShortcut: (item: string | AnyObject) => void;
|
126
148
|
resetCurrentCommand: () => void;
|
@@ -130,6 +152,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
130
152
|
handleSend: () => void;
|
131
153
|
clickMenu: (menu: CommandItem) => void;
|
132
154
|
handleBack: () => void;
|
155
|
+
updateShow: (value: boolean) => void;
|
133
156
|
NButton: any;
|
134
157
|
NInput: any;
|
135
158
|
NIcon: any;
|
@@ -141,6 +164,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
141
164
|
ChevronBack: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
142
165
|
ChevronForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
143
166
|
SparklesSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
167
|
+
PeopleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
144
168
|
ChatPrompt: import("vue").DefineComponent<{
|
145
169
|
show: {
|
146
170
|
type: BooleanConstructor;
|
@@ -184,8 +208,68 @@ declare const _default: import("vue").DefineComponent<{
|
|
184
208
|
}, {
|
185
209
|
show: boolean;
|
186
210
|
}>;
|
211
|
+
ChatPatient: import("vue").DefineComponent<{
|
212
|
+
show: {
|
213
|
+
type: BooleanConstructor;
|
214
|
+
};
|
215
|
+
}, {
|
216
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
217
|
+
show: {
|
218
|
+
type: BooleanConstructor;
|
219
|
+
};
|
220
|
+
}>> & {
|
221
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
222
|
+
}>>;
|
223
|
+
emit: (event: "update:show", ...args: any[]) => void;
|
224
|
+
patientInfo: any;
|
225
|
+
state: any;
|
226
|
+
formValue: {
|
227
|
+
businessType: string;
|
228
|
+
vaa01: null;
|
229
|
+
bck03a: string;
|
230
|
+
};
|
231
|
+
rules: {
|
232
|
+
businessType: {
|
233
|
+
required: boolean;
|
234
|
+
trigger: string;
|
235
|
+
message: string;
|
236
|
+
};
|
237
|
+
vaa01: {
|
238
|
+
required: boolean;
|
239
|
+
trigger: string[];
|
240
|
+
message: string;
|
241
|
+
};
|
242
|
+
};
|
243
|
+
options: import("vue").Ref<AnyObject[]>;
|
244
|
+
formRef: import("vue").Ref<any>;
|
245
|
+
renderLabel: (option: AnyObject) => string;
|
246
|
+
handleUpdateValue: (value: string, option: import("naive-ui").SelectOption) => void;
|
247
|
+
handleSearch: (keyword: string) => Promise<void>;
|
248
|
+
handleBusinessTypeUpdate: () => void;
|
249
|
+
handleValidateClick: (e: MouseEvent) => void;
|
250
|
+
NDrawer: any;
|
251
|
+
NDrawerContent: any;
|
252
|
+
NForm: any;
|
253
|
+
NFormItem: any;
|
254
|
+
NButton: any;
|
255
|
+
NRadioGroup: any;
|
256
|
+
NRadio: any;
|
257
|
+
NSelect: any;
|
258
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
259
|
+
show: {
|
260
|
+
type: BooleanConstructor;
|
261
|
+
};
|
262
|
+
}>> & {
|
263
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
264
|
+
}, {
|
265
|
+
show: boolean;
|
266
|
+
}>;
|
187
267
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
188
268
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "button-click"[], "button-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
269
|
+
token: {
|
270
|
+
type: StringConstructor;
|
271
|
+
required: true;
|
272
|
+
};
|
189
273
|
userAvatar: {
|
190
274
|
type: StringConstructor;
|
191
275
|
};
|
@@ -220,7 +304,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
220
304
|
type: PropType<QueryPrompt>;
|
221
305
|
};
|
222
306
|
patientInfo: {
|
223
|
-
type: PropType<
|
307
|
+
type: PropType<Partial<{
|
308
|
+
info: AnyObject;
|
309
|
+
queryPatient: (props: {
|
310
|
+
keyword: string;
|
311
|
+
businessType: string;
|
312
|
+
}) => Promise<AnyObject[]>;
|
313
|
+
}>>;
|
224
314
|
};
|
225
315
|
}>> & {
|
226
316
|
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,reactive as t,provide as o,toRefs as r,computed as s,openBlock as
|
1
|
+
import{defineComponent as e,reactive as t,provide as o,toRefs as r,computed as s,openBlock as a,createElementBlock as i,normalizeClass as n,normalizeStyle as u,unref as l,createVNode as d,withCtx as p,createBlock as m,createCommentVNode as c}from"vue";import{NMessageProvider as h}from"naive-ui";import y from"./components/ChatMain.js";import f from"./components/ChatFooter.vue.js";import{useTheme as v}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import{uuidGenerator as S}from"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"../../../shared/hooks/useScrollLoading.js";import{InjectionAIChat as x,InjectionAIChatEmits as j}from"./types/index.js";import k from"axios";const P=["id"];var g=e({__name:"Index",props:{token:{type:String,required:!0},userAvatar:{type:String},defaultShortcutList:{type:Array},shortcutList:{type:Array},queryData:{type:Function,reuired:!0},queryRecord:{type:Function,reuired:!0},hideInput:{type:Boolean},uiStyle:{type:String},audioTimed:{type:Number,default:10},commandList:{type:Array},queryPrompt:{type:Function},patientInfo:{type:Object}},emits:["button-click"],setup(e,{expose:g,emit:I}){const b=e,A=v(),C=k.create({headers:{Authorization:"bearer "+b.token}});C.interceptors.response.use((e=>{var t;return(null==(t=e.data)?void 0:t.success)?e.data:{success:!1,data:[]}}));const F=t({id:"ai-chat-"+S(),loading:!1,sending:!1,sendContent:"",selectedCommand:null,selectedPrompt:null,externalData:null,selectedPatient:null,selectedPatientLabel:"",selectedPatientForm:null,showPatient:!1});return o(x,{...r(b),state:F,isSmall:s((()=>"small"===b.uiStyle)),axiosInstance:C}),o(j,I),g({pushMessage:e=>{F.externalData=e},updatePatientInfo:e=>{F.selectedPatient=e}}),(t,o)=>(a(),i("div",{id:F.id,class:n(["ai-chat","small"===e.uiStyle?"ai-chat--small":""]),style:u(l(A))},[d(l(h),null,{default:p((()=>[d(l(y)),e.hideInput?c("v-if",!0):(a(),m(f,{key:0}))])),_:1})],14,P))}});export{g as default};
|
@@ -0,0 +1,101 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
show: {
|
5
|
+
type: BooleanConstructor;
|
6
|
+
};
|
7
|
+
data: {
|
8
|
+
type: PropType<AnyObject>;
|
9
|
+
};
|
10
|
+
}, {
|
11
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
12
|
+
show: {
|
13
|
+
type: BooleanConstructor;
|
14
|
+
};
|
15
|
+
data: {
|
16
|
+
type: PropType<AnyObject>;
|
17
|
+
};
|
18
|
+
}>> & {
|
19
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
20
|
+
}>>;
|
21
|
+
emit: (event: string, ...args: any[]) => void;
|
22
|
+
_emit: (event: "update:show", ...args: any[]) => void;
|
23
|
+
state: any;
|
24
|
+
templateProps: import("vue").ComputedRef<{
|
25
|
+
config: any;
|
26
|
+
data: any;
|
27
|
+
}>;
|
28
|
+
handleModuleClick: (param: AnyObject) => void;
|
29
|
+
NDrawer: any;
|
30
|
+
NDrawerContent: any;
|
31
|
+
CTemplateRender: import("../../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
32
|
+
config: {
|
33
|
+
type: PropType<{
|
34
|
+
templateStyle?: import("vue").CSSProperties | undefined;
|
35
|
+
templates: AnyObject[];
|
36
|
+
}>;
|
37
|
+
};
|
38
|
+
data: {
|
39
|
+
default: () => {};
|
40
|
+
type: PropType<AnyObject>;
|
41
|
+
};
|
42
|
+
renders: {
|
43
|
+
type: PropType<Record<string, () => import("vue").VNodeChild>>;
|
44
|
+
};
|
45
|
+
}, {
|
46
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
47
|
+
config: {
|
48
|
+
type: PropType<{
|
49
|
+
templateStyle?: import("vue").CSSProperties | undefined;
|
50
|
+
templates: AnyObject[];
|
51
|
+
}>;
|
52
|
+
};
|
53
|
+
data: {
|
54
|
+
default: () => {};
|
55
|
+
type: PropType<AnyObject>;
|
56
|
+
};
|
57
|
+
renders: {
|
58
|
+
type: PropType<Record<string, () => import("vue").VNodeChild>>;
|
59
|
+
};
|
60
|
+
}>> & {
|
61
|
+
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
62
|
+
"onModule-click"?: ((...args: any[]) => any) | undefined;
|
63
|
+
}>>;
|
64
|
+
cssVars: import("vue").ComputedRef<AnyObject>;
|
65
|
+
emit: (event: "button-click" | "module-click", ...args: any[]) => void;
|
66
|
+
style: import("vue").ComputedRef<any>;
|
67
|
+
componentsFieldList: import("vue").ComputedRef<AnyObject[]>;
|
68
|
+
getComponent: typeof import("../../../template-render/src/components").getComponent;
|
69
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("button-click" | "module-click")[], "button-click" | "module-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
70
|
+
config: {
|
71
|
+
type: PropType<{
|
72
|
+
templateStyle?: import("vue").CSSProperties | undefined;
|
73
|
+
templates: AnyObject[];
|
74
|
+
}>;
|
75
|
+
};
|
76
|
+
data: {
|
77
|
+
default: () => {};
|
78
|
+
type: PropType<AnyObject>;
|
79
|
+
};
|
80
|
+
renders: {
|
81
|
+
type: PropType<Record<string, () => import("vue").VNodeChild>>;
|
82
|
+
};
|
83
|
+
}>> & {
|
84
|
+
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
85
|
+
"onModule-click"?: ((...args: any[]) => any) | undefined;
|
86
|
+
}, {
|
87
|
+
data: AnyObject;
|
88
|
+
}>>;
|
89
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
90
|
+
show: {
|
91
|
+
type: BooleanConstructor;
|
92
|
+
};
|
93
|
+
data: {
|
94
|
+
type: PropType<AnyObject>;
|
95
|
+
};
|
96
|
+
}>> & {
|
97
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
98
|
+
}, {
|
99
|
+
show: boolean;
|
100
|
+
}>;
|
101
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./ChatBI.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","ChatBI.vue"]]);export{t as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as t,inject as e,computed as o,openBlock as n,createBlock as a,unref as s,withCtx as i,createVNode as d,mergeProps as l,createCommentVNode as r}from"vue";import{NDrawer as u,NDrawerContent as m}from"naive-ui";import{InjectionAIChatEmits as p,InjectionAIChat as c}from"../types/index.js";import"../../../index.js";import{isValidJSON as f}from"../utils/index.js";import h from"../../../template-render/index.js";var v=t({__name:"ChatBI",props:{show:{type:Boolean},data:{type:Object}},emits:["update:show"],setup(t,{emit:v}){const g=t,w=e(p),{state:j}=e(c),k=o((()=>{var t,e,o;const{content:n={}}=(null==(t=g.data)?void 0:t.msgItem)||{};return{config:f(null==(e=n.settings)?void 0:e.setting)?JSON.parse(null==(o=n.settings)?void 0:o.setting):null,data:n.data}}));function x(t){const{eventName:e,data:o}=t;v("update:show",!1),e&&w("button-click",{buttonInfo:o,isBI:!0,...g.data})}return(e,o)=>(n(),a(s(u),{placement:"bottom",height:"80%","trap-focus":!1,to:"#"+s(j).id,show:t.show,onMaskClick:o[0]||(o[0]=()=>v("update:show",!1))},{default:i((()=>[d(s(m),null,{default:i((()=>[t.data?(n(),a(s(h),l({key:0},s(k),{onModuleClick:x}),null,16)):r("v-if",!0)])),_:1})])),_:1},8,["to","show"]))}});export{v as default};
|
@@ -1,11 +1,21 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
2
|
import { MessageItem } from '../types';
|
3
|
+
import { AnyObject } from '../../../../shared/types';
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
4
5
|
msgItem: {
|
5
6
|
type: PropType<MessageItem>;
|
6
7
|
default: () => {};
|
7
8
|
};
|
8
|
-
|
9
|
+
selectParams: {
|
10
|
+
type: PropType<{
|
11
|
+
taskId: string;
|
12
|
+
instructionId: string;
|
13
|
+
}>;
|
14
|
+
};
|
15
|
+
configs: {
|
16
|
+
type: PropType<AnyObject>;
|
17
|
+
};
|
18
|
+
msgId: {
|
9
19
|
type: StringConstructor;
|
10
20
|
};
|
11
21
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "button-click"[], "button-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -13,7 +23,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
13
23
|
type: PropType<MessageItem>;
|
14
24
|
default: () => {};
|
15
25
|
};
|
16
|
-
|
26
|
+
selectParams: {
|
27
|
+
type: PropType<{
|
28
|
+
taskId: string;
|
29
|
+
instructionId: string;
|
30
|
+
}>;
|
31
|
+
};
|
32
|
+
configs: {
|
33
|
+
type: PropType<AnyObject>;
|
34
|
+
};
|
35
|
+
msgId: {
|
17
36
|
type: StringConstructor;
|
18
37
|
};
|
19
38
|
}>> & {
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as
|
1
|
+
import{defineComponent as e,inject as t,ref as a,reactive as l,computed as n,watch as o,createVNode as i}from"vue";import{NForm as s,NFormItem as r,NInput as u,NIcon as d,NButton as c}from"naive-ui";import{InjectionAIChat as v}from"../types/index.js";import"../../../index.js";import{cloneDeep as p,isArray as m}from"lodash-es";import{isValidJSON as f}from"../utils/index.js";import{ChevronDown as g,ChevronForward as b}from"@vicons/ionicons5";import{useTheme as h}from"../../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"@vue/shared";import"../../../../shared/utils/index.js";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"../../../../shared/hooks/useScrollLoading.js";import y from"../../../form-render/index.js";import E from"../../../template-render/index.js";var I=e({name:"ChatCard",inheritAttrs:!1,props:{msgItem:{type:Object,default:()=>({})},selectParams:{type:Object},configs:{type:Object},msgId:{type:String}},emits:["button-click"],setup(e,{attrs:I,slots:k,emit:x}){const T={TEXT:"INPUT",NUMBER:"INPUT_NUMBER",DATETIME:"DATETIME-INPUT",MULTI_SELECT:"REMOTE_SEARCH",SELECT:"REMOTE_SEARCH"},_=h(),{patientInfo:P,state:C,axiosInstance:O,isSmall:S}=t(v),j=a([]),R=a(),M=a(),N=l({vaa05:""}),w=a(),L=n((()=>{var t,a;return!!(null==(a=null==(t=e.msgItem)?void 0:t.content)?void 0:a.body)})),q=e.msgItem.content,A={},U=l(p(q.data||{})),F={beforeRequest(e,t,a){(null==t?void 0:t.params)&&(t.params.vaa05=M.value.selectedPatient.vaa01),t&&Reflect.has(t,"configs")&&(t.configs=M.value.selectedPatient)}};function K(e){const{eventName:t,data:a}=e;t&&x("button-click",{buttonInfo:a,isBI:!0})}function H(e){q.data[e.button.id+"Disabled"]="1",x("button-click",{buttonInfo:e.button})}function B(){if(!M.value)return null;function t(){e.msgItem.disabled||(C.showPatient=!0)}return i(s,{class:"form-render",ref:w,"require-mark-placement":"left",disabled:e.msgItem.disabled,model:N,rules:{vaa05:{required:M.value.required,message:M.value.name+"为必填",trigger:["input"]}}},{default:()=>[i(r,{label:M.value.name,path:"vaa05",class:"form-render__formItem",style:"--n-feedback-height: 16px; --n-feedback-padding: 0px; --n-feedback-font-size: 12px"},{default:()=>[i(u,{style:"--n-text-color-disabled: #000; --n-placeholder-color-disabled: #000;--n-padding-left: 8px; --n-padding-right: 8px",readonly:!0,value:N.vaa05,placeholder:"请选择",onClick:t},{suffix:()=>i(d,{color:"#c2c2c2",component:g},null)})]})]})}async function J(t,a){var l;try{const n=a||R.value.getFormValues();await(null==(l=R.value)?void 0:l.validate()),q.body.items.forEach((e=>{var t;"vaa05"===e.code?(e._value=C.selectedPatientLabel,e.value=M.value.selectedPatient.vaa01||e.value):n[e.code]&&(e.value=n[e.code]),(null==(t=A[e.code])?void 0:t[0])&&(e.options=A[e.code])})),C.loading=!0,x("button-click",{values:n,buttonInfo:t,patient:M.value.selectedPatient||e.configs,isForm:!0})}catch(e){C.loading=!1}}function z(e){const{fieldInstance:t,context:a,value:l,fieldKey:n}=e;"REMOTE_SEARCH"===t.componentType&&(null==l?void 0:l.length)&&(A[n]=[null==a?void 0:a.currentOption])}function D(){x("button-click",{showMore:!0})}function V(){var e;if("1834043761964638208"!==(null==(e=q.settings)?void 0:e.id)||!q.data)return null;const t=JSON.parse(q.settings.setting),a=e=>{var t;let l="";for(let n=0;n<e.length;n++){const o=e[n];if(o.setting.scopeKey){l=o.setting.scopeKey;break}if((null==(t=o.childrens)?void 0:t.length)&&(l=a(o.childrens),l))break}return l},l=a(t.templates);return!l||!f(q.data[l])||JSON.parse(q.data[l]).length<=5?null:(f(U[l])&&(U[l]=JSON.parse(U[l]).slice(0,5)),i(c,{block:!0,text:!0,"icon-placement":"right",color:_.value["--c-primary-color"],style:"margin-top: 10px",onClick:D},{icon:()=>i(d,{component:b},null),default:()=>"查看更多"}))}return L.value&&(j.value=(q.body.items||[]).map((t=>{var a,l,n;if("vaa05"===t.code&&!S.value)return M.value={...t},t._value?N.vaa05=t._value:(null==(a=t.options)?void 0:a.length)&&t.value&&(N.vaa05=null==(l=t.options.find((e=>e.value===t.value)))?void 0:l.label,M.value.selectedPatient=e.configs),null;const o={html_type:T[t.type]||t.type,val_key:t.code,name:t.name,elem_width:12,default_val:t.value,lazyRequest:!0,requestCache:!0,urlConfig:{nameKey:null!=(n=t.labelField)?n:"label"},option:[],is_null:t.required?"0":"1",is_edit:e.msgItem.disabled?"0":"1",componentProps:{},multi_select:"MULTI_SELECT"===t.type?"0":"1"};if("REMOTE_SEARCH"===o.html_type){if(o.componentProps={fallbackOption:!1},o.option=t.options||[],o.default_val=null,t.value&&m(t.options)&&t.options.length>0){t.options.find((e=>(null==e?void 0:e.value)===t.value))&&(o.default_val=t.value)}Object.assign(o.urlConfig,{url:"/flow/api/instruction/parameter/getOptionsValues",method:"post",params:{...e.selectParams,code:t.code,source:S.value?"inner":"global",configs:P.value.info||C.selectedPatient},dependKey:[]}),m(t.dependencies)&&t.dependencies.length&&(o.urlConfig.dependKey=t.dependencies,t.dependencies.includes("vaa05")&&(o.urlConfig.params.params={vaa05:""}))}return o})).filter((e=>!!e))),o((()=>C.showPatient),(t=>{!e.msgItem.disabled&&L.value&&!t&&C.selectedPatientLabel&&M.value&&(N.vaa05=C.selectedPatientLabel,M.value.selectedPatient={...C.selectedPatientForm})})),()=>{var t;return i("div",{class:"card"},[L.value?[i("p",null,[q.title||q.header.title]),i("div",{class:"form-box"},[[B(),i(y,{"request-instance":{get:O.get,post:O.post},"life-cycle":F,column:12,ref:R,"field-list":j.value,onFormChange:z},null)]]),q.footer.buttons.map((t=>function(t){const a={width:"100%","--n-height":"36px",fontSize:"15px",marginTop:"10px"},l=L.value?{...a,marginTop:"0"}:a;return i(c,{id:e.msgId,style:l,secondary:!0,class:"gradient",disabled:e.msgItem.disabled,onClick:async function(){var e;if(L.value){if(!R.value)return;try{M.value?null==(e=w.value)||e.validate((async e=>{var a,l;if(!e){const e=null==(l=(a=R.value).getFormValues)?void 0:l.call(a);Object.assign(e,{vaa05:M.value.selectedPatient.vaa01}),await J(t,e)}})):await J(t)}catch(e){}}else x("button-click")}},{default:()=>[L.value?null==t?void 0:t.text:q.buttonName]})}(t)))]:[i(E,{config:f(null==(t=q.settings)?void 0:t.setting)?JSON.parse(q.settings.setting):null,data:U,"onModule-click":K,"onButton-click":H},null),V()]])}}});export{I as default};
|