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

9
web/node_modules/antd/lib/card/Grid.d.ts generated vendored Normal file
View File

@@ -0,0 +1,9 @@
import * as React from 'react';
export interface CardGridProps {
prefixCls?: string;
style?: React.CSSProperties;
className?: string;
hoverable?: boolean;
}
declare const Grid: React.FC<CardGridProps>;
export default Grid;

58
web/node_modules/antd/lib/card/Grid.js generated vendored Normal file
View File

@@ -0,0 +1,58 @@
"use strict";
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); }
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var React = _interopRequireWildcard(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _configProvider = require("../config-provider");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
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; }
var __rest = void 0 && (void 0).__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;
};
var Grid = function Grid(props) {
return /*#__PURE__*/React.createElement(_configProvider.ConfigConsumer, null, function (_ref) {
var getPrefixCls = _ref.getPrefixCls;
var customizePrefixCls = props.prefixCls,
className = props.className,
_props$hoverable = props.hoverable,
hoverable = _props$hoverable === void 0 ? true : _props$hoverable,
others = __rest(props, ["prefixCls", "className", "hoverable"]);
var prefixCls = getPrefixCls('card', customizePrefixCls);
var classString = (0, _classnames["default"])("".concat(prefixCls, "-grid"), className, _defineProperty({}, "".concat(prefixCls, "-grid-hoverable"), hoverable));
return /*#__PURE__*/React.createElement("div", _extends({}, others, {
className: classString
}));
});
};
var _default = Grid;
exports["default"] = _default;

11
web/node_modules/antd/lib/card/Meta.d.ts generated vendored Normal file
View File

@@ -0,0 +1,11 @@
import * as React from 'react';
export interface CardMetaProps {
prefixCls?: string;
style?: React.CSSProperties;
className?: string;
avatar?: React.ReactNode;
title?: React.ReactNode;
description?: React.ReactNode;
}
declare const Meta: React.FC<CardMetaProps>;
export default Meta;

69
web/node_modules/antd/lib/card/Meta.js generated vendored Normal file
View File

@@ -0,0 +1,69 @@
"use strict";
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); }
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var React = _interopRequireWildcard(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _configProvider = require("../config-provider");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
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); }
var __rest = void 0 && (void 0).__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;
};
var Meta = function Meta(props) {
return /*#__PURE__*/React.createElement(_configProvider.ConfigConsumer, null, function (_ref) {
var getPrefixCls = _ref.getPrefixCls;
var customizePrefixCls = props.prefixCls,
className = props.className,
avatar = props.avatar,
title = props.title,
description = props.description,
others = __rest(props, ["prefixCls", "className", "avatar", "title", "description"]);
var prefixCls = getPrefixCls('card', customizePrefixCls);
var classString = (0, _classnames["default"])("".concat(prefixCls, "-meta"), className);
var avatarDom = avatar ? /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-meta-avatar")
}, avatar) : null;
var titleDom = title ? /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-meta-title")
}, title) : null;
var descriptionDom = description ? /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-meta-description")
}, description) : null;
var MetaDetail = titleDom || descriptionDom ? /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-meta-detail")
}, titleDom, descriptionDom) : null;
return /*#__PURE__*/React.createElement("div", _extends({}, others, {
className: classString
}), avatarDom, MetaDetail);
});
};
var _default = Meta;
exports["default"] = _default;

47
web/node_modules/antd/lib/card/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,47 @@
import * as React from 'react';
import Grid from './Grid';
import Meta from './Meta';
import { TabsProps } from '../tabs';
import { ConfigConsumerProps } from '../config-provider';
import { Omit } from '../_util/type';
export { CardGridProps } from './Grid';
export { CardMetaProps } from './Meta';
export declare type CardType = 'inner';
export declare type CardSize = 'default' | 'small';
export interface CardTabListType {
key: string;
tab: React.ReactNode;
disabled?: boolean;
}
export interface CardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
prefixCls?: string;
title?: React.ReactNode;
extra?: React.ReactNode;
bordered?: boolean;
headStyle?: React.CSSProperties;
bodyStyle?: React.CSSProperties;
style?: React.CSSProperties;
loading?: boolean;
hoverable?: boolean;
children?: React.ReactNode;
id?: string;
className?: string;
size?: CardSize;
type?: CardType;
cover?: React.ReactNode;
actions?: React.ReactNode[];
tabList?: CardTabListType[];
tabBarExtraContent?: React.ReactNode | null;
onTabChange?: (key: string) => void;
activeTabKey?: string;
defaultActiveTabKey?: string;
tabProps?: TabsProps;
}
export default class Card extends React.Component<CardProps, {}> {
static Grid: typeof Grid;
static Meta: typeof Meta;
onTabChange: (key: string) => void;
isContainGrid(): undefined;
renderCard: ({ getPrefixCls, direction }: ConfigConsumerProps) => JSX.Element;
render(): JSX.Element;
}

276
web/node_modules/antd/lib/card/index.js generated vendored Normal file
View File

@@ -0,0 +1,276 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var React = _interopRequireWildcard(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _omit = _interopRequireDefault(require("omit.js"));
var _Grid = _interopRequireDefault(require("./Grid"));
var _Meta = _interopRequireDefault(require("./Meta"));
var _tabs = _interopRequireDefault(require("../tabs"));
var _row = _interopRequireDefault(require("../row"));
var _col = _interopRequireDefault(require("../col"));
var _configProvider = require("../config-provider");
var _SizeContext = _interopRequireDefault(require("../config-provider/SizeContext"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
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 _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 _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 _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 = void 0 && (void 0).__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;
};
function getAction(actions) {
var actionList = actions.map(function (action, index) {
return (
/*#__PURE__*/
// eslint-disable-next-line react/no-array-index-key
React.createElement("li", {
style: {
width: "".concat(100 / actions.length, "%")
},
key: "action-".concat(index)
}, /*#__PURE__*/React.createElement("span", null, action))
);
});
return actionList;
}
var Card = /*#__PURE__*/function (_React$Component) {
_inherits(Card, _React$Component);
var _super = _createSuper(Card);
function Card() {
var _this;
_classCallCheck(this, Card);
_this = _super.apply(this, arguments);
_this.onTabChange = function (key) {
if (_this.props.onTabChange) {
_this.props.onTabChange(key);
}
};
_this.renderCard = function (_ref) {
var _extends2;
var getPrefixCls = _ref.getPrefixCls,
direction = _ref.direction;
var _a = _this.props,
customizePrefixCls = _a.prefixCls,
className = _a.className,
extra = _a.extra,
_a$headStyle = _a.headStyle,
headStyle = _a$headStyle === void 0 ? {} : _a$headStyle,
_a$bodyStyle = _a.bodyStyle,
bodyStyle = _a$bodyStyle === void 0 ? {} : _a$bodyStyle,
title = _a.title,
loading = _a.loading,
_a$bordered = _a.bordered,
bordered = _a$bordered === void 0 ? true : _a$bordered,
customizeSize = _a.size,
type = _a.type,
cover = _a.cover,
actions = _a.actions,
tabList = _a.tabList,
children = _a.children,
activeTabKey = _a.activeTabKey,
defaultActiveTabKey = _a.defaultActiveTabKey,
tabBarExtraContent = _a.tabBarExtraContent,
hoverable = _a.hoverable,
_a$tabProps = _a.tabProps,
tabProps = _a$tabProps === void 0 ? {} : _a$tabProps,
others = __rest(_a, ["prefixCls", "className", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps"]);
var prefixCls = getPrefixCls('card', customizePrefixCls);
var loadingBlockStyle = bodyStyle.padding === 0 || bodyStyle.padding === '0px' ? {
padding: 24
} : undefined;
var loadingBlock = /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-loading-content"),
style: loadingBlockStyle
}, /*#__PURE__*/React.createElement(_row["default"], {
gutter: 8
}, /*#__PURE__*/React.createElement(_col["default"], {
span: 22
}, /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-loading-block")
}))), /*#__PURE__*/React.createElement(_row["default"], {
gutter: 8
}, /*#__PURE__*/React.createElement(_col["default"], {
span: 8
}, /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-loading-block")
})), /*#__PURE__*/React.createElement(_col["default"], {
span: 15
}, /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-loading-block")
}))), /*#__PURE__*/React.createElement(_row["default"], {
gutter: 8
}, /*#__PURE__*/React.createElement(_col["default"], {
span: 6
}, /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-loading-block")
})), /*#__PURE__*/React.createElement(_col["default"], {
span: 18
}, /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-loading-block")
}))), /*#__PURE__*/React.createElement(_row["default"], {
gutter: 8
}, /*#__PURE__*/React.createElement(_col["default"], {
span: 13
}, /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-loading-block")
})), /*#__PURE__*/React.createElement(_col["default"], {
span: 9
}, /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-loading-block")
}))), /*#__PURE__*/React.createElement(_row["default"], {
gutter: 8
}, /*#__PURE__*/React.createElement(_col["default"], {
span: 4
}, /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-loading-block")
})), /*#__PURE__*/React.createElement(_col["default"], {
span: 3
}, /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-loading-block")
})), /*#__PURE__*/React.createElement(_col["default"], {
span: 16
}, /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-loading-block")
}))));
var hasActiveTabKey = activeTabKey !== undefined;
var extraProps = _extends(_extends({}, tabProps), (_extends2 = {}, _defineProperty(_extends2, hasActiveTabKey ? 'activeKey' : 'defaultActiveKey', hasActiveTabKey ? activeTabKey : defaultActiveTabKey), _defineProperty(_extends2, "tabBarExtraContent", tabBarExtraContent), _extends2));
var head;
var tabs = tabList && tabList.length ? /*#__PURE__*/React.createElement(_tabs["default"], _extends({
size: "large"
}, extraProps, {
className: "".concat(prefixCls, "-head-tabs"),
onChange: _this.onTabChange
}), tabList.map(function (item) {
return /*#__PURE__*/React.createElement(_tabs["default"].TabPane, {
tab: item.tab,
disabled: item.disabled,
key: item.key
});
})) : null;
if (title || extra || tabs) {
head = /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-head"),
style: headStyle
}, /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-head-wrapper")
}, title && /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-head-title")
}, title), extra && /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-extra")
}, extra)), tabs);
}
var coverDom = cover ? /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-cover")
}, cover) : null;
var body = /*#__PURE__*/React.createElement("div", {
className: "".concat(prefixCls, "-body"),
style: bodyStyle
}, loading ? loadingBlock : children);
var actionDom = actions && actions.length ? /*#__PURE__*/React.createElement("ul", {
className: "".concat(prefixCls, "-actions")
}, getAction(actions)) : null;
var divProps = (0, _omit["default"])(others, ['onTabChange']);
return /*#__PURE__*/React.createElement(_SizeContext["default"].Consumer, null, function (size) {
var _classNames;
var mergedSize = customizeSize || size;
var classString = (0, _classnames["default"])(prefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-loading"), loading), _defineProperty(_classNames, "".concat(prefixCls, "-bordered"), bordered), _defineProperty(_classNames, "".concat(prefixCls, "-hoverable"), hoverable), _defineProperty(_classNames, "".concat(prefixCls, "-contain-grid"), _this.isContainGrid()), _defineProperty(_classNames, "".concat(prefixCls, "-contain-tabs"), tabList && tabList.length), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(mergedSize), mergedSize), _defineProperty(_classNames, "".concat(prefixCls, "-type-").concat(type), !!type), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames));
return /*#__PURE__*/React.createElement("div", _extends({}, divProps, {
className: classString
}), head, coverDom, body, actionDom);
});
};
return _this;
}
_createClass(Card, [{
key: "isContainGrid",
value: function isContainGrid() {
var containGrid;
React.Children.forEach(this.props.children, function (element) {
if (element && element.type && element.type === _Grid["default"]) {
containGrid = true;
}
});
return containGrid;
}
}, {
key: "render",
value: function render() {
return /*#__PURE__*/React.createElement(_configProvider.ConfigConsumer, null, this.renderCard);
}
}]);
return Card;
}(React.Component);
exports["default"] = Card;
Card.Grid = _Grid["default"];
Card.Meta = _Meta["default"];

11
web/node_modules/antd/lib/card/style/css.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
"use strict";
require("../../style/index.css");
require("./index.css");
require("../../tabs/style/css");
require("../../row/style/css");
require("../../col/style/css");

315
web/node_modules/antd/lib/card/style/index.css generated vendored Normal file
View File

@@ -0,0 +1,315 @@
/* 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-card {
-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;
background: #fff;
border-radius: 2px;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
.ant-card-rtl {
direction: rtl;
}
.ant-card-hoverable {
cursor: pointer;
}
.ant-card-hoverable:hover {
border-color: transparent;
-webkit-box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);
box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);
}
.ant-card-bordered {
border: 1px solid #f0f0f0;
}
.ant-card-head {
min-height: 48px;
margin-bottom: -1px;
padding: 0 24px;
color: rgba(0, 0, 0, 0.85);
font-weight: 500;
font-size: 16px;
background: transparent;
border-bottom: 1px solid #f0f0f0;
border-radius: 2px 2px 0 0;
}
.ant-card-head::before {
display: table;
content: '';
}
.ant-card-head::after {
display: table;
clear: both;
content: '';
}
.ant-card-head-wrapper {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.ant-card-head-title {
display: inline-block;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
padding: 16px 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.ant-card-head .ant-tabs {
clear: both;
margin-bottom: -17px;
color: rgba(0, 0, 0, 0.65);
font-weight: normal;
font-size: 14px;
}
.ant-card-head .ant-tabs-bar {
border-bottom: 1px solid #f0f0f0;
}
.ant-card-extra {
float: right;
margin-left: auto;
padding: 16px 0;
color: rgba(0, 0, 0, 0.65);
font-weight: normal;
font-size: 14px;
}
.ant-card-rtl .ant-card-extra {
margin-right: auto;
margin-left: 0;
}
.ant-card-body {
padding: 24px;
}
.ant-card-body::before {
display: table;
content: '';
}
.ant-card-body::after {
display: table;
clear: both;
content: '';
}
.ant-card-contain-grid:not(.ant-card-loading) .ant-card-body {
margin: -1px 0 0 -1px;
padding: 0;
}
.ant-card-grid {
float: left;
width: 33.33%;
padding: 24px;
border: 0;
border-radius: 0;
-webkit-box-shadow: 1px 0 0 0 #f0f0f0, 0 1px 0 0 #f0f0f0, 1px 1px 0 0 #f0f0f0, 1px 0 0 0 #f0f0f0 inset, 0 1px 0 0 #f0f0f0 inset;
box-shadow: 1px 0 0 0 #f0f0f0, 0 1px 0 0 #f0f0f0, 1px 1px 0 0 #f0f0f0, 1px 0 0 0 #f0f0f0 inset, 0 1px 0 0 #f0f0f0 inset;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
.ant-card-rtl .ant-card-grid {
float: right;
}
.ant-card-grid-hoverable:hover {
position: relative;
z-index: 1;
-webkit-box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);
box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);
}
.ant-card-contain-tabs > .ant-card-head .ant-card-head-title {
min-height: 32px;
padding-bottom: 0;
}
.ant-card-contain-tabs > .ant-card-head .ant-card-extra {
padding-bottom: 0;
}
.ant-card-cover {
margin-right: -1px;
margin-left: -1px;
}
.ant-card-cover > * {
display: block;
width: 100%;
}
.ant-card-cover img {
border-radius: 2px 2px 0 0;
}
.ant-card-actions {
margin: 0;
padding: 0;
list-style: none;
background: #fafafa;
border-top: 1px solid #f0f0f0;
}
.ant-card-actions::before {
display: table;
content: '';
}
.ant-card-actions::after {
display: table;
clear: both;
content: '';
}
.ant-card-actions > li {
float: left;
margin: 12px 0;
color: rgba(0, 0, 0, 0.45);
text-align: center;
}
.ant-card-rtl .ant-card-actions > li {
float: right;
}
.ant-card-actions > li > span {
position: relative;
display: block;
min-width: 32px;
font-size: 14px;
line-height: 22px;
cursor: pointer;
}
.ant-card-actions > li > span:hover {
color: #1890ff;
-webkit-transition: color 0.3s;
transition: color 0.3s;
}
.ant-card-actions > li > span a:not(.ant-btn),
.ant-card-actions > li > span > .anticon {
display: inline-block;
width: 100%;
color: rgba(0, 0, 0, 0.45);
line-height: 22px;
-webkit-transition: color 0.3s;
transition: color 0.3s;
}
.ant-card-actions > li > span a:not(.ant-btn):hover,
.ant-card-actions > li > span > .anticon:hover {
color: #1890ff;
}
.ant-card-actions > li > span > .anticon {
font-size: 16px;
line-height: 22px;
}
.ant-card-actions > li:not(:last-child) {
border-right: 1px solid #f0f0f0;
}
.ant-card-type-inner .ant-card-head {
padding: 0 24px;
background: #fafafa;
}
.ant-card-type-inner .ant-card-head-title {
padding: 12px 0;
font-size: 14px;
}
.ant-card-type-inner .ant-card-body {
padding: 16px 24px;
}
.ant-card-type-inner .ant-card-extra {
padding: 13.5px 0;
}
.ant-card-meta {
margin: -4px 0;
}
.ant-card-meta::before {
display: table;
content: '';
}
.ant-card-meta::after {
display: table;
clear: both;
content: '';
}
.ant-card-meta-avatar {
float: left;
padding-right: 16px;
}
.ant-card-rtl .ant-card-meta-avatar {
float: right;
padding-right: 0;
padding-left: 16px;
}
.ant-card-meta-detail {
overflow: hidden;
}
.ant-card-meta-detail > div:not(:last-child) {
margin-bottom: 8px;
}
.ant-card-meta-title {
overflow: hidden;
color: rgba(0, 0, 0, 0.85);
font-weight: 500;
font-size: 16px;
white-space: nowrap;
text-overflow: ellipsis;
}
.ant-card-meta-description {
color: rgba(0, 0, 0, 0.45);
}
.ant-card-loading {
overflow: hidden;
}
.ant-card-loading .ant-card-body {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.ant-card-loading-content p {
margin: 0;
}
.ant-card-loading-block {
height: 14px;
margin: 4px 0;
background: -webkit-gradient(linear, left top, right top, from(rgba(207, 216, 220, 0.2)), color-stop(rgba(207, 216, 220, 0.4)), to(rgba(207, 216, 220, 0.2)));
background: linear-gradient(90deg, rgba(207, 216, 220, 0.2), rgba(207, 216, 220, 0.4), rgba(207, 216, 220, 0.2));
background-size: 600% 600%;
border-radius: 2px;
-webkit-animation: card-loading 1.4s ease infinite;
animation: card-loading 1.4s ease infinite;
}
@-webkit-keyframes card-loading {
0%,
100% {
background-position: 0 50%;
}
50% {
background-position: 100% 50%;
}
}
@keyframes card-loading {
0%,
100% {
background-position: 0 50%;
}
50% {
background-position: 100% 50%;
}
}
.ant-card-small > .ant-card-head {
min-height: 36px;
padding: 0 12px;
font-size: 14px;
}
.ant-card-small > .ant-card-head > .ant-card-head-wrapper > .ant-card-head-title {
padding: 8px 0;
}
.ant-card-small > .ant-card-head > .ant-card-head-wrapper > .ant-card-extra {
padding: 8px 0;
font-size: 14px;
}
.ant-card-small > .ant-card-body {
padding: 12px;
}

5
web/node_modules/antd/lib/card/style/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
import '../../style/index.less';
import './index.less';
import '../../tabs/style';
import '../../row/style';
import '../../col/style';

11
web/node_modules/antd/lib/card/style/index.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
"use strict";
require("../../style/index.less");
require("./index.less");
require("../../tabs/style");
require("../../row/style");
require("../../col/style");

290
web/node_modules/antd/lib/card/style/index.less generated vendored Normal file
View File

@@ -0,0 +1,290 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';
@card-prefix-cls: ~'@{ant-prefix}-card';
@card-hoverable-hover-border: transparent;
@card-action-icon-size: 16px;
@gradient-min: fade(@card-skeleton-bg, 20%);
@gradient-max: fade(@card-skeleton-bg, 40%);
.@{card-prefix-cls} {
.reset-component;
position: relative;
background: @card-background;
border-radius: @card-radius;
transition: all 0.3s;
&-rtl {
direction: rtl;
}
&-hoverable {
cursor: pointer;
&:hover {
border-color: @card-hoverable-hover-border;
box-shadow: @card-shadow;
}
}
&-bordered {
border: @border-width-base @border-style-base @border-color-split;
}
&-head {
min-height: @card-head-height;
margin-bottom: -1px; // Fix card grid overflow bug: https://gw.alipayobjects.com/zos/rmsportal/XonYxBikwpgbqIQBeuhk.png
padding: 0 @card-padding-base;
color: @card-head-color;
font-weight: 500;
font-size: @card-head-font-size;
background: @card-head-background;
border-bottom: @border-width-base @border-style-base @border-color-split;
border-radius: @card-radius @card-radius 0 0;
.clearfix;
&-wrapper {
display: flex;
align-items: center;
}
&-title {
display: inline-block;
flex: 1;
padding: @card-head-padding 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.@{ant-prefix}-tabs {
clear: both;
margin-bottom: @card-head-tabs-margin-bottom;
color: @text-color;
font-weight: normal;
font-size: @font-size-base;
&-bar {
border-bottom: @border-width-base @border-style-base @border-color-split;
}
}
}
&-extra {
float: right;
// https://stackoverflow.com/a/22429853/3040605
margin-left: auto;
padding: @card-head-padding 0;
color: @text-color;
font-weight: normal;
font-size: @font-size-base;
.@{card-prefix-cls}-rtl & {
margin-right: auto;
margin-left: 0;
}
}
&-body {
padding: @card-padding-base;
.clearfix;
}
&-contain-grid:not(&-loading) &-body {
margin: -1px 0 0 -1px;
padding: 0;
}
&-grid {
float: left;
width: 33.33%;
padding: @card-padding-base;
border: 0;
border-radius: 0;
box-shadow: 1px 0 0 0 @border-color-split, 0 1px 0 0 @border-color-split,
1px 1px 0 0 @border-color-split, 1px 0 0 0 @border-color-split inset,
0 1px 0 0 @border-color-split inset;
transition: all 0.3s;
.@{card-prefix-cls}-rtl & {
float: right;
}
&-hoverable {
&:hover {
position: relative;
z-index: 1;
box-shadow: @card-shadow;
}
}
}
&-contain-tabs > &-head &-head-title {
min-height: @card-head-height - @card-head-padding;
padding-bottom: 0;
}
&-contain-tabs > &-head &-extra {
padding-bottom: 0;
}
&-cover {
margin-right: -1px;
margin-left: -1px;
> * {
display: block;
width: 100%;
}
img {
border-radius: @card-radius @card-radius 0 0;
}
}
&-actions {
margin: 0;
padding: 0;
list-style: none;
background: @card-actions-background;
border-top: @border-width-base @border-style-base @border-color-split;
.clearfix;
& > li {
float: left;
margin: @card-actions-li-margin;
color: @text-color-secondary;
text-align: center;
.@{card-prefix-cls}-rtl & {
float: right;
}
> span {
position: relative;
display: block;
min-width: 32px;
font-size: @font-size-base;
line-height: 22px;
cursor: pointer;
&:hover {
color: @primary-color;
transition: color 0.3s;
}
a:not(.@{ant-prefix}-btn),
> .anticon {
display: inline-block;
width: 100%;
color: @text-color-secondary;
line-height: 22px;
transition: color 0.3s;
&:hover {
color: @primary-color;
}
}
> .anticon {
font-size: @card-action-icon-size;
line-height: 22px;
}
}
&:not(:last-child) {
border-right: @border-width-base @border-style-base @border-color-split;
}
}
}
&-type-inner &-head {
padding: 0 @card-padding-base;
background: @background-color-light;
&-title {
padding: @card-inner-head-padding 0;
font-size: @font-size-base;
}
}
&-type-inner &-body {
padding: 16px @card-padding-base;
}
&-type-inner &-extra {
padding: @card-inner-head-padding + 1.5px 0;
}
&-meta {
margin: -4px 0;
.clearfix;
&-avatar {
float: left;
padding-right: 16px;
.@{card-prefix-cls}-rtl & {
float: right;
padding-right: 0;
padding-left: 16px;
}
}
&-detail {
overflow: hidden;
> div:not(:last-child) {
margin-bottom: @margin-xs;
}
}
&-title {
overflow: hidden;
color: @card-head-color;
font-weight: 500;
font-size: @font-size-lg;
white-space: nowrap;
text-overflow: ellipsis;
}
&-description {
color: @text-color-secondary;
}
}
&-loading {
overflow: hidden;
}
&-loading &-body {
user-select: none;
}
&-loading-content {
p {
margin: 0;
}
}
&-loading-block {
height: 14px;
margin: 4px 0;
background: linear-gradient(90deg, @gradient-min, @gradient-max, @gradient-min);
background-size: 600% 600%;
border-radius: @card-radius;
animation: card-loading 1.4s ease infinite;
}
}
@keyframes card-loading {
0%,
100% {
background-position: 0 50%;
}
50% {
background-position: 100% 50%;
}
}
@import './size';

22
web/node_modules/antd/lib/card/style/size.less generated vendored Normal file
View File

@@ -0,0 +1,22 @@
@import './index';
.@{card-prefix-cls}-small {
> .@{card-prefix-cls}-head {
min-height: @card-head-height-sm;
padding: 0 @card-padding-base-sm;
font-size: @card-head-font-size-sm;
> .@{card-prefix-cls}-head-wrapper {
> .@{card-prefix-cls}-head-title {
padding: @card-head-padding-sm 0;
}
> .@{card-prefix-cls}-extra {
padding: @card-head-padding-sm 0;
font-size: @card-head-font-size-sm;
}
}
}
> .@{card-prefix-cls}-body {
padding: @card-padding-base-sm;
}
}