cnhis-design-vue 3.2.15-beta.5 → 3.2.15-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/iho-chat/index.d.ts +252 -18
- package/es/components/iho-chat/src/Index.vue.d.ts +252 -18
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +9 -0
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +3 -0
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +34 -34
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +3 -0
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +2 -0
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +202 -3
- package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +1 -0
- package/es/components/iho-chat/src/components/userItemRender.d.ts +18 -0
- package/es/components/iho-chat/src/components/userItemRender.js +1 -0
- package/es/components/iho-chat/src/hooks/useData.d.ts +2 -0
- package/es/components/iho-chat/src/hooks/useData.js +1 -1
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +1 -0
- package/es/components/iho-chat/src/types/index.d.ts +2 -0
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/shared/hooks/useLevelSearchCascader.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -1 +1 @@
|
|
1
|
-
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{defaultStyle as t,drawText as n,defaultRectStyle as i,drawTextGroup as o,drawLine as r,drawPoint as l}from"../useDraw.js";import{useGrid as s}from"../useGrid.js";import{useBirthProcessCumputedPoint as c}from"../useCumputedPoint.js";import"../useEvent.js";import"../useShadow.js";import{drawScaleNumber as u}from"../useScaleColumn.js";import{useCommon as a}from"../useCommon.js";import"vue";import{getScaleNumberList as f}from"../../utils/index.js";import{filter as d,omit as h,has as p,isArray as m}from"lodash-es";import"date-fns";import{OTHER_MENU as g}from"../../constants/index.js";import"@vueuse/shared";import"naive-ui";import"@vueuse/core";import"./useOther.js";import"../../../../../shared/utils/index.js";const v=d(g,(e=>"add"!==e.type));function L(e,t,[n,i]){var o,r;let l=null;for(let s=0;s<e.length;s++){const c=e[s],{left:u,top:a,width:f,height:d}=c;if("tree"===t&&!(null==(o=c.children)?void 0:o.length)&&i>=a&&i<=a+d){l=c;break}if("treeMenu"===t&&n>=u&&n<=u+f&&i>=a&&i<=a+d){l=c;break}if(null==(r=c.children)?void 0:r.length){const e=L(c.children,t,[n,i]);if(e){l=e;break}}}return l?h(l,["uuid","left","top","width","height"]):null}function x(d,g,x,y,w){const{computedX:X,getXValue:C}=c(g),{originX:b,endX:Y,xCellWidth:k,originYXAxis:S,top:j,canvasWidth:M,borderStyle:$,treeData:G,xAxis:E,topGridYNumber:I,topGridOriginY:P,topGridYCellHeight:R,topGridEndY:T,event:z,extraMenuConfig:A,getTreeData:V,grid:D}=g,{getPointEventProps:B}=a(d,x,g);let N=V();const W=new Set;function F(){const{show:e=!0,range:t}=(null==j?void 0:j.scaleValue)||{};return e&&m(t)}function H(){!function e(t){t.forEach((t=>{var i;(null==(i=t.children)?void 0:i.length)?e(t.children):(function(e){if(!(null==e?void 0:e.data)||!Array.isArray(e.data))return;const{lineStyle:t}=j.dataStyle||{},n=e.top,i=n+R,o=i-R/2,l={y1:n,y2:i,halfY:o};let s=null;const c=h(e,["data","width","height","left","top"]);e.data.forEach(((n,i,u)=>{const a={...c,data:n,index:i},{time:f,continue:d}=n,[h,p]=f,m=h&&X(h),g=p&&X(p),v=q({...l,x:m},{isCustomIcon:!g&&!d,isContinue:!1,isLeft:!0}),L=q({...l,x:g},{isCustomIcon:!1,isContinue:!!d});let x,y;if((v||m<b)&&(L||g>Y)){const n=v?m:b,i=L?g:Y;x="wavy"===e.lineType?O([n,i,o],t):r([n,o,i,o],t),y=U({width:i-n-k,left:n+(i-n)/2,top:o,onlyRect:!0}),y.origin=a,x.centerLineRect=y}const w={startLine:v,centerLine:x,endLine:L};let C,S;!function(e,t,n){const{startLine:i,centerLine:o,endLine:r}=t,{startLine:l,endLine:s}=e||{};if(i){i.origin=n;const e={x1:b,x2:r?r.left:Y};s?(e.x1=s.left,s.limitX.x2=i.left,i.prevLine=s,s.nextLine=i):l&&(e.x1=l.left,l.limitX.x2=i.left,i.prevLine=l,l.nextLine=i),i.limitX=e,o&&(i.centerLine=o)}if(r){r.origin=n;const e={x1:i?i.left:b,x2:Y};r.limitX=e,o&&(r.centerLine=o)}o&&(o.origin=n);i&&r&&(i.nearLine=r,r.nearLine=i)}(s,w,a),s&&(C=_(u[i-1],s,o,a)),i===u.length-1&&(S=_(n,w,o,a)),s=w,x&&W.add(x),y&&W.add(y),v&&W.add(v),L&&W.add(L),C&&W.add(C),S&&W.add(S)}))}(t),function(e){if(F())return;const t=M-Y,{divider:i={},style:o}=(null==j?void 0:j.total)||{};if(i.show){const n=e.top+R,o=r([Y,n,Y+t,n],i.style);d.value.add(o)}if(!(null==e?void 0:e.total))return;const l=e.top+R/2,s=Y+t/2,c=n([s,l],{value:e.total,...o}),u=M-$.strokeWidth;s+c.width>u&&c.set({originX:"right",left:u});c&&d.value.add(c)}(t))}))}(N),W.size&&d.value.add(...W)}function O([n,i,o],r){const{stroke:l="#000"}=r||{},{subXCell:s=6}=D,c=k*s,u=R/2,a=c/2,f=o-u,d=o+u;if(n>i)return;let h=n,p=`M${h} ${o}`,m=0;for(;i-h>=c;)p+=` Q${h+a} ${m%2==0?f:d} ${h+c} ${o}`,h+=c,m++;i-h<c&&(p+=` L${i} ${o}`);const g=new e.Gradient({gradientUnits:"pencentage",coords:{x1:i,y1:0,x2:0,y2:0},colorStops:[{offset:0,color:l+"90"},{offset:.5,color:l+"50"},{offset:1,color:l+"20"}]}),v=new e.Path(p,{fill:g,objectCaching:!1,...r,...t});return v.pathPointer=[n,i,o],v.selfStyle=r,v}function _(e,t,n,i){let o;const{content:r}=e.value||{},{startLine:s,endLine:c,centerLine:u}=t;if(r&&(s||u||c)){const{textStyle:e}=j.dataStyle||{};o=l(r,{fontSize:12,...e,backgroundColor:"#fff",lockMovementX:!0,lockMovementY:!0});const u=Q(o,t,n);o&&(o.set(u),o.origin=i,J(o),s&&(s.text=o),c&&(c.text=o))}return o}function Q(e,t,n){var i,o,r;const l=e.width+1,{startLine:s,centerLine:c,endLine:u}=t,a={top:n,originX:"center",originY:"center"},f=null!=(r=null!=(o=null==c?void 0:c.x1)?o:null==(i=null==c?void 0:c.pathPointer)?void 0:i[0])?r:0;return c&&l<=c.width?a.left=f+c.width/2:u&&l<=u.limitX.x2-u.left?(a.originX="left",a.left=u.left+1):s&&!u&&l<=s.limitX.x2-s.left?(a.originX="left",a.left=s.left+(s.isCustomIcon?5:1)):s&&l<=s.left-s.limitX.x1?(a.originX="right",a.left=s.left-(s.isCustomIcon?5:1)):c?(a.originY="top",a.left=f+c.width/2,a.top=n+1,a.fontSize=10):s&&(a.originX="left",a.originY="top",a.fontSize=10,a.left=s.left,a.top=n+1),e.bringToFront(),a}function U(t){const{bindLine:n,width:i,left:o,top:r,props:l,onlyRect:s=!1}=t,c={originX:"center",originY:"center",hasControls:!1,hasBorders:!1,hoverCursor:"pointer",left:o,top:r},u=new e.Rect({width:i,height:R,fill:"transparent",...c});if(s)return u.set({lockMovementX:!0,lockMovementY:!0}),J(u),u;const a=new e.Group([n,u],{...c,...l,lockMovementY:!0});return J(a),a}function q(e,{isCustomIcon:t,isContinue:n,isLeft:i}){const{x:o,y1:s,y2:c,halfY:u}=e;if(!o||o<b||o>Y)return;const{lineStyle:a}=j.dataStyle||{};let f;const d={left:o,top:u};f=t?l("circle",{fill:a.stroke,...d}):n?l(">",{fill:a.stroke,...d,fontSize:18}):r([o,s,o,u],a);const h=U({...d,width:k,bindLine:f,props:B()});return h.isLeft=i,h.isCustomIcon=t,h}function J(e){z.hovered&&(e.on("mouseover",(()=>{K(e,"hover")})),e.on("mouseout",(()=>{y.show=!1}))),e.lockMovementX&&e.lockMovementY||(e.on("moving",(()=>{!function(e){e.setCoords(),e.left<e.limitX.x1&&e.set("left",e.limitX.x1);e.left>e.limitX.x2&&e.set("left",e.limitX.x2)}(e),function(e){var t,n;if(e.centerLine){const i=e.isLeft?{x1:e.left}:{x2:e.left};if(p(e.centerLine,"pathPointer")){const{pathPointer:t,selfStyle:n}=e.centerLine;t[e.isLeft?0:1]=e.left,d.value.remove(e.centerLine);const{centerLineRect:i}=e.centerLine;e.centerLine=null;const o=O(t,n);o&&(i.bringToFront(),o.centerLineRect=i,e.centerLine=o,e.nearLine.centerLine=o,d.value.add(o))}else e.centerLine.setCoords().set(i);if(e.isLeft){const n=e.limitX.x2-e.left;null==(t=e.centerLine.centerLineRect)||t.setCoords().set({width:n-k,left:e.left+n/2})}else{const t=e.left-e.limitX.x1;null==(n=e.centerLine.centerLineRect)||n.setCoords().set({width:t-k,left:e.limitX.x1+t/2})}}if(e.text){const t=Q(e.text,{startLine:e.isLeft?e:e.nearLine,centerLine:e.centerLine,endLine:e.isLeft?e.nearLine:e},e.top);e.text.setCoords().set(t)}}(e),z.hovered&&K(e)})),e.on("mouseup",(t=>{if(1===t.button){!function(e){e.isLeft?(e.prevLine&&(e.prevLine.limitX.x2=e.left),e.nearLine&&(e.nearLine.limitX.x1=e.left)):(e.nextLine&&(e.nextLine.limitX.x1=e.left),e.nearLine&&(e.nearLine.limitX.x2=e.left))}(e);const t={type:"tree",...e.origin};x("change",h(t,["uuid"]))}})))}function K(e,t="moving"){var n,i,o;y.isTarget=!0,y.show=!0;const{data:r}=e.origin;y.point={x:e.left,y:e.top},y.marginTop=R/2;let[l="",s=""]=r.time||[];if("moving"===t){const t=C(e.left);e.isLeft?l=t:s=t,r.time=[l,s],e.text&&(e.text.origin.data.time=[l,s])}y.list=[`开始时间 ${l}`,`结束时间 ${s}`,`流速 ${(null==(n=r.value)?void 0:n.currentSpeed)||""}`,`浓度 ${(null==(i=r.value)?void 0:i.consistence)||""}`,`总量 ${(null==(o=r.value)?void 0:o.total)||""}`],y.sourceData=[{type:"tree",startTime:l,endTime:s,value:r.value}]}return s(d,{...g,gridYNumber:I,originY:P,yCellHeight:R,endY:T}),function(){var o;const{height:r,list:l,left:s,spaceValue:c,style:u,marginBottom:a}=E;if(!r)return;const f=[],h=S+(a?r-a:r/2),p=a?"bottom":"center";l.forEach(((e,t)=>{const i=s+t*k*c;f.push(n([i,h],{value:e.slice(11,16),originY:p,...u}))}));const m=f.length>0?new e.Group([...f],{...t,objectCaching:!1}):null;m&&d.value.add(m);const g=new e.Rect({width:M,height:r,left:0,top:S,...i,originX:"left",originY:"top",...$});if(d.value.add(g),!F()){const{title:e=(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.234"))||"总量",style:t}=(null==j?void 0:j.total)||{},i=n([Y+(M-Y)/2,h],{value:e,originY:p,...t});d.value.add(i)}}(),function(){var n;const i=(null==(n=null==j?void 0:j.tree)?void 0:n.textStyle)||{},r=[];!function e(t){t.forEach((t=>{var n;const{width:l,height:s,left:c,top:u,title:a=""}=t,f={value:a,...i};(null==(n=t.children)?void 0:n.length)?(f.value=a.split("").join("\n"),e(t.children)):f.textAlign="left",r.push(o({width:l,height:s,...$},f,{left:c,top:u},!0))}))}(G);const l=r.length>0?new e.Group([...r],{...t,objectCaching:!1}):null;l&&d.value.add(l)}(),H(),function(){const{range:n,spaceValue:i=.5,spaceGridNumber:o=1,style:r,margin:l=5}=(null==j?void 0:j.scaleValue)||{};if(!F())return;const s=f(n,i),c=[];if(s.forEach(((e,t)=>{if(0===t||t===s.length-1)return;const n=T-t*R*o;Math.abs(n-P)<1||c.push(u(String(e),{style:r,position:"right"},Y+l,n))})),!c.length)return;const a=new e.Group(c,{objectCaching:!1,...t});d.value.add(a)}(),z.evented&&d.value.on("mouse:up",(e=>{3===e.button&&function(e){y.show=!1;const{x:t=0,y:n=0}=e.pointer||{};if(n>=P&&n<=T)if(t>=b&&t<=Y)if(e.target){const t=e.target;w.point={x:t.left,y:t.top},w.show=!0,w.target=t;const{treeMenuList:n=[]}=A;w.list=v.concat(n).map((e=>({...e,renderItem:()=>e.label,type:e.key||e.type,_type:"tree"})))}else{const e={type:"tree",treeItem:L(N,"tree",[t,n]),time:C(t)};x("right-click",e)}else{const e={type:"treeMenu",treeItem:L(G,"treeMenu",[t,n])};x("right-click",e)}}(e)})),{redrawLinePoints:function(){var e;W.size&&(null==(e=d.value)||e.remove(...W)),W.clear(),N=V(),H()},clickMenu:function({item:e,target:t}){var n;if(!t)return;const{type:i,_type:o}=e,r={...t.origin,type:o};if(v.map((e=>e.type)).includes(i)){if("remove"===i){const e=[...W].filter((e=>{var t;return(null==(t=e.origin)?void 0:t.uuid)===r.uuid}));e.length&&(d.value.remove(...e),e.forEach((e=>{W.delete(e)})))}x(i,h(r,["uuid"]))}else null==(n=A.click)||n.call(A,i,h(r,["uuid"]))}}}export{x as useTop};
|
1
|
+
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{defaultStyle as t,drawText as n,defaultRectStyle as i,drawTextGroup as o,drawLine as r,drawPoint as l}from"../useDraw.js";import{useGrid as s}from"../useGrid.js";import{useBirthProcessCumputedPoint as c}from"../useCumputedPoint.js";import"../useEvent.js";import"../useShadow.js";import{drawScaleNumber as u}from"../useScaleColumn.js";import{useCommon as a}from"../useCommon.js";import"vue";import{getScaleNumberList as f}from"../../utils/index.js";import{filter as d,omit as h,has as p,isArray as m}from"lodash-es";import"date-fns";import{OTHER_MENU as g}from"../../constants/index.js";import"@vueuse/shared";import"naive-ui";import"@vueuse/core";import"./useOther.js";import"../../../../../shared/utils/index.js";const v=d(g,(e=>"add"!==e.type));function L(e,t,[n,i]){var o,r;let l=null;for(let s=0;s<e.length;s++){const c=e[s],{left:u,top:a,width:f,height:d}=c;if("tree"===t&&!(null==(o=c.children)?void 0:o.length)&&i>=a&&i<=a+d){l=c;break}if("treeMenu"===t&&n>=u&&n<=u+f&&i>=a&&i<=a+d){l=c;break}if(null==(r=c.children)?void 0:r.length){const e=L(c.children,t,[n,i]);if(e){l=e;break}}}return l?h(l,["uuid","left","top","width","height"]):null}function x(d,g,x,y,w){const{computedX:X,getXValue:C}=c(g),{originX:b,endX:Y,xCellWidth:k,originYXAxis:S,top:j,canvasWidth:M,borderStyle:$,treeData:G,xAxis:I,topGridYNumber:E,topGridOriginY:P,topGridYCellHeight:R,topGridEndY:T,event:z,extraMenuConfig:A,getTreeData:V,grid:D}=g,{getPointEventProps:B}=a(d,x,g);let N=V();const W=new Set;function F(){const{show:e=!0,range:t}=(null==j?void 0:j.scaleValue)||{};return e&&m(t)}function H(){!function e(t){t.forEach((t=>{var i;(null==(i=t.children)?void 0:i.length)?e(t.children):(function(e){if(!(null==e?void 0:e.data)||!Array.isArray(e.data))return;const{lineStyle:t}=j.dataStyle||{},n=e.top,i=n+R,o=i-R/2,l={y1:n,y2:i,halfY:o};let s=null;const c=h(e,["data","width","height","left","top"]);e.data.forEach(((n,i,u)=>{const a={...c,data:n,index:i},{time:f,continue:d}=n,[h,p]=f,m=h&&X(h),g=p&&X(p),v=q({...l,x:m},{isCustomIcon:!g&&!d,isContinue:!1,isLeft:!0}),L=q({...l,x:g},{isCustomIcon:!1,isContinue:!!d});let x,y;if((v||m<b)&&(L||g>Y)){const n=v?m:b,i=L?g:Y;x="wavy"===e.lineType?O([n,i,o],t):r([n,o,i,o],t),y=U({width:i-n-k,left:n+(i-n)/2,top:o,onlyRect:!0}),y.origin=a,x.centerLineRect=y}const w={startLine:v,centerLine:x,endLine:L};let C,S;!function(e,t,n){const{startLine:i,centerLine:o,endLine:r}=t,{startLine:l,endLine:s}=e||{};if(i){i.origin=n;const e={x1:b,x2:r?r.left:Y};s?(e.x1=s.left,s.limitX.x2=i.left,i.prevLine=s,s.nextLine=i):l&&(e.x1=l.left,l.limitX.x2=i.left,i.prevLine=l,l.nextLine=i),i.limitX=e,o&&(i.centerLine=o)}if(r){r.origin=n;const e={x1:i?i.left:b,x2:Y};r.limitX=e,o&&(r.centerLine=o)}o&&(o.origin=n);i&&r&&(i.nearLine=r,r.nearLine=i)}(s,w,a),s&&(C=_(u[i-1],s,o,a)),i===u.length-1&&(S=_(n,w,o,a)),s=w,x&&W.add(x),y&&W.add(y),v&&W.add(v),L&&W.add(L),C&&W.add(C),S&&W.add(S)}))}(t),function(e){if(F())return;const t=M-Y,{divider:i={},style:o}=(null==j?void 0:j.total)||{};if(i.show){const n=e.top+R,o=r([Y,n,Y+t,n],i.style);d.value.add(o)}if(!(null==e?void 0:e.total))return;const l=e.top+R/2,s=Y+t/2,c=n([s,l],{value:e.total,...o}),u=M-$.strokeWidth;s+c.width>u&&c.set({originX:"right",left:u});c&&d.value.add(c)}(t))}))}(N),W.size&&d.value.add(...W)}function O([n,i,o],r){const{stroke:l="#000"}=r||{},{subXCell:s=6}=D,c=k*s,u=R/2,a=c/2,f=o-u,d=o+u;if(n>i)return;let h=n,p=`M${h} ${o}`,m=0;for(;i-h>=c;)p+=` Q${h+a} ${m%2==0?f:d} ${h+c} ${o}`,h+=c,m++;i-h<c&&(p+=` L${i} ${o}`);const g=new e.Gradient({gradientUnits:"pencentage",coords:{x1:i,y1:0,x2:0,y2:0},colorStops:[{offset:0,color:l+"90"},{offset:.5,color:l+"50"},{offset:1,color:l+"20"}]}),v=new e.Path(p,{fill:g,objectCaching:!1,...r,...t});return v.pathPointer=[n,i,o],v.selfStyle=r,v}function _(e,t,n,i){let o;const{content:r}=e.value||{},{startLine:s,endLine:c,centerLine:u}=t;if(r&&(s||u||c)){const{textStyle:e}=j.dataStyle||{};o=l(r,{fontSize:12,...e,backgroundColor:"#fff",lockMovementX:!0,lockMovementY:!0});const u=Q(o,t,n);o&&(o.set(u),o.origin=i,J(o),s&&(s.text=o),c&&(c.text=o))}return o}function Q(e,t,n){var i,o,r;const l=e.width+1,{startLine:s,centerLine:c,endLine:u}=t,a={top:n,originX:"center",originY:"center"},f=null!=(r=null!=(o=null==c?void 0:c.x1)?o:null==(i=null==c?void 0:c.pathPointer)?void 0:i[0])?r:0;return c&&l<=c.width?a.left=f+c.width/2:u&&l<=u.limitX.x2-u.left?(a.originX="left",a.left=u.left+1):s&&!u&&l<=s.limitX.x2-s.left?(a.originX="left",a.left=s.left+(s.isCustomIcon?5:1)):s&&l<=s.left-s.limitX.x1?(a.originX="right",a.left=s.left-(s.isCustomIcon?5:1)):c?(a.originY="top",a.left=f+c.width/2,a.top=n+1,a.fontSize=10):s&&(a.originX="left",a.originY="top",a.fontSize=10,a.left=s.left,a.top=n+1),e.bringToFront(),a}function U(t){const{bindLine:n,width:i,left:o,top:r,props:l,onlyRect:s=!1}=t,c={originX:"center",originY:"center",hasControls:!1,hasBorders:!1,hoverCursor:"pointer",left:o,top:r},u=new e.Rect({width:i,height:R,fill:"transparent",...c});if(s)return u.set({lockMovementX:!0,lockMovementY:!0}),J(u),u;const a=new e.Group([n,u],{...c,...l,lockMovementY:!0});return J(a),a}function q(e,{isCustomIcon:t,isContinue:n,isLeft:i}){const{x:o,y1:s,y2:c,halfY:u}=e;if(!o||o<b||o>Y)return;const{lineStyle:a,customIcon:f={}}=j.dataStyle||{};let d;const h={left:o,top:u};d=t?l(f.type||"circle",{fill:a.stroke,...f.style,...h}):n?l(">",{fill:a.stroke,...h,fontSize:18}):r([o,s,o,u],a);const p=U({...h,width:k,bindLine:d,props:B()});return p.isLeft=i,p.isCustomIcon=t,p}function J(e){z.hovered&&(e.on("mouseover",(()=>{K(e,"hover")})),e.on("mouseout",(()=>{y.show=!1}))),e.lockMovementX&&e.lockMovementY||(e.on("moving",(()=>{!function(e){e.setCoords(),e.left<e.limitX.x1&&e.set("left",e.limitX.x1);e.left>e.limitX.x2&&e.set("left",e.limitX.x2)}(e),function(e){var t,n;if(e.centerLine){const i=e.isLeft?{x1:e.left}:{x2:e.left};if(p(e.centerLine,"pathPointer")){const{pathPointer:t,selfStyle:n}=e.centerLine;t[e.isLeft?0:1]=e.left,d.value.remove(e.centerLine);const{centerLineRect:i}=e.centerLine;e.centerLine=null;const o=O(t,n);o&&(i.bringToFront(),o.centerLineRect=i,e.centerLine=o,e.nearLine.centerLine=o,d.value.add(o))}else e.centerLine.setCoords().set(i);if(e.isLeft){const n=e.limitX.x2-e.left;null==(t=e.centerLine.centerLineRect)||t.setCoords().set({width:n-k,left:e.left+n/2})}else{const t=e.left-e.limitX.x1;null==(n=e.centerLine.centerLineRect)||n.setCoords().set({width:t-k,left:e.limitX.x1+t/2})}}if(e.text){const t=Q(e.text,{startLine:e.isLeft?e:e.nearLine,centerLine:e.centerLine,endLine:e.isLeft?e.nearLine:e},e.top);e.text.setCoords().set(t)}}(e),z.hovered&&K(e)})),e.on("mouseup",(t=>{if(1===t.button){!function(e){e.isLeft?(e.prevLine&&(e.prevLine.limitX.x2=e.left),e.nearLine&&(e.nearLine.limitX.x1=e.left)):(e.nextLine&&(e.nextLine.limitX.x1=e.left),e.nearLine&&(e.nearLine.limitX.x2=e.left))}(e);const t={type:"tree",...e.origin};x("change",h(t,["uuid"]))}})))}function K(e,t="moving"){var n,i,o;y.isTarget=!0,y.show=!0;const{data:r}=e.origin;y.point={x:e.left,y:e.top},y.marginTop=R/2;let[l="",s=""]=r.time||[];if("moving"===t){const t=C(e.left);e.isLeft?l=t:s=t,r.time=[l,s],e.text&&(e.text.origin.data.time=[l,s])}y.list=[`开始时间 ${l}`,`结束时间 ${s}`,`流速 ${(null==(n=r.value)?void 0:n.currentSpeed)||""}`,`浓度 ${(null==(i=r.value)?void 0:i.consistence)||""}`,`总量 ${(null==(o=r.value)?void 0:o.total)||""}`],y.sourceData=[{type:"tree",startTime:l,endTime:s,value:r.value}]}return s(d,{...g,gridYNumber:E,originY:P,yCellHeight:R,endY:T}),function(){var o;const{height:r,list:l,left:s,spaceValue:c,style:u,marginBottom:a}=I;if(!r)return;const f=[],h=S+(a?r-a:r/2),p=a?"bottom":"center";l.forEach(((e,t)=>{const i=s+t*k*c;f.push(n([i,h],{value:e.slice(11,16),originY:p,...u}))}));const m=f.length>0?new e.Group([...f],{...t,objectCaching:!1}):null;m&&d.value.add(m);const g=new e.Rect({width:M,height:r,left:0,top:S,...i,originX:"left",originY:"top",...$});if(d.value.add(g),!F()){const{title:e=(null==(o=window.getLanguageByCode)?void 0:o.call(window,"10010.1.234"))||"总量",style:t}=(null==j?void 0:j.total)||{},i=n([Y+(M-Y)/2,h],{value:e,originY:p,...t});d.value.add(i)}}(),function(){var n;const i=(null==(n=null==j?void 0:j.tree)?void 0:n.textStyle)||{},r=[];!function e(t){t.forEach((t=>{var n;const{width:l,height:s,left:c,top:u,title:a=""}=t,f={value:a,...i};(null==(n=t.children)?void 0:n.length)?(f.value=a.split("").join("\n"),e(t.children)):f.textAlign="left",r.push(o({width:l,height:s,...$},f,{left:c,top:u},!0))}))}(G);const l=r.length>0?new e.Group([...r],{...t,objectCaching:!1}):null;l&&d.value.add(l)}(),H(),function(){const{range:n,spaceValue:i=.5,spaceGridNumber:o=1,style:r,margin:l=5}=(null==j?void 0:j.scaleValue)||{};if(!F())return;const s=f(n,i),c=[];if(s.forEach(((e,t)=>{if(0===t||t===s.length-1)return;const n=T-t*R*o;Math.abs(n-P)<1||c.push(u(String(e),{style:r,position:"right"},Y+l,n))})),!c.length)return;const a=new e.Group(c,{objectCaching:!1,...t});d.value.add(a)}(),z.evented&&d.value.on("mouse:up",(e=>{3===e.button&&function(e){y.show=!1;const{x:t=0,y:n=0}=e.pointer||{};if(n>=P&&n<=T)if(t>=b&&t<=Y)if(e.target){const t=e.target;w.point={x:t.left,y:t.top},w.show=!0,w.target=t;const{treeMenuList:n=[]}=A;w.list=v.concat(n).map((e=>({...e,renderItem:()=>e.label,type:e.key||e.type,_type:"tree"})))}else{const e={type:"tree",treeItem:L(N,"tree",[t,n]),time:C(t)};x("right-click",e)}else{const e={type:"treeMenu",treeItem:L(G,"treeMenu",[t,n])};x("right-click",e)}}(e)})),{redrawLinePoints:function(){var e;W.size&&(null==(e=d.value)||e.remove(...W)),W.clear(),N=V(),H()},clickMenu:function({item:e,target:t}){var n;if(!t)return;const{type:i,_type:o}=e,r={...t.origin,type:o};if(v.map((e=>e.type)).includes(i)){if("remove"===i){const e=[...W].filter((e=>{var t;return(null==(t=e.origin)?void 0:t.uuid)===r.uuid}));e.length&&(d.value.remove(...e),e.forEach((e=>{W.delete(e)})))}x(i,h(r,["uuid"]))}else null==(n=A.click)||n.call(A,i,h(r,["uuid"]))}}}export{x as useTop};
|
@@ -1 +1 @@
|
|
1
|
-
import{fabric as e}from"../../../../shared/utils/fabricjs/index.js";const
|
1
|
+
import{fabric as e}from"../../../../shared/utils/fabricjs/index.js";import{omit as t}from"lodash-es";const n={evented:!1,selectable:!1},r={stroke:"#000",strokeWidth:1,strokeUniform:!0,...n},i={stroke:"#000",strokeWidth:1,strokeDashArray:[0,0],strokeUniform:!0,...n},o={fill:"transparent",stroke:"#000",strokeWidth:1,originX:"center",originY:"center",objectCaching:!1,strokeUniform:!0,...n},c={fontFamily:"微软雅黑",fontSize:12,fill:"#000",centeredRotation:!0,originX:"center",originY:"center",lineHeight:1,objectCaching:!1,strokeUniform:!0,...n};function l(t,n){return new e.Line(t,{...i,...n})}function s([t,n],r){return new e.Text(String(r.value),{...c,left:t,top:n,...r})}function a([t,r,i],o,c="down"){const a=l([t,r,t,i],{strokeWidth:o.strokeWidth||1,stroke:o.fill||o.stroke}),g=s([t+.5,"up"===c?i-3:i+3],{value:"v",originX:"center",originY:"bottom",fontSize:16,angle:"up"===c?180:0,objectCaching:!1,...o});return new e.Group([a,g],{...n,originX:"center",originY:"top",objectCaching:!1})}function g(t,r,i,l=!1){const s=new e.Rect({...o,...t,...l?{}:{stroke:"transparent"}}),{value:a="标题",textAlign:g="center",verticalAlign:u="center"}=r,f=t.width/2,h=t.height/2,d=new e.Text(String(a),{...c,...r,..."left"==g||"right"==g?{originX:g,left:"left"==g?-f:f}:{},..."top"==u||"bottom"==u?{originY:u,top:"top"==u?-h:h}:{}});return new e.Group([s,d],{objectCaching:!1,...n,...i})}function u(t){return new e.Circle({objectCaching:!1,strokeWidth:t.strokeWidth||1,stroke:t.stroke||"red",radius:t.radius||5,fill:"#fff"})}function f(n="circle",r){var i;const o={originX:"center",originY:"center",hasControls:!1,hasBorders:!1,hoverCursor:"pointer",objectCaching:!1,scale:1,...r},c=r.radius?(r.radius||5)+(r.strokeWidth||1):null!=(i=r.width)?i:0;switch(n){case"triangle":return new e.Triangle({width:20,height:20,strokeWidth:1,...o});case"circle":return new e.Circle({objectCaching:!1,strokeWidth:1,radius:5,...o});case"image":return new e.Image(r.element,o);case"yemai":{const t=()=>{const t=2*c,n={stroke:r.strokeX||"blue",strokeWidth:r.strokeWidthX||1,originX:"center",originY:"center"},i=new e.Line([0,c,t,c],n),o=new e.Line([c,0,c,t],n);return new e.Group([i,o])};return new e.Group([u(r),t()],o)}case"koumai":{const t=new e.Circle({objectCaching:!1,radius:r.radiusCircle||2,fill:r.fillCircle||"#000",originX:"center",originY:"center",left:c-.5,top:c-.5});return new e.Group([u(r),t],o)}case"circleAndText":{const t=new e.Text(String(r.text),{fontFamily:"微软雅黑",fontSize:o.fontSize||12,originX:"center",originY:"center",fill:r.textFill||r.stroke,left:c-.5,top:c-1,fontWeight:r.fontWeight||500,objectCaching:!1});return new e.Group([u(r),t],o)}case"circleAndCircle":return f("koumai",r);case"cg":{const{left:t,radius:n,top:i,stroke:c="#000"}=r,l=new e.Line([0,n,2*n,n],{stroke:c,objectCaching:!1}),s=n+1,a=Math.round(n/2),g=new e.Polyline([{x:s,y:a},{x:2*n,y:n},{x:s,y:n+a}],{stroke:c,fill:"transparent",objectCaching:!1});return new e.Group([u(r),l,g],{...o,left:Math.round(t),top:Math.round(i)})}case"qgcg":{const{radius:t,stroke:n="#000"}=r,i=new e.Line([0,t,4*t,t],{stroke:n,objectCaching:!1,left:-t});return new e.Group([u(r),i],o)}case"zrhz":{const{radius:t,stroke:n="#000"}=r,i=t/3*2,c=new e.Circle({objectCaching:!1,radius:i,fill:"#fff",left:t-i,top:t-i,stroke:n}),l=new e.Line([0,t,4*t,t],{stroke:n,objectCaching:!1,left:-t});return new e.Group([u(r),c,l],o)}case"plus":{const n=t(o,["big","small"]),{big:i,small:c}=r,l=f(i.type,{fill:"#fff",...n,...i.style}),s=f(c.type,{...n,...c.style});return new e.Group([l,s],n)}default:return r&&Reflect.deleteProperty(r,"stroke"),new e.Text(String(n),{fontFamily:"微软雅黑",scale:1,fontSize:14,fill:"#000",...o})}}function h(t,r,i,o="horizontal"){const c=new e.Text(String(t),{...n,objectCaching:!1,...r.titleStyle||{},originX:"left",originY:"bottom",lineHeight:1,fontSize:12,...i.text}),{top:l,topY:s,left:a,leftX:g}=i.icon,u=null!=l?l:"horizontal"===o?s-(c.height||30)/2-1:s+c.height+3,h=null!=a?a:g+c.width+5;return{text:c,icon:f(r.type,{...r.pointAttr,originY:"center",originX:"left",originLeft:h,originTop:u,...i.icon,origin:{title:r.title,unit:r.unit,type:r.bigType,dataIndex:r.dataIndex,key:r.key,isMenu:!0,...i.icon.origin},left:h,top:u})}}export{r as defaultBorderStyle,i as defaultLineStyle,o as defaultRectStyle,n as defaultStyle,c as defaultTextStyle,a as drawArrow,l as drawLine,f as drawPoint,s as drawText,h as drawTextAndIconGroup,g as drawTextGroup};
|
@@ -31,6 +31,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
31
31
|
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
32
32
|
default: () => {};
|
33
33
|
};
|
34
|
+
filterable: {
|
35
|
+
type: BooleanConstructor;
|
36
|
+
default: boolean;
|
37
|
+
};
|
34
38
|
}, {
|
35
39
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
36
40
|
token: {
|
@@ -64,6 +68,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
64
68
|
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
65
69
|
default: () => {};
|
66
70
|
};
|
71
|
+
filterable: {
|
72
|
+
type: BooleanConstructor;
|
73
|
+
default: boolean;
|
74
|
+
};
|
67
75
|
}>> & {
|
68
76
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
69
77
|
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
@@ -76,6 +84,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
76
84
|
cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
|
77
85
|
stompClient: import("vue").Ref<import("./src/utils/chatSock").ChatSock | undefined>;
|
78
86
|
state: {
|
87
|
+
filterable: boolean;
|
79
88
|
orgId: string | number;
|
80
89
|
currentSessionItem: import("../../shared/types").AnyObject;
|
81
90
|
id: string;
|
@@ -119,6 +128,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
119
128
|
};
|
120
129
|
cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
|
121
130
|
state: {
|
131
|
+
filterable: boolean;
|
122
132
|
orgId: string | number;
|
123
133
|
currentSessionItem: import("../../shared/types").AnyObject;
|
124
134
|
id: string;
|
@@ -155,8 +165,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
155
165
|
unreadSessionKeys: string[];
|
156
166
|
flexWidth: import("vue").Ref<number>;
|
157
167
|
listBoxRef: import("vue").Ref<HTMLElement | undefined>;
|
158
|
-
|
159
|
-
filterList: import("vue").Ref<{
|
168
|
+
filterListByTag: import("vue").Ref<{
|
160
169
|
label: string;
|
161
170
|
key: string;
|
162
171
|
}[]>;
|
@@ -165,7 +174,13 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
165
174
|
menuPosition: any;
|
166
175
|
sessionId: import("vue").Ref<any>;
|
167
176
|
currentFilterKey: import("vue").Ref<string>;
|
177
|
+
dateRange: import("vue").Ref<any>;
|
178
|
+
keyword: import("vue").Ref<string>;
|
179
|
+
showSearch: import("vue").Ref<boolean>;
|
180
|
+
filterList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
181
|
+
handleInput: () => void;
|
168
182
|
state: {
|
183
|
+
filterable: boolean;
|
169
184
|
orgId: string | number;
|
170
185
|
currentSessionItem: import("../../shared/types").AnyObject;
|
171
186
|
id: string;
|
@@ -196,10 +211,14 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
196
211
|
showSession: (item: import("../../shared/types").AnyObject, currentKey?: string) => boolean | undefined;
|
197
212
|
handleContextmenu: (event: MouseEvent, id: string) => Promise<void>;
|
198
213
|
handleSelect: (key: string, session: import("../../shared/types").AnyObject) => Promise<void>;
|
199
|
-
|
214
|
+
handleUpdateShow: (value: boolean) => void;
|
215
|
+
handleSearch: () => void;
|
200
216
|
NBadge: any;
|
201
217
|
NAvatar: any;
|
218
|
+
NInput: any;
|
202
219
|
NTag: any;
|
220
|
+
NIcon: any;
|
221
|
+
NPopover: any;
|
203
222
|
ContextMenu: import("vue").DefineComponent<{
|
204
223
|
type: {
|
205
224
|
type: StringConstructor;
|
@@ -243,9 +262,200 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
243
262
|
};
|
244
263
|
formatTime: typeof import("./src/utils").formatTime;
|
245
264
|
STATUS: typeof import("./src/constants").STATUS;
|
265
|
+
CDatePicker: SFCWithInstall<import("vue").DefineComponent<{
|
266
|
+
updateUnchangedValue: {
|
267
|
+
type: BooleanConstructor;
|
268
|
+
};
|
269
|
+
onConfirm: {
|
270
|
+
type: FunctionConstructor;
|
271
|
+
};
|
272
|
+
formattedValue: {
|
273
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
274
|
+
};
|
275
|
+
placeholder: {
|
276
|
+
type: StringConstructor;
|
277
|
+
};
|
278
|
+
allowedInvalidValue: {
|
279
|
+
type: StringConstructor;
|
280
|
+
};
|
281
|
+
to: {
|
282
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
283
|
+
default: string;
|
284
|
+
};
|
285
|
+
holidays: {
|
286
|
+
type: import("vue").PropType<Date[]>;
|
287
|
+
default: () => never[];
|
288
|
+
};
|
289
|
+
type: {
|
290
|
+
type: StringConstructor;
|
291
|
+
default: string;
|
292
|
+
};
|
293
|
+
}, {
|
294
|
+
attrs: {
|
295
|
+
[x: string]: unknown;
|
296
|
+
};
|
297
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
298
|
+
updateUnchangedValue: {
|
299
|
+
type: BooleanConstructor;
|
300
|
+
};
|
301
|
+
onConfirm: {
|
302
|
+
type: FunctionConstructor;
|
303
|
+
};
|
304
|
+
formattedValue: {
|
305
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
306
|
+
};
|
307
|
+
placeholder: {
|
308
|
+
type: StringConstructor;
|
309
|
+
};
|
310
|
+
allowedInvalidValue: {
|
311
|
+
type: StringConstructor;
|
312
|
+
};
|
313
|
+
to: {
|
314
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
315
|
+
default: string;
|
316
|
+
};
|
317
|
+
holidays: {
|
318
|
+
type: import("vue").PropType<Date[]>;
|
319
|
+
default: () => never[];
|
320
|
+
};
|
321
|
+
type: {
|
322
|
+
type: StringConstructor;
|
323
|
+
default: string;
|
324
|
+
};
|
325
|
+
}>> & {
|
326
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
327
|
+
}>>;
|
328
|
+
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
329
|
+
datePickerRef: import("vue").Ref<import("../../shared/types").AnyObject | null>;
|
330
|
+
panelInstRef: import("vue").Ref<null>;
|
331
|
+
placeholderRef: import("vue").Ref<any>;
|
332
|
+
oldValue: string;
|
333
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
334
|
+
isDateTime: import("vue").ComputedRef<boolean>;
|
335
|
+
formatRef: import("vue").ComputedRef<string>;
|
336
|
+
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
337
|
+
focus: () => any;
|
338
|
+
blur: () => any;
|
339
|
+
handleConfirm: (target: HTMLInputElement) => void;
|
340
|
+
onUpdateShow: (show: boolean) => Promise<void>;
|
341
|
+
watchers: import("../../shared/types").AnyFn[];
|
342
|
+
stopWatcher: () => void;
|
343
|
+
setHoliday: (show: boolean) => Promise<void>;
|
344
|
+
onConfirm: (...args: any[]) => Promise<void>;
|
345
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
346
|
+
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
347
|
+
NDatePicker: any;
|
348
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
349
|
+
updateUnchangedValue: {
|
350
|
+
type: BooleanConstructor;
|
351
|
+
};
|
352
|
+
onConfirm: {
|
353
|
+
type: FunctionConstructor;
|
354
|
+
};
|
355
|
+
formattedValue: {
|
356
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
357
|
+
};
|
358
|
+
placeholder: {
|
359
|
+
type: StringConstructor;
|
360
|
+
};
|
361
|
+
allowedInvalidValue: {
|
362
|
+
type: StringConstructor;
|
363
|
+
};
|
364
|
+
to: {
|
365
|
+
type: import("vue").PropType<string | false | HTMLElement>;
|
366
|
+
default: string;
|
367
|
+
};
|
368
|
+
holidays: {
|
369
|
+
type: import("vue").PropType<Date[]>;
|
370
|
+
default: () => never[];
|
371
|
+
};
|
372
|
+
type: {
|
373
|
+
type: StringConstructor;
|
374
|
+
default: string;
|
375
|
+
};
|
376
|
+
}>> & {
|
377
|
+
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
378
|
+
}, {
|
379
|
+
type: string;
|
380
|
+
updateUnchangedValue: boolean;
|
381
|
+
to: string | false | HTMLElement;
|
382
|
+
holidays: Date[];
|
383
|
+
}>>;
|
384
|
+
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<{}>>, {}>;
|
385
|
+
userItemRender: import("vue").DefineComponent<{
|
386
|
+
item: {
|
387
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
388
|
+
default: () => {};
|
389
|
+
};
|
390
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "item-click"[], "item-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
391
|
+
item: {
|
392
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
393
|
+
default: () => {};
|
394
|
+
};
|
395
|
+
}>> & {
|
396
|
+
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
397
|
+
}, {
|
398
|
+
item: import("../../shared/types").AnyObject;
|
399
|
+
}>;
|
400
|
+
DefaultPage: SFCWithInstall<import("vue").DefineComponent<{
|
401
|
+
type: {
|
402
|
+
type: StringConstructor;
|
403
|
+
default: string;
|
404
|
+
};
|
405
|
+
config: {
|
406
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
407
|
+
default: () => {
|
408
|
+
title: string;
|
409
|
+
content: string;
|
410
|
+
};
|
411
|
+
};
|
412
|
+
}, {
|
413
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
414
|
+
type: {
|
415
|
+
type: StringConstructor;
|
416
|
+
default: string;
|
417
|
+
};
|
418
|
+
config: {
|
419
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
420
|
+
default: () => {
|
421
|
+
title: string;
|
422
|
+
content: string;
|
423
|
+
};
|
424
|
+
};
|
425
|
+
}>> & {
|
426
|
+
onReloadPage?: ((...args: any[]) => any) | undefined;
|
427
|
+
}>>;
|
428
|
+
emit: (event: "reloadPage", ...args: any[]) => void;
|
429
|
+
configResult: import("vue").ComputedRef<{
|
430
|
+
title: string;
|
431
|
+
content: string;
|
432
|
+
img: string;
|
433
|
+
}>;
|
434
|
+
reloadPage: () => void;
|
435
|
+
NIcon: any;
|
436
|
+
Refresh: 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<{}>>, {}>;
|
437
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "reloadPage"[], "reloadPage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
438
|
+
type: {
|
439
|
+
type: StringConstructor;
|
440
|
+
default: string;
|
441
|
+
};
|
442
|
+
config: {
|
443
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
444
|
+
default: () => {
|
445
|
+
title: string;
|
446
|
+
content: string;
|
447
|
+
};
|
448
|
+
};
|
449
|
+
}>> & {
|
450
|
+
onReloadPage?: ((...args: any[]) => any) | undefined;
|
451
|
+
}, {
|
452
|
+
type: string;
|
453
|
+
config: import("../../shared/types").AnyObject;
|
454
|
+
}>>;
|
246
455
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
247
456
|
ChatHeader: import("vue").DefineComponent<{}, {
|
248
457
|
state: {
|
458
|
+
filterable: boolean;
|
249
459
|
orgId: string | number;
|
250
460
|
currentSessionItem: import("../../shared/types").AnyObject;
|
251
461
|
id: string;
|
@@ -315,6 +525,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
315
525
|
}>>;
|
316
526
|
emit: (event: "close", ...args: any[]) => void;
|
317
527
|
state: {
|
528
|
+
filterable: boolean;
|
318
529
|
orgId: string | number;
|
319
530
|
currentSessionItem: import("../../shared/types").AnyObject;
|
320
531
|
id: string;
|
@@ -381,6 +592,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
381
592
|
[x: string]: unknown;
|
382
593
|
};
|
383
594
|
state: {
|
595
|
+
filterable: boolean;
|
384
596
|
orgId: string | number;
|
385
597
|
currentSessionItem: import("../../shared/types").AnyObject;
|
386
598
|
id: string;
|
@@ -455,6 +667,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
455
667
|
}>>;
|
456
668
|
emit: (event: "close", ...args: any[]) => void;
|
457
669
|
state: {
|
670
|
+
filterable: boolean;
|
458
671
|
orgId: string | number;
|
459
672
|
currentSessionItem: import("../../shared/types").AnyObject;
|
460
673
|
id: string;
|
@@ -570,6 +783,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
570
783
|
}>>;
|
571
784
|
emit: (event: "comfirm", ...args: any[]) => void;
|
572
785
|
state: {
|
786
|
+
filterable: boolean;
|
573
787
|
orgId: string | number;
|
574
788
|
currentSessionItem: import("../../shared/types").AnyObject;
|
575
789
|
id: string;
|
@@ -681,6 +895,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
681
895
|
}>> & {}>>;
|
682
896
|
cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
|
683
897
|
state: {
|
898
|
+
filterable: boolean;
|
684
899
|
orgId: string | number;
|
685
900
|
currentSessionItem: import("../../shared/types").AnyObject;
|
686
901
|
id: string;
|
@@ -788,6 +1003,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
788
1003
|
}>>;
|
789
1004
|
emit: (event: "comfirm", ...args: any[]) => void;
|
790
1005
|
state: {
|
1006
|
+
filterable: boolean;
|
791
1007
|
orgId: string | number;
|
792
1008
|
currentSessionItem: import("../../shared/types").AnyObject;
|
793
1009
|
id: string;
|
@@ -905,6 +1121,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
905
1121
|
};
|
906
1122
|
}>> & {}>>;
|
907
1123
|
state: {
|
1124
|
+
filterable: boolean;
|
908
1125
|
orgId: string | number;
|
909
1126
|
currentSessionItem: import("../../shared/types").AnyObject;
|
910
1127
|
id: string;
|
@@ -1137,6 +1354,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1137
1354
|
}>>;
|
1138
1355
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1139
1356
|
state: {
|
1357
|
+
filterable: boolean;
|
1140
1358
|
orgId: string | number;
|
1141
1359
|
currentSessionItem: import("../../shared/types").AnyObject;
|
1142
1360
|
id: string;
|
@@ -1233,6 +1451,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1233
1451
|
ChatMain: import("vue").DefineComponent<{}, {
|
1234
1452
|
chatMainRef: import("vue").Ref<HTMLElement | undefined>;
|
1235
1453
|
state: {
|
1454
|
+
filterable: boolean;
|
1236
1455
|
orgId: string | number;
|
1237
1456
|
currentSessionItem: import("../../shared/types").AnyObject;
|
1238
1457
|
id: string;
|
@@ -1323,6 +1542,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1323
1542
|
}>>;
|
1324
1543
|
emit: (event: "close", ...args: any[]) => void;
|
1325
1544
|
state: {
|
1545
|
+
filterable: boolean;
|
1326
1546
|
orgId: string | number;
|
1327
1547
|
currentSessionItem: import("../../shared/types").AnyObject;
|
1328
1548
|
id: string;
|
@@ -1557,6 +1777,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1557
1777
|
}>>;
|
1558
1778
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1559
1779
|
state: {
|
1780
|
+
filterable: boolean;
|
1560
1781
|
orgId: string | number;
|
1561
1782
|
currentSessionItem: import("../../shared/types").AnyObject;
|
1562
1783
|
id: string;
|
@@ -1660,6 +1881,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1660
1881
|
ChatFooter: import("vue").DefineComponent<{}, {
|
1661
1882
|
inputRef: import("vue").Ref<HTMLDivElement | undefined>;
|
1662
1883
|
state: {
|
1884
|
+
filterable: boolean;
|
1663
1885
|
orgId: string | number;
|
1664
1886
|
currentSessionItem: import("../../shared/types").AnyObject;
|
1665
1887
|
id: string;
|
@@ -1763,6 +1985,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1763
1985
|
}>>;
|
1764
1986
|
emit: (event: "comfirm", ...args: any[]) => void;
|
1765
1987
|
state: {
|
1988
|
+
filterable: boolean;
|
1766
1989
|
orgId: string | number;
|
1767
1990
|
currentSessionItem: import("../../shared/types").AnyObject;
|
1768
1991
|
id: string;
|
@@ -1870,6 +2093,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1870
2093
|
keyword: import("vue").Ref<string>;
|
1871
2094
|
cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
|
1872
2095
|
state: {
|
2096
|
+
filterable: boolean;
|
1873
2097
|
orgId: string | number;
|
1874
2098
|
currentSessionItem: import("../../shared/types").AnyObject;
|
1875
2099
|
id: string;
|
@@ -1888,28 +2112,14 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1888
2112
|
currentGroupUser: import("../../shared/types").AnyObject[];
|
1889
2113
|
showMultipleVideo: boolean;
|
1890
2114
|
};
|
1891
|
-
openSession: (session: string | import("../../shared/types").AnyObject) => Promise<void>;
|
1892
2115
|
userList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
1893
2116
|
handleInput: () => void;
|
1894
2117
|
currentTabValue: import("vue").Ref<string>;
|
1895
|
-
userItemRender: import("vue").DefineComponent<{
|
1896
|
-
item: {
|
1897
|
-
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
1898
|
-
default: () => {};
|
1899
|
-
};
|
1900
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1901
|
-
item: {
|
1902
|
-
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
1903
|
-
default: () => {};
|
1904
|
-
};
|
1905
|
-
}>>, {
|
1906
|
-
item: import("../../shared/types").AnyObject;
|
1907
|
-
}>;
|
1908
2118
|
groupList: import("vue").ComputedRef<import("../../shared/types").AnyObject[]>;
|
1909
2119
|
showNoData: import("vue").ComputedRef<boolean>;
|
1910
2120
|
showAllNoData: import("vue").ComputedRef<boolean>;
|
1911
2121
|
showGroupNoData: import("vue").ComputedRef<boolean>;
|
1912
|
-
|
2122
|
+
handleClose: () => void;
|
1913
2123
|
NPopover: any;
|
1914
2124
|
NButton: any;
|
1915
2125
|
NInput: any;
|
@@ -1973,6 +2183,21 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
1973
2183
|
type: string;
|
1974
2184
|
config: import("../../shared/types").AnyObject;
|
1975
2185
|
}>>;
|
2186
|
+
userItemRender: import("vue").DefineComponent<{
|
2187
|
+
item: {
|
2188
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
2189
|
+
default: () => {};
|
2190
|
+
};
|
2191
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "item-click"[], "item-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
2192
|
+
item: {
|
2193
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
2194
|
+
default: () => {};
|
2195
|
+
};
|
2196
|
+
}>> & {
|
2197
|
+
"onItem-click"?: ((...args: any[]) => any) | undefined;
|
2198
|
+
}, {
|
2199
|
+
item: import("../../shared/types").AnyObject;
|
2200
|
+
}>;
|
1976
2201
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
1977
2202
|
ChatAdd: import("vue").DefineComponent<{
|
1978
2203
|
title: {
|
@@ -2028,6 +2253,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
2028
2253
|
}>>;
|
2029
2254
|
emit: (event: "comfirm", ...args: any[]) => void;
|
2030
2255
|
state: {
|
2256
|
+
filterable: boolean;
|
2031
2257
|
orgId: string | number;
|
2032
2258
|
currentSessionItem: import("../../shared/types").AnyObject;
|
2033
2259
|
id: string;
|
@@ -2125,6 +2351,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
2125
2351
|
receiver?: string | undefined;
|
2126
2352
|
}) => Promise<void>;
|
2127
2353
|
state: {
|
2354
|
+
filterable: boolean;
|
2128
2355
|
orgId: string | number;
|
2129
2356
|
currentSessionItem: import("../../shared/types").AnyObject;
|
2130
2357
|
id: string;
|
@@ -2206,6 +2433,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
2206
2433
|
name: string;
|
2207
2434
|
}[]>;
|
2208
2435
|
state: {
|
2436
|
+
filterable: boolean;
|
2209
2437
|
orgId: string | number;
|
2210
2438
|
currentSessionItem: import("../../shared/types").AnyObject;
|
2211
2439
|
id: string;
|
@@ -2323,6 +2551,7 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
2323
2551
|
}>>;
|
2324
2552
|
emit: (event: "comfirm", ...args: any[]) => void;
|
2325
2553
|
state: {
|
2554
|
+
filterable: boolean;
|
2326
2555
|
orgId: string | number;
|
2327
2556
|
currentSessionItem: import("../../shared/types").AnyObject;
|
2328
2557
|
id: string;
|
@@ -2453,6 +2682,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
2453
2682
|
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
2454
2683
|
default: () => {};
|
2455
2684
|
};
|
2685
|
+
filterable: {
|
2686
|
+
type: BooleanConstructor;
|
2687
|
+
default: boolean;
|
2688
|
+
};
|
2456
2689
|
}>> & {
|
2457
2690
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
2458
2691
|
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
@@ -2463,5 +2696,6 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
2463
2696
|
showHeader: boolean;
|
2464
2697
|
baseURL: string;
|
2465
2698
|
extraParams: import("../../shared/types").AnyObject;
|
2699
|
+
filterable: boolean;
|
2466
2700
|
}>>;
|
2467
2701
|
export default IhoChat;
|