cnhis-design-vue 3.3.1-beta.9 → 3.3.1-release.4
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/_virtual/_plugin-vue_export-helper.js +9 -1
- package/es/components/ai-chat/index.d.ts +393 -36
- package/es/components/ai-chat/index.js +10 -1
- package/es/components/ai-chat/src/Index.vue.d.ts +393 -36
- package/es/components/ai-chat/src/Index.vue.js +6 -1
- package/es/components/ai-chat/src/Index.vue2.js +175 -1
- package/es/components/ai-chat/src/api/index.d.ts +8 -0
- package/es/components/ai-chat/src/api/index.js +87 -0
- package/es/components/ai-chat/src/components/ChatAudio.vue.d.ts +38 -0
- package/es/components/ai-chat/src/components/ChatAudio.vue.js +6 -0
- package/es/components/ai-chat/src/components/ChatAudio.vue2.js +103 -0
- package/es/components/ai-chat/src/components/ChatBI.vue.d.ts +2 -2
- package/es/components/ai-chat/src/components/ChatBI.vue.js +6 -1
- package/es/components/ai-chat/src/components/ChatBI.vue2.js +73 -1
- package/es/components/ai-chat/src/components/ChatCard.js +403 -1
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +75 -31
- package/es/components/ai-chat/src/components/ChatFooter.vue.js +6 -1
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +373 -1
- package/es/components/ai-chat/src/components/ChatMain.js +350 -1
- package/es/components/ai-chat/src/components/ChatMainDefault.d.ts +2 -0
- package/es/components/ai-chat/src/components/ChatMainDefault.js +278 -0
- package/es/components/ai-chat/src/components/ChatPatient.vue.d.ts +2 -2
- package/es/components/ai-chat/src/components/ChatPatient.vue.js +6 -1
- package/es/components/ai-chat/src/components/ChatPatient.vue2.js +218 -1
- package/es/components/ai-chat/src/components/ChatPrompt.vue.d.ts +2 -2
- package/es/components/ai-chat/src/components/ChatPrompt.vue.js +6 -1
- package/es/components/ai-chat/src/components/ChatPrompt.vue2.js +143 -1
- package/es/components/ai-chat/src/components/ChatRight.vue.d.ts +57 -0
- package/es/components/ai-chat/src/components/ChatRight.vue.js +6 -0
- package/es/components/ai-chat/src/components/ChatRight.vue2.js +190 -0
- package/es/components/ai-chat/src/components/card/JsonCard.d.ts +25 -0
- package/es/components/ai-chat/src/components/card/JsonCard.js +574 -0
- package/es/components/ai-chat/src/components/message-render/CardRender.d.ts +16 -0
- package/es/components/ai-chat/src/components/message-render/CardRender.js +80 -0
- package/es/components/ai-chat/src/components/message-render/FormRender.d.ts +16 -0
- package/es/components/ai-chat/src/components/message-render/FormRender.js +173 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue.d.ts +36 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue.js +6 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatAudio.vue2.js +96 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue.d.ts +105 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue.js +6 -0
- package/es/components/ai-chat/src/components/mobile/MobileChatFooter.vue2.js +260 -0
- package/es/components/ai-chat/src/components/svgs/AddIcon.vue.js +18 -0
- package/es/components/ai-chat/src/components/svgs/AudioIcon.vue.js +37 -0
- package/es/components/ai-chat/src/components/svgs/KeyboardIcon.vue.js +20 -0
- package/es/components/ai-chat/src/components/svgs/MicroPhone.vue.js +48 -0
- package/es/components/ai-chat/src/hooks/index.d.ts +2 -0
- package/es/components/ai-chat/src/hooks/index.js +2 -0
- package/es/components/ai-chat/src/hooks/useChartAudioContext.d.ts +18 -0
- package/es/components/ai-chat/src/hooks/useChartAudioContext.js +202 -0
- package/es/components/ai-chat/src/hooks/useData.d.ts +77 -0
- package/es/components/ai-chat/src/hooks/useData.js +289 -0
- package/es/components/ai-chat/src/hooks/useFooterContext.d.ts +38 -0
- package/es/components/ai-chat/src/hooks/useFooterContext.js +218 -0
- package/es/components/ai-chat/src/hooks/useProgram.d.ts +14 -0
- package/es/components/ai-chat/src/hooks/useProgram.js +306 -0
- package/es/components/ai-chat/src/hooks/useSSE.d.ts +9 -0
- package/es/components/ai-chat/src/hooks/useSSE.js +138 -0
- package/es/components/ai-chat/src/hooks/useWebsocket.d.ts +4 -0
- package/es/components/ai-chat/src/hooks/useWebsocket.js +66 -0
- package/es/components/ai-chat/src/types/index.d.ts +1 -3
- package/es/components/ai-chat/src/types/index.js +1 -1
- package/es/components/ai-chat/src/utils/index.d.ts +6 -0
- package/es/components/ai-chat/src/utils/index.js +41 -1
- package/es/components/ai-chat/style/index.css +1 -1
- package/es/components/annotation-edit/index.js +10 -1
- package/es/components/annotation-edit/src/AnnotationEdit.js +223 -1
- package/es/components/audio-sdk/index.d.ts +86 -99
- package/es/components/audio-sdk/index.js +11 -1
- package/es/components/audio-sdk/src/Index.vue.d.ts +84 -97
- package/es/components/audio-sdk/src/Index.vue.js +6 -1
- package/es/components/audio-sdk/src/Index.vue2.js +133 -1
- package/es/components/audio-sdk/src/audioSDK.d.ts +64 -24
- package/es/components/audio-sdk/src/audioSDK.js +387 -1
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +29 -13
- package/es/components/audio-sdk/src/components/recording-modal.vue.js +6 -1
- package/es/components/audio-sdk/src/components/recording-modal.vue2.js +40 -1
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +30 -13
- package/es/components/audio-sdk/src/components/recording.vue.js +6 -1
- package/es/components/audio-sdk/src/components/recording.vue2.js +113 -1
- package/es/components/audio-sdk/src/utils/index.d.ts +4 -1
- package/es/components/audio-sdk/src/utils/index.js +48 -1
- package/es/components/audio-sdk/src/utils/recordingModal.js +57 -1
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/base-search/index.js +10 -1
- package/es/components/base-search/src/index.vue.js +6 -1
- package/es/components/base-search/src/index.vue2.js +325 -1
- package/es/components/big-table/index.js +15 -1
- package/es/components/big-table/src/BigTable.vue.js +6 -1
- package/es/components/big-table/src/BigTable.vue2.js +2525 -1
- package/es/components/big-table/src/bigTableEmits.js +3 -1
- package/es/components/big-table/src/bigTableProps.js +218 -1
- package/es/components/big-table/src/bigTableState.js +69 -1
- package/es/components/big-table/src/components/NoData.vue.js +6 -1
- package/es/components/big-table/src/components/NoData.vue2.js +74 -1
- package/es/components/big-table/src/components/edit-form/edit-date.js +215 -1
- package/es/components/big-table/src/components/edit-form/edit-input.js +96 -1
- package/es/components/big-table/src/components/edit-form/edit-select.js +143 -1
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +6 -1
- package/es/components/big-table/src/components/edit-form/edit-separate.vue2.js +110 -1
- package/es/components/big-table/src/components/edit-form/edit-time.js +122 -1
- package/es/components/big-table/src/components/edit-form/useCommon.js +23 -1
- package/es/components/big-table/src/components/input-button.vue.js +6 -1
- package/es/components/big-table/src/components/input-button.vue2.js +38 -1
- package/es/components/big-table/src/components/separate.vue.js +6 -1
- package/es/components/big-table/src/components/separate.vue2.js +37 -1
- package/es/components/big-table/src/constants/index.js +3 -1
- package/es/components/big-table/src/hooks/index.js +9 -1
- package/es/components/big-table/src/hooks/useAnchor.js +56 -1
- package/es/components/big-table/src/hooks/useAnnotation.js +21 -1
- package/es/components/big-table/src/hooks/useBatchEditing.js +302 -1
- package/es/components/big-table/src/hooks/useEdit.js +144 -1
- package/es/components/big-table/src/hooks/useEvent.js +116 -1
- package/es/components/big-table/src/hooks/useFormat.js +519 -1
- package/es/components/big-table/src/hooks/useNestTable.js +101 -1
- package/es/components/big-table/src/hooks/useSeparateRow.js +209 -1
- package/es/components/big-table/src/hooks/useTableParse.js +142 -1
- package/es/components/big-table/src/utils.js +653 -1
- package/es/components/body-select/index.js +10 -1
- package/es/components/body-select/src/config/index.js +103 -1
- package/es/components/body-select/src/hooks/renderCanvas.js +94 -1
- package/es/components/body-select/src/index.vue.js +6 -1
- package/es/components/body-select/src/index.vue2.js +137 -1
- package/es/components/bpmn-workflow/index.js +10 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +6 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue2.js +269 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +1480 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +99 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +114 -1
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +40 -1
- package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +14 -1
- package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +10 -1
- package/es/components/branch-notice/index.js +10 -1
- package/es/components/branch-notice/src/BranchNotice.vue.js +6 -1
- package/es/components/branch-notice/src/BranchNotice.vue2.js +128 -1
- package/es/components/branch-notice/src/canstants.js +10 -1
- package/es/components/branch-notice/src/components/NoticeItem.vue.js +6 -1
- package/es/components/branch-notice/src/components/NoticeItem.vue2.js +110 -1
- package/es/components/branch-notice/src/components/NoticeItemAside.vue.js +6 -1
- package/es/components/branch-notice/src/components/NoticeItemAside.vue2.js +71 -1
- package/es/components/branch-notice/src/components/NoticeOperationList.vue.js +6 -1
- package/es/components/branch-notice/src/components/NoticeOperationList.vue2.js +57 -1
- package/es/components/branch-notice/src/drawLine.js +183 -1
- package/es/components/branch-notice/src/hooks/useTheme.js +31 -1
- package/es/components/button-print/index.d.ts +30 -0
- package/es/components/button-print/index.js +12 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +30 -0
- package/es/components/button-print/src/ButtonPrint.vue.js +6 -1
- package/es/components/button-print/src/ButtonPrint.vue2.js +164 -1
- package/es/components/button-print/src/api.js +43 -1
- package/es/components/button-print/src/components/EditFormat.vue.js +6 -1
- package/es/components/button-print/src/components/EditFormat.vue2.js +178 -1
- package/es/components/button-print/src/components/IdentityVerification.vue.js +6 -1
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +199 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue.js +6 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1314 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue.js +6 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +714 -1
- package/es/components/button-print/src/components/Preview.vue.js +6 -1
- package/es/components/button-print/src/components/Preview.vue2.js +78 -1
- package/es/components/button-print/src/constants/index.js +3 -1
- package/es/components/button-print/src/utils/browserPrint.js +60 -1
- package/es/components/button-print/src/utils/dialog.js +102 -1
- package/es/components/button-print/src/utils/index.js +2 -1
- package/es/components/button-print/src/utils/print.d.ts +2 -2
- package/es/components/button-print/src/utils/print.js +1146 -1
- package/es/components/calendar/index.d.ts +126 -3
- package/es/components/calendar/index.js +10 -1
- package/es/components/calendar/src/Calendar.vue.d.ts +126 -2
- package/es/components/calendar/src/Calendar.vue.js +6 -1
- package/es/components/calendar/src/Calendar.vue2.js +262 -1
- package/es/components/callback/index.js +10 -1
- package/es/components/callback/src/components/dialog/drawer.vue.js +6 -1
- package/es/components/callback/src/components/dialog/drawer.vue2.js +123 -1
- package/es/components/callback/src/components/dialog/modal.vue.js +6 -1
- package/es/components/callback/src/components/dialog/modal.vue2.js +134 -1
- package/es/components/callback/src/components/popup/index.vue.js +87 -1
- package/es/components/callback/src/components/render/drawerIframe/index.vue.js +6 -1
- package/es/components/callback/src/components/render/drawerIframe/index.vue2.js +170 -1
- package/es/components/callback/src/components/render/enums.js +7 -1
- package/es/components/callback/src/components/render/index.vue.js +152 -1
- package/es/components/callback/src/components/render/popupMaps.js +30 -1
- package/es/components/callback/src/index.vue.js +6 -1
- package/es/components/callback/src/index.vue2.js +33 -1
- package/es/components/card-reader-sdk/index.js +2 -1
- package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +4 -8
- package/es/components/card-reader-sdk/src/cardReaderSDK.js +169 -1
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue.js +6 -1
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +63 -1
- package/es/components/card-reader-sdk/src/constants/index.js +162 -1
- package/es/components/card-reader-sdk/src/insuranceSDK.js +116 -1
- package/es/components/card-reader-sdk/src/utils/ensureUID2IdCard.js +42 -1
- package/es/components/card-reader-sdk/src/utils/index.js +31 -1
- package/es/components/card-reader-sdk/src/utils/readHealthCard.js +61 -1
- package/es/components/card-reader-sdk-cn/index.js +10 -1
- package/es/components/card-reader-sdk-cn/src/henan/index.js +200 -1
- package/es/components/card-render/index.js +10 -1
- package/es/components/card-render/src/CardRender.vue.js +6 -1
- package/es/components/card-render/src/CardRender.vue2.js +77 -1
- package/es/components/card-render/src/components/Box.vue.js +6 -1
- package/es/components/card-render/src/components/Box.vue2.js +91 -1
- package/es/components/card-render/src/components/Button.vue.d.ts +3 -0
- package/es/components/card-render/src/components/Button.vue.js +6 -1
- package/es/components/card-render/src/components/Button.vue2.js +103 -1
- package/es/components/card-render/src/components/Divider.vue.js +6 -1
- package/es/components/card-render/src/components/Divider.vue2.js +42 -1
- package/es/components/card-render/src/components/Field.vue.js +6 -1
- package/es/components/card-render/src/components/Field.vue2.js +186 -1
- package/es/components/card-render/src/components/FieldGroup.vue.js +6 -1
- package/es/components/card-render/src/components/FieldGroup.vue2.js +127 -1
- package/es/components/card-render/src/components/Image.vue.js +6 -1
- package/es/components/card-render/src/components/Image.vue2.js +78 -1
- package/es/components/card-render/src/components/Label.vue.js +6 -1
- package/es/components/card-render/src/components/Label.vue2.js +75 -1
- package/es/components/card-render/src/components/Row.vue.js +6 -1
- package/es/components/card-render/src/components/Row.vue2.js +130 -1
- package/es/components/card-render/src/components/ScaleView.vue.d.ts +39 -0
- package/es/components/card-render/src/components/ScaleView.vue.js +6 -0
- package/es/components/card-render/src/components/ScaleView.vue2.js +88 -0
- package/es/components/card-render/src/components/Slot.js +65 -1
- package/es/components/card-render/src/components/Table.vue.d.ts +104 -0
- package/es/components/card-render/src/components/Table.vue.js +6 -0
- package/es/components/card-render/src/components/Table.vue2.js +141 -0
- package/es/components/card-render/src/components/Text.vue.d.ts +1 -0
- package/es/components/card-render/src/components/Text.vue.js +6 -1
- package/es/components/card-render/src/components/Text.vue2.js +69 -1
- package/es/components/card-render/src/components/index.d.ts +139 -0
- package/es/components/card-render/src/components/index.js +34 -1
- package/es/components/card-render/src/constants/index.d.ts +4 -1
- package/es/components/card-render/src/constants/index.js +19 -1
- package/es/components/card-render/src/hooks/useCommon.js +43 -1
- package/es/components/card-render/src/utils/index.js +93 -1
- package/es/components/card-render/style/index.css +1 -1
- package/es/components/classification/index.js +10 -1
- package/es/components/classification/src/components/search-filter/index.vue.js +6 -1
- package/es/components/classification/src/components/search-filter/index.vue2.js +182 -1
- package/es/components/classification/src/components/set-classification/index.vue.js +6 -1
- package/es/components/classification/src/components/set-classification/index.vue2.js +214 -1
- package/es/components/classification/src/components/table-modal/index.vue.js +6 -1
- package/es/components/classification/src/components/table-modal/index.vue2.js +404 -1
- package/es/components/classification/src/const/index.js +3 -1
- package/es/components/classification/src/index.vue.js +6 -1
- package/es/components/classification/src/index.vue2.js +854 -1
- package/es/components/config-provider/index.js +10 -1
- package/es/components/config-provider/src/ConfigProvider.js +47 -1
- package/es/components/config-provider/src/utils/index.js +18 -1
- package/es/components/date-picker/index.js +10 -1
- package/es/components/date-picker/src/DatePicker.vue.js +6 -1
- package/es/components/date-picker/src/DatePicker.vue2.js +275 -1
- package/es/components/default-page/index.js +10 -1
- package/es/components/default-page/src/constants/index.js +126 -1
- package/es/components/default-page/src/index.vue.js +6 -1
- package/es/components/default-page/src/index.vue2.js +97 -1
- package/es/components/drag-scroll/index.js +1 -1
- package/es/components/drag-scroll/src/index.js +156 -1
- package/es/components/editor/index.js +10 -1
- package/es/components/editor/src/Editor.js +80 -1
- package/es/components/editor/style/index.css +1 -0
- package/es/components/expand-field/index.js +10 -1
- package/es/components/expand-field/src/components/FormBatchOptionsModal.vue.js +6 -1
- package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +142 -1
- package/es/components/expand-field/src/components/FormItemPerson.vue.js +6 -1
- package/es/components/expand-field/src/components/FormItemPerson.vue2.js +169 -1
- package/es/components/expand-field/src/components/PersonModal.vue.js +6 -1
- package/es/components/expand-field/src/components/PersonModal.vue2.js +130 -1
- package/es/components/expand-field/src/components/form.vue.js +6 -1
- package/es/components/expand-field/src/components/form.vue2.js +1116 -1
- package/es/components/expand-field/src/constants/index.js +3 -1
- package/es/components/expand-field/src/hooks/useAsyncData.js +35 -1
- package/es/components/expand-field/src/index.vue.js +6 -1
- package/es/components/expand-field/src/index.vue2.js +263 -1
- package/es/components/expand-field/src/utils/constant.js +50 -1
- package/es/components/expand-field/src/utils/index.js +22 -1
- package/es/components/expand-field/src/utils/tool.js +29 -1
- package/es/components/fabric-chart/index.d.ts +6 -2
- package/es/components/fabric-chart/index.js +10 -1
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +6 -2
- package/es/components/fabric-chart/src/FabricChart.vue.js +6 -1
- package/es/components/fabric-chart/src/FabricChart.vue2.js +174 -1
- package/es/components/fabric-chart/src/components/PopupMenu.js +112 -1
- package/es/components/fabric-chart/src/components/PopupTip.vue.js +6 -1
- package/es/components/fabric-chart/src/components/PopupTip.vue2.js +69 -1
- package/es/components/fabric-chart/src/components/useStyle.js +43 -1
- package/es/components/fabric-chart/src/constants/index.js +89 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +918 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +210 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +261 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +221 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +241 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +554 -1
- package/es/components/fabric-chart/src/hooks/index.js +12 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +384 -1
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +173 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.js +4 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +919 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +272 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1027 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +356 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +847 -1
- package/es/components/fabric-chart/src/hooks/temperature/index.js +6 -1
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +93 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1101 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +352 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +201 -1
- package/es/components/fabric-chart/src/hooks/temperature/useRight.js +21 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +420 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +169 -1
- package/es/components/fabric-chart/src/hooks/useCommon.js +70 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +151 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +370 -1
- package/es/components/fabric-chart/src/hooks/useEvent.js +134 -1
- package/es/components/fabric-chart/src/hooks/useGrid.js +83 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.js +75 -1
- package/es/components/fabric-chart/src/hooks/useShadow.js +137 -1
- package/es/components/fabric-chart/src/interface.d.ts +1 -0
- package/es/components/fabric-chart/src/utils/index.js +94 -1
- package/es/components/field-editor/index.js +10 -1
- package/es/components/field-editor/src/FieldEditor.vue.js +6 -1
- package/es/components/field-editor/src/FieldEditor.vue2.js +90 -1
- package/es/components/field-editor/src/fields.js +200 -1
- package/es/components/field-set/index.js +10 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldColor.vue.js +6 -1
- package/es/components/field-set/src/FieldColor.vue2.js +240 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.js +6 -1
- package/es/components/field-set/src/FieldFilter.vue2.js +302 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.js +6 -1
- package/es/components/field-set/src/FieldSet.vue2.js +573 -1
- package/es/components/field-set/src/Index.vue.js +6 -1
- package/es/components/field-set/src/Index.vue2.js +184 -1
- package/es/components/field-set/src/TableStyle.vue.js +6 -1
- package/es/components/field-set/src/TableStyle.vue2.js +149 -1
- package/es/components/field-set/src/components/condition.vue.js +6 -1
- package/es/components/field-set/src/components/condition.vue2.js +440 -1
- package/es/components/field-set/src/components/edit-dialog.vue.js +6 -1
- package/es/components/field-set/src/components/edit-dialog.vue2.js +315 -1
- package/es/components/field-set/src/components/edit-filter.vue.js +6 -1
- package/es/components/field-set/src/components/edit-filter.vue2.js +55 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue.js +6 -1
- package/es/components/field-set/src/components/table-row.vue2.js +532 -1
- package/es/components/field-set/src/constants/filter.js +109 -1
- package/es/components/field-set/src/constants/index.js +225 -1
- package/es/components/field-set/src/utils/index.js +112 -1
- package/es/components/form-config/index.d.ts +35 -10
- package/es/components/form-config/index.js +11 -1
- package/es/components/form-config/src/FormConfig.vue.d.ts +35 -10
- package/es/components/form-config/src/FormConfig.vue.js +6 -1
- package/es/components/form-config/src/FormConfig.vue2.js +245 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.js +6 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue2.js +105 -1
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +6 -1
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +60 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +28 -8
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +6 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +199 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +7 -2
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.js +6 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +625 -1
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +63 -1
- package/es/components/form-config/src/components/index.js +6 -1
- package/es/components/form-config/src/components/renderer/CloseButton.vue.js +6 -1
- package/es/components/form-config/src/components/renderer/CloseButton.vue2.js +46 -1
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +6 -1
- package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +62 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +6 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +80 -1
- package/es/components/form-config/src/components/renderer/index.js +3 -1
- package/es/components/form-config/src/constants/index.js +198 -1
- package/es/components/form-config/src/hooks/index.js +3 -1
- package/es/components/form-config/src/hooks/useConfigurationField.js +123 -1
- package/es/components/form-config/src/hooks/useDataNormalize.js +53 -1
- package/es/components/form-config/src/hooks/useLocale.js +62 -1
- package/es/components/form-config/src/hooks/usePresetRenderer.js +36 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +100 -1
- package/es/components/form-config/src/utils/index.js +52 -1
- package/es/components/form-render/index.js +39 -1
- package/es/components/form-render/src/FormRender.vue.js +6 -1
- package/es/components/form-render/src/FormRender.vue2.js +507 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.js +6 -1
- package/es/components/form-render/src/FormRenderWrapper.vue2.js +44 -1
- package/es/components/form-render/src/components/renderer/combination/combination.js +102 -1
- package/es/components/form-render/src/components/renderer/combination/hooks/index.js +2 -1
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +82 -1
- package/es/components/form-render/src/components/renderer/combination/hooks/useDeepValidate.js +34 -1
- package/es/components/form-render/src/components/renderer/combination/index.js +3 -1
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +190 -1
- package/es/components/form-render/src/components/renderer/combination/tableCombination.js +160 -1
- package/es/components/form-render/src/components/renderer/complex.js +46 -1
- package/es/components/form-render/src/components/renderer/date.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/date.js +210 -1
- package/es/components/form-render/src/components/renderer/formItem.js +370 -1
- package/es/components/form-render/src/components/renderer/index.js +45 -1
- package/es/components/form-render/src/components/renderer/input.js +87 -1
- package/es/components/form-render/src/components/renderer/inputGroup.js +13 -1
- package/es/components/form-render/src/components/renderer/inputNumber.js +105 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +9 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +154 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +6 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +131 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.js +11 -1
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +246 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.js +227 -1
- package/es/components/form-render/src/components/renderer/searchCascade.js +323 -1
- package/es/components/form-render/src/components/renderer/select.js +395 -1
- package/es/components/form-render/src/components/renderer/simpleComponent.js +54 -1
- package/es/components/form-render/src/components/renderer/slider.js +38 -1
- package/es/components/form-render/src/components/renderer/switch.js +113 -1
- package/es/components/form-render/src/components/renderer/text.js +112 -1
- package/es/components/form-render/src/components/renderer/textarea.js +65 -1
- package/es/components/form-render/src/components/renderer/time.js +27 -1
- package/es/components/form-render/src/components/tooltipMessage.vue.js +6 -1
- package/es/components/form-render/src/components/tooltipMessage.vue2.js +44 -1
- package/es/components/form-render/src/constants/index.js +47 -1
- package/es/components/form-render/src/hooks/index.js +25 -1
- package/es/components/form-render/src/hooks/useAnchor.js +108 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.js +137 -1
- package/es/components/form-render/src/hooks/useChangeContext.js +22 -1
- package/es/components/form-render/src/hooks/useCommonInjection.js +58 -1
- package/es/components/form-render/src/hooks/useCommonLog.js +12 -1
- package/es/components/form-render/src/hooks/useComplexOptions.js +189 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +416 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.js +253 -1
- package/es/components/form-render/src/hooks/useFieldVisitor.js +60 -1
- package/es/components/form-render/src/hooks/useFormContext.js +83 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +281 -1
- package/es/components/form-render/src/hooks/useFormField.js +14 -1
- package/es/components/form-render/src/hooks/useFormGraph.js +18 -1
- package/es/components/form-render/src/hooks/useFormItemDeps.js +54 -1
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +12 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +400 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +151 -1
- package/es/components/form-render/src/hooks/useLowCodeEvent.js +33 -1
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +86 -1
- package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +87 -1
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +39 -1
- package/es/components/form-render/src/hooks/useOperationalForm.js +55 -1
- package/es/components/form-render/src/hooks/usePresetScope.js +37 -1
- package/es/components/form-render/src/hooks/useSelectedSetting.js +27 -1
- package/es/components/form-render/src/hooks/useWordbookSetting.js +54 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +8 -3
- package/es/components/form-render/src/utils/business.js +208 -1
- package/es/components/form-render/src/utils/dom.js +45 -1
- package/es/components/form-render/src/utils/index.js +363 -1
- package/es/components/form-render/src/utils/schema.js +133 -1
- package/es/components/form-render/src/utils/valueFormatter.js +30 -1
- package/es/components/grid/index.js +11 -1
- package/es/components/grid/src/Grid.js +28 -1
- package/es/components/grid/src/hooks.js +18 -1
- package/es/components/guide/index.js +1 -1
- package/es/components/guide/src/renderer.d.ts +2 -2
- package/es/components/guide/src/renderer.js +155 -1
- package/es/components/guide/src/useGuide.js +210 -1
- package/es/components/guide/src/utils/index.js +285 -1
- package/es/components/iho-chat/index.d.ts +206 -4
- package/es/components/iho-chat/index.js +10 -1
- package/es/components/iho-chat/src/Index.vue.d.ts +206 -4
- package/es/components/iho-chat/src/Index.vue.js +6 -1
- package/es/components/iho-chat/src/Index.vue2.js +159 -1
- package/es/components/iho-chat/src/api/index.d.ts +1 -0
- package/es/components/iho-chat/src/api/index.js +176 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +8 -0
- package/es/components/iho-chat/src/components/ChatAdd.vue.js +6 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +682 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +11 -3
- package/es/components/iho-chat/src/components/ChatFile.vue.js +6 -1
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +266 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +7 -0
- package/es/components/iho-chat/src/components/ChatFooter.vue.js +6 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +640 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +96 -2
- package/es/components/iho-chat/src/components/ChatHeader.vue.js +6 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +231 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +77 -0
- package/es/components/iho-chat/src/components/ChatMain.vue.js +6 -1
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +635 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +71 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.js +6 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +441 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +8 -2
- package/es/components/iho-chat/src/components/ChatSearch.vue.js +6 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +431 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +10 -0
- package/es/components/iho-chat/src/components/ChatSet.vue.js +6 -1
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +433 -1
- package/es/components/iho-chat/src/components/ContextMenu.js +244 -1
- package/es/components/iho-chat/src/components/MessageEvent.vue.js +6 -1
- package/es/components/iho-chat/src/components/MessageEvent.vue2.js +146 -1
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.d.ts +70 -1
- package/es/components/iho-chat/src/components/MessageMergeForward.vue.js +6 -1
- package/es/components/iho-chat/src/components/MessageMergeForward.vue2.js +154 -1
- package/es/components/iho-chat/src/components/MessageTemplate.vue.js +6 -1
- package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +201 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +7 -0
- package/es/components/iho-chat/src/components/MultipleVideo.vue.js +6 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +421 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +3 -0
- package/es/components/iho-chat/src/components/PersonProfile.vue.js +6 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +228 -1
- package/es/components/iho-chat/src/components/SelectLabel.vue.js +6 -1
- package/es/components/iho-chat/src/components/SelectLabel.vue2.js +128 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +3 -1
- package/es/components/iho-chat/src/components/SiderList.vue.js +6 -1
- package/es/components/iho-chat/src/components/SiderList.vue2.js +340 -1
- package/es/components/iho-chat/src/components/Video.vue.js +6 -1
- package/es/components/iho-chat/src/components/Video.vue2.js +303 -1
- package/es/components/iho-chat/src/components/userItemRender.js +58 -1
- package/es/components/iho-chat/src/constants/index.d.ts +9 -2
- package/es/components/iho-chat/src/constants/index.js +51 -1
- package/es/components/iho-chat/src/hooks/index.js +3 -1
- package/es/components/iho-chat/src/hooks/useData.js +403 -1
- package/es/components/iho-chat/src/hooks/useSearchPatientList.d.ts +11 -0
- package/es/components/iho-chat/src/hooks/useSearchPatientList.js +82 -0
- package/es/components/iho-chat/src/hooks/useSearchUserList.js +82 -1
- package/es/components/iho-chat/src/hooks/useVideo.js +110 -1
- package/es/components/iho-chat/src/hooks/useWebSocket.js +220 -1
- package/es/components/iho-chat/src/utils/asyncQueue.js +36 -1
- package/es/components/iho-chat/src/utils/chatSock.js +82 -1
- package/es/components/iho-chat/src/utils/emoji.js +14 -1
- package/es/components/iho-chat/src/utils/index.d.ts +6 -0
- package/es/components/iho-chat/src/utils/index.js +259 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +3 -0
- package/es/components/iho-table/index.js +73 -1
- package/es/components/iho-table/src/IhoTable.vue.js +6 -1
- package/es/components/iho-table/src/IhoTable.vue2.js +368 -1
- package/es/components/iho-table/src/constants/index.js +97 -1
- package/es/components/iho-table/src/hooks/export.js +2 -1
- package/es/components/iho-table/src/hooks/index.js +2 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.js +167 -1
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +45 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +31 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +29 -1
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +118 -1
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +28 -1
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +31 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +28 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +172 -1
- package/es/components/iho-table/src/hooks/useTableContext.js +25 -1
- package/es/components/iho-table/src/hooks/useTablePlugin.js +32 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/index.js +19 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +54 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +96 -1
- package/es/components/iho-table/src/plugins/bindEventSettingPlugin.js +38 -1
- package/es/components/iho-table/src/plugins/colorAndIconPlugin.js +48 -1
- package/es/components/iho-table/src/plugins/copyPastePlugin.js +117 -1
- package/es/components/iho-table/src/plugins/crossHeaderPlugin.js +143 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin.js +79 -1
- package/es/components/iho-table/src/plugins/defaultValuePlugin.js +49 -1
- package/es/components/iho-table/src/plugins/dragScrollPlugin.js +99 -1
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue.js +6 -1
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +324 -1
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/index.js +60 -1
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/treeFilter.vue.js +10 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.js +6 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +46 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +75 -1
- package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/index.js +49 -1
- package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue.js +6 -1
- package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue2.js +119 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +6 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +303 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +189 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.js +6 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +91 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/index.js +78 -1
- package/es/components/iho-table/src/plugins/filterVisibleEventPlugin.js +35 -1
- package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.js +111 -1
- package/es/components/iho-table/src/plugins/headerPlugin/index.d.ts +1 -1
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +115 -1
- package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue.js +6 -1
- package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue2.js +40 -1
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +56 -1
- package/es/components/iho-table/src/plugins/index.d.ts +79 -3
- package/es/components/iho-table/src/plugins/index.js +81 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin.js +73 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +118 -1
- package/es/components/iho-table/src/plugins/maxCheckSizePlugin.js +36 -1
- package/es/components/iho-table/src/plugins/operationalFormPlugin.js +57 -1
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/index.js +115 -1
- package/es/components/iho-table/src/plugins/pagerScrollPlugin/utils.js +56 -1
- package/es/components/iho-table/src/plugins/pluginHooks/index.js +1 -1
- package/es/components/iho-table/src/plugins/pluginHooks/useFilter.js +38 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +6 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +207 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +94 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +35 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.js +20 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +107 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +89 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.js +6 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue2.js +117 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +102 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/radioRendererPlugin.js +70 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +338 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +268 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +21 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +6 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue2.js +125 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +321 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +52 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/switchRendererPlugin.js +92 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +6 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +233 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +88 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +107 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +49 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +60 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/htmlRendererPlugin.js +48 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +56 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +92 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +69 -1
- package/es/components/iho-table/src/plugins/rowClickPlugin.js +42 -1
- package/es/components/iho-table/src/plugins/rowDragPlugin.js +187 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +38 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +58 -1
- package/es/components/iho-table/src/plugins/stickyFixedPlugin.js +300 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin.js +446 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/index.js +80 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/constants.js +3 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/index.js +37 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useColumn2Data.js +33 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useCurrentColumn.js +52 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useData2Column.js +54 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useEditCell.js +96 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useEventConvert.js +46 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useExpose.js +18 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useHeaderCSS.js +45 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useHoverColumn.js +77 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useRowClassName.js +65 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useRowHeight.js +20 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/hooks/useTriggerRow.js +35 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/renderer.js +165 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +290 -1
- package/es/components/iho-table/src/plugins/virtualTreePlugin.js +133 -1
- package/es/components/iho-table/src/plugins/wordbookSettingPlugin.js +41 -1
- package/es/components/iho-table/src/types/index.js +1 -1
- package/es/components/iho-table/src/types/pluginType.js +16 -1
- package/es/components/iho-table/src/utils/index.js +347 -1
- package/es/components/iho-table/src/utils/separateMap.js +17 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -2
- package/es/components/index.js +226 -1
- package/es/components/info-header/index.js +10 -1
- package/es/components/info-header/src/InfoHeader.vue.js +6 -1
- package/es/components/info-header/src/InfoHeader.vue2.js +190 -1
- package/es/components/info-header/src/components/index.js +2 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +6 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +190 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +6 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue2.js +69 -1
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +6 -1
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue2.js +85 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +6 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue2.js +43 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.js +6 -1
- package/es/components/info-header/src/components/infoDescription/index.vue2.js +155 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.js +6 -1
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +248 -1
- package/es/components/info-header/src/constants/index.js +4 -1
- package/es/components/info-header/src/hooks/useThemeOverrides.js +52 -1
- package/es/components/keyboard/index.js +10 -1
- package/es/components/keyboard/src/Keyboard.vue.js +6 -1
- package/es/components/keyboard/src/Keyboard.vue2.js +203 -1
- package/es/components/keyboard/src/components/InputNumber.vue.js +6 -1
- package/es/components/keyboard/src/components/InputNumber.vue2.js +88 -1
- package/es/components/keyboard/src/components/NumberPanel.vue.js +6 -1
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +329 -1
- package/es/components/keyboard/src/constants/index.js +6 -1
- package/es/components/keyboard/src/utils/index.js +5 -1
- package/es/components/map/index.js +10 -1
- package/es/components/map/src/Map.vue.js +6 -1
- package/es/components/map/src/Map.vue2.js +360 -1
- package/es/components/picture-clipper/index.js +10 -1
- package/es/components/picture-clipper/src/PictureClipper.vue.js +6 -1
- package/es/components/picture-clipper/src/PictureClipper.vue2.js +232 -1
- package/es/components/quick-search/index.js +10 -1
- package/es/components/quick-search/src/index.vue.js +6 -1
- package/es/components/quick-search/src/index.vue2.js +526 -1
- package/es/components/recommend-search/index.js +10 -1
- package/es/components/recommend-search/src/RecommendSearch.vue.js +6 -1
- package/es/components/recommend-search/src/RecommendSearch.vue2.js +121 -1
- package/es/components/recommend-search/src/components/BaseSearch.js +173 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +6 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue2.js +162 -1
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +6 -1
- package/es/components/recommend-search/src/components/RecommendMenu.vue2.js +90 -1
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +6 -1
- package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +174 -1
- package/es/components/recommend-search/src/constant/index.js +9 -1
- package/es/components/scale-view/index.d.ts +14 -1
- package/es/components/scale-view/index.js +34 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +14 -1
- package/es/components/scale-view/src/ScaleView.vue.js +6 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +297 -1
- package/es/components/scale-view/src/components/AnswerParse.vue.js +6 -1
- package/es/components/scale-view/src/components/AnswerParse.vue2.js +82 -1
- package/es/components/scale-view/src/components/DescribeContent.vue.js +6 -1
- package/es/components/scale-view/src/components/DescribeContent.vue2.js +28 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +1 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +6 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +295 -1
- package/es/components/scale-view/src/components/EvaluatePage.vue.js +6 -1
- package/es/components/scale-view/src/components/EvaluatePage.vue2.js +139 -1
- package/es/components/scale-view/src/components/LoadingCom.vue.js +17 -1
- package/es/components/scale-view/src/components/NoData.vue.js +6 -1
- package/es/components/scale-view/src/components/NoData.vue2.js +74 -1
- package/es/components/scale-view/src/components/ScaleScore.js +63 -1
- package/es/components/scale-view/src/components/composables/choose-common.js +84 -1
- package/es/components/scale-view/src/components/formitem/address.js +3993 -1
- package/es/components/scale-view/src/components/formitem/r-address.js +226 -1
- package/es/components/scale-view/src/components/formitem/r-cascader.js +134 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +325 -1
- package/es/components/scale-view/src/components/formitem/r-collection.js +111 -1
- package/es/components/scale-view/src/components/formitem/r-datetime.js +303 -1
- package/es/components/scale-view/src/components/formitem/r-input.js +108 -1
- package/es/components/scale-view/src/components/formitem/r-map.js +108 -1
- package/es/components/scale-view/src/components/formitem/r-radio.js +291 -1
- package/es/components/scale-view/src/components/formitem/r-select.js +244 -1
- package/es/components/scale-view/src/components/formitem/r-sign.js +184 -1
- package/es/components/scale-view/src/components/formitem/r-upload.js +221 -1
- package/es/components/scale-view/src/components/formitem/sign-com.js +307 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.js +128 -1
- package/es/components/scale-view/src/directive/drag-move.js +135 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +483 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +548 -1
- package/es/components/scale-view/src/hooks/scaleview-methods.js +182 -1
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +4 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +120 -1
- package/es/components/scale-view/src/hooks/scaleview-state.js +42 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +300 -1
- package/es/components/scale-view/src/hooks/scaleview-validate.js +209 -1
- package/es/components/scale-view/src/hooks/use-component.js +86 -1
- package/es/components/scale-view/src/hooks/use-evaluate.js +143 -1
- package/es/components/scale-view/src/hooks/use-event.js +147 -1
- package/es/components/scale-view/src/hooks/use-noData.js +41 -1
- package/es/components/scale-view/src/utils/judge-types.js +67 -1
- package/es/components/search-cascader/index.js +10 -1
- package/es/components/search-cascader/src/SearchCascader.vue.js +6 -1
- package/es/components/search-cascader/src/SearchCascader.vue2.js +309 -1
- package/es/components/search-cascader/src/components/ClearIcon.vue.js +32 -1
- package/es/components/search-cascader/src/components/SearchMenu.js +320 -1
- package/es/components/search-cascader/src/components/index.js +1 -1
- package/es/components/search-cascader/src/constants/index.js +6 -1
- package/es/components/search-cascader/src/utils/index.js +11 -1
- package/es/components/select-label/index.js +15 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +6 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +450 -1
- package/es/components/select-label/src/SelectLabel.vue.js +6 -1
- package/es/components/select-label/src/SelectLabel.vue2.js +473 -1
- package/es/components/select-label/src/components/label-classify.vue.js +6 -1
- package/es/components/select-label/src/components/label-classify.vue2.js +150 -1
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue.js +6 -1
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +146 -1
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue.js +6 -1
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +214 -1
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue.js +6 -1
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +106 -1
- package/es/components/select-label/src/index.vue.js +6 -1
- package/es/components/select-label/src/index.vue2.js +104 -1
- package/es/components/select-person/index.js +10 -1
- package/es/components/select-person/src/SelectPerson.vue.js +6 -1
- package/es/components/select-person/src/SelectPerson.vue2.js +857 -1
- package/es/components/select-person/src/SelectPersonType.vue.js +6 -1
- package/es/components/select-person/src/SelectPersonType.vue2.js +532 -1
- package/es/components/select-person/src/components/SearchMultiple.vue.js +6 -1
- package/es/components/select-person/src/components/SearchMultiple.vue2.js +196 -1
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue.js +6 -1
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +269 -1
- package/es/components/select-person/src/constants/index.js +3 -1
- package/es/components/select-person/src/index.vue.js +6 -1
- package/es/components/select-person/src/index.vue2.js +146 -1
- package/es/components/select-person/src/types/enums.js +15 -1
- package/es/components/select-person/src/utils/index.js +113 -1
- package/es/components/shortcut-provider/index.js +12 -1
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +6 -1
- package/es/components/shortcut-provider/src/ShortcutProvider.vue2.js +52 -1
- package/es/components/shortcut-provider/src/constants/index.js +8 -1
- package/es/components/shortcut-provider/src/hooks/index.js +2 -1
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +15 -1
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +213 -1
- package/es/components/shortcut-provider/src/utils/index.js +108 -1
- package/es/components/shortcut-setter/index.d.ts +7 -2
- package/es/components/shortcut-setter/index.js +10 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +7 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +6 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +127 -1
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +6 -1
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue2.js +105 -1
- package/es/components/slider-tree/index.js +11 -1
- package/es/components/slider-tree/src/hooks/useAsyncData.js +35 -1
- package/es/components/slider-tree/src/index.vue.js +6 -1
- package/es/components/slider-tree/src/index.vue2.js +253 -1
- package/es/components/slider-tree/src/utils/index.js +10 -1
- package/es/components/slider-tree/src/utils/tool.js +12 -1
- package/es/components/step-notice/index.js +10 -1
- package/es/components/step-notice/src/StepNotice.vue.js +6 -1
- package/es/components/step-notice/src/StepNotice.vue2.js +113 -1
- package/es/components/step-notice/src/components/NoticeConnection.vue.js +6 -1
- package/es/components/step-notice/src/components/NoticeConnection.vue2.js +94 -1
- package/es/components/step-notice/src/components/NoticeItem.vue.js +6 -1
- package/es/components/step-notice/src/components/NoticeItem.vue2.js +112 -1
- package/es/components/step-notice/src/components/NoticeItemAside.vue.js +6 -1
- package/es/components/step-notice/src/components/NoticeItemAside.vue2.js +71 -1
- package/es/components/step-notice/src/components/NoticeOperationList.vue.js +6 -1
- package/es/components/step-notice/src/components/NoticeOperationList.vue2.js +57 -1
- package/es/components/step-notice/src/hooks/useTheme.js +31 -1
- package/es/components/step-notice/src/utils.js +10 -1
- package/es/components/steps-wheel/index.d.ts +18 -0
- package/es/components/steps-wheel/index.js +10 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +18 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.js +6 -1
- package/es/components/steps-wheel/src/StepsWheel.vue2.js +514 -1
- package/es/components/steps-wheel/src/constants/index.js +7 -1
- package/es/components/table-export-field/index.js +10 -1
- package/es/components/table-export-field/src/components/ExportModal.vue.js +6 -1
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +374 -1
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +6 -1
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +249 -1
- package/es/components/table-export-field/src/constants/index.js +3 -1
- package/es/components/table-export-field/src/hooks/useAsyncData.js +35 -1
- package/es/components/table-export-field/src/index.vue.js +6 -1
- package/es/components/table-export-field/src/index.vue2.js +178 -1
- package/es/components/table-export-field/src/tool.js +12 -1
- package/es/components/table-filter/index.js +2 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.js +6 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +98 -1
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.js +6 -1
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue2.js +63 -1
- package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue.js +6 -1
- package/es/components/table-filter/src/components/bi-filter/components/InputFilter.vue2.js +43 -1
- package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue.js +6 -1
- package/es/components/table-filter/src/components/bi-filter/components/InputNumber.vue2.js +38 -1
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.js +6 -1
- package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue2.js +60 -1
- package/es/components/table-filter/src/components/bi-filter/components/index.js +8 -1
- package/es/components/table-filter/src/components/bi-filter/helpers/options.js +166 -1
- package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.js +155 -1
- package/es/components/table-filter/src/components/bi-filter/index.vue.js +6 -1
- package/es/components/table-filter/src/components/bi-filter/index.vue2.js +385 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +119 -1
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +127 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +230 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +83 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputNumber.vue2.js +35 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +84 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +302 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +64 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +127 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectTreeDynamic.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectTreeDynamic.vue2.js +137 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.js +13 -1
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +12 -1
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +82 -1
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +88 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +6 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +368 -1
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue2.js +60 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +157 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +119 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +76 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +210 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +125 -1
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +70 -1
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +86 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +195 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +121 -1
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +78 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +327 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +213 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectTree.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectTree.vue2.js +52 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectTreeDynamic.vue.js +6 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectTreeDynamic.vue2.js +138 -1
- package/es/components/table-filter/src/components/render-widget/components/index.js +17 -1
- package/es/components/table-filter/src/components/render-widget/enums.js +47 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +160 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +519 -1
- package/es/components/table-filter/src/components/render-widget/helpers/enums.js +58 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +156 -1
- package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +9 -1
- package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.js +75 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +172 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +495 -1
- package/es/components/table-filter/src/constants/index.js +6 -1
- package/es/components/table-filter/src/directive/resize.js +13 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +230 -1
- package/es/components/table-filter/src/hooks/useAsyncData.js +31 -1
- package/es/components/table-filter/src/hooks/useMixins.js +41 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +132 -1
- package/es/components/table-filter/src/tool/baseOptions.js +60 -1
- package/es/components/table-filter/src/tool/resizeSensor.js +123 -1
- package/es/components/table-filter/src/tool/transformData.js +168 -1
- package/es/components/table-filter/src/types/enums.js +85 -1
- package/es/components/time-line/index.js +10 -1
- package/es/components/time-line/src/TimeLine.vue.js +6 -1
- package/es/components/time-line/src/TimeLine.vue2.js +64 -1
- package/es/components/time-picker/index.js +10 -1
- package/es/components/time-picker/src/TimePicker.vue.js +6 -1
- package/es/components/time-picker/src/TimePicker.vue2.js +59 -1
- package/es/components/tooth-bitmap/index.js +10 -1
- package/es/components/tooth-bitmap/src/ToothBitmap.vue.js +6 -1
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +190 -1
- package/es/components/vod-chunk-upload/index.js +14 -1
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +6 -1
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +485 -1
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +74 -1
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +122 -1
- package/es/components/vod-chunk-upload/src/hooks/vod-computed.js +98 -1
- package/es/components/vod-chunk-upload/src/hooks/vod-data.js +28 -1
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +2 -1
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +6 -1
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +349 -1
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +100 -1
- package/es/shared/assets/img/ai__avatar.png.js +3 -1
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +3 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +3 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +3 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +3 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +3 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +3 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +3 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +3 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +3 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +3 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +3 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +3 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +3 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +3 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +3 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +3 -1
- package/es/shared/assets/img/emoji/emoji.png.js +678 -1
- package/es/shared/assets/img/failure.png.js +3 -1
- package/es/shared/assets/img/file-emr.png.js +3 -0
- package/es/shared/assets/img/file.png.js +3 -0
- package/es/shared/assets/img/logo.png.js +3 -1
- package/es/shared/assets/img/no-permission.png.js +3 -1
- package/es/shared/assets/img/nodata.png.js +3 -1
- package/es/shared/assets/img/notfound.png.js +3 -1
- package/es/shared/assets/img/qr.png.js +3 -1
- package/es/shared/assets/img/success.png.js +3 -1
- package/es/shared/assets/img/table_style_1.png.js +3 -1
- package/es/shared/assets/img/table_style_2.png.js +3 -1
- package/es/shared/assets/img/table_style_3.png.js +3 -1
- package/es/shared/assets/img/table_style_4.png.js +3 -1
- package/es/shared/assets/img/tooth/tooth.png.js +38 -1
- package/es/shared/assets/img/use.png.js +3 -0
- package/es/shared/assets/img/video.png.js +3 -1
- package/es/shared/assets/img/video_default_cover.png.js +3 -1
- package/es/shared/assets/img/xb_big.png.js +3 -1
- package/es/shared/assets/img/xb_small.png.js +3 -1
- package/es/shared/components/ArrowIcon/ArrowIcon.vue.js +22 -1
- package/es/shared/components/ArrowIcon/index.js +2 -1
- package/es/shared/components/CancelRadio/CancelRadio.js +41 -1
- package/es/shared/components/CancelRadio/index.js +2 -1
- package/es/shared/components/DateIcon/DateIcon.vue.js +29 -1
- package/es/shared/components/DateIcon/index.js +2 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +161 -1
- package/es/shared/components/InputNumberSlash/index.js +2 -1
- package/es/shared/components/JSONTree/JSONTree.vue.js +6 -1
- package/es/shared/components/JSONTree/JSONTree.vue2.js +44 -1
- package/es/shared/components/JSONTree/index.js +2 -1
- package/es/shared/components/SelectPage/SelectPage.vue.js +6 -1
- package/es/shared/components/SelectPage/SelectPage.vue2.js +59 -1
- package/es/shared/components/SelectPage/index.js +2 -1
- package/es/shared/components/SlotRender/SlotRender.js +35 -1
- package/es/shared/components/SlotRender/index.js +2 -1
- package/es/shared/components/SvgIcon/SvgIcon.vue.js +6 -1
- package/es/shared/components/SvgIcon/SvgIcon.vue2.js +34 -1
- package/es/shared/components/SvgIcon/index.js +2 -1
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +6 -1
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue2.js +76 -1
- package/es/shared/components/TextOverTooltip/index.js +2 -1
- package/es/shared/components/VueDraggable/index.js +2 -1
- package/es/shared/components/VueDraggable/src/core/componentBuilderHelper.js +35 -1
- package/es/shared/components/VueDraggable/src/core/componentStructure.js +54 -1
- package/es/shared/components/VueDraggable/src/core/renderHelper.js +47 -1
- package/es/shared/components/VueDraggable/src/core/sortableEvents.js +14 -1
- package/es/shared/components/VueDraggable/src/util/console.js +9 -1
- package/es/shared/components/VueDraggable/src/util/htmlHelper.js +11 -1
- package/es/shared/components/VueDraggable/src/util/string.js +11 -1
- package/es/shared/components/VueDraggable/src/util/tags.js +130 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.js +265 -1
- package/es/shared/components/no-data/NoData.vue.js +6 -1
- package/es/shared/components/no-data/NoData.vue2.js +99 -1
- package/es/shared/components/no-data/index.js +2 -1
- package/es/shared/components/player-vod/player.js +121 -1
- package/es/shared/components/player-vod/video-modal.js +91 -1
- package/es/shared/directive/flexibleResize.js +167 -1
- package/es/shared/directive/index.js +1 -1
- package/es/shared/global/variable.js +3 -1
- package/es/shared/hooks/index.js +12 -1
- package/es/shared/hooks/selectHooks/index.js +5 -1
- package/es/shared/hooks/selectHooks/useMenuWidthAuto.js +30 -1
- package/es/shared/hooks/selectHooks/useOptionFiltered.js +33 -1
- package/es/shared/hooks/selectHooks/useSearchContent.js +50 -1
- package/es/shared/hooks/selectHooks/useSelectAllowModify.js +84 -1
- package/es/shared/hooks/selectHooks/useSelectRenders.js +106 -1
- package/es/shared/hooks/useAsyncQueue/index.js +127 -1
- package/es/shared/hooks/useDateTime.js +231 -1
- package/es/shared/hooks/useFormRequest/index.js +164 -1
- package/es/shared/hooks/useLevelSearchCascader.d.ts +1 -0
- package/es/shared/hooks/useLevelSearchCascader.js +309 -1
- package/es/shared/hooks/useScrollLoading.js +22 -1
- package/es/shared/hooks/useTheme.js +29 -1
- package/es/shared/hooks/useVersion.js +9 -1
- package/es/shared/package.json.js +26 -1
- package/es/shared/utils/anime.js +136 -1
- package/es/shared/utils/business.js +233 -1
- package/es/shared/utils/fabricjs/index.js +15624 -1
- package/es/shared/utils/index.js +320 -1
- package/es/shared/utils/loadViewer.js +11 -1
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +63 -1
- package/es/shared/utils/tapable/AsyncParallelHook.js +27 -1
- package/es/shared/utils/tapable/AsyncSeriesBailHook.js +18 -1
- package/es/shared/utils/tapable/AsyncSeriesHook.js +27 -1
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +12 -1
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +22 -1
- package/es/shared/utils/tapable/Hook.js +140 -1
- package/es/shared/utils/tapable/HookCodeFactory.js +456 -1
- package/es/shared/utils/tapable/SyncBailHook.js +19 -1
- package/es/shared/utils/tapable/SyncHook.js +34 -1
- package/es/shared/utils/tapable/SyncLoopHook.js +13 -1
- package/es/shared/utils/tapable/SyncWaterfallHook.js +47 -1
- package/es/shared/utils/utilExpand.js +770 -1
- package/es/shared/utils/vexutils.js +60 -1
- package/es/shared/utils/vexutilsExpand.js +774 -1
- package/package.json +78 -76
- package/es/components/audio-sdk/src/components/form.vue.js +0 -1
- package/es/components/audio-sdk/src/components/form.vue2.js +0 -1
@@ -1 +1,1027 @@
|
|
1
|
-
import{fabric as t}from"../../../../../shared/utils/fabricjs/index.js";import{drawPoint as e,drawText as i,drawLine as o,defaultLineStyle as n}from"../useDraw.js";import{useBirthProcessCumputedPoint as r}from"../useCumputedPoint.js";import{bus as a}from"../useEvent.js";import{useShadow as l}from"../useShadow.js";import{useCommon as s}from"../useCommon.js";import"vue";import{getIndex as c}from"../../utils/index.js";import{filter as d,cloneDeep as u,omit as f,flatten as h,isNumber as g,pick as m}from"lodash-es";import{format as p}from"date-fns";import{OTHER_MENU as v}from"../../constants/index.js";import"@vueuse/shared";import"naive-ui";import"./useTop.js";import"@vueuse/core";import"../../../../../shared/utils/index.js";const x=d(v,(t=>"add"!==t.type));function y(d,v,y,k,C,w,X,b,E){const{computedX:A,getXValue:L}=r(v),{getEqualXTypes:j,handleAddPrevent:P,isGridLimit:S,getPointEventProps:z}=s(d,y,v),{createShadowLines:I}=l(),{canvasWidth:M,other:T,yCellHeight:H,xCellWidth:O,endX:$,originX:B,originY:W,endY:Y,markHeight:D,event:_,topGridYCellHeight:V,extracorporealCirculationHeight:G}=v,K=new Map,R=u(T);let q=[],F=null;function J(){var o;if(!(null==(o=null==R?void 0:R.horizontal)?void 0:o.length))return;const n="horizontal";K.set(n,[]);const{horizontal:r}=R;let a=W+H/2;r.forEach(((o,r)=>{const{title:l,type:s,pointAttr:c={},textStyle:d={},data:u,showIcon:f=!0}=o;let h=null;u.forEach(((o,u)=>{const{time:g,value:m}=o,p=A(g);if(!ot(p))return;const v=[],x=f&&e(s,{...c,left:p,top:a});x&&v.push(x);const y=f?p+x.width/2+2:p,k=i([y,a],{value:m,...d,originX:"left"});v.push(k);const C=new t.Group(v,{lockMovementY:!0,objectCaching:!1,hasControls:!1,hasBorders:!1,hoverCursor:"pointer",...z()});Object.assign(C,{originLeft:p,iconHalfWidth:x?x.width/2:0,origin:{type:"other",key:n,dataIndex:r,index:u,data:o,title:l},limitX:{x1:B,x2:$-C.width}}),h&&(C.limitX.x1=h.left,h.limitX.x2=C.left,C.prevPoint=h,h.nextPoint=C),h=C,tt(C),K.get(n).push(C)})),a+=H})),d.value.add(...K.get(n))}function N(){var t;if(!(null==(t=null==R?void 0:R.vertical)?void 0:t.length))return;const i="vertical";K.set(i,[]);const{vertical:o}=R;o.forEach(((t,o)=>{const{show:n=!0,marginTop:r=0,textStyle:a={},data:l,time:s}=t,c=A(s);if(!n||!ot(c))return;const{lineHeight:d=H}=a;let u=W+r+d/2;l.forEach(((t,n)=>{const r=e(String(t.value),{...a,lockMovementY:!0,left:c,originX:"left",top:u,origin:{type:"other",key:i,dataIndex:o,index:n,data:t},...z()});u+=d,tt(r),K.get(i).push(r)}));const f=K.get(i).filter((t=>t.origin.dataIndex===o)),h=Math.max(...f.map((t=>t.width))),g=c>$-h;f.forEach(((t,e,i)=>{t.siblingPoints=i.filter((e=>e.origin.index!==t.origin.index)),t.maxTextWidth=h,g&&t.set("originX","right")}))})),d.value.add(...K.get(i))}function Q(t,e="add"){const{dataIndex:i,data:o,index:n,key:r,dataKey:a,time:l}=t,s=R[r],d=["mark","extracorporealCirculation"].includes(r)?s.dataList[i]:s[i];switch(e){case"remove":d.data.splice(n,1);break;case"change":if("mark"===r){d.list.splice(n,1);const t=s.dataList.find((t=>t.time===l));t?t.list.push(o):(s.dataList.push({time:l,list:[o]}),s.dataList.sort(((t,e)=>Date.parse(t.time)-Date.parse(e.time))))}else"extracorporealCirculation"===r?d[a]=o:d.data[n]=o;break;default:{const t=Array.isArray(o)?o[0].time:o.time,e=c(t,d.data),i=Array.isArray(o)?o:[o];d.data.splice(e,0,...i);break}}U(t)}function U(t){var e;const{key:i}=t;switch(null==(e=d.value)||e.remove(...K.get(i)),K.delete(i),i){case"horizontal":J();break;case"vertical":N();break;case"mark":Z();break;case"extracorporealCirculation":rt()}}function Z(){if(!D)return;const{title:t,titleStyle:o,pointAttr:n,dataList:r}=R.mark||{};if(!(null==r?void 0:r.length))return;const a="mark";K.set(a,[]);const l=i([B-5,Y+D/2],{value:t,...o,originX:"right"});d.value.add(l);const s=Y+D+G,c=Y+G;let u=0;const f={};r.forEach(((t,i)=>{const{time:o,list:r=[]}=t,l=A(o);if(!ot(l))return;let h=c+1;r.forEach(((t,o)=>{var r;const{style:g}=t,m=e((null==g?void 0:g.type)||"circleAndText",{...(null==g?void 0:g.pointAttr)||n,...t.text?{text:t.text}:{},left:l,top:c+10,origin:{data:t,key:"mark",type:"other",dataIndex:i,index:o}}),p=m.height;u&&l-u<=O&&(null==(r=f[`x_${u}`])||r.forEach((([t,e])=>{h+p>=s&&(h=Y-1),t<e&&h>=t&&h<e&&(h=e),t>e&&h>e&&h<=t&&(h=e)})));const{topObj:v,startTop:x,oldStartTop:y}=function(t,e){const i={};let o;if(t>Y){const r=t+e;i.y2=t+e/2,r>=s?n(Y-1):(o=t,t=r)}else n(t);function n(n){o=n,i.y2=n-e/2;t=n-e}return{topObj:i,startTop:t,oldStartTop:o}}(h,p);h=x,f[`x_${l}`]||(f[`x_${l}`]=[]),f[`x_${l}`].push([y,h]),m.set("top",v.y2),K.get(a).push(m),tt(m),d.value.add(m)})),u=l})),function(t){const e=t=>{var e,i;return null==(i=null==(e=t.origin)?void 0:e.data)?void 0:i.isStart},i=t.find((t=>e(t))),o=t.find((t=>!e(t)&&t.left>i.left)),n=t.filter((t=>!e(t)));t.forEach((t=>{const r={x1:B,x2:$};e(t)?(r.x2=o.left,t.otherPoints=n):(r.x1=i.left,t.startPoint=i),t.limitX=r}))}(K.get(a))}function tt(t){if(_.hovered&&(t.on("mouseover",(()=>{et(t)})),t.on("mouseout",(()=>{k.show=!1}))),t.lockMovementX&&t.lockMovementY)return;const{key:e}=t.origin,i=["mark","horizontal"].includes(e),o=["mark","vertical"].includes(e),n=["mark","extracorporealCirculation"].includes(e),r="extracorporealCirculation"===e;t.on("moving",(()=>{t.moving=!0,i?function(t){const e=t.origin.key,i="horizontal"===e;t.setCoords(),t.left<t.limitX.x1&&t.set("left",t.limitX.x1+(i?1:0));t.left>t.limitX.x2&&t.set("left",t.limitX.x2+(i?-1:0));if("mark"===e){t.top<W&&t.set("top",W);const e=Y+G+D-t.height/2;t.top>e&&t.set("top",e)}i&&(t.originLeft=t.left+t.iconHalfWidth)}(t):r?function(t){t.setCoords();const{left:e,limitX:i}=t,o=p(new Date,"yyyy-MM-dd HH:mm"),n=A(o);i.isCurrentTime&&i.x2<n&&n>0&&n<M&&(i.x2=n);e<i.x1&&t.set({x1:i.x1,x2:i.x1});e>i.x2&&t.set({x1:i.x2,x2:i.x2});it(t,"left"),it(t,"right")}(t):(w(t),function(t){const e=t.left+t.maxTextWidth>$?"right":"left";t.setCoords().set({originX:e}),t.siblingPoints.forEach((i=>i.setCoords().set({originX:e,left:t.left})))}(t)),_.hovered&&et(t)})),t.on("mouseup",(r=>{var a;if(k.show=!1,1===r.button){if(!t.moving)return;t.moving=!1,i&&function(t){var e,i;if("mark"===t.origin.key){if((null==(i=null==(e=t.origin)?void 0:e.data)?void 0:i.isStart)&&t.otherPoints)t.otherPoints.forEach((e=>{e.limitX.x1=t.left}));else{const e=t.startPoint.otherPoints.map((t=>t.left)),i=Math.min(...e);t.startPoint.limitX.x2=i}return}t.prevPoint&&(t.prevPoint.limitX.x2=t.left);t.nextPoint&&(t.nextPoint.limitX.x1=t.left)}(t);const e=L(null!=(a=t.originLeft)?a:t.left),r={...t.origin,...o?{time:e}:{data:{...t.origin.data,time:e}}};d.value.discardActiveObject(),y("change",r),n&&Q(r,"change")}3===r.button&&["horizontal","vertical"].includes(e)&&(C.point={x:t.left,y:t.top},C.show=!0,C.target=t,C.list=x.map((t=>({...t,renderItem:()=>t.label,_type:"other"}))))}))}function et(t){k.isTarget=!0,k.show=!0;const{key:e,data:i={}}=t.origin||{};let o=i.value;const n="extracorporealCirculation"===e||"mark"===e;k.point={x:t.left,y:n?t.top:t.top+V/2};const r=!t.origin.isMenu&&t.originLeft?t.originLeft:t.left,a=L(r);k.list=[`时间 ${a.slice(-5)}`],n&&("mark"===e&&(o=i.name),k.list.unshift(o+" ")),k.sourceData=[{type:"other",key:e,time:a,value:o}]}function it(t,e){const{shadowObjs:i,params:o}=t[`${e}ShadowBox`]||{};if(!i||!o)return;i.forEach((t=>d.value.remove(t)));o["left"===e?1:0]=t.left;const n=nt(...o);t[`${e}ShadowBox`]={shadowObjs:n,params:o}}function ot(t){return t>=B&&t<=$}function nt(...e){const[i,o,r,a]=e,{mode:l,style:s}=a,c=f(s,["angle","space"]),u=[[i,Y],[o,Y],[o,r],[i,r]],h=new t.Polygon(u.map((t=>({x:t[0],y:t[1]}))),{...n,...c,stroke:"transparent",..."slash"===l?{fill:"transparent"}:{}}),g=[];return["slash"].includes(l)&&g.push(...I(u,s.angle,s.space,c)),d.value.add(h,...g),K.get("extracorporealCirculation").push(h,...g),[h,...g]}function rt(){if(!G)return;const{dataList:e,ascendAortaStyle:i,extracorporealCirculationStyle:o}=R.extracorporealCirculation||{};if(!(null==e?void 0:e.length))return;const n="extracorporealCirculation";K.set(n,[]);const r=Y+G;let a,l;function s(t){return t&&t>B&&t<M}function c(t){return void 0===t||""===t}e.forEach(((u,f)=>{const h=function(t){const{extracorporealCirculationStart:e,closeAscendAorta:i,openAscendAorta:o,extracorporealCirculationEnd:n}=t;let r,a,l,s;return e&&(r=A(e.time)),i&&(a=A(i.time)),o&&(l=A(o.time)),n&&(s=A(n.time)),[r,a,l,s]}(u);if(-1===h.findIndex((t=>t>0&&t<M)))return;let g;h.forEach(((m,v)=>{if(c(m))return;const x=h[v+1],y=h[v-1];if(s(m)||s(x)){const k=s(m)?m:B,C=s(x)?x:c(x)?null:$,w=s(y)?y:B,X={};if(v<h.length-1&&C&&(X.params=[k,C,r,[0,2].includes(v)?o:i],X.shadowObjs=nt(...X.params)),s(m)){const i=function(t){switch(t){case 0:return"extracorporealCirculationStart";case 1:return"closeAscendAorta";case 2:return"openAscendAorta";case 3:return"extracorporealCirculationEnd"}}(v),o=p(new Date,"yyyy-MM-dd HH:mm"),c=A(o),x=m<c&&s(c)?c:m,y=function(e,i){const o=new t.Line(e,{...i,stroke:"transparent",strokeWidth:5,hasControls:!1,hasBorders:!1,hoverCursor:"e-resize",lockMovementY:!0,originX:"center"});return tt(o),d.value.add(o),K.get("extracorporealCirculation").push(o),o}([m,Y,m,r],{origin:{dataIndex:f,dataKey:i,key:n,data:u[i],type:"other"},limitX:{x1:0===v?null!=a?a:B:w,x2:C||x,isCurrentTime:!C&&f===e.length-1},...[1,2,3].includes(v)?{leftShadowBox:g}:{},...[0,1,2].includes(v)?{rightShadowBox:X}:{}});v===h.length-1&&(a=m,l=y),0===v&&l&&(l.limitX.x2=k)}g=X}}))}))}function at(t){const{code:e}=t;F&&(e.includes("Enter")||e.includes("Esc"))&&(e.includes("Esc")&&(F.text=""),F.exitEditing(),d.value.discardActiveObject(F))}return function(){if(!(null==T?void 0:T.longLine)||!T.longLine.time)return;const{time:t,style:e}=T.longLine,i=A(t),n=o([i,0,i,Y],e);d.value.add(n)}(),function(){var t;if(!(null==(t=null==R?void 0:R.horizontal)?void 0:t.length))return;q=[];const{horizontal:i}=R,o=B-5;let n=W+H/2;i.forEach(((t,i)=>{const{title:r,titleStyle:a={},defaultAddValue:l,data:s=[]}=t,c=r&&e(r,{...a,originX:"right",left:o,top:n,origin:{defaultAddValue:l,dataIndex:i,type:"other",key:"horizontal",title:r,isMenu:!0},originLeft:o,originTop:n});var u;q.push({type:"other",title:r,key:"horizontal",dataIndex:i,dataList:s.map((t=>A(t.time))),y1:n-c.height/2,y2:n+c.height/2}),(u=c).on("moving",(()=>{u.set("originX","center"),S(u)?et(u):k.show=!1})),u.on("mouseup:before",(t=>{if(k.show=!1,0===t.e.button&&S(u))if(j(K.get("horizontal"),u.left,"key",O).includes(u.origin.key))P("repeat"),console.log("重复节点");else{const t={data:{time:L(u.left),value:u.origin.defaultAddValue},...u.origin};y("add",f(t,["isMenu"])),Q(t)}!function(t){t.setCoords().set({originX:"right",left:t.originLeft,top:t.originTop})}(u)})),d.value.add(c),n+=H}))}(),J(),N(),Z(),rt(),a.on((()=>{const t="horizontal",e=X(K.get(t));e.length>0?b((()=>{const i=function(t){const e=t.reduce(((t,e)=>{const{dataIndex:i}=e.origin;return t[i]=t[i]?t[i].concat(e.origin):[e.origin],t}),{});return h(Object.keys(e).map((t=>{const i=e[t];return R.horizontal[t].data.splice(i[0].index,i.length),i})))}(e);U({key:t}),y("remove",i)})):E()})),_.evented&&(window.addEventListener("keydown",at,!0),d.value.on("mouse:up",(e=>{var i,o,n,r;if(1===e.button){const{target:a,pointer:l={}}=e,{x:s=0,y:c=0}=l;if(!S({left:s,top:c}))return;if(!(null==q?void 0:q.length)||F)return;if(a&&"horizontal"!==(null==(i=a.origin)?void 0:i.key))return;let u="";if(a){if(a.moving)return;u=null==(r=null==(n=null==(o=a.origin)?void 0:o.data)?void 0:n.value)?void 0:r.toString()}const f=q.find((({y1:t,y2:e})=>c>=t&&c<=e));g(null==f?void 0:f.dataIndex)&&(F=new t.Textbox(u,{left:s,top:c,width:100,height:100,fontSize:18,objectCaching:!1,hasControls:!1,borderColor:"#000",editingBorderColor:"#000",backgroundColor:"#fff",fontFamily:"微软雅黑"}),F.otherListPointHeightRangeItem={...f,left:s,target:a},d.value.add(F),d.value.setActiveObject(F),F.enterEditing(),u&&F.setSelectionEnd(u.length))}})),d.value.on("selection:cleared",(({deselected:t})=>{var e;if(null==t?void 0:t.find((t=>t.otherListPointHeightRangeItem))){let{text:t}=F;const{otherListPointHeightRangeItem:i}=F;if(t=t.replace(/^\s+|\s+$/g,""),d.value.remove(F),F=null,!t)return;const{left:o,target:n}=i;if(n){if(t==(null==(e=n.origin)?void 0:e.data.value))return;const i={...n.origin,data:{...n.origin.data,value:t}};y("change",i),Q(i,"change")}else{const e={...m(i,["title","type","key","dataIndex"]),data:{time:L(o),value:t}};y("add",e),Q(e)}}}))),{clickMenu:function({item:t,target:e}){if(!e)return;const{type:i,_type:o}=t,n={...e.origin,type:o};y(i,n),"remove"===i&&Q(n,i)},handleKeydown:at}}export{y as useOther};
|
1
|
+
import { fabric } from '../../../../../shared/utils/fabricjs/index.js';
|
2
|
+
import { drawPoint, drawText, drawLine, defaultLineStyle } from '../useDraw.js';
|
3
|
+
import { useBirthProcessCumputedPoint } from '../useCumputedPoint.js';
|
4
|
+
import { bus } from '../useEvent.js';
|
5
|
+
import { useShadow } from '../useShadow.js';
|
6
|
+
import { useCommon } from '../useCommon.js';
|
7
|
+
import 'vue';
|
8
|
+
import { getIndex } from '../../utils/index.js';
|
9
|
+
import { filter, cloneDeep, omit, flatten, isNumber, pick } from 'lodash-es';
|
10
|
+
import { format } from 'date-fns';
|
11
|
+
import { OTHER_MENU } from '../../constants/index.js';
|
12
|
+
import '@vueuse/shared';
|
13
|
+
import 'naive-ui';
|
14
|
+
import './useTop.js';
|
15
|
+
import '@vueuse/core';
|
16
|
+
import '../../../../../shared/utils/index.js';
|
17
|
+
|
18
|
+
const NEW_OTHER_MENU = filter(OTHER_MENU, (o) => o.type !== "add");
|
19
|
+
function useOther(canvas, propItems, emits, pointTipProps, pointMenuProps, moveLimit, getContainPoints, showDialog, removeCurrentSelection) {
|
20
|
+
const {
|
21
|
+
computedX,
|
22
|
+
getXValue
|
23
|
+
} = useBirthProcessCumputedPoint(propItems);
|
24
|
+
const {
|
25
|
+
getEqualXTypes,
|
26
|
+
handleAddPrevent,
|
27
|
+
isGridLimit,
|
28
|
+
getPointEventProps
|
29
|
+
} = useCommon(canvas, emits, propItems);
|
30
|
+
const {
|
31
|
+
createShadowLines
|
32
|
+
} = useShadow();
|
33
|
+
const {
|
34
|
+
canvasWidth,
|
35
|
+
other,
|
36
|
+
yCellHeight,
|
37
|
+
xCellWidth,
|
38
|
+
endX,
|
39
|
+
originX,
|
40
|
+
originY,
|
41
|
+
endY,
|
42
|
+
markHeight,
|
43
|
+
event,
|
44
|
+
topGridYCellHeight,
|
45
|
+
extracorporealCirculationHeight
|
46
|
+
} = propItems;
|
47
|
+
const gridPointsMap = /* @__PURE__ */ new Map();
|
48
|
+
const otherValue = cloneDeep(other);
|
49
|
+
let otherListPointHeightRange = [];
|
50
|
+
let inputObj = null;
|
51
|
+
function drawHorizontal() {
|
52
|
+
var _a;
|
53
|
+
if (!((_a = otherValue == null ? void 0 : otherValue.horizontal) == null ? void 0 : _a.length))
|
54
|
+
return;
|
55
|
+
const key = "horizontal";
|
56
|
+
gridPointsMap.set(key, []);
|
57
|
+
const {
|
58
|
+
horizontal
|
59
|
+
} = otherValue;
|
60
|
+
let y = originY + yCellHeight / 2;
|
61
|
+
horizontal.forEach((horizontalItem, dataIndex) => {
|
62
|
+
const {
|
63
|
+
title,
|
64
|
+
type,
|
65
|
+
pointAttr = {},
|
66
|
+
textStyle = {},
|
67
|
+
data,
|
68
|
+
showIcon = true
|
69
|
+
} = horizontalItem;
|
70
|
+
let prevPoint = null;
|
71
|
+
data.forEach((item, index) => {
|
72
|
+
const {
|
73
|
+
time,
|
74
|
+
value
|
75
|
+
} = item;
|
76
|
+
const x = computedX(time);
|
77
|
+
if (!isLimitX(x))
|
78
|
+
return;
|
79
|
+
const groups = [];
|
80
|
+
const icon = showIcon && drawPoint(type, {
|
81
|
+
...pointAttr,
|
82
|
+
left: x,
|
83
|
+
top: y
|
84
|
+
});
|
85
|
+
icon && groups.push(icon);
|
86
|
+
const textLeft = showIcon ? x + icon.width / 2 + 2 : x;
|
87
|
+
const text = drawText([textLeft, y], {
|
88
|
+
value,
|
89
|
+
...textStyle,
|
90
|
+
originX: "left"
|
91
|
+
});
|
92
|
+
groups.push(text);
|
93
|
+
const group = new fabric.Group(groups, {
|
94
|
+
lockMovementY: true,
|
95
|
+
objectCaching: false,
|
96
|
+
hasControls: false,
|
97
|
+
hasBorders: false,
|
98
|
+
hoverCursor: "pointer",
|
99
|
+
...getPointEventProps()
|
100
|
+
});
|
101
|
+
Object.assign(group, {
|
102
|
+
originLeft: x,
|
103
|
+
iconHalfWidth: icon ? icon.width / 2 : 0,
|
104
|
+
origin: {
|
105
|
+
type: "other",
|
106
|
+
key,
|
107
|
+
dataIndex,
|
108
|
+
index,
|
109
|
+
data: item,
|
110
|
+
title
|
111
|
+
},
|
112
|
+
limitX: {
|
113
|
+
x1: originX,
|
114
|
+
x2: endX - group.width
|
115
|
+
}
|
116
|
+
});
|
117
|
+
if (prevPoint) {
|
118
|
+
group.limitX.x1 = prevPoint.left;
|
119
|
+
prevPoint.limitX.x2 = group.left;
|
120
|
+
group.prevPoint = prevPoint;
|
121
|
+
prevPoint.nextPoint = group;
|
122
|
+
}
|
123
|
+
prevPoint = group;
|
124
|
+
setPointEvent(group);
|
125
|
+
gridPointsMap.get(key).push(group);
|
126
|
+
});
|
127
|
+
y += yCellHeight;
|
128
|
+
});
|
129
|
+
canvas.value.add(...gridPointsMap.get(key));
|
130
|
+
}
|
131
|
+
function drawTitle() {
|
132
|
+
var _a;
|
133
|
+
if (!((_a = otherValue == null ? void 0 : otherValue.horizontal) == null ? void 0 : _a.length))
|
134
|
+
return;
|
135
|
+
otherListPointHeightRange = [];
|
136
|
+
const {
|
137
|
+
horizontal
|
138
|
+
} = otherValue;
|
139
|
+
const titleLeft = originX - 5;
|
140
|
+
let y = originY + yCellHeight / 2;
|
141
|
+
horizontal.forEach((horizontalItem, dataIndex) => {
|
142
|
+
const {
|
143
|
+
title: _title,
|
144
|
+
titleStyle = {},
|
145
|
+
defaultAddValue,
|
146
|
+
data = []
|
147
|
+
} = horizontalItem;
|
148
|
+
const title = _title && drawPoint(_title, {
|
149
|
+
...titleStyle,
|
150
|
+
originX: "right",
|
151
|
+
left: titleLeft,
|
152
|
+
top: y,
|
153
|
+
origin: {
|
154
|
+
defaultAddValue,
|
155
|
+
dataIndex,
|
156
|
+
type: "other",
|
157
|
+
key: "horizontal",
|
158
|
+
title: _title,
|
159
|
+
isMenu: true
|
160
|
+
},
|
161
|
+
originLeft: titleLeft,
|
162
|
+
originTop: y
|
163
|
+
});
|
164
|
+
otherListPointHeightRange.push({
|
165
|
+
type: "other",
|
166
|
+
title: _title,
|
167
|
+
key: "horizontal",
|
168
|
+
dataIndex,
|
169
|
+
dataList: data.map((v) => computedX(v.time)),
|
170
|
+
y1: y - title.height / 2,
|
171
|
+
y2: y + title.height / 2
|
172
|
+
});
|
173
|
+
setTitleEvent(title);
|
174
|
+
canvas.value.add(title);
|
175
|
+
y += yCellHeight;
|
176
|
+
});
|
177
|
+
}
|
178
|
+
function setTitleEvent(point) {
|
179
|
+
point.on("moving", () => {
|
180
|
+
point.set("originX", "center");
|
181
|
+
if (isGridLimit(point)) {
|
182
|
+
setPopup(point);
|
183
|
+
} else {
|
184
|
+
pointTipProps.show = false;
|
185
|
+
}
|
186
|
+
});
|
187
|
+
point.on("mouseup:before", (event2) => {
|
188
|
+
pointTipProps.show = false;
|
189
|
+
if (event2.e.button === 0) {
|
190
|
+
if (isGridLimit(point)) {
|
191
|
+
const isRepeat = getEqualXTypes(gridPointsMap.get("horizontal"), point.left, "key", xCellWidth).includes(point.origin.key);
|
192
|
+
if (isRepeat) {
|
193
|
+
handleAddPrevent("repeat");
|
194
|
+
console.log("\u91CD\u590D\u8282\u70B9");
|
195
|
+
} else {
|
196
|
+
const params = {
|
197
|
+
data: {
|
198
|
+
time: getXValue(point.left),
|
199
|
+
value: point.origin.defaultAddValue
|
200
|
+
},
|
201
|
+
...point.origin
|
202
|
+
};
|
203
|
+
emits("add", omit(params, ["isMenu"]));
|
204
|
+
updateData(params);
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
208
|
+
setRestore(point);
|
209
|
+
});
|
210
|
+
}
|
211
|
+
function setRestore(point) {
|
212
|
+
point.setCoords().set({
|
213
|
+
originX: "right",
|
214
|
+
left: point.originLeft,
|
215
|
+
top: point.originTop
|
216
|
+
});
|
217
|
+
}
|
218
|
+
function drawVertical() {
|
219
|
+
var _a;
|
220
|
+
if (!((_a = otherValue == null ? void 0 : otherValue.vertical) == null ? void 0 : _a.length))
|
221
|
+
return;
|
222
|
+
const key = "vertical";
|
223
|
+
gridPointsMap.set(key, []);
|
224
|
+
const {
|
225
|
+
vertical
|
226
|
+
} = otherValue;
|
227
|
+
vertical.forEach((verticalItem, dataIndex) => {
|
228
|
+
const {
|
229
|
+
show = true,
|
230
|
+
marginTop = 0,
|
231
|
+
textStyle = {},
|
232
|
+
data,
|
233
|
+
time
|
234
|
+
} = verticalItem;
|
235
|
+
const x = computedX(time);
|
236
|
+
if (!show || !isLimitX(x))
|
237
|
+
return;
|
238
|
+
const {
|
239
|
+
lineHeight = yCellHeight
|
240
|
+
} = textStyle;
|
241
|
+
let y = originY + marginTop + lineHeight / 2;
|
242
|
+
data.forEach((item, index) => {
|
243
|
+
const text = drawPoint(String(item.value), {
|
244
|
+
...textStyle,
|
245
|
+
lockMovementY: true,
|
246
|
+
left: x,
|
247
|
+
originX: "left",
|
248
|
+
top: y,
|
249
|
+
origin: {
|
250
|
+
type: "other",
|
251
|
+
key,
|
252
|
+
dataIndex,
|
253
|
+
index,
|
254
|
+
data: item
|
255
|
+
},
|
256
|
+
...getPointEventProps()
|
257
|
+
});
|
258
|
+
y += lineHeight;
|
259
|
+
setPointEvent(text);
|
260
|
+
gridPointsMap.get(key).push(text);
|
261
|
+
});
|
262
|
+
const textItemPoints = gridPointsMap.get(key).filter((point) => point.origin.dataIndex === dataIndex);
|
263
|
+
const maxTextWidth = Math.max(...textItemPoints.map((point) => point.width));
|
264
|
+
const isOverstep = x > endX - maxTextWidth;
|
265
|
+
textItemPoints.forEach((point, _, arr) => {
|
266
|
+
point.siblingPoints = arr.filter((_point) => _point.origin.index !== point.origin.index);
|
267
|
+
point.maxTextWidth = maxTextWidth;
|
268
|
+
if (isOverstep)
|
269
|
+
point.set("originX", "right");
|
270
|
+
});
|
271
|
+
});
|
272
|
+
canvas.value.add(...gridPointsMap.get(key));
|
273
|
+
}
|
274
|
+
function clickMenu({
|
275
|
+
item,
|
276
|
+
target
|
277
|
+
}) {
|
278
|
+
if (!target)
|
279
|
+
return;
|
280
|
+
const {
|
281
|
+
type,
|
282
|
+
_type
|
283
|
+
} = item;
|
284
|
+
const params = {
|
285
|
+
...target.origin,
|
286
|
+
type: _type
|
287
|
+
};
|
288
|
+
emits(type, params);
|
289
|
+
if (type === "remove") {
|
290
|
+
updateData(params, type);
|
291
|
+
}
|
292
|
+
}
|
293
|
+
function updateData(params, mode = "add") {
|
294
|
+
const {
|
295
|
+
dataIndex,
|
296
|
+
data,
|
297
|
+
index,
|
298
|
+
key,
|
299
|
+
dataKey,
|
300
|
+
time
|
301
|
+
} = params;
|
302
|
+
const obj = otherValue[key];
|
303
|
+
const item = !["mark", "extracorporealCirculation"].includes(key) ? obj[dataIndex] : obj.dataList[dataIndex];
|
304
|
+
switch (mode) {
|
305
|
+
case "remove":
|
306
|
+
item.data.splice(index, 1);
|
307
|
+
break;
|
308
|
+
case "change":
|
309
|
+
if (key === "mark") {
|
310
|
+
item.list.splice(index, 1);
|
311
|
+
const newItem = obj.dataList.find((_item) => _item.time === time);
|
312
|
+
if (newItem) {
|
313
|
+
newItem.list.push(data);
|
314
|
+
} else {
|
315
|
+
obj.dataList.push({
|
316
|
+
time,
|
317
|
+
list: [data]
|
318
|
+
});
|
319
|
+
obj.dataList.sort((a, b) => {
|
320
|
+
return Date.parse(a.time) - Date.parse(b.time);
|
321
|
+
});
|
322
|
+
}
|
323
|
+
} else if (key === "extracorporealCirculation") {
|
324
|
+
item[dataKey] = data;
|
325
|
+
} else {
|
326
|
+
item.data[index] = data;
|
327
|
+
}
|
328
|
+
break;
|
329
|
+
default: {
|
330
|
+
const time2 = Array.isArray(data) ? data[0].time : data.time;
|
331
|
+
const index2 = getIndex(time2, item.data);
|
332
|
+
const newData = Array.isArray(data) ? data : [data];
|
333
|
+
item.data.splice(index2, 0, ...newData);
|
334
|
+
break;
|
335
|
+
}
|
336
|
+
}
|
337
|
+
redrawPoints(params);
|
338
|
+
}
|
339
|
+
function redrawPoints(params) {
|
340
|
+
var _a;
|
341
|
+
const {
|
342
|
+
key
|
343
|
+
} = params;
|
344
|
+
(_a = canvas.value) == null ? void 0 : _a.remove(...gridPointsMap.get(key));
|
345
|
+
gridPointsMap.delete(key);
|
346
|
+
switch (key) {
|
347
|
+
case "horizontal":
|
348
|
+
drawHorizontal();
|
349
|
+
break;
|
350
|
+
case "vertical":
|
351
|
+
drawVertical();
|
352
|
+
break;
|
353
|
+
case "mark":
|
354
|
+
drawMark();
|
355
|
+
break;
|
356
|
+
case "extracorporealCirculation":
|
357
|
+
drawExtracorporealCirculation();
|
358
|
+
}
|
359
|
+
}
|
360
|
+
function drawMark() {
|
361
|
+
if (!markHeight)
|
362
|
+
return;
|
363
|
+
const {
|
364
|
+
title,
|
365
|
+
titleStyle,
|
366
|
+
pointAttr,
|
367
|
+
dataList
|
368
|
+
} = otherValue.mark || {};
|
369
|
+
if (!(dataList == null ? void 0 : dataList.length))
|
370
|
+
return;
|
371
|
+
const key = "mark";
|
372
|
+
gridPointsMap.set(key, []);
|
373
|
+
const titleObj = drawText([originX - 5, endY + markHeight / 2], {
|
374
|
+
value: title,
|
375
|
+
...titleStyle,
|
376
|
+
originX: "right"
|
377
|
+
});
|
378
|
+
canvas.value.add(titleObj);
|
379
|
+
const limitY = endY + markHeight + extracorporealCirculationHeight;
|
380
|
+
const _endY = endY + extracorporealCirculationHeight;
|
381
|
+
let prevLeft = 0;
|
382
|
+
const pointerObj = {};
|
383
|
+
dataList.forEach((markItem, dataIndex) => {
|
384
|
+
const {
|
385
|
+
time,
|
386
|
+
list = []
|
387
|
+
} = markItem;
|
388
|
+
const x = computedX(time);
|
389
|
+
if (!isLimitX(x))
|
390
|
+
return;
|
391
|
+
let startTop = _endY + 1;
|
392
|
+
list.forEach((item, index) => {
|
393
|
+
var _a;
|
394
|
+
const {
|
395
|
+
style
|
396
|
+
} = item;
|
397
|
+
const point = drawPoint((style == null ? void 0 : style.type) || "circleAndText", {
|
398
|
+
...(style == null ? void 0 : style.pointAttr) || pointAttr,
|
399
|
+
...item.text ? {
|
400
|
+
text: item.text
|
401
|
+
} : {},
|
402
|
+
left: x,
|
403
|
+
top: _endY + 10,
|
404
|
+
origin: {
|
405
|
+
data: item,
|
406
|
+
key: "mark",
|
407
|
+
type: "other",
|
408
|
+
dataIndex,
|
409
|
+
index
|
410
|
+
}
|
411
|
+
});
|
412
|
+
const pointHeight = point.height;
|
413
|
+
if (prevLeft && x - prevLeft <= xCellWidth) {
|
414
|
+
(_a = pointerObj[`x_${prevLeft}`]) == null ? void 0 : _a.forEach(([y1, y2]) => {
|
415
|
+
if (startTop + pointHeight >= limitY) {
|
416
|
+
startTop = endY - 1;
|
417
|
+
}
|
418
|
+
if (y1 < y2 && startTop >= y1 && startTop < y2) {
|
419
|
+
startTop = y2;
|
420
|
+
}
|
421
|
+
if (y1 > y2 && startTop > y2 && startTop <= y1) {
|
422
|
+
startTop = y2;
|
423
|
+
}
|
424
|
+
});
|
425
|
+
}
|
426
|
+
const {
|
427
|
+
topObj,
|
428
|
+
startTop: _startTop,
|
429
|
+
oldStartTop
|
430
|
+
} = computedTop(startTop, pointHeight);
|
431
|
+
startTop = _startTop;
|
432
|
+
if (!pointerObj[`x_${x}`])
|
433
|
+
pointerObj[`x_${x}`] = [];
|
434
|
+
pointerObj[`x_${x}`].push([oldStartTop, startTop]);
|
435
|
+
point.set("top", topObj.y2);
|
436
|
+
gridPointsMap.get(key).push(point);
|
437
|
+
setPointEvent(point);
|
438
|
+
canvas.value.add(point);
|
439
|
+
});
|
440
|
+
prevLeft = x;
|
441
|
+
});
|
442
|
+
function computedTop(startTop, lineHeight) {
|
443
|
+
const topObj = {};
|
444
|
+
let oldStartTop;
|
445
|
+
if (startTop > endY) {
|
446
|
+
const _top = startTop + lineHeight;
|
447
|
+
topObj.y2 = startTop + lineHeight / 2;
|
448
|
+
if (_top >= limitY) {
|
449
|
+
setTopY(endY - 1);
|
450
|
+
} else {
|
451
|
+
oldStartTop = startTop;
|
452
|
+
startTop = _top;
|
453
|
+
}
|
454
|
+
} else {
|
455
|
+
setTopY(startTop);
|
456
|
+
}
|
457
|
+
function setTopY(base) {
|
458
|
+
oldStartTop = base;
|
459
|
+
topObj.y2 = base - lineHeight / 2;
|
460
|
+
const _y = base - lineHeight;
|
461
|
+
startTop = _y;
|
462
|
+
}
|
463
|
+
return {
|
464
|
+
topObj,
|
465
|
+
startTop,
|
466
|
+
oldStartTop
|
467
|
+
};
|
468
|
+
}
|
469
|
+
addProps(gridPointsMap.get(key));
|
470
|
+
}
|
471
|
+
function addProps(__arr) {
|
472
|
+
const isStart = (point) => {
|
473
|
+
var _a, _b;
|
474
|
+
return (_b = (_a = point.origin) == null ? void 0 : _a.data) == null ? void 0 : _b.isStart;
|
475
|
+
};
|
476
|
+
const startPoint = __arr.find((point) => isStart(point));
|
477
|
+
const firstPoint = __arr.find((point) => !isStart(point) && point.left > startPoint.left);
|
478
|
+
const otherPoints = __arr.filter((point) => !isStart(point));
|
479
|
+
__arr.forEach((point) => {
|
480
|
+
const limitX = {
|
481
|
+
x1: originX,
|
482
|
+
x2: endX
|
483
|
+
};
|
484
|
+
if (isStart(point)) {
|
485
|
+
limitX.x2 = firstPoint.left;
|
486
|
+
point.otherPoints = otherPoints;
|
487
|
+
} else {
|
488
|
+
limitX.x1 = startPoint.left;
|
489
|
+
point.startPoint = startPoint;
|
490
|
+
}
|
491
|
+
point.limitX = limitX;
|
492
|
+
});
|
493
|
+
}
|
494
|
+
function setPointEvent(point) {
|
495
|
+
if (event.hovered) {
|
496
|
+
point.on("mouseover", () => {
|
497
|
+
setPopup(point);
|
498
|
+
});
|
499
|
+
point.on("mouseout", () => {
|
500
|
+
pointTipProps.show = false;
|
501
|
+
});
|
502
|
+
}
|
503
|
+
if (point.lockMovementX && point.lockMovementY)
|
504
|
+
return;
|
505
|
+
const {
|
506
|
+
key
|
507
|
+
} = point.origin;
|
508
|
+
const isMarkOrHorizontal = ["mark", "horizontal"].includes(key);
|
509
|
+
const isMarkOrVertical = ["mark", "vertical"].includes(key);
|
510
|
+
const isisExtracorporealCirculationOrMark = ["mark", "extracorporealCirculation"].includes(key);
|
511
|
+
const isExtracorporealCirculation = key === "extracorporealCirculation";
|
512
|
+
point.on("moving", () => {
|
513
|
+
point.moving = true;
|
514
|
+
if (isMarkOrHorizontal) {
|
515
|
+
markMoveLimit(point);
|
516
|
+
} else if (isExtracorporealCirculation) {
|
517
|
+
extracorporealCirculationMoveLimit(point);
|
518
|
+
} else {
|
519
|
+
moveLimit(point);
|
520
|
+
updateSiblingPoints(point);
|
521
|
+
}
|
522
|
+
event.hovered && setPopup(point);
|
523
|
+
});
|
524
|
+
point.on("mouseup", (event2) => {
|
525
|
+
var _a;
|
526
|
+
pointTipProps.show = false;
|
527
|
+
if (event2.button === 1) {
|
528
|
+
if (!point.moving)
|
529
|
+
return;
|
530
|
+
point.moving = false;
|
531
|
+
if (isMarkOrHorizontal)
|
532
|
+
updateLimitX(point);
|
533
|
+
const time = getXValue((_a = point.originLeft) != null ? _a : point.left);
|
534
|
+
const params = {
|
535
|
+
...point.origin,
|
536
|
+
...isMarkOrVertical ? {
|
537
|
+
time
|
538
|
+
} : {
|
539
|
+
data: {
|
540
|
+
...point.origin.data,
|
541
|
+
time
|
542
|
+
}
|
543
|
+
}
|
544
|
+
};
|
545
|
+
canvas.value.discardActiveObject();
|
546
|
+
emits("change", params);
|
547
|
+
if (isisExtracorporealCirculationOrMark)
|
548
|
+
updateData(params, "change");
|
549
|
+
}
|
550
|
+
if (event2.button === 3 && ["horizontal", "vertical"].includes(key)) {
|
551
|
+
pointMenuProps.point = {
|
552
|
+
x: point.left,
|
553
|
+
y: point.top
|
554
|
+
};
|
555
|
+
pointMenuProps.show = true;
|
556
|
+
pointMenuProps.target = point;
|
557
|
+
pointMenuProps.list = NEW_OTHER_MENU.map((item) => {
|
558
|
+
return {
|
559
|
+
...item,
|
560
|
+
renderItem: () => item.label,
|
561
|
+
_type: "other"
|
562
|
+
};
|
563
|
+
});
|
564
|
+
}
|
565
|
+
});
|
566
|
+
}
|
567
|
+
function setPopup(point) {
|
568
|
+
pointTipProps.isTarget = true;
|
569
|
+
pointTipProps.show = true;
|
570
|
+
const {
|
571
|
+
key,
|
572
|
+
data = {}
|
573
|
+
} = point.origin || {};
|
574
|
+
let value = data.value;
|
575
|
+
const isExtracorporealCirculation = key === "extracorporealCirculation";
|
576
|
+
const isExtracorporealCirculationOrMark = isExtracorporealCirculation || key === "mark";
|
577
|
+
pointTipProps.point = {
|
578
|
+
x: point.left,
|
579
|
+
y: isExtracorporealCirculationOrMark ? point.top : point.top + topGridYCellHeight / 2
|
580
|
+
};
|
581
|
+
const x = !point.origin.isMenu && point.originLeft ? point.originLeft : point.left;
|
582
|
+
const time = getXValue(x);
|
583
|
+
pointTipProps.list = [`\u65F6\u95F4 ${time.slice(-5)}`];
|
584
|
+
if (isExtracorporealCirculationOrMark) {
|
585
|
+
if (key === "mark") {
|
586
|
+
value = data.name;
|
587
|
+
}
|
588
|
+
pointTipProps.list.unshift(value + " ");
|
589
|
+
}
|
590
|
+
pointTipProps.sourceData = [{
|
591
|
+
type: "other",
|
592
|
+
key,
|
593
|
+
time,
|
594
|
+
value
|
595
|
+
}];
|
596
|
+
}
|
597
|
+
function updateShadowBox(optLine, direction) {
|
598
|
+
const {
|
599
|
+
shadowObjs,
|
600
|
+
params
|
601
|
+
} = optLine[`${direction}ShadowBox`] || {};
|
602
|
+
if (!shadowObjs || !params)
|
603
|
+
return;
|
604
|
+
shadowObjs.forEach((obj) => canvas.value.remove(obj));
|
605
|
+
const idx = direction === "left" ? 1 : 0;
|
606
|
+
params[idx] = optLine.left;
|
607
|
+
const _shadowObjs = drawShadowBox(...params);
|
608
|
+
optLine[`${direction}ShadowBox`] = {
|
609
|
+
shadowObjs: _shadowObjs,
|
610
|
+
params
|
611
|
+
};
|
612
|
+
}
|
613
|
+
function extracorporealCirculationMoveLimit(point) {
|
614
|
+
point.setCoords();
|
615
|
+
const {
|
616
|
+
left,
|
617
|
+
limitX
|
618
|
+
} = point;
|
619
|
+
const currentTime = format(new Date(), "yyyy-MM-dd HH:mm");
|
620
|
+
const currentTimeX = computedX(currentTime);
|
621
|
+
if (limitX.isCurrentTime && limitX.x2 < currentTimeX && currentTimeX > 0 && currentTimeX < canvasWidth) {
|
622
|
+
limitX.x2 = currentTimeX;
|
623
|
+
}
|
624
|
+
if (left < limitX.x1) {
|
625
|
+
point.set({
|
626
|
+
x1: limitX.x1,
|
627
|
+
x2: limitX.x1
|
628
|
+
});
|
629
|
+
}
|
630
|
+
if (left > limitX.x2) {
|
631
|
+
point.set({
|
632
|
+
x1: limitX.x2,
|
633
|
+
x2: limitX.x2
|
634
|
+
});
|
635
|
+
}
|
636
|
+
updateShadowBox(point, "left");
|
637
|
+
updateShadowBox(point, "right");
|
638
|
+
}
|
639
|
+
function markMoveLimit(point) {
|
640
|
+
const key = point.origin.key;
|
641
|
+
const isHorizontal = key === "horizontal";
|
642
|
+
point.setCoords();
|
643
|
+
if (point.left < point.limitX.x1) {
|
644
|
+
point.set("left", point.limitX.x1 + (isHorizontal ? 1 : 0));
|
645
|
+
}
|
646
|
+
if (point.left > point.limitX.x2) {
|
647
|
+
point.set("left", point.limitX.x2 + (isHorizontal ? -1 : 0));
|
648
|
+
}
|
649
|
+
if (key === "mark") {
|
650
|
+
if (point.top < originY) {
|
651
|
+
point.set("top", originY);
|
652
|
+
}
|
653
|
+
const limitY = endY + extracorporealCirculationHeight + markHeight - point.height / 2;
|
654
|
+
if (point.top > limitY) {
|
655
|
+
point.set("top", limitY);
|
656
|
+
}
|
657
|
+
}
|
658
|
+
if (isHorizontal)
|
659
|
+
point.originLeft = point.left + point.iconHalfWidth;
|
660
|
+
}
|
661
|
+
function updateSiblingPoints(point) {
|
662
|
+
const isOverstep = point.left + point.maxTextWidth > endX;
|
663
|
+
const originX2 = isOverstep ? "right" : "left";
|
664
|
+
point.setCoords().set({
|
665
|
+
originX: originX2
|
666
|
+
});
|
667
|
+
point.siblingPoints.forEach((_point) => _point.setCoords().set({
|
668
|
+
originX: originX2,
|
669
|
+
left: point.left
|
670
|
+
}));
|
671
|
+
}
|
672
|
+
function updateLimitX(point) {
|
673
|
+
var _a, _b;
|
674
|
+
if (point.origin.key === "mark") {
|
675
|
+
const isStart = (_b = (_a = point.origin) == null ? void 0 : _a.data) == null ? void 0 : _b.isStart;
|
676
|
+
if (isStart && point.otherPoints) {
|
677
|
+
point.otherPoints.forEach((_point) => {
|
678
|
+
_point.limitX.x1 = point.left;
|
679
|
+
});
|
680
|
+
} else {
|
681
|
+
const otherPointsLeft = point.startPoint.otherPoints.map((_point) => _point.left);
|
682
|
+
const minLeft = Math.min(...otherPointsLeft);
|
683
|
+
point.startPoint.limitX.x2 = minLeft;
|
684
|
+
}
|
685
|
+
return;
|
686
|
+
}
|
687
|
+
if (point.prevPoint)
|
688
|
+
point.prevPoint.limitX.x2 = point.left;
|
689
|
+
if (point.nextPoint)
|
690
|
+
point.nextPoint.limitX.x1 = point.left;
|
691
|
+
}
|
692
|
+
function isLimitX(x) {
|
693
|
+
return x >= originX && x <= endX;
|
694
|
+
}
|
695
|
+
function handleEvent() {
|
696
|
+
bus.on(() => {
|
697
|
+
const key = "horizontal";
|
698
|
+
const containPoints = getContainPoints(gridPointsMap.get(key));
|
699
|
+
if (containPoints.length > 0) {
|
700
|
+
showDialog(() => {
|
701
|
+
const params = doDeletePoints(containPoints);
|
702
|
+
redrawPoints({
|
703
|
+
key
|
704
|
+
});
|
705
|
+
emits("remove", params);
|
706
|
+
});
|
707
|
+
} else {
|
708
|
+
removeCurrentSelection();
|
709
|
+
}
|
710
|
+
});
|
711
|
+
}
|
712
|
+
function doDeletePoints(points) {
|
713
|
+
const result = points.reduce((res, currentPoint) => {
|
714
|
+
const {
|
715
|
+
dataIndex
|
716
|
+
} = currentPoint.origin;
|
717
|
+
res[dataIndex] = res[dataIndex] ? res[dataIndex].concat(currentPoint.origin) : [currentPoint.origin];
|
718
|
+
return res;
|
719
|
+
}, {});
|
720
|
+
return flatten(Object.keys(result).map((dataIndex) => {
|
721
|
+
const datas = result[dataIndex];
|
722
|
+
otherValue["horizontal"][dataIndex].data.splice(datas[0].index, datas.length);
|
723
|
+
return datas;
|
724
|
+
}));
|
725
|
+
}
|
726
|
+
function drawLongLine() {
|
727
|
+
if (!(other == null ? void 0 : other.longLine) || !other.longLine.time)
|
728
|
+
return;
|
729
|
+
const {
|
730
|
+
time,
|
731
|
+
style
|
732
|
+
} = other.longLine;
|
733
|
+
const x = computedX(time);
|
734
|
+
const line = drawLine([x, 0, x, endY], style);
|
735
|
+
canvas.value.add(line);
|
736
|
+
}
|
737
|
+
function getExtracorporealCirculationX(item) {
|
738
|
+
const {
|
739
|
+
extracorporealCirculationStart,
|
740
|
+
closeAscendAorta,
|
741
|
+
openAscendAorta,
|
742
|
+
extracorporealCirculationEnd
|
743
|
+
} = item;
|
744
|
+
let x1, x2, x3, x4;
|
745
|
+
if (extracorporealCirculationStart) {
|
746
|
+
x1 = computedX(extracorporealCirculationStart.time);
|
747
|
+
}
|
748
|
+
if (closeAscendAorta) {
|
749
|
+
x2 = computedX(closeAscendAorta.time);
|
750
|
+
}
|
751
|
+
if (openAscendAorta) {
|
752
|
+
x3 = computedX(openAscendAorta.time);
|
753
|
+
}
|
754
|
+
if (extracorporealCirculationEnd) {
|
755
|
+
x4 = computedX(extracorporealCirculationEnd.time);
|
756
|
+
}
|
757
|
+
return [x1, x2, x3, x4];
|
758
|
+
}
|
759
|
+
function drawShadowBox(...arg) {
|
760
|
+
const [x1, x2, y2, __style] = arg;
|
761
|
+
const {
|
762
|
+
mode,
|
763
|
+
style
|
764
|
+
} = __style;
|
765
|
+
const _style = omit(style, ["angle", "space"]);
|
766
|
+
const points = [[x1, endY], [x2, endY], [x2, y2], [x1, y2]];
|
767
|
+
const polygon = new fabric.Polygon(points.map((v) => ({
|
768
|
+
x: v[0],
|
769
|
+
y: v[1]
|
770
|
+
})), {
|
771
|
+
...defaultLineStyle,
|
772
|
+
..._style,
|
773
|
+
stroke: "transparent",
|
774
|
+
...mode === "slash" ? {
|
775
|
+
fill: "transparent"
|
776
|
+
} : {}
|
777
|
+
});
|
778
|
+
const shadowLines = [];
|
779
|
+
if (["slash"].includes(mode)) {
|
780
|
+
shadowLines.push(...createShadowLines(points, style.angle, style.space, _style));
|
781
|
+
}
|
782
|
+
canvas.value.add(polygon, ...shadowLines);
|
783
|
+
gridPointsMap.get("extracorporealCirculation").push(...[polygon, ...shadowLines]);
|
784
|
+
return [polygon, ...shadowLines];
|
785
|
+
}
|
786
|
+
function drawOptLine(coordinate, props) {
|
787
|
+
const optLine = new fabric.Line(coordinate, {
|
788
|
+
...props,
|
789
|
+
stroke: "transparent",
|
790
|
+
strokeWidth: 5,
|
791
|
+
hasControls: false,
|
792
|
+
hasBorders: false,
|
793
|
+
hoverCursor: "e-resize",
|
794
|
+
lockMovementY: true,
|
795
|
+
originX: "center"
|
796
|
+
});
|
797
|
+
setPointEvent(optLine);
|
798
|
+
canvas.value.add(optLine);
|
799
|
+
gridPointsMap.get("extracorporealCirculation").push(optLine);
|
800
|
+
return optLine;
|
801
|
+
}
|
802
|
+
function drawExtracorporealCirculation() {
|
803
|
+
if (!extracorporealCirculationHeight)
|
804
|
+
return;
|
805
|
+
const {
|
806
|
+
dataList,
|
807
|
+
ascendAortaStyle,
|
808
|
+
extracorporealCirculationStyle
|
809
|
+
} = otherValue.extracorporealCirculation || {};
|
810
|
+
if (!(dataList == null ? void 0 : dataList.length))
|
811
|
+
return;
|
812
|
+
const key = "extracorporealCirculation";
|
813
|
+
gridPointsMap.set(key, []);
|
814
|
+
const y2 = endY + extracorporealCirculationHeight;
|
815
|
+
let prevEndX;
|
816
|
+
let prevLine;
|
817
|
+
dataList.forEach((item, index) => {
|
818
|
+
const xList = getExtracorporealCirculationX(item);
|
819
|
+
const idx = xList.findIndex((x) => x > 0 && x < canvasWidth);
|
820
|
+
if (idx === -1)
|
821
|
+
return;
|
822
|
+
let prevShadowBox;
|
823
|
+
xList.forEach((x, i) => {
|
824
|
+
if (isInvalid(x))
|
825
|
+
return;
|
826
|
+
const nextX = xList[i + 1];
|
827
|
+
const prevX = xList[i - 1];
|
828
|
+
if (isValid(x) || isValid(nextX)) {
|
829
|
+
const x1 = isValid(x) ? x : originX;
|
830
|
+
const x2 = isValid(nextX) ? nextX : isInvalid(nextX) ? null : endX;
|
831
|
+
const prevX1 = isValid(prevX) ? prevX : originX;
|
832
|
+
const shadowBox = {};
|
833
|
+
if (i < xList.length - 1 && x2) {
|
834
|
+
shadowBox.params = [x1, x2, y2, [0, 2].includes(i) ? extracorporealCirculationStyle : ascendAortaStyle];
|
835
|
+
shadowBox.shadowObjs = drawShadowBox(...shadowBox.params);
|
836
|
+
}
|
837
|
+
if (isValid(x)) {
|
838
|
+
const dataKey = getKey(i);
|
839
|
+
const currentTime = format(new Date(), "yyyy-MM-dd HH:mm");
|
840
|
+
const currentTimeX = computedX(currentTime);
|
841
|
+
const limitX2 = x < currentTimeX && isValid(currentTimeX) ? currentTimeX : x;
|
842
|
+
const optLine = drawOptLine([x, endY, x, y2], {
|
843
|
+
origin: {
|
844
|
+
dataIndex: index,
|
845
|
+
dataKey,
|
846
|
+
key,
|
847
|
+
data: item[dataKey],
|
848
|
+
type: "other"
|
849
|
+
},
|
850
|
+
limitX: {
|
851
|
+
x1: i === 0 ? prevEndX != null ? prevEndX : originX : prevX1,
|
852
|
+
x2: x2 || limitX2,
|
853
|
+
isCurrentTime: !x2 && index === dataList.length - 1
|
854
|
+
},
|
855
|
+
...[1, 2, 3].includes(i) ? {
|
856
|
+
leftShadowBox: prevShadowBox
|
857
|
+
} : {},
|
858
|
+
...[0, 1, 2].includes(i) ? {
|
859
|
+
rightShadowBox: shadowBox
|
860
|
+
} : {}
|
861
|
+
});
|
862
|
+
if (i === xList.length - 1) {
|
863
|
+
prevEndX = x;
|
864
|
+
prevLine = optLine;
|
865
|
+
}
|
866
|
+
if (i === 0 && prevLine) {
|
867
|
+
prevLine.limitX.x2 = x1;
|
868
|
+
}
|
869
|
+
}
|
870
|
+
prevShadowBox = shadowBox;
|
871
|
+
}
|
872
|
+
});
|
873
|
+
});
|
874
|
+
function isValid(x) {
|
875
|
+
return x && x > originX && x < canvasWidth;
|
876
|
+
}
|
877
|
+
function isInvalid(x) {
|
878
|
+
return typeof x === "undefined" || x === "";
|
879
|
+
}
|
880
|
+
function getKey(i) {
|
881
|
+
switch (i) {
|
882
|
+
case 0:
|
883
|
+
return "extracorporealCirculationStart";
|
884
|
+
case 1:
|
885
|
+
return "closeAscendAorta";
|
886
|
+
case 2:
|
887
|
+
return "openAscendAorta";
|
888
|
+
case 3:
|
889
|
+
return "extracorporealCirculationEnd";
|
890
|
+
}
|
891
|
+
}
|
892
|
+
}
|
893
|
+
function handleKeydown(evt) {
|
894
|
+
const {
|
895
|
+
code
|
896
|
+
} = evt;
|
897
|
+
if (!inputObj || !code.includes("Enter") && !code.includes("Esc"))
|
898
|
+
return;
|
899
|
+
if (code.includes("Esc")) {
|
900
|
+
inputObj.text = "";
|
901
|
+
}
|
902
|
+
inputObj.exitEditing();
|
903
|
+
canvas.value.discardActiveObject(inputObj);
|
904
|
+
}
|
905
|
+
function setCanvasEvent() {
|
906
|
+
if (!event.evented)
|
907
|
+
return;
|
908
|
+
window.addEventListener("keydown", handleKeydown, true);
|
909
|
+
canvas.value.on("mouse:up", (event2) => {
|
910
|
+
var _a, _b, _c, _d;
|
911
|
+
if (event2.button === 1) {
|
912
|
+
const {
|
913
|
+
target,
|
914
|
+
pointer = {}
|
915
|
+
} = event2;
|
916
|
+
const {
|
917
|
+
x = 0,
|
918
|
+
y = 0
|
919
|
+
} = pointer;
|
920
|
+
if (!isGridLimit({
|
921
|
+
left: x,
|
922
|
+
top: y
|
923
|
+
}))
|
924
|
+
return;
|
925
|
+
if (!(otherListPointHeightRange == null ? void 0 : otherListPointHeightRange.length) || inputObj)
|
926
|
+
return;
|
927
|
+
if (target && ((_a = target.origin) == null ? void 0 : _a.key) !== "horizontal")
|
928
|
+
return;
|
929
|
+
let content = "";
|
930
|
+
if (target) {
|
931
|
+
if (target.moving)
|
932
|
+
return;
|
933
|
+
content = (_d = (_c = (_b = target.origin) == null ? void 0 : _b.data) == null ? void 0 : _c.value) == null ? void 0 : _d.toString();
|
934
|
+
}
|
935
|
+
const item = otherListPointHeightRange.find(({
|
936
|
+
y1,
|
937
|
+
y2
|
938
|
+
}) => y >= y1 && y <= y2);
|
939
|
+
if (isNumber(item == null ? void 0 : item.dataIndex)) {
|
940
|
+
inputObj = new fabric.Textbox(content, {
|
941
|
+
left: x,
|
942
|
+
top: y,
|
943
|
+
width: 100,
|
944
|
+
height: 100,
|
945
|
+
fontSize: 18,
|
946
|
+
objectCaching: false,
|
947
|
+
hasControls: false,
|
948
|
+
borderColor: "#000",
|
949
|
+
editingBorderColor: "#000",
|
950
|
+
backgroundColor: "#fff",
|
951
|
+
fontFamily: "\u5FAE\u8F6F\u96C5\u9ED1"
|
952
|
+
});
|
953
|
+
inputObj.otherListPointHeightRangeItem = {
|
954
|
+
...item,
|
955
|
+
left: x,
|
956
|
+
target
|
957
|
+
};
|
958
|
+
canvas.value.add(inputObj);
|
959
|
+
canvas.value.setActiveObject(inputObj);
|
960
|
+
inputObj.enterEditing();
|
961
|
+
if (content) {
|
962
|
+
inputObj.setSelectionEnd(content.length);
|
963
|
+
}
|
964
|
+
}
|
965
|
+
}
|
966
|
+
});
|
967
|
+
canvas.value.on("selection:cleared", ({
|
968
|
+
deselected
|
969
|
+
}) => {
|
970
|
+
var _a;
|
971
|
+
if (deselected == null ? void 0 : deselected.find((obj) => obj.otherListPointHeightRangeItem)) {
|
972
|
+
let {
|
973
|
+
text
|
974
|
+
} = inputObj;
|
975
|
+
const {
|
976
|
+
otherListPointHeightRangeItem
|
977
|
+
} = inputObj;
|
978
|
+
text = text.replace(/^\s+|\s+$/g, "");
|
979
|
+
canvas.value.remove(inputObj);
|
980
|
+
inputObj = null;
|
981
|
+
if (!text)
|
982
|
+
return;
|
983
|
+
const {
|
984
|
+
left,
|
985
|
+
target
|
986
|
+
} = otherListPointHeightRangeItem;
|
987
|
+
if (target) {
|
988
|
+
if (text == ((_a = target.origin) == null ? void 0 : _a.data.value))
|
989
|
+
return;
|
990
|
+
const params = {
|
991
|
+
...target.origin,
|
992
|
+
data: {
|
993
|
+
...target.origin.data,
|
994
|
+
value: text
|
995
|
+
}
|
996
|
+
};
|
997
|
+
emits("change", params);
|
998
|
+
updateData(params, "change");
|
999
|
+
} else {
|
1000
|
+
const params = {
|
1001
|
+
...pick(otherListPointHeightRangeItem, ["title", "type", "key", "dataIndex"]),
|
1002
|
+
data: {
|
1003
|
+
time: getXValue(left),
|
1004
|
+
value: text
|
1005
|
+
}
|
1006
|
+
};
|
1007
|
+
emits("add", params);
|
1008
|
+
updateData(params);
|
1009
|
+
}
|
1010
|
+
}
|
1011
|
+
});
|
1012
|
+
}
|
1013
|
+
drawLongLine();
|
1014
|
+
drawTitle();
|
1015
|
+
drawHorizontal();
|
1016
|
+
drawVertical();
|
1017
|
+
drawMark();
|
1018
|
+
drawExtracorporealCirculation();
|
1019
|
+
handleEvent();
|
1020
|
+
setCanvasEvent();
|
1021
|
+
return {
|
1022
|
+
clickMenu,
|
1023
|
+
handleKeydown
|
1024
|
+
};
|
1025
|
+
}
|
1026
|
+
|
1027
|
+
export { useOther };
|