cnhis-design-vue 3.1.40-beta.11 → 3.1.40-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/_virtual/plugin-vue_export-helper.js +1 -9
- package/es/components/annotation-edit/index.js +1 -10
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -164
- package/es/components/big-table/index.js +1 -15
- package/es/components/big-table/src/BigTable.vue.js +1 -6
- package/es/components/big-table/src/BigTable.vue2.js +1 -2498
- package/es/components/big-table/src/bigTableEmits.js +1 -53
- package/es/components/big-table/src/bigTableProps.js +1 -120
- package/es/components/big-table/src/bigTableState.js +1 -62
- package/es/components/big-table/src/components/NoData.vue.js +1 -74
- package/es/components/big-table/src/components/edit-form/edit-date.js +1 -214
- package/es/components/big-table/src/components/edit-form/edit-input.js +1 -95
- package/es/components/big-table/src/components/edit-form/edit-select.js +1 -139
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -103
- package/es/components/big-table/src/components/edit-form/edit-time.js +1 -122
- package/es/components/big-table/src/components/edit-form/useCommon.js +1 -23
- package/es/components/big-table/src/components/input-button.vue.js +1 -39
- package/es/components/big-table/src/components/separate.vue.js +1 -30
- package/es/components/big-table/src/constants/index.js +1 -3
- package/es/components/big-table/src/hooks/index.js +1 -9
- package/es/components/big-table/src/hooks/useAnchor.js +1 -49
- package/es/components/big-table/src/hooks/useAnnotation.js +1 -21
- package/es/components/big-table/src/hooks/useBatchEditing.js +1 -301
- package/es/components/big-table/src/hooks/useEdit.js +1 -133
- package/es/components/big-table/src/hooks/useEvent.js +1 -95
- package/es/components/big-table/src/hooks/useFormat.js +1 -507
- package/es/components/big-table/src/hooks/useNestTable.js +1 -86
- package/es/components/big-table/src/hooks/useSeparateRow.js +1 -177
- package/es/components/big-table/src/hooks/useTableParse.js +1 -142
- package/es/components/big-table/src/utils.js +1 -618
- package/es/components/bpmn-workflow/index.js +1 -10
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -258
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +1 -1452
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +1 -99
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +1 -114
- package/es/components/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +1 -40
- package/es/components/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +1 -14
- package/es/components/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +1 -10
- package/es/components/button-print/index.js +1 -12
- package/es/components/button-print/src/ButtonPrint.vue.js +1 -6
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -528
- package/es/components/button-print/src/components/EditFormat.vue.js +1 -173
- package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -182
- package/es/components/button-print/src/components/Preview.vue.js +1 -6
- package/es/components/button-print/src/components/Preview.vue2.js +1 -67
- package/es/components/button-print/src/utils/browserPrint.d.ts +2 -1
- package/es/components/button-print/src/utils/browserPrint.js +1 -43
- package/es/components/button-print/src/utils/dialog.js +1 -121
- package/es/components/button-print/src/utils/index.js +1 -2
- package/es/components/button-print/src/utils/print.d.ts +5 -1
- package/es/components/button-print/src/utils/print.js +1 -432
- package/es/components/editor/index.js +1 -10
- package/es/components/editor/src/Editor.js +1 -77
- package/es/components/fabric-chart/index.js +1 -10
- package/es/components/fabric-chart/src/FabricChart.vue.js +1 -71
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -118
- package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -34
- package/es/components/fabric-chart/src/components/useStyle.js +1 -36
- package/es/components/fabric-chart/src/hooks/constant.js +1 -78
- package/es/components/fabric-chart/src/hooks/index.js +1 -11
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -642
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -153
- package/es/components/fabric-chart/src/hooks/useBottom.js +1 -91
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -734
- package/es/components/fabric-chart/src/hooks/useCommon.js +1 -32
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -79
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -182
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -146
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -54
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -331
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -95
- package/es/components/fabric-chart/src/hooks/useRight.js +1 -22
- package/es/components/fabric-chart/src/hooks/useShadow.js +1 -132
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -341
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -154
- package/es/components/fabric-chart/src/utils/index.js +1 -15624
- package/es/components/fabric-chart/src/utils/utils.js +1 -32
- package/es/components/field-set/index.js +1 -10
- package/es/components/field-set/src/FieldSet.vue.js +1 -470
- package/es/components/form-config/index.d.ts +1 -1
- package/es/components/form-config/index.js +1 -10
- package/es/components/form-config/src/FormConfig.vue.d.ts +1 -1
- package/es/components/form-config/src/FormConfig.vue.js +1 -124
- package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -100
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -45
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -97
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -28
- package/es/components/form-config/src/components/index.js +1 -6
- package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -45
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -45
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -60
- package/es/components/form-config/src/components/renderer/index.js +1 -3
- package/es/components/form-config/src/constants/index.js +1 -61
- package/es/components/form-config/src/hooks/index.js +1 -3
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -90
- package/es/components/form-config/src/hooks/useDataNormalize.js +1 -35
- package/es/components/form-config/src/hooks/usePresetRenderer.js +1 -36
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -42
- package/es/components/form-config/src/utils/index.js +1 -26
- package/es/components/form-render/index.js +1 -30
- package/es/components/form-render/src/FormRender.vue.js +1 -239
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -49
- package/es/components/form-render/src/components/renderer/combination.js +1 -114
- package/es/components/form-render/src/components/renderer/complex.js +1 -37
- package/es/components/form-render/src/components/renderer/date.js +1 -171
- package/es/components/form-render/src/components/renderer/formItem.js +1 -128
- package/es/components/form-render/src/components/renderer/index.js +1 -43
- package/es/components/form-render/src/components/renderer/input.js +1 -50
- package/es/components/form-render/src/components/renderer/inputGroup.js +1 -11
- package/es/components/form-render/src/components/renderer/inputNumber.js +1 -55
- package/es/components/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +1 -35
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -175
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -274
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -71
- package/es/components/form-render/src/components/renderer/lineBar/index.js +1 -11
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -111
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -139
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -244
- package/es/components/form-render/src/components/renderer/select.js +1 -176
- package/es/components/form-render/src/components/renderer/simpleComponent.js +1 -57
- package/es/components/form-render/src/components/renderer/slider.js +1 -38
- package/es/components/form-render/src/components/renderer/switch.js +1 -48
- package/es/components/form-render/src/components/renderer/textarea.js +1 -36
- package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -37
- package/es/components/form-render/src/constants/index.js +1 -59
- package/es/components/form-render/src/hooks/index.js +1 -15
- package/es/components/form-render/src/hooks/useAnchor.js +1 -99
- package/es/components/form-render/src/hooks/useAsyncQueue.js +1 -153
- package/es/components/form-render/src/hooks/useAutoHidden.js +1 -43
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -119
- package/es/components/form-render/src/hooks/useChangeContext.js +1 -20
- package/es/components/form-render/src/hooks/useCommonInjection.js +1 -43
- package/es/components/form-render/src/hooks/useCommonLog.js +1 -12
- package/es/components/form-render/src/hooks/useComplexOptions.js +1 -225
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -290
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -65
- package/es/components/form-render/src/hooks/useFieldVisitor.js +1 -46
- package/es/components/form-render/src/hooks/useFormContext.js +1 -70
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -140
- package/es/components/form-render/src/hooks/useFormField.js +1 -13
- package/es/components/form-render/src/hooks/useFormItemDeps.js +1 -31
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.js +1 -10
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -278
- package/es/components/form-render/src/hooks/useFormRequest.js +1 -42
- package/es/components/form-render/src/hooks/useFormValidator.js +1 -83
- package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -85
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -18
- package/es/components/form-render/src/hooks/usePresetScope.js +1 -22
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
- package/es/components/form-render/src/types/fieldItem.js +1 -1
- package/es/components/form-render/src/types/index.js +1 -1
- package/es/components/form-render/src/utils/business.js +1 -114
- package/es/components/form-render/src/utils/dom.js +1 -38
- package/es/components/form-render/src/utils/index.js +1 -241
- package/es/components/form-render/src/utils/schema.js +1 -105
- package/es/components/grid/index.js +1 -11
- package/es/components/grid/src/Grid.js +1 -28
- package/es/components/grid/src/hooks.js +1 -168
- package/es/components/iho-table/index.js +1 -36
- package/es/components/iho-table/src/IhoTable.vue.js +1 -157
- package/es/components/iho-table/src/constants/index.js +1 -157
- package/es/components/iho-table/src/hooks/export.js +1 -2
- package/es/components/iho-table/src/hooks/index.js +1 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -159
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -67
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -26
- package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +1 -27
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -280
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -26
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +1 -38
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -27
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -164
- package/es/components/iho-table/src/hooks/useTableContext.js +1 -17
- package/es/components/iho-table/src/hooks/useTablePlugin.js +1 -20
- package/es/components/iho-table/src/plugins/anchorPlugin/index.js +1 -19
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -51
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -87
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -48
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +1 -230
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +1 -240
- package/es/components/iho-table/src/plugins/index.js +1 -47
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -30
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -127
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -203
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -41
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -21
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -41
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -79
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -64
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -46
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -16
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -108
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -163
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -42
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +1 -50
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -30
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +1 -48
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -62
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -52
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -92
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -59
- package/es/components/iho-table/src/plugins/rowClickPlugin/index.js +1 -34
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index.js +1 -30
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -53
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -100
- package/es/components/iho-table/src/types/index.js +1 -1
- package/es/components/iho-table/src/types/pluginType.js +1 -16
- package/es/components/iho-table/src/utils/index.js +1 -169
- package/es/components/index.js +1 -119
- package/es/components/info-header/index.js +1 -10
- package/es/components/info-header/src/HiddenContent.vue.js +1 -70
- package/es/components/info-header/src/InfoEllipsis.vue.js +1 -43
- package/es/components/info-header/src/InfoHeader.vue.js +1 -313
- package/es/components/insurance-sdk/index.js +1 -1
- package/es/components/insurance-sdk/src/constants/index.js +1 -160
- package/es/components/insurance-sdk/src/utils/index.js +1 -1
- package/es/components/insurance-sdk/src/utils/insurance.js +1 -268
- package/es/components/keyboard/index.d.ts +4 -21
- package/es/components/keyboard/index.js +1 -10
- package/es/components/keyboard/src/Keyboard.vue.d.ts +4 -21
- package/es/components/keyboard/src/Keyboard.vue.js +1 -164
- package/es/components/keyboard/src/components/InputNumber.vue.d.ts +2 -19
- package/es/components/keyboard/src/components/InputNumber.vue.js +1 -94
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +4 -21
- package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -299
- package/es/components/keyboard/src/utils/index.js +1 -5
- package/es/components/map/index.js +1 -10
- package/es/components/map/src/Map.vue.js +1 -336
- package/es/components/recommend-search/index.js +1 -10
- package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -63
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +1 -157
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -125
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -104
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -146
- package/es/components/recommend-search/src/constant/index.js +1 -7
- package/es/components/scale-view/index.js +1 -35
- package/es/components/scale-view/src/ScaleView.vue.d.ts +0 -3
- package/es/components/scale-view/src/ScaleView.vue.js +1 -429
- package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -80
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -117
- package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -141
- package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -19
- package/es/components/scale-view/src/components/NoData.vue.js +1 -74
- package/es/components/scale-view/src/components/ScaleScore.js +1 -63
- package/es/components/scale-view/src/components/composables/choose-common.js +1 -83
- package/es/components/scale-view/src/components/formitem/address.js +1 -3993
- package/es/components/scale-view/src/components/formitem/r-address.js +1 -226
- package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -133
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +1 -281
- package/es/components/scale-view/src/components/formitem/r-collection.js +1 -111
- package/es/components/scale-view/src/components/formitem/r-datetime.js +1 -212
- package/es/components/scale-view/src/components/formitem/r-input.js +1 -86
- package/es/components/scale-view/src/components/formitem/r-map.js +1 -106
- package/es/components/scale-view/src/components/formitem/r-radio.js +1 -240
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -202
- package/es/components/scale-view/src/components/formitem/r-sign.js +1 -177
- package/es/components/scale-view/src/components/formitem/r-upload.js +1 -215
- package/es/components/scale-view/src/components/formitem/sign-com.js +1 -307
- package/es/components/scale-view/src/components/formitem/standard-modal.js +1 -129
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -354
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -437
- package/es/components/scale-view/src/hooks/scaleview-props.js +1 -81
- package/es/components/scale-view/src/hooks/scaleview-state.js +1 -38
- package/es/components/scale-view/src/hooks/scaleview-submit.js +1 -154
- package/es/components/scale-view/src/hooks/scaleview-validate.js +1 -187
- package/es/components/scale-view/src/hooks/use-component.js +1 -86
- package/es/components/scale-view/src/hooks/use-evaluate.js +1 -150
- package/es/components/scale-view/src/hooks/use-event.js +1 -129
- package/es/components/scale-view/src/hooks/use-noData.js +1 -41
- package/es/components/scale-view/src/utils/judge-types.js +1 -36
- package/es/components/search-cascader/index.js +1 -10
- package/es/components/search-cascader/src/SearchCascader.vue.js +1 -194
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -196
- package/es/components/search-cascader/src/components/index.js +1 -1
- package/es/components/search-cascader/src/constants/index.js +1 -11
- package/es/components/search-cascader/src/hooks/index.js +1 -1
- package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -7
- package/es/components/search-cascader/src/utils/index.js +1 -11
- package/es/components/select-label/index.js +1 -15
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -447
- package/es/components/select-label/src/SelectLabel.vue.js +1 -6
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -451
- package/es/components/select-label/src/components/label-classify.vue.js +1 -132
- package/es/components/select-person/index.js +1 -10
- package/es/components/select-person/src/SelectPerson.vue.js +1 -6
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -303
- package/es/components/select-person/src/utils/index.js +1 -58
- package/es/components/shortcut-provider/index.js +1 -12
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -42
- package/es/components/shortcut-provider/src/constants/index.js +1 -8
- package/es/components/shortcut-provider/src/hooks/index.js +1 -2
- package/es/components/shortcut-provider/src/hooks/useShortcutSignature.js +1 -12
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -188
- package/es/components/shortcut-provider/src/utils/index.js +1 -92
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/index.js +1 -10
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -98
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -76
- package/es/components/steps-wheel/index.js +1 -10
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -376
- package/es/components/table-filter/index.js +1 -21
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +3 -0
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -2272
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1315
- package/es/components/table-filter/src/classification/search-class-name.vue.js +1 -195
- package/es/components/table-filter/src/classification/search-professional-model.vue.js +1 -594
- package/es/components/table-filter/src/components/age-com/index.vue.js +1 -185
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +1 -86
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +1 -30
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +1 -253
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -114
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +1 -14
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -87
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -147
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -304
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +1 -153
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +1 -310
- package/es/components/table-filter/src/components/range-age/index.vue.js +1 -137
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -64
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -45
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -2
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -27
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -70
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -107
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -152
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +1 -1520
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +1 -171
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +1 -199
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +1 -241
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +1 -526
- package/es/components/table-filter/src/const/dataOptions.js +1 -107
- package/es/components/table-filter/src/const/index.js +1 -5
- package/es/components/table-filter/src/directive/flexibleResize.js +1 -157
- package/es/components/table-filter/src/directive/preventReClick.js +1 -14
- package/es/components/table-filter/src/directive/resize.js +1 -12
- package/es/components/table-filter/src/hooks/export.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -64
- package/es/components/table-filter/src/hooks/useMixins.js +1 -532
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -94
- package/es/components/table-filter/src/hooks/useTableSearchCon.js +1 -131
- package/es/components/table-filter/src/hooks/useWordBookutils.js +1 -91
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +4 -3
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -2038
- package/es/components/table-filter/src/tool/generateDefOptions.js +1 -65
- package/es/components/table-filter/src/tool/getWidgetType.js +1 -27
- package/es/components/table-filter/src/tool/options.js +1 -200
- package/es/components/table-filter/src/tool/resizeSensor.js +1 -123
- package/es/components/table-filter/src/tool/time-domain.js +1 -100
- package/es/components/table-filter/src/tool/transformData.js +1 -169
- package/es/components/table-filter/src/tool/utils.js +1 -29
- package/es/components/table-filter/src/types/enums.js +1 -67
- package/es/components/time-line/index.js +1 -10
- package/es/components/time-line/src/TimeLine.vue.js +1 -70
- package/es/components/vod-chunk-upload/index.js +1 -14
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -480
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +1 -70
- package/es/components/vod-chunk-upload/src/hooks/upload-data.js +1 -96
- package/es/components/vod-chunk-upload/src/hooks/vod-computed.js +1 -79
- package/es/components/vod-chunk-upload/src/hooks/vod-data.js +1 -28
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +1 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -332
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -94
- package/es/env.d.ts +24 -24
- package/es/shared/assets/img/failure.png.js +1 -3
- package/es/shared/assets/img/no-permission.png.js +1 -3
- package/es/shared/assets/img/nodata.png.js +1 -3
- package/es/shared/assets/img/notfound.png.js +1 -3
- package/es/shared/assets/img/qr.png.js +1 -3
- package/es/shared/assets/img/success.png.js +1 -3
- package/es/shared/assets/img/video.png.js +1 -3
- package/es/shared/assets/img/video_default_cover.png.js +1 -3
- package/es/shared/assets/img/xb_big.png.js +1 -3
- package/es/shared/assets/img/xb_small.png.js +1 -3
- package/es/shared/components/SelectPage/SelectPage.vue.js +1 -61
- package/es/shared/components/SelectPage/index.js +1 -2
- package/es/shared/components/SlotRender/SlotRender.js +1 -35
- package/es/shared/components/SlotRender/index.js +1 -2
- package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -36
- package/es/shared/components/SvgIcon/index.js +1 -2
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -77
- package/es/shared/components/TextOverTooltip/index.js +1 -2
- package/es/shared/components/VueDraggable/index.js +1 -2
- package/es/shared/components/VueDraggable/src/core/componentBuilderHelper.js +1 -35
- package/es/shared/components/VueDraggable/src/core/componentStructure.js +1 -54
- package/es/shared/components/VueDraggable/src/core/renderHelper.js +1 -47
- package/es/shared/components/VueDraggable/src/core/sortableEvents.js +1 -14
- package/es/shared/components/VueDraggable/src/util/console.js +1 -9
- package/es/shared/components/VueDraggable/src/util/htmlHelper.js +1 -11
- package/es/shared/components/VueDraggable/src/util/string.js +1 -11
- package/es/shared/components/VueDraggable/src/util/tags.js +1 -130
- package/es/shared/components/VueDraggable/src/vuedraggable.js +1 -265
- package/es/shared/components/no-data/NoData.vue.js +1 -74
- package/es/shared/components/no-data/index.js +1 -2
- package/es/shared/components/player-vod/player.js +1 -121
- package/es/shared/components/player-vod/video-modal.js +1 -91
- package/es/shared/global/variable.js +1 -3
- package/es/shared/utils/anime.js +1 -129
- package/es/shared/utils/colorLog.js +1 -53
- package/es/shared/utils/index.js +1 -167
- package/es/shared/utils/loadViewer.js +1 -11
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -63
- package/es/shared/utils/tapable/AsyncParallelHook.js +1 -27
- package/es/shared/utils/tapable/AsyncSeriesBailHook.js +1 -18
- package/es/shared/utils/tapable/AsyncSeriesHook.js +1 -27
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +1 -12
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +1 -22
- package/es/shared/utils/tapable/Hook.js +1 -140
- package/es/shared/utils/tapable/HookCodeFactory.js +1 -456
- package/es/shared/utils/tapable/SyncBailHook.js +1 -19
- package/es/shared/utils/tapable/SyncHook.js +1 -34
- package/es/shared/utils/tapable/SyncLoopHook.js +1 -13
- package/es/shared/utils/tapable/SyncWaterfallHook.js +1 -47
- package/es/shared/utils/utilExpand.js +1 -781
- package/es/shared/utils/vexutils.js +1 -59
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -1,159 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cloneDeep, isArray } from 'lodash-es';
|
|
3
|
-
import { unref, defineComponent } from 'vue';
|
|
4
|
-
import { VxeEventListenerNameList } from '../../constants/index.js';
|
|
5
|
-
import { eventListener2EventName } from '../../utils/index.js';
|
|
6
|
-
import { useConfigHooks } from './useConfigHooks.js';
|
|
7
|
-
import { useDataHooks } from './useDataHooks.js';
|
|
8
|
-
import { useDomInsertHooks } from './useDomInsertHooks.js';
|
|
9
|
-
import { useEventHooks } from './useEventHooks.js';
|
|
10
|
-
import { useExposeHooks } from './useExposeHooks.js';
|
|
11
|
-
import { useFieldHooks } from './useFieldHooks.js';
|
|
12
|
-
import { useSetupHooks } from './useSetupHooks.js';
|
|
13
|
-
|
|
14
|
-
const createTableHooks = (() => {
|
|
15
|
-
let tapHooks = null;
|
|
16
|
-
function create() {
|
|
17
|
-
return Object.freeze({
|
|
18
|
-
configHooks: useConfigHooks().create(),
|
|
19
|
-
fieldHooks: useFieldHooks().create(),
|
|
20
|
-
eventHooks: useEventHooks().create(),
|
|
21
|
-
dataHooks: useDataHooks().create(),
|
|
22
|
-
setupHooks: useSetupHooks().create(),
|
|
23
|
-
domInsertHooks: useDomInsertHooks().create(),
|
|
24
|
-
exposeHooks: useExposeHooks().create()
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
return () => {
|
|
28
|
-
return tapHooks || (tapHooks = create());
|
|
29
|
-
};
|
|
30
|
-
})();
|
|
31
|
-
function applyTableConfigHooks(hooks, config) {
|
|
32
|
-
const result = hooks.configHooks.config.call(cloneDeep(config));
|
|
33
|
-
const propertyHooks = [
|
|
34
|
-
"rowConfig",
|
|
35
|
-
"editConfig",
|
|
36
|
-
"columnConfig",
|
|
37
|
-
"resizableConfig",
|
|
38
|
-
"seqConfig",
|
|
39
|
-
"sortConfig",
|
|
40
|
-
"filterConfig",
|
|
41
|
-
"radioConfig",
|
|
42
|
-
"checkboxConfig",
|
|
43
|
-
"expandConfig",
|
|
44
|
-
"treeConfig",
|
|
45
|
-
"mouseConfig",
|
|
46
|
-
"menuConfig",
|
|
47
|
-
"keyboardConfig",
|
|
48
|
-
"scrollY",
|
|
49
|
-
"scrollX",
|
|
50
|
-
"editRules"
|
|
51
|
-
];
|
|
52
|
-
propertyHooks.forEach((hookName) => {
|
|
53
|
-
result[hookName] = hooks.configHooks[hookName].call(result[hookName], result);
|
|
54
|
-
});
|
|
55
|
-
return result;
|
|
56
|
-
}
|
|
57
|
-
function applyTableFieldHooks(hooks, fieldList, config, context) {
|
|
58
|
-
hooks.fieldHooks.fieldStart.promise(config, context);
|
|
59
|
-
let result = traverseFieldList(cloneDeep(fieldList));
|
|
60
|
-
result = hooks.fieldHooks.fieldList.call(result, config, context);
|
|
61
|
-
hooks.fieldHooks.fieldEnd.promise(config, context);
|
|
62
|
-
return result;
|
|
63
|
-
function traverseFieldList(fieldList2) {
|
|
64
|
-
return fieldList2.reduce((finFieldList, field, index) => {
|
|
65
|
-
const before = [];
|
|
66
|
-
const after = [];
|
|
67
|
-
let removed = false;
|
|
68
|
-
field = hooks.fieldHooks.field.call(
|
|
69
|
-
field,
|
|
70
|
-
{
|
|
71
|
-
index,
|
|
72
|
-
remove() {
|
|
73
|
-
removed = true;
|
|
74
|
-
},
|
|
75
|
-
insertAfter(field2) {
|
|
76
|
-
after.push(...arrayed(field2));
|
|
77
|
-
},
|
|
78
|
-
insertBefore(field2) {
|
|
79
|
-
before.push(...arrayed(field2));
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
config,
|
|
83
|
-
context
|
|
84
|
-
);
|
|
85
|
-
finFieldList.push(...before);
|
|
86
|
-
if (!removed) {
|
|
87
|
-
finFieldList.push(field);
|
|
88
|
-
if (isArray(field.children)) {
|
|
89
|
-
field.children = traverseFieldList(field.children);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
finFieldList.push(...after);
|
|
93
|
-
return finFieldList;
|
|
94
|
-
}, []);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function createTableEventHandlers({
|
|
98
|
-
hooks,
|
|
99
|
-
config,
|
|
100
|
-
$table,
|
|
101
|
-
emits,
|
|
102
|
-
context
|
|
103
|
-
}) {
|
|
104
|
-
return VxeEventListenerNameList.reduce(
|
|
105
|
-
(result, eventName) => {
|
|
106
|
-
result[eventName] = (payload) => handler(eventName, payload);
|
|
107
|
-
return result;
|
|
108
|
-
},
|
|
109
|
-
{}
|
|
110
|
-
);
|
|
111
|
-
function handler(eventListenerName, payload) {
|
|
112
|
-
var _a;
|
|
113
|
-
const eventName = eventListener2EventName(eventListenerName);
|
|
114
|
-
emits(eventName, payload);
|
|
115
|
-
(_a = hooks.eventHooks[eventListenerName]) == null ? void 0 : _a.promise(
|
|
116
|
-
payload,
|
|
117
|
-
unref(config),
|
|
118
|
-
{ $table: unref($table), emits, ...context }
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
function createDataTransfer(hooks, config, $table) {
|
|
123
|
-
return async (data) => await data.reduce(async (res, rowData, index) => {
|
|
124
|
-
const before = [];
|
|
125
|
-
const after = [];
|
|
126
|
-
let removed = false;
|
|
127
|
-
await hooks.dataHooks.data.promise(rowData, unref(config), {
|
|
128
|
-
index,
|
|
129
|
-
$table,
|
|
130
|
-
insertBefore(data2) {
|
|
131
|
-
before.push(...arrayed(data2));
|
|
132
|
-
},
|
|
133
|
-
insertAfter(data2) {
|
|
134
|
-
after.push(...arrayed(data2));
|
|
135
|
-
},
|
|
136
|
-
remove() {
|
|
137
|
-
removed = true;
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
const nextRes = await res;
|
|
141
|
-
nextRes.push(...before);
|
|
142
|
-
!removed && nextRes.push(rowData);
|
|
143
|
-
nextRes.push(...after);
|
|
144
|
-
return nextRes;
|
|
145
|
-
}, Promise.resolve([]));
|
|
146
|
-
}
|
|
147
|
-
function createDomInsertComponent(hooks) {
|
|
148
|
-
const header = defineComponent({
|
|
149
|
-
name: "IhoTableHeader",
|
|
150
|
-
render: () => hooks.domInsertHooks.header.call([])
|
|
151
|
-
});
|
|
152
|
-
const footer = defineComponent({
|
|
153
|
-
name: "IhoTableFooter",
|
|
154
|
-
render: () => hooks.domInsertHooks.footer.call([])
|
|
155
|
-
});
|
|
156
|
-
return { header, footer };
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export { applyTableConfigHooks, applyTableFieldHooks, createDataTransfer, createDomInsertComponent, createTableEventHandlers, createTableHooks };
|
|
1
|
+
import{arrayed as o}from"../../../../../shared/utils/index.js";import{cloneDeep as e,isArray as r}from"lodash-es";import{unref as s,defineComponent as t}from"vue";import{VxeEventListenerNameList as n}from"../../constants/index.js";import{eventListener2EventName as i}from"../../utils/index.js";import{useConfigHooks as f}from"./useConfigHooks.js";import{useDataHooks as l}from"./useDataHooks.js";import{useDomInsertHooks as a}from"./useDomInsertHooks.js";import{useEventHooks as c}from"./useEventHooks.js";import{useExposeHooks as u}from"./useExposeHooks.js";import{useFieldHooks as m}from"./useFieldHooks.js";import{useSetupHooks as d}from"./useSetupHooks.js";const p=(()=>{let o=null;return()=>o||(o=Object.freeze({configHooks:f().create(),fieldHooks:m().create(),eventHooks:c().create(),dataHooks:l().create(),setupHooks:d().create(),domInsertHooks:a().create(),exposeHooks:u().create()}))})();function k(o,r){const s=o.configHooks.config.call(e(r));return["rowConfig","editConfig","columnConfig","resizableConfig","seqConfig","sortConfig","filterConfig","radioConfig","checkboxConfig","expandConfig","treeConfig","mouseConfig","menuConfig","keyboardConfig","scrollY","scrollX","editRules"].forEach((e=>{s[e]=o.configHooks[e].call(s[e],s)})),s}function H(s,t,n,i){s.fieldHooks.fieldStart.promise(n,i);let f=function e(t){return t.reduce(((t,f,l)=>{const a=[],c=[];let u=!1;return f=s.fieldHooks.field.call(f,{index:l,remove(){u=!0},insertAfter(e){c.push(...o(e))},insertBefore(e){a.push(...o(e))}},n,i),t.push(...a),u||(t.push(f),r(f.children)&&(f.children=e(f.children))),t.push(...c),t}),[])}(e(t));return f=s.fieldHooks.fieldList.call(f,n,i),s.fieldHooks.fieldEnd.promise(n,i),f}function h({hooks:o,config:e,$table:r,emits:t,context:f}){return n.reduce(((n,l)=>(n[l]=n=>function(n,l){var a;const c=i(n);t(c,l),null==(a=o.eventHooks[n])||a.promise(l,s(e),{$table:s(r),emits:t,...f})}(l,n),n)),{})}function g(e,r,t){return async n=>await n.reduce((async(n,i,f)=>{const l=[],a=[];let c=!1;await e.dataHooks.data.promise(i,s(r),{index:f,$table:t,insertBefore(e){l.push(...o(e))},insertAfter(e){a.push(...o(e))},remove(){c=!0}});const u=await n;return u.push(...l),!c&&u.push(i),u.push(...a),u}),Promise.resolve([]))}function C(o){return{header:t({name:"IhoTableHeader",render:()=>o.domInsertHooks.header.call([])}),footer:t({name:"IhoTableFooter",render:()=>o.domInsertHooks.footer.call([])})}}export{k as applyTableConfigHooks,H as applyTableFieldHooks,g as createDataTransfer,C as createDomInsertComponent,h as createTableEventHandlers,p as createTableHooks};
|
|
@@ -1,67 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '../../../../../shared/utils/tapable/SyncBailHook.js';
|
|
3
|
-
import SyncWaterfallHook from '../../../../../shared/utils/tapable/SyncWaterfallHook.js';
|
|
4
|
-
import '../../../../../shared/utils/tapable/SyncLoopHook.js';
|
|
5
|
-
import '../../../../../shared/utils/tapable/AsyncParallelHook.js';
|
|
6
|
-
import '../../../../../shared/utils/tapable/AsyncParallelBailHook.js';
|
|
7
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesHook.js';
|
|
8
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesBailHook.js';
|
|
9
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js';
|
|
10
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js';
|
|
11
|
-
import { AbstractConfigHooks } from '../../types/pluginType.js';
|
|
12
|
-
|
|
13
|
-
class ConfigHooks extends AbstractConfigHooks {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.config = new SyncWaterfallHook(["config"]);
|
|
17
|
-
this.rowConfig = new SyncWaterfallHook(["rowConfig", "config"]);
|
|
18
|
-
this.editConfig = new SyncWaterfallHook(["editConfig", "config"]);
|
|
19
|
-
this.columnConfig = new SyncWaterfallHook([
|
|
20
|
-
"columnConfig",
|
|
21
|
-
"config"
|
|
22
|
-
]);
|
|
23
|
-
this.resizableConfig = new SyncWaterfallHook([
|
|
24
|
-
"resizableConfig",
|
|
25
|
-
"config"
|
|
26
|
-
]);
|
|
27
|
-
this.seqConfig = new SyncWaterfallHook(["seqConfig", "config"]);
|
|
28
|
-
this.sortConfig = new SyncWaterfallHook(["sortConfig", "config"]);
|
|
29
|
-
this.filterConfig = new SyncWaterfallHook([
|
|
30
|
-
"filterConfig",
|
|
31
|
-
"config"
|
|
32
|
-
]);
|
|
33
|
-
this.radioConfig = new SyncWaterfallHook([
|
|
34
|
-
"radioConfig",
|
|
35
|
-
"config"
|
|
36
|
-
]);
|
|
37
|
-
this.checkboxConfig = new SyncWaterfallHook([
|
|
38
|
-
"checkboxConfig",
|
|
39
|
-
"config"
|
|
40
|
-
]);
|
|
41
|
-
this.expandConfig = new SyncWaterfallHook([
|
|
42
|
-
"expandConfig",
|
|
43
|
-
"config"
|
|
44
|
-
]);
|
|
45
|
-
this.treeConfig = new SyncWaterfallHook(["treeConfig", "config"]);
|
|
46
|
-
this.mouseConfig = new SyncWaterfallHook([
|
|
47
|
-
"mouseConfig",
|
|
48
|
-
"config"
|
|
49
|
-
]);
|
|
50
|
-
this.menuConfig = new SyncWaterfallHook(["menuConfig", "config"]);
|
|
51
|
-
this.keyboardConfig = new SyncWaterfallHook([
|
|
52
|
-
"keyboardConfig",
|
|
53
|
-
"config"
|
|
54
|
-
]);
|
|
55
|
-
this.scrollY = new SyncWaterfallHook(["scrollY", "config"]);
|
|
56
|
-
this.scrollX = new SyncWaterfallHook(["scrollX", "config"]);
|
|
57
|
-
this.editRules = new SyncWaterfallHook(["editRules", "config"]);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function useConfigHooks() {
|
|
61
|
-
function create() {
|
|
62
|
-
return new ConfigHooks();
|
|
63
|
-
}
|
|
64
|
-
return { create };
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export { useConfigHooks };
|
|
1
|
+
import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import o from"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{AbstractConfigHooks as i}from"../../types/pluginType.js";class n extends i{constructor(){super(...arguments),this.config=new o(["config"]),this.rowConfig=new o(["rowConfig","config"]),this.editConfig=new o(["editConfig","config"]),this.columnConfig=new o(["columnConfig","config"]),this.resizableConfig=new o(["resizableConfig","config"]),this.seqConfig=new o(["seqConfig","config"]),this.sortConfig=new o(["sortConfig","config"]),this.filterConfig=new o(["filterConfig","config"]),this.radioConfig=new o(["radioConfig","config"]),this.checkboxConfig=new o(["checkboxConfig","config"]),this.expandConfig=new o(["expandConfig","config"]),this.treeConfig=new o(["treeConfig","config"]),this.mouseConfig=new o(["mouseConfig","config"]),this.menuConfig=new o(["menuConfig","config"]),this.keyboardConfig=new o(["keyboardConfig","config"]),this.scrollY=new o(["scrollY","config"]),this.scrollX=new o(["scrollX","config"]),this.editRules=new o(["editRules","config"])}}function e(){return{create:function(){return new n}}}export{e as useConfigHooks};
|
|
@@ -1,26 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '../../../../../shared/utils/tapable/SyncBailHook.js';
|
|
3
|
-
import '../../../../../shared/utils/tapable/SyncWaterfallHook.js';
|
|
4
|
-
import '../../../../../shared/utils/tapable/SyncLoopHook.js';
|
|
5
|
-
import '../../../../../shared/utils/tapable/AsyncParallelHook.js';
|
|
6
|
-
import '../../../../../shared/utils/tapable/AsyncParallelBailHook.js';
|
|
7
|
-
import AsyncSeriesHook from '../../../../../shared/utils/tapable/AsyncSeriesHook.js';
|
|
8
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesBailHook.js';
|
|
9
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js';
|
|
10
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js';
|
|
11
|
-
import { AbstractDataHooks } from '../../types/pluginType.js';
|
|
12
|
-
|
|
13
|
-
class TableDataHooks extends AbstractDataHooks {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.data = new AsyncSeriesHook(["rowData", "context", "config"]);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
function useDataHooks() {
|
|
20
|
-
function create() {
|
|
21
|
-
return new TableDataHooks();
|
|
22
|
-
}
|
|
23
|
-
return { create };
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { useDataHooks };
|
|
1
|
+
import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import s from"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{AbstractDataHooks as t}from"../../types/pluginType.js";class a extends t{constructor(){super(...arguments),this.data=new s(["rowData","context","config"])}}function e(){return{create:function(){return new a}}}export{e as useDataHooks};
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '../../../../../shared/utils/tapable/SyncBailHook.js';
|
|
3
|
-
import SyncWaterfallHook from '../../../../../shared/utils/tapable/SyncWaterfallHook.js';
|
|
4
|
-
import '../../../../../shared/utils/tapable/SyncLoopHook.js';
|
|
5
|
-
import '../../../../../shared/utils/tapable/AsyncParallelHook.js';
|
|
6
|
-
import '../../../../../shared/utils/tapable/AsyncParallelBailHook.js';
|
|
7
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesHook.js';
|
|
8
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesBailHook.js';
|
|
9
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js';
|
|
10
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js';
|
|
11
|
-
import { AbstractDomInsertHooks } from '../../types/pluginType.js';
|
|
12
|
-
|
|
13
|
-
class DomInsertHooks extends AbstractDomInsertHooks {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.header = new SyncWaterfallHook(["nodes"]);
|
|
17
|
-
this.footer = new SyncWaterfallHook(["nodes"]);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
function useDomInsertHooks() {
|
|
21
|
-
function create() {
|
|
22
|
-
return new DomInsertHooks();
|
|
23
|
-
}
|
|
24
|
-
return { create };
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export { useDomInsertHooks };
|
|
1
|
+
import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import s from"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{AbstractDomInsertHooks as e}from"../../types/pluginType.js";class o extends e{constructor(){super(...arguments),this.header=new s(["nodes"]),this.footer=new s(["nodes"])}}function t(){return{create:function(){return new o}}}export{t as useDomInsertHooks};
|
|
@@ -1,280 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '../../../../../shared/utils/tapable/SyncBailHook.js';
|
|
3
|
-
import '../../../../../shared/utils/tapable/SyncWaterfallHook.js';
|
|
4
|
-
import '../../../../../shared/utils/tapable/SyncLoopHook.js';
|
|
5
|
-
import AsyncParallelHook from '../../../../../shared/utils/tapable/AsyncParallelHook.js';
|
|
6
|
-
import '../../../../../shared/utils/tapable/AsyncParallelBailHook.js';
|
|
7
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesHook.js';
|
|
8
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesBailHook.js';
|
|
9
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js';
|
|
10
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js';
|
|
11
|
-
import { getCurrentInstance, onMounted, onBeforeUnmount, provide } from 'vue';
|
|
12
|
-
import { InjectionIhoTableEventListener } from '../../constants/index.js';
|
|
13
|
-
import { AbstractEventHooks } from '../../types/pluginType.js';
|
|
14
|
-
|
|
15
|
-
class EventHooks extends AbstractEventHooks {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.onKeydownStart = new AsyncParallelHook([
|
|
19
|
-
"event",
|
|
20
|
-
"context",
|
|
21
|
-
"config"
|
|
22
|
-
]);
|
|
23
|
-
this.onKeydown = new AsyncParallelHook([
|
|
24
|
-
"event",
|
|
25
|
-
"context",
|
|
26
|
-
"config"
|
|
27
|
-
]);
|
|
28
|
-
this.onKeydownEnd = new AsyncParallelHook([
|
|
29
|
-
"event",
|
|
30
|
-
"context",
|
|
31
|
-
"config"
|
|
32
|
-
]);
|
|
33
|
-
this.onPaste = new AsyncParallelHook([
|
|
34
|
-
"event",
|
|
35
|
-
"context",
|
|
36
|
-
"config"
|
|
37
|
-
]);
|
|
38
|
-
this.onCopy = new AsyncParallelHook([
|
|
39
|
-
"event",
|
|
40
|
-
"context",
|
|
41
|
-
"config"
|
|
42
|
-
]);
|
|
43
|
-
this.onCut = new AsyncParallelHook([
|
|
44
|
-
"event",
|
|
45
|
-
"context",
|
|
46
|
-
"config"
|
|
47
|
-
]);
|
|
48
|
-
this.onCurrentChange = new AsyncParallelHook([
|
|
49
|
-
"event",
|
|
50
|
-
"context",
|
|
51
|
-
"config"
|
|
52
|
-
]);
|
|
53
|
-
this.onRadioChange = new AsyncParallelHook([
|
|
54
|
-
"event",
|
|
55
|
-
"context",
|
|
56
|
-
"config"
|
|
57
|
-
]);
|
|
58
|
-
this.onCheckboxChange = new AsyncParallelHook([
|
|
59
|
-
"event",
|
|
60
|
-
"context",
|
|
61
|
-
"config"
|
|
62
|
-
]);
|
|
63
|
-
this.onCheckboxAll = new AsyncParallelHook([
|
|
64
|
-
"event",
|
|
65
|
-
"context",
|
|
66
|
-
"config"
|
|
67
|
-
]);
|
|
68
|
-
this.onCheckboxRangeStart = new AsyncParallelHook(["event", "context", "config"]);
|
|
69
|
-
this.onCheckboxRangeChange = new AsyncParallelHook(["event", "context", "config"]);
|
|
70
|
-
this.onCheckboxRangeEnd = new AsyncParallelHook(
|
|
71
|
-
["event", "context", "config"]
|
|
72
|
-
);
|
|
73
|
-
this.onCellClick = new AsyncParallelHook([
|
|
74
|
-
"event",
|
|
75
|
-
"context",
|
|
76
|
-
"config"
|
|
77
|
-
]);
|
|
78
|
-
this.onCellDblclick = new AsyncParallelHook([
|
|
79
|
-
"event",
|
|
80
|
-
"context",
|
|
81
|
-
"config"
|
|
82
|
-
]);
|
|
83
|
-
this.onCellMenu = new AsyncParallelHook([
|
|
84
|
-
"event",
|
|
85
|
-
"context",
|
|
86
|
-
"config"
|
|
87
|
-
]);
|
|
88
|
-
this.onCellMouseenter = new AsyncParallelHook([
|
|
89
|
-
"event",
|
|
90
|
-
"context",
|
|
91
|
-
"config"
|
|
92
|
-
]);
|
|
93
|
-
this.onCellMouseleave = new AsyncParallelHook([
|
|
94
|
-
"event",
|
|
95
|
-
"context",
|
|
96
|
-
"config"
|
|
97
|
-
]);
|
|
98
|
-
this.onHeaderCellClick = new AsyncParallelHook([
|
|
99
|
-
"event",
|
|
100
|
-
"context",
|
|
101
|
-
"config"
|
|
102
|
-
]);
|
|
103
|
-
this.onHeaderCellDblclick = new AsyncParallelHook(["event", "context", "config"]);
|
|
104
|
-
this.onHeaderCellMenu = new AsyncParallelHook([
|
|
105
|
-
"event",
|
|
106
|
-
"context",
|
|
107
|
-
"config"
|
|
108
|
-
]);
|
|
109
|
-
this.onFooterCellClick = new AsyncParallelHook([
|
|
110
|
-
"event",
|
|
111
|
-
"context",
|
|
112
|
-
"config"
|
|
113
|
-
]);
|
|
114
|
-
this.onFooterCellDblclick = new AsyncParallelHook(["event", "context", "config"]);
|
|
115
|
-
this.onFooterCellMenu = new AsyncParallelHook([
|
|
116
|
-
"event",
|
|
117
|
-
"context",
|
|
118
|
-
"config"
|
|
119
|
-
]);
|
|
120
|
-
this.onSortChange = new AsyncParallelHook([
|
|
121
|
-
"event",
|
|
122
|
-
"context",
|
|
123
|
-
"config"
|
|
124
|
-
]);
|
|
125
|
-
this.onFilterChange = new AsyncParallelHook([
|
|
126
|
-
"event",
|
|
127
|
-
"context",
|
|
128
|
-
"config"
|
|
129
|
-
]);
|
|
130
|
-
this.onFilterVisible = new AsyncParallelHook([
|
|
131
|
-
"event",
|
|
132
|
-
"context",
|
|
133
|
-
"config"
|
|
134
|
-
]);
|
|
135
|
-
this.onResizableChange = new AsyncParallelHook([
|
|
136
|
-
"event",
|
|
137
|
-
"context",
|
|
138
|
-
"config"
|
|
139
|
-
]);
|
|
140
|
-
this.onToggleRowExpand = new AsyncParallelHook([
|
|
141
|
-
"event",
|
|
142
|
-
"context",
|
|
143
|
-
"config"
|
|
144
|
-
]);
|
|
145
|
-
this.onToggleTreeExpand = new AsyncParallelHook(
|
|
146
|
-
["event", "context", "config"]
|
|
147
|
-
);
|
|
148
|
-
this.onMenuClick = new AsyncParallelHook([
|
|
149
|
-
"event",
|
|
150
|
-
"context",
|
|
151
|
-
"config"
|
|
152
|
-
]);
|
|
153
|
-
this.onEditClosed = new AsyncParallelHook([
|
|
154
|
-
"event",
|
|
155
|
-
"context",
|
|
156
|
-
"config"
|
|
157
|
-
]);
|
|
158
|
-
this.onEditActived = new AsyncParallelHook([
|
|
159
|
-
"event",
|
|
160
|
-
"context",
|
|
161
|
-
"config"
|
|
162
|
-
]);
|
|
163
|
-
this.onEditDisabled = new AsyncParallelHook([
|
|
164
|
-
"event",
|
|
165
|
-
"context",
|
|
166
|
-
"config"
|
|
167
|
-
]);
|
|
168
|
-
this.onValidError = new AsyncParallelHook([
|
|
169
|
-
"event",
|
|
170
|
-
"context",
|
|
171
|
-
"config"
|
|
172
|
-
]);
|
|
173
|
-
this.onScroll = new AsyncParallelHook([
|
|
174
|
-
"event",
|
|
175
|
-
"context",
|
|
176
|
-
"config"
|
|
177
|
-
]);
|
|
178
|
-
this.onCustom = new AsyncParallelHook([
|
|
179
|
-
"event",
|
|
180
|
-
"context",
|
|
181
|
-
"config"
|
|
182
|
-
]);
|
|
183
|
-
this.onOpenFnr = new AsyncParallelHook([
|
|
184
|
-
"event",
|
|
185
|
-
"context",
|
|
186
|
-
"config"
|
|
187
|
-
]);
|
|
188
|
-
this.onFnrChange = new AsyncParallelHook([
|
|
189
|
-
"event",
|
|
190
|
-
"context",
|
|
191
|
-
"config"
|
|
192
|
-
]);
|
|
193
|
-
this.onFnrFind = new AsyncParallelHook([
|
|
194
|
-
"event",
|
|
195
|
-
"context",
|
|
196
|
-
"config"
|
|
197
|
-
]);
|
|
198
|
-
this.onFnrFindAll = new AsyncParallelHook([
|
|
199
|
-
"event",
|
|
200
|
-
"context",
|
|
201
|
-
"config"
|
|
202
|
-
]);
|
|
203
|
-
this.onFnrReplace = new AsyncParallelHook([
|
|
204
|
-
"event",
|
|
205
|
-
"context",
|
|
206
|
-
"config"
|
|
207
|
-
]);
|
|
208
|
-
this.onFnrReplaceAll = new AsyncParallelHook([
|
|
209
|
-
"event",
|
|
210
|
-
"context",
|
|
211
|
-
"config"
|
|
212
|
-
]);
|
|
213
|
-
this.onCellAreaCopy = new AsyncParallelHook([
|
|
214
|
-
"event",
|
|
215
|
-
"context",
|
|
216
|
-
"config"
|
|
217
|
-
]);
|
|
218
|
-
this.onCellAreaCut = new AsyncParallelHook([
|
|
219
|
-
"event",
|
|
220
|
-
"context",
|
|
221
|
-
"config"
|
|
222
|
-
]);
|
|
223
|
-
this.onCellAreaPaste = new AsyncParallelHook([
|
|
224
|
-
"event",
|
|
225
|
-
"context",
|
|
226
|
-
"config"
|
|
227
|
-
]);
|
|
228
|
-
this.onCellAreaMerge = new AsyncParallelHook([
|
|
229
|
-
"event",
|
|
230
|
-
"context",
|
|
231
|
-
"config"
|
|
232
|
-
]);
|
|
233
|
-
this.onClearCellAreaMerge = new AsyncParallelHook(["event", "context", "config"]);
|
|
234
|
-
this.onHeaderCellAreaSelection = new AsyncParallelHook(["event", "context", "config"]);
|
|
235
|
-
this.onCellAreaSelectionStart = new AsyncParallelHook(["event", "context", "config"]);
|
|
236
|
-
this.onCellAreaSelectionDrag = new AsyncParallelHook(["event", "context", "config"]);
|
|
237
|
-
this.onCellAreaSelectionEnd = new AsyncParallelHook(["event", "context", "config"]);
|
|
238
|
-
this.onCellAreaExtensionStart = new AsyncParallelHook(["event", "context", "config"]);
|
|
239
|
-
this.onCellAreaExtensionDrag = new AsyncParallelHook(["event", "context", "config"]);
|
|
240
|
-
this.onCellAreaExtensionEnd = new AsyncParallelHook(["event", "context", "config"]);
|
|
241
|
-
this.onCellAreaArrowsStart = new AsyncParallelHook(["event", "context", "config"]);
|
|
242
|
-
this.onCellAreaArrowsEnd = new AsyncParallelHook(["event", "context", "config"]);
|
|
243
|
-
this.onActiveCellChangeStart = new AsyncParallelHook(["event", "context", "config"]);
|
|
244
|
-
this.onActiveCellChangeEnd = new AsyncParallelHook(["event", "context", "config"]);
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
function useEventHooks() {
|
|
248
|
-
function create() {
|
|
249
|
-
return new EventHooks();
|
|
250
|
-
}
|
|
251
|
-
return { create };
|
|
252
|
-
}
|
|
253
|
-
class IhoTableEventListener {
|
|
254
|
-
constructor() {
|
|
255
|
-
this.eventMap = /* @__PURE__ */ new Map();
|
|
256
|
-
}
|
|
257
|
-
addEventListener(key, handler) {
|
|
258
|
-
if (!getCurrentInstance())
|
|
259
|
-
throw new Error("addEventListener can only used in setup environment!");
|
|
260
|
-
const eventSet = this.eventMap.get(key) || /* @__PURE__ */ new Set();
|
|
261
|
-
this.eventMap.set(key, eventSet);
|
|
262
|
-
onMounted(() => eventSet.add(handler));
|
|
263
|
-
onBeforeUnmount(() => eventSet.delete(handler));
|
|
264
|
-
}
|
|
265
|
-
trigger(key, ...payload) {
|
|
266
|
-
var _a;
|
|
267
|
-
(_a = this.eventMap.get(key)) == null ? void 0 : _a.forEach((handler) => {
|
|
268
|
-
handler(...payload);
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
function provideIhoTableEventListener() {
|
|
273
|
-
if (!getCurrentInstance())
|
|
274
|
-
throw new Error("provideIhoTableEventListener can only used in setup environment!");
|
|
275
|
-
const listener = new IhoTableEventListener();
|
|
276
|
-
provide(InjectionIhoTableEventListener, listener);
|
|
277
|
-
return listener;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
export { IhoTableEventListener, provideIhoTableEventListener, useEventHooks };
|
|
1
|
+
import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import e from"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{getCurrentInstance as n,onMounted as t,onBeforeUnmount as o,provide as i}from"vue";import{InjectionIhoTableEventListener as c}from"../../constants/index.js";import{AbstractEventHooks as s}from"../../types/pluginType.js";class l extends s{constructor(){super(...arguments),this.onKeydownStart=new e(["event","context","config"]),this.onKeydown=new e(["event","context","config"]),this.onKeydownEnd=new e(["event","context","config"]),this.onPaste=new e(["event","context","config"]),this.onCopy=new e(["event","context","config"]),this.onCut=new e(["event","context","config"]),this.onCurrentChange=new e(["event","context","config"]),this.onRadioChange=new e(["event","context","config"]),this.onCheckboxChange=new e(["event","context","config"]),this.onCheckboxAll=new e(["event","context","config"]),this.onCheckboxRangeStart=new e(["event","context","config"]),this.onCheckboxRangeChange=new e(["event","context","config"]),this.onCheckboxRangeEnd=new e(["event","context","config"]),this.onCellClick=new e(["event","context","config"]),this.onCellDblclick=new e(["event","context","config"]),this.onCellMenu=new e(["event","context","config"]),this.onCellMouseenter=new e(["event","context","config"]),this.onCellMouseleave=new e(["event","context","config"]),this.onHeaderCellClick=new e(["event","context","config"]),this.onHeaderCellDblclick=new e(["event","context","config"]),this.onHeaderCellMenu=new e(["event","context","config"]),this.onFooterCellClick=new e(["event","context","config"]),this.onFooterCellDblclick=new e(["event","context","config"]),this.onFooterCellMenu=new e(["event","context","config"]),this.onSortChange=new e(["event","context","config"]),this.onFilterChange=new e(["event","context","config"]),this.onFilterVisible=new e(["event","context","config"]),this.onResizableChange=new e(["event","context","config"]),this.onToggleRowExpand=new e(["event","context","config"]),this.onToggleTreeExpand=new e(["event","context","config"]),this.onMenuClick=new e(["event","context","config"]),this.onEditClosed=new e(["event","context","config"]),this.onEditActived=new e(["event","context","config"]),this.onEditDisabled=new e(["event","context","config"]),this.onValidError=new e(["event","context","config"]),this.onScroll=new e(["event","context","config"]),this.onCustom=new e(["event","context","config"]),this.onOpenFnr=new e(["event","context","config"]),this.onFnrChange=new e(["event","context","config"]),this.onFnrFind=new e(["event","context","config"]),this.onFnrFindAll=new e(["event","context","config"]),this.onFnrReplace=new e(["event","context","config"]),this.onFnrReplaceAll=new e(["event","context","config"]),this.onCellAreaCopy=new e(["event","context","config"]),this.onCellAreaCut=new e(["event","context","config"]),this.onCellAreaPaste=new e(["event","context","config"]),this.onCellAreaMerge=new e(["event","context","config"]),this.onClearCellAreaMerge=new e(["event","context","config"]),this.onHeaderCellAreaSelection=new e(["event","context","config"]),this.onCellAreaSelectionStart=new e(["event","context","config"]),this.onCellAreaSelectionDrag=new e(["event","context","config"]),this.onCellAreaSelectionEnd=new e(["event","context","config"]),this.onCellAreaExtensionStart=new e(["event","context","config"]),this.onCellAreaExtensionDrag=new e(["event","context","config"]),this.onCellAreaExtensionEnd=new e(["event","context","config"]),this.onCellAreaArrowsStart=new e(["event","context","config"]),this.onCellAreaArrowsEnd=new e(["event","context","config"]),this.onActiveCellChangeStart=new e(["event","context","config"]),this.onActiveCellChangeEnd=new e(["event","context","config"])}}function r(){return{create:function(){return new l}}}class a{constructor(){this.eventMap=new Map}addEventListener(e,i){if(!n())throw new Error("addEventListener can only used in setup environment!");const c=this.eventMap.get(e)||new Set;this.eventMap.set(e,c),t((()=>c.add(i))),o((()=>c.delete(i)))}trigger(e,...n){var t;null==(t=this.eventMap.get(e))||t.forEach((e=>{e(...n)}))}}function h(){if(!n())throw new Error("provideIhoTableEventListener can only used in setup environment!");const e=new a;return i(c,e),e}export{a as IhoTableEventListener,h as provideIhoTableEventListener,r as useEventHooks};
|
|
@@ -1,26 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '../../../../../shared/utils/tapable/SyncBailHook.js';
|
|
3
|
-
import SyncWaterfallHook from '../../../../../shared/utils/tapable/SyncWaterfallHook.js';
|
|
4
|
-
import '../../../../../shared/utils/tapable/SyncLoopHook.js';
|
|
5
|
-
import '../../../../../shared/utils/tapable/AsyncParallelHook.js';
|
|
6
|
-
import '../../../../../shared/utils/tapable/AsyncParallelBailHook.js';
|
|
7
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesHook.js';
|
|
8
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesBailHook.js';
|
|
9
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js';
|
|
10
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js';
|
|
11
|
-
import { AbstractExposeHooks } from '../../types/pluginType.js';
|
|
12
|
-
|
|
13
|
-
class ExposeHooks extends AbstractExposeHooks {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.expose = new SyncWaterfallHook(["expose", "config", "context"]);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
function useExposeHooks() {
|
|
20
|
-
function create() {
|
|
21
|
-
return new ExposeHooks();
|
|
22
|
-
}
|
|
23
|
-
return { create };
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { useExposeHooks };
|
|
1
|
+
import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import s from"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{AbstractExposeHooks as e}from"../../types/pluginType.js";class o extends e{constructor(){super(...arguments),this.expose=new s(["expose","config","context"])}}function t(){return{create:function(){return new o}}}export{t as useExposeHooks};
|
|
@@ -1,38 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '../../../../../shared/utils/tapable/SyncBailHook.js';
|
|
3
|
-
import SyncWaterfallHook from '../../../../../shared/utils/tapable/SyncWaterfallHook.js';
|
|
4
|
-
import '../../../../../shared/utils/tapable/SyncLoopHook.js';
|
|
5
|
-
import AsyncParallelHook from '../../../../../shared/utils/tapable/AsyncParallelHook.js';
|
|
6
|
-
import '../../../../../shared/utils/tapable/AsyncParallelBailHook.js';
|
|
7
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesHook.js';
|
|
8
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesBailHook.js';
|
|
9
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js';
|
|
10
|
-
import '../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js';
|
|
11
|
-
import { AbstractFieldHooks } from '../../types/pluginType.js';
|
|
12
|
-
|
|
13
|
-
class FieldHooks extends AbstractFieldHooks {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.fieldStart = new AsyncParallelHook(["config", "context"]);
|
|
17
|
-
this.field = new SyncWaterfallHook([
|
|
18
|
-
"fieldItem",
|
|
19
|
-
"context",
|
|
20
|
-
"config",
|
|
21
|
-
"tableContext"
|
|
22
|
-
]);
|
|
23
|
-
this.fieldList = new SyncWaterfallHook([
|
|
24
|
-
"fieldList",
|
|
25
|
-
"config",
|
|
26
|
-
"context"
|
|
27
|
-
]);
|
|
28
|
-
this.fieldEnd = new AsyncParallelHook(["config", "context"]);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function useFieldHooks() {
|
|
32
|
-
function create() {
|
|
33
|
-
return new FieldHooks();
|
|
34
|
-
}
|
|
35
|
-
return { create };
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export { useFieldHooks };
|
|
1
|
+
import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import t from"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import e from"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{AbstractFieldHooks as s}from"../../types/pluginType.js";class o extends s{constructor(){super(...arguments),this.fieldStart=new e(["config","context"]),this.field=new t(["fieldItem","context","config","tableContext"]),this.fieldList=new t(["fieldList","config","context"]),this.fieldEnd=new e(["config","context"])}}function i(){return{create:function(){return new o}}}export{i as useFieldHooks};
|