import { __extends } from "tslib";
import { IgxSelectedItemChangedEventArgs } from "./igx-selected-item-changed-event-args";
import { ensureBool } from "igniteui-angular-core";
/**
 * Provides data for the SelectedItemChanging event.
*/
var IgxSelectedItemChangingEventArgs = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(IgxSelectedItemChangingEventArgs, _super);
    function IgxSelectedItemChangingEventArgs() {
        return _super.call(this) || this;
    }
    Object.defineProperty(IgxSelectedItemChangingEventArgs.prototype, "i", {
        /**
                                     * @hidden
                                     */
        get: function () {
            return this._implementation;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgxSelectedItemChangingEventArgs.prototype, "cancel", {
        /**
         * Set this to true in order to stop the SelectedItem from changing.
        */
        get: function () {
            return this.i.cancel;
        },
        set: function (v) {
            this.i.cancel = ensureBool(v);
        },
        enumerable: false,
        configurable: true
    });
    return IgxSelectedItemChangingEventArgs;
}(IgxSelectedItemChangedEventArgs));
export { IgxSelectedItemChangingEventArgs };
//# sourceMappingURL=igx-selected-item-changing-event-args.js.map
