/**
 * DevExtreme (cjs/__internal/ui/list/m_list.edit.decorator_menu_helper.js)
 * Version: 23.2.9 (build 24294-0112)
 * Build date: Sun Oct 20 2024
 *
 * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
 * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
 */
"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.default = void 0;
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"]
        })
    }
};
var _default = EditDecoratorMenuHelperMixin;
exports.default = _default;
