cnhis-design-vue 3.1.24-beta.5 → 3.1.24-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +123 -123
- package/package.json +2 -2
- package/es/_virtual/plugin-vue_export-helper.js +0 -9
- package/es/components/annotation-edit/index.d.ts +0 -17
- package/es/components/annotation-edit/index.js +0 -10
- package/es/components/annotation-edit/src/AnnotationEdit.d.ts +0 -16
- package/es/components/annotation-edit/src/AnnotationEdit.js +0 -123
- package/es/components/annotation-edit/style/index.css +0 -1
- package/es/components/big-table/index.d.ts +0 -1185
- package/es/components/big-table/index.js +0 -16
- package/es/components/big-table/src/BigTable.js +0 -6
- package/es/components/big-table/src/BigTable.vue.d.ts +0 -1198
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +0 -2421
- package/es/components/big-table/src/bigTableEmits.d.ts +0 -2
- package/es/components/big-table/src/bigTableEmits.js +0 -53
- package/es/components/big-table/src/bigTableProps.d.ts +0 -207
- package/es/components/big-table/src/bigTableProps.js +0 -119
- package/es/components/big-table/src/bigTableState.d.ts +0 -58
- package/es/components/big-table/src/bigTableState.js +0 -62
- package/es/components/big-table/src/components/NoData.js +0 -74
- package/es/components/big-table/src/components/NoData.vue.d.ts +0 -49
- package/es/components/big-table/src/components/edit-form/edit-date.d.ts +0 -34
- package/es/components/big-table/src/components/edit-form/edit-date.js +0 -214
- package/es/components/big-table/src/components/edit-form/edit-input.d.ts +0 -43
- package/es/components/big-table/src/components/edit-form/edit-input.js +0 -89
- package/es/components/big-table/src/components/edit-form/edit-select-table.d.ts +0 -35
- package/es/components/big-table/src/components/edit-form/edit-select.d.ts +0 -35
- package/es/components/big-table/src/components/edit-form/edit-select.js +0 -102
- package/es/components/big-table/src/components/edit-form/edit-separate.js +0 -103
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +0 -130
- package/es/components/big-table/src/components/edit-form/edit-time.d.ts +0 -43
- package/es/components/big-table/src/components/edit-form/edit-time.js +0 -62
- package/es/components/big-table/src/components/edit-form/useCommon.d.ts +0 -4
- package/es/components/big-table/src/components/edit-form/useCommon.js +0 -19
- package/es/components/big-table/src/components/input-button.js +0 -34
- package/es/components/big-table/src/components/input-button.vue.d.ts +0 -6
- package/es/components/big-table/src/components/separate.js +0 -30
- package/es/components/big-table/src/components/separate.vue.d.ts +0 -40
- package/es/components/big-table/src/constants/index.d.ts +0 -3
- package/es/components/big-table/src/constants/index.js +0 -3
- package/es/components/big-table/src/hooks/export.d.ts +0 -1
- package/es/components/big-table/src/hooks/export.js +0 -1
- package/es/components/big-table/src/hooks/index.d.ts +0 -9
- package/es/components/big-table/src/hooks/index.js +0 -9
- package/es/components/big-table/src/hooks/useAnchor.d.ts +0 -7
- package/es/components/big-table/src/hooks/useAnchor.js +0 -49
- package/es/components/big-table/src/hooks/useAnnotation.d.ts +0 -4
- package/es/components/big-table/src/hooks/useAnnotation.js +0 -21
- package/es/components/big-table/src/hooks/useBatchEditing.d.ts +0 -17
- package/es/components/big-table/src/hooks/useBatchEditing.js +0 -301
- package/es/components/big-table/src/hooks/useColumnConfigAdaptor.d.ts +0 -11
- package/es/components/big-table/src/hooks/useColumnConfigAdaptor.js +0 -158
- package/es/components/big-table/src/hooks/useEdit.d.ts +0 -335
- package/es/components/big-table/src/hooks/useEdit.js +0 -135
- package/es/components/big-table/src/hooks/useEvent.d.ts +0 -6
- package/es/components/big-table/src/hooks/useEvent.js +0 -81
- package/es/components/big-table/src/hooks/useFormat.d.ts +0 -30
- package/es/components/big-table/src/hooks/useFormat.js +0 -507
- package/es/components/big-table/src/hooks/useNestTable.d.ts +0 -8
- package/es/components/big-table/src/hooks/useNestTable.js +0 -86
- package/es/components/big-table/src/hooks/useSeparateRow.d.ts +0 -30
- package/es/components/big-table/src/hooks/useSeparateRow.js +0 -132
- package/es/components/big-table/src/hooks/useTableParse.d.ts +0 -6
- package/es/components/big-table/src/hooks/useTableParse.js +0 -142
- package/es/components/big-table/src/utils.d.ts +0 -59
- package/es/components/big-table/src/utils.js +0 -608
- package/es/components/big-table/style/index.css +0 -1
- package/es/components/bpmn-workflow/index.d.ts +0 -72
- package/es/components/bpmn-workflow/index.js +0 -10
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.js +0 -258
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.d.ts +0 -75
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.d.ts +0 -75
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +0 -1452
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.d.ts +0 -24
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette.d.ts +0 -19
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.d.ts +0 -70
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +0 -99
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.d.ts +0 -21
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +0 -114
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.d.ts +0 -12
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +0 -40
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/index.d.ts +0 -16
- package/es/components/bpmn-workflow/src/custom/customModeler/index.d.ts +0 -6
- package/es/components/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu.d.ts +0 -5
- package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.d.ts +0 -12
- package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +0 -14
- package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.d.ts +0 -5
- package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +0 -10
- package/es/components/bpmn-workflow/src/custom/customRules/no-task.d.ts +0 -4
- package/es/components/bpmn-workflow/src/custom/customTranslate/customTranslate.d.ts +0 -1
- package/es/components/bpmn-workflow/src/custom/customTranslate/zh.d.ts +0 -226
- package/es/components/bpmn-workflow/style/index.css +0 -1
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/button-print/index.d.ts +0 -613
- package/es/components/button-print/index.js +0 -11
- package/es/components/button-print/src/ButtonPrint.js +0 -6
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +0 -620
- package/es/components/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +0 -481
- package/es/components/button-print/src/components/IdentityVerification.js +0 -139
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +0 -367
- package/es/components/button-print/src/utils/dialog.d.ts +0 -8
- package/es/components/button-print/src/utils/dialog.js +0 -77
- package/es/components/button-print/src/utils/index.d.ts +0 -1
- package/es/components/button-print/src/utils/index.js +0 -1
- package/es/components/button-print/src/utils/print.d.ts +0 -52
- package/es/components/button-print/src/utils/print.js +0 -357
- package/es/components/button-print/style/index.css +0 -1
- package/es/components/chunk-upload/index.d.ts +0 -305
- package/es/components/chunk-upload/index.js +0 -14
- package/es/components/chunk-upload/src/chunk-upload-new.js +0 -477
- package/es/components/chunk-upload/src/chunk-upload-new.vue.d.ts +0 -196
- package/es/components/chunk-upload/src/hooks/upload-computed.d.ts +0 -11
- package/es/components/chunk-upload/src/hooks/upload-computed.js +0 -70
- package/es/components/chunk-upload/src/hooks/upload-data.d.ts +0 -63
- package/es/components/chunk-upload/src/hooks/upload-data.js +0 -96
- package/es/components/chunk-upload/src/hooks/vod-computed.d.ts +0 -10
- package/es/components/chunk-upload/src/hooks/vod-computed.js +0 -79
- package/es/components/chunk-upload/src/hooks/vod-data.d.ts +0 -23
- package/es/components/chunk-upload/src/hooks/vod-data.js +0 -28
- package/es/components/chunk-upload/src/vod-chunk-upload/index.d.ts +0 -2
- package/es/components/chunk-upload/src/vod-chunk-upload/index.js +0 -2
- package/es/components/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.js +0 -332
- package/es/components/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +0 -304
- package/es/components/chunk-upload/src/vod-upload-modal.d.ts +0 -25
- package/es/components/chunk-upload/src/vod-upload-modal.js +0 -94
- package/es/components/chunk-upload/style/index.css +0 -1
- package/es/components/drag-layout/index.d.ts +0 -606
- package/es/components/drag-layout/index.js +0 -11
- package/es/components/drag-layout/src/DragFormLeftItem.js +0 -122
- package/es/components/drag-layout/src/DragFormLeftItem.vue.d.ts +0 -21
- package/es/components/drag-layout/src/DragFormRightItem.js +0 -267
- package/es/components/drag-layout/src/DragFormRightItem.vue.d.ts +0 -125
- package/es/components/drag-layout/src/DragLayout.js +0 -662
- package/es/components/drag-layout/src/DragLayout.vue.d.ts +0 -606
- package/es/components/drag-layout/style/index.css +0 -1
- package/es/components/editor/index.d.ts +0 -30
- package/es/components/editor/index.js +0 -10
- package/es/components/editor/src/Editor.d.ts +0 -30
- package/es/components/editor/src/Editor.js +0 -77
- package/es/components/editor/style/index.css +0 -0
- package/es/components/fabric-chart/index.d.ts +0 -205
- package/es/components/fabric-chart/index.js +0 -10
- package/es/components/fabric-chart/src/FabricChart.js +0 -353
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +0 -206
- package/es/components/fabric-chart/src/components/PopupMenu.d.ts +0 -46
- package/es/components/fabric-chart/src/components/PopupMenu.js +0 -118
- package/es/components/fabric-chart/src/components/PopupTip.js +0 -34
- package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +0 -63
- package/es/components/fabric-chart/src/components/useStyle.d.ts +0 -7
- package/es/components/fabric-chart/src/components/useStyle.js +0 -36
- package/es/components/fabric-chart/src/hooks/constant.d.ts +0 -54
- package/es/components/fabric-chart/src/hooks/constant.js +0 -78
- package/es/components/fabric-chart/src/hooks/index.d.ts +0 -9
- package/es/components/fabric-chart/src/hooks/index.js +0 -9
- package/es/components/fabric-chart/src/hooks/useBottom.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useBottom.js +0 -97
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +0 -30
- package/es/components/fabric-chart/src/hooks/useCenter.js +0 -588
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +0 -7
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +0 -60
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +0 -44
- package/es/components/fabric-chart/src/hooks/useDraw.js +0 -182
- package/es/components/fabric-chart/src/hooks/useEvent.d.ts +0 -7
- package/es/components/fabric-chart/src/hooks/useEvent.js +0 -161
- package/es/components/fabric-chart/src/hooks/useGrid.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useGrid.js +0 -50
- package/es/components/fabric-chart/src/hooks/useLeft.d.ts +0 -6
- package/es/components/fabric-chart/src/hooks/useLeft.js +0 -331
- package/es/components/fabric-chart/src/hooks/useOther.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useOther.js +0 -100
- package/es/components/fabric-chart/src/hooks/useRight.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useRight.js +0 -27
- package/es/components/fabric-chart/src/hooks/useShadow.d.ts +0 -6
- package/es/components/fabric-chart/src/hooks/useShadow.js +0 -132
- package/es/components/fabric-chart/src/hooks/useTop.d.ts +0 -4
- package/es/components/fabric-chart/src/hooks/useTop.js +0 -160
- package/es/components/fabric-chart/src/interface.d.ts +0 -131
- package/es/components/fabric-chart/src/interface.js +0 -4
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/components/fabric-chart/src/utils/index.js +0 -15625
- package/es/components/fabric-chart/style/index.css +0 -1
- package/es/components/field-set/index.d.ts +0 -243
- package/es/components/field-set/index.js +0 -10
- package/es/components/field-set/src/FieldSet.js +0 -448
- package/es/components/field-set/src/FieldSet.vue.d.ts +0 -197
- package/es/components/field-set/style/index.css +0 -1
- package/es/components/form-config/index.d.ts +0 -3200
- package/es/components/form-config/index.js +0 -10
- package/es/components/form-config/src/FormConfig.js +0 -120
- package/es/components/form-config/src/FormConfig.vue.d.ts +0 -3202
- package/es/components/form-config/src/components/FormConfigCreator.js +0 -99
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +0 -633
- package/es/components/form-config/src/components/FormConfigDragDisplay.js +0 -43
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +0 -106
- package/es/components/form-config/src/components/FormConfigEdit.js +0 -90
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +0 -2322
- package/es/components/form-config/src/components/index.d.ts +0 -5
- package/es/components/form-config/src/components/index.js +0 -6
- package/es/components/form-config/src/components/renderer/CloseButton.js +0 -45
- package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +0 -27
- package/es/components/form-config/src/components/renderer/ComplexNode.js +0 -45
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +0 -167
- package/es/components/form-config/src/components/renderer/DefaultNode.js +0 -59
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +0 -71
- package/es/components/form-config/src/components/renderer/index.d.ts +0 -4
- package/es/components/form-config/src/components/renderer/index.js +0 -3
- package/es/components/form-config/src/constants/index.d.ts +0 -64
- package/es/components/form-config/src/constants/index.js +0 -60
- package/es/components/form-config/src/hooks/index.d.ts +0 -3
- package/es/components/form-config/src/hooks/index.js +0 -3
- package/es/components/form-config/src/hooks/useConfigurationField.d.ts +0 -7
- package/es/components/form-config/src/hooks/useConfigurationField.js +0 -54
- package/es/components/form-config/src/hooks/usePresetRenderer.d.ts +0 -4
- package/es/components/form-config/src/hooks/usePresetRenderer.js +0 -36
- package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +0 -11
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +0 -27
- package/es/components/form-config/src/types/index.d.ts +0 -37
- package/es/components/form-config/src/types/index.js +0 -1
- package/es/components/form-config/src/utils/index.d.ts +0 -7
- package/es/components/form-config/src/utils/index.js +0 -26
- package/es/components/form-config/style/index.css +0 -1
- package/es/components/form-render/index.d.ts +0 -614
- package/es/components/form-render/index.js +0 -24
- package/es/components/form-render/src/FormRender.js +0 -233
- package/es/components/form-render/src/FormRender.vue.d.ts +0 -614
- package/es/components/form-render/src/components/renderer/checkbox.d.ts +0 -26
- package/es/components/form-render/src/components/renderer/checkbox.js +0 -42
- package/es/components/form-render/src/components/renderer/combination.d.ts +0 -51
- package/es/components/form-render/src/components/renderer/combination.js +0 -104
- package/es/components/form-render/src/components/renderer/complex.d.ts +0 -34
- package/es/components/form-render/src/components/renderer/complex.js +0 -37
- package/es/components/form-render/src/components/renderer/date.d.ts +0 -52
- package/es/components/form-render/src/components/renderer/date.js +0 -133
- package/es/components/form-render/src/components/renderer/formItem.d.ts +0 -9
- package/es/components/form-render/src/components/renderer/formItem.js +0 -89
- package/es/components/form-render/src/components/renderer/index.d.ts +0 -3
- package/es/components/form-render/src/components/renderer/index.js +0 -47
- package/es/components/form-render/src/components/renderer/input.d.ts +0 -23
- package/es/components/form-render/src/components/renderer/input.js +0 -52
- package/es/components/form-render/src/components/renderer/inputGroup.d.ts +0 -11
- package/es/components/form-render/src/components/renderer/inputGroup.js +0 -11
- package/es/components/form-render/src/components/renderer/inputNumber.d.ts +0 -31
- package/es/components/form-render/src/components/renderer/inputNumber.js +0 -55
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.d.ts +0 -5
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +0 -35
- package/es/components/form-render/src/components/renderer/jsonCombination/index.d.ts +0 -44
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +0 -173
- package/es/components/form-render/src/components/renderer/labelSelect.d.ts +0 -1
- package/es/components/form-render/src/components/renderer/labelSelect.js +0 -18
- package/es/components/form-render/src/components/renderer/levelSearchCascade.d.ts +0 -97
- package/es/components/form-render/src/components/renderer/levelSearchCascade.js +0 -279
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.js +0 -57
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +0 -54
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +0 -53
- package/es/components/form-render/src/components/renderer/lineBar/index.js +0 -11
- package/es/components/form-render/src/components/renderer/radio.d.ts +0 -34
- package/es/components/form-render/src/components/renderer/radio.js +0 -67
- package/es/components/form-render/src/components/renderer/search.d.ts +0 -86
- package/es/components/form-render/src/components/renderer/search.js +0 -156
- package/es/components/form-render/src/components/renderer/searchCascade.d.ts +0 -58
- package/es/components/form-render/src/components/renderer/searchCascade.js +0 -235
- package/es/components/form-render/src/components/renderer/select.d.ts +0 -56
- package/es/components/form-render/src/components/renderer/select.js +0 -175
- package/es/components/form-render/src/components/renderer/simpleComponent.d.ts +0 -18
- package/es/components/form-render/src/components/renderer/simpleComponent.js +0 -57
- package/es/components/form-render/src/components/renderer/slider.d.ts +0 -11
- package/es/components/form-render/src/components/renderer/slider.js +0 -38
- package/es/components/form-render/src/components/renderer/switch.d.ts +0 -23
- package/es/components/form-render/src/components/renderer/switch.js +0 -48
- package/es/components/form-render/src/components/renderer/textarea.d.ts +0 -11
- package/es/components/form-render/src/components/renderer/textarea.js +0 -36
- package/es/components/form-render/src/constants/index.d.ts +0 -41
- package/es/components/form-render/src/constants/index.js +0 -45
- package/es/components/form-render/src/hooks/index.d.ts +0 -13
- package/es/components/form-render/src/hooks/index.js +0 -13
- package/es/components/form-render/src/hooks/useAnchor.d.ts +0 -16
- package/es/components/form-render/src/hooks/useAnchor.js +0 -99
- package/es/components/form-render/src/hooks/useAsyncQueue.d.ts +0 -45
- package/es/components/form-render/src/hooks/useAsyncQueue.js +0 -151
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +0 -26
- package/es/components/form-render/src/hooks/useBusinessBinding.js +0 -107
- package/es/components/form-render/src/hooks/useChangeContext.d.ts +0 -11
- package/es/components/form-render/src/hooks/useChangeContext.js +0 -20
- package/es/components/form-render/src/hooks/useCommonInjection.d.ts +0 -7
- package/es/components/form-render/src/hooks/useCommonInjection.js +0 -36
- package/es/components/form-render/src/hooks/useCommonLog.d.ts +0 -3
- package/es/components/form-render/src/hooks/useCommonLog.js +0 -12
- package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +0 -64
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +0 -287
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +0 -5
- package/es/components/form-render/src/hooks/useFieldNormalize.js +0 -67
- package/es/components/form-render/src/hooks/useFieldVisitor.d.ts +0 -4
- package/es/components/form-render/src/hooks/useFieldVisitor.js +0 -46
- package/es/components/form-render/src/hooks/useFormContext.d.ts +0 -11
- package/es/components/form-render/src/hooks/useFormContext.js +0 -68
- package/es/components/form-render/src/hooks/useFormField.d.ts +0 -5
- package/es/components/form-render/src/hooks/useFormField.js +0 -13
- package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +0 -11
- package/es/components/form-render/src/hooks/useFormItemDeps.js +0 -31
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +0 -13
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +0 -10
- package/es/components/form-render/src/hooks/useFormRequest.d.ts +0 -19
- package/es/components/form-render/src/hooks/useFormRequest.js +0 -19
- package/es/components/form-render/src/hooks/useFormValidator.d.ts +0 -6
- package/es/components/form-render/src/hooks/useFormValidator.js +0 -84
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.d.ts +0 -4
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +0 -18
- package/es/components/form-render/src/hooks/usePresetScope.d.ts +0 -6
- package/es/components/form-render/src/hooks/usePresetScope.js +0 -22
- package/es/components/form-render/src/types/fieldItem.d.ts +0 -248
- package/es/components/form-render/src/types/fieldItem.js +0 -1
- package/es/components/form-render/src/types/index.d.ts +0 -80
- package/es/components/form-render/src/types/index.js +0 -1
- package/es/components/form-render/src/utils/business.d.ts +0 -12
- package/es/components/form-render/src/utils/business.js +0 -78
- package/es/components/form-render/src/utils/dom.d.ts +0 -6
- package/es/components/form-render/src/utils/dom.js +0 -14
- package/es/components/form-render/src/utils/index.d.ts +0 -19
- package/es/components/form-render/src/utils/index.js +0 -137
- package/es/components/form-render/src/utils/schema.d.ts +0 -83
- package/es/components/form-render/src/utils/schema.js +0 -105
- package/es/components/form-render/style/index.css +0 -1
- package/es/components/grid/index.d.ts +0 -3
- package/es/components/grid/index.js +0 -11
- package/es/components/grid/src/Grid.d.ts +0 -2
- package/es/components/grid/src/Grid.js +0 -28
- package/es/components/grid/src/hooks.d.ts +0 -1
- package/es/components/grid/src/hooks.js +0 -167
- package/es/components/grid/style/index.css +0 -1
- package/es/components/iho-table/index.d.ts +0 -4478
- package/es/components/iho-table/index.js +0 -34
- package/es/components/iho-table/src/IhoTable.js +0 -106
- package/es/components/iho-table/src/IhoTable.vue.d.ts +0 -4477
- package/es/components/iho-table/src/components/IhoTableColumn.d.ts +0 -14
- package/es/components/iho-table/src/components/IhoTableColumn.js +0 -37
- package/es/components/iho-table/src/components/index.d.ts +0 -1
- package/es/components/iho-table/src/components/index.js +0 -1
- package/es/components/iho-table/src/constants/index.d.ts +0 -52
- package/es/components/iho-table/src/constants/index.js +0 -123
- package/es/components/iho-table/src/hooks/index.d.ts +0 -2
- package/es/components/iho-table/src/hooks/index.js +0 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +0 -22
- package/es/components/iho-table/src/hooks/tapHooks/index.js +0 -140
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +0 -27
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +0 -67
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +0 -16
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +0 -26
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +0 -185
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +0 -252
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.d.ts +0 -13
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +0 -33
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +0 -10
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +0 -27
- package/es/components/iho-table/src/hooks/useTablePlugin.d.ts +0 -8
- package/es/components/iho-table/src/hooks/useTablePlugin.js +0 -20
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +0 -33
- package/es/components/iho-table/src/plugins/index.d.ts +0 -3
- package/es/components/iho-table/src/plugins/index.js +0 -37
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +0 -37
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.d.ts +0 -31
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.js +0 -205
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +0 -39
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useCommon.d.ts +0 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useCommon.js +0 -17
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +0 -44
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +0 -31
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +0 -60
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +0 -40
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +0 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +0 -20
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.js +0 -103
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +0 -94
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +0 -162
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.d.ts +0 -14
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +0 -57
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.d.ts +0 -31
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.js +0 -60
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +0 -39
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +0 -30
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +0 -46
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +0 -62
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +0 -47
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.d.ts +0 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +0 -92
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +0 -45
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +0 -30
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +0 -11
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +0 -50
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +0 -89
- package/es/components/iho-table/src/types/index.d.ts +0 -49
- package/es/components/iho-table/src/types/index.js +0 -1
- package/es/components/iho-table/src/types/pluginType.d.ts +0 -147
- package/es/components/iho-table/src/types/pluginType.js +0 -12
- package/es/components/iho-table/src/utils/index.d.ts +0 -5
- package/es/components/iho-table/src/utils/index.js +0 -23
- package/es/components/iho-table/style/index.css +0 -1
- package/es/components/index.css +0 -1
- package/es/components/index.d.ts +0 -35
- package/es/components/index.js +0 -99
- package/es/components/info-header/index.d.ts +0 -359
- package/es/components/info-header/index.js +0 -10
- package/es/components/info-header/src/HiddenContent.js +0 -70
- package/es/components/info-header/src/HiddenContent.vue.d.ts +0 -86
- package/es/components/info-header/src/InfoEllipsis.js +0 -43
- package/es/components/info-header/src/InfoEllipsis.vue.d.ts +0 -33
- package/es/components/info-header/src/InfoHeader.js +0 -236
- package/es/components/info-header/src/InfoHeader.vue.d.ts +0 -361
- package/es/components/info-header/style/iconfont.ttf +0 -0
- package/es/components/info-header/style/index.css +0 -1
- package/es/components/map/index.d.ts +0 -75
- package/es/components/map/index.js +0 -10
- package/es/components/map/src/Map.js +0 -336
- package/es/components/map/src/Map.vue.d.ts +0 -75
- package/es/components/map/style/index.css +0 -1
- package/es/components/scale-view/index.d.ts +0 -1400
- package/es/components/scale-view/index.js +0 -35
- package/es/components/scale-view/src/ScaleView.js +0 -428
- package/es/components/scale-view/src/ScaleView.vue.d.ts +0 -1222
- package/es/components/scale-view/src/components/AnswerParse.js +0 -80
- package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +0 -70
- package/es/components/scale-view/src/components/EvaluateCountdown.js +0 -117
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +0 -154
- package/es/components/scale-view/src/components/EvaluatePage.js +0 -141
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +0 -110
- package/es/components/scale-view/src/components/LoadingCom.js +0 -19
- package/es/components/scale-view/src/components/NoData.js +0 -74
- package/es/components/scale-view/src/components/NoData.vue.d.ts +0 -49
- package/es/components/scale-view/src/components/ScaleScore.d.ts +0 -23
- package/es/components/scale-view/src/components/ScaleScore.js +0 -63
- package/es/components/scale-view/src/components/composables/choose-common.d.ts +0 -11
- package/es/components/scale-view/src/components/composables/choose-common.js +0 -83
- package/es/components/scale-view/src/components/formitem/address.d.ts +0 -3992
- package/es/components/scale-view/src/components/formitem/address.js +0 -3993
- package/es/components/scale-view/src/components/formitem/r-address.d.ts +0 -34
- package/es/components/scale-view/src/components/formitem/r-address.js +0 -226
- package/es/components/scale-view/src/components/formitem/r-cascader.d.ts +0 -43
- package/es/components/scale-view/src/components/formitem/r-cascader.js +0 -133
- package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +0 -43
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +0 -281
- package/es/components/scale-view/src/components/formitem/r-collection.d.ts +0 -32
- package/es/components/scale-view/src/components/formitem/r-collection.js +0 -111
- package/es/components/scale-view/src/components/formitem/r-datetime.d.ts +0 -34
- package/es/components/scale-view/src/components/formitem/r-datetime.js +0 -212
- package/es/components/scale-view/src/components/formitem/r-input.d.ts +0 -34
- package/es/components/scale-view/src/components/formitem/r-input.js +0 -86
- package/es/components/scale-view/src/components/formitem/r-map.d.ts +0 -52
- package/es/components/scale-view/src/components/formitem/r-map.js +0 -106
- package/es/components/scale-view/src/components/formitem/r-radio.d.ts +0 -43
- package/es/components/scale-view/src/components/formitem/r-radio.js +0 -240
- package/es/components/scale-view/src/components/formitem/r-select.d.ts +0 -61
- package/es/components/scale-view/src/components/formitem/r-select.js +0 -202
- package/es/components/scale-view/src/components/formitem/r-upload.d.ts +0 -52
- package/es/components/scale-view/src/components/formitem/r-upload.js +0 -221
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +0 -87
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +0 -43
- package/es/components/scale-view/src/hooks/scaleview-computed.js +0 -309
- package/es/components/scale-view/src/hooks/scaleview-init.d.ts +0 -3
- package/es/components/scale-view/src/hooks/scaleview-init.js +0 -437
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +0 -115
- package/es/components/scale-view/src/hooks/scaleview-props.js +0 -81
- package/es/components/scale-view/src/hooks/scaleview-state.d.ts +0 -34
- package/es/components/scale-view/src/hooks/scaleview-state.js +0 -38
- package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +0 -3
- package/es/components/scale-view/src/hooks/scaleview-submit.js +0 -154
- package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +0 -3
- package/es/components/scale-view/src/hooks/scaleview-validate.js +0 -187
- package/es/components/scale-view/src/hooks/use-component.d.ts +0 -1853
- package/es/components/scale-view/src/hooks/use-component.js +0 -82
- package/es/components/scale-view/src/hooks/use-evaluate.d.ts +0 -21
- package/es/components/scale-view/src/hooks/use-evaluate.js +0 -150
- package/es/components/scale-view/src/hooks/use-event.d.ts +0 -4
- package/es/components/scale-view/src/hooks/use-event.js +0 -129
- package/es/components/scale-view/src/hooks/use-noData.d.ts +0 -9
- package/es/components/scale-view/src/hooks/use-noData.js +0 -41
- package/es/components/scale-view/src/utils/judge-types.d.ts +0 -5
- package/es/components/scale-view/src/utils/judge-types.js +0 -36
- package/es/components/scale-view/style/index.css +0 -1
- package/es/components/search-cascader/index.d.ts +0 -212
- package/es/components/search-cascader/index.js +0 -10
- package/es/components/search-cascader/src/SearchCascader.js +0 -188
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +0 -214
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +0 -45
- package/es/components/search-cascader/src/components/SearchMenu.js +0 -134
- package/es/components/search-cascader/src/components/index.d.ts +0 -1
- package/es/components/search-cascader/src/components/index.js +0 -1
- package/es/components/search-cascader/src/constants/index.d.ts +0 -3
- package/es/components/search-cascader/src/constants/index.js +0 -5
- package/es/components/search-cascader/src/hooks/index.d.ts +0 -1
- package/es/components/search-cascader/src/hooks/index.js +0 -1
- package/es/components/search-cascader/src/hooks/useCssVariable.d.ts +0 -3
- package/es/components/search-cascader/src/hooks/useCssVariable.js +0 -7
- package/es/components/search-cascader/src/utils/index.d.ts +0 -2
- package/es/components/search-cascader/src/utils/index.js +0 -11
- package/es/components/search-cascader/style/index.css +0 -1
- package/es/components/select-label/index.d.ts +0 -988
- package/es/components/select-label/index.js +0 -15
- package/es/components/select-label/src/LabelFormContent.js +0 -447
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +0 -367
- package/es/components/select-label/src/SelectLabel.js +0 -6
- package/es/components/select-label/src/SelectLabel.vue.d.ts +0 -622
- package/es/components/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +0 -451
- package/es/components/select-label/src/components/label-classify.js +0 -132
- package/es/components/select-label/src/components/label-classify.vue.d.ts +0 -122
- package/es/components/select-label/style/index.css +0 -1
- package/es/components/select-person/index.d.ts +0 -482
- package/es/components/select-person/index.js +0 -10
- package/es/components/select-person/src/SearchTree.js +0 -6
- package/es/components/select-person/src/SearchTree.vue.d.ts +0 -147
- package/es/components/select-person/src/SearchTree.vue_vue_type_script_setup_true_lang.js +0 -233
- package/es/components/select-person/src/SelectPerson.js +0 -6
- package/es/components/select-person/src/SelectPerson.vue.d.ts +0 -483
- package/es/components/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.js +0 -970
- package/es/components/select-person/src/utils/index.d.ts +0 -12
- package/es/components/select-person/src/utils/index.js +0 -84
- package/es/components/select-person/style/index.css +0 -1
- package/es/components/shortcut-provider/index.d.ts +0 -21
- package/es/components/shortcut-provider/index.js +0 -12
- package/es/components/shortcut-provider/src/ShortcutProvider.js +0 -36
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +0 -19
- package/es/components/shortcut-provider/src/constants/index.d.ts +0 -7
- package/es/components/shortcut-provider/src/constants/index.js +0 -8
- package/es/components/shortcut-provider/src/hooks/index.d.ts +0 -2
- package/es/components/shortcut-provider/src/hooks/index.js +0 -2
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature.d.ts +0 -4
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +0 -12
- package/es/components/shortcut-provider/src/hooks/useShortcuts.d.ts +0 -33
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +0 -185
- package/es/components/shortcut-provider/src/types/index.d.ts +0 -43
- package/es/components/shortcut-provider/src/types/index.js +0 -1
- package/es/components/shortcut-provider/src/utils/index.d.ts +0 -10
- package/es/components/shortcut-provider/src/utils/index.js +0 -59
- package/es/components/shortcut-provider/style/index.css +0 -1
- package/es/components/shortcut-setter/index.d.ts +0 -2337
- package/es/components/shortcut-setter/index.js +0 -10
- package/es/components/shortcut-setter/src/ShortcutSetter.js +0 -98
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +0 -2339
- package/es/components/shortcut-setter/src/ShortcutSetterItem.js +0 -73
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +0 -99
- package/es/components/shortcut-setter/src/types/index.d.ts +0 -6
- package/es/components/shortcut-setter/src/types/index.js +0 -1
- package/es/components/shortcut-setter/style/index.css +0 -1
- package/es/components/steps-wheel/index.d.ts +0 -112
- package/es/components/steps-wheel/index.js +0 -10
- package/es/components/steps-wheel/src/StepsWheel.js +0 -318
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +0 -111
- package/es/components/steps-wheel/style/index.css +0 -1
- package/es/components/time-line/index.d.ts +0 -81
- package/es/components/time-line/index.js +0 -10
- package/es/components/time-line/src/TimeLine.js +0 -70
- package/es/components/time-line/src/TimeLine.vue.d.ts +0 -84
- package/es/components/time-line/style/index.css +0 -1
- package/es/env.d.ts +0 -24
- package/es/shared/assets/iconfont/iconfont.ttf +0 -0
- package/es/shared/assets/img/failure.d.ts +0 -2
- package/es/shared/assets/img/failure.js +0 -3
- package/es/shared/assets/img/icon-asc.d.ts +0 -2
- package/es/shared/assets/img/icon-asc.js +0 -1
- package/es/shared/assets/img/icon-desc.d.ts +0 -2
- package/es/shared/assets/img/icon-desc.js +0 -1
- package/es/shared/assets/img/no-permission.d.ts +0 -2
- package/es/shared/assets/img/no-permission.js +0 -3
- package/es/shared/assets/img/nodata.d.ts +0 -2
- package/es/shared/assets/img/nodata.js +0 -3
- package/es/shared/assets/img/notfound.d.ts +0 -2
- package/es/shared/assets/img/notfound.js +0 -3
- package/es/shared/assets/img/qr.d.ts +0 -2
- package/es/shared/assets/img/qr.js +0 -3
- package/es/shared/assets/img/success.d.ts +0 -2
- package/es/shared/assets/img/success.js +0 -3
- package/es/shared/assets/img/video.d.ts +0 -2
- package/es/shared/assets/img/video.js +0 -3
- package/es/shared/assets/img/video_default_cover.d.ts +0 -2
- package/es/shared/assets/img/video_default_cover.js +0 -3
- package/es/shared/assets/img/video_hover.d.ts +0 -2
- package/es/shared/assets/img/video_hover.js +0 -1
- package/es/shared/assets/img/video_play_hover.d.ts +0 -2
- package/es/shared/assets/img/video_play_hover.js +0 -1
- package/es/shared/assets/img/xb_big.d.ts +0 -2
- package/es/shared/assets/img/xb_big.js +0 -3
- package/es/shared/assets/img/xb_small.d.ts +0 -2
- package/es/shared/assets/img/xb_small.js +0 -3
- package/es/shared/components/SelectPage/SelectPage.js +0 -61
- package/es/shared/components/SelectPage/SelectPage.vue.d.ts +0 -51
- package/es/shared/components/SelectPage/index.d.ts +0 -2
- package/es/shared/components/SelectPage/index.js +0 -2
- package/es/shared/components/SlotRender/SlotRender.d.ts +0 -20
- package/es/shared/components/SlotRender/SlotRender.js +0 -35
- package/es/shared/components/SlotRender/index.d.ts +0 -2
- package/es/shared/components/SlotRender/index.js +0 -2
- package/es/shared/components/SvgIcon/SvgIcon.js +0 -36
- package/es/shared/components/SvgIcon/SvgIcon.vue.d.ts +0 -43
- package/es/shared/components/SvgIcon/index.d.ts +0 -2
- package/es/shared/components/SvgIcon/index.js +0 -2
- package/es/shared/components/TextOverTooltip/TextOverTooltip.js +0 -77
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +0 -87
- package/es/shared/components/TextOverTooltip/index.d.ts +0 -2
- package/es/shared/components/TextOverTooltip/index.js +0 -2
- package/es/shared/components/no-data/NoData.js +0 -74
- package/es/shared/components/no-data/NoData.vue.d.ts +0 -49
- package/es/shared/components/no-data/index.d.ts +0 -2
- package/es/shared/components/no-data/index.js +0 -2
- package/es/shared/components/player-vod/index.vue.d.ts +0 -2
- package/es/shared/components/player-vod/player.d.ts +0 -17
- package/es/shared/components/player-vod/player.js +0 -121
- package/es/shared/components/player-vod/video-list.d.ts +0 -32
- package/es/shared/components/player-vod/video-modal.d.ts +0 -54
- package/es/shared/components/player-vod/video-modal.js +0 -91
- package/es/shared/global/variable.d.ts +0 -1
- package/es/shared/global/variable.js +0 -3
- package/es/shared/index.d.ts +0 -0
- package/es/shared/index.js +0 -1
- package/es/shared/types/index.d.ts +0 -11
- package/es/shared/types/index.js +0 -1
- package/es/shared/utils/anime.d.ts +0 -35
- package/es/shared/utils/anime.js +0 -129
- package/es/shared/utils/clickoutside.d.ts +0 -18
- package/es/shared/utils/clickoutside.js +0 -52
- package/es/shared/utils/colorLog.d.ts +0 -31
- package/es/shared/utils/colorLog.js +0 -53
- package/es/shared/utils/crypto.d.ts +0 -7
- package/es/shared/utils/index.d.ts +0 -11
- package/es/shared/utils/index.js +0 -120
- package/es/shared/utils/loadViewer.d.ts +0 -2
- package/es/shared/utils/loadViewer.js +0 -11
- package/es/shared/utils/state.d.ts +0 -29
- package/es/shared/utils/state.js +0 -44
- package/es/shared/utils/tapable/AsyncParallelBailHook.d.ts +0 -3
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +0 -63
- package/es/shared/utils/tapable/AsyncParallelHook.d.ts +0 -3
- package/es/shared/utils/tapable/AsyncParallelHook.js +0 -27
- package/es/shared/utils/tapable/AsyncSeriesBailHook.d.ts +0 -3
- package/es/shared/utils/tapable/AsyncSeriesBailHook.js +0 -18
- package/es/shared/utils/tapable/AsyncSeriesHook.d.ts +0 -3
- package/es/shared/utils/tapable/AsyncSeriesHook.js +0 -27
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.d.ts +0 -3
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +0 -12
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.d.ts +0 -3
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +0 -23
- package/es/shared/utils/tapable/Hook.d.ts +0 -50
- package/es/shared/utils/tapable/Hook.js +0 -140
- package/es/shared/utils/tapable/HookCodeFactory.d.ts +0 -58
- package/es/shared/utils/tapable/HookCodeFactory.js +0 -459
- package/es/shared/utils/tapable/HookMap.d.ts +0 -11
- package/es/shared/utils/tapable/MultiHook.d.ts +0 -12
- package/es/shared/utils/tapable/SyncBailHook.d.ts +0 -3
- package/es/shared/utils/tapable/SyncBailHook.js +0 -19
- package/es/shared/utils/tapable/SyncHook.d.ts +0 -3
- package/es/shared/utils/tapable/SyncHook.js +0 -34
- package/es/shared/utils/tapable/SyncLoopHook.d.ts +0 -3
- package/es/shared/utils/tapable/SyncLoopHook.js +0 -13
- package/es/shared/utils/tapable/SyncWaterfallHook.d.ts +0 -3
- package/es/shared/utils/tapable/SyncWaterfallHook.js +0 -48
- package/es/shared/utils/tapable/index.d.ts +0 -139
- package/es/shared/utils/utilExpand.d.ts +0 -1
- package/es/shared/utils/utilExpand.js +0 -715
- package/es/shared/utils/vexutils.d.ts +0 -10
- package/es/shared/utils/vexutils.js +0 -59
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const filterTree: ({ value, data, prop, filter, filterXor, children, visible, filterChildren, callback }: {
|
|
2
|
-
value?: string | undefined;
|
|
3
|
-
data?: any[] | undefined;
|
|
4
|
-
prop?: string | undefined;
|
|
5
|
-
filter?: boolean | undefined;
|
|
6
|
-
filterXor?: boolean | undefined;
|
|
7
|
-
children?: string | undefined;
|
|
8
|
-
visible?: string | undefined;
|
|
9
|
-
filterChildren?: boolean | undefined;
|
|
10
|
-
callback?: Function | undefined;
|
|
11
|
-
}) => any[] | undefined;
|
|
12
|
-
export declare const deepTraversalFirst: (node: any, nodeList?: any[]) => any[];
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
const filterTree = ({
|
|
2
|
-
value = "",
|
|
3
|
-
data = [],
|
|
4
|
-
prop = "title",
|
|
5
|
-
filter = false,
|
|
6
|
-
filterXor = false,
|
|
7
|
-
children = "children",
|
|
8
|
-
visible = "visible",
|
|
9
|
-
filterChildren = true,
|
|
10
|
-
callback
|
|
11
|
-
}) => {
|
|
12
|
-
visible = visible || "visible";
|
|
13
|
-
children = children || "children";
|
|
14
|
-
prop = prop || "text";
|
|
15
|
-
const filterNodeMethod = function(value2, data2) {
|
|
16
|
-
if (!value2) {
|
|
17
|
-
return true;
|
|
18
|
-
}
|
|
19
|
-
let flag = (data2[prop] || "").indexOf(value2) !== -1;
|
|
20
|
-
return filterXor ? !flag : flag;
|
|
21
|
-
};
|
|
22
|
-
const setVisible = (tree, isVisible) => {
|
|
23
|
-
if (!(tree == null ? void 0 : tree.length))
|
|
24
|
-
return;
|
|
25
|
-
tree.forEach((item) => {
|
|
26
|
-
var _a;
|
|
27
|
-
item[visible] = isVisible;
|
|
28
|
-
((_a = item[children]) == null ? void 0 : _a.length) && setVisible(item[children], isVisible);
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
const traverse = function(node) {
|
|
32
|
-
const childNodes = node[children] || [];
|
|
33
|
-
childNodes.forEach((child) => {
|
|
34
|
-
child[visible] = !node.root && !filterChildren && node[visible] || filterNodeMethod.call(child, value, child);
|
|
35
|
-
traverse(child);
|
|
36
|
-
callback && callback(child);
|
|
37
|
-
});
|
|
38
|
-
if (childNodes.length) {
|
|
39
|
-
let allHidden = true;
|
|
40
|
-
allHidden = !childNodes.some((child) => child[visible]);
|
|
41
|
-
if (!node[visible]) {
|
|
42
|
-
node[visible] = allHidden === false;
|
|
43
|
-
} else {
|
|
44
|
-
setVisible(childNodes, true);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
let totalData = {
|
|
49
|
-
root: true
|
|
50
|
-
};
|
|
51
|
-
totalData[children] = data;
|
|
52
|
-
traverse(totalData);
|
|
53
|
-
if (filter) {
|
|
54
|
-
let copyData = data.slice();
|
|
55
|
-
let filterHandle = (filterData) => {
|
|
56
|
-
return filterData.filter((item, index) => {
|
|
57
|
-
var _a;
|
|
58
|
-
if (item[visible]) {
|
|
59
|
-
if (item[children]) {
|
|
60
|
-
item[children] = filterHandle(item[children]);
|
|
61
|
-
}
|
|
62
|
-
if (!((_a = item[children]) == null ? void 0 : _a.length)) {
|
|
63
|
-
item[children] = void 0;
|
|
64
|
-
}
|
|
65
|
-
return true;
|
|
66
|
-
}
|
|
67
|
-
return false;
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
return filterHandle(copyData);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
const deepTraversalFirst = (node, nodeList = []) => {
|
|
74
|
-
if (node !== null) {
|
|
75
|
-
nodeList.push(node);
|
|
76
|
-
if (node.children && node.children.length > 0) {
|
|
77
|
-
let children = node.children;
|
|
78
|
-
deepTraversalFirst(children[0], nodeList);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return nodeList;
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export { deepTraversalFirst, filterTree };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.people-tree{display:flex}.people-tree .people-tree-item{height:376px;max-height:376px;overflow-y:auto;padding:22px 12px 0;width:50%}.people-tree .people-tree-item.people-tree-left{display:flex;flex-direction:column}.people-tree .people-tree-item:first-child{border-right:1px solid #e8e8e8}.people-tree .people-tree-item .tag-item{align-items:center;background:hsla(0,0%,84%,.2);border:1px solid rgba(0,0,0,.14);border-radius:4px;box-sizing:border-box;color:#212121;display:inline-flex;font-size:14px;height:24px;line-height:24px;list-style:none;margin-bottom:4px;margin-right:8px;padding:0 6px;transition:all .3s cubic-bezier(.215,.61,.355,1);white-space:nowrap}.people-tree .people-tree-item .tag-item.isRoot{background:rgba(85,133,245,.08);border:1px solid rgba(85,133,245,.5);color:#5585f5}.people-tree .people-tree-item .tag-item.isRoot .tag-close{color:#5585f5}.people-tree .people-tree-item .tag-item.isRoot .tag-close:hover{color:rgba(85,133,245,.6)}.people-tree .people-tree-item .tag-item .tag-close{color:#969696;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;margin-left:3px;transition:all .3s}.people-tree .people-tree-item .tag-item .tag-close:hover{color:rgba(85,133,245,.6)}.people-tree .people-tree-item .tag-item .tag-close:active{color:#fff}.people-tree .people-tree-item .no-data-tips{align-items:center;display:flex;font-size:16px;font-weight:700;height:200px;justify-content:center;width:100%}.people-tree .people-tree-item .c-title{color:#212121;font-family:PingFangSC-Regular,PingFang SC;font-size:14px;font-weight:400}.people-tree .people-tree-item .c-sub-title{color:#4e4e4e;font-family:PingFangSC-Regular,PingFang SC;font-size:12px}.people-tree .people-tree-item .p-title{color:#212121;font-family:PingFangSC-Medium,PingFang SC;font-size:14px;font-weight:500}.people-tree .people-tree-item .clear-btn{color:#5585f5;cursor:pointer}.search-input-icon{color:rgba(0,0,0,.4);margin-bottom:-2px}.main-tree-container{overflow-y:auto}.df{display:flex}.search-tree-wrap .name-wrap,.search-tree-wrap .search-tree-item{align-items:center;display:flex}.search-tree-wrap .name-wrap{background:#7d88b5;border-radius:50%;height:48px;justify-content:center;margin-right:13px;width:48px}.search-tree-wrap .name-wrap .name{color:#fff;font-size:16px;line-height:16px;margin-bottom:0}.search-tree-wrap .info-wrap{display:flex;flex-direction:column;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-tree-wrap .info-wrap-top{align-items:flex-end;margin:0 0 1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-tree-wrap .info-wrap-title{color:#4e4e4e;font-family:PingFangSC-Regular,PingFang SC;font-size:16px;font-weight:400;line-height:16px;margin-bottom:0}.search-tree-wrap .info-wrap-title .c-title{color:#212121;font-family:PingFangSC-Regular,PingFang SC;font-size:14px;font-weight:400}.search-tree-wrap .info-wrap-title .c-sub-title{color:#4e4e4e;font-family:PingFangSC-Regular,PingFang SC;font-size:12px}.search-tree-wrap .info-wrap-desc{color:#aeaeae;font-size:12px;line-height:17px;margin-bottom:0;margin-left:10px}.search-tree-wrap .info-wrap-position{color:#7d88b5;font-size:12px;line-height:17px;margin-bottom:0}.load-more-btn-wrap{box-sizing:border-box;cursor:pointer;display:flex;height:35px;justify-content:center;line-height:35px;padding-top:10px}.load-more-btn-wrap .search-input-icon{color:rgba(0,0,0,.4);font-size:16px;margin-right:14px}.load-more-btn-wrap .load-more-btn{color:#747c8e;font-size:12px;line-height:12px}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { SFCWithInstall } from '../../../es/shared/types';
|
|
2
|
-
export * from './src/hooks';
|
|
3
|
-
export * from './src/types';
|
|
4
|
-
declare const ShortcutProvider: SFCWithInstall<import("vue").DefineComponent<{
|
|
5
|
-
scope: {
|
|
6
|
-
type: (SymbolConstructor | StringConstructor)[];
|
|
7
|
-
};
|
|
8
|
-
}, {
|
|
9
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
-
scope: {
|
|
11
|
-
type: (SymbolConstructor | StringConstructor)[];
|
|
12
|
-
};
|
|
13
|
-
}>> & {}>>;
|
|
14
|
-
shortcutWrapperRef: import("vue").Ref<HTMLElement | undefined>;
|
|
15
|
-
manager: import("./src/hooks").ShortcutManager;
|
|
16
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
-
scope: {
|
|
18
|
-
type: (SymbolConstructor | StringConstructor)[];
|
|
19
|
-
};
|
|
20
|
-
}>>, {}>>;
|
|
21
|
-
export default ShortcutProvider;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_NAMESPACE } from '../../shared/global/variable.js';
|
|
2
|
-
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
3
|
-
import script from './src/ShortcutProvider.js';
|
|
4
|
-
export { GlobalShortcutProvider, ShortcutManager, useShortcuts } from './src/hooks/useShortcuts.js';
|
|
5
|
-
export { useShortcutSignature } from './src/hooks/useShortcutSignature.js';
|
|
6
|
-
|
|
7
|
-
const ShortcutProvider = script;
|
|
8
|
-
ShortcutProvider.install = function(app) {
|
|
9
|
-
safeComponentRegister(app, ShortcutProvider, COMPONENT_NAMESPACE + "ShortcutProvider");
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { ShortcutProvider as default };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, provide, onBeforeUnmount, openBlock, createElementBlock, renderSlot } from 'vue';
|
|
2
|
-
import { uuidGenerator } from '../../../shared/utils/index.js';
|
|
3
|
-
import { InjectionShortcutManager } from './constants/index.js';
|
|
4
|
-
import '../index.js';
|
|
5
|
-
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
6
|
-
import { ShortcutManager } from './hooks/useShortcuts.js';
|
|
7
|
-
|
|
8
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
-
__name: "ShortcutProvider",
|
|
10
|
-
props: {
|
|
11
|
-
scope: { type: [String, Symbol] }
|
|
12
|
-
},
|
|
13
|
-
setup(__props) {
|
|
14
|
-
const props = __props;
|
|
15
|
-
const shortcutWrapperRef = ref();
|
|
16
|
-
const manager = new ShortcutManager(shortcutWrapperRef, props.scope || uuidGenerator()).start();
|
|
17
|
-
provide(InjectionShortcutManager, manager);
|
|
18
|
-
onBeforeUnmount(() => {
|
|
19
|
-
manager.destroy();
|
|
20
|
-
});
|
|
21
|
-
return (_ctx, _cache) => {
|
|
22
|
-
return openBlock(), createElementBlock("section", {
|
|
23
|
-
ref_key: "shortcutWrapperRef",
|
|
24
|
-
ref: shortcutWrapperRef,
|
|
25
|
-
"is-shortcut-capture": "",
|
|
26
|
-
class: "shortcut-provider",
|
|
27
|
-
tabindex: -9999
|
|
28
|
-
}, [
|
|
29
|
-
renderSlot(_ctx.$slots, "default")
|
|
30
|
-
], 512);
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "ShortcutProvider.vue"]]);
|
|
35
|
-
|
|
36
|
-
export { script as default };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ShortcutManager } from '../../../../es/components/shortcut-provider';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
scope: {
|
|
4
|
-
type: (SymbolConstructor | StringConstructor)[];
|
|
5
|
-
};
|
|
6
|
-
}, {
|
|
7
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
-
scope: {
|
|
9
|
-
type: (SymbolConstructor | StringConstructor)[];
|
|
10
|
-
};
|
|
11
|
-
}>> & {}>>;
|
|
12
|
-
shortcutWrapperRef: import("vue").Ref<HTMLElement | undefined>;
|
|
13
|
-
manager: ShortcutManager;
|
|
14
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
-
scope: {
|
|
16
|
-
type: (SymbolConstructor | StringConstructor)[];
|
|
17
|
-
};
|
|
18
|
-
}>>, {}>;
|
|
19
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { InjectionKey } from 'vue';
|
|
2
|
-
import { ShortcutManager } from '../../../../../es/components/shortcut-provider/src/hooks';
|
|
3
|
-
export declare enum ShortcutStatus {
|
|
4
|
-
INACTIVE = 0,
|
|
5
|
-
ACTIVE = 1
|
|
6
|
-
}
|
|
7
|
-
export declare const InjectionShortcutManager: InjectionKey<ShortcutManager>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var ShortcutStatus = /* @__PURE__ */ ((ShortcutStatus2) => {
|
|
2
|
-
ShortcutStatus2[ShortcutStatus2["INACTIVE"] = 0] = "INACTIVE";
|
|
3
|
-
ShortcutStatus2[ShortcutStatus2["ACTIVE"] = 1] = "ACTIVE";
|
|
4
|
-
return ShortcutStatus2;
|
|
5
|
-
})(ShortcutStatus || {});
|
|
6
|
-
const InjectionShortcutManager = Symbol("InjectionShortcutManager");
|
|
7
|
-
|
|
8
|
-
export { InjectionShortcutManager, ShortcutStatus };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ref, computed } from 'vue';
|
|
2
|
-
import { transformKey2DisplaySignature } from '../utils/index.js';
|
|
3
|
-
|
|
4
|
-
function useShortcutSignature() {
|
|
5
|
-
const signatureRef = ref(() => "");
|
|
6
|
-
const shortcut = computed(() => {
|
|
7
|
-
return transformKey2DisplaySignature(signatureRef.value());
|
|
8
|
-
});
|
|
9
|
-
return { signatureRef, shortcut };
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { useShortcutSignature };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { MaybeRef } from '@vueuse/core';
|
|
2
|
-
import { ShortcutItem, ShortcutOption, ShortcutSignatureInfo } from '../../../../../es/components/shortcut-provider/src/types';
|
|
3
|
-
export declare const GlobalShortcutProvider: unique symbol;
|
|
4
|
-
export declare class ShortcutManager {
|
|
5
|
-
private readonly shortcutCallbackMap;
|
|
6
|
-
private readonly shortcutCache;
|
|
7
|
-
private readonly environmentEle;
|
|
8
|
-
private handle?;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
static log(message: string, dryRun?: boolean): string;
|
|
11
|
-
constructor(environmentEle?: MaybeRef<HTMLElement | undefined>, scope?: string | Symbol);
|
|
12
|
-
get traverse(): Omit<ShortcutItem, "callback">[];
|
|
13
|
-
private query;
|
|
14
|
-
update(key: string, info: KeyboardEvent | Partial<ShortcutSignatureInfo>): Promise<void>;
|
|
15
|
-
register(shortcutItem: ShortcutItem): {
|
|
16
|
-
stop: () => void;
|
|
17
|
-
start: () => void;
|
|
18
|
-
signature: () => string;
|
|
19
|
-
};
|
|
20
|
-
start(): this;
|
|
21
|
-
destroy(): void;
|
|
22
|
-
clear(): void;
|
|
23
|
-
}
|
|
24
|
-
export declare function useShortcuts(scope?: MaybeRef<string | Symbol | undefined>): {
|
|
25
|
-
register: (shortcut: ShortcutOption) => {
|
|
26
|
-
stop: () => void;
|
|
27
|
-
signature: () => string;
|
|
28
|
-
};
|
|
29
|
-
traverse: () => Omit<ShortcutItem, "callback">[];
|
|
30
|
-
clear: () => void;
|
|
31
|
-
update: (key: string, info: KeyboardEvent | Partial<ShortcutSignatureInfo>) => Promise<void>;
|
|
32
|
-
updateManagerDisabled: (disabled?: boolean) => void;
|
|
33
|
-
};
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { useEventListener, useDebounceFn } from '@vueuse/core';
|
|
2
|
-
import { once, pick, omit, isFunction, isString } from 'lodash-es';
|
|
3
|
-
import { reactive, ref, unref, computed, getCurrentInstance, inject, onBeforeUnmount, onDeactivated, onActivated } from 'vue';
|
|
4
|
-
import { ShortcutStatus, InjectionShortcutManager } from '../constants/index.js';
|
|
5
|
-
import { normalizeSignatureInfo, getKeySignature, getDisplaySignature, isInvalidSignature, isKeyboardEvent, findAncestor, isShortcutProvider } from '../utils/index.js';
|
|
6
|
-
|
|
7
|
-
const GlobalShortcutProvider = Symbol("Glob");
|
|
8
|
-
const ShortcutManagerCacheMap = /* @__PURE__ */ new Map();
|
|
9
|
-
class ShortcutManager {
|
|
10
|
-
constructor(environmentEle, scope = GlobalShortcutProvider) {
|
|
11
|
-
this.shortcutCallbackMap = reactive(/* @__PURE__ */ new Map());
|
|
12
|
-
this.shortcutCache = ref({});
|
|
13
|
-
this.disabled = false;
|
|
14
|
-
this.environmentEle = environmentEle || window;
|
|
15
|
-
ShortcutManagerCacheMap.set(scope, this);
|
|
16
|
-
}
|
|
17
|
-
static log(message, dryRun = false) {
|
|
18
|
-
const _message = `[ShortcutManager] ${message}`;
|
|
19
|
-
!dryRun && console.warn(_message);
|
|
20
|
-
return _message;
|
|
21
|
-
}
|
|
22
|
-
get traverse() {
|
|
23
|
-
return [...Object.values(this.shortcutCache.value)].sort((a, b) => (a.order || 0) - (b.order || 0));
|
|
24
|
-
}
|
|
25
|
-
query(key) {
|
|
26
|
-
return this.shortcutCache.value[key];
|
|
27
|
-
}
|
|
28
|
-
async update(key, info) {
|
|
29
|
-
var _a, _b;
|
|
30
|
-
const oldKeySignature = (_a = this.query(key)) == null ? void 0 : _a.currentKeySignature;
|
|
31
|
-
info && checkSignature(this.shortcutCache, info);
|
|
32
|
-
const item = this.query(key);
|
|
33
|
-
if (!item)
|
|
34
|
-
return;
|
|
35
|
-
await ((_b = item.onUpdate) == null ? void 0 : _b.call(item, key, info ? normalizeSignatureInfo(info) : void 0));
|
|
36
|
-
checkSignature(this.shortcutCache, info);
|
|
37
|
-
item.currentKeySignature = getKeySignature(info);
|
|
38
|
-
item.shortcutSignature = normalizeSignatureInfo(info);
|
|
39
|
-
this.shortcutCallbackMap.set(item.currentKeySignature, this.shortcutCallbackMap.get(oldKeySignature));
|
|
40
|
-
this.shortcutCallbackMap.delete(oldKeySignature);
|
|
41
|
-
function checkSignature(shortcutCache, info2) {
|
|
42
|
-
if (oldKeySignature === getKeySignature(info2))
|
|
43
|
-
return;
|
|
44
|
-
if (Object.values(shortcutCache.value).some((v) => v.currentKeySignature === getKeySignature(info2))) {
|
|
45
|
-
throw `\u91CD\u590D\u7684\u5FEB\u6377\u952E=> ${getDisplaySignature(info2)}`;
|
|
46
|
-
}
|
|
47
|
-
if (isInvalidSignature(info2)) {
|
|
48
|
-
throw `\u975E\u6CD5\u7684\u5FEB\u6377\u952E=>${info2.key}`;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
register(shortcutItem) {
|
|
53
|
-
const item = this.query(shortcutItem.key);
|
|
54
|
-
if (item) {
|
|
55
|
-
item.status = ShortcutStatus.ACTIVE;
|
|
56
|
-
this.shortcutCallbackMap.set(item.currentKeySignature, shortcutItem.callback);
|
|
57
|
-
Object.assign(item, pick(shortcutItem, ["debounce", "debounceOption", "label", "order", "key"]));
|
|
58
|
-
return createHandler(item);
|
|
59
|
-
}
|
|
60
|
-
this.shortcutCache.value[shortcutItem.key] = omit(shortcutItem, ["callback"]);
|
|
61
|
-
this.shortcutCallbackMap.set(shortcutItem.currentKeySignature, shortcutItem.callback);
|
|
62
|
-
return createHandler(this.shortcutCache.value[shortcutItem.key]);
|
|
63
|
-
function createHandler(shortcut) {
|
|
64
|
-
return {
|
|
65
|
-
stop: () => {
|
|
66
|
-
shortcut.status = ShortcutStatus.INACTIVE;
|
|
67
|
-
},
|
|
68
|
-
start: () => {
|
|
69
|
-
shortcut.status = ShortcutStatus.ACTIVE;
|
|
70
|
-
},
|
|
71
|
-
signature: () => shortcut.currentKeySignature
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
start() {
|
|
76
|
-
if (this.handle) {
|
|
77
|
-
ShortcutManager.log(`\u8BF7\u52FF\u91CD\u590D\u542F\u52A8=>${this}`);
|
|
78
|
-
return this;
|
|
79
|
-
}
|
|
80
|
-
this.handle = async (event) => {
|
|
81
|
-
if (!isKeyboardEvent(event) || this.disabled)
|
|
82
|
-
return;
|
|
83
|
-
const providerWrapper = findAncestor(event.target, isShortcutProvider);
|
|
84
|
-
if (providerWrapper && providerWrapper !== unref(this.environmentEle)) {
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
const keySignature = getKeySignature(event);
|
|
88
|
-
const callback = this.shortcutCallbackMap.get(keySignature);
|
|
89
|
-
if (!callback)
|
|
90
|
-
return;
|
|
91
|
-
event.preventDefault();
|
|
92
|
-
const shortcutItem = Object.values(this.shortcutCache.value).find(
|
|
93
|
-
(item) => item.currentKeySignature === keySignature
|
|
94
|
-
);
|
|
95
|
-
if (!shortcutItem || shortcutItem.status !== ShortcutStatus.ACTIVE || shortcutItem.disabled)
|
|
96
|
-
return;
|
|
97
|
-
callback();
|
|
98
|
-
};
|
|
99
|
-
useEventListener(this.environmentEle, "keyup", this.handle, { capture: true });
|
|
100
|
-
return this;
|
|
101
|
-
}
|
|
102
|
-
destroy() {
|
|
103
|
-
var _a;
|
|
104
|
-
this.handle && ((_a = unref(this.environmentEle)) == null ? void 0 : _a.removeEventListener("keyup", this.handle, { capture: true }));
|
|
105
|
-
this.handle = void 0;
|
|
106
|
-
this.clear();
|
|
107
|
-
}
|
|
108
|
-
clear() {
|
|
109
|
-
this.shortcutCallbackMap.clear();
|
|
110
|
-
this.shortcutCache.value = {};
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
const globManager = new ShortcutManager().start();
|
|
114
|
-
const onceSetupWarn = once(() => ShortcutManager.log("\u975Esetup\u8BED\u5883\u4E0B\u7684shortcut\u5C06\u5F71\u54CD\u5168\u5C40"));
|
|
115
|
-
const onceRegisterWarn = once(() => ShortcutManager.log("\u5728\u975Esetup\u8BED\u5883\u4E0B\u4F7F\u7528register\u51FD\u6570,\u7EC4\u4EF6\u9500\u6BC1\u65F6\u53EF\u80FD\u9700\u8981\u624B\u52A8\u8C03\u7528stop\u51FD\u6570\u4F7F\u5FEB\u6377\u952E\u5931\u6D3B"));
|
|
116
|
-
function useShortcuts(scope) {
|
|
117
|
-
function useManager() {
|
|
118
|
-
return computed(() => {
|
|
119
|
-
if (unref(scope)) {
|
|
120
|
-
const result = ShortcutManagerCacheMap.get(unref(scope));
|
|
121
|
-
if (!result)
|
|
122
|
-
ShortcutManager.log(`\u4E0D\u5B58\u5728\u7684scope=>${scope}, \u5C06\u4F7F\u7528\u5168\u5C40\u5FEB\u6377\u952E`);
|
|
123
|
-
return result || globManager;
|
|
124
|
-
} else if (getCurrentInstance()) {
|
|
125
|
-
return inject(InjectionShortcutManager, globManager);
|
|
126
|
-
} else {
|
|
127
|
-
onceSetupWarn();
|
|
128
|
-
return globManager;
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
const manager = useManager();
|
|
133
|
-
function createShortcutItem(shortcut) {
|
|
134
|
-
return {
|
|
135
|
-
...shortcut,
|
|
136
|
-
shortcutSignature: normalizeSignatureInfo(shortcut.shortcutSignature),
|
|
137
|
-
currentKeySignature: getKeySignature(shortcut.shortcutSignature),
|
|
138
|
-
key: keyFor(shortcut),
|
|
139
|
-
status: ShortcutStatus.ACTIVE,
|
|
140
|
-
callback: callbackFor(shortcut)
|
|
141
|
-
};
|
|
142
|
-
function callbackFor(shortcut2) {
|
|
143
|
-
var _a, _b;
|
|
144
|
-
if (!isFunction(shortcut2.callback)) {
|
|
145
|
-
throw new Error(ShortcutManager.log(`\u975E\u6CD5\u7684callback\u7C7B\u578B=>${shortcut2.callback}`, true));
|
|
146
|
-
}
|
|
147
|
-
if (!shortcut2.debounce)
|
|
148
|
-
return shortcut2.callback;
|
|
149
|
-
return useDebounceFn(shortcut2.callback, (_b = (_a = shortcut2.debounceOption) == null ? void 0 : _a.duration) != null ? _b : 300);
|
|
150
|
-
}
|
|
151
|
-
function keyFor(shortcut2) {
|
|
152
|
-
const key = shortcut2.key || shortcut2.label;
|
|
153
|
-
if (!isString(key)) {
|
|
154
|
-
throw new Error(ShortcutManager.log(`\u975E\u6CD5\u7684key\u7C7B\u578B=>${key}`, true));
|
|
155
|
-
}
|
|
156
|
-
return key;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
function register(shortcut) {
|
|
160
|
-
const { stop, signature, start } = unref(manager).register(createShortcutItem(shortcut));
|
|
161
|
-
if (getCurrentInstance()) {
|
|
162
|
-
onBeforeUnmount(stop);
|
|
163
|
-
onDeactivated(stop);
|
|
164
|
-
onActivated(start);
|
|
165
|
-
} else {
|
|
166
|
-
onceRegisterWarn();
|
|
167
|
-
}
|
|
168
|
-
return { stop, signature };
|
|
169
|
-
}
|
|
170
|
-
function traverse() {
|
|
171
|
-
return unref(manager).traverse;
|
|
172
|
-
}
|
|
173
|
-
function update(key, info) {
|
|
174
|
-
return unref(manager).update(key, info);
|
|
175
|
-
}
|
|
176
|
-
function updateManagerDisabled(disabled) {
|
|
177
|
-
unref(manager).disabled = !!disabled;
|
|
178
|
-
}
|
|
179
|
-
function clear() {
|
|
180
|
-
unref(manager).clear();
|
|
181
|
-
}
|
|
182
|
-
return { register, traverse, clear, update, updateManagerDisabled };
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export { GlobalShortcutProvider, ShortcutManager, useShortcuts };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ShortcutStatus } from '../../../../../es/components/shortcut-provider/src/constants';
|
|
2
|
-
export interface ShortcutSignatureInfo {
|
|
3
|
-
ctrl?: boolean;
|
|
4
|
-
shift?: boolean;
|
|
5
|
-
alt?: boolean;
|
|
6
|
-
key: string;
|
|
7
|
-
}
|
|
8
|
-
export declare type ShortcutOption = {
|
|
9
|
-
label: string;
|
|
10
|
-
shortcutSignature: ShortcutSignatureInfo;
|
|
11
|
-
callback(): void;
|
|
12
|
-
} & Partial<{
|
|
13
|
-
/**
|
|
14
|
-
* @description 更新快捷键回调
|
|
15
|
-
* @param key
|
|
16
|
-
* @param newSignature 用户输入的快捷键签名
|
|
17
|
-
*/
|
|
18
|
-
onUpdate(key: string, newSignature?: ShortcutSignatureInfo): Promise<void>;
|
|
19
|
-
/**
|
|
20
|
-
* 快捷键输入框展位文本
|
|
21
|
-
*/
|
|
22
|
-
placeholder: string;
|
|
23
|
-
/**
|
|
24
|
-
* 快捷键输入框编辑状态下的展位文本
|
|
25
|
-
*/
|
|
26
|
-
editPlaceholder: string;
|
|
27
|
-
key: string;
|
|
28
|
-
order: number;
|
|
29
|
-
disabled: boolean;
|
|
30
|
-
debounce: boolean;
|
|
31
|
-
debounceOption: {
|
|
32
|
-
duration?: number;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* 快捷键编辑组件的操作按钮
|
|
36
|
-
*/
|
|
37
|
-
operation: Array<'state' | 'reset'>;
|
|
38
|
-
}>;
|
|
39
|
-
export interface ShortcutItem extends ShortcutOption {
|
|
40
|
-
status: ShortcutStatus;
|
|
41
|
-
currentKeySignature: string;
|
|
42
|
-
key: string;
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ShortcutSignatureInfo } from '../../../../../es/components/shortcut-provider/src/types';
|
|
2
|
-
export declare function isKeyboardEvent(event: any): event is KeyboardEvent;
|
|
3
|
-
export declare function normalizeSignatureInfo(info: KeyboardEvent | Partial<ShortcutSignatureInfo>): Required<ShortcutSignatureInfo>;
|
|
4
|
-
export declare function getKeySignature(info: KeyboardEvent | Partial<ShortcutSignatureInfo>): string;
|
|
5
|
-
export declare function inKeyBlackList(key: string): boolean | undefined;
|
|
6
|
-
export declare function isInvalidSignature(info: KeyboardEvent | Partial<ShortcutSignatureInfo>): boolean | undefined;
|
|
7
|
-
export declare function getDisplaySignature(info: KeyboardEvent | Partial<ShortcutSignatureInfo>): string;
|
|
8
|
-
export declare function transformKey2DisplaySignature(keySignature: string): string;
|
|
9
|
-
export declare function isShortcutProvider(ele: HTMLElement): boolean;
|
|
10
|
-
export declare function findAncestor(ele: HTMLElement | null, finder: (ele: HTMLElement) => boolean): HTMLElement | null;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { isString } from 'lodash-es';
|
|
2
|
-
|
|
3
|
-
function isKeyboardEvent(event) {
|
|
4
|
-
return Reflect.get(event, "view") === window && Reflect.get(event, "shiftKey") != void 0;
|
|
5
|
-
}
|
|
6
|
-
function normalizeSignatureInfo(info) {
|
|
7
|
-
var _a, _b;
|
|
8
|
-
let ctrl, shift, alt;
|
|
9
|
-
const key = (_b = (_a = info.key) == null ? void 0 : _a.toUpperCase()) != null ? _b : "";
|
|
10
|
-
if (isKeyboardEvent(info)) {
|
|
11
|
-
ctrl = info.ctrlKey;
|
|
12
|
-
shift = info.shiftKey;
|
|
13
|
-
alt = info.altKey;
|
|
14
|
-
} else {
|
|
15
|
-
ctrl = !!info.ctrl;
|
|
16
|
-
shift = !!info.shift;
|
|
17
|
-
alt = !!info.alt;
|
|
18
|
-
}
|
|
19
|
-
return { ctrl, shift, alt, key };
|
|
20
|
-
}
|
|
21
|
-
function getKeySignature(info) {
|
|
22
|
-
const { ctrl, shift, alt, key } = normalizeSignatureInfo(info);
|
|
23
|
-
return `${ctrl ? "Ctrl_" : ""}${shift ? "Shift_" : ""}${alt ? "Alt_" : ""}${key}`;
|
|
24
|
-
}
|
|
25
|
-
const keyBlackList = ["CONTROL", "ALT", "SHIFT"];
|
|
26
|
-
function inKeyBlackList(key) {
|
|
27
|
-
if (!isString(key))
|
|
28
|
-
return;
|
|
29
|
-
return keyBlackList.includes(key.toUpperCase());
|
|
30
|
-
}
|
|
31
|
-
function isInvalidSignature(info) {
|
|
32
|
-
const { ctrl, shift, alt, key } = normalizeSignatureInfo(info);
|
|
33
|
-
if (!ctrl && !shift && !alt)
|
|
34
|
-
return !/F\d/.test(key);
|
|
35
|
-
return inKeyBlackList(key);
|
|
36
|
-
}
|
|
37
|
-
function getDisplaySignature(info) {
|
|
38
|
-
const { ctrl, shift, alt, key } = normalizeSignatureInfo(info);
|
|
39
|
-
return `${ctrl ? "Ctrl+ " : ""}${alt ? "Alt + " : ""}${shift ? "Shift + " : ""}${inKeyBlackList(key) ? "" : key}`;
|
|
40
|
-
}
|
|
41
|
-
function transformKey2DisplaySignature(keySignature) {
|
|
42
|
-
return keySignature.replace(/_/g, " + ");
|
|
43
|
-
}
|
|
44
|
-
function isShortcutProvider(ele) {
|
|
45
|
-
return ele && ele.getAttribute("is-shortcut-capture") != void 0;
|
|
46
|
-
}
|
|
47
|
-
function findAncestor(ele, finder) {
|
|
48
|
-
if (!ele)
|
|
49
|
-
return ele;
|
|
50
|
-
if (finder(ele))
|
|
51
|
-
return ele;
|
|
52
|
-
let next = ele.parentElement;
|
|
53
|
-
while (next && !finder(next)) {
|
|
54
|
-
next = next.parentElement;
|
|
55
|
-
}
|
|
56
|
-
return next;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export { findAncestor, getDisplaySignature, getKeySignature, inKeyBlackList, isInvalidSignature, isKeyboardEvent, isShortcutProvider, normalizeSignatureInfo, transformKey2DisplaySignature };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.shortcut-provider{outline:none}
|