Latest updates from IceHrmPro
This commit is contained in:
39
web/node_modules/antd/lib/drawer/index.d.ts
generated
vendored
Normal file
39
web/node_modules/antd/lib/drawer/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
import * as React from 'react';
|
||||
declare type EventType = React.KeyboardEvent<HTMLDivElement> | React.MouseEvent<HTMLDivElement | HTMLButtonElement>;
|
||||
declare type getContainerFunc = () => HTMLElement;
|
||||
declare const PlacementTypes: ["top", "right", "bottom", "left"];
|
||||
declare type placementType = typeof PlacementTypes[number];
|
||||
export interface DrawerProps {
|
||||
closable?: boolean;
|
||||
destroyOnClose?: boolean;
|
||||
forceRender?: boolean;
|
||||
getContainer?: string | HTMLElement | getContainerFunc | false;
|
||||
maskClosable?: boolean;
|
||||
mask?: boolean;
|
||||
maskStyle?: React.CSSProperties;
|
||||
style?: React.CSSProperties;
|
||||
/** wrapper dom node style of header and body */
|
||||
drawerStyle?: React.CSSProperties;
|
||||
headerStyle?: React.CSSProperties;
|
||||
bodyStyle?: React.CSSProperties;
|
||||
title?: React.ReactNode;
|
||||
visible?: boolean;
|
||||
width?: number | string;
|
||||
height?: number | string;
|
||||
zIndex?: number;
|
||||
prefixCls?: string;
|
||||
push?: boolean;
|
||||
placement?: placementType;
|
||||
onClose?: (e: EventType) => void;
|
||||
afterVisibleChange?: (visible: boolean) => void;
|
||||
className?: string;
|
||||
handler?: React.ReactNode;
|
||||
keyboard?: boolean;
|
||||
footer?: React.ReactNode;
|
||||
footerStyle?: React.CSSProperties;
|
||||
}
|
||||
export interface IDrawerState {
|
||||
push?: boolean;
|
||||
}
|
||||
declare const _default: React.FC<DrawerProps>;
|
||||
export default _default;
|
||||
329
web/node_modules/antd/lib/drawer/index.js
generated
vendored
Normal file
329
web/node_modules/antd/lib/drawer/index.js
generated
vendored
Normal file
@@ -0,0 +1,329 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
|
||||
var _rcDrawer = _interopRequireDefault(require("rc-drawer"));
|
||||
|
||||
var _getScrollBarSize = _interopRequireDefault(require("rc-util/lib/getScrollBarSize"));
|
||||
|
||||
var _CloseOutlined = _interopRequireDefault(require("@ant-design/icons/CloseOutlined"));
|
||||
|
||||
var _classnames = _interopRequireDefault(require("classnames"));
|
||||
|
||||
var _omit = _interopRequireDefault(require("omit.js"));
|
||||
|
||||
var _context = require("../config-provider/context");
|
||||
|
||||
var _type = require("../_util/type");
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
var DrawerContext = React.createContext(null);
|
||||
var PlacementTypes = (0, _type.tuple)('top', 'right', 'bottom', 'left');
|
||||
|
||||
var Drawer = /*#__PURE__*/function (_React$Component) {
|
||||
_inherits(Drawer, _React$Component);
|
||||
|
||||
var _super = _createSuper(Drawer);
|
||||
|
||||
function Drawer() {
|
||||
var _this;
|
||||
|
||||
_classCallCheck(this, Drawer);
|
||||
|
||||
_this = _super.apply(this, arguments);
|
||||
_this.state = {
|
||||
push: false
|
||||
};
|
||||
|
||||
_this.push = function () {
|
||||
_this.setState({
|
||||
push: true
|
||||
});
|
||||
};
|
||||
|
||||
_this.pull = function () {
|
||||
_this.setState({
|
||||
push: false
|
||||
});
|
||||
};
|
||||
|
||||
_this.onDestroyTransitionEnd = function () {
|
||||
var isDestroyOnClose = _this.getDestroyOnClose();
|
||||
|
||||
if (!isDestroyOnClose) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_this.props.visible) {
|
||||
_this.destroyClose = true;
|
||||
|
||||
_this.forceUpdate();
|
||||
}
|
||||
};
|
||||
|
||||
_this.getDestroyOnClose = function () {
|
||||
return _this.props.destroyOnClose && !_this.props.visible;
|
||||
}; // get drawer push width or height
|
||||
|
||||
|
||||
_this.getPushTransform = function (placement) {
|
||||
if (placement === 'left' || placement === 'right') {
|
||||
return "translateX(".concat(placement === 'left' ? 180 : -180, "px)");
|
||||
}
|
||||
|
||||
if (placement === 'top' || placement === 'bottom') {
|
||||
return "translateY(".concat(placement === 'top' ? 180 : -180, "px)");
|
||||
}
|
||||
};
|
||||
|
||||
_this.getRcDrawerStyle = function () {
|
||||
var _this$props = _this.props,
|
||||
zIndex = _this$props.zIndex,
|
||||
placement = _this$props.placement,
|
||||
style = _this$props.style;
|
||||
var push = _this.state.push;
|
||||
return _extends({
|
||||
zIndex: zIndex,
|
||||
transform: push ? _this.getPushTransform(placement) : undefined
|
||||
}, style);
|
||||
}; // render drawer body dom
|
||||
|
||||
|
||||
_this.renderBody = function () {
|
||||
var _this$props2 = _this.props,
|
||||
bodyStyle = _this$props2.bodyStyle,
|
||||
drawerStyle = _this$props2.drawerStyle,
|
||||
prefixCls = _this$props2.prefixCls,
|
||||
visible = _this$props2.visible;
|
||||
|
||||
if (_this.destroyClose && !visible) {
|
||||
return null;
|
||||
}
|
||||
|
||||
_this.destroyClose = false;
|
||||
var containerStyle = {};
|
||||
|
||||
var isDestroyOnClose = _this.getDestroyOnClose();
|
||||
|
||||
if (isDestroyOnClose) {
|
||||
// Increase the opacity transition, delete children after closing.
|
||||
containerStyle.opacity = 0;
|
||||
containerStyle.transition = 'opacity .3s';
|
||||
}
|
||||
|
||||
return /*#__PURE__*/React.createElement("div", {
|
||||
className: "".concat(prefixCls, "-wrapper-body"),
|
||||
style: _extends(_extends({}, containerStyle), drawerStyle),
|
||||
onTransitionEnd: _this.onDestroyTransitionEnd
|
||||
}, _this.renderHeader(), /*#__PURE__*/React.createElement("div", {
|
||||
className: "".concat(prefixCls, "-body"),
|
||||
style: bodyStyle
|
||||
}, _this.props.children), _this.renderFooter());
|
||||
}; // render Provider for Multi-level drawer
|
||||
|
||||
|
||||
_this.renderProvider = function (value) {
|
||||
var _a = _this.props,
|
||||
prefixCls = _a.prefixCls,
|
||||
placement = _a.placement,
|
||||
className = _a.className,
|
||||
width = _a.width,
|
||||
height = _a.height,
|
||||
mask = _a.mask,
|
||||
direction = _a.direction,
|
||||
rest = __rest(_a, ["prefixCls", "placement", "className", "width", "height", "mask", "direction"]);
|
||||
|
||||
var haveMask = mask ? '' : 'no-mask';
|
||||
_this.parentDrawer = value;
|
||||
var offsetStyle = {};
|
||||
|
||||
if (placement === 'left' || placement === 'right') {
|
||||
offsetStyle.width = width;
|
||||
} else {
|
||||
offsetStyle.height = height;
|
||||
}
|
||||
|
||||
var drawerClassName = (0, _classnames["default"])(className, haveMask, _defineProperty({}, "".concat(prefixCls, "-rtl"), direction === 'rtl'));
|
||||
return /*#__PURE__*/React.createElement(DrawerContext.Provider, {
|
||||
value: _assertThisInitialized(_this)
|
||||
}, /*#__PURE__*/React.createElement(_rcDrawer["default"], _extends({
|
||||
handler: false
|
||||
}, (0, _omit["default"])(rest, ['zIndex', 'style', 'closable', 'destroyOnClose', 'drawerStyle', 'headerStyle', 'bodyStyle', 'footerStyle', 'footer', 'locale', 'title', 'push', 'visible', 'getPopupContainer', 'rootPrefixCls', 'getPrefixCls', 'renderEmpty', 'csp', 'pageHeader', 'autoInsertSpaceInButton']), offsetStyle, {
|
||||
prefixCls: prefixCls,
|
||||
open: _this.props.visible,
|
||||
showMask: mask,
|
||||
placement: placement,
|
||||
style: _this.getRcDrawerStyle(),
|
||||
className: drawerClassName
|
||||
}), _this.renderBody()));
|
||||
};
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass(Drawer, [{
|
||||
key: "componentDidMount",
|
||||
value: function componentDidMount() {
|
||||
// fix: delete drawer in child and re-render, no push started.
|
||||
// <Drawer>{show && <Drawer />}</Drawer>
|
||||
var visible = this.props.visible;
|
||||
|
||||
if (visible && this.parentDrawer) {
|
||||
this.parentDrawer.push();
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "componentDidUpdate",
|
||||
value: function componentDidUpdate(preProps) {
|
||||
var visible = this.props.visible;
|
||||
|
||||
if (preProps.visible !== visible && this.parentDrawer) {
|
||||
if (visible) {
|
||||
this.parentDrawer.push();
|
||||
} else {
|
||||
this.parentDrawer.pull();
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "componentWillUnmount",
|
||||
value: function componentWillUnmount() {
|
||||
// unmount drawer in child, clear push.
|
||||
if (this.parentDrawer) {
|
||||
this.parentDrawer.pull();
|
||||
this.parentDrawer = null;
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "renderHeader",
|
||||
value: function renderHeader() {
|
||||
var _this$props3 = this.props,
|
||||
title = _this$props3.title,
|
||||
prefixCls = _this$props3.prefixCls,
|
||||
closable = _this$props3.closable,
|
||||
headerStyle = _this$props3.headerStyle;
|
||||
|
||||
if (!title && !closable) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var headerClassName = title ? "".concat(prefixCls, "-header") : "".concat(prefixCls, "-header-no-title");
|
||||
return /*#__PURE__*/React.createElement("div", {
|
||||
className: headerClassName,
|
||||
style: headerStyle
|
||||
}, title && /*#__PURE__*/React.createElement("div", {
|
||||
className: "".concat(prefixCls, "-title")
|
||||
}, title), closable && this.renderCloseIcon());
|
||||
}
|
||||
}, {
|
||||
key: "renderFooter",
|
||||
value: function renderFooter() {
|
||||
var _this$props4 = this.props,
|
||||
footer = _this$props4.footer,
|
||||
footerStyle = _this$props4.footerStyle,
|
||||
prefixCls = _this$props4.prefixCls;
|
||||
|
||||
if (!footer) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var footerClassName = "".concat(prefixCls, "-footer");
|
||||
return /*#__PURE__*/React.createElement("div", {
|
||||
className: footerClassName,
|
||||
style: footerStyle
|
||||
}, footer);
|
||||
}
|
||||
}, {
|
||||
key: "renderCloseIcon",
|
||||
value: function renderCloseIcon() {
|
||||
var _this$props5 = this.props,
|
||||
closable = _this$props5.closable,
|
||||
prefixCls = _this$props5.prefixCls,
|
||||
onClose = _this$props5.onClose;
|
||||
return closable &&
|
||||
/*#__PURE__*/
|
||||
// eslint-disable-next-line react/button-has-type
|
||||
React.createElement("button", {
|
||||
onClick: onClose,
|
||||
"aria-label": "Close",
|
||||
className: "".concat(prefixCls, "-close"),
|
||||
style: {
|
||||
'--scroll-bar': "".concat((0, _getScrollBarSize["default"])(), "px")
|
||||
}
|
||||
}, /*#__PURE__*/React.createElement(_CloseOutlined["default"], null));
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
return /*#__PURE__*/React.createElement(DrawerContext.Consumer, null, this.renderProvider);
|
||||
}
|
||||
}]);
|
||||
|
||||
return Drawer;
|
||||
}(React.Component);
|
||||
|
||||
Drawer.defaultProps = {
|
||||
width: 256,
|
||||
height: 256,
|
||||
closable: true,
|
||||
placement: 'right',
|
||||
maskClosable: true,
|
||||
mask: true,
|
||||
level: null,
|
||||
keyboard: true
|
||||
};
|
||||
|
||||
var _default = (0, _context.withConfigConsumer)({
|
||||
prefixCls: 'drawer'
|
||||
})(Drawer);
|
||||
|
||||
exports["default"] = _default;
|
||||
5
web/node_modules/antd/lib/drawer/style/css.js
generated
vendored
Normal file
5
web/node_modules/antd/lib/drawer/style/css.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
require("../../style/index.css");
|
||||
|
||||
require("./index.css");
|
||||
3
web/node_modules/antd/lib/drawer/style/customize.less
generated
vendored
Normal file
3
web/node_modules/antd/lib/drawer/style/customize.less
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
@import './index.less';
|
||||
|
||||
.popover-customize-bg(@drawer-prefix-cls, @popover-background);
|
||||
262
web/node_modules/antd/lib/drawer/style/drawer.less
generated
vendored
Normal file
262
web/node_modules/antd/lib/drawer/style/drawer.less
generated
vendored
Normal file
@@ -0,0 +1,262 @@
|
||||
@import '../../style/themes/index';
|
||||
|
||||
@drawer-prefix-cls: ~'@{ant-prefix}-drawer';
|
||||
@picker-prefix-cls: ~'@{ant-prefix}-picker';
|
||||
|
||||
|
||||
|
||||
.@{drawer-prefix-cls} {
|
||||
@drawer-header-close-padding: ceil((@drawer-header-close-size - @font-size-lg) / 2);
|
||||
|
||||
position: fixed;
|
||||
z-index: @zindex-modal;
|
||||
width: 0%;
|
||||
height: 100%;
|
||||
transition: transform @animation-duration-slow @ease-base-out,
|
||||
height 0s ease @animation-duration-slow, width 0s ease @animation-duration-slow;
|
||||
> * {
|
||||
transition: transform @animation-duration-slow @ease-base-out,
|
||||
box-shadow @animation-duration-slow @ease-base-out;
|
||||
}
|
||||
|
||||
&-content-wrapper {
|
||||
position: absolute;
|
||||
}
|
||||
.@{drawer-prefix-cls}-content {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&-left,
|
||||
&-right {
|
||||
top: 0;
|
||||
width: 0%;
|
||||
height: 100%;
|
||||
.@{drawer-prefix-cls}-content-wrapper {
|
||||
height: 100%;
|
||||
}
|
||||
&.@{drawer-prefix-cls}-open {
|
||||
width: 100%;
|
||||
transition: transform @animation-duration-slow @ease-base-out;
|
||||
}
|
||||
&.@{drawer-prefix-cls}-open.no-mask {
|
||||
width: 0%;
|
||||
}
|
||||
}
|
||||
|
||||
&-left {
|
||||
left: 0;
|
||||
|
||||
.@{drawer-prefix-cls} {
|
||||
&-content-wrapper {
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&.@{drawer-prefix-cls}-open {
|
||||
.@{drawer-prefix-cls}-content-wrapper {
|
||||
box-shadow: @shadow-1-right;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-right {
|
||||
right: 0;
|
||||
|
||||
.@{drawer-prefix-cls} {
|
||||
&-content-wrapper {
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
&.@{drawer-prefix-cls}-open {
|
||||
.@{drawer-prefix-cls}-content-wrapper {
|
||||
box-shadow: @shadow-1-left;
|
||||
}
|
||||
// https://github.com/ant-design/ant-design/issues/18607, Avoid edge alignment bug.
|
||||
&.no-mask {
|
||||
right: 1px;
|
||||
transform: translateX(1px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-top,
|
||||
&-bottom {
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 0%;
|
||||
|
||||
.@{drawer-prefix-cls}-content-wrapper {
|
||||
width: 100%;
|
||||
}
|
||||
&.@{drawer-prefix-cls}-open {
|
||||
height: 100%;
|
||||
transition: transform @animation-duration-slow @ease-base-out;
|
||||
}
|
||||
&.@{drawer-prefix-cls}-open.no-mask {
|
||||
height: 0%;
|
||||
}
|
||||
}
|
||||
|
||||
&-top {
|
||||
top: 0;
|
||||
|
||||
&.@{drawer-prefix-cls}-open {
|
||||
.@{drawer-prefix-cls}-content-wrapper {
|
||||
box-shadow: @shadow-1-down;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-bottom {
|
||||
bottom: 0;
|
||||
|
||||
.@{drawer-prefix-cls} {
|
||||
&-content-wrapper {
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
&.@{drawer-prefix-cls}-open {
|
||||
.@{drawer-prefix-cls}-content-wrapper {
|
||||
box-shadow: @shadow-1-up;
|
||||
}
|
||||
&.no-mask {
|
||||
bottom: 1px;
|
||||
transform: translateY(1px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.@{drawer-prefix-cls}-open {
|
||||
.@{drawer-prefix-cls} {
|
||||
&-mask {
|
||||
height: 100%;
|
||||
opacity: 1;
|
||||
transition: none;
|
||||
animation: antdDrawerFadeIn @animation-duration-slow @ease-base-out;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-title {
|
||||
margin: 0;
|
||||
color: @heading-color;
|
||||
font-weight: 500;
|
||||
font-size: @font-size-lg;
|
||||
line-height: 22px;
|
||||
}
|
||||
|
||||
&-content {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
overflow: auto;
|
||||
background-color: @drawer-bg;
|
||||
background-clip: padding-box;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
&-close {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: @zindex-popup-close;
|
||||
display: block;
|
||||
padding: @drawer-header-close-padding;
|
||||
color: @text-color-secondary;
|
||||
font-weight: 700;
|
||||
font-size: @font-size-lg;
|
||||
font-style: normal;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
text-transform: none;
|
||||
text-decoration: none;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
cursor: pointer;
|
||||
transition: color @animation-duration-slow;
|
||||
text-rendering: auto;
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
color: @icon-color-hover;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.@{drawer-prefix-cls}-header-no-title & {
|
||||
margin-right: var(--scroll-bar);
|
||||
/* stylelint-disable-next-line function-calc-no-invalid */
|
||||
padding-right: calc(@drawer-header-close-padding - var(--scroll-bar));
|
||||
}
|
||||
}
|
||||
|
||||
&-header {
|
||||
position: relative;
|
||||
padding: @drawer-header-padding;
|
||||
color: @text-color;
|
||||
background: @drawer-bg;
|
||||
border-bottom: @border-width-base @border-style-base @border-color-split;
|
||||
border-radius: @border-radius-base @border-radius-base 0 0;
|
||||
}
|
||||
|
||||
&-header-no-title {
|
||||
color: @text-color;
|
||||
background: @drawer-bg;
|
||||
}
|
||||
|
||||
&-wrapper-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: nowrap;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&-body {
|
||||
flex-grow: 1;
|
||||
padding: @drawer-body-padding;
|
||||
overflow: auto;
|
||||
font-size: @font-size-base;
|
||||
line-height: @line-height-base;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
&-footer {
|
||||
flex-shrink: 0;
|
||||
padding: @drawer-footer-padding-vertical @drawer-footer-padding-vertical;
|
||||
border-top: @border-width-base @border-style-base @border-color-split;
|
||||
}
|
||||
|
||||
&-mask {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 0;
|
||||
background-color: @modal-mask-bg;
|
||||
opacity: 0;
|
||||
filter: ~'alpha(opacity=45)';
|
||||
transition: opacity @animation-duration-slow linear, height 0s ease @animation-duration-slow;
|
||||
}
|
||||
&-open {
|
||||
&-content {
|
||||
box-shadow: @shadow-2;
|
||||
}
|
||||
}
|
||||
|
||||
// =================== Hook Components ===================
|
||||
.@{picker-prefix-cls} {
|
||||
&-clear {
|
||||
background: @popover-background;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes antdDrawerFadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
257
web/node_modules/antd/lib/drawer/style/index.css
generated
vendored
Normal file
257
web/node_modules/antd/lib/drawer/style/index.css
generated
vendored
Normal file
@@ -0,0 +1,257 @@
|
||||
/* 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-drawer {
|
||||
position: fixed;
|
||||
z-index: 1000;
|
||||
width: 0%;
|
||||
height: 100%;
|
||||
-webkit-transition: height 0s ease 0.3s, width 0s ease 0.3s, -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
transition: height 0s ease 0.3s, width 0s ease 0.3s, -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), height 0s ease 0.3s, width 0s ease 0.3s;
|
||||
transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), height 0s ease 0.3s, width 0s ease 0.3s, -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
}
|
||||
.ant-drawer > * {
|
||||
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
}
|
||||
.ant-drawer-content-wrapper {
|
||||
position: absolute;
|
||||
}
|
||||
.ant-drawer .ant-drawer-content {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.ant-drawer-left,
|
||||
.ant-drawer-right {
|
||||
top: 0;
|
||||
width: 0%;
|
||||
height: 100%;
|
||||
}
|
||||
.ant-drawer-left .ant-drawer-content-wrapper,
|
||||
.ant-drawer-right .ant-drawer-content-wrapper {
|
||||
height: 100%;
|
||||
}
|
||||
.ant-drawer-left.ant-drawer-open,
|
||||
.ant-drawer-right.ant-drawer-open {
|
||||
width: 100%;
|
||||
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
}
|
||||
.ant-drawer-left.ant-drawer-open.no-mask,
|
||||
.ant-drawer-right.ant-drawer-open.no-mask {
|
||||
width: 0%;
|
||||
}
|
||||
.ant-drawer-left {
|
||||
left: 0;
|
||||
}
|
||||
.ant-drawer-left .ant-drawer-content-wrapper {
|
||||
left: 0;
|
||||
}
|
||||
.ant-drawer-left.ant-drawer-open .ant-drawer-content-wrapper {
|
||||
-webkit-box-shadow: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05), 12px 0 48px 16px rgba(0, 0, 0, 0.03);
|
||||
box-shadow: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05), 12px 0 48px 16px rgba(0, 0, 0, 0.03);
|
||||
}
|
||||
.ant-drawer-right {
|
||||
right: 0;
|
||||
}
|
||||
.ant-drawer-right .ant-drawer-content-wrapper {
|
||||
right: 0;
|
||||
}
|
||||
.ant-drawer-right.ant-drawer-open .ant-drawer-content-wrapper {
|
||||
-webkit-box-shadow: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05), -12px 0 48px 16px rgba(0, 0, 0, 0.03);
|
||||
box-shadow: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05), -12px 0 48px 16px rgba(0, 0, 0, 0.03);
|
||||
}
|
||||
.ant-drawer-right.ant-drawer-open.no-mask {
|
||||
right: 1px;
|
||||
-webkit-transform: translateX(1px);
|
||||
transform: translateX(1px);
|
||||
}
|
||||
.ant-drawer-top,
|
||||
.ant-drawer-bottom {
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 0%;
|
||||
}
|
||||
.ant-drawer-top .ant-drawer-content-wrapper,
|
||||
.ant-drawer-bottom .ant-drawer-content-wrapper {
|
||||
width: 100%;
|
||||
}
|
||||
.ant-drawer-top.ant-drawer-open,
|
||||
.ant-drawer-bottom.ant-drawer-open {
|
||||
height: 100%;
|
||||
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
}
|
||||
.ant-drawer-top.ant-drawer-open.no-mask,
|
||||
.ant-drawer-bottom.ant-drawer-open.no-mask {
|
||||
height: 0%;
|
||||
}
|
||||
.ant-drawer-top {
|
||||
top: 0;
|
||||
}
|
||||
.ant-drawer-top.ant-drawer-open .ant-drawer-content-wrapper {
|
||||
-webkit-box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05), 0 12px 48px 16px rgba(0, 0, 0, 0.03);
|
||||
box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05), 0 12px 48px 16px rgba(0, 0, 0, 0.03);
|
||||
}
|
||||
.ant-drawer-bottom {
|
||||
bottom: 0;
|
||||
}
|
||||
.ant-drawer-bottom .ant-drawer-content-wrapper {
|
||||
bottom: 0;
|
||||
}
|
||||
.ant-drawer-bottom.ant-drawer-open .ant-drawer-content-wrapper {
|
||||
-webkit-box-shadow: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05), 0 -12px 48px 16px rgba(0, 0, 0, 0.03);
|
||||
box-shadow: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05), 0 -12px 48px 16px rgba(0, 0, 0, 0.03);
|
||||
}
|
||||
.ant-drawer-bottom.ant-drawer-open.no-mask {
|
||||
bottom: 1px;
|
||||
-webkit-transform: translateY(1px);
|
||||
transform: translateY(1px);
|
||||
}
|
||||
.ant-drawer.ant-drawer-open .ant-drawer-mask {
|
||||
height: 100%;
|
||||
opacity: 1;
|
||||
-webkit-transition: none;
|
||||
transition: none;
|
||||
-webkit-animation: antdDrawerFadeIn 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
animation: antdDrawerFadeIn 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
||||
}
|
||||
.ant-drawer-title {
|
||||
margin: 0;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
line-height: 22px;
|
||||
}
|
||||
.ant-drawer-content {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
overflow: auto;
|
||||
background-color: #fff;
|
||||
background-clip: padding-box;
|
||||
border: 0;
|
||||
}
|
||||
.ant-drawer-close {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: 10;
|
||||
display: block;
|
||||
padding: 20px;
|
||||
color: rgba(0, 0, 0, 0.45);
|
||||
font-weight: 700;
|
||||
font-size: 16px;
|
||||
font-style: normal;
|
||||
line-height: 1;
|
||||
text-align: center;
|
||||
text-transform: none;
|
||||
text-decoration: none;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
cursor: pointer;
|
||||
-webkit-transition: color 0.3s;
|
||||
transition: color 0.3s;
|
||||
text-rendering: auto;
|
||||
}
|
||||
.ant-drawer-close:focus,
|
||||
.ant-drawer-close:hover {
|
||||
color: rgba(0, 0, 0, 0.75);
|
||||
text-decoration: none;
|
||||
}
|
||||
.ant-drawer-header-no-title .ant-drawer-close {
|
||||
margin-right: var(--scroll-bar);
|
||||
/* stylelint-disable-next-line function-calc-no-invalid */
|
||||
padding-right: calc(20px - var(--scroll-bar));
|
||||
}
|
||||
.ant-drawer-header {
|
||||
position: relative;
|
||||
padding: 16px 24px;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
border-radius: 2px 2px 0 0;
|
||||
}
|
||||
.ant-drawer-header-no-title {
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
background: #fff;
|
||||
}
|
||||
.ant-drawer-wrapper-body {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
-ms-flex-wrap: nowrap;
|
||||
flex-wrap: nowrap;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.ant-drawer-body {
|
||||
-webkit-box-flex: 1;
|
||||
-ms-flex-positive: 1;
|
||||
flex-grow: 1;
|
||||
padding: 24px;
|
||||
overflow: auto;
|
||||
font-size: 14px;
|
||||
line-height: 1.5715;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.ant-drawer-footer {
|
||||
-ms-flex-negative: 0;
|
||||
flex-shrink: 0;
|
||||
padding: 10px 10px;
|
||||
border-top: 1px solid #f0f0f0;
|
||||
}
|
||||
.ant-drawer-mask {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 0;
|
||||
background-color: rgba(0, 0, 0, 0.45);
|
||||
opacity: 0;
|
||||
filter: alpha(opacity=45);
|
||||
-webkit-transition: opacity 0.3s linear, height 0s ease 0.3s;
|
||||
transition: opacity 0.3s linear, height 0s ease 0.3s;
|
||||
}
|
||||
.ant-drawer-open-content {
|
||||
-webkit-box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
||||
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
.ant-drawer .ant-picker-clear {
|
||||
background: #fff;
|
||||
}
|
||||
@-webkit-keyframes antdDrawerFadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@keyframes antdDrawerFadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
.ant-drawer-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
.ant-drawer-rtl .ant-drawer-close {
|
||||
right: auto;
|
||||
left: 0;
|
||||
}
|
||||
2
web/node_modules/antd/lib/drawer/style/index.d.ts
generated
vendored
Normal file
2
web/node_modules/antd/lib/drawer/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import '../../style/index.less';
|
||||
import './index.less';
|
||||
5
web/node_modules/antd/lib/drawer/style/index.js
generated
vendored
Normal file
5
web/node_modules/antd/lib/drawer/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
require("../../style/index.less");
|
||||
|
||||
require("./index.less");
|
||||
5
web/node_modules/antd/lib/drawer/style/index.less
generated
vendored
Normal file
5
web/node_modules/antd/lib/drawer/style/index.less
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
@import './drawer';
|
||||
@import './customize';
|
||||
@import './rtl';
|
||||
16
web/node_modules/antd/lib/drawer/style/rtl.less
generated
vendored
Normal file
16
web/node_modules/antd/lib/drawer/style/rtl.less
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
@import '../../style/themes/index';
|
||||
|
||||
@drawer-prefix-cls: ~'@{ant-prefix}-drawer';
|
||||
|
||||
.@{drawer-prefix-cls} {
|
||||
&-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
&-close {
|
||||
.@{drawer-prefix-cls}-rtl & {
|
||||
right: auto;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user