import { IgcColumnComponent } from "./igc-column-component";
import { GridCellEditEndedEventArgs as GridCellEditEndedEventArgs_internal } from "./GridCellEditEndedEventArgs";
var IgcGridCellEditEndedEventArgs = /** @class */ /*@__PURE__*/ (function () {
    function IgcGridCellEditEndedEventArgs() {
        this._implementation = this.createImplementation();
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    }
    IgcGridCellEditEndedEventArgs.prototype.createImplementation = function () {
        return new GridCellEditEndedEventArgs_internal();
    };
    Object.defineProperty(IgcGridCellEditEndedEventArgs.prototype, "i", {
        /**
         * @hidden
         */
        get: function () {
            return this._implementation;
        },
        enumerable: true,
        configurable: true
    });
    IgcGridCellEditEndedEventArgs.prototype.onImplementationCreated = function () {
    };
    IgcGridCellEditEndedEventArgs.prototype._provideImplementation = function (i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    };
    Object.defineProperty(IgcGridCellEditEndedEventArgs.prototype, "column", {
        /**
         * Gets the column of the cell that ended editing.
        */
        get: function () {
            if (this.i.a == null) {
                return null;
            }
            if (!this.i.a.externalObject) {
                var e = IgcColumnComponent._createFromInternal(this.i.a);
                if (e) {
                    e._implementation = this.i.a;
                }
                this.i.a.externalObject = e;
            }
            return this.i.a.externalObject;
        },
        set: function (v) {
            v == null ? this.i.a = null : this.i.a = v.i;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcGridCellEditEndedEventArgs.prototype, "row", {
        /**
         * Gets the row index of the cell that ended editing.
        */
        get: function () {
            return this.i.b;
        },
        set: function (v) {
            this.i.b = +v;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcGridCellEditEndedEventArgs.prototype, "item", {
        /**
         * Gets the row item.
        */
        get: function () {
            return this.i.item;
        },
        set: function (v) {
            this.i.item = v;
        },
        enumerable: true,
        configurable: true
    });
    return IgcGridCellEditEndedEventArgs;
}());
export { IgcGridCellEditEndedEventArgs };
//# sourceMappingURL=igc-grid-cell-edit-ended-event-args.js.map
