cnhis-design-vue 3.1.23-beta.14 → 3.1.23-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/annotation-edit/index.js +10 -1
- package/es/components/big-table/index.d.ts +4 -6
- package/es/components/big-table/index.js +16 -2
- package/es/components/big-table/src/BigTable.vue.d.ts +20 -7
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +13 -13
- package/es/components/big-table/src/bigTableEmits.js +53 -1
- package/es/components/big-table/src/bigTableProps.js +119 -1
- package/es/components/big-table/src/bigTableState.js +62 -1
- package/es/components/big-table/src/components/NoData.vue.d.ts +2 -4
- package/es/components/big-table/src/components/edit-form/edit-date.js +2 -2
- package/es/components/big-table/src/components/edit-form/edit-input.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-separate.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +3 -5
- package/es/components/big-table/src/components/edit-form/edit-time.js +1 -1
- package/es/components/big-table/src/components/edit-form/useCommon.js +19 -1
- package/es/components/big-table/src/components/input-button.js +1 -2
- package/es/components/big-table/src/components/input-button.vue.d.ts +1 -1
- package/es/components/big-table/src/components/separate.js +1 -1
- package/es/components/big-table/src/components/separate.vue.d.ts +2 -4
- package/es/components/big-table/src/constants/index.js +3 -1
- package/es/components/big-table/src/hooks/export.js +1 -1
- package/es/components/big-table/src/hooks/index.js +8 -8
- package/es/components/big-table/src/hooks/useAnchor.js +49 -1
- package/es/components/big-table/src/hooks/useAnnotation.js +1 -1
- package/es/components/big-table/src/hooks/useBatchEditing.js +301 -1
- package/es/components/big-table/src/hooks/useColumnConfigAdaptor.js +158 -1
- package/es/components/big-table/src/hooks/useEdit.d.ts +3 -5
- package/es/components/big-table/src/hooks/useEdit.js +126 -1
- package/es/components/big-table/src/hooks/useEvent.js +81 -1
- package/es/components/big-table/src/hooks/useFormat.js +507 -1
- package/es/components/big-table/src/hooks/useNestTable.js +86 -1
- package/es/components/big-table/src/hooks/useSeparateRow.js +132 -1
- package/es/components/big-table/src/hooks/useTableParse.js +142 -1
- package/es/components/big-table/src/utils.js +608 -1
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/bpmn-workflow/index.d.ts +2 -4
- package/es/components/bpmn-workflow/index.js +10 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.js +34 -30
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.d.ts +2 -4
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +65 -33
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +3 -1
- package/es/components/button-print/index.js +11 -2
- package/es/components/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/components/button-print/src/components/IdentityVerification.js +9 -7
- package/es/components/button-print/src/utils/index.js +1 -1
- package/es/components/button-print/src/utils/print.js +357 -1
- package/es/components/chunk-upload/index.d.ts +1 -1
- package/es/components/chunk-upload/index.js +14 -1
- package/es/components/chunk-upload/src/chunk-upload-new.js +11 -9
- package/es/components/chunk-upload/src/hooks/upload-computed.js +70 -1
- package/es/components/chunk-upload/src/hooks/upload-data.js +96 -1
- package/es/components/chunk-upload/src/hooks/vod-computed.js +79 -1
- package/es/components/chunk-upload/src/hooks/vod-data.js +28 -1
- package/es/components/chunk-upload/src/vod-chunk-upload/index.js +1 -0
- package/es/components/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.js +20 -18
- package/es/components/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +1 -1
- package/es/components/drag-layout/index.d.ts +1 -1
- package/es/components/drag-layout/index.js +11 -1
- package/es/components/drag-layout/src/DragFormLeftItem.js +10 -12
- package/es/components/drag-layout/src/DragFormLeftItem.vue.d.ts +1 -1
- package/es/components/drag-layout/src/DragFormRightItem.js +19 -21
- package/es/components/drag-layout/src/DragLayout.js +19 -17
- package/es/components/drag-layout/src/DragLayout.vue.d.ts +1 -1
- package/es/components/editor/index.js +10 -1
- package/es/components/fabric-chart/index.d.ts +1 -1
- package/es/components/fabric-chart/index.js +10 -1
- package/es/components/fabric-chart/src/FabricChart.js +30 -11
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +1 -1
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
- package/es/components/fabric-chart/src/components/PopupTip.js +1 -1
- package/es/components/fabric-chart/src/components/PopupTip.vue.d.ts +1 -1
- package/es/components/fabric-chart/src/components/useStyle.js +36 -1
- package/es/components/fabric-chart/src/hooks/constant.js +78 -1
- package/es/components/fabric-chart/src/hooks/index.js +9 -9
- package/es/components/fabric-chart/src/hooks/useBottom.js +97 -1
- package/es/components/fabric-chart/src/hooks/useCenter.js +588 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +60 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +182 -1
- package/es/components/fabric-chart/src/hooks/useEvent.js +161 -1
- package/es/components/fabric-chart/src/hooks/useGrid.js +50 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +331 -1
- package/es/components/fabric-chart/src/hooks/useOther.js +100 -1
- package/es/components/fabric-chart/src/hooks/useRight.js +27 -1
- package/es/components/fabric-chart/src/hooks/useShadow.js +132 -1
- package/es/components/fabric-chart/src/hooks/useTop.js +160 -1
- package/es/components/fabric-chart/src/interface.js +4 -1
- package/es/components/fabric-chart/src/utils/index.js +9713 -9169
- package/es/components/field-set/index.js +10 -1
- package/es/components/field-set/src/FieldSet.js +58 -62
- package/es/components/form-config/index.d.ts +16 -23
- package/es/components/form-config/index.js +10 -1
- package/es/components/form-config/src/FormConfig.js +10 -11
- package/es/components/form-config/src/FormConfig.vue.d.ts +16 -23
- package/es/components/form-config/src/components/FormConfigCreator.js +6 -8
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigDragDisplay.js +2 -2
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.js +24 -20
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +12 -17
- package/es/components/form-config/src/components/renderer/CloseButton.js +1 -1
- package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +2 -4
- package/es/components/form-config/src/components/renderer/ComplexNode.js +2 -2
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +5 -9
- package/es/components/form-config/src/components/renderer/DefaultNode.js +2 -2
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +4 -8
- package/es/components/form-config/src/constants/index.js +60 -1
- package/es/components/form-config/src/hooks/index.js +2 -2
- package/es/components/form-config/src/hooks/useConfigurationField.js +54 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +27 -1
- package/es/components/form-config/src/utils/index.js +26 -1
- package/es/components/form-render/index.js +23 -14
- package/es/components/form-render/src/FormRender.js +21 -14
- package/es/components/form-render/src/components/renderer/checkbox.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/combination.js +4 -4
- package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/complex.js +1 -1
- package/es/components/form-render/src/components/renderer/date.js +3 -3
- package/es/components/form-render/src/components/renderer/formItem.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/formItem.js +3 -3
- package/es/components/form-render/src/components/renderer/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/index.js +2 -2
- package/es/components/form-render/src/components/renderer/input.js +9 -3
- package/es/components/form-render/src/components/renderer/inputGroup.js +11 -1
- package/es/components/form-render/src/components/renderer/inputNumber.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/inputNumber.js +2 -2
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +35 -1
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +2 -2
- package/es/components/form-render/src/components/renderer/labelSelect.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascade.d.ts +9 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascade.js +52 -35
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.js +57 -0
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +54 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +53 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.js +11 -0
- package/es/components/form-render/src/components/renderer/radio.js +1 -1
- package/es/components/form-render/src/components/renderer/search.d.ts +9 -0
- package/es/components/form-render/src/components/renderer/search.js +16 -11
- package/es/components/form-render/src/components/renderer/searchCascade.d.ts +9 -0
- package/es/components/form-render/src/components/renderer/searchCascade.js +18 -12
- package/es/components/form-render/src/components/renderer/select.d.ts +9 -0
- package/es/components/form-render/src/components/renderer/select.js +15 -10
- package/es/components/form-render/src/components/renderer/slider.js +1 -1
- package/es/components/form-render/src/components/renderer/switch.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/switch.js +1 -1
- package/es/components/form-render/src/components/renderer/textarea.js +2 -2
- package/es/components/form-render/src/constants/index.js +45 -1
- package/es/components/form-render/src/hooks/index.js +13 -13
- package/es/components/form-render/src/hooks/useAnchor.js +99 -1
- package/es/components/form-render/src/hooks/useAsyncQueue.js +151 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.js +107 -1
- package/es/components/form-render/src/hooks/useChangeContext.js +20 -1
- package/es/components/form-render/src/hooks/useCommonInjection.js +36 -1
- package/es/components/form-render/src/hooks/useCommonLog.js +12 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +287 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.js +65 -1
- package/es/components/form-render/src/hooks/useFieldVisitor.js +46 -1
- package/es/components/form-render/src/hooks/useFormContext.js +68 -1
- package/es/components/form-render/src/hooks/useFormField.js +13 -1
- package/es/components/form-render/src/hooks/useFormItemDeps.js +31 -1
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +10 -1
- package/es/components/form-render/src/hooks/useFormRequest.js +19 -1
- package/es/components/form-render/src/hooks/useFormValidator.js +68 -1
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +18 -1
- package/es/components/form-render/src/hooks/usePresetScope.js +22 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +5 -1
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/src/utils/business.js +78 -1
- package/es/components/form-render/src/utils/dom.js +14 -1
- package/es/components/form-render/src/utils/index.d.ts +2 -2
- package/es/components/form-render/src/utils/index.js +6 -6
- package/es/components/form-render/src/utils/schema.js +105 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/grid/index.d.ts +1 -1
- package/es/components/grid/index.js +11 -1
- package/es/components/grid/src/Grid.d.ts +1 -1
- package/es/components/grid/src/Grid.js +1 -1
- package/es/components/grid/src/hooks.js +167 -1
- package/es/components/iho-table/index.d.ts +1 -1
- package/es/components/iho-table/index.js +34 -3
- package/es/components/iho-table/src/IhoTable.js +21 -13
- package/es/components/iho-table/src/IhoTable.vue.d.ts +1 -1
- package/es/components/iho-table/src/components/IhoTableColumn.d.ts +1 -1
- package/es/components/iho-table/src/constants/index.js +123 -1
- package/es/components/iho-table/src/hooks/index.js +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.js +140 -1
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +67 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +26 -1
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +252 -1
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +33 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +27 -1
- package/es/components/iho-table/src/hooks/useTablePlugin.js +20 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +33 -1
- package/es/components/iho-table/src/plugins/index.js +4 -4
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +36 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.js +3 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +3 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useCommon.js +17 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +3 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +4 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +20 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +6 -6
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +57 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.js +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +3 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +4 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +4 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +3 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +5 -5
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +3 -3
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +30 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +50 -1
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +89 -1
- package/es/components/iho-table/src/types/index.js +1 -1
- package/es/components/iho-table/src/types/pluginType.js +12 -1
- package/es/components/iho-table/src/utils/index.js +23 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +98 -41
- package/es/components/info-header/index.d.ts +5 -7
- package/es/components/info-header/index.js +10 -1
- package/es/components/info-header/src/HiddenContent.vue.d.ts +3 -5
- package/es/components/info-header/src/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/InfoHeader.js +21 -16
- package/es/components/info-header/src/InfoHeader.vue.d.ts +5 -7
- package/es/components/map/index.js +10 -1
- package/es/components/map/src/Map.js +10 -12
- package/es/components/scale-view/index.d.ts +7 -11
- package/es/components/scale-view/index.js +35 -1
- package/es/components/scale-view/src/ScaleView.js +51 -42
- package/es/components/scale-view/src/ScaleView.vue.d.ts +7 -11
- package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +3 -5
- package/es/components/scale-view/src/components/EvaluateCountdown.js +16 -8
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +1 -1
- package/es/components/scale-view/src/components/EvaluatePage.js +1 -1
- package/es/components/scale-view/src/components/NoData.vue.d.ts +2 -4
- package/es/components/scale-view/src/components/composables/choose-common.js +83 -1
- package/es/components/scale-view/src/components/formitem/address.js +3993 -1
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-map.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +309 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +437 -1
- package/es/components/scale-view/src/hooks/scaleview-props.js +81 -1
- package/es/components/scale-view/src/hooks/scaleview-state.js +38 -1
- package/es/components/scale-view/src/hooks/scaleview-submit.js +154 -1
- package/es/components/scale-view/src/hooks/scaleview-validate.js +187 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +2 -2
- package/es/components/scale-view/src/hooks/use-component.js +82 -1
- package/es/components/scale-view/src/hooks/use-evaluate.js +150 -1
- package/es/components/scale-view/src/hooks/use-event.js +129 -1
- package/es/components/scale-view/src/hooks/use-noData.js +41 -1
- package/es/components/scale-view/src/utils/judge-types.js +36 -1
- package/es/components/search-cascader/index.d.ts +1 -1
- package/es/components/search-cascader/index.js +10 -1
- package/es/components/search-cascader/src/SearchCascader.js +10 -7
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.js +2 -2
- package/es/components/search-cascader/src/constants/index.js +5 -1
- package/es/components/search-cascader/src/hooks/index.js +1 -1
- package/es/components/search-cascader/src/hooks/useCssVariable.js +7 -1
- package/es/components/search-cascader/src/utils/index.js +11 -1
- package/es/components/select-label/index.d.ts +2 -2
- package/es/components/select-label/index.js +15 -1
- package/es/components/select-label/src/LabelFormContent.js +10 -6
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
- package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
- package/es/components/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +7 -8
- package/es/components/select-label/src/components/label-classify.js +8 -5
- package/es/components/select-label/src/components/label-classify.vue.d.ts +1 -1
- package/es/components/select-person/index.js +10 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +3 -1
- package/es/components/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.js +7 -9
- package/es/components/select-person/src/utils/index.js +84 -1
- package/es/components/shortcut-provider/index.d.ts +2 -4
- package/es/components/shortcut-provider/index.js +12 -3
- package/es/components/shortcut-provider/src/ShortcutProvider.js +4 -4
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +2 -4
- package/es/components/shortcut-provider/src/constants/index.js +8 -1
- package/es/components/shortcut-provider/src/hooks/index.js +2 -2
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +12 -1
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +185 -1
- package/es/components/shortcut-provider/src/utils/index.js +59 -1
- package/es/components/shortcut-setter/index.d.ts +11 -16
- package/es/components/shortcut-setter/index.js +10 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.js +4 -4
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +11 -16
- package/es/components/shortcut-setter/src/ShortcutSetterItem.js +1 -1
- package/es/components/steps-wheel/index.d.ts +2 -4
- package/es/components/steps-wheel/index.js +10 -1
- package/es/components/steps-wheel/src/StepsWheel.js +10 -6
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +2 -4
- package/es/components/time-line/index.d.ts +1 -1
- package/es/components/time-line/index.js +10 -1
- package/es/components/time-line/src/TimeLine.vue.d.ts +1 -1
- package/es/shared/components/SelectPage/SelectPage.js +2 -4
- package/es/shared/components/SelectPage/SelectPage.vue.d.ts +2 -4
- package/es/shared/components/SelectPage/index.js +1 -0
- package/es/shared/components/SlotRender/SlotRender.d.ts +1 -1
- package/es/shared/components/SlotRender/index.js +1 -0
- package/es/shared/components/SvgIcon/SvgIcon.vue.d.ts +1 -1
- package/es/shared/components/SvgIcon/index.js +1 -0
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/shared/components/TextOverTooltip/index.js +1 -0
- package/es/shared/components/no-data/NoData.vue.d.ts +2 -4
- package/es/shared/components/no-data/index.js +1 -0
- package/es/shared/components/player-vod/index.vue.d.ts +1 -1
- package/es/shared/components/player-vod/player.d.ts +1 -1
- package/es/shared/components/player-vod/video-list.d.ts +1 -1
- package/es/shared/components/player-vod/video-modal.d.ts +1 -1
- package/es/shared/global/variable.js +3 -1
- package/es/shared/utils/anime.js +129 -1
- package/es/shared/utils/clickoutside.js +52 -1
- package/es/shared/utils/colorLog.js +53 -1
- package/es/shared/utils/index.js +98 -1
- package/es/shared/utils/loadViewer.js +11 -1
- package/es/shared/utils/state.js +44 -1
- package/es/shared/utils/tapable/HookCodeFactory.js +80 -67
- package/es/shared/utils/utilExpand.js +46 -46
- package/package.json +68 -68
- package/es/components/annotation-edit/index2.js +0 -10
- package/es/components/big-table/index2.js +0 -17
- package/es/components/big-table/src/bigTableEmits2.js +0 -53
- package/es/components/big-table/src/bigTableProps2.js +0 -119
- package/es/components/big-table/src/bigTableState2.js +0 -62
- package/es/components/big-table/src/components/edit-form/useCommon2.js +0 -19
- package/es/components/big-table/src/constants/index2.js +0 -3
- package/es/components/big-table/src/hooks/useAnchor2.js +0 -49
- package/es/components/big-table/src/hooks/useBatchEditing2.js +0 -289
- package/es/components/big-table/src/hooks/useColumnConfigAdaptor2.js +0 -154
- package/es/components/big-table/src/hooks/useEdit2.js +0 -126
- package/es/components/big-table/src/hooks/useEvent2.js +0 -81
- package/es/components/big-table/src/hooks/useFormat2.js +0 -501
- package/es/components/big-table/src/hooks/useNestTable2.js +0 -86
- package/es/components/big-table/src/hooks/useSeparateRow2.js +0 -125
- package/es/components/big-table/src/hooks/useTableParse2.js +0 -136
- package/es/components/big-table/src/utils2.js +0 -603
- package/es/components/bpmn-workflow/index2.js +0 -10
- package/es/components/button-print/index2.js +0 -11
- package/es/components/button-print/src/utils/print2.js +0 -349
- package/es/components/chunk-upload/index2.js +0 -14
- package/es/components/chunk-upload/src/hooks/upload-computed2.js +0 -70
- package/es/components/chunk-upload/src/hooks/upload-data2.js +0 -96
- package/es/components/chunk-upload/src/hooks/vod-computed2.js +0 -79
- package/es/components/chunk-upload/src/hooks/vod-data2.js +0 -28
- package/es/components/chunk-upload/src/vod-chunk-upload/index2.js +0 -2
- package/es/components/drag-layout/index2.js +0 -11
- package/es/components/editor/index2.js +0 -10
- package/es/components/fabric-chart/index2.js +0 -10
- package/es/components/fabric-chart/src/components/useStyle2.js +0 -36
- package/es/components/fabric-chart/src/hooks/constant2.js +0 -78
- package/es/components/fabric-chart/src/hooks/useBottom2.js +0 -85
- package/es/components/fabric-chart/src/hooks/useCenter2.js +0 -583
- package/es/components/fabric-chart/src/hooks/useCumputedPoint2.js +0 -60
- package/es/components/fabric-chart/src/hooks/useDraw2.js +0 -182
- package/es/components/fabric-chart/src/hooks/useEvent2.js +0 -136
- package/es/components/fabric-chart/src/hooks/useGrid2.js +0 -50
- package/es/components/fabric-chart/src/hooks/useLeft2.js +0 -321
- package/es/components/fabric-chart/src/hooks/useOther2.js +0 -100
- package/es/components/fabric-chart/src/hooks/useRight2.js +0 -27
- package/es/components/fabric-chart/src/hooks/useShadow2.js +0 -127
- package/es/components/fabric-chart/src/hooks/useTop2.js +0 -140
- package/es/components/fabric-chart/src/interface2.js +0 -4
- package/es/components/field-set/index2.js +0 -10
- package/es/components/form-config/index2.js +0 -10
- package/es/components/form-config/src/constants/index2.js +0 -60
- package/es/components/form-config/src/hooks/useConfigurationField2.js +0 -52
- package/es/components/form-config/src/hooks/useSortalbeConfig2.js +0 -27
- package/es/components/form-config/src/utils/index2.js +0 -26
- package/es/components/form-render/index2.js +0 -47
- package/es/components/form-render/src/components/renderer/index2.js +0 -20
- package/es/components/form-render/src/components/renderer/inputGroup2.js +0 -8
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate2.js +0 -33
- package/es/components/form-render/src/components/renderer/linebar.d.ts +0 -31
- package/es/components/form-render/src/components/renderer/linebar.js +0 -61
- package/es/components/form-render/src/constants/index2.js +0 -41
- package/es/components/form-render/src/hooks/useAnchor2.js +0 -88
- package/es/components/form-render/src/hooks/useAsyncQueue2.js +0 -144
- package/es/components/form-render/src/hooks/useBusinessBinding2.js +0 -107
- package/es/components/form-render/src/hooks/useChangeContext2.js +0 -20
- package/es/components/form-render/src/hooks/useCommonInjection2.js +0 -36
- package/es/components/form-render/src/hooks/useCommonLog2.js +0 -10
- package/es/components/form-render/src/hooks/useFieldListAdaptor2.js +0 -282
- package/es/components/form-render/src/hooks/useFieldNormalize2.js +0 -65
- package/es/components/form-render/src/hooks/useFieldVisitor2.js +0 -46
- package/es/components/form-render/src/hooks/useFormContext2.js +0 -59
- package/es/components/form-render/src/hooks/useFormField2.js +0 -13
- package/es/components/form-render/src/hooks/useFormItemDeps2.js +0 -31
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle2.js +0 -10
- package/es/components/form-render/src/hooks/useFormRequest2.js +0 -19
- package/es/components/form-render/src/hooks/useFormValidator2.js +0 -68
- package/es/components/form-render/src/hooks/useNuiThemeOverrides2.js +0 -18
- package/es/components/form-render/src/hooks/usePresetScope2.js +0 -22
- package/es/components/form-render/src/utils/business2.js +0 -78
- package/es/components/form-render/src/utils/dom2.js +0 -14
- package/es/components/form-render/src/utils/schema2.js +0 -105
- package/es/components/grid/index2.js +0 -11
- package/es/components/grid/src/hooks2.js +0 -167
- package/es/components/iho-table/index2.js +0 -30
- package/es/components/iho-table/src/constants/index2.js +0 -123
- package/es/components/iho-table/src/hooks/tapHooks/index2.js +0 -132
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks2.js +0 -67
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks2.js +0 -26
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks2.js +0 -248
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks2.js +0 -33
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks2.js +0 -27
- package/es/components/iho-table/src/hooks/useTablePlugin2.js +0 -20
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index2.js +0 -30
- package/es/components/iho-table/src/plugins/index2.js +0 -15
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +0 -36
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useCommon2.js +0 -17
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils2.js +0 -20
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils2.js +0 -54
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index2.js +0 -27
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils2.js +0 -50
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index2.js +0 -84
- package/es/components/iho-table/src/types/pluginType2.js +0 -12
- package/es/components/iho-table/src/utils/index2.js +0 -23
- package/es/components/index2.js +0 -79
- package/es/components/info-header/index2.js +0 -10
- package/es/components/map/index2.js +0 -10
- package/es/components/scale-view/index2.js +0 -35
- package/es/components/scale-view/src/components/composables/choose-common2.js +0 -83
- package/es/components/scale-view/src/components/formitem/address2.js +0 -3993
- package/es/components/scale-view/src/hooks/scaleview-computed2.js +0 -309
- package/es/components/scale-view/src/hooks/scaleview-init2.js +0 -437
- package/es/components/scale-view/src/hooks/scaleview-props2.js +0 -81
- package/es/components/scale-view/src/hooks/scaleview-state2.js +0 -38
- package/es/components/scale-view/src/hooks/scaleview-submit2.js +0 -154
- package/es/components/scale-view/src/hooks/scaleview-validate2.js +0 -187
- package/es/components/scale-view/src/hooks/use-component2.js +0 -82
- package/es/components/scale-view/src/hooks/use-evaluate2.js +0 -150
- package/es/components/scale-view/src/hooks/use-event2.js +0 -129
- package/es/components/scale-view/src/hooks/use-noData2.js +0 -41
- package/es/components/scale-view/src/utils/judge-types2.js +0 -36
- package/es/components/search-cascader/index2.js +0 -10
- package/es/components/search-cascader/src/constants/index2.js +0 -3
- package/es/components/search-cascader/src/hooks/useCssVariable2.js +0 -7
- package/es/components/search-cascader/src/utils/index2.js +0 -11
- package/es/components/select-label/index2.js +0 -15
- package/es/components/select-person/index2.js +0 -10
- package/es/components/select-person/src/utils/index2.js +0 -84
- package/es/components/shortcut-provider/index2.js +0 -13
- package/es/components/shortcut-provider/src/constants/index2.js +0 -8
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature2.js +0 -12
- package/es/components/shortcut-provider/src/hooks/useShortcuts2.js +0 -183
- package/es/components/shortcut-provider/src/utils/index2.js +0 -59
- package/es/components/shortcut-setter/index2.js +0 -10
- package/es/components/steps-wheel/index2.js +0 -10
- package/es/components/time-line/index2.js +0 -10
- package/es/shared/components/SelectPage/index2.js +0 -2
- package/es/shared/components/SlotRender/index2.js +0 -2
- package/es/shared/components/SvgIcon/index2.js +0 -2
- package/es/shared/components/TextOverTooltip/index2.js +0 -2
- package/es/shared/components/no-data/index2.js +0 -2
- package/es/shared/global/variable2.js +0 -3
- package/es/shared/utils/anime2.js +0 -129
- package/es/shared/utils/clickoutside2.js +0 -48
- package/es/shared/utils/colorLog2.js +0 -44
- package/es/shared/utils/index2.js +0 -98
- package/es/shared/utils/loadViewer2.js +0 -11
- package/es/shared/utils/state2.js +0 -44
|
@@ -1 +1,84 @@
|
|
|
1
|
-
|
|
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 };
|
|
@@ -10,12 +10,10 @@ declare const ShortcutProvider: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
10
10
|
scope: {
|
|
11
11
|
type: (SymbolConstructor | StringConstructor)[];
|
|
12
12
|
};
|
|
13
|
-
}>> & {
|
|
14
|
-
[x: `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
15
|
-
}>>;
|
|
13
|
+
}>> & {}>>;
|
|
16
14
|
shortcutWrapperRef: import("vue").Ref<HTMLElement | undefined>;
|
|
17
15
|
manager: import("./src/hooks").ShortcutManager;
|
|
18
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
17
|
scope: {
|
|
20
18
|
type: (SymbolConstructor | StringConstructor)[];
|
|
21
19
|
};
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, ref, provide, onBeforeUnmount, openBlock, createElementBlock, renderSlot } from 'vue';
|
|
2
|
-
import { uuidGenerator } from '../../../shared/utils/
|
|
3
|
-
import { InjectionShortcutManager } from './constants/
|
|
4
|
-
import '../
|
|
2
|
+
import { uuidGenerator } from '../../../shared/utils/index.js';
|
|
3
|
+
import { InjectionShortcutManager } from './constants/index.js';
|
|
4
|
+
import '../index.js';
|
|
5
5
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
6
|
-
import { ShortcutManager } from './hooks/
|
|
6
|
+
import { ShortcutManager } from './hooks/useShortcuts.js';
|
|
7
7
|
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "ShortcutProvider",
|
|
@@ -8,12 +8,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
scope: {
|
|
9
9
|
type: (SymbolConstructor | StringConstructor)[];
|
|
10
10
|
};
|
|
11
|
-
}>> & {
|
|
12
|
-
[x: `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
13
|
-
}>>;
|
|
11
|
+
}>> & {}>>;
|
|
14
12
|
shortcutWrapperRef: import("vue").Ref<HTMLElement | undefined>;
|
|
15
13
|
manager: ShortcutManager;
|
|
16
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
15
|
scope: {
|
|
18
16
|
type: (SymbolConstructor | StringConstructor)[];
|
|
19
17
|
};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
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,2 +1,2 @@
|
|
|
1
|
-
export { GlobalShortcutProvider, ShortcutManager, useShortcuts } from './
|
|
2
|
-
export { useShortcutSignature } from './
|
|
1
|
+
export { GlobalShortcutProvider, ShortcutManager, useShortcuts } from './useShortcuts.js';
|
|
2
|
+
export { useShortcutSignature } from './useShortcutSignature.js';
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
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 +1,185 @@
|
|
|
1
|
-
|
|
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 +1,59 @@
|
|
|
1
|
-
|
|
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 };
|
|
@@ -135,6 +135,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
135
135
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
136
136
|
content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
|
|
137
137
|
lazyRequest?: boolean | undefined;
|
|
138
|
+
requestCache?: boolean | undefined;
|
|
138
139
|
maxGroupNum?: number | undefined;
|
|
139
140
|
jsonCombination?: boolean | undefined;
|
|
140
141
|
children?: any[] | undefined;
|
|
@@ -152,6 +153,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
152
153
|
alignItems?: string | undefined;
|
|
153
154
|
alignSelf?: string | undefined;
|
|
154
155
|
alignTracks?: string | undefined;
|
|
156
|
+
animationComposition?: string | undefined;
|
|
155
157
|
animationDelay?: string | undefined;
|
|
156
158
|
animationDirection?: string | undefined;
|
|
157
159
|
animationDuration?: string | undefined;
|
|
@@ -162,7 +164,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
162
164
|
animationTimeline?: string | undefined;
|
|
163
165
|
animationTimingFunction?: string | undefined;
|
|
164
166
|
appearance?: import("csstype").AppearanceProperty | undefined;
|
|
165
|
-
aspectRatio?:
|
|
167
|
+
aspectRatio?: import("csstype").AspectRatioProperty | undefined;
|
|
166
168
|
backdropFilter?: string | undefined;
|
|
167
169
|
backfaceVisibility?: import("csstype").BackfaceVisibilityProperty | undefined;
|
|
168
170
|
backgroundAttachment?: string | undefined;
|
|
@@ -347,6 +349,8 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
347
349
|
maskRepeat?: string | undefined;
|
|
348
350
|
maskSize?: import("csstype").MaskSizeProperty<string | number> | undefined;
|
|
349
351
|
maskType?: import("csstype").MaskTypeProperty | undefined;
|
|
352
|
+
mathDepth?: import("csstype").MathDepthProperty | undefined;
|
|
353
|
+
mathShift?: import("csstype").MathShiftProperty | undefined;
|
|
350
354
|
mathStyle?: import("csstype").MathStyleProperty | undefined;
|
|
351
355
|
maxBlockSize?: import("csstype").MaxBlockSizeProperty<string | number> | undefined;
|
|
352
356
|
maxHeight?: import("csstype").MaxHeightProperty<string | number> | undefined;
|
|
@@ -464,7 +468,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
464
468
|
textDecorationSkipInk?: import("csstype").TextDecorationSkipInkProperty | undefined;
|
|
465
469
|
textDecorationStyle?: import("csstype").TextDecorationStyleProperty | undefined;
|
|
466
470
|
textDecorationThickness?: import("csstype").TextDecorationThicknessProperty<string | number> | undefined;
|
|
467
|
-
textDecorationWidth?: import("csstype").TextDecorationThicknessProperty<string | number> | undefined;
|
|
468
471
|
textEmphasisColor?: string | undefined;
|
|
469
472
|
textEmphasisPosition?: string | undefined;
|
|
470
473
|
textEmphasisStyle?: string | undefined;
|
|
@@ -572,7 +575,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
572
575
|
MozBoxSizing?: import("csstype").BoxSizingProperty | undefined;
|
|
573
576
|
MozColumnCount?: import("csstype").ColumnCountProperty | undefined;
|
|
574
577
|
MozColumnFill?: import("csstype").ColumnFillProperty | undefined;
|
|
575
|
-
MozColumnGap?: import("csstype").ColumnGapProperty<string | number> | undefined;
|
|
576
578
|
MozColumnRuleColor?: string | undefined;
|
|
577
579
|
MozColumnRuleStyle?: string | undefined;
|
|
578
580
|
MozColumnRuleWidth?: import("csstype").ColumnRuleWidthProperty<string | number> | undefined;
|
|
@@ -606,7 +608,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
606
608
|
MozWindowDragging?: import("csstype").MozWindowDraggingProperty | undefined;
|
|
607
609
|
MozWindowShadow?: import("csstype").MozWindowShadowProperty | undefined;
|
|
608
610
|
msAccelerator?: import("csstype").MsAcceleratorProperty | undefined;
|
|
609
|
-
msAlignSelf?: string | undefined;
|
|
610
611
|
msBlockProgression?: import("csstype").MsBlockProgressionProperty | undefined;
|
|
611
612
|
msContentZoomChaining?: import("csstype").MsContentZoomChainingProperty | undefined;
|
|
612
613
|
msContentZoomLimitMax?: string | undefined;
|
|
@@ -627,7 +628,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
627
628
|
msHyphenateLimitZone?: import("csstype").MsHyphenateLimitZoneProperty<string | number> | undefined;
|
|
628
629
|
msHyphens?: import("csstype").HyphensProperty | undefined;
|
|
629
630
|
msImeAlign?: import("csstype").MsImeAlignProperty | undefined;
|
|
630
|
-
msJustifySelf?: string | undefined;
|
|
631
631
|
msLineBreak?: import("csstype").LineBreakProperty | undefined;
|
|
632
632
|
msOrder?: import("csstype").GlobalsNumber | undefined;
|
|
633
633
|
msOverflowStyle?: import("csstype").MsOverflowStyleProperty | undefined;
|
|
@@ -650,6 +650,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
650
650
|
msScrollbarFaceColor?: string | undefined;
|
|
651
651
|
msScrollbarHighlightColor?: string | undefined;
|
|
652
652
|
msScrollbarShadowColor?: string | undefined;
|
|
653
|
+
msScrollbarTrackColor?: string | undefined;
|
|
653
654
|
msTextAutospace?: import("csstype").MsTextAutospaceProperty | undefined;
|
|
654
655
|
msTextCombineHorizontal?: string | undefined;
|
|
655
656
|
msTextOverflow?: string | undefined;
|
|
@@ -699,7 +700,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
699
700
|
WebkitClipPath?: string | undefined;
|
|
700
701
|
WebkitColumnCount?: import("csstype").ColumnCountProperty | undefined;
|
|
701
702
|
WebkitColumnFill?: import("csstype").ColumnFillProperty | undefined;
|
|
702
|
-
WebkitColumnGap?: import("csstype").ColumnGapProperty<string | number> | undefined;
|
|
703
703
|
WebkitColumnRuleColor?: string | undefined;
|
|
704
704
|
WebkitColumnRuleStyle?: string | undefined;
|
|
705
705
|
WebkitColumnRuleWidth?: import("csstype").ColumnRuleWidthProperty<string | number> | undefined;
|
|
@@ -828,7 +828,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
828
828
|
scrollSnapPointsY?: string | undefined;
|
|
829
829
|
scrollSnapTypeX?: import("csstype").ScrollSnapTypeXProperty | undefined;
|
|
830
830
|
scrollSnapTypeY?: import("csstype").ScrollSnapTypeYProperty | undefined;
|
|
831
|
-
scrollbarTrackColor?: string | undefined;
|
|
832
831
|
KhtmlBoxAlign?: import("csstype").BoxAlignProperty | undefined;
|
|
833
832
|
KhtmlBoxDirection?: import("csstype").BoxDirectionProperty | undefined;
|
|
834
833
|
KhtmlBoxFlex?: import("csstype").GlobalsNumber | undefined;
|
|
@@ -875,7 +874,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
875
874
|
MozTextDecorationStyle?: import("csstype").TextDecorationStyleProperty | undefined;
|
|
876
875
|
MozUserInput?: import("csstype").MozUserInputProperty | undefined;
|
|
877
876
|
msImeMode?: import("csstype").ImeModeProperty | undefined;
|
|
878
|
-
msScrollbarTrackColor?: string | undefined;
|
|
879
877
|
OAnimation?: import("csstype").AnimationProperty | undefined;
|
|
880
878
|
OAnimationDelay?: string | undefined;
|
|
881
879
|
OAnimationDirection?: string | undefined;
|
|
@@ -943,6 +941,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
943
941
|
"align-items"?: string | undefined;
|
|
944
942
|
"align-self"?: string | undefined;
|
|
945
943
|
"align-tracks"?: string | undefined;
|
|
944
|
+
"animation-composition"?: string | undefined;
|
|
946
945
|
"animation-delay"?: string | undefined;
|
|
947
946
|
"animation-direction"?: string | undefined;
|
|
948
947
|
"animation-duration"?: string | undefined;
|
|
@@ -952,7 +951,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
952
951
|
"animation-play-state"?: string | undefined;
|
|
953
952
|
"animation-timeline"?: string | undefined;
|
|
954
953
|
"animation-timing-function"?: string | undefined;
|
|
955
|
-
"aspect-ratio"?:
|
|
954
|
+
"aspect-ratio"?: import("csstype").AspectRatioProperty | undefined;
|
|
956
955
|
"backdrop-filter"?: string | undefined;
|
|
957
956
|
"backface-visibility"?: import("csstype").BackfaceVisibilityProperty | undefined;
|
|
958
957
|
"background-attachment"?: string | undefined;
|
|
@@ -1122,6 +1121,8 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1122
1121
|
"mask-repeat"?: string | undefined;
|
|
1123
1122
|
"mask-size"?: import("csstype").MaskSizeProperty<string | number> | undefined;
|
|
1124
1123
|
"mask-type"?: import("csstype").MaskTypeProperty | undefined;
|
|
1124
|
+
"math-depth"?: import("csstype").MathDepthProperty | undefined;
|
|
1125
|
+
"math-shift"?: import("csstype").MathShiftProperty | undefined;
|
|
1125
1126
|
"math-style"?: import("csstype").MathStyleProperty | undefined;
|
|
1126
1127
|
"max-block-size"?: import("csstype").MaxBlockSizeProperty<string | number> | undefined;
|
|
1127
1128
|
"max-height"?: import("csstype").MaxHeightProperty<string | number> | undefined;
|
|
@@ -1229,7 +1230,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1229
1230
|
"text-decoration-skip-ink"?: import("csstype").TextDecorationSkipInkProperty | undefined;
|
|
1230
1231
|
"text-decoration-style"?: import("csstype").TextDecorationStyleProperty | undefined;
|
|
1231
1232
|
"text-decoration-thickness"?: import("csstype").TextDecorationThicknessProperty<string | number> | undefined;
|
|
1232
|
-
"text-decoration-width"?: import("csstype").TextDecorationThicknessProperty<string | number> | undefined;
|
|
1233
1233
|
"text-emphasis-color"?: string | undefined;
|
|
1234
1234
|
"text-emphasis-position"?: string | undefined;
|
|
1235
1235
|
"text-emphasis-style"?: string | undefined;
|
|
@@ -1313,7 +1313,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1313
1313
|
"-moz-box-sizing"?: import("csstype").BoxSizingProperty | undefined;
|
|
1314
1314
|
"-moz-column-count"?: import("csstype").ColumnCountProperty | undefined;
|
|
1315
1315
|
"-moz-column-fill"?: import("csstype").ColumnFillProperty | undefined;
|
|
1316
|
-
"-moz-column-gap"?: import("csstype").ColumnGapProperty<string | number> | undefined;
|
|
1317
1316
|
"-moz-column-rule-color"?: string | undefined;
|
|
1318
1317
|
"-moz-column-rule-style"?: string | undefined;
|
|
1319
1318
|
"-moz-column-rule-width"?: import("csstype").ColumnRuleWidthProperty<string | number> | undefined;
|
|
@@ -1347,7 +1346,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1347
1346
|
"-moz-window-dragging"?: import("csstype").MozWindowDraggingProperty | undefined;
|
|
1348
1347
|
"-moz-window-shadow"?: import("csstype").MozWindowShadowProperty | undefined;
|
|
1349
1348
|
"-ms-accelerator"?: import("csstype").MsAcceleratorProperty | undefined;
|
|
1350
|
-
"-ms-align-self"?: string | undefined;
|
|
1351
1349
|
"-ms-block-progression"?: import("csstype").MsBlockProgressionProperty | undefined;
|
|
1352
1350
|
"-ms-content-zoom-chaining"?: import("csstype").MsContentZoomChainingProperty | undefined;
|
|
1353
1351
|
"-ms-content-zoom-limit-max"?: string | undefined;
|
|
@@ -1368,7 +1366,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1368
1366
|
"-ms-hyphenate-limit-zone"?: import("csstype").MsHyphenateLimitZoneProperty<string | number> | undefined;
|
|
1369
1367
|
"-ms-hyphens"?: import("csstype").HyphensProperty | undefined;
|
|
1370
1368
|
"-ms-ime-align"?: import("csstype").MsImeAlignProperty | undefined;
|
|
1371
|
-
"-ms-justify-self"?: string | undefined;
|
|
1372
1369
|
"-ms-line-break"?: import("csstype").LineBreakProperty | undefined;
|
|
1373
1370
|
"-ms-order"?: import("csstype").GlobalsNumber | undefined;
|
|
1374
1371
|
"-ms-overflow-style"?: import("csstype").MsOverflowStyleProperty | undefined;
|
|
@@ -1391,6 +1388,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1391
1388
|
"-ms-scrollbar-face-color"?: string | undefined;
|
|
1392
1389
|
"-ms-scrollbar-highlight-color"?: string | undefined;
|
|
1393
1390
|
"-ms-scrollbar-shadow-color"?: string | undefined;
|
|
1391
|
+
"-ms-scrollbar-track-color"?: string | undefined;
|
|
1394
1392
|
"-ms-text-autospace"?: import("csstype").MsTextAutospaceProperty | undefined;
|
|
1395
1393
|
"-ms-text-combine-horizontal"?: string | undefined;
|
|
1396
1394
|
"-ms-text-overflow"?: string | undefined;
|
|
@@ -1440,7 +1438,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1440
1438
|
"-webkit-clip-path"?: string | undefined;
|
|
1441
1439
|
"-webkit-column-count"?: import("csstype").ColumnCountProperty | undefined;
|
|
1442
1440
|
"-webkit-column-fill"?: import("csstype").ColumnFillProperty | undefined;
|
|
1443
|
-
"-webkit-column-gap"?: import("csstype").ColumnGapProperty<string | number> | undefined;
|
|
1444
1441
|
"-webkit-column-rule-color"?: string | undefined;
|
|
1445
1442
|
"-webkit-column-rule-style"?: string | undefined;
|
|
1446
1443
|
"-webkit-column-rule-width"?: import("csstype").ColumnRuleWidthProperty<string | number> | undefined;
|
|
@@ -1567,7 +1564,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1567
1564
|
"scroll-snap-points-y"?: string | undefined;
|
|
1568
1565
|
"scroll-snap-type-x"?: import("csstype").ScrollSnapTypeXProperty | undefined;
|
|
1569
1566
|
"scroll-snap-type-y"?: import("csstype").ScrollSnapTypeYProperty | undefined;
|
|
1570
|
-
"scrollbar-track-color"?: string | undefined;
|
|
1571
1567
|
"-khtml-box-align"?: import("csstype").BoxAlignProperty | undefined;
|
|
1572
1568
|
"-khtml-box-direction"?: import("csstype").BoxDirectionProperty | undefined;
|
|
1573
1569
|
"-khtml-box-flex"?: import("csstype").GlobalsNumber | undefined;
|
|
@@ -1614,7 +1610,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1614
1610
|
"-moz-text-decoration-style"?: import("csstype").TextDecorationStyleProperty | undefined;
|
|
1615
1611
|
"-moz-user-input"?: import("csstype").MozUserInputProperty | undefined;
|
|
1616
1612
|
"-ms-ime-mode"?: import("csstype").ImeModeProperty | undefined;
|
|
1617
|
-
"-ms-scrollbar-track-color"?: string | undefined;
|
|
1618
1613
|
"-o-animation"?: import("csstype").AnimationProperty | undefined;
|
|
1619
1614
|
"-o-animation-delay"?: string | undefined;
|
|
1620
1615
|
"-o-animation-direction"?: string | undefined;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { COMPONENT_NAMESPACE } from '../../shared/global/variable.js';
|
|
2
|
+
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
3
|
+
import script from './src/ShortcutSetter.js';
|
|
4
|
+
|
|
5
|
+
const ShortcutSetter = script;
|
|
6
|
+
ShortcutSetter.install = function(app) {
|
|
7
|
+
safeComponentRegister(app, ShortcutSetter, COMPONENT_NAMESPACE + "ShortcutSetter");
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { ShortcutSetter as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, openBlock, createBlock, unref } from 'vue';
|
|
2
2
|
import { isEqual, cloneDeep } from 'lodash-es';
|
|
3
|
-
import '../../shortcut-provider/
|
|
4
|
-
import { normalizeSignatureInfo, isInvalidSignature, getDisplaySignature } from '../../shortcut-provider/src/utils/
|
|
3
|
+
import '../../shortcut-provider/index.js';
|
|
4
|
+
import { normalizeSignatureInfo, isInvalidSignature, getDisplaySignature } from '../../shortcut-provider/src/utils/index.js';
|
|
5
5
|
import ShortcutSetterItem from './ShortcutSetterItem.js';
|
|
6
|
-
import FormRender from '../../form-render/
|
|
6
|
+
import FormRender from '../../form-render/index.js';
|
|
7
7
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
8
|
-
import { GlobalShortcutProvider, useShortcuts } from '../../shortcut-provider/src/hooks/
|
|
8
|
+
import { GlobalShortcutProvider, useShortcuts } from '../../shortcut-provider/src/hooks/useShortcuts.js';
|
|
9
9
|
|
|
10
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
11
|
__name: "ShortcutSetter",
|