igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
42 lines (41 loc) • 1.87 kB
JavaScript
/*
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 { FinancialChartDropDownControlView } from "./FinancialChartDropDownControlView";
import { EnumUtil, markType } from "igniteui-react-core";
import { FinancialChartType_$type } from "./FinancialChartType";
import { stringIsNullOrEmpty } from "igniteui-react-core";
/**
* @hidden
*/
export let FinancialChartTypePickerView = /*@__PURE__*/ (() => {
class FinancialChartTypePickerView extends FinancialChartDropDownControlView {
get l() {
return this.a;
}
k(a) {
super.k(a);
let b = a;
let c = b.parentNode;
for (let d = 0; d < c.children.length; d++) {
let e = c.children.item(d);
if (e != b) {
e.classList.remove("checked");
}
}
let f = b.getAttribute("data-value");
if (stringIsNullOrEmpty(f)) {
return;
}
let g = EnumUtil.parse(FinancialChartType_$type, f, true);
this.l.chartType = EnumUtil.getEnumValue(FinancialChartType_$type, g);
this.g();
this.a.onSelectionChanged();
}
}
FinancialChartTypePickerView.$t = /*@__PURE__*/ markType(FinancialChartTypePickerView, 'FinancialChartTypePickerView', FinancialChartDropDownControlView.$);
return FinancialChartTypePickerView;
})();