cnhis-design-vue 3.2.9-release.4 → 3.2.10-beta.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.
Files changed (56) hide show
  1. package/es/components/ai-chat/index.d.ts +27 -9
  2. package/es/components/ai-chat/src/Index.vue.d.ts +27 -9
  3. package/es/components/ai-chat/src/Index.vue2.js +1 -1
  4. package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +9 -0
  5. package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
  6. package/es/components/ai-chat/src/components/ChatMain.js +1 -1
  7. package/es/components/ai-chat/style/index.css +1 -1
  8. package/es/components/classification/index.d.ts +52 -0
  9. package/es/components/classification/src/components/search-filter/index.vue.d.ts +52 -0
  10. package/es/components/classification/src/components/set-classification/index.vue.d.ts +52 -0
  11. package/es/components/classification/src/index.vue.d.ts +52 -0
  12. package/es/components/form-render/index.js +1 -1
  13. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  14. package/es/components/form-render/src/components/renderer/combination/combination.js +1 -1
  15. package/es/components/form-render/src/components/renderer/complex.js +1 -1
  16. package/es/components/form-render/src/components/renderer/date.js +1 -1
  17. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  18. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  19. package/es/components/form-render/src/components/renderer/select.js +1 -1
  20. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  21. package/es/components/form-render/src/components/renderer/textarea.js +1 -1
  22. package/es/components/form-render/src/hooks/useAnchor.js +1 -1
  23. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
  24. package/es/components/form-render/src/utils/business.d.ts +1 -0
  25. package/es/components/form-render/src/utils/business.js +1 -1
  26. package/es/components/form-render/src/utils/index.js +1 -1
  27. package/es/components/index.css +1 -1
  28. package/es/components/index.js +1 -1
  29. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -0
  30. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -0
  31. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +51 -0
  32. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  33. package/es/components/table-filter/src/components/classify-filter/components/SelectTreeDynamic.vue.d.ts +51 -0
  34. package/es/components/table-filter/src/components/classify-filter/components/SelectTreeDynamic.vue.js +1 -0
  35. package/es/components/table-filter/src/components/classify-filter/components/SelectTreeDynamic.vue2.js +1 -0
  36. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +51 -1
  37. package/es/components/table-filter/src/components/classify-filter/components/index.js +1 -1
  38. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  39. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +51 -0
  40. package/es/components/table-filter/src/components/render-widget/components/SelectTreeDynamic.vue.d.ts +47 -0
  41. package/es/components/table-filter/src/components/render-widget/components/SelectTreeDynamic.vue.js +1 -0
  42. package/es/components/table-filter/src/components/render-widget/components/SelectTreeDynamic.vue2.js +1 -0
  43. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +45 -1
  44. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  45. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  46. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +61 -0
  47. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  48. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -2
  49. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  50. package/es/components/table-filter/src/tool/transformData.js +1 -1
  51. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  52. package/es/components/table-filter/src/types/enums.js +1 -1
  53. package/es/components/table-filter/src/types/index.d.ts +1 -0
  54. package/es/shared/assets/img/logo.png.js +1 -0
  55. package/es/shared/package.json.js +1 -1
  56. package/package.json +76 -76
@@ -2,13 +2,12 @@ import { SFCWithInstall } from '../../shared/types';
2
2
  declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
3
3
  userAvatar: {
4
4
  type: StringConstructor;
5
- required: true;
6
5
  };
7
6
  defaultShortcutList: {
8
7
  type: import("vue").PropType<string[]>;
9
8
  };
10
9
  shortcutList: {
11
- type: import("vue").PropType<string[]>;
10
+ type: import("vue").PropType<(string | import("../../shared/types").AnyObject)[]>;
12
11
  };
13
12
  queryData: {
14
13
  type: import("vue").PropType<import("./src/types").QueryData>;
@@ -21,18 +20,20 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
21
20
  hideInput: {
22
21
  type: BooleanConstructor;
23
22
  };
23
+ uiStyle: {
24
+ type: StringConstructor;
25
+ };
24
26
  }, {
25
27
  cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
26
28
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
27
29
  userAvatar: {
28
30
  type: StringConstructor;
29
- required: true;
30
31
  };
31
32
  defaultShortcutList: {
32
33
  type: import("vue").PropType<string[]>;
33
34
  };
34
35
  shortcutList: {
35
- type: import("vue").PropType<string[]>;
36
+ type: import("vue").PropType<(string | import("../../shared/types").AnyObject)[]>;
36
37
  };
37
38
  queryData: {
38
39
  type: import("vue").PropType<import("./src/types").QueryData>;
@@ -45,7 +46,13 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
45
46
  hideInput: {
46
47
  type: BooleanConstructor;
47
48
  };
48
- }>> & {}>>;
49
+ uiStyle: {
50
+ type: StringConstructor;
51
+ };
52
+ }>> & {
53
+ "onButton-click"?: ((...args: any[]) => any) | undefined;
54
+ }>>;
55
+ emit: (event: "button-click", ...args: any[]) => void;
49
56
  state: import("../../shared/types").AnyObject;
50
57
  ChatMain: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
51
58
  [x: string]: unknown;
@@ -55,10 +62,17 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
55
62
  readonly [x: number]: string;
56
63
  } | {}>;
57
64
  ChatFooter: import("vue").DefineComponent<{}, {
65
+ audioSdk: import("..").CAudioSDK;
66
+ emit: (event: string, ...args: any[]) => void;
58
67
  shortcutList: any;
59
68
  state: any;
69
+ isSmall: any;
60
70
  content: import("vue").Ref<string>;
61
71
  btnDisabled: import("vue").ComputedRef<boolean>;
72
+ recorderStart: () => Promise<void>;
73
+ recorderStop: () => Promise<void>;
74
+ getShortcutName: (item: string | import("../../shared/types").AnyObject) => any;
75
+ handleShortcut: (item: string | import("../../shared/types").AnyObject) => void;
62
76
  handleKeyDown: (event: KeyboardEvent) => void;
63
77
  isWrap: (event: KeyboardEvent) => boolean;
64
78
  handleSend: () => void;
@@ -67,16 +81,15 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
67
81
  NIcon: any;
68
82
  PaperPlane: 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<{}>>, {}>;
69
83
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
70
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
84
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "button-click"[], "button-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
71
85
  userAvatar: {
72
86
  type: StringConstructor;
73
- required: true;
74
87
  };
75
88
  defaultShortcutList: {
76
89
  type: import("vue").PropType<string[]>;
77
90
  };
78
91
  shortcutList: {
79
- type: import("vue").PropType<string[]>;
92
+ type: import("vue").PropType<(string | import("../../shared/types").AnyObject)[]>;
80
93
  };
81
94
  queryData: {
82
95
  type: import("vue").PropType<import("./src/types").QueryData>;
@@ -89,7 +102,12 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
89
102
  hideInput: {
90
103
  type: BooleanConstructor;
91
104
  };
92
- }>>, {
105
+ uiStyle: {
106
+ type: StringConstructor;
107
+ };
108
+ }>> & {
109
+ "onButton-click"?: ((...args: any[]) => any) | undefined;
110
+ }, {
93
111
  hideInput: boolean;
94
112
  }>>;
95
113
  export default AiChat;
@@ -4,13 +4,12 @@ import { AnyObject } from '../../../shared/types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  userAvatar: {
6
6
  type: StringConstructor;
7
- required: true;
8
7
  };
9
8
  defaultShortcutList: {
10
9
  type: PropType<string[]>;
11
10
  };
12
11
  shortcutList: {
13
- type: PropType<string[]>;
12
+ type: PropType<(string | AnyObject)[]>;
14
13
  };
15
14
  queryData: {
16
15
  type: PropType<QueryData>;
@@ -23,18 +22,20 @@ declare const _default: import("vue").DefineComponent<{
23
22
  hideInput: {
24
23
  type: BooleanConstructor;
25
24
  };
25
+ uiStyle: {
26
+ type: StringConstructor;
27
+ };
26
28
  }, {
27
29
  cssVars: import("vue").ComputedRef<AnyObject>;
28
30
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
29
31
  userAvatar: {
30
32
  type: StringConstructor;
31
- required: true;
32
33
  };
33
34
  defaultShortcutList: {
34
35
  type: PropType<string[]>;
35
36
  };
36
37
  shortcutList: {
37
- type: PropType<string[]>;
38
+ type: PropType<(string | AnyObject)[]>;
38
39
  };
39
40
  queryData: {
40
41
  type: PropType<QueryData>;
@@ -47,7 +48,13 @@ declare const _default: import("vue").DefineComponent<{
47
48
  hideInput: {
48
49
  type: BooleanConstructor;
49
50
  };
50
- }>> & {}>>;
51
+ uiStyle: {
52
+ type: StringConstructor;
53
+ };
54
+ }>> & {
55
+ "onButton-click"?: ((...args: any[]) => any) | undefined;
56
+ }>>;
57
+ emit: (event: "button-click", ...args: any[]) => void;
51
58
  state: AnyObject;
52
59
  ChatMain: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
53
60
  [x: string]: unknown;
@@ -57,10 +64,17 @@ declare const _default: import("vue").DefineComponent<{
57
64
  readonly [x: number]: string;
58
65
  } | {}>;
59
66
  ChatFooter: import("vue").DefineComponent<{}, {
67
+ audioSdk: import("../..").CAudioSDK;
68
+ emit: (event: string, ...args: any[]) => void;
60
69
  shortcutList: any;
61
70
  state: any;
71
+ isSmall: any;
62
72
  content: import("vue").Ref<string>;
63
73
  btnDisabled: import("vue").ComputedRef<boolean>;
74
+ recorderStart: () => Promise<void>;
75
+ recorderStop: () => Promise<void>;
76
+ getShortcutName: (item: string | AnyObject) => any;
77
+ handleShortcut: (item: string | AnyObject) => void;
64
78
  handleKeyDown: (event: KeyboardEvent) => void;
65
79
  isWrap: (event: KeyboardEvent) => boolean;
66
80
  handleSend: () => void;
@@ -69,16 +83,15 @@ declare const _default: import("vue").DefineComponent<{
69
83
  NIcon: any;
70
84
  PaperPlane: 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<{}>>, {}>;
71
85
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
72
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
86
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "button-click"[], "button-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
73
87
  userAvatar: {
74
88
  type: StringConstructor;
75
- required: true;
76
89
  };
77
90
  defaultShortcutList: {
78
91
  type: PropType<string[]>;
79
92
  };
80
93
  shortcutList: {
81
- type: PropType<string[]>;
94
+ type: PropType<(string | AnyObject)[]>;
82
95
  };
83
96
  queryData: {
84
97
  type: PropType<QueryData>;
@@ -91,7 +104,12 @@ declare const _default: import("vue").DefineComponent<{
91
104
  hideInput: {
92
105
  type: BooleanConstructor;
93
106
  };
94
- }>>, {
107
+ uiStyle: {
108
+ type: StringConstructor;
109
+ };
110
+ }>> & {
111
+ "onButton-click"?: ((...args: any[]) => any) | undefined;
112
+ }, {
95
113
  hideInput: boolean;
96
114
  }>;
97
115
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as t,provide as o,toRefs as r,openBlock as s,createElementBlock as i,normalizeStyle as n,unref as a,createVNode as p,createBlock as u,createCommentVNode as m}from"vue";import d from"./components/ChatMain.js";import h from"./components/ChatFooter.vue.js";import{useTheme as c}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"naive-ui";import"../../../shared/hooks/useScrollLoading.js";import{InjectionAIChat as y}from"./types/index.js";var v=e({__name:"Index",props:{userAvatar:{type:String,required:!0},defaultShortcutList:{type:Array},shortcutList:{type:Array},queryData:{type:Function,reuired:!0},queryRecord:{type:Function,reuired:!0},hideInput:{type:Boolean}},setup(e){const v=e,l=c(),f=t({beingSent:!1,sendContent:""});return o(y,{...r(v),state:f}),(t,o)=>(s(),i("div",{class:"ai-chat",style:n(a(l))},[p(a(d)),e.hideInput?m("v-if",!0):(s(),u(h,{key:0}))],4))}});export{v as default};
1
+ import{defineComponent as e,reactive as t,provide as o,toRefs as r,computed as s,openBlock as i,createElementBlock as a,normalizeClass as n,normalizeStyle as p,unref as u,createVNode as m,createBlock as l,createCommentVNode as d}from"vue";import h from"./components/ChatMain.js";import c from"./components/ChatFooter.vue.js";import{useTheme as y}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"naive-ui";import"../../../shared/hooks/useScrollLoading.js";import{InjectionAIChat as v,InjectionAIChatEmits as S}from"./types/index.js";var f=e({__name:"Index",props:{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}},emits:["button-click"],setup(e,{emit:f}){const j=e,k=y(),g=t({beingSent:!1,sendContent:""});return o(v,{...r(j),state:g,isSmall:s((()=>"small"===j.uiStyle))}),o(S,f),(t,o)=>(i(),a("div",{class:n(["ai-chat","small"===e.uiStyle?"ai-chat--small":""]),style:p(u(k))},[m(u(h)),e.hideInput?d("v-if",!0):(i(),l(c,{key:0}))],6))}});export{f as default};
@@ -1,8 +1,17 @@
1
+ import { CAudioSDK } from '../../../../components/audio-sdk';
2
+ import { AnyObject } from '../../../../shared/types';
1
3
  declare const _default: import("vue").DefineComponent<{}, {
4
+ audioSdk: CAudioSDK;
5
+ emit: (event: string, ...args: any[]) => void;
2
6
  shortcutList: any;
3
7
  state: any;
8
+ isSmall: any;
4
9
  content: import("vue").Ref<string>;
5
10
  btnDisabled: import("vue").ComputedRef<boolean>;
11
+ recorderStart: () => Promise<void>;
12
+ recorderStop: () => Promise<void>;
13
+ getShortcutName: (item: string | AnyObject) => any;
14
+ handleShortcut: (item: string | AnyObject) => void;
6
15
  handleKeyDown: (event: KeyboardEvent) => void;
7
16
  isWrap: (event: KeyboardEvent) => boolean;
8
17
  handleSend: () => void;
@@ -1 +1 @@
1
- import{defineComponent as e,inject as n,ref as t,computed as l,watch as a,openBlock as i,createElementBlock as o,normalizeClass as s,unref as u,Fragment as r,renderList as d,createBlock as c,withCtx as v,createTextVNode as f,toDisplayString as p,createCommentVNode as b,createElementVNode as m,createVNode as y}from"vue";import{NButton as g,NInput as h,NIcon as x}from"naive-ui";import{PaperPlane as k}from"@vicons/ionicons5";import{InjectionAIChat as C}from"../types/index.js";const K={key:0,class:"menu-box fillet-8"},S={class:"input-wrapper fillet-10"},w={class:"input-box"},z={class:"btn-box"},_=["disabled"];var E=e({__name:"ChatFooter",setup(e){const{shortcutList:E,state:R}=n(C),j=t(""),D=l((()=>!j.value.replace(/(&nbsp;|\s|<br>)+/g,"")));function F(e){["Enter"].includes(e.key)&&(function(e){return e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}(e)||(e.preventDefault(),L()))}function L(){D.value||(R.beingSent=!0,R.sendContent=j.value,j.value="")}return a((()=>R.sendContent),(e=>{e&&!R.beingSent&&(j.value=e)})),(e,n)=>(i(),o("section",{class:s(["chat-footer",u(R).beingSent?"disabled":""])},[u(E)&&u(E).length>0?(i(),o("div",K,[(i(!0),o(r,null,d(u(E),(e=>(i(),c(u(g),{secondary:"",size:"small",key:e,onClick:n=>j.value=e},{default:v((()=>[f(p(e),1)])),_:2},1032,["onClick"])))),128))])):b("v-if",!0),m("div",S,[m("div",w,[y(u(h),{type:"textarea",placeholder:"请向我提问,Shift+Enter换行",disabled:u(R).beingSent,autosize:{minRows:2,maxRows:7},value:j.value,"onUpdate:value":n[0]||(n[0]=e=>j.value=e),onKeydown:F},null,8,["disabled","value"])]),m("div",z,[m("span",{class:s(["btn-send","gradient","fillet-8",u(D)?"disabled":""]),disabled:u(D),onClick:L},[y(u(x),{color:"#fff",size:"22",component:u(k)},null,8,["component"])],10,_)])])],2))}});export{E as default};
1
+ import{defineComponent as e,inject as n,ref as t,computed as o,watch as l,onBeforeUnmount as i,openBlock as a,createElementBlock as s,normalizeClass as r,unref as d,Fragment as c,renderList as u,createBlock as f,withCtx as v,createTextVNode as p,toDisplayString as k,createCommentVNode as m,createElementVNode as b,createSlots as h,createVNode as w,getCurrentInstance as y}from"vue";import{NButton as g,NInput as x,NIcon as S}from"naive-ui";import{PaperPlane as C}from"@vicons/ionicons5";import{InjectionAIChatEmits as K,InjectionAIChat as _}from"../types/index.js";import j from"../../../audio-sdk/src/audioSDK.js";import{isString as z}from"lodash-es";const M={key:0,class:"menu-box fillet-8"},E={class:"input-wrapper fillet-10"},R=b("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},[b("path",{fill:"none",stroke:"black","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M192 448h128"}),b("path",{d:"M384 208v32c0 70.4-57.6 128-128 128h0c-70.4 0-128-57.6-128-128v-32",fill:"none",stroke:"black","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),b("path",{fill:"none",stroke:"black","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 368v80"}),b("path",{d:"M256 64a63.68 63.68 0 0 0-64 64v111c0 35.2 29 65 64 65s64-29 64-65V128c0-36-28-64-64-64z",fill:"none",stroke:"#4972EF","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"})],-1),D={class:"btn-box"},F=["disabled"];var N=e({__name:"ChatFooter",setup(e){const N=j.create(),U=n(K),{shortcutList:B,state:J,isSmall:L}=n(_),O=t(""),P=o((()=>!O.value.replace(/(&nbsp;|\s|<br>)+/g,"")));async function T(){await N.recorderStart(y(),{onStop:V,allowPunctuationMark:!1,timed:5,realTimeRecognition:!0})}async function V(){try{const e=await N.recorderStop();if("success"!==e.result)return;const{text:n}=e.data;O.value=n}catch(e){console.log(e)}}function q(e){var n,t;if(z(e))return e;return JSON.parse((null==(t=null==(n=null==e?void 0:e.contents)?void 0:n[0])?void 0:t.content)||"{}").instructionName}function A(e){["Enter"].includes(e.key)&&(function(e){return e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}(e)||(e.preventDefault(),G()))}function G(){P.value||(J.beingSent=!0,J.sendContent=O.value,O.value="")}return l((()=>J.sendContent),(e=>{e&&!J.beingSent&&(O.value=e)})),i((()=>{N.destroy()})),(e,n)=>(a(),s("section",{class:r(["chat-footer",d(J).beingSent?"disabled":""])},[d(B)&&d(B).length>0?(a(),s("div",M,[(a(!0),s(c,null,u(d(B),(e=>(a(),f(d(g),{secondary:"",size:"small",round:!!d(L),key:q(e),onClick:()=>function(e){var n;if(z(e))O.value=e;else{const t=null==(n=null==e?void 0:e.contents)?void 0:n[0];U("button-click",t,e)}}(e)},{default:v((()=>[p(k(q(e)),1)])),_:2},1032,["round","onClick"])))),128))])):m("v-if",!0),b("div",E,[d(L)?(a(),f(d(x),{key:0,style:{"--n-height":"48px"},round:"",placeholder:"",disabled:d(J).beingSent,value:O.value,"onUpdate:value":n[0]||(n[0]=e=>O.value=e),onKeydown:A},h({_:2},[d(L)?{name:"suffix",fn:v((()=>[w(d(g),{text:"",disabled:d(J).beingSent,onClick:T},{icon:v((()=>[w(d(S),{size:"30"},{default:v((()=>[R])),_:1})])),_:1},8,["disabled"]),w(d(g),{circle:"",class:"gradient",style:{"margin-left":"10px"},disabled:d(P),onClick:G},{icon:v((()=>[w(d(S),{color:"#fff",size:"20",component:d(C)},null,8,["component"])])),_:1},8,["disabled"])])),key:"0"}:void 0]),1032,["disabled","value"])):(a(),s(c,{key:1},[w(d(x),{type:"textarea",placeholder:"请向我提问,Shift+Enter换行",disabled:d(J).beingSent,autosize:{minRows:2,maxRows:7},value:O.value,"onUpdate:value":n[1]||(n[1]=e=>O.value=e),onKeydown:A},null,8,["disabled","value"]),b("div",D,[b("span",{class:r(["btn-send","gradient","fillet-8",d(P)?"disabled":""]),disabled:d(P),onClick:G},[w(d(S),{color:"#fff",size:"22",component:d(C)},null,8,["component"])],10,F)])],64))])],2))}});export{N as default};
@@ -1 +1 @@
1
- import{defineComponent as e,inject as t,ref as n,watch as l,createVNode as s,createTextVNode as a,mergeProps as o,isVNode as r}from"vue";import{NAvatar as i,NSpin as u,NButton as c,NSpace as d}from"naive-ui";import{InjectionAIChat as p}from"../types/index.js";import m from"../../../../shared/assets/img/ai__avatar.png.js";import{isArray as v,isFunction as f}from"lodash-es";import"../../../../shared/utils/index.js";import"@vueuse/core";import"date-fns";import"@vue/shared";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{useScrollLoading as g}from"../../../../shared/hooks/useScrollLoading.js";function h(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!r(e)}var b=e({name:"ChatMain",inheritAttrs:!1,props:{},emits:[],setup(e,{attrs:r,slots:b,emit:y}){const{userAvatar:k,queryData:C,state:S,queryRecord:j,defaultShortcutList:x,hideInput:z=!1}=t(p),w=n(null),E=n([]),M=n(!1),T={page:0,hasMore:!0};async function A(e=!1){if(!T.hasMore)return;T.page++,1==T.page&&(E.value=[]);const{records:t,rows:n}=await j.value({page:T.page});v(n)&&E.value.length<=+t&&(E.value=T.page>1?[...E.value,...n]:n,E.value.length>=+t&&(e&&(M.value=!0),T.hasMore=!1,console.log("没有更多消息了")))}function _(e,t){const{contents:n=[],buttonType:l=""}=e,r=n[t].content.replace(/\\n|\n|\r\n/g,"<br>").split("<br>").filter((e=>!!e)).map(((e,t,n)=>[e,t===n.length-1?null:s("br",null,null)])),i=l&&0===t?[s("br",null,null),s(c,o({style:"margin-top: 5px",secondary:!0,class:"gradient",disabled:e.disabled},e.link?{tag:"a",href:e.link,target:"_blank"}:{},{onClick:()=>function(e){E.value.forEach((e=>e.buttonType&&(e.disabled=!0))),e.link||(S.beingSent=!0,S.sendContent="确定")}(e)}),{default:()=>[a("确定")]})]:null;return[r,i]}function q({role:e=""}){return"user"===e}function H(){let e;return s("div",{class:"message-item"},[s(i,{round:!0,size:40,src:m},null),s("div",{class:"content fillet-10 default"},[s("h2",null,[a("Hi,我是你的AI助理")]),s("p",null,[a("我汇集了医生站/护士站各项智能服务,可以向我进行提问哦 ~ "),s("br",null,null),a("你的反馈助我成长,期待我们一起探索未来!下次可以在首页和应用页找到我~")]),v(x.value)&&x.value.length>0?[s("p",{style:"margin: 5px 0 5px"},[a("你可以试着问我:")]),s(d,{"wrap-item":!1},h(e=x.value.map((e=>s(c,{size:"large",secondary:!0,onClick:()=>S.sendContent=e,disabled:S.beingSent},h(e)?e:{default:()=>[e]}))))?e:{default:()=>[e]})]:null])])}return g(w,(()=>{A()}),z.value?"bottom":"top"),A(!0),l((()=>S.beingSent),(async e=>{if(e){E.value.unshift({contents:[{role:"user",content:S.sendContent}]}),E.value.forEach((e=>e.buttonType&&(e.disabled=!0)));const e=await C.value({content:S.sendContent,contentType:"text"});v(null==e?void 0:e.contents)&&E.value.unshift(e),S.beingSent=!1,S.sendContent=""}})),()=>s("section",{class:"chat-main",ref:w,style:{"flex-direction":z.value?"column":"column-reverse"}},[[S.beingSent?s("div",{class:"message-item"},[s(i,{round:!0,size:40,src:m},null),s("div",{class:"content fillet-10 loading"},[s(u,{size:22,stroke:"#4170EE"},null),s("span",null,[a("正在加载中,请稍等...")])])]):null,E.value.map((e=>e.contents.map(((t,n)=>s("div",{class:"message-item"},[s(i,{round:!0,size:40,src:q(t)?k.value:m},null),s("div",{class:["content",q(t)?"fillet-8 mine":"fillet-10"]},[f(t.render)?t.render():_(e,n)])]))))),M.value?H():null]])}});export{b as default};
1
+ import{defineComponent as e,inject as n,ref as t,computed as l,watch as s,createVNode as a,createTextVNode as o,mergeProps as i,isVNode as r}from"vue";import{NAvatar as u,NSpin as c,NButton as d,NSpace as p,NIcon as m}from"naive-ui";import{InjectionAIChatEmits as v,InjectionAIChat as f}from"../types/index.js";import g from"../../../../shared/assets/img/ai__avatar.png.js";import h from"../../../../shared/assets/img/logo.png.js";import{isArray as b,isFunction as y}from"lodash-es";import"../../../../shared/utils/index.js";import"@vueuse/core";import"date-fns";import"@vue/shared";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import{ChevronForward as k}from"@vicons/ionicons5";import{useScrollLoading as x}from"../../../../shared/hooks/useScrollLoading.js";function S(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!r(e)}var j=e({name:"ChatMain",inheritAttrs:!1,props:{},emits:[],setup(e,{attrs:r,slots:j,emit:C}){const E=n(v),{userAvatar:_,queryData:z,state:T,queryRecord:w,defaultShortcutList:I,hideInput:L=!1,isSmall:M}=n(f),N=t(null),O=t([]),A=t(!1),q=l((()=>M.value?h:g)),H={page:0,hasMore:!0};async function J(e=!1){if(!H.hasMore)return;H.page++,1==H.page&&(O.value=[]);const{records:n,rows:t}=await w.value({page:H.page});b(t)&&O.value.length<=+n&&(O.value=H.page>1?[...O.value,...t]:t,D(),O.value.length>=+n&&(e&&(A.value=!0),H.hasMore=!1,console.log("没有更多消息了")))}function D(){O.value.forEach((e=>{e.buttonType&&(e.disabled=!0),e.contents.forEach((e=>e.disabled=!0))}))}function R(e){const{item:n,msgItem:t,isLink:l}=e;if(t)return E("button-click",t,n),void O.value.forEach((e=>e.contents.forEach((e=>e.disabled=!0))));O.value.forEach((e=>e.buttonType&&(e.disabled=!0))),n.link||(T.beingSent=!0,T.sendContent="确定")}function B(e,n){const{contentType:t,content:l=""}=n;if("json"!==t||!function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(l))return null;const s=JSON.parse(l),i=["journaling","dashboard"].includes(s.buttonType);return a("div",{class:"card"},[[a("p",null,[s.title]),i?s.fields.map((t=>a(d,{class:"link-btn",style:"--n-height: 36px",secondary:!0,"icon-placement":"right",onClick:()=>R({item:e,msgItem:n,isLink:i})},{default:()=>t.name,icon:()=>a(m,{component:k},null)}))):[a("div",{class:"card-body"},[a("p",{class:"card-body__head"},[s.instructionName]),a("div",{class:"card-body__content"},[s.fields.map((e=>a("div",null,[a("span",{class:"label"},[e.name]),o(":"),a("span",null,[e.value])])))])]),a(d,{style:"margin-top: 10px;width: 100%;--n-height: 36px;font-size: 15px",secondary:!0,class:"gradient",disabled:n.disabled,onClick:()=>R({item:e,msgItem:n})},{default:()=>[s.buttonName]})]]])}function F(e,n){const{contents:t=[],buttonType:l=""}=e,s=B(e,t[n]);if(s)return s;return[t[n].content.replace(/\\n|\n|\r\n/g,"<br>").split("<br>").filter((e=>!!e)).map(((e,n,t)=>[e,n===t.length-1?null:a("br",null,null)])),l&&0===n?[a("br",null,null),a(d,i({style:"margin-top: 5px",secondary:!0,class:"gradient",disabled:e.disabled},e.link?{tag:"a",href:e.link,target:"_blank"}:{},{onClick:()=>R({item:e})}),{default:()=>[o("确定")]})]:null]}function G({role:e=""}){return"user"===e}function K(){let e;return a("div",{class:"message-item"},[a(u,{round:!0,size:M.value?64:40,src:q.value},null),a("div",{class:"content-box"},[a("div",{class:"content fillet-10 default"},[a("h2",null,[o("Hi,我是你的AI助理")]),a("p",null,[o("我汇集了医生站/护士站各项智能服务,可以向我进行提问哦 ~ "),a("br",null,null),o("你的反馈助我成长,期待我们一起探索未来!下次可以在首页和应用页找到我~")]),b(I.value)&&I.value.length>0?[a("p",{style:"margin: 5px 0 5px"},[o("你可以试着问我:")]),a(p,{"wrap-item":!1},S(e=I.value.map((e=>a(d,{size:"large",secondary:!0,onClick:()=>T.sendContent=e,disabled:T.beingSent},S(e)?e:{default:()=>[e]}))))?e:{default:()=>[e]})]:null])])])}return x(N,(()=>{J()}),L.value?"bottom":"top"),J(!0),s((()=>T.beingSent),(async e=>{if(e){O.value.unshift({contents:[{role:"user",content:T.sendContent}]}),D();const e=await z.value({content:T.sendContent,contentType:"text"});b(null==e?void 0:e.contents)&&O.value.unshift(e),T.beingSent=!1,T.sendContent=""}})),()=>a("section",{class:"chat-main",ref:N,style:{"flex-direction":L.value?"column":"column-reverse"}},[[T.beingSent?a("div",{class:"message-item"},[[M.value?null:a(u,{round:!0,size:40,src:q.value},null),a("div",{class:"content-box"},[a("div",{class:"content loading"},[a(c,{size:22,stroke:"#4170EE"},null),a("span",null,[o("正在加载中,请稍等...")])])])]]):null,O.value.map((e=>e.contents.map(((n,t)=>a("div",{class:"message-item"},[[M.value?null:a(u,{round:!0,size:40,src:G(n)?_.value:q.value},null),a("div",{class:["content-box",G(n)?"mine":""]},[a("div",{class:"content"},[y(n.render)?n.render():F(e,t)])])]]))))),A.value?K():null]])}});export{j as default};
@@ -1 +1 @@
1
- .ai-chat{background:linear-gradient(135deg,#c9dbfb,#c9dbfb 20%,rgba(237,237,253,.5) 70%,rgba(151,97,251,.2));display:flex;flex-flow:column nowrap;height:100%;padding:45px 0 60px;width:100%}.ai-chat,.ai-chat *{box-sizing:border-box}.ai-chat .fillet-10{border-radius:10px}.ai-chat .fillet-8{border-radius:8px}.ai-chat .n-avatar{background-color:var(--c-primary-color)}.ai-chat .gradient{background:linear-gradient(178deg,#8f66f7,#4170ee);color:#fff}.ai-chat .gradient:active,.ai-chat .gradient:focus,.ai-chat .gradient:hover{color:#fff}.ai-chat .chat-main{display:flex;flex:1;flex-flow:column-reverse nowrap;overflow-y:scroll;padding:0 130px 0 82px;row-gap:16px}.ai-chat .chat-main::-webkit-scrollbar{width:5px}.ai-chat .chat-main::-webkit-scrollbar-thumb{background:rgba(0,0,0,.25);border-radius:5px}.ai-chat .chat-main .message-item{column-gap:8px;display:flex;flex-flow:row nowrap}.ai-chat .chat-main .message-item:first-child{margin-bottom:auto}.ai-chat .chat-main .message-item .n-avatar{flex-shrink:0}.ai-chat .chat-main .message-item .content{background:#fff;padding:10px 12px}.ai-chat .chat-main .message-item .content.default h2{font-size:22px;font-weight:500;margin:10px 0}.ai-chat .chat-main .message-item .content.mine{background:hsla(0,0%,100%,.48)}.ai-chat .chat-main .message-item .content.loading{align-items:center;color:#999;column-gap:10px;display:flex}.ai-chat .chat-footer{padding:30px 130px 0}.ai-chat .chat-footer.disabled{cursor:not-allowed}.ai-chat .chat-footer .menu-box{background:#fff;column-gap:8px;display:flex;margin-bottom:8px;padding:10px}.ai-chat .chat-footer .input-wrapper{background:#fff;box-shadow:0 3px 4px 0 rgba(0,0,0,.1);padding:15px 20px}.ai-chat .chat-footer .input-wrapper .n-input__border,.ai-chat .chat-footer .input-wrapper .n-input__state-border{border:none}.ai-chat .chat-footer .input-wrapper .n-input:not(.n-input--disabled).n-input--focus .n-input__state-border{box-shadow:unset}.ai-chat .chat-footer .input-wrapper .btn-box{display:flex;justify-content:flex-end}.ai-chat .chat-footer .input-wrapper .btn-box .btn-send{align-items:center;cursor:pointer;display:flex;height:46px;justify-content:center;width:58px}.ai-chat .chat-footer .input-wrapper .btn-box .btn-send.disabled{cursor:not-allowed;opacity:.5}
1
+ .c-recording-wrapper{align-items:center;background-color:#fff;border-radius:10px;bottom:100px;display:flex;height:350px;justify-content:center;left:calc(50% - 250px);position:fixed;width:500px}@keyframes toScale{0%{transform:translateX(-50%) translateY(-50%) scale(1)}to{transform:translateX(-50%) translateY(-50%) scale(1.5)}}.c-recording-wrapper .content{font-size:18px;position:absolute;text-align:center;top:20px}.c-recording-wrapper .animation{animation:toScale 1s infinite;background-color:#5585f54d;left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%) scale(1);z-index:-1}.c-recording-wrapper .animation,.c-recording-wrapper .icon-box{align-items:center;border-radius:50%;display:flex;height:90px;justify-content:center;width:90px}.c-recording-wrapper .icon-box{background-color:#5585f5;cursor:pointer}.c-recording-wrapper .tip{bottom:20px;position:absolute}.ai-chat{background:linear-gradient(135deg,#c9dbfb,#c9dbfb 20%,rgba(237,237,253,.5) 70%,rgba(151,97,251,.2));display:flex;flex-flow:column nowrap;height:100%;padding:45px 0 60px;width:100%}.ai-chat,.ai-chat *{box-sizing:border-box}.ai-chat .fillet-10{border-radius:10px}.ai-chat .fillet-8{border-radius:8px}.ai-chat .n-avatar{background-color:var(--c-primary-color)}.ai-chat .gradient{background:linear-gradient(178deg,#8f66f7,#4170ee);color:#fff}.ai-chat .gradient:active,.ai-chat .gradient:focus,.ai-chat .gradient:hover{color:#fff}.ai-chat .chat-main{display:flex;flex:1;flex-flow:column-reverse nowrap;overflow-y:auto;padding:0 130px 0 82px;row-gap:16px}.ai-chat .chat-main::-webkit-scrollbar{width:5px}.ai-chat .chat-main::-webkit-scrollbar-thumb{background:rgba(0,0,0,.25);border-radius:5px}.ai-chat .chat-main .message-item{column-gap:8px;display:flex;flex-flow:row nowrap}.ai-chat .chat-main .message-item:first-child{margin-bottom:auto}.ai-chat .chat-main .message-item .n-avatar{flex-shrink:0}.ai-chat .chat-main .message-item .content-box .content{background:#fff;border-radius:10px;padding:10px 12px}.ai-chat .chat-main .message-item .content-box .content .card{width:236px}.ai-chat .chat-main .message-item .content-box .content .card>p{font-size:14px;line-height:19px}.ai-chat .chat-main .message-item .content-box .content .card .link-btn{display:flex;flex-flow:row wrap;font-size:14px;justify-content:space-between;margin-top:10px;width:100%}.ai-chat .chat-main .message-item .content-box .content .card .link-btn .n-button__content{display:unset;flex:1;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ai-chat .chat-main .message-item .content-box .content .card .card-body{border:1px solid #d5d5d5;border-radius:8px;margin-top:5px;overflow:hidden}.ai-chat .chat-main .message-item .content-box .content .card .card-body__head{background:rgba(65,112,238,.14);line-height:36px;padding:0 15px}.ai-chat .chat-main .message-item .content-box .content .card .card-body__content{padding:10px 6px}.ai-chat .chat-main .message-item .content-box .content .card .card-body__content>div{display:flex;font-size:12px}.ai-chat .chat-main .message-item .content-box .content .card .card-body__content>div .label{flex:0 0 90px;text-align:right}.ai-chat .chat-main .message-item .content-box .content.default h2{font-size:22px;font-weight:500;margin:10px 0}.ai-chat .chat-main .message-item .content-box .content.loading{align-items:center;color:#999;column-gap:10px;display:flex}.ai-chat .chat-main .message-item .content-box.mine .content{background:hsla(0,0%,100%,.48);border-radius:8px}.ai-chat .chat-footer{padding:30px 130px 0}.ai-chat .chat-footer.disabled{cursor:not-allowed}.ai-chat .chat-footer .menu-box{background:#fff;column-gap:8px;display:flex;margin-bottom:8px;overflow-x:auto;padding:10px}.ai-chat .chat-footer .menu-box::-webkit-scrollbar{width:5px}.ai-chat .chat-footer .menu-box::-webkit-scrollbar-thumb{background:rgba(0,0,0,.25);border-radius:5px}.ai-chat .chat-footer .menu-box::-webkit-scrollbar{height:5px}.ai-chat .chat-footer .input-wrapper{background:#fff;box-shadow:0 3px 4px 0 rgba(0,0,0,.1);padding:15px 20px}.ai-chat .chat-footer .input-wrapper .n-input__border,.ai-chat .chat-footer .input-wrapper .n-input__state-border{border:none}.ai-chat .chat-footer .input-wrapper .n-input:not(.n-input--disabled).n-input--focus .n-input__state-border{box-shadow:unset}.ai-chat .chat-footer .input-wrapper .btn-box{display:flex;justify-content:flex-end}.ai-chat .chat-footer .input-wrapper .btn-box .btn-send{align-items:center;cursor:pointer;display:flex;height:46px;justify-content:center;width:58px}.ai-chat .chat-footer .input-wrapper .btn-box .btn-send.disabled{cursor:not-allowed;opacity:.5}.ai-chat--small{padding:20px 20px 44px}.ai-chat--small .chat-main{padding:0 0 10px}.ai-chat--small .chat-main .message-item{display:unset}.ai-chat--small .chat-main .message-item .n-avatar{background:transparent}.ai-chat--small .chat-main .message-item .content-box{display:flex;flex-flow:row nowrap}.ai-chat--small .chat-main .message-item .content-box .content{border-radius:3px 14px 14px;max-width:calc(100% - 55px)}.ai-chat--small .chat-main .message-item .content-box .content.default{border-radius:4px 16px 16px}.ai-chat--small .chat-main .message-item .content-box.mine{flex-flow:row-reverse nowrap}.ai-chat--small .chat-main .message-item .content-box.mine .content{background:#5874dc;border-radius:14px 0 14px 14px;color:#fff}.ai-chat--small .chat-footer{padding:10px 0 0}.ai-chat--small .chat-footer .menu-box{background:none;padding:0}.ai-chat--small .chat-footer .menu-box .n-button{background:#fff}.ai-chat--small .chat-footer .input-wrapper{border-radius:24px;box-shadow:0 0 6px 0 hsla(240,9%,85%,.74);padding:0}
@@ -1721,6 +1721,56 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1721
1721
  modelValue: string;
1722
1722
  paramCfg: Record<string, any>;
1723
1723
  }>;
1724
+ SelectTreeDynamic: import("vue").DefineComponent<{
1725
+ paramCfg: {
1726
+ type: ObjectConstructor;
1727
+ default: null;
1728
+ };
1729
+ modelValue: {
1730
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1731
+ default: null;
1732
+ };
1733
+ }, {
1734
+ message: import("naive-ui").MessageApi;
1735
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1736
+ paramCfg: {
1737
+ type: ObjectConstructor;
1738
+ default: null;
1739
+ };
1740
+ modelValue: {
1741
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1742
+ default: null;
1743
+ };
1744
+ }>> & {
1745
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1746
+ }>>;
1747
+ getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
1748
+ emit: (event: "update:modelValue", ...args: any[]) => void;
1749
+ options: import("vue").Ref<never[]>;
1750
+ filterApiConfig: import("../../shared/types").AnyObject;
1751
+ classifyFilterList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
1752
+ optionSetting: import("vue").ComputedRef<any>;
1753
+ isMultiple: import("vue").ComputedRef<boolean>;
1754
+ dynamicOptionInfos: import("vue").ComputedRef<any>;
1755
+ valueCp: import("vue").WritableComputedRef<any>;
1756
+ transformOptions: (list: any[], showKeys: string[], valueKey: string) => any[];
1757
+ getOptionsData: (keyword: string) => Promise<void>;
1758
+ NTreeSelect: any;
1759
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1760
+ paramCfg: {
1761
+ type: ObjectConstructor;
1762
+ default: null;
1763
+ };
1764
+ modelValue: {
1765
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1766
+ default: null;
1767
+ };
1768
+ }>> & {
1769
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1770
+ }, {
1771
+ modelValue: string | number | unknown[];
1772
+ paramCfg: Record<string, any>;
1773
+ }>;
1724
1774
  WidgetTypeEnums: {
1725
1775
  INPUT_NUMBER: string;
1726
1776
  INPUT: string;
@@ -1739,6 +1789,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1739
1789
  SELECTLABEL: string;
1740
1790
  SELECTDYNAMIC: string;
1741
1791
  SELECTTREE: string;
1792
+ SELECTTREEDYNAMIC: string;
1742
1793
  };
1743
1794
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1744
1795
  paramCfg: {
@@ -2268,6 +2319,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
2268
2319
  SELECTLABEL: string;
2269
2320
  SELECTDYNAMIC: string;
2270
2321
  SELECTTREE: string;
2322
+ SELECTTREEDYNAMIC: string;
2271
2323
  };
2272
2324
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:modelValues")[], "update:modelValue" | "update:modelValues", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2273
2325
  paramCfg: {
@@ -1185,6 +1185,56 @@ declare const _default: import("vue").DefineComponent<{
1185
1185
  modelValue: string;
1186
1186
  paramCfg: Record<string, any>;
1187
1187
  }>;
1188
+ SelectTreeDynamic: import("vue").DefineComponent<{
1189
+ paramCfg: {
1190
+ type: ObjectConstructor;
1191
+ default: null;
1192
+ };
1193
+ modelValue: {
1194
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1195
+ default: null;
1196
+ };
1197
+ }, {
1198
+ message: import("naive-ui").MessageApi;
1199
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1200
+ paramCfg: {
1201
+ type: ObjectConstructor;
1202
+ default: null;
1203
+ };
1204
+ modelValue: {
1205
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1206
+ default: null;
1207
+ };
1208
+ }>> & {
1209
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1210
+ }>>;
1211
+ getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
1212
+ emit: (event: "update:modelValue", ...args: any[]) => void;
1213
+ options: import("vue").Ref<never[]>;
1214
+ filterApiConfig: import("../../../../../shared/types").AnyObject;
1215
+ classifyFilterList: import("vue").Ref<import("../../../../../shared/types").AnyObject[]>;
1216
+ optionSetting: import("vue").ComputedRef<any>;
1217
+ isMultiple: import("vue").ComputedRef<boolean>;
1218
+ dynamicOptionInfos: import("vue").ComputedRef<any>;
1219
+ valueCp: import("vue").WritableComputedRef<any>;
1220
+ transformOptions: (list: any[], showKeys: string[], valueKey: string) => any[];
1221
+ getOptionsData: (keyword: string) => Promise<void>;
1222
+ NTreeSelect: any;
1223
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1224
+ paramCfg: {
1225
+ type: ObjectConstructor;
1226
+ default: null;
1227
+ };
1228
+ modelValue: {
1229
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1230
+ default: null;
1231
+ };
1232
+ }>> & {
1233
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1234
+ }, {
1235
+ modelValue: string | number | unknown[];
1236
+ paramCfg: Record<string, any>;
1237
+ }>;
1188
1238
  WidgetTypeEnums: {
1189
1239
  INPUT_NUMBER: string;
1190
1240
  INPUT: string;
@@ -1203,6 +1253,7 @@ declare const _default: import("vue").DefineComponent<{
1203
1253
  SELECTLABEL: string;
1204
1254
  SELECTDYNAMIC: string;
1205
1255
  SELECTTREE: string;
1256
+ SELECTTREEDYNAMIC: string;
1206
1257
  };
1207
1258
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1208
1259
  paramCfg: {
@@ -1732,6 +1783,7 @@ declare const _default: import("vue").DefineComponent<{
1732
1783
  SELECTLABEL: string;
1733
1784
  SELECTDYNAMIC: string;
1734
1785
  SELECTTREE: string;
1786
+ SELECTTREEDYNAMIC: string;
1735
1787
  };
1736
1788
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:modelValues")[], "update:modelValue" | "update:modelValues", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1737
1789
  paramCfg: {
@@ -1479,6 +1479,56 @@ declare const _default: import("vue").DefineComponent<{
1479
1479
  modelValue: string;
1480
1480
  paramCfg: Record<string, any>;
1481
1481
  }>;
1482
+ SelectTreeDynamic: import("vue").DefineComponent<{
1483
+ paramCfg: {
1484
+ type: ObjectConstructor;
1485
+ default: null;
1486
+ };
1487
+ modelValue: {
1488
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1489
+ default: null;
1490
+ };
1491
+ }, {
1492
+ message: import("naive-ui").MessageApi;
1493
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1494
+ paramCfg: {
1495
+ type: ObjectConstructor;
1496
+ default: null;
1497
+ };
1498
+ modelValue: {
1499
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1500
+ default: null;
1501
+ };
1502
+ }>> & {
1503
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1504
+ }>>;
1505
+ getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
1506
+ emit: (event: "update:modelValue", ...args: any[]) => void;
1507
+ options: import("vue").Ref<never[]>;
1508
+ filterApiConfig: import("../../../../../shared/types").AnyObject;
1509
+ classifyFilterList: import("vue").Ref<import("../../../../../shared/types").AnyObject[]>;
1510
+ optionSetting: import("vue").ComputedRef<any>;
1511
+ isMultiple: import("vue").ComputedRef<boolean>;
1512
+ dynamicOptionInfos: import("vue").ComputedRef<any>;
1513
+ valueCp: import("vue").WritableComputedRef<any>;
1514
+ transformOptions: (list: any[], showKeys: string[], valueKey: string) => any[];
1515
+ getOptionsData: (keyword: string) => Promise<void>;
1516
+ NTreeSelect: any;
1517
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1518
+ paramCfg: {
1519
+ type: ObjectConstructor;
1520
+ default: null;
1521
+ };
1522
+ modelValue: {
1523
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1524
+ default: null;
1525
+ };
1526
+ }>> & {
1527
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1528
+ }, {
1529
+ modelValue: string | number | unknown[];
1530
+ paramCfg: Record<string, any>;
1531
+ }>;
1482
1532
  WidgetTypeEnums: {
1483
1533
  INPUT_NUMBER: string;
1484
1534
  INPUT: string;
@@ -1497,6 +1547,7 @@ declare const _default: import("vue").DefineComponent<{
1497
1547
  SELECTLABEL: string;
1498
1548
  SELECTDYNAMIC: string;
1499
1549
  SELECTTREE: string;
1550
+ SELECTTREEDYNAMIC: string;
1500
1551
  };
1501
1552
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1502
1553
  paramCfg: {
@@ -2026,6 +2077,7 @@ declare const _default: import("vue").DefineComponent<{
2026
2077
  SELECTLABEL: string;
2027
2078
  SELECTDYNAMIC: string;
2028
2079
  SELECTTREE: string;
2080
+ SELECTTREEDYNAMIC: string;
2029
2081
  };
2030
2082
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:modelValues")[], "update:modelValue" | "update:modelValues", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2031
2083
  paramCfg: {
@@ -1723,6 +1723,56 @@ declare const _default: import("vue").DefineComponent<{
1723
1723
  modelValue: string;
1724
1724
  paramCfg: Record<string, any>;
1725
1725
  }>;
1726
+ SelectTreeDynamic: import("vue").DefineComponent<{
1727
+ paramCfg: {
1728
+ type: ObjectConstructor;
1729
+ default: null;
1730
+ };
1731
+ modelValue: {
1732
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1733
+ default: null;
1734
+ };
1735
+ }, {
1736
+ message: import("naive-ui").MessageApi;
1737
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1738
+ paramCfg: {
1739
+ type: ObjectConstructor;
1740
+ default: null;
1741
+ };
1742
+ modelValue: {
1743
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1744
+ default: null;
1745
+ };
1746
+ }>> & {
1747
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1748
+ }>>;
1749
+ getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
1750
+ emit: (event: "update:modelValue", ...args: any[]) => void;
1751
+ options: import("vue").Ref<never[]>;
1752
+ filterApiConfig: AnyObject;
1753
+ classifyFilterList: import("vue").Ref<AnyObject[]>;
1754
+ optionSetting: import("vue").ComputedRef<any>;
1755
+ isMultiple: import("vue").ComputedRef<boolean>;
1756
+ dynamicOptionInfos: import("vue").ComputedRef<any>;
1757
+ valueCp: import("vue").WritableComputedRef<any>;
1758
+ transformOptions: (list: any[], showKeys: string[], valueKey: string) => any[];
1759
+ getOptionsData: (keyword: string) => Promise<void>;
1760
+ NTreeSelect: any;
1761
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1762
+ paramCfg: {
1763
+ type: ObjectConstructor;
1764
+ default: null;
1765
+ };
1766
+ modelValue: {
1767
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1768
+ default: null;
1769
+ };
1770
+ }>> & {
1771
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1772
+ }, {
1773
+ modelValue: string | number | unknown[];
1774
+ paramCfg: Record<string, any>;
1775
+ }>;
1726
1776
  WidgetTypeEnums: {
1727
1777
  INPUT_NUMBER: string;
1728
1778
  INPUT: string;
@@ -1741,6 +1791,7 @@ declare const _default: import("vue").DefineComponent<{
1741
1791
  SELECTLABEL: string;
1742
1792
  SELECTDYNAMIC: string;
1743
1793
  SELECTTREE: string;
1794
+ SELECTTREEDYNAMIC: string;
1744
1795
  };
1745
1796
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1746
1797
  paramCfg: {
@@ -2270,6 +2321,7 @@ declare const _default: import("vue").DefineComponent<{
2270
2321
  SELECTLABEL: string;
2271
2322
  SELECTDYNAMIC: string;
2272
2323
  SELECTTREE: string;
2324
+ SELECTTREEDYNAMIC: string;
2273
2325
  };
2274
2326
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:modelValues")[], "update:modelValue" | "update:modelValues", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
2275
2327
  paramCfg: {
@@ -1 +1 @@
1
- import{COMPONENT_NAMESPACE as e}from"../../shared/global/variable.js";import{safeComponentRegister as o}from"../../shared/utils/index.js";import s from"./src/FormRenderWrapper.vue.js";export{useAnchor}from"./src/hooks/useAnchor.js";export{BusinessCollector,useBusinessBinding}from"./src/hooks/useBusinessBinding.js";export{ContextCollector,useChangeContext}from"./src/hooks/useChangeContext.js";export{useCommonInjection,useSelectOptionProps}from"./src/hooks/useCommonInjection.js";export{useCommonLog}from"./src/hooks/useCommonLog.js";export{useComplexOptions,useComplexOptionsSpan}from"./src/hooks/useComplexOptions.js";export{useFieldListAdaptor}from"./src/hooks/useFieldListAdaptor.js";export{useFieldNormalize}from"./src/hooks/useFieldNormalize.js";export{useFieldVisitor}from"./src/hooks/useFieldVisitor.js";export{useFormContext}from"./src/hooks/useFormContext.js";export{useFormDomEvent,useFormExposeEvent}from"./src/hooks/useFormEvent.js";export{useFormField}from"./src/hooks/useFormField.js";export{useFormGraph}from"./src/hooks/useFormGraph.js";export{FormItemDepsCollector,useFormItemDeps}from"./src/hooks/useFormItemDeps.js";export{useFormRenderLifeCycle}from"./src/hooks/useFormRenderLifeCycle.js";export{useAutographOptions,useRecommendOptions,useUrlConfigOptions}from"./src/hooks/useFormRenderOptions.js";export{useFormValidator,validateMessageLocale}from"./src/hooks/useFormValidator.js";export{useLowCodeEvent}from"./src/hooks/useLowCodeEvent.js";export{useLowCodeReactions}from"./src/hooks/useLowCodeReactions.js";export{useNuiThemeOverrides}from"./src/hooks/useNuiThemeOverrides.js";export{useOperationalForm}from"./src/hooks/useOperationalForm.js";export{usePresetScope}from"./src/hooks/usePresetScope.js";export{useWordbookSetting,wordbookSettingHandler}from"./src/hooks/useWordbookSetting.js";export{useNewLowCodeReactions}from"./src/hooks/useNewLowCodeReactions.js";export{useSelectedSetting}from"./src/hooks/useSelectedSetting.js";export{FieldListFilter,combineExtendKey,createInputSlot,createSlot,editorUnescape,findItemByValCondition,formRenderLog,getAbsoluteKey,injectOrProvide,isEnter,isNestedFieldType,isNestedType,mergeDeepProperties,parseEnhanceText,parseNumberFromMaybeString,renderDescOption,replace2Any,splitExtendKey,validateMessageParser}from"./src/utils/index.js";export{businessDateParser,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./src/utils/business.js";export{findNextWidget,queryDecoratorByAddress,queryDecoratorByFieldKey,queryInput}from"./src/utils/dom.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createFieldAddressId,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./src/utils/schema.js";const r=s;r.install=function(s){o(s,r,e+"FormRender")};export{r as default};
1
+ import{COMPONENT_NAMESPACE as e}from"../../shared/global/variable.js";import{safeComponentRegister as o}from"../../shared/utils/index.js";import s from"./src/FormRenderWrapper.vue.js";export{useAnchor}from"./src/hooks/useAnchor.js";export{BusinessCollector,useBusinessBinding}from"./src/hooks/useBusinessBinding.js";export{ContextCollector,useChangeContext}from"./src/hooks/useChangeContext.js";export{useCommonInjection,useSelectOptionProps}from"./src/hooks/useCommonInjection.js";export{useCommonLog}from"./src/hooks/useCommonLog.js";export{useComplexOptions,useComplexOptionsSpan}from"./src/hooks/useComplexOptions.js";export{useFieldListAdaptor}from"./src/hooks/useFieldListAdaptor.js";export{useFieldNormalize}from"./src/hooks/useFieldNormalize.js";export{useFieldVisitor}from"./src/hooks/useFieldVisitor.js";export{useFormContext}from"./src/hooks/useFormContext.js";export{useFormDomEvent,useFormExposeEvent}from"./src/hooks/useFormEvent.js";export{useFormField}from"./src/hooks/useFormField.js";export{useFormGraph}from"./src/hooks/useFormGraph.js";export{FormItemDepsCollector,useFormItemDeps}from"./src/hooks/useFormItemDeps.js";export{useFormRenderLifeCycle}from"./src/hooks/useFormRenderLifeCycle.js";export{useAutographOptions,useRecommendOptions,useUrlConfigOptions}from"./src/hooks/useFormRenderOptions.js";export{useFormValidator,validateMessageLocale}from"./src/hooks/useFormValidator.js";export{useLowCodeEvent}from"./src/hooks/useLowCodeEvent.js";export{useLowCodeReactions}from"./src/hooks/useLowCodeReactions.js";export{useNuiThemeOverrides}from"./src/hooks/useNuiThemeOverrides.js";export{useOperationalForm}from"./src/hooks/useOperationalForm.js";export{usePresetScope}from"./src/hooks/usePresetScope.js";export{useWordbookSetting,wordbookSettingHandler}from"./src/hooks/useWordbookSetting.js";export{useNewLowCodeReactions}from"./src/hooks/useNewLowCodeReactions.js";export{useSelectedSetting}from"./src/hooks/useSelectedSetting.js";export{FieldListFilter,combineExtendKey,createInputSlot,createSlot,editorUnescape,findItemByValCondition,formRenderLog,getAbsoluteKey,injectOrProvide,isEnter,isNestedFieldType,isNestedType,mergeDeepProperties,parseEnhanceText,parseNumberFromMaybeString,renderDescOption,replace2Any,splitExtendKey,validateMessageParser}from"./src/utils/index.js";export{businessDateParser,isForeignerID,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./src/utils/business.js";export{findNextWidget,queryDecoratorByAddress,queryDecoratorByFieldKey,queryInput}from"./src/utils/dom.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createFieldAddressId,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./src/utils/schema.js";const r=s;r.install=function(s){o(s,r,e+"FormRender")};export{r as default};