@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/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/Drawer/style.less';
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';
@@ -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
- // close icon hover 颜色
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);
@@ -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,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.datetime_en = {
4
- title: 'Time range',
5
- clear: 'Clear custom',
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: 'Date & Time Range',
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 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',
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 to date',
32
- month: 'Month to date',
33
- quarter: 'Quarter to date',
34
- year: 'Year to date',
31
+ week: 'This Week',
32
+ month: 'This Month',
33
+ quarter: 'This Quarter',
34
+ year: 'This Year',
35
35
  yesterDay: 'Yesterday',
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'
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 time',
44
+ title: 'Relative Time',
45
+ change_time: 'Change Time',
46
46
  now_text: 'Now',
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'
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'