igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
160 lines (159 loc) • 5.23 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, __read, __spreadArray } from "tslib";
import { Base, INotifyPropertyChanged_$type, PropertyChangedEventArgs, markType, EventArgs } from "igniteui-react-core";
/**
* @hidden
*/
var TimeAxisLabelFormat = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(TimeAxisLabelFormat, _super);
function TimeAxisLabelFormat() {
var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;
_this.p = (0);
_this.c = null;
_this.f = null;
_this.e = null;
_this.labelFormatOverride = null;
_this.d = null;
_this.propertyChanged = null;
return _this;
}
Object.defineProperty(TimeAxisLabelFormat.prototype, "q", {
get: function () {
return this.p;
},
set: function (a) {
var b = this.q;
if (a != b) {
this.p = a;
this.r("Range", b, this.q);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(TimeAxisLabelFormat.prototype, "g", {
get: function () {
return this.c;
},
set: function (a) {
var b = this.g;
if (a != b) {
this.c = a;
this.r("Format", b, this.g);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(TimeAxisLabelFormat.prototype, "n", {
get: function () {
return this.f;
},
set: function (a) {
var b = this.n;
if (a != b) {
this.f = a;
this.r("RepeatedYearFormat", b, this.n);
}
},
enumerable: false,
configurable: true
});
Object.defineProperty(TimeAxisLabelFormat.prototype, "l", {
get: function () {
return this.e;
},
set: function (a) {
var b = this.l;
if (a != b) {
this.e = a;
this.r("RepeatedMonthFormat", b, this.l);
}
},
enumerable: false,
configurable: true
});
TimeAxisLabelFormat.prototype.b = function (a, b) {
if (this.labelFormatOverride == null) {
return null;
}
this.labelFormatOverride(a, b);
return b.label;
};
Object.defineProperty(TimeAxisLabelFormat.prototype, "j", {
get: function () {
return this.d;
},
set: function (a) {
var b = this.j;
if (a != b) {
this.d = a;
this.r("RepeatedDayFormat", b, this.j);
}
},
enumerable: false,
configurable: true
});
TimeAxisLabelFormat.prototype.r = function (a, b, c) {
this.s(a, b, c);
if (this.propertyChanged != null) {
this.propertyChanged(this, new PropertyChangedEventArgs(a));
}
};
TimeAxisLabelFormat.prototype.s = function (a, b, c) {
};
TimeAxisLabelFormat.$t = markType(TimeAxisLabelFormat, 'TimeAxisLabelFormat', Base.$, [INotifyPropertyChanged_$type]);
return TimeAxisLabelFormat;
}(Base));
export { TimeAxisLabelFormat };
/**
* @hidden
*/
var LabelFormatOverrideEventArgs = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(LabelFormatOverrideEventArgs, _super);
function LabelFormatOverrideEventArgs() {
var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;
_this._dateTime = new Date();
_this._format = null;
_this._label = null;
return _this;
}
Object.defineProperty(LabelFormatOverrideEventArgs.prototype, "dateTime", {
get: function () {
return this._dateTime;
},
set: function (a) {
this._dateTime = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(LabelFormatOverrideEventArgs.prototype, "format", {
get: function () {
return this._format;
},
set: function (a) {
this._format = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(LabelFormatOverrideEventArgs.prototype, "label", {
get: function () {
return this._label;
},
set: function (a) {
this._label = a;
},
enumerable: false,
configurable: true
});
LabelFormatOverrideEventArgs.$t = markType(LabelFormatOverrideEventArgs, 'LabelFormatOverrideEventArgs', EventArgs.$);
return LabelFormatOverrideEventArgs;
}(EventArgs));
export { LabelFormatOverrideEventArgs };