cnhis-design-vue 3.2.7-beta.13 → 3.2.7-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/classification/index.d.ts +21 -6
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +21 -6
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +21 -6
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/classification/src/index.vue.d.ts +21 -6
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +2 -2
- package/es/components/field-set/src/FieldFilter.vue.d.ts +2 -2
- package/es/components/field-set/src/FieldSet.vue.d.ts +3 -3
- package/es/components/field-set/src/components/Row.vue.d.ts +2 -2
- package/es/components/iho-chat/index.d.ts +48 -29
- package/es/components/iho-chat/src/Index.vue.d.ts +48 -29
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +10 -4
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +10 -4
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +10 -4
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +3 -10
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +27 -17
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/hooks/useSearchUserList.d.ts +11 -0
- package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -0
- package/es/components/iho-chat/src/types/index.d.ts +0 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +21 -6
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +37 -20
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +21 -6
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +21 -6
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +33 -18
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +17 -4
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +17 -4
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -1 +1 @@
|
|
1
|
-
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{useShadow as t}from"./useShadow.js";import{drawLine as i,defaultStyle as n,drawPoint as o,drawText as l,drawArrow as s}from"../useDraw.js";import{useGrid as r}from"../useGrid.js";import{format as u}from"date-fns";import{getType as a,getTime as c,isOneLine as d,isOverlapPoint as p,getFloorNumber as f,isValidValue as h,setOtherType as v,isEffectiveNode as g,deleteProperty as y,getIndex as m}from"../../utils/index.js";import{cloneDeep as x,flatten as b,last as j}from"lodash-es";import"../useEvent.js";import{useCommon as w}from"../useCommon.js";import"vue";import"naive-ui";import"@vueuse/core";import{TEMPERATURE_MENU as k,PAIN_MENU as L,OVERLAP as S}from"../../constants/index.js";import{promiseTimeout as Y}from"@vueuse/shared";function E(E,$,O,T,V,P,C,A,R,I){r(E,$);const{getEqualXTypes:X,handleAddPrevent:D,getPointEventProps:H}=w(E,O,$),{createShadowLines:z}=t(),{left:F,xScaleList:_,xCellWidth:W,yCellHeight:q,originX:G,endX:N,originY:B,endY:J,itemList:K,event:Q,vitalSignsOriginY:U,painOriginY:Z,hospitalizationDate:ee,config:te,canvasHeight:ie}=$,ne=new Set,oe=["xinmai","mai"],le=new Map,se=new Set,re=new Set,ue=new Set,ae=x(F.yScaleValue),ce=new Set;function de(t){var o;const l=ae.find((e=>"pulse"===e.type));if(l&&(null==(o=l.dataList)?void 0:o.length)&&(ne.size&&E.value.remove(...ne),ne.clear(),le.size>1)){if(t){const{type:e,key:i}=t.origin||{};if("pulse"===e){const e=le.get(i),n=null==e?void 0:e.findIndex((e=>e[0]===t.left));e.splice(n,1,[t.left,t.top])}}const o=function(){const e=[],t=[],i=[];for(const e of le)t.push(e[1]),e[0]===oe[0]&&e[1].forEach((e=>{(le.get(oe[1])||[]).findIndex((t=>t[0]===e[0]))>-1&&i.push(e[0])}));const[n,o]=t;let l=[],s=[];return i.forEach((t=>{const i=n.findIndex((e=>e[0]===t)),r=o.findIndex((e=>e[0]===t)),u=n[i],a=o[r],c=n[i-1],d=n[i+1],p=o[r-1],f=o[r+1];if(c&&p){if(c[0]!==p[0]){const e=Math.max(c[0],p[0]);l.push([c,p].find((t=>t[0]===e)))}}else c?l.push(c):p&&s.push(p);const h=Math.min(u[1],a[1]);l.push([u,a].find((e=>e[1]===h)));const v=Math.max(u[1],a[1]);s.push([u,a].find((e=>e[1]===v)));const g=()=>{const t=[...l,...s.reverse()],[i]=t,n=j(t);i[0]===n[0]&&i[1]===n[1]&&t.splice(-1,1),e.push(t),l=[],s=[]};if(d&&f){if(d[0]!==f[0]){const e=Math.min(d[0],f[0]);l.push([d,f].find((t=>t[0]===e))),g()}}else d?(l.push(d),g()):f?(s.push(f),g()):g()})),e}();o.length>0&&function(e){Y(0).then((()=>{e.forEach((e=>{const t=[],i=[];Array.from(ue).forEach((n=>{var o,l;"pulse"===(null==(o=null==n?void 0:n.origin)?void 0:o.type)&&e.find((e=>Math.abs(n.left-e[0])<=1&&Math.abs(n.top-e[1])<=1))&&((null==(l=null==n?void 0:n.origin)?void 0:l.key)===oe[0]?t.push(n):i.push(n))})),[t,i].forEach((e=>{1!==(null==e?void 0:e.length)&&e.sort(((e,t)=>e.left-t.left)).forEach(((e,t)=>{t>0&&e.leftLine&&E.value.remove(e.leftLine)}))}))}))}))}(o);const{mode:s,style:r={}}=l.shadow||{};o.forEach((t=>{const o=t.map((e=>({x:e[0],y:e[1]}))),l=new e.Polygon(o,{...n,...r,strokeWidth:1});if(["slash","line"].includes(s)){l.set({fill:"transparent",stroke:r.stroke||"#f00"});const e=[];if(["slash"].includes(s))e.push(...z(t,r._angle,r.space)),e.forEach((e=>{Object.assign(e,{...n,...r}),ne.add(e)}));else{const n=function(e){const t=e.reduce(((e,t)=>{const i=Math.trunc(t[0]);return e[i]=e[i]?e[i].concat([t]):[t],e}),{}),i=Object.values(t).filter((e=>2===e.length&&Math.trunc(e[0][1])!==Math.trunc(e[1][1])));return i}(t);n.forEach((t=>{const n=i([...b(t)],{...r,originX:"center"});e.push(n),ne.add(n)}))}E.value.add(...e)}ne.add(l),E.value.add(l)}))}}function pe(e,t,r){var u;const{type:a,riseStyle:c={},noRiseStyle:p={},verifiedStyle:g={},reduceStyle:y={},pacemaker:m={},upArrowStyle:x={},limitValueStyle:b={},nonePainPointStyle:j={},belowMinValueStyle:w={},respiratorStyle:k={},dataList:L=[],list:S=[]}=r,{type:Y,textStyle:$,showConnectLine:P=!1}=j,A=[],I=[],X=[];let D=null;const z=e=>"breathe"==a&&e.respirator&&k.type&&k.fixedValue&&!e.value&&ve(e.time);if(null==(u=e.list)||u.forEach(((u,j)=>{const F=d(a)?L.find((e=>e.key===u.key)):e,_=ge(z(u)?{...u,value:k.fixedValue}:u,r),G=e.list[j+1],N=G?ge(z(G)?{...G,value:k.fixedValue}:G,r):void 0,B=G?d(a)?L.find((e=>e.key===G.key)):e:{},{title:J=""}=F;if("脉搏"===J&&"脉搏"!==B.title||"脉搏"!==J&&"脉搏"===B.title||!_||!N||f(_[0],1)!==f(N[0],1))_&&D&&(_[0]=D),D=null;else{const e=_[0]-W/2;_[0]=e+W/4,N[0]=D=_[0]+W/2}const K={};K.value=function(e,t,i){if(!(null==e?void 0:e.length)||!te.showValue)return;const{lineAttr:n={}}=i,o=e[1]<=U.originY+q?e[1]+q:e[1]-q,s=l([e[0],o],{value:z(t)?k.fixedValue:t.value,originX:"center",originY:"center",fill:n.stroke||"#000"});return X.push(s),{obj:s,top:-q}}(_,u,F),function(e,t,r,u){var d,f;if(!["temperature","pain","breathe"].includes(a))return;if(!(null==e?void 0:e.length)&&"temperature"===a&&!ve(t.time))return;if(!(null==e?void 0:e.length)&&"pain"===a)return;if(!t.value&&"breathe"===a)return;const{lineAttr:v={}}=r,{value:m}=u,x=T(t.time);let b,j,w,L,Y,E;if(t.noRise&&p.show){const i=M(p,t)?V(a,S,35):(null==e?void 0:e[1])||0;if(p.text)w=l([x,M(p,t)?i:i+5],{value:p.text.split("").join("\n"),originY:"top",...p.style}),t.value||ue.add(w);else if(t.value){w=s([x,i,i+2*q],{...p.style})}w&&X.push(w),w&&M(p,t)&&ce.add(w)}if(null==e?void 0:e[1]){if(t.rise&&c.show&&c.text&&(L=l([x,e[1]-(m?q:0)-5],{value:c.text.split("").join("\n"),originY:"bottom",...c.style}),X.push(L)),t.verified&&(Y=l([x,e[1]-(m?q:0)-5],{value:"v",originX:"center",originY:"bottom",...g}),X.push(Y)),h(t.physicsReduce)||h(t.drugReduce)){const l=V(a,S,null!=(d=t.physicsReduce)?d:t.drugReduce),s=l<e[1]&&(null==te?void 0:te.hypothermyViewCustom)?x+W/2:x;b=i([...e,s,l],{...v,...y.line,...n}),j=o((null==(f=null==y?void 0:y.point)?void 0:f.type)||"circle",{left:s,top:l,...y.point,...n,originY:l===ie?"bottom":"center"}),b&&X.push(b),j&&X.push(j)}t.respirator&&(E=o(k.type,{left:x,top:e[1]-(m?q:0)-5,originX:"center",originY:"bottom",...k.style}),X.push(E))}Object.assign(u,{reduceLine:{obj:b,type:"line"},noRiseText:{obj:w,top:p.text?5:2*q,isFixed:M(p,t)},riseText:{obj:L,top:(m?-q:0)-5},verifiedText:{obj:Y,top:(m?-q:0)-5},reducePoint:{obj:j,type:"reduce"},respirator:{obj:E,top:(m?-q:0)-5}})}(_,u,F,K),function(e,t,i,n){if(!(null==e?void 0:e.length)||!["pulse"].includes(a))return;const o=Math.max(...S),r=Math.min(...S);let u,c,d;const{upArrowShow:p=!1,limitValueShow:f=!1}=i;if(p&&+t.value>180){let t=e[1]-2.5*q,i=[e[1]-q/2,t];t<U.originY&&(t=e[1]+2.5*q,i=[t,e[1]+q/2]),u=s([e[0],i[0],i[1]],x,"up"),X.push(u)}if(f){const i={value:t.value,originX:"center",originY:"center",...b};if(+t.value>o){const t=u?e[1]+q/2+u.height:e[1]+q;c=l([e[0],t],i),X.push(c)}+t.value<r&&(c=l([e[0],e[1]-q],i),X.push(c))}if(w.show&&+t.value<r){const t=e[1];if(w.text)d=l([e[0],e[1]+5],{value:w.text.split("").join("\n"),originY:"top",...w.style});else{const i=t+2*q;d=s([e[0],t,i],{...w.style})}X.push(d)}Object.assign(n,{upArrow:{obj:u},limitValue:{obj:c,top:-q},belowMinValue:{obj:d,top:w.text?5:2*q,moveHide:!0}})}(_,u,F,K),function(n,l,s,u,c,d){let p,f;const{pointAttr:h={},lineAttr:g={},title:y="",key:x,type:b="circle"}=c,j=e.list[u+1],w=fe(a,e.list[u].value),L=l&&fe(a,j.value),S=()=>"pulse"==a&&s.pacemakerShow?m.value:z(s)?k.type:w&&"number"===Y?0:b;if(n&&l&&!s.breakpoint&&(!w&&!L||P)){f=i([...n,...l],{...g});const{obj:e}=(null==d?void 0:d.reducePoint)||{};if((null==e?void 0:e.top)<n[1]&&(null==te?void 0:te.hypothermyViewCustom)){const t=i([e.left,e.top,...l],{...g});X.unshift(t),Object.assign(d,{reduceRightLine:{obj:t,type:"reduce"}}),f.set("stroke","transparent")}}const M=S(),T=I[u-1],V={origin:{data:z(s)?{...s,value:k.fixedValue}:s,title:y,key:x||"",unit:r.unit,type:a,_type:v(y,a),dataIndex:t,index:u},leftLine:T,rightLine:f,otherObj:d,...s.pacemakerShow&&"pulse"==a?m.style:z(s)?k.style:h,lockMovementX:!0,...H(),...w?{selectable:!1,evented:!1,..."number"===Y?$:{}}:{}};n&&(T?V.leftLine.set("x2",n[0]):V.leftLine=null,p=o(M,{left:n[0],top:w?n[1]-5:n[1],...V}));I.push(f),p&&(x===oe[1]?se.add(p):z(s)||re.add(p),function(e){Q.hovered&&(e.on("mouseover",(()=>{he(e,"hover")})),e.on("mouseout",(()=>{R.show=!1})));if(e.lockMovementX&&e.lockMovementY)return;e.on("moving",(()=>{!function(e){e.setCoords();const t="pain"===e.origin.type?Z:U;e.top<t.originY&&e.set("top",t.originY);e.top>t.endY&&e.set("top",t.endY)}(e),function(e){var t,i;null==(t=e.leftLine)||t.setCoords().set({x2:e.left,y2:e.top}),null==(i=e.rightLine)||i.setCoords().set({x1:e.left,y1:e.top}),Object.values(e.otherObj).forEach((t=>{const{obj:i,type:n="",top:o=0,isFixed:l,moveHide:s=!1}=t||{};"reduce"!==n&&i&&("line"===n?i.setCoords().set({x1:e.left,y1:e.top}):(l||i.setCoords().set({left:e.left,top:e.top+o}),s&&(E.value.remove(i),delete e.otherObj.obj)))})),de(e)}(e),Q.hovered&&he(e)})),e.on("mouseup",(t=>{if(R.show=!1,1===t.button){const{type:t}=e.origin,i=C(t,e.top),n={...e.origin,data:{...e.origin.data,value:i}};E.value.discardActiveObject(),O("change",n),me(n,"change")}}))}(p),A.push(p),ue.add(p))}(_,N,u,j,F,K)})),"pulse"===a){const{key:t}=e;let i=null;le.set(t,A.map(((e,t,n)=>{var o,l;const s=n[t+1];if(s&&f(e.left,1)===f(s.left,1)){const t=e.left-W/2;e.set("left",t+W/4),null==(o=e.rightLine)||o.set("x1",e.left),i=e.left+W/2,s.set("left",i)}else i&&(null==(l=e.leftLine)||l.set("x2",i),e.set("left",i)),i=null;return[e.left,e.top]})))}const F=I.filter((e=>e));E.value.add(...F,...A,...X)}function fe(e,t){return"pain"===e&&0==t}function he(e,t="moving"){const{title:i,unit:n,type:o,data:l}=e.origin;R.point={x:e.left,y:e.top};let s=`时间 ${((null==l?void 0:l.time)||P(e.left)).slice(-5)}`;R.list=[function(){const{drugReduce:r,physicsReduce:u}=l||{},a="hover"===t?l.value:C(o,e.top);if(h(r))return s+=(null==l?void 0:l.changeTime)?"—>"+(null==l?void 0:l.changeTime.slice(-5)):"",`药物降${"pain"==o?"痛":"温"} ${a}—>${r}${n||""}`;if(h(u))return s+=(null==l?void 0:l.changeTime)?"—>"+(null==l?void 0:l.changeTime.slice(-5)):"",`物理降${"pain"==o?"痛":"温"} ${a}—>${u}${n||""}`;return`${i} ${a}${n||""}`}(),s],R.show=!0}function ve(e){const[t]=_,i=j(_),n=t.start,o=i.end,l=c(e);return l>=n&&l<=o}function ge(e,t){const i="pain"===t.type?Z:U;if(!g(e)||!ve(e.time))return;const n=T(e.time),o=V(t.type,t.list,e.value);return[n,o<i.originY?i.originY:o>i.endY?i.endY:o]}function ye(e){const t=new Date,i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),o=c(`${t.getFullYear()}-${i}-${n} 23:59:59`),l=c(`${P(e)}:00`);return ee&&l<c(ee)?(D("exceedMin"),!1):!(l>o)||(D("exceedMax"),!1)}function me(e,t="add"){const{type:i,dataIndex:n,index:o,data:l,key:s}=e,r=ae.find((e=>e.type===i));if("add"===t){const e=d(i)?r.dataList.find((e=>e.enable)):r.dataList[n],t=m(l.time,e.list);e.list.splice(t,0,l)}else r.dataList[n].list[o]=l;xe()}function xe(){var e;ue.size&&(null==(e=E.value)||e.remove(...function(e){const t=[];return e.forEach((e=>{e&&t.push(e),(null==e?void 0:e.leftLine)&&t.push(null==e?void 0:e.leftLine),(null==e?void 0:e.rightLine)&&t.push(null==e?void 0:e.rightLine),Object.values((null==e?void 0:e.otherObj)||{}).forEach((e=>{(null==e?void 0:e.obj)&&t.push(null==e?void 0:e.obj)}))})),t}([...ue]))),ue.clear(),be()}function be(e){le.clear(),ue.clear(),se.clear(),ce.clear(),re.clear(),ae.forEach((t=>{null==e||e(t),t.dataList.forEach(((e,i)=>{!e.show||d(t.type)&&!e.enable||pe(e,i,t)}))})),de(),[...ue].forEach((e=>{null==e||e.bringToFront()})),function(){var e;const t=ae.find((e=>"pulse"===e.type));if(!t||!(null==(e=t.dataList)?void 0:e.length))return;if(!t.dataList.some((e=>e.title.includes("脉搏"))))return;const i=Object.assign({},S,F.overlap||{}),l=[];se.size&&[...se].forEach((e=>{[...re].forEach((t=>{if(t.origin&&p(e,t)){const e=t.origin.key;if(e){const s={left:t.left,top:t.top,...n,hoverCursor:"default"};let r="koumai";"yemai"===e&&(r=e),l.push(o(r,{...i[e],...s}))}}}))})),setTimeout((()=>{E.value.add(...l),l.forEach((e=>{null==e||e.bringToFront(),ue.add(e)}))}))}()}return be((e=>function(e){if("temperature"!==e.type||!e.positionLine)return;const t=V(e.type,e.list,e.positionLine.value),n=i([G,t,N,t],e.positionLine);E.value.add(n)}(e))),E.value.on("mouse:up",(e=>{const{button:t,target:i,pointer:n={}}=e;if(3===t){if(!$.event.evented)return;const{x:e=0,y:t=0}=n;if(e>=G&&e<=N&&t>=B&&t<=J){I.point={x:e,y:t},I.show=!0;const{type:o}=(null==i?void 0:i.origin)||{};if(i&&["temperature","pain"].includes(o))"temperature"===o&&(I.list=[...k]),"pain"===o&&(I.list=[...L]),I.target=i;else{I.target=null,I.list=["新增节点"],K.forEach((i=>{if(!X([...ue],e,"_type").includes(i.bigType)){const e=["pain"].includes(i.bigType)?Z:U;t>=e.originY&&t<=e.endY&&I.list.push({renderItem:A?A(i):()=>i.title,origin:{title:i.title,unit:i.unit,type:a(i.bigType),dataIndex:i.dataIndex,key:i.key},pointer:n})}}));const i=ye(e);i&&1!==I.list.length||(I.show=!1,1===I.list.length&&i&&D("repeat"))}}}if(1===t){if(i)return;const{x:e=0,y:t=0}=n;e>=G&&e<=N&&t>0&&t<ie&&O("click:grid",{x:e,y:t,time:P(e)})}})),{clickMenu:function({item:e,target:t}){if(t){const{data:i,type:n,dataIndex:o,index:l}=t.origin,s=y(i,[...k,...L]);s[`${e.type}`]=e.value,s.changeTime=u(new Date,"yyyy-MM-dd HH:mm"),d(n)&&(s.key=t.origin.key);const r={...t.origin,data:s};O("change",r),me(r,"change")}else{const t={data:{time:P(e.pointer.x),value:C(e.origin.type,e.pointer.y),...d(e.origin.type)?{key:e.origin.key}:{}},...e.origin};O("add",t),me(t)}},setPopup:he,isAddPoint:ye,updateData:me,redrawPoints:xe,gridPoints:ue,fixedNoRisePoints:ce}}function M(e,t){return e.fixed||!t.value&&0!==t.value}export{E as useCenter};
|
1
|
+
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{useShadow as t}from"./useShadow.js";import{drawLine as i,defaultStyle as n,drawPoint as o,drawText as l,drawArrow as s}from"../useDraw.js";import{useGrid as r}from"../useGrid.js";import{format as u}from"date-fns";import{getType as a,getTime as c,isOneLine as d,isOverlapPoint as p,getFloorNumber as f,isValidValue as h,setOtherType as v,isEffectiveNode as g,deleteProperty as y,getIndex as m}from"../../utils/index.js";import{cloneDeep as x,flatten as b,last as j}from"lodash-es";import"../useEvent.js";import{useCommon as w}from"../useCommon.js";import"vue";import"naive-ui";import"@vueuse/core";import{TEMPERATURE_MENU as k,PAIN_MENU as L,OVERLAP as S}from"../../constants/index.js";import{promiseTimeout as Y}from"@vueuse/shared";function E(E,$,O,T,V,C,P,A,R,I){r(E,$);const{getEqualXTypes:X,handleAddPrevent:D,getPointEventProps:H}=w(E,O,$),{createShadowLines:z}=t(),{left:F,xScaleList:_,xCellWidth:W,yCellHeight:q,originX:G,endX:N,originY:B,endY:J,itemList:K,event:Q,vitalSignsOriginY:U,painOriginY:Z,hospitalizationDate:ee,config:te,canvasHeight:ie,painSurplusCell:ne}=$,oe=new Set,le=["xinmai","mai"],se=new Map,re=new Set,ue=new Set,ae=new Set,ce=x(F.yScaleValue),de=new Set;function pe(t){var o;const l=ce.find((e=>"pulse"===e.type));if(l&&(null==(o=l.dataList)?void 0:o.length)&&(oe.size&&E.value.remove(...oe),oe.clear(),se.size>1)){if(t){const{type:e,key:i}=t.origin||{};if("pulse"===e){const e=se.get(i),n=null==e?void 0:e.findIndex((e=>e[0]===t.left));e.splice(n,1,[t.left,t.top])}}const o=function(){const e=[],t=[],i=[];for(const e of se)t.push(e[1]),e[0]===le[0]&&e[1].forEach((e=>{(se.get(le[1])||[]).findIndex((t=>t[0]===e[0]))>-1&&i.push(e[0])}));const[n,o]=t;let l=[],s=[];return i.forEach((t=>{const i=n.findIndex((e=>e[0]===t)),r=o.findIndex((e=>e[0]===t)),u=n[i],a=o[r],c=n[i-1],d=n[i+1],p=o[r-1],f=o[r+1];if(c&&p){if(c[0]!==p[0]){const e=Math.max(c[0],p[0]);l.push([c,p].find((t=>t[0]===e)))}}else c?l.push(c):p&&s.push(p);const h=Math.min(u[1],a[1]);l.push([u,a].find((e=>e[1]===h)));const v=Math.max(u[1],a[1]);s.push([u,a].find((e=>e[1]===v)));const g=()=>{const t=[...l,...s.reverse()],[i]=t,n=j(t);i[0]===n[0]&&i[1]===n[1]&&t.splice(-1,1),e.push(t),l=[],s=[]};if(d&&f){if(d[0]!==f[0]){const e=Math.min(d[0],f[0]);l.push([d,f].find((t=>t[0]===e))),g()}}else d?(l.push(d),g()):f?(s.push(f),g()):g()})),e}();o.length>0&&function(e){Y(0).then((()=>{e.forEach((e=>{const t=[],i=[];Array.from(ae).forEach((n=>{var o,l;"pulse"===(null==(o=null==n?void 0:n.origin)?void 0:o.type)&&e.find((e=>Math.abs(n.left-e[0])<=1&&Math.abs(n.top-e[1])<=1))&&((null==(l=null==n?void 0:n.origin)?void 0:l.key)===le[0]?t.push(n):i.push(n))})),[t,i].forEach((e=>{1!==(null==e?void 0:e.length)&&e.sort(((e,t)=>e.left-t.left)).forEach(((e,t)=>{t>0&&e.leftLine&&E.value.remove(e.leftLine)}))}))}))}))}(o);const{mode:s,style:r={}}=l.shadow||{};o.forEach((t=>{const o=t.map((e=>({x:e[0],y:e[1]}))),l=new e.Polygon(o,{...n,...r,strokeWidth:1});if(["slash","line"].includes(s)){l.set({fill:"transparent",stroke:r.stroke||"#f00"});const e=[];if(["slash"].includes(s))e.push(...z(t,r._angle,r.space)),e.forEach((e=>{Object.assign(e,{...n,...r}),oe.add(e)}));else{const n=function(e){const t=e.reduce(((e,t)=>{const i=Math.trunc(t[0]);return e[i]=e[i]?e[i].concat([t]):[t],e}),{}),i=Object.values(t).filter((e=>2===e.length&&Math.trunc(e[0][1])!==Math.trunc(e[1][1])));return i}(t);n.forEach((t=>{const n=i([...b(t)],{...r,originX:"center"});e.push(n),oe.add(n)}))}E.value.add(...e)}oe.add(l),E.value.add(l)}))}}function fe(e,t,r){var u;const{type:a,riseStyle:c={},noRiseStyle:p={},verifiedStyle:g={},reduceStyle:y={},pacemaker:m={},upArrowStyle:x={},limitValueStyle:b={},nonePainPointStyle:j={},belowMinValueStyle:w={},respiratorStyle:k={},dataList:L=[],list:S=[]}=r,{type:Y,textStyle:$,showConnectLine:C=!1}=j,A=[],I=[],X=[];let D=null;const z=e=>"breathe"==a&&e.respirator&&k.type&&k.fixedValue&&!e.value&&ge(e.time);if(null==(u=e.list)||u.forEach(((u,j)=>{const F=d(a)?L.find((e=>e.key===u.key)):e,_=ye(z(u)?{...u,value:k.fixedValue}:u,r),G=e.list[j+1],N=G?ye(z(G)?{...G,value:k.fixedValue}:G,r):void 0,B=G?d(a)?L.find((e=>e.key===G.key)):e:{},{title:J=""}=F;if("脉搏"===J&&"脉搏"!==B.title||"脉搏"!==J&&"脉搏"===B.title||!_||!N||f(_[0],1)!==f(N[0],1))_&&D&&(_[0]=D),D=null;else{const e=_[0]-W/2;_[0]=e+W/4,N[0]=D=_[0]+W/2}const K={};K.value=function(e,t,i){if(!(null==e?void 0:e.length)||!te.showValue)return;const{lineAttr:n={}}=i,o=e[1]<=U.originY+q?e[1]+q:e[1]-q,s=l([e[0],o],{value:z(t)?k.fixedValue:t.value,originX:"center",originY:"center",fill:n.stroke||"#000"});return X.push(s),{obj:s,top:-q}}(_,u,F),function(e,t,r,u){var d,f;if(!["temperature","pain","breathe"].includes(a))return;if(!(null==e?void 0:e.length)&&"temperature"===a&&!ge(t.time))return;if(!(null==e?void 0:e.length)&&"pain"===a)return;if(!t.value&&"breathe"===a)return;const{lineAttr:v={}}=r,{value:m}=u,x=T(t.time);let b,j,w,L,Y,E;if(t.noRise&&p.show){const i=M(p,t)?V(a,S,35):(null==e?void 0:e[1])||0;if(p.text)w=l([x,M(p,t)?i:i+5],{value:p.text.split("").join("\n"),originY:"top",...p.style}),t.value||ae.add(w);else if(t.value){w=s([x,i,i+2*q],{...p.style})}w&&X.push(w),w&&M(p,t)&&de.add(w)}if(null==e?void 0:e[1]){if(t.rise&&c.show&&c.text&&(L=l([x,e[1]-(m?q:0)-5],{value:c.text.split("").join("\n"),originY:"bottom",...c.style}),X.push(L)),t.verified&&(Y=l([x,e[1]-(m?q:0)-5],{value:"v",originX:"center",originY:"bottom",...g}),X.push(Y)),h(t.physicsReduce)||h(t.drugReduce)){const l=V(a,S,null!=(d=t.physicsReduce)?d:t.drugReduce),s=l<e[1]&&(null==te?void 0:te.hypothermyViewCustom)?x+W/2:x;b=i([...e,s,l],{...v,...y.line,...n}),j=o((null==(f=null==y?void 0:y.point)?void 0:f.type)||"circle",{left:s,top:l,...y.point,...n,originY:l===ie?"bottom":"center"}),b&&X.push(b),j&&X.push(j)}t.respirator&&(E=o(k.type,{left:x,top:e[1]-(m?q:0)-5,originX:"center",originY:"bottom",...k.style}),X.push(E))}Object.assign(u,{reduceLine:{obj:b,type:"line"},noRiseText:{obj:w,top:p.text?5:2*q,isFixed:M(p,t)},riseText:{obj:L,top:(m?-q:0)-5},verifiedText:{obj:Y,top:(m?-q:0)-5},reducePoint:{obj:j,type:"reduce"},respirator:{obj:E,top:(m?-q:0)-5}})}(_,u,F,K),function(e,t,i,n){if(!(null==e?void 0:e.length)||!["pulse"].includes(a))return;const o=Math.max(...S),r=Math.min(...S);let u,c,d;const{upArrowShow:p=!1,limitValueShow:f=!1}=i;if(p&&+t.value>180){let t=e[1]-2.5*q,i=[e[1]-q/2,t];t<U.originY&&(t=e[1]+2.5*q,i=[t,e[1]+q/2]),u=s([e[0],i[0],i[1]],x,"up"),X.push(u)}if(f){const i={value:t.value,originX:"center",originY:"center",...b};if(+t.value>o){const t=u?e[1]+q/2+u.height:e[1]+q;c=l([e[0],t],i),X.push(c)}+t.value<r&&(c=l([e[0],e[1]-q],i),X.push(c))}if(w.show&&+t.value<r){const t=e[1];if(w.text)d=l([e[0],e[1]+5],{value:w.text.split("").join("\n"),originY:"top",...w.style});else{const i=t+2*q;d=s([e[0],t,i],{...w.style})}X.push(d)}Object.assign(n,{upArrow:{obj:u},limitValue:{obj:c,top:-q},belowMinValue:{obj:d,top:w.text?5:2*q,moveHide:!0}})}(_,u,F,K),function(n,l,s,u,c,d){let p,f;const{pointAttr:h={},lineAttr:g={},title:y="",key:x,type:b="circle"}=c,j=e.list[u+1],w=he(a,e.list[u].value),L=l&&he(a,j.value),S=()=>"pulse"==a&&s.pacemakerShow?m.value:z(s)?k.type:w&&"number"===Y?0:b;if(n&&l&&!s.breakpoint&&(!w&&!L||C)){f=i([...n,...l],{...g});const{obj:e}=(null==d?void 0:d.reducePoint)||{};if((null==e?void 0:e.top)<n[1]&&(null==te?void 0:te.hypothermyViewCustom)){const t=i([e.left,e.top,...l],{...g});X.unshift(t),Object.assign(d,{reduceRightLine:{obj:t,type:"reduce"}}),f.set("stroke","transparent")}}const M=S(),T=I[u-1],V={origin:{data:z(s)?{...s,value:k.fixedValue}:s,title:y,key:x||"",unit:r.unit,type:a,_type:v(y,a),dataIndex:t,index:u},leftLine:T,rightLine:f,otherObj:d,...s.pacemakerShow&&"pulse"==a?m.style:z(s)?k.style:h,lockMovementX:!0,...H(),...w?{selectable:!1,evented:!1,..."number"===Y?$:{}}:{}};n&&(T?V.leftLine.set("x2",n[0]):V.leftLine=null,p=o(M,{left:n[0],top:w&&!ne[1]?n[1]-5:n[1],...V}));I.push(f),p&&(x===le[1]?re.add(p):z(s)||ue.add(p),function(e){Q.hovered&&(e.on("mouseover",(()=>{ve(e,"hover")})),e.on("mouseout",(()=>{R.show=!1})));if(e.lockMovementX&&e.lockMovementY)return;e.on("moving",(()=>{!function(e){e.setCoords();const t="pain"===e.origin.type?Z:U;e.top<t.originY&&e.set("top",t.originY);e.top>t.endY&&e.set("top",t.endY)}(e),function(e){var t,i;null==(t=e.leftLine)||t.setCoords().set({x2:e.left,y2:e.top}),null==(i=e.rightLine)||i.setCoords().set({x1:e.left,y1:e.top}),Object.values(e.otherObj).forEach((t=>{const{obj:i,type:n="",top:o=0,isFixed:l,moveHide:s=!1}=t||{};"reduce"!==n&&i&&("line"===n?i.setCoords().set({x1:e.left,y1:e.top}):(l||i.setCoords().set({left:e.left,top:e.top+o}),s&&(E.value.remove(i),delete e.otherObj.obj)))})),pe(e)}(e),Q.hovered&&ve(e)})),e.on("mouseup",(t=>{if(R.show=!1,1===t.button){const{type:t}=e.origin,i=P(t,e.top),n={...e.origin,data:{...e.origin.data,value:i}};E.value.discardActiveObject(),O("change",n),xe(n,"change")}}))}(p),A.push(p),ae.add(p))}(_,N,u,j,F,K)})),"pulse"===a){const{key:t}=e;let i=null;se.set(t,A.map(((e,t,n)=>{var o,l;const s=n[t+1];if(s&&f(e.left,1)===f(s.left,1)){const t=e.left-W/2;e.set("left",t+W/4),null==(o=e.rightLine)||o.set("x1",e.left),i=e.left+W/2,s.set("left",i)}else i&&(null==(l=e.leftLine)||l.set("x2",i),e.set("left",i)),i=null;return[e.left,e.top]})))}const F=I.filter((e=>e));E.value.add(...F,...A,...X)}function he(e,t){return"pain"===e&&0==t}function ve(e,t="moving"){const{title:i,unit:n,type:o,data:l}=e.origin;R.point={x:e.left,y:e.top};let s=`时间 ${((null==l?void 0:l.time)||C(e.left)).slice(-5)}`;R.list=[function(){const{drugReduce:r,physicsReduce:u}=l||{},a="hover"===t?l.value:P(o,e.top);if(h(r))return s+=(null==l?void 0:l.changeTime)?"—>"+(null==l?void 0:l.changeTime.slice(-5)):"",`药物降${"pain"==o?"痛":"温"} ${a}—>${r}${n||""}`;if(h(u))return s+=(null==l?void 0:l.changeTime)?"—>"+(null==l?void 0:l.changeTime.slice(-5)):"",`物理降${"pain"==o?"痛":"温"} ${a}—>${u}${n||""}`;return`${i} ${a}${n||""}`}(),s],R.show=!0}function ge(e){const[t]=_,i=j(_),n=t.start,o=i.end,l=c(e);return l>=n&&l<=o}function ye(e,t){const i="pain"===t.type?Z:U;if(!g(e)||!ge(e.time))return;const n=T(e.time),o=V(t.type,t.list,e.value);return[n,o<i.originY?i.originY:o>i.endY?i.endY:o]}function me(e){const t=new Date,i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),o=c(`${t.getFullYear()}-${i}-${n} 23:59:59`),l=c(`${C(e)}:00`);return ee&&l<c(ee)?(D("exceedMin"),!1):!(l>o)||(D("exceedMax"),!1)}function xe(e,t="add"){const{type:i,dataIndex:n,index:o,data:l,key:s}=e,r=ce.find((e=>e.type===i));if("add"===t){const e=d(i)?r.dataList.find((e=>e.enable)):r.dataList[n],t=m(l.time,e.list);e.list.splice(t,0,l)}else r.dataList[n].list[o]=l;be()}function be(){var e;ae.size&&(null==(e=E.value)||e.remove(...function(e){const t=[];return e.forEach((e=>{e&&t.push(e),(null==e?void 0:e.leftLine)&&t.push(null==e?void 0:e.leftLine),(null==e?void 0:e.rightLine)&&t.push(null==e?void 0:e.rightLine),Object.values((null==e?void 0:e.otherObj)||{}).forEach((e=>{(null==e?void 0:e.obj)&&t.push(null==e?void 0:e.obj)}))})),t}([...ae]))),ae.clear(),je()}function je(e){se.clear(),ae.clear(),re.clear(),de.clear(),ue.clear(),ce.forEach((t=>{null==e||e(t),t.dataList.forEach(((e,i)=>{!e.show||d(t.type)&&!e.enable||fe(e,i,t)}))})),pe(),[...ae].forEach((e=>{null==e||e.bringToFront()})),function(){var e;const t=ce.find((e=>"pulse"===e.type));if(!t||!(null==(e=t.dataList)?void 0:e.length))return;if(!t.dataList.some((e=>e.title.includes("脉搏"))))return;const i=Object.assign({},S,F.overlap||{}),l=[];re.size&&[...re].forEach((e=>{[...ue].forEach((t=>{if(t.origin&&p(e,t)){const e=t.origin.key;if(e){const s={left:t.left,top:t.top,...n,hoverCursor:"default"};let r="koumai";"yemai"===e&&(r=e),l.push(o(r,{...i[e],...s}))}}}))})),setTimeout((()=>{E.value.add(...l),l.forEach((e=>{null==e||e.bringToFront(),ae.add(e)}))}))}()}return je((e=>function(e){if("temperature"!==e.type||!e.positionLine)return;const t=V(e.type,e.list,e.positionLine.value),n=i([G,t,N,t],e.positionLine);E.value.add(n)}(e))),E.value.on("mouse:up",(e=>{const{button:t,target:i,pointer:n={}}=e;if(3===t){if(!$.event.evented)return;const{x:e=0,y:t=0}=n;if(e>=G&&e<=N&&t>=B&&t<=J){I.point={x:e,y:t},I.show=!0;const{type:o}=(null==i?void 0:i.origin)||{};if(i&&["temperature","pain"].includes(o))"temperature"===o&&(I.list=[...k]),"pain"===o&&(I.list=[...L]),I.target=i;else{I.target=null,I.list=["新增节点"],K.forEach((i=>{if(!X([...ae],e,"_type").includes(i.bigType)){const e=["pain"].includes(i.bigType)?Z:U;t>=e.originY&&t<=e.endY&&I.list.push({renderItem:A?A(i):()=>i.title,origin:{title:i.title,unit:i.unit,type:a(i.bigType),dataIndex:i.dataIndex,key:i.key},pointer:n})}}));const i=me(e);i&&1!==I.list.length||(I.show=!1,1===I.list.length&&i&&D("repeat"))}}}if(1===t){if(i)return;const{x:e=0,y:t=0}=n;e>=G&&e<=N&&t>0&&t<ie&&O("click:grid",{x:e,y:t,time:C(e)})}})),{clickMenu:function({item:e,target:t}){if(t){const{data:i,type:n,dataIndex:o,index:l}=t.origin,s=y(i,[...k,...L]);s[`${e.type}`]=e.value,s.changeTime=u(new Date,"yyyy-MM-dd HH:mm"),d(n)&&(s.key=t.origin.key);const r={...t.origin,data:s};O("change",r),xe(r,"change")}else{const t={data:{time:C(e.pointer.x),value:P(e.origin.type,e.pointer.y),...d(e.origin.type)?{key:e.origin.key}:{}},...e.origin};O("add",t),xe(t)}},setPopup:ve,isAddPoint:me,updateData:xe,redrawPoints:be,gridPoints:ae,fixedNoRisePoints:de}}function M(e,t){return e.fixed||!t.value&&0!==t.value}export{E as useCenter};
|
@@ -466,11 +466,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
466
466
|
hide: boolean;
|
467
467
|
}>;
|
468
468
|
draggable: boolean;
|
469
|
+
fieldDescribeMode: "column" | "tooltip";
|
470
|
+
isFieldSet: boolean;
|
469
471
|
idx: number;
|
470
472
|
isHighlight: boolean;
|
471
473
|
isHighlightRow: boolean;
|
472
|
-
isFieldSet: boolean;
|
473
|
-
fieldDescribeMode: "column" | "tooltip";
|
474
474
|
}>;
|
475
475
|
EditDialog: import("vue").DefineComponent<{
|
476
476
|
visible: {
|
@@ -488,11 +488,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
488
488
|
hide: boolean;
|
489
489
|
}>;
|
490
490
|
draggable: boolean;
|
491
|
+
fieldDescribeMode: "column" | "tooltip";
|
492
|
+
isFieldSet: boolean;
|
491
493
|
idx: number;
|
492
494
|
isHighlight: boolean;
|
493
495
|
isHighlightRow: boolean;
|
494
|
-
isFieldSet: boolean;
|
495
|
-
fieldDescribeMode: "column" | "tooltip";
|
496
496
|
}>;
|
497
497
|
setStyle: typeof setStyle;
|
498
498
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "save" | "reset")[], "close" | "save" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -612,11 +612,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
612
612
|
hide: boolean;
|
613
613
|
}>;
|
614
614
|
draggable: boolean;
|
615
|
+
fieldDescribeMode: "column" | "tooltip";
|
616
|
+
isFieldSet: boolean;
|
615
617
|
idx: number;
|
616
618
|
isHighlight: boolean;
|
617
619
|
isHighlightRow: boolean;
|
618
|
-
isFieldSet: boolean;
|
619
|
-
fieldDescribeMode: "column" | "tooltip";
|
620
620
|
}>;
|
621
621
|
isArray: {
|
622
622
|
(value?: any): value is any[];
|
@@ -724,10 +724,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
724
724
|
rowDraggable: boolean;
|
725
725
|
showSeq: boolean;
|
726
726
|
footerFlag: boolean;
|
727
|
-
fieldDescribeMode: "column" | "tooltip";
|
728
727
|
customColumns: FieldSetColumnItem[];
|
729
728
|
showSearch: boolean;
|
730
729
|
showSortPriority: boolean;
|
731
730
|
showHeadFilter: boolean;
|
731
|
+
fieldDescribeMode: "column" | "tooltip";
|
732
732
|
}>;
|
733
733
|
export default _default;
|
@@ -317,10 +317,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
317
317
|
hide: boolean;
|
318
318
|
}>;
|
319
319
|
draggable: boolean;
|
320
|
+
fieldDescribeMode: "column" | "tooltip";
|
321
|
+
isFieldSet: boolean;
|
320
322
|
idx: number;
|
321
323
|
isHighlight: boolean;
|
322
324
|
isHighlightRow: boolean;
|
323
|
-
isFieldSet: boolean;
|
324
|
-
fieldDescribeMode: "column" | "tooltip";
|
325
325
|
}>;
|
326
326
|
export default _default;
|
@@ -71,7 +71,6 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
71
71
|
currentReferenceMsg: import("../../shared/types").AnyObject | null;
|
72
72
|
showVideo: boolean;
|
73
73
|
currentAVMsg: import("../../shared/types").AnyObject;
|
74
|
-
userList: import("../../shared/types").AnyObject[];
|
75
74
|
currentGroupUser: import("../../shared/types").AnyObject[];
|
76
75
|
showMultipleVideo: boolean;
|
77
76
|
};
|
@@ -84,7 +83,6 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
84
83
|
setCurrentSessionItem: (item: import("../../shared/types").AnyObject) => void;
|
85
84
|
groupSessionList: import("../../shared/types").AnyObject[];
|
86
85
|
init: () => Promise<void>;
|
87
|
-
handleUserSearch: () => Promise<void>;
|
88
86
|
initWebSocket: () => void;
|
89
87
|
subscribeSessionList: () => void;
|
90
88
|
handleDefaultSession: () => void;
|
@@ -560,11 +558,15 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
560
558
|
}>>;
|
561
559
|
emit: (event: "comfirm", ...args: any[]) => void;
|
562
560
|
state: import("./src/types").IState;
|
561
|
+
listRef: import("vue").Ref<any>;
|
562
|
+
keyword: import("vue").Ref<any>;
|
563
563
|
showModal: import("vue").Ref<boolean>;
|
564
564
|
checkedOptions: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
565
565
|
options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
566
566
|
groupName: import("vue").Ref<string>;
|
567
567
|
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
568
|
+
userList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
569
|
+
handleInput: () => void;
|
568
570
|
_disabledIds: import("vue").ComputedRef<any[]>;
|
569
571
|
defaultOptions: import("vue").ComputedRef<{
|
570
572
|
id: any;
|
@@ -575,21 +577,23 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
575
577
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
576
578
|
allChecked: import("vue").WritableComputedRef<boolean>;
|
577
579
|
handlePositiveClick: () => Promise<void>;
|
578
|
-
|
580
|
+
updateCheckedSourceIds: () => void;
|
581
|
+
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
579
582
|
actionType: "check" | "uncheck";
|
580
583
|
value: string | number;
|
581
584
|
}) => void;
|
582
|
-
renderSourceLabel: ({ option }: {
|
583
|
-
option: import("../../shared/types").AnyObject;
|
584
|
-
}) => JSX.Element;
|
585
585
|
closeTag: (id: string) => void;
|
586
586
|
renderTargetList: () => JSX.Element[] | null;
|
587
587
|
NModal: any;
|
588
588
|
NButton: any;
|
589
|
+
NSpace: any;
|
590
|
+
NAvatar: any;
|
589
591
|
NIcon: any;
|
592
|
+
NTag: any;
|
590
593
|
NInput: any;
|
591
594
|
NCheckbox: any;
|
592
595
|
NCheckboxGroup: any;
|
596
|
+
SearchOutline: 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<{}>>, {}>;
|
593
597
|
AddOutline: 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<{}>>, {}>;
|
594
598
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
595
599
|
title: {
|
@@ -919,11 +923,15 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
919
923
|
}>>;
|
920
924
|
emit: (event: "comfirm", ...args: any[]) => void;
|
921
925
|
state: import("./src/types").IState;
|
926
|
+
listRef: import("vue").Ref<any>;
|
927
|
+
keyword: import("vue").Ref<any>;
|
922
928
|
showModal: import("vue").Ref<boolean>;
|
923
929
|
checkedOptions: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
924
930
|
options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
925
931
|
groupName: import("vue").Ref<string>;
|
926
932
|
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
933
|
+
userList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
934
|
+
handleInput: () => void;
|
927
935
|
_disabledIds: import("vue").ComputedRef<any[]>;
|
928
936
|
defaultOptions: import("vue").ComputedRef<{
|
929
937
|
id: any;
|
@@ -934,21 +942,23 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
934
942
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
935
943
|
allChecked: import("vue").WritableComputedRef<boolean>;
|
936
944
|
handlePositiveClick: () => Promise<void>;
|
937
|
-
|
945
|
+
updateCheckedSourceIds: () => void;
|
946
|
+
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
938
947
|
actionType: "check" | "uncheck";
|
939
948
|
value: string | number;
|
940
949
|
}) => void;
|
941
|
-
renderSourceLabel: ({ option }: {
|
942
|
-
option: import("../../shared/types").AnyObject;
|
943
|
-
}) => JSX.Element;
|
944
950
|
closeTag: (id: string) => void;
|
945
951
|
renderTargetList: () => JSX.Element[] | null;
|
946
952
|
NModal: any;
|
947
953
|
NButton: any;
|
954
|
+
NSpace: any;
|
955
|
+
NAvatar: any;
|
948
956
|
NIcon: any;
|
957
|
+
NTag: any;
|
949
958
|
NInput: any;
|
950
959
|
NCheckbox: any;
|
951
960
|
NCheckboxGroup: any;
|
961
|
+
SearchOutline: 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<{}>>, {}>;
|
952
962
|
AddOutline: 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<{}>>, {}>;
|
953
963
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
954
964
|
title: {
|
@@ -992,16 +1002,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
992
1002
|
inputRef: import("vue").Ref<any>;
|
993
1003
|
showSearch: import("vue").Ref<boolean>;
|
994
1004
|
keyword: import("vue").Ref<any>;
|
995
|
-
userList: import("vue").Ref<any>;
|
996
1005
|
state: import("./src/types").IState;
|
997
1006
|
openSession: (item: import("../../shared/types").AnyObject) => Promise<void>;
|
998
|
-
|
999
|
-
page: number;
|
1000
|
-
hasMore: boolean;
|
1001
|
-
};
|
1007
|
+
userList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
1002
1008
|
handleInput: () => void;
|
1003
|
-
handleSearch: () => Promise<void>;
|
1004
|
-
resetAndSearch: () => void;
|
1005
1009
|
addSession: (userId: string) => Promise<void>;
|
1006
1010
|
NPopover: any;
|
1007
1011
|
NButton: any;
|
@@ -1054,11 +1058,15 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1054
1058
|
}>>;
|
1055
1059
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1056
1060
|
state: import("./src/types").IState;
|
1061
|
+
listRef: import("vue").Ref<any>;
|
1062
|
+
keyword: import("vue").Ref<any>;
|
1057
1063
|
showModal: import("vue").Ref<boolean>;
|
1058
1064
|
checkedOptions: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
1059
1065
|
options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
1060
1066
|
groupName: import("vue").Ref<string>;
|
1061
1067
|
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
1068
|
+
userList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
1069
|
+
handleInput: () => void;
|
1062
1070
|
_disabledIds: import("vue").ComputedRef<any[]>;
|
1063
1071
|
defaultOptions: import("vue").ComputedRef<{
|
1064
1072
|
id: any;
|
@@ -1069,21 +1077,23 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1069
1077
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
1070
1078
|
allChecked: import("vue").WritableComputedRef<boolean>;
|
1071
1079
|
handlePositiveClick: () => Promise<void>;
|
1072
|
-
|
1080
|
+
updateCheckedSourceIds: () => void;
|
1081
|
+
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
1073
1082
|
actionType: "check" | "uncheck";
|
1074
1083
|
value: string | number;
|
1075
1084
|
}) => void;
|
1076
|
-
renderSourceLabel: ({ option }: {
|
1077
|
-
option: import("../../shared/types").AnyObject;
|
1078
|
-
}) => JSX.Element;
|
1079
1085
|
closeTag: (id: string) => void;
|
1080
1086
|
renderTargetList: () => JSX.Element[] | null;
|
1081
1087
|
NModal: any;
|
1082
1088
|
NButton: any;
|
1089
|
+
NSpace: any;
|
1090
|
+
NAvatar: any;
|
1083
1091
|
NIcon: any;
|
1092
|
+
NTag: any;
|
1084
1093
|
NInput: any;
|
1085
1094
|
NCheckbox: any;
|
1086
1095
|
NCheckboxGroup: any;
|
1096
|
+
SearchOutline: 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<{}>>, {}>;
|
1087
1097
|
AddOutline: 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<{}>>, {}>;
|
1088
1098
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1089
1099
|
title: {
|
@@ -1164,7 +1174,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1164
1174
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
1165
1175
|
MultipleVideo: import("vue").DefineComponent<{}, {
|
1166
1176
|
selfVideoRef: import("vue").Ref<any>;
|
1167
|
-
remoteUsers: import("vue").Ref<
|
1177
|
+
remoteUsers: import("vue").Ref<{
|
1178
|
+
id: string;
|
1179
|
+
name: string;
|
1180
|
+
}[]>;
|
1168
1181
|
state: import("./src/types").IState;
|
1169
1182
|
sendMessage: (message: {
|
1170
1183
|
chatType?: string | undefined;
|
@@ -1192,11 +1205,11 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1192
1205
|
installEventHandlers: () => void;
|
1193
1206
|
uninstallEventHandlers: () => void;
|
1194
1207
|
handleRemoteVideoAvailable: (event: any) => Promise<void>;
|
1195
|
-
handleRemoteAudioAvailable: (event: any) => void
|
1196
|
-
handleRemoteUserEnter: (event: any) => void
|
1208
|
+
handleRemoteAudioAvailable: (event: any) => Promise<void>;
|
1209
|
+
handleRemoteUserEnter: (event: any) => Promise<void>;
|
1210
|
+
getUserName: (userId: string) => Promise<any>;
|
1197
1211
|
handleRemoteUserExit: (event: any) => void;
|
1198
1212
|
handleError: (error: any) => void;
|
1199
|
-
getName: (id: string) => any;
|
1200
1213
|
NButton: any;
|
1201
1214
|
NIcon: any;
|
1202
1215
|
ChatAdd: import("vue").DefineComponent<{
|
@@ -1243,11 +1256,15 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1243
1256
|
}>>;
|
1244
1257
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1245
1258
|
state: import("./src/types").IState;
|
1259
|
+
listRef: import("vue").Ref<any>;
|
1260
|
+
keyword: import("vue").Ref<any>;
|
1246
1261
|
showModal: import("vue").Ref<boolean>;
|
1247
1262
|
checkedOptions: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
1248
1263
|
options: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
1249
1264
|
groupName: import("vue").Ref<string>;
|
1250
1265
|
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
1266
|
+
userList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
1267
|
+
handleInput: () => void;
|
1251
1268
|
_disabledIds: import("vue").ComputedRef<any[]>;
|
1252
1269
|
defaultOptions: import("vue").ComputedRef<{
|
1253
1270
|
id: any;
|
@@ -1258,21 +1275,23 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1258
1275
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
1259
1276
|
allChecked: import("vue").WritableComputedRef<boolean>;
|
1260
1277
|
handlePositiveClick: () => Promise<void>;
|
1261
|
-
|
1278
|
+
updateCheckedSourceIds: () => void;
|
1279
|
+
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
1262
1280
|
actionType: "check" | "uncheck";
|
1263
1281
|
value: string | number;
|
1264
1282
|
}) => void;
|
1265
|
-
renderSourceLabel: ({ option }: {
|
1266
|
-
option: import("../../shared/types").AnyObject;
|
1267
|
-
}) => JSX.Element;
|
1268
1283
|
closeTag: (id: string) => void;
|
1269
1284
|
renderTargetList: () => JSX.Element[] | null;
|
1270
1285
|
NModal: any;
|
1271
1286
|
NButton: any;
|
1287
|
+
NSpace: any;
|
1288
|
+
NAvatar: any;
|
1272
1289
|
NIcon: any;
|
1290
|
+
NTag: any;
|
1273
1291
|
NInput: any;
|
1274
1292
|
NCheckbox: any;
|
1275
1293
|
NCheckboxGroup: any;
|
1294
|
+
SearchOutline: 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<{}>>, {}>;
|
1276
1295
|
AddOutline: 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<{}>>, {}>;
|
1277
1296
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1278
1297
|
title: {
|
@@ -76,7 +76,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
76
76
|
currentReferenceMsg: AnyObject | null;
|
77
77
|
showVideo: boolean;
|
78
78
|
currentAVMsg: AnyObject;
|
79
|
-
userList: AnyObject[];
|
80
79
|
currentGroupUser: AnyObject[];
|
81
80
|
showMultipleVideo: boolean;
|
82
81
|
};
|
@@ -89,7 +88,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
89
88
|
setCurrentSessionItem: (item: AnyObject) => void;
|
90
89
|
groupSessionList: AnyObject[];
|
91
90
|
init: () => Promise<void>;
|
92
|
-
handleUserSearch: () => Promise<void>;
|
93
91
|
initWebSocket: () => void;
|
94
92
|
subscribeSessionList: () => void;
|
95
93
|
handleDefaultSession: () => void;
|
@@ -565,11 +563,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
565
563
|
}>>;
|
566
564
|
emit: (event: "comfirm", ...args: any[]) => void;
|
567
565
|
state: IState;
|
566
|
+
listRef: import("vue").Ref<any>;
|
567
|
+
keyword: import("vue").Ref<any>;
|
568
568
|
showModal: import("vue").Ref<boolean>;
|
569
569
|
checkedOptions: import("vue").Ref<AnyObject[]>;
|
570
570
|
options: import("vue").Ref<AnyObject[]>;
|
571
571
|
groupName: import("vue").Ref<string>;
|
572
572
|
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
573
|
+
userList: import("vue").Ref<AnyObject[]>;
|
574
|
+
handleInput: () => void;
|
573
575
|
_disabledIds: import("vue").ComputedRef<any[]>;
|
574
576
|
defaultOptions: import("vue").ComputedRef<{
|
575
577
|
id: any;
|
@@ -580,21 +582,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
580
582
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
581
583
|
allChecked: import("vue").WritableComputedRef<boolean>;
|
582
584
|
handlePositiveClick: () => Promise<void>;
|
583
|
-
|
585
|
+
updateCheckedSourceIds: () => void;
|
586
|
+
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
584
587
|
actionType: "check" | "uncheck";
|
585
588
|
value: string | number;
|
586
589
|
}) => void;
|
587
|
-
renderSourceLabel: ({ option }: {
|
588
|
-
option: AnyObject;
|
589
|
-
}) => JSX.Element;
|
590
590
|
closeTag: (id: string) => void;
|
591
591
|
renderTargetList: () => JSX.Element[] | null;
|
592
592
|
NModal: any;
|
593
593
|
NButton: any;
|
594
|
+
NSpace: any;
|
595
|
+
NAvatar: any;
|
594
596
|
NIcon: any;
|
597
|
+
NTag: any;
|
595
598
|
NInput: any;
|
596
599
|
NCheckbox: any;
|
597
600
|
NCheckboxGroup: any;
|
601
|
+
SearchOutline: 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<{}>>, {}>;
|
598
602
|
AddOutline: 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<{}>>, {}>;
|
599
603
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
600
604
|
title: {
|
@@ -924,11 +928,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
924
928
|
}>>;
|
925
929
|
emit: (event: "comfirm", ...args: any[]) => void;
|
926
930
|
state: IState;
|
931
|
+
listRef: import("vue").Ref<any>;
|
932
|
+
keyword: import("vue").Ref<any>;
|
927
933
|
showModal: import("vue").Ref<boolean>;
|
928
934
|
checkedOptions: import("vue").Ref<AnyObject[]>;
|
929
935
|
options: import("vue").Ref<AnyObject[]>;
|
930
936
|
groupName: import("vue").Ref<string>;
|
931
937
|
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
938
|
+
userList: import("vue").Ref<AnyObject[]>;
|
939
|
+
handleInput: () => void;
|
932
940
|
_disabledIds: import("vue").ComputedRef<any[]>;
|
933
941
|
defaultOptions: import("vue").ComputedRef<{
|
934
942
|
id: any;
|
@@ -939,21 +947,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
939
947
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
940
948
|
allChecked: import("vue").WritableComputedRef<boolean>;
|
941
949
|
handlePositiveClick: () => Promise<void>;
|
942
|
-
|
950
|
+
updateCheckedSourceIds: () => void;
|
951
|
+
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
943
952
|
actionType: "check" | "uncheck";
|
944
953
|
value: string | number;
|
945
954
|
}) => void;
|
946
|
-
renderSourceLabel: ({ option }: {
|
947
|
-
option: AnyObject;
|
948
|
-
}) => JSX.Element;
|
949
955
|
closeTag: (id: string) => void;
|
950
956
|
renderTargetList: () => JSX.Element[] | null;
|
951
957
|
NModal: any;
|
952
958
|
NButton: any;
|
959
|
+
NSpace: any;
|
960
|
+
NAvatar: any;
|
953
961
|
NIcon: any;
|
962
|
+
NTag: any;
|
954
963
|
NInput: any;
|
955
964
|
NCheckbox: any;
|
956
965
|
NCheckboxGroup: any;
|
966
|
+
SearchOutline: 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<{}>>, {}>;
|
957
967
|
AddOutline: 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<{}>>, {}>;
|
958
968
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
959
969
|
title: {
|
@@ -997,16 +1007,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
997
1007
|
inputRef: import("vue").Ref<any>;
|
998
1008
|
showSearch: import("vue").Ref<boolean>;
|
999
1009
|
keyword: import("vue").Ref<any>;
|
1000
|
-
userList: import("vue").Ref<any>;
|
1001
1010
|
state: IState;
|
1002
1011
|
openSession: (item: AnyObject) => Promise<void>;
|
1003
|
-
|
1004
|
-
page: number;
|
1005
|
-
hasMore: boolean;
|
1006
|
-
};
|
1012
|
+
userList: import("vue").Ref<AnyObject[]>;
|
1007
1013
|
handleInput: () => void;
|
1008
|
-
handleSearch: () => Promise<void>;
|
1009
|
-
resetAndSearch: () => void;
|
1010
1014
|
addSession: (userId: string) => Promise<void>;
|
1011
1015
|
NPopover: any;
|
1012
1016
|
NButton: any;
|
@@ -1059,11 +1063,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
1059
1063
|
}>>;
|
1060
1064
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1061
1065
|
state: IState;
|
1066
|
+
listRef: import("vue").Ref<any>;
|
1067
|
+
keyword: import("vue").Ref<any>;
|
1062
1068
|
showModal: import("vue").Ref<boolean>;
|
1063
1069
|
checkedOptions: import("vue").Ref<AnyObject[]>;
|
1064
1070
|
options: import("vue").Ref<AnyObject[]>;
|
1065
1071
|
groupName: import("vue").Ref<string>;
|
1066
1072
|
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
1073
|
+
userList: import("vue").Ref<AnyObject[]>;
|
1074
|
+
handleInput: () => void;
|
1067
1075
|
_disabledIds: import("vue").ComputedRef<any[]>;
|
1068
1076
|
defaultOptions: import("vue").ComputedRef<{
|
1069
1077
|
id: any;
|
@@ -1074,21 +1082,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
1074
1082
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
1075
1083
|
allChecked: import("vue").WritableComputedRef<boolean>;
|
1076
1084
|
handlePositiveClick: () => Promise<void>;
|
1077
|
-
|
1085
|
+
updateCheckedSourceIds: () => void;
|
1086
|
+
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
1078
1087
|
actionType: "check" | "uncheck";
|
1079
1088
|
value: string | number;
|
1080
1089
|
}) => void;
|
1081
|
-
renderSourceLabel: ({ option }: {
|
1082
|
-
option: AnyObject;
|
1083
|
-
}) => JSX.Element;
|
1084
1090
|
closeTag: (id: string) => void;
|
1085
1091
|
renderTargetList: () => JSX.Element[] | null;
|
1086
1092
|
NModal: any;
|
1087
1093
|
NButton: any;
|
1094
|
+
NSpace: any;
|
1095
|
+
NAvatar: any;
|
1088
1096
|
NIcon: any;
|
1097
|
+
NTag: any;
|
1089
1098
|
NInput: any;
|
1090
1099
|
NCheckbox: any;
|
1091
1100
|
NCheckboxGroup: any;
|
1101
|
+
SearchOutline: 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<{}>>, {}>;
|
1092
1102
|
AddOutline: 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<{}>>, {}>;
|
1093
1103
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1094
1104
|
title: {
|
@@ -1169,7 +1179,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1169
1179
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
1170
1180
|
MultipleVideo: import("vue").DefineComponent<{}, {
|
1171
1181
|
selfVideoRef: import("vue").Ref<any>;
|
1172
|
-
remoteUsers: import("vue").Ref<
|
1182
|
+
remoteUsers: import("vue").Ref<{
|
1183
|
+
id: string;
|
1184
|
+
name: string;
|
1185
|
+
}[]>;
|
1173
1186
|
state: IState;
|
1174
1187
|
sendMessage: (message: {
|
1175
1188
|
chatType?: string | undefined;
|
@@ -1197,11 +1210,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
1197
1210
|
installEventHandlers: () => void;
|
1198
1211
|
uninstallEventHandlers: () => void;
|
1199
1212
|
handleRemoteVideoAvailable: (event: any) => Promise<void>;
|
1200
|
-
handleRemoteAudioAvailable: (event: any) => void
|
1201
|
-
handleRemoteUserEnter: (event: any) => void
|
1213
|
+
handleRemoteAudioAvailable: (event: any) => Promise<void>;
|
1214
|
+
handleRemoteUserEnter: (event: any) => Promise<void>;
|
1215
|
+
getUserName: (userId: string) => Promise<any>;
|
1202
1216
|
handleRemoteUserExit: (event: any) => void;
|
1203
1217
|
handleError: (error: any) => void;
|
1204
|
-
getName: (id: string) => any;
|
1205
1218
|
NButton: any;
|
1206
1219
|
NIcon: any;
|
1207
1220
|
ChatAdd: import("vue").DefineComponent<{
|
@@ -1248,11 +1261,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
1248
1261
|
}>>;
|
1249
1262
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1250
1263
|
state: IState;
|
1264
|
+
listRef: import("vue").Ref<any>;
|
1265
|
+
keyword: import("vue").Ref<any>;
|
1251
1266
|
showModal: import("vue").Ref<boolean>;
|
1252
1267
|
checkedOptions: import("vue").Ref<AnyObject[]>;
|
1253
1268
|
options: import("vue").Ref<AnyObject[]>;
|
1254
1269
|
groupName: import("vue").Ref<string>;
|
1255
1270
|
checkedSourceIds: import("vue").Ref<(string | number)[]>;
|
1271
|
+
userList: import("vue").Ref<AnyObject[]>;
|
1272
|
+
handleInput: () => void;
|
1256
1273
|
_disabledIds: import("vue").ComputedRef<any[]>;
|
1257
1274
|
defaultOptions: import("vue").ComputedRef<{
|
1258
1275
|
id: any;
|
@@ -1263,21 +1280,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
1263
1280
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
1264
1281
|
allChecked: import("vue").WritableComputedRef<boolean>;
|
1265
1282
|
handlePositiveClick: () => Promise<void>;
|
1266
|
-
|
1283
|
+
updateCheckedSourceIds: () => void;
|
1284
|
+
handleSourceIdsUpdate: (value: (string | number)[], meta: {
|
1267
1285
|
actionType: "check" | "uncheck";
|
1268
1286
|
value: string | number;
|
1269
1287
|
}) => void;
|
1270
|
-
renderSourceLabel: ({ option }: {
|
1271
|
-
option: AnyObject;
|
1272
|
-
}) => JSX.Element;
|
1273
1288
|
closeTag: (id: string) => void;
|
1274
1289
|
renderTargetList: () => JSX.Element[] | null;
|
1275
1290
|
NModal: any;
|
1276
1291
|
NButton: any;
|
1292
|
+
NSpace: any;
|
1293
|
+
NAvatar: any;
|
1277
1294
|
NIcon: any;
|
1295
|
+
NTag: any;
|
1278
1296
|
NInput: any;
|
1279
1297
|
NCheckbox: any;
|
1280
1298
|
NCheckboxGroup: any;
|
1299
|
+
SearchOutline: 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<{}>>, {}>;
|
1281
1300
|
AddOutline: 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<{}>>, {}>;
|
1282
1301
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "comfirm"[], "comfirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1283
1302
|
title: {
|