mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
35
react-app/node_modules/lodash/chain/chain.js
generated
vendored
Normal file
35
react-app/node_modules/lodash/chain/chain.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
var lodash = require('./lodash');
|
||||
|
||||
/**
|
||||
* Creates a `lodash` object that wraps `value` with explicit method
|
||||
* chaining enabled.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Chain
|
||||
* @param {*} value The value to wrap.
|
||||
* @returns {Object} Returns the new `lodash` wrapper instance.
|
||||
* @example
|
||||
*
|
||||
* var users = [
|
||||
* { 'user': 'barney', 'age': 36 },
|
||||
* { 'user': 'fred', 'age': 40 },
|
||||
* { 'user': 'pebbles', 'age': 1 }
|
||||
* ];
|
||||
*
|
||||
* var youngest = _.chain(users)
|
||||
* .sortBy('age')
|
||||
* .map(function(chr) {
|
||||
* return chr.user + ' is ' + chr.age;
|
||||
* })
|
||||
* .first()
|
||||
* .value();
|
||||
* // => 'pebbles is 1'
|
||||
*/
|
||||
function chain(value) {
|
||||
var result = lodash(value);
|
||||
result.__chain__ = true;
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = chain;
|
1
react-app/node_modules/lodash/chain/commit.js
generated
vendored
Normal file
1
react-app/node_modules/lodash/chain/commit.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./wrapperCommit');
|
1
react-app/node_modules/lodash/chain/concat.js
generated
vendored
Normal file
1
react-app/node_modules/lodash/chain/concat.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./wrapperConcat');
|
125
react-app/node_modules/lodash/chain/lodash.js
generated
vendored
Normal file
125
react-app/node_modules/lodash/chain/lodash.js
generated
vendored
Normal file
@@ -0,0 +1,125 @@
|
||||
var LazyWrapper = require('../internal/LazyWrapper'),
|
||||
LodashWrapper = require('../internal/LodashWrapper'),
|
||||
baseLodash = require('../internal/baseLodash'),
|
||||
isArray = require('../lang/isArray'),
|
||||
isObjectLike = require('../internal/isObjectLike'),
|
||||
wrapperClone = require('../internal/wrapperClone');
|
||||
|
||||
/** Used for native method references. */
|
||||
var objectProto = Object.prototype;
|
||||
|
||||
/** Used to check objects for own properties. */
|
||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
|
||||
/**
|
||||
* Creates a `lodash` object which wraps `value` to enable implicit chaining.
|
||||
* Methods that operate on and return arrays, collections, and functions can
|
||||
* be chained together. Methods that retrieve a single value or may return a
|
||||
* primitive value will automatically end the chain returning the unwrapped
|
||||
* value. Explicit chaining may be enabled using `_.chain`. The execution of
|
||||
* chained methods is lazy, that is, execution is deferred until `_#value`
|
||||
* is implicitly or explicitly called.
|
||||
*
|
||||
* Lazy evaluation allows several methods to support shortcut fusion. Shortcut
|
||||
* fusion is an optimization strategy which merge iteratee calls; this can help
|
||||
* to avoid the creation of intermediate data structures and greatly reduce the
|
||||
* number of iteratee executions.
|
||||
*
|
||||
* Chaining is supported in custom builds as long as the `_#value` method is
|
||||
* directly or indirectly included in the build.
|
||||
*
|
||||
* In addition to lodash methods, wrappers have `Array` and `String` methods.
|
||||
*
|
||||
* The wrapper `Array` methods are:
|
||||
* `concat`, `join`, `pop`, `push`, `reverse`, `shift`, `slice`, `sort`,
|
||||
* `splice`, and `unshift`
|
||||
*
|
||||
* The wrapper `String` methods are:
|
||||
* `replace` and `split`
|
||||
*
|
||||
* The wrapper methods that support shortcut fusion are:
|
||||
* `compact`, `drop`, `dropRight`, `dropRightWhile`, `dropWhile`, `filter`,
|
||||
* `first`, `initial`, `last`, `map`, `pluck`, `reject`, `rest`, `reverse`,
|
||||
* `slice`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, `toArray`,
|
||||
* and `where`
|
||||
*
|
||||
* The chainable wrapper methods are:
|
||||
* `after`, `ary`, `assign`, `at`, `before`, `bind`, `bindAll`, `bindKey`,
|
||||
* `callback`, `chain`, `chunk`, `commit`, `compact`, `concat`, `constant`,
|
||||
* `countBy`, `create`, `curry`, `debounce`, `defaults`, `defaultsDeep`,
|
||||
* `defer`, `delay`, `difference`, `drop`, `dropRight`, `dropRightWhile`,
|
||||
* `dropWhile`, `fill`, `filter`, `flatten`, `flattenDeep`, `flow`, `flowRight`,
|
||||
* `forEach`, `forEachRight`, `forIn`, `forInRight`, `forOwn`, `forOwnRight`,
|
||||
* `functions`, `groupBy`, `indexBy`, `initial`, `intersection`, `invert`,
|
||||
* `invoke`, `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`,
|
||||
* `matchesProperty`, `memoize`, `merge`, `method`, `methodOf`, `mixin`,
|
||||
* `modArgs`, `negate`, `omit`, `once`, `pairs`, `partial`, `partialRight`,
|
||||
* `partition`, `pick`, `plant`, `pluck`, `property`, `propertyOf`, `pull`,
|
||||
* `pullAt`, `push`, `range`, `rearg`, `reject`, `remove`, `rest`, `restParam`,
|
||||
* `reverse`, `set`, `shuffle`, `slice`, `sort`, `sortBy`, `sortByAll`,
|
||||
* `sortByOrder`, `splice`, `spread`, `take`, `takeRight`, `takeRightWhile`,
|
||||
* `takeWhile`, `tap`, `throttle`, `thru`, `times`, `toArray`, `toPlainObject`,
|
||||
* `transform`, `union`, `uniq`, `unshift`, `unzip`, `unzipWith`, `values`,
|
||||
* `valuesIn`, `where`, `without`, `wrap`, `xor`, `zip`, `zipObject`, `zipWith`
|
||||
*
|
||||
* The wrapper methods that are **not** chainable by default are:
|
||||
* `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clone`, `cloneDeep`,
|
||||
* `deburr`, `endsWith`, `escape`, `escapeRegExp`, `every`, `find`, `findIndex`,
|
||||
* `findKey`, `findLast`, `findLastIndex`, `findLastKey`, `findWhere`, `first`,
|
||||
* `floor`, `get`, `gt`, `gte`, `has`, `identity`, `includes`, `indexOf`,
|
||||
* `inRange`, `isArguments`, `isArray`, `isBoolean`, `isDate`, `isElement`,
|
||||
* `isEmpty`, `isEqual`, `isError`, `isFinite` `isFunction`, `isMatch`,
|
||||
* `isNative`, `isNaN`, `isNull`, `isNumber`, `isObject`, `isPlainObject`,
|
||||
* `isRegExp`, `isString`, `isUndefined`, `isTypedArray`, `join`, `kebabCase`,
|
||||
* `last`, `lastIndexOf`, `lt`, `lte`, `max`, `min`, `noConflict`, `noop`,
|
||||
* `now`, `pad`, `padLeft`, `padRight`, `parseInt`, `pop`, `random`, `reduce`,
|
||||
* `reduceRight`, `repeat`, `result`, `round`, `runInContext`, `shift`, `size`,
|
||||
* `snakeCase`, `some`, `sortedIndex`, `sortedLastIndex`, `startCase`,
|
||||
* `startsWith`, `sum`, `template`, `trim`, `trimLeft`, `trimRight`, `trunc`,
|
||||
* `unescape`, `uniqueId`, `value`, and `words`
|
||||
*
|
||||
* The wrapper method `sample` will return a wrapped value when `n` is provided,
|
||||
* otherwise an unwrapped value is returned.
|
||||
*
|
||||
* @name _
|
||||
* @constructor
|
||||
* @category Chain
|
||||
* @param {*} value The value to wrap in a `lodash` instance.
|
||||
* @returns {Object} Returns the new `lodash` wrapper instance.
|
||||
* @example
|
||||
*
|
||||
* var wrapped = _([1, 2, 3]);
|
||||
*
|
||||
* // returns an unwrapped value
|
||||
* wrapped.reduce(function(total, n) {
|
||||
* return total + n;
|
||||
* });
|
||||
* // => 6
|
||||
*
|
||||
* // returns a wrapped value
|
||||
* var squares = wrapped.map(function(n) {
|
||||
* return n * n;
|
||||
* });
|
||||
*
|
||||
* _.isArray(squares);
|
||||
* // => false
|
||||
*
|
||||
* _.isArray(squares.value());
|
||||
* // => true
|
||||
*/
|
||||
function lodash(value) {
|
||||
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
||||
if (value instanceof LodashWrapper) {
|
||||
return value;
|
||||
}
|
||||
if (hasOwnProperty.call(value, '__chain__') && hasOwnProperty.call(value, '__wrapped__')) {
|
||||
return wrapperClone(value);
|
||||
}
|
||||
}
|
||||
return new LodashWrapper(value);
|
||||
}
|
||||
|
||||
// Ensure wrappers are instances of `baseLodash`.
|
||||
lodash.prototype = baseLodash.prototype;
|
||||
|
||||
module.exports = lodash;
|
1
react-app/node_modules/lodash/chain/plant.js
generated
vendored
Normal file
1
react-app/node_modules/lodash/chain/plant.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./wrapperPlant');
|
1
react-app/node_modules/lodash/chain/reverse.js
generated
vendored
Normal file
1
react-app/node_modules/lodash/chain/reverse.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./wrapperReverse');
|
1
react-app/node_modules/lodash/chain/run.js
generated
vendored
Normal file
1
react-app/node_modules/lodash/chain/run.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./wrapperValue');
|
29
react-app/node_modules/lodash/chain/tap.js
generated
vendored
Normal file
29
react-app/node_modules/lodash/chain/tap.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* This method invokes `interceptor` and returns `value`. The interceptor is
|
||||
* bound to `thisArg` and invoked with one argument; (value). The purpose of
|
||||
* this method is to "tap into" a method chain in order to perform operations
|
||||
* on intermediate results within the chain.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Chain
|
||||
* @param {*} value The value to provide to `interceptor`.
|
||||
* @param {Function} interceptor The function to invoke.
|
||||
* @param {*} [thisArg] The `this` binding of `interceptor`.
|
||||
* @returns {*} Returns `value`.
|
||||
* @example
|
||||
*
|
||||
* _([1, 2, 3])
|
||||
* .tap(function(array) {
|
||||
* array.pop();
|
||||
* })
|
||||
* .reverse()
|
||||
* .value();
|
||||
* // => [2, 1]
|
||||
*/
|
||||
function tap(value, interceptor, thisArg) {
|
||||
interceptor.call(thisArg, value);
|
||||
return value;
|
||||
}
|
||||
|
||||
module.exports = tap;
|
26
react-app/node_modules/lodash/chain/thru.js
generated
vendored
Normal file
26
react-app/node_modules/lodash/chain/thru.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* This method is like `_.tap` except that it returns the result of `interceptor`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Chain
|
||||
* @param {*} value The value to provide to `interceptor`.
|
||||
* @param {Function} interceptor The function to invoke.
|
||||
* @param {*} [thisArg] The `this` binding of `interceptor`.
|
||||
* @returns {*} Returns the result of `interceptor`.
|
||||
* @example
|
||||
*
|
||||
* _(' abc ')
|
||||
* .chain()
|
||||
* .trim()
|
||||
* .thru(function(value) {
|
||||
* return [value];
|
||||
* })
|
||||
* .value();
|
||||
* // => ['abc']
|
||||
*/
|
||||
function thru(value, interceptor, thisArg) {
|
||||
return interceptor.call(thisArg, value);
|
||||
}
|
||||
|
||||
module.exports = thru;
|
1
react-app/node_modules/lodash/chain/toJSON.js
generated
vendored
Normal file
1
react-app/node_modules/lodash/chain/toJSON.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./wrapperValue');
|
1
react-app/node_modules/lodash/chain/toString.js
generated
vendored
Normal file
1
react-app/node_modules/lodash/chain/toString.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./wrapperToString');
|
1
react-app/node_modules/lodash/chain/value.js
generated
vendored
Normal file
1
react-app/node_modules/lodash/chain/value.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./wrapperValue');
|
1
react-app/node_modules/lodash/chain/valueOf.js
generated
vendored
Normal file
1
react-app/node_modules/lodash/chain/valueOf.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./wrapperValue');
|
32
react-app/node_modules/lodash/chain/wrapperChain.js
generated
vendored
Normal file
32
react-app/node_modules/lodash/chain/wrapperChain.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
var chain = require('./chain');
|
||||
|
||||
/**
|
||||
* Enables explicit method chaining on the wrapper object.
|
||||
*
|
||||
* @name chain
|
||||
* @memberOf _
|
||||
* @category Chain
|
||||
* @returns {Object} Returns the new `lodash` wrapper instance.
|
||||
* @example
|
||||
*
|
||||
* var users = [
|
||||
* { 'user': 'barney', 'age': 36 },
|
||||
* { 'user': 'fred', 'age': 40 }
|
||||
* ];
|
||||
*
|
||||
* // without explicit chaining
|
||||
* _(users).first();
|
||||
* // => { 'user': 'barney', 'age': 36 }
|
||||
*
|
||||
* // with explicit chaining
|
||||
* _(users).chain()
|
||||
* .first()
|
||||
* .pick('user')
|
||||
* .value();
|
||||
* // => { 'user': 'barney' }
|
||||
*/
|
||||
function wrapperChain() {
|
||||
return chain(this);
|
||||
}
|
||||
|
||||
module.exports = wrapperChain;
|
32
react-app/node_modules/lodash/chain/wrapperCommit.js
generated
vendored
Normal file
32
react-app/node_modules/lodash/chain/wrapperCommit.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
var LodashWrapper = require('../internal/LodashWrapper');
|
||||
|
||||
/**
|
||||
* Executes the chained sequence and returns the wrapped result.
|
||||
*
|
||||
* @name commit
|
||||
* @memberOf _
|
||||
* @category Chain
|
||||
* @returns {Object} Returns the new `lodash` wrapper instance.
|
||||
* @example
|
||||
*
|
||||
* var array = [1, 2];
|
||||
* var wrapped = _(array).push(3);
|
||||
*
|
||||
* console.log(array);
|
||||
* // => [1, 2]
|
||||
*
|
||||
* wrapped = wrapped.commit();
|
||||
* console.log(array);
|
||||
* // => [1, 2, 3]
|
||||
*
|
||||
* wrapped.last();
|
||||
* // => 3
|
||||
*
|
||||
* console.log(array);
|
||||
* // => [1, 2, 3]
|
||||
*/
|
||||
function wrapperCommit() {
|
||||
return new LodashWrapper(this.value(), this.__chain__);
|
||||
}
|
||||
|
||||
module.exports = wrapperCommit;
|
34
react-app/node_modules/lodash/chain/wrapperConcat.js
generated
vendored
Normal file
34
react-app/node_modules/lodash/chain/wrapperConcat.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
var arrayConcat = require('../internal/arrayConcat'),
|
||||
baseFlatten = require('../internal/baseFlatten'),
|
||||
isArray = require('../lang/isArray'),
|
||||
restParam = require('../function/restParam'),
|
||||
toObject = require('../internal/toObject');
|
||||
|
||||
/**
|
||||
* Creates a new array joining a wrapped array with any additional arrays
|
||||
* and/or values.
|
||||
*
|
||||
* @name concat
|
||||
* @memberOf _
|
||||
* @category Chain
|
||||
* @param {...*} [values] The values to concatenate.
|
||||
* @returns {Array} Returns the new concatenated array.
|
||||
* @example
|
||||
*
|
||||
* var array = [1];
|
||||
* var wrapped = _(array).concat(2, [3], [[4]]);
|
||||
*
|
||||
* console.log(wrapped.value());
|
||||
* // => [1, 2, 3, [4]]
|
||||
*
|
||||
* console.log(array);
|
||||
* // => [1]
|
||||
*/
|
||||
var wrapperConcat = restParam(function(values) {
|
||||
values = baseFlatten(values);
|
||||
return this.thru(function(array) {
|
||||
return arrayConcat(isArray(array) ? array : [toObject(array)], values);
|
||||
});
|
||||
});
|
||||
|
||||
module.exports = wrapperConcat;
|
45
react-app/node_modules/lodash/chain/wrapperPlant.js
generated
vendored
Normal file
45
react-app/node_modules/lodash/chain/wrapperPlant.js
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
var baseLodash = require('../internal/baseLodash'),
|
||||
wrapperClone = require('../internal/wrapperClone');
|
||||
|
||||
/**
|
||||
* Creates a clone of the chained sequence planting `value` as the wrapped value.
|
||||
*
|
||||
* @name plant
|
||||
* @memberOf _
|
||||
* @category Chain
|
||||
* @returns {Object} Returns the new `lodash` wrapper instance.
|
||||
* @example
|
||||
*
|
||||
* var array = [1, 2];
|
||||
* var wrapped = _(array).map(function(value) {
|
||||
* return Math.pow(value, 2);
|
||||
* });
|
||||
*
|
||||
* var other = [3, 4];
|
||||
* var otherWrapped = wrapped.plant(other);
|
||||
*
|
||||
* otherWrapped.value();
|
||||
* // => [9, 16]
|
||||
*
|
||||
* wrapped.value();
|
||||
* // => [1, 4]
|
||||
*/
|
||||
function wrapperPlant(value) {
|
||||
var result,
|
||||
parent = this;
|
||||
|
||||
while (parent instanceof baseLodash) {
|
||||
var clone = wrapperClone(parent);
|
||||
if (result) {
|
||||
previous.__wrapped__ = clone;
|
||||
} else {
|
||||
result = clone;
|
||||
}
|
||||
var previous = clone;
|
||||
parent = parent.__wrapped__;
|
||||
}
|
||||
previous.__wrapped__ = value;
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = wrapperPlant;
|
43
react-app/node_modules/lodash/chain/wrapperReverse.js
generated
vendored
Normal file
43
react-app/node_modules/lodash/chain/wrapperReverse.js
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
var LazyWrapper = require('../internal/LazyWrapper'),
|
||||
LodashWrapper = require('../internal/LodashWrapper'),
|
||||
thru = require('./thru');
|
||||
|
||||
/**
|
||||
* Reverses the wrapped array so the first element becomes the last, the
|
||||
* second element becomes the second to last, and so on.
|
||||
*
|
||||
* **Note:** This method mutates the wrapped array.
|
||||
*
|
||||
* @name reverse
|
||||
* @memberOf _
|
||||
* @category Chain
|
||||
* @returns {Object} Returns the new reversed `lodash` wrapper instance.
|
||||
* @example
|
||||
*
|
||||
* var array = [1, 2, 3];
|
||||
*
|
||||
* _(array).reverse().value()
|
||||
* // => [3, 2, 1]
|
||||
*
|
||||
* console.log(array);
|
||||
* // => [3, 2, 1]
|
||||
*/
|
||||
function wrapperReverse() {
|
||||
var value = this.__wrapped__;
|
||||
|
||||
var interceptor = function(value) {
|
||||
return value.reverse();
|
||||
};
|
||||
if (value instanceof LazyWrapper) {
|
||||
var wrapped = value;
|
||||
if (this.__actions__.length) {
|
||||
wrapped = new LazyWrapper(this);
|
||||
}
|
||||
wrapped = wrapped.reverse();
|
||||
wrapped.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
|
||||
return new LodashWrapper(wrapped, this.__chain__);
|
||||
}
|
||||
return this.thru(interceptor);
|
||||
}
|
||||
|
||||
module.exports = wrapperReverse;
|
17
react-app/node_modules/lodash/chain/wrapperToString.js
generated
vendored
Normal file
17
react-app/node_modules/lodash/chain/wrapperToString.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Produces the result of coercing the unwrapped value to a string.
|
||||
*
|
||||
* @name toString
|
||||
* @memberOf _
|
||||
* @category Chain
|
||||
* @returns {string} Returns the coerced string value.
|
||||
* @example
|
||||
*
|
||||
* _([1, 2, 3]).toString();
|
||||
* // => '1,2,3'
|
||||
*/
|
||||
function wrapperToString() {
|
||||
return (this.value() + '');
|
||||
}
|
||||
|
||||
module.exports = wrapperToString;
|
20
react-app/node_modules/lodash/chain/wrapperValue.js
generated
vendored
Normal file
20
react-app/node_modules/lodash/chain/wrapperValue.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
var baseWrapperValue = require('../internal/baseWrapperValue');
|
||||
|
||||
/**
|
||||
* Executes the chained sequence to extract the unwrapped value.
|
||||
*
|
||||
* @name value
|
||||
* @memberOf _
|
||||
* @alias run, toJSON, valueOf
|
||||
* @category Chain
|
||||
* @returns {*} Returns the resolved unwrapped value.
|
||||
* @example
|
||||
*
|
||||
* _([1, 2, 3]).value();
|
||||
* // => [1, 2, 3]
|
||||
*/
|
||||
function wrapperValue() {
|
||||
return baseWrapperValue(this.__wrapped__, this.__actions__);
|
||||
}
|
||||
|
||||
module.exports = wrapperValue;
|
Reference in New Issue
Block a user