From 6f72a87acfc95c0012ffc12bc3635d0a24eb4418 Mon Sep 17 00:00:00 2001 From: Dillon Mulroy Date: Tue, 10 Apr 2018 12:35:59 -0400 Subject: [PATCH 1/8] Add fontColor as a configuration option for node's fill property --- package-lock.json | 169 ++++++++++++++++++++++++--- sandbox/rd3g.sandbox.bundle.js | 4 +- src/components/graph/graph.config.js | 2 + src/components/graph/graph.helper.js | 2 + src/components/node/Node.jsx | 141 +++++++++++----------- 5 files changed, 235 insertions(+), 83 deletions(-) diff --git a/package-lock.json b/package-lock.json index f9e42ba17..5bb4273a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "react-d3-graph", - "version": "1.0.1", + "version": "1.2.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -85,7 +85,152 @@ "babel-preset-react": "6.24.1", "bluebird": "3.5.0", "debug": "3.1.0", - "lodash.clonedeep": "4.5.0" + "lodash.clonedeep": "4.5.0", + "webpack": "3.6.0" + }, + "dependencies": { + "acorn-dynamic-import": { + "version": "2.0.2", + "resolved": "http://nexus.visionist/repository/npm/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz", + "integrity": "sha1-x1K9IQvvZ5UBtsbLf8hPj0cVjMQ=", + "dev": true, + "requires": { + "acorn": "4.0.13" + }, + "dependencies": { + "acorn": { + "version": "4.0.13", + "resolved": "http://nexus.visionist/repository/npm/acorn/-/acorn-4.0.13.tgz", + "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", + "dev": true + } + } + }, + "ajv-keywords": { + "version": "2.1.1", + "resolved": "http://nexus.visionist/repository/npm/ajv-keywords/-/ajv-keywords-2.1.1.tgz", + "integrity": "sha1-YXmX/F9gV2iUxDX5QNgZ4TW4B2I=", + "dev": true + }, + "camelcase": { + "version": "4.1.0", + "resolved": "http://nexus.visionist/repository/npm/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "cliui": { + "version": "3.2.0", + "resolved": "http://nexus.visionist/repository/npm/cliui/-/cliui-3.2.0.tgz", + "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", + "dev": true, + "requires": { + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wrap-ansi": "2.1.0" + }, + "dependencies": { + "string-width": { + "version": "1.0.2", + "resolved": "http://nexus.visionist/repository/npm/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + } + } + }, + "enhanced-resolve": { + "version": "3.4.1", + "resolved": "http://nexus.visionist/repository/npm/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz", + "integrity": "sha1-BCHjOf1xQZs9oT0Smzl5BAIwR24=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "memory-fs": "0.4.1", + "object-assign": "4.1.1", + "tapable": "0.2.8" + } + }, + "supports-color": { + "version": "4.5.0", + "resolved": "http://nexus.visionist/repository/npm/supports-color/-/supports-color-4.5.0.tgz", + "integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=", + "dev": true, + "requires": { + "has-flag": "2.0.0" + } + }, + "tapable": { + "version": "0.2.8", + "resolved": "http://nexus.visionist/repository/npm/tapable/-/tapable-0.2.8.tgz", + "integrity": "sha1-mTcqXJmb8t8WCvwNdL7U9HlIzSI=", + "dev": true + }, + "uglifyjs-webpack-plugin": { + "version": "0.4.6", + "resolved": "http://nexus.visionist/repository/npm/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz", + "integrity": "sha1-uVH0q7a9YX5m9j64kUmOORdj4wk=", + "dev": true, + "requires": { + "source-map": "0.5.7", + "uglify-js": "2.8.29", + "webpack-sources": "1.1.0" + } + }, + "webpack": { + "version": "3.6.0", + "resolved": "http://nexus.visionist/repository/npm/webpack/-/webpack-3.6.0.tgz", + "integrity": "sha512-OsHT3D0W0KmPPh60tC7asNnOmST6bKTiR90UyEdT9QYoaJ4OYN4Gg7WK1k3VxHK07ZoiYWPsKvlS/gAjwL/vRA==", + "dev": true, + "requires": { + "acorn": "5.5.0", + "acorn-dynamic-import": "2.0.2", + "ajv": "5.5.2", + "ajv-keywords": "2.1.1", + "async": "2.6.0", + "enhanced-resolve": "3.4.1", + "escope": "3.6.0", + "interpret": "1.1.0", + "json-loader": "0.5.7", + "json5": "0.5.1", + "loader-runner": "2.3.0", + "loader-utils": "1.1.0", + "memory-fs": "0.4.1", + "mkdirp": "0.5.1", + "node-libs-browser": "2.1.0", + "source-map": "0.5.7", + "supports-color": "4.5.0", + "tapable": "0.2.8", + "uglifyjs-webpack-plugin": "0.4.6", + "watchpack": "1.5.0", + "webpack-sources": "1.1.0", + "yargs": "8.0.2" + } + }, + "yargs": { + "version": "8.0.2", + "resolved": "http://nexus.visionist/repository/npm/yargs/-/yargs-8.0.2.tgz", + "integrity": "sha1-YpmpBVsc78lp/355wdkY3Osiw2A=", + "dev": true, + "requires": { + "camelcase": "4.1.0", + "cliui": "3.2.0", + "decamelize": "1.2.0", + "get-caller-file": "1.0.2", + "os-locale": "2.1.0", + "read-pkg-up": "2.0.0", + "require-directory": "2.1.1", + "require-main-filename": "1.0.1", + "set-blocking": "2.0.0", + "string-width": "2.1.1", + "which-module": "2.0.0", + "y18n": "3.2.1", + "yargs-parser": "7.0.0" + } + } } }, "@cypress/xvfb": { @@ -2454,8 +2599,7 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", - "dev": true, - "optional": true + "dev": true }, "camelcase-keys": { "version": "2.1.0", @@ -2528,7 +2672,6 @@ "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", "dev": true, - "optional": true, "requires": { "align-text": "0.1.4", "lazy-cache": "1.0.4" @@ -2801,7 +2944,6 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", "dev": true, - "optional": true, "requires": { "center-align": "0.1.3", "right-align": "0.1.3", @@ -10802,6 +10944,12 @@ "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=", "dev": true }, + "json-loader": { + "version": "0.5.7", + "resolved": "http://nexus.visionist/repository/npm/json-loader/-/json-loader-0.5.7.tgz", + "integrity": "sha512-QLPs8Dj7lnf3e3QYS1zkCo+4ZwqOiF9d/nZnYozTISxXWCfNs9yuky5rJw4/W34s7POaNlbZmQGaB5NiXCbP4w==", + "dev": true + }, "json-parse-better-errors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.1.tgz", @@ -10982,8 +11130,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", - "dev": true, - "optional": true + "dev": true }, "lazystream": { "version": "1.0.0", @@ -15385,7 +15532,6 @@ "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", "dev": true, - "optional": true, "requires": { "align-text": "0.1.4" } @@ -17219,7 +17365,6 @@ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", "dev": true, - "optional": true, "requires": { "source-map": "0.5.7", "uglify-to-browserify": "1.0.2", @@ -17231,7 +17376,6 @@ "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", "dev": true, - "optional": true, "requires": { "camelcase": "1.2.1", "cliui": "2.1.0", @@ -19115,8 +19259,7 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", - "dev": true, - "optional": true + "dev": true }, "wordwrap": { "version": "0.0.2", diff --git a/sandbox/rd3g.sandbox.bundle.js b/sandbox/rd3g.sandbox.bundle.js index 8bc4962af..4aa1ff715 100644 --- a/sandbox/rd3g.sandbox.bundle.js +++ b/sandbox/rd3g.sandbox.bundle.js @@ -3,7 +3,7 @@ object-assign (c) Sindre Sorhus @license MIT -*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,u=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s2&&void 0!==arguments[2]?arguments[2]:{};var a=t.type;if("function"==typeof n)return function(e){e.MergedWidget||(t=e.defaultProps&&e.defaultProps.options||{},e.MergedWidget=function(n){var r=n.options,i=void 0===r?{}:r,a=l(n,["options"]);return u.default.createElement(e,o({options:o({},t,i)},a))});var t;return e.MergedWidget}(n);if("string"!=typeof n)throw new Error("Unsupported widget definition: "+(void 0===n?"undefined":r(n)));if(i.hasOwnProperty(n)){var s=i[n];return e(t,s,i)}if(!c.hasOwnProperty(a))throw new Error('No widget for type "'+a+'"');if(c[a].hasOwnProperty(n)){var f=i[c[a][n]];return e(t,f,i)}throw new Error('No widget "'+n+'" for type "'+a+'"')},t.getDefaultFormState=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!f(e))throw new Error("Invalid schema: "+e);var r=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var o=n;if(f(o)&&f(t.default))o=d(o,t.default);else if("default"in t)o=t.default;else{if("$ref"in t){var i=g(t.$ref,r);return e(i,o,r)}y(t)&&(o=t.items.map(function(t){return e(t,void 0,r)}))}void 0===o&&(o=t.default);switch(t.type){case"object":return Object.keys(t.properties||{}).reduce(function(n,i){return n[i]=e(t.properties[i],(o||{})[i],r),n},{});case"array":if(t.minItems){if(v(t,r))return[];var a=o?o.length:0;if(t.minItems>a){var u=o||[],s=new Array(t.minItems-a).fill(e(t.items,t.items.defaults,r));return u.concat(s)}}}return o}(_(e,n),e.default,n);if(void 0===t)return r;if(f(t))return d(r,t);return t||r},t.getUiOptions=function(e){return Object.keys(e).filter(function(e){return 0===e.indexOf("ui:")}).reduce(function(t,n){var r=e[n];return"ui:widget"===n&&f(r)?(console.warn("Setting options via ui:widget object is deprecated, use ui:options instead"),o({},t,r.options||{},{widget:r.component})):"ui:options"===n&&f(r)?o({},t,r):o({},t,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},n.substring(3),r))},{})},t.isObject=f,t.mergeObjects=d,t.asNumber=function(e){if(""===e)return;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;var t=Number(e),n="number"==typeof t&&!Number.isNaN(t);if(/\.\d*0$/.test(e))return e;return n?t:e},t.orderProperties=function(e,t){if(!Array.isArray(t))return e;var n=function(e){return e.reduce(function(e,t){return e[t]=!0,e},{})},r=function(e){return e.length>1?"properties '"+e.join("', '")+"'":"property '"+e[0]+"'"},o=n(e),i=n(t),a=t.filter(function(e){return"*"!==e&&!o[e]});if(a.length)throw new Error("uiSchema order list contains extraneous "+r(a));var u=e.filter(function(e){return!i[e]}),l=t.indexOf("*");if(-1===l){if(u.length)throw new Error("uiSchema order list does not contain "+r(u));return t}if(l!==t.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var c=[].concat(s(t));return c.splice.apply(c,[l,1].concat(s(u))),c},t.isConstant=p,t.toConstant=h,t.isSelect=m,t.isMultiSelect=v,t.isFilesArray=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("files"===t["ui:widget"])return!0;if(e.items){var r=_(e.items,n);return"string"===r.type&&"data-url"===r.format}return!1},t.isFixedItems=y,t.allowAdditionalItems=function(e){!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported");return f(e.additionalItems)},t.optionsList=function(e){if(e.enum)return e.enum.map(function(t,n){var r=e.enumNames&&e.enumNames[n]||String(t);return{label:r,value:t}});var t=e.oneOf||e.anyOf;return t.map(function(e,t){var n=h(e),r=e.title||String(n);return{label:r,value:n}})},t.retrieveSchema=_,t.deepEquals=x,t.shouldRender=function(e,t,n){var r=e.props,o=e.state;return!x(r,t)||!x(o,n)},t.toIdSchema=function e(t,n,r){var o={$id:n||"root"};if("$ref"in t){var i=_(t,r);return e(i,n,r)}if("items"in t&&!t.items.$ref)return e(t.items,n,r);if("object"!==t.type)return o;for(var a in t.properties||{}){var u=t.properties[a],s=o.$id+"_"+a;o[a]=e(u,s,r)}return o},t.parseDateString=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};var n=new Date(e);if(Number.isNaN(n.getTime()))throw new Error("Unable to parse date "+e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:t?n.getUTCHours():0,minute:t?n.getUTCMinutes():0,second:t?n.getUTCSeconds():0}},t.toDateString=function(e){var t=e.year,n=e.month,r=e.day,o=e.hour,i=void 0===o?0:o,a=e.minute,u=void 0===a?0:a,s=e.second,l=void 0===s?0:s,c=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],f=Date.UTC(t,n-1,r,i,u,l),d=new Date(f).toJSON();return c?d:d.slice(0,10)},t.pad=function(e,t){var n=String(e);for(;n.length=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}n(182);var c={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget"}};function f(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&!Array.isArray(e)}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object.assign({},e);return Object.keys(t).reduce(function(r,o){var i=e[o],a=t[o];return e.hasOwnProperty(o)&&f(a)?r[o]=d(i,a,n):n&&Array.isArray(i)&&Array.isArray(a)?r[o]=i.concat(a):r[o]=a,r},r)}function p(e){return Array.isArray(e.enum)&&1===e.enum.length||e.hasOwnProperty("const")}function h(e){if(Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(e.hasOwnProperty("const"))return e.const;throw new Error("schema cannot be inferred as a constant")}function m(e){var t=_(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=t.oneOf||t.anyOf;return!!Array.isArray(t.enum)||!!Array.isArray(n)&&n.every(function(e){return p(e)})}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(!e.uniqueItems||!e.items)&&m(e.items,t)}function y(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every(function(e){return f(e)})}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=/^#\/definitions\/(.*)$/.exec(e);if(n&&n[1]){var r=n[1].split("/"),o=t,i=!0,a=!1,u=void 0;try{for(var s,l=r[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var c=s.value;if(c=c.replace(/~1/g,"/").replace(/~0/g,"~"),!o.hasOwnProperty(c))throw new Error("Could not find a definition for "+e+".");o=o[c]}}catch(e){a=!0,u=e}finally{try{!i&&l.return&&l.return()}finally{if(a)throw u}}return o}throw new Error("Could not find a definition for "+e+".")}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.hasOwnProperty("$ref"))return e;var n=g(e.$ref,t),r=(e.$ref,l(e,["$ref"]));return o({},n,r)}function b(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function x(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!==(void 0===e?"undefined":r(e))||"object"!==(void 0===t?"undefined":r(t)))return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(b(e)||b(t)){if(!b(e)||!b(t))return!1;var i=Array.prototype.slice;return x(i.call(e),i.call(t),n,o)}if(e.constructor!==t.constructor)return!1;var a=Object.keys(e),u=Object.keys(t);if(0===a.length&&0===u.length)return!0;if(a.length!==u.length)return!1;for(var s=n.length;s--;)if(n[s]===e)return o[s]===t;n.push(e),o.push(t),a.sort(),u.sort();for(var l=a.length-1;l>=0;l--)if(a[l]!==u[l])return!1;for(var c=void 0,f=a.length-1;f>=0;f--)if(!x(e[c=a[f]],t[c],n,o))return!1;return n.pop(),o.pop(),!0}}).call(this,n(412).setImmediate)},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";e.exports={debugTool:null}},function(e,t,n){var r=n(13),o=n(10),i=n(41),a=n(35),u=function(e,t,n){var s,l,c,f=e&u.F,d=e&u.G,p=e&u.S,h=e&u.P,m=e&u.B,v=e&u.W,y=d?o:o[t]||(o[t]={}),g=y.prototype,_=d?r:p?r[t]:(r[t]||{}).prototype;for(s in d&&(n=t),n)(l=!f&&_&&void 0!==_[s])&&s in y||(c=l?_[s]:n[s],y[s]=d&&"function"!=typeof _[s]?n[s]:m&&l?i(c,r):v&&_[s]==c?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(c):h&&"function"==typeof c?i(Function.call,c):c,h&&((y.virtual||(y.virtual={}))[s]=c,e&u.R&&g&&!g[s]&&a(g,s,c)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){"use strict";var r=n(5),o=n(7),i=n(204),a=n(38),u=n(203),s=n(43),l=n(79),c=(n(4),[]),f=0,d=i.getPooled(),p=!1,h=null;function m(){x.ReactReconcileTransaction&&h||r("123")}var v=[{initialize:function(){this.dirtyComponentsLength=c.length},close:function(){this.dirtyComponentsLength!==c.length?(c.splice(0,this.dirtyComponentsLength),b()):c.length=0}},{initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}}];function y(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=i.getPooled(),this.reconcileTransaction=x.ReactReconcileTransaction.getPooled(!0)}function g(e,t){return e._mountOrder-t._mountOrder}function _(e){var t=e.dirtyComponentsLength;t!==c.length&&r("124",t,c.length),c.sort(g),f++;for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["value","readonly","disabled","autofocus","onBlur","onFocus","options","schema","formContext","registry"]));c.type=l.inputType||c.type||"text";return o.default.createElement("input",r({className:"form-control",readOnly:n,disabled:i,autoFocus:a,value:null==t?"":t},c,{onChange:function(t){var n=t.target.value;return e.onChange(""===n?l.emptyValue:n)},onBlur:u&&function(e){return u(c.id,e.target.value)},onFocus:s&&function(e){return s(c.id,e.target.value)}}))}a.defaultProps={type:"text",required:!1,disabled:!1,readonly:!1,autofocus:!1},t.default=a},function(e,t,n){"use strict";var r=n(7),o=n(38),i=n(15),a=(n(6),["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),u={type:null,target:null,currentTarget:i.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};function s(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var a in o)if(o.hasOwnProperty(a)){0;var u=o[a];u?this[a]=u(n):"target"===a?this.target=r:this[a]=n[a]}var s=null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue;return this.isDefaultPrevented=s?i.thatReturnsTrue:i.thatReturnsFalse,this.isPropagationStopped=i.thatReturnsFalse,this}r(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=i.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=i.thatReturnsTrue)},persist:function(){this.isPersistent=i.thatReturnsTrue},isPersistent:i.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;for(var n=0;n=0&&t._call.call(null,e),t=t._next;--i}function _(){c=(l=d.now())+f,i=a=0;try{g()}finally{i=0,function(){var e,t,n=r,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:r=t);o=e,x(i)}(),c=0}}function b(){var e=d.now(),t=e-l;t>s&&(f-=t,l=e)}function x(e){i||(a&&(a=clearTimeout(a)),e-c>24?(e<1/0&&(a=setTimeout(_,e-d.now()-f)),u&&(u=clearInterval(u))):(u||(l=d.now(),u=setInterval(b,s)),i=1,p(_)))}v.prototype=y.prototype={constructor:v,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?h():+n)+(null==t?0:+t),this._next||o===this||(o?o._next=this:r=this,o=this),this._call=e,this._time=n,x()},stop:function(){this._call&&(this._call=null,this._time=1/0,x())}};var w=function(e,t,n){var r=new v;return t=null==t?0:+t,r.restart(function(n){r.stop(),e(n+t)},t,n),r},E=function(e,t,n){var r=new v,o=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?h():+n,r.restart(function i(a){a+=o,r.restart(i,o+=t,n),e(a)},t,n),r)};n.d(t,"a",function(){return h}),n.d(t,"c",function(){return y}),n.d(t,!1,function(){return g}),n.d(t,"b",function(){return w}),n.d(t,!1,function(){return E})},function(e,t,n){e.exports=!n(53)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";var r={value:function(){}};function o(){for(var e,t=0,n=arguments.length,r={};t=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})),s=-1,l=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++s0)for(var n,r,o=new Array(n),i=0;i1){for(var h=Array(p),m=0;m1){for(var y=Array(v),g=0;g]/;e.exports=function(e){return"boolean"==typeof e||"number"==typeof e?""+e:function(e){var t,n=""+e,o=r.exec(n);if(!o)return n;var i="",a=0,u=0;for(a=o.index;a]/,s=n(122)(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{(r=r||document.createElement("div")).innerHTML=""+t+"";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(o.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(s=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&u.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=s},function(e,t,n){"use strict";var r=n(57),o=n(200),i={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:n(125),button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+o.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+o.currentScrollTop}};function a(e,t,n,o){return r.call(this,e,t,n,o)}r.augmentClass(a,i),e.exports=a},function(e,t,n){"use strict";var r=n(5),o=(n(4),{}),i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,o,i,a,u,s){var l,c;this.isInTransaction()&&r("27");try{this._isInTransaction=!0,l=!0,this.initializeAll(0),c=e.call(t,n,o,i,a,u,s),l=!1}finally{try{if(l)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;nw}_.mouse("drag")}function k(){Object(o.select)(o.event.view).on("mousemove.drag mouseup.drag",null),s(o.event.view,n),a(),_.mouse("end")}function S(){if(v.apply(this,arguments)){var e,t,n=o.event.changedTouches,r=y.apply(this,arguments),a=n.length;for(e=0;e0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(167),o=n(94);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(21),o=n(354),i=n(94),a=n(104)("IE_PROTO"),u=function(){},s=function(){var e,t=n(102)("iframe"),r=i.length;for(t.style.display="none",n(166).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("