cnhis-design-vue 3.1.18-beta.4 → 3.1.18-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/es/components/annotation-edit/index.js +1 -10
- package/es/components/annotation-edit/index2.js +10 -0
- package/es/components/big-table/index.d.ts +47 -98
- package/es/components/big-table/index.js +2 -17
- package/es/components/big-table/index2.js +19 -0
- package/es/components/big-table/src/BigTable.vue.d.ts +63 -99
- 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 +1 -53
- package/es/components/big-table/src/bigTableEmits2.js +53 -0
- package/es/components/big-table/src/bigTableProps.js +1 -119
- package/es/components/big-table/src/bigTableProps2.js +119 -0
- package/es/components/big-table/src/bigTableState.js +1 -62
- package/es/components/big-table/src/bigTableState2.js +62 -0
- 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 +6 -16
- 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 +1 -19
- package/es/components/big-table/src/components/edit-form/useCommon2.js +19 -0
- package/es/components/big-table/src/components/input-button.vue.d.ts +28 -37
- package/es/components/big-table/src/components/separate.js +1 -1
- package/es/components/big-table/src/constants/index.js +1 -3
- package/es/components/big-table/src/constants/index2.js +3 -0
- 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 +1 -49
- package/es/components/big-table/src/hooks/useAnchor2.js +49 -0
- package/es/components/big-table/src/hooks/useAnnotation.js +1 -1
- package/es/components/big-table/src/hooks/useBatchEditing.js +1 -289
- package/es/components/big-table/src/hooks/useBatchEditing2.js +289 -0
- package/es/components/big-table/src/hooks/useColumnConfigAdaptor.js +1 -154
- package/es/components/big-table/src/hooks/useColumnConfigAdaptor2.js +154 -0
- package/es/components/big-table/src/hooks/useEdit.d.ts +6 -16
- package/es/components/big-table/src/hooks/useEdit.js +1 -122
- package/es/components/big-table/src/hooks/useEdit2.js +122 -0
- package/es/components/big-table/src/hooks/useEvent.js +1 -72
- package/es/components/big-table/src/hooks/useEvent2.js +72 -0
- package/es/components/big-table/src/hooks/useFormat.js +1 -492
- package/es/components/big-table/src/hooks/useFormat2.js +492 -0
- package/es/components/big-table/src/hooks/useNestTable.js +1 -86
- package/es/components/big-table/src/hooks/useNestTable2.js +86 -0
- package/es/components/big-table/src/hooks/useSeparateRow.js +1 -164
- package/es/components/big-table/src/hooks/useSeparateRow2.js +164 -0
- package/es/components/big-table/src/hooks/useTableParse.js +1 -136
- package/es/components/big-table/src/hooks/useTableParse2.js +136 -0
- package/es/components/big-table/src/utils.js +1 -630
- package/es/components/big-table/src/utils2.js +630 -0
- package/es/components/bpmn-workflow/index.js +1 -10
- package/es/components/bpmn-workflow/index2.js +10 -0
- package/es/{packages/components → components}/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/{packages/components → components}/bpmn-workflow/types/BpmnViewer.d.ts +0 -0
- package/es/{packages/components → components}/bpmn-workflow/types/ModelingModule.d.ts +0 -0
- package/es/{packages/components → components}/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -0
- package/es/components/button-print/index.d.ts +113 -190
- package/es/components/button-print/index.js +2 -11
- package/es/components/button-print/index2.js +11 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +113 -190
- 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 +2 -1
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +59 -117
- package/es/components/button-print/src/utils/dialog.d.ts +6 -0
- package/es/components/button-print/src/utils/dialog.js +65 -0
- package/es/components/button-print/src/utils/index.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +6 -0
- package/es/components/button-print/src/utils/print.js +1 -325
- package/es/components/button-print/src/utils/print2.js +330 -0
- package/es/components/chunk-upload/index.d.ts +22 -28
- package/es/components/chunk-upload/index.js +1 -14
- package/es/components/chunk-upload/index2.js +14 -0
- package/es/components/chunk-upload/src/chunk-upload-new.js +2 -2
- package/es/components/chunk-upload/src/chunk-upload-new.vue.d.ts +32 -38
- package/es/components/chunk-upload/src/hooks/upload-computed.js +1 -70
- package/es/components/chunk-upload/src/hooks/upload-computed2.js +70 -0
- package/es/components/chunk-upload/src/hooks/upload-data.js +1 -96
- package/es/components/chunk-upload/src/hooks/upload-data2.js +96 -0
- package/es/components/chunk-upload/src/hooks/vod-computed.js +1 -79
- package/es/components/chunk-upload/src/hooks/vod-computed2.js +79 -0
- package/es/components/chunk-upload/src/hooks/vod-data.js +1 -28
- package/es/components/chunk-upload/src/hooks/vod-data2.js +28 -0
- package/es/components/chunk-upload/src/vod-chunk-upload/index.js +0 -1
- package/es/components/chunk-upload/src/vod-chunk-upload/index2.js +2 -0
- package/es/components/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.js +2 -2
- package/es/components/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +22 -28
- package/es/components/drag-layout/index.d.ts +298 -478
- package/es/components/drag-layout/index.js +1 -11
- package/es/components/drag-layout/index2.js +11 -0
- package/es/components/drag-layout/src/DragFormLeftItem.vue.d.ts +92 -147
- package/es/components/drag-layout/src/DragFormRightItem.vue.d.ts +79 -110
- package/es/components/drag-layout/src/DragLayout.vue.d.ts +298 -478
- package/es/components/editor/index.js +1 -10
- package/es/components/editor/index2.js +10 -0
- package/es/components/fabric-chart/index.js +1 -10
- package/es/components/fabric-chart/index2.js +10 -0
- package/es/components/fabric-chart/src/FabricChart.js +9 -9
- 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/useStyle.js +1 -36
- package/es/components/fabric-chart/src/components/useStyle2.js +36 -0
- package/es/components/fabric-chart/src/hooks/constant.js +1 -36
- package/es/components/fabric-chart/src/hooks/constant2.js +36 -0
- package/es/components/fabric-chart/src/hooks/index.js +9 -9
- package/es/components/fabric-chart/src/hooks/useBottom.js +1 -85
- package/es/components/fabric-chart/src/hooks/useBottom2.js +85 -0
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -534
- package/es/components/fabric-chart/src/hooks/useCenter2.js +534 -0
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -60
- package/es/components/fabric-chart/src/hooks/useCumputedPoint2.js +60 -0
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -153
- package/es/components/fabric-chart/src/hooks/useDraw2.js +153 -0
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -85
- package/es/components/fabric-chart/src/hooks/useEvent2.js +85 -0
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -50
- package/es/components/fabric-chart/src/hooks/useGrid2.js +50 -0
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -282
- package/es/components/fabric-chart/src/hooks/useLeft2.js +282 -0
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -85
- package/es/components/fabric-chart/src/hooks/useOther2.js +85 -0
- package/es/components/fabric-chart/src/hooks/useRight.js +1 -27
- package/es/components/fabric-chart/src/hooks/useRight2.js +27 -0
- package/es/components/fabric-chart/src/hooks/useShadow.js +1 -127
- package/es/components/fabric-chart/src/hooks/useShadow2.js +127 -0
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -138
- package/es/components/fabric-chart/src/hooks/useTop2.js +138 -0
- package/es/components/fabric-chart/src/interface.js +1 -4
- package/es/components/fabric-chart/src/interface2.js +4 -0
- package/es/{packages/components → components}/fabric-chart/src/utils/index.d.ts +0 -0
- package/es/components/field-set/index.d.ts +92 -142
- package/es/components/field-set/index.js +1 -10
- package/es/components/field-set/index2.js +10 -0
- package/es/components/field-set/src/FieldSet.vue.d.ts +92 -142
- package/es/components/form-config/index.d.ts +122 -264
- package/es/components/form-config/index.js +1 -10
- package/es/components/form-config/index2.js +10 -0
- package/es/components/form-config/src/FormConfig.js +3 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +122 -264
- package/es/components/form-config/src/components/FormConfigCreator.js +4 -4
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +57 -107
- package/es/components/form-config/src/components/FormConfigDragDisplay.js +2 -2
- package/es/components/form-config/src/components/FormConfigEdit.js +5 -5
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +43 -129
- package/es/components/form-config/src/components/renderer/CloseButton.js +1 -1
- package/es/components/form-config/src/components/renderer/CloseButton.vue.d.ts +22 -28
- package/es/components/form-config/src/components/renderer/ComplexNode.js +2 -2
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +22 -28
- package/es/components/form-config/src/components/renderer/DefaultNode.js +4 -4
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +48 -61
- package/es/components/form-config/src/constants/index.js +1 -60
- package/es/components/form-config/src/constants/index2.js +60 -0
- package/es/components/form-config/src/hooks/index.js +2 -2
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -52
- package/es/components/form-config/src/hooks/useConfigurationField2.js +52 -0
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -27
- package/es/components/form-config/src/hooks/useSortalbeConfig2.js +27 -0
- package/es/components/form-config/src/utils/index.js +1 -26
- package/es/components/form-config/src/utils/index2.js +26 -0
- package/es/components/form-render/index.d.ts +31 -69
- package/es/components/form-render/index.js +14 -23
- package/es/components/form-render/index2.js +46 -0
- package/es/components/form-render/src/FormRender.js +12 -22
- package/es/components/form-render/src/FormRender.vue.d.ts +31 -69
- package/es/components/form-render/src/components/renderer/cascader.js +7 -7
- package/es/components/form-render/src/components/renderer/checkbox.js +2 -2
- package/es/components/form-render/src/components/renderer/combination.js +4 -4
- package/es/components/form-render/src/components/renderer/complex.js +1 -1
- package/es/components/form-render/src/components/renderer/date.js +4 -4
- package/es/components/form-render/src/components/renderer/formItem.js +3 -3
- package/es/components/form-render/src/components/renderer/index.js +1 -1
- package/es/components/form-render/src/components/renderer/index2.js +18 -0
- package/es/components/form-render/src/components/renderer/input.d.ts +10 -2
- package/es/components/form-render/src/components/renderer/input.js +20 -4
- package/es/components/form-render/src/components/renderer/inputGroup.js +1 -8
- package/es/components/form-render/src/components/renderer/inputGroup2.js +8 -0
- package/es/components/form-render/src/components/renderer/inputNumber.js +4 -2
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +1 -33
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate2.js +33 -0
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +2 -2
- package/es/components/form-render/src/components/renderer/linebar.js +3 -3
- package/es/components/form-render/src/components/renderer/radio.js +2 -2
- package/es/components/form-render/src/components/renderer/select.js +7 -7
- package/es/components/form-render/src/components/renderer/slider.js +3 -3
- package/es/components/form-render/src/components/renderer/switch.js +2 -2
- package/es/components/form-render/src/components/renderer/textarea.d.ts +8 -845
- package/es/components/form-render/src/components/renderer/textarea.js +30 -7
- package/es/components/form-render/src/constants/index.js +1 -41
- package/es/components/form-render/src/constants/index2.js +41 -0
- package/es/components/form-render/src/hooks/index.js +13 -13
- package/es/components/form-render/src/hooks/useAnchor.js +1 -90
- package/es/components/form-render/src/hooks/useAnchor2.js +90 -0
- package/es/components/form-render/src/hooks/useAsyncQueue.js +1 -144
- package/es/components/form-render/src/hooks/useAsyncQueue2.js +144 -0
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -98
- package/es/components/form-render/src/hooks/useBusinessBinding2.js +98 -0
- package/es/components/form-render/src/hooks/useChangeContext.js +1 -20
- package/es/components/form-render/src/hooks/useChangeContext2.js +20 -0
- package/es/components/form-render/src/hooks/useCommonInjection.d.ts +1 -0
- package/es/components/form-render/src/hooks/useCommonInjection.js +1 -23
- package/es/components/form-render/src/hooks/useCommonInjection2.js +32 -0
- package/es/components/form-render/src/hooks/useCommonLog.js +1 -10
- package/es/components/form-render/src/hooks/useCommonLog2.js +10 -0
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -243
- package/es/components/form-render/src/hooks/useFieldListAdaptor2.js +243 -0
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -67
- package/es/components/form-render/src/hooks/useFieldNormalize2.js +67 -0
- package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -38
- package/es/components/form-render/src/hooks/useFieldVisitor2.js +38 -0
- package/es/components/form-render/src/hooks/useFormContext.js +1 -66
- package/es/components/form-render/src/hooks/useFormContext2.js +66 -0
- package/es/components/form-render/src/hooks/useFormField.js +1 -13
- package/es/components/form-render/src/hooks/useFormField2.js +13 -0
- package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -34
- package/es/components/form-render/src/hooks/useFormItemDeps2.js +34 -0
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +1 -10
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle2.js +10 -0
- package/es/components/form-render/src/hooks/useFormRequest.js +1 -12
- package/es/components/form-render/src/hooks/useFormRequest2.js +12 -0
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -67
- package/es/components/form-render/src/hooks/useFormValidator2.js +67 -0
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -25
- package/es/components/form-render/src/hooks/usePresetScope2.js +25 -0
- package/es/components/form-render/src/utils/business.js +1 -78
- package/es/components/form-render/src/utils/business2.js +78 -0
- package/es/components/form-render/src/utils/dom.js +1 -14
- package/es/components/form-render/src/utils/dom2.js +14 -0
- package/es/components/form-render/src/utils/index.js +3 -4
- package/es/components/form-render/src/utils/schema.d.ts +3 -0
- package/es/components/form-render/src/utils/schema.js +1 -86
- package/es/components/form-render/src/utils/schema2.js +93 -0
- package/es/components/form-table/index.d.ts +408 -654
- package/es/components/form-table/index.js +1 -10
- package/es/components/form-table/index2.js +10 -0
- package/es/components/form-table/src/FormTable.js +2 -2
- package/es/components/form-table/src/FormTable.vue.d.ts +408 -654
- package/es/components/form-table/src/components/index.d.ts +408 -654
- package/es/components/form-table/src/components/index.js +1 -40
- package/es/components/form-table/src/components/index2.js +40 -0
- package/es/components/form-table/src/components/table-age.js +1 -1
- package/es/components/form-table/src/components/table-age.vue.d.ts +61 -101
- package/es/components/form-table/src/components/table-date-picker.js +2 -2
- package/es/components/form-table/src/components/table-date-picker.vue.d.ts +26 -59
- package/es/components/form-table/src/components/table-digital.js +1 -1
- package/es/components/form-table/src/components/table-digital.vue.d.ts +4 -26
- package/es/components/form-table/src/components/table-input-password.js +1 -1
- package/es/components/form-table/src/components/table-input-password.vue.d.ts +8 -17
- package/es/components/form-table/src/components/table-input.js +1 -1
- package/es/components/form-table/src/components/table-input.vue.d.ts +8 -17
- package/es/components/form-table/src/components/table-month-picker.js +2 -2
- package/es/components/form-table/src/components/table-month-picker.vue.d.ts +26 -59
- package/es/components/form-table/src/components/table-search-more.vue.d.ts +22 -28
- package/es/components/form-table/src/components/table-search-more.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/components/form-table/src/components/table-search.vue.d.ts +79 -103
- package/es/components/form-table/src/components/table-search.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/components/form-table/src/components/table-select-multiple.js +1 -1
- package/es/components/form-table/src/components/table-select-multiple.vue.d.ts +57 -75
- package/es/components/form-table/src/components/table-select.js +1 -1
- package/es/components/form-table/src/components/table-select.vue.d.ts +57 -75
- package/es/components/form-table/src/components/table-textarea.js +1 -1
- package/es/components/form-table/src/components/table-textarea.vue.d.ts +8 -17
- package/es/components/form-table/src/components/table-time-picker.js +2 -2
- package/es/components/form-table/src/components/table-time-picker.vue.d.ts +19 -23
- package/es/components/form-table/src/components/table-tree-select.js +1 -1
- package/es/components/form-table/src/components/table-tree-select.vue.d.ts +31 -46
- package/es/components/form-table/src/components/text-over-tooltip.vue.d.ts +2 -8
- package/es/components/form-table/src/configs/index.js +1 -67
- package/es/components/form-table/src/configs/index2.js +67 -0
- package/es/components/form-table/src/hooks/index.js +5 -5
- package/es/components/form-table/src/hooks/useBoundDate.js +1 -414
- package/es/components/form-table/src/hooks/useBoundDate2.js +414 -0
- package/es/components/form-table/src/hooks/useDateType.js +1 -160
- package/es/components/form-table/src/hooks/useDateType2.js +160 -0
- package/es/components/form-table/src/hooks/useFormCommon.js +1 -101
- package/es/components/form-table/src/hooks/useFormCommon2.js +101 -0
- package/es/components/form-table/src/hooks/useFormEvent.js +1 -68
- package/es/components/form-table/src/hooks/useFormEvent2.js +68 -0
- package/es/components/form-table/src/hooks/useItemDefault.js +1 -218
- package/es/components/form-table/src/hooks/useItemDefault2.js +218 -0
- package/es/components/form-table/src/hooks/useNuiThemeOverrides.js +1 -18
- package/es/components/form-table/src/hooks/useNuiThemeOverrides2.js +18 -0
- package/es/components/form-table/src/hooks/useSearch.js +1 -1154
- package/es/components/form-table/src/hooks/useSearch2.js +1154 -0
- package/es/components/form-table/src/hooks/useValidate.js +1 -480
- package/es/components/form-table/src/hooks/useValidate2.js +480 -0
- package/es/components/grid/index.js +1 -13
- package/es/components/grid/index2.js +13 -0
- package/es/components/grid/src/Grid.js +1 -1
- package/es/components/grid/src/hooks.js +1 -165
- package/es/components/grid/src/hooks2.js +165 -0
- package/es/components/index.js +39 -96
- package/es/components/index2.js +79 -0
- package/es/components/info-header/index.d.ts +58 -233
- package/es/components/info-header/index.js +1 -10
- package/es/components/info-header/index2.js +10 -0
- package/es/components/info-header/src/HiddenContent.vue.d.ts +5 -12
- package/es/components/info-header/src/InfoEllipsis.vue.d.ts +5 -12
- package/es/components/info-header/src/InfoHeader.vue.d.ts +58 -233
- package/es/components/map/index.d.ts +28 -37
- package/es/components/map/index.js +1 -10
- package/es/components/map/index2.js +10 -0
- package/es/components/map/src/Map.vue.d.ts +28 -37
- package/es/components/scale-view/index.d.ts +60 -74
- package/es/components/scale-view/index.js +1 -35
- package/es/components/scale-view/index2.js +35 -0
- package/es/components/scale-view/src/ScaleView.js +8 -8
- package/es/components/scale-view/src/ScaleView.vue.d.ts +60 -74
- package/es/components/scale-view/src/components/EvaluateCountdown.js +1 -1
- package/es/components/scale-view/src/components/EvaluatePage.js +1 -1
- package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +22 -28
- package/es/components/scale-view/src/components/composables/choose-common.d.ts +1 -1
- package/es/components/scale-view/src/components/composables/choose-common.js +1 -83
- package/es/components/scale-view/src/components/composables/choose-common2.js +83 -0
- package/es/components/scale-view/src/components/formitem/address.js +1 -3993
- package/es/components/scale-view/src/components/formitem/address2.js +3993 -0
- 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 +2 -8
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -309
- package/es/components/scale-view/src/hooks/scaleview-computed2.js +309 -0
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -437
- package/es/components/scale-view/src/hooks/scaleview-init2.js +437 -0
- package/es/components/scale-view/src/hooks/scaleview-props.js +1 -81
- package/es/components/scale-view/src/hooks/scaleview-props2.js +81 -0
- package/es/components/scale-view/src/hooks/scaleview-state.js +1 -38
- package/es/components/scale-view/src/hooks/scaleview-state2.js +38 -0
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -154
- package/es/components/scale-view/src/hooks/scaleview-submit2.js +154 -0
- package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -187
- package/es/components/scale-view/src/hooks/scaleview-validate2.js +187 -0
- package/es/components/scale-view/src/hooks/use-component.d.ts +177 -623
- package/es/components/scale-view/src/hooks/use-component.js +1 -82
- package/es/components/scale-view/src/hooks/use-component2.js +82 -0
- package/es/components/scale-view/src/hooks/use-evaluate.js +1 -150
- package/es/components/scale-view/src/hooks/use-evaluate2.js +150 -0
- package/es/components/scale-view/src/hooks/use-event.js +1 -129
- package/es/components/scale-view/src/hooks/use-event2.js +129 -0
- package/es/components/scale-view/src/hooks/use-noData.js +1 -41
- package/es/components/scale-view/src/hooks/use-noData2.js +41 -0
- package/es/components/scale-view/src/utils/judge-types.js +1 -36
- package/es/components/scale-view/src/utils/judge-types2.js +36 -0
- package/es/components/select-label/index.d.ts +253 -905
- package/es/components/select-label/index.js +1 -15
- package/es/components/select-label/index2.js +15 -0
- package/es/components/select-label/src/LabelFormContent.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +98 -313
- package/es/components/select-label/src/SelectLabel.vue.d.ts +162 -607
- package/es/components/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/components/select-label/src/components/label-classify.vue.d.ts +70 -246
- package/es/components/select-person/index.d.ts +111 -151
- package/es/components/select-person/index.js +1 -10
- package/es/components/select-person/index2.js +10 -0
- package/es/components/select-person/src/SearchTree.vue.d.ts +40 -55
- package/es/components/select-person/src/SelectPerson.vue.d.ts +117 -159
- package/es/components/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/components/select-person/src/utils/index.js +1 -84
- package/es/components/select-person/src/utils/index2.js +84 -0
- package/es/components/shortcut-provider/index.js +3 -12
- package/es/components/shortcut-provider/index2.js +13 -0
- package/es/components/shortcut-provider/src/ShortcutProvider.js +3 -3
- package/es/components/shortcut-provider/src/constants/index.js +1 -8
- package/es/components/shortcut-provider/src/constants/index2.js +8 -0
- package/es/components/shortcut-provider/src/hooks/index.js +2 -2
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +1 -12
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature2.js +12 -0
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -181
- package/es/components/shortcut-provider/src/hooks/useShortcuts2.js +181 -0
- package/es/components/shortcut-provider/src/utils/index.js +1 -59
- package/es/components/shortcut-provider/src/utils/index2.js +59 -0
- package/es/components/shortcut-setter/index.d.ts +31 -69
- package/es/components/shortcut-setter/index.js +1 -10
- package/es/components/shortcut-setter/index2.js +10 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.js +4 -4
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +31 -69
- package/es/components/shortcut-setter/src/ShortcutSetterItem.js +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +6 -9
- package/es/components/steps-wheel/index.d.ts +2 -8
- package/es/components/steps-wheel/index.js +1 -10
- package/es/components/steps-wheel/index2.js +10 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +2 -8
- package/es/components/time-line/index.d.ts +30 -55
- package/es/components/time-line/index.js +1 -10
- package/es/components/time-line/index2.js +10 -0
- package/es/components/time-line/src/TimeLine.vue.d.ts +30 -55
- package/es/shared/components/SelectPage/SelectPage.vue.d.ts +22 -28
- package/es/shared/components/SelectPage/index.js +0 -1
- package/es/shared/components/SelectPage/index2.js +2 -0
- package/es/shared/components/SlotRender/index.js +0 -1
- package/es/shared/components/SlotRender/index2.js +2 -0
- package/es/shared/components/SvgIcon/index.js +0 -1
- package/es/shared/components/SvgIcon/index2.js +2 -0
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +2 -8
- package/es/shared/components/TextOverTooltip/index.js +0 -1
- package/es/shared/components/TextOverTooltip/index2.js +2 -0
- package/es/shared/global/variable.js +1 -4
- package/es/shared/global/variable2.js +4 -0
- package/es/shared/utils/anime.js +1 -129
- package/es/shared/utils/anime2.js +129 -0
- package/es/shared/utils/clickoutside.js +1 -48
- package/es/shared/utils/clickoutside2.js +48 -0
- package/es/shared/utils/colorLog.js +1 -44
- package/es/shared/utils/colorLog2.js +44 -0
- package/es/shared/utils/index.js +1 -25
- package/es/shared/utils/index2.js +25 -0
- package/es/shared/utils/loadViewer.js +1 -11
- package/es/shared/utils/loadViewer2.js +11 -0
- package/es/shared/utils/loadVxe.js +1 -12
- package/es/shared/utils/loadVxe2.js +12 -0
- package/es/shared/utils/state.js +1 -44
- package/es/shared/utils/state2.js +44 -0
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +2 -17
- package/es/shared/utils/tapable/AsyncParallelHook.js +2 -17
- package/es/shared/utils/tapable/AsyncSeriesBailHook.js +2 -17
- package/es/shared/utils/tapable/AsyncSeriesHook.js +2 -17
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +2 -17
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +2 -19
- package/es/shared/utils/tapable/SyncBailHook.js +2 -23
- package/es/shared/utils/tapable/SyncHook.js +2 -23
- package/es/shared/utils/tapable/SyncLoopHook.js +2 -23
- package/es/{packages/shared → shared}/utils/tapable/index.d.ts +0 -0
- package/es/shared/utils/utilExpand.d.ts +1 -1
- package/es/shared/utils/utilExpand.js +47 -46
- package/es/shared/utils/vexutils.js +1 -22
- package/package.json +2 -2
- package/es/components/big-table/src/components/edit-form/edit-select-table.js +0 -149
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.js +0 -373
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette.js +0 -131
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/index.js +0 -18
- package/es/components/bpmn-workflow/src/custom/customModeler/index.js +0 -12
- package/es/components/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu.js +0 -47
- package/es/components/bpmn-workflow/src/custom/customRules/no-task.js +0 -1
- package/es/components/bpmn-workflow/src/custom/customRules/no-task2.js +0 -16
- package/es/components/bpmn-workflow/src/custom/customTranslate/customTranslate.js +0 -15
- package/es/components/bpmn-workflow/src/custom/customTranslate/zh.js +0 -227
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.js +0 -80
- package/es/shared/components/player-vod/index.js +0 -14
- package/es/shared/components/player-vod/video-list.js +0 -126
- package/es/shared/core/create.js +0 -8
- package/es/shared/utils/crypto.js +0 -25
- package/es/shared/utils/tapable/HookMap.js +0 -32
- package/es/shared/utils/tapable/MultiHook.js +0 -38
- package/es/shared/utils/tapable/index.js +0 -12
|
@@ -173,11 +173,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
173
173
|
scrollable: BooleanConstructor;
|
|
174
174
|
contentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
175
175
|
headerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
176
|
-
footerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
177
176
|
onClickoutside: import("vue").PropType<(e: MouseEvent) => void>;
|
|
178
177
|
'onUpdate:show': import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(value: boolean) => void>>;
|
|
179
178
|
onUpdateShow: import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(value: boolean) => void>>;
|
|
180
|
-
internalDeactivateImmediately: BooleanConstructor;
|
|
181
179
|
internalSyncTargetWithParent: BooleanConstructor;
|
|
182
180
|
internalInheritedEventHandlers: {
|
|
183
181
|
type: import("vue").PropType<import("naive-ui/es/popover/src/Popover").TriggerEventHandlers[]>;
|
|
@@ -242,11 +240,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
242
240
|
opacity5: string;
|
|
243
241
|
dividerColor: string;
|
|
244
242
|
borderColor: string;
|
|
245
|
-
|
|
246
|
-
closeIconColorHover: string;
|
|
247
|
-
closeIconColorPressed: string;
|
|
243
|
+
closeColor: string;
|
|
248
244
|
closeColorHover: string;
|
|
249
245
|
closeColorPressed: string;
|
|
246
|
+
closeColorDisabled: string;
|
|
250
247
|
clearColor: string;
|
|
251
248
|
clearColorHover: string;
|
|
252
249
|
clearColorPressed: string;
|
|
@@ -475,11 +472,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
475
472
|
scrollable: BooleanConstructor;
|
|
476
473
|
contentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
477
474
|
headerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
478
|
-
footerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
479
475
|
onClickoutside: import("vue").PropType<(e: MouseEvent) => void>;
|
|
480
476
|
'onUpdate:show': import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(value: boolean) => void>>;
|
|
481
477
|
onUpdateShow: import("vue").PropType<import("naive-ui/es/_utils").MaybeArray<(value: boolean) => void>>;
|
|
482
|
-
internalDeactivateImmediately: BooleanConstructor;
|
|
483
478
|
internalSyncTargetWithParent: BooleanConstructor;
|
|
484
479
|
internalInheritedEventHandlers: {
|
|
485
480
|
type: import("vue").PropType<import("naive-ui/es/popover/src/Popover").TriggerEventHandlers[]>;
|
|
@@ -515,7 +510,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
515
510
|
arrowPointToCenter: boolean;
|
|
516
511
|
displayDirective: "show" | "if";
|
|
517
512
|
keepAliveOnHover: boolean;
|
|
518
|
-
internalDeactivateImmediately: boolean;
|
|
519
513
|
animated: boolean;
|
|
520
514
|
internalTrapFocus: boolean;
|
|
521
515
|
defaultShow: boolean;
|
package/es/shared/utils/anime.js
CHANGED
|
@@ -1,129 +1 @@
|
|
|
1
|
-
|
|
2
|
-
function bounceOut(x) {
|
|
3
|
-
const n1 = 7.5625, d1 = 2.75;
|
|
4
|
-
if (x < 1 / d1) {
|
|
5
|
-
return n1 * x * x;
|
|
6
|
-
} else if (x < 2 / d1) {
|
|
7
|
-
return n1 * (x -= 1.5 / d1) * x + 0.75;
|
|
8
|
-
} else if (x < 2.5 / d1) {
|
|
9
|
-
return n1 * (x -= 2.25 / d1) * x + 0.9375;
|
|
10
|
-
} else {
|
|
11
|
-
return n1 * (x -= 2.625 / d1) * x + 0.984375;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
const animeType = {
|
|
15
|
-
easeInQuad: function(x) {
|
|
16
|
-
return x * x;
|
|
17
|
-
},
|
|
18
|
-
easeOutQuad: function(x) {
|
|
19
|
-
return 1 - (1 - x) * (1 - x);
|
|
20
|
-
},
|
|
21
|
-
easeInOutQuad: function(x) {
|
|
22
|
-
return x < 0.5 ? 2 * x * x : 1 - pow(-2 * x + 2, 2) / 2;
|
|
23
|
-
},
|
|
24
|
-
easeInCubic: function(x) {
|
|
25
|
-
return x * x * x;
|
|
26
|
-
},
|
|
27
|
-
easeOutCubic: function(x) {
|
|
28
|
-
return 1 - pow(1 - x, 3);
|
|
29
|
-
},
|
|
30
|
-
easeInOutCubic: function(x) {
|
|
31
|
-
return x < 0.5 ? 4 * x * x * x : 1 - pow(-2 * x + 2, 3) / 2;
|
|
32
|
-
},
|
|
33
|
-
easeInQuart: function(x) {
|
|
34
|
-
return x * x * x * x;
|
|
35
|
-
},
|
|
36
|
-
easeOutQuart: function(x) {
|
|
37
|
-
return 1 - pow(1 - x, 4);
|
|
38
|
-
},
|
|
39
|
-
easeInOutQuart: function(x) {
|
|
40
|
-
return x < 0.5 ? 8 * x * x * x * x : 1 - pow(-2 * x + 2, 4) / 2;
|
|
41
|
-
},
|
|
42
|
-
easeInQuint: function(x) {
|
|
43
|
-
return x * x * x * x * x;
|
|
44
|
-
},
|
|
45
|
-
easeOutQuint: function(x) {
|
|
46
|
-
return 1 - pow(1 - x, 5);
|
|
47
|
-
},
|
|
48
|
-
easeInOutQuint: function(x) {
|
|
49
|
-
return x < 0.5 ? 16 * x * x * x * x * x : 1 - pow(-2 * x + 2, 5) / 2;
|
|
50
|
-
},
|
|
51
|
-
easeInSine: function(x) {
|
|
52
|
-
return 1 - cos(x * PI / 2);
|
|
53
|
-
},
|
|
54
|
-
easeOutSine: function(x) {
|
|
55
|
-
return sin(x * PI / 2);
|
|
56
|
-
},
|
|
57
|
-
easeInOutSine: function(x) {
|
|
58
|
-
return -(cos(PI * x) - 1) / 2;
|
|
59
|
-
},
|
|
60
|
-
easeInExpo: function(x) {
|
|
61
|
-
return x === 0 ? 0 : pow(2, 10 * x - 10);
|
|
62
|
-
},
|
|
63
|
-
easeOutExpo: function(x) {
|
|
64
|
-
return x === 1 ? 1 : 1 - pow(2, -10 * x);
|
|
65
|
-
},
|
|
66
|
-
easeInOutExpo: function(x) {
|
|
67
|
-
return x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? pow(2, 20 * x - 10) / 2 : (2 - pow(2, -20 * x + 10)) / 2;
|
|
68
|
-
},
|
|
69
|
-
easeInCirc: function(x) {
|
|
70
|
-
return 1 - sqrt(1 - pow(x, 2));
|
|
71
|
-
},
|
|
72
|
-
easeOutCirc: function(x) {
|
|
73
|
-
return sqrt(1 - pow(x - 1, 2));
|
|
74
|
-
},
|
|
75
|
-
easeInOutCirc: function(x) {
|
|
76
|
-
return x < 0.5 ? (1 - sqrt(1 - pow(2 * x, 2))) / 2 : (sqrt(1 - pow(-2 * x + 2, 2)) + 1) / 2;
|
|
77
|
-
},
|
|
78
|
-
easeInElastic: function(x) {
|
|
79
|
-
return x === 0 ? 0 : x === 1 ? 1 : -pow(2, 10 * x - 10) * sin((x * 10 - 10.75) * c4);
|
|
80
|
-
},
|
|
81
|
-
easeOutElastic: function(x) {
|
|
82
|
-
return x === 0 ? 0 : x === 1 ? 1 : pow(2, -10 * x) * sin((x * 10 - 0.75) * c4) + 1;
|
|
83
|
-
},
|
|
84
|
-
easeInOutElastic: function(x) {
|
|
85
|
-
return x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? -(pow(2, 20 * x - 10) * sin((20 * x - 11.125) * c5)) / 2 : pow(2, -20 * x + 10) * sin((20 * x - 11.125) * c5) / 2 + 1;
|
|
86
|
-
},
|
|
87
|
-
easeInBack: function(x) {
|
|
88
|
-
return c3 * x * x * x - c1 * x * x;
|
|
89
|
-
},
|
|
90
|
-
easeOutBack: function(x) {
|
|
91
|
-
return 1 + c3 * pow(x - 1, 3) + c1 * pow(x - 1, 2);
|
|
92
|
-
},
|
|
93
|
-
easeInOutBack: function(x) {
|
|
94
|
-
return x < 0.5 ? pow(2 * x, 2) * ((c2 + 1) * 2 * x - c2) / 2 : (pow(2 * x - 2, 2) * ((c2 + 1) * (x * 2 - 2) + c2) + 2) / 2;
|
|
95
|
-
},
|
|
96
|
-
easeInBounce: function(x) {
|
|
97
|
-
return 1 - bounceOut(1 - x);
|
|
98
|
-
},
|
|
99
|
-
easeOutBounce: bounceOut,
|
|
100
|
-
easeInOutBounce: function(x) {
|
|
101
|
-
return x < 0.5 ? (1 - bounceOut(1 - 2 * x)) / 2 : (1 + bounceOut(2 * x - 1)) / 2;
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
const doAnimation = (startValue, endValue, during = 1e3, callback, type = "easeInBack", onAnimationEnd) => {
|
|
105
|
-
const changeValue = endValue - startValue;
|
|
106
|
-
const updateTime = 1e3 / 60;
|
|
107
|
-
const updateCount = during / updateTime;
|
|
108
|
-
const rAF = window.requestAnimationFrame || function(cb) {
|
|
109
|
-
setTimeout(cb, updateTime);
|
|
110
|
-
};
|
|
111
|
-
const startPosition = 0;
|
|
112
|
-
const endPosition = 1;
|
|
113
|
-
const perUpdateDistance = endPosition / updateCount;
|
|
114
|
-
let position = startPosition;
|
|
115
|
-
function step() {
|
|
116
|
-
const stepValue = startValue + changeValue * animeType[type](position);
|
|
117
|
-
callback(stepValue);
|
|
118
|
-
position += perUpdateDistance;
|
|
119
|
-
if (position < endPosition) {
|
|
120
|
-
rAF(step);
|
|
121
|
-
} else {
|
|
122
|
-
rAF(() => callback(endValue));
|
|
123
|
-
onAnimationEnd == null ? void 0 : onAnimationEnd();
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
step();
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
export { doAnimation };
|
|
1
|
+
export { doAnimation } from './anime2.js';
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
const pow = Math.pow, sqrt = Math.sqrt, sin = Math.sin, cos = Math.cos, PI = Math.PI, c1 = 1.70158, c2 = c1 * 1.525, c3 = c1 + 1, c4 = 2 * PI / 3, c5 = 2 * PI / 4.5;
|
|
2
|
+
function bounceOut(x) {
|
|
3
|
+
const n1 = 7.5625, d1 = 2.75;
|
|
4
|
+
if (x < 1 / d1) {
|
|
5
|
+
return n1 * x * x;
|
|
6
|
+
} else if (x < 2 / d1) {
|
|
7
|
+
return n1 * (x -= 1.5 / d1) * x + 0.75;
|
|
8
|
+
} else if (x < 2.5 / d1) {
|
|
9
|
+
return n1 * (x -= 2.25 / d1) * x + 0.9375;
|
|
10
|
+
} else {
|
|
11
|
+
return n1 * (x -= 2.625 / d1) * x + 0.984375;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
const animeType = {
|
|
15
|
+
easeInQuad: function(x) {
|
|
16
|
+
return x * x;
|
|
17
|
+
},
|
|
18
|
+
easeOutQuad: function(x) {
|
|
19
|
+
return 1 - (1 - x) * (1 - x);
|
|
20
|
+
},
|
|
21
|
+
easeInOutQuad: function(x) {
|
|
22
|
+
return x < 0.5 ? 2 * x * x : 1 - pow(-2 * x + 2, 2) / 2;
|
|
23
|
+
},
|
|
24
|
+
easeInCubic: function(x) {
|
|
25
|
+
return x * x * x;
|
|
26
|
+
},
|
|
27
|
+
easeOutCubic: function(x) {
|
|
28
|
+
return 1 - pow(1 - x, 3);
|
|
29
|
+
},
|
|
30
|
+
easeInOutCubic: function(x) {
|
|
31
|
+
return x < 0.5 ? 4 * x * x * x : 1 - pow(-2 * x + 2, 3) / 2;
|
|
32
|
+
},
|
|
33
|
+
easeInQuart: function(x) {
|
|
34
|
+
return x * x * x * x;
|
|
35
|
+
},
|
|
36
|
+
easeOutQuart: function(x) {
|
|
37
|
+
return 1 - pow(1 - x, 4);
|
|
38
|
+
},
|
|
39
|
+
easeInOutQuart: function(x) {
|
|
40
|
+
return x < 0.5 ? 8 * x * x * x * x : 1 - pow(-2 * x + 2, 4) / 2;
|
|
41
|
+
},
|
|
42
|
+
easeInQuint: function(x) {
|
|
43
|
+
return x * x * x * x * x;
|
|
44
|
+
},
|
|
45
|
+
easeOutQuint: function(x) {
|
|
46
|
+
return 1 - pow(1 - x, 5);
|
|
47
|
+
},
|
|
48
|
+
easeInOutQuint: function(x) {
|
|
49
|
+
return x < 0.5 ? 16 * x * x * x * x * x : 1 - pow(-2 * x + 2, 5) / 2;
|
|
50
|
+
},
|
|
51
|
+
easeInSine: function(x) {
|
|
52
|
+
return 1 - cos(x * PI / 2);
|
|
53
|
+
},
|
|
54
|
+
easeOutSine: function(x) {
|
|
55
|
+
return sin(x * PI / 2);
|
|
56
|
+
},
|
|
57
|
+
easeInOutSine: function(x) {
|
|
58
|
+
return -(cos(PI * x) - 1) / 2;
|
|
59
|
+
},
|
|
60
|
+
easeInExpo: function(x) {
|
|
61
|
+
return x === 0 ? 0 : pow(2, 10 * x - 10);
|
|
62
|
+
},
|
|
63
|
+
easeOutExpo: function(x) {
|
|
64
|
+
return x === 1 ? 1 : 1 - pow(2, -10 * x);
|
|
65
|
+
},
|
|
66
|
+
easeInOutExpo: function(x) {
|
|
67
|
+
return x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? pow(2, 20 * x - 10) / 2 : (2 - pow(2, -20 * x + 10)) / 2;
|
|
68
|
+
},
|
|
69
|
+
easeInCirc: function(x) {
|
|
70
|
+
return 1 - sqrt(1 - pow(x, 2));
|
|
71
|
+
},
|
|
72
|
+
easeOutCirc: function(x) {
|
|
73
|
+
return sqrt(1 - pow(x - 1, 2));
|
|
74
|
+
},
|
|
75
|
+
easeInOutCirc: function(x) {
|
|
76
|
+
return x < 0.5 ? (1 - sqrt(1 - pow(2 * x, 2))) / 2 : (sqrt(1 - pow(-2 * x + 2, 2)) + 1) / 2;
|
|
77
|
+
},
|
|
78
|
+
easeInElastic: function(x) {
|
|
79
|
+
return x === 0 ? 0 : x === 1 ? 1 : -pow(2, 10 * x - 10) * sin((x * 10 - 10.75) * c4);
|
|
80
|
+
},
|
|
81
|
+
easeOutElastic: function(x) {
|
|
82
|
+
return x === 0 ? 0 : x === 1 ? 1 : pow(2, -10 * x) * sin((x * 10 - 0.75) * c4) + 1;
|
|
83
|
+
},
|
|
84
|
+
easeInOutElastic: function(x) {
|
|
85
|
+
return x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? -(pow(2, 20 * x - 10) * sin((20 * x - 11.125) * c5)) / 2 : pow(2, -20 * x + 10) * sin((20 * x - 11.125) * c5) / 2 + 1;
|
|
86
|
+
},
|
|
87
|
+
easeInBack: function(x) {
|
|
88
|
+
return c3 * x * x * x - c1 * x * x;
|
|
89
|
+
},
|
|
90
|
+
easeOutBack: function(x) {
|
|
91
|
+
return 1 + c3 * pow(x - 1, 3) + c1 * pow(x - 1, 2);
|
|
92
|
+
},
|
|
93
|
+
easeInOutBack: function(x) {
|
|
94
|
+
return x < 0.5 ? pow(2 * x, 2) * ((c2 + 1) * 2 * x - c2) / 2 : (pow(2 * x - 2, 2) * ((c2 + 1) * (x * 2 - 2) + c2) + 2) / 2;
|
|
95
|
+
},
|
|
96
|
+
easeInBounce: function(x) {
|
|
97
|
+
return 1 - bounceOut(1 - x);
|
|
98
|
+
},
|
|
99
|
+
easeOutBounce: bounceOut,
|
|
100
|
+
easeInOutBounce: function(x) {
|
|
101
|
+
return x < 0.5 ? (1 - bounceOut(1 - 2 * x)) / 2 : (1 + bounceOut(2 * x - 1)) / 2;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
const doAnimation = (startValue, endValue, during = 1e3, callback, type = "easeInBack", onAnimationEnd) => {
|
|
105
|
+
const changeValue = endValue - startValue;
|
|
106
|
+
const updateTime = 1e3 / 60;
|
|
107
|
+
const updateCount = during / updateTime;
|
|
108
|
+
const rAF = window.requestAnimationFrame || function(cb) {
|
|
109
|
+
setTimeout(cb, updateTime);
|
|
110
|
+
};
|
|
111
|
+
const startPosition = 0;
|
|
112
|
+
const endPosition = 1;
|
|
113
|
+
const perUpdateDistance = endPosition / updateCount;
|
|
114
|
+
let position = startPosition;
|
|
115
|
+
function step() {
|
|
116
|
+
const stepValue = startValue + changeValue * animeType[type](position);
|
|
117
|
+
callback(stepValue);
|
|
118
|
+
position += perUpdateDistance;
|
|
119
|
+
if (position < endPosition) {
|
|
120
|
+
rAF(step);
|
|
121
|
+
} else {
|
|
122
|
+
rAF(() => callback(endValue));
|
|
123
|
+
onAnimationEnd == null ? void 0 : onAnimationEnd();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
step();
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
export { doAnimation };
|
|
@@ -1,48 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const ctx = "@@clickoutsideContext";
|
|
3
|
-
let startClick;
|
|
4
|
-
let seed = 0;
|
|
5
|
-
document.addEventListener("mousedown", (e) => startClick = e, false);
|
|
6
|
-
document.addEventListener("mouseup", (e) => {
|
|
7
|
-
nodeList.forEach((node) => node[ctx].documentHandler(e, startClick));
|
|
8
|
-
}, false);
|
|
9
|
-
function createDocumentHandler(el, binding, vnode) {
|
|
10
|
-
return function(mouseup = {}, mousedown = {}) {
|
|
11
|
-
if (!vnode || !vnode.context || !mouseup.target || !mousedown.target || el.contains(mouseup.target) || el.contains(mousedown.target) || el === mouseup.target || vnode.context.popperElm && (vnode.context.popperElm.contains(mouseup.target) || vnode.context.popperElm.contains(mousedown.target)))
|
|
12
|
-
return;
|
|
13
|
-
if (binding.expression && el[ctx].methodName && vnode.context[el[ctx].methodName]) {
|
|
14
|
-
vnode.context[el[ctx].methodName]();
|
|
15
|
-
} else {
|
|
16
|
-
el[ctx].bindingFn && el[ctx].bindingFn();
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
var clickoutside = {
|
|
21
|
-
mounted(el, binding, vnode) {
|
|
22
|
-
nodeList.push(el);
|
|
23
|
-
const id = seed++;
|
|
24
|
-
el[ctx] = {
|
|
25
|
-
id,
|
|
26
|
-
documentHandler: createDocumentHandler(el, binding, vnode),
|
|
27
|
-
methodName: binding.expression,
|
|
28
|
-
bindingFn: binding.value
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
update(el, binding, vnode) {
|
|
32
|
-
el[ctx].documentHandler = createDocumentHandler(el, binding, vnode);
|
|
33
|
-
el[ctx].methodName = binding.expression;
|
|
34
|
-
el[ctx].bindingFn = binding.value;
|
|
35
|
-
},
|
|
36
|
-
unmounted(el) {
|
|
37
|
-
let len = nodeList.length;
|
|
38
|
-
for (let i = 0; i < len; i++) {
|
|
39
|
-
if (nodeList[i][ctx].id === el[ctx].id) {
|
|
40
|
-
nodeList.splice(i, 1);
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
delete el[ctx];
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export { clickoutside as default };
|
|
1
|
+
export { default } from './clickoutside2.js';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const nodeList = [];
|
|
2
|
+
const ctx = "@@clickoutsideContext";
|
|
3
|
+
let startClick;
|
|
4
|
+
let seed = 0;
|
|
5
|
+
document.addEventListener("mousedown", (e) => startClick = e, false);
|
|
6
|
+
document.addEventListener("mouseup", (e) => {
|
|
7
|
+
nodeList.forEach((node) => node[ctx].documentHandler(e, startClick));
|
|
8
|
+
}, false);
|
|
9
|
+
function createDocumentHandler(el, binding, vnode) {
|
|
10
|
+
return function(mouseup = {}, mousedown = {}) {
|
|
11
|
+
if (!vnode || !vnode.context || !mouseup.target || !mousedown.target || el.contains(mouseup.target) || el.contains(mousedown.target) || el === mouseup.target || vnode.context.popperElm && (vnode.context.popperElm.contains(mouseup.target) || vnode.context.popperElm.contains(mousedown.target)))
|
|
12
|
+
return;
|
|
13
|
+
if (binding.expression && el[ctx].methodName && vnode.context[el[ctx].methodName]) {
|
|
14
|
+
vnode.context[el[ctx].methodName]();
|
|
15
|
+
} else {
|
|
16
|
+
el[ctx].bindingFn && el[ctx].bindingFn();
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
var clickoutside = {
|
|
21
|
+
mounted(el, binding, vnode) {
|
|
22
|
+
nodeList.push(el);
|
|
23
|
+
const id = seed++;
|
|
24
|
+
el[ctx] = {
|
|
25
|
+
id,
|
|
26
|
+
documentHandler: createDocumentHandler(el, binding, vnode),
|
|
27
|
+
methodName: binding.expression,
|
|
28
|
+
bindingFn: binding.value
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
update(el, binding, vnode) {
|
|
32
|
+
el[ctx].documentHandler = createDocumentHandler(el, binding, vnode);
|
|
33
|
+
el[ctx].methodName = binding.expression;
|
|
34
|
+
el[ctx].bindingFn = binding.value;
|
|
35
|
+
},
|
|
36
|
+
unmounted(el) {
|
|
37
|
+
let len = nodeList.length;
|
|
38
|
+
for (let i = 0; i < len; i++) {
|
|
39
|
+
if (nodeList[i][ctx].id === el[ctx].id) {
|
|
40
|
+
nodeList.splice(i, 1);
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
delete el[ctx];
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export { clickoutside as default };
|
|
@@ -1,44 +1 @@
|
|
|
1
|
-
|
|
2
|
-
LogsType2["DEFAULT"] = "default";
|
|
3
|
-
LogsType2["PRIMARY"] = "primary";
|
|
4
|
-
LogsType2["SUCCESS"] = "success";
|
|
5
|
-
LogsType2["WARNING"] = "warning";
|
|
6
|
-
LogsType2["DANGER"] = "danger";
|
|
7
|
-
return LogsType2;
|
|
8
|
-
})(LogsType || {});
|
|
9
|
-
function typeColor(type = "primary" /* PRIMARY */) {
|
|
10
|
-
const colorMap = {
|
|
11
|
-
["default" /* DEFAULT */]: "#f5f5f5",
|
|
12
|
-
["primary" /* PRIMARY */]: "#409EFF",
|
|
13
|
-
["success" /* SUCCESS */]: "#67C23A",
|
|
14
|
-
["warning" /* WARNING */]: "#E6A23C",
|
|
15
|
-
["danger" /* DANGER */]: "#F56C6C"
|
|
16
|
-
};
|
|
17
|
-
return colorMap[type];
|
|
18
|
-
}
|
|
19
|
-
class Log {
|
|
20
|
-
capsule(title, info, type = "primary" /* PRIMARY */, ...appendInfo) {
|
|
21
|
-
console.log(`%c ${title} %c ${info} %c`, "background:#35495E; padding: 1px; border-radius: 3px 0 0 3px; color: #fff;", `background:${typeColor(type)}; padding: 1px; border-radius: 0 3px 3px 0; color: #fff;`, "background:transparent", ...appendInfo);
|
|
22
|
-
}
|
|
23
|
-
colorful(textArr) {
|
|
24
|
-
console.log(`%c${textArr.map((t) => t.text || "").join("%c")}`, ...textArr.map((t) => `color: ${typeColor(t.type)};`));
|
|
25
|
-
}
|
|
26
|
-
text(text) {
|
|
27
|
-
this.colorful([{ text, type: "default" /* DEFAULT */ }]);
|
|
28
|
-
}
|
|
29
|
-
primary(text) {
|
|
30
|
-
this.colorful([{ text, type: "primary" /* PRIMARY */ }]);
|
|
31
|
-
}
|
|
32
|
-
success(text) {
|
|
33
|
-
this.colorful([{ text, type: "success" /* SUCCESS */ }]);
|
|
34
|
-
}
|
|
35
|
-
warning(text) {
|
|
36
|
-
this.colorful([{ text, type: "warning" /* WARNING */ }]);
|
|
37
|
-
}
|
|
38
|
-
danger(text) {
|
|
39
|
-
this.colorful([{ text, type: "danger" /* DANGER */ }]);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
const log = new Log();
|
|
43
|
-
|
|
44
|
-
export { LogsType, log as default };
|
|
1
|
+
export { LogsType, default } from './colorLog2.js';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var LogsType = /* @__PURE__ */ ((LogsType2) => {
|
|
2
|
+
LogsType2["DEFAULT"] = "default";
|
|
3
|
+
LogsType2["PRIMARY"] = "primary";
|
|
4
|
+
LogsType2["SUCCESS"] = "success";
|
|
5
|
+
LogsType2["WARNING"] = "warning";
|
|
6
|
+
LogsType2["DANGER"] = "danger";
|
|
7
|
+
return LogsType2;
|
|
8
|
+
})(LogsType || {});
|
|
9
|
+
function typeColor(type = "primary" /* PRIMARY */) {
|
|
10
|
+
const colorMap = {
|
|
11
|
+
["default" /* DEFAULT */]: "#f5f5f5",
|
|
12
|
+
["primary" /* PRIMARY */]: "#409EFF",
|
|
13
|
+
["success" /* SUCCESS */]: "#67C23A",
|
|
14
|
+
["warning" /* WARNING */]: "#E6A23C",
|
|
15
|
+
["danger" /* DANGER */]: "#F56C6C"
|
|
16
|
+
};
|
|
17
|
+
return colorMap[type];
|
|
18
|
+
}
|
|
19
|
+
class Log {
|
|
20
|
+
capsule(title, info, type = "primary" /* PRIMARY */, ...appendInfo) {
|
|
21
|
+
console.log(`%c ${title} %c ${info} %c`, "background:#35495E; padding: 1px; border-radius: 3px 0 0 3px; color: #fff;", `background:${typeColor(type)}; padding: 1px; border-radius: 0 3px 3px 0; color: #fff;`, "background:transparent", ...appendInfo);
|
|
22
|
+
}
|
|
23
|
+
colorful(textArr) {
|
|
24
|
+
console.log(`%c${textArr.map((t) => t.text || "").join("%c")}`, ...textArr.map((t) => `color: ${typeColor(t.type)};`));
|
|
25
|
+
}
|
|
26
|
+
text(text) {
|
|
27
|
+
this.colorful([{ text, type: "default" /* DEFAULT */ }]);
|
|
28
|
+
}
|
|
29
|
+
primary(text) {
|
|
30
|
+
this.colorful([{ text, type: "primary" /* PRIMARY */ }]);
|
|
31
|
+
}
|
|
32
|
+
success(text) {
|
|
33
|
+
this.colorful([{ text, type: "success" /* SUCCESS */ }]);
|
|
34
|
+
}
|
|
35
|
+
warning(text) {
|
|
36
|
+
this.colorful([{ text, type: "warning" /* WARNING */ }]);
|
|
37
|
+
}
|
|
38
|
+
danger(text) {
|
|
39
|
+
this.colorful([{ text, type: "danger" /* DANGER */ }]);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
const log = new Log();
|
|
43
|
+
|
|
44
|
+
export { LogsType, log as default };
|
package/es/shared/utils/index.js
CHANGED
|
@@ -1,25 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function safeComponentRegister(app, component, cName = component.name, scheduler) {
|
|
4
|
-
if (!cName)
|
|
5
|
-
throw new Error(`[CUI]: invalid component name for ${component}`);
|
|
6
|
-
const { components = {} } = app._context;
|
|
7
|
-
if (components[cName]) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
if (scheduler) {
|
|
11
|
-
scheduler();
|
|
12
|
-
} else {
|
|
13
|
-
app.component(cName, component);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
function generateTimeFormat(format) {
|
|
17
|
-
if (!isString(format))
|
|
18
|
-
return;
|
|
19
|
-
const matched = format.match(/[Hms:]+/);
|
|
20
|
-
if (!matched)
|
|
21
|
-
return;
|
|
22
|
-
return matched[0];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { generateTimeFormat, safeComponentRegister };
|
|
1
|
+
export { generateTimeFormat, safeComponentRegister } from './index2.js';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { isString } from 'lodash-es';
|
|
2
|
+
|
|
3
|
+
function safeComponentRegister(app, component, cName = component.name, scheduler) {
|
|
4
|
+
if (!cName)
|
|
5
|
+
throw new Error(`[CUI]: invalid component name for ${component}`);
|
|
6
|
+
const { components = {} } = app._context;
|
|
7
|
+
if (components[cName]) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (scheduler) {
|
|
11
|
+
scheduler();
|
|
12
|
+
} else {
|
|
13
|
+
app.component(cName, component);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function generateTimeFormat(format) {
|
|
17
|
+
if (!isString(format))
|
|
18
|
+
return;
|
|
19
|
+
const matched = format.match(/[Hms:]+/);
|
|
20
|
+
if (!matched)
|
|
21
|
+
return;
|
|
22
|
+
return matched[0];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { generateTimeFormat, safeComponentRegister };
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import VueViewer from 'v-viewer';
|
|
3
|
-
|
|
4
|
-
function loadViewer(app) {
|
|
5
|
-
safeComponentRegister(app, VueViewer, "viewer", () => {
|
|
6
|
-
app.use(VueViewer);
|
|
7
|
-
import('viewerjs/dist/viewer.min.css');
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { loadViewer };
|
|
1
|
+
export { loadViewer } from './loadViewer2.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { safeComponentRegister } from './index2.js';
|
|
2
|
+
import VueViewer from 'v-viewer';
|
|
3
|
+
|
|
4
|
+
function loadViewer(app) {
|
|
5
|
+
safeComponentRegister(app, VueViewer, "viewer", () => {
|
|
6
|
+
app.use(VueViewer);
|
|
7
|
+
import('viewerjs/dist/viewer.min.css');
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { loadViewer };
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import VXETable from 'vxe-table';
|
|
3
|
-
|
|
4
|
-
function loadVxeTable(app) {
|
|
5
|
-
safeComponentRegister(app, VXETable, "VxeTable", () => {
|
|
6
|
-
app.use(VXETable);
|
|
7
|
-
import('vxe-table/lib/style.css');
|
|
8
|
-
import('xe-utils');
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { loadVxeTable };
|
|
1
|
+
export { loadVxeTable } from './loadVxe2.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { safeComponentRegister } from './index2.js';
|
|
2
|
+
import VXETable from 'vxe-table';
|
|
3
|
+
|
|
4
|
+
function loadVxeTable(app) {
|
|
5
|
+
safeComponentRegister(app, VXETable, "VxeTable", () => {
|
|
6
|
+
app.use(VXETable);
|
|
7
|
+
import('vxe-table/lib/style.css');
|
|
8
|
+
import('xe-utils');
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { loadVxeTable };
|
package/es/shared/utils/state.js
CHANGED
|
@@ -1,44 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function useState(initValue) {
|
|
4
|
-
const state = ref(initValue);
|
|
5
|
-
const getState = (isRef) => isRef ? state : unref(state);
|
|
6
|
-
return [getState, (val) => state.value = val];
|
|
7
|
-
}
|
|
8
|
-
function useRef() {
|
|
9
|
-
return useState(null)[0];
|
|
10
|
-
}
|
|
11
|
-
function useRefs() {
|
|
12
|
-
const itemRefs = /* @__PURE__ */ new Set();
|
|
13
|
-
const setItemRef = (el) => el && itemRefs.add(el);
|
|
14
|
-
onBeforeUpdate(() => itemRefs.clear());
|
|
15
|
-
return [itemRefs, setItemRef];
|
|
16
|
-
}
|
|
17
|
-
function useRefsArray() {
|
|
18
|
-
let itemRefs = [];
|
|
19
|
-
const setItemRef = (el) => {
|
|
20
|
-
itemRefs.push(el);
|
|
21
|
-
};
|
|
22
|
-
onBeforeUpdate(() => {
|
|
23
|
-
itemRefs = [];
|
|
24
|
-
});
|
|
25
|
-
return [itemRefs, setItemRef];
|
|
26
|
-
}
|
|
27
|
-
function isWritableComputedOptions(arg) {
|
|
28
|
-
return typeof arg === "object" && Reflect.has(arg || {}, "set");
|
|
29
|
-
}
|
|
30
|
-
function useComputed(arg) {
|
|
31
|
-
const data = isWritableComputedOptions(arg) ? computed(arg) : computed(arg);
|
|
32
|
-
const getData = (isRef) => isRef ? data : data.value;
|
|
33
|
-
if (!isWritableComputedOptions(arg)) {
|
|
34
|
-
return getData;
|
|
35
|
-
}
|
|
36
|
-
return [getData, (val) => data.value = val];
|
|
37
|
-
}
|
|
38
|
-
function getRefs(obj) {
|
|
39
|
-
const result = {};
|
|
40
|
-
Object.entries(obj).forEach(([k, fn]) => result[k] = fn(true));
|
|
41
|
-
return result;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export { getRefs, useComputed, useRef, useRefs, useRefsArray, useState };
|
|
1
|
+
export { getRefs, useComputed, useRef, useRefs, useRefsArray, useState } from './state2.js';
|