igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
239 lines (238 loc) • 5.99 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 { Base, INotifyPropertyChanged_$type, PropertyChangedEventArgs, markType, EventArgs } from "igniteui-angular-core";
import { BindingFormatter } from "igniteui-angular-core";
/**
* @hidden
*/
export class TimeAxisLabelFormat extends Base {
constructor() {
super(...arguments);
this.as = (0);
this.p = null;
this.v = null;
this.t = null;
this.labelFormatOverride = null;
this.r = null;
this.q = null;
this.a = null;
this.w = null;
this.d = null;
this.u = null;
this.c = null;
this.s = null;
this.b = null;
this.i = null;
this.m = null;
this.l = null;
this.k = null;
this.propertyChanged = null;
}
static { this.$t = markType(TimeAxisLabelFormat, 'TimeAxisLabelFormat', Base.$, [INotifyPropertyChanged_$type]); }
get at() {
return this.as;
}
set at(a) {
let b = this.at;
if (a != b) {
this.as = a;
this.au("Range", b, this.at);
}
}
get x() {
return this.p;
}
set x(a) {
let b = this.x;
if (a != b) {
this.p = a;
this.au("Format", b, this.x);
}
}
get an() {
return this.v;
}
set an(a) {
let b = this.an;
if (a != b) {
this.v = a;
this.au("RepeatedYearFormat", b, this.an);
}
}
get ai() {
return this.t;
}
set ai(a) {
let b = this.ai;
if (a != b) {
this.t = a;
this.au("RepeatedMonthFormat", b, this.ai);
}
}
o(a, b) {
if (this.labelFormatOverride == null) {
return null;
}
this.labelFormatOverride(a, b);
return b.label;
}
get ad() {
return this.r;
}
set ad(a) {
let b = this.ad;
if (a != b) {
this.r = a;
this.au("RepeatedDayFormat", b, this.ad);
}
}
get z() {
return this.q;
}
set z(a) {
let b = this.z;
if (a != b) {
this.q = a;
this.au("LabelFormat", b, this.z);
}
}
get e() {
return this.a;
}
set e(a) {
let b = this.e;
if (a != b) {
this.a = a;
this.au("LabelFormatSpecifiers", b, this.e);
}
}
get ap() {
return this.w;
}
set ap(a) {
let b = this.ap;
if (a != b) {
this.w = a;
this.au("RepeatedYearLabelFormat", b, this.ap);
}
}
get h() {
return this.d;
}
set h(a) {
let b = this.h;
if (a != b) {
this.d = a;
this.au("RepeatedYearLabelFormatSpecifiers", b, this.h);
}
}
get ak() {
return this.u;
}
set ak(a) {
let b = this.ak;
if (a != b) {
this.u = a;
this.au("RepeatedMonthLabelFormat", b, this.ak);
}
}
get g() {
return this.c;
}
set g(a) {
let b = this.g;
if (a != b) {
this.c = a;
this.au("RepeatedMonthLabelFormatSpecifiers", b, this.g);
}
}
get af() {
return this.s;
}
set af(a) {
let b = this.af;
if (a != b) {
this.s = a;
this.au("RepeatedDayLabelFormat", b, this.af);
}
}
get f() {
return this.b;
}
set f(a) {
let b = this.f;
if (a != b) {
this.b = a;
this.au("RepeatedDayLabelFormatSpecifiers", b, this.f);
}
}
static j(a, b) {
if (a != null) {
let c = new BindingFormatter();
c.j = a;
c.d = b;
return c;
}
return null;
}
au(a, b, c) {
this.av(a, b, c);
if (this.propertyChanged != null) {
this.propertyChanged(this, new PropertyChangedEventArgs(a));
}
}
av(a, b, c) {
switch (a) {
case "LabelFormat":
case "LabelFormatSpecifiers":
this.i = TimeAxisLabelFormat.j(this.z, this.e);
break;
case "RepeatedYearLabelFormat":
case "RepeatedYearLabelFormatSpecifiers":
this.m = TimeAxisLabelFormat.j(this.ap, this.h);
break;
case "RepeatedMonthLabelFormat":
case "RepeatedMonthLabelFormatSpecifiers":
this.l = TimeAxisLabelFormat.j(this.ak, this.g);
break;
case "RepeatedDayLabelFormat":
case "RepeatedDayLabelFormatSpecifiers":
this.k = TimeAxisLabelFormat.j(this.af, this.f);
break;
}
}
}
/**
* @hidden
*/
export class LabelFormatOverrideEventArgs extends EventArgs {
constructor() {
super(...arguments);
this._dateTime = new Date();
this._format = null;
this._label = null;
}
static { this.$t = markType(LabelFormatOverrideEventArgs, 'LabelFormatOverrideEventArgs', EventArgs.$); }
get dateTime() {
return this._dateTime;
}
set dateTime(a) {
this._dateTime = a;
}
get format() {
return this._format;
}
set format(a) {
this._format = a;
}
get label() {
return this._label;
}
set label(a) {
this._label = a;
}
}