cnhis-design-vue 3.1.46-beta.3 → 3.1.46-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  2. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  3. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  4. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
  5. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
  6. package/es/components/index.css +1 -1
  7. package/es/components/index.d.ts +2 -1
  8. package/es/components/index.js +1 -1
  9. package/es/components/quick-search/src/index.vue2.js +1 -1
  10. package/es/components/table-export-field/index.d.ts +967 -0
  11. package/es/components/table-export-field/index.js +1 -0
  12. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +192 -0
  13. package/es/components/table-export-field/src/components/ExportModal.vue.js +1 -0
  14. package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -0
  15. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +687 -0
  16. package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +1 -0
  17. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -0
  18. package/es/components/table-export-field/src/constants/index.d.ts +3 -0
  19. package/es/components/table-export-field/src/constants/index.js +1 -0
  20. package/es/components/table-export-field/src/hooks/useAsyncData.d.ts +6 -0
  21. package/es/components/table-export-field/src/hooks/useAsyncData.js +1 -0
  22. package/es/components/table-export-field/src/index.vue.d.ts +968 -0
  23. package/es/components/table-export-field/src/index.vue.js +1 -0
  24. package/es/components/table-export-field/src/index.vue2.js +1 -0
  25. package/es/components/table-export-field/src/types/index.d.ts +6 -0
  26. package/es/components/table-export-field/src/types/index.js +1 -0
  27. package/es/components/table-export-field/style/index.css +1 -0
  28. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -1
  29. package/es/shared/package.json.js +1 -1
  30. package/package.json +2 -2
@@ -1 +1 @@
1
- import{ref as t,reactive as e,onMounted as i,nextTick as r}from"vue";import{defaultBorderStyle as o}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import{format as n}from"date-fns";import{getChildrenSize as a}from"../../utils/index.js";import"@vueuse/core";import{cloneDeep as s,range as l}from"lodash-es";import"../temperature/useShadow.js";import{useTop as d}from"./useTop.js";import{useCenter as p}from"./useCenter.js";function u(u,c,h,m){var g;const f=t(),x=t(),w=t(),b=e({show:!1,point:{x:0,y:0},list:[]}),y=e({show:!1,point:{x:0,y:0},list:[],target:null}),v=null!=(g=c.data.left.width)?g:0,Y=a(c.data.top.treeData),j=function(){const{xAxis:t}=c.data;return"top"===t.position?t.height:0}(),C=function(){console.log(v);const t=s(c.data.top.treeData);let e=0;const{cellWidth:i,cellHeight:r}=c.data.top.tree;return function t(o,n=0){o.forEach((o=>{var s;const l={top:e*r+j,left:n*i,width:i,height:r};if(e++,null==(s=o.children)?void 0:s.length){e--;const i=a(o.children);l.height=i*r,t(o.children,n+1)}else l.width=v-l.left;Object.assign(o,l)}))}(t),t}();console.log(C);const H=function(){const{grid:t}=c.data;return t.mainXCell*t.subXCell}(),D=c.data.top.tree.cellHeight,X=j+D*Y,A=function(){const t=s(c.data.xAxis),{position:e,startTime:i,spaceValue:r,spaceTimeStamp:o}=t,a=Date.parse(i),d=l(H/r+1).map((t=>0===t?i:n(new Date(a+t*o),"yyyy-MM-dd HH:mm:ss")));return{...t,list:d,left:v,top:"top"===e?0:X}}(),G=function(){const{grid:t}=c.data;return t.mainYCell*t.subYCell}(),M=function(){var t;const{width:e,right:i}=c.data;if(!i)return e;return e-(null!=(t=i.width)?t:0)}(),S=c.data.xAxis.height+D*Y,T=function(){var t;const{bottom:e=null,height:i}=c.data;if(!e)return i;return i-(null!=(t=e.height)?t:0)}(),N=(M-v)/H,P=(T-S)/G,W=e({canvasWidth:c.data.width,canvasHeight:c.data.height,borderStyle:{...o,...c.data.borderStyle||{}},grid:c.data.grid,top:c.data.top,other:c.data.other,topGridYNumber:Y,topGridYCellHeight:D,topGridOriginY:j,topGridEndY:X,treeData:C,xAxis:A,gridXNumber:H,gridYNumber:G,xCellWidth:N,yCellHeight:P,originX:v,endX:M,originY:S,endY:T});return i((async()=>{await r(),d(u,W),p(u,W)})),{propItems:W,redrawPoints:x,select:f,pointTipProps:b,pointMenuProps:y,clickMenu:w}}export{u as useSurgicalAnesthesiaChart};
1
+ import{ref as t,reactive as e,onMounted as i,nextTick as r}from"vue";import{defaultBorderStyle as o}from"../useDraw.js";import"../../../../../shared/utils/fabricjs/index.js";import{format as a}from"date-fns";import{getChildrenSize as n}from"../../utils/index.js";import"@vueuse/core";import{cloneDeep as s,range as d}from"lodash-es";import"../temperature/useShadow.js";import{useTop as l}from"./useTop.js";import{useCenter as p}from"./useCenter.js";function u(u,h,c,m){var f,g;const x=t(),w=t(),y=t(),b=e({show:!1,point:{x:0,y:0},list:[]}),v=e({show:!1,point:{x:0,y:0},list:[],target:null}),C=null!=(f=h.data.left.width)?f:0,H=n(h.data.top.treeData),Y=function(){const{xAxis:t}=h.data;return"top"===t.position?t.height:0}(),j=function(){const t=s(h.data.top.treeData);let e=0;const{cellWidth:i,cellHeight:r}=h.data.top.tree;return function t(o,a=0){o.forEach((o=>{var s;const d={top:e*r+Y,left:a*i,width:i,height:r};if(e++,null==(s=o.children)?void 0:s.length){e--;const i=n(o.children);d.height=i*r,t(o.children,a+1)}else d.width=C-d.left;Object.assign(o,d)}))}(t),t}();console.log(j);const D=function(){const{grid:t}=h.data;return t.mainXCell*t.subXCell}(),M=h.data.top.tree.cellHeight,T=Y+M*H,X=function(){const t=s(h.data.xAxis),{position:e,startTime:i,spaceValue:r,spaceTimeStamp:o}=t,n=Date.parse(i),l=d(D/r+1).map((t=>0===t?i:a(new Date(n+t*o),"yyyy-MM-dd HH:mm:ss")));return{...t,list:l,left:C,top:"top"===e?0:T}}(),A=function(){const{grid:t}=h.data;return t.mainYCell*t.subYCell}(),G=function(){var t;const{width:e,right:i}=h.data;if(!i)return e;return e-(null!=(t=i.width)?t:0)}(),S=h.data.xAxis.height+M*H,N=function(){var t;const{bottom:e=null,height:i}=h.data;if(!e)return i;return i-(null!=(t=e.height)?t:0)}(),P=(G-C)/D,W=(N-S)/A,E=Date.parse((null==(g=h.data.xAxis)?void 0:g.startTime)||a(new Date,"yyyy-MM-dd HH:mm:ss")),O=36e5/P,k=e({canvasWidth:h.data.width,canvasHeight:h.data.height,borderStyle:{...o,...h.data.borderStyle||{}},grid:h.data.grid,top:h.data.top,other:h.data.other,topGridYNumber:H,topGridYCellHeight:M,topGridOriginY:Y,topGridEndY:T,treeData:j,xAxis:X,startTime:E,timeXCell:O,gridXNumber:D,gridYNumber:A,xCellWidth:P,yCellHeight:W,originX:C,endX:G,originY:S,endY:N});return i((async()=>{await r(),l(u,k),p(u,k)})),{propItems:k,redrawPoints:w,select:x,pointTipProps:b,pointMenuProps:v,clickMenu:y}}export{u as useSurgicalAnesthesiaChart};
@@ -1 +1 @@
1
- import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{drawText as e,defaultStyle as o}from"../useDraw.js";import"date-fns";import"lodash-es";import"@vueuse/core";import"vue";import"../temperature/useShadow.js";function r(r,i){const{grid:s,originX:a,endX:n,xCellWidth:u,gridXNumber:p,top:c,topList:l,canvasWidth:d,borderStyle:h,treeData:m,xAxis:f}=i;!function(){const{height:i,list:s,left:a,top:n,spaceValue:p}=f,c=[],l=n+i/2;s.forEach(((t,o)=>{const r=a+o*u*p;c.push(e([r,l],{value:t.slice(11,16)}))}));const d=c.length>0?new t.Group([...c],{...o,objectCaching:!1}):null;d&&r.value.add(d)}()}export{r as useTop};
1
+ import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{drawText as e,defaultStyle as i,drawTextGroup as o}from"../useDraw.js";import{useGrid as r}from"../useGrid.js";import"date-fns";import"lodash-es";import"@vueuse/core";import"vue";import"../temperature/useShadow.js";function n(n,l){const{grid:d,originX:s,endX:u,xCellWidth:a,gridXNumber:h,top:p,topList:c,canvasWidth:g,borderStyle:f,treeData:m,xAxis:v,topGridYNumber:j,topGridOriginY:b,topGridYCellHeight:x,topGridEndY:G}=l;r(n,{...l,gridYNumber:j,originY:b,yCellHeight:x,endY:G}),function(){const{height:o,list:r,left:l,top:d,spaceValue:s}=v,u=[],h=d+o/2;r.forEach(((t,i)=>{const o=l+i*a*s;u.push(e([o,h],{value:t.slice(11,16)}))}));const p=u.length>0?new t.Group([...u],{...i,objectCaching:!1}):null;p&&n.value.add(p)}(),function(){var e;const r=(null==(e=null==p?void 0:p.tree)?void 0:e.textStyle)||{},l=[];!function t(e){e.forEach((e=>{var i;const{width:n,height:d,left:s,top:u,title:a=""}=e,h={value:a,...r};(null==(i=e.children)?void 0:i.length)?(h.value=a.split("").join("\n"),t(e.children)):h.textAlign="left",l.push(o({width:n,height:d,...f},h,{left:s,top:u},!0))}))}(m);const d=l.length>0?new t.Group([...l],{...i,objectCaching:!1}):null;d&&n.value.add(d)}()}export{n as useTop};
@@ -1 +1 @@
1
- import{format as n}from"date-fns";import{getFloorNumber as e}from"../utils/index.js";function t(t){const{xScaleList:i,originX:r,endY:u,xCellWidth:l,left:c,vitalSignsOriginY:o,painOriginY:a,canvasWidth:d}=t;return{cumputedX:function(n,e=!1){const t=new Date(n).getTime(),[r]=i,u=i.at(-1);if(t<r.start)return 0;if(t>u.end)return d;const l=i.findIndex((n=>n.end>=t));if(l>-1){return i[l].center}},cumputedY:function(n,e,i){const r=t[`${n}YCell`],u=+i-Math.min(...e);return("pain"===n?a.endY:o.endY)-r*u},getXValue:function(e){const t=i.findIndex((n=>n.left+l>=e));if(t>-1){const r=i[t],u=e-r.left,l=r.scaleCell*u,c=r.start+l;return n(new Date(c),"yyyy-MM-dd HH:mm")}},getYValue:function(n,i){var r;const u=t[`${n}YCell`],l=(null==(r=c.yScaleValue.find((e=>e.type===n)))?void 0:r.list)||[],d=l.length?Math.min(...l):0,f="pain"===n?a.endY:o.endY;return e((f-i)/u+d)}}}function i(t){const{xAxis:i,originX:r,originY:u,xCellWidth:l,endY:c,timeXCell:o,startTime:a,scaleValues:d}=t;return{cumputedX:function(n){return(new Date(n).getTime()-a)/o+r},cumputedY:function(n,e,i){const[r]=e;return c-(+i-r)/t[`${n}YCell`]},getXValue:function(e){return n(new Date((e-r)*o+a),"yyyy-MM-dd HH:mm")},getYValue:function(n,i){const r=d.find((e=>n===e.key)),[u]=(null==r?void 0:r.range)||[0],l=(c-i)*t[`${n}YCell`]+u;return e(l)}}}export{i as useBirthProcessCumputedPoint,t as useCumputedPoint};
1
+ import{format as n}from"date-fns";import{getFloorNumber as e}from"../utils/index.js";function t(t){const{xScaleList:i,xCellWidth:r,left:u,vitalSignsOriginY:l,painOriginY:c,canvasWidth:a}=t;return{cumputedX:function(n,e=!1){const t=new Date(n).getTime(),[r]=i,u=i.at(-1);if(t<r.start)return 0;if(t>u.end)return a;const l=i.findIndex((n=>n.end>=t));if(l>-1){return i[l].center}},cumputedY:function(n,e,i){const r=t[`${n}YCell`],u=+i-Math.min(...e);return("pain"===n?c.endY:l.endY)-r*u},getXValue:function(e){const t=i.findIndex((n=>n.left+r>=e));if(t>-1){const r=i[t],u=e-r.left,l=r.scaleCell*u,c=r.start+l;return n(new Date(c),"yyyy-MM-dd HH:mm")}},getYValue:function(n,i){var r;const a=t[`${n}YCell`],o=(null==(r=u.yScaleValue.find((e=>e.type===n)))?void 0:r.list)||[],d=o.length?Math.min(...o):0,f="pain"===n?c.endY:l.endY;return e((f-i)/a+d)}}}function i(t){const{xAxis:i,originX:r,originY:u,xCellWidth:l,endY:c,timeXCell:a,startTime:o,scaleValues:d}=t;return{cumputedX:function(n){return(new Date(n).getTime()-o)/a+r},cumputedY:function(n,e,i){const[r]=e;return c-(+i-r)/t[`${n}YCell`]},getXValue:function(e){return n(new Date((e-r)*a+o),"yyyy-MM-dd HH:mm")},getYValue:function(n,i){const r=d.find((e=>n===e.key)),[u]=(null==r?void 0:r.range)||[0],l=(c-i)*t[`${n}YCell`]+u;return e(l)}}}export{i as useBirthProcessCumputedPoint,t as useCumputedPoint};
@@ -1,6 +1,6 @@
1
1
  import { SyncHook } from '../../../../../../es/shared/utils/tapable';
2
2
  import { Ref } from 'vue';
3
- import { AbstractSetupHooks, IhoTableConfig, IhoTableFieldItem, IhoTableHandlerContext } from '../../../../../../es/components/iho-table';
3
+ import { AbstractSetupHooks, IhoTableConfig, IhoTableFieldItem, IhoTableHandlerContext } from '../../../../../../es/components/iho-table/src/types';
4
4
  declare class SetupHooks extends AbstractSetupHooks {
5
5
  readonly setup: SyncHook<[Ref<IhoTableConfig>, Ref<IhoTableFieldItem[]>, IhoTableHandlerContext<true>], void, import("../../../../../../es/shared/utils/tapable").UnsetAdditionalOptions>;
6
6
  }
@@ -1 +1 @@
1
- import s from"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import"../../../index.js";import{AbstractSetupHooks as t}from"../../types/pluginType.js";class e extends t{constructor(){super(...arguments),this.setup=new s(["config","fieldList","context"])}}function o(){return{create:function(){return new e}}}export{o as useSetupHooks};
1
+ import s from"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{AbstractSetupHooks as t}from"../../types/pluginType.js";class e extends t{constructor(){super(...arguments),this.setup=new s(["config","fieldList","context"])}}function o(){return{create:function(){return new e}}}export{o as useSetupHooks};