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.
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/table-export-field/index.d.ts +967 -0
- package/es/components/table-export-field/index.js +1 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +192 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.js +1 -0
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +687 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +1 -0
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -0
- package/es/components/table-export-field/src/constants/index.d.ts +3 -0
- package/es/components/table-export-field/src/constants/index.js +1 -0
- package/es/components/table-export-field/src/hooks/useAsyncData.d.ts +6 -0
- package/es/components/table-export-field/src/hooks/useAsyncData.js +1 -0
- package/es/components/table-export-field/src/index.vue.d.ts +968 -0
- package/es/components/table-export-field/src/index.vue.js +1 -0
- package/es/components/table-export-field/src/index.vue2.js +1 -0
- package/es/components/table-export-field/src/types/index.d.ts +6 -0
- package/es/components/table-export-field/src/types/index.js +1 -0
- package/es/components/table-export-field/style/index.css +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js
CHANGED
|
@@ -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
|
|
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
|
|
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,
|
|
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
|
|
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};
|