igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
50 lines (49 loc) • 2.27 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 { __extends } from "tslib";
import { FinancialChartDropDownControlView } from "./FinancialChartDropDownControlView";
import { EnumUtil, markType } from "igniteui-angular-core";
import { FinancialChartType_$type } from "./FinancialChartType";
import { stringIsNullOrEmpty } from "igniteui-angular-core";
/**
* @hidden
*/
var FinancialChartTypePickerView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(FinancialChartTypePickerView, _super);
function FinancialChartTypePickerView() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(FinancialChartTypePickerView.prototype, "l", {
get: function () {
return this.a;
},
enumerable: false,
configurable: true
});
FinancialChartTypePickerView.prototype.k = function (a) {
_super.prototype.k.call(this, a);
var b = a;
var c = b.parentNode;
for (var d = 0; d < c.children.length; d++) {
var e = c.children.item(d);
if (e != b) {
e.classList.remove("checked");
}
}
var f = b.getAttribute("data-value");
if (stringIsNullOrEmpty(f)) {
return;
}
var g = EnumUtil.parse(FinancialChartType_$type, f, true);
this.l.chartType = EnumUtil.getEnumValue(FinancialChartType_$type, g);
this.g();
this.a.onSelectionChanged();
};
FinancialChartTypePickerView.$t = markType(FinancialChartTypePickerView, 'FinancialChartTypePickerView', FinancialChartDropDownControlView.$);
return FinancialChartTypePickerView;
}(FinancialChartDropDownControlView));
export { FinancialChartTypePickerView };