cnhis-design-vue 3.1.33-beta.8 → 3.1.33

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 (115) hide show
  1. package/README.md +123 -123
  2. package/es/components/big-table/index.d.ts +1 -1
  3. package/es/components/big-table/src/BigTable.vue.d.ts +1 -1
  4. package/es/components/big-table/src/BigTable.vue2.js +7 -9
  5. package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
  6. package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
  7. package/es/components/big-table/src/components/edit-form/edit-time.js +5 -3
  8. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +2 -1
  9. package/es/components/big-table/src/components/edit-form/useCommon.js +7 -3
  10. package/es/components/big-table/src/hooks/useFormat.js +1 -1
  11. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  12. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  13. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  14. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  15. package/es/components/button-print/index.d.ts +13 -0
  16. package/es/components/button-print/src/ButtonPrint.vue.d.ts +13 -0
  17. package/es/components/button-print/src/ButtonPrint.vue2.js +6 -1
  18. package/es/components/button-print/src/utils/print.d.ts +2 -2
  19. package/es/components/button-print/src/utils/print.js +7 -4
  20. package/es/components/fabric-chart/index.d.ts +133 -2
  21. package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +132 -0
  22. package/es/components/fabric-chart/src/BirthProcessChart.vue.js +62 -8
  23. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +133 -2
  24. package/es/components/fabric-chart/src/FabricChart.vue.js +2 -2
  25. package/es/components/fabric-chart/src/TemperatureChart.vue.d.ts +1 -2
  26. package/es/components/fabric-chart/src/TemperatureChart.vue.js +17 -9
  27. package/es/components/fabric-chart/src/components/PopupMenu.js +2 -2
  28. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +3 -2
  29. package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
  30. package/es/components/fabric-chart/src/hooks/index.js +1 -0
  31. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +23 -1
  32. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +305 -9
  33. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +0 -2
  34. package/es/components/fabric-chart/src/hooks/useCenter.js +27 -45
  35. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +8 -0
  36. package/es/components/fabric-chart/src/hooks/useCommon.js +32 -0
  37. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +5 -2
  38. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +27 -10
  39. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
  40. package/es/components/fabric-chart/src/hooks/useLeft.js +12 -7
  41. package/es/components/fabric-chart/src/interface.d.ts +1 -0
  42. package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
  43. package/es/components/fabric-chart/src/utils/utils.d.ts +11 -0
  44. package/es/components/fabric-chart/src/utils/utils.js +27 -0
  45. package/es/components/iho-table/index.d.ts +4 -3
  46. package/es/components/iho-table/src/IhoTable.vue.d.ts +4 -3
  47. package/es/components/iho-table/src/IhoTable.vue.js +6 -4
  48. package/es/components/iho-table/src/components/IhoTableColumn.js +1 -1
  49. package/es/components/iho-table/src/constants/index.d.ts +3 -3
  50. package/es/components/iho-table/src/constants/index.js +0 -1
  51. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +5 -1
  52. package/es/components/iho-table/src/hooks/tapHooks/index.js +10 -9
  53. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -2
  54. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +119 -119
  55. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +5 -3
  56. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -1
  57. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +16 -4
  58. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +9 -4
  59. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +5 -1
  60. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  61. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +51 -24
  62. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +37 -51
  63. package/es/components/iho-table/src/plugins/filterPlugin/index.js +181 -20
  64. package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +2 -6
  65. package/es/components/iho-table/src/plugins/filterPlugin/types.js +0 -7
  66. package/es/components/iho-table/src/plugins/index.js +1 -1
  67. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  68. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +7 -4
  69. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +3 -1
  70. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +3 -3
  71. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +3 -5
  72. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +5 -2
  73. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +7 -4
  74. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
  75. package/es/components/iho-table/src/types/index.d.ts +10 -12
  76. package/es/components/iho-table/src/types/pluginType.d.ts +28 -12
  77. package/es/components/iho-table/style/index.css +1 -1
  78. package/es/components/index.css +1 -1
  79. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  80. package/es/components/info-header/style/index.css +1 -1
  81. package/es/components/keyboard/index.d.ts +62 -1
  82. package/es/components/keyboard/src/Keyboard.vue.d.ts +62 -1
  83. package/es/components/keyboard/src/Keyboard.vue.js +4 -1
  84. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +67 -5
  85. package/es/components/keyboard/src/components/NumberPanel.vue.js +48 -26
  86. package/es/components/keyboard/style/index.css +1 -1
  87. package/es/shared/assets/img/failure.js +1 -1
  88. package/es/shared/assets/img/failure.png.js +1 -1
  89. package/es/shared/assets/img/icon-asc.js +1 -1
  90. package/es/shared/assets/img/icon-desc.js +1 -1
  91. package/es/shared/assets/img/no-permission.js +1 -1
  92. package/es/shared/assets/img/no-permission.png.js +1 -1
  93. package/es/shared/assets/img/nodata.js +1 -1
  94. package/es/shared/assets/img/nodata.png.js +1 -1
  95. package/es/shared/assets/img/notfound.js +1 -1
  96. package/es/shared/assets/img/notfound.png.js +1 -1
  97. package/es/shared/assets/img/qr.js +1 -1
  98. package/es/shared/assets/img/qr.png.js +1 -1
  99. package/es/shared/assets/img/success.js +1 -1
  100. package/es/shared/assets/img/success.png.js +1 -1
  101. package/es/shared/assets/img/video.js +1 -1
  102. package/es/shared/assets/img/video.png.js +1 -1
  103. package/es/shared/assets/img/video_default_cover.js +1 -1
  104. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  105. package/es/shared/assets/img/video_hover.js +1 -1
  106. package/es/shared/assets/img/video_play_hover.js +1 -1
  107. package/es/shared/assets/img/xb_big.js +1 -1
  108. package/es/shared/assets/img/xb_big.png.js +1 -1
  109. package/es/shared/assets/img/xb_small.js +1 -1
  110. package/es/shared/assets/img/xb_small.png.js +1 -1
  111. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  112. package/es/shared/utils/tapable/index.d.ts +139 -0
  113. package/package.json +2 -2
  114. package/es/components/fabric-chart/src/constants/index.d.ts +0 -4
  115. package/es/components/fabric-chart/src/constants/index.js +0 -4
@@ -11,11 +11,7 @@ function useCumputedPoint(propItems) {
11
11
  const index = xScaleList.findIndex((v) => v.end >= time);
12
12
  if (index > -1) {
13
13
  const item = xScaleList[index];
14
- if (time === item.start && !setAllCenter) {
15
- return item.left;
16
- } else {
17
- return item.center;
18
- }
14
+ return item.center;
19
15
  }
20
16
  }
21
17
  function cumputedY(type, scaleValueList, value) {
@@ -57,15 +53,36 @@ function useCumputedPoint(propItems) {
57
53
  };
58
54
  }
59
55
  function useBirthProcessCumputedPoint(propItems) {
60
- const { xAxis, originX, originY, xCellWidth } = propItems;
56
+ const { xAxis, originX, originY, xCellWidth, endY, timeXCell, startTime, scaleValues } = propItems;
61
57
  function cumputedX(value) {
62
58
  const time = new Date(value).getTime();
63
- const startTime = new Date(xAxis.time.startTime).getTime();
64
- const timeCell = 1 * 60 * 60 * 1e3 / xCellWidth;
65
- return (time - startTime) / timeCell + originX;
59
+ return (time - startTime) / timeXCell + originX;
60
+ }
61
+ function cumputedY(key, range, value) {
62
+ const [minValue] = range;
63
+ return endY - (+value - minValue) / propItems[`${key}YCell`];
64
+ }
65
+ function getXValue(pointX) {
66
+ const time = (pointX - originX) * timeXCell + startTime;
67
+ const d = new Date(time);
68
+ const month = `00${d.getMonth() + 1}`.slice(-2);
69
+ const day = `00${d.getDate()}`.slice(-2);
70
+ const hours = `00${d.getHours()}`.slice(-2);
71
+ const minutes = `00${d.getMinutes()}`.slice(-2);
72
+ const date = `${d.getFullYear()}-${month}-${day} ${hours}:${minutes}`;
73
+ return date;
74
+ }
75
+ function getYValue(key, pointY) {
76
+ const item = scaleValues.find((item2) => key === item2.key);
77
+ const [minValue] = (item == null ? void 0 : item.range) || [0];
78
+ const y = (endY - pointY) * propItems[`${key}YCell`] + minValue;
79
+ return Math.floor(y * 100) / 100;
66
80
  }
67
81
  return {
68
- cumputedX
82
+ cumputedX,
83
+ cumputedY,
84
+ getXValue,
85
+ getYValue
69
86
  };
70
87
  }
71
88
 
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
2
  import { fabric } from '../utils';
3
3
  import { IPropItems } from '../interface';
4
- export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any, setPopup: Function, pointTipProps: any, getXValue: Function, getYValue: Function, getEqualXTypes: Function, isAddPoint: Function, updateData: Function): {
4
+ 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): {
5
5
  drawScaleValue: (yScaleValueList: any[]) => void;
6
6
  };
@@ -1,13 +1,16 @@
1
1
  import { onMounted, nextTick } from 'vue';
2
2
  import { fabric } from '../utils/index.js';
3
3
  import { defaultBorderStyle, defaultTextStyle, defaultStyle, defaultRectStyle, drawPoint, drawTextGroup } from './useDraw.js';
4
+ import useCommmon from './useCommon.js';
4
5
 
5
- function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, getYValue, getEqualXTypes, isAddPoint, updateData) {
6
+ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, cumputedX, cumputedY, getXValue, getYValue, isAddPoint, updateData) {
7
+ const { getEqualXTypes, repeatTip } = useCommmon(canvas);
6
8
  const {
7
9
  originY,
8
10
  endY,
9
11
  originX,
10
12
  endX,
13
+ xCellWidth,
11
14
  yCellHeight,
12
15
  left,
13
16
  vitalSignsOriginY,
@@ -19,8 +22,7 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
19
22
  right,
20
23
  canvasWidth,
21
24
  canvasHeight,
22
- getRightInfo,
23
- hospitalizationDate
25
+ getRightInfo
24
26
  } = propItems;
25
27
  const mainScaleWidth = 9;
26
28
  const subScaleWidth = 5;
@@ -230,7 +232,8 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
230
232
  unit: item.unit,
231
233
  type: item.bigType,
232
234
  dataIndex: item.dataIndex,
233
- key: item.key
235
+ key: item.key,
236
+ isMenu: true
234
237
  },
235
238
  originLeft: leftX,
236
239
  originTop: topY - (text.height || 30) / 2 - 1,
@@ -270,7 +273,11 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
270
273
  pointTipProps.show = false;
271
274
  if (event.e.button === 0) {
272
275
  if (isLimit(point)) {
273
- if (!getEqualXTypes(point.left).includes(point.origin.type) && isAddPoint(point.left)) {
276
+ const isRepeat = getEqualXTypes(point.left, "type", xCellWidth).includes(point.origin.type);
277
+ const isLimitAdd = isAddPoint(point.left);
278
+ if (!isLimitAdd || isRepeat) {
279
+ isRepeat && isLimitAdd && repeatTip();
280
+ } else {
274
281
  const params = {
275
282
  data: {
276
283
  time: getXValue(point.left),
@@ -281,8 +288,6 @@ function useLeft(canvas, propItems, emits, setPopup, pointTipProps, getXValue, g
281
288
  };
282
289
  emits("add", params);
283
290
  updateData(params);
284
- } else {
285
- console.log("\u5F53\u524D\u65F6\u95F4\u6BB5\u5185\u65E0\u53EF\u65B0\u589E\u8282\u70B9");
286
291
  }
287
292
  }
288
293
  }
@@ -147,4 +147,5 @@ export interface IBirthProcessData {
147
147
  xAxis: IBirthProcessXAxis;
148
148
  scaleValues: AnyObject[];
149
149
  }
150
+ export declare type IObject = fabric.Object & AnyObject;
150
151
  export {};