cnhis-design-vue 3.1.18-beta.0 → 3.1.18-beta.10
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/annotation-edit/style/index.css +1 -15
- package/es/components/big-table/index.d.ts +9 -3380
- 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 +9 -3384
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +21 -19
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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-table.d.ts +2 -2
- package/es/components/big-table/src/components/edit-form/edit-select.d.ts +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 +2 -1148
- package/es/components/big-table/src/components/edit-form/edit-time.d.ts +1 -1
- 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 +2 -2248
- 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 +7 -1153
- 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/big-table/style/index.css +1 -634
- package/es/components/bpmn-workflow/index.js +1 -10
- package/es/components/bpmn-workflow/index2.js +10 -0
- package/es/components/bpmn-workflow/style/index.css +1 -29
- package/es/components/button-print/index.d.ts +19 -6792
- 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 +19 -6792
- package/es/components/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +3 -4
- package/es/components/button-print/src/components/IdentityVerification.js +16 -7
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +13 -4442
- package/es/components/button-print/src/utils/dialog.d.ts +8 -0
- package/es/components/button-print/src/utils/dialog.js +77 -0
- package/es/components/button-print/src/utils/index.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +11 -0
- package/es/components/button-print/src/utils/print.js +1 -325
- package/es/components/button-print/src/utils/print2.js +348 -0
- package/es/components/button-print/style/index.css +1 -24
- package/es/components/chunk-upload/index.d.ts +2 -1472
- 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 +3 -1742
- 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 +2 -1472
- package/es/components/chunk-upload/style/index.css +1 -365
- package/es/components/drag-layout/index.d.ts +155 -19664
- 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 +5 -7974
- package/es/components/drag-layout/src/DragFormRightItem.vue.d.ts +4 -3105
- package/es/components/drag-layout/src/DragLayout.vue.d.ts +156 -19665
- package/es/components/drag-layout/style/index.css +1 -175
- package/es/components/editor/index.js +1 -10
- package/es/components/editor/index2.js +10 -0
- package/es/components/fabric-chart/index.d.ts +2 -2
- 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/FabricChart.vue.d.ts +2 -2
- 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 +554 -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.d.ts +2 -0
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -153
- package/es/components/fabric-chart/src/hooks/useDraw2.js +182 -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/components/fabric-chart/style/index.css +1 -43
- package/es/components/field-set/index.d.ts +8 -6799
- 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.js +26 -19
- package/es/components/field-set/src/FieldSet.vue.d.ts +8 -6799
- package/es/components/field-set/style/index.css +1 -139
- package/es/components/form-config/index.d.ts +17 -8936
- 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 +7 -7
- package/es/components/form-config/src/FormConfig.vue.d.ts +17 -8936
- package/es/components/form-config/src/components/FormConfigCreator.js +4 -4
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +9 -4473
- package/es/components/form-config/src/components/FormConfigDragDisplay.js +2 -2
- package/es/components/form-config/src/components/FormConfigEdit.js +7 -7
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +7 -3065
- 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 -1472
- package/es/components/form-config/src/components/renderer/ComplexNode.js +5 -8
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +26 -1496
- package/es/components/form-config/src/components/renderer/DefaultNode.js +6 -9
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +5 -3196
- 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/usePresetRenderer.js +0 -5
- 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-config/style/index.css +1 -158
- package/es/components/form-render/index.d.ts +6 -1140
- 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 +7 -1141
- 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 +13 -6
- 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 +3 -3
- package/es/components/form-render/src/components/renderer/linebar.d.ts +1 -1
- 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 +13 -10
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/es/components/form-render/src/utils/index.js +5 -6
- 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-render/style/index.css +1 -146
- package/es/components/form-table/index.d.ts +43 -32048
- 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 +43 -32048
- package/es/components/form-table/src/components/index.d.ts +43 -32048
- 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 +5 -3997
- 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 +3 -5068
- 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 -2664
- 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 +4 -1329
- package/es/components/form-table/src/components/table-input.js +1 -1
- package/es/components/form-table/src/components/table-input.vue.d.ts +4 -1329
- 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 +2 -5067
- package/es/components/form-table/src/components/table-search-more.vue.d.ts +2 -1401
- 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 +3 -2734
- 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 +2 -1334
- package/es/components/form-table/src/components/table-select.js +1 -1
- package/es/components/form-table/src/components/table-select.vue.d.ts +2 -1334
- package/es/components/form-table/src/components/table-textarea.js +1 -1
- package/es/components/form-table/src/components/table-textarea.vue.d.ts +5 -1330
- 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 +2 -2430
- 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 +2 -1550
- package/es/components/form-table/src/components/text-over-tooltip.vue.d.ts +2 -480
- 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/form-table/style/index.css +1 -214
- 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/grid/style/index.css +1 -10
- package/es/components/index.css +1 -3346
- package/es/components/index.js +39 -96
- package/es/components/index2.js +79 -0
- package/es/components/info-header/index.d.ts +16 -2561
- 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 +4 -804
- package/es/components/info-header/src/InfoEllipsis.vue.d.ts +3 -803
- package/es/components/info-header/src/InfoHeader.vue.d.ts +15 -2560
- package/es/components/info-header/style/index.css +1 -121
- package/es/components/map/index.d.ts +2 -2248
- 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 +2 -2248
- package/es/components/map/style/index.css +1 -61
- package/es/components/scale-view/index.d.ts +13 -3073
- 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 +9 -3070
- package/es/components/scale-view/src/components/EvaluateCountdown.js +1 -1
- 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/EvaluatePage.vue.d.ts +1 -1400
- 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.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-cascader.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-collection.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-datetime.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-input.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-map.d.ts +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.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-select.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/r-upload.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +2 -480
- 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 +39 -8487
- 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/scale-view/style/index.css +1 -738
- package/es/components/select-label/index.d.ts +24 -11222
- 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 +10 -4235
- package/es/components/select-label/src/SelectLabel.vue.d.ts +14 -7002
- 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 +5 -3467
- package/es/components/select-label/style/index.css +1 -164
- package/es/components/select-person/index.d.ts +9 -5310
- 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 +3 -1317
- package/es/components/select-person/src/SelectPerson.vue.d.ts +9 -5312
- 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/select-person/style/index.css +1 -193
- 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-provider/style/index.css +1 -3
- package/es/components/shortcut-setter/index.d.ts +6 -1140
- 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 +6 -1140
- package/es/components/shortcut-setter/src/ShortcutSetterItem.js +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +1 -848
- package/es/components/shortcut-setter/style/index.css +1 -8
- package/es/components/steps-wheel/index.d.ts +1 -479
- 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 +1 -479
- package/es/components/steps-wheel/style/index.css +1 -161
- package/es/components/time-line/index.d.ts +7 -1672
- 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 +6 -1671
- package/es/components/time-line/style/index.css +1 -37
- package/es/shared/components/SelectPage/SelectPage.vue.d.ts +1 -1400
- 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 -480
- 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/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 +6 -20
- 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
|
@@ -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';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ref, onBeforeUpdate, computed, unref } from 'vue';
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './Hook.js';
|
|
2
2
|
import HookCodeFactory from './HookCodeFactory.js';
|
|
3
3
|
|
|
4
4
|
class AsyncParallelBailHookCodeFactory extends HookCodeFactory {
|
|
@@ -60,19 +60,4 @@ class AsyncParallelBailHookCodeFactory extends HookCodeFactory {
|
|
|
60
60
|
return code;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
|
|
64
|
-
const COMPILE = function(options) {
|
|
65
|
-
factory.setup(this, options);
|
|
66
|
-
return factory.create(options);
|
|
67
|
-
};
|
|
68
|
-
function AsyncParallelBailHook(args = [], name = void 0) {
|
|
69
|
-
const hook = new Hook(args, name);
|
|
70
|
-
hook.constructor = AsyncParallelBailHook;
|
|
71
|
-
hook.compile = COMPILE;
|
|
72
|
-
hook._call = void 0;
|
|
73
|
-
hook.call = void 0;
|
|
74
|
-
return hook;
|
|
75
|
-
}
|
|
76
|
-
AsyncParallelBailHook.prototype = null;
|
|
77
|
-
|
|
78
|
-
export { AsyncParallelBailHook as default };
|
|
63
|
+
new AsyncParallelBailHookCodeFactory();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './Hook.js';
|
|
2
2
|
import HookCodeFactory from './HookCodeFactory.js';
|
|
3
3
|
|
|
4
4
|
class AsyncParallelHookCodeFactory extends HookCodeFactory {
|
|
@@ -9,19 +9,4 @@ class AsyncParallelHookCodeFactory extends HookCodeFactory {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
const COMPILE = function(options) {
|
|
14
|
-
factory.setup(this, options);
|
|
15
|
-
return factory.create(options);
|
|
16
|
-
};
|
|
17
|
-
function AsyncParallelHook(args = [], name = void 0) {
|
|
18
|
-
const hook = new Hook(args, name);
|
|
19
|
-
hook.constructor = AsyncParallelHook;
|
|
20
|
-
hook.compile = COMPILE;
|
|
21
|
-
hook._call = void 0;
|
|
22
|
-
hook.call = void 0;
|
|
23
|
-
return hook;
|
|
24
|
-
}
|
|
25
|
-
AsyncParallelHook.prototype = null;
|
|
26
|
-
|
|
27
|
-
export { AsyncParallelHook as default };
|
|
12
|
+
new AsyncParallelHookCodeFactory();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './Hook.js';
|
|
2
2
|
import HookCodeFactory from './HookCodeFactory.js';
|
|
3
3
|
|
|
4
4
|
class AsyncSeriesBailHookCodeFactory extends HookCodeFactory {
|
|
@@ -15,19 +15,4 @@ ${next()}}
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
const COMPILE = function(options) {
|
|
20
|
-
factory.setup(this, options);
|
|
21
|
-
return factory.create(options);
|
|
22
|
-
};
|
|
23
|
-
function AsyncSeriesBailHook(args = [], name = void 0) {
|
|
24
|
-
const hook = new Hook(args, name);
|
|
25
|
-
hook.constructor = AsyncSeriesBailHook;
|
|
26
|
-
hook.compile = COMPILE;
|
|
27
|
-
hook._call = void 0;
|
|
28
|
-
hook.call = void 0;
|
|
29
|
-
return hook;
|
|
30
|
-
}
|
|
31
|
-
AsyncSeriesBailHook.prototype = null;
|
|
32
|
-
|
|
33
|
-
export { AsyncSeriesBailHook as default };
|
|
18
|
+
new AsyncSeriesBailHookCodeFactory();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './Hook.js';
|
|
2
2
|
import HookCodeFactory from './HookCodeFactory.js';
|
|
3
3
|
|
|
4
4
|
class AsyncSeriesHookCodeFactory extends HookCodeFactory {
|
|
@@ -9,19 +9,4 @@ class AsyncSeriesHookCodeFactory extends HookCodeFactory {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
const COMPILE = function(options) {
|
|
14
|
-
factory.setup(this, options);
|
|
15
|
-
return factory.create(options);
|
|
16
|
-
};
|
|
17
|
-
function AsyncSeriesHook(args = [], name = void 0) {
|
|
18
|
-
const hook = new Hook(args, name);
|
|
19
|
-
hook.constructor = AsyncSeriesHook;
|
|
20
|
-
hook.compile = COMPILE;
|
|
21
|
-
hook._call = void 0;
|
|
22
|
-
hook.call = void 0;
|
|
23
|
-
return hook;
|
|
24
|
-
}
|
|
25
|
-
AsyncSeriesHook.prototype = null;
|
|
26
|
-
|
|
27
|
-
export { AsyncSeriesHook as default };
|
|
12
|
+
new AsyncSeriesHookCodeFactory();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './Hook.js';
|
|
2
2
|
import HookCodeFactory from './HookCodeFactory.js';
|
|
3
3
|
|
|
4
4
|
class AsyncSeriesLoopHookCodeFactory extends HookCodeFactory {
|
|
@@ -9,19 +9,4 @@ class AsyncSeriesLoopHookCodeFactory extends HookCodeFactory {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
const COMPILE = function(options) {
|
|
14
|
-
factory.setup(this, options);
|
|
15
|
-
return factory.create(options);
|
|
16
|
-
};
|
|
17
|
-
function AsyncSeriesLoopHook(args = [], name = void 0) {
|
|
18
|
-
const hook = new Hook(args, name);
|
|
19
|
-
hook.constructor = AsyncSeriesLoopHook;
|
|
20
|
-
hook.compile = COMPILE;
|
|
21
|
-
hook._call = void 0;
|
|
22
|
-
hook.call = void 0;
|
|
23
|
-
return hook;
|
|
24
|
-
}
|
|
25
|
-
AsyncSeriesLoopHook.prototype = null;
|
|
26
|
-
|
|
27
|
-
export { AsyncSeriesLoopHook as default };
|
|
12
|
+
new AsyncSeriesLoopHookCodeFactory();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './Hook.js';
|
|
2
2
|
import HookCodeFactory from './HookCodeFactory.js';
|
|
3
3
|
|
|
4
4
|
class AsyncSeriesWaterfallHookCodeFactory extends HookCodeFactory {
|
|
@@ -20,21 +20,4 @@ class AsyncSeriesWaterfallHookCodeFactory extends HookCodeFactory {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
const COMPILE = function(options) {
|
|
25
|
-
factory.setup(this, options);
|
|
26
|
-
return factory.create(options);
|
|
27
|
-
};
|
|
28
|
-
function AsyncSeriesWaterfallHook(args = [], name = void 0) {
|
|
29
|
-
if (args.length < 1)
|
|
30
|
-
throw new Error("Waterfall hooks must have at least one argument");
|
|
31
|
-
const hook = new Hook(args, name);
|
|
32
|
-
hook.constructor = AsyncSeriesWaterfallHook;
|
|
33
|
-
hook.compile = COMPILE;
|
|
34
|
-
hook._call = void 0;
|
|
35
|
-
hook.call = void 0;
|
|
36
|
-
return hook;
|
|
37
|
-
}
|
|
38
|
-
AsyncSeriesWaterfallHook.prototype = null;
|
|
39
|
-
|
|
40
|
-
export { AsyncSeriesWaterfallHook as default };
|
|
23
|
+
new AsyncSeriesWaterfallHookCodeFactory();
|