/**
 * DevExtreme (esm/__internal/grids/tree_list/m_grid_view.js)
 * Version: 23.2.6 (build 24140-0112)
 * Build date: Sun May 19 2024
 *
 * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
 * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
 */
import _extends from "@babel/runtime/helpers/esm/extends";
import {
    gridViewModule,
    ResizingController
} from "../../grids/grid_core/views/m_grid_view";
import treeListCore from "./m_core";
class TreeListResizingController extends ResizingController {
    _getWidgetAriaLabel() {
        return "dxTreeList-ariaTreeList"
    }
    _toggleBestFitMode(isBestFit) {
        super._toggleBestFitMode(isBestFit);
        var $rowsTable = this._rowsView.getTableElement();
        $rowsTable.find(".dx-treelist-cell-expandable").toggleClass(this.addWidgetPrefix("best-fit"), isBestFit)
    }
}
treeListCore.registerModule("gridView", {
    defaultOptions: gridViewModule.defaultOptions,
    controllers: _extends(_extends({}, gridViewModule.controllers), {
        resizing: TreeListResizingController
    }),
    views: gridViewModule.views
});
