import { IgcColumnComponent } from "./igc-column-component";
import { GridCellEditStartedEventArgs as GridCellEditStartedEventArgs_internal } from "./GridCellEditStartedEventArgs";
var IgcGridCellEditStartedEventArgs = /** @class */ /*@__PURE__*/ (function () {
    function IgcGridCellEditStartedEventArgs() {
        this._implementation = this.createImplementation();
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    }
    IgcGridCellEditStartedEventArgs.prototype.createImplementation = function () {
        return new GridCellEditStartedEventArgs_internal();
    };
    Object.defineProperty(IgcGridCellEditStartedEventArgs.prototype, "i", {
        /**
         * @hidden
         */
        get: function () {
            return this._implementation;
        },
        enumerable: true,
        configurable: true
    });
    IgcGridCellEditStartedEventArgs.prototype.onImplementationCreated = function () {
    };
    IgcGridCellEditStartedEventArgs.prototype._provideImplementation = function (i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    };
    Object.defineProperty(IgcGridCellEditStartedEventArgs.prototype, "column", {
        /**
         * Gets the column of the cell that started 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(IgcGridCellEditStartedEventArgs.prototype, "row", {
        /**
         * Gets the row index of the cell that started editing.
        */
        get: function () {
            return this.i.b;
        },
        set: function (v) {
            this.i.b = +v;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcGridCellEditStartedEventArgs.prototype, "item", {
        /**
         * Gets the row item.
        */
        get: function () {
            return this.i.item;
        },
        set: function (v) {
            this.i.item = v;
        },
        enumerable: true,
        configurable: true
    });
    return IgcGridCellEditStartedEventArgs;
}());
export { IgcGridCellEditStartedEventArgs };
//# sourceMappingURL=igc-grid-cell-edit-started-event-args.js.map
