/**
 * DevExtreme (esm/__internal/grids/tree_list/m_validating.js)
 * Version: 24.1.7-build-24272-1937
 * Build date: Sat Sep 28 2024
 *
 * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
 * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
 */
import {
    validatingModule
} from "../../grids/grid_core/validating/m_validating";
import treeListCore from "./m_core";
const editingControllerExtender = Base => class extends(validatingModule.extenders.controllers.editing(Base)) {
    processDataItem(item) {
        super.processDataItemTreeListHack.apply(this, arguments)
    }
    processItems(items, e) {
        return super.processItemsTreeListHack.apply(this, arguments)
    }
};
treeListCore.registerModule("validating", {
    defaultOptions: validatingModule.defaultOptions,
    controllers: validatingModule.controllers,
    extenders: {
        controllers: {
            editing: editingControllerExtender,
            editorFactory: validatingModule.extenders.controllers.editorFactory
        },
        views: validatingModule.extenders.views
    }
});
