cnhis-design-vue 3.1.33-beta.9 → 3.1.34-beta.0

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 (150) 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/button-print/index.d.ts +13 -0
  12. package/es/components/button-print/src/ButtonPrint.vue.d.ts +13 -0
  13. package/es/components/button-print/src/ButtonPrint.vue2.js +8 -1
  14. package/es/components/button-print/src/utils/print.d.ts +2 -2
  15. package/es/components/button-print/src/utils/print.js +7 -4
  16. package/es/components/fabric-chart/index.d.ts +133 -2
  17. package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +132 -0
  18. package/es/components/fabric-chart/src/BirthProcessChart.vue.js +62 -8
  19. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +133 -2
  20. package/es/components/fabric-chart/src/FabricChart.vue.js +2 -2
  21. package/es/components/fabric-chart/src/TemperatureChart.vue.d.ts +1 -2
  22. package/es/components/fabric-chart/src/TemperatureChart.vue.js +17 -9
  23. package/es/components/fabric-chart/src/components/PopupMenu.js +2 -2
  24. package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +3 -2
  25. package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
  26. package/es/components/fabric-chart/src/hooks/index.js +1 -0
  27. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +23 -1
  28. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +305 -9
  29. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +0 -2
  30. package/es/components/fabric-chart/src/hooks/useCenter.js +27 -45
  31. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +8 -0
  32. package/es/components/fabric-chart/src/hooks/useCommon.js +32 -0
  33. package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +5 -2
  34. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +27 -10
  35. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
  36. package/es/components/fabric-chart/src/hooks/useLeft.js +12 -7
  37. package/es/components/fabric-chart/src/interface.d.ts +1 -0
  38. package/es/components/fabric-chart/src/utils/utils.d.ts +11 -0
  39. package/es/components/fabric-chart/src/utils/utils.js +27 -0
  40. package/es/components/iho-table/index.d.ts +4 -3
  41. package/es/components/iho-table/src/IhoTable.vue.d.ts +4 -3
  42. package/es/components/iho-table/src/IhoTable.vue.js +6 -4
  43. package/es/components/iho-table/src/components/IhoTableColumn.js +1 -1
  44. package/es/components/iho-table/src/constants/index.d.ts +3 -3
  45. package/es/components/iho-table/src/constants/index.js +0 -1
  46. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +5 -1
  47. package/es/components/iho-table/src/hooks/tapHooks/index.js +10 -9
  48. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -2
  49. package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +119 -119
  50. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +5 -3
  51. package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -1
  52. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +16 -4
  53. package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +9 -4
  54. package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +6 -1
  55. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
  56. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +51 -24
  57. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +37 -51
  58. package/es/components/iho-table/src/plugins/filterPlugin/index.js +181 -20
  59. package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +2 -6
  60. package/es/components/iho-table/src/plugins/filterPlugin/types.js +0 -7
  61. package/es/components/iho-table/src/plugins/index.js +1 -1
  62. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  63. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +7 -4
  64. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +8 -8
  65. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +8 -12
  66. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +2 -2
  67. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/{useCommon.d.ts → useAutoFocus.d.ts} +2 -1
  68. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/{useCommon.js → useAutoFocus.js} +6 -2
  69. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +4 -2
  70. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +11 -5
  71. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +5 -5
  72. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +14 -15
  73. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +2 -2
  74. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +9 -9
  75. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +9 -10
  76. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +5 -5
  77. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +7 -1
  78. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +3 -5
  79. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +5 -2
  80. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +7 -4
  81. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
  82. package/es/components/iho-table/src/types/index.d.ts +10 -12
  83. package/es/components/iho-table/src/types/pluginType.d.ts +28 -12
  84. package/es/components/iho-table/src/utils/index.d.ts +5 -10
  85. package/es/components/iho-table/src/utils/index.js +19 -26
  86. package/es/components/iho-table/style/index.css +1 -1
  87. package/es/components/index.css +1 -1
  88. package/es/components/info-header/src/InfoHeader.vue.js +1 -1
  89. package/es/components/info-header/style/index.css +1 -1
  90. package/es/components/keyboard/index.d.ts +62 -1
  91. package/es/components/keyboard/src/Keyboard.vue.d.ts +62 -1
  92. package/es/components/keyboard/src/Keyboard.vue.js +4 -1
  93. package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +67 -5
  94. package/es/components/keyboard/src/components/NumberPanel.vue.js +48 -26
  95. package/es/components/keyboard/style/index.css +1 -1
  96. package/es/components/select-person/index.d.ts +1 -2
  97. package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -2
  98. package/es/components/select-person/src/SelectPerson.vue2.js +20 -19
  99. package/es/components/select-person/src/utils/index.d.ts +1 -0
  100. package/es/components/select-person/src/utils/index.js +15 -1
  101. package/es/shared/assets/img/failure.js +1 -1
  102. package/es/shared/assets/img/failure.png.js +1 -1
  103. package/es/shared/assets/img/icon-asc.js +1 -1
  104. package/es/shared/assets/img/icon-desc.js +1 -1
  105. package/es/shared/assets/img/no-permission.js +1 -1
  106. package/es/shared/assets/img/no-permission.png.js +1 -1
  107. package/es/shared/assets/img/nodata.js +1 -1
  108. package/es/shared/assets/img/nodata.png.js +1 -1
  109. package/es/shared/assets/img/notfound.js +1 -1
  110. package/es/shared/assets/img/notfound.png.js +1 -1
  111. package/es/shared/assets/img/qr.js +1 -1
  112. package/es/shared/assets/img/qr.png.js +1 -1
  113. package/es/shared/assets/img/success.js +1 -1
  114. package/es/shared/assets/img/success.png.js +1 -1
  115. package/es/shared/assets/img/video.js +1 -1
  116. package/es/shared/assets/img/video.png.js +1 -1
  117. package/es/shared/assets/img/video_default_cover.js +1 -1
  118. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  119. package/es/shared/assets/img/video_hover.js +1 -1
  120. package/es/shared/assets/img/video_play_hover.js +1 -1
  121. package/es/shared/assets/img/xb_big.js +1 -1
  122. package/es/shared/assets/img/xb_big.png.js +1 -1
  123. package/es/shared/assets/img/xb_small.js +1 -1
  124. package/es/shared/assets/img/xb_small.png.js +1 -1
  125. package/package.json +2 -2
  126. package/es/components/big-table/src/components/edit-form/dist/edit-date.d.ts +0 -36
  127. package/es/components/big-table/src/components/edit-form/dist/edit-select.d.ts +0 -37
  128. package/es/components/big-table/src/components/edit-form/dist/edit-time.d.ts +0 -45
  129. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  130. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  131. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  132. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  133. package/es/components/fabric-chart/src/constants/index.d.ts +0 -4
  134. package/es/components/fabric-chart/src/constants/index.js +0 -4
  135. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  136. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +0 -65
  137. package/es/components/form-render/src/components/renderer/dist/radio.d.ts +0 -64
  138. package/es/components/form-render/src/components/renderer/dist/remoteSearch.d.ts +0 -46
  139. package/es/components/form-render/src/components/renderer/dist/search.d.ts +0 -56
  140. package/es/components/form-render/src/components/renderer/dist/select.d.ts +0 -55
  141. package/es/components/iho-table/src/components/dist/IhoTableColumn.d.ts +0 -20
  142. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +0 -3
  143. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/inputRendererPlugin.d.ts +0 -3
  144. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/numberRendererPlugin.d.ts +0 -3
  145. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/timeRendererPlugin.d.ts +0 -3
  146. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/dist/editSelect.d.ts +0 -42
  147. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/dist/index.d.ts +0 -3
  148. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/dist/index.d.ts +0 -3
  149. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  150. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -85,7 +85,6 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
85
85
  getXValue: (pointX: number) => string | undefined;
86
86
  getYValue: (type: import("./src/interface").IPointType, pointY: number) => number;
87
87
  setPopup: (point: any) => void;
88
- getEqualXTypes: (pointX: number) => import("./src/interface").IPointType[];
89
88
  isAddPoint: (x: number) => boolean;
90
89
  updateData: (params: any, mode?: string) => void;
91
90
  redrawPoints: () => void;
@@ -135,7 +134,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
135
134
  show: boolean;
136
135
  point: import("./src/interface").ICoordinateValue;
137
136
  list: string[];
138
- propItems: import("./src/interface").IPropItems;
137
+ propItems: import("../../../es/shared/types").AnyObject;
139
138
  };
140
139
  pointStyle: import("vue").ComputedRef<{
141
140
  top: string;
@@ -257,11 +256,143 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
257
256
  xCellWidth: import("vue").ComputedRef<number>;
258
257
  yCellHeight: import("vue").ComputedRef<number>;
259
258
  originY: import("vue").ComputedRef<number>;
259
+ originYCervix: import("vue").ComputedRef<number>;
260
260
  endY: import("vue").ComputedRef<number>;
261
+ startTime: import("vue").ComputedRef<number>;
262
+ timeXCell: import("vue").ComputedRef<number>;
263
+ cervixYCell: import("vue").ComputedRef<number>;
264
+ FHRYCell: import("vue").ComputedRef<number>;
265
+ fetalPresentationYCell: import("vue").ComputedRef<number>;
266
+ event: import("vue").ComputedRef<any>;
261
267
  select: import("vue").Ref<any>;
262
268
  canvasRef: any;
263
269
  canvas: import("vue").Ref<any>;
264
270
  propItems: any;
271
+ pointTipProps: {
272
+ show: boolean;
273
+ point: {
274
+ x: number;
275
+ y: number;
276
+ };
277
+ list: string[];
278
+ };
279
+ pointMenuProps: {
280
+ show: boolean;
281
+ point: {
282
+ x: number;
283
+ y: number;
284
+ };
285
+ list: any[];
286
+ target: any;
287
+ };
288
+ clickMenu: ({ item, target }: {
289
+ item: any;
290
+ target: any;
291
+ }) => void;
292
+ PopupTip: import("vue").DefineComponent<{
293
+ show: {
294
+ type: BooleanConstructor;
295
+ required: true;
296
+ default: boolean;
297
+ };
298
+ point: {
299
+ type: null;
300
+ required: true;
301
+ };
302
+ list: {
303
+ type: ArrayConstructor;
304
+ required: false;
305
+ default: () => never[];
306
+ };
307
+ propItems: {
308
+ type: null;
309
+ required: true;
310
+ };
311
+ }, {
312
+ props: {
313
+ show: boolean;
314
+ point: import("./src/interface").ICoordinateValue;
315
+ list: string[];
316
+ propItems: import("../../../es/shared/types").AnyObject;
317
+ };
318
+ pointStyle: import("vue").ComputedRef<{
319
+ top: string;
320
+ bottom: string;
321
+ left: string;
322
+ right: string;
323
+ 'transform-origin': string;
324
+ }>;
325
+ Teleport: {
326
+ new (): {
327
+ $props: import("vue").VNodeProps & import("vue").TeleportProps;
328
+ };
329
+ __isTeleport: true;
330
+ };
331
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
332
+ show: {
333
+ type: BooleanConstructor;
334
+ required: true;
335
+ default: boolean;
336
+ };
337
+ point: {
338
+ type: null;
339
+ required: true;
340
+ };
341
+ list: {
342
+ type: ArrayConstructor;
343
+ required: false;
344
+ default: () => never[];
345
+ };
346
+ propItems: {
347
+ type: null;
348
+ required: true;
349
+ };
350
+ }>>, {
351
+ list: unknown[];
352
+ }>;
353
+ PopupMenu: import("vue").DefineComponent<{
354
+ show: {
355
+ type: BooleanConstructor;
356
+ default: boolean;
357
+ };
358
+ list: {
359
+ type: ArrayConstructor;
360
+ default: () => never[];
361
+ };
362
+ point: {
363
+ type: import("vue").PropType<import("./src/interface").ICoordinateValue>;
364
+ };
365
+ propItems: {
366
+ type: import("vue").PropType<import("./src/interface").IPropItems>;
367
+ };
368
+ target: {
369
+ type: import("vue").PropType<any>;
370
+ };
371
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "clickMenu")[], "clickMenu" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
372
+ show: {
373
+ type: BooleanConstructor;
374
+ default: boolean;
375
+ };
376
+ list: {
377
+ type: ArrayConstructor;
378
+ default: () => never[];
379
+ };
380
+ point: {
381
+ type: import("vue").PropType<import("./src/interface").ICoordinateValue>;
382
+ };
383
+ propItems: {
384
+ type: import("vue").PropType<import("./src/interface").IPropItems>;
385
+ };
386
+ target: {
387
+ type: import("vue").PropType<any>;
388
+ };
389
+ }>> & {
390
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
391
+ onClickMenu?: ((...args: any[]) => any) | undefined;
392
+ }, {
393
+ show: boolean;
394
+ list: unknown[];
395
+ }>;
265
396
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "change" | "add" | "select")[], "delete" | "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
266
397
  data: {
267
398
  type: import("vue").PropType<import("./src/interface").IBirthProcessData>;
@@ -30,11 +30,143 @@ declare const _default: import("vue").DefineComponent<{
30
30
  xCellWidth: import("vue").ComputedRef<number>;
31
31
  yCellHeight: import("vue").ComputedRef<number>;
32
32
  originY: import("vue").ComputedRef<number>;
33
+ originYCervix: import("vue").ComputedRef<number>;
33
34
  endY: import("vue").ComputedRef<number>;
35
+ startTime: import("vue").ComputedRef<number>;
36
+ timeXCell: import("vue").ComputedRef<number>;
37
+ cervixYCell: import("vue").ComputedRef<number>;
38
+ FHRYCell: import("vue").ComputedRef<number>;
39
+ fetalPresentationYCell: import("vue").ComputedRef<number>;
40
+ event: import("vue").ComputedRef<any>;
34
41
  select: import("vue").Ref<any>;
35
42
  canvasRef: any;
36
43
  canvas: import("vue").Ref<any>;
37
44
  propItems: any;
45
+ pointTipProps: {
46
+ show: boolean;
47
+ point: {
48
+ x: number;
49
+ y: number;
50
+ };
51
+ list: string[];
52
+ };
53
+ pointMenuProps: {
54
+ show: boolean;
55
+ point: {
56
+ x: number;
57
+ y: number;
58
+ };
59
+ list: any[];
60
+ target: any;
61
+ };
62
+ clickMenu: ({ item, target }: {
63
+ item: any;
64
+ target: any;
65
+ }) => void;
66
+ PopupTip: import("vue").DefineComponent<{
67
+ show: {
68
+ type: BooleanConstructor;
69
+ required: true;
70
+ default: boolean;
71
+ };
72
+ point: {
73
+ type: null;
74
+ required: true;
75
+ };
76
+ list: {
77
+ type: ArrayConstructor;
78
+ required: false;
79
+ default: () => never[];
80
+ };
81
+ propItems: {
82
+ type: null;
83
+ required: true;
84
+ };
85
+ }, {
86
+ props: {
87
+ show: boolean;
88
+ point: import("./interface").ICoordinateValue;
89
+ list: string[];
90
+ propItems: AnyObject;
91
+ };
92
+ pointStyle: import("vue").ComputedRef<{
93
+ top: string;
94
+ bottom: string;
95
+ left: string;
96
+ right: string;
97
+ 'transform-origin': string;
98
+ }>;
99
+ Teleport: {
100
+ new (): {
101
+ $props: import("vue").VNodeProps & import("vue").TeleportProps;
102
+ };
103
+ __isTeleport: true;
104
+ };
105
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
106
+ show: {
107
+ type: BooleanConstructor;
108
+ required: true;
109
+ default: boolean;
110
+ };
111
+ point: {
112
+ type: null;
113
+ required: true;
114
+ };
115
+ list: {
116
+ type: ArrayConstructor;
117
+ required: false;
118
+ default: () => never[];
119
+ };
120
+ propItems: {
121
+ type: null;
122
+ required: true;
123
+ };
124
+ }>>, {
125
+ list: unknown[];
126
+ }>;
127
+ PopupMenu: import("vue").DefineComponent<{
128
+ show: {
129
+ type: BooleanConstructor;
130
+ default: boolean;
131
+ };
132
+ list: {
133
+ type: ArrayConstructor;
134
+ default: () => never[];
135
+ };
136
+ point: {
137
+ type: PropType<import("./interface").ICoordinateValue>;
138
+ };
139
+ propItems: {
140
+ type: PropType<import("./interface").IPropItems>;
141
+ };
142
+ target: {
143
+ type: PropType<any>;
144
+ };
145
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "clickMenu")[], "clickMenu" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
146
+ show: {
147
+ type: BooleanConstructor;
148
+ default: boolean;
149
+ };
150
+ list: {
151
+ type: ArrayConstructor;
152
+ default: () => never[];
153
+ };
154
+ point: {
155
+ type: PropType<import("./interface").ICoordinateValue>;
156
+ };
157
+ propItems: {
158
+ type: PropType<import("./interface").IPropItems>;
159
+ };
160
+ target: {
161
+ type: PropType<any>;
162
+ };
163
+ }>> & {
164
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
165
+ onClickMenu?: ((...args: any[]) => any) | undefined;
166
+ }, {
167
+ show: boolean;
168
+ list: unknown[];
169
+ }>;
38
170
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "change" | "add" | "select")[], "delete" | "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
39
171
  data: {
40
172
  type: PropType<IBirthProcessData>;
@@ -1,10 +1,13 @@
1
- import { defineComponent, computed, ref, reactive, onMounted, onBeforeUnmount, openBlock, createElementBlock } from 'vue';
1
+ import { defineComponent, computed, ref, reactive, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, unref, createBlock, mergeProps, createCommentVNode } from 'vue';
2
2
  import { fabric } from './utils/index.js';
3
3
  import { defaultBorderStyle } from './hooks/useDraw.js';
4
+ import 'naive-ui';
4
5
  import './hooks/useShadow.js';
5
6
  import 'lodash-es';
6
- import '@vueuse/core';
7
+ import { useEvent } from './hooks/useEvent.js';
7
8
  import { useBirthProcess } from './hooks/useBirthProcess.js';
9
+ import PopupTip from './components/PopupTip.vue.js';
10
+ import PopupMenu from './components/PopupMenu.js';
8
11
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
9
12
 
10
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -59,10 +62,38 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
62
  return height / (gridYNumber.value + xAxisNumber);
60
63
  });
61
64
  const originY = computed(() => yCellHeight.value);
65
+ const originYCervix = computed(() => {
66
+ const { scaleValues } = props.data;
67
+ const cervixItem = scaleValues.find((item) => item.key === "cervix");
68
+ const [, max] = (cervixItem == null ? void 0 : cervixItem.range) || [0, 10];
69
+ const spaceValue = (cervixItem == null ? void 0 : cervixItem.spaceValue) || 1;
70
+ return endY.value - max * spaceValue * yCellHeight.value;
71
+ });
62
72
  const endY = computed(() => {
63
73
  const { height } = props.data;
64
74
  return height - yCellHeight.value;
65
75
  });
76
+ const startTime = computed(() => new Date(props.data.xAxis.time.startTime).getTime());
77
+ const timeXCell = computed(() => 1 * 60 * 60 * 1e3 / xCellWidth.value);
78
+ const cervixYCell = computed(() => {
79
+ const { scaleValues } = props.data;
80
+ const cervixItem = scaleValues.find((item) => item.key === "cervix");
81
+ return ((cervixItem == null ? void 0 : cervixItem.spaceValue) || 1) / yCellHeight.value;
82
+ });
83
+ const FHRYCell = computed(() => {
84
+ const { scaleValues } = props.data;
85
+ const cervixItem = scaleValues.find((item) => item.key === "FHR");
86
+ return ((cervixItem == null ? void 0 : cervixItem.spaceValue) || 10) / yCellHeight.value;
87
+ });
88
+ const fetalPresentationYCell = computed(() => {
89
+ const { scaleValues } = props.data;
90
+ const cervixItem = scaleValues.find((item) => item.key === "fetalPresentation");
91
+ return ((cervixItem == null ? void 0 : cervixItem.spaceValue) || 1) / yCellHeight.value;
92
+ });
93
+ const event = computed(() => {
94
+ var _a;
95
+ return ((_a = props.data.grid) == null ? void 0 : _a.event) || { selectable: true, evented: true, hovered: true };
96
+ });
66
97
  let select = ref();
67
98
  const canvasRef = ref(null);
68
99
  let canvas = ref();
@@ -84,9 +115,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
115
  leftScales: leftScales.value,
85
116
  rightScales: rightScales.value,
86
117
  leftAddAreaWidth,
87
- rightAddAreaWidth: rightAddAreaWidth.value
118
+ rightAddAreaWidth: rightAddAreaWidth.value,
119
+ startTime: startTime.value,
120
+ timeXCell: timeXCell.value,
121
+ cervixYCell: cervixYCell.value,
122
+ FHRYCell: FHRYCell.value,
123
+ fetalPresentationYCell: fetalPresentationYCell.value,
124
+ scaleValues: props.data.scaleValues,
125
+ event: event.value,
126
+ originYCervix: originYCervix.value
88
127
  });
89
- useBirthProcess(canvas, propItems);
128
+ const { pointTipProps, pointMenuProps, clickMenu } = useBirthProcess(canvas, propItems, emits);
90
129
  onMounted(() => {
91
130
  canvas.value = new fabric.Canvas(canvasRef.value, {
92
131
  width: propItems.canvasWidth,
@@ -96,6 +135,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
96
135
  containerClass: "c-fabric-chart",
97
136
  fireRightClick: true
98
137
  });
138
+ useEvent(canvasRef.value);
99
139
  });
100
140
  onBeforeUnmount(() => {
101
141
  canvas.value.clear();
@@ -106,10 +146,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
106
146
  canvas
107
147
  });
108
148
  return (_ctx, _cache) => {
109
- return openBlock(), createElementBlock("canvas", {
110
- ref_key: "canvasRef",
111
- ref: canvasRef
112
- }, null, 512);
149
+ return openBlock(), createElementBlock(Fragment, null, [
150
+ createElementVNode("canvas", {
151
+ ref_key: "canvasRef",
152
+ ref: canvasRef
153
+ }, null, 512),
154
+ unref(canvas) ? (openBlock(), createBlock(PopupTip, mergeProps({
155
+ key: 0,
156
+ propItems
157
+ }, unref(pointTipProps)), null, 16, ["propItems"])) : createCommentVNode("v-if", true),
158
+ unref(canvas) ? (openBlock(), createBlock(unref(PopupMenu), mergeProps({
159
+ key: 1,
160
+ propItems
161
+ }, unref(pointMenuProps), {
162
+ show: unref(pointMenuProps).show,
163
+ "onUpdate:show": _cache[0] || (_cache[0] = ($event) => unref(pointMenuProps).show = $event),
164
+ onClickMenu: unref(clickMenu)
165
+ }), null, 16, ["propItems", "show", "onClickMenu"])) : createCommentVNode("v-if", true)
166
+ ], 64);
113
167
  };
114
168
  }
115
169
  });
@@ -86,7 +86,6 @@ declare const _default: import("vue").DefineComponent<{
86
86
  getXValue: (pointX: number) => string | undefined;
87
87
  getYValue: (type: import("./interface").IPointType, pointY: number) => number;
88
88
  setPopup: (point: any) => void;
89
- getEqualXTypes: (pointX: number) => import("./interface").IPointType[];
90
89
  isAddPoint: (x: number) => boolean;
91
90
  updateData: (params: any, mode?: string) => void;
92
91
  redrawPoints: () => void;
@@ -136,7 +135,7 @@ declare const _default: import("vue").DefineComponent<{
136
135
  show: boolean;
137
136
  point: import("./interface").ICoordinateValue;
138
137
  list: string[];
139
- propItems: import("./interface").IPropItems;
138
+ propItems: import("../../../shared/types").AnyObject;
140
139
  };
141
140
  pointStyle: import("vue").ComputedRef<{
142
141
  top: string;
@@ -258,11 +257,143 @@ declare const _default: import("vue").DefineComponent<{
258
257
  xCellWidth: import("vue").ComputedRef<number>;
259
258
  yCellHeight: import("vue").ComputedRef<number>;
260
259
  originY: import("vue").ComputedRef<number>;
260
+ originYCervix: import("vue").ComputedRef<number>;
261
261
  endY: import("vue").ComputedRef<number>;
262
+ startTime: import("vue").ComputedRef<number>;
263
+ timeXCell: import("vue").ComputedRef<number>;
264
+ cervixYCell: import("vue").ComputedRef<number>;
265
+ FHRYCell: import("vue").ComputedRef<number>;
266
+ fetalPresentationYCell: import("vue").ComputedRef<number>;
267
+ event: import("vue").ComputedRef<any>;
262
268
  select: import("vue").Ref<any>;
263
269
  canvasRef: any;
264
270
  canvas: import("vue").Ref<any>;
265
271
  propItems: any;
272
+ pointTipProps: {
273
+ show: boolean;
274
+ point: {
275
+ x: number;
276
+ y: number;
277
+ };
278
+ list: string[];
279
+ };
280
+ pointMenuProps: {
281
+ show: boolean;
282
+ point: {
283
+ x: number;
284
+ y: number;
285
+ };
286
+ list: any[];
287
+ target: any;
288
+ };
289
+ clickMenu: ({ item, target }: {
290
+ item: any;
291
+ target: any;
292
+ }) => void;
293
+ PopupTip: import("vue").DefineComponent<{
294
+ show: {
295
+ type: BooleanConstructor;
296
+ required: true;
297
+ default: boolean;
298
+ };
299
+ point: {
300
+ type: null;
301
+ required: true;
302
+ };
303
+ list: {
304
+ type: ArrayConstructor;
305
+ required: false;
306
+ default: () => never[];
307
+ };
308
+ propItems: {
309
+ type: null;
310
+ required: true;
311
+ };
312
+ }, {
313
+ props: {
314
+ show: boolean;
315
+ point: import("./interface").ICoordinateValue;
316
+ list: string[];
317
+ propItems: import("../../../shared/types").AnyObject;
318
+ };
319
+ pointStyle: import("vue").ComputedRef<{
320
+ top: string;
321
+ bottom: string;
322
+ left: string;
323
+ right: string;
324
+ 'transform-origin': string;
325
+ }>;
326
+ Teleport: {
327
+ new (): {
328
+ $props: import("vue").VNodeProps & import("vue").TeleportProps;
329
+ };
330
+ __isTeleport: true;
331
+ };
332
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
333
+ show: {
334
+ type: BooleanConstructor;
335
+ required: true;
336
+ default: boolean;
337
+ };
338
+ point: {
339
+ type: null;
340
+ required: true;
341
+ };
342
+ list: {
343
+ type: ArrayConstructor;
344
+ required: false;
345
+ default: () => never[];
346
+ };
347
+ propItems: {
348
+ type: null;
349
+ required: true;
350
+ };
351
+ }>>, {
352
+ list: unknown[];
353
+ }>;
354
+ PopupMenu: import("vue").DefineComponent<{
355
+ show: {
356
+ type: BooleanConstructor;
357
+ default: boolean;
358
+ };
359
+ list: {
360
+ type: ArrayConstructor;
361
+ default: () => never[];
362
+ };
363
+ point: {
364
+ type: PropType<import("./interface").ICoordinateValue>;
365
+ };
366
+ propItems: {
367
+ type: PropType<import("./interface").IPropItems>;
368
+ };
369
+ target: {
370
+ type: PropType<any>;
371
+ };
372
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "clickMenu")[], "clickMenu" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
373
+ show: {
374
+ type: BooleanConstructor;
375
+ default: boolean;
376
+ };
377
+ list: {
378
+ type: ArrayConstructor;
379
+ default: () => never[];
380
+ };
381
+ point: {
382
+ type: PropType<import("./interface").ICoordinateValue>;
383
+ };
384
+ propItems: {
385
+ type: PropType<import("./interface").IPropItems>;
386
+ };
387
+ target: {
388
+ type: PropType<any>;
389
+ };
390
+ }>> & {
391
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
392
+ onClickMenu?: ((...args: any[]) => any) | undefined;
393
+ }, {
394
+ show: boolean;
395
+ list: unknown[];
396
+ }>;
266
397
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "change" | "add" | "select")[], "delete" | "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
267
398
  data: {
268
399
  type: PropType<import("./interface").IBirthProcessData>;
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, ref, unref, openBlock, createBlock, mergeProps } from 'vue';
1
+ import { defineComponent, computed, ref, unref, openBlock, createBlock, mergeProps, normalizeProps } from 'vue';
2
2
  import TemperatureChart from './TemperatureChart.vue.js';
3
3
  import BirthProcessChart from './BirthProcessChart.vue.js';
4
4
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
@@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
32
  key: 0,
33
33
  ref_key: "fabricChartRef",
34
34
  ref: fabricChartRef
35
- }, _ctx.$attrs), null, 16)) : (openBlock(), createBlock(BirthProcessChart, { key: 1 }));
35
+ }, _ctx.$attrs), null, 16)) : (openBlock(), createBlock(BirthProcessChart, normalizeProps(mergeProps({ key: 1 }, _ctx.$attrs)), null, 16));
36
36
  };
37
37
  }
38
38
  });
@@ -69,7 +69,6 @@ declare const _default: import("vue").DefineComponent<{
69
69
  getXValue: (pointX: number) => string | undefined;
70
70
  getYValue: (type: IPointType, pointY: number) => number;
71
71
  setPopup: (point: any) => void;
72
- getEqualXTypes: (pointX: number) => IPointType[];
73
72
  isAddPoint: (x: number) => boolean;
74
73
  updateData: (params: any, mode?: string) => void;
75
74
  redrawPoints: () => void;
@@ -119,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{
119
118
  show: boolean;
120
119
  point: import("./interface").ICoordinateValue;
121
120
  list: string[];
122
- propItems: IPropItems;
121
+ propItems: import("../../../shared/types").AnyObject;
123
122
  };
124
123
  pointStyle: import("vue").ComputedRef<{
125
124
  top: string;
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, reactive, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, unref, createBlock, mergeProps, createCommentVNode } from 'vue';
1
+ import { defineComponent, ref, computed, reactive, onMounted, openBlock, createElementBlock, Fragment, createElementVNode, unref, createBlock, mergeProps, createCommentVNode } from 'vue';
2
2
  import { fabric } from './utils/index.js';
3
3
  import { defaultBorderStyle } from './hooks/useDraw.js';
4
4
  import { useCumputedPoint } from './hooks/useCumputedPoint.js';
@@ -9,6 +9,8 @@ import { useCenter } from './hooks/useCenter.js';
9
9
  import { useBottom } from './hooks/useBottom.js';
10
10
  import { useOther } from './hooks/useOther.js';
11
11
  import { useEvent, useCanvasEvent } from './hooks/useEvent.js';
12
+ import 'naive-ui';
13
+ import 'lodash-es';
12
14
  import PopupTip from './components/PopupTip.vue.js';
13
15
  import PopupMenu from './components/PopupMenu.js';
14
16
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
@@ -282,16 +284,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
282
284
  }
283
285
  const { cumputedX, cumputedY, getXValue, getYValue } = useCumputedPoint(propItems);
284
286
  useTop(canvas, propItems);
285
- const { setPopup, getEqualXTypes, isAddPoint, updateData, redrawPoints, pointTipProps, pointMenuProps, clickMenu } = useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, props.addRenderItem);
287
+ const { setPopup, isAddPoint, updateData, redrawPoints, pointTipProps, pointMenuProps, clickMenu } = useCenter(
288
+ canvas,
289
+ propItems,
290
+ emits,
291
+ cumputedX,
292
+ cumputedY,
293
+ getXValue,
294
+ getYValue,
295
+ props.addRenderItem
296
+ );
286
297
  const { drawScaleValue } = useLeft(
287
298
  canvas,
288
299
  propItems,
289
300
  emits,
290
301
  setPopup,
291
302
  pointTipProps,
303
+ cumputedX,
304
+ cumputedY,
292
305
  getXValue,
293
306
  getYValue,
294
- getEqualXTypes,
295
307
  isAddPoint,
296
308
  updateData
297
309
  );
@@ -311,10 +323,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
311
323
  const { select: selectFunc } = useCanvasEvent(canvas, propItems, emits);
312
324
  select.value = selectFunc;
313
325
  });
314
- onBeforeUnmount(() => {
315
- canvas.value.clear();
316
- canvas.value = null;
317
- });
318
326
  expose({
319
327
  redrawPoints,
320
328
  select,
@@ -326,11 +334,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
326
334
  ref_key: "canvasRef",
327
335
  ref: canvasRef
328
336
  }, null, 512),
329
- unref(canvas) && unref(pointTipProps) ? (openBlock(), createBlock(PopupTip, mergeProps({
337
+ unref(canvas) ? (openBlock(), createBlock(PopupTip, mergeProps({
330
338
  key: 0,
331
339
  propItems
332
340
  }, unref(pointTipProps)), null, 16, ["propItems"])) : createCommentVNode("v-if", true),
333
- unref(canvas) && unref(pointTipProps) ? (openBlock(), createBlock(unref(PopupMenu), mergeProps({
341
+ unref(canvas) ? (openBlock(), createBlock(unref(PopupMenu), mergeProps({
334
342
  key: 1,
335
343
  propItems
336
344
  }, unref(pointMenuProps), {