cnhis-design-vue 3.1.40-beta.12 → 3.1.40-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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.js +1 -10
- 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.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/table-filter/style/index.css +1 -1
- 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,139 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NSelect } from 'naive-ui';
|
|
3
|
-
import XEUtils from 'xe-utils';
|
|
4
|
-
import 'moment';
|
|
5
|
-
import { useCommon } from './useCommon.js';
|
|
6
|
-
|
|
7
|
-
var EditSelect = defineComponent({
|
|
8
|
-
name: "EditSelect",
|
|
9
|
-
inheritAttrs: false,
|
|
10
|
-
components: {
|
|
11
|
-
NSelect
|
|
12
|
-
},
|
|
13
|
-
props: {
|
|
14
|
-
col: {
|
|
15
|
-
type: Object,
|
|
16
|
-
default: () => ({})
|
|
17
|
-
},
|
|
18
|
-
row: {
|
|
19
|
-
type: Object,
|
|
20
|
-
default: () => ({})
|
|
21
|
-
},
|
|
22
|
-
index: {
|
|
23
|
-
type: [Number, Object],
|
|
24
|
-
default: 0
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
emits: ["setOptions", "formChange"],
|
|
28
|
-
setup(props, {
|
|
29
|
-
attrs,
|
|
30
|
-
slots,
|
|
31
|
-
emit
|
|
32
|
-
}) {
|
|
33
|
-
const {
|
|
34
|
-
formRef,
|
|
35
|
-
isShow
|
|
36
|
-
} = useCommon(props, attrs, true);
|
|
37
|
-
const state = reactive({
|
|
38
|
-
keyupValue: attrs.value,
|
|
39
|
-
options: [],
|
|
40
|
-
filterOptions: [],
|
|
41
|
-
loading: false,
|
|
42
|
-
keyword: "",
|
|
43
|
-
config: {
|
|
44
|
-
multiple: props.col.multiple || false,
|
|
45
|
-
...props.col.componentProps || {}
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
const setOptions = async () => {
|
|
49
|
-
if (props.col.options) {
|
|
50
|
-
state.options = XEUtils.clone(props.col.options);
|
|
51
|
-
state.filterOptions = XEUtils.clone(props.col.options);
|
|
52
|
-
} else {
|
|
53
|
-
`${props.col.columnName}_options`;
|
|
54
|
-
const obj = {
|
|
55
|
-
keyword: state.keyword,
|
|
56
|
-
row: props.row,
|
|
57
|
-
column: props.col,
|
|
58
|
-
index: props.index
|
|
59
|
-
};
|
|
60
|
-
state.options = await props.col.queryOptions(obj);
|
|
61
|
-
state.loading = false;
|
|
62
|
-
}
|
|
63
|
-
emit("setOptions", state.options);
|
|
64
|
-
};
|
|
65
|
-
let selectSearch = (value) => {
|
|
66
|
-
state.keyword = value;
|
|
67
|
-
state.loading = true;
|
|
68
|
-
setOptions();
|
|
69
|
-
};
|
|
70
|
-
selectSearch = XEUtils.debounce(selectSearch, 800);
|
|
71
|
-
const onUpdateValue = (value) => {
|
|
72
|
-
state.keyupValue = value;
|
|
73
|
-
emit("formChange", {
|
|
74
|
-
value,
|
|
75
|
-
row: props.row,
|
|
76
|
-
column: props.col,
|
|
77
|
-
index: props.index
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
const init = () => {
|
|
81
|
-
if (props.col.options) {
|
|
82
|
-
setOptions();
|
|
83
|
-
state.config.onSearch = (value) => {
|
|
84
|
-
var _a, _b, _c;
|
|
85
|
-
const filterOptions = ((_c = (_b = (_a = formRef == null ? void 0 : formRef.value) == null ? void 0 : _a.treeMate) == null ? void 0 : _b.treeNodes) == null ? void 0 : _c.map((item) => item.rawNode)) || XEUtils.clone(props.col.options);
|
|
86
|
-
state.filterOptions = filterOptions;
|
|
87
|
-
props.row[`${props.col.columnName}_filter_options`] = state.filterOptions;
|
|
88
|
-
props.row[`${props.col.columnName}_is_key_arrow`] = false;
|
|
89
|
-
};
|
|
90
|
-
} else {
|
|
91
|
-
state.config.remote = true;
|
|
92
|
-
state.config.onSearch = selectSearch;
|
|
93
|
-
selectSearch("");
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
function onKeyup(event) {
|
|
97
|
-
var _a, _b, _c, _d;
|
|
98
|
-
const {
|
|
99
|
-
key
|
|
100
|
-
} = event;
|
|
101
|
-
if (state.config.multiple || !["ArrowUp", "ArrowDown"].includes(key))
|
|
102
|
-
return;
|
|
103
|
-
props.row[`${props.col.columnName}_is_key_arrow`] = true;
|
|
104
|
-
if (!state.keyupValue)
|
|
105
|
-
state.keyupValue = (_b = (_a = state.filterOptions) == null ? void 0 : _a[0]) == null ? void 0 : _b.value;
|
|
106
|
-
let index = state.filterOptions.findIndex((item) => item.value === state.keyupValue);
|
|
107
|
-
if (!~index) {
|
|
108
|
-
state.keyupValue = (_d = (_c = state.filterOptions) == null ? void 0 : _c[0]) == null ? void 0 : _d.value;
|
|
109
|
-
index = 0;
|
|
110
|
-
}
|
|
111
|
-
const length = state.filterOptions.length;
|
|
112
|
-
if (key === "ArrowUp") {
|
|
113
|
-
index = index - 1 === -1 ? length - 1 : index - 1;
|
|
114
|
-
}
|
|
115
|
-
if (key === "ArrowDown") {
|
|
116
|
-
index = index + 1 === length ? 0 : index + 1;
|
|
117
|
-
}
|
|
118
|
-
state.keyupValue = state.filterOptions[index].value;
|
|
119
|
-
onUpdateValue(state.keyupValue);
|
|
120
|
-
}
|
|
121
|
-
init();
|
|
122
|
-
return () => createVNode(NSelect, mergeProps({
|
|
123
|
-
"ref": formRef,
|
|
124
|
-
"show": isShow.value,
|
|
125
|
-
"onUpdate:show": ($event) => isShow.value = $event
|
|
126
|
-
}, attrs, state.config, {
|
|
127
|
-
"options": state.options,
|
|
128
|
-
"consistentMenuWidth": false,
|
|
129
|
-
"clearable": true,
|
|
130
|
-
"filterable": true,
|
|
131
|
-
"placeholder": props.col.placeholder || "\u8BF7\u9009\u62E9",
|
|
132
|
-
"loading": state.loading,
|
|
133
|
-
"onUpdateValue": onUpdateValue,
|
|
134
|
-
"onKeyup": onKeyup
|
|
135
|
-
}), null);
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
export { EditSelect as default };
|
|
1
|
+
import{defineComponent as o,reactive as e,createVNode as l,mergeProps as n}from"vue";import{NSelect as t}from"naive-ui";import i from"xe-utils";import"moment";import{useCommon as r}from"./useCommon.js";var u=o({name:"EditSelect",inheritAttrs:!1,components:{NSelect:t},props:{col:{type:Object,default:()=>({})},row:{type:Object,default:()=>({})},index:{type:[Number,Object],default:0}},emits:["setOptions","formChange"],setup(o,{attrs:u,slots:p,emit:a}){const{formRef:s,isShow:c}=r(o,u,!0),d=e({keyupValue:u.value,options:[],filterOptions:[],loading:!1,keyword:"",config:{multiple:o.col.multiple||!1,...o.col.componentProps||{}}}),m=async()=>{if(o.col.options)d.options=i.clone(o.col.options),d.filterOptions=i.clone(o.col.options);else{o.col.columnName;const e={keyword:d.keyword,row:o.row,column:o.col,index:o.index};d.options=await o.col.queryOptions(e),d.loading=!1}a("setOptions",d.options)};let f=o=>{d.keyword=o,d.loading=!0,m()};f=i.debounce(f,800);const w=e=>{d.keyupValue=e,a("formChange",{value:e,row:o.row,column:o.col,index:o.index})};function v(e){var l,n,t,i;const{key:r}=e;if(d.config.multiple||!["ArrowUp","ArrowDown"].includes(r))return;o.row[`${o.col.columnName}_is_key_arrow`]=!0,d.keyupValue||(d.keyupValue=null==(n=null==(l=d.filterOptions)?void 0:l[0])?void 0:n.value);let u=d.filterOptions.findIndex((o=>o.value===d.keyupValue));~u||(d.keyupValue=null==(i=null==(t=d.filterOptions)?void 0:t[0])?void 0:i.value,u=0);const p=d.filterOptions.length;"ArrowUp"===r&&(u=u-1==-1?p-1:u-1),"ArrowDown"===r&&(u=u+1===p?0:u+1),d.keyupValue=d.filterOptions[u].value,w(d.keyupValue)}return o.col.options?(m(),d.config.onSearch=e=>{var l,n,t;const r=(null==(t=null==(n=null==(l=null==s?void 0:s.value)?void 0:l.treeMate)?void 0:n.treeNodes)?void 0:t.map((o=>o.rawNode)))||i.clone(o.col.options);d.filterOptions=r,o.row[`${o.col.columnName}_filter_options`]=d.filterOptions,o.row[`${o.col.columnName}_is_key_arrow`]=!1}):(d.config.remote=!0,d.config.onSearch=f,f("")),()=>l(t,n({ref:s,show:c.value,"onUpdate:show":o=>c.value=o},u,d.config,{options:d.options,consistentMenuWidth:!1,clearable:!0,filterable:!0,placeholder:o.col.placeholder||"请选择",loading:d.loading,onUpdateValue:w,onKeyup:v}),null)}});export{u as default};
|
|
@@ -1,103 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import script from '../../../../../shared/components/SlotRender/SlotRender.js';
|
|
3
|
-
import { cloneDeep, isObject, isArray } from 'lodash-es';
|
|
4
|
-
import { NPopover, NInput } from 'naive-ui';
|
|
5
|
-
import { useSeparateMap } from '../../hooks/useSeparateRow.js';
|
|
6
|
-
import Separate from '../separate.vue.js';
|
|
7
|
-
import _export_sfc from '../../../../../_virtual/plugin-vue_export-helper.js';
|
|
8
|
-
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
-
__name: "edit-separate",
|
|
11
|
-
props: {
|
|
12
|
-
col: { type: Object, required: true },
|
|
13
|
-
row: { type: Object, required: true },
|
|
14
|
-
index: { type: Number, required: true }
|
|
15
|
-
},
|
|
16
|
-
emits: ["formChange"],
|
|
17
|
-
setup(__props, { emit }) {
|
|
18
|
-
const props = __props;
|
|
19
|
-
const popoverRef = ref();
|
|
20
|
-
const show = ref(false);
|
|
21
|
-
function setShow(v) {
|
|
22
|
-
show.value = v;
|
|
23
|
-
}
|
|
24
|
-
watch(show, updateShow);
|
|
25
|
-
const editContent = ref();
|
|
26
|
-
const { getRowData } = useSeparateMap();
|
|
27
|
-
async function onShow(target) {
|
|
28
|
-
var _a;
|
|
29
|
-
if (!target)
|
|
30
|
-
return;
|
|
31
|
-
editContent.value = cloneDeep(target.row[props.col.field]);
|
|
32
|
-
await new Promise((resolve) => setTimeout(resolve));
|
|
33
|
-
(_a = popoverRef.value) == null ? void 0 : _a.syncPosition();
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
async function onClose(target) {
|
|
37
|
-
if (!target)
|
|
38
|
-
return;
|
|
39
|
-
const old = target.row[props.col.field];
|
|
40
|
-
if (!isObject(editContent.value) && !isArray(editContent.value)) {
|
|
41
|
-
if (old === editContent.value)
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
emit("formChange", {
|
|
45
|
-
value: editContent.value,
|
|
46
|
-
row: props.row,
|
|
47
|
-
column: props.col,
|
|
48
|
-
index: target.index
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
function updateShow(show2) {
|
|
52
|
-
show2 ? onShow(getRowData(props.row)) : onClose(getRowData(props.row));
|
|
53
|
-
}
|
|
54
|
-
const style = {
|
|
55
|
-
border: "1px solid #f5f5f5",
|
|
56
|
-
padding: "4px 0 4px 4px",
|
|
57
|
-
background: "white",
|
|
58
|
-
"border-radius": "4px"
|
|
59
|
-
};
|
|
60
|
-
onDeactivated(() => {
|
|
61
|
-
onClose(getRowData(props.row));
|
|
62
|
-
});
|
|
63
|
-
return (_ctx, _cache) => {
|
|
64
|
-
return openBlock(), createBlock(unref(NPopover), {
|
|
65
|
-
ref_key: "popoverRef",
|
|
66
|
-
ref: popoverRef,
|
|
67
|
-
trigger: "manual",
|
|
68
|
-
show: show.value,
|
|
69
|
-
"onUpdate:show": _cache[3] || (_cache[3] = ($event) => show.value = $event),
|
|
70
|
-
"show-arrow": false
|
|
71
|
-
}, {
|
|
72
|
-
trigger: withCtx(() => [
|
|
73
|
-
createVNode(Separate, {
|
|
74
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => show.value = !show.value, ["stop"])),
|
|
75
|
-
style,
|
|
76
|
-
col: __props.col,
|
|
77
|
-
row: __props.row
|
|
78
|
-
}, null, 8, ["col", "row"])
|
|
79
|
-
]),
|
|
80
|
-
default: withCtx(() => [
|
|
81
|
-
__props.col.separateSlot ? (openBlock(), createBlock(unref(script), {
|
|
82
|
-
key: 0,
|
|
83
|
-
renderer: __props.col.separateSlot,
|
|
84
|
-
value: editContent.value,
|
|
85
|
-
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => editContent.value = $event),
|
|
86
|
-
"onUpdate:show": setShow,
|
|
87
|
-
col: __props.col,
|
|
88
|
-
row: __props.row
|
|
89
|
-
}, null, 8, ["renderer", "value", "col", "row"])) : (openBlock(), createBlock(unref(NInput), {
|
|
90
|
-
key: 1,
|
|
91
|
-
value: editContent.value,
|
|
92
|
-
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => editContent.value = $event),
|
|
93
|
-
type: "textarea"
|
|
94
|
-
}, null, 8, ["value"]))
|
|
95
|
-
]),
|
|
96
|
-
_: 1
|
|
97
|
-
}, 8, ["show"]);
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
var EditSeparate = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "edit-separate.vue"]]);
|
|
102
|
-
|
|
103
|
-
export { EditSeparate as default };
|
|
1
|
+
import{defineComponent as e,ref as o,watch as r,onDeactivated as a,openBlock as t,createBlock as l,unref as u,withCtx as n,createVNode as i,withModifiers as p}from"vue";import s from"../../../../../shared/components/SlotRender/SlotRender.js";import{cloneDeep as v,isObject as c,isArray as d}from"lodash-es";import{NPopover as f,NInput as m}from"naive-ui";import{useSeparateMap as w}from"../../hooks/useSeparateRow.js";import h from"../separate.vue.js";import x from"../../../../../_virtual/plugin-vue_export-helper.js";var y=x(e({__name:"edit-separate",props:{col:{type:Object,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0}},emits:["formChange"],setup(e,{emit:x}){const y=e,g=o(),_=o(!1);function b(e){_.value=e}r(_,(function(e){e?async function(e){var o;if(!e)return;j.value=v(e.row[y.col.field]),await new Promise((e=>setTimeout(e))),null==(o=g.value)||o.syncPosition()}(k(y.row)):R(k(y.row))}));const j=o(),{getRowData:k}=w();async function R(e){if(!e)return;const o=e.row[y.col.field];(c(j.value)||d(j.value)||o!==j.value)&&x("formChange",{value:j.value,row:y.row,column:y.col,index:e.index})}const S={border:"1px solid #f5f5f5",padding:"4px 0 4px 4px",background:"white","border-radius":"4px"};return a((()=>{R(k(y.row))})),(o,r)=>(t(),l(u(f),{ref_key:"popoverRef",ref:g,trigger:"manual",show:_.value,"onUpdate:show":r[3]||(r[3]=e=>_.value=e),"show-arrow":!1},{trigger:n((()=>[i(h,{onClick:r[0]||(r[0]=p((e=>_.value=!_.value),["stop"])),style:S,col:e.col,row:e.row},null,8,["col","row"])])),default:n((()=>[e.col.separateSlot?(t(),l(u(s),{key:0,renderer:e.col.separateSlot,value:j.value,"onUpdate:value":r[1]||(r[1]=e=>j.value=e),"onUpdate:show":b,col:e.col,row:e.row},null,8,["renderer","value","col","row"])):(t(),l(u(m),{key:1,value:j.value,"onUpdate:value":r[2]||(r[2]=e=>j.value=e),type:"textarea"},null,8,["value"]))])),_:1},8,["show"]))}}),[["__file","edit-separate.vue"]]);export{y as default};
|
|
@@ -1,122 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NTimePicker } from 'naive-ui';
|
|
3
|
-
import { useCommon } from './useCommon.js';
|
|
4
|
-
|
|
5
|
-
var EditTime = defineComponent({
|
|
6
|
-
name: "EditTime",
|
|
7
|
-
inheritAttrs: false,
|
|
8
|
-
components: {
|
|
9
|
-
NTimePicker
|
|
10
|
-
},
|
|
11
|
-
props: {
|
|
12
|
-
type: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: "input"
|
|
15
|
-
},
|
|
16
|
-
col: {
|
|
17
|
-
type: Object,
|
|
18
|
-
default: () => ({})
|
|
19
|
-
},
|
|
20
|
-
row: {
|
|
21
|
-
type: Object,
|
|
22
|
-
default: () => ({})
|
|
23
|
-
},
|
|
24
|
-
index: {
|
|
25
|
-
type: [Number, Object],
|
|
26
|
-
default: 0
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
emits: ["formChange"],
|
|
30
|
-
setup(props, {
|
|
31
|
-
attrs,
|
|
32
|
-
emit
|
|
33
|
-
}) {
|
|
34
|
-
var _a, _b;
|
|
35
|
-
const {
|
|
36
|
-
formRef,
|
|
37
|
-
isShow
|
|
38
|
-
} = useCommon(props, attrs);
|
|
39
|
-
const __value = ref(attrs.formattedValue);
|
|
40
|
-
const onConfirm = (value) => {
|
|
41
|
-
__value.value = value;
|
|
42
|
-
emit("formChange", {
|
|
43
|
-
value,
|
|
44
|
-
row: props.row,
|
|
45
|
-
column: props.col,
|
|
46
|
-
index: props.index
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
const config = {
|
|
50
|
-
clearable: true,
|
|
51
|
-
placeholder: props.col.placeholder || "\u8BF7\u9009\u62E9",
|
|
52
|
-
valueFormat: props.col.valueFormat || "HH:mm",
|
|
53
|
-
format: props.col.valueFormat || "yyyy-MM-dd HH:mm:ss",
|
|
54
|
-
...props.col.componentProps || {}
|
|
55
|
-
};
|
|
56
|
-
function getFormatTime(str) {
|
|
57
|
-
if (!str)
|
|
58
|
-
return "";
|
|
59
|
-
const valueFormat = config.valueFormat;
|
|
60
|
-
const strInsert = (str2, length) => {
|
|
61
|
-
const reg = new RegExp("\\w{1," + length + "}", "g");
|
|
62
|
-
const ma = str2.match(reg);
|
|
63
|
-
return ma == null ? void 0 : ma.join(":");
|
|
64
|
-
};
|
|
65
|
-
const result = valueFormat.includes(":") ? strInsert(str, 2) : str;
|
|
66
|
-
return result;
|
|
67
|
-
}
|
|
68
|
-
const onUpdateValue = (event) => {
|
|
69
|
-
var _a2;
|
|
70
|
-
__value.value = ((_a2 = event.target) == null ? void 0 : _a2.value) || "";
|
|
71
|
-
};
|
|
72
|
-
function onBlur() {
|
|
73
|
-
let time = __value.value;
|
|
74
|
-
const isHHmm = /^(0\d{1}|1\d{1}|2[0-3]):([0-5]\d{1})$/;
|
|
75
|
-
const ishhmm = /^(0\d{1}|1\d{1}):([0-5]\d{1})$/;
|
|
76
|
-
const isHHmmss = /^(0\d{1}|1\d{1}|2[0-3]):[0-5]\d{1}:([0-5]\d{1})$/;
|
|
77
|
-
const ishhmmss = /^(0\d{1}|1\d{1}):[0-5]\d{1}:([0-5]\d{1})$/;
|
|
78
|
-
const isValid = (curTime) => {
|
|
79
|
-
if (isHHmm.test(curTime) && config.valueFormat === "HH:mm" || ishhmm.test(curTime) && config.valueFormat === "hh:mm" || isHHmmss.test(curTime) && config.valueFormat === "HH:mm:ss" || ishhmmss.test(curTime) && config.valueFormat === "hh:mm:ss") {
|
|
80
|
-
return true;
|
|
81
|
-
}
|
|
82
|
-
return false;
|
|
83
|
-
};
|
|
84
|
-
const isTime = (curTime) => {
|
|
85
|
-
const arr = curTime.split(":");
|
|
86
|
-
return +arr[0] * 60 * 60 + +arr[1] * 60 + (arr[3] ? +arr[3] : 0) < 24 * 60 * 60;
|
|
87
|
-
};
|
|
88
|
-
if (!isValid(time)) {
|
|
89
|
-
if (!isNaN(time) && (/^\d{4}$/.test(time) || /^\d{6}$/.test(time))) {
|
|
90
|
-
const curTime = getFormatTime(time);
|
|
91
|
-
time = isValid(curTime) && isTime(curTime) ? curTime : "";
|
|
92
|
-
} else {
|
|
93
|
-
time = "";
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
time = time || "";
|
|
97
|
-
emit("formChange", {
|
|
98
|
-
value: time,
|
|
99
|
-
row: props.row,
|
|
100
|
-
column: props.col,
|
|
101
|
-
index: props.index
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
const onFunc = ((_a = props.col.componentProps) == null ? void 0 : _a.isPopover) ? {
|
|
105
|
-
onBlur
|
|
106
|
-
} : {};
|
|
107
|
-
const hideSuffix = (_b = props.col.componentProps) == null ? void 0 : _b.hideSuffix;
|
|
108
|
-
return () => createVNode(NTimePicker, mergeProps({
|
|
109
|
-
"class": {
|
|
110
|
-
"hide-suffix": hideSuffix
|
|
111
|
-
},
|
|
112
|
-
"ref": formRef,
|
|
113
|
-
"show": isShow.value,
|
|
114
|
-
"onUpdate:show": ($event) => isShow.value = $event
|
|
115
|
-
}, attrs, config, onFunc, {
|
|
116
|
-
"onUpdateFormattedValue": onConfirm,
|
|
117
|
-
"onKeyup": onUpdateValue
|
|
118
|
-
}), null);
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
export { EditTime as default };
|
|
1
|
+
import{defineComponent as e,ref as o,createVNode as t,mergeProps as l}from"vue";import{NTimePicker as a}from"naive-ui";import{useCommon as r}from"./useCommon.js";var m=e({name:"EditTime",inheritAttrs:!1,components:{NTimePicker:a},props:{type:{type:String,default:"input"},col:{type:Object,default:()=>({})},row:{type:Object,default:()=>({})},index:{type:[Number,Object],default:0}},emits:["formChange"],setup(e,{attrs:m,emit:n}){var u,d;const{formRef:s,isShow:i}=r(e,m),c=o(m.formattedValue),p=o=>{c.value=o,n("formChange",{value:o,row:e.row,column:e.col,index:e.index})},v={clearable:!0,placeholder:e.col.placeholder||"请选择",valueFormat:e.col.valueFormat||"HH:mm",format:e.col.valueFormat||"yyyy-MM-dd HH:mm:ss",...e.col.componentProps||{}};const f=e=>{var o;c.value=(null==(o=e.target)?void 0:o.value)||""};const h=(null==(u=e.col.componentProps)?void 0:u.isPopover)?{onBlur:function(){let o=c.value;const t=/^(0\d{1}|1\d{1}|2[0-3]):([0-5]\d{1})$/,l=/^(0\d{1}|1\d{1}):([0-5]\d{1})$/,a=/^(0\d{1}|1\d{1}|2[0-3]):[0-5]\d{1}:([0-5]\d{1})$/,r=/^(0\d{1}|1\d{1}):[0-5]\d{1}:([0-5]\d{1})$/,m=e=>!!(t.test(e)&&"HH:mm"===v.valueFormat||l.test(e)&&"hh:mm"===v.valueFormat||a.test(e)&&"HH:mm:ss"===v.valueFormat||r.test(e)&&"hh:mm:ss"===v.valueFormat);if(!m(o))if(isNaN(o)||!/^\d{4}$/.test(o)&&!/^\d{6}$/.test(o))o="";else{const e=(u=o)?v.valueFormat.includes(":")?((e,o)=>{const t=new RegExp("\\w{1,2}","g"),l=e.match(t);return null==l?void 0:l.join(":")})(u):u:"";o=m(e)&&(e=>{const o=e.split(":");return 60*+o[0]*60+60*+o[1]+(o[3]?+o[3]:0)<86400})(e)?e:""}var u;o=o||"",n("formChange",{value:o,row:e.row,column:e.col,index:e.index})}}:{},w=null==(d=e.col.componentProps)?void 0:d.hideSuffix;return()=>t(a,l({class:{"hide-suffix":w},ref:s,show:i.value,"onUpdate:show":e=>i.value=e},m,v,h,{onUpdateFormattedValue:p,onKeyup:f}),null)}});export{m as default};
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const useCommon = (props, attrs, isTriggerClick = false) => {
|
|
4
|
-
const formRef = ref(null);
|
|
5
|
-
const isShow = ref(false);
|
|
6
|
-
onMounted(() => {
|
|
7
|
-
var _a, _b, _c;
|
|
8
|
-
if (attrs.editTrigger !== "manual") {
|
|
9
|
-
if (isTriggerClick) {
|
|
10
|
-
(_b = (_a = formRef.value) == null ? void 0 : _a.handleTriggerClick) == null ? void 0 : _b.call(_a);
|
|
11
|
-
} else {
|
|
12
|
-
(_c = formRef.value) == null ? void 0 : _c.focus();
|
|
13
|
-
}
|
|
14
|
-
isShow.value = true;
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
return {
|
|
18
|
-
formRef,
|
|
19
|
-
isShow
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export { useCommon };
|
|
1
|
+
import{ref as l,onMounted as e}from"vue";const r=(r,u,n=!1)=>{const o=l(null),a=l(!1);return e((()=>{var l,e,r;"manual"!==u.editTrigger&&(n?null==(e=null==(l=o.value)?void 0:l.handleTriggerClick)||e.call(l):null==(r=o.value)||r.focus(),a.value=!0)})),{formRef:o,isShow:a}};export{r as useCommon};
|
|
@@ -1,39 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NInput, NButton } from 'naive-ui';
|
|
3
|
-
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
4
|
-
|
|
5
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
-
__name: "input-button",
|
|
7
|
-
emits: ["trigger"],
|
|
8
|
-
setup(__props, { emit }) {
|
|
9
|
-
const content = ref("");
|
|
10
|
-
function search() {
|
|
11
|
-
emit("trigger", content.value);
|
|
12
|
-
}
|
|
13
|
-
return (_ctx, _cache) => {
|
|
14
|
-
return openBlock(), createBlock(unref(NInput), {
|
|
15
|
-
value: content.value,
|
|
16
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => content.value = $event),
|
|
17
|
-
placeholder: "\u5B57\u6BB5\u641C\u7D22",
|
|
18
|
-
class: "check-seach-input",
|
|
19
|
-
onKeyup: withKeys(search, ["enter"])
|
|
20
|
-
}, {
|
|
21
|
-
suffix: withCtx(() => [
|
|
22
|
-
createVNode(unref(NButton), {
|
|
23
|
-
text: "",
|
|
24
|
-
onClick: search
|
|
25
|
-
}, {
|
|
26
|
-
default: withCtx(() => [
|
|
27
|
-
createTextVNode("\u641C\u7D22")
|
|
28
|
-
]),
|
|
29
|
-
_: 1
|
|
30
|
-
})
|
|
31
|
-
]),
|
|
32
|
-
_: 1
|
|
33
|
-
}, 8, ["value", "onKeyup"]);
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
var InputButtonScript = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "input-button.vue"]]);
|
|
38
|
-
|
|
39
|
-
export { InputButtonScript as default };
|
|
1
|
+
import{defineComponent as e,ref as t,openBlock as u,createBlock as r,unref as i,withKeys as a,withCtx as n,createVNode as o,createTextVNode as l}from"vue";import{NInput as p,NButton as v}from"naive-ui";import f from"../../../../_virtual/plugin-vue_export-helper.js";var m=f(e({__name:"input-button",emits:["trigger"],setup(e,{emit:f}){const m=t("");function s(){f("trigger",m.value)}return(e,t)=>(u(),r(i(p),{value:m.value,"onUpdate:value":t[0]||(t[0]=e=>m.value=e),placeholder:"字段搜索",class:"check-seach-input",onKeyup:a(s,["enter"])},{suffix:n((()=>[o(i(v),{text:"",onClick:s},{default:n((()=>[l("搜索")])),_:1})])),_:1},8,["value","onKeyup"]))}}),[["__file","input-button.vue"]]);export{m as default};
|
|
@@ -1,30 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useSeparateMap } from '../hooks/useSeparateRow.js';
|
|
3
|
-
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
4
|
-
|
|
5
|
-
const _hoisted_1 = { class: "big-table__separate" };
|
|
6
|
-
const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", { class: "big-table__separatePlaceholder" }, /* @__PURE__ */ toDisplayString(` `), -1);
|
|
7
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "separate",
|
|
9
|
-
props: {
|
|
10
|
-
col: { type: Object, required: true },
|
|
11
|
-
row: { type: Object, required: true }
|
|
12
|
-
},
|
|
13
|
-
setup(__props) {
|
|
14
|
-
const props = __props;
|
|
15
|
-
const { separateDataMap } = useSeparateMap();
|
|
16
|
-
const displayContent = computed(() => {
|
|
17
|
-
const target = separateDataMap.value.get(props.row);
|
|
18
|
-
return target ? target.separateData[props.col.field] : "";
|
|
19
|
-
});
|
|
20
|
-
return (_ctx, _cache) => {
|
|
21
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
22
|
-
createTextVNode(toDisplayString(unref(displayContent)) + " ", 1),
|
|
23
|
-
_hoisted_2
|
|
24
|
-
]);
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
var Separate = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "separate.vue"]]);
|
|
29
|
-
|
|
30
|
-
export { Separate as default };
|
|
1
|
+
import{defineComponent as e,computed as a,openBlock as r,createElementBlock as t,createTextVNode as p,toDisplayString as s,unref as o,createElementVNode as l}from"vue";import{useSeparateMap as u}from"../hooks/useSeparateRow.js";import i from"../../../../_virtual/plugin-vue_export-helper.js";const c={class:"big-table__separate"},_=l("span",{class:"big-table__separatePlaceholder"},s(" "),-1);var n=i(e({__name:"separate",props:{col:{type:Object,required:!0},row:{type:Object,required:!0}},setup(e){const l=e,{separateDataMap:i}=u(),n=a((()=>{const e=i.value.get(l.row);return e?e.separateData[l.col.field]:""}));return(e,a)=>(r(),t("div",c,[p(s(o(n))+" ",1),_]))}}),[["__file","separate.vue"]]);export{n as default};
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { comps, useEdit } from './useEdit.js';
|
|
3
|
-
export { useFormat } from './useFormat.js';
|
|
4
|
-
export { useTableParse } from './useTableParse.js';
|
|
5
|
-
export { useBatchEditing } from './useBatchEditing.js';
|
|
6
|
-
export { useNestTable } from './useNestTable.js';
|
|
7
|
-
export { useEvent } from './useEvent.js';
|
|
8
|
-
export { useAnnotation } from './useAnnotation.js';
|
|
9
|
-
export { SeparateHandle, useSeparateMap, useSeparateRow } from './useSeparateRow.js';
|
|
1
|
+
export{useAnchor}from"./useAnchor.js";export{comps,useEdit}from"./useEdit.js";export{useFormat}from"./useFormat.js";export{useTableParse}from"./useTableParse.js";export{useBatchEditing}from"./useBatchEditing.js";export{useNestTable}from"./useNestTable.js";export{useEvent}from"./useEvent.js";export{useAnnotation}from"./useAnnotation.js";export{SeparateHandle,useSeparateMap,useSeparateRow}from"./useSeparateRow.js";
|
|
@@ -1,49 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const useAnchor = (props, state, emit, xGrid) => {
|
|
4
|
-
let setAnchorStatus = true;
|
|
5
|
-
function initAnchor() {
|
|
6
|
-
var _a, _b, _c;
|
|
7
|
-
if ((_a = props.anchor) == null ? void 0 : _a.length) {
|
|
8
|
-
const columns = xGrid.value.getColumns();
|
|
9
|
-
let left = 0;
|
|
10
|
-
columns.forEach((column) => {
|
|
11
|
-
const { field, minWidth, width, fixed } = column;
|
|
12
|
-
const colWidth = +(minWidth || width);
|
|
13
|
-
if (fixed == "left") ; else {
|
|
14
|
-
left += colWidth;
|
|
15
|
-
const anchorObj = props.anchor.find((v) => v.field === field);
|
|
16
|
-
anchorObj && state.anchorList.push({
|
|
17
|
-
...anchorObj,
|
|
18
|
-
left: left - colWidth
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
state.anchorValue = ((_c = (_b = state.anchorList) == null ? void 0 : _b[0]) == null ? void 0 : _c.field) || "";
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
async function updateAnchor(field) {
|
|
26
|
-
setAnchorStatus = false;
|
|
27
|
-
const anchorObj = state.anchorList.find((v) => v.field === field);
|
|
28
|
-
await xGrid.value.scrollTo(anchorObj.left);
|
|
29
|
-
setTimeout(() => {
|
|
30
|
-
setAnchorStatus = true;
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function setAnchorValue({ scrollLeft }) {
|
|
34
|
-
if (state.anchorList.length && setAnchorStatus) {
|
|
35
|
-
const anchorObj = state.anchorList.find((v) => scrollLeft < v.left);
|
|
36
|
-
if (anchorObj) {
|
|
37
|
-
state.anchorValue = anchorObj.field;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
const anchorEvent = useThrottleFn(setAnchorValue, 800);
|
|
42
|
-
return {
|
|
43
|
-
initAnchor,
|
|
44
|
-
updateAnchor,
|
|
45
|
-
anchorEvent
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export { useAnchor };
|
|
1
|
+
import{useThrottleFn as n}from"@vueuse/core";const t=(t,o,e,i)=>{let l=!0;return{initAnchor:function(){var n,e,l;if(null==(n=t.anchor)?void 0:n.length){const n=i.value.getColumns();let c=0;n.forEach((n=>{const{field:e,minWidth:i,width:l,fixed:f}=n,r=+(i||l);if("left"==f);else{c+=r;const n=t.anchor.find((n=>n.field===e));n&&o.anchorList.push({...n,left:c-r})}})),o.anchorValue=(null==(l=null==(e=o.anchorList)?void 0:e[0])?void 0:l.field)||""}},updateAnchor:async function(n){l=!1;const t=o.anchorList.find((t=>t.field===n));await i.value.scrollTo(t.left),setTimeout((()=>{l=!0}))},anchorEvent:n((function({scrollLeft:n}){if(o.anchorList.length&&l){const t=o.anchorList.find((t=>n<t.left));t&&(o.anchorValue=t.field)}}),800)}};export{t as useAnchor};
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { isObject } from '@vue/shared';
|
|
3
|
-
import Annotation from '../../../annotation-edit/index.js';
|
|
4
|
-
|
|
5
|
-
function useAnnotation(props) {
|
|
6
|
-
function renderAnnotation(columnConfig) {
|
|
7
|
-
if (!isObject(props.annotation) || columnConfig.annotation === false)
|
|
8
|
-
return null;
|
|
9
|
-
return createVNode("section", {
|
|
10
|
-
"class": "big-table__annotationWrapper"
|
|
11
|
-
}, [createVNode(Annotation, {
|
|
12
|
-
"modelValue": props.annotation[columnConfig.columnName],
|
|
13
|
-
"onUpdate:modelValue": ($event) => props.annotation[columnConfig.columnName] = $event
|
|
14
|
-
}, null)]);
|
|
15
|
-
}
|
|
16
|
-
return {
|
|
17
|
-
renderAnnotation
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { useAnnotation };
|
|
1
|
+
import{createVNode as n}from"vue";import{isObject as o}from"@vue/shared";import t from"../../../annotation-edit/index.js";function a(a){return{renderAnnotation:function(e){return o(a.annotation)&&!1!==e.annotation?n("section",{class:"big-table__annotationWrapper"},[n(t,{modelValue:a.annotation[e.columnName],"onUpdate:modelValue":n=>a.annotation[e.columnName]=n},null)]):null}}}export{a as useAnnotation};
|