From 51847e78e567d8d3bda1a0562a85500fc86ce7e8 Mon Sep 17 00:00:00 2001 From: Sajini Ariyawansa Date: Mon, 21 Nov 2016 16:56:00 +1100 Subject: [PATCH] Update: Tree picker node component to support child nodes --- dist/adslot-ui-main-ugly.js | 17400 ++++++++-------- dist/adslot-ui-main.js | 38 +- dist/adslot-ui.css | 2 +- src/components/Main.jsx | 2 +- .../adslotUi/TreePickerNodeComponent.jsx | 2 +- src/helpers/propTypes/TreePickerPropTypes.js | 1 + src/styles/adslotUi/TreePickerNode.scss | 6 + .../adslotUi/TreePickerNodeComponentTest.jsx | 9 + 8 files changed, 8296 insertions(+), 9164 deletions(-) diff --git a/dist/adslot-ui-main-ugly.js b/dist/adslot-ui-main-ugly.js index feebde309..0f86319ad 100644 --- a/dist/adslot-ui-main-ugly.js +++ b/dist/adslot-ui-main-ugly.js @@ -79,7 +79,7 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var _AccordionComponent = __webpack_require__(210); + var _AccordionComponent = __webpack_require__(205); var _AccordionComponent2 = _interopRequireDefault(_AccordionComponent); @@ -87,111 +87,111 @@ return /******/ (function(modules) { // webpackBootstrap var _Button2 = _interopRequireDefault(_Button); - var _SearchBarComponent = __webpack_require__(215); + var _SearchBarComponent = __webpack_require__(210); var _SearchBarComponent2 = _interopRequireDefault(_SearchBarComponent); - var _Checkbox = __webpack_require__(198); + var _Checkbox = __webpack_require__(194); var _Checkbox2 = _interopRequireDefault(_Checkbox); - var _ConfirmModalComponent = __webpack_require__(211); + var _ConfirmModalComponent = __webpack_require__(206); var _ConfirmModalComponent2 = _interopRequireDefault(_ConfirmModalComponent); - var _reactDatepicker = __webpack_require__(318); + var _reactDatepicker = __webpack_require__(314); var _reactDatepicker2 = _interopRequireDefault(_reactDatepicker); - var _fastStatelessWrapper = __webpack_require__(61); + var _fastStatelessWrapper = __webpack_require__(60); var _fastStatelessWrapper2 = _interopRequireDefault(_fastStatelessWrapper); - var _FilePickerComponent = __webpack_require__(212); + var _FilePickerComponent = __webpack_require__(207); var _FilePickerComponent2 = _interopRequireDefault(_FilePickerComponent); - var _FormGroupComponent = __webpack_require__(213); + var _FormGroupComponent = __webpack_require__(208); var _FormGroupComponent2 = _interopRequireDefault(_FormGroupComponent); - var _ListPickerComponent = __webpack_require__(55); + var _ListPickerComponent = __webpack_require__(54); var _ListPickerComponent2 = _interopRequireDefault(_ListPickerComponent); - var _ListPickerPureComponent = __webpack_require__(56); + var _ListPickerPureComponent = __webpack_require__(55); var _ListPickerPureComponent2 = _interopRequireDefault(_ListPickerPureComponent); - var _Modal = __webpack_require__(41); + var _Modal = __webpack_require__(40); var _Modal2 = _interopRequireDefault(_Modal); - var _OverlayTrigger = __webpack_require__(246); + var _OverlayTrigger = __webpack_require__(241); var _OverlayTrigger2 = _interopRequireDefault(_OverlayTrigger); - var _PagedGridComponent = __webpack_require__(214); + var _PagedGridComponent = __webpack_require__(209); var _PagedGridComponent2 = _interopRequireDefault(_PagedGridComponent); - var _Pagination = __webpack_require__(166); + var _Pagination = __webpack_require__(162); var _Pagination2 = _interopRequireDefault(_Pagination); - var _PanelComponent = __webpack_require__(57); + var _PanelComponent = __webpack_require__(56); var _PanelComponent2 = _interopRequireDefault(_PanelComponent); - var _Popover = __webpack_require__(248); + var _Popover = __webpack_require__(243); var _Popover2 = _interopRequireDefault(_Popover); - var _Radio = __webpack_require__(53); + var _Radio = __webpack_require__(52); var _Radio2 = _interopRequireDefault(_Radio); - var _RadioGroup = __webpack_require__(320); + var _RadioGroup = __webpack_require__(316); var _RadioGroup2 = _interopRequireDefault(_RadioGroup); - var _reactSelect = __webpack_require__(38); + var _reactSelect = __webpack_require__(203); var _reactSelect2 = _interopRequireDefault(_reactSelect); - var _SplitPaneComponent = __webpack_require__(39); + var _SplitPaneComponent = __webpack_require__(38); var _SplitPaneComponent2 = _interopRequireDefault(_SplitPaneComponent); - var _Tab = __webpack_require__(249); + var _Tab = __webpack_require__(244); var _Tab2 = _interopRequireDefault(_Tab); - var _Tabs = __webpack_require__(251); + var _Tabs = __webpack_require__(246); var _Tabs2 = _interopRequireDefault(_Tabs); - var _reactToggle = __webpack_require__(351); + var _reactToggle = __webpack_require__(345); var _reactToggle2 = _interopRequireDefault(_reactToggle); - var _TreePickerGridComponent = __webpack_require__(58); + var _TreePickerGridComponent = __webpack_require__(57); var _TreePickerGridComponent2 = _interopRequireDefault(_TreePickerGridComponent); - var _TreePickerNavComponent = __webpack_require__(59); + var _TreePickerNavComponent = __webpack_require__(58); var _TreePickerNavComponent2 = _interopRequireDefault(_TreePickerNavComponent); - var _TreePickerNodeComponent = __webpack_require__(60); + var _TreePickerNodeComponent = __webpack_require__(59); var _TreePickerNodeComponent2 = _interopRequireDefault(_TreePickerNodeComponent); - var _TreePickerSimplePureComponent = __webpack_require__(216); + var _TreePickerSimplePureComponent = __webpack_require__(211); var _TreePickerSimplePureComponent2 = _interopRequireDefault(_TreePickerSimplePureComponent); - var _UserListPickerComponent = __webpack_require__(217); + var _UserListPickerComponent = __webpack_require__(212); var _UserListPickerComponent2 = _interopRequireDefault(_UserListPickerComponent); @@ -200,11 +200,11 @@ return /******/ (function(modules) { // webpackBootstrap function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // Export the consumable components. - __webpack_require__(219); - __webpack_require__(220); - __webpack_require__(222); - __webpack_require__(223); - __webpack_require__(221); + __webpack_require__(214); + __webpack_require__(215); + __webpack_require__(217); + __webpack_require__(218); + __webpack_require__(216); module.exports = { Accordion: _AccordionComponent2.default, @@ -262,7 +262,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {//! moment.js - //! version : 2.15.1 + //! version : 2.14.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com @@ -290,9 +290,7 @@ return /******/ (function(modules) { // webpackBootstrap } function isObject(input) { - // IE8 will treat undefined and null as object if it wasn't for - // input != null - return input != null && Object.prototype.toString.call(input) === '[object Object]'; + return Object.prototype.toString.call(input) === '[object Object]'; } function isObjectEmpty(obj) { @@ -391,7 +389,7 @@ return /******/ (function(modules) { // webpackBootstrap var parsedParts = some.call(flags.parsedDateParts, function (i) { return i != null; }); - var isNowValid = !isNaN(m._d.getTime()) && + m._isValid = !isNaN(m._d.getTime()) && flags.overflow < 0 && !flags.empty && !flags.invalidMonth && @@ -402,18 +400,11 @@ return /******/ (function(modules) { // webpackBootstrap (!flags.meridiem || (flags.meridiem && parsedParts)); if (m._strict) { - isNowValid = isNowValid && + m._isValid = m._isValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === undefined; } - - if (Object.isFrozen == null || !Object.isFrozen(m)) { - m._isValid = isNowValid; - } - else { - return isNowValid; - } } return m._isValid; } @@ -554,22 +545,7 @@ return /******/ (function(modules) { // webpackBootstrap utils_hooks__hooks.deprecationHandler(null, msg); } if (firstTime) { - var args = []; - var arg; - for (var i = 0; i < arguments.length; i++) { - arg = ''; - if (typeof arguments[i] === 'object') { - arg += '\n[' + i + '] '; - for (var key in arguments[0]) { - arg += key + ': ' + arguments[0][key] + ', '; - } - arg = arg.slice(0, -2); // Remove trailing comma and space - } else { - arg = arguments[i]; - } - args.push(arg); - } - warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack); + warn(msg + '\nArguments: ' + Array.prototype.slice.call(arguments).join(', ') + '\n' + (new Error()).stack); firstTime = false; } return fn.apply(this, arguments); @@ -1096,18 +1072,12 @@ return /******/ (function(modules) { // webpackBootstrap var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/; var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'); function localeMonths (m, format) { - if (!m) { - return this._months; - } return isArray(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()]; } var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'); function localeMonthsShort (m, format) { - if (!m) { - return this._monthsShort; - } return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()]; } @@ -1604,21 +1574,18 @@ return /******/ (function(modules) { // webpackBootstrap var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'); function localeWeekdays (m, format) { - if (!m) { - return this._weekdays; - } return isArray(this._weekdays) ? this._weekdays[m.day()] : this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()]; } var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'); function localeWeekdaysShort (m) { - return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort; + return this._weekdaysShort[m.day()]; } var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'); function localeWeekdaysMin (m) { - return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin; + return this._weekdaysMin[m.day()]; } function day_of_week__handleStrictParse(weekdayName, format, strict) { @@ -2057,7 +2024,7 @@ return /******/ (function(modules) { // webpackBootstrap module && module.exports) { try { oldLocale = globalLocale._abbr; - __webpack_require__(235)("./" + name); + __webpack_require__(230)("./" + name); // because defineLocale currently also sets the global locale, we // want to undo that for lazy loaded locales locale_locales__getSetGlobalLocale(oldLocale); @@ -2313,9 +2280,9 @@ return /******/ (function(modules) { // webpackBootstrap } utils_hooks__hooks.createFromInputFallback = deprecate( - 'value provided is not in a recognized ISO format. moment construction falls back to js Date(), ' + - 'which is not reliable across all browsers and versions. Non ISO date formats are ' + - 'discouraged and will be removed in an upcoming major release. Please refer to ' + + 'moment construction falls back to js Date. This is ' + + 'discouraged and will be removed in upcoming major ' + + 'release. Please refer to ' + 'http://momentjs.com/guides/#/warnings/js-date/ for more info.', function (config) { config._d = new Date(config._i + (config._useUTC ? ' UTC' : '')); @@ -2814,14 +2781,6 @@ return /******/ (function(modules) { // webpackBootstrap return obj instanceof Duration; } - function absRound (number) { - if (number < 0) { - return Math.round(-1 * number) * -1; - } else { - return Math.round(number); - } - } - // FORMATTING function offset (token, separator) { @@ -2972,13 +2931,7 @@ return /******/ (function(modules) { // webpackBootstrap if (this._tzm) { this.utcOffset(this._tzm); } else if (typeof this._i === 'string') { - var tZone = offsetFromString(matchOffset, this._i); - - if (tZone === 0) { - this.utcOffset(0, true); - } else { - this.utcOffset(offsetFromString(matchOffset, this._i)); - } + this.utcOffset(offsetFromString(matchOffset, this._i)); } return this; } @@ -3033,7 +2986,7 @@ return /******/ (function(modules) { // webpackBootstrap } // ASP.NET json date format regex - var aspNetRegex = /^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/; + var aspNetRegex = /^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/; // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere @@ -3065,11 +3018,11 @@ return /******/ (function(modules) { // webpackBootstrap sign = (match[1] === '-') ? -1 : 1; duration = { y : 0, - d : toInt(match[DATE]) * sign, - h : toInt(match[HOUR]) * sign, - m : toInt(match[MINUTE]) * sign, - s : toInt(match[SECOND]) * sign, - ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match + d : toInt(match[DATE]) * sign, + h : toInt(match[HOUR]) * sign, + m : toInt(match[MINUTE]) * sign, + s : toInt(match[SECOND]) * sign, + ms : toInt(match[MILLISECOND]) * sign }; } else if (!!(match = isoRegex.exec(input))) { sign = (match[1] === '-') ? -1 : 1; @@ -3144,6 +3097,14 @@ return /******/ (function(modules) { // webpackBootstrap return res; } + function absRound (number) { + if (number < 0) { + return Math.round(-1 * number) * -1; + } else { + return Math.round(number); + } + } + // TODO: remove 'name' arg after deprecation is removed function createAdder(direction, name) { return function (val, period) { @@ -4458,7 +4419,7 @@ return /******/ (function(modules) { // webpackBootstrap // Side effect imports - utils_hooks__hooks.version = '2.15.1'; + utils_hooks__hooks.version = '2.14.1'; setHookCallback(local__createLocal); @@ -4495,7 +4456,7 @@ return /******/ (function(modules) { // webpackBootstrap return _moment; })); - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(356)(module))) + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(350)(module))) /***/ }, /* 2 */ @@ -4573,7 +4534,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, /* 5 */ -[364, 170], +[358, 166], /* 6 */ /***/ function(module, exports, __webpack_require__) { @@ -4769,30 +4730,20 @@ return /******/ (function(modules) { // webpackBootstrap var cachedSetTimeout; var cachedClearTimeout; - function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); - } - function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); - } (function () { try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } + cachedSetTimeout = setTimeout; } catch (e) { - cachedSetTimeout = defaultSetTimout; + cachedSetTimeout = function () { + throw new Error('setTimeout is not defined'); + } } try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } + cachedClearTimeout = clearTimeout; } catch (e) { - cachedClearTimeout = defaultClearTimeout; + cachedClearTimeout = function () { + throw new Error('clearTimeout is not defined'); + } } } ()) function runTimeout(fun) { @@ -4800,11 +4751,6 @@ return /******/ (function(modules) { // webpackBootstrap //normal enviroments in sane situations return setTimeout(fun, 0); } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedSetTimeout(fun, 0); @@ -4825,11 +4771,6 @@ return /******/ (function(modules) { // webpackBootstrap //normal enviroments in sane situations return clearTimeout(marker); } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedClearTimeout(marker); @@ -4968,7 +4909,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, /* 12 */ -[366, 171, 253], +[360, 167, 248], /* 13 */ /***/ function(module, exports) { @@ -5002,7 +4943,7 @@ return /******/ (function(modules) { // webpackBootstrap var _react2 = _interopRequireDefault(_react); - var _common = __webpack_require__(195); + var _common = __webpack_require__(191); /** * Checks whether a prop provides a type of element. @@ -5073,7 +5014,7 @@ return /******/ (function(modules) { // webpackBootstrap var _utilsBootstrapUtils = __webpack_require__(7); - var _SafeAnchor = __webpack_require__(42); + var _SafeAnchor = __webpack_require__(41); var _SafeAnchor2 = _interopRequireDefault(_SafeAnchor); @@ -5195,9 +5136,9 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var _Object$assign = __webpack_require__(170)['default']; + var _Object$assign = __webpack_require__(166)['default']; - var _Object$create = __webpack_require__(171)['default']; + var _Object$create = __webpack_require__(167)['default']; var _Object$keys = __webpack_require__(20)['default']; @@ -5322,7 +5263,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 20 */ /***/ function(module, exports, __webpack_require__) { - module.exports = { "default": __webpack_require__(256), __esModule: true }; + module.exports = { "default": __webpack_require__(251), __esModule: true }; /***/ }, /* 21 */ @@ -5333,31 +5274,6 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, /* 22 */ -/***/ function(module, exports, __webpack_require__) { - - 'use strict'; - var canUseDOM = __webpack_require__(15); - - var contains = (function () { - var root = canUseDOM && document.documentElement; - - return root && root.contains ? function (context, node) { - return context.contains(node); - } : root && root.compareDocumentPosition ? function (context, node) { - return context === node || !!(context.compareDocumentPosition(node) & 16); - } : function (context, node) { - if (node) do { - if (node === context) return true; - } while (node = node.parentNode); - - return false; - }; - })(); - - module.exports = contains; - -/***/ }, -/* 23 */ /***/ function(module, exports) { /** @@ -5375,7 +5291,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 24 */ +/* 23 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -5401,7 +5317,7 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /***/ }, -/* 25 */ +/* 24 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** @@ -5468,7 +5384,7 @@ return /******/ (function(modules) { // webpackBootstrap /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8))) /***/ }, -/* 26 */ +/* 25 */ /***/ function(module, exports) { var $Object = Object; @@ -5486,7 +5402,7 @@ return /******/ (function(modules) { // webpackBootstrap }; /***/ }, -/* 27 */ +/* 26 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; @@ -5509,7 +5425,8 @@ return /******/ (function(modules) { // webpackBootstrap label: _react.PropTypes.string.isRequired }).isRequired).isRequired, type: _react.PropTypes.string.isRequired, - value: _react.PropTypes.number + value: _react.PropTypes.number, + isChildNode: _react.PropTypes.bool }), breadCrumbNode: _react.PropTypes.shape({ id: _react.PropTypes.string.isRequired, @@ -5525,6 +5442,31 @@ return /******/ (function(modules) { // webpackBootstrap }) }; +/***/ }, +/* 27 */ +/***/ function(module, exports, __webpack_require__) { + + 'use strict'; + var canUseDOM = __webpack_require__(15); + + var contains = (function () { + var root = canUseDOM && document.documentElement; + + return root && root.contains ? function (context, node) { + return context.contains(node); + } : root && root.compareDocumentPosition ? function (context, node) { + return context === node || !!(context.compareDocumentPosition(node) & 16); + } : function (context, node) { + if (node) do { + if (node === context) return true; + } while (node = node.parentNode); + + return false; + }; + })(); + + module.exports = contains; + /***/ }, /* 28 */ /***/ function(module, exports) { @@ -5637,7 +5579,7 @@ return /******/ (function(modules) { // webpackBootstrap "use strict"; - var _Object$defineProperty = __webpack_require__(200)["default"]; + var _Object$defineProperty = __webpack_require__(196)["default"]; exports["default"] = (function () { function defineProperties(target, props) { @@ -5662,13 +5604,13 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, /* 33 */ -[364, 321], +[358, 317], /* 34 */ /***/ function(module, exports, __webpack_require__) { "use strict"; - var _Object$getOwnPropertyDescriptor = __webpack_require__(323)["default"]; + var _Object$getOwnPropertyDescriptor = __webpack_require__(319)["default"]; exports["default"] = function get(_x, _x2, _x3) { var _again = true; @@ -5713,7 +5655,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, /* 35 */ -[366, 322, 324], +[360, 318, 320], /* 36 */ 4, /* 37 */ @@ -5721,1255 +5663,630 @@ return /******/ (function(modules) { // webpackBootstrap /* 38 */ /***/ function(module, exports, __webpack_require__) { - /*! - Copyright (c) 2016 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/react-select - */ - 'use strict'; - Object.defineProperty(exports, '__esModule', { - value: true + Object.defineProperty(exports, "__esModule", { + value: true }); - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + var _react = __webpack_require__(2); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + var _react2 = _interopRequireDefault(_react); - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + var _classnames = __webpack_require__(3); - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + var _classnames2 = _interopRequireDefault(_classnames); - var _react = __webpack_require__(2); + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _react2 = _interopRequireDefault(_react); + function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } // TODO: Move to Alexandria. - var _reactDom = __webpack_require__(9); + __webpack_require__(225); - var _reactDom2 = _interopRequireDefault(_reactDom); + var SplitPaneComponent = function SplitPaneComponent(_ref) { + var children = _ref.children; + var dts = _ref.dts; + var additionalClassNames = _ref.additionalClassNames; - var _reactInputAutosize = __webpack_require__(349); + var splitPaneClass = _classnames2.default.apply(undefined, ['splitpane-component'].concat(_toConsumableArray(additionalClassNames))); - var _reactInputAutosize2 = _interopRequireDefault(_reactInputAutosize); + return _react2.default.createElement( + 'div', + { className: splitPaneClass, 'if': true, dts: true, 'data-test-selector': dts }, + children + ); + }; - var _classnames = __webpack_require__(3); + SplitPaneComponent.displayName = 'AdslotUiSplitPaneComponent'; + SplitPaneComponent.propTypes = { + additionalClassNames: _react.PropTypes.arrayOf(_react.PropTypes.string), + children: _react.PropTypes.node, + dts: _react.PropTypes.string + }; + SplitPaneComponent.defaultProps = { + additionalClassNames: [] + }; + exports.default = SplitPaneComponent; - var _classnames2 = _interopRequireDefault(_classnames); +/***/ }, +/* 39 */ +/***/ function(module, exports, __webpack_require__) { - var _utilsDefaultArrowRenderer = __webpack_require__(348); + 'use strict'; - var _utilsDefaultArrowRenderer2 = _interopRequireDefault(_utilsDefaultArrowRenderer); + var _inherits = __webpack_require__(12)['default']; - var _utilsDefaultFilterOptions = __webpack_require__(207); + var _classCallCheck = __webpack_require__(11)['default']; - var _utilsDefaultFilterOptions2 = _interopRequireDefault(_utilsDefaultFilterOptions); + var _extends = __webpack_require__(5)['default']; - var _utilsDefaultMenuRenderer = __webpack_require__(208); + var _interopRequireDefault = __webpack_require__(4)['default']; - var _utilsDefaultMenuRenderer2 = _interopRequireDefault(_utilsDefaultMenuRenderer); + exports.__esModule = true; - var _Async = __webpack_require__(343); + var _react = __webpack_require__(2); - var _Async2 = _interopRequireDefault(_Async); + var _react2 = _interopRequireDefault(_react); - var _AsyncCreatable = __webpack_require__(344); + var _classnames = __webpack_require__(3); - var _AsyncCreatable2 = _interopRequireDefault(_AsyncCreatable); + var _classnames2 = _interopRequireDefault(_classnames); - var _Creatable = __webpack_require__(345); + var _reactOverlaysLibTransition = __webpack_require__(304); - var _Creatable2 = _interopRequireDefault(_Creatable); + var _reactOverlaysLibTransition2 = _interopRequireDefault(_reactOverlaysLibTransition); - var _Option = __webpack_require__(346); + var Fade = (function (_React$Component) { + _inherits(Fade, _React$Component); - var _Option2 = _interopRequireDefault(_Option); + function Fade() { + _classCallCheck(this, Fade); - var _Value = __webpack_require__(347); + _React$Component.apply(this, arguments); + } - var _Value2 = _interopRequireDefault(_Value); + // Explicitly copied from Transition for doc generation. + // TODO: Remove duplication once #977 is resolved. - function stringifyValue(value) { - var valueType = typeof value; - if (valueType === 'string') { - return value; - } else if (valueType === 'object') { - return JSON.stringify(value); - } else if (valueType === 'number' || valueType === 'boolean') { - return String(value); - } else { - return ''; - } - } + Fade.prototype.render = function render() { + var timeout = this.props.timeout; - var stringOrNode = _react2['default'].PropTypes.oneOfType([_react2['default'].PropTypes.string, _react2['default'].PropTypes.node]); + return _react2['default'].createElement( + _reactOverlaysLibTransition2['default'], + _extends({}, this.props, { + timeout: timeout, + className: _classnames2['default'](this.props.className, 'fade'), + enteredClassName: 'in', + enteringClassName: 'in' + }), + this.props.children + ); + }; - var instanceId = 1; + return Fade; + })(_react2['default'].Component); - var Select = _react2['default'].createClass({ + Fade.propTypes = { + /** + * Show the component; triggers the fade in or fade out animation + */ + 'in': _react2['default'].PropTypes.bool, - displayName: 'Select', + /** + * Unmount the component (remove it from the DOM) when it is faded out + */ + unmountOnExit: _react2['default'].PropTypes.bool, - propTypes: { - addLabelText: _react2['default'].PropTypes.string, // placeholder displayed when you want to add a label on a multi-value input - 'aria-label': _react2['default'].PropTypes.string, // Aria label (for assistive tech) - 'aria-labelledby': _react2['default'].PropTypes.string, // HTML ID of an element that should be used as the label (for assistive tech) - arrowRenderer: _react2['default'].PropTypes.func, // Create drop-down caret element - autoBlur: _react2['default'].PropTypes.bool, // automatically blur the component when an option is selected - autofocus: _react2['default'].PropTypes.bool, // autofocus the component on mount - autosize: _react2['default'].PropTypes.bool, // whether to enable autosizing or not - backspaceRemoves: _react2['default'].PropTypes.bool, // whether backspace removes an item if there is no text input - backspaceToRemoveMessage: _react2['default'].PropTypes.string, // Message to use for screenreaders to press backspace to remove the current item - {label} is replaced with the item label - className: _react2['default'].PropTypes.string, // className for the outer element - clearAllText: stringOrNode, // title for the "clear" control when multi: true - clearValueText: stringOrNode, // title for the "clear" control - clearable: _react2['default'].PropTypes.bool, // should it be possible to reset value - delimiter: _react2['default'].PropTypes.string, // delimiter to use to join multiple values for the hidden field value - disabled: _react2['default'].PropTypes.bool, // whether the Select is disabled or not - escapeClearsValue: _react2['default'].PropTypes.bool, // whether escape clears the value when the menu is closed - filterOption: _react2['default'].PropTypes.func, // method to filter a single option (option, filterString) - filterOptions: _react2['default'].PropTypes.any, // boolean to enable default filtering or function to filter the options array ([options], filterString, [values]) - ignoreAccents: _react2['default'].PropTypes.bool, // whether to strip diacritics when filtering - ignoreCase: _react2['default'].PropTypes.bool, // whether to perform case-insensitive filtering - inputProps: _react2['default'].PropTypes.object, // custom attributes for the Input - inputRenderer: _react2['default'].PropTypes.func, // returns a custom input component - instanceId: _react2['default'].PropTypes.string, // set the components instanceId - isLoading: _react2['default'].PropTypes.bool, // whether the Select is loading externally or not (such as options being loaded) - joinValues: _react2['default'].PropTypes.bool, // joins multiple values into a single form field with the delimiter (legacy mode) - labelKey: _react2['default'].PropTypes.string, // path of the label value in option objects - matchPos: _react2['default'].PropTypes.string, // (any|start) match the start or entire string when filtering - matchProp: _react2['default'].PropTypes.string, // (any|label|value) which option property to filter on - menuBuffer: _react2['default'].PropTypes.number, // optional buffer (in px) between the bottom of the viewport and the bottom of the menu - menuContainerStyle: _react2['default'].PropTypes.object, // optional style to apply to the menu container - menuRenderer: _react2['default'].PropTypes.func, // renders a custom menu with options - menuStyle: _react2['default'].PropTypes.object, // optional style to apply to the menu - multi: _react2['default'].PropTypes.bool, // multi-value input - name: _react2['default'].PropTypes.string, // generates a hidden tag with this field name for html forms - noResultsText: stringOrNode, // placeholder displayed when there are no matching search results - onBlur: _react2['default'].PropTypes.func, // onBlur handler: function (event) {} - onBlurResetsInput: _react2['default'].PropTypes.bool, // whether input is cleared on blur - onChange: _react2['default'].PropTypes.func, // onChange handler: function (newValue) {} - onClose: _react2['default'].PropTypes.func, // fires when the menu is closed - onCloseResetsInput: _react2['default'].PropTypes.bool, // whether input is cleared when menu is closed through the arrow - onFocus: _react2['default'].PropTypes.func, // onFocus handler: function (event) {} - onInputChange: _react2['default'].PropTypes.func, // onInputChange handler: function (inputValue) {} - onInputKeyDown: _react2['default'].PropTypes.func, // input keyDown handler: function (event) {} - onMenuScrollToBottom: _react2['default'].PropTypes.func, // fires when the menu is scrolled to the bottom; can be used to paginate options - onOpen: _react2['default'].PropTypes.func, // fires when the menu is opened - onValueClick: _react2['default'].PropTypes.func, // onClick handler for value labels: function (value, event) {} - openAfterFocus: _react2['default'].PropTypes.bool, // boolean to enable opening dropdown when focused - openOnFocus: _react2['default'].PropTypes.bool, // always open options menu on focus - optionClassName: _react2['default'].PropTypes.string, // additional class(es) to apply to the