cnhis-design-vue 3.2.13-release.0 → 3.2.14-beta.14

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 (102) hide show
  1. package/es/components/ai-chat/index.d.ts +3 -4
  2. package/es/components/ai-chat/src/Index.vue.d.ts +3 -4
  3. package/es/components/ai-chat/src/Index.vue2.js +1 -1
  4. package/es/components/ai-chat/src/components/ChatBI.vue.d.ts +101 -0
  5. package/es/components/ai-chat/src/components/ChatBI.vue.js +1 -0
  6. package/es/components/ai-chat/src/components/ChatBI.vue2.js +1 -0
  7. package/es/components/ai-chat/src/components/ChatCard.d.ts +13 -0
  8. package/es/components/ai-chat/src/components/ChatCard.js +1 -1
  9. package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +2 -3
  10. package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
  11. package/es/components/ai-chat/src/components/ChatMain.d.ts +1 -1
  12. package/es/components/ai-chat/src/components/ChatMain.js +1 -1
  13. package/es/components/ai-chat/src/components/ChatPatient.vue2.js +1 -1
  14. package/es/components/ai-chat/src/utils/index.d.ts +1 -0
  15. package/es/components/ai-chat/src/utils/index.js +1 -0
  16. package/es/components/ai-chat/style/index.css +1 -1
  17. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  18. package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
  19. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  20. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
  22. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
  23. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
  24. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  25. package/es/components/fabric-chart/src/utils/index.d.ts +1 -0
  26. package/es/components/fabric-chart/src/utils/index.js +1 -1
  27. package/es/components/form-config/index.d.ts +9 -110
  28. package/es/components/form-config/index.js +1 -1
  29. package/es/components/form-config/src/FormConfig.vue.d.ts +9 -110
  30. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  31. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +2 -0
  32. package/es/components/form-config/src/components/FormConfigCreator.vue2.js +1 -1
  33. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +4 -2
  34. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
  35. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +2 -1
  36. package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +1 -1
  37. package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -1
  38. package/es/components/form-config/src/constants/index.d.ts +2 -11
  39. package/es/components/form-config/src/constants/index.js +1 -1
  40. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  41. package/es/components/form-config/src/hooks/useLocale.d.ts +52 -0
  42. package/es/components/form-config/src/hooks/useLocale.js +1 -0
  43. package/es/components/form-config/src/types/index.d.ts +1 -0
  44. package/es/components/form-config/src/utils/index.d.ts +1 -0
  45. package/es/components/form-config/src/utils/index.js +1 -1
  46. package/es/components/form-render/index.js +1 -1
  47. package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
  48. package/es/components/form-render/src/utils/index.d.ts +1 -0
  49. package/es/components/form-render/src/utils/index.js +1 -1
  50. package/es/components/iho-chat/index.d.ts +104 -1
  51. package/es/components/iho-chat/src/Index.vue.d.ts +104 -1
  52. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  53. package/es/components/iho-chat/src/api/index.d.ts +1 -0
  54. package/es/components/iho-chat/src/api/index.js +1 -1
  55. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +13 -0
  56. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  57. package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +13 -0
  58. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +14 -0
  59. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  60. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +48 -1
  61. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
  62. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +13 -0
  63. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  64. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
  65. package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +14 -1
  66. package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
  67. package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
  68. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +13 -0
  69. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
  70. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  71. package/es/components/iho-chat/src/components/SiderList.vue.d.ts +2 -0
  72. package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
  73. package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
  74. package/es/components/iho-chat/src/constants/index.d.ts +11 -2
  75. package/es/components/iho-chat/src/constants/index.js +1 -1
  76. package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -1
  77. package/es/components/iho-chat/src/hooks/useSession.d.ts +2 -0
  78. package/es/components/iho-chat/src/hooks/useSession.js +1 -1
  79. package/es/components/iho-chat/src/utils/index.d.ts +1 -0
  80. package/es/components/iho-chat/src/utils/index.js +1 -1
  81. package/es/components/iho-chat/style/index.css +1 -1
  82. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +20 -0
  83. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  84. package/es/components/iho-table/src/types/index.d.ts +4 -0
  85. package/es/components/iho-table/style/index.css +1 -1
  86. package/es/components/index.css +1 -1
  87. package/es/components/index.js +1 -1
  88. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  89. package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +1 -1
  90. package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +1 -1
  91. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +4 -7
  92. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  93. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +4 -7
  94. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +4 -7
  95. package/es/env.d.ts +25 -25
  96. package/es/shared/package.json.js +1 -1
  97. package/es/shared/types/index.d.ts +3 -0
  98. package/es/shared/utils/index.d.ts +1 -0
  99. package/es/shared/utils/index.js +1 -1
  100. package/package.json +2 -2
  101. package/es/components/form-config/src/components/FormConfigEventSetting.vue.js +0 -1
  102. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +0 -1
@@ -1 +1 @@
1
- import{reactive as e,computed as t,createVNode as r,mergeProps as l,defineComponent as n,inject as o,provide as i,watch as s,onUnmounted as a,onMounted as d,withModifiers as c}from"vue";import{checkInSetupEnv as u}from"../../../../shared/utils/index.js";import{useField as p,useForm as m,RecursionField as f}from"@formily/vue";import{isArray as h,noop as v,isEmpty as y}from"lodash-es";import"../../index.js";import{InjectionFormUUID as g,InjectionBusinessCollector as x}from"../constants/index.js";import{useFieldListAdaptor as b}from"./useFieldListAdaptor.js";import{createObjSchema as F}from"../utils/schema.js";import{renderDescOption as S}from"../utils/index.js";const j=e(new Map);function O(e,t,r=0){j.set(e,j.get(e)||{});j.get(e)[t+""]=r}function M(e,t,r=!0){const l=j.get(e);return l?Object.entries(l).reduce(((e,[l,n])=>r&&l===`${t}`||l.startsWith(`${t}.`)?e+n:e),0):0}function W(e,t){const r=j.get(e);r&&Reflect.deleteProperty(r,t+"")}function $(e){j.delete(e)}const E=n({props:{fieldItems:{type:Array,default:()=>[]},childFieldStrategy:{type:String,default:"checked"},childWidthMode:{type:String,default:"outer"},name:{type:String,required:!0}},setup(e){const n=o(g),u=o(x),h=p(),y=o(n+"_virtualParent",""),S=`${y?y+".":""}${h.value.address}`;function j(e){return`${S}.${e}`}i(n+"_virtualParent",S);const{schemaAdaptor:$}=b(u);function E(t){var r,l,n,o;return Object.assign(t,{"x-decorator-props":{...t["x-decorator-props"],labelPlacement:"left",isOptionChildField:!0},"x-component-props":{...t["x-component-props"],childFieldStrategy:null!=(l=null==(r=t["x-component-props"])?void 0:r.childFieldStrategy)?l:e.childFieldStrategy,childWidthMode:null!=(o=null==(n=t["x-component-props"])?void 0:n.childWidthMode)?o:e.childWidthMode,size:"small"}})}const K=t((()=>{const t=$(e.fieldItems);return Object.values(t).forEach(E),F(t)}));s(K,(()=>{return e=K.value,void Object.values(e.properties||{}).forEach((e=>{var t;O(n,j(e.name),null==(t=null==e?void 0:e["x-decorator-props"])?void 0:t.span)}));var e}),{immediate:!0});const P=m();function _(){return e.fieldItems.map((e=>P.value.query(e.val_key).take()))}a((()=>{var e;_().forEach((e=>{e&&e.setDisplay("none")})),e=K.value,Object.values(e.properties||{}).forEach((e=>{W(n,j(e.name))}))})),d((()=>{_().forEach((e=>{e&&e.setDisplay("visible")}))}));const k=c(v,["stop"]),C=["onClick","onKeydown","onKeyup","onKeypress"].reduce(((e,t)=>(e[t]=k,e)),{});return()=>{return r("section",l({class:"form-render__labelField",style:{"--column":(e=K.value,Object.values(e.properties||{}).reduce(((e,t)=>e+M(n,j(t.name))),0)),flex:"1"}},C),[r(f,{basePath:".",schema:K.value},null)]);var e}}});function K(e,n){u();const o=t((()=>e.options.some((e=>h(e.childrenFields)&&e.childrenFields.length))));function i(e,t,r="value"){return!y(t.childrenFields)&&(h(e)?e.includes(t[r]):e===t[r])}return{renderComplexOption:function({value:e,option:t,valueKey:n="value",labelKey:s="label",childFieldStrategy:a,childWidthMode:d,renderLabel:c=!0,attrs:u}){return[function(){var e;const l=null!=(e=t.title)?e:t[s],n=r("span",{title:l},[t[s]]);return c?t.desc?S(n,t):n:null}(),o.value&&("all"===a||i(e,t,n))?r(E,l({fieldItems:t.childrenFields,name:t[n],childFieldStrategy:a,childWidthMode:d},u),null):null]},valueRef:n,hasComplexOption:o}}function P(){return{getSpan:M,setSpan:O,deleteSpan:W,clearSpan:$}}export{K as useComplexOptions,P as useComplexOptionsSpan};
1
+ import{reactive as e,computed as t,createVNode as r,mergeProps as n,defineComponent as l,inject as o,provide as i,watch as s,onUnmounted as a,onMounted as d,withModifiers as c}from"vue";import{checkInSetupEnv as u}from"../../../../shared/utils/index.js";import{useField as p,useForm as m,RecursionField as f}from"@formily/vue";import{isArray as h,noop as v,isEmpty as y}from"lodash-es";import"../../index.js";import{InjectionFormUUID as g,InjectionBusinessCollector as x}from"../constants/index.js";import{useFieldListAdaptor as b}from"./useFieldListAdaptor.js";import{createObjSchema as F}from"../utils/schema.js";import{renderOptionLabel as S,renderDescOption as j}from"../utils/index.js";const O=e(new Map);function M(e,t,r=0){O.set(e,O.get(e)||{});O.get(e)[t+""]=r}function W(e,t,r=!0){const n=O.get(e);return n?Object.entries(n).reduce(((e,[n,l])=>r&&n===`${t}`||n.startsWith(`${t}.`)?e+l:e),0):0}function $(e,t){const r=O.get(e);r&&Reflect.deleteProperty(r,t+"")}function E(e){O.delete(e)}const K=l({props:{fieldItems:{type:Array,default:()=>[]},childFieldStrategy:{type:String,default:"checked"},childWidthMode:{type:String,default:"outer"},name:{type:String,required:!0}},setup(e){const l=o(g),u=o(x),h=p(),y=o(l+"_virtualParent",""),S=`${y?y+".":""}${h.value.address}`;function j(e){return`${S}.${e}`}i(l+"_virtualParent",S);const{schemaAdaptor:O}=b(u);function E(t){var r,n,l,o;return Object.assign(t,{"x-decorator-props":{...t["x-decorator-props"],labelPlacement:"left",isOptionChildField:!0},"x-component-props":{...t["x-component-props"],childFieldStrategy:null!=(n=null==(r=t["x-component-props"])?void 0:r.childFieldStrategy)?n:e.childFieldStrategy,childWidthMode:null!=(o=null==(l=t["x-component-props"])?void 0:l.childWidthMode)?o:e.childWidthMode,size:"small"}})}const K=t((()=>{const t=O(e.fieldItems);return Object.values(t).forEach(E),F(t)}));s(K,(()=>{return e=K.value,void Object.values(e.properties||{}).forEach((e=>{var t;M(l,j(e.name),null==(t=null==e?void 0:e["x-decorator-props"])?void 0:t.span)}));var e}),{immediate:!0});const P=m();function _(){return e.fieldItems.map((e=>P.value.query(e.val_key).take()))}a((()=>{var e;_().forEach((e=>{e&&e.setDisplay("none")})),e=K.value,Object.values(e.properties||{}).forEach((e=>{$(l,j(e.name))}))})),d((()=>{_().forEach((e=>{e&&e.setDisplay("visible")}))}));const k=c(v,["stop"]),C=["onClick","onKeydown","onKeyup","onKeypress"].reduce(((e,t)=>(e[t]=k,e)),{});return()=>{return r("section",n({class:"form-render__labelField",style:{"--column":(e=K.value,Object.values(e.properties||{}).reduce(((e,t)=>e+W(l,j(t.name))),0)),flex:"1"}},C),[r(f,{basePath:".",schema:K.value},null)]);var e}}});function P(e,l){u();const o=t((()=>e.options.some((e=>h(e.childrenFields)&&e.childrenFields.length))));function i(e,t,r="value"){return!y(t.childrenFields)&&(h(e)?e.includes(t[r]):e===t[r])}return{renderComplexOption:function({value:e,option:t,valueKey:l="value",labelKey:s="label",childFieldStrategy:a,childWidthMode:d,renderLabel:c=!0,attrs:u}){return[function(){const e=S(t,s);return c?t.desc?j(e,t):e:null}(),o.value&&("all"===a||i(e,t,l))?r(K,n({fieldItems:t.childrenFields,name:t[l],childFieldStrategy:a,childWidthMode:d},u),null):null]},valueRef:l,hasComplexOption:o}}function _(){return{getSpan:W,setSpan:M,deleteSpan:$,clearSpan:E}}export{P as useComplexOptions,_ as useComplexOptionsSpan};
@@ -21,6 +21,7 @@ export declare function combineExtendKey(fieldList: FieldItem[], values: AnyObje
21
21
  export declare function splitExtendKey(fieldList: FieldItem[], values: AnyObject): AnyObject;
22
22
  export declare function isNestedType(type?: string): boolean | "" | undefined;
23
23
  export declare function isNestedFieldType(field: FieldItem | GeneralField): boolean | "" | undefined;
24
+ export declare function renderOptionLabel(option: AnyObject, labelKey: string): JSX.Element;
24
25
  export declare function renderDescOption(labelNode: any, option: AnyObject): JSX.Element;
25
26
  export declare function getAbsoluteKey(fieldKey: string, field: Pattern): string;
26
27
  export declare function editorUnescape(content: string): string;
@@ -1 +1 @@
1
- import{inject as e,provide as t,computed as n,createVNode as r,Fragment as o}from"vue";import{traverse as i,arrayed as u}from"../../../../shared/utils/index.js";import{isGeneralField as c}from"@formily/core";import{Path as s}from"@formily/path";import{HelpCircleSharp as f}from"@vicons/ionicons5";import{isObject as l}from"@vue/shared";import{useMemoize as a}from"@vueuse/core";import{isString as p,isFunction as d,omit as E,castArray as T,flattenDeep as h}from"lodash-es";import{NTooltip as m,NIcon as x}from"naive-ui";import{NESTED_FORM_ITEM_TYPE as y}from"../constants/index.js";export{businessDateParser,isForeignerID,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./business.js";function R(e){console.warn(`[FormRender]: ${e}`)}function g(e){return"1"===e||!0===e||1===e}function v(e){return"0"===e||!1===e||0===e}function I(e,t,n=["children","properties","suffixConfig"],r="val_key",o="default_val"){return function e(t,r){r.forEach((r=>{l(r)&&(null!=c(r)&&null==t[i(r)]&&s.setIn(t,i(r),c(r)),n.forEach((n=>{r[n]&&(t[i(r)]||(t[i(r)]={}),e(t[i(r)],u(r[n])))})))}))}(e,t),e;function i(e){return e[r]}function c(e){return e[o]}}function A(n,r){let o=e(n,null);return o||(o=r(),t(n,o)),o}function D(e){return e&&p(e)?+e:e}function P(e,t,n){if(l(e)&&!d(e)){const n={};return Object.entries(e).forEach((([e,r])=>{d(r)&&(n[e]=()=>r(t))})),n}return{default:()=>d(e)?e(t):n?n(e):[e]}}function W(e,t){return n((()=>{const n={};return e.prefix&&(n.prefix=()=>r(o,null,[P(e.prefix,e,t).default()])),e.suffix&&(n.suffix=()=>r(o,null,[P(e.suffix,e,t).default()])),n}))}function _(e,t){return p(e)&&e?e.replace(/\$\{([^}]*)}/g,(function(e,n){const r=n.split("||");for(const e of r){const n=t[e.trim()];if(n)return n}return""})):""}function G(e){return e.reduce(((e,t)=>(p(t.extendKey)&&t.extendKey&&e.push(t),j(t)&&e.push(...G(t.children||[])),e)),[])}function S(e,t){const n=G(e);if(!n.length)return t;const r={},o=new Map;return Object.entries(t).forEach((([e,i])=>{const u=n.find((t=>t.val_key===e));if(!u)return r[e]=i;const{val_key:c,extendKey:s}=u,f=o.get(s)||{};o.set(s,f),f[c]=t[c]})),[...o.entries()].forEach((([e,t])=>{r[e]=JSON.stringify(t)})),r}function $(e,t){const n=G(e);if(!n.length)return t;const r=a((e=>{try{return l(t[e])?t[e]:JSON.parse(t[e])||{}}catch(e){return{}}})),o=E(t,n.map((e=>e.extendKey)));return n.forEach((({val_key:e,extendKey:t})=>{Reflect.has(o,e)||(o[e]=r(t)[e])})),o}function b(e){return e&&y.includes(e)}function j(e){return b(c(e)?e.componentType:e.html_type)}function w(e,t){return r("section",{style:{display:"flex",alignItems:"center",gap:"4px"}},[e,t.desc?r(m,null,{trigger:()=>r(x,{component:f},null),default:()=>t.desc}):null])}function K(e,t){return s.parse(e.startsWith(".")?e:`.${e}`,t).toString()}function X(e){return e.replace(/&lt;/g,"<").replace(/&gt;/g,">")}function k(e,t){return e.reduce(((e,n)=>(t(n)||(e.push(n),n.properties&&(n.properties=k(n.properties,t)),n.children&&(n.children=k(n.children,t))),e)),[])}function C(e,t){let n=null;return i(e,((e,r)=>{t(e)&&(n=e,r())}),["children","properties"]),n}var F=function(e){return e[e.PREPARE=0]="PREPARE",e[e.TEXT=1]="TEXT",e[e.WIDGET_START=2]="WIDGET_START",e[e.WIDGET=3]="WIDGET",e}(F||{});function O(e){const t=[...e],n=[];let r=F.PREPARE,o="";function i(e){switch(r=e,r){case F.PREPARE:case F.WIDGET_START:case F.WIDGET:o=""}}function u(e="text",t=o){n.push({type:e,content:t})}function c(){const e=n.pop();e&&("text"===e.type?o=e.content:n.push(e))}return t.forEach(((e,n)=>{const s=n===t.length-1;switch(r){case F.PREPARE:return"#"===e?(i(F.WIDGET_START),void(s&&u())):(i(F.TEXT),o=e,void(s&&u()));case F.TEXT:return"#"===e?void(s?(o+=e,u()):(u(),i(F.WIDGET_START))):(o+=e,void(s&&u()));case F.WIDGET_START:return"{"!==e||s?(c(),i(F.TEXT),o+=`#${e}`,void(s&&u())):void i(F.WIDGET);case F.WIDGET:return"}"===e?(u("widget"),void i(F.PREPARE)):"#"===e?(c(),u(),i(F.WIDGET_START),o+=`#${e}`,void(s&&u())):(o+=e,void(s&&u("text",`#{${o}`)))}})),n}function N(e,t){let n=T(e);return t.forEach((({from:e,to:t})=>{n.forEach(((r,o)=>{p(r)&&(n[o]=r.split(e).map(((e,n,r)=>[e,n<r.length-1?t:null])))})),n=h(n)})),n}function B(e){return"Enter"===e.code||"NumpadEnter"===e.code}export{k as FieldListFilter,S as combineExtendKey,W as createInputSlot,P as createSlot,X as editorUnescape,C as findItemByValCondition,R as formRenderLog,K as getAbsoluteKey,A as injectOrProvide,B as isEnter,v as isNegative,j as isNestedFieldType,b as isNestedType,g as isPositive,I as mergeDeepProperties,O as parseEnhanceText,D as parseNumberFromMaybeString,w as renderDescOption,N as replace2Any,$ as splitExtendKey,_ as validateMessageParser};
1
+ import{inject as e,provide as t,computed as n,createVNode as r,Fragment as o}from"vue";import{widthAppend as i,traverse as u,arrayed as c}from"../../../../shared/utils/index.js";import{isGeneralField as s}from"@formily/core";import{Path as f}from"@formily/path";import{HelpCircleSharp as l}from"@vicons/ionicons5";import{isObject as a}from"@vue/shared";import{useMemoize as p}from"@vueuse/core";import{isString as d,isFunction as m,omit as h,castArray as E,flattenDeep as T}from"lodash-es";import{NTooltip as g,NIcon as x}from"naive-ui";import{NESTED_FORM_ITEM_TYPE as y}from"../constants/index.js";export{businessDateParser,isForeignerID,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./business.js";function v(e){console.warn(`[FormRender]: ${e}`)}function R(e){return"1"===e||!0===e||1===e}function I(e){return"0"===e||!1===e||0===e}function D(e,t,n=["children","properties","suffixConfig"],r="val_key",o="default_val"){return function e(t,r){r.forEach((r=>{a(r)&&(null!=u(r)&&null==t[i(r)]&&f.setIn(t,i(r),u(r)),n.forEach((n=>{r[n]&&(t[i(r)]||(t[i(r)]={}),e(t[i(r)],c(r[n])))})))}))}(e,t),e;function i(e){return e[r]}function u(e){return e[o]}}function A(n,r){let o=e(n,null);return o||(o=r(),t(n,o)),o}function W(e){return e&&d(e)?+e:e}function P(e,t,n){if(a(e)&&!m(e)){const n={};return Object.entries(e).forEach((([e,r])=>{m(r)&&(n[e]=()=>r(t))})),n}return{default:()=>m(e)?e(t):n?n(e):[e]}}function _(e,t){return n((()=>{const n={};return e.prefix&&(n.prefix=()=>r(o,null,[P(e.prefix,e,t).default()])),e.suffix&&(n.suffix=()=>r(o,null,[P(e.suffix,e,t).default()])),n}))}function G(e,t){return d(e)&&e?e.replace(/\$\{([^}]*)}/g,(function(e,n){const r=n.split("||");for(const e of r){const n=t[e.trim()];if(n)return n}return""})):""}function S(e){return e.reduce(((e,t)=>(d(t.extendKey)&&t.extendKey&&e.push(t),b(t)&&e.push(...S(t.children||[])),e)),[])}function j(e,t){const n=S(e);if(!n.length)return t;const r={},o=new Map;return Object.entries(t).forEach((([e,i])=>{const u=n.find((t=>t.val_key===e));if(!u)return r[e]=i;const{val_key:c,extendKey:s}=u,l=o.get(s)||{};o.set(s,l);const a=f.getIn(t,e);null!=a&&f.setIn(l,c,a)})),[...o.entries()].forEach((([e,t])=>{r[e]=JSON.stringify(t)})),r}function w(e,t){const n=S(e);if(!n.length)return t;const r=p((e=>{try{return a(t[e])?t[e]:JSON.parse(t[e])||{}}catch(e){return{}}})),o=h(t,n.map((e=>e.extendKey)));return n.forEach((({val_key:e,extendKey:t})=>{Reflect.has(o,e)||(o[e]=r(t)[e])})),o}function $(e){return e&&y.includes(e)}function b(e){return $(s(e)?e.componentType:e.html_type)}function B(e,t){var n;const o=null!=(n=e.title)?n:e[t];return r("span",{title:o,style:{display:"inline-flex",flexDirection:"column",alignItems:"center","justify-content":"center"}},[e.imageBase64?r("img",{src:e.imageBase64,style:{width:i(e.imageWidth||80),height:i(e.imageHeight||80),marginBottom:"4px"}},null):null,e[t]])}function K(e,t){return r("section",{style:{display:"flex",alignItems:"center",gap:"4px"}},[e,t.desc?r(g,null,{trigger:()=>r(x,{component:l},null),default:()=>t.desc}):null])}function X(e,t){return f.parse(e.startsWith(".")?e:`.${e}`,t).toString()}function k(e){return e.replace(/&lt;/g,"<").replace(/&gt;/g,">")}function C(e,t){return e.reduce(((e,n)=>(t(n)||(e.push(n),n.properties&&(n.properties=C(n.properties,t)),n.children&&(n.children=C(n.children,t))),e)),[])}function F(e,t){let n=null;return u(e,((e,r)=>{t(e)&&(n=e,r())}),["children","properties"]),n}var O=function(e){return e[e.PREPARE=0]="PREPARE",e[e.TEXT=1]="TEXT",e[e.WIDGET_START=2]="WIDGET_START",e[e.WIDGET=3]="WIDGET",e}(O||{});function N(e){const t=[...e],n=[];let r=O.PREPARE,o="";function i(e){switch(r=e,r){case O.PREPARE:case O.WIDGET_START:case O.WIDGET:o=""}}function u(e="text",t=o){n.push({type:e,content:t})}function c(){const e=n.pop();e&&("text"===e.type?o=e.content:n.push(e))}return t.forEach(((e,n)=>{const s=n===t.length-1;switch(r){case O.PREPARE:return"#"===e?(i(O.WIDGET_START),void(s&&u())):(i(O.TEXT),o=e,void(s&&u()));case O.TEXT:return"#"===e?void(s?(o+=e,u()):(u(),i(O.WIDGET_START))):(o+=e,void(s&&u()));case O.WIDGET_START:return"{"!==e||s?(c(),i(O.TEXT),o+=`#${e}`,void(s&&u())):void i(O.WIDGET);case O.WIDGET:return"}"===e?(u("widget"),void i(O.PREPARE)):"#"===e?(c(),u(),i(O.WIDGET_START),o+=`#${e}`,void(s&&u())):(o+=e,void(s&&u("text",`#{${o}`)))}})),n}function J(e,t){let n=E(e);return t.forEach((({from:e,to:t})=>{n.forEach(((r,o)=>{d(r)&&(n[o]=r.split(e).map(((e,n,r)=>[e,n<r.length-1?t:null])))})),n=T(n)})),n}function M(e){return"Enter"===e.code||"NumpadEnter"===e.code}export{C as FieldListFilter,j as combineExtendKey,_ as createInputSlot,P as createSlot,k as editorUnescape,F as findItemByValCondition,v as formRenderLog,X as getAbsoluteKey,A as injectOrProvide,M as isEnter,I as isNegative,b as isNestedFieldType,$ as isNestedType,R as isPositive,D as mergeDeepProperties,N as parseEnhanceText,W as parseNumberFromMaybeString,K as renderDescOption,B as renderOptionLabel,J as replace2Any,w as splitExtendKey,G as validateMessageParser};
@@ -91,6 +91,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
91
91
  setUpdateSessionItem: (item: import("../../shared/types").AnyObject) => void;
92
92
  setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
93
93
  updateSessionList: (sessionItem: import("../../shared/types").AnyObject) => void;
94
+ isEnded: import("vue").ComputedRef<boolean>;
94
95
  reConnention: number;
95
96
  groupSessionList: import("../../shared/types").AnyObject[];
96
97
  init: () => Promise<void>;
@@ -113,6 +114,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
113
114
  filterKey: {
114
115
  all: string;
115
116
  unread: string;
117
+ ended: string;
116
118
  };
117
119
  unreadSessionKeys: string[];
118
120
  flexWidth: import("vue").Ref<number>;
@@ -128,6 +130,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
128
130
  openSession: (item: import("../../shared/types").AnyObject) => Promise<void>;
129
131
  currentWidth: import("vue").ComputedRef<number>;
130
132
  sessionList: import("vue").ComputedRef<import("../../shared/types").AnyObject[]>;
133
+ getLabelNum: (session: import("../../shared/types").AnyObject) => number;
131
134
  changeWidth: ({ distance }: import("../../shared/types").AnyObject) => void;
132
135
  handleFilter: (key: string) => void;
133
136
  showSession: (item: import("../../shared/types").AnyObject, currentKey?: string) => boolean | undefined;
@@ -144,6 +147,9 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
144
147
  ChatHeader: import("vue").DefineComponent<{}, {
145
148
  state: import("./src/types").IState;
146
149
  isGroupChat: import("vue").ComputedRef<boolean>;
150
+ isGroupLeader: import("vue").ComputedRef<boolean>;
151
+ isEnded: import("vue").ComputedRef<boolean>;
152
+ setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
147
153
  showChatSet: import("vue").Ref<boolean>;
148
154
  showChatFile: import("vue").Ref<boolean>;
149
155
  chatFileType: import("vue").Ref<string>;
@@ -151,17 +157,21 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
151
157
  chatAddProps: import("vue").ComputedRef<{
152
158
  mode: string;
153
159
  disabledIds: any[];
160
+ disabled: boolean;
154
161
  defaultValue?: undefined;
155
162
  } | {
156
163
  mode: string;
157
164
  defaultValue: import("../../shared/types").AnyObject[];
158
165
  disabledIds?: undefined;
166
+ disabled?: undefined;
159
167
  }>;
160
168
  handleOpenChatFile: (type: string) => void;
169
+ handleClose: () => Promise<void>;
161
170
  NAvatar: any;
162
171
  NIcon: any;
163
172
  NButton: any;
164
173
  NTooltip: any;
174
+ NPopconfirm: any;
165
175
  PersonProfile: import("vue").DefineComponent<{
166
176
  userId: {
167
177
  type: StringConstructor;
@@ -236,11 +246,11 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
236
246
  state: import("./src/types").IState;
237
247
  setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
238
248
  isGroupChat: import("vue").ComputedRef<boolean>;
249
+ isGroupLeader: import("vue").ComputedRef<boolean>;
239
250
  inputRef: import("vue").Ref<any>;
240
251
  groupNameEditing: import("vue").Ref<boolean>;
241
252
  groupName: import("vue").Ref<string>;
242
253
  showGroupDetail: import("vue").Ref<boolean>;
243
- isGroupLeader: import("vue").ComputedRef<boolean>;
244
254
  currentGroupUserIds: import("vue").ComputedRef<any[]>;
245
255
  currentGroupUser: import("vue").ComputedRef<import("../../shared/types").AnyObject[]>;
246
256
  handleTopping: (value: boolean) => Promise<void>;
@@ -353,6 +363,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
353
363
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
354
364
  default: () => never[];
355
365
  };
366
+ disabled: {
367
+ type: BooleanConstructor;
368
+ default: boolean;
369
+ };
356
370
  }, {
357
371
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
358
372
  title: {
@@ -374,6 +388,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
374
388
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
375
389
  default: () => never[];
376
390
  };
391
+ disabled: {
392
+ type: BooleanConstructor;
393
+ default: boolean;
394
+ };
377
395
  }>> & {
378
396
  onComfirm?: ((...args: any[]) => any) | undefined;
379
397
  }>>;
@@ -438,11 +456,16 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
438
456
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
439
457
  default: () => never[];
440
458
  };
459
+ disabled: {
460
+ type: BooleanConstructor;
461
+ default: boolean;
462
+ };
441
463
  }>> & {
442
464
  onComfirm?: ((...args: any[]) => any) | undefined;
443
465
  }, {
444
466
  title: string;
445
467
  defaultValue: import("../../shared/types").AnyObject[];
468
+ disabled: boolean;
446
469
  mode: string;
447
470
  disabledIds: string[];
448
471
  }>;
@@ -522,6 +545,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
522
545
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
523
546
  default: () => never[];
524
547
  };
548
+ disabled: {
549
+ type: BooleanConstructor;
550
+ default: boolean;
551
+ };
525
552
  }, {
526
553
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
527
554
  title: {
@@ -543,6 +570,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
543
570
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
544
571
  default: () => never[];
545
572
  };
573
+ disabled: {
574
+ type: BooleanConstructor;
575
+ default: boolean;
576
+ };
546
577
  }>> & {
547
578
  onComfirm?: ((...args: any[]) => any) | undefined;
548
579
  }>>;
@@ -607,11 +638,16 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
607
638
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
608
639
  default: () => never[];
609
640
  };
641
+ disabled: {
642
+ type: BooleanConstructor;
643
+ default: boolean;
644
+ };
610
645
  }>> & {
611
646
  onComfirm?: ((...args: any[]) => any) | undefined;
612
647
  }, {
613
648
  title: string;
614
649
  defaultValue: import("../../shared/types").AnyObject[];
650
+ disabled: boolean;
615
651
  mode: string;
616
652
  disabledIds: string[];
617
653
  }>;
@@ -822,6 +858,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
822
858
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
823
859
  default: () => never[];
824
860
  };
861
+ disabled: {
862
+ type: BooleanConstructor;
863
+ default: boolean;
864
+ };
825
865
  }, {
826
866
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
827
867
  title: {
@@ -843,6 +883,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
843
883
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
844
884
  default: () => never[];
845
885
  };
886
+ disabled: {
887
+ type: BooleanConstructor;
888
+ default: boolean;
889
+ };
846
890
  }>> & {
847
891
  onComfirm?: ((...args: any[]) => any) | undefined;
848
892
  }>>;
@@ -907,15 +951,21 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
907
951
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
908
952
  default: () => never[];
909
953
  };
954
+ disabled: {
955
+ type: BooleanConstructor;
956
+ default: boolean;
957
+ };
910
958
  }>> & {
911
959
  onComfirm?: ((...args: any[]) => any) | undefined;
912
960
  }, {
913
961
  title: string;
914
962
  defaultValue: import("../../shared/types").AnyObject[];
963
+ disabled: boolean;
915
964
  mode: string;
916
965
  disabledIds: string[];
917
966
  }>;
918
967
  PersonAddOutline: 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<{}>>, {}>;
968
+ CloseOutline: 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<{}>>, {}>;
919
969
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
920
970
  ChatMain: import("vue").DefineComponent<{}, {
921
971
  chatMainRef: import("vue").Ref<HTMLElement | undefined>;
@@ -1165,6 +1215,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
1165
1215
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1166
1216
  default: () => never[];
1167
1217
  };
1218
+ disabled: {
1219
+ type: BooleanConstructor;
1220
+ default: boolean;
1221
+ };
1168
1222
  }, {
1169
1223
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1170
1224
  title: {
@@ -1186,6 +1240,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
1186
1240
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1187
1241
  default: () => never[];
1188
1242
  };
1243
+ disabled: {
1244
+ type: BooleanConstructor;
1245
+ default: boolean;
1246
+ };
1189
1247
  }>> & {
1190
1248
  onComfirm?: ((...args: any[]) => any) | undefined;
1191
1249
  }>>;
@@ -1250,11 +1308,16 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
1250
1308
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1251
1309
  default: () => never[];
1252
1310
  };
1311
+ disabled: {
1312
+ type: BooleanConstructor;
1313
+ default: boolean;
1314
+ };
1253
1315
  }>> & {
1254
1316
  onComfirm?: ((...args: any[]) => any) | undefined;
1255
1317
  }, {
1256
1318
  title: string;
1257
1319
  defaultValue: import("../../shared/types").AnyObject[];
1320
+ disabled: boolean;
1258
1321
  mode: string;
1259
1322
  disabledIds: string[];
1260
1323
  }>;
@@ -1277,6 +1340,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
1277
1340
  receiver?: string | undefined;
1278
1341
  }) => Promise<void>;
1279
1342
  isGroupChat: import("vue").ComputedRef<boolean>;
1343
+ isEnded: import("vue").ComputedRef<boolean>;
1280
1344
  showEmoji: import("vue").Ref<boolean>;
1281
1345
  content: import("vue").Ref<string>;
1282
1346
  commonEmoticons: import("vue").Ref<string[]>;
@@ -1321,6 +1385,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
1321
1385
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1322
1386
  default: () => never[];
1323
1387
  };
1388
+ disabled: {
1389
+ type: BooleanConstructor;
1390
+ default: boolean;
1391
+ };
1324
1392
  }, {
1325
1393
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1326
1394
  title: {
@@ -1342,6 +1410,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
1342
1410
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1343
1411
  default: () => never[];
1344
1412
  };
1413
+ disabled: {
1414
+ type: BooleanConstructor;
1415
+ default: boolean;
1416
+ };
1345
1417
  }>> & {
1346
1418
  onComfirm?: ((...args: any[]) => any) | undefined;
1347
1419
  }>>;
@@ -1406,11 +1478,16 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
1406
1478
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1407
1479
  default: () => never[];
1408
1480
  };
1481
+ disabled: {
1482
+ type: BooleanConstructor;
1483
+ default: boolean;
1484
+ };
1409
1485
  }>> & {
1410
1486
  onComfirm?: ((...args: any[]) => any) | undefined;
1411
1487
  }, {
1412
1488
  title: string;
1413
1489
  defaultValue: import("../../shared/types").AnyObject[];
1490
+ disabled: boolean;
1414
1491
  mode: string;
1415
1492
  disabledIds: string[];
1416
1493
  }>;
@@ -1518,6 +1595,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
1518
1595
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1519
1596
  default: () => never[];
1520
1597
  };
1598
+ disabled: {
1599
+ type: BooleanConstructor;
1600
+ default: boolean;
1601
+ };
1521
1602
  }, {
1522
1603
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1523
1604
  title: {
@@ -1539,6 +1620,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
1539
1620
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1540
1621
  default: () => never[];
1541
1622
  };
1623
+ disabled: {
1624
+ type: BooleanConstructor;
1625
+ default: boolean;
1626
+ };
1542
1627
  }>> & {
1543
1628
  onComfirm?: ((...args: any[]) => any) | undefined;
1544
1629
  }>>;
@@ -1603,11 +1688,16 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
1603
1688
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1604
1689
  default: () => never[];
1605
1690
  };
1691
+ disabled: {
1692
+ type: BooleanConstructor;
1693
+ default: boolean;
1694
+ };
1606
1695
  }>> & {
1607
1696
  onComfirm?: ((...args: any[]) => any) | undefined;
1608
1697
  }, {
1609
1698
  title: string;
1610
1699
  defaultValue: import("../../shared/types").AnyObject[];
1700
+ disabled: boolean;
1611
1701
  mode: string;
1612
1702
  disabledIds: string[];
1613
1703
  }>;
@@ -1746,6 +1836,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
1746
1836
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1747
1837
  default: () => never[];
1748
1838
  };
1839
+ disabled: {
1840
+ type: BooleanConstructor;
1841
+ default: boolean;
1842
+ };
1749
1843
  }, {
1750
1844
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1751
1845
  title: {
@@ -1767,6 +1861,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
1767
1861
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1768
1862
  default: () => never[];
1769
1863
  };
1864
+ disabled: {
1865
+ type: BooleanConstructor;
1866
+ default: boolean;
1867
+ };
1770
1868
  }>> & {
1771
1869
  onComfirm?: ((...args: any[]) => any) | undefined;
1772
1870
  }>>;
@@ -1831,11 +1929,16 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
1831
1929
  type: import("vue").PropType<import("../../shared/types").AnyObject[]>;
1832
1930
  default: () => never[];
1833
1931
  };
1932
+ disabled: {
1933
+ type: BooleanConstructor;
1934
+ default: boolean;
1935
+ };
1834
1936
  }>> & {
1835
1937
  onComfirm?: ((...args: any[]) => any) | undefined;
1836
1938
  }, {
1837
1939
  title: string;
1838
1940
  defaultValue: import("../../shared/types").AnyObject[];
1941
+ disabled: boolean;
1839
1942
  mode: string;
1840
1943
  disabledIds: string[];
1841
1944
  }>;