Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
fix: Force release
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidurber committed Dec 30, 2017
1 parent db717fb commit dec8f7e
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 17 deletions.
141 changes: 125 additions & 16 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -888,10 +888,119 @@ var VirtualList = function (_super) {
return VirtualList;
}(React.PureComponent);

var isDataObject = function isDataObject(obj, valueKey, labelKey) {
return (typeof obj === 'undefined' ? 'undefined' : babelHelpers.typeof(obj)) === 'object' && obj.hasOwnProperty(valueKey) && obj.hasOwnProperty(labelKey);
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};











var classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};

var createClass = function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}

return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
}();









var inherits = function (subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
}

subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
};











var possibleConstructorReturn = function (self, call) {
if (!self) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}

return call && (typeof call === "object" || typeof call === "function") ? call : self;
};



















var toConsumableArray = function (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);
}
};

var isDataObject = function isDataObject(obj, valueKey, labelKey) {
return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && obj.hasOwnProperty(valueKey) && obj.hasOwnProperty(labelKey);
};
var generateGuid = function generateGuid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
Expand Down Expand Up @@ -2756,14 +2865,14 @@ var isEmptyValue = function isEmptyValue(value) {
};

var Placeholder = function (_React$PureComponent) {
babelHelpers.inherits(Placeholder, _React$PureComponent);
inherits(Placeholder, _React$PureComponent);

function Placeholder(props) {
babelHelpers.classCallCheck(this, Placeholder);
return babelHelpers.possibleConstructorReturn(this, (Placeholder.__proto__ || Object.getPrototypeOf(Placeholder)).call(this, props));
classCallCheck(this, Placeholder);
return possibleConstructorReturn(this, (Placeholder.__proto__ || Object.getPrototypeOf(Placeholder)).call(this, props));
}

babelHelpers.createClass(Placeholder, [{
createClass(Placeholder, [{
key: 'render',
value: function render() {
var _props = this.props,
Expand Down Expand Up @@ -2826,14 +2935,14 @@ Placeholder.propTypes = {
};

var Filter = function (_Component) {
babelHelpers.inherits(Filter, _Component);
inherits(Filter, _Component);

function Filter() {
babelHelpers.classCallCheck(this, Filter);
return babelHelpers.possibleConstructorReturn(this, (Filter.__proto__ || Object.getPrototypeOf(Filter)).apply(this, arguments));
classCallCheck(this, Filter);
return possibleConstructorReturn(this, (Filter.__proto__ || Object.getPrototypeOf(Filter)).apply(this, arguments));
}

babelHelpers.createClass(Filter, [{
createClass(Filter, [{
key: 'render',
value: function render() {
var _this2 = this;
Expand Down Expand Up @@ -2919,12 +3028,12 @@ Option.propTypes = {
};

var Picky$1 = function (_React$Component) {
babelHelpers.inherits(Picky, _React$Component);
inherits(Picky, _React$Component);

function Picky(props) {
babelHelpers.classCallCheck(this, Picky);
classCallCheck(this, Picky);

var _this = babelHelpers.possibleConstructorReturn(this, (Picky.__proto__ || Object.getPrototypeOf(Picky)).call(this, props));
var _this = possibleConstructorReturn(this, (Picky.__proto__ || Object.getPrototypeOf(Picky)).call(this, props));

_this.state = {
selectedValue: props.value || (props.multiple ? [] : null),
Expand All @@ -2944,7 +3053,7 @@ var Picky$1 = function (_React$Component) {
return _this;
}

babelHelpers.createClass(Picky, [{
createClass(Picky, [{
key: 'componentWillMount',
value: function componentWillMount() {
var allSelected = this.allSelected();
Expand Down Expand Up @@ -2973,13 +3082,13 @@ var Picky$1 = function (_React$Component) {
var currIndex = valueLookup.indexOf(val);
// Remove
this.setState({
selectedValue: [].concat(babelHelpers.toConsumableArray(valueLookup.slice(0, currIndex)), babelHelpers.toConsumableArray(valueLookup.slice(currIndex + 1)))
selectedValue: [].concat(toConsumableArray(valueLookup.slice(0, currIndex)), toConsumableArray(valueLookup.slice(currIndex + 1)))
}, function () {
_this2.props.onChange(_this2.state.selectedValue);
});
} else {
this.setState({
selectedValue: [].concat(babelHelpers.toConsumableArray(this.state.selectedValue), [val])
selectedValue: [].concat(toConsumableArray(this.state.selectedValue), [val])
}, function () {
_this2.props.onChange(_this2.state.selectedValue);
});
Expand Down
1 change: 0 additions & 1 deletion src/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export const isDataObject = (obj, valueKey, labelKey) => {
obj.hasOwnProperty(labelKey)
);
};

export const generateGuid = () => {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
Expand Down

0 comments on commit dec8f7e

Please sign in to comment.