mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 21:52:19 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
359
web/node_modules/react-select/animated/dist/react-select.cjs.dev.js
generated
vendored
Normal file
359
web/node_modules/react-select/animated/dist/react-select.cjs.dev.js
generated
vendored
Normal file
|
@ -0,0 +1,359 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var index$1 = require('../../dist/index-fe3694ff.cjs.dev.js');
|
||||
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
||||
var memoizeOne = require('memoize-one');
|
||||
var _typeof = require('@babel/runtime/helpers/typeof');
|
||||
var React = require('react');
|
||||
var _extends = require('@babel/runtime/helpers/extends');
|
||||
var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
|
||||
var _createClass = require('@babel/runtime/helpers/createClass');
|
||||
var _inherits = require('@babel/runtime/helpers/inherits');
|
||||
var reactTransitionGroup = require('react-transition-group');
|
||||
require('@emotion/react');
|
||||
require('@babel/runtime/helpers/taggedTemplateLiteral');
|
||||
require('react-input-autosize');
|
||||
require('@babel/runtime/helpers/defineProperty');
|
||||
require('react-dom');
|
||||
|
||||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
||||
|
||||
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefault(_objectWithoutProperties);
|
||||
var memoizeOne__default = /*#__PURE__*/_interopDefault(memoizeOne);
|
||||
var _typeof__default = /*#__PURE__*/_interopDefault(_typeof);
|
||||
var React__default = /*#__PURE__*/_interopDefault(React);
|
||||
var _extends__default = /*#__PURE__*/_interopDefault(_extends);
|
||||
var _classCallCheck__default = /*#__PURE__*/_interopDefault(_classCallCheck);
|
||||
var _createClass__default = /*#__PURE__*/_interopDefault(_createClass);
|
||||
var _inherits__default = /*#__PURE__*/_interopDefault(_inherits);
|
||||
|
||||
var isArray = Array.isArray;
|
||||
var keyList = Object.keys;
|
||||
var hasProp = Object.prototype.hasOwnProperty;
|
||||
|
||||
function equal(a, b) {
|
||||
// fast-deep-equal index.js 2.0.1
|
||||
if (a === b) return true;
|
||||
|
||||
if (a && b && _typeof__default['default'](a) == 'object' && _typeof__default['default'](b) == 'object') {
|
||||
var arrA = isArray(a),
|
||||
arrB = isArray(b),
|
||||
i,
|
||||
length,
|
||||
key;
|
||||
|
||||
if (arrA && arrB) {
|
||||
length = a.length;
|
||||
if (length != b.length) return false;
|
||||
|
||||
for (i = length; i-- !== 0;) {
|
||||
if (!equal(a[i], b[i])) return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
if (arrA != arrB) return false;
|
||||
var dateA = a instanceof Date,
|
||||
dateB = b instanceof Date;
|
||||
if (dateA != dateB) return false;
|
||||
if (dateA && dateB) return a.getTime() == b.getTime();
|
||||
var regexpA = a instanceof RegExp,
|
||||
regexpB = b instanceof RegExp;
|
||||
if (regexpA != regexpB) return false;
|
||||
if (regexpA && regexpB) return a.toString() == b.toString();
|
||||
var keys = keyList(a);
|
||||
length = keys.length;
|
||||
|
||||
if (length !== keyList(b).length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (i = length; i-- !== 0;) {
|
||||
if (!hasProp.call(b, keys[i])) return false;
|
||||
} // end fast-deep-equal
|
||||
// Custom handling for React
|
||||
|
||||
|
||||
for (i = length; i-- !== 0;) {
|
||||
key = keys[i];
|
||||
|
||||
if (key === '_owner' && a.$$typeof) {
|
||||
// React-specific: avoid traversing React elements' _owner.
|
||||
// _owner contains circular references
|
||||
// and is not needed when comparing the actual elements (and not their owners)
|
||||
// .$$typeof and ._store on just reasonable markers of a react element
|
||||
continue;
|
||||
} else {
|
||||
// all other properties should be traversed as usual
|
||||
if (!equal(a[key], b[key])) return false;
|
||||
}
|
||||
} // fast-deep-equal index.js 2.0.1
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return a !== a && b !== b;
|
||||
} // end fast-deep-equal
|
||||
|
||||
|
||||
function exportedEqual(a, b) {
|
||||
try {
|
||||
return equal(a, b);
|
||||
} catch (error) {
|
||||
if (error.message && error.message.match(/stack|recursion/i)) {
|
||||
// warn on circular references, don't crash
|
||||
// browsers give this different errors name and messages:
|
||||
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
||||
// firefox: "InternalError", too much recursion"
|
||||
// edge: "Error", "Out of stack space"
|
||||
console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
|
||||
return false;
|
||||
} // some other error. we should definitely know about these
|
||||
|
||||
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
// strip transition props off before spreading onto select component
|
||||
// note we need to be explicit about innerRef for flow
|
||||
var AnimatedInput = function AnimatedInput(WrappedComponent) {
|
||||
return function (_ref) {
|
||||
_ref.in;
|
||||
_ref.onExited;
|
||||
_ref.appear;
|
||||
_ref.enter;
|
||||
_ref.exit;
|
||||
var props = _objectWithoutProperties__default['default'](_ref, ["in", "onExited", "appear", "enter", "exit"]);
|
||||
|
||||
return /*#__PURE__*/React__default['default'].createElement(WrappedComponent, props);
|
||||
};
|
||||
};
|
||||
|
||||
var Fade = function Fade(_ref) {
|
||||
var Tag = _ref.component,
|
||||
_ref$duration = _ref.duration,
|
||||
duration = _ref$duration === void 0 ? 1 : _ref$duration,
|
||||
inProp = _ref.in;
|
||||
_ref.onExited;
|
||||
var props = _objectWithoutProperties__default['default'](_ref, ["component", "duration", "in", "onExited"]);
|
||||
|
||||
var transition = {
|
||||
entering: {
|
||||
opacity: 0
|
||||
},
|
||||
entered: {
|
||||
opacity: 1,
|
||||
transition: "opacity ".concat(duration, "ms")
|
||||
},
|
||||
exiting: {
|
||||
opacity: 0
|
||||
},
|
||||
exited: {
|
||||
opacity: 0
|
||||
}
|
||||
};
|
||||
return /*#__PURE__*/React__default['default'].createElement(reactTransitionGroup.Transition, {
|
||||
mountOnEnter: true,
|
||||
unmountOnExit: true,
|
||||
in: inProp,
|
||||
timeout: duration
|
||||
}, function (state) {
|
||||
var innerProps = {
|
||||
style: index$1._objectSpread2({}, transition[state])
|
||||
};
|
||||
return /*#__PURE__*/React__default['default'].createElement(Tag, _extends__default['default']({
|
||||
innerProps: innerProps
|
||||
}, props));
|
||||
});
|
||||
}; // ==============================
|
||||
// Collapse Transition
|
||||
// ==============================
|
||||
|
||||
var collapseDuration = 260;
|
||||
// wrap each MultiValue with a collapse transition; decreases width until
|
||||
// finally removing from DOM
|
||||
var Collapse = /*#__PURE__*/function (_Component) {
|
||||
_inherits__default['default'](Collapse, _Component);
|
||||
|
||||
var _super = index$1._createSuper(Collapse);
|
||||
|
||||
function Collapse() {
|
||||
var _this;
|
||||
|
||||
_classCallCheck__default['default'](this, Collapse);
|
||||
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
_this = _super.call.apply(_super, [this].concat(args));
|
||||
_this.duration = collapseDuration;
|
||||
_this.rafID = void 0;
|
||||
_this.state = {
|
||||
width: 'auto'
|
||||
};
|
||||
_this.transition = {
|
||||
exiting: {
|
||||
width: 0,
|
||||
transition: "width ".concat(_this.duration, "ms ease-out")
|
||||
},
|
||||
exited: {
|
||||
width: 0
|
||||
}
|
||||
};
|
||||
|
||||
_this.getWidth = function (ref) {
|
||||
if (ref && isNaN(_this.state.width)) {
|
||||
/*
|
||||
Here we're invoking requestAnimationFrame with a callback invoking our
|
||||
call to getBoundingClientRect and setState in order to resolve an edge case
|
||||
around portalling. Certain portalling solutions briefly remove children from the DOM
|
||||
before appending them to the target node. This is to avoid us trying to call getBoundingClientrect
|
||||
while the Select component is in this state.
|
||||
*/
|
||||
// cannot use `offsetWidth` because it is rounded
|
||||
_this.rafID = window.requestAnimationFrame(function () {
|
||||
var _ref$getBoundingClien = ref.getBoundingClientRect(),
|
||||
width = _ref$getBoundingClien.width;
|
||||
|
||||
_this.setState({
|
||||
width: width
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
_this.getStyle = function (width) {
|
||||
return {
|
||||
overflow: 'hidden',
|
||||
whiteSpace: 'nowrap',
|
||||
width: width
|
||||
};
|
||||
};
|
||||
|
||||
_this.getTransition = function (state) {
|
||||
return _this.transition[state];
|
||||
};
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass__default['default'](Collapse, [{
|
||||
key: "componentWillUnmount",
|
||||
value: function componentWillUnmount() {
|
||||
if (this.rafID) {
|
||||
window.cancelAnimationFrame(this.rafID);
|
||||
}
|
||||
} // width must be calculated; cannot transition from `undefined` to `number`
|
||||
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
var _this2 = this;
|
||||
|
||||
var _this$props = this.props,
|
||||
children = _this$props.children,
|
||||
inProp = _this$props.in;
|
||||
var width = this.state.width;
|
||||
return /*#__PURE__*/React__default['default'].createElement(reactTransitionGroup.Transition, {
|
||||
enter: false,
|
||||
mountOnEnter: true,
|
||||
unmountOnExit: true,
|
||||
in: inProp,
|
||||
timeout: this.duration
|
||||
}, function (state) {
|
||||
var style = index$1._objectSpread2(index$1._objectSpread2({}, _this2.getStyle(width)), _this2.getTransition(state));
|
||||
|
||||
return /*#__PURE__*/React__default['default'].createElement("div", {
|
||||
ref: _this2.getWidth,
|
||||
style: style
|
||||
}, children);
|
||||
});
|
||||
}
|
||||
}]);
|
||||
|
||||
return Collapse;
|
||||
}(React.Component);
|
||||
|
||||
var AnimatedMultiValue = function AnimatedMultiValue(WrappedComponent) {
|
||||
return function (_ref) {
|
||||
var inProp = _ref.in,
|
||||
onExited = _ref.onExited,
|
||||
props = _objectWithoutProperties__default['default'](_ref, ["in", "onExited"]);
|
||||
|
||||
return /*#__PURE__*/React__default['default'].createElement(Collapse, {
|
||||
in: inProp,
|
||||
onExited: onExited
|
||||
}, /*#__PURE__*/React__default['default'].createElement(WrappedComponent, _extends__default['default']({
|
||||
cropWithEllipsis: inProp
|
||||
}, props)));
|
||||
};
|
||||
};
|
||||
|
||||
var AnimatedPlaceholder = function AnimatedPlaceholder(WrappedComponent) {
|
||||
return function (props) {
|
||||
return /*#__PURE__*/React__default['default'].createElement(Fade, _extends__default['default']({
|
||||
component: WrappedComponent,
|
||||
duration: props.isMulti ? collapseDuration : 1
|
||||
}, props));
|
||||
};
|
||||
};
|
||||
|
||||
var AnimatedSingleValue = function AnimatedSingleValue(WrappedComponent) {
|
||||
return function (props) {
|
||||
return /*#__PURE__*/React__default['default'].createElement(Fade, _extends__default['default']({
|
||||
component: WrappedComponent
|
||||
}, props));
|
||||
};
|
||||
};
|
||||
|
||||
// make ValueContainer a transition group
|
||||
var AnimatedValueContainer = function AnimatedValueContainer(WrappedComponent) {
|
||||
return function (props) {
|
||||
return /*#__PURE__*/React__default['default'].createElement(reactTransitionGroup.TransitionGroup, _extends__default['default']({
|
||||
component: WrappedComponent
|
||||
}, props));
|
||||
};
|
||||
};
|
||||
|
||||
var makeAnimated = function makeAnimated() {
|
||||
var externalComponents = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
var components = index$1.defaultComponents({
|
||||
components: externalComponents
|
||||
});
|
||||
|
||||
var Input = components.Input,
|
||||
MultiValue = components.MultiValue,
|
||||
Placeholder = components.Placeholder,
|
||||
SingleValue = components.SingleValue,
|
||||
ValueContainer = components.ValueContainer,
|
||||
rest = _objectWithoutProperties__default['default'](components, ["Input", "MultiValue", "Placeholder", "SingleValue", "ValueContainer"]);
|
||||
|
||||
return index$1._objectSpread2({
|
||||
Input: AnimatedInput(Input),
|
||||
MultiValue: AnimatedMultiValue(MultiValue),
|
||||
Placeholder: AnimatedPlaceholder(Placeholder),
|
||||
SingleValue: AnimatedSingleValue(SingleValue),
|
||||
ValueContainer: AnimatedValueContainer(ValueContainer)
|
||||
}, rest);
|
||||
};
|
||||
|
||||
var AnimatedComponents = makeAnimated();
|
||||
var Input = AnimatedComponents.Input;
|
||||
var MultiValue = AnimatedComponents.MultiValue;
|
||||
var Placeholder = AnimatedComponents.Placeholder;
|
||||
var SingleValue = AnimatedComponents.SingleValue;
|
||||
var ValueContainer = AnimatedComponents.ValueContainer;
|
||||
var index = memoizeOne__default['default'](makeAnimated, exportedEqual);
|
||||
|
||||
exports.Input = Input;
|
||||
exports.MultiValue = MultiValue;
|
||||
exports.Placeholder = Placeholder;
|
||||
exports.SingleValue = SingleValue;
|
||||
exports.ValueContainer = ValueContainer;
|
||||
exports.default = index;
|
7
web/node_modules/react-select/animated/dist/react-select.cjs.js
generated
vendored
Normal file
7
web/node_modules/react-select/animated/dist/react-select.cjs.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
module.exports = require("./react-select.cjs.prod.js");
|
||||
} else {
|
||||
module.exports = require("./react-select.cjs.dev.js");
|
||||
}
|
3
web/node_modules/react-select/animated/dist/react-select.cjs.js.flow
generated
vendored
Normal file
3
web/node_modules/react-select/animated/dist/react-select.cjs.js.flow
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
// @flow
|
||||
export * from "../../src/animated/index.js";
|
||||
export { default } from "../../src/animated/index.js";
|
195
web/node_modules/react-select/animated/dist/react-select.cjs.prod.js
generated
vendored
Normal file
195
web/node_modules/react-select/animated/dist/react-select.cjs.prod.js
generated
vendored
Normal file
|
@ -0,0 +1,195 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
|
||||
var index$1 = require("../../dist/index-ea9e225d.cjs.prod.js"), _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"), memoizeOne = require("memoize-one"), _typeof = require("@babel/runtime/helpers/typeof"), React = require("react"), _extends = require("@babel/runtime/helpers/extends"), _classCallCheck = require("@babel/runtime/helpers/classCallCheck"), _createClass = require("@babel/runtime/helpers/createClass"), _inherits = require("@babel/runtime/helpers/inherits"), reactTransitionGroup = require("react-transition-group");
|
||||
|
||||
function _interopDefault(e) {
|
||||
return e && e.__esModule ? e : {
|
||||
default: e
|
||||
};
|
||||
}
|
||||
|
||||
require("@emotion/react"), require("@babel/runtime/helpers/taggedTemplateLiteral"),
|
||||
require("react-input-autosize"), require("@babel/runtime/helpers/defineProperty"),
|
||||
require("react-dom");
|
||||
|
||||
var _objectWithoutProperties__default = _interopDefault(_objectWithoutProperties), memoizeOne__default = _interopDefault(memoizeOne), _typeof__default = _interopDefault(_typeof), React__default = _interopDefault(React), _extends__default = _interopDefault(_extends), _classCallCheck__default = _interopDefault(_classCallCheck), _createClass__default = _interopDefault(_createClass), _inherits__default = _interopDefault(_inherits), isArray = Array.isArray, keyList = Object.keys, hasProp = Object.prototype.hasOwnProperty;
|
||||
|
||||
function equal(a, b) {
|
||||
if (a === b) return !0;
|
||||
if (a && b && "object" == _typeof__default.default(a) && "object" == _typeof__default.default(b)) {
|
||||
var i, length, key, arrA = isArray(a), arrB = isArray(b);
|
||||
if (arrA && arrB) {
|
||||
if ((length = a.length) != b.length) return !1;
|
||||
for (i = length; 0 != i--; ) if (!equal(a[i], b[i])) return !1;
|
||||
return !0;
|
||||
}
|
||||
if (arrA != arrB) return !1;
|
||||
var dateA = a instanceof Date, dateB = b instanceof Date;
|
||||
if (dateA != dateB) return !1;
|
||||
if (dateA && dateB) return a.getTime() == b.getTime();
|
||||
var regexpA = a instanceof RegExp, regexpB = b instanceof RegExp;
|
||||
if (regexpA != regexpB) return !1;
|
||||
if (regexpA && regexpB) return a.toString() == b.toString();
|
||||
var keys = keyList(a);
|
||||
if ((length = keys.length) !== keyList(b).length) return !1;
|
||||
for (i = length; 0 != i--; ) if (!hasProp.call(b, keys[i])) return !1;
|
||||
for (i = length; 0 != i--; ) if (!("_owner" === (key = keys[i]) && a.$$typeof || equal(a[key], b[key]))) return !1;
|
||||
return !0;
|
||||
}
|
||||
return a != a && b != b;
|
||||
}
|
||||
|
||||
function exportedEqual(a, b) {
|
||||
try {
|
||||
return equal(a, b);
|
||||
} catch (error) {
|
||||
if (error.message && error.message.match(/stack|recursion/i)) return console.warn("Warning: react-fast-compare does not handle circular references.", error.name, error.message),
|
||||
!1;
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
var AnimatedInput = function(WrappedComponent) {
|
||||
return function(_ref) {
|
||||
_ref.in, _ref.onExited, _ref.appear, _ref.enter, _ref.exit;
|
||||
var props = _objectWithoutProperties__default.default(_ref, [ "in", "onExited", "appear", "enter", "exit" ]);
|
||||
return React__default.default.createElement(WrappedComponent, props);
|
||||
};
|
||||
}, Fade = function(_ref) {
|
||||
var Tag = _ref.component, _ref$duration = _ref.duration, duration = void 0 === _ref$duration ? 1 : _ref$duration, inProp = _ref.in;
|
||||
_ref.onExited;
|
||||
var props = _objectWithoutProperties__default.default(_ref, [ "component", "duration", "in", "onExited" ]), transition = {
|
||||
entering: {
|
||||
opacity: 0
|
||||
},
|
||||
entered: {
|
||||
opacity: 1,
|
||||
transition: "opacity ".concat(duration, "ms")
|
||||
},
|
||||
exiting: {
|
||||
opacity: 0
|
||||
},
|
||||
exited: {
|
||||
opacity: 0
|
||||
}
|
||||
};
|
||||
return React__default.default.createElement(reactTransitionGroup.Transition, {
|
||||
mountOnEnter: !0,
|
||||
unmountOnExit: !0,
|
||||
in: inProp,
|
||||
timeout: duration
|
||||
}, (function(state) {
|
||||
var innerProps = {
|
||||
style: index$1._objectSpread2({}, transition[state])
|
||||
};
|
||||
return React__default.default.createElement(Tag, _extends__default.default({
|
||||
innerProps: innerProps
|
||||
}, props));
|
||||
}));
|
||||
}, collapseDuration = 260, Collapse = function(_Component) {
|
||||
_inherits__default.default(Collapse, _Component);
|
||||
var _super = index$1._createSuper(Collapse);
|
||||
function Collapse() {
|
||||
var _this;
|
||||
_classCallCheck__default.default(this, Collapse);
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
||||
return (_this = _super.call.apply(_super, [ this ].concat(args))).duration = collapseDuration,
|
||||
_this.rafID = void 0, _this.state = {
|
||||
width: "auto"
|
||||
}, _this.transition = {
|
||||
exiting: {
|
||||
width: 0,
|
||||
transition: "width ".concat(_this.duration, "ms ease-out")
|
||||
},
|
||||
exited: {
|
||||
width: 0
|
||||
}
|
||||
}, _this.getWidth = function(ref) {
|
||||
ref && isNaN(_this.state.width) && (_this.rafID = window.requestAnimationFrame((function() {
|
||||
var width = ref.getBoundingClientRect().width;
|
||||
_this.setState({
|
||||
width: width
|
||||
});
|
||||
})));
|
||||
}, _this.getStyle = function(width) {
|
||||
return {
|
||||
overflow: "hidden",
|
||||
whiteSpace: "nowrap",
|
||||
width: width
|
||||
};
|
||||
}, _this.getTransition = function(state) {
|
||||
return _this.transition[state];
|
||||
}, _this;
|
||||
}
|
||||
return _createClass__default.default(Collapse, [ {
|
||||
key: "componentWillUnmount",
|
||||
value: function() {
|
||||
this.rafID && window.cancelAnimationFrame(this.rafID);
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function() {
|
||||
var _this2 = this, _this$props = this.props, children = _this$props.children, inProp = _this$props.in, width = this.state.width;
|
||||
return React__default.default.createElement(reactTransitionGroup.Transition, {
|
||||
enter: !1,
|
||||
mountOnEnter: !0,
|
||||
unmountOnExit: !0,
|
||||
in: inProp,
|
||||
timeout: this.duration
|
||||
}, (function(state) {
|
||||
var style = index$1._objectSpread2(index$1._objectSpread2({}, _this2.getStyle(width)), _this2.getTransition(state));
|
||||
return React__default.default.createElement("div", {
|
||||
ref: _this2.getWidth,
|
||||
style: style
|
||||
}, children);
|
||||
}));
|
||||
}
|
||||
} ]), Collapse;
|
||||
}(React.Component), AnimatedMultiValue = function(WrappedComponent) {
|
||||
return function(_ref) {
|
||||
var inProp = _ref.in, onExited = _ref.onExited, props = _objectWithoutProperties__default.default(_ref, [ "in", "onExited" ]);
|
||||
return React__default.default.createElement(Collapse, {
|
||||
in: inProp,
|
||||
onExited: onExited
|
||||
}, React__default.default.createElement(WrappedComponent, _extends__default.default({
|
||||
cropWithEllipsis: inProp
|
||||
}, props)));
|
||||
};
|
||||
}, AnimatedPlaceholder = function(WrappedComponent) {
|
||||
return function(props) {
|
||||
return React__default.default.createElement(Fade, _extends__default.default({
|
||||
component: WrappedComponent,
|
||||
duration: props.isMulti ? collapseDuration : 1
|
||||
}, props));
|
||||
};
|
||||
}, AnimatedSingleValue = function(WrappedComponent) {
|
||||
return function(props) {
|
||||
return React__default.default.createElement(Fade, _extends__default.default({
|
||||
component: WrappedComponent
|
||||
}, props));
|
||||
};
|
||||
}, AnimatedValueContainer = function(WrappedComponent) {
|
||||
return function(props) {
|
||||
return React__default.default.createElement(reactTransitionGroup.TransitionGroup, _extends__default.default({
|
||||
component: WrappedComponent
|
||||
}, props));
|
||||
};
|
||||
}, makeAnimated = function() {
|
||||
var externalComponents = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, components = index$1.defaultComponents({
|
||||
components: externalComponents
|
||||
}), Input = components.Input, MultiValue = components.MultiValue, Placeholder = components.Placeholder, SingleValue = components.SingleValue, ValueContainer = components.ValueContainer, rest = _objectWithoutProperties__default.default(components, [ "Input", "MultiValue", "Placeholder", "SingleValue", "ValueContainer" ]);
|
||||
return index$1._objectSpread2({
|
||||
Input: AnimatedInput(Input),
|
||||
MultiValue: AnimatedMultiValue(MultiValue),
|
||||
Placeholder: AnimatedPlaceholder(Placeholder),
|
||||
SingleValue: AnimatedSingleValue(SingleValue),
|
||||
ValueContainer: AnimatedValueContainer(ValueContainer)
|
||||
}, rest);
|
||||
}, AnimatedComponents = makeAnimated(), Input = AnimatedComponents.Input, MultiValue = AnimatedComponents.MultiValue, Placeholder = AnimatedComponents.Placeholder, SingleValue = AnimatedComponents.SingleValue, ValueContainer = AnimatedComponents.ValueContainer, index = memoizeOne__default.default(makeAnimated, exportedEqual);
|
||||
|
||||
exports.Input = Input, exports.MultiValue = MultiValue, exports.Placeholder = Placeholder,
|
||||
exports.SingleValue = SingleValue, exports.ValueContainer = ValueContainer, exports.default = index;
|
340
web/node_modules/react-select/animated/dist/react-select.esm.js
generated
vendored
Normal file
340
web/node_modules/react-select/animated/dist/react-select.esm.js
generated
vendored
Normal file
|
@ -0,0 +1,340 @@
|
|||
import { a as _objectSpread2, _ as _createSuper, C as defaultComponents } from '../../dist/index-4bd03571.esm.js';
|
||||
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
||||
import memoizeOne from 'memoize-one';
|
||||
import _typeof from '@babel/runtime/helpers/esm/typeof';
|
||||
import React, { Component } from 'react';
|
||||
import _extends from '@babel/runtime/helpers/esm/extends';
|
||||
import _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck';
|
||||
import _createClass from '@babel/runtime/helpers/esm/createClass';
|
||||
import _inherits from '@babel/runtime/helpers/esm/inherits';
|
||||
import { Transition, TransitionGroup } from 'react-transition-group';
|
||||
import '@emotion/react';
|
||||
import '@babel/runtime/helpers/taggedTemplateLiteral';
|
||||
import 'react-input-autosize';
|
||||
import '@babel/runtime/helpers/defineProperty';
|
||||
import 'react-dom';
|
||||
|
||||
var isArray = Array.isArray;
|
||||
var keyList = Object.keys;
|
||||
var hasProp = Object.prototype.hasOwnProperty;
|
||||
|
||||
function equal(a, b) {
|
||||
// fast-deep-equal index.js 2.0.1
|
||||
if (a === b) return true;
|
||||
|
||||
if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
|
||||
var arrA = isArray(a),
|
||||
arrB = isArray(b),
|
||||
i,
|
||||
length,
|
||||
key;
|
||||
|
||||
if (arrA && arrB) {
|
||||
length = a.length;
|
||||
if (length != b.length) return false;
|
||||
|
||||
for (i = length; i-- !== 0;) {
|
||||
if (!equal(a[i], b[i])) return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
if (arrA != arrB) return false;
|
||||
var dateA = a instanceof Date,
|
||||
dateB = b instanceof Date;
|
||||
if (dateA != dateB) return false;
|
||||
if (dateA && dateB) return a.getTime() == b.getTime();
|
||||
var regexpA = a instanceof RegExp,
|
||||
regexpB = b instanceof RegExp;
|
||||
if (regexpA != regexpB) return false;
|
||||
if (regexpA && regexpB) return a.toString() == b.toString();
|
||||
var keys = keyList(a);
|
||||
length = keys.length;
|
||||
|
||||
if (length !== keyList(b).length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (i = length; i-- !== 0;) {
|
||||
if (!hasProp.call(b, keys[i])) return false;
|
||||
} // end fast-deep-equal
|
||||
// Custom handling for React
|
||||
|
||||
|
||||
for (i = length; i-- !== 0;) {
|
||||
key = keys[i];
|
||||
|
||||
if (key === '_owner' && a.$$typeof) {
|
||||
// React-specific: avoid traversing React elements' _owner.
|
||||
// _owner contains circular references
|
||||
// and is not needed when comparing the actual elements (and not their owners)
|
||||
// .$$typeof and ._store on just reasonable markers of a react element
|
||||
continue;
|
||||
} else {
|
||||
// all other properties should be traversed as usual
|
||||
if (!equal(a[key], b[key])) return false;
|
||||
}
|
||||
} // fast-deep-equal index.js 2.0.1
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return a !== a && b !== b;
|
||||
} // end fast-deep-equal
|
||||
|
||||
|
||||
function exportedEqual(a, b) {
|
||||
try {
|
||||
return equal(a, b);
|
||||
} catch (error) {
|
||||
if (error.message && error.message.match(/stack|recursion/i)) {
|
||||
// warn on circular references, don't crash
|
||||
// browsers give this different errors name and messages:
|
||||
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
||||
// firefox: "InternalError", too much recursion"
|
||||
// edge: "Error", "Out of stack space"
|
||||
console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
|
||||
return false;
|
||||
} // some other error. we should definitely know about these
|
||||
|
||||
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
// strip transition props off before spreading onto select component
|
||||
// note we need to be explicit about innerRef for flow
|
||||
var AnimatedInput = function AnimatedInput(WrappedComponent) {
|
||||
return function (_ref) {
|
||||
_ref.in;
|
||||
_ref.onExited;
|
||||
_ref.appear;
|
||||
_ref.enter;
|
||||
_ref.exit;
|
||||
var props = _objectWithoutProperties(_ref, ["in", "onExited", "appear", "enter", "exit"]);
|
||||
|
||||
return /*#__PURE__*/React.createElement(WrappedComponent, props);
|
||||
};
|
||||
};
|
||||
|
||||
var Fade = function Fade(_ref) {
|
||||
var Tag = _ref.component,
|
||||
_ref$duration = _ref.duration,
|
||||
duration = _ref$duration === void 0 ? 1 : _ref$duration,
|
||||
inProp = _ref.in;
|
||||
_ref.onExited;
|
||||
var props = _objectWithoutProperties(_ref, ["component", "duration", "in", "onExited"]);
|
||||
|
||||
var transition = {
|
||||
entering: {
|
||||
opacity: 0
|
||||
},
|
||||
entered: {
|
||||
opacity: 1,
|
||||
transition: "opacity ".concat(duration, "ms")
|
||||
},
|
||||
exiting: {
|
||||
opacity: 0
|
||||
},
|
||||
exited: {
|
||||
opacity: 0
|
||||
}
|
||||
};
|
||||
return /*#__PURE__*/React.createElement(Transition, {
|
||||
mountOnEnter: true,
|
||||
unmountOnExit: true,
|
||||
in: inProp,
|
||||
timeout: duration
|
||||
}, function (state) {
|
||||
var innerProps = {
|
||||
style: _objectSpread2({}, transition[state])
|
||||
};
|
||||
return /*#__PURE__*/React.createElement(Tag, _extends({
|
||||
innerProps: innerProps
|
||||
}, props));
|
||||
});
|
||||
}; // ==============================
|
||||
// Collapse Transition
|
||||
// ==============================
|
||||
|
||||
var collapseDuration = 260;
|
||||
// wrap each MultiValue with a collapse transition; decreases width until
|
||||
// finally removing from DOM
|
||||
var Collapse = /*#__PURE__*/function (_Component) {
|
||||
_inherits(Collapse, _Component);
|
||||
|
||||
var _super = _createSuper(Collapse);
|
||||
|
||||
function Collapse() {
|
||||
var _this;
|
||||
|
||||
_classCallCheck(this, Collapse);
|
||||
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
_this = _super.call.apply(_super, [this].concat(args));
|
||||
_this.duration = collapseDuration;
|
||||
_this.rafID = void 0;
|
||||
_this.state = {
|
||||
width: 'auto'
|
||||
};
|
||||
_this.transition = {
|
||||
exiting: {
|
||||
width: 0,
|
||||
transition: "width ".concat(_this.duration, "ms ease-out")
|
||||
},
|
||||
exited: {
|
||||
width: 0
|
||||
}
|
||||
};
|
||||
|
||||
_this.getWidth = function (ref) {
|
||||
if (ref && isNaN(_this.state.width)) {
|
||||
/*
|
||||
Here we're invoking requestAnimationFrame with a callback invoking our
|
||||
call to getBoundingClientRect and setState in order to resolve an edge case
|
||||
around portalling. Certain portalling solutions briefly remove children from the DOM
|
||||
before appending them to the target node. This is to avoid us trying to call getBoundingClientrect
|
||||
while the Select component is in this state.
|
||||
*/
|
||||
// cannot use `offsetWidth` because it is rounded
|
||||
_this.rafID = window.requestAnimationFrame(function () {
|
||||
var _ref$getBoundingClien = ref.getBoundingClientRect(),
|
||||
width = _ref$getBoundingClien.width;
|
||||
|
||||
_this.setState({
|
||||
width: width
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
_this.getStyle = function (width) {
|
||||
return {
|
||||
overflow: 'hidden',
|
||||
whiteSpace: 'nowrap',
|
||||
width: width
|
||||
};
|
||||
};
|
||||
|
||||
_this.getTransition = function (state) {
|
||||
return _this.transition[state];
|
||||
};
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass(Collapse, [{
|
||||
key: "componentWillUnmount",
|
||||
value: function componentWillUnmount() {
|
||||
if (this.rafID) {
|
||||
window.cancelAnimationFrame(this.rafID);
|
||||
}
|
||||
} // width must be calculated; cannot transition from `undefined` to `number`
|
||||
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
var _this2 = this;
|
||||
|
||||
var _this$props = this.props,
|
||||
children = _this$props.children,
|
||||
inProp = _this$props.in;
|
||||
var width = this.state.width;
|
||||
return /*#__PURE__*/React.createElement(Transition, {
|
||||
enter: false,
|
||||
mountOnEnter: true,
|
||||
unmountOnExit: true,
|
||||
in: inProp,
|
||||
timeout: this.duration
|
||||
}, function (state) {
|
||||
var style = _objectSpread2(_objectSpread2({}, _this2.getStyle(width)), _this2.getTransition(state));
|
||||
|
||||
return /*#__PURE__*/React.createElement("div", {
|
||||
ref: _this2.getWidth,
|
||||
style: style
|
||||
}, children);
|
||||
});
|
||||
}
|
||||
}]);
|
||||
|
||||
return Collapse;
|
||||
}(Component);
|
||||
|
||||
var AnimatedMultiValue = function AnimatedMultiValue(WrappedComponent) {
|
||||
return function (_ref) {
|
||||
var inProp = _ref.in,
|
||||
onExited = _ref.onExited,
|
||||
props = _objectWithoutProperties(_ref, ["in", "onExited"]);
|
||||
|
||||
return /*#__PURE__*/React.createElement(Collapse, {
|
||||
in: inProp,
|
||||
onExited: onExited
|
||||
}, /*#__PURE__*/React.createElement(WrappedComponent, _extends({
|
||||
cropWithEllipsis: inProp
|
||||
}, props)));
|
||||
};
|
||||
};
|
||||
|
||||
var AnimatedPlaceholder = function AnimatedPlaceholder(WrappedComponent) {
|
||||
return function (props) {
|
||||
return /*#__PURE__*/React.createElement(Fade, _extends({
|
||||
component: WrappedComponent,
|
||||
duration: props.isMulti ? collapseDuration : 1
|
||||
}, props));
|
||||
};
|
||||
};
|
||||
|
||||
var AnimatedSingleValue = function AnimatedSingleValue(WrappedComponent) {
|
||||
return function (props) {
|
||||
return /*#__PURE__*/React.createElement(Fade, _extends({
|
||||
component: WrappedComponent
|
||||
}, props));
|
||||
};
|
||||
};
|
||||
|
||||
// make ValueContainer a transition group
|
||||
var AnimatedValueContainer = function AnimatedValueContainer(WrappedComponent) {
|
||||
return function (props) {
|
||||
return /*#__PURE__*/React.createElement(TransitionGroup, _extends({
|
||||
component: WrappedComponent
|
||||
}, props));
|
||||
};
|
||||
};
|
||||
|
||||
var makeAnimated = function makeAnimated() {
|
||||
var externalComponents = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
var components = defaultComponents({
|
||||
components: externalComponents
|
||||
});
|
||||
|
||||
var Input = components.Input,
|
||||
MultiValue = components.MultiValue,
|
||||
Placeholder = components.Placeholder,
|
||||
SingleValue = components.SingleValue,
|
||||
ValueContainer = components.ValueContainer,
|
||||
rest = _objectWithoutProperties(components, ["Input", "MultiValue", "Placeholder", "SingleValue", "ValueContainer"]);
|
||||
|
||||
return _objectSpread2({
|
||||
Input: AnimatedInput(Input),
|
||||
MultiValue: AnimatedMultiValue(MultiValue),
|
||||
Placeholder: AnimatedPlaceholder(Placeholder),
|
||||
SingleValue: AnimatedSingleValue(SingleValue),
|
||||
ValueContainer: AnimatedValueContainer(ValueContainer)
|
||||
}, rest);
|
||||
};
|
||||
|
||||
var AnimatedComponents = makeAnimated();
|
||||
var Input = AnimatedComponents.Input;
|
||||
var MultiValue = AnimatedComponents.MultiValue;
|
||||
var Placeholder = AnimatedComponents.Placeholder;
|
||||
var SingleValue = AnimatedComponents.SingleValue;
|
||||
var ValueContainer = AnimatedComponents.ValueContainer;
|
||||
var index = memoizeOne(makeAnimated, exportedEqual);
|
||||
|
||||
export default index;
|
||||
export { Input, MultiValue, Placeholder, SingleValue, ValueContainer };
|
7
web/node_modules/react-select/animated/package.json
generated
vendored
Normal file
7
web/node_modules/react-select/animated/package.json
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"main": "dist/react-select.cjs.js",
|
||||
"module": "dist/react-select.esm.js",
|
||||
"preconstruct": {
|
||||
"source": "../src/animated"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue