@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/CHANGELOG.json
CHANGED
@@ -1,6 +1,29 @@
|
|
1
1
|
{
|
2
2
|
"name": "@qn-pandora/pandora-component",
|
3
3
|
"entries": [
|
4
|
+
{
|
5
|
+
"version": "4.1.7",
|
6
|
+
"tag": "@qn-pandora/pandora-component_v4.1.7",
|
7
|
+
"date": "Tue, 29 Aug 2023 06:22:20 GMT",
|
8
|
+
"comments": {
|
9
|
+
"patch": [
|
10
|
+
{
|
11
|
+
"comment": "2023-08-29发包"
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"dependency": [
|
15
|
+
{
|
16
|
+
"comment": "Updating dependency \"@qn-pandora/pandora-component-icons\" from `^3.1.6` to `^3.1.7`"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"comment": "Updating dependency \"@qn-pandora/app-sdk\" from `^3.1.6` to `^3.1.7`"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"comment": "Updating dependency \"@qn-pandora/pandora-tools\" from `^2.0.15` to `^2.0.16`"
|
23
|
+
}
|
24
|
+
]
|
25
|
+
}
|
26
|
+
},
|
4
27
|
{
|
5
28
|
"version": "4.1.6",
|
6
29
|
"tag": "@qn-pandora/pandora-component_v4.1.6",
|
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
# Change Log - @qn-pandora/pandora-component
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Tue, 29 Aug 2023 06:22:20 GMT and should not be manually modified.
|
4
|
+
|
5
|
+
## 4.1.7
|
6
|
+
Tue, 29 Aug 2023 06:22:20 GMT
|
7
|
+
|
8
|
+
### Patches
|
9
|
+
|
10
|
+
- 2023-08-29发包
|
4
11
|
|
5
12
|
## 4.1.6
|
6
13
|
Fri, 25 Aug 2023 10:29:46 GMT
|
@@ -36,15 +36,16 @@ export var ECollapseType;
|
|
36
36
|
export function Collapse(props) {
|
37
37
|
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"]);
|
38
38
|
var position = useMemo(function () {
|
39
|
-
return type === ECollapseType.Primary && !expandIconPosition
|
39
|
+
return type === ECollapseType.Primary && !expandIconPosition && !onDelete
|
40
40
|
? 'right'
|
41
41
|
: expandIconPosition || 'left';
|
42
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
42
43
|
}, [expandIconPosition, type]);
|
43
44
|
var showArrow = useMemo(function () {
|
44
45
|
return type !== ECollapseType.Dashed;
|
45
46
|
}, [type]);
|
46
47
|
var getExtra = useCallback(function (index) {
|
47
|
-
if (type === ECollapseType.Dashed) {
|
48
|
+
if (type === ECollapseType.Dashed || onDelete) {
|
48
49
|
return (React.createElement(DeleteOutlined, { onClick: function () {
|
49
50
|
if (onDelete) {
|
50
51
|
onDelete(index);
|
@@ -1,10 +1,10 @@
|
|
1
1
|
export var datetime_en = {
|
2
|
-
title: 'Time
|
3
|
-
clear: 'Clear
|
2
|
+
title: 'Time Range',
|
3
|
+
clear: 'Clear Custom',
|
4
4
|
clart_text: 'Click to apply the global time range',
|
5
5
|
confirm: 'Confirm',
|
6
6
|
range: {
|
7
|
-
title: '
|
7
|
+
title: 'Absolute Time',
|
8
8
|
beforeTime: 'Before',
|
9
9
|
afterTime: 'Since',
|
10
10
|
betweenTime: 'Between',
|
@@ -13,45 +13,45 @@ export var datetime_en = {
|
|
13
13
|
},
|
14
14
|
preset: {
|
15
15
|
title: 'Presets',
|
16
|
-
m5: 'Last 5
|
17
|
-
m15: 'Last 15
|
18
|
-
m30: 'Last 30
|
19
|
-
m60: 'Last 60
|
20
|
-
h3: 'Last 3
|
21
|
-
h4: 'Last 4
|
22
|
-
h6: 'Last 6
|
23
|
-
h12: 'Last 12
|
24
|
-
h24: 'Last 24
|
25
|
-
d3: 'Last 3
|
26
|
-
d7: 'Last 7
|
27
|
-
d30: 'Last 30
|
16
|
+
m5: 'Last 5 Minutes',
|
17
|
+
m15: 'Last 15 Minutes',
|
18
|
+
m30: 'Last 30 Minutes',
|
19
|
+
m60: 'Last 60 Minutes',
|
20
|
+
h3: 'Last 3 Hours',
|
21
|
+
h4: 'Last 4 Hours',
|
22
|
+
h6: 'Last 6 Hours',
|
23
|
+
h12: 'Last 12 Hours',
|
24
|
+
h24: 'Last 24 Hours',
|
25
|
+
d3: 'Last 3 Days',
|
26
|
+
d7: 'Last 7 Days',
|
27
|
+
d30: 'Last 30 Days',
|
28
28
|
today: 'Today',
|
29
|
-
week: 'Week
|
30
|
-
month: 'Month
|
31
|
-
quarter: 'Quarter
|
32
|
-
year: 'Year
|
29
|
+
week: 'This Week',
|
30
|
+
month: 'This Month',
|
31
|
+
quarter: 'This Quarter',
|
32
|
+
year: 'This Year',
|
33
33
|
yesterDay: 'Yesterday',
|
34
|
-
theDayBeforYesterDay: 'Day
|
35
|
-
previousWeek: 'Previous
|
36
|
-
previousMonth: 'Previous
|
37
|
-
previousQuarter: 'Previous
|
38
|
-
previousYear: 'Previous
|
39
|
-
AllTime: 'All
|
34
|
+
theDayBeforYesterDay: 'Day Before Yesterday',
|
35
|
+
previousWeek: 'Previous Week',
|
36
|
+
previousMonth: 'Previous Month',
|
37
|
+
previousQuarter: 'Previous Quarter',
|
38
|
+
previousYear: 'Previous Year',
|
39
|
+
AllTime: 'All Time'
|
40
40
|
},
|
41
41
|
relative: {
|
42
|
-
title: 'Relative',
|
43
|
-
change_time: 'Change
|
42
|
+
title: 'Relative Time',
|
43
|
+
change_time: 'Change Time',
|
44
44
|
now_text: 'Now',
|
45
|
-
now: 'Now (
|
46
|
-
'now-static': 'Now (
|
47
|
-
s: ' seconds
|
48
|
-
m: '
|
49
|
-
h: '
|
50
|
-
d: '
|
51
|
-
w: ' weeks
|
52
|
-
M: ' months
|
53
|
-
Q: ' quarters
|
54
|
-
y: ' years
|
45
|
+
now: 'Now (Realtime)',
|
46
|
+
'now-static': 'Now (Fixed)',
|
47
|
+
s: ' seconds Ago',
|
48
|
+
m: ' Minutes Ago',
|
49
|
+
h: ' Hours Ago',
|
50
|
+
d: ' Days Ago',
|
51
|
+
w: ' weeks Ago',
|
52
|
+
M: ' months Ago',
|
53
|
+
Q: ' quarters Ago',
|
54
|
+
y: ' years Ago'
|
55
55
|
},
|
56
56
|
quarter: {
|
57
57
|
title: 'Quarter'
|