UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

54 lines (53 loc) 1.92 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: a.i("\"" + this.a(this.value) + "\""); break; } } } JsonDictionaryValue.$t = markType(JsonDictionaryValue, 'JsonDictionaryValue', JsonDictionaryItem.$); return JsonDictionaryValue; })();