Skip to content

Commit 17aeefe

Browse files
committed
rebuild
1 parent 79ad9c2 commit 17aeefe

13 files changed

Lines changed: 157 additions & 173 deletions

dist/css/react-widgets.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-widgets-globalize.js

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
/*! (c) 2016 Jason Quense | https://github.com/jquense/react-widgets/blob/master/License.txt */
2-
(function webpackUniversalModuleDefinition(root, factory) {
3-
if(typeof exports === 'object' && typeof module === 'object')
4-
module.exports = factory(require("react"), require("ReactWidgets"));
5-
else if(typeof define === 'function' && define.amd)
6-
define([, "ReactWidgets"], factory);
7-
else if(typeof exports === 'object')
8-
exports["ReactWidgets"] = factory(require("react"), require("ReactWidgets"));
9-
else
10-
root["ReactWidgets"] = factory(root["React"], root["ReactWidgets"]);
11-
})(this, function(__WEBPACK_EXTERNAL_MODULE_20__, __WEBPACK_EXTERNAL_MODULE_91__) {
12-
return /******/ (function(modules) { // webpackBootstrap
2+
/******/ (function(modules) { // webpackBootstrap
133
/******/ // The module cache
144
/******/ var installedModules = {};
155

@@ -51,19 +41,33 @@ return /******/ (function(modules) { // webpackBootstrap
5141
/******/ return __webpack_require__(0);
5242
/******/ })
5343
/************************************************************************/
54-
/******/ ({
44+
/******/ ([
45+
/* 0 */
46+
/***/ function(module, exports, __webpack_require__) {
47+
48+
/*** IMPORTS FROM imports-loader ***/
49+
var module = __webpack_require__(1);
50+
var args = [Globalize];
51+
52+
53+
if (typeof module === 'function') {
54+
module.apply(null, args || [])
55+
}
56+
5557

56-
/***/ 0:
58+
59+
/***/ },
60+
/* 1 */
5761
/***/ function(module, exports, __webpack_require__) {
5862

5963
'use strict';
6064

6165
exports.__esModule = true;
6266
exports.default = globalizeLocalizers;
6367

64-
var _react = __webpack_require__(20);
68+
var _react = __webpack_require__(2);
6569

66-
var _configure = __webpack_require__(91);
70+
var _configure = __webpack_require__(3);
6771

6872
var _configure2 = _interopRequireDefault(_configure);
6973

@@ -264,21 +268,16 @@ return /******/ (function(modules) { // webpackBootstrap
264268
module.exports = exports['default'];
265269

266270
/***/ },
267-
268-
/***/ 20:
271+
/* 2 */
269272
/***/ function(module, exports) {
270273

271-
module.exports = __WEBPACK_EXTERNAL_MODULE_20__;
274+
module.exports = window.React;
272275

273276
/***/ },
274-
275-
/***/ 91:
277+
/* 3 */
276278
/***/ function(module, exports) {
277279

278-
module.exports = __WEBPACK_EXTERNAL_MODULE_91__;
280+
module.exports = window.ReactWidgets;
279281

280282
/***/ }
281-
282-
/******/ })
283-
});
284-
;
283+
/******/ ]);

dist/react-widgets-moment.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
/*! (c) 2016 Jason Quense | https://github.com/jquense/react-widgets/blob/master/License.txt */
2-
(function webpackUniversalModuleDefinition(root, factory) {
3-
if(typeof exports === 'object' && typeof module === 'object')
4-
module.exports = factory(require("ReactWidgets"));
5-
else if(typeof define === 'function' && define.amd)
6-
define(["ReactWidgets"], factory);
7-
else if(typeof exports === 'object')
8-
exports["ReactWidgets"] = factory(require("ReactWidgets"));
9-
else
10-
root["ReactWidgets"] = factory(root["ReactWidgets"]);
11-
})(this, function(__WEBPACK_EXTERNAL_MODULE_91__) {
12-
return /******/ (function(modules) { // webpackBootstrap
2+
/******/ (function(modules) { // webpackBootstrap
133
/******/ // The module cache
144
/******/ var installedModules = {};
155

@@ -51,9 +41,23 @@ return /******/ (function(modules) { // webpackBootstrap
5141
/******/ return __webpack_require__(0);
5242
/******/ })
5343
/************************************************************************/
54-
/******/ ({
44+
/******/ ([
45+
/* 0 */
46+
/***/ function(module, exports, __webpack_require__) {
47+
48+
/*** IMPORTS FROM imports-loader ***/
49+
var module = __webpack_require__(1);
50+
var args = [moment];
51+
52+
53+
if (typeof module === 'function') {
54+
module.apply(null, args || [])
55+
}
56+
5557

56-
/***/ 0:
58+
59+
/***/ },
60+
/* 1 */
5761
/***/ function(module, exports, __webpack_require__) {
5862

5963
'use strict';
@@ -119,7 +123,7 @@ return /******/ (function(modules) { // webpackBootstrap
119123
return localizer;
120124
};
121125

122-
var _configure = __webpack_require__(91);
126+
var _configure = __webpack_require__(2);
123127

124128
var _configure2 = _interopRequireDefault(_configure);
125129

@@ -128,14 +132,10 @@ return /******/ (function(modules) { // webpackBootstrap
128132
module.exports = exports['default'];
129133

130134
/***/ },
131-
132-
/***/ 91:
135+
/* 2 */
133136
/***/ function(module, exports) {
134137

135-
module.exports = __WEBPACK_EXTERNAL_MODULE_91__;
138+
module.exports = window.ReactWidgets;
136139

137140
/***/ }
138-
139-
/******/ })
140-
});
141-
;
141+
/******/ ]);

dist/react-widgets-simple-number.js

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
/*! (c) 2016 Jason Quense | https://github.com/jquense/react-widgets/blob/master/License.txt */
2-
(function webpackUniversalModuleDefinition(root, factory) {
3-
if(typeof exports === 'object' && typeof module === 'object')
4-
module.exports = factory(require("ReactWidgets"));
5-
else if(typeof define === 'function' && define.amd)
6-
define(["ReactWidgets"], factory);
7-
else if(typeof exports === 'object')
8-
exports["ReactWidgets"] = factory(require("ReactWidgets"));
9-
else
10-
root["ReactWidgets"] = factory(root["ReactWidgets"]);
11-
})(this, function(__WEBPACK_EXTERNAL_MODULE_91__) {
12-
return /******/ (function(modules) { // webpackBootstrap
2+
/******/ (function(modules) { // webpackBootstrap
133
/******/ // The module cache
144
/******/ var installedModules = {};
155

@@ -51,9 +41,23 @@ return /******/ (function(modules) { // webpackBootstrap
5141
/******/ return __webpack_require__(0);
5242
/******/ })
5343
/************************************************************************/
54-
/******/ ({
44+
/******/ ([
45+
/* 0 */
46+
/***/ function(module, exports, __webpack_require__) {
47+
48+
/*** IMPORTS FROM imports-loader ***/
49+
var module = __webpack_require__(1);
50+
var args = [];
51+
52+
53+
if (typeof module === 'function') {
54+
module.apply(null, args || [])
55+
}
56+
57+
5558

56-
/***/ 0:
59+
/***/ },
60+
/* 1 */
5761
/***/ function(module, exports, __webpack_require__) {
5862

5963
'use strict';
@@ -64,15 +68,15 @@ return /******/ (function(modules) { // webpackBootstrap
6468

6569
exports.default = simpleNumber;
6670

67-
var _configure = __webpack_require__(91);
71+
var _configure = __webpack_require__(2);
6872

6973
var _configure2 = _interopRequireDefault(_configure);
7074

71-
var _formatNumberWithString = __webpack_require__(92);
75+
var _formatNumberWithString = __webpack_require__(3);
7276

7377
var _formatNumberWithString2 = _interopRequireDefault(_formatNumberWithString);
7478

75-
var _deconstructNumberFormat = __webpack_require__(93);
79+
var _deconstructNumberFormat = __webpack_require__(4);
7680

7781
var _deconstructNumberFormat2 = _interopRequireDefault(_deconstructNumberFormat);
7882

@@ -137,21 +141,19 @@ return /******/ (function(modules) { // webpackBootstrap
137141
module.exports = exports['default'];
138142

139143
/***/ },
140-
141-
/***/ 91:
144+
/* 2 */
142145
/***/ function(module, exports) {
143146

144-
module.exports = __WEBPACK_EXTERNAL_MODULE_91__;
147+
module.exports = window.ReactWidgets;
145148

146149
/***/ },
147-
148-
/***/ 92:
150+
/* 3 */
149151
/***/ function(module, exports, __webpack_require__) {
150152

151153
'use strict';
152154

153-
var deconstructNumberFormat = __webpack_require__(93);
154-
var formatFactory = __webpack_require__(94);
155+
var deconstructNumberFormat = __webpack_require__(4);
156+
var formatFactory = __webpack_require__(5);
155157

156158
exports = module.exports = function formatNumberWithString(value, requiredFormat, overrideOptions) {
157159

@@ -187,8 +189,7 @@ return /******/ (function(modules) { // webpackBootstrap
187189
};
188190

189191
/***/ },
190-
191-
/***/ 93:
192+
/* 4 */
192193
/***/ function(module, exports) {
193194

194195
'use strict';
@@ -393,8 +394,7 @@ return /******/ (function(modules) { // webpackBootstrap
393394
};
394395

395396
/***/ },
396-
397-
/***/ 94:
397+
/* 5 */
398398
/***/ function(module, exports) {
399399

400400

@@ -655,7 +655,4 @@ return /******/ (function(modules) { // webpackBootstrap
655655

656656

657657
/***/ }
658-
659-
/******/ })
660-
});
661-
;
658+
/******/ ]);

dist/react-widgets.js

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2187,13 +2187,16 @@ return /******/ (function(modules) { // webpackBootstrap
21872187
function dataIndexOf(data, item, valueField) {
21882188
var idx = -1,
21892189
len = data.length,
2190-
finder = function finder(datum) {
2190+
isValueEqual = function isValueEqual(datum) {
21912191
return valueMatcher(item, datum, valueField);
21922192
};
21932193

21942194
while (++idx < len) {
2195-
if (finder(data[idx])) return idx;
2196-
}return -1;
2195+
var datum = data[idx];
2196+
if (datum === item || isValueEqual(datum)) return idx;
2197+
}
2198+
2199+
return -1;
21972200
}
21982201

21992202
/**
@@ -2205,15 +2208,7 @@ return /******/ (function(modules) { // webpackBootstrap
22052208
}
22062209

22072210
function dataItem(data, item, valueField) {
2208-
var first = data[0],
2209-
idx;
2210-
2211-
// make an attempt to see if we were passed in dataItem vs just a valueField value
2212-
// either an object with the right prop, or a primitive
2213-
// { valueField: 5 } || "hello" [ "hello" ]
2214-
if ((0, _.has)(item, valueField) || (typeof first === 'undefined' ? 'undefined' : _typeof(first)) === (typeof item === 'undefined' ? 'undefined' : _typeof(item))) return item;
2215-
2216-
idx = dataIndexOf(data, dataValue(item, valueField), valueField);
2211+
var idx = dataIndexOf(data, dataValue(item, valueField), valueField);
22172212

22182213
if (idx !== -1) return data[idx];
22192214

@@ -8715,7 +8710,6 @@ return /******/ (function(modules) { // webpackBootstrap
87158710

87168711
mixins: [__webpack_require__(52), __webpack_require__(55), __webpack_require__(56), __webpack_require__(61), __webpack_require__(62)({
87178712
willHandle: function willHandle(focused) {
8718-
87198713
focused && this.focus();
87208714
},
87218715
didHandle: function didHandle(focused) {
@@ -8965,8 +8959,8 @@ return /******/ (function(modules) { // webpackBootstrap
89658959
var elementProps = _3.default.omitOwnProps(this, List);
89668960

89678961
var shouldRenderTags = !!dataItems.length,
8968-
shouldRenderPopup = open || (0, _widgetHelpers.isFirstFocusedRender)(this),
8969-
shouldShowCreate = this._shouldShowCreate();
8962+
shouldRenderPopup = (0, _widgetHelpers.isFirstFocusedRender)(this) || open,
8963+
shouldShowCreate = this.shouldShowCreate();
89708964

89718965
var tagsID = (0, _widgetHelpers.instanceId)(this, '_taglist'),
89728966
listID = (0, _widgetHelpers.instanceId)(this, '__listbox'),
@@ -9082,7 +9076,7 @@ return /******/ (function(modules) { // webpackBootstrap
90829076

90839077
if (key === 'ArrowDown') {
90849078
var next = list.next(focusedItem),
9085-
creating = this._shouldShowCreate() && focusedItem === next || focusedItem === null;
9079+
creating = this.shouldShowCreate() && focusedItem === next || focusedItem === null;
90869080

90879081
next = creating ? null : next;
90889082

@@ -9136,7 +9130,7 @@ return /******/ (function(modules) { // webpackBootstrap
91369130

91379131
return items;
91389132
},
9139-
_shouldShowCreate: function _shouldShowCreate() {
9133+
shouldShowCreate: function shouldShowCreate() {
91409134
var _props6 = this.props;
91419135
var textField = _props6.textField;
91429136
var searchTerm = _props6.searchTerm;

lib/Multiselect.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ var Multiselect = _react2.default.createClass((_obj = {
154154

155155
mixins: [require('./mixins/TimeoutMixin'), require('./mixins/DataFilterMixin'), require('./mixins/PopupScrollToMixin'), require('./mixins/RtlParentContextMixin'), require('./mixins/FocusMixin')({
156156
willHandle: function willHandle(focused) {
157-
158157
focused && this.focus();
159158
},
160159
didHandle: function didHandle(focused) {
@@ -404,8 +403,8 @@ var Multiselect = _react2.default.createClass((_obj = {
404403
var elementProps = _3.default.omitOwnProps(this, List);
405404

406405
var shouldRenderTags = !!dataItems.length,
407-
shouldRenderPopup = open || (0, _widgetHelpers.isFirstFocusedRender)(this),
408-
shouldShowCreate = this._shouldShowCreate();
406+
shouldRenderPopup = (0, _widgetHelpers.isFirstFocusedRender)(this) || open,
407+
shouldShowCreate = this.shouldShowCreate();
409408

410409
var tagsID = (0, _widgetHelpers.instanceId)(this, '_taglist'),
411410
listID = (0, _widgetHelpers.instanceId)(this, '__listbox'),
@@ -521,7 +520,7 @@ var Multiselect = _react2.default.createClass((_obj = {
521520

522521
if (key === 'ArrowDown') {
523522
var next = list.next(focusedItem),
524-
creating = this._shouldShowCreate() && focusedItem === next || focusedItem === null;
523+
creating = this.shouldShowCreate() && focusedItem === next || focusedItem === null;
525524

526525
next = creating ? null : next;
527526

@@ -575,7 +574,7 @@ var Multiselect = _react2.default.createClass((_obj = {
575574

576575
return items;
577576
},
578-
_shouldShowCreate: function _shouldShowCreate() {
577+
shouldShowCreate: function shouldShowCreate() {
579578
var _props6 = this.props;
580579
var textField = _props6.textField;
581580
var searchTerm = _props6.searchTerm;

lib/less/core.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ ul.rw-list {
353353
.rw-combobox input.rw-input,
354354
.rw-datetimepicker input.rw-input,
355355
.rw-numberpicker input.rw-input {
356-
.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075)");
356+
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
357357
}
358358

359359

0 commit comments

Comments
 (0)