@qn-pandora/pandora-component 4.1.5 → 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 CHANGED
@@ -1,6 +1,52 @@
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
+ },
27
+ {
28
+ "version": "4.1.6",
29
+ "tag": "@qn-pandora/pandora-component_v4.1.6",
30
+ "date": "Fri, 25 Aug 2023 10:29:46 GMT",
31
+ "comments": {
32
+ "patch": [
33
+ {
34
+ "comment": "2023-08-25发包"
35
+ }
36
+ ],
37
+ "dependency": [
38
+ {
39
+ "comment": "Updating dependency \"@qn-pandora/pandora-component-icons\" from `^3.1.5` to `^3.1.6`"
40
+ },
41
+ {
42
+ "comment": "Updating dependency \"@qn-pandora/app-sdk\" from `^3.1.5` to `^3.1.6`"
43
+ },
44
+ {
45
+ "comment": "Updating dependency \"@qn-pandora/pandora-tools\" from `^2.0.14` to `^2.0.15`"
46
+ }
47
+ ]
48
+ }
49
+ },
4
50
  {
5
51
  "version": "4.1.5",
6
52
  "tag": "@qn-pandora/pandora-component_v4.1.5",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,20 @@
1
1
  # Change Log - @qn-pandora/pandora-component
2
2
 
3
- This log was last generated on Fri, 25 Aug 2023 09:17:44 GMT and should not be manually modified.
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发包
11
+
12
+ ## 4.1.6
13
+ Fri, 25 Aug 2023 10:29:46 GMT
14
+
15
+ ### Patches
16
+
17
+ - 2023-08-25发包
4
18
 
5
19
  ## 4.1.5
6
20
  Fri, 25 Aug 2023 09:17:44 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);
@@ -184,6 +184,7 @@
184
184
  border-bottom-width: 0px;
185
185
  background-color: #fafafa;
186
186
  font-weight: 500;
187
+ position: relative;
187
188
  }
188
189
  .pandora-sdk-collapse-primary > .ant-collapse-item > .ant-collapse-header .pandora-sdk-header-line {
189
190
  width: 2px;
@@ -31,6 +31,7 @@
31
31
  border-bottom-width: 0px;
32
32
  background-color: @table-thead-bg;
33
33
  font-weight: 500;
34
+ position: relative;
34
35
  .@{sdk-prefix}-header-line {
35
36
  width: 2px;
36
37
  height: 16px;
@@ -328,4 +328,5 @@
328
328
  }
329
329
  .pandora-sdk-descriptions .ant-descriptions-item-content {
330
330
  color: #333;
331
+ overflow: hidden;
331
332
  }
@@ -11,5 +11,6 @@
11
11
 
12
12
  .@{ant-prefix}-descriptions-item-content {
13
13
  color: @font-color-7;
14
+ overflow: hidden;
14
15
  }
15
16
  }
@@ -1,10 +1,10 @@
1
1
  export var datetime_en = {
2
- title: 'Time range',
3
- clear: 'Clear custom',
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: 'Date & Time Range',
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 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',
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 to date',
30
- month: 'Month to date',
31
- quarter: 'Quarter to date',
32
- year: 'Year to date',
29
+ week: 'This Week',
30
+ month: 'This Month',
31
+ quarter: 'This Quarter',
32
+ year: 'This Year',
33
33
  yesterDay: 'Yesterday',
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'
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 time',
42
+ title: 'Relative Time',
43
+ change_time: 'Change Time',
44
44
  now_text: 'Now',
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'
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'