cnhis-design-vue 3.1.40-beta.12 → 3.1.40-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_virtual/plugin-vue_export-helper.js +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.js +1 -10
- 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.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.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 +1 -1
- package/es/components/keyboard/index.js +1 -10
- package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.js +1 -164
- package/es/components/keyboard/src/components/InputNumber.vue.js +1 -86
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +1 -1
- 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.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.js +1 -10
- 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.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.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/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
|
@@ -1,86 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NInput, NSpace, NIcon } from 'naive-ui';
|
|
3
|
-
import { CaretUp, CaretDown } from '@vicons/ionicons5';
|
|
4
|
-
import { getNumber } from '../utils/index.js';
|
|
5
|
-
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
6
|
-
|
|
7
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "InputNumber",
|
|
9
|
-
props: {
|
|
10
|
-
modelValue: { type: String, default: "" },
|
|
11
|
-
integer: { type: Boolean, default: false },
|
|
12
|
-
status: { type: String, default: "success" }
|
|
13
|
-
},
|
|
14
|
-
emits: ["update:modelValue", "update:status"],
|
|
15
|
-
setup(__props, { expose, emit }) {
|
|
16
|
-
const props = __props;
|
|
17
|
-
const inputRef = ref(null);
|
|
18
|
-
const toSelectInputContent = inject("toSelectInputContent");
|
|
19
|
-
function update(value) {
|
|
20
|
-
const val = typeof value === "string" ? value : value.join("");
|
|
21
|
-
emit("update:modelValue", val);
|
|
22
|
-
emit("update:status", !val ? "error" : "success");
|
|
23
|
-
}
|
|
24
|
-
function validator(value) {
|
|
25
|
-
if (props.integer) {
|
|
26
|
-
return /(^[1-9]\d*$)/.test(value) || !value;
|
|
27
|
-
}
|
|
28
|
-
return /^\d*(.\d+)?$/.test(value) || !value;
|
|
29
|
-
}
|
|
30
|
-
function calculate(type) {
|
|
31
|
-
const value = getNumber(props.modelValue);
|
|
32
|
-
let newValue = type === "+" ? value + 1 : value - 1;
|
|
33
|
-
if (newValue <= 0 || isNaN(newValue))
|
|
34
|
-
newValue = 1;
|
|
35
|
-
emit("update:modelValue", newValue.toString());
|
|
36
|
-
emit("update:status", "success");
|
|
37
|
-
}
|
|
38
|
-
watch(
|
|
39
|
-
() => toSelectInputContent.value,
|
|
40
|
-
(value) => {
|
|
41
|
-
var _a, _b;
|
|
42
|
-
!props.integer && ((_b = (_a = inputRef.value) == null ? void 0 : _a.select) == null ? void 0 : _b.call(_a));
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
expose({
|
|
46
|
-
$childrenRefs: inputRef
|
|
47
|
-
});
|
|
48
|
-
return (_ctx, _cache) => {
|
|
49
|
-
return openBlock(), createBlock(unref(NInput), {
|
|
50
|
-
ref_key: "inputRef",
|
|
51
|
-
ref: inputRef,
|
|
52
|
-
value: __props.modelValue,
|
|
53
|
-
"onUpdate:value": update,
|
|
54
|
-
"allow-input": validator,
|
|
55
|
-
placeholder: "",
|
|
56
|
-
status: __props.status,
|
|
57
|
-
clearable: !__props.integer
|
|
58
|
-
}, {
|
|
59
|
-
suffix: withCtx(() => [
|
|
60
|
-
createVNode(unref(NSpace), {
|
|
61
|
-
justify: "center",
|
|
62
|
-
vertical: ""
|
|
63
|
-
}, {
|
|
64
|
-
default: withCtx(() => [
|
|
65
|
-
createVNode(unref(NIcon), {
|
|
66
|
-
size: "13",
|
|
67
|
-
component: unref(CaretUp),
|
|
68
|
-
onClick: _cache[0] || (_cache[0] = ($event) => calculate("+"))
|
|
69
|
-
}, null, 8, ["component"]),
|
|
70
|
-
createVNode(unref(NIcon), {
|
|
71
|
-
size: "13",
|
|
72
|
-
component: unref(CaretDown),
|
|
73
|
-
onClick: _cache[1] || (_cache[1] = ($event) => calculate("-"))
|
|
74
|
-
}, null, 8, ["component"])
|
|
75
|
-
]),
|
|
76
|
-
_: 1
|
|
77
|
-
})
|
|
78
|
-
]),
|
|
79
|
-
_: 1
|
|
80
|
-
}, 8, ["value", "status", "clearable"]);
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "InputNumber.vue"]]);
|
|
85
|
-
|
|
86
|
-
export { InputNumber as default };
|
|
1
|
+
import{defineComponent as e,ref as t,inject as u,watch as l,openBlock as n,createBlock as o,unref as a,withCtx as s,createVNode as r}from"vue";import{NInput as i,NSpace as p,NIcon as c}from"naive-ui";import{CaretUp as d,CaretDown as m}from"@vicons/ionicons5";import{getNumber as f}from"../utils/index.js";import v from"../../../../_virtual/plugin-vue_export-helper.js";var g=v(e({__name:"InputNumber",props:{modelValue:{type:String,default:""},integer:{type:Boolean,default:!1},status:{type:String,default:"success"}},emits:["update:modelValue","update:status"],setup(e,{expose:v,emit:g}){const _=e,y=t(null),V=u("toSelectInputContent");function x(e){const t="string"==typeof e?e:e.join("");g("update:modelValue",t),g("update:status",t?"success":"error")}function b(e){return _.integer?/(^[1-9]\d*$)/.test(e)||!e:/^\d*(.\d+)?$/.test(e)||!e}function j(e){const t=f(_.modelValue);let u="+"===e?t+1:t-1;(u<=0||isNaN(u))&&(u=1),g("update:modelValue",u.toString()),g("update:status","success")}return l((()=>V.value),(e=>{var t,u;!_.integer&&(null==(u=null==(t=y.value)?void 0:t.select)||u.call(t))})),v({$childrenRefs:y}),(t,u)=>(n(),o(a(i),{ref_key:"inputRef",ref:y,value:e.modelValue,"onUpdate:value":x,"allow-input":b,placeholder:"",status:e.status,clearable:!e.integer},{suffix:s((()=>[r(a(p),{justify:"center",vertical:""},{default:s((()=>[r(a(c),{size:"13",component:a(d),onClick:u[0]||(u[0]=e=>j("+"))},null,8,["component"]),r(a(c),{size:"13",component:a(m),onClick:u[1]||(u[1]=e=>j("-"))},null,8,["component"])])),_:1})])),_:1},8,["value","status","clearable"]))}}),[["__file","InputNumber.vue"]]);export{g as default};
|
|
@@ -84,8 +84,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
84
|
style: import("vue").ComputedRef<string> | undefined;
|
|
85
85
|
init: () => import("vue").ComputedRef<string> | undefined;
|
|
86
86
|
keydown: (key: string | number) => Promise<void>;
|
|
87
|
+
updateValue: (key: string) => Promise<void>;
|
|
87
88
|
validator: () => boolean;
|
|
88
|
-
doDelete: () => void;
|
|
89
89
|
updateFraction: (value: number) => void;
|
|
90
90
|
calculateFraction: () => void;
|
|
91
91
|
setInputStatus: (valueRef: Ref<string>, statusRef: Ref<string>, isInteger?: boolean) => true | undefined;
|
|
@@ -1,299 +1 @@
|
|
|
1
|
-
import { defineComponent, computed,
|
|
2
|
-
import { NSpace, NIcon } from 'naive-ui';
|
|
3
|
-
import { ArrowUndoSharp } from '@vicons/ionicons5';
|
|
4
|
-
import InputNumber from './InputNumber.vue.js';
|
|
5
|
-
import { useDraggable } from '@vueuse/core';
|
|
6
|
-
import { getNumber } from '../utils/index.js';
|
|
7
|
-
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
8
|
-
|
|
9
|
-
const _hoisted_1 = { class: "keys" };
|
|
10
|
-
const _hoisted_2 = ["onClick"];
|
|
11
|
-
const _hoisted_3 = ["onClick"];
|
|
12
|
-
const _hoisted_4 = { class: "btns" };
|
|
13
|
-
const _hoisted_5 = ["onClick"];
|
|
14
|
-
const _hoisted_6 = { class: "inputs" };
|
|
15
|
-
const _hoisted_7 = { class: "inputs-right" };
|
|
16
|
-
const _hoisted_8 = /* @__PURE__ */ createElementVNode("hr", null, null, -1);
|
|
17
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
|
-
__name: "NumberPanel",
|
|
19
|
-
props: {
|
|
20
|
-
defaultValue: { type: Number },
|
|
21
|
-
value: { type: Number },
|
|
22
|
-
mode: { type: String },
|
|
23
|
-
positionInitialValue: { type: Object, default: () => ({ x: 0, y: 0 }) },
|
|
24
|
-
moveOffset: { type: Object, default: () => ({ x: 0, y: 0 }) },
|
|
25
|
-
drag: { type: Boolean, default: false }
|
|
26
|
-
},
|
|
27
|
-
emits: ["change"],
|
|
28
|
-
setup(__props, { emit }) {
|
|
29
|
-
const props = __props;
|
|
30
|
-
const NUMBERKEYS = "1234567890.";
|
|
31
|
-
const DAYS = [3, 7, 14, 30];
|
|
32
|
-
const DOSENUMBERKEYS = "123/456*789-0.+";
|
|
33
|
-
const CALCULATIONSYMBOLS = ["+", "-", "*", "/"];
|
|
34
|
-
const isNumber = computed(() => props.mode === "number");
|
|
35
|
-
const isDay = computed(() => props.mode === "day" && !isNumber.value);
|
|
36
|
-
const isDose = computed(() => props.mode === "dose" && !isNumber.value);
|
|
37
|
-
const numberKeys = computed(() => (isDose.value ? DOSENUMBERKEYS : NUMBERKEYS).split(""));
|
|
38
|
-
const days = ref(DAYS);
|
|
39
|
-
const doses = ref([2, 3, 4, 5, 6, 7, 8]);
|
|
40
|
-
const inputValue = ref("");
|
|
41
|
-
const integerValue = ref();
|
|
42
|
-
const numeratorValue = ref();
|
|
43
|
-
const denominatorValue = ref();
|
|
44
|
-
const inputValueStatus = ref("success");
|
|
45
|
-
const numeratorValueStatus = ref("success");
|
|
46
|
-
const denominatorValueStatus = ref("success");
|
|
47
|
-
const keyboardRef = ref(null);
|
|
48
|
-
const inputRef = ref(null);
|
|
49
|
-
const style = init();
|
|
50
|
-
function init() {
|
|
51
|
-
if (props.defaultValue) {
|
|
52
|
-
inputValue.value = props.defaultValue.toString();
|
|
53
|
-
}
|
|
54
|
-
if (props.drag) {
|
|
55
|
-
const { x, y, style: style2 } = useDraggable(keyboardRef, {
|
|
56
|
-
initialValue: props.positionInitialValue,
|
|
57
|
-
onMove: (position, event) => {
|
|
58
|
-
var _a, _b, _c, _d;
|
|
59
|
-
position.x += (_b = (_a = props.moveOffset) == null ? void 0 : _a.x) != null ? _b : 0;
|
|
60
|
-
position.y += (_d = (_c = props.moveOffset) == null ? void 0 : _c.y) != null ? _d : 0;
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
return style2;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
async function keydown(key) {
|
|
67
|
-
var _a, _b, _c;
|
|
68
|
-
switch (key) {
|
|
69
|
-
case "Undo": {
|
|
70
|
-
doDelete();
|
|
71
|
-
setInputValueStatus();
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
74
|
-
case "Enter": {
|
|
75
|
-
if (!validator()) {
|
|
76
|
-
inputValueStatus.value = "error";
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
emit("change", eval(inputValue.value));
|
|
80
|
-
break;
|
|
81
|
-
}
|
|
82
|
-
default:
|
|
83
|
-
if (typeof key === "number") {
|
|
84
|
-
inputValue.value = key.toString();
|
|
85
|
-
} else {
|
|
86
|
-
const inputRefS = (_c = (_b = (_a = inputRef.value) == null ? void 0 : _a.$childrenRefs) == null ? void 0 : _b.$refs) == null ? void 0 : _c.inputElRef;
|
|
87
|
-
const { selectionStart, selectionEnd } = inputRefS;
|
|
88
|
-
const arr = inputValue.value.split("");
|
|
89
|
-
arr.splice(selectionStart, selectionEnd - selectionStart, key);
|
|
90
|
-
inputValue.value = arr.join("");
|
|
91
|
-
await nextTick();
|
|
92
|
-
inputRefS.focus();
|
|
93
|
-
inputRefS.setSelectionRange(selectionStart + 1, selectionStart + 1);
|
|
94
|
-
}
|
|
95
|
-
setInputValueStatus();
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
function validator() {
|
|
100
|
-
if (!inputValue.value)
|
|
101
|
-
return false;
|
|
102
|
-
if (CALCULATIONSYMBOLS.slice(2).includes(inputValue.value[0])) {
|
|
103
|
-
return false;
|
|
104
|
-
}
|
|
105
|
-
if (CALCULATIONSYMBOLS.includes(inputValue.value[inputValue.value.length - 1])) {
|
|
106
|
-
return false;
|
|
107
|
-
}
|
|
108
|
-
const arr = [];
|
|
109
|
-
let _arr = [];
|
|
110
|
-
const values = inputValue.value.split("");
|
|
111
|
-
values.forEach((str, index) => {
|
|
112
|
-
if (CALCULATIONSYMBOLS.includes(str)) {
|
|
113
|
-
arr.push(_arr.join(""));
|
|
114
|
-
_arr = [];
|
|
115
|
-
} else {
|
|
116
|
-
_arr.push(str);
|
|
117
|
-
if (index === values.length - 1)
|
|
118
|
-
arr.push(_arr.join(""));
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
const isSuccess = arr.every((value, index) => {
|
|
122
|
-
if (index === 0 && !value)
|
|
123
|
-
return true;
|
|
124
|
-
return /^\d*(.\d+)?$/.test(value);
|
|
125
|
-
});
|
|
126
|
-
if (!isSuccess)
|
|
127
|
-
return false;
|
|
128
|
-
return true;
|
|
129
|
-
}
|
|
130
|
-
function doDelete() {
|
|
131
|
-
if (!inputValue.value)
|
|
132
|
-
return;
|
|
133
|
-
const value = inputValue.value;
|
|
134
|
-
inputValue.value = value.slice(0, value.length - 1);
|
|
135
|
-
}
|
|
136
|
-
function updateFraction(value) {
|
|
137
|
-
if (!setInputStatus(inputValue, inputValueStatus))
|
|
138
|
-
return;
|
|
139
|
-
inputValue.value = (Math.round(+inputValue.value * (1 / value) * 100) / 100).toString();
|
|
140
|
-
setInputValueStatus();
|
|
141
|
-
}
|
|
142
|
-
function calculateFraction() {
|
|
143
|
-
if (!setInputStatus(inputValue, inputValueStatus) || !setInputStatus(numeratorValue, numeratorValueStatus, true) || !setInputStatus(denominatorValue, denominatorValueStatus, true))
|
|
144
|
-
return;
|
|
145
|
-
const value = getNumber(integerValue.value) + getNumber(numeratorValue.value) / getNumber(denominatorValue.value);
|
|
146
|
-
inputValue.value = (Math.round(+inputValue.value * value * 100) / 100).toString();
|
|
147
|
-
setInputValueStatus();
|
|
148
|
-
}
|
|
149
|
-
function setInputStatus(valueRef, statusRef, isInteger) {
|
|
150
|
-
if (!isInteger && (!valueRef.value || valueRef.value === ".") || isInteger && !valueRef.value) {
|
|
151
|
-
statusRef.value = "error";
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
return true;
|
|
155
|
-
}
|
|
156
|
-
function setInputValueStatus() {
|
|
157
|
-
inputValueStatus.value = !inputValue.value ? "error" : "success";
|
|
158
|
-
}
|
|
159
|
-
watch(
|
|
160
|
-
() => props.value,
|
|
161
|
-
(value) => inputValue.value = (value || "").toString(),
|
|
162
|
-
{
|
|
163
|
-
immediate: true
|
|
164
|
-
}
|
|
165
|
-
);
|
|
166
|
-
return (_ctx, _cache) => {
|
|
167
|
-
return openBlock(), createElementBlock("div", {
|
|
168
|
-
class: normalizeClass(["c-keyboard", { isFixed: __props.drag }]),
|
|
169
|
-
ref_key: "keyboardRef",
|
|
170
|
-
ref: keyboardRef,
|
|
171
|
-
style: normalizeStyle(unref(style))
|
|
172
|
-
}, [
|
|
173
|
-
createElementVNode("div", {
|
|
174
|
-
class: normalizeClass(["left", { isDose: unref(isDose) }])
|
|
175
|
-
}, [
|
|
176
|
-
createVNode(InputNumber, {
|
|
177
|
-
ref_key: "inputRef",
|
|
178
|
-
ref: inputRef,
|
|
179
|
-
modelValue: inputValue.value,
|
|
180
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
|
|
181
|
-
status: inputValueStatus.value,
|
|
182
|
-
"onUpdate:status": _cache[1] || (_cache[1] = ($event) => inputValueStatus.value = $event)
|
|
183
|
-
}, null, 8, ["modelValue", "status"]),
|
|
184
|
-
createElementVNode("div", _hoisted_1, [
|
|
185
|
-
createVNode(unref(NSpace), {
|
|
186
|
-
class: "margin-offset",
|
|
187
|
-
"wrap-item": false
|
|
188
|
-
}, {
|
|
189
|
-
default: withCtx(() => [
|
|
190
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(numberKeys), (key2) => {
|
|
191
|
-
return openBlock(), createElementBlock("span", {
|
|
192
|
-
key: key2,
|
|
193
|
-
class: normalizeClass(key2 === "0" ? "is-0" : ""),
|
|
194
|
-
onClick: ($event) => keydown(key2)
|
|
195
|
-
}, toDisplayString(key2), 11, _hoisted_2);
|
|
196
|
-
}), 128))
|
|
197
|
-
]),
|
|
198
|
-
_: 1
|
|
199
|
-
}),
|
|
200
|
-
createVNode(unref(NSpace), {
|
|
201
|
-
class: "margin-offset",
|
|
202
|
-
"wrap-item": false
|
|
203
|
-
}, {
|
|
204
|
-
default: withCtx(() => [
|
|
205
|
-
createElementVNode("span", {
|
|
206
|
-
class: "opt",
|
|
207
|
-
onClick: _cache[2] || (_cache[2] = ($event) => keydown("Undo"))
|
|
208
|
-
}, [
|
|
209
|
-
createVNode(unref(NIcon), { component: unref(ArrowUndoSharp) }, null, 8, ["component"])
|
|
210
|
-
]),
|
|
211
|
-
createElementVNode("span", {
|
|
212
|
-
class: "opt",
|
|
213
|
-
onClick: _cache[3] || (_cache[3] = ($event) => keydown("Enter"))
|
|
214
|
-
}, "\u786E\u5B9A")
|
|
215
|
-
]),
|
|
216
|
-
_: 1
|
|
217
|
-
})
|
|
218
|
-
])
|
|
219
|
-
], 2),
|
|
220
|
-
unref(isDay) ? (openBlock(), createBlock(unref(NSpace), {
|
|
221
|
-
key: 0,
|
|
222
|
-
class: "right-days",
|
|
223
|
-
"wrap-item": false,
|
|
224
|
-
justify: "center",
|
|
225
|
-
vertical: ""
|
|
226
|
-
}, {
|
|
227
|
-
default: withCtx(() => [
|
|
228
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(days.value, (day) => {
|
|
229
|
-
return openBlock(), createElementBlock("span", {
|
|
230
|
-
class: "btn",
|
|
231
|
-
key: day,
|
|
232
|
-
onClick: ($event) => keydown(day)
|
|
233
|
-
}, toDisplayString(day) + "\u5929", 9, _hoisted_3);
|
|
234
|
-
}), 128))
|
|
235
|
-
]),
|
|
236
|
-
_: 1
|
|
237
|
-
})) : createCommentVNode("v-if", true),
|
|
238
|
-
unref(isDose) ? (openBlock(), createBlock(unref(NSpace), {
|
|
239
|
-
key: 1,
|
|
240
|
-
class: "right-dose",
|
|
241
|
-
"wrap-item": false
|
|
242
|
-
}, {
|
|
243
|
-
default: withCtx(() => [
|
|
244
|
-
createElementVNode("div", _hoisted_4, [
|
|
245
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(doses.value, (dose) => {
|
|
246
|
-
return openBlock(), createElementBlock("span", {
|
|
247
|
-
class: "btn",
|
|
248
|
-
key: dose,
|
|
249
|
-
onClick: ($event) => updateFraction(dose)
|
|
250
|
-
}, "1/" + toDisplayString(dose), 9, _hoisted_5);
|
|
251
|
-
}), 128))
|
|
252
|
-
]),
|
|
253
|
-
createVNode(unref(NSpace), {
|
|
254
|
-
justify: "center",
|
|
255
|
-
vertical: "",
|
|
256
|
-
"wrap-item": false
|
|
257
|
-
}, {
|
|
258
|
-
default: withCtx(() => [
|
|
259
|
-
createElementVNode("div", _hoisted_6, [
|
|
260
|
-
createVNode(InputNumber, {
|
|
261
|
-
integer: "",
|
|
262
|
-
modelValue: integerValue.value,
|
|
263
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => integerValue.value = $event)
|
|
264
|
-
}, null, 8, ["modelValue"]),
|
|
265
|
-
createElementVNode("div", _hoisted_7, [
|
|
266
|
-
createVNode(InputNumber, {
|
|
267
|
-
integer: "",
|
|
268
|
-
modelValue: numeratorValue.value,
|
|
269
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => numeratorValue.value = $event),
|
|
270
|
-
status: numeratorValueStatus.value,
|
|
271
|
-
"onUpdate:status": _cache[6] || (_cache[6] = ($event) => numeratorValueStatus.value = $event)
|
|
272
|
-
}, null, 8, ["modelValue", "status"]),
|
|
273
|
-
_hoisted_8,
|
|
274
|
-
createVNode(InputNumber, {
|
|
275
|
-
integer: "",
|
|
276
|
-
modelValue: denominatorValue.value,
|
|
277
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => denominatorValue.value = $event),
|
|
278
|
-
status: denominatorValueStatus.value,
|
|
279
|
-
"onUpdate:status": _cache[8] || (_cache[8] = ($event) => denominatorValueStatus.value = $event)
|
|
280
|
-
}, null, 8, ["modelValue", "status"])
|
|
281
|
-
])
|
|
282
|
-
]),
|
|
283
|
-
createElementVNode("span", {
|
|
284
|
-
class: "btn",
|
|
285
|
-
onClick: calculateFraction
|
|
286
|
-
}, "\u5206\u5B50\u5F0F\u5242\u91CF")
|
|
287
|
-
]),
|
|
288
|
-
_: 1
|
|
289
|
-
})
|
|
290
|
-
]),
|
|
291
|
-
_: 1
|
|
292
|
-
})) : createCommentVNode("v-if", true)
|
|
293
|
-
], 6);
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
});
|
|
297
|
-
var NumberPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "NumberPanel.vue"]]);
|
|
298
|
-
|
|
299
|
-
export { NumberPanel as default };
|
|
1
|
+
import{defineComponent,computed,ref,watch,openBlock,createElementBlock,normalizeClass,normalizeStyle,unref,createElementVNode,createVNode,withCtx,Fragment,renderList,toDisplayString,createBlock,createCommentVNode,nextTick}from"vue";import{NSpace,NIcon}from"naive-ui";import{ArrowUndoSharp}from"@vicons/ionicons5";import InputNumber from"./InputNumber.vue.js";import{useDraggable}from"@vueuse/core";import{getNumber}from"../utils/index.js";import _export_sfc from"../../../../_virtual/plugin-vue_export-helper.js";const _hoisted_1={class:"keys"},_hoisted_2=["onClick"],_hoisted_3=["onClick"],_hoisted_4={class:"btns"},_hoisted_5=["onClick"],_hoisted_6={class:"inputs"},_hoisted_7={class:"inputs-right"},_hoisted_8=createElementVNode("hr",null,null,-1),_sfc_main=defineComponent({__name:"NumberPanel",props:{defaultValue:{type:Number},value:{type:Number},mode:{type:String},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},moveOffset:{type:Object,default:()=>({x:0,y:0})},drag:{type:Boolean,default:!1}},emits:["change"],setup(__props,{emit:emit}){const props=__props,NUMBERKEYS="1234567890.",DAYS=[3,7,14,30],DOSENUMBERKEYS="123/456*789-0.+",CALCULATIONSYMBOLS=["+","-","*","/"],isNumber=computed((()=>"number"===props.mode)),isDay=computed((()=>"day"===props.mode&&!isNumber.value)),isDose=computed((()=>"dose"===props.mode&&!isNumber.value)),numberKeys=computed((()=>(isDose.value?DOSENUMBERKEYS:NUMBERKEYS).split(""))),days=ref(DAYS),doses=ref([2,3,4,5,6,7,8]),inputValue=ref(""),integerValue=ref(),numeratorValue=ref(),denominatorValue=ref(),inputValueStatus=ref("success"),numeratorValueStatus=ref("success"),denominatorValueStatus=ref("success"),keyboardRef=ref(null),inputRef=ref(null),style=init();function init(){if(props.defaultValue&&(inputValue.value=props.defaultValue.toString()),props.drag){const{x:e,y:t,style:a}=useDraggable(keyboardRef,{initialValue:props.positionInitialValue,onMove:(e,t)=>{var a,u,l,n;e.x+=null!=(u=null==(a=props.moveOffset)?void 0:a.x)?u:0,e.y+=null!=(n=null==(l=props.moveOffset)?void 0:l.y)?n:0}});return a}}async function keydown(key){var _a,_b,_c;switch(key){case"Undo":updateValue(key);break;case"Enter":{if(!validator())return void(inputValueStatus.value="error");emit("change",eval(inputValue.value));const inputRefS=null==(_c=null==(_b=null==(_a=inputRef.value)?void 0:_a.$childrenRefs)?void 0:_b.$refs)?void 0:_c.inputElRef;await nextTick(),inputRefS.focus();break}default:"number"==typeof key?(inputValue.value=key.toString(),setInputValueStatus()):updateValue(key)}}async function updateValue(e){var t,a,u;const l=null==(u=null==(a=null==(t=inputRef.value)?void 0:t.$childrenRefs)?void 0:a.$refs)?void 0:u.inputElRef,{selectionStart:n,selectionEnd:o}=l,r=inputValue.value.split("");if("Undo"===e){const e=n===o?1:o-n,t=n===o?n-1:n;inputValue.value&&t>-1&&r.splice(t,e)}else r.splice(n,o-n,e);inputValue.value=r.join(""),await nextTick(),l.focus();const s="Undo"===e?n?o>n?n:n-1:0:n+1;l.setSelectionRange(s,s),setInputValueStatus()}function validator(){if(!inputValue.value)return!1;if(CALCULATIONSYMBOLS.slice(2).includes(inputValue.value[0]))return!1;if(CALCULATIONSYMBOLS.includes(inputValue.value[inputValue.value.length-1]))return!1;const e=[];let t=[];const a=inputValue.value.split("");a.forEach(((u,l)=>{CALCULATIONSYMBOLS.includes(u)?(e.push(t.join("")),t=[]):(t.push(u),l===a.length-1&&e.push(t.join("")))}));return!!e.every(((e,t)=>0===t&&!e||/^\d*(.\d+)?$/.test(e)))}function updateFraction(e){setInputStatus(inputValue,inputValueStatus)&&(inputValue.value=(Math.round(+inputValue.value*(1/e)*100)/100).toString(),setInputValueStatus())}function calculateFraction(){if(!setInputStatus(inputValue,inputValueStatus)||!setInputStatus(numeratorValue,numeratorValueStatus,!0)||!setInputStatus(denominatorValue,denominatorValueStatus,!0))return;const e=getNumber(integerValue.value)+getNumber(numeratorValue.value)/getNumber(denominatorValue.value);inputValue.value=(Math.round(+inputValue.value*e*100)/100).toString(),setInputValueStatus()}function setInputStatus(e,t,a){if((a||e.value&&"."!==e.value)&&(!a||e.value))return!0;t.value="error"}function setInputValueStatus(){inputValueStatus.value=inputValue.value?"success":"error"}return watch((()=>props.value),(e=>inputValue.value=(e||"").toString()),{immediate:!0}),(e,t)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["c-keyboard",{isFixed:__props.drag}]),ref_key:"keyboardRef",ref:keyboardRef,style:normalizeStyle(unref(style))},[createElementVNode("div",{class:normalizeClass(["left",{isDose:unref(isDose)}])},[createVNode(InputNumber,{ref_key:"inputRef",ref:inputRef,modelValue:inputValue.value,"onUpdate:modelValue":t[0]||(t[0]=e=>inputValue.value=e),status:inputValueStatus.value,"onUpdate:status":t[1]||(t[1]=e=>inputValueStatus.value=e)},null,8,["modelValue","status"]),createElementVNode("div",_hoisted_1,[createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(numberKeys),(e=>(openBlock(),createElementBlock("span",{key:e,class:normalizeClass("0"===e?"is-0":""),onClick:t=>keydown(e)},toDisplayString(e),11,_hoisted_2)))),128))])),_:1}),createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[createElementVNode("span",{class:"opt",onClick:t[2]||(t[2]=e=>keydown("Undo"))},[createVNode(unref(NIcon),{component:unref(ArrowUndoSharp)},null,8,["component"])]),createElementVNode("span",{class:"opt",onClick:t[3]||(t[3]=e=>keydown("Enter"))},"确定")])),_:1})])],2),unref(isDay)?(openBlock(),createBlock(unref(NSpace),{key:0,class:"right-days","wrap-item":!1,justify:"center",vertical:""},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(days.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>keydown(e)},toDisplayString(e)+"天",9,_hoisted_3)))),128))])),_:1})):createCommentVNode("v-if",!0),unref(isDose)?(openBlock(),createBlock(unref(NSpace),{key:1,class:"right-dose","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(doses.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>updateFraction(e)},"1/"+toDisplayString(e),9,_hoisted_5)))),128))]),createVNode(unref(NSpace),{justify:"center",vertical:"","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_6,[createVNode(InputNumber,{integer:"",modelValue:integerValue.value,"onUpdate:modelValue":t[4]||(t[4]=e=>integerValue.value=e)},null,8,["modelValue"]),createElementVNode("div",_hoisted_7,[createVNode(InputNumber,{integer:"",modelValue:numeratorValue.value,"onUpdate:modelValue":t[5]||(t[5]=e=>numeratorValue.value=e),status:numeratorValueStatus.value,"onUpdate:status":t[6]||(t[6]=e=>numeratorValueStatus.value=e)},null,8,["modelValue","status"]),_hoisted_8,createVNode(InputNumber,{integer:"",modelValue:denominatorValue.value,"onUpdate:modelValue":t[7]||(t[7]=e=>denominatorValue.value=e),status:denominatorValueStatus.value,"onUpdate:status":t[8]||(t[8]=e=>denominatorValueStatus.value=e)},null,8,["modelValue","status"])])]),createElementVNode("span",{class:"btn",onClick:calculateFraction},"分子式剂量")])),_:1})])),_:1})):createCommentVNode("v-if",!0)],6))}});var NumberPanel=_export_sfc(_sfc_main,[["__file","NumberPanel.vue"]]);export{NumberPanel as default};
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
3
|
-
import script from './src/Map.vue.js';
|
|
4
|
-
|
|
5
|
-
const Map = script;
|
|
6
|
-
Map.install = function(app) {
|
|
7
|
-
safeComponentRegister(app, Map, COMPONENT_NAMESPACE + "Map");
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { Map as default };
|
|
1
|
+
import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as a}from"../../shared/utils/index.js";import o from"./src/Map.vue.js";const s=o;s.install=function(o){a(o,s,r+"Map")};export{s as default};
|