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/antd/es/alert/ErrorBoundary.d.ts generated vendored Normal file
View File

@@ -0,0 +1,21 @@
import * as React from 'react';
interface ErrorBoundaryProps {
message?: React.ReactNode;
description?: React.ReactNode;
}
export default class ErrorBoundary extends React.Component<ErrorBoundaryProps, {
error?: Error | null;
info: {
componentStack?: string;
};
}> {
state: {
error: undefined;
info: {
componentStack: string;
};
};
componentDidCatch(error: Error | null, info: object): void;
render(): {} | null | undefined;
}
export {};

83
web/node_modules/antd/es/alert/ErrorBoundary.js generated vendored Normal file
View File

@@ -0,0 +1,83 @@
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 _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); }
import * as React from 'react';
import Alert from '.';
var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
_inherits(ErrorBoundary, _React$Component);
var _super = _createSuper(ErrorBoundary);
function ErrorBoundary() {
var _this;
_classCallCheck(this, ErrorBoundary);
_this = _super.apply(this, arguments);
_this.state = {
error: undefined,
info: {
componentStack: ''
}
};
return _this;
}
_createClass(ErrorBoundary, [{
key: "componentDidCatch",
value: function componentDidCatch(error, info) {
this.setState({
error: error,
info: info
});
}
}, {
key: "render",
value: function render() {
var _this$props = this.props,
message = _this$props.message,
description = _this$props.description,
children = _this$props.children;
var _this$state = this.state,
error = _this$state.error,
info = _this$state.info;
var componentStack = info && info.componentStack ? info.componentStack : null;
var errorMessage = typeof message === 'undefined' ? (error || '').toString() : message;
var errorDescription = typeof description === 'undefined' ? componentStack : description;
if (error) {
return /*#__PURE__*/React.createElement(Alert, {
type: "error",
message: errorMessage,
description: /*#__PURE__*/React.createElement("pre", null, errorDescription)
});
}
return children;
}
}]);
return ErrorBoundary;
}(React.Component);
export { ErrorBoundary as default };

46
web/node_modules/antd/es/alert/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,46 @@
import * as React from 'react';
import { ConfigConsumerProps } from '../config-provider';
import ErrorBoundary from './ErrorBoundary';
export interface AlertProps {
/**
* Type of Alert styles, options:`success`, `info`, `warning`, `error`
*/
type?: 'success' | 'info' | 'warning' | 'error';
/** Whether Alert can be closed */
closable?: boolean;
/** Close text to show */
closeText?: React.ReactNode;
/** Content of Alert */
message: React.ReactNode;
/** Additional content of Alert */
description?: React.ReactNode;
/** Callback when close Alert */
onClose?: React.MouseEventHandler<HTMLButtonElement>;
/** Trigger when animation ending of Alert */
afterClose?: () => void;
/** Whether to show icon */
showIcon?: boolean;
style?: React.CSSProperties;
prefixCls?: string;
className?: string;
banner?: boolean;
icon?: React.ReactNode;
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
onClick?: React.MouseEventHandler<HTMLDivElement>;
}
export interface AlertState {
closing: boolean;
closed: boolean;
}
export default class Alert extends React.Component<AlertProps, AlertState> {
static ErrorBoundary: typeof ErrorBoundary;
state: {
closing: boolean;
closed: boolean;
};
handleClose: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
animationEnd: () => void;
renderAlert: ({ getPrefixCls, direction }: ConfigConsumerProps) => JSX.Element | null;
render(): JSX.Element;
}

186
web/node_modules/antd/es/alert/index.js generated vendored Normal file
View File

@@ -0,0 +1,186 @@
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); }
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import CloseOutlined from '@ant-design/icons/CloseOutlined';
import CheckCircleOutlined from '@ant-design/icons/CheckCircleOutlined';
import ExclamationCircleOutlined from '@ant-design/icons/ExclamationCircleOutlined';
import InfoCircleOutlined from '@ant-design/icons/InfoCircleOutlined';
import CloseCircleOutlined from '@ant-design/icons/CloseCircleOutlined';
import CheckCircleFilled from '@ant-design/icons/CheckCircleFilled';
import ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';
import InfoCircleFilled from '@ant-design/icons/InfoCircleFilled';
import CloseCircleFilled from '@ant-design/icons/CloseCircleFilled';
import Animate from 'rc-animate';
import classNames from 'classnames';
import { ConfigConsumer } from '../config-provider';
import getDataOrAriaProps from '../_util/getDataOrAriaProps';
import ErrorBoundary from './ErrorBoundary';
function noop() {}
var iconMapFilled = {
success: CheckCircleFilled,
info: InfoCircleFilled,
error: CloseCircleFilled,
warning: ExclamationCircleFilled
};
var iconMapOutlined = {
success: CheckCircleOutlined,
info: InfoCircleOutlined,
error: CloseCircleOutlined,
warning: ExclamationCircleOutlined
};
var Alert = /*#__PURE__*/function (_React$Component) {
_inherits(Alert, _React$Component);
var _super = _createSuper(Alert);
function Alert() {
var _this;
_classCallCheck(this, Alert);
_this = _super.apply(this, arguments);
_this.state = {
closing: false,
closed: false
};
_this.handleClose = function (e) {
e.preventDefault();
var dom = ReactDOM.findDOMNode(_assertThisInitialized(_this));
dom.style.height = "".concat(dom.offsetHeight, "px"); // Magic code
// 重复一次后才能正确设置 height
dom.style.height = "".concat(dom.offsetHeight, "px");
_this.setState({
closing: true
});
(_this.props.onClose || noop)(e);
};
_this.animationEnd = function () {
_this.setState({
closing: false,
closed: true
});
(_this.props.afterClose || noop)();
};
_this.renderAlert = function (_ref) {
var _classNames;
var getPrefixCls = _ref.getPrefixCls,
direction = _ref.direction;
var _this$props = _this.props,
description = _this$props.description,
customizePrefixCls = _this$props.prefixCls,
message = _this$props.message,
closeText = _this$props.closeText,
banner = _this$props.banner,
_this$props$className = _this$props.className,
className = _this$props$className === void 0 ? '' : _this$props$className,
style = _this$props.style,
icon = _this$props.icon,
onMouseEnter = _this$props.onMouseEnter,
onMouseLeave = _this$props.onMouseLeave,
onClick = _this$props.onClick;
var _this$props2 = _this.props,
closable = _this$props2.closable,
type = _this$props2.type,
showIcon = _this$props2.showIcon;
var _this$state = _this.state,
closing = _this$state.closing,
closed = _this$state.closed;
var prefixCls = getPrefixCls('alert', customizePrefixCls); // banner模式默认有 Icon
showIcon = banner && showIcon === undefined ? true : showIcon; // banner模式默认为警告
type = banner && type === undefined ? 'warning' : type || 'info'; // use outline icon in alert with description
var iconType = (description ? iconMapOutlined : iconMapFilled)[type] || null; // closeable when closeText is assigned
if (closeText) {
closable = true;
}
var alertCls = classNames(prefixCls, "".concat(prefixCls, "-").concat(type), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-closing"), closing), _defineProperty(_classNames, "".concat(prefixCls, "-with-description"), !!description), _defineProperty(_classNames, "".concat(prefixCls, "-no-icon"), !showIcon), _defineProperty(_classNames, "".concat(prefixCls, "-banner"), !!banner), _defineProperty(_classNames, "".concat(prefixCls, "-closable"), closable), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
var closeIcon = closable ? /*#__PURE__*/React.createElement("button", {
type: "button",
onClick: _this.handleClose,
className: "".concat(prefixCls, "-close-icon"),
tabIndex: 0
}, closeText ? /*#__PURE__*/React.createElement("span", {
className: "".concat(prefixCls, "-close-text")
}, closeText) : /*#__PURE__*/React.createElement(CloseOutlined, null)) : null;
var dataOrAriaProps = getDataOrAriaProps(_this.props);
var iconNode = icon && (React.isValidElement(icon) ? React.cloneElement(icon, {
className: classNames("".concat(prefixCls, "-icon"), _defineProperty({}, icon.props.className, icon.props.className))
}) : /*#__PURE__*/React.createElement("span", {
className: "".concat(prefixCls, "-icon")
}, icon)) || React.createElement(iconType, {
className: "".concat(prefixCls, "-icon")
});
return closed ? null : /*#__PURE__*/React.createElement(Animate, {
component: "",
showProp: "data-show",
transitionName: "".concat(prefixCls, "-slide-up"),
onEnd: _this.animationEnd
}, /*#__PURE__*/React.createElement("div", _extends({
"data-show": !closing,
className: alertCls,
style: style,
onMouseEnter: onMouseEnter,
onMouseLeave: onMouseLeave,
onClick: onClick
}, dataOrAriaProps), showIcon ? iconNode : null, /*#__PURE__*/React.createElement("span", {
className: "".concat(prefixCls, "-message")
}, message), /*#__PURE__*/React.createElement("span", {
className: "".concat(prefixCls, "-description")
}, description), closeIcon));
};
return _this;
}
_createClass(Alert, [{
key: "render",
value: function render() {
return /*#__PURE__*/React.createElement(ConfigConsumer, null, this.renderAlert);
}
}]);
return Alert;
}(React.Component);
export { Alert as default };
Alert.ErrorBoundary = ErrorBoundary;

2
web/node_modules/antd/es/alert/style/css.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
import '../../style/index.css';
import './index.css';

248
web/node_modules/antd/es/alert/style/index.css generated vendored Normal file
View File

@@ -0,0 +1,248 @@
/* 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-alert {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.65);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
-webkit-font-feature-settings: 'tnum';
font-feature-settings: 'tnum';
position: relative;
padding: 8px 15px 8px 37px;
word-wrap: break-word;
border-radius: 2px;
}
.ant-alert.ant-alert-no-icon {
padding: 8px 15px;
}
.ant-alert.ant-alert-closable {
padding-right: 30px;
}
.ant-alert-icon {
position: absolute;
top: 12.0005px;
left: 16px;
}
.ant-alert-description {
display: none;
font-size: 14px;
line-height: 22px;
}
.ant-alert-success {
background-color: #f6ffed;
border: 1px solid #b7eb8f;
}
.ant-alert-success .ant-alert-icon {
color: #52c41a;
}
.ant-alert-info {
background-color: #e6f7ff;
border: 1px solid #91d5ff;
}
.ant-alert-info .ant-alert-icon {
color: #1890ff;
}
.ant-alert-warning {
background-color: #fffbe6;
border: 1px solid #ffe58f;
}
.ant-alert-warning .ant-alert-icon {
color: #faad14;
}
.ant-alert-error {
background-color: #fff2f0;
border: 1px solid #ffccc7;
}
.ant-alert-error .ant-alert-icon {
color: #ff4d4f;
}
.ant-alert-error .ant-alert-description > pre {
margin: 0;
padding: 0;
}
.ant-alert-close-icon {
position: absolute;
top: 8px;
right: 16px;
padding: 0;
overflow: hidden;
font-size: 12px;
line-height: 22px;
background-color: transparent;
border: none;
outline: none;
cursor: pointer;
}
.ant-alert-close-icon .anticon-close {
color: rgba(0, 0, 0, 0.45);
-webkit-transition: color 0.3s;
transition: color 0.3s;
}
.ant-alert-close-icon .anticon-close:hover {
color: rgba(0, 0, 0, 0.75);
}
.ant-alert-close-text {
color: rgba(0, 0, 0, 0.45);
-webkit-transition: color 0.3s;
transition: color 0.3s;
}
.ant-alert-close-text:hover {
color: rgba(0, 0, 0, 0.75);
}
.ant-alert-with-description {
position: relative;
padding: 15px 15px 15px 64px;
color: rgba(0, 0, 0, 0.65);
line-height: 1.5715;
border-radius: 2px;
}
.ant-alert-with-description.ant-alert-no-icon {
padding: 15px 15px;
}
.ant-alert-with-description .ant-alert-icon {
position: absolute;
top: 16px;
left: 24px;
font-size: 24px;
}
.ant-alert-with-description .ant-alert-close-icon {
position: absolute;
top: 16px;
right: 16px;
font-size: 14px;
cursor: pointer;
}
.ant-alert-with-description .ant-alert-message {
display: block;
margin-bottom: 4px;
color: rgba(0, 0, 0, 0.85);
font-size: 16px;
}
.ant-alert-message {
color: rgba(0, 0, 0, 0.85);
}
.ant-alert-with-description .ant-alert-description {
display: block;
}
.ant-alert.ant-alert-closing {
height: 0 !important;
margin: 0;
padding-top: 0;
padding-bottom: 0;
-webkit-transform-origin: 50% 0;
transform-origin: 50% 0;
-webkit-transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
}
.ant-alert-slide-up-leave {
-webkit-animation: antAlertSlideUpOut 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
animation: antAlertSlideUpOut 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
.ant-alert-banner {
margin-bottom: 0;
border: 0;
border-radius: 0;
}
@-webkit-keyframes antAlertSlideUpIn {
0% {
-webkit-transform: scaleY(0);
transform: scaleY(0);
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
opacity: 0;
}
100% {
-webkit-transform: scaleY(1);
transform: scaleY(1);
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
opacity: 1;
}
}
@keyframes antAlertSlideUpIn {
0% {
-webkit-transform: scaleY(0);
transform: scaleY(0);
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
opacity: 0;
}
100% {
-webkit-transform: scaleY(1);
transform: scaleY(1);
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
opacity: 1;
}
}
@-webkit-keyframes antAlertSlideUpOut {
0% {
-webkit-transform: scaleY(1);
transform: scaleY(1);
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
opacity: 1;
}
100% {
-webkit-transform: scaleY(0);
transform: scaleY(0);
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
opacity: 0;
}
}
@keyframes antAlertSlideUpOut {
0% {
-webkit-transform: scaleY(1);
transform: scaleY(1);
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
opacity: 1;
}
100% {
-webkit-transform: scaleY(0);
transform: scaleY(0);
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
opacity: 0;
}
}
.ant-alert-rtl {
padding: 8px 37px 8px 15px;
direction: rtl;
}
.ant-alert-rtl.ant-alert.ant-alert-closable {
padding-right: 15px;
padding-left: 30px;
}
.ant-alert-rtl .ant-alert-icon {
right: 16px;
left: auto;
}
.ant-alert-rtl .ant-alert-close-icon {
right: auto;
left: 16px;
}
.ant-alert-rtl.ant-alert-with-description {
padding: 15px 64px 15px 15px;
}
.ant-alert-rtl.ant-alert-with-description.ant-alert-no-icon {
padding: 15px;
}
.ant-alert-rtl.ant-alert-with-description .ant-alert-icon {
right: 24px;
left: auto;
}
.ant-alert-rtl.ant-alert-with-description .ant-alert-close-icon {
right: auto;
left: 16px;
}

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

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

2
web/node_modules/antd/es/alert/style/index.js generated vendored Normal file
View File

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

191
web/node_modules/antd/es/alert/style/index.less generated vendored Normal file
View File

@@ -0,0 +1,191 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@alert-prefix-cls: ~'@{ant-prefix}-alert';
.@{alert-prefix-cls} {
.reset-component;
position: relative;
padding: 8px 15px 8px 37px;
word-wrap: break-word;
border-radius: @border-radius-base;
&&-no-icon {
padding: @alert-no-icon-padding-vertical 15px;
}
&&-closable {
padding-right: 30px;
}
&-icon {
position: absolute;
top: 8px + @font-size-base * @line-height-base / 2 - @font-size-base / 2;
left: 16px;
}
&-description {
display: none;
font-size: @font-size-base;
line-height: 22px;
}
&-success {
background-color: @alert-success-bg-color;
border: @border-width-base @border-style-base @alert-success-border-color;
.@{alert-prefix-cls}-icon {
color: @alert-success-icon-color;
}
}
&-info {
background-color: @alert-info-bg-color;
border: @border-width-base @border-style-base @alert-info-border-color;
.@{alert-prefix-cls}-icon {
color: @alert-info-icon-color;
}
}
&-warning {
background-color: @alert-warning-bg-color;
border: @border-width-base @border-style-base @alert-warning-border-color;
.@{alert-prefix-cls}-icon {
color: @alert-warning-icon-color;
}
}
&-error {
background-color: @alert-error-bg-color;
border: @border-width-base @border-style-base @alert-error-border-color;
.@{alert-prefix-cls}-icon {
color: @alert-error-icon-color;
}
.@{alert-prefix-cls}-description > pre {
margin: 0;
padding: 0;
}
}
&-close-icon {
position: absolute;
top: @padding-xs;
right: 16px;
padding: 0;
overflow: hidden;
font-size: @font-size-sm;
line-height: 22px;
background-color: transparent;
border: none;
outline: none;
cursor: pointer;
.@{iconfont-css-prefix}-close {
color: @alert-close-color;
transition: color 0.3s;
&:hover {
color: @alert-close-hover-color;
}
}
}
&-close-text {
color: @alert-close-color;
transition: color 0.3s;
&:hover {
color: @alert-close-hover-color;
}
}
&-with-description {
position: relative;
padding: 15px 15px 15px 64px;
color: @alert-text-color;
line-height: @line-height-base;
border-radius: @border-radius-base;
}
&-with-description&-no-icon {
padding: @alert-with-description-no-icon-padding-vertical 15px;
}
&-with-description &-icon {
position: absolute;
top: 16px;
left: 24px;
font-size: 24px;
}
&-with-description &-close-icon {
position: absolute;
top: 16px;
right: 16px;
font-size: @font-size-base;
cursor: pointer;
}
&-with-description &-message {
display: block;
margin-bottom: 4px;
color: @alert-message-color;
font-size: @font-size-lg;
}
&-message {
color: @alert-message-color;
}
&-with-description &-description {
display: block;
}
&&-closing {
height: 0 !important;
margin: 0;
padding-top: 0;
padding-bottom: 0;
transform-origin: 50% 0;
transition: all 0.3s @ease-in-out-circ;
}
&-slide-up-leave {
animation: antAlertSlideUpOut 0.3s @ease-in-out-circ;
animation-fill-mode: both;
}
&-banner {
margin-bottom: 0;
border: 0;
border-radius: 0;
}
}
@keyframes antAlertSlideUpIn {
0% {
transform: scaleY(0);
transform-origin: 0% 0%;
opacity: 0;
}
100% {
transform: scaleY(1);
transform-origin: 0% 0%;
opacity: 1;
}
}
@keyframes antAlertSlideUpOut {
0% {
transform: scaleY(1);
transform-origin: 0% 0%;
opacity: 1;
}
100% {
transform: scaleY(0);
transform-origin: 0% 0%;
opacity: 0;
}
}
@import './rtl.less';

58
web/node_modules/antd/es/alert/style/rtl.less generated vendored Normal file
View File

@@ -0,0 +1,58 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@alert-prefix-cls: ~'@{ant-prefix}-alert';
.@{alert-prefix-cls} {
&-rtl {
padding: 8px 37px 8px 15px;
direction: rtl;
}
&&-closable {
.@{alert-prefix-cls}-rtl& {
padding-right: 15px;
padding-left: 30px;
}
}
&-icon {
.@{alert-prefix-cls}-rtl & {
right: 16px;
left: auto;
}
}
&-close-icon {
.@{alert-prefix-cls}-rtl & {
right: auto;
left: 16px;
}
}
&-with-description {
.@{alert-prefix-cls}-rtl& {
padding: 15px 64px 15px 15px;
}
}
&-with-description&-no-icon {
.@{alert-prefix-cls}-rtl& {
padding: 15px;
}
}
&-with-description &-icon {
.@{alert-prefix-cls}-rtl& {
right: 24px;
left: auto;
}
}
&-with-description &-close-icon {
.@{alert-prefix-cls}-rtl& {
right: auto;
left: 16px;
}
}
}