cnhis-design-vue 3.4.0-beta.62 → 3.4.0-beta.63

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 (28) hide show
  1. package/README.md +87 -87
  2. package/es/components/fabric-chart/index.d.ts +3 -3
  3. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +3 -3
  4. package/es/components/fabric-chart/src/components/PopupMenu.d.ts +4 -4
  5. package/es/components/fabric-chart/src/components/PopupMenu.js +57 -39
  6. package/es/components/fabric-chart/src/constants/index.d.ts +19 -4
  7. package/es/components/fabric-chart/src/constants/index.js +26 -10
  8. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +4 -3
  9. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +119 -193
  10. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +4 -3
  11. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +15 -26
  12. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +4 -3
  13. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +6 -7
  14. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +4 -3
  15. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -9
  16. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +4 -3
  17. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +81 -218
  18. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  19. package/es/components/fabric-chart/src/interface.d.ts +14 -1
  20. package/es/components/fabric-chart/src/utils/index.d.ts +0 -1
  21. package/es/components/fabric-chart/src/utils/index.js +1 -10
  22. package/es/components/fabric-chart/style/index.css +1 -1
  23. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  24. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  25. package/es/components/index.css +1 -1
  26. package/es/env.d.ts +25 -25
  27. package/es/shared/package.json.js +1 -1
  28. 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.type !== "add");
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 { type, _type } = item;
222
+ const { key, _type } = item;
223
223
  const params = { ...target.origin, type: _type };
224
- emits(type, params);
225
- if (type === "remove") {
226
- updateData(params, type);
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: AnyObject;
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.type !== "add");
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
- type,
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.type).includes(type)) {
810
- if (type === "remove") {
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(type, omit(params, ["uuid"]));
821
+ emits(key, omit(params, ["uuid"]));
823
822
  } else {
824
- (_a = extraMenuConfig.click) == null ? void 0 : _a.call(extraMenuConfig, type, omit(params, ["uuid"]));
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: any;
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;