import { IgcGridCellPosition } from "./igc-grid-cell-position";
import { GridActiveCellChangedEventArgs as GridActiveCellChangedEventArgs_internal } from "./GridActiveCellChangedEventArgs";
/**
 * Information about the change to the selected cells in the grid.
*/
var IgcGridActiveCellChangedEventArgs = /** @class */ /*@__PURE__*/ (function () {
    function IgcGridActiveCellChangedEventArgs() {
        this._implementation = this.createImplementation();
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    }
    IgcGridActiveCellChangedEventArgs.prototype.createImplementation = function () {
        return new GridActiveCellChangedEventArgs_internal();
    };
    Object.defineProperty(IgcGridActiveCellChangedEventArgs.prototype, "i", {
        /**
         * @hidden
         */
        get: function () {
            return this._implementation;
        },
        enumerable: true,
        configurable: true
    });
    IgcGridActiveCellChangedEventArgs.prototype.onImplementationCreated = function () {
    };
    IgcGridActiveCellChangedEventArgs.prototype._provideImplementation = function (i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    };
    Object.defineProperty(IgcGridActiveCellChangedEventArgs.prototype, "newActiveCell", {
        /**
         * The new active cell.
        */
        get: function () {
            if (this.i.newActiveCell == null) {
                return null;
            }
            if (!this.i.newActiveCell.externalObject) {
                var e = new IgcGridCellPosition();
                e._implementation = this.i.newActiveCell;
                this.i.newActiveCell.externalObject = e;
            }
            return this.i.newActiveCell.externalObject;
        },
        set: function (v) {
            v == null ? this.i.newActiveCell = null : this.i.newActiveCell = v.i;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcGridActiveCellChangedEventArgs.prototype, "oldActiveCell", {
        /**
         * The old active cell.
        */
        get: function () {
            if (this.i.oldActiveCell == null) {
                return null;
            }
            if (!this.i.oldActiveCell.externalObject) {
                var e = new IgcGridCellPosition();
                e._implementation = this.i.oldActiveCell;
                this.i.oldActiveCell.externalObject = e;
            }
            return this.i.oldActiveCell.externalObject;
        },
        set: function (v) {
            v == null ? this.i.oldActiveCell = null : this.i.oldActiveCell = v.i;
        },
        enumerable: true,
        configurable: true
    });
    return IgcGridActiveCellChangedEventArgs;
}());
export { IgcGridActiveCellChangedEventArgs };
//# sourceMappingURL=igc-grid-active-cell-changed-event-args.js.map
