assui 2.1.20 → 2.1.21
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/es/index.d.ts +2 -0
- package/es/index.js +1 -0
- package/es/label-select/index.js +4 -1
- package/es/label-select/style/index.css +33 -0
- package/es/label-select/style/index.less +49 -2
- package/es/number-format/index.d.ts +4 -0
- package/es/number-format/index.js +2 -0
- package/es/number-format/style/index.d.ts +1 -0
- package/es/number-format/style/index.js +0 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +10 -1
- package/lib/label-select/index.js +4 -1
- package/lib/label-select/style/index.css +33 -0
- package/lib/label-select/style/index.less +49 -2
- package/lib/number-format/index.d.ts +4 -0
- package/lib/number-format/index.js +15 -0
- package/lib/number-format/style/index.d.ts +1 -0
- package/lib/number-format/style/index.js +0 -0
- package/package.json +2 -2
package/es/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export type { ConditionInputProps } from './condition-input';
|
|
|
6
6
|
export { default as ConditionInput } from './condition-input';
|
|
7
7
|
export type { ConfigProviderProps } from './config-provider';
|
|
8
8
|
export { default as ConfigProvider } from './config-provider';
|
|
9
|
+
export { default as NumberFormat } from './number-format';
|
|
10
|
+
export type { NumberFormatProps } from './number-format';
|
|
9
11
|
export type { CopyToClipboardProps } from './copy-to-clipboard';
|
|
10
12
|
export { default as CopyToClipboard } from './copy-to-clipboard';
|
|
11
13
|
export type { HighlightTextareaProps } from './highlight-textarea';
|
package/es/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export { default as ButtonDrawer } from './button-drawer';
|
|
|
2
2
|
export { default as ButtonModal } from './button-modal';
|
|
3
3
|
export { default as ConditionInput } from './condition-input';
|
|
4
4
|
export { default as ConfigProvider } from './config-provider';
|
|
5
|
+
export { default as NumberFormat } from './number-format';
|
|
5
6
|
export { default as CopyToClipboard } from './copy-to-clipboard';
|
|
6
7
|
export { default as HighlightTextarea } from './highlight-textarea';
|
|
7
8
|
export { default as HighlightWords } from './highlight-words';
|
package/es/label-select/index.js
CHANGED
|
@@ -90,7 +90,10 @@ var LabelSelect = function LabelSelect(props) {
|
|
|
90
90
|
'label-select': true,
|
|
91
91
|
'label-select-label-scale': open || !isUndefined(value) && !isNull(value)
|
|
92
92
|
}, className)
|
|
93
|
-
}, /*#__PURE__*/React.createElement(Select, __assign({
|
|
93
|
+
}, /*#__PURE__*/React.createElement(Select, __assign({
|
|
94
|
+
maxTagCount: 3,
|
|
95
|
+
showSearch: false
|
|
96
|
+
}, omit(props, ['open', 'onChange', 'className', 'label']), {
|
|
94
97
|
open: open,
|
|
95
98
|
ref: selectRef,
|
|
96
99
|
size: "large",
|
|
@@ -1792,6 +1792,39 @@ html {
|
|
|
1792
1792
|
width: 100%;
|
|
1793
1793
|
height: 100%;
|
|
1794
1794
|
}
|
|
1795
|
+
.label-select .ant-select {
|
|
1796
|
+
width: 100%;
|
|
1797
|
+
}
|
|
1798
|
+
.label-select .ant-select-multiple .ant-select-selector {
|
|
1799
|
+
height: 45px;
|
|
1800
|
+
padding: 6px 11px 7px;
|
|
1801
|
+
border: 1px solid #e5e5e5;
|
|
1802
|
+
border-radius: 8px;
|
|
1803
|
+
outline: none;
|
|
1804
|
+
}
|
|
1805
|
+
.label-select .ant-select-multiple .ant-select-selection-overflow {
|
|
1806
|
+
display: flex;
|
|
1807
|
+
width: 100%;
|
|
1808
|
+
transform: translateY(8px);
|
|
1809
|
+
}
|
|
1810
|
+
.label-select .ant-select-multiple .ant-select-selection-overflow-item {
|
|
1811
|
+
max-width: 25%;
|
|
1812
|
+
}
|
|
1813
|
+
.label-select .ant-select-multiple .ant-select-selection-overflow-item .ant-select-selection-search {
|
|
1814
|
+
padding: 0;
|
|
1815
|
+
}
|
|
1816
|
+
.label-select .ant-select-multiple.ant-select-lg .ant-select-selection-item {
|
|
1817
|
+
width: auto;
|
|
1818
|
+
height: auto;
|
|
1819
|
+
margin: 0 4px 4px 0;
|
|
1820
|
+
padding: 1px 4px;
|
|
1821
|
+
color: #333;
|
|
1822
|
+
font-size: 12px;
|
|
1823
|
+
line-height: 17px;
|
|
1824
|
+
background-color: #fff;
|
|
1825
|
+
border: 1px solid #ccc;
|
|
1826
|
+
border-radius: 4px;
|
|
1827
|
+
}
|
|
1795
1828
|
.label-select .ant-select-allow-clear .ant-select-clear {
|
|
1796
1829
|
right: 16px;
|
|
1797
1830
|
}
|
|
@@ -3,13 +3,60 @@
|
|
|
3
3
|
@import '../../style/themes/default.less';
|
|
4
4
|
|
|
5
5
|
@color_9aa5b5: #9aa5b5;
|
|
6
|
+
@color_e5e5e5: #e5e5e5;
|
|
7
|
+
@color_7d7d7d: #7d7d7d;
|
|
8
|
+
@color_333: #333;
|
|
9
|
+
@color_ccc: #ccc;
|
|
10
|
+
@white: #fff;
|
|
6
11
|
@font-size-base: 14px;
|
|
12
|
+
@font-size-sm: @font-size-base - 2px;
|
|
7
13
|
|
|
8
14
|
.label-select {
|
|
9
15
|
position: relative;
|
|
10
16
|
width: 100%;
|
|
11
17
|
height: 100%;
|
|
12
18
|
|
|
19
|
+
.@{ant-prefix}-select {
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.@{ant-prefix}-select-multiple {
|
|
24
|
+
.@{ant-prefix}-select-selector {
|
|
25
|
+
height: 45px;
|
|
26
|
+
padding: 6px 11px 7px;
|
|
27
|
+
border: 1px solid @color_e5e5e5;
|
|
28
|
+
border-radius: 8px;
|
|
29
|
+
outline: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.@{ant-prefix}-select-selection-overflow {
|
|
33
|
+
display: flex;
|
|
34
|
+
width: 100%;
|
|
35
|
+
transform: translateY(8px);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.@{ant-prefix}-select-selection-overflow-item {
|
|
39
|
+
max-width: 25%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.@{ant-prefix}-select-selection-overflow-item .@{ant-prefix}-select-selection-search {
|
|
43
|
+
padding: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.@{ant-prefix}-select-multiple.@{ant-prefix}-select-lg .@{ant-prefix}-select-selection-item {
|
|
48
|
+
width: auto;
|
|
49
|
+
height: auto;
|
|
50
|
+
margin: 0 4px 4px 0;
|
|
51
|
+
padding: 1px 4px;
|
|
52
|
+
color: @color_333;
|
|
53
|
+
font-size: @font-size-sm;
|
|
54
|
+
line-height: 17px;
|
|
55
|
+
background-color: @white;
|
|
56
|
+
border: 1px solid @color_ccc;
|
|
57
|
+
border-radius: 4px;
|
|
58
|
+
}
|
|
59
|
+
|
|
13
60
|
.@{ant-prefix}-select-allow-clear {
|
|
14
61
|
.@{ant-prefix}-select-clear {
|
|
15
62
|
right: 16px;
|
|
@@ -19,7 +66,7 @@
|
|
|
19
66
|
.@{ant-prefix}-select-single.@{ant-prefix}-select-lg:not(.@{ant-prefix}-select-customize-input)
|
|
20
67
|
.@{ant-prefix}-select-selector {
|
|
21
68
|
height: 45px;
|
|
22
|
-
border: 1px solid
|
|
69
|
+
border: 1px solid @color_e5e5e5;
|
|
23
70
|
border-radius: 8px;
|
|
24
71
|
outline: none;
|
|
25
72
|
}
|
|
@@ -46,7 +93,7 @@
|
|
|
46
93
|
top: 44%;
|
|
47
94
|
width: 22px;
|
|
48
95
|
height: 22px;
|
|
49
|
-
color:
|
|
96
|
+
color: @color_7d7d7d;
|
|
50
97
|
|
|
51
98
|
.spotecicon {
|
|
52
99
|
width: 22px;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
package/lib/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export type { ConditionInputProps } from './condition-input';
|
|
|
6
6
|
export { default as ConditionInput } from './condition-input';
|
|
7
7
|
export type { ConfigProviderProps } from './config-provider';
|
|
8
8
|
export { default as ConfigProvider } from './config-provider';
|
|
9
|
+
export { default as NumberFormat } from './number-format';
|
|
10
|
+
export type { NumberFormatProps } from './number-format';
|
|
9
11
|
export type { CopyToClipboardProps } from './copy-to-clipboard';
|
|
10
12
|
export { default as CopyToClipboard } from './copy-to-clipboard';
|
|
11
13
|
export type { HighlightTextareaProps } from './highlight-textarea';
|
package/lib/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", {
|
|
10
10
|
value: true
|
|
11
11
|
});
|
|
12
|
-
exports.beautifulDnd = exports.RichTextEditor = exports.LabelCustomizeRangePicker = exports.LabelTreeSelect = exports.LabelConditionInput = exports.LabelNumberInput = exports.LabelAutoComplete = exports.LabelDatePicker = exports.LabelRangePicker = exports.LabelTextArea = exports.LabelSelect = exports.LabelInput = exports.TextInput = exports.TextArea = exports.SplitPane = exports.sortableHoc = exports.SingleImgUpload = exports.RcTransitionGroup = exports.RcQRcode = exports.RcEcharts = exports.StepNumberInput = exports.NumberInput = exports.RcMotion = exports.KeepTab = exports.ImgCrop = exports.HighlightWords = exports.HighlightTextarea = exports.CopyToClipboard = exports.ConfigProvider = exports.ConditionInput = exports.ButtonModal = exports.ButtonDrawer = void 0;
|
|
12
|
+
exports.beautifulDnd = exports.RichTextEditor = exports.LabelCustomizeRangePicker = exports.LabelTreeSelect = exports.LabelConditionInput = exports.LabelNumberInput = exports.LabelAutoComplete = exports.LabelDatePicker = exports.LabelRangePicker = exports.LabelTextArea = exports.LabelSelect = exports.LabelInput = exports.TextInput = exports.TextArea = exports.SplitPane = exports.sortableHoc = exports.SingleImgUpload = exports.RcTransitionGroup = exports.RcQRcode = exports.RcEcharts = exports.StepNumberInput = exports.NumberInput = exports.RcMotion = exports.KeepTab = exports.ImgCrop = exports.HighlightWords = exports.HighlightTextarea = exports.CopyToClipboard = exports.NumberFormat = exports.ConfigProvider = exports.ConditionInput = exports.ButtonModal = exports.ButtonDrawer = void 0;
|
|
13
13
|
|
|
14
14
|
var button_drawer_1 = require("./button-drawer");
|
|
15
15
|
|
|
@@ -47,6 +47,15 @@ Object.defineProperty(exports, "ConfigProvider", {
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
+
var number_format_1 = require("./number-format");
|
|
51
|
+
|
|
52
|
+
Object.defineProperty(exports, "NumberFormat", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function get() {
|
|
55
|
+
return __importDefault(number_format_1)["default"];
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
50
59
|
var copy_to_clipboard_1 = require("./copy-to-clipboard");
|
|
51
60
|
|
|
52
61
|
Object.defineProperty(exports, "CopyToClipboard", {
|
|
@@ -110,7 +110,10 @@ var LabelSelect = function LabelSelect(props) {
|
|
|
110
110
|
'label-select': true,
|
|
111
111
|
'label-select-label-scale': open || !(0, lodash_1.isUndefined)(value) && !(0, lodash_1.isNull)(value)
|
|
112
112
|
}, className)
|
|
113
|
-
}, react_1["default"].createElement(select_1["default"], __assign({
|
|
113
|
+
}, react_1["default"].createElement(select_1["default"], __assign({
|
|
114
|
+
maxTagCount: 3,
|
|
115
|
+
showSearch: false
|
|
116
|
+
}, (0, omit_1["default"])(props, ['open', 'onChange', 'className', 'label']), {
|
|
114
117
|
open: open,
|
|
115
118
|
ref: selectRef,
|
|
116
119
|
size: "large",
|
|
@@ -1792,6 +1792,39 @@ html {
|
|
|
1792
1792
|
width: 100%;
|
|
1793
1793
|
height: 100%;
|
|
1794
1794
|
}
|
|
1795
|
+
.label-select .ant-select {
|
|
1796
|
+
width: 100%;
|
|
1797
|
+
}
|
|
1798
|
+
.label-select .ant-select-multiple .ant-select-selector {
|
|
1799
|
+
height: 45px;
|
|
1800
|
+
padding: 6px 11px 7px;
|
|
1801
|
+
border: 1px solid #e5e5e5;
|
|
1802
|
+
border-radius: 8px;
|
|
1803
|
+
outline: none;
|
|
1804
|
+
}
|
|
1805
|
+
.label-select .ant-select-multiple .ant-select-selection-overflow {
|
|
1806
|
+
display: flex;
|
|
1807
|
+
width: 100%;
|
|
1808
|
+
transform: translateY(8px);
|
|
1809
|
+
}
|
|
1810
|
+
.label-select .ant-select-multiple .ant-select-selection-overflow-item {
|
|
1811
|
+
max-width: 25%;
|
|
1812
|
+
}
|
|
1813
|
+
.label-select .ant-select-multiple .ant-select-selection-overflow-item .ant-select-selection-search {
|
|
1814
|
+
padding: 0;
|
|
1815
|
+
}
|
|
1816
|
+
.label-select .ant-select-multiple.ant-select-lg .ant-select-selection-item {
|
|
1817
|
+
width: auto;
|
|
1818
|
+
height: auto;
|
|
1819
|
+
margin: 0 4px 4px 0;
|
|
1820
|
+
padding: 1px 4px;
|
|
1821
|
+
color: #333;
|
|
1822
|
+
font-size: 12px;
|
|
1823
|
+
line-height: 17px;
|
|
1824
|
+
background-color: #fff;
|
|
1825
|
+
border: 1px solid #ccc;
|
|
1826
|
+
border-radius: 4px;
|
|
1827
|
+
}
|
|
1795
1828
|
.label-select .ant-select-allow-clear .ant-select-clear {
|
|
1796
1829
|
right: 16px;
|
|
1797
1830
|
}
|
|
@@ -3,13 +3,60 @@
|
|
|
3
3
|
@import '../../style/themes/default.less';
|
|
4
4
|
|
|
5
5
|
@color_9aa5b5: #9aa5b5;
|
|
6
|
+
@color_e5e5e5: #e5e5e5;
|
|
7
|
+
@color_7d7d7d: #7d7d7d;
|
|
8
|
+
@color_333: #333;
|
|
9
|
+
@color_ccc: #ccc;
|
|
10
|
+
@white: #fff;
|
|
6
11
|
@font-size-base: 14px;
|
|
12
|
+
@font-size-sm: @font-size-base - 2px;
|
|
7
13
|
|
|
8
14
|
.label-select {
|
|
9
15
|
position: relative;
|
|
10
16
|
width: 100%;
|
|
11
17
|
height: 100%;
|
|
12
18
|
|
|
19
|
+
.@{ant-prefix}-select {
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.@{ant-prefix}-select-multiple {
|
|
24
|
+
.@{ant-prefix}-select-selector {
|
|
25
|
+
height: 45px;
|
|
26
|
+
padding: 6px 11px 7px;
|
|
27
|
+
border: 1px solid @color_e5e5e5;
|
|
28
|
+
border-radius: 8px;
|
|
29
|
+
outline: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.@{ant-prefix}-select-selection-overflow {
|
|
33
|
+
display: flex;
|
|
34
|
+
width: 100%;
|
|
35
|
+
transform: translateY(8px);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.@{ant-prefix}-select-selection-overflow-item {
|
|
39
|
+
max-width: 25%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.@{ant-prefix}-select-selection-overflow-item .@{ant-prefix}-select-selection-search {
|
|
43
|
+
padding: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.@{ant-prefix}-select-multiple.@{ant-prefix}-select-lg .@{ant-prefix}-select-selection-item {
|
|
48
|
+
width: auto;
|
|
49
|
+
height: auto;
|
|
50
|
+
margin: 0 4px 4px 0;
|
|
51
|
+
padding: 1px 4px;
|
|
52
|
+
color: @color_333;
|
|
53
|
+
font-size: @font-size-sm;
|
|
54
|
+
line-height: 17px;
|
|
55
|
+
background-color: @white;
|
|
56
|
+
border: 1px solid @color_ccc;
|
|
57
|
+
border-radius: 4px;
|
|
58
|
+
}
|
|
59
|
+
|
|
13
60
|
.@{ant-prefix}-select-allow-clear {
|
|
14
61
|
.@{ant-prefix}-select-clear {
|
|
15
62
|
right: 16px;
|
|
@@ -19,7 +66,7 @@
|
|
|
19
66
|
.@{ant-prefix}-select-single.@{ant-prefix}-select-lg:not(.@{ant-prefix}-select-customize-input)
|
|
20
67
|
.@{ant-prefix}-select-selector {
|
|
21
68
|
height: 45px;
|
|
22
|
-
border: 1px solid
|
|
69
|
+
border: 1px solid @color_e5e5e5;
|
|
23
70
|
border-radius: 8px;
|
|
24
71
|
outline: none;
|
|
25
72
|
}
|
|
@@ -46,7 +93,7 @@
|
|
|
46
93
|
top: 44%;
|
|
47
94
|
width: 22px;
|
|
48
95
|
height: 22px;
|
|
49
|
-
color:
|
|
96
|
+
color: @color_7d7d7d;
|
|
50
97
|
|
|
51
98
|
.spotecicon {
|
|
52
99
|
width: 22px;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __importDefault = this && this.__importDefault || function (mod) {
|
|
4
|
+
return mod && mod.__esModule ? mod : {
|
|
5
|
+
"default": mod
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10
|
+
value: true
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var react_number_format_1 = __importDefault(require("react-number-format"));
|
|
14
|
+
|
|
15
|
+
exports["default"] = react_number_format_1["default"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.21",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"node": ">=10.0.0"
|
|
71
71
|
},
|
|
72
72
|
"license": "MIT",
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "dc14748328f7a1cd7db2b84c8819c163299a8475"
|
|
74
74
|
}
|