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,354 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { isEvaluation } from '../utils/judge-types.js';
|
|
3
|
-
import XEUtils from 'xe-utils';
|
|
4
|
-
import moment from 'moment';
|
|
5
|
-
import { componentMapStr } from './use-component.js';
|
|
6
|
-
|
|
7
|
-
const ScaleViewComputed = (props, state, config) => {
|
|
8
|
-
const { query } = config;
|
|
9
|
-
const cur = new Date().getTime();
|
|
10
|
-
const queryformBoldOpen = computed(() => {
|
|
11
|
-
return (query == null ? void 0 : query.formBoldOpen) == 1;
|
|
12
|
-
});
|
|
13
|
-
const showEvatip = computed(() => (item) => {
|
|
14
|
-
var _a;
|
|
15
|
-
if (!isEvaluation(item.type))
|
|
16
|
-
return false;
|
|
17
|
-
return (query == null ? void 0 : query.evatip) == 1 || ((_a = props.params) == null ? void 0 : _a.evatip) == 1;
|
|
18
|
-
});
|
|
19
|
-
const evaluateResultSetting = computed(() => {
|
|
20
|
-
var _a;
|
|
21
|
-
return ((_a = state.config) == null ? void 0 : _a.evaluateResultSetting) || {};
|
|
22
|
-
});
|
|
23
|
-
const getEvaluateTime = computed(() => {
|
|
24
|
-
const { evaluateTime } = evaluateResultSetting.value;
|
|
25
|
-
return +evaluateTime;
|
|
26
|
-
});
|
|
27
|
-
const evaluateStartTime = computed(() => {
|
|
28
|
-
var _a;
|
|
29
|
-
return (_a = evaluateResultSetting.value) == null ? void 0 : _a.evaluateStartTime;
|
|
30
|
-
});
|
|
31
|
-
const getEvaluateStartTime = computed(() => {
|
|
32
|
-
const tempSt = new Date(evaluateStartTime.value);
|
|
33
|
-
const isValidDate = XEUtils.isValidDate(tempSt);
|
|
34
|
-
if (!isValidDate)
|
|
35
|
-
return false;
|
|
36
|
-
return tempSt;
|
|
37
|
-
});
|
|
38
|
-
const evaBanEnd = computed(() => {
|
|
39
|
-
if (!evaluateStartTime.value || !getEvaluateTime.value)
|
|
40
|
-
return false;
|
|
41
|
-
const startTime = getEvaluateStartTime.value;
|
|
42
|
-
if (!startTime)
|
|
43
|
-
return false;
|
|
44
|
-
const endTime = moment(evaluateStartTime.value).add(getEvaluateTime.value, "minutes").valueOf();
|
|
45
|
-
return cur >= endTime;
|
|
46
|
-
});
|
|
47
|
-
const evaBanStart = computed(() => {
|
|
48
|
-
const startTime = getEvaluateStartTime.value;
|
|
49
|
-
if (!startTime)
|
|
50
|
-
return false;
|
|
51
|
-
const sT = moment(startTime).valueOf();
|
|
52
|
-
return cur < sT;
|
|
53
|
-
});
|
|
54
|
-
const isFormBoldOpen = computed(() => (item) => {
|
|
55
|
-
const res = item.required;
|
|
56
|
-
if (!props.styleSetting || !Object.keys(props.styleSetting).length || !("formBoldOpen" in props.styleSetting)) {
|
|
57
|
-
return res && queryformBoldOpen.value;
|
|
58
|
-
}
|
|
59
|
-
return res && props.styleSetting.formBoldOpen;
|
|
60
|
-
});
|
|
61
|
-
const scaleStyle = computed(() => {
|
|
62
|
-
let fontSize = state.fontSize;
|
|
63
|
-
if (!fontSize || fontSize === "S")
|
|
64
|
-
return null;
|
|
65
|
-
const keyValue = {
|
|
66
|
-
L: "large",
|
|
67
|
-
M: "medium",
|
|
68
|
-
XS: "extrasmall"
|
|
69
|
-
};
|
|
70
|
-
fontSize = keyValue[fontSize];
|
|
71
|
-
const scale = fontSize && (props == null ? void 0 : props.fontSizeObj[fontSize]) || 1;
|
|
72
|
-
const size = 1e4;
|
|
73
|
-
const value = Math.floor(100 / scale * size) / size;
|
|
74
|
-
return {
|
|
75
|
-
width: `${value}%`,
|
|
76
|
-
height: `${value}%`,
|
|
77
|
-
transform: `scale(${scale})`
|
|
78
|
-
};
|
|
79
|
-
});
|
|
80
|
-
const handlePageClass = computed(() => {
|
|
81
|
-
if (props.type == "customList" && !props.noBtn)
|
|
82
|
-
return false;
|
|
83
|
-
if (!props.noBtn && !props.hideBtn)
|
|
84
|
-
return false;
|
|
85
|
-
return true;
|
|
86
|
-
});
|
|
87
|
-
const isShowItem = computed(() => (item) => {
|
|
88
|
-
return showEvent(item);
|
|
89
|
-
});
|
|
90
|
-
const handleShowQuestionNumber = computed(() => (item) => {
|
|
91
|
-
var _a;
|
|
92
|
-
const { type } = item || {};
|
|
93
|
-
const tempTile = ((_a = state.config) == null ? void 0 : _a.autoQuestionNumber) === false ? item.showTitle : `${item.softcode}\u3001${item.showTitle}`;
|
|
94
|
-
if (!isEvaluation(type))
|
|
95
|
-
return tempTile;
|
|
96
|
-
const score = handleEvaluationScore(item);
|
|
97
|
-
return `${tempTile} <span style="color:#2d7aff;" class="score-i">${score}</span>`;
|
|
98
|
-
});
|
|
99
|
-
const hasScore = computed(() => {
|
|
100
|
-
const { config: config2 } = state;
|
|
101
|
-
if (!config2 || !Object.keys(config2).length)
|
|
102
|
-
return false;
|
|
103
|
-
if ("totalScore" in config2)
|
|
104
|
-
return true;
|
|
105
|
-
return false;
|
|
106
|
-
});
|
|
107
|
-
const isPreviewScale = computed(() => {
|
|
108
|
-
var _a;
|
|
109
|
-
const guage_id = (_a = props.ids) == null ? void 0 : _a.guage_id;
|
|
110
|
-
return guage_id && props.noBtn;
|
|
111
|
-
});
|
|
112
|
-
const skipCover = computed(() => {
|
|
113
|
-
const params = props.params || {};
|
|
114
|
-
if (!("skipCover" in params)) {
|
|
115
|
-
return false;
|
|
116
|
-
}
|
|
117
|
-
const res = params.skipCover && !evaBanStart.value && !evaBanEnd.value;
|
|
118
|
-
return res;
|
|
119
|
-
});
|
|
120
|
-
const showEvaluateEntry = computed(() => {
|
|
121
|
-
return !isPreviewScale.value && state.showEvaluatePage && state.showEvaluateSettingWrap && !state.isFinished && !props.noBtn && !props.hideBtn;
|
|
122
|
-
});
|
|
123
|
-
const showEvaluateCoundownPage = computed(() => {
|
|
124
|
-
return !isPreviewScale.value && !showEvaluateEntry.value && state.showEvaluateCountdownWrap && !state.isFinished && !props.noBtn && !props.hideBtn;
|
|
125
|
-
});
|
|
126
|
-
const hasEvaluateResultSetting = computed(() => {
|
|
127
|
-
const { evaluateResultSetting: evaluateResultSetting2 = {} } = state.config;
|
|
128
|
-
const valueArr = Object.values(evaluateResultSetting2).filter((item) => {
|
|
129
|
-
if (item)
|
|
130
|
-
return true;
|
|
131
|
-
}) || [];
|
|
132
|
-
return valueArr.length;
|
|
133
|
-
});
|
|
134
|
-
const hasparamsEvaluate = computed(() => {
|
|
135
|
-
return state.paramsEvaluate && Object.keys(state.paramsEvaluate).length;
|
|
136
|
-
});
|
|
137
|
-
const hasDefault = computed(() => {
|
|
138
|
-
const hash = window.location.search || window.location.hash;
|
|
139
|
-
if (!hash)
|
|
140
|
-
return;
|
|
141
|
-
const defaultVariable = ["evaname", "evadesc", "evast", "evadur", "evaan"];
|
|
142
|
-
const hasDefaultItem = defaultVariable.find((item) => hash.includes(item));
|
|
143
|
-
return state.paramsEvaluate || hasDefaultItem;
|
|
144
|
-
});
|
|
145
|
-
const showSaveBtn = computed(() => {
|
|
146
|
-
if (!hasEvaluateResultSetting.value && !hasDefault.value) {
|
|
147
|
-
return !props.noBtn && !props.hideBtn;
|
|
148
|
-
}
|
|
149
|
-
return !props.noBtn && !props.hideBtn && !state.isFinished;
|
|
150
|
-
});
|
|
151
|
-
const componentDisable = computed(() => {
|
|
152
|
-
if (!hasEvaluateResultSetting.value && !hasDefault.value) {
|
|
153
|
-
return !!props.hideBtn || !!props.isLock;
|
|
154
|
-
}
|
|
155
|
-
return !!props.hideBtn || !!props.isLock || state.isFinished;
|
|
156
|
-
});
|
|
157
|
-
const showEvaluateLabel = computed(() => (item) => {
|
|
158
|
-
const obj = {
|
|
159
|
-
EVALUATE_RADIO_BLOCK: "\u5355\u9009\u9898",
|
|
160
|
-
EVALUATE_CHECKBOX_BLOCK: "\u591A\u9009\u9898"
|
|
161
|
-
};
|
|
162
|
-
return obj[item.type];
|
|
163
|
-
});
|
|
164
|
-
const showAnswerParse = computed(() => (item) => {
|
|
165
|
-
var _a;
|
|
166
|
-
const { evaluateAnswer, checkAnswerMode, evaluateStartTime: evaluateStartTime2, evaluateTime } = ((_a = state.config) == null ? void 0 : _a.evaluateResultSetting) || {};
|
|
167
|
-
const arr = ["EVALUATE_RADIO_BLOCK", "EVALUATE_CHECKBOX_BLOCK", "EVALUATE_SELECT", "EVALUATE_INPUT"];
|
|
168
|
-
const maxScore = (item == null ? void 0 : item.scoreConfigs) || 0;
|
|
169
|
-
const isShow = evaluateAnswer && state.isFinished && arr.includes(item.type) && maxScore;
|
|
170
|
-
if (!evaluateStartTime2 || !evaluateTime || checkAnswerMode && checkAnswerMode == 1) {
|
|
171
|
-
return isShow;
|
|
172
|
-
}
|
|
173
|
-
if (!XEUtils.isValidDate(new Date(evaluateStartTime2)))
|
|
174
|
-
return isShow;
|
|
175
|
-
const endTime = moment(evaluateStartTime2).add(evaluateTime, "minutes");
|
|
176
|
-
const isRang = endTime.diff(moment(), "seconds", true);
|
|
177
|
-
return isShow && isRang <= 0;
|
|
178
|
-
});
|
|
179
|
-
const tipMsg = computed(() => {
|
|
180
|
-
return props.type === "customList" ? "\u4FDD\u5B58" : "\u63D0\u4EA4";
|
|
181
|
-
});
|
|
182
|
-
const selectProps = computed(() => {
|
|
183
|
-
return {
|
|
184
|
-
getSelectOptions: props.getSelectOptions,
|
|
185
|
-
getSearchOptions: props.getSearchOptions,
|
|
186
|
-
openType: props.openType
|
|
187
|
-
};
|
|
188
|
-
});
|
|
189
|
-
const cascaderProps = computed(() => {
|
|
190
|
-
return {
|
|
191
|
-
getCascadeOptions: props.getCascadeOptions
|
|
192
|
-
};
|
|
193
|
-
});
|
|
194
|
-
const uploadProps = computed(() => {
|
|
195
|
-
return {
|
|
196
|
-
uploadPictureUrl: props.uploadPictureUrl,
|
|
197
|
-
uploadFileUrl: props.uploadFileUrl
|
|
198
|
-
};
|
|
199
|
-
});
|
|
200
|
-
const mapProps = computed(() => {
|
|
201
|
-
return {
|
|
202
|
-
ak: props.ak
|
|
203
|
-
};
|
|
204
|
-
});
|
|
205
|
-
const vodChunkUploadProps = computed(() => {
|
|
206
|
-
return {
|
|
207
|
-
source: "guage",
|
|
208
|
-
getChunkUploadConfig: props.getChunkUploadConfig
|
|
209
|
-
};
|
|
210
|
-
});
|
|
211
|
-
const selectLabelProps = computed(() => {
|
|
212
|
-
return {
|
|
213
|
-
selectedList: state.labelSelectedList,
|
|
214
|
-
getLabelList: props.getLabelList,
|
|
215
|
-
deleteLabel: props.deleteLabel,
|
|
216
|
-
saveLabelItem: props.saveLabelItem,
|
|
217
|
-
sourceType: props.sourceType
|
|
218
|
-
};
|
|
219
|
-
});
|
|
220
|
-
const comProsMap = {
|
|
221
|
-
RSelectCom: selectProps.value,
|
|
222
|
-
RCascaderCom: cascaderProps.value,
|
|
223
|
-
RUploadCom: uploadProps.value,
|
|
224
|
-
RMapCom: mapProps.value,
|
|
225
|
-
RVodChunkUploadCom: vodChunkUploadProps.value,
|
|
226
|
-
CSelectLabelCom: selectLabelProps.value
|
|
227
|
-
};
|
|
228
|
-
const propsConfig = computed(() => (item, index) => {
|
|
229
|
-
var _a;
|
|
230
|
-
const propType = componentMapStr[item.type];
|
|
231
|
-
const useProps = comProsMap[propType] || {};
|
|
232
|
-
const propsObj = {
|
|
233
|
-
form: state.form,
|
|
234
|
-
item,
|
|
235
|
-
index,
|
|
236
|
-
isLock: componentDisable.value,
|
|
237
|
-
...useProps
|
|
238
|
-
};
|
|
239
|
-
if (propType === "RVodChunkUploadCom") {
|
|
240
|
-
Object.assign(propsObj, {
|
|
241
|
-
formData: item,
|
|
242
|
-
limitNum: ((_a = item.setting) == null ? void 0 : _a.limitPic) || 1,
|
|
243
|
-
defFileList: state.form[item.val_key]
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
if (propType === "RMapCom") {
|
|
247
|
-
Object.assign(propsObj, {
|
|
248
|
-
locationProp: state.form[item.val_key]
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
if (propType === "CSelectLabelCom") {
|
|
252
|
-
delete propsObj.form;
|
|
253
|
-
delete propsObj.index;
|
|
254
|
-
}
|
|
255
|
-
return propsObj;
|
|
256
|
-
});
|
|
257
|
-
const showEvent = (formItem, isSubmitCallback) => {
|
|
258
|
-
if (formItem.hide)
|
|
259
|
-
return false;
|
|
260
|
-
const { form = {}, formArray = [] } = state;
|
|
261
|
-
let relationLogicObj = {};
|
|
262
|
-
if (isSubmitCallback) {
|
|
263
|
-
let setting = formItem.setting;
|
|
264
|
-
if (formItem.setting && XEUtils.isJSON(formItem.setting)) {
|
|
265
|
-
setting = JSON.parse(formItem.setting);
|
|
266
|
-
}
|
|
267
|
-
relationLogicObj = XEUtils.isString(setting.callbackCondition) ? JSON.parse(setting.callbackCondition) : setting.callbackCondition;
|
|
268
|
-
if (!relationLogicObj || !relationLogicObj.condition || !relationLogicObj.condition.length) {
|
|
269
|
-
return true;
|
|
270
|
-
}
|
|
271
|
-
} else {
|
|
272
|
-
relationLogicObj = XEUtils.isString(formItem.relationLogic) ? JSON.parse(formItem.relationLogic) : formItem.relationLogic;
|
|
273
|
-
}
|
|
274
|
-
if (!relationLogicObj || !Object.keys(relationLogicObj).length)
|
|
275
|
-
return true;
|
|
276
|
-
const { relation_logic_is, condition, relation_logic } = relationLogicObj;
|
|
277
|
-
if (relation_logic_is) {
|
|
278
|
-
const results = condition.map((c) => {
|
|
279
|
-
const mItem = formArray.filter((f) => f.seq == c.subject_seq)[0];
|
|
280
|
-
const key = formKey(mItem);
|
|
281
|
-
if (XEUtils.isArray(form[key])) {
|
|
282
|
-
return form[key].some((v) => c.value.includes(v));
|
|
283
|
-
} else {
|
|
284
|
-
return c.value.includes(form[key]);
|
|
285
|
-
}
|
|
286
|
-
});
|
|
287
|
-
if (relation_logic == "OR") {
|
|
288
|
-
formItem.isShow = results.some((el) => el);
|
|
289
|
-
} else if (relation_logic == "AND") {
|
|
290
|
-
formItem.isShow = results.every((el) => el);
|
|
291
|
-
} else {
|
|
292
|
-
formItem.isShow = results[0];
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
return formItem.isShow;
|
|
296
|
-
};
|
|
297
|
-
const formKey = (item) => {
|
|
298
|
-
return item.databaseTitle || item.title;
|
|
299
|
-
};
|
|
300
|
-
const handleEvaluationScore = (ele) => {
|
|
301
|
-
const { minScore = 0, maxScore = 0, scoreType } = ele.scoreConfigs || {};
|
|
302
|
-
return `(${maxScore}\u5206)`;
|
|
303
|
-
};
|
|
304
|
-
const evaluatePageProps = computed(() => {
|
|
305
|
-
var _a;
|
|
306
|
-
return {
|
|
307
|
-
formArray: state.formArray,
|
|
308
|
-
evaluateResultConfig: ((_a = state.config) == null ? void 0 : _a.evaluateResultConfig) || {},
|
|
309
|
-
evaluateResultSetting: evaluateResultSetting.value,
|
|
310
|
-
isFinished: state.isFinished,
|
|
311
|
-
maxScore: state.maxScore
|
|
312
|
-
};
|
|
313
|
-
});
|
|
314
|
-
const evaluateCountdownProps = computed(() => {
|
|
315
|
-
var _a;
|
|
316
|
-
return {
|
|
317
|
-
formArray: state.formArray,
|
|
318
|
-
evaluateResultConfig: ((_a = state.config) == null ? void 0 : _a.evaluateResultConfig) || {},
|
|
319
|
-
evaluateResultSetting: evaluateResultSetting.value,
|
|
320
|
-
form: state.form,
|
|
321
|
-
isFinished: state.isFinished,
|
|
322
|
-
currentTime: state.currentTime,
|
|
323
|
-
showEvaluateCountdown: state.showEvaluateCountdown
|
|
324
|
-
};
|
|
325
|
-
});
|
|
326
|
-
return {
|
|
327
|
-
showEvatip,
|
|
328
|
-
isFormBoldOpen,
|
|
329
|
-
scaleStyle,
|
|
330
|
-
handlePageClass,
|
|
331
|
-
isShowItem,
|
|
332
|
-
handleShowQuestionNumber,
|
|
333
|
-
hasScore,
|
|
334
|
-
isPreviewScale,
|
|
335
|
-
showEvaluateEntry,
|
|
336
|
-
showEvaluateCoundownPage,
|
|
337
|
-
hasEvaluateResultSetting,
|
|
338
|
-
hasparamsEvaluate,
|
|
339
|
-
hasDefault,
|
|
340
|
-
showSaveBtn,
|
|
341
|
-
componentDisable,
|
|
342
|
-
showEvaluateLabel,
|
|
343
|
-
showAnswerParse,
|
|
344
|
-
tipMsg,
|
|
345
|
-
propsConfig,
|
|
346
|
-
showEvent,
|
|
347
|
-
formKey,
|
|
348
|
-
evaluatePageProps,
|
|
349
|
-
evaluateCountdownProps,
|
|
350
|
-
skipCover
|
|
351
|
-
};
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
export { ScaleViewComputed };
|
|
1
|
+
import{computed as e}from"vue";import{isEvaluation as t}from"../utils/judge-types.js";import a from"xe-utils";import n from"moment";import{componentMapStr as o}from"./use-component.js";const i=(i,l,r)=>{const{query:s}=r,u=(new Date).getTime(),c=e((()=>1==(null==s?void 0:s.formBoldOpen))),v=e((()=>e=>{var a;return!!t(e.type)&&(1==(null==s?void 0:s.evatip)||1==(null==(a=i.params)?void 0:a.evatip))})),d=e((()=>{var e;return(null==(e=l.config)?void 0:e.evaluateResultSetting)||{}})),m=e((()=>{const{evaluateTime:e}=d.value;return+e})),p=e((()=>{var e;return null==(e=d.value)?void 0:e.evaluateStartTime})),f=e((()=>{const e=new Date(p.value);return!!a.isValidDate(e)&&e})),g=e((()=>{if(!p.value||!m.value)return!1;if(!f.value)return!1;const e=n(p.value).add(m.value,"minutes").valueOf();return u>=e})),h=e((()=>{const e=f.value;if(!e)return!1;const t=n(e).valueOf();return u<t})),C=e((()=>e=>{const t=e.required;return i.styleSetting&&Object.keys(i.styleSetting).length&&"formBoldOpen"in i.styleSetting?t&&i.styleSetting.formBoldOpen:t&&c.value})),S=e((()=>{let e=l.fontSize;if(!e||"S"===e)return null;e={L:"large",M:"medium",XS:"extrasmall"}[e];const t=e&&(null==i?void 0:i.fontSizeObj[e])||1,a=Math.floor(100/t*1e4)/1e4;return{width:`${a}%`,height:`${a}%`,transform:`scale(${t})`}})),w=e((()=>!("customList"==i.type&&!i.noBtn)&&!(!i.noBtn&&!i.hideBtn))),y=e((()=>e=>q(e))),L=e((()=>e=>{var a;const{type:n}=e||{},o=!1===(null==(a=l.config)?void 0:a.autoQuestionNumber)?e.showTitle:`${e.softcode}、${e.showTitle}`;if(!t(n))return o;return`${o} <span style="color:#2d7aff;" class="score-i">${X(e)}</span>`})),O=e((()=>{const{config:e}=l;return!(!e||!Object.keys(e).length)&&"totalScore"in e})),E=e((()=>{var e;return(null==(e=i.ids)?void 0:e.guage_id)&&i.noBtn})),b=e((()=>{const e=i.params||{};if(!("skipCover"in e))return!1;return e.skipCover&&!h.value&&!g.value})),B=e((()=>!E.value&&l.showEvaluatePage&&l.showEvaluateSettingWrap&&!l.isFinished&&!i.noBtn&&!i.hideBtn)),A=e((()=>!E.value&&!B.value&&l.showEvaluateCountdownWrap&&!l.isFinished&&!i.noBtn&&!i.hideBtn)),T=e((()=>{const{evaluateResultSetting:e={}}=l.config;return(Object.values(e).filter((e=>{if(e)return!0}))||[]).length})),k=e((()=>l.paramsEvaluate&&Object.keys(l.paramsEvaluate).length)),R=e((()=>{const e=window.location.search||window.location.hash;if(!e)return;const t=["evaname","evadesc","evast","evadur","evaan"].find((t=>e.includes(t)));return l.paramsEvaluate||t})),_=e((()=>T.value||R.value?!i.noBtn&&!i.hideBtn&&!l.isFinished:!i.noBtn&&!i.hideBtn)),U=e((()=>T.value||R.value?!!i.hideBtn||!!i.isLock||l.isFinished:!!i.hideBtn||!!i.isLock)),F=e((()=>e=>({EVALUATE_RADIO_BLOCK:"单选题",EVALUATE_CHECKBOX_BLOCK:"多选题"}[e.type]))),P=e((()=>e=>{var t;const{evaluateAnswer:o,checkAnswerMode:i,evaluateStartTime:r,evaluateTime:s}=(null==(t=l.config)?void 0:t.evaluateResultSetting)||{},u=(null==e?void 0:e.scoreConfigs)||0,c=o&&l.isFinished&&["EVALUATE_RADIO_BLOCK","EVALUATE_CHECKBOX_BLOCK","EVALUATE_SELECT","EVALUATE_INPUT"].includes(e.type)&&u;if(!r||!s||i&&1==i)return c;if(!a.isValidDate(new Date(r)))return c;const v=n(r).add(s,"minutes").diff(n(),"seconds",!0);return c&&v<=0})),j=e((()=>"customList"===i.type?"保存":"提交")),D=e((()=>({getSelectOptions:i.getSelectOptions,getSearchOptions:i.getSearchOptions,openType:i.openType}))),V=e((()=>({getCascadeOptions:i.getCascadeOptions}))),N=e((()=>({uploadPictureUrl:i.uploadPictureUrl,uploadFileUrl:i.uploadFileUrl}))),x=e((()=>({ak:i.ak}))),$=e((()=>({source:"guage",getChunkUploadConfig:i.getChunkUploadConfig}))),K=e((()=>({selectedList:l.labelSelectedList,getLabelList:i.getLabelList,deleteLabel:i.deleteLabel,saveLabelItem:i.saveLabelItem,sourceType:i.sourceType}))),I={RSelectCom:D.value,RCascaderCom:V.value,RUploadCom:N.value,RMapCom:x.value,RVodChunkUploadCom:$.value,CSelectLabelCom:K.value},M=e((()=>(e,t)=>{var a;const n=o[e.type],i=I[n]||{},r={form:l.form,item:e,index:t,isLock:U.value,...i};return"RVodChunkUploadCom"===n&&Object.assign(r,{formData:e,limitNum:(null==(a=e.setting)?void 0:a.limitPic)||1,defFileList:l.form[e.val_key]}),"RMapCom"===n&&Object.assign(r,{locationProp:l.form[e.val_key]}),"CSelectLabelCom"===n&&(delete r.form,delete r.index),r})),q=(e,t)=>{if(e.hide)return!1;const{form:n={},formArray:o=[]}=l;let i={};if(t){let t=e.setting;if(e.setting&&a.isJSON(e.setting)&&(t=JSON.parse(e.setting)),i=a.isString(t.callbackCondition)?JSON.parse(t.callbackCondition):t.callbackCondition,!i||!i.condition||!i.condition.length)return!0}else i=a.isString(e.relationLogic)?JSON.parse(e.relationLogic):e.relationLogic;if(!i||!Object.keys(i).length)return!0;const{relation_logic_is:r,condition:s,relation_logic:u}=i;if(r){const t=s.map((e=>{const t=o.filter((t=>t.seq==e.subject_seq))[0],i=J(t);return a.isArray(n[i])?n[i].some((t=>e.value.includes(t))):e.value.includes(n[i])}));e.isShow="OR"==u?t.some((e=>e)):"AND"==u?t.every((e=>e)):t[0]}return e.isShow},J=e=>e.databaseTitle||e.title,X=e=>{const{minScore:t=0,maxScore:a=0,scoreType:n}=e.scoreConfigs||{};return`(${a}分)`},z=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:d.value,isFinished:l.isFinished,maxScore:l.maxScore}})),H=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:d.value,form:l.form,isFinished:l.isFinished,currentTime:l.currentTime,showEvaluateCountdown:l.showEvaluateCountdown}}));return{showEvatip:v,isFormBoldOpen:C,scaleStyle:S,handlePageClass:w,isShowItem:y,handleShowQuestionNumber:L,hasScore:O,isPreviewScale:E,showEvaluateEntry:B,showEvaluateCoundownPage:A,hasEvaluateResultSetting:T,hasparamsEvaluate:k,hasDefault:R,showSaveBtn:_,componentDisable:U,showEvaluateLabel:F,showAnswerParse:P,tipMsg:j,propsConfig:M,showEvent:q,formKey:J,evaluatePageProps:z,evaluateCountdownProps:H,skipCover:b}};export{i as ScaleViewComputed};
|