cnhis-design-vue 3.1.34-beta.1 → 3.1.34-beta.11
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/big-table/index.d.ts +1 -0
- package/es/components/big-table/src/BigTable.vue.d.ts +1 -0
- package/es/components/big-table/src/BigTable.vue2.js +17 -5
- package/es/components/big-table/src/components/edit-form/edit-input.js +2 -1
- package/es/components/big-table/src/components/edit-form/edit-select.js +26 -1
- package/es/components/big-table/src/hooks/useEvent.js +3 -4
- package/es/components/fabric-chart/index.d.ts +141 -374
- package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +2 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +142 -374
- package/es/components/fabric-chart/src/FabricChart.vue.js +52 -22
- package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/index.js +1 -0
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +2 -2
- package/es/components/fabric-chart/src/hooks/useBottom.js +1 -6
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +4 -18
- package/es/components/fabric-chart/src/hooks/useCenter.js +5 -21
- package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useCommon.js +2 -2
- package/es/components/fabric-chart/src/hooks/useGrid.js +2 -7
- package/es/components/fabric-chart/src/hooks/useLeft.d.ts +2 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +22 -28
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -6
- package/es/components/fabric-chart/src/hooks/useRight.js +13 -18
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.d.ts +25 -0
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +339 -0
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -6
- package/es/components/iho-table/index.d.ts +6 -0
- package/es/components/iho-table/index.js +1 -1
- package/es/components/iho-table/src/IhoTable.vue.d.ts +6 -0
- package/es/components/iho-table/src/IhoTable.vue.js +12 -1
- package/es/components/iho-table/src/components/IhoTableColumn.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +10 -0
- package/es/components/iho-table/src/constants/index.js +14 -7
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.js +4 -4
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +32 -7
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +12 -0
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +58 -25
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +56 -55
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +13 -7
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +31 -24
- package/es/components/iho-table/src/types/index.d.ts +11 -4
- package/es/components/iho-table/src/utils/index.d.ts +6 -0
- package/es/components/iho-table/src/utils/index.js +16 -2
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/shared/types/index.d.ts +1 -0
- package/package.json +2 -2
- package/es/components/fabric-chart/src/BirthProcessChart.vue.js +0 -172
- package/es/components/fabric-chart/src/TemperatureChart.vue.d.ts +0 -214
- package/es/components/fabric-chart/src/TemperatureChart.vue.js +0 -355
|
@@ -4,12 +4,12 @@ import useGrid from './useGrid.js';
|
|
|
4
4
|
import { drawLine, drawPoint, drawText, defaultTextStyle, defaultRectStyle } from './useDraw.js';
|
|
5
5
|
import { fabric } from '../utils/index.js';
|
|
6
6
|
import { getIndex, isEffectiveNode } from '../utils/utils.js';
|
|
7
|
-
import
|
|
7
|
+
import { useCommon } from './useCommon.js';
|
|
8
8
|
import { cloneDeep } from 'lodash-es';
|
|
9
9
|
|
|
10
10
|
function useBirthProcess(canvas, propItems, emits) {
|
|
11
11
|
const { cumputedX, cumputedY, getXValue, getYValue } = useBirthProcessCumputedPoint(propItems);
|
|
12
|
-
const { getEqualXTypes } =
|
|
12
|
+
const { getEqualXTypes } = useCommon(canvas);
|
|
13
13
|
const {
|
|
14
14
|
xAxis,
|
|
15
15
|
grid,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { onMounted, nextTick } from 'vue';
|
|
2
1
|
import { fabric } from '../utils/index.js';
|
|
3
2
|
import { defaultBorderStyle, drawTextGroup, defaultTextStyle, defaultRectStyle, defaultStyle } from './useDraw.js';
|
|
4
3
|
|
|
@@ -86,11 +85,7 @@ function useBottom(canvas, propItems) {
|
|
|
86
85
|
group && group.sendToBack();
|
|
87
86
|
group && canvas.value.add(group);
|
|
88
87
|
}
|
|
89
|
-
|
|
90
|
-
nextTick(() => {
|
|
91
|
-
drawBottom();
|
|
92
|
-
});
|
|
93
|
-
});
|
|
88
|
+
drawBottom();
|
|
94
89
|
}
|
|
95
90
|
|
|
96
91
|
export { useBottom };
|
|
@@ -1,24 +1,10 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
3
|
import { IPropItems } from '../interface';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
x: number;
|
|
9
|
-
y: number;
|
|
10
|
-
};
|
|
11
|
-
list: string[];
|
|
12
|
-
};
|
|
13
|
-
pointMenuProps: {
|
|
14
|
-
show: boolean;
|
|
15
|
-
point: {
|
|
16
|
-
x: number;
|
|
17
|
-
y: number;
|
|
18
|
-
};
|
|
19
|
-
list: any[];
|
|
20
|
-
target: any;
|
|
21
|
-
};
|
|
4
|
+
import { AnyObject } from '../../../../../es/shared/types';
|
|
5
|
+
export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any, cumputedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, addRenderItem: Function | undefined, pointTipProps: any, pointMenuProps: any, useCommon: AnyObject): {
|
|
6
|
+
pointTipProps: any;
|
|
7
|
+
pointMenuProps: any;
|
|
22
8
|
clickMenu: ({ item, target }: {
|
|
23
9
|
item: any;
|
|
24
10
|
target: any;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { reactive, onMounted, nextTick } from 'vue';
|
|
2
1
|
import { fabric } from '../utils/index.js';
|
|
3
2
|
import { drawLine, defaultStyle, drawPoint, drawText, drawArrow } from './useDraw.js';
|
|
4
3
|
import useGrid from './useGrid.js';
|
|
5
4
|
import { useShadow } from './useShadow.js';
|
|
6
5
|
import { TEMPERATURE_MENU, PAIN_MENU, OVERLAP } from './constant.js';
|
|
7
|
-
import useCommmon from './useCommon.js';
|
|
8
6
|
import { cloneDeep } from 'lodash-es';
|
|
9
7
|
import { getPointArr, isEffectiveNode, getIndex, deleteProperty } from '../utils/utils.js';
|
|
10
8
|
|
|
11
|
-
function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, addRenderItem) {
|
|
9
|
+
function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, addRenderItem, pointTipProps, pointMenuProps, useCommon) {
|
|
12
10
|
useGrid(canvas, propItems);
|
|
13
|
-
const { getEqualXTypes, repeatTip, maxLimitTip, minLimitTip } =
|
|
11
|
+
const { getEqualXTypes, repeatTip, maxLimitTip, minLimitTip } = useCommon;
|
|
14
12
|
const {
|
|
15
13
|
left,
|
|
16
14
|
xScaleList,
|
|
@@ -27,17 +25,6 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
27
25
|
hospitalizationDate,
|
|
28
26
|
config
|
|
29
27
|
} = propItems;
|
|
30
|
-
const pointTipProps = reactive({
|
|
31
|
-
show: false,
|
|
32
|
-
point: { x: 0, y: 0 },
|
|
33
|
-
list: []
|
|
34
|
-
});
|
|
35
|
-
const pointMenuProps = reactive({
|
|
36
|
-
show: false,
|
|
37
|
-
point: { x: 0, y: 0 },
|
|
38
|
-
list: [],
|
|
39
|
-
target: null
|
|
40
|
-
});
|
|
41
28
|
const shadowLinesCache = /* @__PURE__ */ new Set();
|
|
42
29
|
let shadowPointCache = [];
|
|
43
30
|
const maiboPoints = /* @__PURE__ */ new Set();
|
|
@@ -45,11 +32,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
45
32
|
const prevLines = /* @__PURE__ */ new Set();
|
|
46
33
|
const gridPoints = /* @__PURE__ */ new Set();
|
|
47
34
|
const yScaleValue = cloneDeep(left.yScaleValue);
|
|
48
|
-
|
|
49
|
-
nextTick(() => {
|
|
50
|
-
init();
|
|
51
|
-
});
|
|
52
|
-
});
|
|
35
|
+
init();
|
|
53
36
|
function init() {
|
|
54
37
|
shadowPointCache = [];
|
|
55
38
|
maiboPoints.clear();
|
|
@@ -230,6 +213,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
230
213
|
pacemaker = {},
|
|
231
214
|
upArrowStyle = {},
|
|
232
215
|
limitValueStyle = {},
|
|
216
|
+
nonePainPointStyle = {},
|
|
233
217
|
dataList = []
|
|
234
218
|
} = scaleValue;
|
|
235
219
|
const pointList = [];
|
|
@@ -444,7 +428,7 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
444
428
|
lockMovementX: true,
|
|
445
429
|
...v.pacemakerShow && type == "pulse" ? pacemaker.style : pointAttr,
|
|
446
430
|
...propItems.event,
|
|
447
|
-
...isNonePain ? { selectable: false, evented: false } : {}
|
|
431
|
+
...isNonePain ? { selectable: false, evented: false, ...nonePainPointStyle } : {}
|
|
448
432
|
};
|
|
449
433
|
if (previousLine) {
|
|
450
434
|
const y = previousLine.get("y2");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
|
-
export
|
|
3
|
+
export declare function useCommon(canvas: Ref<fabric.Canvas>): {
|
|
4
4
|
getEqualXTypes: (pointX: number, field: string, range?: number) => string[];
|
|
5
5
|
repeatTip: () => void;
|
|
6
6
|
maxLimitTip: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMessage } from 'naive-ui';
|
|
2
2
|
|
|
3
|
-
function
|
|
3
|
+
function useCommon(canvas) {
|
|
4
4
|
const $message = useMessage();
|
|
5
5
|
function getEqualXTypes(pointX, field, range = 6) {
|
|
6
6
|
const types = [];
|
|
@@ -29,4 +29,4 @@ function useCommmon(canvas) {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export {
|
|
32
|
+
export { useCommon };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { onMounted, nextTick } from 'vue';
|
|
2
1
|
import { fabric } from '../utils/index.js';
|
|
3
2
|
import { drawLine, defaultBorderStyle } from './useDraw.js';
|
|
4
3
|
|
|
@@ -48,12 +47,8 @@ function useGrid(canvas, propItems, isBirthProcess = false) {
|
|
|
48
47
|
evented: false,
|
|
49
48
|
selectable: false
|
|
50
49
|
});
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
canvas.value.add(group);
|
|
54
|
-
canvas.value.sendToBack(group);
|
|
55
|
-
});
|
|
56
|
-
});
|
|
50
|
+
canvas.value.add(group);
|
|
51
|
+
canvas.value.sendToBack(group);
|
|
57
52
|
}
|
|
58
53
|
|
|
59
54
|
export { useGrid as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
3
|
import { IPropItems } from '../interface';
|
|
4
|
-
|
|
4
|
+
import { AnyObject } from '../../../../../es/shared/types';
|
|
5
|
+
export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any, setPopup: Function, pointTipProps: any, cumputedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, isAddPoint: Function, updateData: Function, useCommon: AnyObject): {
|
|
5
6
|
drawScaleValue: (yScaleValueList: any[]) => void;
|
|
6
7
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { onMounted, nextTick } from 'vue';
|
|
2
1
|
import { fabric } from '../utils/index.js';
|
|
3
2
|
import { defaultBorderStyle, defaultTextStyle, defaultStyle, defaultRectStyle, drawPoint, drawTextGroup } from './useDraw.js';
|
|
4
|
-
import useCommmon from './useCommon.js';
|
|
5
3
|
|
|
6
|
-
function useLeft(canvas, propItems, emits, setPopup, pointTipProps, cumputedX, cumputedY, getXValue, getYValue, isAddPoint, updateData) {
|
|
7
|
-
|
|
4
|
+
function useLeft(canvas, propItems, emits, setPopup, pointTipProps, cumputedX, cumputedY, getXValue, getYValue, isAddPoint, updateData, useCommon) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
const { getEqualXTypes, repeatTip } = useCommon;
|
|
8
7
|
const {
|
|
9
8
|
originY,
|
|
10
9
|
endY,
|
|
@@ -98,23 +97,23 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, cumputedX, c
|
|
|
98
97
|
canvas.value.add(title, ...list);
|
|
99
98
|
title.sendToBack();
|
|
100
99
|
}
|
|
101
|
-
function drawScaleValue(
|
|
102
|
-
var
|
|
103
|
-
if (!(
|
|
100
|
+
function drawScaleValue(yScaleValueList2) {
|
|
101
|
+
var _a2;
|
|
102
|
+
if (!(yScaleValueList2 == null ? void 0 : yScaleValueList2.length))
|
|
104
103
|
return;
|
|
105
|
-
const { layout } =
|
|
104
|
+
const { layout } = yScaleValueList2[0];
|
|
106
105
|
let start = iconsWidth;
|
|
107
106
|
let end = originX;
|
|
108
107
|
if (layout === "right") {
|
|
109
108
|
start = endX;
|
|
110
|
-
end = endX + ((
|
|
109
|
+
end = endX + ((_a2 = right == null ? void 0 : right.width) != null ? _a2 : 0);
|
|
111
110
|
}
|
|
112
111
|
const groupList = [];
|
|
113
|
-
const column = !painHeight || layout === "right" ?
|
|
112
|
+
const column = !painHeight || layout === "right" ? yScaleValueList2.length : yScaleValueList2.length - 1;
|
|
114
113
|
const colWidth = (end - start) / column;
|
|
115
114
|
const residue = (end - start) % column;
|
|
116
115
|
const firstColWidth = colWidth + residue;
|
|
117
|
-
|
|
116
|
+
yScaleValueList2.forEach((item, index) => {
|
|
118
117
|
if (item.type === "pain") {
|
|
119
118
|
drwaPainScaleValue(item);
|
|
120
119
|
return;
|
|
@@ -309,23 +308,18 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, cumputedX, c
|
|
|
309
308
|
})
|
|
310
309
|
);
|
|
311
310
|
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
}
|
|
325
|
-
drawScaleValue(yScaleValueList);
|
|
326
|
-
drawBorder();
|
|
327
|
-
});
|
|
328
|
-
});
|
|
311
|
+
iconsWidth && drawIcons();
|
|
312
|
+
const yScaleValueList = left.yScaleValue.filter((v) => v.layout === "left" && v.type !== "pain" && v.show);
|
|
313
|
+
if ((right == null ? void 0 : right.width) && ((_a = right == null ? void 0 : right.yScaleValue) == null ? void 0 : _a.layout) === "left" && ((_b = right == null ? void 0 : right.yScaleValue) == null ? void 0 : _b.show)) {
|
|
314
|
+
yScaleValueList.push(getRightInfo);
|
|
315
|
+
}
|
|
316
|
+
if (painIndex > 0 && left.yScaleValue[painIndex].show) {
|
|
317
|
+
const painObj = left.yScaleValue[painIndex];
|
|
318
|
+
painIndex === 0 && left.yScaleValue.length > 1 && yScaleValueList.unshift(painObj);
|
|
319
|
+
painIndex == left.yScaleValue.length - 1 && yScaleValueList.push(painObj);
|
|
320
|
+
}
|
|
321
|
+
drawScaleValue(yScaleValueList);
|
|
322
|
+
drawBorder();
|
|
329
323
|
return {
|
|
330
324
|
drawScaleValue
|
|
331
325
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { onMounted, nextTick } from 'vue';
|
|
2
1
|
import { fabric } from '../utils/index.js';
|
|
3
2
|
import { defaultStyle } from './useDraw.js';
|
|
4
3
|
|
|
@@ -89,11 +88,7 @@ function useOther(canvas, propItems, cumputedX) {
|
|
|
89
88
|
trueHeight: texts.length * yCellHeight
|
|
90
89
|
});
|
|
91
90
|
}
|
|
92
|
-
|
|
93
|
-
nextTick(() => {
|
|
94
|
-
drawOther();
|
|
95
|
-
});
|
|
96
|
-
});
|
|
91
|
+
drawOther();
|
|
97
92
|
}
|
|
98
93
|
|
|
99
94
|
export { useOther };
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
import { onMounted, nextTick } from 'vue';
|
|
2
1
|
import { fabric } from '../utils/index.js';
|
|
3
2
|
import { defaultBorderStyle } from './useDraw.js';
|
|
4
3
|
|
|
5
4
|
function useRight(canvas, propItems, drawScaleValue) {
|
|
5
|
+
var _a, _b;
|
|
6
6
|
const { left, right, getRightInfo, canvasWidth, endY, endX, originY } = propItems;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const rightBorderLine2 = new fabric.Line([endX + 1, originY, canvasWidth - 1, originY], {
|
|
17
|
-
...defaultBorderStyle,
|
|
18
|
-
stroke: "#fff"
|
|
19
|
-
});
|
|
20
|
-
canvas.value.add(rightBorderLine, rightBorderLine2);
|
|
21
|
-
}
|
|
22
|
-
drawScaleValue(yScaleValueList);
|
|
7
|
+
const yScaleValueList = left.yScaleValue.filter((v) => v.layout === "right" && v.show);
|
|
8
|
+
if ((right == null ? void 0 : right.width) && ((_a = right == null ? void 0 : right.yScaleValue) == null ? void 0 : _a.layout) === "right" && ((_b = right == null ? void 0 : right.yScaleValue) == null ? void 0 : _b.show)) {
|
|
9
|
+
yScaleValueList.push(getRightInfo);
|
|
10
|
+
}
|
|
11
|
+
if ((right == null ? void 0 : right.width) || yScaleValueList.length > 0) {
|
|
12
|
+
const rightBorderLine = new fabric.Line([canvasWidth - 1, 0, canvasWidth - 1, endY], defaultBorderStyle);
|
|
13
|
+
const rightBorderLine2 = new fabric.Line([endX + 1, originY, canvasWidth - 1, originY], {
|
|
14
|
+
...defaultBorderStyle,
|
|
15
|
+
stroke: "#fff"
|
|
23
16
|
});
|
|
24
|
-
|
|
17
|
+
canvas.value.add(rightBorderLine, rightBorderLine2);
|
|
18
|
+
}
|
|
19
|
+
drawScaleValue(yScaleValueList);
|
|
25
20
|
}
|
|
26
21
|
|
|
27
22
|
export { useRight };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { fabric } from '../utils';
|
|
3
|
+
export default function useTemperatureChart(canvas: Ref<fabric.Canvas>, props: any, emits: any, canvasRef: Ref<any>): {
|
|
4
|
+
propItems: any;
|
|
5
|
+
redrawPoints: Ref<any>;
|
|
6
|
+
select: Ref<any>;
|
|
7
|
+
pointTipProps: {
|
|
8
|
+
show: boolean;
|
|
9
|
+
point: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
list: string[];
|
|
14
|
+
};
|
|
15
|
+
pointMenuProps: {
|
|
16
|
+
show: boolean;
|
|
17
|
+
point: {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
};
|
|
21
|
+
list: any[];
|
|
22
|
+
target: any;
|
|
23
|
+
};
|
|
24
|
+
clickMenu: Ref<any>;
|
|
25
|
+
};
|