cnhis-design-vue 3.1.40-beta.11 → 3.1.40-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/_virtual/plugin-vue_export-helper.js +1 -9
- package/es/components/annotation-edit/index.js +1 -10
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -164
- package/es/components/big-table/index.js +1 -15
- package/es/components/big-table/src/BigTable.vue.js +1 -6
- package/es/components/big-table/src/BigTable.vue2.js +1 -2498
- package/es/components/big-table/src/bigTableEmits.js +1 -53
- package/es/components/big-table/src/bigTableProps.js +1 -120
- package/es/components/big-table/src/bigTableState.js +1 -62
- package/es/components/big-table/src/components/NoData.vue.js +1 -74
- package/es/components/big-table/src/components/edit-form/edit-date.js +1 -214
- package/es/components/big-table/src/components/edit-form/edit-input.js +1 -95
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -139
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -103
- package/es/components/big-table/src/components/edit-form/edit-time.js +1 -122
- package/es/components/big-table/src/components/edit-form/useCommon.js +1 -23
- package/es/components/big-table/src/components/input-button.vue.js +1 -39
- package/es/components/big-table/src/components/separate.vue.js +1 -30
- package/es/components/big-table/src/constants/index.js +1 -3
- package/es/components/big-table/src/hooks/index.js +1 -9
- package/es/components/big-table/src/hooks/useAnchor.js +1 -49
- package/es/components/big-table/src/hooks/useAnnotation.js +1 -21
- package/es/components/big-table/src/hooks/useBatchEditing.js +1 -301
- package/es/components/big-table/src/hooks/useEdit.js +1 -133
- package/es/components/big-table/src/hooks/useEvent.js +1 -95
- package/es/components/big-table/src/hooks/useFormat.js +1 -507
- package/es/components/big-table/src/hooks/useNestTable.js +1 -86
- package/es/components/big-table/src/hooks/useSeparateRow.js +1 -177
- package/es/components/big-table/src/hooks/useTableParse.js +1 -142
- package/es/components/big-table/src/utils.js +1 -618
- package/es/components/bpmn-workflow/index.js +1 -10
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -258
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +1 -1452
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +1 -99
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +1 -114
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +1 -40
- package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +1 -14
- package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +1 -10
- package/es/components/button-print/index.js +1 -12
- package/es/components/button-print/src/ButtonPrint.vue.js +1 -6
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -528
- package/es/components/button-print/src/components/EditFormat.vue.js +1 -173
- package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -182
- package/es/components/button-print/src/components/Preview.vue.js +1 -6
- package/es/components/button-print/src/components/Preview.vue2.js +1 -67
- package/es/components/button-print/src/utils/browserPrint.d.ts +2 -1
- package/es/components/button-print/src/utils/browserPrint.js +1 -43
- package/es/components/button-print/src/utils/dialog.js +1 -121
- package/es/components/button-print/src/utils/index.js +1 -2
- package/es/components/button-print/src/utils/print.d.ts +5 -1
- package/es/components/button-print/src/utils/print.js +1 -432
- package/es/components/editor/index.js +1 -10
- package/es/components/editor/src/Editor.js +1 -77
- package/es/components/fabric-chart/index.js +1 -10
- package/es/components/fabric-chart/src/FabricChart.vue.js +1 -71
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -118
- package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -34
- package/es/components/fabric-chart/src/components/useStyle.js +1 -36
- package/es/components/fabric-chart/src/hooks/constant.js +1 -78
- package/es/components/fabric-chart/src/hooks/index.js +1 -11
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -642
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -153
- package/es/components/fabric-chart/src/hooks/useBottom.js +1 -91
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -734
- package/es/components/fabric-chart/src/hooks/useCommon.js +1 -32
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -79
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -182
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -146
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -54
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -331
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -95
- package/es/components/fabric-chart/src/hooks/useRight.js +1 -22
- package/es/components/fabric-chart/src/hooks/useShadow.js +1 -132
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -341
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -154
- package/es/components/fabric-chart/src/utils/index.js +1 -15624
- package/es/components/fabric-chart/src/utils/utils.js +1 -32
- package/es/components/field-set/index.js +1 -10
- package/es/components/field-set/src/FieldSet.vue.js +1 -470
- package/es/components/form-config/index.d.ts +1 -1
- package/es/components/form-config/index.js +1 -10
- package/es/components/form-config/src/FormConfig.vue.d.ts +1 -1
- package/es/components/form-config/src/FormConfig.vue.js +1 -124
- package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -100
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -45
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -97
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -28
- package/es/components/form-config/src/components/index.js +1 -6
- package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -45
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -45
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -60
- package/es/components/form-config/src/components/renderer/index.js +1 -3
- package/es/components/form-config/src/constants/index.js +1 -61
- package/es/components/form-config/src/hooks/index.js +1 -3
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -90
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -35
- package/es/components/form-config/src/hooks/usePresetRenderer.js +1 -36
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -42
- package/es/components/form-config/src/utils/index.js +1 -26
- package/es/components/form-render/index.js +1 -30
- package/es/components/form-render/src/FormRender.vue.js +1 -239
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -49
- package/es/components/form-render/src/components/renderer/combination.js +1 -114
- package/es/components/form-render/src/components/renderer/complex.js +1 -37
- package/es/components/form-render/src/components/renderer/date.js +1 -171
- package/es/components/form-render/src/components/renderer/formItem.js +1 -128
- package/es/components/form-render/src/components/renderer/index.js +1 -43
- package/es/components/form-render/src/components/renderer/input.js +1 -50
- package/es/components/form-render/src/components/renderer/inputGroup.js +1 -11
- package/es/components/form-render/src/components/renderer/inputNumber.js +1 -55
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +1 -35
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -175
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -274
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -71
- package/es/components/form-render/src/components/renderer/lineBar/index.js +1 -11
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -111
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -139
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -244
- package/es/components/form-render/src/components/renderer/select.js +1 -176
- package/es/components/form-render/src/components/renderer/simpleComponent.js +1 -57
- package/es/components/form-render/src/components/renderer/slider.js +1 -38
- package/es/components/form-render/src/components/renderer/switch.js +1 -48
- package/es/components/form-render/src/components/renderer/textarea.js +1 -36
- package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -37
- package/es/components/form-render/src/constants/index.js +1 -59
- package/es/components/form-render/src/hooks/index.js +1 -15
- package/es/components/form-render/src/hooks/useAnchor.js +1 -99
- package/es/components/form-render/src/hooks/useAsyncQueue.js +1 -153
- package/es/components/form-render/src/hooks/useAutoHidden.js +1 -43
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -119
- package/es/components/form-render/src/hooks/useChangeContext.js +1 -20
- package/es/components/form-render/src/hooks/useCommonInjection.js +1 -43
- package/es/components/form-render/src/hooks/useCommonLog.js +1 -12
- package/es/components/form-render/src/hooks/useComplexOptions.js +1 -225
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -290
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -65
- package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -46
- package/es/components/form-render/src/hooks/useFormContext.js +1 -70
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -140
- package/es/components/form-render/src/hooks/useFormField.js +1 -13
- package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -31
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +1 -10
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -278
- package/es/components/form-render/src/hooks/useFormRequest.js +1 -42
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -83
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -85
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -18
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -22
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
- package/es/components/form-render/src/types/fieldItem.js +1 -1
- package/es/components/form-render/src/types/index.js +1 -1
- package/es/components/form-render/src/utils/business.js +1 -114
- package/es/components/form-render/src/utils/dom.js +1 -38
- package/es/components/form-render/src/utils/index.js +1 -241
- package/es/components/form-render/src/utils/schema.js +1 -105
- package/es/components/grid/index.js +1 -11
- package/es/components/grid/src/Grid.js +1 -28
- package/es/components/grid/src/hooks.js +1 -168
- package/es/components/iho-table/index.js +1 -36
- package/es/components/iho-table/src/IhoTable.vue.js +1 -157
- package/es/components/iho-table/src/constants/index.js +1 -157
- package/es/components/iho-table/src/hooks/export.js +1 -2
- package/es/components/iho-table/src/hooks/index.js +1 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -159
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -67
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -26
- package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +1 -27
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -280
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -26
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +1 -38
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -27
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -164
- package/es/components/iho-table/src/hooks/useTableContext.js +1 -17
- package/es/components/iho-table/src/hooks/useTablePlugin.js +1 -20
- package/es/components/iho-table/src/plugins/anchorPlugin/index.js +1 -19
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -51
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -87
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -48
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +1 -230
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +1 -240
- package/es/components/iho-table/src/plugins/index.js +1 -47
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -30
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -127
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -203
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -41
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -21
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -41
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -79
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -64
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -46
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -16
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -108
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -163
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -42
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +1 -50
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -30
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -48
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -62
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -52
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -92
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -59
- package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -34
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +1 -30
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -53
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -100
- package/es/components/iho-table/src/types/index.js +1 -1
- package/es/components/iho-table/src/types/pluginType.js +1 -16
- package/es/components/iho-table/src/utils/index.js +1 -169
- package/es/components/index.js +1 -119
- package/es/components/info-header/index.js +1 -10
- package/es/components/info-header/src/HiddenContent.vue.js +1 -70
- package/es/components/info-header/src/InfoEllipsis.vue.js +1 -43
- package/es/components/info-header/src/InfoHeader.vue.js +1 -313
- package/es/components/insurance-sdk/index.js +1 -1
- package/es/components/insurance-sdk/src/constants/index.js +1 -160
- package/es/components/insurance-sdk/src/utils/index.js +1 -1
- package/es/components/insurance-sdk/src/utils/insurance.js +1 -268
- package/es/components/keyboard/index.d.ts +4 -21
- package/es/components/keyboard/index.js +1 -10
- package/es/components/keyboard/src/Keyboard.vue.d.ts +4 -21
- package/es/components/keyboard/src/Keyboard.vue.js +1 -164
- package/es/components/keyboard/src/components/InputNumber.vue.d.ts +2 -19
- package/es/components/keyboard/src/components/InputNumber.vue.js +1 -94
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -21
- package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -299
- package/es/components/keyboard/src/utils/index.js +1 -5
- package/es/components/map/index.js +1 -10
- package/es/components/map/src/Map.vue.js +1 -336
- package/es/components/recommend-search/index.js +1 -10
- package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -63
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +1 -157
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -125
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -104
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -146
- package/es/components/recommend-search/src/constant/index.js +1 -7
- package/es/components/scale-view/index.js +1 -35
- package/es/components/scale-view/src/ScaleView.vue.d.ts +0 -3
- package/es/components/scale-view/src/ScaleView.vue.js +1 -429
- package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -80
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -117
- package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -141
- package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -19
- package/es/components/scale-view/src/components/NoData.vue.js +1 -74
- package/es/components/scale-view/src/components/ScaleScore.js +1 -63
- package/es/components/scale-view/src/components/composables/choose-common.js +1 -83
- package/es/components/scale-view/src/components/formitem/address.js +1 -3993
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -226
- package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -133
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -281
- package/es/components/scale-view/src/components/formitem/r-collection.js +1 -111
- package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -212
- package/es/components/scale-view/src/components/formitem/r-input.js +1 -86
- package/es/components/scale-view/src/components/formitem/r-map.js +1 -106
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -240
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -202
- package/es/components/scale-view/src/components/formitem/r-sign.js +1 -177
- package/es/components/scale-view/src/components/formitem/r-upload.js +1 -215
- package/es/components/scale-view/src/components/formitem/sign-com.js +1 -307
- package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -129
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -354
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -437
- package/es/components/scale-view/src/hooks/scaleview-props.js +1 -81
- package/es/components/scale-view/src/hooks/scaleview-state.js +1 -38
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -154
- package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -187
- package/es/components/scale-view/src/hooks/use-component.js +1 -86
- package/es/components/scale-view/src/hooks/use-evaluate.js +1 -150
- package/es/components/scale-view/src/hooks/use-event.js +1 -129
- package/es/components/scale-view/src/hooks/use-noData.js +1 -41
- package/es/components/scale-view/src/utils/judge-types.js +1 -36
- package/es/components/search-cascader/index.js +1 -10
- package/es/components/search-cascader/src/SearchCascader.vue.js +1 -194
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -196
- package/es/components/search-cascader/src/components/index.js +1 -1
- package/es/components/search-cascader/src/constants/index.js +1 -11
- package/es/components/search-cascader/src/hooks/index.js +1 -1
- package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -7
- package/es/components/search-cascader/src/utils/index.js +1 -11
- package/es/components/select-label/index.js +1 -15
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -447
- package/es/components/select-label/src/SelectLabel.vue.js +1 -6
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -451
- package/es/components/select-label/src/components/label-classify.vue.js +1 -132
- package/es/components/select-person/index.js +1 -10
- package/es/components/select-person/src/SelectPerson.vue.js +1 -6
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -303
- package/es/components/select-person/src/utils/index.js +1 -58
- package/es/components/shortcut-provider/index.js +1 -12
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -42
- package/es/components/shortcut-provider/src/constants/index.js +1 -8
- package/es/components/shortcut-provider/src/hooks/index.js +1 -2
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +1 -12
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -188
- package/es/components/shortcut-provider/src/utils/index.js +1 -92
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/index.js +1 -10
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -98
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -76
- package/es/components/steps-wheel/index.js +1 -10
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -376
- package/es/components/table-filter/index.js +1 -21
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +3 -0
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -2272
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1315
- package/es/components/table-filter/src/classification/search-class-name.vue.js +1 -195
- package/es/components/table-filter/src/classification/search-professional-model.vue.js +1 -594
- package/es/components/table-filter/src/components/age-com/index.vue.js +1 -185
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +1 -86
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +1 -30
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +1 -253
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -114
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +1 -14
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -87
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -147
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -304
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +1 -153
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +1 -310
- package/es/components/table-filter/src/components/range-age/index.vue.js +1 -137
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -64
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -45
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -2
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -27
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -70
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -107
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -152
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +1 -1520
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +1 -171
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +1 -199
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +1 -241
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +1 -526
- package/es/components/table-filter/src/const/dataOptions.js +1 -107
- package/es/components/table-filter/src/const/index.js +1 -5
- package/es/components/table-filter/src/directive/flexibleResize.js +1 -157
- package/es/components/table-filter/src/directive/preventReClick.js +1 -14
- package/es/components/table-filter/src/directive/resize.js +1 -12
- package/es/components/table-filter/src/hooks/export.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -64
- package/es/components/table-filter/src/hooks/useMixins.js +1 -532
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -94
- package/es/components/table-filter/src/hooks/useTableSearchCon.js +1 -131
- package/es/components/table-filter/src/hooks/useWordBookutils.js +1 -91
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +4 -3
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -2038
- package/es/components/table-filter/src/tool/generateDefOptions.js +1 -65
- package/es/components/table-filter/src/tool/getWidgetType.js +1 -27
- package/es/components/table-filter/src/tool/options.js +1 -200
- package/es/components/table-filter/src/tool/resizeSensor.js +1 -123
- package/es/components/table-filter/src/tool/time-domain.js +1 -100
- package/es/components/table-filter/src/tool/transformData.js +1 -169
- package/es/components/table-filter/src/tool/utils.js +1 -29
- package/es/components/table-filter/src/types/enums.js +1 -67
- package/es/components/time-line/index.js +1 -10
- package/es/components/time-line/src/TimeLine.vue.js +1 -70
- package/es/components/vod-chunk-upload/index.js +1 -14
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -480
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +1 -70
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +1 -96
- package/es/components/vod-chunk-upload/src/hooks/vod-computed.js +1 -79
- package/es/components/vod-chunk-upload/src/hooks/vod-data.js +1 -28
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +1 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -332
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -94
- package/es/env.d.ts +24 -24
- package/es/shared/assets/img/failure.png.js +1 -3
- package/es/shared/assets/img/no-permission.png.js +1 -3
- package/es/shared/assets/img/nodata.png.js +1 -3
- package/es/shared/assets/img/notfound.png.js +1 -3
- package/es/shared/assets/img/qr.png.js +1 -3
- package/es/shared/assets/img/success.png.js +1 -3
- package/es/shared/assets/img/video.png.js +1 -3
- package/es/shared/assets/img/video_default_cover.png.js +1 -3
- package/es/shared/assets/img/xb_big.png.js +1 -3
- package/es/shared/assets/img/xb_small.png.js +1 -3
- package/es/shared/components/SelectPage/SelectPage.vue.js +1 -61
- package/es/shared/components/SelectPage/index.js +1 -2
- package/es/shared/components/SlotRender/SlotRender.js +1 -35
- package/es/shared/components/SlotRender/index.js +1 -2
- package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -36
- package/es/shared/components/SvgIcon/index.js +1 -2
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -77
- package/es/shared/components/TextOverTooltip/index.js +1 -2
- package/es/shared/components/VueDraggable/index.js +1 -2
- package/es/shared/components/VueDraggable/src/core/componentBuilderHelper.js +1 -35
- package/es/shared/components/VueDraggable/src/core/componentStructure.js +1 -54
- package/es/shared/components/VueDraggable/src/core/renderHelper.js +1 -47
- package/es/shared/components/VueDraggable/src/core/sortableEvents.js +1 -14
- package/es/shared/components/VueDraggable/src/util/console.js +1 -9
- package/es/shared/components/VueDraggable/src/util/htmlHelper.js +1 -11
- package/es/shared/components/VueDraggable/src/util/string.js +1 -11
- package/es/shared/components/VueDraggable/src/util/tags.js +1 -130
- package/es/shared/components/VueDraggable/src/vuedraggable.js +1 -265
- package/es/shared/components/no-data/NoData.vue.js +1 -74
- package/es/shared/components/no-data/index.js +1 -2
- package/es/shared/components/player-vod/player.js +1 -121
- package/es/shared/components/player-vod/video-modal.js +1 -91
- package/es/shared/global/variable.js +1 -3
- package/es/shared/utils/anime.js +1 -129
- package/es/shared/utils/colorLog.js +1 -53
- package/es/shared/utils/index.js +1 -167
- package/es/shared/utils/loadViewer.js +1 -11
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -63
- package/es/shared/utils/tapable/AsyncParallelHook.js +1 -27
- package/es/shared/utils/tapable/AsyncSeriesBailHook.js +1 -18
- package/es/shared/utils/tapable/AsyncSeriesHook.js +1 -27
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +1 -12
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +1 -22
- package/es/shared/utils/tapable/Hook.js +1 -140
- package/es/shared/utils/tapable/HookCodeFactory.js +1 -456
- package/es/shared/utils/tapable/SyncBailHook.js +1 -19
- package/es/shared/utils/tapable/SyncHook.js +1 -34
- package/es/shared/utils/tapable/SyncLoopHook.js +1 -13
- package/es/shared/utils/tapable/SyncWaterfallHook.js +1 -47
- package/es/shared/utils/utilExpand.js +1 -781
- package/es/shared/utils/vexutils.js +1 -59
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -1,341 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defaultBorderStyle } from './useDraw.js';
|
|
3
|
-
import { useCumputedPoint } from './useCumputedPoint.js';
|
|
4
|
-
import { useTop } from './useTop.js';
|
|
5
|
-
import { useLeft } from './useLeft.js';
|
|
6
|
-
import { useRight } from './useRight.js';
|
|
7
|
-
import { useCenter } from './useCenter.js';
|
|
8
|
-
import { useBottom } from './useBottom.js';
|
|
9
|
-
import { useOther } from './useOther.js';
|
|
10
|
-
import { useEvent, useCanvasEvent } from './useEvent.js';
|
|
11
|
-
import '../utils/index.js';
|
|
12
|
-
import { setOtherType } from '../utils/utils.js';
|
|
13
|
-
import 'lodash-es';
|
|
14
|
-
import 'date-fns';
|
|
15
|
-
import { useCommon } from './useCommon.js';
|
|
16
|
-
|
|
17
|
-
function useTemperatureChart(canvas, props, emits, canvasRef) {
|
|
18
|
-
const defaultHeight = 15;
|
|
19
|
-
const select = ref();
|
|
20
|
-
const redrawPoints = ref();
|
|
21
|
-
const clickMenu = ref();
|
|
22
|
-
const pointTipProps = reactive({
|
|
23
|
-
show: false,
|
|
24
|
-
point: { x: 0, y: 0 },
|
|
25
|
-
list: []
|
|
26
|
-
});
|
|
27
|
-
const pointMenuProps = reactive({
|
|
28
|
-
show: false,
|
|
29
|
-
point: { x: 0, y: 0 },
|
|
30
|
-
list: [],
|
|
31
|
-
target: null
|
|
32
|
-
});
|
|
33
|
-
const dateHeight = computed(() => {
|
|
34
|
-
const { top } = props.data;
|
|
35
|
-
return top.date.show && (top.date.height || defaultHeight) || 0;
|
|
36
|
-
});
|
|
37
|
-
const hospitalDaysHeight = computed(() => {
|
|
38
|
-
var _a;
|
|
39
|
-
const { top } = props.data;
|
|
40
|
-
return ((_a = top.hospitalDays) == null ? void 0 : _a.show) && (top.hospitalDays.height || defaultHeight) || 0;
|
|
41
|
-
});
|
|
42
|
-
const operationDaysHeight = computed(() => {
|
|
43
|
-
var _a;
|
|
44
|
-
const { top } = props.data;
|
|
45
|
-
return ((_a = top.operationDays) == null ? void 0 : _a.show) && (top.operationDays.height || defaultHeight) || 0;
|
|
46
|
-
});
|
|
47
|
-
const xScalevalueHeight = computed(() => {
|
|
48
|
-
var _a, _b, _c;
|
|
49
|
-
const { top } = props.data;
|
|
50
|
-
const height = ((_a = top.xScalevalue) == null ? void 0 : _a.show) && (top.xScalevalue.height || defaultHeight) || 0;
|
|
51
|
-
const dayHeight = ((_b = top.xScalevalue) == null ? void 0 : _b.show) ? (_c = top.dayHeight) != null ? _c : 0 : 0;
|
|
52
|
-
return height + dayHeight;
|
|
53
|
-
});
|
|
54
|
-
const breathingHeight = computed(() => {
|
|
55
|
-
var _a;
|
|
56
|
-
const { bottom } = props.data;
|
|
57
|
-
return ((_a = bottom == null ? void 0 : bottom.breathing) == null ? void 0 : _a.show) && (bottom.breathing.height || defaultHeight * 2) || 0;
|
|
58
|
-
});
|
|
59
|
-
const gridXNumber = computed(() => {
|
|
60
|
-
const { grid } = props.data;
|
|
61
|
-
return grid.mainXCell * grid.subXCell + grid.surplusXCell;
|
|
62
|
-
});
|
|
63
|
-
const gridYNumber = computed(() => {
|
|
64
|
-
const { grid } = props.data;
|
|
65
|
-
return grid.mainYCell * grid.subYCell + grid.surplusYCell;
|
|
66
|
-
});
|
|
67
|
-
const endX = computed(() => {
|
|
68
|
-
var _a;
|
|
69
|
-
const { width, right = null, top } = props.data;
|
|
70
|
-
if (!right)
|
|
71
|
-
return width;
|
|
72
|
-
const endWidth = (_a = right.width) != null ? _a : 0;
|
|
73
|
-
return width - endWidth;
|
|
74
|
-
});
|
|
75
|
-
const endXLimit = computed(() => {
|
|
76
|
-
const { grid } = props.data;
|
|
77
|
-
return endX.value - grid.surplusXCell * xCellWidth.value;
|
|
78
|
-
});
|
|
79
|
-
const originX = computed(() => {
|
|
80
|
-
const { top, left } = props.data;
|
|
81
|
-
const originX2 = top.titleWidth + iconsWidth.value;
|
|
82
|
-
return originX2;
|
|
83
|
-
});
|
|
84
|
-
const endY = computed(() => {
|
|
85
|
-
const { bottom = null, height } = props.data;
|
|
86
|
-
if (!bottom)
|
|
87
|
-
return height;
|
|
88
|
-
const endHeight = bottom.height || 30;
|
|
89
|
-
return height - endHeight;
|
|
90
|
-
});
|
|
91
|
-
const originY = computed(() => {
|
|
92
|
-
var _a;
|
|
93
|
-
const { top } = props.data;
|
|
94
|
-
const dayHeight = top.xScalevalue.show && ((_a = top.dayHeight) != null ? _a : 0) || 0;
|
|
95
|
-
const xScaleHeight = top.xScalevalue.show && (top.xScalevalue.height || defaultHeight) || 0;
|
|
96
|
-
const topHeight = dateHeight.value + dayHeight + xScaleHeight + hospitalDaysHeight.value + operationDaysHeight.value;
|
|
97
|
-
return topHeight;
|
|
98
|
-
});
|
|
99
|
-
const originYLimit = computed(() => {
|
|
100
|
-
const { grid } = props.data;
|
|
101
|
-
return originY.value + grid.surplusYCell * yCellHeight.value;
|
|
102
|
-
});
|
|
103
|
-
const xCellWidth = computed(() => {
|
|
104
|
-
return (endX.value - originX.value) / gridXNumber.value;
|
|
105
|
-
});
|
|
106
|
-
const yCellHeight = computed(() => {
|
|
107
|
-
return (endY.value - originY.value) / gridYNumber.value;
|
|
108
|
-
});
|
|
109
|
-
const iconsWidth = computed(() => {
|
|
110
|
-
var _a, _b;
|
|
111
|
-
const { left } = props.data;
|
|
112
|
-
return ((_a = left.icons) == null ? void 0 : _a.show) && (((_b = left.icons) == null ? void 0 : _b.width) || 100) || 0;
|
|
113
|
-
});
|
|
114
|
-
const xScaleList = computed(() => {
|
|
115
|
-
const { top } = props.data;
|
|
116
|
-
const dateList = top.date.list;
|
|
117
|
-
const times = top.xScalevalue.times;
|
|
118
|
-
let left = originX.value - xCellWidth.value;
|
|
119
|
-
function getDate(date) {
|
|
120
|
-
const [year = "2022", month = "01", day = "01"] = String(date).match(/\d+/g) || [];
|
|
121
|
-
return `20${year}`.slice(-4) + "-" + `00${month}`.slice(-2) + "-" + `00${day}`.slice(-2);
|
|
122
|
-
}
|
|
123
|
-
const timeList = dateList.map((item) => {
|
|
124
|
-
return times.map((v) => {
|
|
125
|
-
left += xCellWidth.value;
|
|
126
|
-
const start = new Date(`${getDate(item)} ${v.start}`).getTime();
|
|
127
|
-
const end = new Date(`${getDate(item)} ${v.end}`).getTime();
|
|
128
|
-
return {
|
|
129
|
-
start,
|
|
130
|
-
end,
|
|
131
|
-
left,
|
|
132
|
-
center: left + xCellWidth.value / 2,
|
|
133
|
-
scaleCell: (end - start) / xCellWidth.value
|
|
134
|
-
};
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
return timeList.flat();
|
|
138
|
-
});
|
|
139
|
-
const breatheYCell = computed(() => {
|
|
140
|
-
return computedYCell("breathe");
|
|
141
|
-
});
|
|
142
|
-
const pulseYCell = computed(() => {
|
|
143
|
-
return computedYCell("pulse");
|
|
144
|
-
});
|
|
145
|
-
const temperatureYCell = computed(() => {
|
|
146
|
-
return computedYCell("temperature");
|
|
147
|
-
});
|
|
148
|
-
const painYCell = computed(() => {
|
|
149
|
-
return computedYCell("pain");
|
|
150
|
-
});
|
|
151
|
-
const event = computed(() => {
|
|
152
|
-
var _a;
|
|
153
|
-
return ((_a = props.data.grid) == null ? void 0 : _a.event) || { selectable: true, evented: true, hovered: true };
|
|
154
|
-
});
|
|
155
|
-
const itemList = computed(() => {
|
|
156
|
-
const { left } = props.data;
|
|
157
|
-
return left.yScaleValue.map((item) => {
|
|
158
|
-
return item.dataList.filter((v) => v.show).map((v, dataIndex) => {
|
|
159
|
-
return {
|
|
160
|
-
...v,
|
|
161
|
-
bigType: setOtherType(v.title, item.type),
|
|
162
|
-
unit: item.unit,
|
|
163
|
-
dataIndex
|
|
164
|
-
};
|
|
165
|
-
});
|
|
166
|
-
}).flat();
|
|
167
|
-
});
|
|
168
|
-
const painIndex = computed(() => {
|
|
169
|
-
const { left } = props.data;
|
|
170
|
-
return left.yScaleValue.findIndex((v) => v.type === "pain");
|
|
171
|
-
});
|
|
172
|
-
const painHeight = computed(() => {
|
|
173
|
-
const { grid } = props.data;
|
|
174
|
-
return painIndex.value === -1 ? 0 : yCellHeight.value * grid.subYCell;
|
|
175
|
-
});
|
|
176
|
-
const painOriginY = computed(() => {
|
|
177
|
-
const { left } = props.data;
|
|
178
|
-
const obj = {
|
|
179
|
-
originY: endY.value,
|
|
180
|
-
endY: endY.value
|
|
181
|
-
};
|
|
182
|
-
if (painIndex.value === 0 && left.yScaleValue.length > 1) {
|
|
183
|
-
obj.originY = originYLimit.value;
|
|
184
|
-
obj.endY = originYLimit.value + painHeight.value;
|
|
185
|
-
} else if (painIndex.value === left.yScaleValue.length - 1) {
|
|
186
|
-
obj.originY = endY.value - painHeight.value;
|
|
187
|
-
obj.endY = endY.value;
|
|
188
|
-
}
|
|
189
|
-
return obj;
|
|
190
|
-
});
|
|
191
|
-
const vitalSignsOriginY = computed(() => {
|
|
192
|
-
const { left } = props.data;
|
|
193
|
-
const obj = {
|
|
194
|
-
originY: originY.value,
|
|
195
|
-
endY: endY.value
|
|
196
|
-
};
|
|
197
|
-
if (painIndex.value === 0 && left.yScaleValue.length > 1) {
|
|
198
|
-
obj.originY = originYLimit.value + painHeight.value;
|
|
199
|
-
obj.endY = endY.value;
|
|
200
|
-
} else if (painIndex.value === left.yScaleValue.length - 1) {
|
|
201
|
-
obj.originY = originYLimit.value;
|
|
202
|
-
obj.endY = endY.value - painHeight.value;
|
|
203
|
-
}
|
|
204
|
-
return obj;
|
|
205
|
-
});
|
|
206
|
-
const topList = computed(() => {
|
|
207
|
-
const { top } = props.data;
|
|
208
|
-
const topList2 = [];
|
|
209
|
-
for (const i in top) {
|
|
210
|
-
if (top[i].show) {
|
|
211
|
-
topList2.push({
|
|
212
|
-
...top[i],
|
|
213
|
-
key: i
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
return topList2.sort((a, b) => a.seq - b.seq);
|
|
218
|
-
});
|
|
219
|
-
const getRightInfo = computed(() => {
|
|
220
|
-
var _a;
|
|
221
|
-
const { left, right } = props.data;
|
|
222
|
-
const temperatureObj = left.yScaleValue.find((v) => v.type === "temperature");
|
|
223
|
-
const yScaleValue = (right == null ? void 0 : right.yScaleValue) || {};
|
|
224
|
-
if ((_a = temperatureObj == null ? void 0 : temperatureObj.list) == null ? void 0 : _a.length) {
|
|
225
|
-
Object.assign(yScaleValue, {
|
|
226
|
-
list: temperatureObj.list.map((v) => Math.floor((1.8 * v + 32) * 100) / 100),
|
|
227
|
-
spaceGridNumber: temperatureObj.spaceGridNumber
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
return yScaleValue;
|
|
231
|
-
});
|
|
232
|
-
const propItems = reactive({
|
|
233
|
-
canvasWidth: props.data.width,
|
|
234
|
-
canvasHeight: props.data.height,
|
|
235
|
-
borderStyle: props.data.borderStyle || defaultBorderStyle,
|
|
236
|
-
selectionStyle: props.data.selectionStyle || {},
|
|
237
|
-
dateHeight: dateHeight.value,
|
|
238
|
-
hospitalDaysHeight: hospitalDaysHeight.value,
|
|
239
|
-
operationDaysHeight: operationDaysHeight.value,
|
|
240
|
-
xScalevalueHeight: xScalevalueHeight.value,
|
|
241
|
-
topList: topList.value,
|
|
242
|
-
breathingHeight: breathingHeight.value,
|
|
243
|
-
hospitalizationDate: props.data.hospitalizationDate,
|
|
244
|
-
grid: props.data.grid,
|
|
245
|
-
top: props.data.top,
|
|
246
|
-
left: props.data.left,
|
|
247
|
-
right: props.data.right,
|
|
248
|
-
bottom: props.data.bottom,
|
|
249
|
-
other: props.data.other,
|
|
250
|
-
painIndex: painIndex.value,
|
|
251
|
-
painHeight: painHeight.value,
|
|
252
|
-
painOriginY: painOriginY.value,
|
|
253
|
-
vitalSignsOriginY: vitalSignsOriginY.value,
|
|
254
|
-
gridXNumber: gridXNumber.value,
|
|
255
|
-
gridYNumber: gridYNumber.value,
|
|
256
|
-
iconsWidth: iconsWidth.value,
|
|
257
|
-
originX: originX.value,
|
|
258
|
-
originY: originY.value,
|
|
259
|
-
originYLimit: originYLimit.value,
|
|
260
|
-
endX: endX.value,
|
|
261
|
-
endXLimit: endXLimit.value,
|
|
262
|
-
endY: endY.value,
|
|
263
|
-
xCellWidth: xCellWidth.value,
|
|
264
|
-
yCellHeight: yCellHeight.value,
|
|
265
|
-
xScaleList: xScaleList.value,
|
|
266
|
-
breatheYCell: breatheYCell.value,
|
|
267
|
-
pulseYCell: pulseYCell.value,
|
|
268
|
-
temperatureYCell: temperatureYCell.value,
|
|
269
|
-
painYCell: painYCell.value,
|
|
270
|
-
event: event.value,
|
|
271
|
-
itemList: itemList.value,
|
|
272
|
-
getRightInfo: getRightInfo.value,
|
|
273
|
-
config: props.data.config || {}
|
|
274
|
-
});
|
|
275
|
-
function computedYCell(type) {
|
|
276
|
-
const { yScaleValue } = props.data.left;
|
|
277
|
-
const item = yScaleValue.find((v) => v.type === type);
|
|
278
|
-
const list = (item == null ? void 0 : item.list) || [];
|
|
279
|
-
if (!list.length)
|
|
280
|
-
return 0;
|
|
281
|
-
return yCellHeight.value / ((list[1] - list[0]) / item.spaceGridNumber);
|
|
282
|
-
}
|
|
283
|
-
const { cumputedX, cumputedY, getXValue, getYValue } = useCumputedPoint(propItems);
|
|
284
|
-
const commonFunc = useCommon(canvas);
|
|
285
|
-
onMounted(() => {
|
|
286
|
-
nextTick(() => {
|
|
287
|
-
useTop(canvas, propItems);
|
|
288
|
-
const {
|
|
289
|
-
setPopup,
|
|
290
|
-
isAddPoint,
|
|
291
|
-
updateData,
|
|
292
|
-
redrawPoints: _redrawPoints,
|
|
293
|
-
clickMenu: _clickMenu
|
|
294
|
-
} = useCenter(
|
|
295
|
-
canvas,
|
|
296
|
-
propItems,
|
|
297
|
-
emits,
|
|
298
|
-
cumputedX,
|
|
299
|
-
cumputedY,
|
|
300
|
-
getXValue,
|
|
301
|
-
getYValue,
|
|
302
|
-
props.addRenderItem,
|
|
303
|
-
pointTipProps,
|
|
304
|
-
pointMenuProps,
|
|
305
|
-
commonFunc
|
|
306
|
-
);
|
|
307
|
-
redrawPoints.value = _redrawPoints;
|
|
308
|
-
clickMenu.value = _clickMenu;
|
|
309
|
-
const { drawScaleValue } = useLeft(
|
|
310
|
-
canvas,
|
|
311
|
-
propItems,
|
|
312
|
-
emits,
|
|
313
|
-
setPopup,
|
|
314
|
-
pointTipProps,
|
|
315
|
-
cumputedX,
|
|
316
|
-
cumputedY,
|
|
317
|
-
getXValue,
|
|
318
|
-
getYValue,
|
|
319
|
-
isAddPoint,
|
|
320
|
-
updateData,
|
|
321
|
-
commonFunc
|
|
322
|
-
);
|
|
323
|
-
useRight(canvas, propItems, drawScaleValue);
|
|
324
|
-
useBottom(canvas, propItems);
|
|
325
|
-
useOther(canvas, propItems, cumputedX);
|
|
326
|
-
useEvent(canvasRef.value);
|
|
327
|
-
const { select: _select } = useCanvasEvent(canvas, propItems, emits);
|
|
328
|
-
select.value = _select;
|
|
329
|
-
});
|
|
330
|
-
});
|
|
331
|
-
return {
|
|
332
|
-
propItems,
|
|
333
|
-
redrawPoints,
|
|
334
|
-
select,
|
|
335
|
-
pointTipProps,
|
|
336
|
-
pointMenuProps,
|
|
337
|
-
clickMenu
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
export { useTemperatureChart as default };
|
|
1
|
+
import{ref as e,reactive as t,computed as a,onMounted as l,nextTick as u}from"vue";import{defaultBorderStyle as i}from"./useDraw.js";import{useCumputedPoint as n}from"./useCumputedPoint.js";import{useTop as r}from"./useTop.js";import{useLeft as o}from"./useLeft.js";import{useRight as s}from"./useRight.js";import{useCenter as d}from"./useCenter.js";import{useBottom as v}from"./useBottom.js";import{useOther as c}from"./useOther.js";import{useEvent as p,useCanvasEvent as h}from"./useEvent.js";import"../utils/index.js";import{setOtherType as g}from"../utils/utils.js";import"lodash-es";import"date-fns";import{useCommon as m}from"./useCommon.js";function f(f,y,Y,S){const w=15,b=e(),C=e(),x=e(),j=t({show:!1,point:{x:0,y:0},list:[]}),D=t({show:!1,point:{x:0,y:0},list:[],target:null}),V=a((()=>{const{top:e}=y.data;return e.date.show&&(e.date.height||w)||0})),H=a((()=>{var e;const{top:t}=y.data;return(null==(e=t.hospitalDays)?void 0:e.show)&&(t.hospitalDays.height||w)||0})),X=a((()=>{var e;const{top:t}=y.data;return(null==(e=t.operationDays)?void 0:e.show)&&(t.operationDays.height||w)||0})),L=a((()=>{var e,t,a;const{top:l}=y.data;return((null==(e=l.xScalevalue)?void 0:e.show)&&(l.xScalevalue.height||w)||0)+((null==(t=l.xScalevalue)?void 0:t.show)&&null!=(a=l.dayHeight)?a:0)})),P=a((()=>{var e;const{bottom:t}=y.data;return(null==(e=null==t?void 0:t.breathing)?void 0:e.show)&&(t.breathing.height||30)||0})),$=a((()=>{const{grid:e}=y.data;return e.mainXCell*e.subXCell+e.surplusXCell})),I=a((()=>{const{grid:e}=y.data;return e.mainYCell*e.subYCell+e.surplusYCell})),N=a((()=>{var e;const{width:t,right:a=null,top:l}=y.data;if(!a)return t;return t-(null!=(e=a.width)?e:0)})),T=a((()=>{const{grid:e}=y.data;return N.value-e.surplusXCell*G.value})),M=a((()=>{const{top:e,left:t}=y.data;return e.titleWidth+q.value})),O=a((()=>{const{bottom:e=null,height:t}=y.data;if(!e)return t;return t-(e.height||30)})),W=a((()=>{var e;const{top:t}=y.data,a=t.xScalevalue.show&&(null!=(e=t.dayHeight)?e:0)||0,l=t.xScalevalue.show&&(t.xScalevalue.height||w)||0;return V.value+a+l+H.value+X.value})),k=a((()=>{const{grid:e}=y.data;return W.value+e.surplusYCell*R.value})),G=a((()=>(N.value-M.value)/$.value)),R=a((()=>(O.value-W.value)/I.value)),q=a((()=>{var e,t;const{left:a}=y.data;return(null==(e=a.icons)?void 0:e.show)&&((null==(t=a.icons)?void 0:t.width)||100)||0})),z=a((()=>{const{top:e}=y.data,t=e.date.list,a=e.xScalevalue.times;let l=M.value-G.value;function u(e){const[t="2022",a="01",l="01"]=String(e).match(/\d+/g)||[];return`20${t}`.slice(-4)+"-"+`00${a}`.slice(-2)+"-"+`00${l}`.slice(-2)}return t.map((e=>a.map((t=>{l+=G.value;const a=new Date(`${u(e)} ${t.start}`).getTime(),i=new Date(`${u(e)} ${t.end}`).getTime();return{start:a,end:i,left:l,center:l+G.value/2,scaleCell:(i-a)/G.value}})))).flat()})),A=a((()=>le("breathe"))),B=a((()=>le("pulse"))),E=a((()=>le("temperature"))),F=a((()=>le("pain"))),J=a((()=>{var e;return(null==(e=y.data.grid)?void 0:e.event)||{selectable:!0,evented:!0,hovered:!0}})),K=a((()=>{const{left:e}=y.data;return e.yScaleValue.map((e=>e.dataList.filter((e=>e.show)).map(((t,a)=>({...t,bigType:g(t.title,e.type),unit:e.unit,dataIndex:a}))))).flat()})),Q=a((()=>{const{left:e}=y.data;return e.yScaleValue.findIndex((e=>"pain"===e.type))})),U=a((()=>{const{grid:e}=y.data;return-1===Q.value?0:R.value*e.subYCell})),Z=a((()=>{const{left:e}=y.data,t={originY:O.value,endY:O.value};return 0===Q.value&&e.yScaleValue.length>1?(t.originY=k.value,t.endY=k.value+U.value):Q.value===e.yScaleValue.length-1&&(t.originY=O.value-U.value,t.endY=O.value),t})),_=a((()=>{const{left:e}=y.data,t={originY:W.value,endY:O.value};return 0===Q.value&&e.yScaleValue.length>1?(t.originY=k.value+U.value,t.endY=O.value):Q.value===e.yScaleValue.length-1&&(t.originY=k.value,t.endY=O.value-U.value),t})),ee=a((()=>{const{top:e}=y.data,t=[];for(const a in e)e[a].show&&t.push({...e[a],key:a});return t.sort(((e,t)=>e.seq-t.seq))})),te=a((()=>{var e;const{left:t,right:a}=y.data,l=t.yScaleValue.find((e=>"temperature"===e.type)),u=(null==a?void 0:a.yScaleValue)||{};return(null==(e=null==l?void 0:l.list)?void 0:e.length)&&Object.assign(u,{list:l.list.map((e=>Math.floor(100*(1.8*e+32))/100)),spaceGridNumber:l.spaceGridNumber}),u})),ae=t({canvasWidth:y.data.width,canvasHeight:y.data.height,borderStyle:y.data.borderStyle||i,selectionStyle:y.data.selectionStyle||{},dateHeight:V.value,hospitalDaysHeight:H.value,operationDaysHeight:X.value,xScalevalueHeight:L.value,topList:ee.value,breathingHeight:P.value,hospitalizationDate:y.data.hospitalizationDate,grid:y.data.grid,top:y.data.top,left:y.data.left,right:y.data.right,bottom:y.data.bottom,other:y.data.other,painIndex:Q.value,painHeight:U.value,painOriginY:Z.value,vitalSignsOriginY:_.value,gridXNumber:$.value,gridYNumber:I.value,iconsWidth:q.value,originX:M.value,originY:W.value,originYLimit:k.value,endX:N.value,endXLimit:T.value,endY:O.value,xCellWidth:G.value,yCellHeight:R.value,xScaleList:z.value,breatheYCell:A.value,pulseYCell:B.value,temperatureYCell:E.value,painYCell:F.value,event:J.value,itemList:K.value,getRightInfo:te.value,config:y.data.config||{}});function le(e){const{yScaleValue:t}=y.data.left,a=t.find((t=>t.type===e)),l=(null==a?void 0:a.list)||[];return l.length?R.value/((l[1]-l[0])/a.spaceGridNumber):0}const{cumputedX:ue,cumputedY:ie,getXValue:ne,getYValue:re}=n(ae),oe=m(f);return l((()=>{u((()=>{r(f,ae);const{setPopup:e,isAddPoint:t,updateData:a,redrawPoints:l,clickMenu:u}=d(f,ae,Y,ue,ie,ne,re,y.addRenderItem,j,D,oe);C.value=l,x.value=u;const{drawScaleValue:i}=o(f,ae,Y,e,j,ue,ie,ne,re,t,a,oe);s(f,ae,i),v(f,ae),c(f,ae,ue),p(S.value);const{select:n}=h(f,ae,Y);b.value=n}))})),{propItems:ae,redrawPoints:C,select:b,pointTipProps:j,pointMenuProps:D,clickMenu:x}}export{f as default};
|
|
@@ -1,154 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defaultBorderStyle, defaultStyle, drawTextGroup, defaultTextStyle, defaultRectStyle } from './useDraw.js';
|
|
3
|
-
|
|
4
|
-
function useTop(canvas, propItems) {
|
|
5
|
-
const {
|
|
6
|
-
grid,
|
|
7
|
-
originX,
|
|
8
|
-
xCellWidth,
|
|
9
|
-
gridXNumber,
|
|
10
|
-
top,
|
|
11
|
-
xScalevalueHeight,
|
|
12
|
-
iconsWidth,
|
|
13
|
-
topList,
|
|
14
|
-
endXLimit,
|
|
15
|
-
canvasWidth
|
|
16
|
-
} = propItems;
|
|
17
|
-
function drawTop() {
|
|
18
|
-
const list = [];
|
|
19
|
-
endXLimit && list.push(new fabric.Line([endXLimit, 0, canvasWidth, 0], defaultBorderStyle));
|
|
20
|
-
let topY = 0;
|
|
21
|
-
topList.forEach((item, index) => {
|
|
22
|
-
if (index > 0) {
|
|
23
|
-
topY += propItems[`${topList[index - 1].key}Height`];
|
|
24
|
-
}
|
|
25
|
-
if (item.key == "xScalevalue") {
|
|
26
|
-
drawDay(item, list, topY);
|
|
27
|
-
drawTime(item, list, topY);
|
|
28
|
-
} else {
|
|
29
|
-
propItems[`${item.key}Height`] && drawDate(item, list, topY);
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
const group = list.length > 0 ? new fabric.Group([...list], { ...defaultStyle }) : null;
|
|
33
|
-
group && group.sendToBack();
|
|
34
|
-
group && canvas.value.add(group);
|
|
35
|
-
}
|
|
36
|
-
function drawTime(item, list, topY) {
|
|
37
|
-
var _a;
|
|
38
|
-
const dayHeight = top.xScalevalue.show ? (_a = top.dayHeight) != null ? _a : 0 : 0;
|
|
39
|
-
const height = xScalevalueHeight - dayHeight;
|
|
40
|
-
const title = drawTextGroup(
|
|
41
|
-
{
|
|
42
|
-
width: originX - iconsWidth,
|
|
43
|
-
height: xScalevalueHeight,
|
|
44
|
-
...defaultRectStyle
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
value: top.xScalevalue.title,
|
|
48
|
-
...defaultTextStyle,
|
|
49
|
-
...item.style || {},
|
|
50
|
-
...item.titleStyle || {}
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
left: iconsWidth,
|
|
54
|
-
top: topY
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
list.push(title);
|
|
58
|
-
const timeList = [];
|
|
59
|
-
for (let j = 0; j < grid.mainXCell; j++) {
|
|
60
|
-
timeList.push(top.xScalevalue.list);
|
|
61
|
-
}
|
|
62
|
-
timeList.flat().forEach((v, i) => {
|
|
63
|
-
const left = originX + i * xCellWidth;
|
|
64
|
-
const textGroup = drawTextGroup(
|
|
65
|
-
{
|
|
66
|
-
width: xCellWidth,
|
|
67
|
-
height
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
value: v.value,
|
|
71
|
-
...defaultTextStyle,
|
|
72
|
-
...item.style || {},
|
|
73
|
-
...v.style || {}
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
left,
|
|
77
|
-
top: topY + dayHeight
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
list.push(textGroup);
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
function drawDay(item, list, topY) {
|
|
84
|
-
if (!top.dayHeight)
|
|
85
|
-
return false;
|
|
86
|
-
const height = top.dayHeight;
|
|
87
|
-
const width = xCellWidth * grid.subSecondXCell;
|
|
88
|
-
const dayList = (gridXNumber - grid.surplusXCell) / grid.subSecondXCell;
|
|
89
|
-
for (let i = 0; i < dayList; i++) {
|
|
90
|
-
const left = originX + i * width;
|
|
91
|
-
const value = i % 2 === 0 ? "\u4E0A\u5348" : "\u4E0B\u5348";
|
|
92
|
-
const textGroup = drawTextGroup(
|
|
93
|
-
{
|
|
94
|
-
width,
|
|
95
|
-
height
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
value,
|
|
99
|
-
...defaultTextStyle,
|
|
100
|
-
...item.style || {}
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
left,
|
|
104
|
-
top: topY
|
|
105
|
-
}
|
|
106
|
-
);
|
|
107
|
-
list.push(textGroup);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
function drawDate(item, list, topY) {
|
|
111
|
-
const height = propItems[`${item.key}Height`];
|
|
112
|
-
const title = drawTextGroup(
|
|
113
|
-
{
|
|
114
|
-
width: originX - iconsWidth,
|
|
115
|
-
height,
|
|
116
|
-
...defaultRectStyle
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
value: item.title,
|
|
120
|
-
...defaultTextStyle,
|
|
121
|
-
...(item == null ? void 0 : item.style) || {},
|
|
122
|
-
...item.titleStyle || {}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
left: iconsWidth,
|
|
126
|
-
top: topY
|
|
127
|
-
}
|
|
128
|
-
);
|
|
129
|
-
list.push(title);
|
|
130
|
-
const width = xCellWidth * grid.subXCell;
|
|
131
|
-
item.list.forEach((v, i) => {
|
|
132
|
-
const left = originX + i * width;
|
|
133
|
-
const textGroup = drawTextGroup(
|
|
134
|
-
{
|
|
135
|
-
width,
|
|
136
|
-
height
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
value: v,
|
|
140
|
-
...defaultTextStyle,
|
|
141
|
-
...(item == null ? void 0 : item.style) || {}
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
left,
|
|
145
|
-
top: topY
|
|
146
|
-
}
|
|
147
|
-
);
|
|
148
|
-
list.push(textGroup);
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
drawTop();
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export { useTop };
|
|
1
|
+
import{fabric as t}from"../utils/index.js";import{defaultBorderStyle as e,defaultStyle as l,drawTextGroup as i,defaultTextStyle as o,defaultRectStyle as s}from"./useDraw.js";function n(n,u){const{grid:h,originX:a,xCellWidth:c,gridXNumber:d,top:r,xScalevalueHeight:f,iconsWidth:p,topList:g,endXLimit:v,canvasWidth:y}=u;!function(){const w=[];v&&w.push(new t.Line([v,0,y,0],e));let S=0;g.forEach(((t,e)=>{e>0&&(S+=u[`${g[e-1].key}Height`]),"xScalevalue"==t.key?(function(t,e,l){if(!r.dayHeight)return!1;const s=r.dayHeight,n=c*h.subSecondXCell,u=(d-h.surplusXCell)/h.subSecondXCell;for(let h=0;h<u;h++){const u=a+h*n,c=i({width:n,height:s},{value:h%2==0?"上午":"下午",...o,...t.style||{}},{left:u,top:l});e.push(c)}}(t,w,S),function(t,e,l){var n;const u=r.xScalevalue.show&&null!=(n=r.dayHeight)?n:0,d=f-u,g=i({width:a-p,height:f,...s},{value:r.xScalevalue.title,...o,...t.style||{},...t.titleStyle||{}},{left:p,top:l});e.push(g);const v=[];for(let t=0;t<h.mainXCell;t++)v.push(r.xScalevalue.list);v.flat().forEach(((s,n)=>{const h=a+n*c,r=i({width:c,height:d},{value:s.value,...o,...t.style||{},...s.style||{}},{left:h,top:l+u});e.push(r)}))}(t,w,S)):u[`${t.key}Height`]&&function(t,e,l){const n=u[`${t.key}Height`],d=i({width:a-p,height:n,...s},{value:t.title,...o,...(null==t?void 0:t.style)||{},...t.titleStyle||{}},{left:p,top:l});e.push(d);const r=c*h.subXCell;t.list.forEach(((s,u)=>{const h=a+u*r,c=i({width:r,height:n},{value:s,...o,...(null==t?void 0:t.style)||{}},{left:h,top:l});e.push(c)}))}(t,w,S)}));const x=w.length>0?new t.Group([...w],{...l}):null;x&&x.sendToBack(),x&&n.value.add(x)}()}export{n as useTop};
|