cnhis-design-vue 3.4.0-beta.62 → 3.4.0-beta.65
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/_virtual/_virtual_i18n-methods.js +5 -1
- package/es/components/fabric-chart/index.d.ts +3 -3
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +3 -3
- package/es/components/fabric-chart/src/components/PopupMenu.d.ts +4 -4
- package/es/components/fabric-chart/src/components/PopupMenu.js +57 -39
- package/es/components/fabric-chart/src/constants/index.d.ts +19 -4
- package/es/components/fabric-chart/src/constants/index.js +26 -10
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +119 -193
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +15 -26
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +6 -7
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -9
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +4 -3
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +81 -218
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +14 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.js +1 -10
- package/es/components/fabric-chart/style/index.css +1 -1
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -0
- package/es/components/index.css +1 -1
- package/es/components/select-person/src/SelectPerson.vue2.js +4 -3
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
|
@@ -15,7 +15,7 @@ import './useTop.js';
|
|
|
15
15
|
import '@vueuse/core';
|
|
16
16
|
import '../../../../../shared/utils/index.js';
|
|
17
17
|
|
|
18
|
-
const NEW_OTHER_MENU = filter(OTHER_MENU, (o) => o.
|
|
18
|
+
const NEW_OTHER_MENU = filter(OTHER_MENU, (o) => o.key !== "add");
|
|
19
19
|
function useOther(canvas, propItems, emits, pointTipProps, pointMenuProps, moveLimit, getContainPoints, showDialog, removeCurrentSelection) {
|
|
20
20
|
const { computedX, getXValue } = useBirthProcessCumputedPoint(propItems);
|
|
21
21
|
const { getEqualXTypes, handleAddPrevent, isGridLimit, getPointEventProps } = useCommon(canvas, emits, propItems);
|
|
@@ -216,14 +216,14 @@ function useOther(canvas, propItems, emits, pointTipProps, pointMenuProps, moveL
|
|
|
216
216
|
});
|
|
217
217
|
canvas.value.add(...gridPointsMap.get(key));
|
|
218
218
|
}
|
|
219
|
-
function clickMenu({ item, target }) {
|
|
219
|
+
function clickMenu({ item, target, pointer }) {
|
|
220
220
|
if (!target)
|
|
221
221
|
return;
|
|
222
|
-
const {
|
|
222
|
+
const { key, _type } = item;
|
|
223
223
|
const params = { ...target.origin, type: _type };
|
|
224
|
-
emits(
|
|
225
|
-
if (
|
|
226
|
-
updateData(params,
|
|
224
|
+
emits(key, params);
|
|
225
|
+
if (key === "remove") {
|
|
226
|
+
updateData(params, key);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
function updateData(params, mode = "add") {
|
|
@@ -447,7 +447,6 @@ function useOther(canvas, propItems, emits, pointTipProps, pointMenuProps, moveL
|
|
|
447
447
|
pointMenuProps.list = NEW_OTHER_MENU.map((item) => {
|
|
448
448
|
return {
|
|
449
449
|
...item,
|
|
450
|
-
renderItem: () => item.label,
|
|
451
450
|
_type: "other"
|
|
452
451
|
};
|
|
453
452
|
});
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
3
|
import { AnyObject } from '../../../../../shared/types';
|
|
4
|
-
import { IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
|
|
4
|
+
import { IPointTipProps, IPointMenuProps, ICoordinateValue, PopupMenuItem } from '../../../../../components/fabric-chart/src/interface';
|
|
5
5
|
export declare function useTop(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
|
|
6
6
|
redrawLinePoints: () => void;
|
|
7
|
-
clickMenu: ({ item, target }: {
|
|
8
|
-
item:
|
|
7
|
+
clickMenu: ({ item, target, pointer }: {
|
|
8
|
+
item: PopupMenuItem;
|
|
9
9
|
target: any;
|
|
10
|
+
pointer: ICoordinateValue;
|
|
10
11
|
}) => void;
|
|
11
12
|
};
|
|
@@ -18,7 +18,7 @@ import '@vueuse/core';
|
|
|
18
18
|
import './useOther.js';
|
|
19
19
|
import '../../../../../shared/utils/index.js';
|
|
20
20
|
|
|
21
|
-
const NEW_OTHER_MENU = filter(OTHER_MENU, (o) => o.
|
|
21
|
+
const NEW_OTHER_MENU = filter(OTHER_MENU, (o) => o.key !== "add");
|
|
22
22
|
function findTreeItem(tree, type, [x, y]) {
|
|
23
23
|
var _a, _b;
|
|
24
24
|
let item = null;
|
|
@@ -776,8 +776,6 @@ function useTop(canvas, propItems, emits, pointTipProps, pointMenuProps) {
|
|
|
776
776
|
pointMenuProps.list = NEW_OTHER_MENU.concat(treeMenuList).map((item) => {
|
|
777
777
|
return {
|
|
778
778
|
...item,
|
|
779
|
-
renderItem: () => item.label,
|
|
780
|
-
type: item.key || item.type,
|
|
781
779
|
_type: "tree"
|
|
782
780
|
};
|
|
783
781
|
});
|
|
@@ -793,21 +791,22 @@ function useTop(canvas, propItems, emits, pointTipProps, pointMenuProps) {
|
|
|
793
791
|
}
|
|
794
792
|
function clickMenu({
|
|
795
793
|
item,
|
|
796
|
-
target
|
|
794
|
+
target,
|
|
795
|
+
pointer
|
|
797
796
|
}) {
|
|
798
797
|
var _a;
|
|
799
798
|
if (!target)
|
|
800
799
|
return;
|
|
801
800
|
const {
|
|
802
|
-
|
|
801
|
+
key,
|
|
803
802
|
_type
|
|
804
803
|
} = item;
|
|
805
804
|
const params = {
|
|
806
805
|
...target.origin,
|
|
807
806
|
type: _type
|
|
808
807
|
};
|
|
809
|
-
if (NEW_OTHER_MENU.map((item2) => item2.
|
|
810
|
-
if (
|
|
808
|
+
if (NEW_OTHER_MENU.map((item2) => item2.key).includes(key)) {
|
|
809
|
+
if (key === "remove") {
|
|
811
810
|
const removeItemList = [...gridPoints].filter((p) => {
|
|
812
811
|
var _a2;
|
|
813
812
|
return ((_a2 = p.origin) == null ? void 0 : _a2.uuid) === params.uuid;
|
|
@@ -819,9 +818,9 @@ function useTop(canvas, propItems, emits, pointTipProps, pointMenuProps) {
|
|
|
819
818
|
});
|
|
820
819
|
}
|
|
821
820
|
}
|
|
822
|
-
emits(
|
|
821
|
+
emits(key, omit(params, ["uuid"]));
|
|
823
822
|
} else {
|
|
824
|
-
(_a = extraMenuConfig.click) == null ? void 0 : _a.call(extraMenuConfig,
|
|
823
|
+
(_a = extraMenuConfig.click) == null ? void 0 : _a.call(extraMenuConfig, key, omit(params, ["uuid"]));
|
|
825
824
|
}
|
|
826
825
|
}
|
|
827
826
|
useGrid(canvas, {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../../../../../shared/utils/fabricjs';
|
|
3
|
-
import { IObject, IPropItems, IPointTipProps, IPointMenuProps } from '../../../../../components/fabric-chart/src/interface';
|
|
3
|
+
import { IObject, IPropItems, IPointTipProps, IPointMenuProps, PopupMenuItem, ICoordinateValue } from '../../../../../components/fabric-chart/src/interface';
|
|
4
4
|
import { AnyObject } from '../../../../../shared/types';
|
|
5
5
|
export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, computedX: Function, computedY: Function, getXValue: Function, getYValue: Function, addRenderItem: Function | undefined, pointTipProps: IPointTipProps, pointMenuProps: IPointMenuProps): {
|
|
6
|
-
clickMenu: ({ item, target }: {
|
|
7
|
-
item:
|
|
6
|
+
clickMenu: ({ item, target, pointer }: {
|
|
7
|
+
item: PopupMenuItem;
|
|
8
8
|
target: any;
|
|
9
|
+
pointer: ICoordinateValue;
|
|
9
10
|
}) => void;
|
|
10
11
|
setPopup: (point: any, status?: string) => void;
|
|
11
12
|
isAddPoint: (x: number) => boolean;
|