cnhis-design-vue 3.3.2-beta.17 → 3.3.2-beta.19
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/README.md +87 -87
- package/es/components/audio-sdk/index.d.ts +172 -146
- package/es/components/audio-sdk/src/Index.vue.d.ts +173 -147
- package/es/components/audio-sdk/src/Index.vue2.js +131 -53
- package/es/components/audio-sdk/src/audioSDK.d.ts +29 -26
- package/es/components/audio-sdk/src/audioSDK.js +124 -42
- package/es/components/audio-sdk/src/components/readyCountdown.vue.d.ts +31 -0
- package/es/components/audio-sdk/src/components/readyCountdown.vue.js +6 -0
- package/es/components/audio-sdk/src/components/readyCountdown.vue2.js +46 -0
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +137 -10
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +138 -11
- package/es/components/audio-sdk/src/components/recording.vue2.js +317 -74
- package/es/components/audio-sdk/src/hooks/useChartAudioContext.d.ts +24 -0
- package/es/components/audio-sdk/src/hooks/useChartAudioContext.js +176 -0
- package/es/components/audio-sdk/src/svgs/Close.vue.js +26 -0
- package/es/components/audio-sdk/src/svgs/Continue.vue.js +20 -0
- package/es/components/audio-sdk/src/svgs/Enlarge.vue.js +20 -0
- package/es/components/audio-sdk/src/svgs/Pause.vue.js +20 -0
- package/es/components/audio-sdk/src/svgs/WaveView.vue.js +20 -0
- package/es/components/audio-sdk/src/svgs/Zoom.vue.js +27 -0
- package/es/components/audio-sdk/src/types/index.d.ts +42 -0
- package/es/components/audio-sdk/src/types/index.js +10 -0
- package/es/components/audio-sdk/src/utils/recordingModal.d.ts +9 -3
- package/es/components/audio-sdk/src/utils/recordingModal.js +57 -32
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/button-print/index.d.ts +11 -4
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +11 -4
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -2
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +6 -2
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +7 -2
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +12 -2
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +4 -2
- package/es/components/button-print/src/components/Preview.vue.d.ts +5 -2
- package/es/components/button-print/src/components/Preview.vue2.js +6 -2
- package/es/components/button-print/src/utils/dialog.js +2 -2
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +2 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/textarea.js +4 -3
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/audio-sdk/src/components/recording-modal.vue.js +0 -6
- package/es/components/audio-sdk/src/components/recording-modal.vue2.js +0 -40
@@ -222,7 +222,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
222
222
|
defaultFormatId: "",
|
223
223
|
shortcut: {},
|
224
224
|
buttonProps: {},
|
225
|
-
showMaxHeight: null
|
225
|
+
showMaxHeight: null,
|
226
|
+
initLoadPrintParams: false
|
226
227
|
})
|
227
228
|
},
|
228
229
|
svrUpdateIp: {
|
@@ -1118,7 +1119,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1118
1119
|
};
|
1119
1120
|
onMounted(() => {
|
1120
1121
|
state.isInited = false;
|
1121
|
-
handleClickBtn(false);
|
1122
1122
|
});
|
1123
1123
|
onBeforeUnmount(() => {
|
1124
1124
|
const shortcutKeys = Object.keys(shortcutFn.value);
|
@@ -1147,6 +1147,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1147
1147
|
deep: true,
|
1148
1148
|
immediate: true
|
1149
1149
|
});
|
1150
|
+
watch(() => {
|
1151
|
+
var _a;
|
1152
|
+
return (_a = props.newPrintSetting) == null ? void 0 : _a.initLoadPrintParams;
|
1153
|
+
}, async (isInit) => {
|
1154
|
+
if (isInit) {
|
1155
|
+
await handleClickBtn(false);
|
1156
|
+
}
|
1157
|
+
}, {
|
1158
|
+
immediate: true
|
1159
|
+
});
|
1150
1160
|
async function directPrint() {
|
1151
1161
|
await handleClickBtn(false);
|
1152
1162
|
handleClickPrintAll();
|
@@ -331,7 +331,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
331
331
|
formatId?: string | undefined;
|
332
332
|
templateId?: string | undefined;
|
333
333
|
};
|
334
|
-
emit: (event: "close" | "success" | "update:modelValue", ...args: any[]) => void;
|
334
|
+
emit: (event: "close" | "success" | "update:modelValue" | "afterLeaveComponent", ...args: any[]) => void;
|
335
335
|
editFormRef: import("vue").Ref<{
|
336
336
|
submit: Function;
|
337
337
|
} | null>;
|
@@ -350,6 +350,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
350
350
|
restoreValidation: () => void;
|
351
351
|
} | null>;
|
352
352
|
handleClickClose: () => void;
|
353
|
+
handleAfterLeave: () => void;
|
353
354
|
loading: import("vue").Ref<boolean>;
|
354
355
|
submit: () => Promise<false | undefined>;
|
355
356
|
handleClickSubmit: () => void;
|
@@ -441,7 +442,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
441
442
|
required: true;
|
442
443
|
};
|
443
444
|
}>>, {}>;
|
444
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "update:modelValue")[], "close" | "success" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
445
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "update:modelValue" | "afterLeaveComponent")[], "close" | "success" | "update:modelValue" | "afterLeaveComponent", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
445
446
|
verifyUser: {
|
446
447
|
type: FunctionConstructor;
|
447
448
|
required: false;
|
@@ -468,6 +469,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
468
469
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
469
470
|
onClose?: ((...args: any[]) => any) | undefined;
|
470
471
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
472
|
+
onAfterLeaveComponent?: ((...args: any[]) => any) | undefined;
|
471
473
|
}, {
|
472
474
|
verifyUser: Function;
|
473
475
|
identityVerificationTitle: string;
|
@@ -16,17 +16,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
16
16
|
type: StringConstructor;
|
17
17
|
};
|
18
18
|
}>> & {
|
19
|
+
onAfterLeaveComponent?: ((...args: any[]) => any) | undefined;
|
19
20
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
20
21
|
}>>;
|
21
|
-
emit: (event: "update:visible", ...args: any[]) => void;
|
22
|
+
emit: (event: "afterLeaveComponent" | "update:visible", ...args: any[]) => void;
|
22
23
|
iframeId: import("vue").Ref<string>;
|
23
24
|
isNormalSize: import("vue").Ref<boolean>;
|
24
25
|
style: import("vue").ComputedRef<string>;
|
25
26
|
titleRender: () => JSX.Element;
|
26
27
|
changeSize: () => void;
|
27
28
|
onClose: () => void;
|
29
|
+
handleAfterLeave: () => void;
|
28
30
|
NModal: any;
|
29
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
31
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("afterLeaveComponent" | "update:visible")[], "afterLeaveComponent" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
30
32
|
visible: {
|
31
33
|
type: BooleanConstructor;
|
32
34
|
default: boolean;
|
@@ -35,6 +37,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
37
|
type: StringConstructor;
|
36
38
|
};
|
37
39
|
}>> & {
|
40
|
+
onAfterLeaveComponent?: ((...args: any[]) => any) | undefined;
|
38
41
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
39
42
|
}, {
|
40
43
|
visible: boolean;
|
@@ -14,7 +14,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
14
|
type: String
|
15
15
|
}
|
16
16
|
},
|
17
|
-
emits: ["update:visible"],
|
17
|
+
emits: ["update:visible", "afterLeaveComponent"],
|
18
18
|
setup(__props, {
|
19
19
|
emit
|
20
20
|
}) {
|
@@ -57,6 +57,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
57
57
|
props.src && window.URL.revokeObjectURL(props.src);
|
58
58
|
emit("update:visible", false);
|
59
59
|
}
|
60
|
+
function handleAfterLeave() {
|
61
|
+
emit("afterLeaveComponent");
|
62
|
+
}
|
60
63
|
return (_ctx, _cache) => {
|
61
64
|
return openBlock(), createBlock(unref(NModal), {
|
62
65
|
preset: "dialog",
|
@@ -66,7 +69,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
66
69
|
class: "c-button-preview-modal",
|
67
70
|
title: titleRender,
|
68
71
|
onClose,
|
69
|
-
onMaskClick: onClose
|
72
|
+
onMaskClick: onClose,
|
73
|
+
onAfterLeave: handleAfterLeave
|
70
74
|
}, {
|
71
75
|
default: withCtx(() => [createElementVNode("iframe", {
|
72
76
|
name: iframeId.value,
|
@@ -33,7 +33,7 @@ class IdentityVerificationDialog {
|
|
33
33
|
"onUpdate:modelValue": ($event) => visible.value = $event,
|
34
34
|
"identityVerificationTitle": title,
|
35
35
|
"onClose": onClose,
|
36
|
-
"
|
36
|
+
"onAfterLeaveComponent": () => unmount(container),
|
37
37
|
"onSuccess": onSuccess,
|
38
38
|
"formatId": formatId,
|
39
39
|
"templateId": templateId
|
@@ -95,7 +95,7 @@ class PreviewDialog {
|
|
95
95
|
"visible": visible.value,
|
96
96
|
"onUpdate:visible": ($event) => visible.value = $event,
|
97
97
|
"src": src,
|
98
|
-
"
|
98
|
+
"onAfterLeaveComponent": () => unmount(container)
|
99
99
|
}, null), instance)
|
100
100
|
}), container);
|
101
101
|
mount(container);
|
@@ -22,7 +22,8 @@ function getCurrentTime(lastTime, range2) {
|
|
22
22
|
return lastTime + 1 > range2[1] ? range2[0] : lastTime + 1;
|
23
23
|
}
|
24
24
|
function isStartTimeHalfOrLater(startTime) {
|
25
|
-
|
25
|
+
const startTimeDate = new Date(startTime);
|
26
|
+
return getMinutes(startTimeDate) >= 30;
|
26
27
|
}
|
27
28
|
function useBirthProcess(canvas, propItems, emits, pointTipProps, pointMenuProps) {
|
28
29
|
const {
|
@@ -534,9 +534,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
534
534
|
}>;
|
535
535
|
developMode: boolean;
|
536
536
|
draggable: boolean;
|
537
|
+
isHighlightRow: boolean;
|
537
538
|
idx: number;
|
538
539
|
isHighlight: boolean;
|
539
|
-
isHighlightRow: boolean;
|
540
540
|
isFieldSet: boolean;
|
541
541
|
fieldDescribeMode: "column" | "tooltip";
|
542
542
|
hideExpressionOption: AnyObject[];
|
@@ -563,9 +563,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
563
563
|
}>;
|
564
564
|
developMode: boolean;
|
565
565
|
draggable: boolean;
|
566
|
+
isHighlightRow: boolean;
|
566
567
|
idx: number;
|
567
568
|
isHighlight: boolean;
|
568
|
-
isHighlightRow: boolean;
|
569
569
|
isFieldSet: boolean;
|
570
570
|
fieldDescribeMode: "column" | "tooltip";
|
571
571
|
hideExpressionOption: AnyObject[];
|
@@ -722,9 +722,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
722
722
|
}>;
|
723
723
|
developMode: boolean;
|
724
724
|
draggable: boolean;
|
725
|
+
isHighlightRow: boolean;
|
725
726
|
idx: number;
|
726
727
|
isHighlight: boolean;
|
727
|
-
isHighlightRow: boolean;
|
728
728
|
isFieldSet: boolean;
|
729
729
|
fieldDescribeMode: "column" | "tooltip";
|
730
730
|
hideExpressionOption: AnyObject[];
|
@@ -383,9 +383,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
383
383
|
}>;
|
384
384
|
developMode: boolean;
|
385
385
|
draggable: boolean;
|
386
|
+
isHighlightRow: boolean;
|
386
387
|
idx: number;
|
387
388
|
isHighlight: boolean;
|
388
|
-
isHighlightRow: boolean;
|
389
389
|
isFieldSet: boolean;
|
390
390
|
fieldDescribeMode: "column" | "tooltip";
|
391
391
|
hideExpressionOption: AnyObject[];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, computed, ref, watch, inject, createVNode, mergeProps } from 'vue';
|
2
|
-
import { LifeCycleTypes } from '@formily/core';
|
2
|
+
import { isField, LifeCycleTypes } from '@formily/core';
|
3
3
|
import '../../../index.js';
|
4
4
|
import { InjectionFormGlobalProps } from '../../constants/index.js';
|
5
5
|
import '../../../../../shared/utils/index.js';
|
@@ -41,8 +41,9 @@ const script = /* @__PURE__ */ defineComponent({
|
|
41
41
|
} = useFormField();
|
42
42
|
const valueRef = computed({
|
43
43
|
get: () => props.value,
|
44
|
-
set: (
|
45
|
-
|
44
|
+
set: (value) => {
|
45
|
+
isField(field.value) && field.value.modify();
|
46
|
+
emit("update:value", value);
|
46
47
|
field.value.notify(LifeCycleTypes.ON_FIELD_INPUT_VALUE_CHANGE);
|
47
48
|
}
|
48
49
|
});
|
@@ -225,7 +225,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
225
225
|
round: "",
|
226
226
|
size: 100,
|
227
227
|
onClickCapture: _cache[0] || (_cache[0] = ($event) => showLargeAvatar.value = true)
|
228
|
-
}, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\
|
228
|
+
}, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\n <n-upload-trigger #="{ handleClick }" abstract>\n <n-button\n circle\n secondary\n class="edit-avatar"\n v-show="userDetail.id === state.userInfo.id"\n @click="handleClick"\n >\n <template #icon>\n <n-icon size="16" color="#666666" :component="Camera" />\n </template>\n </n-button>\n </n-upload-trigger>\n </n-upload> '), createElementVNode("div", _hoisted_4, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_5, toDisplayString(userDetail.name), 1), withDirectives(createElementVNode("label", {
|
229
229
|
class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(userDetail.roleInfo) ? "isDoctor" : ""])
|
230
230
|
}, toDisplayString(unref(getRoleName)(userDetail.roleInfo)), 3), [[vShow, unref(getRoleName)(userDetail.roleInfo)]])]), createElementVNode("p", null, toDisplayString(userDetail.orgName), 1)]), createVNode(unref(NButton), {
|
231
231
|
strong: "",
|