@qn-pandora/pandora-component 4.1.6 → 4.1.7
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/CHANGELOG.json +23 -0
- package/CHANGELOG.md +8 -1
- package/es/components/Collapse/index.js +3 -2
- package/es/components/Collapse/style.css +1 -0
- package/es/components/Collapse/style.less +1 -0
- package/es/components/Descriptions/style.css +1 -0
- package/es/components/Descriptions/style.less +1 -0
- package/es/constants/language/datetime/en.js +37 -37
- package/es/index.css +2721 -2719
- package/es/index.less +4 -4
- package/es/style/theme.less +8 -2
- package/lib/components/Collapse/index.js +3 -2
- package/lib/components/Collapse/style.css +1 -0
- package/lib/components/Collapse/style.less +1 -0
- package/lib/components/Descriptions/style.css +1 -0
- package/lib/components/Descriptions/style.less +1 -0
- package/lib/constants/language/datetime/en.js +37 -37
- package/lib/index.css +2465 -2463
- package/lib/index.less +4 -4
- package/lib/style/theme.less +8 -2
- package/package.json +4 -4
package/es/index.less
CHANGED
@@ -2,24 +2,24 @@
|
|
2
2
|
@import './style/theme.less';
|
3
3
|
@import './components/AutoComplete/style.less';
|
4
4
|
@import './components/Breadcrumb/style.less';
|
5
|
-
@import './components/Button/style.less';
|
6
5
|
@import './components/Card/style.less';
|
6
|
+
@import './components/Button/style.less';
|
7
7
|
@import './components/CheckTransformList/style.less';
|
8
8
|
@import './components/Checkbox/style.less';
|
9
9
|
@import './components/CheckboxList/style.less';
|
10
10
|
@import './components/Collapse/style.less';
|
11
11
|
@import './components/CollapsiblePanel/style.less';
|
12
|
-
@import './components/DateTimePicker/style.less';
|
13
12
|
@import './components/Descriptions/style.less';
|
14
|
-
@import './components/
|
13
|
+
@import './components/DateTimePicker/style.less';
|
15
14
|
@import './components/FileResumable/style.less';
|
15
|
+
@import './components/Drawer/style.less';
|
16
16
|
@import './components/Input/style.less';
|
17
17
|
@import './components/KeyValuePair/style.less';
|
18
18
|
@import './components/Menu/style.less';
|
19
19
|
@import './components/Modal/style.less';
|
20
|
-
@import './components/NameExplainTooltip/style.less';
|
21
20
|
@import './components/NameLimiter/style.less';
|
22
21
|
@import './components/OptionList/style.less';
|
22
|
+
@import './components/NameExplainTooltip/style.less';
|
23
23
|
@import './components/RadioGroup/style.less';
|
24
24
|
@import './components/RangeInput/style.less';
|
25
25
|
@import './components/RemarkName/style.less';
|
package/es/style/theme.less
CHANGED
@@ -110,6 +110,7 @@
|
|
110
110
|
@border-color-normal: #e5e5e5;
|
111
111
|
@border-color-1: #d9d9d9;
|
112
112
|
@border-color-2: #bfbfbf;
|
113
|
+
@border-color-3: #e9e9e9;
|
113
114
|
@modal-header-border-color: rgba(0, 0, 0, 0.09);
|
114
115
|
|
115
116
|
// icon------------------------
|
@@ -384,11 +385,16 @@
|
|
384
385
|
@image-operator-hover-bg: rgba(51, 51, 51, 0.7);
|
385
386
|
@agent-agent-message-background-color: #f7f7f8; // 用户框背景色
|
386
387
|
@agent-user-avatar-color: #e6902d; // 机器人用户头像颜色;
|
387
|
-
|
388
|
-
|
388
|
+
@agent-no-data-background-color: #e0edf8; // close icon hover 颜色
|
389
|
+
@agent-session-title-color: #595959;
|
389
390
|
@close-icon-hover-color: #f4f5f6;
|
390
391
|
|
391
392
|
@agent-markdown-scorll-bar-color: #c9cdd4;
|
392
393
|
@agent-markdown-header-background-color: rgb(52, 53, 65);
|
394
|
+
@agent-box-shadow-color: rgba(53, 53, 53, 0.07);
|
393
395
|
@agent-cursor-color: #282828;
|
396
|
+
@agent-spl-background-color: #edeff2;
|
394
397
|
@agent-input-border-color: #e9e9e9;
|
398
|
+
@agent-border-color: #e8e8e8;
|
399
|
+
@background-color-fa: #fafafa;
|
400
|
+
@background-color-f5: #f5f5f5;
|
@@ -48,15 +48,16 @@ var ECollapseType;
|
|
48
48
|
function Collapse(props) {
|
49
49
|
var children = props.children, className = props.className, _a = props.type, type = _a === void 0 ? ECollapseType.Simple : _a, expandIconPosition = props.expandIconPosition, onDelete = props.onDelete, others = __rest(props, ["children", "className", "type", "expandIconPosition", "onDelete"]);
|
50
50
|
var position = react_1.useMemo(function () {
|
51
|
-
return type === ECollapseType.Primary && !expandIconPosition
|
51
|
+
return type === ECollapseType.Primary && !expandIconPosition && !onDelete
|
52
52
|
? 'right'
|
53
53
|
: expandIconPosition || 'left';
|
54
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
54
55
|
}, [expandIconPosition, type]);
|
55
56
|
var showArrow = react_1.useMemo(function () {
|
56
57
|
return type !== ECollapseType.Dashed;
|
57
58
|
}, [type]);
|
58
59
|
var getExtra = react_1.useCallback(function (index) {
|
59
|
-
if (type === ECollapseType.Dashed) {
|
60
|
+
if (type === ECollapseType.Dashed || onDelete) {
|
60
61
|
return (react_1.default.createElement(icons_1.DeleteOutlined, { onClick: function () {
|
61
62
|
if (onDelete) {
|
62
63
|
onDelete(index);
|
@@ -1,12 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.datetime_en = {
|
4
|
-
title: 'Time
|
5
|
-
clear: 'Clear
|
4
|
+
title: 'Time Range',
|
5
|
+
clear: 'Clear Custom',
|
6
6
|
clart_text: 'Click to apply the global time range',
|
7
7
|
confirm: 'Confirm',
|
8
8
|
range: {
|
9
|
-
title: '
|
9
|
+
title: 'Absolute Time',
|
10
10
|
beforeTime: 'Before',
|
11
11
|
afterTime: 'Since',
|
12
12
|
betweenTime: 'Between',
|
@@ -15,45 +15,45 @@ exports.datetime_en = {
|
|
15
15
|
},
|
16
16
|
preset: {
|
17
17
|
title: 'Presets',
|
18
|
-
m5: 'Last 5
|
19
|
-
m15: 'Last 15
|
20
|
-
m30: 'Last 30
|
21
|
-
m60: 'Last 60
|
22
|
-
h3: 'Last 3
|
23
|
-
h4: 'Last 4
|
24
|
-
h6: 'Last 6
|
25
|
-
h12: 'Last 12
|
26
|
-
h24: 'Last 24
|
27
|
-
d3: 'Last 3
|
28
|
-
d7: 'Last 7
|
29
|
-
d30: 'Last 30
|
18
|
+
m5: 'Last 5 Minutes',
|
19
|
+
m15: 'Last 15 Minutes',
|
20
|
+
m30: 'Last 30 Minutes',
|
21
|
+
m60: 'Last 60 Minutes',
|
22
|
+
h3: 'Last 3 Hours',
|
23
|
+
h4: 'Last 4 Hours',
|
24
|
+
h6: 'Last 6 Hours',
|
25
|
+
h12: 'Last 12 Hours',
|
26
|
+
h24: 'Last 24 Hours',
|
27
|
+
d3: 'Last 3 Days',
|
28
|
+
d7: 'Last 7 Days',
|
29
|
+
d30: 'Last 30 Days',
|
30
30
|
today: 'Today',
|
31
|
-
week: 'Week
|
32
|
-
month: 'Month
|
33
|
-
quarter: 'Quarter
|
34
|
-
year: 'Year
|
31
|
+
week: 'This Week',
|
32
|
+
month: 'This Month',
|
33
|
+
quarter: 'This Quarter',
|
34
|
+
year: 'This Year',
|
35
35
|
yesterDay: 'Yesterday',
|
36
|
-
theDayBeforYesterDay: 'Day
|
37
|
-
previousWeek: 'Previous
|
38
|
-
previousMonth: 'Previous
|
39
|
-
previousQuarter: 'Previous
|
40
|
-
previousYear: 'Previous
|
41
|
-
AllTime: 'All
|
36
|
+
theDayBeforYesterDay: 'Day Before Yesterday',
|
37
|
+
previousWeek: 'Previous Week',
|
38
|
+
previousMonth: 'Previous Month',
|
39
|
+
previousQuarter: 'Previous Quarter',
|
40
|
+
previousYear: 'Previous Year',
|
41
|
+
AllTime: 'All Time'
|
42
42
|
},
|
43
43
|
relative: {
|
44
|
-
title: 'Relative',
|
45
|
-
change_time: 'Change
|
44
|
+
title: 'Relative Time',
|
45
|
+
change_time: 'Change Time',
|
46
46
|
now_text: 'Now',
|
47
|
-
now: 'Now (
|
48
|
-
'now-static': 'Now (
|
49
|
-
s: ' seconds
|
50
|
-
m: '
|
51
|
-
h: '
|
52
|
-
d: '
|
53
|
-
w: ' weeks
|
54
|
-
M: ' months
|
55
|
-
Q: ' quarters
|
56
|
-
y: ' years
|
47
|
+
now: 'Now (Realtime)',
|
48
|
+
'now-static': 'Now (Fixed)',
|
49
|
+
s: ' seconds Ago',
|
50
|
+
m: ' Minutes Ago',
|
51
|
+
h: ' Hours Ago',
|
52
|
+
d: ' Days Ago',
|
53
|
+
w: ' weeks Ago',
|
54
|
+
M: ' months Ago',
|
55
|
+
Q: ' quarters Ago',
|
56
|
+
y: ' years Ago'
|
57
57
|
},
|
58
58
|
quarter: {
|
59
59
|
title: 'Quarter'
|