gd-sprest-react
Advanced tools
Comparing version 0.0.9 to 0.1.0
@@ -22,13 +22,7 @@ "use strict"; | ||
var React = require("react"); | ||
var fieldNumber_d_1 = require("./fieldNumber.d"); | ||
exports.FieldNumberTypes = fieldNumber_d_1.FieldNumberTypes; | ||
var common_1 = require("../common"); | ||
var office_ui_fabric_react_1 = require("office-ui-fabric-react"); | ||
/** | ||
* Number Types | ||
*/ | ||
var FieldNumberTypes; | ||
(function (FieldNumberTypes) { | ||
FieldNumberTypes[FieldNumberTypes["Decimal"] = 0] = "Decimal"; | ||
FieldNumberTypes[FieldNumberTypes["Integer"] = 1] = "Integer"; | ||
})(FieldNumberTypes = exports.FieldNumberTypes || (exports.FieldNumberTypes = {})); | ||
/** | ||
* Number Field | ||
@@ -50,5 +44,5 @@ */ | ||
// Default the field type | ||
var fieldType = typeof (_this.props.type) === "number" ? _this.props.type : FieldNumberTypes.Integer; | ||
var fieldType = typeof (_this.props.type) === "number" ? _this.props.type : fieldNumber_d_1.FieldNumberTypes.Integer; | ||
// Ensure a value exists and need to convert it | ||
if (value && fieldType == FieldNumberTypes.Integer) { | ||
if (value && fieldType == fieldNumber_d_1.FieldNumberTypes.Integer) { | ||
// Convert the value to an integer | ||
@@ -55,0 +49,0 @@ var intValue = parseInt(value); |
{ | ||
"name": "gd-sprest-react", | ||
"version": "0.0.9", | ||
"version": "0.1.0", | ||
"description": "SharePoint react components.", | ||
"main": "build/index.js", | ||
"scripts": { | ||
"build": "tsc", | ||
"build": "tsc --declaration", | ||
"test": "webpack --config ./webpack.test.js" | ||
@@ -9,0 +9,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63091
34
1539