UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

60 lines (59 loc) 2.14 kB
/* 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 { JsonDictionaryItem } from "./JsonDictionaryItem"; import { typeGetValue, markType } from "./type"; /** * @hidden */ var JsonDictionaryValue = /** @class */ /*@__PURE__*/ (function (_super) { __extends(JsonDictionaryValue, _super); function JsonDictionaryValue() { var _this = _super.call(this) || this; _this._value = null; _this.e = 0; return _this; } Object.defineProperty(JsonDictionaryValue.prototype, "value", { get: function () { return this._value; }, set: function (a) { this._value = a; }, enumerable: false, configurable: true }); JsonDictionaryValue.prototype.d = function (a) { switch (this.e) { case 1: if (this.value) { a.i("true"); } else { a.i("false"); } break; case 3: a.i("null"); break; case 0: var b = this.value; if (typeof b === 'number') { b = typeGetValue(b); } a.i(b.toString()); break; case 2: a.i("\"" + this.a(this.value) + "\""); break; } }; JsonDictionaryValue.$t = markType(JsonDictionaryValue, 'JsonDictionaryValue', JsonDictionaryItem.$); return JsonDictionaryValue; }(JsonDictionaryItem)); export { JsonDictionaryValue };