cnhis-design-vue 3.1.34-beta.1 → 3.1.34-beta.10

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 (83) hide show
  1. package/README.md +123 -123
  2. package/es/components/big-table/index.d.ts +1 -0
  3. package/es/components/big-table/src/BigTable.vue.d.ts +1 -0
  4. package/es/components/big-table/src/BigTable.vue2.js +17 -5
  5. package/es/components/big-table/src/components/edit-form/edit-input.js +2 -1
  6. package/es/components/big-table/src/components/edit-form/edit-select.js +26 -1
  7. package/es/components/big-table/src/hooks/useEvent.js +3 -4
  8. package/es/components/fabric-chart/index.d.ts +141 -374
  9. package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +2 -2
  10. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +142 -374
  11. package/es/components/fabric-chart/src/FabricChart.vue.js +52 -22
  12. package/es/components/fabric-chart/src/hooks/index.d.ts +1 -0
  13. package/es/components/fabric-chart/src/hooks/index.js +1 -0
  14. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +2 -2
  15. package/es/components/fabric-chart/src/hooks/useBottom.js +1 -6
  16. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +4 -18
  17. package/es/components/fabric-chart/src/hooks/useCenter.js +5 -21
  18. package/es/components/fabric-chart/src/hooks/useCommon.d.ts +1 -1
  19. package/es/components/fabric-chart/src/hooks/useCommon.js +2 -2
  20. package/es/components/fabric-chart/src/hooks/useGrid.js +2 -7
  21. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +2 -1
  22. package/es/components/fabric-chart/src/hooks/useLeft.js +22 -28
  23. package/es/components/fabric-chart/src/hooks/useOther.js +1 -6
  24. package/es/components/fabric-chart/src/hooks/useRight.js +13 -18
  25. package/es/components/fabric-chart/src/hooks/useTemperatureChart.d.ts +25 -0
  26. package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +339 -0
  27. package/es/components/fabric-chart/src/hooks/useTop.js +1 -6
  28. package/es/components/iho-table/index.d.ts +6 -0
  29. package/es/components/iho-table/index.js +1 -1
  30. package/es/components/iho-table/src/IhoTable.vue.d.ts +6 -0
  31. package/es/components/iho-table/src/IhoTable.vue.js +12 -1
  32. package/es/components/iho-table/src/components/IhoTableColumn.js +1 -1
  33. package/es/components/iho-table/src/constants/index.d.ts +6 -0
  34. package/es/components/iho-table/src/constants/index.js +9 -7
  35. package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
  36. package/es/components/iho-table/src/hooks/tapHooks/index.js +4 -4
  37. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +19 -7
  38. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +12 -0
  39. package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +58 -25
  40. package/es/components/iho-table/src/plugins/filterPlugin/index.js +56 -55
  41. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +12 -7
  42. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +10 -3
  43. package/es/components/iho-table/src/types/index.d.ts +8 -3
  44. package/es/components/iho-table/src/utils/index.d.ts +6 -0
  45. package/es/components/iho-table/src/utils/index.js +16 -2
  46. package/es/components/iho-table/style/index.css +1 -1
  47. package/es/components/index.css +1 -1
  48. package/es/shared/assets/img/failure.js +1 -1
  49. package/es/shared/assets/img/failure.png.js +1 -1
  50. package/es/shared/assets/img/icon-asc.js +1 -1
  51. package/es/shared/assets/img/icon-desc.js +1 -1
  52. package/es/shared/assets/img/no-permission.js +1 -1
  53. package/es/shared/assets/img/no-permission.png.js +1 -1
  54. package/es/shared/assets/img/nodata.js +1 -1
  55. package/es/shared/assets/img/nodata.png.js +1 -1
  56. package/es/shared/assets/img/notfound.js +1 -1
  57. package/es/shared/assets/img/notfound.png.js +1 -1
  58. package/es/shared/assets/img/qr.js +1 -1
  59. package/es/shared/assets/img/qr.png.js +1 -1
  60. package/es/shared/assets/img/success.js +1 -1
  61. package/es/shared/assets/img/success.png.js +1 -1
  62. package/es/shared/assets/img/video.js +1 -1
  63. package/es/shared/assets/img/video.png.js +1 -1
  64. package/es/shared/assets/img/video_default_cover.js +1 -1
  65. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  66. package/es/shared/assets/img/video_hover.js +1 -1
  67. package/es/shared/assets/img/video_play_hover.js +1 -1
  68. package/es/shared/assets/img/xb_big.js +1 -1
  69. package/es/shared/assets/img/xb_big.png.js +1 -1
  70. package/es/shared/assets/img/xb_small.js +1 -1
  71. package/es/shared/assets/img/xb_small.png.js +1 -1
  72. package/es/shared/types/index.d.ts +1 -0
  73. package/package.json +2 -2
  74. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  75. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  76. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  77. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  78. package/es/components/fabric-chart/src/BirthProcessChart.vue.js +0 -172
  79. package/es/components/fabric-chart/src/TemperatureChart.vue.d.ts +0 -214
  80. package/es/components/fabric-chart/src/TemperatureChart.vue.js +0 -355
  81. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  82. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  83. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -18,4 +18,5 @@ export declare type PropertyRequired<T, K extends keyof T> = Copy<{
18
18
  export declare type TupleToUnion<T extends readonly unknown[]> = T[number];
19
19
  declare type UnionToIntersection<T> = (T extends T ? (params: T) => any : never) extends (P: infer R) => any ? R : never;
20
20
  export declare type UnionToTuple<T, Result extends unknown[] = []> = UnionToIntersection<T extends any ? () => T : never> extends () => infer Return ? UnionToTuple<Exclude<T, Return>, [Return, ...Result]> : Result;
21
+ export declare type MaybeString<T extends string | number> = T | `${T}`;
21
22
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.34-beta.1",
3
+ "version": "3.1.34-beta.10",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -61,5 +61,5 @@
61
61
  "iOS 7",
62
62
  "last 3 iOS versions"
63
63
  ],
64
- "gitHead": "ec71ec029282a8d1463f23fb466b505ff2c1ccb4"
64
+ "gitHead": "d9bf84041db4c38e1a89d7c5ce35e8aaedf42aa5"
65
65
  }
File without changes
@@ -1 +0,0 @@
1
- declare module 'bpmn-js/lib/Viewer';
@@ -1 +0,0 @@
1
- declare module 'bpmn-js/lib/features/modeling';
@@ -1 +0,0 @@
1
- declare module 'diagram-js/lib/navigation/movecanvas';
@@ -1,172 +0,0 @@
1
- import { defineComponent, computed, ref, reactive, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, unref, createBlock, mergeProps, createCommentVNode } from 'vue';
2
- import { fabric } from './utils/index.js';
3
- import { defaultBorderStyle } from './hooks/useDraw.js';
4
- import 'naive-ui';
5
- import './hooks/useShadow.js';
6
- import 'lodash-es';
7
- import { useEvent } from './hooks/useEvent.js';
8
- import { useBirthProcess } from './hooks/useBirthProcess.js';
9
- import PopupTip from './components/PopupTip.vue.js';
10
- import PopupMenu from './components/PopupMenu.js';
11
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
12
-
13
- const _sfc_main = /* @__PURE__ */ defineComponent({
14
- __name: "BirthProcessChart",
15
- props: {
16
- data: { type: Object, required: true }
17
- },
18
- emits: [
19
- "change",
20
- "add",
21
- "delete",
22
- "select"
23
- ],
24
- setup(__props, { expose, emit: emits }) {
25
- const props = __props;
26
- const leftScales = computed(() => props.data.scaleValues.filter((item) => item.layout === "left"));
27
- const rightScales = computed(() => props.data.scaleValues.filter((item) => item.layout === "right"));
28
- const leftAddAreaWidth = 30;
29
- const rightAddAreaWidth = computed(() => {
30
- var _a;
31
- return !((_a = rightScales.value) == null ? void 0 : _a.length) ? 0 : 30;
32
- });
33
- const originX = computed(() => {
34
- var _a;
35
- const leftScalesWidth = (_a = leftScales.value) == null ? void 0 : _a.reduce((width, item) => {
36
- width += item.width;
37
- return width;
38
- }, 0);
39
- return leftAddAreaWidth + leftScalesWidth;
40
- });
41
- const endX = computed(() => {
42
- var _a;
43
- const { width } = props.data;
44
- const rightScalesWidth = (_a = rightScales.value) == null ? void 0 : _a.reduce((width2, item) => {
45
- width2 += item.width;
46
- return width2;
47
- }, 0);
48
- return width - rightAddAreaWidth.value - rightScalesWidth;
49
- });
50
- const gridXNumber = computed(() => props.data.grid.mainXCell);
51
- const gridYNumber = computed(() => props.data.grid.mainYCell);
52
- const xCellWidth = computed(() => {
53
- return (endX.value - originX.value) / gridXNumber.value;
54
- });
55
- const yCellHeight = computed(() => {
56
- const { xAxis, height } = props.data;
57
- const xAxisNumber = Object.values(xAxis).reduce((num, item) => {
58
- if (item.show)
59
- num++;
60
- return num;
61
- }, 0);
62
- return height / (gridYNumber.value + xAxisNumber);
63
- });
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
- });
72
- const endY = computed(() => {
73
- const { height } = props.data;
74
- return height - yCellHeight.value;
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
- });
97
- let select = ref();
98
- const canvasRef = ref(null);
99
- let canvas = ref();
100
- const propItems = reactive({
101
- canvasWidth: props.data.width,
102
- canvasHeight: props.data.height,
103
- borderStyle: { ...defaultBorderStyle, ...props.data.borderStyle },
104
- selectionStyle: props.data.selectionStyle || {},
105
- grid: props.data.grid,
106
- originX: originX.value,
107
- endX: endX.value,
108
- originY: originY.value,
109
- endY: endY.value,
110
- xCellWidth: xCellWidth.value,
111
- yCellHeight: yCellHeight.value,
112
- gridXNumber: gridXNumber.value,
113
- gridYNumber: gridYNumber.value,
114
- xAxis: props.data.xAxis,
115
- leftScales: leftScales.value,
116
- rightScales: rightScales.value,
117
- leftAddAreaWidth,
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
127
- });
128
- const { pointTipProps, pointMenuProps, clickMenu } = useBirthProcess(canvas, propItems, emits);
129
- onMounted(() => {
130
- canvas.value = new fabric.Canvas(canvasRef.value, {
131
- width: propItems.canvasWidth,
132
- height: propItems.canvasHeight,
133
- backgroundColor: "#fff",
134
- selection: false,
135
- containerClass: "c-fabric-chart",
136
- fireRightClick: true
137
- });
138
- useEvent(canvasRef.value);
139
- });
140
- onBeforeUnmount(() => {
141
- canvas.value.clear();
142
- canvas.value = null;
143
- });
144
- expose({
145
- select,
146
- canvas
147
- });
148
- return (_ctx, _cache) => {
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);
167
- };
168
- }
169
- });
170
- var BirthProcessChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "BirthProcessChart.vue"]]);
171
-
172
- export { BirthProcessChart as default };
@@ -1,214 +0,0 @@
1
- import { PropType } from 'vue';
2
- import { IData, IDate, IPointType, IPropItems } from './interface';
3
- declare const _default: import("vue").DefineComponent<{
4
- data: {
5
- type: PropType<IData>;
6
- required: true;
7
- };
8
- addRenderItem: {
9
- type: FunctionConstructor;
10
- };
11
- }, {
12
- defaultHeight: number;
13
- props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
14
- data: {
15
- type: PropType<IData>;
16
- required: true;
17
- };
18
- addRenderItem: {
19
- type: FunctionConstructor;
20
- };
21
- }>> & {
22
- onChange?: ((...args: any[]) => any) | undefined;
23
- onSelect?: ((...args: any[]) => any) | undefined;
24
- onAdd?: ((...args: any[]) => any) | undefined;
25
- }>>;
26
- emits: (event: "change" | "add" | "select", ...args: any[]) => void;
27
- select: import("vue").Ref<any>;
28
- canvasRef: any;
29
- canvas: import("vue").Ref<any>;
30
- dateHeight: import("vue").ComputedRef<number>;
31
- hospitalDaysHeight: import("vue").ComputedRef<number>;
32
- operationDaysHeight: import("vue").ComputedRef<number>;
33
- xScalevalueHeight: import("vue").ComputedRef<number>;
34
- breathingHeight: import("vue").ComputedRef<any>;
35
- gridXNumber: import("vue").ComputedRef<number>;
36
- gridYNumber: import("vue").ComputedRef<number>;
37
- endX: import("vue").ComputedRef<number>;
38
- endXLimit: import("vue").ComputedRef<number>;
39
- originX: import("vue").ComputedRef<any>;
40
- endY: import("vue").ComputedRef<number>;
41
- originY: import("vue").ComputedRef<number>;
42
- originYLimit: import("vue").ComputedRef<number>;
43
- xCellWidth: import("vue").ComputedRef<number>;
44
- yCellHeight: import("vue").ComputedRef<number>;
45
- iconsWidth: import("vue").ComputedRef<any>;
46
- xScaleList: import("vue").ComputedRef<any[]>;
47
- breatheYCell: import("vue").ComputedRef<number>;
48
- pulseYCell: import("vue").ComputedRef<number>;
49
- temperatureYCell: import("vue").ComputedRef<number>;
50
- painYCell: import("vue").ComputedRef<number>;
51
- event: import("vue").ComputedRef<any>;
52
- itemList: import("vue").ComputedRef<any[]>;
53
- painIndex: import("vue").ComputedRef<number>;
54
- painHeight: import("vue").ComputedRef<number>;
55
- painOriginY: import("vue").ComputedRef<{
56
- originY: number;
57
- endY: number;
58
- }>;
59
- vitalSignsOriginY: import("vue").ComputedRef<{
60
- originY: number;
61
- endY: number;
62
- }>;
63
- topList: import("vue").ComputedRef<IDate[]>;
64
- getRightInfo: import("vue").ComputedRef<any>;
65
- propItems: any;
66
- computedYCell: (type: IPointType) => number;
67
- cumputedX: (value: string | number, setAllCenter?: boolean) => any;
68
- cumputedY: (type: IPointType, scaleValueList: number[], value: string | number) => number;
69
- getXValue: (pointX: number) => string | undefined;
70
- getYValue: (type: IPointType, pointY: number) => number;
71
- setPopup: (point: any) => void;
72
- isAddPoint: (x: number) => boolean;
73
- updateData: (params: any, mode?: string) => void;
74
- redrawPoints: () => void;
75
- pointTipProps: {
76
- show: boolean;
77
- point: {
78
- x: number;
79
- y: number;
80
- };
81
- list: string[];
82
- };
83
- pointMenuProps: {
84
- show: boolean;
85
- point: {
86
- x: number;
87
- y: number;
88
- };
89
- list: any[];
90
- target: any;
91
- };
92
- clickMenu: ({ item, target }: {
93
- item: any;
94
- target: any;
95
- }) => void;
96
- drawScaleValue: (yScaleValueList: any[]) => void;
97
- PopupTip: import("vue").DefineComponent<{
98
- show: {
99
- type: BooleanConstructor;
100
- required: true;
101
- default: boolean;
102
- };
103
- point: {
104
- type: null;
105
- required: true;
106
- };
107
- list: {
108
- type: ArrayConstructor;
109
- required: false;
110
- default: () => never[];
111
- };
112
- propItems: {
113
- type: null;
114
- required: true;
115
- };
116
- }, {
117
- props: {
118
- show: boolean;
119
- point: import("./interface").ICoordinateValue;
120
- list: string[];
121
- propItems: import("../../../shared/types").AnyObject;
122
- };
123
- pointStyle: import("vue").ComputedRef<{
124
- top: string;
125
- bottom: string;
126
- left: string;
127
- right: string;
128
- 'transform-origin': string;
129
- }>;
130
- Teleport: {
131
- new (): {
132
- $props: import("vue").VNodeProps & import("vue").TeleportProps;
133
- };
134
- __isTeleport: true;
135
- };
136
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
137
- show: {
138
- type: BooleanConstructor;
139
- required: true;
140
- default: boolean;
141
- };
142
- point: {
143
- type: null;
144
- required: true;
145
- };
146
- list: {
147
- type: ArrayConstructor;
148
- required: false;
149
- default: () => never[];
150
- };
151
- propItems: {
152
- type: null;
153
- required: true;
154
- };
155
- }>>, {
156
- list: unknown[];
157
- }>;
158
- PopupMenu: import("vue").DefineComponent<{
159
- show: {
160
- type: BooleanConstructor;
161
- default: boolean;
162
- };
163
- list: {
164
- type: ArrayConstructor;
165
- default: () => never[];
166
- };
167
- point: {
168
- type: PropType<import("./interface").ICoordinateValue>;
169
- };
170
- propItems: {
171
- type: PropType<IPropItems>;
172
- };
173
- target: {
174
- type: PropType<any>;
175
- };
176
- }, () => 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<{
177
- show: {
178
- type: BooleanConstructor;
179
- default: boolean;
180
- };
181
- list: {
182
- type: ArrayConstructor;
183
- default: () => never[];
184
- };
185
- point: {
186
- type: PropType<import("./interface").ICoordinateValue>;
187
- };
188
- propItems: {
189
- type: PropType<IPropItems>;
190
- };
191
- target: {
192
- type: PropType<any>;
193
- };
194
- }>> & {
195
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
196
- onClickMenu?: ((...args: any[]) => any) | undefined;
197
- }, {
198
- show: boolean;
199
- list: unknown[];
200
- }>;
201
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "add" | "select")[], "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
202
- data: {
203
- type: PropType<IData>;
204
- required: true;
205
- };
206
- addRenderItem: {
207
- type: FunctionConstructor;
208
- };
209
- }>> & {
210
- onChange?: ((...args: any[]) => any) | undefined;
211
- onSelect?: ((...args: any[]) => any) | undefined;
212
- onAdd?: ((...args: any[]) => any) | undefined;
213
- }, {}>;
214
- export default _default;