igniteui-react-core
Version:
Ignite UI React Core.
56 lines (55 loc) • 1.94 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 } from "tslib";
import { JsonDictionaryItem } from "./JsonDictionaryItem";
import { 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:
a.i(this.value.toString());
break;
case 2:
a.i("\"" + this.a(this.value) + "\"");
break;
}
};
JsonDictionaryValue.$t = markType(JsonDictionaryValue, 'JsonDictionaryValue', JsonDictionaryItem.$);
return JsonDictionaryValue;
}(JsonDictionaryItem));
export { JsonDictionaryValue };