/**
 * DevExtreme (esm/__internal/ui/list/m_list.edit.decorator_menu_helper.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/
 */
const EditDecoratorMenuHelperMixin = {
    _menuEnabled() {
        return !!this._menuItems().length
    },
    _menuItems() {
        return this._list.option("menuItems")
    },
    _deleteEnabled() {
        return this._list.option("allowItemDeleting")
    },
    _fireMenuAction($itemElement, action) {
        this._list._itemEventHandlerByHandler($itemElement, action, {}, {
            excludeValidators: ["disabled", "readOnly"]
        })
    }
};
export default EditDecoratorMenuHelperMixin;
