/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import * as tslib_1 from "tslib";
import { Base, markType } from "igniteui-react-core/ES5/type";
/**
 * @hidden
 */
var FinancialChartDropDownControlViewModel = /** @class */ (function (_super) {
    tslib_1.__extends(FinancialChartDropDownControlViewModel, _super);
    function FinancialChartDropDownControlViewModel() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this._onSelectionChanged = null;
        _this._isOpen = false;
        _this._notifyChanged = null;
        _this.a = null;
        return _this;
    }
    Object.defineProperty(FinancialChartDropDownControlViewModel.prototype, "onSelectionChanged", {
        get: function () {
            return this._onSelectionChanged;
        },
        set: function (a) {
            this._onSelectionChanged = a;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(FinancialChartDropDownControlViewModel.prototype, "isOpen", {
        get: function () {
            return this._isOpen;
        },
        set: function (a) {
            this._isOpen = a;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(FinancialChartDropDownControlViewModel.prototype, "notifyChanged", {
        get: function () {
            return this._notifyChanged;
        },
        set: function (a) {
            this._notifyChanged = a;
        },
        enumerable: true,
        configurable: true
    });
    FinancialChartDropDownControlViewModel.prototype.updateUI = function () {
        if (this.notifyChanged != null) {
            this.notifyChanged();
        }
    };
    FinancialChartDropDownControlViewModel.prototype.onButtonPressed = function () {
        this.isOpen = !this.isOpen;
        this.updateUI();
    };
    FinancialChartDropDownControlViewModel.prototype.handleDropDownClick = function (a) {
        if (this.a != null) {
            this.a(a);
        }
    };
    FinancialChartDropDownControlViewModel.$t = markType(FinancialChartDropDownControlViewModel, 'FinancialChartDropDownControlViewModel');
    return FinancialChartDropDownControlViewModel;
}(Base));
export { FinancialChartDropDownControlViewModel };
