cnhis-design-vue 3.1.37-beta.0 → 3.1.37-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/button-print/src/utils/print.js +1 -6
- package/es/components/fabric-chart/src/FabricChart.vue.js +9 -9
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +129 -42
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +151 -0
- package/es/components/fabric-chart/src/hooks/useCenter.js +6 -7
- package/es/components/fabric-chart/src/hooks/useOther.js +3 -2
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/utils/utils.js +7 -4
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +2 -2
- package/es/components/form-render/src/FormRender.vue.js +11 -1
- package/es/components/form-render/src/components/renderer/formItem.js +16 -13
- package/es/components/form-render/src/constants/index.js +14 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.js +0 -4
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +85 -0
- package/es/components/iho-table/src/IhoTable.vue.js +9 -4
- package/es/components/iho-table/src/constants/index.js +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.js +15 -21
- package/es/components/iho-table/src/utils/index.js +5 -2
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +0 -3
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -1
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +2 -3
- package/es/shared/utils/tapable/Hook.js +1 -1
- package/es/shared/utils/tapable/HookCodeFactory.js +3 -6
- package/es/shared/utils/tapable/SyncWaterfallHook.js +1 -2
- package/package.json +2 -2
- package/es/components/annotation-edit/index.d.ts +0 -17
- package/es/components/annotation-edit/src/AnnotationEdit.d.ts +0 -16
- package/es/components/big-table/index.d.ts +0 -1176
- package/es/components/big-table/src/BigTable.vue.d.ts +0 -1175
- package/es/components/big-table/src/bigTableEmits.d.ts +0 -2
- package/es/components/big-table/src/bigTableProps.d.ts +0 -211
- package/es/components/big-table/src/bigTableState.d.ts +0 -58
- package/es/components/big-table/src/components/NoData.vue.d.ts +0 -49
- package/es/components/big-table/src/components/edit-form/edit-date.d.ts +0 -34
- package/es/components/big-table/src/components/edit-form/edit-input.d.ts +0 -43
- package/es/components/big-table/src/components/edit-form/edit-select-table.d.ts +0 -35
- package/es/components/big-table/src/components/edit-form/edit-select.d.ts +0 -35
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +0 -134
- package/es/components/big-table/src/components/edit-form/edit-time.d.ts +0 -43
- package/es/components/big-table/src/components/edit-form/useCommon.d.ts +0 -5
- package/es/components/big-table/src/components/input-button.vue.d.ts +0 -10
- package/es/components/big-table/src/components/separate.vue.d.ts +0 -41
- package/es/components/big-table/src/constants/index.d.ts +0 -3
- package/es/components/big-table/src/hooks/index.d.ts +0 -9
- package/es/components/big-table/src/hooks/useAnchor.d.ts +0 -7
- package/es/components/big-table/src/hooks/useAnnotation.d.ts +0 -4
- package/es/components/big-table/src/hooks/useBatchEditing.d.ts +0 -17
- package/es/components/big-table/src/hooks/useEdit.d.ts +0 -339
- package/es/components/big-table/src/hooks/useEvent.d.ts +0 -6
- package/es/components/big-table/src/hooks/useFormat.d.ts +0 -30
- package/es/components/big-table/src/hooks/useNestTable.d.ts +0 -8
- package/es/components/big-table/src/hooks/useSeparateRow.d.ts +0 -40
- package/es/components/big-table/src/hooks/useTableParse.d.ts +0 -6
- package/es/components/big-table/src/utils.d.ts +0 -61
- package/es/components/bpmn-workflow/index.d.ts +0 -72
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.d.ts +0 -75
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.d.ts +0 -75
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.d.ts +0 -24
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette.d.ts +0 -19
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.d.ts +0 -70
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.d.ts +0 -21
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.d.ts +0 -12
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/index.d.ts +0 -16
- package/es/components/bpmn-workflow/src/custom/customModeler/index.d.ts +0 -6
- package/es/components/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu.d.ts +0 -5
- package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.d.ts +0 -12
- package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.d.ts +0 -5
- package/es/components/bpmn-workflow/src/custom/customRules/no-task.d.ts +0 -4
- package/es/components/bpmn-workflow/src/custom/customTranslate/customTranslate.d.ts +0 -1
- package/es/components/bpmn-workflow/src/custom/customTranslate/zh.d.ts +0 -226
- package/es/components/button-print/index.d.ts +0 -1904
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +0 -1911
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +0 -1244
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +0 -1632
- package/es/components/button-print/src/components/Preview.vue.d.ts +0 -41
- package/es/components/button-print/src/utils/browserPrint.d.ts +0 -2
- package/es/components/button-print/src/utils/dialog.d.ts +0 -12
- package/es/components/button-print/src/utils/index.d.ts +0 -2
- package/es/components/button-print/src/utils/print.d.ts +0 -56
- package/es/components/drag-layout/index.d.ts +0 -606
- package/es/components/drag-layout/index.js +0 -11
- package/es/components/drag-layout/src/DragFormLeftItem.vue.d.ts +0 -21
- package/es/components/drag-layout/src/DragFormLeftItem.vue.js +0 -122
- package/es/components/drag-layout/src/DragFormRightItem.vue.d.ts +0 -125
- package/es/components/drag-layout/src/DragFormRightItem.vue.js +0 -267
- package/es/components/drag-layout/src/DragLayout.vue.d.ts +0 -606
- package/es/components/drag-layout/src/DragLayout.vue.js +0 -662
- package/es/components/drag-layout/style/index.css +0 -1
- package/es/components/editor/index.d.ts +0 -30
- package/es/components/editor/src/Editor.d.ts +0 -30
- package/es/components/fabric-chart/index.d.ts +0 -182
- package/es/components/fabric-chart/src/BirthProcessChart.vue.d.ts +0 -181
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +0 -184
- package/es/components/fabric-chart/src/components/PopupMenu.d.ts +0 -46
- package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +0 -64
- package/es/components/fabric-chart/src/components/useStyle.d.ts +0 -7
- package/es/components/fabric-chart/src/hooks/constant.d.ts +0 -54
- package/es/components/fabric-chart/src/hooks/index.d.ts +0 -11
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +0 -26
- package/es/components/fabric-chart/src/hooks/useBottom.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +0 -16
- package/es/components/fabric-chart/src/hooks/useCommon.d.ts +0 -8
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +0 -14
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +0 -44
- package/es/components/fabric-chart/src/hooks/useEvent.d.ts +0 -7
- package/es/components/fabric-chart/src/hooks/useGrid.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useLeft.d.ts +0 -7
- package/es/components/fabric-chart/src/hooks/useOther.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useRight.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useShadow.d.ts +0 -6
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.d.ts +0 -25
- package/es/components/fabric-chart/src/hooks/useTop.d.ts +0 -4
- package/es/components/fabric-chart/src/interface.d.ts +0 -151
- package/es/components/fabric-chart/src/utils/utils.d.ts +0 -13
- package/es/components/field-set/index.d.ts +0 -243
- package/es/components/field-set/src/FieldSet.vue.d.ts +0 -197
- package/es/components/form-config/index.d.ts +0 -3321
- package/es/components/form-config/src/FormConfig.vue.d.ts +0 -3322
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +0 -664
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +0 -108
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +0 -2385
- package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +0 -14
- package/es/components/form-config/src/components/index.d.ts +0 -5
- package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +0 -27
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +0 -169
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +0 -71
- package/es/components/form-config/src/components/renderer/index.d.ts +0 -4
- package/es/components/form-config/src/constants/index.d.ts +0 -65
- package/es/components/form-config/src/hooks/index.d.ts +0 -3
- package/es/components/form-config/src/hooks/useConfigurationField.d.ts +0 -8
- package/es/components/form-config/src/hooks/useDataNormalize.d.ts +0 -5
- package/es/components/form-config/src/hooks/usePresetRenderer.d.ts +0 -4
- package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +0 -13
- package/es/components/form-config/src/types/index.d.ts +0 -39
- package/es/components/form-config/src/utils/index.d.ts +0 -7
- package/es/components/form-render/index.d.ts +0 -646
- package/es/components/form-render/src/FormRender.vue.d.ts +0 -639
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +0 -643
- package/es/components/form-render/src/components/renderer/checkbox.d.ts +0 -90
- package/es/components/form-render/src/components/renderer/combination.d.ts +0 -51
- package/es/components/form-render/src/components/renderer/complex.d.ts +0 -34
- package/es/components/form-render/src/components/renderer/date.d.ts +0 -52
- package/es/components/form-render/src/components/renderer/formItem.d.ts +0 -15
- package/es/components/form-render/src/components/renderer/index.d.ts +0 -3
- package/es/components/form-render/src/components/renderer/input.d.ts +0 -23
- package/es/components/form-render/src/components/renderer/inputGroup.d.ts +0 -11
- package/es/components/form-render/src/components/renderer/inputNumber.d.ts +0 -31
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.d.ts +0 -5
- package/es/components/form-render/src/components/renderer/jsonCombination/index.d.ts +0 -44
- package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +0 -91
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +0 -69
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +0 -68
- package/es/components/form-render/src/components/renderer/radio.d.ts +0 -94
- package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +0 -41
- package/es/components/form-render/src/components/renderer/searchCascade.d.ts +0 -58
- package/es/components/form-render/src/components/renderer/select.d.ts +0 -140
- package/es/components/form-render/src/components/renderer/simpleComponent.d.ts +0 -18
- package/es/components/form-render/src/components/renderer/slider.d.ts +0 -11
- package/es/components/form-render/src/components/renderer/switch.d.ts +0 -23
- package/es/components/form-render/src/components/renderer/textarea.d.ts +0 -11
- package/es/components/form-render/src/components/tooltipMessage.vue.d.ts +0 -13
- package/es/components/form-render/src/constants/index.d.ts +0 -42
- package/es/components/form-render/src/hooks/index.d.ts +0 -15
- package/es/components/form-render/src/hooks/useAnchor.d.ts +0 -16
- package/es/components/form-render/src/hooks/useAsyncQueue.d.ts +0 -47
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +0 -27
- package/es/components/form-render/src/hooks/useChangeContext.d.ts +0 -11
- package/es/components/form-render/src/hooks/useCommonInjection.d.ts +0 -15
- package/es/components/form-render/src/hooks/useCommonLog.d.ts +0 -3
- package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +0 -64
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +0 -5
- package/es/components/form-render/src/hooks/useFieldVisitor.d.ts +0 -4
- package/es/components/form-render/src/hooks/useFormContext.d.ts +0 -11
- package/es/components/form-render/src/hooks/useFormField.d.ts +0 -5
- package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +0 -11
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +0 -13
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +0 -39
- package/es/components/form-render/src/hooks/useFormRequest.d.ts +0 -26
- package/es/components/form-render/src/hooks/useFormValidator.d.ts +0 -6
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.d.ts +0 -4
- package/es/components/form-render/src/hooks/usePresetScope.d.ts +0 -6
- package/es/components/form-render/src/types/fieldItem.d.ts +0 -265
- package/es/components/form-render/src/types/index.d.ts +0 -84
- package/es/components/form-render/src/utils/business.d.ts +0 -13
- package/es/components/form-render/src/utils/dom.d.ts +0 -13
- package/es/components/form-render/src/utils/index.d.ts +0 -38
- package/es/components/form-render/src/utils/schema.d.ts +0 -83
- package/es/components/grid/index.d.ts +0 -3
- package/es/components/grid/src/Grid.d.ts +0 -2
- package/es/components/grid/src/hooks.d.ts +0 -1
- package/es/components/iho-table/index.d.ts +0 -4638
- package/es/components/iho-table/src/IhoTable.vue.d.ts +0 -4637
- package/es/components/iho-table/src/constants/index.d.ts +0 -80
- package/es/components/iho-table/src/hooks/export.d.ts +0 -2
- package/es/components/iho-table/src/hooks/index.d.ts +0 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +0 -93
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +0 -31
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +0 -16
- package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.d.ts +0 -15
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +0 -251
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +0 -13
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +0 -25
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +0 -10
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.d.ts +0 -11
- package/es/components/iho-table/src/hooks/useTableContext.d.ts +0 -9
- package/es/components/iho-table/src/hooks/useTablePlugin.d.ts +0 -8
- package/es/components/iho-table/src/plugins/anchorPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.d.ts +0 -2
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +0 -13
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.d.ts +0 -169
- package/es/components/iho-table/src/plugins/filterPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/filterPlugin/types.d.ts +0 -7
- package/es/components/iho-table/src/plugins/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +0 -96
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts +0 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +0 -43
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +0 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +0 -94
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +0 -12
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +0 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rowClickPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +0 -11
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/types/index.d.ts +0 -108
- package/es/components/iho-table/src/types/pluginType.d.ts +0 -173
- package/es/components/iho-table/src/utils/index.d.ts +0 -48
- package/es/components/index.d.ts +0 -38
- package/es/components/info-header/index.d.ts +0 -415
- package/es/components/info-header/src/HiddenContent.vue.d.ts +0 -86
- package/es/components/info-header/src/InfoEllipsis.vue.d.ts +0 -33
- package/es/components/info-header/src/InfoHeader.vue.d.ts +0 -405
- package/es/components/insurance-sdk/index.d.ts +0 -1
- package/es/components/insurance-sdk/src/constants/index.d.ts +0 -161
- package/es/components/insurance-sdk/src/utils/index.d.ts +0 -1
- package/es/components/insurance-sdk/src/utils/insurance.d.ts +0 -260
- package/es/components/keyboard/index.d.ts +0 -334
- package/es/components/keyboard/src/Keyboard.vue.d.ts +0 -335
- package/es/components/keyboard/src/components/InputNumber.vue.d.ts +0 -64
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +0 -191
- package/es/components/keyboard/src/utils/index.d.ts +0 -1
- package/es/components/map/index.d.ts +0 -75
- package/es/components/map/src/Map.vue.d.ts +0 -75
- package/es/components/recommend-search/index.d.ts +0 -815
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +0 -817
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +0 -143
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +0 -341
- package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +0 -63
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +0 -300
- package/es/components/recommend-search/src/constant/index.d.ts +0 -4
- package/es/components/recommend-search/src/types/index.d.ts +0 -9
- package/es/components/scale-view/index.d.ts +0 -1400
- package/es/components/scale-view/src/ScaleView.vue.d.ts +0 -1222
- package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +0 -70
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +0 -154
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +0 -110
- package/es/components/scale-view/src/components/NoData.vue.d.ts +0 -49
- package/es/components/scale-view/src/components/ScaleScore.d.ts +0 -23
- package/es/components/scale-view/src/components/composables/choose-common.d.ts +0 -11
- package/es/components/scale-view/src/components/formitem/address.d.ts +0 -3992
- package/es/components/scale-view/src/components/formitem/r-address.d.ts +0 -34
- package/es/components/scale-view/src/components/formitem/r-cascader.d.ts +0 -43
- package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +0 -43
- package/es/components/scale-view/src/components/formitem/r-collection.d.ts +0 -32
- package/es/components/scale-view/src/components/formitem/r-datetime.d.ts +0 -34
- package/es/components/scale-view/src/components/formitem/r-input.d.ts +0 -34
- package/es/components/scale-view/src/components/formitem/r-map.d.ts +0 -52
- package/es/components/scale-view/src/components/formitem/r-radio.d.ts +0 -43
- package/es/components/scale-view/src/components/formitem/r-select.d.ts +0 -61
- package/es/components/scale-view/src/components/formitem/r-sign.d.ts +0 -34
- package/es/components/scale-view/src/components/formitem/r-upload.d.ts +0 -52
- package/es/components/scale-view/src/components/formitem/sign-com.d.ts +0 -63
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +0 -80
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +0 -87
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +0 -43
- package/es/components/scale-view/src/hooks/scaleview-init.d.ts +0 -3
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +0 -115
- package/es/components/scale-view/src/hooks/scaleview-state.d.ts +0 -34
- package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +0 -3
- package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +0 -3
- package/es/components/scale-view/src/hooks/use-component.d.ts +0 -1814
- package/es/components/scale-view/src/hooks/use-evaluate.d.ts +0 -21
- package/es/components/scale-view/src/hooks/use-event.d.ts +0 -4
- package/es/components/scale-view/src/hooks/use-noData.d.ts +0 -9
- package/es/components/scale-view/src/utils/judge-types.d.ts +0 -5
- package/es/components/search-cascader/index.d.ts +0 -233
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +0 -235
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +0 -50
- package/es/components/search-cascader/src/components/index.d.ts +0 -1
- package/es/components/search-cascader/src/constants/index.d.ts +0 -5
- package/es/components/search-cascader/src/hooks/index.d.ts +0 -1
- package/es/components/search-cascader/src/hooks/useCssVariable.d.ts +0 -3
- package/es/components/search-cascader/src/utils/index.d.ts +0 -2
- package/es/components/select-label/index.d.ts +0 -988
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +0 -367
- package/es/components/select-label/src/SelectLabel.vue.d.ts +0 -622
- package/es/components/select-label/src/components/label-classify.vue.d.ts +0 -122
- package/es/components/select-person/index.d.ts +0 -251
- package/es/components/select-person/src/SelectPerson.vue.d.ts +0 -250
- package/es/components/select-person/src/utils/index.d.ts +0 -3
- package/es/components/shortcut-provider/index.d.ts +0 -21
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +0 -19
- package/es/components/shortcut-provider/src/constants/index.d.ts +0 -7
- package/es/components/shortcut-provider/src/hooks/index.d.ts +0 -2
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature.d.ts +0 -4
- package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +0 -33
- package/es/components/shortcut-provider/src/types/index.d.ts +0 -43
- package/es/components/shortcut-provider/src/utils/index.d.ts +0 -10
- package/es/components/shortcut-setter/index.d.ts +0 -2373
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +0 -2375
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +0 -99
- package/es/components/shortcut-setter/src/types/index.d.ts +0 -6
- package/es/components/steps-wheel/index.d.ts +0 -115
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +0 -114
- package/es/components/time-line/index.d.ts +0 -109
- package/es/components/time-line/src/TimeLine.vue.d.ts +0 -85
- package/es/components/vod-chunk-upload/index.d.ts +0 -232
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +0 -196
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.d.ts +0 -11
- package/es/components/vod-chunk-upload/src/hooks/upload-data.d.ts +0 -63
- package/es/components/vod-chunk-upload/src/hooks/vod-computed.d.ts +0 -10
- package/es/components/vod-chunk-upload/src/hooks/vod-data.d.ts +0 -23
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.d.ts +0 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +0 -230
- package/es/components/vod-chunk-upload/src/vod-upload-modal.d.ts +0 -25
- package/es/shared/components/SelectPage/SelectPage.vue.d.ts +0 -51
- package/es/shared/components/SelectPage/index.d.ts +0 -2
- package/es/shared/components/SlotRender/SlotRender.d.ts +0 -20
- package/es/shared/components/SlotRender/index.d.ts +0 -2
- package/es/shared/components/SvgIcon/SvgIcon.vue.d.ts +0 -43
- package/es/shared/components/SvgIcon/index.d.ts +0 -2
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +0 -87
- package/es/shared/components/TextOverTooltip/index.d.ts +0 -2
- package/es/shared/components/VueDraggable/index.d.ts +0 -2
- package/es/shared/components/VueDraggable/src/core/componentBuilderHelper.d.ts +0 -9
- package/es/shared/components/VueDraggable/src/core/componentStructure.d.ts +0 -22
- package/es/shared/components/VueDraggable/src/core/renderHelper.d.ts +0 -7
- package/es/shared/components/VueDraggable/src/core/sortableEvents.d.ts +0 -10
- package/es/shared/components/VueDraggable/src/util/console.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/util/htmlHelper.d.ts +0 -2
- package/es/shared/components/VueDraggable/src/util/string.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/util/tags.d.ts +0 -3
- package/es/shared/components/no-data/NoData.vue.d.ts +0 -49
- package/es/shared/components/no-data/index.d.ts +0 -2
- package/es/shared/components/player-vod/index.vue.d.ts +0 -2
- package/es/shared/components/player-vod/player.d.ts +0 -17
- package/es/shared/components/player-vod/video-list.d.ts +0 -32
- package/es/shared/components/player-vod/video-modal.d.ts +0 -54
- package/es/shared/global/variable.d.ts +0 -1
- package/es/shared/index.d.ts +0 -0
- package/es/shared/types/index.d.ts +0 -22
- package/es/shared/utils/anime.d.ts +0 -35
- package/es/shared/utils/clickoutside.d.ts +0 -18
- package/es/shared/utils/clickoutside.js +0 -52
- package/es/shared/utils/colorLog.d.ts +0 -31
- package/es/shared/utils/index.d.ts +0 -16
- package/es/shared/utils/loadViewer.d.ts +0 -2
- package/es/shared/utils/state.d.ts +0 -29
- package/es/shared/utils/state.js +0 -44
- package/es/shared/utils/tapable/AsyncParallelBailHook.d.ts +0 -3
- package/es/shared/utils/tapable/AsyncParallelHook.d.ts +0 -3
- package/es/shared/utils/tapable/AsyncSeriesBailHook.d.ts +0 -3
- package/es/shared/utils/tapable/AsyncSeriesHook.d.ts +0 -3
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.d.ts +0 -3
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.d.ts +0 -3
- package/es/shared/utils/tapable/Hook.d.ts +0 -50
- package/es/shared/utils/tapable/HookCodeFactory.d.ts +0 -58
- package/es/shared/utils/tapable/HookMap.d.ts +0 -11
- package/es/shared/utils/tapable/MultiHook.d.ts +0 -12
- package/es/shared/utils/tapable/SyncBailHook.d.ts +0 -3
- package/es/shared/utils/tapable/SyncHook.d.ts +0 -3
- package/es/shared/utils/tapable/SyncLoopHook.d.ts +0 -3
- package/es/shared/utils/tapable/SyncWaterfallHook.d.ts +0 -3
- package/es/shared/utils/utilExpand.d.ts +0 -1
- package/es/shared/utils/vexutils.d.ts +0 -10
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
import { isArray } from 'lodash-es';
|
|
3
2
|
import { IdentityVerificationDialog, PreviewDialog } from './dialog.js';
|
|
4
3
|
import { isIReport, useBrowserPrint } from './browserPrint.js';
|
|
5
4
|
import { getCurrentInstance } from 'vue';
|
|
@@ -318,11 +317,7 @@ class Print {
|
|
|
318
317
|
onReject(null);
|
|
319
318
|
if (isIReport(params.formatId))
|
|
320
319
|
return onResolve(res);
|
|
321
|
-
onResolve(await this._downloadPDF(
|
|
322
|
-
function getFiledir(filedir) {
|
|
323
|
-
const result = JSON.parse(filedir);
|
|
324
|
-
return isArray(result) ? result[0] || "" : "";
|
|
325
|
-
}
|
|
320
|
+
onResolve(await this._downloadPDF(res.filedir));
|
|
326
321
|
},
|
|
327
322
|
(err) => onReject(err),
|
|
328
323
|
"downloadPDF"
|
|
@@ -3,32 +3,32 @@ import { fabric } from './utils/index.js';
|
|
|
3
3
|
import PopupTip from './components/PopupTip.vue.js';
|
|
4
4
|
import PopupMenu from './components/PopupMenu.js';
|
|
5
5
|
import useTemperatureChart from './hooks/useTemperatureChart.js';
|
|
6
|
+
import useBirthProcessChart from './hooks/useBirthProcessChart.js';
|
|
6
7
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
7
8
|
|
|
8
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
10
|
__name: "FabricChart",
|
|
10
11
|
props: {
|
|
11
|
-
|
|
12
|
+
type: { type: String, default: "temperature" },
|
|
12
13
|
data: { type: Object, required: true },
|
|
13
14
|
addRenderItem: { type: Function }
|
|
14
15
|
},
|
|
15
16
|
emits: [
|
|
16
17
|
"change",
|
|
17
18
|
"add",
|
|
18
|
-
"
|
|
19
|
+
"remove",
|
|
19
20
|
"select"
|
|
20
21
|
],
|
|
21
22
|
setup(__props, { expose, emit: emits }) {
|
|
22
23
|
const props = __props;
|
|
23
|
-
computed(() => props.
|
|
24
|
+
const isTemperature = computed(() => props.type === "temperature");
|
|
24
25
|
const canvasRef = ref(null);
|
|
25
26
|
const canvas = ref();
|
|
26
|
-
const { propItems, redrawPoints, select, pointTipProps, pointMenuProps, clickMenu } =
|
|
27
|
-
|
|
28
|
-
props,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
);
|
|
27
|
+
const { propItems, redrawPoints, select, pointTipProps, pointMenuProps, clickMenu } = init();
|
|
28
|
+
function init() {
|
|
29
|
+
const params = [canvas, props, emits, canvasRef];
|
|
30
|
+
return isTemperature.value ? useTemperatureChart(...params) : useBirthProcessChart(...params);
|
|
31
|
+
}
|
|
32
32
|
onMounted(() => {
|
|
33
33
|
canvas.value = new fabric.Canvas(canvasRef.value, {
|
|
34
34
|
width: propItems.canvasWidth,
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { reactive, onMounted, nextTick } from 'vue';
|
|
2
1
|
import { useBirthProcessCumputedPoint } from './useCumputedPoint.js';
|
|
3
2
|
import useGrid from './useGrid.js';
|
|
4
|
-
import { drawLine, drawPoint,
|
|
3
|
+
import { drawLine, drawPoint, defaultTextStyle, drawText, defaultRectStyle } from './useDraw.js';
|
|
5
4
|
import { fabric } from '../utils/index.js';
|
|
6
5
|
import { getIndex, isEffectiveNode } from '../utils/utils.js';
|
|
7
|
-
import { useCommon } from './useCommon.js';
|
|
8
6
|
import { cloneDeep } from 'lodash-es';
|
|
9
7
|
|
|
10
|
-
function useBirthProcess(canvas, propItems, emits) {
|
|
8
|
+
function useBirthProcess(canvas, propItems, emits, pointTipProps, pointMenuProps, commonFunc) {
|
|
11
9
|
const { cumputedX, cumputedY, getXValue, getYValue } = useBirthProcessCumputedPoint(propItems);
|
|
12
|
-
const { getEqualXTypes } =
|
|
10
|
+
const { getEqualXTypes, repeatTip } = commonFunc;
|
|
13
11
|
const {
|
|
14
12
|
xAxis,
|
|
15
13
|
grid,
|
|
@@ -30,20 +28,18 @@ function useBirthProcess(canvas, propItems, emits) {
|
|
|
30
28
|
event,
|
|
31
29
|
originYCervix
|
|
32
30
|
} = propItems;
|
|
33
|
-
const pointTipProps = reactive({
|
|
34
|
-
show: false,
|
|
35
|
-
point: { x: 0, y: 0 },
|
|
36
|
-
list: []
|
|
37
|
-
});
|
|
38
|
-
const pointMenuProps = reactive({
|
|
39
|
-
show: false,
|
|
40
|
-
point: { x: 0, y: 0 },
|
|
41
|
-
list: [],
|
|
42
|
-
target: null
|
|
43
|
-
});
|
|
44
31
|
const yScaleValue = cloneDeep(scaleValues);
|
|
45
32
|
const gridPoints = /* @__PURE__ */ new Set();
|
|
46
33
|
useGrid(canvas, propItems, true);
|
|
34
|
+
init();
|
|
35
|
+
function init() {
|
|
36
|
+
drawYScale();
|
|
37
|
+
drawXScale();
|
|
38
|
+
drawBorder();
|
|
39
|
+
drawPolyLine();
|
|
40
|
+
setCanvasEvent();
|
|
41
|
+
drawIcons();
|
|
42
|
+
}
|
|
47
43
|
function drawPolyLine() {
|
|
48
44
|
yScaleValue.forEach((item, dataIndex) => {
|
|
49
45
|
var _a;
|
|
@@ -161,8 +157,8 @@ function useBirthProcess(canvas, propItems, emits) {
|
|
|
161
157
|
const { dataIndex, data, index, key } = params;
|
|
162
158
|
const item = yScaleValue.find((v) => v.key === key);
|
|
163
159
|
switch (mode) {
|
|
164
|
-
case "
|
|
165
|
-
item.data.splice(index,
|
|
160
|
+
case "remove":
|
|
161
|
+
item.data.splice(index, 1);
|
|
166
162
|
break;
|
|
167
163
|
case "change":
|
|
168
164
|
item.data[index] = data;
|
|
@@ -240,7 +236,7 @@ function useBirthProcess(canvas, propItems, emits) {
|
|
|
240
236
|
pointMenuProps.target = null;
|
|
241
237
|
pointMenuProps.list = ["\u65B0\u589E\u8282\u70B9"];
|
|
242
238
|
yScaleValue.forEach((item) => {
|
|
243
|
-
if (!getEqualXTypes(x, "key").includes(item.key)) {
|
|
239
|
+
if (!getEqualXTypes(x, "key", xCellWidth).includes(item.key)) {
|
|
244
240
|
if (["cervix", "fetalPresentation"].includes(item.key) && y < originYCervix)
|
|
245
241
|
return;
|
|
246
242
|
pointMenuProps.list.push(getPointMenuList(item, event2.pointer));
|
|
@@ -248,17 +244,19 @@ function useBirthProcess(canvas, propItems, emits) {
|
|
|
248
244
|
});
|
|
249
245
|
if (pointMenuProps.list.length === 1) {
|
|
250
246
|
pointMenuProps.show = false;
|
|
247
|
+
repeatTip();
|
|
251
248
|
console.log("\u5F53\u524D\u65F6\u95F4\u6BB5\u5185\u65E0\u53EF\u65B0\u589E\u8282\u70B9");
|
|
252
249
|
}
|
|
253
250
|
} else {
|
|
254
251
|
pointMenuProps.target = event2.target;
|
|
255
252
|
pointMenuProps.list = ["\u5220\u9664\u8282\u70B9"];
|
|
256
|
-
|
|
257
|
-
if (
|
|
253
|
+
canvas.value.forEachObject((obj) => {
|
|
254
|
+
if (obj.origin && obj.left === event2.target.left && obj.top === event2.target.top) {
|
|
258
255
|
pointMenuProps.list.push({
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
256
|
+
renderItem: () => obj.origin.title,
|
|
257
|
+
origin: { ...obj.origin },
|
|
258
|
+
mode: "remove",
|
|
259
|
+
pointer: event2.pointer
|
|
262
260
|
});
|
|
263
261
|
}
|
|
264
262
|
});
|
|
@@ -283,20 +281,120 @@ function useBirthProcess(canvas, propItems, emits) {
|
|
|
283
281
|
function clickMenu({ item, target }) {
|
|
284
282
|
console.log("item :>> ", item);
|
|
285
283
|
const params = {
|
|
286
|
-
data: {
|
|
287
|
-
time: getXValue(item.pointer.x),
|
|
288
|
-
value: getYValue(item.origin.key, item.pointer.y)
|
|
289
|
-
},
|
|
290
284
|
...item.origin
|
|
291
285
|
};
|
|
292
|
-
if (item.mode === "
|
|
293
|
-
emits("
|
|
294
|
-
updateData(params, "
|
|
286
|
+
if (item.mode === "remove") {
|
|
287
|
+
emits("remove", params);
|
|
288
|
+
updateData(params, "remove");
|
|
295
289
|
} else {
|
|
290
|
+
Object.assign(params, {
|
|
291
|
+
data: {
|
|
292
|
+
time: getXValue(item.pointer.x),
|
|
293
|
+
value: getYValue(item.origin.key, item.pointer.y)
|
|
294
|
+
}
|
|
295
|
+
});
|
|
296
296
|
emits("add", params);
|
|
297
297
|
updateData(params);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
+
function drawIcons() {
|
|
301
|
+
const leftX = leftAddAreaWidth / 2;
|
|
302
|
+
const rightX = canvasWidth - rightAddAreaWidth / 2;
|
|
303
|
+
_drawIcons(leftScales, leftX);
|
|
304
|
+
_drawIcons(rightScales, rightX);
|
|
305
|
+
function _drawIcons(scales, left) {
|
|
306
|
+
if (!scales.length)
|
|
307
|
+
return;
|
|
308
|
+
let topY = originY;
|
|
309
|
+
const objs = [];
|
|
310
|
+
scales.forEach((item) => {
|
|
311
|
+
const title = item.title.split("").join("\n");
|
|
312
|
+
const dataIndex = scaleValues.findIndex((_item) => _item.key === item.key);
|
|
313
|
+
const text = new fabric.Text(String(title), {
|
|
314
|
+
...defaultTextStyle,
|
|
315
|
+
...item.titleStyle || {},
|
|
316
|
+
originY: "top",
|
|
317
|
+
left,
|
|
318
|
+
top: topY,
|
|
319
|
+
lineHeight: 1
|
|
320
|
+
});
|
|
321
|
+
const icon = drawPoint(item.type, {
|
|
322
|
+
left,
|
|
323
|
+
top: topY + text.height + 3,
|
|
324
|
+
...item.pointAttr,
|
|
325
|
+
originY: "top",
|
|
326
|
+
origin: {
|
|
327
|
+
title: item.title,
|
|
328
|
+
unit: item.unit,
|
|
329
|
+
type: item.type,
|
|
330
|
+
dataIndex,
|
|
331
|
+
key: item.key,
|
|
332
|
+
isMenu: true
|
|
333
|
+
},
|
|
334
|
+
originLeft: left,
|
|
335
|
+
originTop: topY + text.height + 3,
|
|
336
|
+
...propItems.event
|
|
337
|
+
});
|
|
338
|
+
topY += text.height + icon.height + 15;
|
|
339
|
+
setIconEvent(icon);
|
|
340
|
+
objs.push(text, icon);
|
|
341
|
+
});
|
|
342
|
+
setVerticalCenter(objs);
|
|
343
|
+
canvas.value.add(...objs);
|
|
344
|
+
}
|
|
345
|
+
function setVerticalCenter(objs) {
|
|
346
|
+
const lastobj = objs.at(-1);
|
|
347
|
+
const wrapHalf = (endY - originY) / 2;
|
|
348
|
+
const contentHalf = (lastobj.height + lastobj.top - originY) / 2;
|
|
349
|
+
objs.forEach((obj) => {
|
|
350
|
+
const top = obj.top + wrapHalf - contentHalf;
|
|
351
|
+
obj.set({
|
|
352
|
+
top,
|
|
353
|
+
originTop: top
|
|
354
|
+
});
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
function setIconEvent(point) {
|
|
359
|
+
point.on("moving", () => {
|
|
360
|
+
point.set("originY", "center");
|
|
361
|
+
if (isLimit2(point)) {
|
|
362
|
+
moveLimit(point);
|
|
363
|
+
setPopup(point);
|
|
364
|
+
} else {
|
|
365
|
+
pointTipProps.show = false;
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
point.on("mouseup:before", (event2) => {
|
|
369
|
+
pointTipProps.show = false;
|
|
370
|
+
if (event2.e.button === 0) {
|
|
371
|
+
if (isLimit2(point)) {
|
|
372
|
+
const isRepeat = getEqualXTypes(point.left, "key", xCellWidth).includes(point.origin.key);
|
|
373
|
+
if (isRepeat) {
|
|
374
|
+
repeatTip();
|
|
375
|
+
} else {
|
|
376
|
+
const params = {
|
|
377
|
+
data: {
|
|
378
|
+
time: getXValue(point.left),
|
|
379
|
+
value: getYValue(point.origin.key, point.top)
|
|
380
|
+
},
|
|
381
|
+
...point.origin
|
|
382
|
+
};
|
|
383
|
+
emits("add", params);
|
|
384
|
+
updateData(params);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
setRestore(point);
|
|
389
|
+
});
|
|
390
|
+
function isLimit2(point2) {
|
|
391
|
+
const { left, top } = point2;
|
|
392
|
+
return left >= originX && left <= endX && top >= originY && top <= endY;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
function setRestore(point) {
|
|
396
|
+
point.setCoords().set({ originY: "top", left: point.originLeft, top: point.originTop });
|
|
397
|
+
}
|
|
300
398
|
function drawXScale() {
|
|
301
399
|
const { show, startTime: startTime2, range = [0, 23], position = "top", style } = xAxis.time;
|
|
302
400
|
const { show: processTimeShow, range: processTimeRange = [0, 23], style: processTimeStyle } = xAxis.processTime;
|
|
@@ -400,18 +498,7 @@ function useBirthProcess(canvas, propItems, emits) {
|
|
|
400
498
|
});
|
|
401
499
|
canvas.value.add(border);
|
|
402
500
|
}
|
|
403
|
-
onMounted(() => {
|
|
404
|
-
nextTick(() => {
|
|
405
|
-
drawYScale();
|
|
406
|
-
drawXScale();
|
|
407
|
-
drawBorder();
|
|
408
|
-
drawPolyLine();
|
|
409
|
-
setCanvasEvent();
|
|
410
|
-
});
|
|
411
|
-
});
|
|
412
501
|
return {
|
|
413
|
-
pointTipProps,
|
|
414
|
-
pointMenuProps,
|
|
415
502
|
clickMenu
|
|
416
503
|
};
|
|
417
504
|
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { ref, reactive, computed, onMounted, nextTick } from 'vue';
|
|
2
|
+
import { defaultBorderStyle } from './useDraw.js';
|
|
3
|
+
import '../utils/index.js';
|
|
4
|
+
import './useShadow.js';
|
|
5
|
+
import 'lodash-es';
|
|
6
|
+
import { useEvent, useCanvasEvent } from './useEvent.js';
|
|
7
|
+
import { useBirthProcess } from './useBirthProcess.js';
|
|
8
|
+
import { useCommon } from './useCommon.js';
|
|
9
|
+
|
|
10
|
+
function useBirthProcessChart(canvas, props, emits, canvasRef) {
|
|
11
|
+
const select = ref();
|
|
12
|
+
const redrawPoints = ref();
|
|
13
|
+
const clickMenu = ref();
|
|
14
|
+
const pointTipProps = reactive({
|
|
15
|
+
show: false,
|
|
16
|
+
point: { x: 0, y: 0 },
|
|
17
|
+
list: []
|
|
18
|
+
});
|
|
19
|
+
const pointMenuProps = reactive({
|
|
20
|
+
show: false,
|
|
21
|
+
point: { x: 0, y: 0 },
|
|
22
|
+
list: [],
|
|
23
|
+
target: null
|
|
24
|
+
});
|
|
25
|
+
const leftScales = computed(() => props.data.scaleValues.filter((item) => item.layout === "left"));
|
|
26
|
+
const rightScales = computed(() => props.data.scaleValues.filter((item) => item.layout === "right"));
|
|
27
|
+
const leftAddAreaWidth = 30;
|
|
28
|
+
const rightAddAreaWidth = computed(() => {
|
|
29
|
+
var _a;
|
|
30
|
+
return !((_a = rightScales.value) == null ? void 0 : _a.length) ? 0 : 30;
|
|
31
|
+
});
|
|
32
|
+
const originX = computed(() => {
|
|
33
|
+
var _a;
|
|
34
|
+
const leftScalesWidth = (_a = leftScales.value) == null ? void 0 : _a.reduce((width, item) => {
|
|
35
|
+
width += item.width;
|
|
36
|
+
return width;
|
|
37
|
+
}, 0);
|
|
38
|
+
return leftAddAreaWidth + leftScalesWidth;
|
|
39
|
+
});
|
|
40
|
+
const endX = computed(() => {
|
|
41
|
+
var _a;
|
|
42
|
+
const { width } = props.data;
|
|
43
|
+
const rightScalesWidth = (_a = rightScales.value) == null ? void 0 : _a.reduce((width2, item) => {
|
|
44
|
+
width2 += item.width;
|
|
45
|
+
return width2;
|
|
46
|
+
}, 0);
|
|
47
|
+
return width - rightAddAreaWidth.value - rightScalesWidth;
|
|
48
|
+
});
|
|
49
|
+
const gridXNumber = computed(() => props.data.grid.mainXCell);
|
|
50
|
+
const gridYNumber = computed(() => props.data.grid.mainYCell);
|
|
51
|
+
const xCellWidth = computed(() => {
|
|
52
|
+
return (endX.value - originX.value) / gridXNumber.value;
|
|
53
|
+
});
|
|
54
|
+
const yCellHeight = computed(() => {
|
|
55
|
+
const { xAxis, height } = props.data;
|
|
56
|
+
const xAxisNumber = Object.values(xAxis).reduce((num, item) => {
|
|
57
|
+
if (item.show)
|
|
58
|
+
num++;
|
|
59
|
+
return num;
|
|
60
|
+
}, 0);
|
|
61
|
+
return height / (gridYNumber.value + xAxisNumber);
|
|
62
|
+
});
|
|
63
|
+
const originY = computed(() => yCellHeight.value);
|
|
64
|
+
const originYCervix = computed(() => {
|
|
65
|
+
const { scaleValues } = props.data;
|
|
66
|
+
const cervixItem = scaleValues.find((item) => item.key === "cervix");
|
|
67
|
+
const [, max] = (cervixItem == null ? void 0 : cervixItem.range) || [0, 10];
|
|
68
|
+
const spaceValue = (cervixItem == null ? void 0 : cervixItem.spaceValue) || 1;
|
|
69
|
+
return endY.value - max * spaceValue * yCellHeight.value;
|
|
70
|
+
});
|
|
71
|
+
const endY = computed(() => {
|
|
72
|
+
const { height } = props.data;
|
|
73
|
+
return height - yCellHeight.value;
|
|
74
|
+
});
|
|
75
|
+
const startTime = computed(() => new Date(props.data.xAxis.time.startTime).getTime());
|
|
76
|
+
const timeXCell = computed(() => 1 * 60 * 60 * 1e3 / xCellWidth.value);
|
|
77
|
+
const cervixYCell = computed(() => {
|
|
78
|
+
const { scaleValues } = props.data;
|
|
79
|
+
const cervixItem = scaleValues.find((item) => item.key === "cervix");
|
|
80
|
+
return ((cervixItem == null ? void 0 : cervixItem.spaceValue) || 1) / yCellHeight.value;
|
|
81
|
+
});
|
|
82
|
+
const FHRYCell = computed(() => {
|
|
83
|
+
const { scaleValues } = props.data;
|
|
84
|
+
const cervixItem = scaleValues.find((item) => item.key === "FHR");
|
|
85
|
+
return ((cervixItem == null ? void 0 : cervixItem.spaceValue) || 10) / yCellHeight.value;
|
|
86
|
+
});
|
|
87
|
+
const fetalPresentationYCell = computed(() => {
|
|
88
|
+
const { scaleValues } = props.data;
|
|
89
|
+
const cervixItem = scaleValues.find((item) => item.key === "fetalPresentation");
|
|
90
|
+
return ((cervixItem == null ? void 0 : cervixItem.spaceValue) || 1) / yCellHeight.value;
|
|
91
|
+
});
|
|
92
|
+
const event = computed(() => {
|
|
93
|
+
var _a;
|
|
94
|
+
return ((_a = props.data.grid) == null ? void 0 : _a.event) || { selectable: true, evented: true, hovered: true };
|
|
95
|
+
});
|
|
96
|
+
const propItems = reactive({
|
|
97
|
+
canvasWidth: props.data.width,
|
|
98
|
+
canvasHeight: props.data.height,
|
|
99
|
+
borderStyle: { ...defaultBorderStyle, ...props.data.borderStyle },
|
|
100
|
+
selectionStyle: props.data.selectionStyle || {},
|
|
101
|
+
grid: props.data.grid,
|
|
102
|
+
originX: originX.value,
|
|
103
|
+
endX: endX.value,
|
|
104
|
+
originY: originY.value,
|
|
105
|
+
endY: endY.value,
|
|
106
|
+
xCellWidth: xCellWidth.value,
|
|
107
|
+
yCellHeight: yCellHeight.value,
|
|
108
|
+
gridXNumber: gridXNumber.value,
|
|
109
|
+
gridYNumber: gridYNumber.value,
|
|
110
|
+
xAxis: props.data.xAxis,
|
|
111
|
+
leftScales: leftScales.value,
|
|
112
|
+
rightScales: rightScales.value,
|
|
113
|
+
leftAddAreaWidth,
|
|
114
|
+
rightAddAreaWidth: rightAddAreaWidth.value,
|
|
115
|
+
startTime: startTime.value,
|
|
116
|
+
timeXCell: timeXCell.value,
|
|
117
|
+
cervixYCell: cervixYCell.value,
|
|
118
|
+
FHRYCell: FHRYCell.value,
|
|
119
|
+
fetalPresentationYCell: fetalPresentationYCell.value,
|
|
120
|
+
scaleValues: props.data.scaleValues,
|
|
121
|
+
event: event.value,
|
|
122
|
+
originYCervix: originYCervix.value
|
|
123
|
+
});
|
|
124
|
+
const commonFunc = useCommon(canvas);
|
|
125
|
+
onMounted(() => {
|
|
126
|
+
nextTick(() => {
|
|
127
|
+
const { clickMenu: _clickMenu } = useBirthProcess(
|
|
128
|
+
canvas,
|
|
129
|
+
propItems,
|
|
130
|
+
emits,
|
|
131
|
+
pointTipProps,
|
|
132
|
+
pointMenuProps,
|
|
133
|
+
commonFunc
|
|
134
|
+
);
|
|
135
|
+
clickMenu.value = _clickMenu;
|
|
136
|
+
useEvent(canvasRef.value);
|
|
137
|
+
const { select: _select } = useCanvasEvent(canvas, propItems, emits);
|
|
138
|
+
select.value = _select;
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
return {
|
|
142
|
+
propItems,
|
|
143
|
+
redrawPoints,
|
|
144
|
+
select,
|
|
145
|
+
pointTipProps,
|
|
146
|
+
pointMenuProps,
|
|
147
|
+
clickMenu
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export { useBirthProcessChart as default };
|
|
@@ -6,9 +6,9 @@ import { TEMPERATURE_MENU, PAIN_MENU, OVERLAP } from './constant.js';
|
|
|
6
6
|
import { cloneDeep } from 'lodash-es';
|
|
7
7
|
import { isOneLine, getType, setOtherType, isEffectiveNode, getIndex, deleteProperty } from '../utils/utils.js';
|
|
8
8
|
|
|
9
|
-
function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, addRenderItem, pointTipProps, pointMenuProps,
|
|
9
|
+
function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, getYValue, addRenderItem, pointTipProps, pointMenuProps, commonFunc) {
|
|
10
10
|
useGrid(canvas, propItems);
|
|
11
|
-
const { getEqualXTypes, repeatTip, maxLimitTip, minLimitTip } =
|
|
11
|
+
const { getEqualXTypes, repeatTip, maxLimitTip, minLimitTip } = commonFunc;
|
|
12
12
|
const { createShadowLines } = useShadow();
|
|
13
13
|
const {
|
|
14
14
|
left,
|
|
@@ -662,15 +662,14 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
662
662
|
updateData(params);
|
|
663
663
|
} else {
|
|
664
664
|
const { data, type, dataIndex, index } = target.origin;
|
|
665
|
-
deleteProperty(data, TEMPERATURE_MENU);
|
|
666
|
-
|
|
667
|
-
data[`${item.type}`] = item.value;
|
|
665
|
+
const _data = deleteProperty(data, [...TEMPERATURE_MENU, ...PAIN_MENU]);
|
|
666
|
+
_data[`${item.type}`] = item.value;
|
|
668
667
|
if (isOneLine(type)) {
|
|
669
|
-
|
|
668
|
+
_data["key"] = target.origin.key;
|
|
670
669
|
}
|
|
671
670
|
const params = {
|
|
672
671
|
...target.origin,
|
|
673
|
-
data
|
|
672
|
+
data: _data
|
|
674
673
|
};
|
|
675
674
|
emits("change", params);
|
|
676
675
|
updateData(params, "change");
|
|
@@ -79,14 +79,15 @@ function useOther(canvas, propItems, cumputedX) {
|
|
|
79
79
|
textDiff = (yCellHeight - (text.height || 0)) / 2;
|
|
80
80
|
texts.push(text);
|
|
81
81
|
});
|
|
82
|
-
|
|
82
|
+
const options = {
|
|
83
83
|
originX: "center",
|
|
84
84
|
left: x,
|
|
85
85
|
top: y + textDiff,
|
|
86
86
|
baseTop: (v.baseTop || 0) * yCellHeight,
|
|
87
87
|
trueLeft: x,
|
|
88
88
|
trueHeight: texts.length * yCellHeight
|
|
89
|
-
}
|
|
89
|
+
};
|
|
90
|
+
return new fabric.Group(texts, options);
|
|
90
91
|
}
|
|
91
92
|
drawOther();
|
|
92
93
|
}
|
|
@@ -10,8 +10,8 @@ import { useOther } from './useOther.js';
|
|
|
10
10
|
import { useEvent, useCanvasEvent } from './useEvent.js';
|
|
11
11
|
import '../utils/index.js';
|
|
12
12
|
import { setOtherType } from '../utils/utils.js';
|
|
13
|
-
import { useCommon } from './useCommon.js';
|
|
14
13
|
import 'lodash-es';
|
|
14
|
+
import { useCommon } from './useCommon.js';
|
|
15
15
|
|
|
16
16
|
function useTemperatureChart(canvas, props, emits, canvasRef) {
|
|
17
17
|
const defaultHeight = 15;
|
|
@@ -2,10 +2,13 @@ function isEffectiveNode(node) {
|
|
|
2
2
|
return (node == null ? void 0 : node.time) && ((node == null ? void 0 : node.value) || (node == null ? void 0 : node.value) === 0);
|
|
3
3
|
}
|
|
4
4
|
function deleteProperty(data, list) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const _data = {};
|
|
6
|
+
for (const key in data) {
|
|
7
|
+
if (!list.map((v) => v.type).includes(key)) {
|
|
8
|
+
_data[key] = data[key];
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return _data;
|
|
9
12
|
}
|
|
10
13
|
function getIndex(time, list) {
|
|
11
14
|
const index = list.findIndex((v) => new Date(v.time).getTime() > new Date(time).getTime());
|
|
@@ -20,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
const { getRenderer } = usePresetRenderer();
|
|
21
21
|
const { getCommonConfig } = useSortableConfig();
|
|
22
22
|
return (_ctx, _cache) => {
|
|
23
|
-
return openBlock(), createBlock(unref(draggableComponent), mergeProps(unref(getCommonConfig)(), {
|
|
23
|
+
return openBlock(), createBlock(unref(draggableComponent), mergeProps(unref(getCommonConfig)(__props.fieldItem), {
|
|
24
24
|
style: getItemColumnStyle(__props.fieldItem)
|
|
25
25
|
}), {
|
|
26
26
|
item: withCtx(({ element }) => [
|
|
@@ -26,7 +26,7 @@ function useSortableConfig() {
|
|
|
26
26
|
to !== from && from.classList.remove("is-choosing-area");
|
|
27
27
|
to.classList.add("is-choosing-area");
|
|
28
28
|
}
|
|
29
|
-
const getCommonConfig = () => ({
|
|
29
|
+
const getCommonConfig = (formConfig) => ({
|
|
30
30
|
move: onMove,
|
|
31
31
|
onChoose,
|
|
32
32
|
onUnchoose,
|
|
@@ -34,7 +34,7 @@ function useSortableConfig() {
|
|
|
34
34
|
forceFallback: false,
|
|
35
35
|
animation: "150",
|
|
36
36
|
"item-key": "key",
|
|
37
|
-
group: FORM_CONFIG_GROUP
|
|
37
|
+
group: (formConfig == null ? void 0 : formConfig.type) === "COMBINATION" ? formConfig.key : FORM_CONFIG_GROUP
|
|
38
38
|
});
|
|
39
39
|
return { getCommonConfig };
|
|
40
40
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, computed, onMounted, ref, watch, openBlock, createBlock, unref, withCtx, createElementBlock, createVNode, isRef, Fragment, renderList, createCommentVNode, createElementVNode, normalizeStyle, withKeys, withModifiers, toDisplayString, nextTick } from 'vue';
|
|
2
2
|
import { arrayed, findAncestor } from '../../../shared/utils/index.js';
|
|
3
3
|
import { createForm, onFieldValueChange, isField } from '@formily/core';
|
|
4
4
|
import { Path } from '@formily/path';
|
|
@@ -8,6 +8,7 @@ import { cloneDeep, isArray, isFunction } from 'lodash-es';
|
|
|
8
8
|
import { NForm, NTabs, NTabPane, NConfigProvider } from 'naive-ui';
|
|
9
9
|
import { NESTED_FORM_ITEM_TYPE, FormItemLineBarDepKeyPrepend } from './constants/index.js';
|
|
10
10
|
import { useFormRenderLifeCycle } from './hooks/useFormRenderLifeCycle.js';
|
|
11
|
+
import { useLowCodeReactions } from './hooks/useLowCodeReactions.js';
|
|
11
12
|
import { useNuiThemeOverrides } from './hooks/useNuiThemeOverrides.js';
|
|
12
13
|
import { validateMessageParser, combineExtendKey, splitExtendKey } from './utils/index.js';
|
|
13
14
|
import { useFieldListAdaptor } from './hooks/useFieldListAdaptor.js';
|
|
@@ -63,6 +64,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
64
|
enterToNextWidget: {
|
|
64
65
|
type: [Boolean, Function],
|
|
65
66
|
default: true
|
|
67
|
+
},
|
|
68
|
+
lowCodeReactions: {
|
|
69
|
+
type: Array
|
|
66
70
|
}
|
|
67
71
|
},
|
|
68
72
|
emits: [
|
|
@@ -87,9 +91,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
91
|
value: field.value,
|
|
88
92
|
context: changeContextCollector.getContext(fieldKey, field.value)
|
|
89
93
|
});
|
|
94
|
+
lowCodeReactionsHandler(fieldKey, field.value);
|
|
90
95
|
});
|
|
91
96
|
}
|
|
92
97
|
});
|
|
98
|
+
const { lowCodeReactionsHandler, triggerAllReactionsHandler } = useLowCodeReactions(
|
|
99
|
+
computed(() => props.lowCodeReactions),
|
|
100
|
+
formModel
|
|
101
|
+
);
|
|
102
|
+
onMounted(triggerAllReactionsHandler);
|
|
93
103
|
const { SchemaField, businessCollector, formItemDepsCollector, changeContextCollector, formUUID } = useFormContext(
|
|
94
104
|
props,
|
|
95
105
|
formModel
|
|
@@ -74,19 +74,22 @@ const script = defineComponent({
|
|
|
74
74
|
"message": props.remark
|
|
75
75
|
}, null)]) : null, showAnnotation.value ? renderAnnotation() : null]) : null]) : null;
|
|
76
76
|
}
|
|
77
|
-
return () =>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
77
|
+
return () => {
|
|
78
|
+
var _a;
|
|
79
|
+
return createVNode(NFormItem, mergeProps({
|
|
80
|
+
"class": "form-render__formItem",
|
|
81
|
+
"style": {
|
|
82
|
+
"--form-item-column": ((_a = props.span) != null ? _a : 3) * 2
|
|
83
|
+
}
|
|
84
|
+
}, {
|
|
85
|
+
id: id.value,
|
|
86
|
+
"widget-type": field.value.componentType,
|
|
87
|
+
"form-field": field.value.path.toString()
|
|
88
|
+
}), {
|
|
89
|
+
...slots,
|
|
90
|
+
label: renderLabel
|
|
91
|
+
});
|
|
92
|
+
};
|
|
90
93
|
}
|
|
91
94
|
});
|
|
92
95
|
const FORM_ITEM = connect(script, mapProps({
|
|
@@ -41,6 +41,19 @@ var FIELD_AGE_UNIT = /* @__PURE__ */ ((FIELD_AGE_UNIT2) => {
|
|
|
41
41
|
FIELD_AGE_UNIT2["MINUTE"] = "N";
|
|
42
42
|
return FIELD_AGE_UNIT2;
|
|
43
43
|
})(FIELD_AGE_UNIT || {});
|
|
44
|
+
var LOW_CODE_VALUE_RELATION = /* @__PURE__ */ ((LOW_CODE_VALUE_RELATION2) => {
|
|
45
|
+
LOW_CODE_VALUE_RELATION2["EQ"] = "EQ";
|
|
46
|
+
LOW_CODE_VALUE_RELATION2["NEQ"] = "NEQ";
|
|
47
|
+
LOW_CODE_VALUE_RELATION2["CL"] = "CL";
|
|
48
|
+
LOW_CODE_VALUE_RELATION2["NC"] = "NC";
|
|
49
|
+
LOW_CODE_VALUE_RELATION2["NULL"] = "NULL";
|
|
50
|
+
LOW_CODE_VALUE_RELATION2["NOT_NULL"] = "NOT_NULL";
|
|
51
|
+
LOW_CODE_VALUE_RELATION2["BIG"] = "BIG";
|
|
52
|
+
LOW_CODE_VALUE_RELATION2["BIGEQ"] = "BIGEQ";
|
|
53
|
+
LOW_CODE_VALUE_RELATION2["LESS"] = "LESS";
|
|
54
|
+
LOW_CODE_VALUE_RELATION2["LESSEQ"] = "LESSEQ";
|
|
55
|
+
return LOW_CODE_VALUE_RELATION2;
|
|
56
|
+
})(LOW_CODE_VALUE_RELATION || {});
|
|
44
57
|
const NESTED_FORM_ITEM_TYPE = ["COMPLEX", "COMBINATION"];
|
|
45
58
|
|
|
46
|
-
export { FIELD_AGE_UNIT, FIELD_BUSINESS_TYPE, FIELD_SEX_VALUE, FormItemLineBarDepKeyPrepend, InjectionAnnotation, InjectionAsyncQueue, InjectionBusinessCollector, InjectionChangeContextCollector, InjectionFormItemDepsCollector, InjectionFormUUID, InjectionSchemaField, NESTED_FORM_ITEM_TYPE };
|
|
59
|
+
export { FIELD_AGE_UNIT, FIELD_BUSINESS_TYPE, FIELD_SEX_VALUE, FormItemLineBarDepKeyPrepend, InjectionAnnotation, InjectionAsyncQueue, InjectionBusinessCollector, InjectionChangeContextCollector, InjectionFormItemDepsCollector, InjectionFormUUID, InjectionSchemaField, LOW_CODE_VALUE_RELATION, NESTED_FORM_ITEM_TYPE };
|
|
@@ -59,10 +59,6 @@ function useFieldNormalize() {
|
|
|
59
59
|
});
|
|
60
60
|
return fieldItem;
|
|
61
61
|
});
|
|
62
|
-
FieldNormalizeWaterfallHook.tap("__elem_width", (fieldItem) => {
|
|
63
|
-
fieldItem.elem_width = ~~((fieldItem.elem_width || 3) * 2);
|
|
64
|
-
return fieldItem;
|
|
65
|
-
});
|
|
66
62
|
return { FieldNormalizeWaterfallHook };
|
|
67
63
|
}
|
|
68
64
|
|