/*
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 { TemplatedHtmlControl } from "./TemplatedHtmlControl";
import { EventArgs, markType } from "igniteui-react-core/ES2015/type";
/**
 * @hidden
 */
export class FinancialChartDropDownControl extends TemplatedHtmlControl {
    constructor(a, b, c) {
        super(a, b, c);
        this.selectionChanged = null;
        this.o = null;
        this.p = null;
    }
    v() {
        if (this.selectionChanged != null) {
            this.selectionChanged(this, EventArgs.empty);
        }
    }
    l(a) {
        super.l(a);
        this.o.f(this.d, this.p, this.s, this.t);
    }
    get_q() {
        return false;
    }
    get q() {
        return this.get_q();
    }
    u(a) {
        if (this.p.isOpen) {
            let b = a.target;
            let c = b.matches(this.s + " *");
            let d = c || (this.q && b.matches(this.t + " *"));
            if (!d) {
                this.p.isOpen = false;
                this.p.updateUI();
            }
        }
    }
}
FinancialChartDropDownControl.$t = markType(FinancialChartDropDownControl, 'FinancialChartDropDownControl', TemplatedHtmlControl.$);
