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

33
web/node_modules/antd/es/rate/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,33 @@
import * as React from 'react';
import { ConfigConsumerProps } from '../config-provider';
export interface RateProps {
prefixCls?: string;
count?: number;
value?: number;
defaultValue?: number;
allowHalf?: boolean;
allowClear?: boolean;
disabled?: boolean;
tooltips?: Array<string>;
onChange?: (value: number) => void;
onHoverChange?: (value: number) => void;
character?: React.ReactNode;
className?: string;
style?: React.CSSProperties;
}
interface RateNodeProps {
index: number;
}
export default class Rate extends React.Component<RateProps, any> {
static defaultProps: {
character: JSX.Element;
};
private rcRate;
saveRate: (node: any) => void;
characterRender: (node: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>, { index }: RateNodeProps) => JSX.Element;
focus(): void;
blur(): void;
renderRate: ({ getPrefixCls, direction }: ConfigConsumerProps) => JSX.Element;
render(): JSX.Element;
}
export {};

120
web/node_modules/antd/es/rate/index.js generated vendored Normal file
View File

@@ -0,0 +1,120 @@
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
var __rest = this && this.__rest || function (s, e) {
var t = {};
for (var p in s) {
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
}
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
import * as React from 'react';
import RcRate from 'rc-rate';
import omit from 'omit.js';
import classNames from 'classnames';
import StarFilled from '@ant-design/icons/StarFilled';
import Tooltip from '../tooltip';
import { ConfigConsumer } from '../config-provider';
var Rate = /*#__PURE__*/function (_React$Component) {
_inherits(Rate, _React$Component);
var _super = _createSuper(Rate);
function Rate() {
var _this;
_classCallCheck(this, Rate);
_this = _super.apply(this, arguments);
_this.saveRate = function (node) {
_this.rcRate = node;
};
_this.characterRender = function (node, _ref) {
var index = _ref.index;
var tooltips = _this.props.tooltips;
if (!tooltips) return node;
return /*#__PURE__*/React.createElement(Tooltip, {
title: tooltips[index]
}, node);
};
_this.renderRate = function (_ref2) {
var getPrefixCls = _ref2.getPrefixCls,
direction = _ref2.direction;
var _a = _this.props,
prefixCls = _a.prefixCls,
className = _a.className,
restProps = __rest(_a, ["prefixCls", "className"]);
var rateProps = omit(restProps, ['tooltips']);
var ratePrefixCls = getPrefixCls('rate', prefixCls);
var rateClassNames = classNames(className, _defineProperty({}, "".concat(ratePrefixCls, "-rtl"), direction === 'rtl'));
return /*#__PURE__*/React.createElement(RcRate, _extends({
ref: _this.saveRate,
characterRender: _this.characterRender
}, rateProps, {
prefixCls: ratePrefixCls,
className: rateClassNames
}));
};
return _this;
}
_createClass(Rate, [{
key: "focus",
value: function focus() {
this.rcRate.focus();
}
}, {
key: "blur",
value: function blur() {
this.rcRate.blur();
}
}, {
key: "render",
value: function render() {
return /*#__PURE__*/React.createElement(ConfigConsumer, null, this.renderRate);
}
}]);
return Rate;
}(React.Component);
export { Rate as default };
Rate.defaultProps = {
character: /*#__PURE__*/React.createElement(StarFilled, null)
};

4
web/node_modules/antd/es/rate/style/css.js generated vendored Normal file
View File

@@ -0,0 +1,4 @@
import '../../style/index.css';
import './index.css'; // style dependencies
import '../../tooltip/style/css';

101
web/node_modules/antd/es/rate/style/index.css generated vendored Normal file
View File

@@ -0,0 +1,101 @@
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.ant-rate {
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: rgba(0, 0, 0, 0.65);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
-webkit-font-feature-settings: 'tnum';
font-feature-settings: 'tnum';
display: inline-block;
margin: 0;
padding: 0;
color: #fadb14;
font-size: 20px;
line-height: unset;
list-style: none;
outline: none;
}
.ant-rate-disabled .ant-rate-star {
cursor: default;
}
.ant-rate-disabled .ant-rate-star:hover {
-webkit-transform: scale(1);
transform: scale(1);
}
.ant-rate-star {
position: relative;
display: inline-block;
margin: 0;
padding: 0;
color: inherit;
cursor: pointer;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
.ant-rate-star:not(:last-child) {
margin-right: 8px;
}
.ant-rate-star > div:focus {
outline: 0;
}
.ant-rate-star > div:hover,
.ant-rate-star > div:focus {
-webkit-transform: scale(1.1);
transform: scale(1.1);
}
.ant-rate-star-first,
.ant-rate-star-second {
color: #f0f0f0;
-webkit-transition: all 0.3s;
transition: all 0.3s;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.ant-rate-star-first .anticon,
.ant-rate-star-second .anticon {
vertical-align: middle;
}
.ant-rate-star-first {
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 100%;
overflow: hidden;
opacity: 0;
}
.ant-rate-star-half .ant-rate-star-first,
.ant-rate-star-half .ant-rate-star-second {
opacity: 1;
}
.ant-rate-star-half .ant-rate-star-first,
.ant-rate-star-full .ant-rate-star-second {
color: inherit;
}
.ant-rate-text {
display: inline-block;
margin-left: 8px;
font-size: 14px;
}
.ant-rate-rtl {
direction: rtl;
}
.ant-rate-rtl .ant-rate-star:not(:last-child) {
margin-right: 0;
margin-left: 8px;
}
.ant-rate-rtl .ant-rate-star-first {
right: 0;
left: auto;
}
.ant-rate-rtl .ant-rate-text {
margin-right: 8px;
margin-left: 0;
}

3
web/node_modules/antd/es/rate/style/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
import '../../style/index.less';
import './index.less';
import '../../tooltip/style';

4
web/node_modules/antd/es/rate/style/index.js generated vendored Normal file
View File

@@ -0,0 +1,4 @@
import '../../style/index.less';
import './index.less'; // style dependencies
import '../../tooltip/style';

87
web/node_modules/antd/es/rate/style/index.less generated vendored Normal file
View File

@@ -0,0 +1,87 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@rate-prefix-cls: ~'@{ant-prefix}-rate';
.@{rate-prefix-cls} {
.reset-component;
display: inline-block;
margin: 0;
padding: 0;
color: @rate-star-color;
font-size: 20px;
line-height: unset;
list-style: none;
outline: none;
&-disabled &-star {
cursor: default;
&:hover {
transform: scale(1);
}
}
&-star {
position: relative;
display: inline-block;
margin: 0;
padding: 0;
color: inherit;
cursor: pointer;
transition: all 0.3s;
&:not(:last-child) {
margin-right: 8px;
}
> div {
&:focus {
outline: 0;
}
&:hover,
&:focus {
transform: scale(1.1);
}
}
&-first,
&-second {
color: @rate-star-bg;
transition: all 0.3s;
user-select: none;
.@{iconfont-css-prefix} {
vertical-align: middle;
}
}
&-first {
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 100%;
overflow: hidden;
opacity: 0;
}
&-half &-first,
&-half &-second {
opacity: 1;
}
&-half &-first,
&-full &-second {
color: inherit;
}
}
&-text {
display: inline-block;
margin-left: 8px;
font-size: @font-size-base;
}
}
@import './rtl';

33
web/node_modules/antd/es/rate/style/rtl.less generated vendored Normal file
View File

@@ -0,0 +1,33 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@rate-prefix-cls: ~'@{ant-prefix}-rate';
.@{rate-prefix-cls} {
&-rtl {
direction: rtl;
}
&-star {
&:not(:last-child) {
.@{rate-prefix-cls}-rtl & {
margin-right: 0;
margin-left: 8px;
}
}
&-first {
.@{rate-prefix-cls}-rtl & {
right: 0;
left: auto;
}
}
}
&-text {
.@{rate-prefix-cls}-rtl & {
margin-right: 8px;
margin-left: 0;
}
}
}