cnhis-design-vue 3.2.19-beta.8 → 3.2.19-beta.9
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.
@@ -1 +1 @@
|
|
1
|
-
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{drawLine as t,defaultTextStyle as i,defaultStyle as n,drawTextAndIconGroup as o,drawTextGroup as
|
1
|
+
import{fabric as e}from"../../../../../shared/utils/fabricjs/index.js";import{drawLine as t,defaultTextStyle as i,defaultStyle as n,drawTextAndIconGroup as o,drawTextGroup as s}from"../useDraw.js";import"date-fns";import{getType as l}from"../../utils/index.js";import{last as r}from"lodash-es";import"../useEvent.js";import"../useShadow.js";import{getScaleInfo as u,drawScaleNumber as a,drawScaleLine as c}from"../useScaleColumn.js";import{useCommon as h}from"../useCommon.js";import"vue";import"../../constants/index.js";import"@vueuse/shared";import"naive-ui";import"../surgicalAnesthesia/useTop.js";import"@vueuse/core";import"../surgicalAnesthesia/useOther.js";import"../../../../../shared/utils/index.js";function p(p,d,g,f,m,y,v,w,S,b,x,Y){var j,C;const{getEqualXTypes:T,handleAddPrevent:L,isGridLimit:X}=h(p,g,d),{originY:N,endY:O,originX:V,endX:k,xCellWidth:E,yCellHeight:M,left:A,vitalSignsOriginY:B,painOriginY:G,painHeight:I,iconsWidth:H,itemList:R,painIndex:W,right:_,grid:J,canvasHeight:$,getRightInfo:q,borderStyle:D,surplusCell:P,painSurplusCell:z,painBorderColor:F,config:K}=d;function Q(o){var l;if(!(null==o?void 0:o.length))return;const{layout:h}=o[0];let d=H,g=V;"right"===h&&(d=k,g=k+(null!=(l=null==_?void 0:_.width)?l:0));const f=[],m=I&&"right"!==h?o.length-1:o.length,y=(g-d)/m,v=y+(g-d)%m,w=J.surplusCell||[0,0,0,0],S=B.originY-w[0]*M;o.forEach(((o,l)=>{if("pain"===o.type)return void function(n){const{list:o=[],spaceGridNumber:l=5,showScale:r,showNumber:c,position:h,showMaxMinNumber:d,style:g,title:f}=n,m=[],y=G.originY-z[0]*M,v=s({width:V-H,height:I+(z[0]+z[1])*M,...D},{value:`${f}`,...i,...g||{}},{left:H,top:y});m.push(v);const w=F?null:t([H,y,V,y],D);w&&m.push(w);const S=[];if(r||c){const{lineXMain:t,textLeft:i}=u(h,H,V-H),s=o.length;o.forEach(((o,u)=>{let h=G.endY-u*M*l;if(0===u&&0===z[1]&&(h=O-5),c&&(!(0===u||u===s-1)||d||0===u&&z[1]>0||u===s-1&&z[0]>0)&&S.push(a(o,n,i,h)),r&&(0!==u||z[1]>0)){const[i,n]=t,o=new e.Line([i,h,n,h],{...D,...g});S.push(o)}}))}p.value.add(...m,...S),v.sendToBack()}(o);const g=[],m=0===l?v:y,w=0===l?d:v+d+(l-1)*y;let b=0;"right"!==h&&(b=S,K.scaleTitleBorder&&(b+=M));const x="right"===h?$:B.endY,Y=l>0?t([w,b,w,x],{objectCaching:!1,...D}):null;Y&&g.push(Y);const j=w+m/2,{list:C=[],spaceGridNumber:T=5,showScale:L,showNumber:X,position:N,showMaxMinNumber:k,detailedList:E=[],showdetailedScale:A,showRange:R=[]}=o;if(L||X){const{lineXMain:e,lineXSub:t,textLeft:i}=u(N,w,m),n=(C[1]-C[0])/2,s=A&&!E.length?C.reduce(((e,t,i)=>{const o=e[e.length-1];return 0===i?[t]:e.concat([o+n,o+2*n])}),[]):A&&(null==E?void 0:E.length)?E:C,[l=s[0],h=r(s)]=R;s.forEach(((n,r)=>{if(l&&+n<+l)return;if(h&&+n>+h)return;const u=B.endY-r*M*(A?T/2:T),p=[l,h].includes(n);if(X&&(!p||k)){const e=0==r?u-5:u,t=a(n,o,i,e),s=B.originY+t.height/2;e<s&&t.set({top:s}),g.push(t)}g.push(...c(o,r,e,t,u,M,B.originY,s.findIndex((e=>e==h))+1))}))}let W=o.title||"";o.unit&&(W+="\n"+o.unit);const _=S+2;if(W){const n=new e.Text(String(W),{...i,originY:"top",left:j,top:_,textAlign:"center",...o.style});if(K.scaleTitleBorder){n.setCoords().set({top:M>12?S+1:S});const e=t([w,S+M,w+m,S+M],{objectCaching:!1,...D});g.push(e)}g.push(n)}const J=new e.Group(g,{...n,objectCaching:!1});f.push(J)}));const b=f.length>0?new e.Group([...f],{...n,objectCaching:!1}):null;b&&p.value.add(b),b&&b.sendToBack()}H&&function(){const e=JSON.parse(JSON.stringify(R));let t=O;const i=H-A.icons.marginRight;e.reverse().forEach((e=>{t-=10;let n=e.title.replace(/(.{2})/g,"$1\n");n.endsWith("\n")&&(n=n.slice(0,n.length-1));const{text:s,icon:r}=o(n,e,{text:{left:i-(e.pointAttr.width||10)-5,top:t,originX:"right"},icon:{originX:"right",left:i,topY:t,origin:{key:e.key,type:l(e.bigType),_type:e.bigType,isOneLine:e.isOneLine},...d.event}});var u;t-=s.height||30,(u=r).on("moving",(()=>{u.set("originX","center"),function(e){if(e.left>=V&&e.left<=k){e.setCoords();const t="pain"===e.origin.type?G:B;e.top<t.originY&&e.set("top",t.originY),e.top>t.endY&&e.set("top",t.endY)}}(u),X(u)?f(u):m.show=!1})),u.on("mouseup:before",(e=>{if(m.show=!1,0===e.e.button&&X(u)){const e=T([...Y],u.left,"_type").includes(u.origin._type),t=b(u.left);if(!t||e)e&&t&&L("repeat");else{const e={data:{time:w(u.left),value:S(u.origin.type,u.top),...u.origin.isOneLine?{key:u.origin.key}:{}},...u.origin};g("add",e),x(e)}}!function(e){e.setCoords().set({originX:"right",left:e.originLeft,top:e.originTop})}(u)})),p.value.add(s,r)}))}();const U=A.yScaleValue.filter((e=>"left"===e.layout&&"pain"!==e.type&&e.show));if((null==_?void 0:_.width)&&"left"===(null==(j=null==_?void 0:_.yScaleValue)?void 0:j.layout)&&(null==(C=null==_?void 0:_.yScaleValue)?void 0:C.show)&&U.push(q),W>0&&A.yScaleValue[W].show){const e=A.yScaleValue[W];0===W&&A.yScaleValue.length>1&&U.unshift(e),W==A.yScaleValue.length-1&&U.push(e)}const Z=U.findIndex((e=>"pulse"===e.type&&e.show&&e.doubleShow)),ee=U[Z];return Z>-1&&U.splice(Z,0,{...ee,title:(null==ee?void 0:ee.doubleTitle)||(null==ee?void 0:ee.title)}),Q(U),{drawScaleValue:Q}}export{p as useLeft};
|
@@ -1 +1 @@
|
|
1
|
-
import{fabric as e}from"../../../../shared/utils/fabricjs/index.js";import{drawLine as l,defaultStyle as
|
1
|
+
import{fabric as e}from"../../../../shared/utils/fabricjs/index.js";import{drawLine as l,defaultStyle as n}from"./useDraw.js";function i(i,s){var u,t,r;const{gridYNumber:d,originY:o,grid:a,originX:b,endX:c,xCellWidth:C,yCellHeight:S,gridXNumber:g,endY:m,borderStyle:p,mainSurplusCell:X,isTemperature:f,config:y}=s,Y=null!=(u=null!=X?X:s.surplusCell)?u:[0,0,0,0],h=[],v=[],L=new Set,j=(null==(t=a.mainLineStyle)?void 0:t.x)||{},x=(null==(r=a.mainLineStyle)?void 0:r.y)||{},w=a.subLineStyle||j,O=a.subSecondLineStyle||{},{originY:I=0,endY:N=0}=s.vitalSignsOriginY||{},P=Math.round((m-N)/S);for(let e=0;e<=d;e++){const n=o+~~(S*(d-e)),i={...p,...w},s=l([b,n,c,n],i);if((!f||y.mainLineStyleIncludePain)&&(e-Y[2])%a.subYCell==0&&e<=d-Y[0])s.set(j),L.add(s);else if(f&&!y.mainLineStyleIncludePain){const l=o+S*(d-e);l>=I&&l<=N+1&&(e-P)%a.subYCell==0?(s.set(j),L.add(s)):h.push(s)}else h.push(s)}for(let e=0;e<=g;e++){const n=b+~~(C*e),i={...p,...a.subXCell?w:x};a.subXCell&&e%a.subXCell==0?Object.assign(i,{...0!==e&&e!==g?x:p}):a.subSecondXCell&&e%a.subSecondXCell==0&&Object.assign(i,O);const s=l([n,o,n,m],i);a.subXCell&&e%a.subXCell==0?L.add(s):v.push(s)}const T=new e.Group([...h,...v,...L],n);i.value.add(T),i.value.sendToBack(T)}export{i as useGrid};
|
@@ -1 +1 @@
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.2.19-beta.
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.2.19-beta.9",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.2.19-beta.9",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
package/package.json
CHANGED
@@ -1,76 +1,76 @@
|
|
1
|
-
{
|
2
|
-
"name": "cnhis-design-vue",
|
3
|
-
"version": "3.2.19-beta.
|
4
|
-
"license": "ISC",
|
5
|
-
"module": "./es/components/index.js",
|
6
|
-
"main": "./es/components/index.js",
|
7
|
-
"types": "./es/components/index.d.ts",
|
8
|
-
"sideEffects": [
|
9
|
-
"es/components/**/style/*",
|
10
|
-
"es/components/*(.css,.less)"
|
11
|
-
],
|
12
|
-
"files": [
|
13
|
-
"es",
|
14
|
-
"README.md"
|
15
|
-
],
|
16
|
-
"peerDependencies": {
|
17
|
-
"@fullcalendar/core": "^6.1.10",
|
18
|
-
"@fullcalendar/interaction": "^6.1.10",
|
19
|
-
"@fullcalendar/resource": "^6.1.10",
|
20
|
-
"@fullcalendar/resource-timegrid": "^6.1.10",
|
21
|
-
"@fullcalendar/scrollgrid": "^6.1.10",
|
22
|
-
"@fullcalendar/vue3": "^6.1.10",
|
23
|
-
"naive-ui": "^2.34.0",
|
24
|
-
"vue": "^3.2.0",
|
25
|
-
"vxe-table": "^4.2.5"
|
26
|
-
},
|
27
|
-
"dependencies": {
|
28
|
-
"@formily/core": "2.1.9",
|
29
|
-
"@formily/path": "2.1.9",
|
30
|
-
"@formily/reactive": "2.1.9",
|
31
|
-
"@formily/vue": "2.1.9",
|
32
|
-
"@vicons/ionicons5": "^0.12.0",
|
33
|
-
"@vueuse/core": "^8.6.0",
|
34
|
-
"@vueuse/shared": "^8.6.0",
|
35
|
-
"@wangeditor/editor": "^5.1.1",
|
36
|
-
"@wangeditor/editor-for-vue": "^5.1.11",
|
37
|
-
"axios": "^0.27.2",
|
38
|
-
"bpmn-js": "^9.2.2",
|
39
|
-
"bpmnlint-utils": "^1.0.2",
|
40
|
-
"date-fns": "^2.30.0",
|
41
|
-
"diagram-js": "^8.7.1",
|
42
|
-
"ids": "^1.0.0",
|
43
|
-
"inherits": "^2.0.4",
|
44
|
-
"lodash": "^4.17.21",
|
45
|
-
"lodash-es": "^4.17.21",
|
46
|
-
"lodash-unified": "^1.0.2",
|
47
|
-
"min-dash": "^3.8.1",
|
48
|
-
"min-dom": "^3.2.1",
|
49
|
-
"moment": "^2.29.1",
|
50
|
-
"naive-ui": "^2.34.0",
|
51
|
-
"recorder-core": "^1.2.23070100",
|
52
|
-
"socket.io-client": "^4.7.3",
|
53
|
-
"sockjs-client": "^1.6.1",
|
54
|
-
"sortablejs": "^1.15.0",
|
55
|
-
"spark-md5": "^3.0.2",
|
56
|
-
"stompjs": "^2.3.3",
|
57
|
-
"tiny-svg": "^2.2.4",
|
58
|
-
"trtc-sdk-v5": "^5.5.2",
|
59
|
-
"v-viewer": "^3.0.10",
|
60
|
-
"video.js": "^7.19.2",
|
61
|
-
"videojs-contrib-hls": "^5.15.0",
|
62
|
-
"viewerjs": "^1.10.5",
|
63
|
-
"vue": "^3.2.0",
|
64
|
-
"vue-simple-uploader": "^1.0.0-beta.5",
|
65
|
-
"xe-utils": "^3.5.4"
|
66
|
-
},
|
67
|
-
"browserslist": [
|
68
|
-
"defaults",
|
69
|
-
"not ie < 8",
|
70
|
-
"last 2 versions",
|
71
|
-
"> 1%",
|
72
|
-
"iOS 7",
|
73
|
-
"last 3 iOS versions"
|
74
|
-
],
|
75
|
-
"gitHead": "
|
76
|
-
}
|
1
|
+
{
|
2
|
+
"name": "cnhis-design-vue",
|
3
|
+
"version": "3.2.19-beta.9",
|
4
|
+
"license": "ISC",
|
5
|
+
"module": "./es/components/index.js",
|
6
|
+
"main": "./es/components/index.js",
|
7
|
+
"types": "./es/components/index.d.ts",
|
8
|
+
"sideEffects": [
|
9
|
+
"es/components/**/style/*",
|
10
|
+
"es/components/*(.css,.less)"
|
11
|
+
],
|
12
|
+
"files": [
|
13
|
+
"es",
|
14
|
+
"README.md"
|
15
|
+
],
|
16
|
+
"peerDependencies": {
|
17
|
+
"@fullcalendar/core": "^6.1.10",
|
18
|
+
"@fullcalendar/interaction": "^6.1.10",
|
19
|
+
"@fullcalendar/resource": "^6.1.10",
|
20
|
+
"@fullcalendar/resource-timegrid": "^6.1.10",
|
21
|
+
"@fullcalendar/scrollgrid": "^6.1.10",
|
22
|
+
"@fullcalendar/vue3": "^6.1.10",
|
23
|
+
"naive-ui": "^2.34.0",
|
24
|
+
"vue": "^3.2.0",
|
25
|
+
"vxe-table": "^4.2.5"
|
26
|
+
},
|
27
|
+
"dependencies": {
|
28
|
+
"@formily/core": "2.1.9",
|
29
|
+
"@formily/path": "2.1.9",
|
30
|
+
"@formily/reactive": "2.1.9",
|
31
|
+
"@formily/vue": "2.1.9",
|
32
|
+
"@vicons/ionicons5": "^0.12.0",
|
33
|
+
"@vueuse/core": "^8.6.0",
|
34
|
+
"@vueuse/shared": "^8.6.0",
|
35
|
+
"@wangeditor/editor": "^5.1.1",
|
36
|
+
"@wangeditor/editor-for-vue": "^5.1.11",
|
37
|
+
"axios": "^0.27.2",
|
38
|
+
"bpmn-js": "^9.2.2",
|
39
|
+
"bpmnlint-utils": "^1.0.2",
|
40
|
+
"date-fns": "^2.30.0",
|
41
|
+
"diagram-js": "^8.7.1",
|
42
|
+
"ids": "^1.0.0",
|
43
|
+
"inherits": "^2.0.4",
|
44
|
+
"lodash": "^4.17.21",
|
45
|
+
"lodash-es": "^4.17.21",
|
46
|
+
"lodash-unified": "^1.0.2",
|
47
|
+
"min-dash": "^3.8.1",
|
48
|
+
"min-dom": "^3.2.1",
|
49
|
+
"moment": "^2.29.1",
|
50
|
+
"naive-ui": "^2.34.0",
|
51
|
+
"recorder-core": "^1.2.23070100",
|
52
|
+
"socket.io-client": "^4.7.3",
|
53
|
+
"sockjs-client": "^1.6.1",
|
54
|
+
"sortablejs": "^1.15.0",
|
55
|
+
"spark-md5": "^3.0.2",
|
56
|
+
"stompjs": "^2.3.3",
|
57
|
+
"tiny-svg": "^2.2.4",
|
58
|
+
"trtc-sdk-v5": "^5.5.2",
|
59
|
+
"v-viewer": "^3.0.10",
|
60
|
+
"video.js": "^7.19.2",
|
61
|
+
"videojs-contrib-hls": "^5.15.0",
|
62
|
+
"viewerjs": "^1.10.5",
|
63
|
+
"vue": "^3.2.0",
|
64
|
+
"vue-simple-uploader": "^1.0.0-beta.5",
|
65
|
+
"xe-utils": "^3.5.4"
|
66
|
+
},
|
67
|
+
"browserslist": [
|
68
|
+
"defaults",
|
69
|
+
"not ie < 8",
|
70
|
+
"last 2 versions",
|
71
|
+
"> 1%",
|
72
|
+
"iOS 7",
|
73
|
+
"last 3 iOS versions"
|
74
|
+
],
|
75
|
+
"gitHead": "8608bbfc8f8273af160171d5f3b105559efd3463"
|
76
|
+
}
|