import * as tslib_1 from "tslib";
import { IgcCellInfo } from "./igc-cell-info";
import { EditorRowCellModel as EditorRowCellModel_internal } from "./EditorRowCellModel";
/**
 * Represents info about the current cell.
*/
var IgcEditorRowCellInfo = /** @class */ /*@__PURE__*/ (function (_super) {
    tslib_1.__extends(IgcEditorRowCellInfo, _super);
    function IgcEditorRowCellInfo() {
        return _super.call(this) || this;
    }
    IgcEditorRowCellInfo.prototype.createImplementation = function () {
        return new EditorRowCellModel_internal();
    };
    Object.defineProperty(IgcEditorRowCellInfo.prototype, "i", {
        /**
                                     * @hidden
                                     */
        get: function () {
            return this._implementation;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgcEditorRowCellInfo.prototype, "editTarget", {
        /**
         * Gets or sets the edit target for this cell.
        */
        get: function () {
            if (this.i.kx == null) {
                return null;
            }
            return this.i.kx.externalObject;
        },
        set: function (v) {
            v == null ? this.i.kx = null : this.i.kx = v.i;
        },
        enumerable: true,
        configurable: true
    });
    IgcEditorRowCellInfo.prototype.findByName = function (name) {
        var baseResult = _super.prototype.findByName.call(this, name);
        if (baseResult) {
            return baseResult;
        }
        if (this.editTarget && this.editTarget.name && this.editTarget.name == name) {
            return this.editTarget;
        }
        return null;
    };
    return IgcEditorRowCellInfo;
}(IgcCellInfo));
export { IgcEditorRowCellInfo };
//# sourceMappingURL=igc-editor-row-cell-info.js.map
