Latest updates from IceHrmPro
This commit is contained in:
43
web/node_modules/antd/es/mentions/index.d.ts
generated
vendored
Normal file
43
web/node_modules/antd/es/mentions/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
import * as React from 'react';
|
||||
import RcMentions from 'rc-mentions';
|
||||
import { MentionsProps as RcMentionsProps } from 'rc-mentions/lib/Mentions';
|
||||
import { ConfigConsumerProps, RenderEmptyHandler } from '../config-provider';
|
||||
export declare type MentionPlacement = 'top' | 'bottom';
|
||||
export interface OptionProps {
|
||||
value: string;
|
||||
children: React.ReactNode;
|
||||
[key: string]: any;
|
||||
}
|
||||
export interface MentionProps extends RcMentionsProps {
|
||||
loading?: boolean;
|
||||
}
|
||||
export interface MentionState {
|
||||
focused: boolean;
|
||||
}
|
||||
interface MentionsConfig {
|
||||
prefix?: string | string[];
|
||||
split?: string;
|
||||
}
|
||||
interface MentionsEntity {
|
||||
prefix: string;
|
||||
value: string;
|
||||
}
|
||||
declare class Mentions extends React.Component<MentionProps, MentionState> {
|
||||
static Option: React.FunctionComponent<import("rc-mentions/lib/Option").OptionProps>;
|
||||
static getMentions: (value?: string, config?: MentionsConfig | undefined) => MentionsEntity[];
|
||||
state: {
|
||||
focused: boolean;
|
||||
};
|
||||
private rcMentions;
|
||||
onFocus: React.FocusEventHandler<HTMLTextAreaElement>;
|
||||
onBlur: React.FocusEventHandler<HTMLTextAreaElement>;
|
||||
getNotFoundContent(renderEmpty: RenderEmptyHandler): {} | null | undefined;
|
||||
getOptions: () => {} | null | undefined;
|
||||
getFilterOption: () => any;
|
||||
saveMentions: (node: typeof RcMentions) => void;
|
||||
focus(): void;
|
||||
blur(): void;
|
||||
renderMentions: ({ getPrefixCls, renderEmpty, direction }: ConfigConsumerProps) => JSX.Element;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
export default Mentions;
|
||||
229
web/node_modules/antd/es/mentions/index.js
generated
vendored
Normal file
229
web/node_modules/antd/es/mentions/index.js
generated
vendored
Normal file
@@ -0,0 +1,229 @@
|
||||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||||
|
||||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||
|
||||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
||||
|
||||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
||||
|
||||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
||||
|
||||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
||||
|
||||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
|
||||
|
||||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
||||
|
||||
var __rest = this && this.__rest || function (s, e) {
|
||||
var t = {};
|
||||
|
||||
for (var p in s) {
|
||||
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
}
|
||||
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
import classNames from 'classnames';
|
||||
import omit from 'omit.js';
|
||||
import * as React from 'react';
|
||||
import RcMentions from 'rc-mentions';
|
||||
import Spin from '../spin';
|
||||
import { ConfigConsumer } from '../config-provider';
|
||||
var Option = RcMentions.Option;
|
||||
|
||||
function loadingFilterOption() {
|
||||
return true;
|
||||
}
|
||||
|
||||
var Mentions = /*#__PURE__*/function (_React$Component) {
|
||||
_inherits(Mentions, _React$Component);
|
||||
|
||||
var _super = _createSuper(Mentions);
|
||||
|
||||
function Mentions() {
|
||||
var _this;
|
||||
|
||||
_classCallCheck(this, Mentions);
|
||||
|
||||
_this = _super.apply(this, arguments);
|
||||
_this.state = {
|
||||
focused: false
|
||||
};
|
||||
|
||||
_this.onFocus = function () {
|
||||
var onFocus = _this.props.onFocus;
|
||||
|
||||
if (onFocus) {
|
||||
onFocus.apply(void 0, arguments);
|
||||
}
|
||||
|
||||
_this.setState({
|
||||
focused: true
|
||||
});
|
||||
};
|
||||
|
||||
_this.onBlur = function () {
|
||||
var onBlur = _this.props.onBlur;
|
||||
|
||||
if (onBlur) {
|
||||
onBlur.apply(void 0, arguments);
|
||||
}
|
||||
|
||||
_this.setState({
|
||||
focused: false
|
||||
});
|
||||
};
|
||||
|
||||
_this.getOptions = function () {
|
||||
var _this$props = _this.props,
|
||||
children = _this$props.children,
|
||||
loading = _this$props.loading;
|
||||
|
||||
if (loading) {
|
||||
return /*#__PURE__*/React.createElement(Option, {
|
||||
value: "ANTD_SEARCHING",
|
||||
disabled: true
|
||||
}, /*#__PURE__*/React.createElement(Spin, {
|
||||
size: "small"
|
||||
}));
|
||||
}
|
||||
|
||||
return children;
|
||||
};
|
||||
|
||||
_this.getFilterOption = function () {
|
||||
var _this$props2 = _this.props,
|
||||
filterOption = _this$props2.filterOption,
|
||||
loading = _this$props2.loading;
|
||||
|
||||
if (loading) {
|
||||
return loadingFilterOption;
|
||||
}
|
||||
|
||||
return filterOption;
|
||||
};
|
||||
|
||||
_this.saveMentions = function (node) {
|
||||
_this.rcMentions = node;
|
||||
};
|
||||
|
||||
_this.renderMentions = function (_ref) {
|
||||
var _classNames;
|
||||
|
||||
var getPrefixCls = _ref.getPrefixCls,
|
||||
renderEmpty = _ref.renderEmpty,
|
||||
direction = _ref.direction;
|
||||
var focused = _this.state.focused;
|
||||
|
||||
var _a = _this.props,
|
||||
customizePrefixCls = _a.prefixCls,
|
||||
className = _a.className,
|
||||
disabled = _a.disabled,
|
||||
restProps = __rest(_a, ["prefixCls", "className", "disabled"]);
|
||||
|
||||
var prefixCls = getPrefixCls('mentions', customizePrefixCls);
|
||||
var mentionsProps = omit(restProps, ['loading']);
|
||||
var mergedClassName = classNames(className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls, "-focused"), focused), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames));
|
||||
return /*#__PURE__*/React.createElement(RcMentions, _extends({
|
||||
prefixCls: prefixCls,
|
||||
notFoundContent: _this.getNotFoundContent(renderEmpty),
|
||||
className: mergedClassName,
|
||||
disabled: disabled,
|
||||
direction: direction
|
||||
}, mentionsProps, {
|
||||
filterOption: _this.getFilterOption(),
|
||||
onFocus: _this.onFocus,
|
||||
onBlur: _this.onBlur,
|
||||
ref: _this.saveMentions
|
||||
}), _this.getOptions());
|
||||
};
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
_createClass(Mentions, [{
|
||||
key: "getNotFoundContent",
|
||||
value: function getNotFoundContent(renderEmpty) {
|
||||
var notFoundContent = this.props.notFoundContent;
|
||||
|
||||
if (notFoundContent !== undefined) {
|
||||
return notFoundContent;
|
||||
}
|
||||
|
||||
return renderEmpty('Select');
|
||||
}
|
||||
}, {
|
||||
key: "focus",
|
||||
value: function focus() {
|
||||
this.rcMentions.focus();
|
||||
}
|
||||
}, {
|
||||
key: "blur",
|
||||
value: function blur() {
|
||||
this.rcMentions.blur();
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
return /*#__PURE__*/React.createElement(ConfigConsumer, null, this.renderMentions);
|
||||
}
|
||||
}]);
|
||||
|
||||
return Mentions;
|
||||
}(React.Component);
|
||||
|
||||
Mentions.Option = Option;
|
||||
|
||||
Mentions.getMentions = function () {
|
||||
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
||||
var config = arguments.length > 1 ? arguments[1] : undefined;
|
||||
|
||||
var _ref2 = config || {},
|
||||
_ref2$prefix = _ref2.prefix,
|
||||
prefix = _ref2$prefix === void 0 ? '@' : _ref2$prefix,
|
||||
_ref2$split = _ref2.split,
|
||||
split = _ref2$split === void 0 ? ' ' : _ref2$split;
|
||||
|
||||
var prefixList = Array.isArray(prefix) ? prefix : [prefix];
|
||||
return value.split(split).map(function () {
|
||||
var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
||||
var hitPrefix = null;
|
||||
prefixList.some(function (prefixStr) {
|
||||
var startStr = str.slice(0, prefixStr.length);
|
||||
|
||||
if (startStr === prefixStr) {
|
||||
hitPrefix = prefixStr;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
if (hitPrefix !== null) {
|
||||
return {
|
||||
prefix: hitPrefix,
|
||||
value: str.slice(hitPrefix.length)
|
||||
};
|
||||
}
|
||||
|
||||
return null;
|
||||
}).filter(function (entity) {
|
||||
return !!entity && !!entity.value;
|
||||
});
|
||||
};
|
||||
|
||||
export default Mentions;
|
||||
4
web/node_modules/antd/es/mentions/style/css.js
generated
vendored
Normal file
4
web/node_modules/antd/es/mentions/style/css.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import './index.css'; // style dependencies
|
||||
|
||||
import '../../empty/style/css';
|
||||
import '../../spin/style/css';
|
||||
264
web/node_modules/antd/es/mentions/style/index.css
generated
vendored
Normal file
264
web/node_modules/antd/es/mentions/style/index.css
generated
vendored
Normal file
@@ -0,0 +1,264 @@
|
||||
/* 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-mentions {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
font-variant: tabular-nums;
|
||||
list-style: none;
|
||||
-webkit-font-feature-settings: 'tnum';
|
||||
font-feature-settings: 'tnum';
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
padding: 4px 11px;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
font-size: 14px;
|
||||
background-color: #fff;
|
||||
background-image: none;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-radius: 2px;
|
||||
-webkit-transition: all 0.3s;
|
||||
transition: all 0.3s;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
height: auto;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
line-height: 1.5715;
|
||||
white-space: pre-wrap;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
.ant-mentions::-moz-placeholder {
|
||||
opacity: 1;
|
||||
}
|
||||
.ant-mentions::-webkit-input-placeholder {
|
||||
color: #bfbfbf;
|
||||
}
|
||||
.ant-mentions:-ms-input-placeholder {
|
||||
color: #bfbfbf;
|
||||
}
|
||||
.ant-mentions::-ms-input-placeholder {
|
||||
color: #bfbfbf;
|
||||
}
|
||||
.ant-mentions::placeholder {
|
||||
color: #bfbfbf;
|
||||
}
|
||||
.ant-mentions:placeholder-shown {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.ant-mentions:hover {
|
||||
border-color: #40a9ff;
|
||||
border-right-width: 1px !important;
|
||||
}
|
||||
.ant-mentions:focus,
|
||||
.ant-mentions-focused {
|
||||
border-color: #40a9ff;
|
||||
border-right-width: 1px !important;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
||||
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
||||
}
|
||||
.ant-mentions-disabled {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
background-color: #f5f5f5;
|
||||
cursor: not-allowed;
|
||||
opacity: 1;
|
||||
}
|
||||
.ant-mentions-disabled:hover {
|
||||
border-color: #d9d9d9;
|
||||
border-right-width: 1px !important;
|
||||
}
|
||||
.ant-mentions[disabled] {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
background-color: #f5f5f5;
|
||||
cursor: not-allowed;
|
||||
opacity: 1;
|
||||
}
|
||||
.ant-mentions[disabled]:hover {
|
||||
border-color: #d9d9d9;
|
||||
border-right-width: 1px !important;
|
||||
}
|
||||
textarea.ant-mentions {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
min-height: 32px;
|
||||
line-height: 1.5715;
|
||||
vertical-align: bottom;
|
||||
-webkit-transition: all 0.3s, height 0s;
|
||||
transition: all 0.3s, height 0s;
|
||||
}
|
||||
.ant-mentions-lg {
|
||||
padding: 6.5px 11px;
|
||||
font-size: 16px;
|
||||
}
|
||||
.ant-mentions-sm {
|
||||
padding: 0px 7px;
|
||||
}
|
||||
.ant-mentions-disabled > textarea {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
background-color: #f5f5f5;
|
||||
cursor: not-allowed;
|
||||
opacity: 1;
|
||||
}
|
||||
.ant-mentions-disabled > textarea:hover {
|
||||
border-color: #d9d9d9;
|
||||
border-right-width: 1px !important;
|
||||
}
|
||||
.ant-mentions-focused {
|
||||
border-color: #40a9ff;
|
||||
border-right-width: 1px !important;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
||||
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
||||
}
|
||||
.ant-mentions > textarea,
|
||||
.ant-mentions-measure {
|
||||
min-height: 30px;
|
||||
margin: 0;
|
||||
padding: 4px 11px;
|
||||
overflow: inherit;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
font-weight: inherit;
|
||||
font-size: inherit;
|
||||
font-family: inherit;
|
||||
font-style: inherit;
|
||||
font-variant: inherit;
|
||||
font-size-adjust: inherit;
|
||||
font-stretch: inherit;
|
||||
line-height: inherit;
|
||||
direction: inherit;
|
||||
letter-spacing: inherit;
|
||||
white-space: inherit;
|
||||
text-align: inherit;
|
||||
vertical-align: top;
|
||||
word-wrap: break-word;
|
||||
word-break: inherit;
|
||||
-moz-tab-size: inherit;
|
||||
-o-tab-size: inherit;
|
||||
tab-size: inherit;
|
||||
}
|
||||
.ant-mentions > textarea {
|
||||
width: 100%;
|
||||
border: none;
|
||||
outline: none;
|
||||
resize: none;
|
||||
}
|
||||
.ant-mentions > textarea::-moz-placeholder {
|
||||
opacity: 1;
|
||||
}
|
||||
.ant-mentions > textarea::-webkit-input-placeholder {
|
||||
color: #bfbfbf;
|
||||
}
|
||||
.ant-mentions > textarea:-ms-input-placeholder {
|
||||
color: #bfbfbf;
|
||||
}
|
||||
.ant-mentions > textarea::-ms-input-placeholder {
|
||||
color: #bfbfbf;
|
||||
}
|
||||
.ant-mentions > textarea::placeholder {
|
||||
color: #bfbfbf;
|
||||
}
|
||||
.ant-mentions > textarea:placeholder-shown {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.ant-mentions > textarea:-moz-read-only {
|
||||
cursor: default;
|
||||
}
|
||||
.ant-mentions > textarea:read-only {
|
||||
cursor: default;
|
||||
}
|
||||
.ant-mentions-measure {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
color: transparent;
|
||||
pointer-events: none;
|
||||
}
|
||||
.ant-mentions-measure > span {
|
||||
display: inline-block;
|
||||
min-height: 1em;
|
||||
}
|
||||
.ant-mentions-dropdown {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
font-variant: tabular-nums;
|
||||
line-height: 1.5715;
|
||||
list-style: none;
|
||||
-webkit-font-feature-settings: 'tnum';
|
||||
font-feature-settings: 'tnum';
|
||||
position: absolute;
|
||||
top: -9999px;
|
||||
left: -9999px;
|
||||
z-index: 1050;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
font-size: 14px;
|
||||
font-variant: initial;
|
||||
background-color: #fff;
|
||||
border-radius: 2px;
|
||||
outline: none;
|
||||
-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-mentions-dropdown-hidden {
|
||||
display: none;
|
||||
}
|
||||
.ant-mentions-dropdown-menu {
|
||||
max-height: 250px;
|
||||
margin-bottom: 0;
|
||||
padding-left: 0;
|
||||
overflow: auto;
|
||||
list-style: none;
|
||||
outline: none;
|
||||
}
|
||||
.ant-mentions-dropdown-menu-item {
|
||||
position: relative;
|
||||
display: block;
|
||||
min-width: 100px;
|
||||
padding: 5px 12px;
|
||||
overflow: hidden;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
font-weight: normal;
|
||||
line-height: 22px;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
cursor: pointer;
|
||||
-webkit-transition: background 0.3s ease;
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
.ant-mentions-dropdown-menu-item:hover {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.ant-mentions-dropdown-menu-item:first-child {
|
||||
border-radius: 2px 2px 0 0;
|
||||
}
|
||||
.ant-mentions-dropdown-menu-item:last-child {
|
||||
border-radius: 0 0 2px 2px;
|
||||
}
|
||||
.ant-mentions-dropdown-menu-item-disabled {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-mentions-dropdown-menu-item-disabled:hover {
|
||||
color: rgba(0, 0, 0, 0.25);
|
||||
background-color: #fff;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.ant-mentions-dropdown-menu-item-selected {
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
font-weight: 600;
|
||||
background-color: #fafafa;
|
||||
}
|
||||
.ant-mentions-dropdown-menu-item-active {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
.ant-mentions-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
3
web/node_modules/antd/es/mentions/style/index.d.ts
generated
vendored
Normal file
3
web/node_modules/antd/es/mentions/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import './index.less';
|
||||
import '../../empty/style';
|
||||
import '../../spin/style';
|
||||
4
web/node_modules/antd/es/mentions/style/index.js
generated
vendored
Normal file
4
web/node_modules/antd/es/mentions/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import './index.less'; // style dependencies
|
||||
|
||||
import '../../empty/style';
|
||||
import '../../spin/style';
|
||||
169
web/node_modules/antd/es/mentions/style/index.less
generated
vendored
Normal file
169
web/node_modules/antd/es/mentions/style/index.less
generated
vendored
Normal file
@@ -0,0 +1,169 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
@import '../../input/style/mixin';
|
||||
|
||||
@mention-prefix-cls: ~'@{ant-prefix}-mentions';
|
||||
|
||||
.@{mention-prefix-cls} {
|
||||
.reset-component;
|
||||
.input;
|
||||
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
height: auto;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
line-height: @line-height-base;
|
||||
white-space: pre-wrap;
|
||||
vertical-align: bottom;
|
||||
|
||||
// =================== Status ===================
|
||||
&-disabled {
|
||||
> textarea {
|
||||
.disabled();
|
||||
}
|
||||
}
|
||||
|
||||
&-focused {
|
||||
.active();
|
||||
}
|
||||
|
||||
// ================= Input Area =================
|
||||
> textarea,
|
||||
&-measure {
|
||||
min-height: @input-height-base - 2px;
|
||||
margin: 0;
|
||||
padding: @input-padding-vertical-base @input-padding-horizontal-base;
|
||||
overflow: inherit;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
font-weight: inherit;
|
||||
font-size: inherit;
|
||||
font-family: inherit;
|
||||
font-style: inherit;
|
||||
font-variant: inherit;
|
||||
font-size-adjust: inherit;
|
||||
font-stretch: inherit;
|
||||
line-height: inherit;
|
||||
direction: inherit;
|
||||
letter-spacing: inherit;
|
||||
white-space: inherit;
|
||||
text-align: inherit;
|
||||
vertical-align: top;
|
||||
word-wrap: break-word;
|
||||
word-break: inherit;
|
||||
tab-size: inherit;
|
||||
}
|
||||
|
||||
> textarea {
|
||||
width: 100%;
|
||||
border: none;
|
||||
outline: none;
|
||||
resize: none;
|
||||
& when (@theme = dark) {
|
||||
background-color: transparent;
|
||||
}
|
||||
.placeholder();
|
||||
|
||||
&:read-only {
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
&-measure {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
color: transparent;
|
||||
pointer-events: none;
|
||||
|
||||
> span {
|
||||
display: inline-block;
|
||||
min-height: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
// ================== Dropdown ==================
|
||||
&-dropdown {
|
||||
// Ref select dropdown style
|
||||
.reset-component;
|
||||
|
||||
position: absolute;
|
||||
top: -9999px;
|
||||
left: -9999px;
|
||||
z-index: @zindex-dropdown;
|
||||
box-sizing: border-box;
|
||||
font-size: @font-size-base;
|
||||
font-variant: initial;
|
||||
background-color: @mentions-dropdown-bg;
|
||||
border-radius: @border-radius-base;
|
||||
outline: none;
|
||||
box-shadow: @box-shadow-base;
|
||||
|
||||
&-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&-menu {
|
||||
max-height: 250px;
|
||||
margin-bottom: 0;
|
||||
padding-left: 0; // Override default ul/ol
|
||||
overflow: auto;
|
||||
list-style: none;
|
||||
outline: none;
|
||||
|
||||
&-item {
|
||||
position: relative;
|
||||
display: block;
|
||||
min-width: 100px;
|
||||
padding: 5px @control-padding-horizontal;
|
||||
overflow: hidden;
|
||||
color: @text-color;
|
||||
font-weight: normal;
|
||||
line-height: 22px;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
background-color: @item-hover-bg;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
border-radius: @border-radius-base @border-radius-base 0 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-radius: 0 0 @border-radius-base @border-radius-base;
|
||||
}
|
||||
|
||||
&-disabled {
|
||||
color: @disabled-color;
|
||||
cursor: not-allowed;
|
||||
|
||||
&:hover {
|
||||
color: @disabled-color;
|
||||
background-color: @mentions-dropdown-menu-item-hover-bg;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
&-selected {
|
||||
color: @text-color;
|
||||
font-weight: @select-item-selected-font-weight;
|
||||
background-color: @background-color-light;
|
||||
}
|
||||
|
||||
&-active {
|
||||
background-color: @item-hover-bg;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@import './rtl';
|
||||
10
web/node_modules/antd/es/mentions/style/rtl.less
generated
vendored
Normal file
10
web/node_modules/antd/es/mentions/style/rtl.less
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
|
||||
@mention-prefix-cls: ~'@{ant-prefix}-mentions';
|
||||
|
||||
.@{mention-prefix-cls} {
|
||||
&-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user