cnhis-design-vue 3.3.3-beta.73 → 3.3.3-beta.75
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/big-table/src/hooks/useBatchEditing.js +25 -24
- package/es/components/classification/index.d.ts +16 -258
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +16 -258
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +16 -258
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/index.vue.d.ts +16 -258
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/constants/index.d.ts +1 -1
- package/es/components/iho-chat/index.d.ts +19 -2
- package/es/components/iho-chat/src/Index.vue.d.ts +19 -2
- package/es/components/iho-chat/src/Index.vue2.js +14 -6
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +0 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +0 -20
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +6 -1
- package/es/components/iho-chat/src/components/Video.vue2.js +23 -11
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +8 -8
- package/es/components/iho-chat/src/hooks/useVideo.js +22 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +0 -22
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
- package/es/components/info-header/index.d.ts +9 -17
- package/es/components/info-header/src/InfoHeader.vue.d.ts +9 -17
- package/es/components/info-header/src/InfoHeader.vue2.js +2 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +3 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +9 -17
- package/es/components/info-header/src/constants/index.d.ts +1 -1
- package/es/components/search-cascader/src/utils/index.d.ts +1 -1
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
- package/es/components/shortcut-provider/src/types/index.d.ts +1 -0
- package/es/components/shortcut-provider/src/utils/index.d.ts +1 -1
- package/es/components/shortcut-provider/src/utils/index.js +3 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +14 -258
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue.d.ts +7 -129
- package/es/components/table-filter/src/components/classify-filter/components/Base/DateOption.vue2.js +107 -13
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +7 -129
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +7 -129
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +2 -8
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +14 -258
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +26 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +16 -258
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +3 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +16 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +1 -0
- package/es/components/table-filter/src/types/enums.js +1 -0
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -3
@@ -628,6 +628,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
628
628
|
class: string;
|
629
629
|
};
|
630
630
|
specialDateRange: string[];
|
631
|
+
specialCustomDateRange: string[];
|
631
632
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
632
633
|
actionList_prop: {
|
633
634
|
type: PropType<IClassifyListType>;
|
@@ -1019,6 +1020,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
1019
1020
|
label: string;
|
1020
1021
|
value: string;
|
1021
1022
|
}[];
|
1023
|
+
widgetRangeOptions: {
|
1024
|
+
label: string;
|
1025
|
+
value: string;
|
1026
|
+
}[];
|
1027
|
+
startDateNum: import("vue").Ref<any>;
|
1028
|
+
endDateNum: import("vue").Ref<any>;
|
1022
1029
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1023
1030
|
filterType: {
|
1024
1031
|
type: StringConstructor;
|
@@ -1051,135 +1058,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1051
1058
|
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
1052
1059
|
valueCp: import("vue").WritableComputedRef<any>;
|
1053
1060
|
presetValCp: import("vue").WritableComputedRef<string>;
|
1054
|
-
|
1055
|
-
updateUnchangedValue: {
|
1056
|
-
type: BooleanConstructor;
|
1057
|
-
};
|
1058
|
-
onConfirm: {
|
1059
|
-
type: FunctionConstructor;
|
1060
|
-
};
|
1061
|
-
formattedValue: {
|
1062
|
-
type: PropType<(string | [string, string]) | null | undefined>;
|
1063
|
-
};
|
1064
|
-
placeholder: {
|
1065
|
-
type: StringConstructor;
|
1066
|
-
};
|
1067
|
-
allowedInvalidValue: {
|
1068
|
-
type: StringConstructor;
|
1069
|
-
};
|
1070
|
-
to: {
|
1071
|
-
type: PropType<string | false | HTMLElement>;
|
1072
|
-
default: string;
|
1073
|
-
};
|
1074
|
-
holidays: {
|
1075
|
-
type: PropType<Date[]>;
|
1076
|
-
default: () => never[];
|
1077
|
-
};
|
1078
|
-
type: {
|
1079
|
-
type: StringConstructor;
|
1080
|
-
default: string;
|
1081
|
-
};
|
1082
|
-
isDateDisabled: {
|
1083
|
-
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
1084
|
-
};
|
1085
|
-
}, {
|
1086
|
-
attrs: {
|
1087
|
-
[x: string]: unknown;
|
1088
|
-
};
|
1089
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1090
|
-
updateUnchangedValue: {
|
1091
|
-
type: BooleanConstructor;
|
1092
|
-
};
|
1093
|
-
onConfirm: {
|
1094
|
-
type: FunctionConstructor;
|
1095
|
-
};
|
1096
|
-
formattedValue: {
|
1097
|
-
type: PropType<(string | [string, string]) | null | undefined>;
|
1098
|
-
};
|
1099
|
-
placeholder: {
|
1100
|
-
type: StringConstructor;
|
1101
|
-
};
|
1102
|
-
allowedInvalidValue: {
|
1103
|
-
type: StringConstructor;
|
1104
|
-
};
|
1105
|
-
to: {
|
1106
|
-
type: PropType<string | false | HTMLElement>;
|
1107
|
-
default: string;
|
1108
|
-
};
|
1109
|
-
holidays: {
|
1110
|
-
type: PropType<Date[]>;
|
1111
|
-
default: () => never[];
|
1112
|
-
};
|
1113
|
-
type: {
|
1114
|
-
type: StringConstructor;
|
1115
|
-
default: string;
|
1116
|
-
};
|
1117
|
-
isDateDisabled: {
|
1118
|
-
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
1119
|
-
};
|
1120
|
-
}>> & {
|
1121
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1122
|
-
}>>;
|
1123
|
-
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
1124
|
-
datePickerRef: import("vue").Ref<AnyObject | null>;
|
1125
|
-
panelInstRef: import("vue").Ref<null>;
|
1126
|
-
placeholderRef: import("vue").Ref<any>;
|
1127
|
-
oldValue: string;
|
1128
|
-
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
1129
|
-
isDateTime: import("vue").ComputedRef<boolean>;
|
1130
|
-
formatRef: import("vue").ComputedRef<string>;
|
1131
|
-
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
1132
|
-
_isDateDisabled: import("vue").ComputedRef<(current: number, ...arg: any[]) => boolean>;
|
1133
|
-
focus: () => any;
|
1134
|
-
blur: () => any;
|
1135
|
-
handleConfirm: (target: HTMLInputElement) => void;
|
1136
|
-
onUpdateShow: (show: boolean) => Promise<void>;
|
1137
|
-
watchers: import("../../../shared/types").AnyFn[];
|
1138
|
-
stopWatcher: () => void;
|
1139
|
-
setHoliday: (show: boolean) => Promise<void>;
|
1140
|
-
onConfirm: (...args: any[]) => Promise<void>;
|
1141
|
-
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
1142
|
-
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
1143
|
-
NDatePicker: any;
|
1144
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1145
|
-
updateUnchangedValue: {
|
1146
|
-
type: BooleanConstructor;
|
1147
|
-
};
|
1148
|
-
onConfirm: {
|
1149
|
-
type: FunctionConstructor;
|
1150
|
-
};
|
1151
|
-
formattedValue: {
|
1152
|
-
type: PropType<(string | [string, string]) | null | undefined>;
|
1153
|
-
};
|
1154
|
-
placeholder: {
|
1155
|
-
type: StringConstructor;
|
1156
|
-
};
|
1157
|
-
allowedInvalidValue: {
|
1158
|
-
type: StringConstructor;
|
1159
|
-
};
|
1160
|
-
to: {
|
1161
|
-
type: PropType<string | false | HTMLElement>;
|
1162
|
-
default: string;
|
1163
|
-
};
|
1164
|
-
holidays: {
|
1165
|
-
type: PropType<Date[]>;
|
1166
|
-
default: () => never[];
|
1167
|
-
};
|
1168
|
-
type: {
|
1169
|
-
type: StringConstructor;
|
1170
|
-
default: string;
|
1171
|
-
};
|
1172
|
-
isDateDisabled: {
|
1173
|
-
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
1174
|
-
};
|
1175
|
-
}>> & {
|
1176
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
1177
|
-
}, {
|
1178
|
-
type: string;
|
1179
|
-
updateUnchangedValue: boolean;
|
1180
|
-
to: string | false | HTMLElement;
|
1181
|
-
holidays: Date[];
|
1182
|
-
}>>;
|
1061
|
+
handleChange: (val: any, type: "start" | "end") => void;
|
1183
1062
|
NSelect: any;
|
1184
1063
|
NInputNumber: any;
|
1185
1064
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -1974,6 +1853,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
1974
1853
|
label: string;
|
1975
1854
|
value: string;
|
1976
1855
|
}[];
|
1856
|
+
widgetRangeOptions: {
|
1857
|
+
label: string;
|
1858
|
+
value: string;
|
1859
|
+
}[];
|
1860
|
+
startDateNum: import("vue").Ref<any>;
|
1861
|
+
endDateNum: import("vue").Ref<any>;
|
1977
1862
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1978
1863
|
filterType: {
|
1979
1864
|
type: StringConstructor;
|
@@ -2006,135 +1891,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2006
1891
|
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
2007
1892
|
valueCp: import("vue").WritableComputedRef<any>;
|
2008
1893
|
presetValCp: import("vue").WritableComputedRef<string>;
|
2009
|
-
|
2010
|
-
updateUnchangedValue: {
|
2011
|
-
type: BooleanConstructor;
|
2012
|
-
};
|
2013
|
-
onConfirm: {
|
2014
|
-
type: FunctionConstructor;
|
2015
|
-
};
|
2016
|
-
formattedValue: {
|
2017
|
-
type: PropType<(string | [string, string]) | null | undefined>;
|
2018
|
-
};
|
2019
|
-
placeholder: {
|
2020
|
-
type: StringConstructor;
|
2021
|
-
};
|
2022
|
-
allowedInvalidValue: {
|
2023
|
-
type: StringConstructor;
|
2024
|
-
};
|
2025
|
-
to: {
|
2026
|
-
type: PropType<string | false | HTMLElement>;
|
2027
|
-
default: string;
|
2028
|
-
};
|
2029
|
-
holidays: {
|
2030
|
-
type: PropType<Date[]>;
|
2031
|
-
default: () => never[];
|
2032
|
-
};
|
2033
|
-
type: {
|
2034
|
-
type: StringConstructor;
|
2035
|
-
default: string;
|
2036
|
-
};
|
2037
|
-
isDateDisabled: {
|
2038
|
-
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
2039
|
-
};
|
2040
|
-
}, {
|
2041
|
-
attrs: {
|
2042
|
-
[x: string]: unknown;
|
2043
|
-
};
|
2044
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
2045
|
-
updateUnchangedValue: {
|
2046
|
-
type: BooleanConstructor;
|
2047
|
-
};
|
2048
|
-
onConfirm: {
|
2049
|
-
type: FunctionConstructor;
|
2050
|
-
};
|
2051
|
-
formattedValue: {
|
2052
|
-
type: PropType<(string | [string, string]) | null | undefined>;
|
2053
|
-
};
|
2054
|
-
placeholder: {
|
2055
|
-
type: StringConstructor;
|
2056
|
-
};
|
2057
|
-
allowedInvalidValue: {
|
2058
|
-
type: StringConstructor;
|
2059
|
-
};
|
2060
|
-
to: {
|
2061
|
-
type: PropType<string | false | HTMLElement>;
|
2062
|
-
default: string;
|
2063
|
-
};
|
2064
|
-
holidays: {
|
2065
|
-
type: PropType<Date[]>;
|
2066
|
-
default: () => never[];
|
2067
|
-
};
|
2068
|
-
type: {
|
2069
|
-
type: StringConstructor;
|
2070
|
-
default: string;
|
2071
|
-
};
|
2072
|
-
isDateDisabled: {
|
2073
|
-
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
2074
|
-
};
|
2075
|
-
}>> & {
|
2076
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
2077
|
-
}>>;
|
2078
|
-
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
2079
|
-
datePickerRef: import("vue").Ref<AnyObject | null>;
|
2080
|
-
panelInstRef: import("vue").Ref<null>;
|
2081
|
-
placeholderRef: import("vue").Ref<any>;
|
2082
|
-
oldValue: string;
|
2083
|
-
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
2084
|
-
isDateTime: import("vue").ComputedRef<boolean>;
|
2085
|
-
formatRef: import("vue").ComputedRef<string>;
|
2086
|
-
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
2087
|
-
_isDateDisabled: import("vue").ComputedRef<(current: number, ...arg: any[]) => boolean>;
|
2088
|
-
focus: () => any;
|
2089
|
-
blur: () => any;
|
2090
|
-
handleConfirm: (target: HTMLInputElement) => void;
|
2091
|
-
onUpdateShow: (show: boolean) => Promise<void>;
|
2092
|
-
watchers: import("../../../shared/types").AnyFn[];
|
2093
|
-
stopWatcher: () => void;
|
2094
|
-
setHoliday: (show: boolean) => Promise<void>;
|
2095
|
-
onConfirm: (...args: any[]) => Promise<void>;
|
2096
|
-
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
2097
|
-
setShortcutValue: (type: "month" | "week") => Promise<void>;
|
2098
|
-
NDatePicker: any;
|
2099
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
2100
|
-
updateUnchangedValue: {
|
2101
|
-
type: BooleanConstructor;
|
2102
|
-
};
|
2103
|
-
onConfirm: {
|
2104
|
-
type: FunctionConstructor;
|
2105
|
-
};
|
2106
|
-
formattedValue: {
|
2107
|
-
type: PropType<(string | [string, string]) | null | undefined>;
|
2108
|
-
};
|
2109
|
-
placeholder: {
|
2110
|
-
type: StringConstructor;
|
2111
|
-
};
|
2112
|
-
allowedInvalidValue: {
|
2113
|
-
type: StringConstructor;
|
2114
|
-
};
|
2115
|
-
to: {
|
2116
|
-
type: PropType<string | false | HTMLElement>;
|
2117
|
-
default: string;
|
2118
|
-
};
|
2119
|
-
holidays: {
|
2120
|
-
type: PropType<Date[]>;
|
2121
|
-
default: () => never[];
|
2122
|
-
};
|
2123
|
-
type: {
|
2124
|
-
type: StringConstructor;
|
2125
|
-
default: string;
|
2126
|
-
};
|
2127
|
-
isDateDisabled: {
|
2128
|
-
type: PropType<(current: number, ...arg: any[]) => boolean>;
|
2129
|
-
};
|
2130
|
-
}>> & {
|
2131
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
2132
|
-
}, {
|
2133
|
-
type: string;
|
2134
|
-
updateUnchangedValue: boolean;
|
2135
|
-
to: string | false | HTMLElement;
|
2136
|
-
holidays: Date[];
|
2137
|
-
}>>;
|
1894
|
+
handleChange: (val: any, type: "start" | "end") => void;
|
2138
1895
|
NSelect: any;
|
2139
1896
|
NInputNumber: any;
|
2140
1897
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -2396,6 +2153,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2396
2153
|
ConditionEnums: {
|
2397
2154
|
NULL: string;
|
2398
2155
|
EQUAL: string;
|
2156
|
+
CUSTOM_RANGE: string;
|
2399
2157
|
IN_THE_PAST: string;
|
2400
2158
|
IN_THE_FUTURE: string;
|
2401
2159
|
IN_THE_PAST_DI: string;
|
@@ -128,7 +128,7 @@ const script = /* @__PURE__ */ defineComponent({
|
|
128
128
|
"contentStyle": "background-color:white;color:rgb(51, 54, 57);padding:8px;position:relative;"
|
129
129
|
}, {
|
130
130
|
trigger: () => createVNode(NButton, {
|
131
|
-
"onClick": withModifiers(() => editorTitleShowRef.value = !editorTitleShowRef.value, ["stop", "
|
131
|
+
"onClick": withModifiers(() => editorTitleShowRef.value = !editorTitleShowRef.value, ["stop", "prevent"]),
|
132
132
|
"text": true,
|
133
133
|
"type": "primary"
|
134
134
|
}, {
|
@@ -17,7 +17,7 @@ export declare const InjectionFormColumnWidth: InjectionKey<ComputedRef<number>>
|
|
17
17
|
export declare const InjectionFormUUID: InjectionKey<string>;
|
18
18
|
export declare const InjectionFormGraph: InjectionKey<Record<string, GeneralField>>;
|
19
19
|
export declare const InjectionAnnotation: InjectionKey<WritableComputedRef<Nullable<Record<string, AnnotationItem>>>>;
|
20
|
-
export declare const InjectionAnnotationShortcuts: InjectionKey<
|
20
|
+
export declare const InjectionAnnotationShortcuts: InjectionKey<ComputedRef<Exclude<NonNullable<AnnotationItem>, string>['shortcuts']>>;
|
21
21
|
export declare const InjectionFormGlobalProps: InjectionKey<Readonly<FormRenderProps>>;
|
22
22
|
export declare const InjectionFormGlobalEmit: InjectionKey<(event: string, ...args: any[]) => void>;
|
23
23
|
export declare enum FIELD_BUSINESS_TYPE {
|
@@ -48,6 +48,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
48
48
|
iceTransportPolicy: "all" | "relay";
|
49
49
|
}>>;
|
50
50
|
};
|
51
|
+
videoTeleportTo: {
|
52
|
+
type: import("vue").PropType<string | Element>;
|
53
|
+
default: string;
|
54
|
+
};
|
51
55
|
}, {
|
52
56
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
53
57
|
token: {
|
@@ -98,6 +102,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
98
102
|
iceTransportPolicy: "all" | "relay";
|
99
103
|
}>>;
|
100
104
|
};
|
105
|
+
videoTeleportTo: {
|
106
|
+
type: import("vue").PropType<string | Element>;
|
107
|
+
default: string;
|
108
|
+
};
|
101
109
|
}>> & {
|
102
110
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
103
111
|
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
@@ -3687,7 +3695,12 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
3687
3695
|
handleRemoteAudioAvailable: (event: import("./src/hooks").TRTCEvent) => void;
|
3688
3696
|
handleRemoteUserEnter: (event: import("./src/hooks").TRTCEvent) => void;
|
3689
3697
|
handleRemoteUserExit: (event: import("./src/hooks").TRTCEvent) => void;
|
3690
|
-
|
3698
|
+
statusHandlers: {
|
3699
|
+
readonly IN_CALL: () => Promise<void>;
|
3700
|
+
readonly CALL_BUSY: () => void;
|
3701
|
+
readonly NO_RESPONSE: () => void;
|
3702
|
+
readonly REJECTED: () => void;
|
3703
|
+
};
|
3691
3704
|
NButton: any;
|
3692
3705
|
NAvatar: any;
|
3693
3706
|
NIcon: any;
|
@@ -3814,7 +3827,6 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
3814
3827
|
handleRemoteUserEnter: (event: import("./src/hooks").TRTCEvent) => Promise<void>;
|
3815
3828
|
getUserName: (userId: string) => Promise<string>;
|
3816
3829
|
handleRemoteUserExit: (event: import("./src/hooks").TRTCEvent) => void;
|
3817
|
-
handleError: (error: any) => void;
|
3818
3830
|
periodicCheckInterval: null;
|
3819
3831
|
NButton: any;
|
3820
3832
|
NAvatar: any;
|
@@ -4178,6 +4190,10 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
4178
4190
|
iceTransportPolicy: "all" | "relay";
|
4179
4191
|
}>>;
|
4180
4192
|
};
|
4193
|
+
videoTeleportTo: {
|
4194
|
+
type: import("vue").PropType<string | Element>;
|
4195
|
+
default: string;
|
4196
|
+
};
|
4181
4197
|
}>> & {
|
4182
4198
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
4183
4199
|
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
@@ -4189,5 +4205,6 @@ declare const IhoChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
4189
4205
|
baseURL: string;
|
4190
4206
|
extraParams: import("../../shared/types").AnyObject;
|
4191
4207
|
filterable: boolean;
|
4208
|
+
videoTeleportTo: string | Element;
|
4192
4209
|
}>>;
|
4193
4210
|
export default IhoChat;
|
@@ -49,6 +49,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
49
49
|
iceTransportPolicy: "all" | "relay";
|
50
50
|
}>>;
|
51
51
|
};
|
52
|
+
videoTeleportTo: {
|
53
|
+
type: PropType<string | Element>;
|
54
|
+
default: string;
|
55
|
+
};
|
52
56
|
}, {
|
53
57
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
54
58
|
token: {
|
@@ -99,6 +103,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
99
103
|
iceTransportPolicy: "all" | "relay";
|
100
104
|
}>>;
|
101
105
|
};
|
106
|
+
videoTeleportTo: {
|
107
|
+
type: PropType<string | Element>;
|
108
|
+
default: string;
|
109
|
+
};
|
102
110
|
}>> & {
|
103
111
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
104
112
|
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
@@ -3688,7 +3696,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
3688
3696
|
handleRemoteAudioAvailable: (event: import("./hooks").TRTCEvent) => void;
|
3689
3697
|
handleRemoteUserEnter: (event: import("./hooks").TRTCEvent) => void;
|
3690
3698
|
handleRemoteUserExit: (event: import("./hooks").TRTCEvent) => void;
|
3691
|
-
|
3699
|
+
statusHandlers: {
|
3700
|
+
readonly IN_CALL: () => Promise<void>;
|
3701
|
+
readonly CALL_BUSY: () => void;
|
3702
|
+
readonly NO_RESPONSE: () => void;
|
3703
|
+
readonly REJECTED: () => void;
|
3704
|
+
};
|
3692
3705
|
NButton: any;
|
3693
3706
|
NAvatar: any;
|
3694
3707
|
NIcon: any;
|
@@ -3815,7 +3828,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
3815
3828
|
handleRemoteUserEnter: (event: import("./hooks").TRTCEvent) => Promise<void>;
|
3816
3829
|
getUserName: (userId: string) => Promise<string>;
|
3817
3830
|
handleRemoteUserExit: (event: import("./hooks").TRTCEvent) => void;
|
3818
|
-
handleError: (error: any) => void;
|
3819
3831
|
periodicCheckInterval: null;
|
3820
3832
|
NButton: any;
|
3821
3833
|
NAvatar: any;
|
@@ -4179,6 +4191,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
4179
4191
|
iceTransportPolicy: "all" | "relay";
|
4180
4192
|
}>>;
|
4181
4193
|
};
|
4194
|
+
videoTeleportTo: {
|
4195
|
+
type: PropType<string | Element>;
|
4196
|
+
default: string;
|
4197
|
+
};
|
4182
4198
|
}>> & {
|
4183
4199
|
"onTemplate-click"?: ((...args: any[]) => any) | undefined;
|
4184
4200
|
"onUnread-message-update"?: ((...args: any[]) => any) | undefined;
|
@@ -4190,5 +4206,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
4190
4206
|
baseURL: string;
|
4191
4207
|
extraParams: AnyObject;
|
4192
4208
|
filterable: boolean;
|
4209
|
+
videoTeleportTo: string | Element;
|
4193
4210
|
}>;
|
4194
4211
|
export default _default;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref, provide, openBlock, createElementBlock, normalizeStyle, unref, createVNode, withCtx, createBlock, Fragment, createElementVNode, renderSlot, createCommentVNode } from 'vue';
|
1
|
+
import { defineComponent, ref, provide, openBlock, createElementBlock, normalizeStyle, unref, createVNode, withCtx, createBlock, Fragment, createElementVNode, renderSlot, createCommentVNode, Teleport } from 'vue';
|
2
2
|
import { NConfigProvider, NSpin, NLayout, NLayoutContent } from 'naive-ui';
|
3
3
|
import SiderList from './components/SiderList.vue.js';
|
4
4
|
import ChatHeader from './components/ChatHeader.vue.js';
|
@@ -63,6 +63,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
63
63
|
},
|
64
64
|
trtcProxy: {
|
65
65
|
type: [String, Object]
|
66
|
+
},
|
67
|
+
videoTeleportTo: {
|
68
|
+
type: [String, Object],
|
69
|
+
default: "body"
|
66
70
|
}
|
67
71
|
},
|
68
72
|
emits: [
|
@@ -149,11 +153,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
149
153
|
_: 3
|
150
154
|
}, 8, ["style"]), renderSlot(_ctx.$slots, "external")]),
|
151
155
|
_: 3
|
152
|
-
}),
|
153
|
-
|
154
|
-
}
|
155
|
-
key:
|
156
|
-
})) : createCommentVNode("v-if", true),
|
156
|
+
}), (openBlock(), createBlock(Teleport, {
|
157
|
+
to: props.videoTeleportTo
|
158
|
+
}, [unref(state).showVideo ? (openBlock(), createBlock(Video, {
|
159
|
+
key: 0
|
160
|
+
})) : createCommentVNode("v-if", true)], 8, ["to"])), (openBlock(), createBlock(Teleport, {
|
161
|
+
to: props.videoTeleportTo
|
162
|
+
}, [unref(state).showMultipleVideo ? (openBlock(), createBlock(MultipleVideo, {
|
163
|
+
key: 0
|
164
|
+
})) : createCommentVNode("v-if", true)], 8, ["to"])), createVNode(PersonProfile)], 64))]),
|
157
165
|
_: 3
|
158
166
|
})], 4)) : createCommentVNode("v-if", true);
|
159
167
|
};
|
@@ -603,7 +603,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
603
603
|
}, {
|
604
604
|
default: withCtx(() => [!unref(isAudioOrVideoMessage)(item.content) ? (openBlock(), createElementBlock(Fragment, {
|
605
605
|
key: 0
|
606
|
-
}, [createCommentVNode(' <n-button\
|
606
|
+
}, [createCommentVNode(' <n-button\n quaternary\n size="tiny"\n @click="(event: MouseEvent) => handleSelectLabel(event, item.id)"\n >\n <template #icon>\n <n-icon size="17" :component="HappyOutline" />\n </template>\n </n-button> '), createVNode(unref(NButton), {
|
607
607
|
quaternary: "",
|
608
608
|
size: "tiny",
|
609
609
|
onClick: () => setReferenceMsg(item)
|
@@ -119,7 +119,7 @@ var ContextMenu = /* @__PURE__ */ defineComponent({
|
|
119
119
|
label: "\u79FB\u9664\u4F1A\u8BDD",
|
120
120
|
key: "remove"
|
121
121
|
}];
|
122
|
-
const menuRef = ref(
|
122
|
+
const menuRef = ref();
|
123
123
|
const item = computed(() => {
|
124
124
|
const list = props.type === "message" ? state.msgList : state.sessionList;
|
125
125
|
return list.find(({
|
@@ -118,7 +118,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
118
118
|
handleRemoteUserEnter: (event: TRTCEvent) => Promise<void>;
|
119
119
|
getUserName: (userId: string) => Promise<string>;
|
120
120
|
handleRemoteUserExit: (event: TRTCEvent) => void;
|
121
|
-
handleError: (error: any) => void;
|
122
121
|
periodicCheckInterval: null;
|
123
122
|
NButton: any;
|
124
123
|
NAvatar: any;
|
@@ -273,7 +273,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
273
273
|
try {
|
274
274
|
startTimer();
|
275
275
|
installEventHandlers({
|
276
|
-
handleError,
|
277
276
|
handleRemoteUserEnter,
|
278
277
|
handleRemoteAudioAvailable,
|
279
278
|
handleRemoteUserExit,
|
@@ -306,7 +305,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
306
305
|
state.showMultipleVideo = false;
|
307
306
|
if (isConnect.value) {
|
308
307
|
uninstallEventHandlers({
|
309
|
-
handleError,
|
310
308
|
handleRemoteUserEnter,
|
311
309
|
handleRemoteAudioAvailable,
|
312
310
|
handleRemoteUserExit,
|
@@ -456,24 +454,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
456
454
|
console.error("Error handling remote user exit:", error);
|
457
455
|
}
|
458
456
|
}
|
459
|
-
function handleError(error) {
|
460
|
-
console.error("TRTC error occurred:", error);
|
461
|
-
if (error.code) {
|
462
|
-
switch (error.code) {
|
463
|
-
case -3301:
|
464
|
-
$message.error("\u8FDB\u5165\u623F\u95F4\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8FDE\u63A5");
|
465
|
-
break;
|
466
|
-
case -3302:
|
467
|
-
$message.error("\u7F51\u7EDC\u8FDE\u63A5\u65AD\u5F00\uFF0C\u6B63\u5728\u5C1D\u8BD5\u91CD\u8FDE...");
|
468
|
-
break;
|
469
|
-
default:
|
470
|
-
$message.error(`\u901A\u8BDD\u51FA\u73B0\u9519\u8BEF: ${error.message || "\u672A\u77E5\u9519\u8BEF"}`);
|
471
|
-
}
|
472
|
-
} else {
|
473
|
-
$message.error("\u901A\u8BDD\u51FA\u73B0\u672A\u77E5\u9519\u8BEF");
|
474
|
-
}
|
475
|
-
state.showMultipleVideo = false;
|
476
|
-
}
|
477
457
|
let periodicCheckInterval = null;
|
478
458
|
onBeforeUnmount(async () => {
|
479
459
|
console.log("Component unmounting, cleaning up...");
|
@@ -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: "",
|
@@ -96,7 +96,12 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
96
96
|
handleRemoteAudioAvailable: (event: TRTCEvent) => void;
|
97
97
|
handleRemoteUserEnter: (event: TRTCEvent) => void;
|
98
98
|
handleRemoteUserExit: (event: TRTCEvent) => void;
|
99
|
-
|
99
|
+
statusHandlers: {
|
100
|
+
readonly IN_CALL: () => Promise<void>;
|
101
|
+
readonly CALL_BUSY: () => void;
|
102
|
+
readonly NO_RESPONSE: () => void;
|
103
|
+
readonly REJECTED: () => void;
|
104
|
+
};
|
100
105
|
NButton: any;
|
101
106
|
NAvatar: any;
|
102
107
|
NIcon: any;
|