/*
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";
export class FinancialChartDropDownControl extends TemplatedHtmlControl {
    constructor(a, b, c) {
        super(a, b, c);
        this.selectionChanged = null;
        this.n = null;
        this.o = null;
    }
    u() {
        if (this.selectionChanged != null) {
            this.selectionChanged(this, EventArgs.empty);
        }
    }
    l(a) {
        super.l(a);
        this.n.f(this.d, this.o, this.r, this.s);
    }
    get_p() {
        return false;
    }
    get p() {
        return this.get_p();
    }
    t(a) {
        if (this.o.isOpen) {
            let b = a.target;
            let c = b.classList.contains(this.r.substr(1));
            let d = c || (this.p && b.matches(this.s + " *"));
            if (!d) {
                this.o.isOpen = false;
                this.o.updateUI();
            }
        }
    }
}
FinancialChartDropDownControl.$t = markType(FinancialChartDropDownControl, 'FinancialChartDropDownControl', TemplatedHtmlControl.$);
