@pointcloud/pcloud-components 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/AdvancedFilter/FormFilter.js +15 -15
- package/dist/esm/AdvancedFilter/index.js +3 -0
- package/dist/esm/AdvancedFilter/interface.d.ts +41 -41
- package/dist/esm/ColorPicker/index.d.ts +18 -0
- package/dist/esm/ColorPicker/index.js +165 -0
- package/dist/esm/ColorPicker/index.less +18 -0
- package/dist/esm/ColorPicker/interface.d.ts +164 -0
- package/dist/esm/ColorPicker/interface.js +1 -0
- package/dist/esm/LabelValue/interface.d.ts +1 -1
- package/dist/esm/ScrollNumber/index.d.ts +8 -0
- package/dist/esm/ScrollNumber/index.js +56 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +3 -1
- package/dist/umd/pcloud-components.min.css +1 -1
- package/dist/umd/pcloud-components.min.js +1 -1
- package/package.json +13 -8
|
@@ -44,6 +44,21 @@ export default (function (props) {
|
|
|
44
44
|
form: form
|
|
45
45
|
};
|
|
46
46
|
});
|
|
47
|
+
var formatTime = function formatTime(v) {
|
|
48
|
+
var fieldName = Object.keys(v)[0];
|
|
49
|
+
var config = formItemConfig.find(function (item) {
|
|
50
|
+
return item.name === fieldName;
|
|
51
|
+
});
|
|
52
|
+
if ((config === null || config === void 0 ? void 0 : config.type) === 'datePicker') {
|
|
53
|
+
var _v$fieldName;
|
|
54
|
+
v[fieldName] = (_v$fieldName = v[fieldName]) === null || _v$fieldName === void 0 ? void 0 : _v$fieldName.format((config === null || config === void 0 ? void 0 : config.format) || 'YYYY-MM-DD HH:mm:ss');
|
|
55
|
+
}
|
|
56
|
+
if ((config === null || config === void 0 ? void 0 : config.type) === 'rangePicker') {
|
|
57
|
+
var _v$fieldName$, _v$fieldName$2;
|
|
58
|
+
v[fieldName] = [(_v$fieldName$ = v[fieldName][0]) === null || _v$fieldName$ === void 0 ? void 0 : _v$fieldName$.format((config === null || config === void 0 ? void 0 : config.format) || 'YYYY-MM-DD HH:mm:ss'), (_v$fieldName$2 = v[fieldName][1]) === null || _v$fieldName$2 === void 0 ? void 0 : _v$fieldName$2.format((config === null || config === void 0 ? void 0 : config.format) || 'YYYY-MM-DD HH:mm:ss')];
|
|
59
|
+
}
|
|
60
|
+
return v;
|
|
61
|
+
};
|
|
47
62
|
var search = function search() {
|
|
48
63
|
var values = form.getFieldsValue();
|
|
49
64
|
Object.keys(values).forEach(function (item) {
|
|
@@ -61,21 +76,6 @@ export default (function (props) {
|
|
|
61
76
|
var value = formatTime(v);
|
|
62
77
|
onValuesChange && onValuesChange(value);
|
|
63
78
|
};
|
|
64
|
-
var formatTime = function formatTime(v) {
|
|
65
|
-
var fieldName = Object.keys(v)[0];
|
|
66
|
-
var config = formItemConfig.find(function (item) {
|
|
67
|
-
return item.name === fieldName;
|
|
68
|
-
});
|
|
69
|
-
if ((config === null || config === void 0 ? void 0 : config.type) === 'datePicker') {
|
|
70
|
-
var _v$fieldName;
|
|
71
|
-
v[fieldName] = (_v$fieldName = v[fieldName]) === null || _v$fieldName === void 0 ? void 0 : _v$fieldName.format((config === null || config === void 0 ? void 0 : config.format) || 'YYYY-MM-DD HH:mm:ss');
|
|
72
|
-
}
|
|
73
|
-
if ((config === null || config === void 0 ? void 0 : config.type) === 'rangePicker') {
|
|
74
|
-
var _v$fieldName$, _v$fieldName$2;
|
|
75
|
-
v[fieldName] = [(_v$fieldName$ = v[fieldName][0]) === null || _v$fieldName$ === void 0 ? void 0 : _v$fieldName$.format((config === null || config === void 0 ? void 0 : config.format) || 'YYYY-MM-DD HH:mm:ss'), (_v$fieldName$2 = v[fieldName][1]) === null || _v$fieldName$2 === void 0 ? void 0 : _v$fieldName$2.format((config === null || config === void 0 ? void 0 : config.format) || 'YYYY-MM-DD HH:mm:ss')];
|
|
76
|
-
}
|
|
77
|
-
return v;
|
|
78
|
-
};
|
|
79
79
|
var reset = function reset() {
|
|
80
80
|
form.resetFields();
|
|
81
81
|
onReset && onReset();
|
|
@@ -49,9 +49,11 @@ var AdvancedFilter = function AdvancedFilter(props) {
|
|
|
49
49
|
var handleSearch = function handleSearch(values) {
|
|
50
50
|
var _inputRef$current, _inputRef$current$inp;
|
|
51
51
|
var value = inputRef === null || inputRef === void 0 ? void 0 : (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : (_inputRef$current$inp = _inputRef$current.input) === null || _inputRef$current$inp === void 0 ? void 0 : _inputRef$current$inp.value;
|
|
52
|
+
// eslint-disable-next-line no-unused-expressions, @typescript-eslint/no-unused-expressions
|
|
52
53
|
onSearch && onSearch(_objectSpread(_objectSpread({}, values), _defineProperty({}, inputProps.name, value)));
|
|
53
54
|
};
|
|
54
55
|
var inputSearch = function inputSearch(v) {
|
|
56
|
+
// eslint-disable-next-line no-unused-expressions, @typescript-eslint/no-unused-expressions
|
|
55
57
|
(inputProps === null || inputProps === void 0 ? void 0 : inputProps.inputSearch) && inputProps.inputSearch(_defineProperty({}, inputProps.name, v));
|
|
56
58
|
};
|
|
57
59
|
return /*#__PURE__*/_jsx(Collapse, {
|
|
@@ -83,6 +85,7 @@ var AdvancedFilter = function AdvancedFilter(props) {
|
|
|
83
85
|
placeholder: inputProps === null || inputProps === void 0 ? void 0 : inputProps.placeholder,
|
|
84
86
|
onChange: function onChange(e) {
|
|
85
87
|
setInputValue(e.target.value);
|
|
88
|
+
// eslint-disable-next-line no-unused-expressions, @typescript-eslint/no-unused-expressions
|
|
86
89
|
onValuesChange && onValuesChange(e.target.value);
|
|
87
90
|
},
|
|
88
91
|
onSearch: inputSearch,
|
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
export declare type FormItemType = 'input' | 'inputNumber' | 'radio' | 'select' | 'checkbox' | 'datePicker' | 'rangePicker' | 'switch' | 'treeSelect';
|
|
3
|
+
export interface FormItem {
|
|
4
|
+
/**
|
|
5
|
+
* @description 筛选项label文字
|
|
6
|
+
*/
|
|
7
|
+
label?: string;
|
|
8
|
+
/**
|
|
9
|
+
* @description 筛选项字段名
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* @description 筛选项类型
|
|
14
|
+
*/
|
|
15
|
+
type: FormItemType;
|
|
16
|
+
/**
|
|
17
|
+
* @description 筛选项placeholder
|
|
18
|
+
*/
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @description 筛选项的配置项(select|treeSelect时可用)
|
|
22
|
+
*/
|
|
23
|
+
options?: any[];
|
|
24
|
+
/**
|
|
25
|
+
* @description 筛选项的格式化配置(rangePicker|datePicker时可用)
|
|
26
|
+
*/
|
|
27
|
+
format?: string;
|
|
28
|
+
}
|
|
2
29
|
export interface FormProps {
|
|
3
30
|
/**
|
|
4
31
|
* @description 筛选项配置
|
|
@@ -28,6 +55,20 @@ export interface FProps extends FormProps {
|
|
|
28
55
|
*/
|
|
29
56
|
formRef?: any;
|
|
30
57
|
}
|
|
58
|
+
export interface InputProps {
|
|
59
|
+
/**
|
|
60
|
+
* @description input检索框placeholder
|
|
61
|
+
*/
|
|
62
|
+
placeholder?: string;
|
|
63
|
+
/**
|
|
64
|
+
* @description input检索框字段名
|
|
65
|
+
*/
|
|
66
|
+
name: string;
|
|
67
|
+
/**
|
|
68
|
+
* @description input检索框回车时或点击检索图标时触发
|
|
69
|
+
*/
|
|
70
|
+
inputSearch?: (v: any) => void;
|
|
71
|
+
}
|
|
31
72
|
export interface FilterProps extends FormProps {
|
|
32
73
|
/**
|
|
33
74
|
* @description 左侧渲染区
|
|
@@ -54,44 +95,3 @@ export interface FilterProps extends FormProps {
|
|
|
54
95
|
*/
|
|
55
96
|
icon?: React.ReactNode;
|
|
56
97
|
}
|
|
57
|
-
export interface FormItem {
|
|
58
|
-
/**
|
|
59
|
-
* @description 筛选项label文字
|
|
60
|
-
*/
|
|
61
|
-
label?: string;
|
|
62
|
-
/**
|
|
63
|
-
* @description 筛选项字段名
|
|
64
|
-
*/
|
|
65
|
-
name: string;
|
|
66
|
-
/**
|
|
67
|
-
* @description 筛选项类型
|
|
68
|
-
*/
|
|
69
|
-
type: FormItemType;
|
|
70
|
-
/**
|
|
71
|
-
* @description 筛选项placeholder
|
|
72
|
-
*/
|
|
73
|
-
placeholder?: string;
|
|
74
|
-
/**
|
|
75
|
-
* @description 筛选项的配置项(select|treeSelect时可用)
|
|
76
|
-
*/
|
|
77
|
-
options?: any[];
|
|
78
|
-
/**
|
|
79
|
-
* @description 筛选项的格式化配置(rangePicker|datePicker时可用)
|
|
80
|
-
*/
|
|
81
|
-
format?: string;
|
|
82
|
-
}
|
|
83
|
-
export declare type FormItemType = 'input' | 'inputNumber' | 'radio' | 'select' | 'checkbox' | 'datePicker' | 'rangePicker' | 'switch' | 'treeSelect';
|
|
84
|
-
export interface InputProps {
|
|
85
|
-
/**
|
|
86
|
-
* @description input检索框placeholder
|
|
87
|
-
*/
|
|
88
|
-
placeholder?: string;
|
|
89
|
-
/**
|
|
90
|
-
* @description input检索框字段名
|
|
91
|
-
*/
|
|
92
|
-
name: string;
|
|
93
|
-
/**
|
|
94
|
-
* @description input检索框回车时或点击检索图标时触发
|
|
95
|
-
*/
|
|
96
|
-
inputSearch?: (v: any) => void;
|
|
97
|
-
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ColorPickerProps, TwitterPickerProps, HuePickerProps, AlphaPickerProps, BlockPickerProps, ChromePickerProps, CompactPickerProps, CirclePickerProps, SliderPickerProps } from './interface';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare const ColorPicker: {
|
|
5
|
+
(props: ColorPickerProps): JSX.Element;
|
|
6
|
+
PSPicker(props: ColorPickerProps & {
|
|
7
|
+
title?: string;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
SliderPicker(props: SliderPickerProps): JSX.Element;
|
|
10
|
+
AlphaPicker(props: AlphaPickerProps): JSX.Element;
|
|
11
|
+
BlockPicker(props: BlockPickerProps): JSX.Element;
|
|
12
|
+
ChromePicker(props: ChromePickerProps): JSX.Element;
|
|
13
|
+
CirclePicker(props: CirclePickerProps): JSX.Element;
|
|
14
|
+
CompactPicker(props: CompactPickerProps): JSX.Element;
|
|
15
|
+
HuePicker(props: HuePickerProps): JSX.Element;
|
|
16
|
+
TwitterPicker(props: TwitterPickerProps): JSX.Element;
|
|
17
|
+
};
|
|
18
|
+
export default ColorPicker;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
+
/*
|
|
5
|
+
* @Author : frank
|
|
6
|
+
* @Date : 2023-11-21
|
|
7
|
+
* @Description : 多模式颜色选择器组件
|
|
8
|
+
*/
|
|
9
|
+
import { useState, useContext } from 'react';
|
|
10
|
+
import classNames from 'classnames';
|
|
11
|
+
import { Popconfirm } from 'antd';
|
|
12
|
+
import { SketchPicker, PhotoshopPicker, SliderPicker, AlphaPicker, BlockPicker, ChromePicker, CirclePicker, CompactPicker, HuePicker, TwitterPicker } from 'react-color';
|
|
13
|
+
import { ConfigContext } from "../ConfigProvider";
|
|
14
|
+
import "./index.less";
|
|
15
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
var ColorPicker = function ColorPicker(props) {
|
|
19
|
+
var className = props.className,
|
|
20
|
+
_props$initColor = props.initColor,
|
|
21
|
+
initColor = _props$initColor === void 0 ? '#ff0000' : _props$initColor,
|
|
22
|
+
onChange = props.onChange,
|
|
23
|
+
onCancel = props.onCancel,
|
|
24
|
+
onConfirm = props.onConfirm,
|
|
25
|
+
onChangeComplete = props.onChangeComplete;
|
|
26
|
+
var _useContext = useContext(ConfigContext),
|
|
27
|
+
prefixCls = _useContext.prefixCls,
|
|
28
|
+
getPrefixCls = _useContext.getPrefixCls;
|
|
29
|
+
var classname = getPrefixCls('color-picker');
|
|
30
|
+
var wrapperClass = classNames(_defineProperty({}, "".concat(prefixCls, "-color-picker"), !!prefixCls), classname, className);
|
|
31
|
+
var triggerClass = classNames(_defineProperty({}, "".concat(className, "-trigger"), !!className), 'trigger');
|
|
32
|
+
var _useState = useState(initColor),
|
|
33
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
34
|
+
color = _useState2[0],
|
|
35
|
+
setColor = _useState2[1];
|
|
36
|
+
var _useState3 = useState(initColor),
|
|
37
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
38
|
+
finialColor = _useState4[0],
|
|
39
|
+
setFinialColor = _useState4[1];
|
|
40
|
+
var handleConfirm = function handleConfirm() {
|
|
41
|
+
var _color = color !== null && color !== void 0 && color.a ? "rgba(".concat(color === null || color === void 0 ? void 0 : color.r, ",").concat(color === null || color === void 0 ? void 0 : color.g, ",").concat(color === null || color === void 0 ? void 0 : color.b, ",").concat(color === null || color === void 0 ? void 0 : color.a, ")") : initColor;
|
|
42
|
+
setFinialColor(_color);
|
|
43
|
+
// eslint-disable-next-line no-unused-expressions, @typescript-eslint/no-unused-expressions
|
|
44
|
+
onConfirm && onConfirm(_color);
|
|
45
|
+
};
|
|
46
|
+
var handleChange = function handleChange(e) {
|
|
47
|
+
setColor(e.rgb);
|
|
48
|
+
// eslint-disable-next-line no-unused-expressions, @typescript-eslint/no-unused-expressions
|
|
49
|
+
onChange && onChange(e);
|
|
50
|
+
};
|
|
51
|
+
var handleChangeComplete = function handleChangeComplete(v) {
|
|
52
|
+
var _color = color !== null && color !== void 0 && color.a ? "rgba(".concat(color === null || color === void 0 ? void 0 : color.r, ",").concat(color === null || color === void 0 ? void 0 : color.g, ",").concat(color === null || color === void 0 ? void 0 : color.b, ",").concat(color === null || color === void 0 ? void 0 : color.a, ")") : initColor;
|
|
53
|
+
// eslint-disable-next-line no-unused-expressions, @typescript-eslint/no-unused-expressions
|
|
54
|
+
onChangeComplete && onChangeComplete(_color);
|
|
55
|
+
};
|
|
56
|
+
return /*#__PURE__*/_jsx(Popconfirm, {
|
|
57
|
+
overlayClassName: wrapperClass,
|
|
58
|
+
icon: null,
|
|
59
|
+
title: /*#__PURE__*/_jsx(SketchPicker, {
|
|
60
|
+
className: "picker",
|
|
61
|
+
color: color,
|
|
62
|
+
onChange: handleChange,
|
|
63
|
+
onChangeComplete: handleChangeComplete
|
|
64
|
+
}),
|
|
65
|
+
onConfirm: handleConfirm,
|
|
66
|
+
onCancel: onCancel,
|
|
67
|
+
okText: "\u786E\u5B9A",
|
|
68
|
+
cancelText: "\u53D6\u6D88",
|
|
69
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
70
|
+
className: triggerClass,
|
|
71
|
+
style: {
|
|
72
|
+
background: finialColor
|
|
73
|
+
}
|
|
74
|
+
})
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
var PsPicker = function PsPicker(_ref) {
|
|
78
|
+
var className = _ref.className,
|
|
79
|
+
initColor = _ref.initColor,
|
|
80
|
+
onConfirm = _ref.onConfirm,
|
|
81
|
+
onChange = _ref.onChange,
|
|
82
|
+
onChangeComplete = _ref.onChangeComplete,
|
|
83
|
+
title = _ref.title;
|
|
84
|
+
var _useState5 = useState(false),
|
|
85
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
86
|
+
showColorPicker = _useState6[0],
|
|
87
|
+
setShowColorPicker = _useState6[1];
|
|
88
|
+
var _useState7 = useState(initColor),
|
|
89
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
90
|
+
color = _useState8[0],
|
|
91
|
+
setColor = _useState8[1];
|
|
92
|
+
var _useState9 = useState(initColor),
|
|
93
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
94
|
+
finialColor = _useState10[0],
|
|
95
|
+
setFinialColor = _useState10[1];
|
|
96
|
+
var triggerClass = classNames(_defineProperty({}, "".concat(className, "-trigger"), !!className), 'trigger');
|
|
97
|
+
var onCancel = function onCancel() {
|
|
98
|
+
setShowColorPicker(false);
|
|
99
|
+
};
|
|
100
|
+
var onOk = function onOk() {
|
|
101
|
+
var _color = color !== null && color !== void 0 && color.r ? "rgba(".concat(color === null || color === void 0 ? void 0 : color.r, ",").concat(color === null || color === void 0 ? void 0 : color.g, ",").concat(color === null || color === void 0 ? void 0 : color.b, ",").concat(color === null || color === void 0 ? void 0 : color.a, ")") : initColor;
|
|
102
|
+
setShowColorPicker(false);
|
|
103
|
+
setFinialColor(_color);
|
|
104
|
+
// eslint-disable-next-line no-unused-expressions, @typescript-eslint/no-unused-expressions
|
|
105
|
+
onConfirm && onConfirm(color);
|
|
106
|
+
};
|
|
107
|
+
var handleClick = function handleClick() {
|
|
108
|
+
setShowColorPicker(true);
|
|
109
|
+
};
|
|
110
|
+
var handleChange = function handleChange(e) {
|
|
111
|
+
setColor(e.rgb);
|
|
112
|
+
// eslint-disable-next-line no-unused-expressions, @typescript-eslint/no-unused-expressions
|
|
113
|
+
onChange && onChange(e);
|
|
114
|
+
};
|
|
115
|
+
var handleChangeComplete = function handleChangeComplete() {
|
|
116
|
+
var _color = color !== null && color !== void 0 && color.a ? "rgba(".concat(color === null || color === void 0 ? void 0 : color.r, ",").concat(color === null || color === void 0 ? void 0 : color.g, ",").concat(color === null || color === void 0 ? void 0 : color.b, ",").concat(color === null || color === void 0 ? void 0 : color.a, ")") : initColor;
|
|
117
|
+
// eslint-disable-next-line no-unused-expressions, @typescript-eslint/no-unused-expressions
|
|
118
|
+
onChangeComplete && onChangeComplete(_color);
|
|
119
|
+
};
|
|
120
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
121
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
122
|
+
className: triggerClass,
|
|
123
|
+
style: {
|
|
124
|
+
background: finialColor
|
|
125
|
+
},
|
|
126
|
+
onClick: handleClick
|
|
127
|
+
}), showColorPicker ? /*#__PURE__*/_jsx(PhotoshopPicker, {
|
|
128
|
+
className: "ps-picker",
|
|
129
|
+
color: color,
|
|
130
|
+
header: title,
|
|
131
|
+
onChange: handleChange,
|
|
132
|
+
onChangeComplete: handleChangeComplete,
|
|
133
|
+
onCancel: onCancel,
|
|
134
|
+
onAccept: onOk
|
|
135
|
+
}) : null]
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
ColorPicker.PSPicker = function (props) {
|
|
139
|
+
return /*#__PURE__*/_jsx(PsPicker, _objectSpread({}, props));
|
|
140
|
+
};
|
|
141
|
+
ColorPicker.SliderPicker = function (props) {
|
|
142
|
+
return /*#__PURE__*/_jsx(SliderPicker, _objectSpread({}, props));
|
|
143
|
+
};
|
|
144
|
+
ColorPicker.AlphaPicker = function (props) {
|
|
145
|
+
return /*#__PURE__*/_jsx(AlphaPicker, _objectSpread({}, props));
|
|
146
|
+
};
|
|
147
|
+
ColorPicker.BlockPicker = function (props) {
|
|
148
|
+
return /*#__PURE__*/_jsx(BlockPicker, _objectSpread({}, props));
|
|
149
|
+
};
|
|
150
|
+
ColorPicker.ChromePicker = function (props) {
|
|
151
|
+
return /*#__PURE__*/_jsx(ChromePicker, _objectSpread({}, props));
|
|
152
|
+
};
|
|
153
|
+
ColorPicker.CirclePicker = function (props) {
|
|
154
|
+
return /*#__PURE__*/_jsx(CirclePicker, _objectSpread({}, props));
|
|
155
|
+
};
|
|
156
|
+
ColorPicker.CompactPicker = function (props) {
|
|
157
|
+
return /*#__PURE__*/_jsx(CompactPicker, _objectSpread({}, props));
|
|
158
|
+
};
|
|
159
|
+
ColorPicker.HuePicker = function (props) {
|
|
160
|
+
return /*#__PURE__*/_jsx(HuePicker, _objectSpread({}, props));
|
|
161
|
+
};
|
|
162
|
+
ColorPicker.TwitterPicker = function (props) {
|
|
163
|
+
return /*#__PURE__*/_jsx(TwitterPicker, _objectSpread({}, props));
|
|
164
|
+
};
|
|
165
|
+
export default ColorPicker;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@import '../commonStyle/index.less';
|
|
2
|
+
|
|
3
|
+
.@{prefix}-color-picker {
|
|
4
|
+
.sketch-picker {
|
|
5
|
+
padding: 0 !important;
|
|
6
|
+
box-shadow: none !important;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.trigger {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
width: 60px;
|
|
13
|
+
height: 26px;
|
|
14
|
+
border: 5px solid #fff;
|
|
15
|
+
border-radius: 2px;
|
|
16
|
+
box-shadow: 0 0 2px #000;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type Hlsa = {
|
|
3
|
+
h: number;
|
|
4
|
+
s: number;
|
|
5
|
+
l: number;
|
|
6
|
+
a?: number;
|
|
7
|
+
};
|
|
8
|
+
declare type Rgba = {
|
|
9
|
+
r: number;
|
|
10
|
+
b: number;
|
|
11
|
+
g: number;
|
|
12
|
+
a?: number;
|
|
13
|
+
};
|
|
14
|
+
interface ComponentProps {
|
|
15
|
+
/**
|
|
16
|
+
* 组件的颜色状态值
|
|
17
|
+
*/
|
|
18
|
+
color?: string | Hlsa | Rgba | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* 颜色值变化时触发
|
|
21
|
+
* @param v 色值对象
|
|
22
|
+
*/
|
|
23
|
+
onChange?: (v: any) => void;
|
|
24
|
+
/**
|
|
25
|
+
* 颜色变化完成时触发
|
|
26
|
+
* @param v 颜色值 rgba
|
|
27
|
+
*/
|
|
28
|
+
onChangeComplete?: (v: any) => void;
|
|
29
|
+
}
|
|
30
|
+
export interface ColorPickerProps extends ComponentProps {
|
|
31
|
+
/**
|
|
32
|
+
* 容器类名
|
|
33
|
+
*/
|
|
34
|
+
className?: string;
|
|
35
|
+
/**
|
|
36
|
+
* 初始颜色,触发按钮的默认色
|
|
37
|
+
*/
|
|
38
|
+
initColor?: string;
|
|
39
|
+
/**
|
|
40
|
+
* 点击取消时的回调函数
|
|
41
|
+
*/
|
|
42
|
+
onCancel?: () => void;
|
|
43
|
+
/**
|
|
44
|
+
* 点击确定时的回调函数
|
|
45
|
+
*/
|
|
46
|
+
onConfirm: (v: any) => void;
|
|
47
|
+
}
|
|
48
|
+
export interface TwitterPickerProps extends ComponentProps {
|
|
49
|
+
/**
|
|
50
|
+
* 单个色块的宽度(px)
|
|
51
|
+
* @default 276
|
|
52
|
+
*/
|
|
53
|
+
width?: string;
|
|
54
|
+
/**
|
|
55
|
+
* 默认展示的颜色值集合
|
|
56
|
+
* @default ['#FF6900', '#FCB900', '#7BDCB5', '#00D084', '#8ED1FC', '#0693E3', '#ABB8C3', '#EB144C', '#F78DA7', '#9900EF']
|
|
57
|
+
*/
|
|
58
|
+
colors?: string[];
|
|
59
|
+
/**
|
|
60
|
+
* 小三角形位置
|
|
61
|
+
*/
|
|
62
|
+
triangle?: 'hide' | 'top-left' | 'top-right';
|
|
63
|
+
}
|
|
64
|
+
export interface HuePickerProps extends ComponentProps {
|
|
65
|
+
/**
|
|
66
|
+
* 自定义滑块
|
|
67
|
+
*/
|
|
68
|
+
pointer?: React.ReactNode;
|
|
69
|
+
/**
|
|
70
|
+
* 方向
|
|
71
|
+
* @default horizontal
|
|
72
|
+
*/
|
|
73
|
+
direction?: 'horizontal' | 'vertical';
|
|
74
|
+
}
|
|
75
|
+
export interface AlphaPickerProps extends ComponentProps {
|
|
76
|
+
/**
|
|
77
|
+
* 单个色块的宽度(px)
|
|
78
|
+
* @default 316
|
|
79
|
+
*/
|
|
80
|
+
width?: string;
|
|
81
|
+
/**
|
|
82
|
+
* 单个色块的高度(px)
|
|
83
|
+
* @default 16
|
|
84
|
+
*/
|
|
85
|
+
height?: string;
|
|
86
|
+
/**
|
|
87
|
+
* 方向
|
|
88
|
+
* @default horizontal
|
|
89
|
+
*/
|
|
90
|
+
direction?: 'horizontal' | 'vertical';
|
|
91
|
+
/**
|
|
92
|
+
* 自定义滑块
|
|
93
|
+
*/
|
|
94
|
+
pointer?: React.ReactNode;
|
|
95
|
+
}
|
|
96
|
+
export interface SliderPickerProps extends ComponentProps {
|
|
97
|
+
/**
|
|
98
|
+
* 自定义滑块
|
|
99
|
+
*/
|
|
100
|
+
pointer?: React.ReactNode;
|
|
101
|
+
}
|
|
102
|
+
export interface CompactPickerProps extends ComponentProps {
|
|
103
|
+
/**
|
|
104
|
+
* 默认展示的颜色值集合
|
|
105
|
+
* @default ['#4D4D4D', '#999999', '#FFFFFF', '#F44E3B', '#FE9200', '#FCDC00', '#DBDF00', '#A4DD00', '#68CCCA', '#73D8FF', '#AEA1FF', '#FDA1FF', '#333333', '#808080', '#cccccc', '#D33115', '#E27300', '#FCC400', '#B0BC00', '#68BC00', '#16A5A5', '#009CE0', '#7B64FF', '#FA28FF', '#000000', '#666666', '#B3B3B3', '#9F0500', '#C45100', '#FB9E00', '#808900', '#194D33', '#0C797D', '#0062B1', '#653294', '#AB149E']
|
|
106
|
+
*/
|
|
107
|
+
colors?: string[];
|
|
108
|
+
}
|
|
109
|
+
export interface CirclePickerProps extends ComponentProps {
|
|
110
|
+
/**
|
|
111
|
+
* 单个色块的宽度(px)
|
|
112
|
+
* @default 252
|
|
113
|
+
*/
|
|
114
|
+
width?: string;
|
|
115
|
+
/**
|
|
116
|
+
* 默认展示的颜色值集合
|
|
117
|
+
* @default ["#f44336", "#e91e63", "#9c27b0", "#673ab7", "#3f51b5", "#2196f3", "#03a9f4", "#00bcd4", "#009688", "#4caf50", "#8bc34a", "#cddc39", "#ffeb3b", "#ffc107", "#ff9800", "#ff5722", "#795548", "#607d8b"]
|
|
118
|
+
*/
|
|
119
|
+
colors?: string[];
|
|
120
|
+
/**
|
|
121
|
+
* 圆圈大小
|
|
122
|
+
* @default 28
|
|
123
|
+
*/
|
|
124
|
+
circleSize?: number;
|
|
125
|
+
/**
|
|
126
|
+
* 圆圈之间的间隔(px)
|
|
127
|
+
* @default 14
|
|
128
|
+
*/
|
|
129
|
+
circleSpacing?: number;
|
|
130
|
+
}
|
|
131
|
+
export interface BlockPickerProps extends ComponentProps {
|
|
132
|
+
/**
|
|
133
|
+
* 单个色块的宽度(px)
|
|
134
|
+
* @default 170
|
|
135
|
+
*/
|
|
136
|
+
width?: string;
|
|
137
|
+
/**
|
|
138
|
+
* 默认展示的颜色值集合
|
|
139
|
+
* @default ['#D9E3F0', '#F47373', '#697689', '#37D67A', '#2CCCE4', '#555555', '#dce775', '#ff8a65', '#ba68c8']
|
|
140
|
+
*/
|
|
141
|
+
colors?: string[];
|
|
142
|
+
/**
|
|
143
|
+
* 小三角的位置
|
|
144
|
+
* @default 'top'
|
|
145
|
+
*/
|
|
146
|
+
triangle?: 'hide' | 'top';
|
|
147
|
+
}
|
|
148
|
+
export interface ChromePickerProps extends ComponentProps {
|
|
149
|
+
/**
|
|
150
|
+
* 是否显示不透明度的配置项
|
|
151
|
+
* @default false
|
|
152
|
+
*/
|
|
153
|
+
disableAlpha?: boolean;
|
|
154
|
+
}
|
|
155
|
+
export declare type ColorPickerType = ColorPickerProps;
|
|
156
|
+
export declare type TwitterPickerType = TwitterPickerProps;
|
|
157
|
+
export declare type HuePickerType = HuePickerProps;
|
|
158
|
+
export declare type AlphaPickerType = AlphaPickerProps;
|
|
159
|
+
export declare type SliderPickerType = SliderPickerProps;
|
|
160
|
+
export declare type CompactPickerType = CompactPickerProps;
|
|
161
|
+
export declare type CirclePickerType = CirclePickerProps;
|
|
162
|
+
export declare type BlockPickerType = BlockPickerProps;
|
|
163
|
+
export declare type ChromePickerType = ChromePickerProps;
|
|
164
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CountUpProps as ICountUpProps } from 'react-countup';
|
|
3
|
+
declare const ScrollNumber: {
|
|
4
|
+
(props: ICountUpProps): JSX.Element;
|
|
5
|
+
useCountUp: (props: import("react-countup/build/useCountUp").UseCountUpProps) => import("react-countup/build/types").CountUpApi;
|
|
6
|
+
};
|
|
7
|
+
export declare type ScrollNumberProps = ICountUpProps;
|
|
8
|
+
export default ScrollNumber;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
+
import { useMemo, useContext } from 'react';
|
|
4
|
+
import CountUp, { useCountUp } from 'react-countup';
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
import { ConfigContext } from "../ConfigProvider";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
var ScrollNumber = function ScrollNumber(props) {
|
|
9
|
+
var _props$start = props.start,
|
|
10
|
+
start = _props$start === void 0 ? 0 : _props$start,
|
|
11
|
+
end = props.end,
|
|
12
|
+
_props$decimals = props.decimals,
|
|
13
|
+
decimals = _props$decimals === void 0 ? 2 : _props$decimals,
|
|
14
|
+
_props$separator = props.separator,
|
|
15
|
+
separator = _props$separator === void 0 ? ',' : _props$separator,
|
|
16
|
+
_props$className = props.className,
|
|
17
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
18
|
+
_props$delay = props.delay,
|
|
19
|
+
delay = _props$delay === void 0 ? 0 : _props$delay,
|
|
20
|
+
children = props.children;
|
|
21
|
+
var _useContext = useContext(ConfigContext),
|
|
22
|
+
prefixCls = _useContext.prefixCls,
|
|
23
|
+
getPrefixCls = _useContext.getPrefixCls;
|
|
24
|
+
var classname = getPrefixCls('scroll-number');
|
|
25
|
+
var wrapperClass = classNames(_defineProperty({}, "".concat(prefixCls, "-scroll-number"), !!prefixCls), classname, className);
|
|
26
|
+
var config = useMemo(function () {
|
|
27
|
+
var num = "".concat(end);
|
|
28
|
+
if (num.length < 2) return {
|
|
29
|
+
num: end,
|
|
30
|
+
duration: 0.8
|
|
31
|
+
};
|
|
32
|
+
if (num.length < 4) return {
|
|
33
|
+
num: end,
|
|
34
|
+
duration: 1.5
|
|
35
|
+
};
|
|
36
|
+
return {
|
|
37
|
+
num: end,
|
|
38
|
+
duration: 1.8
|
|
39
|
+
};
|
|
40
|
+
}, [end]);
|
|
41
|
+
return /*#__PURE__*/_jsx("div", {
|
|
42
|
+
className: wrapperClass,
|
|
43
|
+
children: /*#__PURE__*/_jsx(CountUp, _objectSpread(_objectSpread({}, props), {}, {
|
|
44
|
+
className: className,
|
|
45
|
+
start: start,
|
|
46
|
+
end: config === null || config === void 0 ? void 0 : config.num,
|
|
47
|
+
duration: config === null || config === void 0 ? void 0 : config.duration,
|
|
48
|
+
delay: delay,
|
|
49
|
+
decimals: decimals,
|
|
50
|
+
separator: separator,
|
|
51
|
+
children: children
|
|
52
|
+
}))
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
ScrollNumber.useCountUp = useCountUp;
|
|
56
|
+
export default ScrollNumber;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -22,3 +22,7 @@ export type { DFormProps, DFormRefProps, DItemProps } from './DForm';
|
|
|
22
22
|
export { default as DForm } from './DForm';
|
|
23
23
|
export type { LModalProps } from './LModal/interface';
|
|
24
24
|
export { default as LModal } from './LModal';
|
|
25
|
+
export { default as ColorPicker } from './ColorPicker';
|
|
26
|
+
export type { ColorPickerType, TwitterPickerType, HuePickerType, AlphaPickerType, BlockPickerType, ChromePickerType, CompactPickerType, CirclePickerType, SliderPickerType, } from './ColorPicker/interface';
|
|
27
|
+
export { default as ScrollNumber } from './ScrollNumber';
|
|
28
|
+
export type { ScrollNumberProps } from './ScrollNumber';
|
package/dist/esm/index.js
CHANGED
|
@@ -12,4 +12,6 @@ export { default as DTreeSelect } from "./DTreeSelect";
|
|
|
12
12
|
export { default as DUpload } from "./DUpload";
|
|
13
13
|
export { default as DTable } from "./DTable";
|
|
14
14
|
export { default as DForm } from "./DForm";
|
|
15
|
-
export { default as LModal } from "./LModal";
|
|
15
|
+
export { default as LModal } from "./LModal";
|
|
16
|
+
export { default as ColorPicker } from "./ColorPicker";
|
|
17
|
+
export { default as ScrollNumber } from "./ScrollNumber";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pui-label-value{display:inline-flex}.pui-label-value span:first-child{max-width:120px;padding-right:4px;white-space:nowrap}.pui-label-value span:last-child{flex:1 1}.pui-label-value span:last-child.no-wrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pui-search-filter{align-items:center;background-color:#fff;margin-top:10px;width:100%}.pui-search-filter span.ant-collapse-header-text{cursor:auto!important;display:inline-block;width:100%}.pui-search-filter .ant-collapse-content-box{padding:0}.pui-search-filter .search-header{display:flex;width:100%}.pui-search-filter .search-header .left{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:no-wrap}.pui-search-filter .search-header .left :global .ant-radio-wrapper:first-child{border-left:1px solid #d9d9d9;border-radius:5px 0 0 5px}.pui-search-filter .search-header .left :global .ant-radio-wrapper:last-child{border-radius:0 5px 5px 0}.pui-search-filter .search-header .left :global .ant-radio-wrapper{border:1px solid #d9d9d9;border-left-color:#fff;margin-right:0;padding:4px 6px}.pui-search-filter .search-header .left :global .ant-radio-wrapper .ant-radio{display:none}.pui-search-filter .search-header .left :global .ant-radio-wrapper:hover{color:#1890ff}.pui-search-filter .search-header .left :global .ant-radio-wrapper-checked{background:#fff;border:1px solid #1890ff;border-left:1px solid #1890ff!important;color:#1890ff;z-index:1}.pui-search-filter .search-header .right{display:flex;justify-content:center}.pui-search-filter .search-header .right .input{border-radius:4px;width:200px}.pui-search-filter .search-header .right .button{background-color:#ff7e00;border-radius:4px;color:#fff;margin-left:10px}.pui-search-filter .search-header .right .button:active,.pui-search-filter .search-header .right .button:focus,.pui-search-filter .search-header .right .button:hover{border-color:transparent}.pui-search-filter .search-header .right .button .icon{margin-left:8px;transition:transform .4s}.pui-search-filter .search-header .right .button .icon.down{transform:rotate(180deg)}.pui-search-filter .search-header .right .button .icon.up{transform:rotate(0deg)}.pui-search-filter .title{align-items:center;border-bottom:1px solid #f0f0f0;display:flex;font-weight:700;margin:0 10px;padding-bottom:10px}.pui-search-filter .title span.icon{background-color:#ff7e00;border-radius:2px;height:16px;margin-right:6px;width:4px}.pui-search-filter .search-content .filter-row{display:flex;flex-wrap:wrap;padding:10px;width:100%}.pui-search-filter .search-content .filter-col{height:30px;line-height:30px;margin-bottom:10px}.pui-search-filter .search-content .filter-col .ant-picker{width:100%}.pui-search-filter .search-content .search-btn{justify-content:center}.pui-search-filter .search-content .search-btn>button{margin:0 5px}.pui-error-boundary{align-items:center;background-color:#dd7f7f;border-radius:10px;display:flex;flex-direction:column;justify-content:center;margin:20px;padding:15px;width:auto}.pui-error-boundary .error-text{margin-top:20px}.pui-error-boundary .error-refresh{background-color:#4593ef;border-radius:5px;color:#fff;cursor:pointer;font-weight:700;height:40px;line-height:40px;text-align:center;width:140px}.pui-error-boundary .errorDetiles .detilesLink{color:blue}.pui-error-boundary .errorDetiles .errordetails{background-color:#ccc6be;border:1px solid #777;border-radius:5px;color:#777;font-size:80%;padding:10px}.pui-loading .mask{height:100%;left:0;overflow:hidden;position:fixed;top:0;width:100%;z-index:100000}.pui-loading .loading{background:#fff;border-radius:10px;box-shadow:3px 3px 3px rgba(0,0,0,.2);padding:20px;z-index:100001}.pui-loading .loading,.pui-nodata{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.pui-nodata .not-data-image{display:block;height:100px}.pui-nodata .no-data-text{color:#000;display:inline-block;font-size:14px;font-weight:400;margin-top:5px;opacity:.65;text-align:center;width:100%}.pui-cascader-dropdown .ant-cascader-menu::-webkit-scrollbar{height:8px;width:8px}.pui-cascader-dropdown .ant-cascader-menu::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5);border-radius:8px}.pui-cascader-dropdown .ant-cascader-menu::-webkit-scrollbar-track{border-radius:2px}.pui-cascader-dropdown .ant-cascader-menu::-webkit-scrollbar-corner{background-color:#f1f1f1}.pui-tree-select-dropdown .ant-select-tree-node-content-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pui-tree-select-dropdown .ant-select-tree-node-content-wrapper .ant-select-tree-title{overflow:hidden}.pui-upload .preview .ant-upload-list-item-actions a[target=_blank][rel="noopener noreferrer"]{opacity:1!important;pointer-events:auto!important}.pui-upload .ant-upload-list.ant-upload-list-picture-card .ant-upload-span .ant-upload-list-item-thumbnail{height:46px}.pui-upload .ant-upload-list.ant-upload-list-picture-card .ant-upload-span .ant-upload-list-item-name{display:inline;display:initial;position:absolute}.pui-table .ant-spin-container,.pui-table .ant-spin-nested-loading,.pui-table .ant-table,.pui-table .ant-table-container{height:100%;width:100%}.pui-table .ant-table-body{max-height:calc(100% - 56px);max-width:100%;min-height:calc(100% - 56px);min-width:100%;overflow-y:auto!important;position:absolute}.pui-table .ant-table-body .ant-table-tbody>tr>td.ant-table-cell.d-table-cell-wrap{white-space:normal}.pui-table .ant-table-body::-webkit-scrollbar{height:8px;width:4px}.pui-table .ant-table-body::-webkit-scrollbar-thumb{background-color:#0084ff}.pui-table .ant-table-body::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:2px}.pui-table .ant-table-body::-webkit-scrollbar-corner{background-color:#f1f1f1}.pui-table .ant-spin-nested-loading>div>.ant-spin{max-height:none}.pui-table .ant-pagination-total-text span{color:#40a9ff;font-weight:700}.pui-table.height-on-page .ant-table{height:calc(100% - 56px)}.pui-form .form-wrapper>*{margin-bottom:24px;margin-right:0;min-height:32px;padding-right:16px}.pui-form.ant-form-horizontal .ant-form-item-label{min-width:80px}.pui-form.ant-form-inline .form-wrapper,.pui-form.ant-form-inline.inlineVertical .form-wrapper{align-items:flex-end;display:flex;flex-wrap:wrap;height:min-content}.pui-form.ant-form-inline.inlineVertical .ant-form-item-row{flex-direction:column}.pui-form.ant-form-inline.inlineVertical .ant-form-item-row .ant-form-item-label{text-align:left}.pui-modal-container .ant-modal-wrap .ant-modal{height:100%;max-width:none}.pui-modal-container .ant-modal-wrap .ant-modal .ant-modal-content{height:100%;width:100%}.pui-absolute-modal-container .ant-modal-wrap{position:fixed}.pui-relative-modal-container .ant-modal-wrap{position:absolute}
|
|
1
|
+
.pui-label-value{display:inline-flex}.pui-label-value span:first-child{max-width:120px;padding-right:4px;white-space:nowrap}.pui-label-value span:last-child{flex:1 1}.pui-label-value span:last-child.no-wrap{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pui-search-filter{align-items:center;background-color:#fff;margin-top:10px;width:100%}.pui-search-filter span.ant-collapse-header-text{cursor:auto!important;display:inline-block;width:100%}.pui-search-filter .ant-collapse-content-box{padding:0}.pui-search-filter .search-header{display:flex;width:100%}.pui-search-filter .search-header .left{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:no-wrap}.pui-search-filter .search-header .left :global .ant-radio-wrapper:first-child{border-left:1px solid #d9d9d9;border-radius:5px 0 0 5px}.pui-search-filter .search-header .left :global .ant-radio-wrapper:last-child{border-radius:0 5px 5px 0}.pui-search-filter .search-header .left :global .ant-radio-wrapper{border:1px solid #d9d9d9;border-left-color:#fff;margin-right:0;padding:4px 6px}.pui-search-filter .search-header .left :global .ant-radio-wrapper .ant-radio{display:none}.pui-search-filter .search-header .left :global .ant-radio-wrapper:hover{color:#1890ff}.pui-search-filter .search-header .left :global .ant-radio-wrapper-checked{background:#fff;border:1px solid #1890ff;border-left:1px solid #1890ff!important;color:#1890ff;z-index:1}.pui-search-filter .search-header .right{display:flex;justify-content:center}.pui-search-filter .search-header .right .input{border-radius:4px;width:200px}.pui-search-filter .search-header .right .button{background-color:#ff7e00;border-radius:4px;color:#fff;margin-left:10px}.pui-search-filter .search-header .right .button:active,.pui-search-filter .search-header .right .button:focus,.pui-search-filter .search-header .right .button:hover{border-color:transparent}.pui-search-filter .search-header .right .button .icon{margin-left:8px;transition:transform .4s}.pui-search-filter .search-header .right .button .icon.down{transform:rotate(180deg)}.pui-search-filter .search-header .right .button .icon.up{transform:rotate(0deg)}.pui-search-filter .title{align-items:center;border-bottom:1px solid #f0f0f0;display:flex;font-weight:700;margin:0 10px;padding-bottom:10px}.pui-search-filter .title span.icon{background-color:#ff7e00;border-radius:2px;height:16px;margin-right:6px;width:4px}.pui-search-filter .search-content .filter-row{display:flex;flex-wrap:wrap;padding:10px;width:100%}.pui-search-filter .search-content .filter-col{height:30px;line-height:30px;margin-bottom:10px}.pui-search-filter .search-content .filter-col .ant-picker{width:100%}.pui-search-filter .search-content .search-btn{justify-content:center}.pui-search-filter .search-content .search-btn>button{margin:0 5px}.pui-error-boundary{align-items:center;background-color:#dd7f7f;border-radius:10px;display:flex;flex-direction:column;justify-content:center;margin:20px;padding:15px;width:auto}.pui-error-boundary .error-text{margin-top:20px}.pui-error-boundary .error-refresh{background-color:#4593ef;border-radius:5px;color:#fff;cursor:pointer;font-weight:700;height:40px;line-height:40px;text-align:center;width:140px}.pui-error-boundary .errorDetiles .detilesLink{color:blue}.pui-error-boundary .errorDetiles .errordetails{background-color:#ccc6be;border:1px solid #777;border-radius:5px;color:#777;font-size:80%;padding:10px}.pui-loading .mask{height:100%;left:0;overflow:hidden;position:fixed;top:0;width:100%;z-index:100000}.pui-loading .loading{background:#fff;border-radius:10px;box-shadow:3px 3px 3px rgba(0,0,0,.2);padding:20px;z-index:100001}.pui-loading .loading,.pui-nodata{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.pui-nodata .not-data-image{display:block;height:100px}.pui-nodata .no-data-text{color:#000;display:inline-block;font-size:14px;font-weight:400;margin-top:5px;opacity:.65;text-align:center;width:100%}.pui-cascader-dropdown .ant-cascader-menu::-webkit-scrollbar{height:8px;width:8px}.pui-cascader-dropdown .ant-cascader-menu::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.5);border-radius:8px}.pui-cascader-dropdown .ant-cascader-menu::-webkit-scrollbar-track{border-radius:2px}.pui-cascader-dropdown .ant-cascader-menu::-webkit-scrollbar-corner{background-color:#f1f1f1}.pui-tree-select-dropdown .ant-select-tree-node-content-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pui-tree-select-dropdown .ant-select-tree-node-content-wrapper .ant-select-tree-title{overflow:hidden}.pui-upload .preview .ant-upload-list-item-actions a[target=_blank][rel="noopener noreferrer"]{opacity:1!important;pointer-events:auto!important}.pui-upload .ant-upload-list.ant-upload-list-picture-card .ant-upload-span .ant-upload-list-item-thumbnail{height:46px}.pui-upload .ant-upload-list.ant-upload-list-picture-card .ant-upload-span .ant-upload-list-item-name{display:inline;display:initial;position:absolute}.pui-table .ant-spin-container,.pui-table .ant-spin-nested-loading,.pui-table .ant-table,.pui-table .ant-table-container{height:100%;width:100%}.pui-table .ant-table-body{max-height:calc(100% - 56px);max-width:100%;min-height:calc(100% - 56px);min-width:100%;overflow-y:auto!important;position:absolute}.pui-table .ant-table-body .ant-table-tbody>tr>td.ant-table-cell.d-table-cell-wrap{white-space:normal}.pui-table .ant-table-body::-webkit-scrollbar{height:8px;width:4px}.pui-table .ant-table-body::-webkit-scrollbar-thumb{background-color:#0084ff}.pui-table .ant-table-body::-webkit-scrollbar-track{background-color:#f1f1f1;border-radius:2px}.pui-table .ant-table-body::-webkit-scrollbar-corner{background-color:#f1f1f1}.pui-table .ant-spin-nested-loading>div>.ant-spin{max-height:none}.pui-table .ant-pagination-total-text span{color:#40a9ff;font-weight:700}.pui-table.height-on-page .ant-table{height:calc(100% - 56px)}.pui-form .form-wrapper>*{margin-bottom:24px;margin-right:0;min-height:32px;padding-right:16px}.pui-form.ant-form-horizontal .ant-form-item-label{min-width:80px}.pui-form.ant-form-inline .form-wrapper,.pui-form.ant-form-inline.inlineVertical .form-wrapper{align-items:flex-end;display:flex;flex-wrap:wrap;height:min-content}.pui-form.ant-form-inline.inlineVertical .ant-form-item-row{flex-direction:column}.pui-form.ant-form-inline.inlineVertical .ant-form-item-row .ant-form-item-label{text-align:left}.pui-modal-container .ant-modal-wrap .ant-modal{height:100%;max-width:none}.pui-modal-container .ant-modal-wrap .ant-modal .ant-modal-content{height:100%;width:100%}.pui-absolute-modal-container .ant-modal-wrap{position:fixed}.pui-relative-modal-container .ant-modal-wrap{position:absolute}.pui-color-picker .sketch-picker{box-shadow:none!important;padding:0!important}.trigger{border:5px solid #fff;border-radius:2px;box-shadow:0 0 2px #000;cursor:pointer;display:inline-block;height:26px;width:60px}
|