/*
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 { LegendBase } from "./LegendBase";
import { LegendBaseView } from "./LegendBaseView";
import { fromEn, delegateCombine, markType } from "igniteui-angular-core";
import { LegendSizeChangedEventArgs } from "./LegendSizeChangedEventArgs";
import { FinancialLegendViewManager } from "./FinancialLegendViewManager";
/**
 * @hidden
 */
export let FinancialLegend = /*@__PURE__*/ (() => {
    class FinancialLegend extends LegendBase {
        constructor() {
            super();
            this.ab = FinancialLegend.$;
            let a = this.au;
            a.collectionChanged = delegateCombine(a.collectionChanged, (a, b) => {
                if (b.oldItems != null) {
                    for (let c of fromEn(b.oldItems)) {
                        this.bd.ao(c);
                    }
                }
                if (b.newItems != null) {
                    for (let d of fromEn(b.newItems)) {
                        this.bd.y(d);
                    }
                }
            });
        }
        aj() {
            return new FinancialLegendView(this);
        }
        get bd() {
            return this.ak;
        }
        addChildInOrder(a, b) {
            this.au.add(a);
            this.a9(new LegendSizeChangedEventArgs());
        }
        get_isFinancial() {
            return true;
        }
    }
    FinancialLegend.$t = markType(FinancialLegend, 'FinancialLegend', LegendBase.$);
    return FinancialLegend;
})();
/**
 * @hidden
 */
export let FinancialLegendView = /*@__PURE__*/ (() => {
    class FinancialLegendView extends LegendBaseView {
        constructor(a) {
            super(a);
            this.d = new FinancialLegendViewManager(this);
        }
    }
    FinancialLegendView.$t = markType(FinancialLegendView, 'FinancialLegendView', LegendBaseView.$);
    return FinancialLegendView;
})();
