igniteui-angular-core
Version:
Ignite UI Angular Core logic used in multiple UI components.
216 lines (215 loc) • 6.94 kB
JavaScript
import { __extends } from "tslib";
import { IgxFormatSpecifier } from "./igx-format-specifier";
import { NumberFormatSpecifier as NumberFormatSpecifier_internal } from "./NumberFormatSpecifier";
import { ensureBool } from "./componentUtil";
var IgxNumberFormatSpecifier = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgxNumberFormatSpecifier, _super);
function IgxNumberFormatSpecifier() {
return _super.call(this) || this;
}
IgxNumberFormatSpecifier.prototype.createImplementation = function () {
return new NumberFormatSpecifier_internal();
};
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "locale", {
get: function () {
return this.i.locale;
},
set: function (v) {
this.i.locale = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "compactDisplay", {
get: function () {
return this.i.compactDisplay;
},
set: function (v) {
this.i.compactDisplay = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "currency", {
get: function () {
return this.i.currency;
},
set: function (v) {
this.i.currency = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "currencyDisplay", {
get: function () {
return this.i.currencyDisplay;
},
set: function (v) {
this.i.currencyDisplay = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "currencySign", {
get: function () {
return this.i.currencySign;
},
set: function (v) {
this.i.currencySign = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "currencyCode", {
get: function () {
return this.i.currencyCode;
},
set: function (v) {
this.i.currencyCode = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "localeMatcher", {
get: function () {
return this.i.localeMatcher;
},
set: function (v) {
this.i.localeMatcher = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "notation", {
get: function () {
return this.i.notation;
},
set: function (v) {
this.i.notation = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "numberingSystem", {
get: function () {
return this.i.numberingSystem;
},
set: function (v) {
this.i.numberingSystem = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "signDisplay", {
get: function () {
return this.i.signDisplay;
},
set: function (v) {
this.i.signDisplay = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "style", {
get: function () {
return this.i.style;
},
set: function (v) {
this.i.style = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "unit", {
get: function () {
return this.i.unit;
},
set: function (v) {
this.i.unit = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "unitDisplay", {
get: function () {
return this.i.unitDisplay;
},
set: function (v) {
this.i.unitDisplay = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "useGrouping", {
get: function () {
return this.i.useGrouping;
},
set: function (v) {
this.i.useGrouping = ensureBool(v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "minimumIntegerDigits", {
get: function () {
return this.i.minimumIntegerDigits;
},
set: function (v) {
this.i.minimumIntegerDigits = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "minimumFractionDigits", {
get: function () {
return this.i.minimumFractionDigits;
},
set: function (v) {
this.i.minimumFractionDigits = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "maximumFractionDigits", {
get: function () {
return this.i.maximumFractionDigits;
},
set: function (v) {
this.i.maximumFractionDigits = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "minimumSignificantDigits", {
get: function () {
return this.i.minimumSignificantDigits;
},
set: function (v) {
this.i.minimumSignificantDigits = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgxNumberFormatSpecifier.prototype, "maximumSignificantDigits", {
get: function () {
return this.i.maximumSignificantDigits;
},
set: function (v) {
this.i.maximumSignificantDigits = +v;
},
enumerable: false,
configurable: true
});
return IgxNumberFormatSpecifier;
}(IgxFormatSpecifier));
export { IgxNumberFormatSpecifier };