import { CancelEventArgs as CancelEventArgs_internal } from "./CancelEventArgs";
import { ensureBool } from "./componentUtil";
var IgxCancelEventArgs = /** @class */ /*@__PURE__*/ (function () {
    function IgxCancelEventArgs() {
        this._implementation = this.createImplementation();
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    }
    IgxCancelEventArgs.prototype.createImplementation = function () {
        return new CancelEventArgs_internal(0);
    };
    Object.defineProperty(IgxCancelEventArgs.prototype, "i", {
        /**
         * @hidden
         */
        get: function () {
            return this._implementation;
        },
        enumerable: false,
        configurable: true
    });
    IgxCancelEventArgs.prototype.onImplementationCreated = function () {
    };
    IgxCancelEventArgs.prototype._provideImplementation = function (i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    };
    Object.defineProperty(IgxCancelEventArgs.prototype, "cancel", {
        get: function () {
            return this.i.cancel;
        },
        set: function (v) {
            this.i.cancel = ensureBool(v);
        },
        enumerable: false,
        configurable: true
    });
    return IgxCancelEventArgs;
}());
export { IgxCancelEventArgs };
