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/rc-hammerjs/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2016 Jed Watson
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.

102
web/node_modules/rc-hammerjs/README.md generated vendored Normal file
View File

@@ -0,0 +1,102 @@
rc-hammerjs
==============
Fork from [React-HammerJS](https://github.com/JedWatson/react-hammerjs).
[ReactJS](http://facebook.github.io/react/) / [HammerJS](http://hammerjs.github.io) integration. Support touch events in your React app.
If you're looking for native tap event handling in ReactJS, check out my [react-tappable](https://github.com/JedWatson/react-tappable) package.
## Installation
The easiest way to use React-HammerJS is to install it from NPM and include it in your own React build process (using [Browserify](http://browserify.org), etc).
You can also use the standalone build by including `dist/hammer.js` in your page. If you use this, make sure you have already included React, and it is available as a global variable.
```
npm install rc-hammerjs --save
```
## Usage
React-HammerJS wraps a React component, binding Hammer events to it so it can fire the handlers specified.
## Properties
The following events are supported:
* `onTap`
* `onDoubleTap`
* `onPan`
* `onPanCancel`
* `onPanEnd`
* `onPanStart`
* `onPinch`
* `onPinchCancel`
* `onPinchEnd`
* `onPinchIn`
* `onPinchOut`
* `onPinchStart`
* `onPress`
* `onPressUp`
* `onRotate`
* `onRotateCancel`
* `onRotateEnd`
* `onRotateMove`
* `onRotateStart`
* `onSwipe`
You can also provide an `action` property which is like the `onTap` event handler but will also be fired `onPress`.
If you provide the prop `direction` the `pan` and `swipe` events will support `Hammer.DIRECTION_(NONE/LEFT/RIGHT/UP/DOWN/HORIZONTAL/VERTICAL/ALL)`.
The `options` property can be used to configure the Hammer manager. These properties will be merged with the default ones.
### Example
```
var Hammer = require('rc-hammerjs');
// Default options
<Hammer onTap={handleTap} onSwipe={handleSwipe}><div>Tap Me</div></Hammer>
// Custom options
var options = {
touchAction:'compute',
recognizers: {
tap: {
time: 600,
threshold: 100
}
}
};
<Hammer onTap={handleTap} options={options}><div>Tap Me</div></Hammer>
```
# Disabled Events
As a default, the `pinch` and `rotate` events are disabled in hammer.js, as they would make actions on an element "blocking". You may enable these events using the options object which is a attribute on the react `<Hammer>` element.
For example, to activate the `pinch` event on a `canvas` element:
```
<Hammer
onPinch={handlePinch}
options={{
recognizers: {
pinch: { enable: true }
}
}}>
<canvas></canvas>
</Hammer>
```
Disabled events are detailed in the hammer.js api documentation:
- http://hammerjs.github.io/recognizer-rotate/
- http://hammerjs.github.io/recognizer-pinch/
# License
MIT Licensed. Copyright (c) Jed Watson 2016.

164
web/node_modules/rc-hammerjs/es/Hammer.js generated vendored Normal file
View File

@@ -0,0 +1,164 @@
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
// https://github.com/hammerjs/hammer.js/issues/930
// https://github.com/JedWatson/react-hammerjs/issues/14
// require('hammerjs') when in a browser. This is safe because Hammer is only
// invoked in componentDidMount, which is not executed on the server.
var Hammer = typeof window !== 'undefined' ? require('hammerjs') : undefined;
var privateProps = {
children: true,
direction: true,
options: true,
recognizeWith: true,
vertical: true
};
/**
* Hammer Component
* ================
*/
var handlerToEvent = {
action: 'tap press',
onDoubleTap: 'doubletap',
onPan: 'pan',
onPanCancel: 'pancancel',
onPanEnd: 'panend',
onPanStart: 'panstart',
onPinch: 'pinch',
onPinchCancel: 'pinchcancel',
onPinchEnd: 'pinchend',
onPinchIn: 'pinchin',
onPinchOut: 'pinchout',
onPinchStart: 'pinchstart',
onPress: 'press',
onPressUp: 'pressup',
onRotate: 'rotate',
onRotateCancel: 'rotatecancel',
onRotateEnd: 'rotateend',
onRotateMove: 'rotatemove',
onRotateStart: 'rotatestart',
onSwipe: 'swipe',
onSwipeRight: 'swiperight',
onSwipeLeft: 'swipeleft',
onSwipeUp: 'swipeup',
onSwipeDown: 'swipedown',
onTap: 'tap'
};
Object.keys(handlerToEvent).forEach(function (i) {
privateProps[i] = true;
});
function updateHammer(hammer, props) {
var _this = this;
if (props.hasOwnProperty('vertical')) {
console.warn('vertical is deprecated, please use `direction` instead');
}
var directionProp = props.direction;
if (directionProp || props.hasOwnProperty('vertical')) {
var direction = directionProp ? directionProp : props.vertical ? 'DIRECTION_ALL' : 'DIRECTION_HORIZONTAL';
hammer.get('pan').set({ direction: Hammer[direction] });
hammer.get('swipe').set({ direction: Hammer[direction] });
}
if (props.options) {
Object.keys(props.options).forEach(function (option) {
if (option === 'recognizers') {
Object.keys(props.options.recognizers).forEach(function (gesture) {
var recognizer = hammer.get(gesture);
recognizer.set(props.options.recognizers[gesture]);
if (props.options.recognizers[gesture].requireFailure) {
recognizer.requireFailure(props.options.recognizers[gesture].requireFailure);
}
}, _this);
} else {
var key = option;
var optionObj = {};
optionObj[key] = props.options[option];
hammer.set(optionObj);
}
}, this);
}
if (props.recognizeWith) {
Object.keys(props.recognizeWith).forEach(function (gesture) {
var recognizer = hammer.get(gesture);
recognizer.recognizeWith(props.recognizeWith[gesture]);
}, this);
}
Object.keys(props).forEach(function (p) {
var e = handlerToEvent[p];
if (e) {
hammer.off(e);
hammer.on(e, props[p]);
}
});
}
var HammerComponent = function (_React$Component) {
_inherits(HammerComponent, _React$Component);
function HammerComponent() {
_classCallCheck(this, HammerComponent);
return _possibleConstructorReturn(this, (HammerComponent.__proto__ || Object.getPrototypeOf(HammerComponent)).apply(this, arguments));
}
_createClass(HammerComponent, [{
key: 'componentDidMount',
value: function componentDidMount() {
this.hammer = new Hammer(ReactDOM.findDOMNode(this));
updateHammer(this.hammer, this.props);
}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate() {
if (this.hammer) {
updateHammer(this.hammer, this.props);
}
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
if (this.hammer) {
this.hammer.stop();
this.hammer.destroy();
}
this.hammer = null;
}
}, {
key: 'render',
value: function render() {
var props = {};
Object.keys(this.props).forEach(function (i) {
if (!privateProps[i]) {
props[i] = this.props[i];
}
}, this);
// Reuse the child provided
// This makes it flexible to use whatever element is wanted (div, ul, etc)
return React.cloneElement(React.Children.only(this.props.children), props);
}
}]);
return HammerComponent;
}(React.Component);
HammerComponent.displayName = 'Hammer';
HammerComponent.propTypes = {
className: PropTypes.string
};
export default HammerComponent;

3
web/node_modules/rc-hammerjs/es/index.js generated vendored Normal file
View File

@@ -0,0 +1,3 @@
import Hammer from './Hammer';
export default Hammer;

191
web/node_modules/rc-hammerjs/lib/Hammer.js generated vendored Normal file
View File

@@ -0,0 +1,191 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _interopRequireDefault(_createClass2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
var _inherits2 = require('babel-runtime/helpers/inherits');
var _inherits3 = _interopRequireDefault(_inherits2);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _reactDom = require('react-dom');
var _reactDom2 = _interopRequireDefault(_reactDom);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
// https://github.com/hammerjs/hammer.js/issues/930
// https://github.com/JedWatson/react-hammerjs/issues/14
// require('hammerjs') when in a browser. This is safe because Hammer is only
// invoked in componentDidMount, which is not executed on the server.
var Hammer = typeof window !== 'undefined' ? require('hammerjs') : undefined;
var privateProps = {
children: true,
direction: true,
options: true,
recognizeWith: true,
vertical: true
};
/**
* Hammer Component
* ================
*/
var handlerToEvent = {
action: 'tap press',
onDoubleTap: 'doubletap',
onPan: 'pan',
onPanCancel: 'pancancel',
onPanEnd: 'panend',
onPanStart: 'panstart',
onPinch: 'pinch',
onPinchCancel: 'pinchcancel',
onPinchEnd: 'pinchend',
onPinchIn: 'pinchin',
onPinchOut: 'pinchout',
onPinchStart: 'pinchstart',
onPress: 'press',
onPressUp: 'pressup',
onRotate: 'rotate',
onRotateCancel: 'rotatecancel',
onRotateEnd: 'rotateend',
onRotateMove: 'rotatemove',
onRotateStart: 'rotatestart',
onSwipe: 'swipe',
onSwipeRight: 'swiperight',
onSwipeLeft: 'swipeleft',
onSwipeUp: 'swipeup',
onSwipeDown: 'swipedown',
onTap: 'tap'
};
Object.keys(handlerToEvent).forEach(function (i) {
privateProps[i] = true;
});
function updateHammer(hammer, props) {
var _this = this;
if (props.hasOwnProperty('vertical')) {
console.warn('vertical is deprecated, please use `direction` instead');
}
var directionProp = props.direction;
if (directionProp || props.hasOwnProperty('vertical')) {
var direction = directionProp ? directionProp : props.vertical ? 'DIRECTION_ALL' : 'DIRECTION_HORIZONTAL';
hammer.get('pan').set({ direction: Hammer[direction] });
hammer.get('swipe').set({ direction: Hammer[direction] });
}
if (props.options) {
Object.keys(props.options).forEach(function (option) {
if (option === 'recognizers') {
Object.keys(props.options.recognizers).forEach(function (gesture) {
var recognizer = hammer.get(gesture);
recognizer.set(props.options.recognizers[gesture]);
if (props.options.recognizers[gesture].requireFailure) {
recognizer.requireFailure(props.options.recognizers[gesture].requireFailure);
}
}, _this);
} else {
var key = option;
var optionObj = {};
optionObj[key] = props.options[option];
hammer.set(optionObj);
}
}, this);
}
if (props.recognizeWith) {
Object.keys(props.recognizeWith).forEach(function (gesture) {
var recognizer = hammer.get(gesture);
recognizer.recognizeWith(props.recognizeWith[gesture]);
}, this);
}
Object.keys(props).forEach(function (p) {
var e = handlerToEvent[p];
if (e) {
hammer.off(e);
hammer.on(e, props[p]);
}
});
}
var HammerComponent = function (_React$Component) {
(0, _inherits3['default'])(HammerComponent, _React$Component);
function HammerComponent() {
(0, _classCallCheck3['default'])(this, HammerComponent);
return (0, _possibleConstructorReturn3['default'])(this, (HammerComponent.__proto__ || Object.getPrototypeOf(HammerComponent)).apply(this, arguments));
}
(0, _createClass3['default'])(HammerComponent, [{
key: 'componentDidMount',
value: function componentDidMount() {
this.hammer = new Hammer(_reactDom2['default'].findDOMNode(this));
updateHammer(this.hammer, this.props);
}
}, {
key: 'componentDidUpdate',
value: function componentDidUpdate() {
if (this.hammer) {
updateHammer(this.hammer, this.props);
}
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
if (this.hammer) {
this.hammer.stop();
this.hammer.destroy();
}
this.hammer = null;
}
}, {
key: 'render',
value: function render() {
var props = {};
Object.keys(this.props).forEach(function (i) {
if (!privateProps[i]) {
props[i] = this.props[i];
}
}, this);
// Reuse the child provided
// This makes it flexible to use whatever element is wanted (div, ul, etc)
return _react2['default'].cloneElement(_react2['default'].Children.only(this.props.children), props);
}
}]);
return HammerComponent;
}(_react2['default'].Component);
HammerComponent.displayName = 'Hammer';
HammerComponent.propTypes = {
className: _propTypes2['default'].string
};
exports['default'] = HammerComponent;
module.exports = exports['default'];

14
web/node_modules/rc-hammerjs/lib/index.js generated vendored Normal file
View File

@@ -0,0 +1,14 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _Hammer = require('./Hammer');
var _Hammer2 = _interopRequireDefault(_Hammer);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
exports['default'] = _Hammer2['default'];
module.exports = exports['default'];

97
web/node_modules/rc-hammerjs/package.json generated vendored Normal file
View File

@@ -0,0 +1,97 @@
{
"_from": "rc-hammerjs@~0.6.0",
"_id": "rc-hammerjs@0.6.9",
"_inBundle": false,
"_integrity": "sha512-4llgWO3RgLyVbEqUdGsDfzUDqklRlQW5VEhE3x35IvhV+w//VPRG34SBavK3D2mD/UaLKaohgU41V4agiftC8g==",
"_location": "/rc-hammerjs",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "rc-hammerjs@~0.6.0",
"name": "rc-hammerjs",
"escapedName": "rc-hammerjs",
"rawSpec": "~0.6.0",
"saveSpec": null,
"fetchSpec": "~0.6.0"
},
"_requiredBy": [
"/rc-tabs"
],
"_resolved": "https://registry.npmjs.org/rc-hammerjs/-/rc-hammerjs-0.6.9.tgz",
"_shasum": "9a4ddbda1b2ec8f9b9596091a6a989842a243907",
"_spec": "rc-hammerjs@~0.6.0",
"_where": "/Users/thilina/TestProjects/icehrm-pro/web/node_modules/rc-tabs",
"author": {
"name": "Jed Watson"
},
"browserify-shim": {
"react": "global:React",
"react-dom": "global:ReactDOM"
},
"bugs": {
"url": "https://github.com/react-component/react-hammerjs/issues"
},
"bundleDependencies": false,
"dependencies": {
"babel-runtime": "6.x",
"hammerjs": "^2.0.8",
"prop-types": "^15.5.9"
},
"deprecated": false,
"description": "ReactJS / HammerJS integration. Support touch events in your React app.",
"devDependencies": {
"browserify": "^13.0.1",
"browserify-shim": "^3.8.12",
"chalk": "^1.1.3",
"del": "^2.2.1",
"gulp": "^3.9.1",
"gulp-bump": "^2.2.0",
"gulp-git": "^1.8.0",
"gulp-rename": "^1.2.2",
"gulp-streamify": "^1.0.2",
"gulp-uglify": "^1.5.4",
"gulp-util": "^3.0.7",
"merge-stream": "^1.0.0",
"rc-tools": "6.x",
"react": "^15.2.0",
"react-dom": "^15.2.0",
"vinyl-source-stream": "^1.1.0"
},
"files": [
"lib",
"es"
],
"homepage": "https://github.com/react-component/react-hammerjs#readme",
"keywords": [
"react",
"react-component",
"tap",
"tappable",
"touch",
"hammer",
"hammerjs",
"mobile"
],
"license": "MIT",
"main": "./lib/index",
"module": "./es/index",
"name": "rc-hammerjs",
"peerDependencies": {
"react": "^0.14.3 || ^15.0.0 || ^16.0.0"
},
"pre-commit": [
"lint"
],
"repository": {
"type": "git",
"url": "git+https://github.com/react-component/react-hammerjs.git"
},
"scripts": {
"compile": "rc-tools run compile --babel-runtime",
"lint": "rc-tools run lint",
"prepublish": "rc-tools run guard",
"pub": "rc-tools run pub --babel-runtime"
},
"version": "0.6.9"
}