cnhis-design-vue 3.3.1-beta.9 → 3.3.1-release.5
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 +119 -101
- package/es/components/audio-sdk/index.js +12 -1
- package/es/components/audio-sdk/src/Index.vue.d.ts +115 -99
- package/es/components/audio-sdk/src/Index.vue.js +6 -1
- package/es/components/audio-sdk/src/Index.vue2.js +141 -1
- package/es/components/audio-sdk/src/audioSDK.d.ts +64 -25
- package/es/components/audio-sdk/src/audioSDK.js +393 -1
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +44 -14
- 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 +45 -14
- package/es/components/audio-sdk/src/components/recording.vue.js +6 -1
- package/es/components/audio-sdk/src/components/recording.vue2.js +116 -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/recorder/fft.js +75 -0
- package/es/components/audio-sdk/src/utils/recorder/index.d.ts +3 -0
- package/es/components/audio-sdk/src/utils/recorder/index.js +12 -0
- package/es/components/audio-sdk/src/utils/recorder/mp3-engine.js +12435 -0
- package/es/components/audio-sdk/src/utils/recorder/mp3.js +343 -0
- package/es/components/audio-sdk/src/utils/recorder/recorder.js +1324 -0
- package/es/components/audio-sdk/src/utils/recorder/wave.js +258 -0
- 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.js +6 -1
- package/es/components/field-set/src/FieldColor.vue2.js +240 -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.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.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 +227 -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 +866 -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.d.ts +2 -0
- package/es/components/table-filter/src/components/render-widget/enums.js +48 -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 +527 -1
- package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/enums.js +59 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +158 -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 +63 -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 +321 -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 +77 -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,1480 @@
|
|
1
|
-
import t from"inherits";import{assign as e,forEach as i,isObject as n}from"min-dash";import r from"diagram-js/lib/draw/BaseRenderer";import{isExpanded as a,isEventSubProcess as o}from"bpmn-js/lib/util/DiUtil";import{getLabel as l}from"bpmn-js/lib/features/label-editing/LabelUtil";import{is as c}from"bpmn-js/lib/util/ModelUtil";import{createLine as h}from"diagram-js/lib/util/RenderUtil";import{getCirclePath as s,getRoundRectPath as d,getDiamondPath as m,getRectPath as f,getFillColor as p,getStrokeColor as u,getSemantic as k,getLabelColor as g,getDi as b,isCollection as y,isThrowEvent as S,isTypedEvent as E}from"bpmn-js/lib/draw/BpmnRenderUtil";import{query as v}from"min-dom";import{attr as x,create as w,append as W,classes as A}from"tiny-svg";import{rotate as T,transform as P,translate as D}from"diagram-js/lib/util/SvgTransformUtil";import L from"ids";var F=new L;function _(t,c,s,d,m,f,L){r.call(this,c,L);var _=t&&t.defaultFillColor,M=t&&t.defaultStrokeColor,R=t&&t.defaultLabelColor,O=F.next(),N={},H=s.computeStyle;function C(t,i){var n=e({fill:"black",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"none"},i.attrs),r=i.ref||{x:0,y:0},a=i.scale||1;"none"===n.strokeDasharray&&(n.strokeDasharray=[1e4,1]);var o=w("marker");x(i.element,n),W(o,i.element),x(o,{id:t,viewBox:"0 0 20 20",refX:r.x,refY:r.y,markerWidth:20*a,markerHeight:20*a,orient:"auto"});var l=v("defs",m._svg);l||(l=w("defs"),W(m._svg,l)),W(l,o),N[t]=o}function I(t){return t.replace(/[^0-9a-zA-z]+/g,"_")}function G(t,e,i){var n=t+"-"+I(e)+"-"+I(i)+"-"+O;return N[n]||function(t,e,i,n){if("sequenceflow-end"===e){var r=w("path");x(r,{d:"M 1 5 L 11 10 L 1 15 Z"}),C(t,{element:r,ref:{x:11,y:10},scale:.5,attrs:{fill:n,stroke:n}})}if("messageflow-start"===e){var a=w("circle");x(a,{cx:6,cy:6,r:3.5}),C(t,{element:a,attrs:{fill:i,stroke:n},ref:{x:6,y:6}})}if("messageflow-end"===e){var o=w("path");x(o,{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z"}),C(t,{element:o,attrs:{fill:i,stroke:n,strokeLinecap:"butt"},ref:{x:8.5,y:5}})}if("association-start"===e){var l=w("path");x(l,{d:"M 11 5 L 1 10 L 11 15"}),C(t,{element:l,attrs:{fill:"none",stroke:n,strokeWidth:1.5},ref:{x:1,y:10},scale:.5})}if("association-end"===e){var c=w("path");x(c,{d:"M 1 5 L 11 10 L 1 15"}),C(t,{element:c,attrs:{fill:"none",stroke:n,strokeWidth:1.5},ref:{x:12,y:10},scale:.5})}if("conditional-flow-marker"===e){var h=w("path");x(h,{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z"}),C(t,{element:h,attrs:{fill:i,stroke:n},ref:{x:-1,y:10},scale:.5})}if("conditional-default-flow-marker"===e){var s=w("path");x(s,{d:"M 6 4 L 10 16"}),C(t,{element:s,attrs:{stroke:n},ref:{x:0,y:10},scale:.5})}}(n,t,e,i),"url(#"+n+")"}function B(t,e,i,r,a){n(r)&&(a=r,r=0),r=r||0,"none"===(a=H(a,{stroke:"black",strokeWidth:2,fill:"white"})).fill&&delete a.fillOpacity;var o=e/2,l=i/2,c=w("circle");return x(c,{cx:o,cy:l,r:Math.round((e+i)/4-r)}),x(c,a),W(t,c),c}function j(t,e,i,r,a,o){n(a)&&(o=a,a=0),a=a||0,o=H(o,{stroke:"black",strokeWidth:2,fill:"white"});var l=w("rect");return x(l,{x:a,y:a,width:e-2*a,height:i-2*a,rx:r,ry:r}),x(l,o),W(t,l),l}function U(t,e,i){i=H(i,["no-fill"],{stroke:"black",strokeWidth:2,fill:"none"});var n=h(e,i);return W(t,n),n}function K(t,e,i){i=H(i,["no-fill"],{strokeWidth:2,stroke:"black"});var n=w("path");return x(n,{d:e}),x(n,i),W(t,n),n}function V(t,i,n,r){return K(i,n,e({"data-marker":t},r))}function q(t){return function(e,i){return Q[t](e,i)}}function Y(t){return Q[t]}function $(t,e){var i=k(t),n=S(i);return i.eventDefinitions&&i.eventDefinitions.length>1?i.parallelMultiple?Y("bpmn:ParallelMultipleEventDefinition")(e,t,n):Y("bpmn:MultipleEventDefinition")(e,t,n):E(i,"bpmn:MessageEventDefinition")?Y("bpmn:MessageEventDefinition")(e,t,n):E(i,"bpmn:TimerEventDefinition")?Y("bpmn:TimerEventDefinition")(e,t,n):E(i,"bpmn:ConditionalEventDefinition")?Y("bpmn:ConditionalEventDefinition")(e,t):E(i,"bpmn:SignalEventDefinition")?Y("bpmn:SignalEventDefinition")(e,t,n):E(i,"bpmn:EscalationEventDefinition")?Y("bpmn:EscalationEventDefinition")(e,t,n):E(i,"bpmn:LinkEventDefinition")?Y("bpmn:LinkEventDefinition")(e,t,n):E(i,"bpmn:ErrorEventDefinition")?Y("bpmn:ErrorEventDefinition")(e,t,n):E(i,"bpmn:CancelEventDefinition")?Y("bpmn:CancelEventDefinition")(e,t,n):E(i,"bpmn:CompensateEventDefinition")?Y("bpmn:CompensateEventDefinition")(e,t,n):E(i,"bpmn:TerminateEventDefinition")?Y("bpmn:TerminateEventDefinition")(e,t,n):null}function z(t,i,n){n=e({size:{width:100}},n);var r=f.createText(i||"",n);return A(r).add("djs-label"),W(t,r),r}function X(t,e,i){return z(t,k(e).name,{box:e,align:i,padding:5,style:{fill:g(e,R,M)}})}function J(t,e,i){var n=z(t,e,{box:{height:30,width:i.height},align:"center-middle",style:{fill:g(i,R,M)}}),r=-1*i.height;P(n,0,-r,270)}function Z(t){for(var e=t.waypoints,i="m "+e[0].x+","+e[0].y,n=1;n<e.length;n++)i+="L"+e[n].x+","+e[n].y+" ";return i}var Q=this.handlers={"bpmn:Event":function(t,e,i){return"fillOpacity"in i||(i.fillOpacity=.95),B(t,e.width,e.height,i)},"bpmn:StartEvent":function(t,e){var i={fill:p(e,_),stroke:u(e,M)};k(e).isInterrupting||(i={strokeDasharray:"6",strokeLinecap:"round",fill:p(e,_),stroke:u(e,M)});var n=Y("bpmn:Event")(t,e,i);return $(e,t),n},"bpmn:MessageEventDefinition":function(t,e,i){return K(t,d.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:e.width,containerHeight:e.height,position:{mx:.235,my:.315}}),{strokeWidth:1,fill:i?u(e,M):p(e,_),stroke:i?p(e,_):u(e,M)})},"bpmn:TimerEventDefinition":function(t,e){var i=B(t,e.width,e.height,.2*e.height,{strokeWidth:2,fill:p(e,_),stroke:u(e,M)});K(t,d.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:e.width,containerHeight:e.height,position:{mx:.5,my:.5}}),{strokeWidth:2,strokeLinecap:"square",stroke:u(e,M)});for(var n=0;n<12;n++){var r=d.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:e.width,containerHeight:e.height,position:{mx:.5,my:.5}}),a=e.width/2;K(t,r,{strokeWidth:1,strokeLinecap:"square",transform:"rotate("+30*n+","+e.height/2+","+a+")",stroke:u(e,M)})}return i},"bpmn:EscalationEventDefinition":function(t,e,i){return K(t,d.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:i?u(e,M):"none",stroke:u(e,M)})},"bpmn:ConditionalEventDefinition":function(t,e){return K(t,d.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:.5,my:.222}}),{strokeWidth:1,stroke:u(e,M)})},"bpmn:LinkEventDefinition":function(t,e,i){return K(t,d.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:.57,my:.263}}),{strokeWidth:1,fill:i?u(e,M):"none",stroke:u(e,M)})},"bpmn:ErrorEventDefinition":function(t,e,i){return K(t,d.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:e.width,containerHeight:e.height,position:{mx:.2,my:.722}}),{strokeWidth:1,fill:i?u(e,M):"none",stroke:u(e,M)})},"bpmn:CancelEventDefinition":function(t,e,i){var n=K(t,d.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:.638,my:-.055}}),{strokeWidth:1,fill:i?u(e,M):"none",stroke:u(e,M)});return T(n,45),n},"bpmn:CompensateEventDefinition":function(t,e,i){return K(t,d.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:.22,my:.5}}),{strokeWidth:1,fill:i?u(e,M):"none",stroke:u(e,M)})},"bpmn:SignalEventDefinition":function(t,e,i){return K(t,d.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:e.width,containerHeight:e.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:i?u(e,M):"none",stroke:u(e,M)})},"bpmn:MultipleEventDefinition":function(t,e,i){return K(t,d.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:e.width,containerHeight:e.height,position:{mx:.222,my:.36}}),{strokeWidth:1,fill:i?u(e,M):"none"})},"bpmn:ParallelMultipleEventDefinition":function(t,e){return K(t,d.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:e.width,containerHeight:e.height,position:{mx:.458,my:.194}}),{strokeWidth:1,fill:u(e,M),stroke:u(e,M)})},"bpmn:EndEvent":function(t,e){var i=Y("bpmn:Event")(t,e,{strokeWidth:4,fill:p(e,_),stroke:u(e,M)});return $(e,t),i},"bpmn:TerminateEventDefinition":function(t,e){return B(t,e.width,e.height,8,{strokeWidth:4,fill:u(e,M),stroke:u(e,M)})},"bpmn:IntermediateEvent":function(t,e){var i=Y("bpmn:Event")(t,e,{strokeWidth:1,fill:p(e,_),stroke:u(e,M)});return B(t,e.width,e.height,3,{strokeWidth:1,fill:p(e,"none"),stroke:u(e,M)}),$(e,t),i},"bpmn:IntermediateCatchEvent":q("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":q("bpmn:IntermediateEvent"),"bpmn:Activity":function(t,e,i){return"fillOpacity"in(i=i||{})||(i.fillOpacity=.95),j(t,e.width,e.height,10,i)},"bpmn:Task":function(t,e){var i={fill:p(e,_),stroke:u(e,M)},n=Y("bpmn:Activity")(t,e,i);return X(t,e,"center-middle"),tt(t,e),n},"bpmn:ServiceTask":function(t,e){return Y("bpmn:Task")(t,e)},"bpmn:UserTask":function(t,e){return Y("bpmn:Task")(t,e)},"bpmn:ManualTask":function(t,e){var i=Y("bpmn:Task")(t,e);return K(t,d.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}}),{strokeWidth:.5,fill:p(e,_),stroke:u(e,M)}),i},"bpmn:SendTask":function(t,e){var i=Y("bpmn:Task")(t,e);return K(t,d.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}}),{strokeWidth:1,fill:u(e,M),stroke:p(e,_)}),i},"bpmn:ReceiveTask":function(t,e){var i,n=k(e),r=Y("bpmn:Task")(t,e);return n.instantiate?(B(t,28,28,4.4,{strokeWidth:1}),i=d.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):i=d.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),K(t,i,{strokeWidth:1,fill:p(e,_),stroke:u(e,M)}),r},"bpmn:ScriptTask":function(t,e){return Y("bpmn:Task")(t,e)},"bpmn:BusinessRuleTask":function(t,e){var i=Y("bpmn:Task")(t,e),n=K(t,d.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}));x(n,{strokeWidth:1,fill:p(e,"#aaaaaa"),stroke:u(e,M)});var r=K(t,d.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}));return x(r,{strokeWidth:1,stroke:u(e,M)}),i},"bpmn:SubProcess":function(t,i,n){n=e({fill:p(i,_),stroke:u(i,M)},n);var r=Y("bpmn:Activity")(t,i,n),l=a(i);return o(i)&&x(r,{strokeDasharray:"1,2"}),X(t,i,l?"center-top":"center-middle"),l?tt(t,i):tt(t,i,["SubProcessMarker"]),r},"bpmn:AdHocSubProcess":function(t,e){return Y("bpmn:SubProcess")(t,e)},"bpmn:Transaction":function(t,e){var i=Y("bpmn:SubProcess")(t,e),n=s.style(["no-fill","no-events"],{stroke:u(e,M)});return j(t,e.width,e.height,8,3,n),i},"bpmn:CallActivity":function(t,e){return Y("bpmn:SubProcess")(t,e,{strokeWidth:5})},"bpmn:Participant":function(t,e){var i={fillOpacity:.95,fill:p(e,_),stroke:u(e,M)},n=Y("bpmn:Lane")(t,e,i);a(e)?(U(t,[{x:30,y:0},{x:30,y:e.height}],{stroke:u(e,M)}),J(t,k(e).name,e)):z(t,k(e).name,{box:e,align:"center-middle",style:{fill:g(e,R,M)}});return!!k(e).participantMultiplicity&&Y("ParticipantMultiplicityMarker")(t,e),n},"bpmn:Lane":function(t,i,n){var r=j(t,i.width,i.height,0,e({fill:p(i,_),fillOpacity:.35,stroke:u(i,M)},n)),a=k(i);"bpmn:Lane"===a.$type&&J(t,a.name,i);return r},"bpmn:InclusiveGateway":function(t,e){var i=Y("bpmn:Gateway")(t,e);return B(t,e.width,e.height,.24*e.height,{strokeWidth:2.5,fill:p(e,_),stroke:u(e,M)}),i},"bpmn:ExclusiveGateway":function(t,e){var i=Y("bpmn:Gateway")(t,e),n=d.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:e.width,containerHeight:e.height,position:{mx:.32,my:.3}});return b(e).isMarkerVisible&&K(t,n,{strokeWidth:1,fill:u(e,M),stroke:u(e,M)}),i},"bpmn:ComplexGateway":function(t,e){var i=Y("bpmn:Gateway")(t,e);return K(t,d.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:e.width,containerHeight:e.height,position:{mx:.46,my:.26}}),{strokeWidth:1,fill:u(e,M),stroke:u(e,M)}),i},"bpmn:ParallelGateway":function(t,e){var i=Y("bpmn:Gateway")(t,e);return K(t,d.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:e.width,containerHeight:e.height,position:{mx:.46,my:.2}}),{strokeWidth:1,fill:u(e,M),stroke:u(e,M)}),i},"bpmn:EventBasedGateway":function(t,e){var i=k(e),n=Y("bpmn:Gateway")(t,e);B(t,e.width,e.height,.2*e.height,{strokeWidth:1,fill:"none",stroke:u(e,M)});var r,a,o=i.eventGatewayType,l=!!i.instantiate;if("Parallel"===o){var c=d.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:e.width,containerHeight:e.height,position:{mx:.474,my:.296}}),h=K(t,c);x(h,{strokeWidth:1,fill:"none"})}else if("Exclusive"===o){if(!l){var s=B(t,e.width,e.height,.26*e.height);x(s,{strokeWidth:1,fill:"none",stroke:u(e,M)})}r=d.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:e.width,containerHeight:e.height,position:{mx:.36,my:.44}}),a={strokeWidth:2,fill:p(e,"none"),stroke:u(e,M)},K(t,r,a)}return n},"bpmn:Gateway":function(t,e){var i={fill:p(e,_),fillOpacity:.95,stroke:u(e,M)};return function(t,e,i,n){var r=e/2,a=i/2,o=[{x:r,y:0},{x:e,y:a},{x:r,y:i},{x:0,y:a}].map((function(t){return t.x+","+t.y})).join(" ");n=H(n,{stroke:"black",strokeWidth:2,fill:"white"});var l=w("polygon");return x(l,{points:o}),x(l,n),W(t,l),l}(t,e.width,e.height,i)},"bpmn:SequenceFlow":function(t,e){var i,n=Z(e),r=p(e,_),a=u(e,M),o=K(t,n,{strokeLinejoin:"round",markerEnd:G("sequenceflow-end",r,a),stroke:u(e,M)}),l=k(e);return e.source&&(i=e.source.businessObject,l.conditionExpression&&i.$instanceOf("bpmn:Activity")&&x(o,{markerStart:G("conditional-flow-marker",r,a)}),i.default&&(i.$instanceOf("bpmn:Gateway")||i.$instanceOf("bpmn:Activity"))&&i.default===l&&x(o,{markerStart:G("conditional-default-flow-marker",r,a)})),o},"bpmn:Association":function(t,i,n){var r=k(i),a=p(i,_),o=u(i,M);return n=e({strokeDasharray:"0.5, 5",strokeLinecap:"round",strokeLinejoin:"round",stroke:u(i,M)},n||{}),"One"!==r.associationDirection&&"Both"!==r.associationDirection||(n.markerEnd=G("association-end",a,o)),"Both"===r.associationDirection&&(n.markerStart=G("association-start",a,o)),U(t,i.waypoints,n)},"bpmn:DataInputAssociation":function(t,e){var i=p(e,_),n=u(e,M);return Y("bpmn:Association")(t,e,{markerEnd:G("association-end",i,n)})},"bpmn:DataOutputAssociation":function(t,e){var i=p(e,_),n=u(e,M);return Y("bpmn:Association")(t,e,{markerEnd:G("association-end",i,n)})},"bpmn:MessageFlow":function(t,e){var i=k(e),n=b(e),r=p(e,_),a=u(e,M),o=K(t,Z(e),{markerEnd:G("messageflow-end",r,a),markerStart:G("messageflow-start",r,a),strokeDasharray:"10, 12",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5px",stroke:u(e,M)});if(i.messageRef){var l=o.getPointAtLength(o.getTotalLength()/2),c=d.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:l.x,y:l.y}}),h={strokeWidth:1};"initiating"===n.messageVisibleKind?(h.fill="white",h.stroke="black"):(h.fill="#888",h.stroke="white");var s=K(t,c,h),m=z(t,i.messageRef.name,{align:"center-top",fitBox:!0,style:{fill:u(e,R,M)}}),f=s.getBBox(),g=m.getBBox(),y=l.x-g.width/2,S=l.y+f.height/2+10;P(m,y,S,0)}return o},"bpmn:DataObject":function(t,e){var i=K(t,d.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:.474,my:.296}}),{fill:p(e,_),fillOpacity:.95,stroke:u(e,M)}),n=k(e);return y(n)&&function(t,e){var i=(e.height-18)/e.height,n=d.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:.33,my:i}});K(t,n,{strokeWidth:2})}(t,e),i},"bpmn:DataObjectReference":q("bpmn:DataObject"),"bpmn:DataInput":function(t,e){var i=d.getRawPath("DATA_ARROW"),n=Y("bpmn:DataObject")(t,e);return K(t,i,{strokeWidth:1}),n},"bpmn:DataOutput":function(t,e){var i=d.getRawPath("DATA_ARROW"),n=Y("bpmn:DataObject")(t,e);return K(t,i,{strokeWidth:1,fill:"black"}),n},"bpmn:DataStoreReference":function(t,e){return K(t,d.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:0,my:.133}}),{strokeWidth:2,fill:p(e,_),fillOpacity:.95,stroke:u(e,M)})},"bpmn:BoundaryEvent":function(t,i){var n=k(i).cancelActivity,r={strokeWidth:1,fill:p(i,_),stroke:u(i,M)};n||(r.strokeDasharray="6",r.strokeLinecap="round");var a=e({},r,{fillOpacity:1}),o=e({},r,{fill:"none"}),l=Y("bpmn:Event")(t,i,a);return B(t,i.width,i.height,3,o),$(i,t),l},"bpmn:Group":function(t,e){return j(t,e.width,e.height,10,{stroke:u(e,M),strokeWidth:1,strokeDasharray:"8,3,1,3",fill:"none",pointerEvents:"none"})},label:function(t,i){return function(t,i){var n={width:90,height:30,x:i.width/2+i.x,y:i.height/2+i.y};return z(t,l(i),{box:n,fitBox:!0,style:e({},f.getExternalStyle(),{fill:g(i,R,M)})})}(t,i)},"bpmn:TextAnnotation":function(t,e){var i=j(t,e.width,e.height,0,0,{fill:"none",stroke:"none"});return K(t,d.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:0,my:0}}),{stroke:u(e,M)}),z(t,k(e).text||"",{box:e,align:"left-top",padding:5,style:{fill:g(e,R,M)}}),i},ParticipantMultiplicityMarker:function(t,e){V("participant-multiplicity",t,d.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:e.width/2/e.width,my:(e.height-15)/e.height}}),{strokeWidth:2,fill:p(e,_),stroke:u(e,M)})},SubProcessMarker:function(t,e){var i=j(t,14,14,0,{strokeWidth:1,fill:p(e,_),stroke:u(e,M)});D(i,e.width/2-7.5,e.height-20),V("sub-process",t,d.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:e.width,containerHeight:e.height,position:{mx:(e.width/2-7.5)/e.width,my:(e.height-20)/e.height}}),{fill:p(e,_),stroke:u(e,M)})},ParallelMarker:function(t,e,i){V("parallel",t,d.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:(e.width/2+i.parallel)/e.width,my:(e.height-20)/e.height}}),{fill:p(e,_),stroke:u(e,M)})},SequentialMarker:function(t,e,i){V("sequential",t,d.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:(e.width/2+i.seq)/e.width,my:(e.height-19)/e.height}}),{fill:p(e,_),stroke:u(e,M)})},CompensationMarker:function(t,e,i){V("compensation",t,d.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:(e.width/2+i.compensation)/e.width,my:(e.height-13)/e.height}}),{strokeWidth:1,fill:p(e,_),stroke:u(e,M)})},LoopMarker:function(t,e,i){V("loop",t,d.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:(e.width/2+i.loop)/e.width,my:(e.height-7)/e.height}}),{strokeWidth:1,fill:p(e,_),stroke:u(e,M),strokeLinecap:"round",strokeMiterlimit:.5})},AdhocMarker:function(t,e,i){V("adhoc",t,d.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:e.width,containerHeight:e.height,position:{mx:(e.width/2+i.adhoc)/e.width,my:(e.height-15)/e.height}}),{strokeWidth:1,fill:u(e,M),stroke:u(e,M)})}};function tt(t,e,n){var r,a=k(e),o=n&&-1!==n.indexOf("SubProcessMarker");r=o?{seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:{seq:-3,parallel:-6,compensation:-27,loop:0,adhoc:10},i(n,(function(i){Y(i)(t,e,r)})),a.isForCompensation&&Y("CompensationMarker")(t,e,r),"bpmn:AdHocSubProcess"===a.$type&&Y("AdhocMarker")(t,e,r);var l=a.loopCharacteristics,c=l&&l.isSequential;l&&(void 0===c&&Y("LoopMarker")(t,e,r),!1===c&&Y("ParallelMarker")(t,e,r),!0===c&&Y("SequentialMarker")(t,e,r))}this._drawPath=K}t(_,r),_.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],_.prototype.canRender=function(t){return c(t,"bpmn:BaseElement")},_.prototype.drawShape=function(t,e){var i=e.type;return(0,this.handlers[i])(t,e)},_.prototype.drawConnection=function(t,e){var i=e.type;return(0,this.handlers[i])(t,e)},_.prototype.getShapePath=function(t){return c(t,"bpmn:Event")?s(t):c(t,"bpmn:Activity")?d(t,10):c(t,"bpmn:Gateway")?m(t):f(t)};export{_ as default};
|
1
|
+
import inherits from 'inherits';
|
2
|
+
import { assign, forEach, isObject } from 'min-dash';
|
3
|
+
import BaseRenderer from 'diagram-js/lib/draw/BaseRenderer';
|
4
|
+
import { isExpanded, isEventSubProcess } from 'bpmn-js/lib/util/DiUtil';
|
5
|
+
import { getLabel } from 'bpmn-js/lib/features/label-editing/LabelUtil';
|
6
|
+
import { is } from 'bpmn-js/lib/util/ModelUtil';
|
7
|
+
import { createLine } from 'diagram-js/lib/util/RenderUtil';
|
8
|
+
import { getCirclePath, getRoundRectPath, getDiamondPath, getRectPath, getFillColor, getStrokeColor, getSemantic, getLabelColor, getDi, isCollection, isThrowEvent, isTypedEvent } from 'bpmn-js/lib/draw/BpmnRenderUtil';
|
9
|
+
import { query } from 'min-dom';
|
10
|
+
import { attr, create, append, classes } from 'tiny-svg';
|
11
|
+
import { rotate, transform, translate } from 'diagram-js/lib/util/SvgTransformUtil';
|
12
|
+
import Ids from 'ids';
|
13
|
+
|
14
|
+
var RENDERER_IDS = new Ids();
|
15
|
+
var TASK_BORDER_RADIUS = 10;
|
16
|
+
var INNER_OUTER_DIST = 3;
|
17
|
+
var DEFAULT_FILL_OPACITY = 0.95, HIGH_FILL_OPACITY = 0.35;
|
18
|
+
var ELEMENT_LABEL_DISTANCE = 10;
|
19
|
+
function BpmnRenderer(config, eventBus, styles, pathMap, canvas, textRenderer, priority) {
|
20
|
+
BaseRenderer.call(this, eventBus, priority);
|
21
|
+
var defaultFillColor = config && config.defaultFillColor, defaultStrokeColor = config && config.defaultStrokeColor, defaultLabelColor = config && config.defaultLabelColor;
|
22
|
+
var rendererId = RENDERER_IDS.next();
|
23
|
+
var markers = {};
|
24
|
+
var computeStyle = styles.computeStyle;
|
25
|
+
function addMarker(id, options) {
|
26
|
+
var attrs = assign({
|
27
|
+
fill: "black",
|
28
|
+
strokeWidth: 1,
|
29
|
+
strokeLinecap: "round",
|
30
|
+
strokeDasharray: "none"
|
31
|
+
}, options.attrs);
|
32
|
+
var ref = options.ref || {
|
33
|
+
x: 0,
|
34
|
+
y: 0
|
35
|
+
};
|
36
|
+
var scale = options.scale || 1;
|
37
|
+
if (attrs.strokeDasharray === "none") {
|
38
|
+
attrs.strokeDasharray = [1e4, 1];
|
39
|
+
}
|
40
|
+
var marker2 = create("marker");
|
41
|
+
attr(options.element, attrs);
|
42
|
+
append(marker2, options.element);
|
43
|
+
attr(marker2, {
|
44
|
+
id,
|
45
|
+
viewBox: "0 0 20 20",
|
46
|
+
refX: ref.x,
|
47
|
+
refY: ref.y,
|
48
|
+
markerWidth: 20 * scale,
|
49
|
+
markerHeight: 20 * scale,
|
50
|
+
orient: "auto"
|
51
|
+
});
|
52
|
+
var defs = query("defs", canvas._svg);
|
53
|
+
if (!defs) {
|
54
|
+
defs = create("defs");
|
55
|
+
append(canvas._svg, defs);
|
56
|
+
}
|
57
|
+
append(defs, marker2);
|
58
|
+
markers[id] = marker2;
|
59
|
+
}
|
60
|
+
function colorEscape(str) {
|
61
|
+
return str.replace(/[^0-9a-zA-z]+/g, "_");
|
62
|
+
}
|
63
|
+
function marker(type, fill, stroke) {
|
64
|
+
var id = type + "-" + colorEscape(fill) + "-" + colorEscape(stroke) + "-" + rendererId;
|
65
|
+
if (!markers[id]) {
|
66
|
+
createMarker(id, type, fill, stroke);
|
67
|
+
}
|
68
|
+
return "url(#" + id + ")";
|
69
|
+
}
|
70
|
+
function createMarker(id, type, fill, stroke) {
|
71
|
+
if (type === "sequenceflow-end") {
|
72
|
+
var sequenceflowEnd = create("path");
|
73
|
+
attr(sequenceflowEnd, {
|
74
|
+
d: "M 1 5 L 11 10 L 1 15 Z"
|
75
|
+
});
|
76
|
+
addMarker(id, {
|
77
|
+
element: sequenceflowEnd,
|
78
|
+
ref: {
|
79
|
+
x: 11,
|
80
|
+
y: 10
|
81
|
+
},
|
82
|
+
scale: 0.5,
|
83
|
+
attrs: {
|
84
|
+
fill: stroke,
|
85
|
+
stroke
|
86
|
+
}
|
87
|
+
});
|
88
|
+
}
|
89
|
+
if (type === "messageflow-start") {
|
90
|
+
var messageflowStart = create("circle");
|
91
|
+
attr(messageflowStart, {
|
92
|
+
cx: 6,
|
93
|
+
cy: 6,
|
94
|
+
r: 3.5
|
95
|
+
});
|
96
|
+
addMarker(id, {
|
97
|
+
element: messageflowStart,
|
98
|
+
attrs: {
|
99
|
+
fill,
|
100
|
+
stroke
|
101
|
+
},
|
102
|
+
ref: {
|
103
|
+
x: 6,
|
104
|
+
y: 6
|
105
|
+
}
|
106
|
+
});
|
107
|
+
}
|
108
|
+
if (type === "messageflow-end") {
|
109
|
+
var messageflowEnd = create("path");
|
110
|
+
attr(messageflowEnd, {
|
111
|
+
d: "m 1 5 l 0 -3 l 7 3 l -7 3 z"
|
112
|
+
});
|
113
|
+
addMarker(id, {
|
114
|
+
element: messageflowEnd,
|
115
|
+
attrs: {
|
116
|
+
fill,
|
117
|
+
stroke,
|
118
|
+
strokeLinecap: "butt"
|
119
|
+
},
|
120
|
+
ref: {
|
121
|
+
x: 8.5,
|
122
|
+
y: 5
|
123
|
+
}
|
124
|
+
});
|
125
|
+
}
|
126
|
+
if (type === "association-start") {
|
127
|
+
var associationStart = create("path");
|
128
|
+
attr(associationStart, {
|
129
|
+
d: "M 11 5 L 1 10 L 11 15"
|
130
|
+
});
|
131
|
+
addMarker(id, {
|
132
|
+
element: associationStart,
|
133
|
+
attrs: {
|
134
|
+
fill: "none",
|
135
|
+
stroke,
|
136
|
+
strokeWidth: 1.5
|
137
|
+
},
|
138
|
+
ref: {
|
139
|
+
x: 1,
|
140
|
+
y: 10
|
141
|
+
},
|
142
|
+
scale: 0.5
|
143
|
+
});
|
144
|
+
}
|
145
|
+
if (type === "association-end") {
|
146
|
+
var associationEnd = create("path");
|
147
|
+
attr(associationEnd, {
|
148
|
+
d: "M 1 5 L 11 10 L 1 15"
|
149
|
+
});
|
150
|
+
addMarker(id, {
|
151
|
+
element: associationEnd,
|
152
|
+
attrs: {
|
153
|
+
fill: "none",
|
154
|
+
stroke,
|
155
|
+
strokeWidth: 1.5
|
156
|
+
},
|
157
|
+
ref: {
|
158
|
+
x: 12,
|
159
|
+
y: 10
|
160
|
+
},
|
161
|
+
scale: 0.5
|
162
|
+
});
|
163
|
+
}
|
164
|
+
if (type === "conditional-flow-marker") {
|
165
|
+
var conditionalflowMarker = create("path");
|
166
|
+
attr(conditionalflowMarker, {
|
167
|
+
d: "M 0 10 L 8 6 L 16 10 L 8 14 Z"
|
168
|
+
});
|
169
|
+
addMarker(id, {
|
170
|
+
element: conditionalflowMarker,
|
171
|
+
attrs: {
|
172
|
+
fill,
|
173
|
+
stroke
|
174
|
+
},
|
175
|
+
ref: {
|
176
|
+
x: -1,
|
177
|
+
y: 10
|
178
|
+
},
|
179
|
+
scale: 0.5
|
180
|
+
});
|
181
|
+
}
|
182
|
+
if (type === "conditional-default-flow-marker") {
|
183
|
+
var conditionaldefaultflowMarker = create("path");
|
184
|
+
attr(conditionaldefaultflowMarker, {
|
185
|
+
d: "M 6 4 L 10 16"
|
186
|
+
});
|
187
|
+
addMarker(id, {
|
188
|
+
element: conditionaldefaultflowMarker,
|
189
|
+
attrs: {
|
190
|
+
stroke
|
191
|
+
},
|
192
|
+
ref: {
|
193
|
+
x: 0,
|
194
|
+
y: 10
|
195
|
+
},
|
196
|
+
scale: 0.5
|
197
|
+
});
|
198
|
+
}
|
199
|
+
}
|
200
|
+
function drawCircle(parentGfx, width, height, offset, attrs) {
|
201
|
+
if (isObject(offset)) {
|
202
|
+
attrs = offset;
|
203
|
+
offset = 0;
|
204
|
+
}
|
205
|
+
offset = offset || 0;
|
206
|
+
attrs = computeStyle(attrs, {
|
207
|
+
stroke: "black",
|
208
|
+
strokeWidth: 2,
|
209
|
+
fill: "white"
|
210
|
+
});
|
211
|
+
if (attrs.fill === "none") {
|
212
|
+
delete attrs.fillOpacity;
|
213
|
+
}
|
214
|
+
var cx = width / 2, cy = height / 2;
|
215
|
+
var circle = create("circle");
|
216
|
+
attr(circle, {
|
217
|
+
cx,
|
218
|
+
cy,
|
219
|
+
r: Math.round((width + height) / 4 - offset)
|
220
|
+
});
|
221
|
+
attr(circle, attrs);
|
222
|
+
append(parentGfx, circle);
|
223
|
+
return circle;
|
224
|
+
}
|
225
|
+
function drawRect(parentGfx, width, height, r, offset, attrs) {
|
226
|
+
if (isObject(offset)) {
|
227
|
+
attrs = offset;
|
228
|
+
offset = 0;
|
229
|
+
}
|
230
|
+
offset = offset || 0;
|
231
|
+
attrs = computeStyle(attrs, {
|
232
|
+
stroke: "black",
|
233
|
+
strokeWidth: 2,
|
234
|
+
fill: "white"
|
235
|
+
});
|
236
|
+
var rect = create("rect");
|
237
|
+
attr(rect, {
|
238
|
+
x: offset,
|
239
|
+
y: offset,
|
240
|
+
width: width - offset * 2,
|
241
|
+
height: height - offset * 2,
|
242
|
+
rx: r,
|
243
|
+
ry: r
|
244
|
+
});
|
245
|
+
attr(rect, attrs);
|
246
|
+
append(parentGfx, rect);
|
247
|
+
return rect;
|
248
|
+
}
|
249
|
+
function drawDiamond(parentGfx, width, height, attrs) {
|
250
|
+
var x_2 = width / 2;
|
251
|
+
var y_2 = height / 2;
|
252
|
+
var points = [{
|
253
|
+
x: x_2,
|
254
|
+
y: 0
|
255
|
+
}, {
|
256
|
+
x: width,
|
257
|
+
y: y_2
|
258
|
+
}, {
|
259
|
+
x: x_2,
|
260
|
+
y: height
|
261
|
+
}, {
|
262
|
+
x: 0,
|
263
|
+
y: y_2
|
264
|
+
}];
|
265
|
+
var pointsString = points.map(function(point) {
|
266
|
+
return point.x + "," + point.y;
|
267
|
+
}).join(" ");
|
268
|
+
attrs = computeStyle(attrs, {
|
269
|
+
stroke: "black",
|
270
|
+
strokeWidth: 2,
|
271
|
+
fill: "white"
|
272
|
+
});
|
273
|
+
var polygon = create("polygon");
|
274
|
+
attr(polygon, {
|
275
|
+
points: pointsString
|
276
|
+
});
|
277
|
+
attr(polygon, attrs);
|
278
|
+
append(parentGfx, polygon);
|
279
|
+
return polygon;
|
280
|
+
}
|
281
|
+
function drawLine(parentGfx, waypoints, attrs) {
|
282
|
+
attrs = computeStyle(attrs, ["no-fill"], {
|
283
|
+
stroke: "black",
|
284
|
+
strokeWidth: 2,
|
285
|
+
fill: "none"
|
286
|
+
});
|
287
|
+
var line = createLine(waypoints, attrs);
|
288
|
+
append(parentGfx, line);
|
289
|
+
return line;
|
290
|
+
}
|
291
|
+
function drawPath(parentGfx, d, attrs) {
|
292
|
+
attrs = computeStyle(attrs, ["no-fill"], {
|
293
|
+
strokeWidth: 2,
|
294
|
+
stroke: "black"
|
295
|
+
});
|
296
|
+
var path = create("path");
|
297
|
+
attr(path, {
|
298
|
+
d
|
299
|
+
});
|
300
|
+
attr(path, attrs);
|
301
|
+
append(parentGfx, path);
|
302
|
+
return path;
|
303
|
+
}
|
304
|
+
function drawMarker(type, parentGfx, path, attrs) {
|
305
|
+
return drawPath(parentGfx, path, assign({
|
306
|
+
"data-marker": type
|
307
|
+
}, attrs));
|
308
|
+
}
|
309
|
+
function as(type) {
|
310
|
+
return function(parentGfx, element) {
|
311
|
+
return handlers[type](parentGfx, element);
|
312
|
+
};
|
313
|
+
}
|
314
|
+
function renderer(type) {
|
315
|
+
return handlers[type];
|
316
|
+
}
|
317
|
+
function renderEventContent(element, parentGfx) {
|
318
|
+
var event = getSemantic(element);
|
319
|
+
var isThrowing = isThrowEvent(event);
|
320
|
+
if (event.eventDefinitions && event.eventDefinitions.length > 1) {
|
321
|
+
if (event.parallelMultiple) {
|
322
|
+
return renderer("bpmn:ParallelMultipleEventDefinition")(parentGfx, element, isThrowing);
|
323
|
+
} else {
|
324
|
+
return renderer("bpmn:MultipleEventDefinition")(parentGfx, element, isThrowing);
|
325
|
+
}
|
326
|
+
}
|
327
|
+
if (isTypedEvent(event, "bpmn:MessageEventDefinition")) {
|
328
|
+
return renderer("bpmn:MessageEventDefinition")(parentGfx, element, isThrowing);
|
329
|
+
}
|
330
|
+
if (isTypedEvent(event, "bpmn:TimerEventDefinition")) {
|
331
|
+
return renderer("bpmn:TimerEventDefinition")(parentGfx, element, isThrowing);
|
332
|
+
}
|
333
|
+
if (isTypedEvent(event, "bpmn:ConditionalEventDefinition")) {
|
334
|
+
return renderer("bpmn:ConditionalEventDefinition")(parentGfx, element);
|
335
|
+
}
|
336
|
+
if (isTypedEvent(event, "bpmn:SignalEventDefinition")) {
|
337
|
+
return renderer("bpmn:SignalEventDefinition")(parentGfx, element, isThrowing);
|
338
|
+
}
|
339
|
+
if (isTypedEvent(event, "bpmn:EscalationEventDefinition")) {
|
340
|
+
return renderer("bpmn:EscalationEventDefinition")(parentGfx, element, isThrowing);
|
341
|
+
}
|
342
|
+
if (isTypedEvent(event, "bpmn:LinkEventDefinition")) {
|
343
|
+
return renderer("bpmn:LinkEventDefinition")(parentGfx, element, isThrowing);
|
344
|
+
}
|
345
|
+
if (isTypedEvent(event, "bpmn:ErrorEventDefinition")) {
|
346
|
+
return renderer("bpmn:ErrorEventDefinition")(parentGfx, element, isThrowing);
|
347
|
+
}
|
348
|
+
if (isTypedEvent(event, "bpmn:CancelEventDefinition")) {
|
349
|
+
return renderer("bpmn:CancelEventDefinition")(parentGfx, element, isThrowing);
|
350
|
+
}
|
351
|
+
if (isTypedEvent(event, "bpmn:CompensateEventDefinition")) {
|
352
|
+
return renderer("bpmn:CompensateEventDefinition")(parentGfx, element, isThrowing);
|
353
|
+
}
|
354
|
+
if (isTypedEvent(event, "bpmn:TerminateEventDefinition")) {
|
355
|
+
return renderer("bpmn:TerminateEventDefinition")(parentGfx, element, isThrowing);
|
356
|
+
}
|
357
|
+
return null;
|
358
|
+
}
|
359
|
+
function renderLabel(parentGfx, label, options) {
|
360
|
+
options = assign({
|
361
|
+
size: {
|
362
|
+
width: 100
|
363
|
+
}
|
364
|
+
}, options);
|
365
|
+
var text = textRenderer.createText(label || "", options);
|
366
|
+
classes(text).add("djs-label");
|
367
|
+
append(parentGfx, text);
|
368
|
+
return text;
|
369
|
+
}
|
370
|
+
function renderEmbeddedLabel(parentGfx, element, align) {
|
371
|
+
var semantic = getSemantic(element);
|
372
|
+
return renderLabel(parentGfx, semantic.name, {
|
373
|
+
box: element,
|
374
|
+
align,
|
375
|
+
padding: 5,
|
376
|
+
style: {
|
377
|
+
fill: getLabelColor(element, defaultLabelColor, defaultStrokeColor)
|
378
|
+
}
|
379
|
+
});
|
380
|
+
}
|
381
|
+
function renderExternalLabel(parentGfx, element) {
|
382
|
+
var box = {
|
383
|
+
width: 90,
|
384
|
+
height: 30,
|
385
|
+
x: element.width / 2 + element.x,
|
386
|
+
y: element.height / 2 + element.y
|
387
|
+
};
|
388
|
+
return renderLabel(parentGfx, getLabel(element), {
|
389
|
+
box,
|
390
|
+
fitBox: true,
|
391
|
+
style: assign({}, textRenderer.getExternalStyle(), {
|
392
|
+
fill: getLabelColor(element, defaultLabelColor, defaultStrokeColor)
|
393
|
+
})
|
394
|
+
});
|
395
|
+
}
|
396
|
+
function renderLaneLabel(parentGfx, text, element) {
|
397
|
+
var textBox = renderLabel(parentGfx, text, {
|
398
|
+
box: {
|
399
|
+
height: 30,
|
400
|
+
width: element.height
|
401
|
+
},
|
402
|
+
align: "center-middle",
|
403
|
+
style: {
|
404
|
+
fill: getLabelColor(element, defaultLabelColor, defaultStrokeColor)
|
405
|
+
}
|
406
|
+
});
|
407
|
+
var top = -1 * element.height;
|
408
|
+
transform(textBox, 0, -top, 270);
|
409
|
+
}
|
410
|
+
function createPathFromConnection(connection) {
|
411
|
+
var waypoints = connection.waypoints;
|
412
|
+
var pathData = "m " + waypoints[0].x + "," + waypoints[0].y;
|
413
|
+
for (var i = 1; i < waypoints.length; i++) {
|
414
|
+
pathData += "L" + waypoints[i].x + "," + waypoints[i].y + " ";
|
415
|
+
}
|
416
|
+
return pathData;
|
417
|
+
}
|
418
|
+
var handlers = this.handlers = {
|
419
|
+
"bpmn:Event": function(parentGfx, element, attrs) {
|
420
|
+
if (!("fillOpacity" in attrs)) {
|
421
|
+
attrs.fillOpacity = DEFAULT_FILL_OPACITY;
|
422
|
+
}
|
423
|
+
return drawCircle(parentGfx, element.width, element.height, attrs);
|
424
|
+
},
|
425
|
+
"bpmn:StartEvent": function(parentGfx, element) {
|
426
|
+
var attrs = {
|
427
|
+
fill: getFillColor(element, defaultFillColor),
|
428
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
429
|
+
};
|
430
|
+
var semantic = getSemantic(element);
|
431
|
+
if (!semantic.isInterrupting) {
|
432
|
+
attrs = {
|
433
|
+
strokeDasharray: "6",
|
434
|
+
strokeLinecap: "round",
|
435
|
+
fill: getFillColor(element, defaultFillColor),
|
436
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
437
|
+
};
|
438
|
+
}
|
439
|
+
var circle = renderer("bpmn:Event")(parentGfx, element, attrs);
|
440
|
+
renderEventContent(element, parentGfx);
|
441
|
+
return circle;
|
442
|
+
},
|
443
|
+
"bpmn:MessageEventDefinition": function(parentGfx, element, isThrowing) {
|
444
|
+
var pathData = pathMap.getScaledPath("EVENT_MESSAGE", {
|
445
|
+
xScaleFactor: 0.9,
|
446
|
+
yScaleFactor: 0.9,
|
447
|
+
containerWidth: element.width,
|
448
|
+
containerHeight: element.height,
|
449
|
+
position: {
|
450
|
+
mx: 0.235,
|
451
|
+
my: 0.315
|
452
|
+
}
|
453
|
+
});
|
454
|
+
var fill = isThrowing ? getStrokeColor(element, defaultStrokeColor) : getFillColor(element, defaultFillColor);
|
455
|
+
var stroke = isThrowing ? getFillColor(element, defaultFillColor) : getStrokeColor(element, defaultStrokeColor);
|
456
|
+
var messagePath = drawPath(parentGfx, pathData, {
|
457
|
+
strokeWidth: 1,
|
458
|
+
fill,
|
459
|
+
stroke
|
460
|
+
});
|
461
|
+
return messagePath;
|
462
|
+
},
|
463
|
+
"bpmn:TimerEventDefinition": function(parentGfx, element) {
|
464
|
+
var circle = drawCircle(parentGfx, element.width, element.height, 0.2 * element.height, {
|
465
|
+
strokeWidth: 2,
|
466
|
+
fill: getFillColor(element, defaultFillColor),
|
467
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
468
|
+
});
|
469
|
+
var pathData = pathMap.getScaledPath("EVENT_TIMER_WH", {
|
470
|
+
xScaleFactor: 0.75,
|
471
|
+
yScaleFactor: 0.75,
|
472
|
+
containerWidth: element.width,
|
473
|
+
containerHeight: element.height,
|
474
|
+
position: {
|
475
|
+
mx: 0.5,
|
476
|
+
my: 0.5
|
477
|
+
}
|
478
|
+
});
|
479
|
+
drawPath(parentGfx, pathData, {
|
480
|
+
strokeWidth: 2,
|
481
|
+
strokeLinecap: "square",
|
482
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
483
|
+
});
|
484
|
+
for (var i = 0; i < 12; i++) {
|
485
|
+
var linePathData = pathMap.getScaledPath("EVENT_TIMER_LINE", {
|
486
|
+
xScaleFactor: 0.75,
|
487
|
+
yScaleFactor: 0.75,
|
488
|
+
containerWidth: element.width,
|
489
|
+
containerHeight: element.height,
|
490
|
+
position: {
|
491
|
+
mx: 0.5,
|
492
|
+
my: 0.5
|
493
|
+
}
|
494
|
+
});
|
495
|
+
var width = element.width / 2;
|
496
|
+
var height = element.height / 2;
|
497
|
+
drawPath(parentGfx, linePathData, {
|
498
|
+
strokeWidth: 1,
|
499
|
+
strokeLinecap: "square",
|
500
|
+
transform: "rotate(" + i * 30 + "," + height + "," + width + ")",
|
501
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
502
|
+
});
|
503
|
+
}
|
504
|
+
return circle;
|
505
|
+
},
|
506
|
+
"bpmn:EscalationEventDefinition": function(parentGfx, event, isThrowing) {
|
507
|
+
var pathData = pathMap.getScaledPath("EVENT_ESCALATION", {
|
508
|
+
xScaleFactor: 1,
|
509
|
+
yScaleFactor: 1,
|
510
|
+
containerWidth: event.width,
|
511
|
+
containerHeight: event.height,
|
512
|
+
position: {
|
513
|
+
mx: 0.5,
|
514
|
+
my: 0.2
|
515
|
+
}
|
516
|
+
});
|
517
|
+
var fill = isThrowing ? getStrokeColor(event, defaultStrokeColor) : "none";
|
518
|
+
return drawPath(parentGfx, pathData, {
|
519
|
+
strokeWidth: 1,
|
520
|
+
fill,
|
521
|
+
stroke: getStrokeColor(event, defaultStrokeColor)
|
522
|
+
});
|
523
|
+
},
|
524
|
+
"bpmn:ConditionalEventDefinition": function(parentGfx, event) {
|
525
|
+
var pathData = pathMap.getScaledPath("EVENT_CONDITIONAL", {
|
526
|
+
xScaleFactor: 1,
|
527
|
+
yScaleFactor: 1,
|
528
|
+
containerWidth: event.width,
|
529
|
+
containerHeight: event.height,
|
530
|
+
position: {
|
531
|
+
mx: 0.5,
|
532
|
+
my: 0.222
|
533
|
+
}
|
534
|
+
});
|
535
|
+
return drawPath(parentGfx, pathData, {
|
536
|
+
strokeWidth: 1,
|
537
|
+
stroke: getStrokeColor(event, defaultStrokeColor)
|
538
|
+
});
|
539
|
+
},
|
540
|
+
"bpmn:LinkEventDefinition": function(parentGfx, event, isThrowing) {
|
541
|
+
var pathData = pathMap.getScaledPath("EVENT_LINK", {
|
542
|
+
xScaleFactor: 1,
|
543
|
+
yScaleFactor: 1,
|
544
|
+
containerWidth: event.width,
|
545
|
+
containerHeight: event.height,
|
546
|
+
position: {
|
547
|
+
mx: 0.57,
|
548
|
+
my: 0.263
|
549
|
+
}
|
550
|
+
});
|
551
|
+
var fill = isThrowing ? getStrokeColor(event, defaultStrokeColor) : "none";
|
552
|
+
return drawPath(parentGfx, pathData, {
|
553
|
+
strokeWidth: 1,
|
554
|
+
fill,
|
555
|
+
stroke: getStrokeColor(event, defaultStrokeColor)
|
556
|
+
});
|
557
|
+
},
|
558
|
+
"bpmn:ErrorEventDefinition": function(parentGfx, event, isThrowing) {
|
559
|
+
var pathData = pathMap.getScaledPath("EVENT_ERROR", {
|
560
|
+
xScaleFactor: 1.1,
|
561
|
+
yScaleFactor: 1.1,
|
562
|
+
containerWidth: event.width,
|
563
|
+
containerHeight: event.height,
|
564
|
+
position: {
|
565
|
+
mx: 0.2,
|
566
|
+
my: 0.722
|
567
|
+
}
|
568
|
+
});
|
569
|
+
var fill = isThrowing ? getStrokeColor(event, defaultStrokeColor) : "none";
|
570
|
+
return drawPath(parentGfx, pathData, {
|
571
|
+
strokeWidth: 1,
|
572
|
+
fill,
|
573
|
+
stroke: getStrokeColor(event, defaultStrokeColor)
|
574
|
+
});
|
575
|
+
},
|
576
|
+
"bpmn:CancelEventDefinition": function(parentGfx, event, isThrowing) {
|
577
|
+
var pathData = pathMap.getScaledPath("EVENT_CANCEL_45", {
|
578
|
+
xScaleFactor: 1,
|
579
|
+
yScaleFactor: 1,
|
580
|
+
containerWidth: event.width,
|
581
|
+
containerHeight: event.height,
|
582
|
+
position: {
|
583
|
+
mx: 0.638,
|
584
|
+
my: -0.055
|
585
|
+
}
|
586
|
+
});
|
587
|
+
var fill = isThrowing ? getStrokeColor(event, defaultStrokeColor) : "none";
|
588
|
+
var path = drawPath(parentGfx, pathData, {
|
589
|
+
strokeWidth: 1,
|
590
|
+
fill,
|
591
|
+
stroke: getStrokeColor(event, defaultStrokeColor)
|
592
|
+
});
|
593
|
+
rotate(path, 45);
|
594
|
+
return path;
|
595
|
+
},
|
596
|
+
"bpmn:CompensateEventDefinition": function(parentGfx, event, isThrowing) {
|
597
|
+
var pathData = pathMap.getScaledPath("EVENT_COMPENSATION", {
|
598
|
+
xScaleFactor: 1,
|
599
|
+
yScaleFactor: 1,
|
600
|
+
containerWidth: event.width,
|
601
|
+
containerHeight: event.height,
|
602
|
+
position: {
|
603
|
+
mx: 0.22,
|
604
|
+
my: 0.5
|
605
|
+
}
|
606
|
+
});
|
607
|
+
var fill = isThrowing ? getStrokeColor(event, defaultStrokeColor) : "none";
|
608
|
+
return drawPath(parentGfx, pathData, {
|
609
|
+
strokeWidth: 1,
|
610
|
+
fill,
|
611
|
+
stroke: getStrokeColor(event, defaultStrokeColor)
|
612
|
+
});
|
613
|
+
},
|
614
|
+
"bpmn:SignalEventDefinition": function(parentGfx, event, isThrowing) {
|
615
|
+
var pathData = pathMap.getScaledPath("EVENT_SIGNAL", {
|
616
|
+
xScaleFactor: 0.9,
|
617
|
+
yScaleFactor: 0.9,
|
618
|
+
containerWidth: event.width,
|
619
|
+
containerHeight: event.height,
|
620
|
+
position: {
|
621
|
+
mx: 0.5,
|
622
|
+
my: 0.2
|
623
|
+
}
|
624
|
+
});
|
625
|
+
var fill = isThrowing ? getStrokeColor(event, defaultStrokeColor) : "none";
|
626
|
+
return drawPath(parentGfx, pathData, {
|
627
|
+
strokeWidth: 1,
|
628
|
+
fill,
|
629
|
+
stroke: getStrokeColor(event, defaultStrokeColor)
|
630
|
+
});
|
631
|
+
},
|
632
|
+
"bpmn:MultipleEventDefinition": function(parentGfx, event, isThrowing) {
|
633
|
+
var pathData = pathMap.getScaledPath("EVENT_MULTIPLE", {
|
634
|
+
xScaleFactor: 1.1,
|
635
|
+
yScaleFactor: 1.1,
|
636
|
+
containerWidth: event.width,
|
637
|
+
containerHeight: event.height,
|
638
|
+
position: {
|
639
|
+
mx: 0.222,
|
640
|
+
my: 0.36
|
641
|
+
}
|
642
|
+
});
|
643
|
+
var fill = isThrowing ? getStrokeColor(event, defaultStrokeColor) : "none";
|
644
|
+
return drawPath(parentGfx, pathData, {
|
645
|
+
strokeWidth: 1,
|
646
|
+
fill
|
647
|
+
});
|
648
|
+
},
|
649
|
+
"bpmn:ParallelMultipleEventDefinition": function(parentGfx, event) {
|
650
|
+
var pathData = pathMap.getScaledPath("EVENT_PARALLEL_MULTIPLE", {
|
651
|
+
xScaleFactor: 1.2,
|
652
|
+
yScaleFactor: 1.2,
|
653
|
+
containerWidth: event.width,
|
654
|
+
containerHeight: event.height,
|
655
|
+
position: {
|
656
|
+
mx: 0.458,
|
657
|
+
my: 0.194
|
658
|
+
}
|
659
|
+
});
|
660
|
+
return drawPath(parentGfx, pathData, {
|
661
|
+
strokeWidth: 1,
|
662
|
+
fill: getStrokeColor(event, defaultStrokeColor),
|
663
|
+
stroke: getStrokeColor(event, defaultStrokeColor)
|
664
|
+
});
|
665
|
+
},
|
666
|
+
"bpmn:EndEvent": function(parentGfx, element) {
|
667
|
+
var circle = renderer("bpmn:Event")(parentGfx, element, {
|
668
|
+
strokeWidth: 4,
|
669
|
+
fill: getFillColor(element, defaultFillColor),
|
670
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
671
|
+
});
|
672
|
+
renderEventContent(element, parentGfx);
|
673
|
+
return circle;
|
674
|
+
},
|
675
|
+
"bpmn:TerminateEventDefinition": function(parentGfx, element) {
|
676
|
+
var circle = drawCircle(parentGfx, element.width, element.height, 8, {
|
677
|
+
strokeWidth: 4,
|
678
|
+
fill: getStrokeColor(element, defaultStrokeColor),
|
679
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
680
|
+
});
|
681
|
+
return circle;
|
682
|
+
},
|
683
|
+
"bpmn:IntermediateEvent": function(parentGfx, element) {
|
684
|
+
var outer = renderer("bpmn:Event")(parentGfx, element, {
|
685
|
+
strokeWidth: 1,
|
686
|
+
fill: getFillColor(element, defaultFillColor),
|
687
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
688
|
+
});
|
689
|
+
drawCircle(parentGfx, element.width, element.height, INNER_OUTER_DIST, {
|
690
|
+
strokeWidth: 1,
|
691
|
+
fill: getFillColor(element, "none"),
|
692
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
693
|
+
});
|
694
|
+
renderEventContent(element, parentGfx);
|
695
|
+
return outer;
|
696
|
+
},
|
697
|
+
"bpmn:IntermediateCatchEvent": as("bpmn:IntermediateEvent"),
|
698
|
+
"bpmn:IntermediateThrowEvent": as("bpmn:IntermediateEvent"),
|
699
|
+
"bpmn:Activity": function(parentGfx, element, attrs) {
|
700
|
+
attrs = attrs || {};
|
701
|
+
if (!("fillOpacity" in attrs)) {
|
702
|
+
attrs.fillOpacity = DEFAULT_FILL_OPACITY;
|
703
|
+
}
|
704
|
+
return drawRect(parentGfx, element.width, element.height, TASK_BORDER_RADIUS, attrs);
|
705
|
+
},
|
706
|
+
"bpmn:Task": function(parentGfx, element) {
|
707
|
+
var attrs = {
|
708
|
+
fill: getFillColor(element, defaultFillColor),
|
709
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
710
|
+
};
|
711
|
+
var rect = renderer("bpmn:Activity")(parentGfx, element, attrs);
|
712
|
+
renderEmbeddedLabel(parentGfx, element, "center-middle");
|
713
|
+
attachTaskMarkers(parentGfx, element);
|
714
|
+
return rect;
|
715
|
+
},
|
716
|
+
"bpmn:ServiceTask": function(parentGfx, element) {
|
717
|
+
var task = renderer("bpmn:Task")(parentGfx, element);
|
718
|
+
return task;
|
719
|
+
},
|
720
|
+
"bpmn:UserTask": function(parentGfx, element) {
|
721
|
+
var task = renderer("bpmn:Task")(parentGfx, element);
|
722
|
+
return task;
|
723
|
+
},
|
724
|
+
"bpmn:ManualTask": function(parentGfx, element) {
|
725
|
+
var task = renderer("bpmn:Task")(parentGfx, element);
|
726
|
+
var pathData = pathMap.getScaledPath("TASK_TYPE_MANUAL", {
|
727
|
+
abspos: {
|
728
|
+
x: 17,
|
729
|
+
y: 15
|
730
|
+
}
|
731
|
+
});
|
732
|
+
drawPath(parentGfx, pathData, {
|
733
|
+
strokeWidth: 0.5,
|
734
|
+
fill: getFillColor(element, defaultFillColor),
|
735
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
736
|
+
});
|
737
|
+
return task;
|
738
|
+
},
|
739
|
+
"bpmn:SendTask": function(parentGfx, element) {
|
740
|
+
var task = renderer("bpmn:Task")(parentGfx, element);
|
741
|
+
var pathData = pathMap.getScaledPath("TASK_TYPE_SEND", {
|
742
|
+
xScaleFactor: 1,
|
743
|
+
yScaleFactor: 1,
|
744
|
+
containerWidth: 21,
|
745
|
+
containerHeight: 14,
|
746
|
+
position: {
|
747
|
+
mx: 0.285,
|
748
|
+
my: 0.357
|
749
|
+
}
|
750
|
+
});
|
751
|
+
drawPath(parentGfx, pathData, {
|
752
|
+
strokeWidth: 1,
|
753
|
+
fill: getStrokeColor(element, defaultStrokeColor),
|
754
|
+
stroke: getFillColor(element, defaultFillColor)
|
755
|
+
});
|
756
|
+
return task;
|
757
|
+
},
|
758
|
+
"bpmn:ReceiveTask": function(parentGfx, element) {
|
759
|
+
var semantic = getSemantic(element);
|
760
|
+
var task = renderer("bpmn:Task")(parentGfx, element);
|
761
|
+
var pathData;
|
762
|
+
if (semantic.instantiate) {
|
763
|
+
drawCircle(parentGfx, 28, 28, 20 * 0.22, {
|
764
|
+
strokeWidth: 1
|
765
|
+
});
|
766
|
+
pathData = pathMap.getScaledPath("TASK_TYPE_INSTANTIATING_SEND", {
|
767
|
+
abspos: {
|
768
|
+
x: 7.77,
|
769
|
+
y: 9.52
|
770
|
+
}
|
771
|
+
});
|
772
|
+
} else {
|
773
|
+
pathData = pathMap.getScaledPath("TASK_TYPE_SEND", {
|
774
|
+
xScaleFactor: 0.9,
|
775
|
+
yScaleFactor: 0.9,
|
776
|
+
containerWidth: 21,
|
777
|
+
containerHeight: 14,
|
778
|
+
position: {
|
779
|
+
mx: 0.3,
|
780
|
+
my: 0.4
|
781
|
+
}
|
782
|
+
});
|
783
|
+
}
|
784
|
+
drawPath(parentGfx, pathData, {
|
785
|
+
strokeWidth: 1,
|
786
|
+
fill: getFillColor(element, defaultFillColor),
|
787
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
788
|
+
});
|
789
|
+
return task;
|
790
|
+
},
|
791
|
+
"bpmn:ScriptTask": function(parentGfx, element) {
|
792
|
+
var task = renderer("bpmn:Task")(parentGfx, element);
|
793
|
+
return task;
|
794
|
+
},
|
795
|
+
"bpmn:BusinessRuleTask": function(parentGfx, element) {
|
796
|
+
var task = renderer("bpmn:Task")(parentGfx, element);
|
797
|
+
var headerPathData = pathMap.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER", {
|
798
|
+
abspos: {
|
799
|
+
x: 8,
|
800
|
+
y: 8
|
801
|
+
}
|
802
|
+
});
|
803
|
+
var businessHeaderPath = drawPath(parentGfx, headerPathData);
|
804
|
+
attr(businessHeaderPath, {
|
805
|
+
strokeWidth: 1,
|
806
|
+
fill: getFillColor(element, "#aaaaaa"),
|
807
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
808
|
+
});
|
809
|
+
var headerData = pathMap.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN", {
|
810
|
+
abspos: {
|
811
|
+
x: 8,
|
812
|
+
y: 8
|
813
|
+
}
|
814
|
+
});
|
815
|
+
var businessPath = drawPath(parentGfx, headerData);
|
816
|
+
attr(businessPath, {
|
817
|
+
strokeWidth: 1,
|
818
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
819
|
+
});
|
820
|
+
return task;
|
821
|
+
},
|
822
|
+
"bpmn:SubProcess": function(parentGfx, element, attrs) {
|
823
|
+
attrs = assign({
|
824
|
+
fill: getFillColor(element, defaultFillColor),
|
825
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
826
|
+
}, attrs);
|
827
|
+
var rect = renderer("bpmn:Activity")(parentGfx, element, attrs);
|
828
|
+
var expanded = isExpanded(element);
|
829
|
+
if (isEventSubProcess(element)) {
|
830
|
+
attr(rect, {
|
831
|
+
strokeDasharray: "1,2"
|
832
|
+
});
|
833
|
+
}
|
834
|
+
renderEmbeddedLabel(parentGfx, element, expanded ? "center-top" : "center-middle");
|
835
|
+
if (expanded) {
|
836
|
+
attachTaskMarkers(parentGfx, element);
|
837
|
+
} else {
|
838
|
+
attachTaskMarkers(parentGfx, element, ["SubProcessMarker"]);
|
839
|
+
}
|
840
|
+
return rect;
|
841
|
+
},
|
842
|
+
"bpmn:AdHocSubProcess": function(parentGfx, element) {
|
843
|
+
return renderer("bpmn:SubProcess")(parentGfx, element);
|
844
|
+
},
|
845
|
+
"bpmn:Transaction": function(parentGfx, element) {
|
846
|
+
var outer = renderer("bpmn:SubProcess")(parentGfx, element);
|
847
|
+
var innerAttrs = styles.style(["no-fill", "no-events"], {
|
848
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
849
|
+
});
|
850
|
+
drawRect(parentGfx, element.width, element.height, TASK_BORDER_RADIUS - 2, INNER_OUTER_DIST, innerAttrs);
|
851
|
+
return outer;
|
852
|
+
},
|
853
|
+
"bpmn:CallActivity": function(parentGfx, element) {
|
854
|
+
return renderer("bpmn:SubProcess")(parentGfx, element, {
|
855
|
+
strokeWidth: 5
|
856
|
+
});
|
857
|
+
},
|
858
|
+
"bpmn:Participant": function(parentGfx, element) {
|
859
|
+
var attrs = {
|
860
|
+
fillOpacity: DEFAULT_FILL_OPACITY,
|
861
|
+
fill: getFillColor(element, defaultFillColor),
|
862
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
863
|
+
};
|
864
|
+
var lane = renderer("bpmn:Lane")(parentGfx, element, attrs);
|
865
|
+
var expandedPool = isExpanded(element);
|
866
|
+
if (expandedPool) {
|
867
|
+
drawLine(parentGfx, [{
|
868
|
+
x: 30,
|
869
|
+
y: 0
|
870
|
+
}, {
|
871
|
+
x: 30,
|
872
|
+
y: element.height
|
873
|
+
}], {
|
874
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
875
|
+
});
|
876
|
+
var text = getSemantic(element).name;
|
877
|
+
renderLaneLabel(parentGfx, text, element);
|
878
|
+
} else {
|
879
|
+
var text2 = getSemantic(element).name;
|
880
|
+
renderLabel(parentGfx, text2, {
|
881
|
+
box: element,
|
882
|
+
align: "center-middle",
|
883
|
+
style: {
|
884
|
+
fill: getLabelColor(element, defaultLabelColor, defaultStrokeColor)
|
885
|
+
}
|
886
|
+
});
|
887
|
+
}
|
888
|
+
var participantMultiplicity = !!getSemantic(element).participantMultiplicity;
|
889
|
+
if (participantMultiplicity) {
|
890
|
+
renderer("ParticipantMultiplicityMarker")(parentGfx, element);
|
891
|
+
}
|
892
|
+
return lane;
|
893
|
+
},
|
894
|
+
"bpmn:Lane": function(parentGfx, element, attrs) {
|
895
|
+
var rect = drawRect(parentGfx, element.width, element.height, 0, assign({
|
896
|
+
fill: getFillColor(element, defaultFillColor),
|
897
|
+
fillOpacity: HIGH_FILL_OPACITY,
|
898
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
899
|
+
}, attrs));
|
900
|
+
var semantic = getSemantic(element);
|
901
|
+
if (semantic.$type === "bpmn:Lane") {
|
902
|
+
var text = semantic.name;
|
903
|
+
renderLaneLabel(parentGfx, text, element);
|
904
|
+
}
|
905
|
+
return rect;
|
906
|
+
},
|
907
|
+
"bpmn:InclusiveGateway": function(parentGfx, element) {
|
908
|
+
var diamond = renderer("bpmn:Gateway")(parentGfx, element);
|
909
|
+
drawCircle(parentGfx, element.width, element.height, element.height * 0.24, {
|
910
|
+
strokeWidth: 2.5,
|
911
|
+
fill: getFillColor(element, defaultFillColor),
|
912
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
913
|
+
});
|
914
|
+
return diamond;
|
915
|
+
},
|
916
|
+
"bpmn:ExclusiveGateway": function(parentGfx, element) {
|
917
|
+
var diamond = renderer("bpmn:Gateway")(parentGfx, element);
|
918
|
+
var pathData = pathMap.getScaledPath("GATEWAY_EXCLUSIVE", {
|
919
|
+
xScaleFactor: 0.4,
|
920
|
+
yScaleFactor: 0.4,
|
921
|
+
containerWidth: element.width,
|
922
|
+
containerHeight: element.height,
|
923
|
+
position: {
|
924
|
+
mx: 0.32,
|
925
|
+
my: 0.3
|
926
|
+
}
|
927
|
+
});
|
928
|
+
if (getDi(element).isMarkerVisible) {
|
929
|
+
drawPath(parentGfx, pathData, {
|
930
|
+
strokeWidth: 1,
|
931
|
+
fill: getStrokeColor(element, defaultStrokeColor),
|
932
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
933
|
+
});
|
934
|
+
}
|
935
|
+
return diamond;
|
936
|
+
},
|
937
|
+
"bpmn:ComplexGateway": function(parentGfx, element) {
|
938
|
+
var diamond = renderer("bpmn:Gateway")(parentGfx, element);
|
939
|
+
var pathData = pathMap.getScaledPath("GATEWAY_COMPLEX", {
|
940
|
+
xScaleFactor: 0.5,
|
941
|
+
yScaleFactor: 0.5,
|
942
|
+
containerWidth: element.width,
|
943
|
+
containerHeight: element.height,
|
944
|
+
position: {
|
945
|
+
mx: 0.46,
|
946
|
+
my: 0.26
|
947
|
+
}
|
948
|
+
});
|
949
|
+
drawPath(parentGfx, pathData, {
|
950
|
+
strokeWidth: 1,
|
951
|
+
fill: getStrokeColor(element, defaultStrokeColor),
|
952
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
953
|
+
});
|
954
|
+
return diamond;
|
955
|
+
},
|
956
|
+
"bpmn:ParallelGateway": function(parentGfx, element) {
|
957
|
+
var diamond = renderer("bpmn:Gateway")(parentGfx, element);
|
958
|
+
var pathData = pathMap.getScaledPath("GATEWAY_PARALLEL", {
|
959
|
+
xScaleFactor: 0.6,
|
960
|
+
yScaleFactor: 0.6,
|
961
|
+
containerWidth: element.width,
|
962
|
+
containerHeight: element.height,
|
963
|
+
position: {
|
964
|
+
mx: 0.46,
|
965
|
+
my: 0.2
|
966
|
+
}
|
967
|
+
});
|
968
|
+
drawPath(parentGfx, pathData, {
|
969
|
+
strokeWidth: 1,
|
970
|
+
fill: getStrokeColor(element, defaultStrokeColor),
|
971
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
972
|
+
});
|
973
|
+
return diamond;
|
974
|
+
},
|
975
|
+
"bpmn:EventBasedGateway": function(parentGfx, element) {
|
976
|
+
var semantic = getSemantic(element);
|
977
|
+
var diamond = renderer("bpmn:Gateway")(parentGfx, element);
|
978
|
+
drawCircle(parentGfx, element.width, element.height, element.height * 0.2, {
|
979
|
+
strokeWidth: 1,
|
980
|
+
fill: "none",
|
981
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
982
|
+
});
|
983
|
+
var type = semantic.eventGatewayType;
|
984
|
+
var instantiate = !!semantic.instantiate;
|
985
|
+
function drawEvent() {
|
986
|
+
var pathData2 = pathMap.getScaledPath("GATEWAY_EVENT_BASED", {
|
987
|
+
xScaleFactor: 0.18,
|
988
|
+
yScaleFactor: 0.18,
|
989
|
+
containerWidth: element.width,
|
990
|
+
containerHeight: element.height,
|
991
|
+
position: {
|
992
|
+
mx: 0.36,
|
993
|
+
my: 0.44
|
994
|
+
}
|
995
|
+
});
|
996
|
+
var attrs = {
|
997
|
+
strokeWidth: 2,
|
998
|
+
fill: getFillColor(element, "none"),
|
999
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1000
|
+
};
|
1001
|
+
drawPath(parentGfx, pathData2, attrs);
|
1002
|
+
}
|
1003
|
+
if (type === "Parallel") {
|
1004
|
+
var pathData = pathMap.getScaledPath("GATEWAY_PARALLEL", {
|
1005
|
+
xScaleFactor: 0.4,
|
1006
|
+
yScaleFactor: 0.4,
|
1007
|
+
containerWidth: element.width,
|
1008
|
+
containerHeight: element.height,
|
1009
|
+
position: {
|
1010
|
+
mx: 0.474,
|
1011
|
+
my: 0.296
|
1012
|
+
}
|
1013
|
+
});
|
1014
|
+
var parallelPath = drawPath(parentGfx, pathData);
|
1015
|
+
attr(parallelPath, {
|
1016
|
+
strokeWidth: 1,
|
1017
|
+
fill: "none"
|
1018
|
+
});
|
1019
|
+
} else if (type === "Exclusive") {
|
1020
|
+
if (!instantiate) {
|
1021
|
+
var innerCircle = drawCircle(parentGfx, element.width, element.height, element.height * 0.26);
|
1022
|
+
attr(innerCircle, {
|
1023
|
+
strokeWidth: 1,
|
1024
|
+
fill: "none",
|
1025
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1026
|
+
});
|
1027
|
+
}
|
1028
|
+
drawEvent();
|
1029
|
+
}
|
1030
|
+
return diamond;
|
1031
|
+
},
|
1032
|
+
"bpmn:Gateway": function(parentGfx, element) {
|
1033
|
+
var attrs = {
|
1034
|
+
fill: getFillColor(element, defaultFillColor),
|
1035
|
+
fillOpacity: DEFAULT_FILL_OPACITY,
|
1036
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1037
|
+
};
|
1038
|
+
return drawDiamond(parentGfx, element.width, element.height, attrs);
|
1039
|
+
},
|
1040
|
+
"bpmn:SequenceFlow": function(parentGfx, element) {
|
1041
|
+
var pathData = createPathFromConnection(element);
|
1042
|
+
var fill = getFillColor(element, defaultFillColor), stroke = getStrokeColor(element, defaultStrokeColor);
|
1043
|
+
var attrs = {
|
1044
|
+
strokeLinejoin: "round",
|
1045
|
+
markerEnd: marker("sequenceflow-end", fill, stroke),
|
1046
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1047
|
+
};
|
1048
|
+
var path = drawPath(parentGfx, pathData, attrs);
|
1049
|
+
var sequenceFlow = getSemantic(element);
|
1050
|
+
var source;
|
1051
|
+
if (element.source) {
|
1052
|
+
source = element.source.businessObject;
|
1053
|
+
if (sequenceFlow.conditionExpression && source.$instanceOf("bpmn:Activity")) {
|
1054
|
+
attr(path, {
|
1055
|
+
markerStart: marker("conditional-flow-marker", fill, stroke)
|
1056
|
+
});
|
1057
|
+
}
|
1058
|
+
if (source.default && (source.$instanceOf("bpmn:Gateway") || source.$instanceOf("bpmn:Activity")) && source.default === sequenceFlow) {
|
1059
|
+
attr(path, {
|
1060
|
+
markerStart: marker("conditional-default-flow-marker", fill, stroke)
|
1061
|
+
});
|
1062
|
+
}
|
1063
|
+
}
|
1064
|
+
return path;
|
1065
|
+
},
|
1066
|
+
"bpmn:Association": function(parentGfx, element, attrs) {
|
1067
|
+
var semantic = getSemantic(element);
|
1068
|
+
var fill = getFillColor(element, defaultFillColor), stroke = getStrokeColor(element, defaultStrokeColor);
|
1069
|
+
attrs = assign({
|
1070
|
+
strokeDasharray: "0.5, 5",
|
1071
|
+
strokeLinecap: "round",
|
1072
|
+
strokeLinejoin: "round",
|
1073
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1074
|
+
}, attrs || {});
|
1075
|
+
if (semantic.associationDirection === "One" || semantic.associationDirection === "Both") {
|
1076
|
+
attrs.markerEnd = marker("association-end", fill, stroke);
|
1077
|
+
}
|
1078
|
+
if (semantic.associationDirection === "Both") {
|
1079
|
+
attrs.markerStart = marker("association-start", fill, stroke);
|
1080
|
+
}
|
1081
|
+
return drawLine(parentGfx, element.waypoints, attrs);
|
1082
|
+
},
|
1083
|
+
"bpmn:DataInputAssociation": function(parentGfx, element) {
|
1084
|
+
var fill = getFillColor(element, defaultFillColor), stroke = getStrokeColor(element, defaultStrokeColor);
|
1085
|
+
return renderer("bpmn:Association")(parentGfx, element, {
|
1086
|
+
markerEnd: marker("association-end", fill, stroke)
|
1087
|
+
});
|
1088
|
+
},
|
1089
|
+
"bpmn:DataOutputAssociation": function(parentGfx, element) {
|
1090
|
+
var fill = getFillColor(element, defaultFillColor), stroke = getStrokeColor(element, defaultStrokeColor);
|
1091
|
+
return renderer("bpmn:Association")(parentGfx, element, {
|
1092
|
+
markerEnd: marker("association-end", fill, stroke)
|
1093
|
+
});
|
1094
|
+
},
|
1095
|
+
"bpmn:MessageFlow": function(parentGfx, element) {
|
1096
|
+
var semantic = getSemantic(element), di = getDi(element);
|
1097
|
+
var fill = getFillColor(element, defaultFillColor), stroke = getStrokeColor(element, defaultStrokeColor);
|
1098
|
+
var pathData = createPathFromConnection(element);
|
1099
|
+
var attrs = {
|
1100
|
+
markerEnd: marker("messageflow-end", fill, stroke),
|
1101
|
+
markerStart: marker("messageflow-start", fill, stroke),
|
1102
|
+
strokeDasharray: "10, 12",
|
1103
|
+
strokeLinecap: "round",
|
1104
|
+
strokeLinejoin: "round",
|
1105
|
+
strokeWidth: "1.5px",
|
1106
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1107
|
+
};
|
1108
|
+
var path = drawPath(parentGfx, pathData, attrs);
|
1109
|
+
if (semantic.messageRef) {
|
1110
|
+
var midPoint = path.getPointAtLength(path.getTotalLength() / 2);
|
1111
|
+
var markerPathData = pathMap.getScaledPath("MESSAGE_FLOW_MARKER", {
|
1112
|
+
abspos: {
|
1113
|
+
x: midPoint.x,
|
1114
|
+
y: midPoint.y
|
1115
|
+
}
|
1116
|
+
});
|
1117
|
+
var messageAttrs = {
|
1118
|
+
strokeWidth: 1
|
1119
|
+
};
|
1120
|
+
if (di.messageVisibleKind === "initiating") {
|
1121
|
+
messageAttrs.fill = "white";
|
1122
|
+
messageAttrs.stroke = "black";
|
1123
|
+
} else {
|
1124
|
+
messageAttrs.fill = "#888";
|
1125
|
+
messageAttrs.stroke = "white";
|
1126
|
+
}
|
1127
|
+
var message = drawPath(parentGfx, markerPathData, messageAttrs);
|
1128
|
+
var labelText = semantic.messageRef.name;
|
1129
|
+
var label = renderLabel(parentGfx, labelText, {
|
1130
|
+
align: "center-top",
|
1131
|
+
fitBox: true,
|
1132
|
+
style: {
|
1133
|
+
fill: getStrokeColor(element, defaultLabelColor, defaultStrokeColor)
|
1134
|
+
}
|
1135
|
+
});
|
1136
|
+
var messageBounds = message.getBBox(), labelBounds = label.getBBox();
|
1137
|
+
var translateX = midPoint.x - labelBounds.width / 2, translateY = midPoint.y + messageBounds.height / 2 + ELEMENT_LABEL_DISTANCE;
|
1138
|
+
transform(label, translateX, translateY, 0);
|
1139
|
+
}
|
1140
|
+
return path;
|
1141
|
+
},
|
1142
|
+
"bpmn:DataObject": function(parentGfx, element) {
|
1143
|
+
var pathData = pathMap.getScaledPath("DATA_OBJECT_PATH", {
|
1144
|
+
xScaleFactor: 1,
|
1145
|
+
yScaleFactor: 1,
|
1146
|
+
containerWidth: element.width,
|
1147
|
+
containerHeight: element.height,
|
1148
|
+
position: {
|
1149
|
+
mx: 0.474,
|
1150
|
+
my: 0.296
|
1151
|
+
}
|
1152
|
+
});
|
1153
|
+
var elementObject = drawPath(parentGfx, pathData, {
|
1154
|
+
fill: getFillColor(element, defaultFillColor),
|
1155
|
+
fillOpacity: DEFAULT_FILL_OPACITY,
|
1156
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1157
|
+
});
|
1158
|
+
var semantic = getSemantic(element);
|
1159
|
+
if (isCollection(semantic)) {
|
1160
|
+
renderDataItemCollection(parentGfx, element);
|
1161
|
+
}
|
1162
|
+
return elementObject;
|
1163
|
+
},
|
1164
|
+
"bpmn:DataObjectReference": as("bpmn:DataObject"),
|
1165
|
+
"bpmn:DataInput": function(parentGfx, element) {
|
1166
|
+
var arrowPathData = pathMap.getRawPath("DATA_ARROW");
|
1167
|
+
var elementObject = renderer("bpmn:DataObject")(parentGfx, element);
|
1168
|
+
drawPath(parentGfx, arrowPathData, {
|
1169
|
+
strokeWidth: 1
|
1170
|
+
});
|
1171
|
+
return elementObject;
|
1172
|
+
},
|
1173
|
+
"bpmn:DataOutput": function(parentGfx, element) {
|
1174
|
+
var arrowPathData = pathMap.getRawPath("DATA_ARROW");
|
1175
|
+
var elementObject = renderer("bpmn:DataObject")(parentGfx, element);
|
1176
|
+
drawPath(parentGfx, arrowPathData, {
|
1177
|
+
strokeWidth: 1,
|
1178
|
+
fill: "black"
|
1179
|
+
});
|
1180
|
+
return elementObject;
|
1181
|
+
},
|
1182
|
+
"bpmn:DataStoreReference": function(parentGfx, element) {
|
1183
|
+
var DATA_STORE_PATH = pathMap.getScaledPath("DATA_STORE", {
|
1184
|
+
xScaleFactor: 1,
|
1185
|
+
yScaleFactor: 1,
|
1186
|
+
containerWidth: element.width,
|
1187
|
+
containerHeight: element.height,
|
1188
|
+
position: {
|
1189
|
+
mx: 0,
|
1190
|
+
my: 0.133
|
1191
|
+
}
|
1192
|
+
});
|
1193
|
+
var elementStore = drawPath(parentGfx, DATA_STORE_PATH, {
|
1194
|
+
strokeWidth: 2,
|
1195
|
+
fill: getFillColor(element, defaultFillColor),
|
1196
|
+
fillOpacity: DEFAULT_FILL_OPACITY,
|
1197
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1198
|
+
});
|
1199
|
+
return elementStore;
|
1200
|
+
},
|
1201
|
+
"bpmn:BoundaryEvent": function(parentGfx, element) {
|
1202
|
+
var semantic = getSemantic(element), cancel = semantic.cancelActivity;
|
1203
|
+
var attrs = {
|
1204
|
+
strokeWidth: 1,
|
1205
|
+
fill: getFillColor(element, defaultFillColor),
|
1206
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1207
|
+
};
|
1208
|
+
if (!cancel) {
|
1209
|
+
attrs.strokeDasharray = "6";
|
1210
|
+
attrs.strokeLinecap = "round";
|
1211
|
+
}
|
1212
|
+
var outerAttrs = assign({}, attrs, {
|
1213
|
+
fillOpacity: 1
|
1214
|
+
});
|
1215
|
+
var innerAttrs = assign({}, attrs, {
|
1216
|
+
fill: "none"
|
1217
|
+
});
|
1218
|
+
var outer = renderer("bpmn:Event")(parentGfx, element, outerAttrs);
|
1219
|
+
drawCircle(parentGfx, element.width, element.height, INNER_OUTER_DIST, innerAttrs);
|
1220
|
+
renderEventContent(element, parentGfx);
|
1221
|
+
return outer;
|
1222
|
+
},
|
1223
|
+
"bpmn:Group": function(parentGfx, element) {
|
1224
|
+
var group = drawRect(parentGfx, element.width, element.height, TASK_BORDER_RADIUS, {
|
1225
|
+
stroke: getStrokeColor(element, defaultStrokeColor),
|
1226
|
+
strokeWidth: 1,
|
1227
|
+
strokeDasharray: "8,3,1,3",
|
1228
|
+
fill: "none",
|
1229
|
+
pointerEvents: "none"
|
1230
|
+
});
|
1231
|
+
return group;
|
1232
|
+
},
|
1233
|
+
label: function(parentGfx, element) {
|
1234
|
+
return renderExternalLabel(parentGfx, element);
|
1235
|
+
},
|
1236
|
+
"bpmn:TextAnnotation": function(parentGfx, element) {
|
1237
|
+
var style = {
|
1238
|
+
fill: "none",
|
1239
|
+
stroke: "none"
|
1240
|
+
};
|
1241
|
+
var textElement = drawRect(parentGfx, element.width, element.height, 0, 0, style);
|
1242
|
+
var textPathData = pathMap.getScaledPath("TEXT_ANNOTATION", {
|
1243
|
+
xScaleFactor: 1,
|
1244
|
+
yScaleFactor: 1,
|
1245
|
+
containerWidth: element.width,
|
1246
|
+
containerHeight: element.height,
|
1247
|
+
position: {
|
1248
|
+
mx: 0,
|
1249
|
+
my: 0
|
1250
|
+
}
|
1251
|
+
});
|
1252
|
+
drawPath(parentGfx, textPathData, {
|
1253
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1254
|
+
});
|
1255
|
+
var text = getSemantic(element).text || "";
|
1256
|
+
renderLabel(parentGfx, text, {
|
1257
|
+
box: element,
|
1258
|
+
align: "left-top",
|
1259
|
+
padding: 5,
|
1260
|
+
style: {
|
1261
|
+
fill: getLabelColor(element, defaultLabelColor, defaultStrokeColor)
|
1262
|
+
}
|
1263
|
+
});
|
1264
|
+
return textElement;
|
1265
|
+
},
|
1266
|
+
ParticipantMultiplicityMarker: function(parentGfx, element) {
|
1267
|
+
var markerPath = pathMap.getScaledPath("MARKER_PARALLEL", {
|
1268
|
+
xScaleFactor: 1,
|
1269
|
+
yScaleFactor: 1,
|
1270
|
+
containerWidth: element.width,
|
1271
|
+
containerHeight: element.height,
|
1272
|
+
position: {
|
1273
|
+
mx: element.width / 2 / element.width,
|
1274
|
+
my: (element.height - 15) / element.height
|
1275
|
+
}
|
1276
|
+
});
|
1277
|
+
drawMarker("participant-multiplicity", parentGfx, markerPath, {
|
1278
|
+
strokeWidth: 2,
|
1279
|
+
fill: getFillColor(element, defaultFillColor),
|
1280
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1281
|
+
});
|
1282
|
+
},
|
1283
|
+
SubProcessMarker: function(parentGfx, element) {
|
1284
|
+
var markerRect = drawRect(parentGfx, 14, 14, 0, {
|
1285
|
+
strokeWidth: 1,
|
1286
|
+
fill: getFillColor(element, defaultFillColor),
|
1287
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1288
|
+
});
|
1289
|
+
translate(markerRect, element.width / 2 - 7.5, element.height - 20);
|
1290
|
+
var markerPath = pathMap.getScaledPath("MARKER_SUB_PROCESS", {
|
1291
|
+
xScaleFactor: 1.5,
|
1292
|
+
yScaleFactor: 1.5,
|
1293
|
+
containerWidth: element.width,
|
1294
|
+
containerHeight: element.height,
|
1295
|
+
position: {
|
1296
|
+
mx: (element.width / 2 - 7.5) / element.width,
|
1297
|
+
my: (element.height - 20) / element.height
|
1298
|
+
}
|
1299
|
+
});
|
1300
|
+
drawMarker("sub-process", parentGfx, markerPath, {
|
1301
|
+
fill: getFillColor(element, defaultFillColor),
|
1302
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1303
|
+
});
|
1304
|
+
},
|
1305
|
+
ParallelMarker: function(parentGfx, element, position) {
|
1306
|
+
var markerPath = pathMap.getScaledPath("MARKER_PARALLEL", {
|
1307
|
+
xScaleFactor: 1,
|
1308
|
+
yScaleFactor: 1,
|
1309
|
+
containerWidth: element.width,
|
1310
|
+
containerHeight: element.height,
|
1311
|
+
position: {
|
1312
|
+
mx: (element.width / 2 + position.parallel) / element.width,
|
1313
|
+
my: (element.height - 20) / element.height
|
1314
|
+
}
|
1315
|
+
});
|
1316
|
+
drawMarker("parallel", parentGfx, markerPath, {
|
1317
|
+
fill: getFillColor(element, defaultFillColor),
|
1318
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1319
|
+
});
|
1320
|
+
},
|
1321
|
+
SequentialMarker: function(parentGfx, element, position) {
|
1322
|
+
var markerPath = pathMap.getScaledPath("MARKER_SEQUENTIAL", {
|
1323
|
+
xScaleFactor: 1,
|
1324
|
+
yScaleFactor: 1,
|
1325
|
+
containerWidth: element.width,
|
1326
|
+
containerHeight: element.height,
|
1327
|
+
position: {
|
1328
|
+
mx: (element.width / 2 + position.seq) / element.width,
|
1329
|
+
my: (element.height - 19) / element.height
|
1330
|
+
}
|
1331
|
+
});
|
1332
|
+
drawMarker("sequential", parentGfx, markerPath, {
|
1333
|
+
fill: getFillColor(element, defaultFillColor),
|
1334
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1335
|
+
});
|
1336
|
+
},
|
1337
|
+
CompensationMarker: function(parentGfx, element, position) {
|
1338
|
+
var markerMath = pathMap.getScaledPath("MARKER_COMPENSATION", {
|
1339
|
+
xScaleFactor: 1,
|
1340
|
+
yScaleFactor: 1,
|
1341
|
+
containerWidth: element.width,
|
1342
|
+
containerHeight: element.height,
|
1343
|
+
position: {
|
1344
|
+
mx: (element.width / 2 + position.compensation) / element.width,
|
1345
|
+
my: (element.height - 13) / element.height
|
1346
|
+
}
|
1347
|
+
});
|
1348
|
+
drawMarker("compensation", parentGfx, markerMath, {
|
1349
|
+
strokeWidth: 1,
|
1350
|
+
fill: getFillColor(element, defaultFillColor),
|
1351
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1352
|
+
});
|
1353
|
+
},
|
1354
|
+
LoopMarker: function(parentGfx, element, position) {
|
1355
|
+
var markerPath = pathMap.getScaledPath("MARKER_LOOP", {
|
1356
|
+
xScaleFactor: 1,
|
1357
|
+
yScaleFactor: 1,
|
1358
|
+
containerWidth: element.width,
|
1359
|
+
containerHeight: element.height,
|
1360
|
+
position: {
|
1361
|
+
mx: (element.width / 2 + position.loop) / element.width,
|
1362
|
+
my: (element.height - 7) / element.height
|
1363
|
+
}
|
1364
|
+
});
|
1365
|
+
drawMarker("loop", parentGfx, markerPath, {
|
1366
|
+
strokeWidth: 1,
|
1367
|
+
fill: getFillColor(element, defaultFillColor),
|
1368
|
+
stroke: getStrokeColor(element, defaultStrokeColor),
|
1369
|
+
strokeLinecap: "round",
|
1370
|
+
strokeMiterlimit: 0.5
|
1371
|
+
});
|
1372
|
+
},
|
1373
|
+
AdhocMarker: function(parentGfx, element, position) {
|
1374
|
+
var markerPath = pathMap.getScaledPath("MARKER_ADHOC", {
|
1375
|
+
xScaleFactor: 1,
|
1376
|
+
yScaleFactor: 1,
|
1377
|
+
containerWidth: element.width,
|
1378
|
+
containerHeight: element.height,
|
1379
|
+
position: {
|
1380
|
+
mx: (element.width / 2 + position.adhoc) / element.width,
|
1381
|
+
my: (element.height - 15) / element.height
|
1382
|
+
}
|
1383
|
+
});
|
1384
|
+
drawMarker("adhoc", parentGfx, markerPath, {
|
1385
|
+
strokeWidth: 1,
|
1386
|
+
fill: getStrokeColor(element, defaultStrokeColor),
|
1387
|
+
stroke: getStrokeColor(element, defaultStrokeColor)
|
1388
|
+
});
|
1389
|
+
}
|
1390
|
+
};
|
1391
|
+
function attachTaskMarkers(parentGfx, element, taskMarkers) {
|
1392
|
+
var obj = getSemantic(element);
|
1393
|
+
var subprocess = taskMarkers && taskMarkers.indexOf("SubProcessMarker") !== -1;
|
1394
|
+
var position;
|
1395
|
+
if (subprocess) {
|
1396
|
+
position = {
|
1397
|
+
seq: -21,
|
1398
|
+
parallel: -22,
|
1399
|
+
compensation: -42,
|
1400
|
+
loop: -18,
|
1401
|
+
adhoc: 10
|
1402
|
+
};
|
1403
|
+
} else {
|
1404
|
+
position = {
|
1405
|
+
seq: -3,
|
1406
|
+
parallel: -6,
|
1407
|
+
compensation: -27,
|
1408
|
+
loop: 0,
|
1409
|
+
adhoc: 10
|
1410
|
+
};
|
1411
|
+
}
|
1412
|
+
forEach(taskMarkers, function(marker2) {
|
1413
|
+
renderer(marker2)(parentGfx, element, position);
|
1414
|
+
});
|
1415
|
+
if (obj.isForCompensation) {
|
1416
|
+
renderer("CompensationMarker")(parentGfx, element, position);
|
1417
|
+
}
|
1418
|
+
if (obj.$type === "bpmn:AdHocSubProcess") {
|
1419
|
+
renderer("AdhocMarker")(parentGfx, element, position);
|
1420
|
+
}
|
1421
|
+
var loopCharacteristics = obj.loopCharacteristics, isSequential = loopCharacteristics && loopCharacteristics.isSequential;
|
1422
|
+
if (loopCharacteristics) {
|
1423
|
+
if (isSequential === void 0) {
|
1424
|
+
renderer("LoopMarker")(parentGfx, element, position);
|
1425
|
+
}
|
1426
|
+
if (isSequential === false) {
|
1427
|
+
renderer("ParallelMarker")(parentGfx, element, position);
|
1428
|
+
}
|
1429
|
+
if (isSequential === true) {
|
1430
|
+
renderer("SequentialMarker")(parentGfx, element, position);
|
1431
|
+
}
|
1432
|
+
}
|
1433
|
+
}
|
1434
|
+
function renderDataItemCollection(parentGfx, element) {
|
1435
|
+
var yPosition = (element.height - 18) / element.height;
|
1436
|
+
var pathData = pathMap.getScaledPath("DATA_OBJECT_COLLECTION_PATH", {
|
1437
|
+
xScaleFactor: 1,
|
1438
|
+
yScaleFactor: 1,
|
1439
|
+
containerWidth: element.width,
|
1440
|
+
containerHeight: element.height,
|
1441
|
+
position: {
|
1442
|
+
mx: 0.33,
|
1443
|
+
my: yPosition
|
1444
|
+
}
|
1445
|
+
});
|
1446
|
+
drawPath(parentGfx, pathData, {
|
1447
|
+
strokeWidth: 2
|
1448
|
+
});
|
1449
|
+
}
|
1450
|
+
this._drawPath = drawPath;
|
1451
|
+
}
|
1452
|
+
inherits(BpmnRenderer, BaseRenderer);
|
1453
|
+
BpmnRenderer.$inject = ["config.bpmnRenderer", "eventBus", "styles", "pathMap", "canvas", "textRenderer"];
|
1454
|
+
BpmnRenderer.prototype.canRender = function(element) {
|
1455
|
+
return is(element, "bpmn:BaseElement");
|
1456
|
+
};
|
1457
|
+
BpmnRenderer.prototype.drawShape = function(parentGfx, element) {
|
1458
|
+
var type = element.type;
|
1459
|
+
var h = this.handlers[type];
|
1460
|
+
return h(parentGfx, element);
|
1461
|
+
};
|
1462
|
+
BpmnRenderer.prototype.drawConnection = function(parentGfx, element) {
|
1463
|
+
var type = element.type;
|
1464
|
+
var h = this.handlers[type];
|
1465
|
+
return h(parentGfx, element);
|
1466
|
+
};
|
1467
|
+
BpmnRenderer.prototype.getShapePath = function(element) {
|
1468
|
+
if (is(element, "bpmn:Event")) {
|
1469
|
+
return getCirclePath(element);
|
1470
|
+
}
|
1471
|
+
if (is(element, "bpmn:Activity")) {
|
1472
|
+
return getRoundRectPath(element, TASK_BORDER_RADIUS);
|
1473
|
+
}
|
1474
|
+
if (is(element, "bpmn:Gateway")) {
|
1475
|
+
return getDiamondPath(element);
|
1476
|
+
}
|
1477
|
+
return getRectPath(element);
|
1478
|
+
};
|
1479
|
+
|
1480
|
+
export { BpmnRenderer as default };
|