Latest updates from IceHrmPro

This commit is contained in:
Thilina Pituwala
2020-05-20 18:47:29 +02:00
parent 60c92d7935
commit 7453a58aad
18012 changed files with 2089245 additions and 10173 deletions

21
web/node_modules/shallowequal/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2017 Alberto Leal <mailforalberto@gmail.com> (github.com/dashed)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

63
web/node_modules/shallowequal/README.md generated vendored Normal file
View File

@@ -0,0 +1,63 @@
# shallowequal [![Build Status](https://travis-ci.org/dashed/shallowequal.svg)](https://travis-ci.org/dashed/shallowequal) [![Downloads](https://img.shields.io/npm/dm/shallowequal.svg)](https://npmjs.com/shallowequal) [![npm version](https://img.shields.io/npm/v/shallowequal.svg?style=flat)](https://www.npmjs.com/package/shallowequal)
[![Greenkeeper badge](https://badges.greenkeeper.io/dashed/shallowequal.svg)](https://greenkeeper.io/)
> `shallowequal` is like lodash's [`isEqualWith`](https://lodash.com/docs/4.17.4#isEqualWith) but for shallow (strict) equal.
`shallowequal(value, other, [customizer], [thisArg])`
Performs a ***shallow equality*** comparison between two values (i.e. `value` and `other`) to determine if they are equivalent.
The equality is performed by iterating through keys on the given `value`, and returning `false` whenever any key has values which are not **strictly equal** between `value` and `other`. Otherwise, return `true` whenever the values of all keys are strictly equal.
If `customizer` (expected to be a function) is provided it is invoked to compare values. If `customizer` returns `undefined` (i.e. `void 0`), then comparisons are handled by the `shallowequal` function instead.
The `customizer` is bound to `thisArg` and invoked with three arguments: `(value, other, key)`.
**NOTE:** Docs are (shamelessly) adapted from [lodash's v3.x docs](https://lodash.com/docs/3.10.1#isEqualWith)
## Install
```sh
$ yarn add shallowequal
# npm v5+
$ npm install shallowequal
# before npm v5
$ npm install --save shallowequal
```
## Usage
```js
const shallowequal = require('shallowequal');
const object = { 'user': 'fred' };
const other = { 'user': 'fred' };
object == other;
// → false
shallowequal(object, other);
// → true
```
## Credit
Code for `shallowEqual` originated from https://github.com/gaearon/react-pure-render/ and has since been refactored to have the exact same API as `lodash.isEqualWith` (as of `v4.17.4`).
## Development
- `node.js` and `npm`. See: https://github.com/creationix/nvm#installation
- `yarn`. See: https://yarnpkg.com/en/docs/install
- `npm` dependencies. Run: `yarn install`
### Chores
- Lint: `yarn lint`
- Test: `yarn test`
- Pretty: `yarn pretty`
- Pre-publish: `yarn prepublish`
## License
MIT.

46
web/node_modules/shallowequal/index.js generated vendored Normal file
View File

@@ -0,0 +1,46 @@
//
module.exports = function shallowEqual(objA, objB, compare, compareContext) {
var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
if (ret !== void 0) {
return !!ret;
}
if (objA === objB) {
return true;
}
if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
return false;
}
var keysA = Object.keys(objA);
var keysB = Object.keys(objB);
if (keysA.length !== keysB.length) {
return false;
}
var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
// Test for A's keys different from B.
for (var idx = 0; idx < keysA.length; idx++) {
var key = keysA[idx];
if (!bHasOwnProperty(key)) {
return false;
}
var valueA = objA[key];
var valueB = objB[key];
ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
if (ret === false || (ret === void 0 && valueA !== valueB)) {
return false;
}
}
return true;
};

8
web/node_modules/shallowequal/index.js.flow generated vendored Normal file
View File

@@ -0,0 +1,8 @@
// @flow
declare module.exports: <T, U>(
objA?: ?T,
objB?: ?U,
compare?: ?(objValue: any, otherValue: any, key?: string) => boolean | void,
compareContext?: ?any
) => boolean;

51
web/node_modules/shallowequal/index.original.js generated vendored Normal file
View File

@@ -0,0 +1,51 @@
// @flow
module.exports = function shallowEqual<T, U>(
objA?: ?T,
objB?: ?U,
compare?: ?(objValue: any, otherValue: any, key?: string) => boolean | void,
compareContext?: ?any
): boolean {
var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
if (ret !== void 0) {
return !!ret;
}
if (objA === objB) {
return true;
}
if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
return false;
}
var keysA = Object.keys(objA);
var keysB = Object.keys(objB);
if (keysA.length !== keysB.length) {
return false;
}
var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
// Test for A's keys different from B.
for (var idx = 0; idx < keysA.length; idx++) {
var key = keysA[idx];
if (!bHasOwnProperty(key)) {
return false;
}
var valueA = objA[key];
var valueB = objB[key];
ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
if (ret === false || (ret === void 0 && valueA !== valueB)) {
return false;
}
}
return true;
};

105
web/node_modules/shallowequal/package.json generated vendored Normal file
View File

@@ -0,0 +1,105 @@
{
"_from": "shallowequal@^1.1.0",
"_id": "shallowequal@1.1.0",
"_inBundle": false,
"_integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==",
"_location": "/shallowequal",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "shallowequal@^1.1.0",
"name": "shallowequal",
"escapedName": "shallowequal",
"rawSpec": "^1.1.0",
"saveSpec": null,
"fetchSpec": "^1.1.0"
},
"_requiredBy": [
"/mini-store",
"/rc-collapse",
"/rc-menu",
"/rc-picker",
"/rc-slider",
"/rc-table",
"/rc-util"
],
"_resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz",
"_shasum": "188d521de95b9087404fd4dcb68b13df0ae4e7f8",
"_spec": "shallowequal@^1.1.0",
"_where": "/Users/thilina/TestProjects/icehrm-pro/web/node_modules/rc-util",
"author": {
"name": "Alberto Leal",
"email": "mailforalberto@gmail.com",
"url": "github.com/dashed"
},
"bugs": {
"url": "https://github.com/dashed/shallowequal/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Like lodash isEqualWith but for shallow equal.",
"devDependencies": {
"babel-eslint": "^8.0.0",
"babel-preset-env": "^1.6.1",
"babel-register": "^6.24.1",
"chai": "^4.0.0",
"eslint": "^4.7.1",
"flow-bin": "^0.75.0",
"flow-remove-types": "^1.2.3",
"husky": "^0.14.3",
"lint-staged": "^6.0.0",
"mocha": "^5.0.0",
"prettier": "^1.9.2"
},
"eslintConfig": {
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"mocha": true
},
"extends": [
"eslint:recommended"
]
},
"files": [
"index.js",
"index.js.flow",
"index.original.js"
],
"homepage": "https://github.com/dashed/shallowequal#readme",
"keywords": [
"shallowequal",
"shallow",
"equal",
"isequal",
"compare",
"isequalwith"
],
"license": "MIT",
"lint-staged": {
"*.{js,json,css,js.flow}": [
"prettier --write",
"git add"
]
},
"main": "index.js",
"name": "shallowequal",
"repository": {
"type": "git",
"url": "git+https://github.com/dashed/shallowequal.git"
},
"scripts": {
"build": "npm run build:strip-flow && npm run build:gen-flow",
"build:gen-flow": "flow gen-flow-files index.original.js > index.js.flow",
"build:strip-flow": "flow-remove-types --pretty index.original.js > index.js",
"lint": "eslint index.js test",
"precommit": "lint-staged",
"prepublish": "npm run build && npm run pretty && npm run lint && npm run test",
"pretty": "prettier --write --tab-width 2 'test/**/*.js' '*.{js,js.flow}'",
"test": "mocha --require babel-register",
"travis": "npm run lint && npm run test"
},
"version": "1.1.0"
}