import { FunnelDataContext as FunnelDataContext_internal } from "./FunnelDataContext";
/**
 * Represents contextual data for the funnel chart.
*/
var IgrFunnelDataContext = /** @class */ /*@__PURE__*/ (function () {
    function IgrFunnelDataContext() {
        this._implementation = this.createImplementation();
        this._implementation.externalObject = this;
        this.onImplementationCreated();
        if (this._initializeAdapters) {
            this._initializeAdapters();
        }
    }
    IgrFunnelDataContext.prototype.createImplementation = function () {
        return new FunnelDataContext_internal();
    };
    Object.defineProperty(IgrFunnelDataContext.prototype, "i", {
        /**
         * @hidden
         */
        get: function () {
            return this._implementation;
        },
        enumerable: false,
        configurable: true
    });
    IgrFunnelDataContext.prototype.onImplementationCreated = function () {
    };
    IgrFunnelDataContext.prototype._provideImplementation = function (i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
        if (this._initializeAdapters) {
            this._initializeAdapters();
        }
    };
    Object.defineProperty(IgrFunnelDataContext.prototype, "item", {
        /**
         * The data item that is in context.
        */
        get: function () {
            return this.i.item;
        },
        set: function (v) {
            this.i.item = v;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(IgrFunnelDataContext.prototype, "index", {
        /**
         * The index of the data item that is in context.
        */
        get: function () {
            return this.i.b;
        },
        set: function (v) {
            this.i.b = +v;
        },
        enumerable: false,
        configurable: true
    });
    IgrFunnelDataContext.prototype.findByName = function (name) {
        if (this.findEphemera) {
            if (name && name.indexOf("@@e:") == 0) {
                return this.findEphemera(name);
            }
        }
        return null;
    };
    return IgrFunnelDataContext;
}());
export { IgrFunnelDataContext };
