import * as tslib_1 from "tslib";
import { IgcCancelEventArgs } from "igniteui-webcomponents-core";
import { ensureBool } from "igniteui-webcomponents-core";
/**
 * Event arguments for the
 * editModeExiting event.
*/
var IgcSpreadsheetEditModeExitingEventArgs = /** @class */ /*@__PURE__*/ (function (_super) {
    tslib_1.__extends(IgcSpreadsheetEditModeExitingEventArgs, _super);
    function IgcSpreadsheetEditModeExitingEventArgs() {
        return _super.call(this) || this;
    }
    Object.defineProperty(IgcSpreadsheetEditModeExitingEventArgs.prototype, "i", {
        /**
                                     * @hidden
                                     */
        get: function () {
            return this._implementation;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcSpreadsheetEditModeExitingEventArgs.prototype, "acceptChanges", {
        /**
         * Returns or sets a boolean indicating whether the changes will be made to the cell's value when edit mode ends.
        */
        get: function () {
            return this.i.acceptChanges;
        },
        set: function (v) {
            this.i.acceptChanges = ensureBool(v);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcSpreadsheetEditModeExitingEventArgs.prototype, "canCancel", {
        /**
         * Returns a boolean indicating if the edit mode is being forced to exit edit mode in which case it cannot be cancelled.
        */
        get: function () {
            return this.i.canCancel;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcSpreadsheetEditModeExitingEventArgs.prototype, "cell", {
        /**
         * Returns the cell for which the control is exiting edit mode.
        */
        get: function () {
            return this.i.cell;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcSpreadsheetEditModeExitingEventArgs.prototype, "editText", {
        /**
         * Returns the edit text that will be used to update the cell(s).
        */
        get: function () {
            return this.i.editText;
        },
        enumerable: true,
        configurable: true
    });
    return IgcSpreadsheetEditModeExitingEventArgs;
}(IgcCancelEventArgs));
export { IgcSpreadsheetEditModeExitingEventArgs };
