UNPKG

igniteui-react-core

Version:
55 lines (54 loc) 1.93 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 { JsonDictionaryItem } from "./JsonDictionaryItem"; import { typeGetValue, markType } from "./type"; /** * @hidden */ export let JsonDictionaryValue = /*@__PURE__*/ (() => { class JsonDictionaryValue extends JsonDictionaryItem { constructor() { super(); this._value = null; this.e = 0; } get value() { return this._value; } set value(a) { this._value = a; } d(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: let b = this.value; if (typeof b === 'number') { b = typeGetValue(b); } a.i(b.toString()); break; case 2: let c = this.value != null ? this.a(this.value) : ""; a.i("\"" + c + "\""); break; } } } JsonDictionaryValue.$t = /*@__PURE__*/ markType(JsonDictionaryValue, 'JsonDictionaryValue', JsonDictionaryItem.$); return JsonDictionaryValue; })();