cnhis-design-vue 3.1.55-beta.5 → 3.1.55-release.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.
- package/es/components/body-select/src/hooks/renderCanvas.js +1 -1
- package/es/components/body-select/src/index.vue2.js +1 -1
- package/es/components/button-print/index.d.ts +0 -13
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +0 -13
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +6 -26
- package/es/components/classification/index.d.ts +1 -486
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +1 -473
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +1 -473
- package/es/components/classification/src/index.vue.d.ts +1 -486
- package/es/components/classification/src/index.vue2.js +1 -1
- package/es/components/classification/style/index.css +1 -1
- package/es/components/fabric-chart/index.d.ts +0 -1
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +0 -1
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/constants/index.d.ts +0 -1
- package/es/components/fabric-chart/src/constants/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +0 -5
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +3 -3
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/form-config/index.d.ts +57 -104
- package/es/components/form-config/src/FormConfig.vue.d.ts +57 -104
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +6 -26
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +21 -44
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +5 -5
- package/es/components/form-render/index.d.ts +6 -26
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +6 -26
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +6 -26
- package/es/components/form-render/src/components/renderer/complex.js +1 -1
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/components/renderer/switch.js +1 -1
- package/es/components/form-render/src/components/renderer/textarea.js +1 -1
- package/es/components/form-render/src/constants/index.d.ts +1 -0
- package/es/components/form-render/src/constants/index.js +1 -1
- package/es/components/form-render/src/hooks/index.d.ts +9 -20
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useAnchor.js +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
- package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +3 -14
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +4 -4
- package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +10 -11
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
- package/es/components/form-render/src/hooks/useOperationalForm.d.ts +2 -3
- package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -1
- package/es/components/form-render/src/hooks/useWordbookSetting.d.ts +4 -13
- package/es/components/form-render/src/hooks/useWordbookSetting.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +0 -1
- package/es/components/form-render/src/types/index.d.ts +5 -10
- package/es/components/form-render/src/utils/index.d.ts +16 -3
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/iho-table/src/plugins/bindEventSettingPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.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/selectRendererPlugin/editSelect.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/editTime.vue.d.ts +3 -7
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +0 -2
- package/es/components/iho-table/src/utils/index.d.ts +1 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -3
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +12 -52
- package/es/components/info-header/src/InfoHeader.vue.d.ts +12 -52
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +6 -26
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +6 -26
- package/es/components/{biunique-chat → multi-chat}/index.d.ts +2 -2
- package/es/components/multi-chat/index.js +1 -0
- package/es/components/multi-chat/src/MultiChat.vue.js +1 -0
- package/es/components/multi-chat/src/MultiChat.vue2.js +1 -0
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +11 -32
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +11 -32
- package/es/components/table-filter/src/constants/index.d.ts +0 -1
- package/es/components/table-filter/src/constants/index.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/business.d.ts +0 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -3
- package/es/components/audio-sdk/index.d.ts +0 -2
- package/es/components/audio-sdk/index.js +0 -1
- package/es/components/audio-sdk/src/audioSDK.d.ts +0 -24
- package/es/components/audio-sdk/src/audioSDK.js +0 -1
- package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +0 -26
- package/es/components/audio-sdk/src/components/recordingDialog.vue.js +0 -1
- package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +0 -1
- package/es/components/audio-sdk/src/utils/recordingDialog.d.ts +0 -8
- package/es/components/audio-sdk/src/utils/recordingDialog.js +0 -1
- package/es/components/audio-sdk/style/index.css +0 -1
- package/es/components/biunique-chat/index.js +0 -1
- package/es/components/biunique-chat/src/BiuniqueChat.vue.js +0 -1
- package/es/components/biunique-chat/src/BiuniqueChat.vue2.js +0 -1
- package/es/components/iho-table/src/plugins/colorAndIconPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/colorAndIconPlugin.js +0 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +0 -320
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.js +0 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +0 -1
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +0 -127
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.js +0 -1
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue2.js +0 -1
- package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.d.ts +0 -41
- package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.js +0 -1
- package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue2.js +0 -1
- package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.d.ts +0 -28
- package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.js +0 -1
- package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue2.js +0 -1
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +0 -51
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.js +0 -1
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue2.js +0 -1
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +0 -244
- package/es/components/table-filter/src/components/bi-filter/components/index.js +0 -1
- package/es/components/table-filter/src/components/bi-filter/helpers/options.d.ts +0 -14
- package/es/components/table-filter/src/components/bi-filter/helpers/options.js +0 -1
- package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.d.ts +0 -13
- package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.js +0 -1
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +0 -474
- package/es/components/table-filter/src/components/bi-filter/index.vue.js +0 -1
- package/es/components/table-filter/src/components/bi-filter/index.vue2.js +0 -1
- /package/es/components/{biunique-chat/src/BiuniqueChat.vue.d.ts → multi-chat/src/MultiChat.vue.d.ts} +0 -0
- /package/es/components/{biunique-chat → multi-chat}/src/api/index.d.ts +0 -0
- /package/es/components/{biunique-chat → multi-chat}/src/api/index.js +0 -0
- /package/es/components/{biunique-chat → multi-chat}/src/components/ChatFooter.vue.d.ts +0 -0
- /package/es/components/{biunique-chat → multi-chat}/src/components/ChatFooter.vue.js +0 -0
- /package/es/components/{biunique-chat → multi-chat}/src/components/ChatFooter.vue2.js +0 -0
- /package/es/components/{biunique-chat → multi-chat}/src/components/ChatHeader.vue.d.ts +0 -0
- /package/es/components/{biunique-chat → multi-chat}/src/components/ChatHeader.vue.js +0 -0
- /package/es/components/{biunique-chat → multi-chat}/src/components/ChatHeader.vue2.js +0 -0
- /package/es/components/{biunique-chat → multi-chat}/src/components/ChatMain.vue.d.ts +0 -0
- /package/es/components/{biunique-chat → multi-chat}/src/components/ChatMain.vue.js +0 -0
- /package/es/components/{biunique-chat → multi-chat}/src/components/ChatMain.vue2.js +0 -0
- /package/es/components/{biunique-chat → multi-chat}/src/components/SiderList.vue.d.ts +0 -0
- /package/es/components/{biunique-chat → multi-chat}/src/components/SiderList.vue.js +0 -0
- /package/es/components/{biunique-chat → multi-chat}/src/components/SiderList.vue2.js +0 -0
- /package/es/components/{biunique-chat → multi-chat}/src/utils/chatSock.d.ts +0 -0
- /package/es/components/{biunique-chat → multi-chat}/src/utils/chatSock.js +0 -0
- /package/es/components/{biunique-chat → multi-chat}/style/index.css +0 -0
|
@@ -137,7 +137,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
137
137
|
nameKey?: string | undefined;
|
|
138
138
|
valueKey?: string | undefined;
|
|
139
139
|
showKey?: string | undefined;
|
|
140
|
-
searchKey?: string[] | undefined;
|
|
141
140
|
params?: import("../../../es/shared/types").AnyObject | undefined;
|
|
142
141
|
dependKey?: string | Record<string, string> | (string | {
|
|
143
142
|
paramName: string;
|
|
@@ -171,14 +170,14 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
171
170
|
compareMap?: {
|
|
172
171
|
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
173
172
|
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
174
|
-
|
|
175
|
-
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
176
|
-
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
177
|
-
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
173
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
178
174
|
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
179
175
|
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
180
|
-
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
181
176
|
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
177
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
178
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
179
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
180
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
182
181
|
} | undefined;
|
|
183
182
|
}[] | undefined;
|
|
184
183
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
@@ -1915,10 +1914,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1915
1914
|
dateOperationalForm: {
|
|
1916
1915
|
type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
|
|
1917
1916
|
};
|
|
1918
|
-
operationalFormInit: {
|
|
1919
|
-
type: BooleanConstructor;
|
|
1920
|
-
default: boolean;
|
|
1921
|
-
};
|
|
1922
1917
|
linebarAutoHidden: {
|
|
1923
1918
|
type: BooleanConstructor;
|
|
1924
1919
|
};
|
|
@@ -2071,10 +2066,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2071
2066
|
dateOperationalForm: {
|
|
2072
2067
|
type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
|
|
2073
2068
|
};
|
|
2074
|
-
operationalFormInit: {
|
|
2075
|
-
type: BooleanConstructor;
|
|
2076
|
-
default: boolean;
|
|
2077
|
-
};
|
|
2078
2069
|
linebarAutoHidden: {
|
|
2079
2070
|
type: BooleanConstructor;
|
|
2080
2071
|
};
|
|
@@ -2155,12 +2146,12 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2155
2146
|
}>;
|
|
2156
2147
|
lowCodeReactionsHandler: (field: string) => void;
|
|
2157
2148
|
triggerAllReactionsHandler: () => void;
|
|
2158
|
-
operationalFormHandler:
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2149
|
+
operationalFormHandler: (fieldKey: string) => void;
|
|
2150
|
+
triggerAllOperationalFormHandler: () => void;
|
|
2151
|
+
wordbookSettingHandler: {
|
|
2152
|
+
trigger: (fieldKey: string, value: unknown) => void;
|
|
2153
|
+
setDisabled: (value: boolean) => void;
|
|
2162
2154
|
};
|
|
2163
|
-
wordbookSettingHandler: import("..").wordbookSettingHandler;
|
|
2164
2155
|
schemaAdaptor: (fieldList: import("..").FieldItem[], options?: Partial<{
|
|
2165
2156
|
fieldList: import("..").FieldItem[];
|
|
2166
2157
|
initialData: import("../../../es/shared/types").AnyObject;
|
|
@@ -2373,14 +2364,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2373
2364
|
force?: boolean | undefined;
|
|
2374
2365
|
}): Promise<void>;
|
|
2375
2366
|
getFormValues(needCombineExtendKey?: boolean): any;
|
|
2376
|
-
setFormValues(values: import("../../../es/shared/types").AnyObject,
|
|
2377
|
-
needSplitExtendKey?: boolean | undefined;
|
|
2378
|
-
avoidBusinessConnection?: string | boolean | undefined;
|
|
2379
|
-
avoidDependKeyConnection?: string | boolean | undefined;
|
|
2380
|
-
avoidWordbookSettingConnection?: string | boolean | undefined;
|
|
2381
|
-
avoidOperationalFormConnection?: string | boolean | undefined;
|
|
2382
|
-
overwrite?: boolean | undefined;
|
|
2383
|
-
}, avoidBusinessConnection?: string | boolean, overwrite?: boolean): Promise<void>;
|
|
2367
|
+
setFormValues(values: import("../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
|
|
2384
2368
|
setFieldState(path: string, setter: (field: Partial<Pick<import("@formily/core").Field<any, any, any, any>, import("@formily/core").NonFunctionPropertyNames<{
|
|
2385
2369
|
match: (pattern: import("@formily/path").Pattern) => boolean;
|
|
2386
2370
|
validate: (triggerType?: import("@formily/validator").ValidatorTriggerType | undefined) => any;
|
|
@@ -2677,10 +2661,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2677
2661
|
dateOperationalForm: {
|
|
2678
2662
|
type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
|
|
2679
2663
|
};
|
|
2680
|
-
operationalFormInit: {
|
|
2681
|
-
type: BooleanConstructor;
|
|
2682
|
-
default: boolean;
|
|
2683
|
-
};
|
|
2684
2664
|
linebarAutoHidden: {
|
|
2685
2665
|
type: BooleanConstructor;
|
|
2686
2666
|
};
|
|
@@ -2716,7 +2696,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2716
2696
|
bordered: string | boolean;
|
|
2717
2697
|
uniqueCacheData: boolean;
|
|
2718
2698
|
outBordered: boolean;
|
|
2719
|
-
operationalFormInit: boolean;
|
|
2720
2699
|
}>;
|
|
2721
2700
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
2722
2701
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "update")[], "error" | "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -140,7 +140,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
140
140
|
nameKey?: string | undefined;
|
|
141
141
|
valueKey?: string | undefined;
|
|
142
142
|
showKey?: string | undefined;
|
|
143
|
-
searchKey?: string[] | undefined;
|
|
144
143
|
params?: import("../../../../es/shared/types").AnyObject | undefined;
|
|
145
144
|
dependKey?: string | Record<string, string> | (string | {
|
|
146
145
|
paramName: string;
|
|
@@ -174,14 +173,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
174
173
|
compareMap?: {
|
|
175
174
|
NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
176
175
|
EQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
177
|
-
|
|
178
|
-
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
179
|
-
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
180
|
-
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
176
|
+
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
181
177
|
CL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
182
178
|
NC?: ((v1: any, v2: any) => boolean) | undefined;
|
|
183
|
-
NEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
184
179
|
NOT_NULL?: ((v1: any, v2: any) => boolean) | undefined;
|
|
180
|
+
BIG?: ((v1: any, v2: any) => boolean) | undefined;
|
|
181
|
+
BIGEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
182
|
+
LESS?: ((v1: any, v2: any) => boolean) | undefined;
|
|
183
|
+
LESSEQ?: ((v1: any, v2: any) => boolean) | undefined;
|
|
185
184
|
} | undefined;
|
|
186
185
|
}[] | undefined;
|
|
187
186
|
show_mode?: ("DROPDOWN" | "H_TILE" | "V_TILE" | "TILE") | undefined;
|
|
@@ -1918,10 +1917,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1918
1917
|
dateOperationalForm: {
|
|
1919
1918
|
type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
|
|
1920
1919
|
};
|
|
1921
|
-
operationalFormInit: {
|
|
1922
|
-
type: BooleanConstructor;
|
|
1923
|
-
default: boolean;
|
|
1924
|
-
};
|
|
1925
1920
|
linebarAutoHidden: {
|
|
1926
1921
|
type: BooleanConstructor;
|
|
1927
1922
|
};
|
|
@@ -2074,10 +2069,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2074
2069
|
dateOperationalForm: {
|
|
2075
2070
|
type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
|
|
2076
2071
|
};
|
|
2077
|
-
operationalFormInit: {
|
|
2078
|
-
type: BooleanConstructor;
|
|
2079
|
-
default: boolean;
|
|
2080
|
-
};
|
|
2081
2072
|
linebarAutoHidden: {
|
|
2082
2073
|
type: BooleanConstructor;
|
|
2083
2074
|
};
|
|
@@ -2158,12 +2149,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2158
2149
|
}>;
|
|
2159
2150
|
lowCodeReactionsHandler: (field: string) => void;
|
|
2160
2151
|
triggerAllReactionsHandler: () => void;
|
|
2161
|
-
operationalFormHandler:
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2152
|
+
operationalFormHandler: (fieldKey: string) => void;
|
|
2153
|
+
triggerAllOperationalFormHandler: () => void;
|
|
2154
|
+
wordbookSettingHandler: {
|
|
2155
|
+
trigger: (fieldKey: string, value: unknown) => void;
|
|
2156
|
+
setDisabled: (value: boolean) => void;
|
|
2165
2157
|
};
|
|
2166
|
-
wordbookSettingHandler: import("../../../../es/components/form-render").wordbookSettingHandler;
|
|
2167
2158
|
schemaAdaptor: (fieldList: FieldItem[], options?: Partial<{
|
|
2168
2159
|
fieldList: FieldItem[];
|
|
2169
2160
|
initialData: import("../../../../es/shared/types").AnyObject;
|
|
@@ -2376,14 +2367,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2376
2367
|
force?: boolean | undefined;
|
|
2377
2368
|
}): Promise<void>;
|
|
2378
2369
|
getFormValues(needCombineExtendKey?: boolean): any;
|
|
2379
|
-
setFormValues(values: import("../../../../es/shared/types").AnyObject,
|
|
2380
|
-
needSplitExtendKey?: boolean | undefined;
|
|
2381
|
-
avoidBusinessConnection?: string | boolean | undefined;
|
|
2382
|
-
avoidDependKeyConnection?: string | boolean | undefined;
|
|
2383
|
-
avoidWordbookSettingConnection?: string | boolean | undefined;
|
|
2384
|
-
avoidOperationalFormConnection?: string | boolean | undefined;
|
|
2385
|
-
overwrite?: boolean | undefined;
|
|
2386
|
-
}, avoidBusinessConnection?: string | boolean, overwrite?: boolean): Promise<void>;
|
|
2370
|
+
setFormValues(values: import("../../../../es/shared/types").AnyObject, needSplitExtendKey?: boolean, overwrite?: boolean): void;
|
|
2387
2371
|
setFieldState(path: string, setter: (field: Partial<Pick<import("@formily/core").Field<any, any, any, any>, import("@formily/core").NonFunctionPropertyNames<{
|
|
2388
2372
|
match: (pattern: import("@formily/path").Pattern) => boolean;
|
|
2389
2373
|
validate: (triggerType?: import("@formily/validator").ValidatorTriggerType | undefined) => any;
|
|
@@ -2680,10 +2664,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2680
2664
|
dateOperationalForm: {
|
|
2681
2665
|
type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
|
|
2682
2666
|
};
|
|
2683
|
-
operationalFormInit: {
|
|
2684
|
-
type: BooleanConstructor;
|
|
2685
|
-
default: boolean;
|
|
2686
|
-
};
|
|
2687
2667
|
linebarAutoHidden: {
|
|
2688
2668
|
type: BooleanConstructor;
|
|
2689
2669
|
};
|
|
@@ -2719,7 +2699,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2719
2699
|
bordered: string | boolean;
|
|
2720
2700
|
uniqueCacheData: boolean;
|
|
2721
2701
|
outBordered: boolean;
|
|
2722
|
-
operationalFormInit: boolean;
|
|
2723
2702
|
}>;
|
|
2724
2703
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
2725
2704
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "update")[], "error" | "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -3,4 +3,3 @@ import { InjectionKey, Ref } from 'vue';
|
|
|
3
3
|
export declare const InjectionFilterApiConfig: InjectionKey<AnyObject>;
|
|
4
4
|
export declare const InjectionFilterSearchConfig: InjectionKey<Ref<AnyObject[]>>;
|
|
5
5
|
export declare const InjectionClassifyFilterList: InjectionKey<Ref<AnyObject[]>>;
|
|
6
|
-
export declare const InjectionClassifyfilterType: InjectionKey<String>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const i=Symbol("InjectionFilterApiConfig"),o=Symbol("InjectionFilterSearchConfig"),
|
|
1
|
+
const i=Symbol("InjectionFilterApiConfig"),o=Symbol("InjectionFilterSearchConfig"),n=Symbol("InjectionClassifyFilterList");export{n as InjectionClassifyFilterList,i as InjectionFilterApiConfig,o as InjectionFilterSearchConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",
|
|
1
|
+
var e="@cnhis-design-vue/shared",s="3.1.55-release.0",i="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.55-release.0",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,i as main,e as name,n as peerDependencies,s as version};
|
|
@@ -4,7 +4,6 @@ export declare function isMatchLowCodeCondition(value: unknown, condition: {
|
|
|
4
4
|
con: LowCodeTypes.VALUE_RELATION;
|
|
5
5
|
value: unknown;
|
|
6
6
|
}, overwriteCompareMap?: LowCodeTypes.BindEventSettingItem['compareMap']): boolean;
|
|
7
|
-
export declare function isConditionsMatchSqlExpression(conditions: boolean[], sqlExpression?: string): any;
|
|
8
7
|
export declare function isMatchLowCodeConditionsWithSqlExpression(formData: AnyObject, config: LowCodeTypes.reactionsConfig): any;
|
|
9
8
|
declare function handleFieldTriggerSetValue(bindEventSetting: LowCodeTypes.BindEventSettingItem, { getter, setter }: {
|
|
10
9
|
setter: (key: string, value: unknown) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Path as e}from"@formily/path";import{isArray as
|
|
1
|
+
import{Path as e}from"@formily/path";import{isArray as n,isString as t,includes as r,negate as a,gt as o,gte as i,isNumber as l,lt as c,lte as f,noop as u,isObject as s}from"lodash-es";import{unref as d}from"vue";import{add as p,differenceInMilliseconds as m}from"date-fns";function F(e){return null==e||""==e}const D={EQ:(e,n)=>`${e}`===n,NEQ:(e,n)=>`${e}`!==n,CL:(e,a)=>!(!n(e)&&!t(e))&&r(e,a),NC:(e,a)=>!n(e)&&!t(e)||!r(e,a),NULL:F,NOT_NULL:a(F),BIG:o,BIGEQ:i,LESS:(e,n)=>!!(l(e)||t(e)&&e)&&c(e,n),LESSEQ:(e,n)=>!!(l(e)||t(e)&&e)&&f(e,n)};function E(e,n,t={}){return(t[n.con]||D[n.con]||(()=>!1))(e,`${n.value}`)}function g(r,a){if(!n(a.conObj))return!1;if(!a.sqlExpression||!t(a.sqlExpression))return a.conObj.every((n=>E(e.getIn(r,n.field_key),n,a.compareMap)));const o=a.conObj.map((n=>E(e.getIn(r,n.field_key),n,a.compareMap)));try{return new Function("return "+a.sqlExpression.replace(/OR/g,"||").replace(/AND/g,"&&").replace(/[a-zA-Z]/g,"").replace(/\d+/g,(e=>o[+e-1]?"true":"false")))()}catch(e){return console.error("表达式错误=>",a.sqlExpression),!1}}const h=Object.freeze({SET_VALUE:function(e,{getter:n,setter:r}){if(!s(e))return;const{results:a=[],params:o=[],compareMap:i={}}=e;if(!a.length)return;function l(e){var r;if(!t(e))return e;const a=e.trim().match(/^\$\{([a-zA-Z\d\s]+)}$/);return a?n(null==(r=a[1])?void 0:r.trim()):e}o.every((e=>e&&e.p_name&&E(n(e.p_name),{con:e.p_select,value:l(e.p_value)},i)))&&a.forEach((e=>r(e.p_name,l(e.p_value))))},REPEAT_VALIDATE:u,IS_SHOW_FIELD:u,SQLSAVE:u,API:u});function A(e){return h[e]||u}function N(e,r,a){function o(e){return n(e)&&!!e.length}function i(e,n=!0){e.forEach((e=>{if(!e.operationalResult||!n&&null!=r(e.operationalResult))return;const o=e.operationFormParam.reduce(((e,n)=>(e[n=n.replace(/^table\./,"")]=+r(n),e)),{}),i=e.operationalRule.replace(/\${(.+?)}/g,"$1");let c=new Function("table",`return ${i}`)(o);t(c)&&(c=+c),c=l(c)?isNaN(c)?"":c.toFixed(+e.operationalPrecision):"",a(e.operationalResult,c)}))}return{operationalFormHandler:function(n){if(!o(d(e)))return;const t=d(e).filter((e=>e.operationFormParam.includes(`table.${n}`)));t.length&&i(t)},triggerAllOperationalFormHandler:function(){o(d(e))&&i(d(e),!1)}}}function _(e,t,r){function a(e){return n(e)&&!!e.length}function o(e,n=!0){e.forEach((e=>{e.diffValField&&e.diffValUnit&&e.scene&&(n||null==t(e.diffValField))&&("DIFF"===e.scene?function({startDateField:e,endDateField:n,diffValField:a,diffValUnit:o,precision:i="0"}){const l=t(e),c=t(n);if(l&&c){const e=m(new Date(c),new Date(l))/1e3/60,n=e/60,t=n/24;let f="";switch(o){case"DAY":f=t.toFixed(+i);break;case"HOUR":f=n.toFixed(+i);break;case"MIN":f=e.toFixed(+i);break;case"DHM":f=`${Math.floor(t)}天${Math.floor(n%24)}小时${Math.floor(e%60)}分钟`;break}r(a,f)}else r(a,null)}(e):"CALC"===e.scene&&function(e){const n=+e.diffValField;if(!l(n)||Number.isNaN(n))return;const a=t(e.startDateField);if(a){const t=p(new Date(a),{days:"DAY"===e.diffValUnit?n:0,hours:"HOUR"===e.diffValUnit?n:0,minutes:"MIN"===e.diffValUnit?n:0});r(e.endDateField,t)}else r(e.endDateField,null)}(e))}))}return{dateOperationalFormHandler:function(n){if(!a(d(e)))return;const t=d(e).filter((e=>"DIFF"===e.scene?e.startDateField===n||e.endDateField===n:e.startDateField===n));t.length&&o(t)},triggerAllDateOperationalFormHandler:function(){a(d(e))&&o(d(e),!1)}}}export{A as getBindEventSettingTrigger,_ as getDateOperationalFormHandler,N as getOperationalFormHandler,E as isMatchLowCodeCondition,g as isMatchLowCodeConditionsWithSqlExpression};
|
package/es/shared/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isString as i,isObject as
|
|
1
|
+
import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isString as i,isObject as u,isNumber as s,isArray as c,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getDateOperationalFormHandler,getOperationalFormHandler,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",u){r=x(r),e=x(e);for(let s=0;s<e.length;s++){if(n(e[s],i,u),o)return;for(let i=0;i<r.length;i++){const u=e[s][r[i]];if(Array.isArray(u)&&t(u,n,r,e[s]),o)return}}}(t,e,n,r)}function d(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(!Reflect.get(t,"__cnhis_version")&&u(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!i(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function x(t){return Array.isArray(t)?t:[t]}function m(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const h=o((function(t){if(!t)return 0;let e="";return[...t].reduce(((t,n)=>{const r=e;return e=n,/[a-z]/.test(n)?t+8.05:/[A-Z]/.test(n)?t+9.13:/\d/.test(n)?t+8.9:/[.,]/.test(n)?t+4.03:/[)(]/.test(n)?t+5.17:/[\u4e00-\u9fa5():,。]/.test(n)?t+13.95:/[-+]/.test(n)?t+7.51:/[/\\]/.test(n)?t+4.11:/%/.test(n)?t+12.68:/‰/.test(n)?t+17.75:" "===n?" "===r?t:t+4:t+6}),0)})),g=Object.seal(Object.create(null));function v(t,e){return function t(e,n){return u(e)?c(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,o])=>(n.includes(r)||(u(o)&&!f(o)?e[r]=t(o,n):e[r]=o),e)),{}):e}(t,e)}function y(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function O(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function b(t,e="px"){if(s(t))return`${t}${e}`;if(i(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}const j=o((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function w(t,e){if(!u(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function E(e){if(!t())throw new Error(e||"can't use this hook out of setup environment")}function $(t,e=1){const[n,r,o,i,u]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const c=u&&parseInt(u,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(s(c)?c.toFixed(2):e)]}function _(t){return e({setup(e,{slots:o}){let i=(null==t?void 0:t.parent)&&Reflect.get(t.parent,"provides");const u=[];for(;i;)Object.entries(i).forEach((([t,e])=>{u.includes(t)||(u.push(t),n(t,e))})),i=Object.getPrototypeOf(i);return()=>{var t;return r("div",null,[null==(t=o.default)?void 0:t.call(o)])}}})}const S=o((function(t,e){return!(!i(e)||!i(t))&&e.split(",").some((e=>e.trim().includes(t)))}),{getKey:(...t)=>t.reduce(((t,e)=>String(t)+"_"+String(e)),"")});export{g as DMZ,x as arrayed,E as checkInSetupEnv,_ as createProviderWrapper,v as deepOmit,O as findAncestor,p as generateTimeFormat,h as getStringWidth,$ as hex2rgba,j as jsonParse,S as keywordMatcher,d as safeComponentRegister,y as separateMetaModule,w as shallowOmit,l as traverse,m as uuidGenerator,b as widthAppend};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.55-
|
|
3
|
+
"version": "3.1.55-release.0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
"min-dom": "^3.2.1",
|
|
43
43
|
"moment": "^2.29.1",
|
|
44
44
|
"naive-ui": "^2.30.0",
|
|
45
|
-
"recorder-core": "^1.2.23070100",
|
|
46
45
|
"sockjs-client": "^1.6.1",
|
|
47
46
|
"sortablejs": "^1.15.0",
|
|
48
47
|
"spark-md5": "^3.0.2",
|
|
@@ -64,5 +63,5 @@
|
|
|
64
63
|
"iOS 7",
|
|
65
64
|
"last 3 iOS versions"
|
|
66
65
|
],
|
|
67
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "a8f7d7cdca3113620c2a7b0dbaf062673dfc51cc"
|
|
68
67
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default as CAudioSDK}from"./src/audioSDK.js";
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ComponentInternalInstance } from 'vue';
|
|
2
|
-
import 'recorder-core/src/engine/mp3';
|
|
3
|
-
import 'recorder-core/src/engine/mp3-engine';
|
|
4
|
-
import { AnyObject } from '../../../../es/shared/types';
|
|
5
|
-
export default class AudioSDK {
|
|
6
|
-
private recorder;
|
|
7
|
-
private recordingDialog;
|
|
8
|
-
private onProcess;
|
|
9
|
-
static instance: AudioSDK | null;
|
|
10
|
-
constructor();
|
|
11
|
-
static create(): AudioSDK;
|
|
12
|
-
private initRecorder;
|
|
13
|
-
private recorderOpen;
|
|
14
|
-
recorderStart(instance: ComponentInternalInstance, afterLeave: Function): Promise<{
|
|
15
|
-
result: string;
|
|
16
|
-
}>;
|
|
17
|
-
recorderStop(isRecognition?: boolean): Promise<AnyObject>;
|
|
18
|
-
destroy(): void;
|
|
19
|
-
static audioRecognition(params: FormData): Promise<import("axios").AxiosResponse<any, any>>;
|
|
20
|
-
static audioRevise(params: {
|
|
21
|
-
file_id: string;
|
|
22
|
-
audio_txt: string;
|
|
23
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r from"axios";import e from"recorder-core";import"recorder-core/src/engine/mp3";import"recorder-core/src/engine/mp3-engine";import{uuidGenerator as t}from"../../../shared/utils/index.js";import{useThrottleFn as i}from"@vueuse/core";import{RecordingDialog as s}from"./utils/recordingDialog.js";class o{constructor(){if(this.recorder=null,this.recordingDialog=new s,this.onProcess=i(((r,e)=>{if(!this.recordingDialog.target)return;const t=this.recordingDialog.target.querySelector(".animation");if(t){const r="translateX(-50%) translateY(-50%)";if(e>.5){const i=1+.02*e;t.style.transform=r+" scale("+i+")"}else t.style.transform=r+" scale(1)"}}),200),o.instance)return o.instance;this.initRecorder(),o.instance=this}static create(){return new o}initRecorder(){this.recorder=e({type:"mp3",sampleRate:16e3,bitRate:16,onProcess:this.onProcess})}async recorderOpen(){return this.recorder||this.initRecorder(),new Promise(((r,e)=>{this.recorder.open((()=>{r({})}),((r,t)=>{e({result:"fail",msg:r,isUserNotAllow:t})}))}))}async recorderStart(r,e){try{return await this.recorderOpen(),this.recorder.start(),await this.recordingDialog.show(r,e),Promise.resolve({result:"success"})}catch(r){return Promise.reject(r)}}recorderStop(r=!0){return this.recorder?(this.recordingDialog.hide(),new Promise(((e,i)=>{this.recorder.stop((async(s,a)=>{const n=new File([s],`${t()}.mp3`,{type:s.type});try{let t;if(r){const r=new FormData;r.append("audio",n);const{data:e}=await o.audioRecognition(r);t=e}e({result:"success",file:n,duration:a,...t?{data:t}:{}})}catch(r){i({result:"fail",msg:r})}}),(r=>{i({result:"fail",msg:r})}))}))):Promise.reject({result:"fail",msg:"请先打开麦克风录音"})}destroy(){var r;null==(r=this.recorder)||r.close(),this.recorder=null}static async audioRecognition(e){return await r.post("/audio/recognition",e,{headers:{"Content-Type":"multipart/form-data"}})}static async audioRevise(e){return await r.post("/audio/revise",e)}}export{o as default};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
visible: {
|
|
3
|
-
type: BooleanConstructor;
|
|
4
|
-
default: boolean;
|
|
5
|
-
};
|
|
6
|
-
}, {
|
|
7
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
-
visible: {
|
|
9
|
-
type: BooleanConstructor;
|
|
10
|
-
default: boolean;
|
|
11
|
-
};
|
|
12
|
-
}>> & {}>>;
|
|
13
|
-
showModal: import("vue").Ref<boolean>;
|
|
14
|
-
close: () => void;
|
|
15
|
-
NModal: any;
|
|
16
|
-
NIcon: any;
|
|
17
|
-
Mic: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
18
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
-
visible: {
|
|
20
|
-
type: BooleanConstructor;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
}>>, {
|
|
24
|
-
visible: boolean;
|
|
25
|
-
}>;
|
|
26
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r from"./recordingDialog.vue2.js";import e from"../../../../_virtual/_plugin-vue_export-helper.js";var o=e(r,[["__file","recordingDialog.vue"]]);export{o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as o,ref as e,watch as i,openBlock as n,createBlock as a,unref as l,withCtx as s,createElementVNode as r,createVNode as t}from"vue";import{NModal as c,NIcon as u}from"naive-ui";import{Mic as p}from"@vicons/ionicons5";const v={class:"c-recording-wrapper"},f=r("div",{class:"animation"},null,-1);var m=o({__name:"recordingDialog",props:{visible:{type:Boolean,default:!1}},setup(o){const m=o,d=e(!0);function w(){d.value=!1}return i((()=>m.visible),(o=>{d.value=o})),(o,e)=>(n(),a(l(c),{show:d.value,"onUpdate:show":e[0]||(e[0]=o=>d.value=o)},{default:s((()=>[r("div",v,[f,r("div",{class:"icon-box",onClick:w},[t(l(u),{size:"60",color:"#fff",component:l(p)},null,8,["component"])])])])),_:1},8,["show"]))}});export{m as default};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ComponentInternalInstance } from 'vue';
|
|
2
|
-
export declare class RecordingDialog {
|
|
3
|
-
rendered: boolean;
|
|
4
|
-
target: HTMLElement | null;
|
|
5
|
-
static createMsg(message: string): string;
|
|
6
|
-
show(instance: ComponentInternalInstance, afterLeave: Function): Promise<string>;
|
|
7
|
-
hide(): void;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ref as e,render as t,createVNode as r,withCtx as n,nextTick as i}from"vue";import{createProviderWrapper as s}from"../../../../shared/utils/index.js";import o from"../components/recordingDialog.vue.js";class a{constructor(){this.rendered=!1,this.target=null}static createMsg(e){return`[PreviewDialog] ${e}`}show(l,d){return this.rendered?Promise.reject(a.createMsg("请勿重复打开弹窗")):new Promise(((a,u)=>{this.rendered=!0;const c=document.createElement("div"),m=e(!1),h=s(l);t(r(h,null,{default:n((()=>r(o,{to:c,visible:m.value,onAfterLeave:()=>function(e){if(!e.parentElement)return;v.rendered=!1,v.hide(),d(),a("success")}(c)},null)),l)}),c);const v=this;var g;g=c,document.body.appendChild(g),v.target=g,i((()=>m.value=!0))}))}hide(){var e;(null==(e=this.target)?void 0:e.parentElement)&&(this.target.parentElement.removeChild(this.target),this.target=null)}}export{a as RecordingDialog};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.c-recording-wrapper{align-items:center;background-color:#fff;border-radius:10px;bottom:100px;display:flex;height:350px;justify-content:center;left:50%;position:fixed;transform:translateX(-50%);width:500px}.c-recording-wrapper .animation{background-color:#5585f557;left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%) scale(1);z-index:-1}.c-recording-wrapper .animation,.c-recording-wrapper .icon-box{align-items:center;border-radius:50%;display:flex;height:90px;justify-content:center;width:90px}.c-recording-wrapper .icon-box{background-color:#5585f5;cursor:pointer}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{COMPONENT_NAMESPACE as i}from"../../shared/global/variable.js";import{safeComponentRegister as r}from"../../shared/utils/index.js";import t from"./src/BiuniqueChat.vue.js";const a=t;a.install=function(t){r(t,a,i+"BiuniqueChat")};export{a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"./BiuniqueChat.vue2.js";import u from"../../../_virtual/_plugin-vue_export-helper.js";var i=u(e,[["__file","BiuniqueChat.vue"]]);export{i as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as s,reactive as t,provide as n,openBlock as o,createBlock as r,unref as i,withCtx as a,createVNode as c}from"vue";import{NSpin as u,NLayout as d,NLayoutSider as m,NLayoutContent as l}from"naive-ui";import f from"./components/SiderList.vue.js";import p from"./components/ChatHeader.vue.js";import g from"./components/ChatMain.vue.js";import S from"./components/ChatFooter.vue.js";import{promiseTimeout as I}from"@vueuse/shared";import{ChatSock as h}from"./utils/chatSock.js";import{accessApi as b,readMessageApi as y}from"./api/index.js";import{format as v}from"date-fns";var C=e({__name:"BiuniqueChat",props:{data:{type:Object,default:()=>({})},baseURL:{type:String,defalut:"/"}},setup(e){const C=e,_=s(!1),w=s(!1);let M;const L=t({reConnention:0,currentSessionItem:{},currentSessionId:"",userInfo:{},msgList:[],currentMsg:{},isAppendMsg:!1,sessionList:[],isChangeSession:!1,updateSessionItem:{},isUpdateSession:!1});function j(){const e={heartbeatFn:()=>{try{null==M||M.send("test")}catch(e){null==M||M.disconnect(),j()}},connectCb:()=>{console.log("连接成功"),L.reConnention>0&&(L.reConnention=0),M.subscribe(`/user/${L.userInfo.username}/message`,(e=>{try{const s=JSON.parse(e.body),{body:t,from:n,id:o,fromName:r,readStatus:i,createdTime:a,sessionId:c}=s;if(c!==L.currentSessionId)return;N({createdTime:a,readStatus:i,content:t,fromId:n,id:o,fromName:r,senderFlag:1}),O(!0),async function(){await y({sessionId:L.currentSessionId,from:L.userInfo.username,id:L.currentMsg.id})}()}catch(e){console.log(e)}})),M.subscribe(`/user/${L.userInfo.username}/sessionList`,(e=>{var s;try{const t=JSON.parse(e.body),n={__time:v(new Date(t.sendTime),"MM/dd HH:mm"),__lastContent:(null==(s=t.lastContent)?void 0:s.content)||"",id:t.sessionId};if(0==t.opt){const e=t.name||t.fromName||t.toName;U([{...t,name:e,__name:e.slice(-2),...n},...L.sessionList])}else 1==t.opt&&(L.updateSessionItem={...t,...n},k(!0))}catch(e){console.log(e)}})),M.subscribe(`/user/${L.userInfo.username}/msgReadStatus`,(e=>{try{if(!L.currentSessionId)return;const s=JSON.parse(e.body);if(s.sessionId!==L.currentSessionId)return;const t=(null==s?void 0:s.readStatus)||{};if(Object.keys(t).length<1)return}catch(e){console.log(e)}}))},errorCb:(e,s)=>{L.reConnention=s,console.log("断线了,正在重连...")}};M=new h(`${C.baseURL}/stomp`,e)}function N(e){L.currentMsg=e}function O(e){L.isAppendMsg=e}function U(e){L.sessionList=e}function k(e){L.isUpdateSession=e}async function H(e){e||await I(300),_.value=e}return n("state",L),n("setCurrentSessionItem",(function(e){if(Object.assign(L.currentSessionItem,e),L.currentSessionId===L.currentSessionItem.id)return;L.currentSessionId=L.currentSessionItem.id,L.msgList=[]})),n("setMsgList",(function(e=[]){L.msgList=e.map((e=>{var s;return{...e,__time:v(new Date(e.createdTime),"MM/dd HH:mm"),__content:null==(s=e.content)?void 0:s.content,__left:1==e.senderFlag}}))})),n("setCurrentMsg",N),n("setIsAppendMsg",O),n("setSessionList",U),n("setIsChangeSession",(function(e){L.isChangeSession=e})),n("setIsUpdateSession",k),async function(){await async function(){if(Object.values(C.data).some((e=>!String(e))))return console.log("缺少参数");try{w.value=!0;const e=await b(C.data);L.userInfo=e}catch(e){console.log(e)}finally{w.value=!1}}(),j()}(),(e,s)=>w.value?(o(),r(i(u),{key:0,stroke:"#5585f5"})):(o(),r(i(d),{key:1,class:"c-multi-chat","has-sider":""},{default:a((()=>[c(i(m),{"collapse-mode":"width","collapsed-width":100,width:300,"show-trigger":"arrow-circle","content-style":"padding: 20px;",bordered:"","onUpdate:collapsed":H},{default:a((()=>[c(f,{collapsed:_.value},null,8,["collapsed"])])),_:1}),c(i(l),{class:"chat-wrapper"},{default:a((()=>[c(p),c(g),c(S)])),_:1})])),_:1}))}});export{C as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function colorAndIconPlugin(): import("../../../../../es/components/iho-table").TablePlugin;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../../../shared/utils/index.js";import{isFunction as o,isObject as n,isEmpty as r}from"lodash-es";import"../../index.js";import{getLowCodeFieldFromField as i}from"../utils/index.js";import{isMatchLowCodeCondition as t,isConditionsMatchSqlExpression as e}from"../../../../shared/utils/business.js";import{defineTablePlugin as l}from"../hooks/useTablePlugin.js";function s(){const s="colorAndIconPlugin";return l({name:s,apply(l){l.configHooks.config.tap(s,(l=>{const s=l.cellStyle;return l.cellStyle=l=>{var c,u;const{row:d,column:p}=l,a=o(s)?s(l)||{}:n(s)?s:{},f=i(p);if(!f)return a;const m=null!=(u=f.colorAndIcon)?u:null==(c=f.settingObj)?void 0:c.colorAndIcon;if(r(m))return a;const g=m.find((o=>{if(!o.condition)return!0;const n=o.condition.map((o=>t(d[o.field_key||p.field],o)));return e(n,o.sqlExpression)}));return g?Object.assign(a,{[`--color-and-icon-${"background"===g.colorType?"background-color":"color"}-type`]:g.color}):a},l}))}})}export{s as colorAndIconPlugin};
|