@zohodesk/dot 1.0.0-beta.179 → 1.0.0-beta.182
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/README.md +12 -0
- package/es/ExternalLink/ExternalLink.js +10 -5
- package/es/ExternalLink/__tests__/ExternalLink.spec.js +0 -1
- package/es/Link/Link.js +7 -4
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +14 -6
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +2 -4
- package/es/list/Icons/AddNewIcon.js +1 -1
- package/es/list/Icons/CompleteIcon.js +1 -1
- package/es/list/Icons/DeleteIcon.js +1 -1
- package/es/list/Icons/EditIcon.js +1 -1
- package/es/list/Icons/ReadUnreadIcon.js +4 -2
- package/es/list/Icons/SmartIcon.js +1 -1
- package/es/list/SecondaryText/AccountName.js +23 -9
- package/es/list/SecondaryText/ContactName.js +18 -6
- package/es/list/SecondaryText/Email.js +19 -7
- package/es/list/SecondaryText/PhoneNumber.js +19 -7
- package/es/list/SecondaryText/TicketId.js +18 -6
- package/es/list/Subject/Subject.js +18 -6
- package/es/list/status/StatusListItem/StatusListItem.js +0 -2
- package/es/utils/General.js +0 -1
- package/es/utils/KeyboardApi.js +3 -1
- package/es/utils/editorUtils.js +0 -1
- package/lib/Drawer/Drawer.js +1 -1
- package/lib/ExternalLink/ExternalLink.js +10 -5
- package/lib/FormAction/FormAction.js +1 -1
- package/lib/Link/Link.js +7 -4
- package/lib/Message/Message.js +1 -1
- package/lib/docs/formDocs.js +52 -52
- package/lib/docs/generalDocs.js +250 -250
- package/lib/docs/lookupDocs.js +70 -70
- package/lib/docs/setupDocs.js +32 -32
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -4
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +2 -2
- package/lib/index.js +4 -4
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
- package/lib/layout/SetupDetailLayout/index.js +6 -6
- package/lib/layout/SubtabLayout/SubtabLayout.js +1 -1
- package/lib/layout/SubtabLayout/index.js +8 -8
- package/lib/list/Icons/AddNewIcon.js +1 -1
- package/lib/list/Icons/CompleteIcon.js +1 -1
- package/lib/list/Icons/DeleteIcon.js +1 -1
- package/lib/list/Icons/EditIcon.js +1 -1
- package/lib/list/Icons/ReadUnreadIcon.js +4 -2
- package/lib/list/Icons/SmartIcon.js +1 -1
- package/lib/list/ListLayout/ListLayout.js +1 -1
- package/lib/list/SecondaryText/AccountName.js +24 -9
- package/lib/list/SecondaryText/ContactName.js +18 -6
- package/lib/list/SecondaryText/Email.js +19 -7
- package/lib/list/SecondaryText/PhoneNumber.js +19 -7
- package/lib/list/SecondaryText/TicketId.js +18 -6
- package/lib/list/SecondaryText/index.js +22 -22
- package/lib/list/SecondryPanel/SecondryPanel.js +1 -1
- package/lib/list/Subject/Subject.js +18 -6
- package/lib/utils/ChannelIconMapping.js +1 -1
- package/lib/utils/General.js +3 -3
- package/lib/utils/KeyboardApi.js +3 -1
- package/lib/utils/editorUtils.js +6 -6
- package/lib/version2/GlobalNotification/GlobalNotification.js +1 -1
- package/package.json +5 -5
- package/src/ExternalLink/ExternalLink.js +8 -3
- package/src/Link/Link.js +7 -3
- package/src/form/fields/TagsMultiSelect/TagsMultiSelect.js +11 -4
- package/src/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +2 -2
- package/src/list/Icons/AddNewIcon.js +1 -1
- package/src/list/Icons/CompleteIcon.js +1 -1
- package/src/list/Icons/DeleteIcon.js +1 -1
- package/src/list/Icons/EditIcon.js +1 -1
- package/src/list/Icons/ReadUnreadIcon.js +5 -4
- package/src/list/Icons/SmartIcon.js +1 -1
- package/src/list/SecondaryText/AccountName.js +13 -3
- package/src/list/SecondaryText/ContactName.js +11 -2
- package/src/list/SecondaryText/Email.js +12 -3
- package/src/list/SecondaryText/PhoneNumber.js +12 -3
- package/src/list/SecondaryText/TicketId.js +12 -3
- package/src/list/Subject/Subject.js +12 -4
|
@@ -25,12 +25,14 @@ export default class ExternalLink extends React.Component {
|
|
|
25
25
|
children,
|
|
26
26
|
rel,
|
|
27
27
|
dataId,
|
|
28
|
-
onClick
|
|
28
|
+
onClick,
|
|
29
|
+
customProps
|
|
29
30
|
} = this.props;
|
|
30
31
|
const urlOutput =
|
|
31
32
|
href && typeof href !== 'boolean'
|
|
32
33
|
? this.addHttp(String(href))
|
|
33
34
|
: 'javascript:void(0);';
|
|
35
|
+
|
|
34
36
|
return (
|
|
35
37
|
<a
|
|
36
38
|
href={urlOutput}
|
|
@@ -40,6 +42,7 @@ export default class ExternalLink extends React.Component {
|
|
|
40
42
|
rel={rel}
|
|
41
43
|
data-id={dataId}
|
|
42
44
|
onClick={onClick}
|
|
45
|
+
{...customProps}
|
|
43
46
|
>
|
|
44
47
|
{children}
|
|
45
48
|
</a>
|
|
@@ -49,7 +52,8 @@ export default class ExternalLink extends React.Component {
|
|
|
49
52
|
|
|
50
53
|
ExternalLink.defaultProps = {
|
|
51
54
|
rel: 'noopener noreferrer',
|
|
52
|
-
target: '_blank'
|
|
55
|
+
target: '_blank',
|
|
56
|
+
customProps:{}
|
|
53
57
|
};
|
|
54
58
|
|
|
55
59
|
ExternalLink.propTypes = {
|
|
@@ -60,7 +64,8 @@ ExternalLink.propTypes = {
|
|
|
60
64
|
rel: PropTypes.string,
|
|
61
65
|
target: PropTypes.oneOf(['_blank', '_self']),
|
|
62
66
|
title: PropTypes.string,
|
|
63
|
-
onClick: PropTypes.func
|
|
67
|
+
onClick: PropTypes.func,
|
|
68
|
+
customProps:PropTypes.object
|
|
64
69
|
};
|
|
65
70
|
|
|
66
71
|
if (__DOCS__) {
|
package/src/Link/Link.js
CHANGED
|
@@ -44,7 +44,8 @@ export default class Link extends React.Component {
|
|
|
44
44
|
title,
|
|
45
45
|
download,
|
|
46
46
|
rel,
|
|
47
|
-
dataId
|
|
47
|
+
dataId,
|
|
48
|
+
customProps
|
|
48
49
|
} = this.props;
|
|
49
50
|
let { isLink, constructURL } = this.context.options;
|
|
50
51
|
let urlOutput = href ? href : constructURL(urlName, urlData);
|
|
@@ -84,6 +85,7 @@ export default class Link extends React.Component {
|
|
|
84
85
|
data-id={dataId}
|
|
85
86
|
{...others}
|
|
86
87
|
onClick={this.onCallBack.bind(this, urlOutput, href)}
|
|
88
|
+
{...customProps}
|
|
87
89
|
>
|
|
88
90
|
{children}
|
|
89
91
|
</a>
|
|
@@ -95,7 +97,8 @@ Link.contextType = LinkContext;
|
|
|
95
97
|
|
|
96
98
|
Link.defaultProps = {
|
|
97
99
|
rel: 'noopener noreferrer',
|
|
98
|
-
hasReload: false
|
|
100
|
+
hasReload: false,
|
|
101
|
+
customProps:{}
|
|
99
102
|
};
|
|
100
103
|
Link.propTypes = {
|
|
101
104
|
children: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
@@ -107,7 +110,8 @@ Link.propTypes = {
|
|
|
107
110
|
target: PropTypes.oneOf(['_blank', '_self']),
|
|
108
111
|
title: PropTypes.string,
|
|
109
112
|
urlData: PropTypes.object,
|
|
110
|
-
urlName: PropTypes.string
|
|
113
|
+
urlName: PropTypes.string,
|
|
114
|
+
customProps:PropTypes.object
|
|
111
115
|
};
|
|
112
116
|
|
|
113
117
|
if (__DOCS__) {
|
|
@@ -25,9 +25,14 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
onScroll() {
|
|
28
|
-
let { onScroll, name, noMoreData } = this.props;
|
|
28
|
+
let { onScroll, name, noMoreData, searchList } = this.props;
|
|
29
|
+
let {
|
|
30
|
+
containerRef
|
|
31
|
+
} = this;
|
|
29
32
|
if (findScrollEnd(this.containerRef) && !noMoreData) {
|
|
30
33
|
onScroll(name);
|
|
34
|
+
let selectItemRef = this[`selectedList_${searchList.length-1}`];
|
|
35
|
+
scrollTo(containerRef, selectItemRef);
|
|
31
36
|
}
|
|
32
37
|
}
|
|
33
38
|
|
|
@@ -52,9 +57,11 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
52
57
|
}
|
|
53
58
|
}, 300);
|
|
54
59
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
60
|
+
if(selectSearchIndex != prevProps.selectSearchIndex){
|
|
61
|
+
let selectItemRef = this[`selectedList_${selectSearchIndex}`];
|
|
62
|
+
let { containerRef } = this;
|
|
63
|
+
scrollTo(containerRef, selectItemRef);
|
|
64
|
+
}
|
|
58
65
|
}
|
|
59
66
|
|
|
60
67
|
emptySearchSVG() {
|
|
@@ -110,7 +110,7 @@ const TagsMultiSelectField = props => {
|
|
|
110
110
|
} else if (keyCode === 40) {
|
|
111
111
|
updateSelectedSuggestionIndex(prevSelectedSuggestionIndex => {
|
|
112
112
|
let newIndex =
|
|
113
|
-
prevSelectedSuggestionIndex
|
|
113
|
+
prevSelectedSuggestionIndex >= options.length - 1
|
|
114
114
|
? 0
|
|
115
115
|
: prevSelectedSuggestionIndex + 1;
|
|
116
116
|
return newIndex;
|
|
@@ -118,7 +118,7 @@ const TagsMultiSelectField = props => {
|
|
|
118
118
|
} else if (keyCode === 38) {
|
|
119
119
|
updateSelectedSuggestionIndex(prevSelectedSuggestionIndex => {
|
|
120
120
|
let newIndex =
|
|
121
|
-
prevSelectedSuggestionIndex <= 0
|
|
121
|
+
(prevSelectedSuggestionIndex <= 0 || prevSelectedSuggestionIndex >= options.length - 1)
|
|
122
122
|
? options.length - 1
|
|
123
123
|
: prevSelectedSuggestionIndex - 1;
|
|
124
124
|
return newIndex;
|
|
@@ -15,7 +15,7 @@ export default class CompleteIcon extends React.Component {
|
|
|
15
15
|
data-id={dataId}
|
|
16
16
|
data-title={dataTitle}
|
|
17
17
|
>
|
|
18
|
-
<Icon name='ZD-GN-checkbox' iconClass={iconClass} size={iconSize} />
|
|
18
|
+
<Icon name='ZD-GN-checkbox' iconClass={iconClass?iconClass:''} size={iconSize} />
|
|
19
19
|
</span>
|
|
20
20
|
);
|
|
21
21
|
}
|
|
@@ -16,7 +16,7 @@ export default class DeleteComponent extends React.Component {
|
|
|
16
16
|
data-id={dataId}
|
|
17
17
|
data-title={dataTitle}
|
|
18
18
|
>
|
|
19
|
-
<Icon name='ZD-GN-delete' iconClass={iconClass} size={iconSize} />
|
|
19
|
+
<Icon name='ZD-GN-delete' iconClass={iconClass?iconClass:''} size={iconSize} />
|
|
20
20
|
</span>
|
|
21
21
|
);
|
|
22
22
|
}
|
|
@@ -16,7 +16,7 @@ export default class EditIcon extends React.Component {
|
|
|
16
16
|
data-id={dataId}
|
|
17
17
|
data-title={dataTitle}
|
|
18
18
|
>
|
|
19
|
-
<Icon name='ZD-GN-edit' iconClass={iconClass} size={iconSize} />
|
|
19
|
+
<Icon name='ZD-GN-edit' iconClass={iconClass?iconClass:''} size={iconSize} />
|
|
20
20
|
</span>
|
|
21
21
|
);
|
|
22
22
|
}
|
|
@@ -5,7 +5,7 @@ import style from './Icons.module.css';
|
|
|
5
5
|
|
|
6
6
|
export default class ReadUnreadIcon extends React.Component {
|
|
7
7
|
render() {
|
|
8
|
-
let { onClick, dataId, dataTitle, iconClass, className, isRead, iconSize } =
|
|
8
|
+
let { onClick, dataId, dataTitle, iconClassName, iconClass, className, isRead, iconSize } =
|
|
9
9
|
this.props;
|
|
10
10
|
return (
|
|
11
11
|
<span
|
|
@@ -17,9 +17,9 @@ export default class ReadUnreadIcon extends React.Component {
|
|
|
17
17
|
data-title={dataTitle}
|
|
18
18
|
>
|
|
19
19
|
<Icon
|
|
20
|
-
name={isRead ? 'ZD-
|
|
20
|
+
name={isRead ? 'ZD-GN-read' : 'ZD-GN-unread'}
|
|
21
21
|
size={iconSize}
|
|
22
|
-
iconClass={iconClass}
|
|
22
|
+
iconClass={`${iconClassName?iconClassName:''} ${iconClass?iconClass:''}`}
|
|
23
23
|
/>
|
|
24
24
|
</span>
|
|
25
25
|
);
|
|
@@ -34,7 +34,8 @@ ReadUnreadIcon.propTypes = {
|
|
|
34
34
|
className: PropTypes.string,
|
|
35
35
|
dataId: PropTypes.string,
|
|
36
36
|
dataTitle: PropTypes.string,
|
|
37
|
-
|
|
37
|
+
iconClassName: PropTypes.string,
|
|
38
|
+
iconClass:PropTypes.string,
|
|
38
39
|
onClick: PropTypes.func,
|
|
39
40
|
isRead: PropTypes.bool,
|
|
40
41
|
iconSize: PropTypes.string
|
|
@@ -26,8 +26,10 @@ export default class AccountName extends Component {
|
|
|
26
26
|
fontWeight,
|
|
27
27
|
secondaryAccountHref,
|
|
28
28
|
secondaryAccountClick,
|
|
29
|
-
secondaryAccountText
|
|
29
|
+
secondaryAccountText,
|
|
30
|
+
customProps
|
|
30
31
|
} = this.props;
|
|
32
|
+
let {LinkProps={}, TextProps={},SecondaryTextProps={}}=customProps;
|
|
31
33
|
return (
|
|
32
34
|
<Container
|
|
33
35
|
alignBox='row'
|
|
@@ -52,7 +54,7 @@ export default class AccountName extends Component {
|
|
|
52
54
|
onClick={onClick}
|
|
53
55
|
dataId={`${dataId}_link`}
|
|
54
56
|
className={style.link}
|
|
55
|
-
|
|
57
|
+
{...LinkProps}
|
|
56
58
|
>
|
|
57
59
|
<div className={`${style.textStyle} ${
|
|
58
60
|
style[`font_${fontWeight}`]
|
|
@@ -65,6 +67,7 @@ export default class AccountName extends Component {
|
|
|
65
67
|
} ${
|
|
66
68
|
className ? className : ''
|
|
67
69
|
} ${notAccessible ? style.disable : ''}`}
|
|
70
|
+
{...TextProps}
|
|
68
71
|
>
|
|
69
72
|
{text}
|
|
70
73
|
</div>
|
|
@@ -80,7 +83,8 @@ export default class AccountName extends Component {
|
|
|
80
83
|
>
|
|
81
84
|
<div className={`${style.textStyle} ${
|
|
82
85
|
style[`font_${fontWeight}`]
|
|
83
|
-
} ${className ? className : ''}`}
|
|
86
|
+
} ${className ? className : ''}`} {...SecondaryTextProps}>
|
|
87
|
+
{secondaryAccountText}</div>
|
|
84
88
|
</Link>
|
|
85
89
|
</Box>
|
|
86
90
|
)
|
|
@@ -106,11 +110,17 @@ AccountName.propTypes = {
|
|
|
106
110
|
secondaryAccountHref: PropTypes.string,
|
|
107
111
|
secondaryAccountClick: PropTypes.func,
|
|
108
112
|
secondaryAccountText: PropTypes.string,
|
|
113
|
+
customProps:PropTypes.shape({
|
|
114
|
+
LinkProps:PropTypes.object,
|
|
115
|
+
TextProps:PropTypes.object,
|
|
116
|
+
SecondaryTextProps:PropTypes.object
|
|
117
|
+
})
|
|
109
118
|
};
|
|
110
119
|
AccountName.defaultProps = {
|
|
111
120
|
isLink: true,
|
|
112
121
|
dataId: 'accountName',
|
|
113
122
|
fontWeight: 'regular',
|
|
123
|
+
customProps:{}
|
|
114
124
|
};
|
|
115
125
|
if (__DOCS__) {
|
|
116
126
|
AccountName.docs = {
|
|
@@ -22,7 +22,8 @@ export default class ContactName extends Component {
|
|
|
22
22
|
href,
|
|
23
23
|
notAccessible = false,
|
|
24
24
|
fontWeight,
|
|
25
|
-
i18nKeys
|
|
25
|
+
i18nKeys,
|
|
26
|
+
customProps
|
|
26
27
|
} = this.props;
|
|
27
28
|
let {
|
|
28
29
|
sentimentTitles = {
|
|
@@ -33,6 +34,7 @@ export default class ContactName extends Component {
|
|
|
33
34
|
paidTitle = 'Paid User'
|
|
34
35
|
} = i18nKeys;
|
|
35
36
|
let sentimentDataTitle = sentimentTitles[sentimentType];
|
|
37
|
+
let {LinkProps={}, TextProps={}}=customProps;
|
|
36
38
|
return (
|
|
37
39
|
<Container
|
|
38
40
|
alignBox='row'
|
|
@@ -55,6 +57,7 @@ export default class ContactName extends Component {
|
|
|
55
57
|
title={dataTitle}
|
|
56
58
|
dataId={`${dataId}_link`}
|
|
57
59
|
className={style.link}
|
|
60
|
+
{...LinkProps}
|
|
58
61
|
>
|
|
59
62
|
<div
|
|
60
63
|
className={`${style.textStyle} ${style[`font_${fontWeight}`]} ${
|
|
@@ -72,6 +75,7 @@ export default class ContactName extends Component {
|
|
|
72
75
|
notAccessible ? style.disable : ''
|
|
73
76
|
}`}
|
|
74
77
|
data-title={dataTitle}
|
|
78
|
+
{...TextProps}
|
|
75
79
|
>
|
|
76
80
|
{text}
|
|
77
81
|
</div>
|
|
@@ -111,6 +115,10 @@ ContactName.propTypes = {
|
|
|
111
115
|
neutral: PropTypes.string
|
|
112
116
|
}),
|
|
113
117
|
paidTitle: PropTypes.string
|
|
118
|
+
}),
|
|
119
|
+
customProps:PropTypes.shape({
|
|
120
|
+
LinkProps:PropTypes.object,
|
|
121
|
+
TextProps:PropTypes.object
|
|
114
122
|
})
|
|
115
123
|
};
|
|
116
124
|
ContactName.defaultProps = {
|
|
@@ -118,7 +126,8 @@ ContactName.defaultProps = {
|
|
|
118
126
|
isLink: true,
|
|
119
127
|
dataId: 'contactName',
|
|
120
128
|
fontWeight: 'regular',
|
|
121
|
-
i18nKeys: {}
|
|
129
|
+
i18nKeys: {},
|
|
130
|
+
customProps:{}
|
|
122
131
|
};
|
|
123
132
|
if (__DOCS__) {
|
|
124
133
|
ContactName.docs = {
|
|
@@ -20,8 +20,10 @@ export default class Email extends Component {
|
|
|
20
20
|
href,
|
|
21
21
|
isLink,
|
|
22
22
|
target,
|
|
23
|
-
fontWeight
|
|
23
|
+
fontWeight,
|
|
24
|
+
customProps
|
|
24
25
|
} = this.props;
|
|
26
|
+
let {LinkProps={},TextProps={}}=customProps;
|
|
25
27
|
return (
|
|
26
28
|
<React.Fragment>
|
|
27
29
|
{isLink ? (
|
|
@@ -32,6 +34,7 @@ export default class Email extends Component {
|
|
|
32
34
|
urlName={urlName}
|
|
33
35
|
target={target}
|
|
34
36
|
className={style.link}
|
|
37
|
+
{...LinkProps}
|
|
35
38
|
>
|
|
36
39
|
<div className={`${style.textStyle} ${
|
|
37
40
|
style[`font_${fontWeight}`]
|
|
@@ -43,6 +46,7 @@ export default class Email extends Component {
|
|
|
43
46
|
style[`font_${fontWeight}`]
|
|
44
47
|
} ${className ? className : ''}`}
|
|
45
48
|
data-title={title}
|
|
49
|
+
{...TextProps}
|
|
46
50
|
>
|
|
47
51
|
{text}
|
|
48
52
|
</div>
|
|
@@ -61,12 +65,17 @@ Email.propTypes = {
|
|
|
61
65
|
text: PropTypes.string,
|
|
62
66
|
title: PropTypes.string,
|
|
63
67
|
urlData: PropTypes.object,
|
|
64
|
-
urlName: PropTypes.string
|
|
68
|
+
urlName: PropTypes.string,
|
|
69
|
+
customProps:PropTypes.shape({
|
|
70
|
+
LinkProps:PropTypes.object,
|
|
71
|
+
TextProps:PropTypes.object
|
|
72
|
+
})
|
|
65
73
|
};
|
|
66
74
|
|
|
67
75
|
Email.defaultProps = {
|
|
68
76
|
isLink: true,
|
|
69
|
-
fontWeight: 'regular'
|
|
77
|
+
fontWeight: 'regular',
|
|
78
|
+
customProps:{}
|
|
70
79
|
};
|
|
71
80
|
|
|
72
81
|
if (__DOCS__) {
|
|
@@ -22,8 +22,10 @@ export default class PhoneNumber extends Component {
|
|
|
22
22
|
isLink,
|
|
23
23
|
target,
|
|
24
24
|
hasReload,
|
|
25
|
-
fontWeight
|
|
25
|
+
fontWeight,
|
|
26
|
+
customProps
|
|
26
27
|
} = this.props;
|
|
28
|
+
let {LinkProps={}, TextProps={}}=customProps;
|
|
27
29
|
return (
|
|
28
30
|
<React.Fragment>
|
|
29
31
|
{isLink ? (
|
|
@@ -36,6 +38,7 @@ export default class PhoneNumber extends Component {
|
|
|
36
38
|
target={target}
|
|
37
39
|
hasReload={hasReload}
|
|
38
40
|
className={style.link}
|
|
41
|
+
{...LinkProps}
|
|
39
42
|
>
|
|
40
43
|
<div className={`${style.phoneNumber} ${
|
|
41
44
|
style[`font_${fontWeight}`]
|
|
@@ -47,6 +50,7 @@ export default class PhoneNumber extends Component {
|
|
|
47
50
|
style[`font_${fontWeight}`]
|
|
48
51
|
} ${className ? className : ''}`}
|
|
49
52
|
data-title={title}
|
|
53
|
+
{...TextProps}
|
|
50
54
|
>
|
|
51
55
|
{text}
|
|
52
56
|
</div>
|
|
@@ -67,13 +71,18 @@ PhoneNumber.propTypes = {
|
|
|
67
71
|
text: PropTypes.string,
|
|
68
72
|
title: PropTypes.string,
|
|
69
73
|
urlData: PropTypes.object,
|
|
70
|
-
urlName: PropTypes.string
|
|
74
|
+
urlName: PropTypes.string,
|
|
75
|
+
customProps:PropTypes.shape({
|
|
76
|
+
LinkProps:PropTypes.object,
|
|
77
|
+
TextProps:PropTypes.object
|
|
78
|
+
})
|
|
71
79
|
};
|
|
72
80
|
|
|
73
81
|
PhoneNumber.defaultProps = {
|
|
74
82
|
isLink: true,
|
|
75
83
|
hasReload: false,
|
|
76
|
-
fontWeight: 'regular'
|
|
84
|
+
fontWeight: 'regular',
|
|
85
|
+
customProps:{}
|
|
77
86
|
};
|
|
78
87
|
|
|
79
88
|
if (__DOCS__) {
|
|
@@ -18,8 +18,10 @@ export default class TicketId extends Component {
|
|
|
18
18
|
url,
|
|
19
19
|
target,
|
|
20
20
|
urlName,
|
|
21
|
-
urlData
|
|
21
|
+
urlData,
|
|
22
|
+
customProps
|
|
22
23
|
} = this.props;
|
|
24
|
+
let {LinkProps={},TicketIdProps={}}=customProps;
|
|
23
25
|
return (
|
|
24
26
|
<div
|
|
25
27
|
className={`${style.ticketId} ${isLink ? style.ticketIdLink : ''} ${
|
|
@@ -28,6 +30,7 @@ export default class TicketId extends Component {
|
|
|
28
30
|
data-id={dataId}
|
|
29
31
|
data-title={dataTitle}
|
|
30
32
|
onClick={!isLink && onClick}
|
|
33
|
+
{...TicketIdProps}
|
|
31
34
|
>
|
|
32
35
|
{isLink ? (
|
|
33
36
|
<Link
|
|
@@ -36,6 +39,7 @@ export default class TicketId extends Component {
|
|
|
36
39
|
href={url}
|
|
37
40
|
target={target}
|
|
38
41
|
onClick={onClick}
|
|
42
|
+
{...LinkProps}
|
|
39
43
|
>
|
|
40
44
|
{text}
|
|
41
45
|
</Link>
|
|
@@ -56,10 +60,15 @@ TicketId.propTypes = {
|
|
|
56
60
|
text: PropTypes.string,
|
|
57
61
|
url: PropTypes.string,
|
|
58
62
|
urlData: PropTypes.string,
|
|
59
|
-
urlName: PropTypes.string
|
|
63
|
+
urlName: PropTypes.string,
|
|
64
|
+
customProps:PropTypes.shape({
|
|
65
|
+
TicketIdProps:PropTypes.object,
|
|
66
|
+
LinkProps:PropTypes.object
|
|
67
|
+
})
|
|
60
68
|
};
|
|
61
69
|
TicketId.defaultProps = {
|
|
62
|
-
dataId: 'ticketId'
|
|
70
|
+
dataId: 'ticketId',
|
|
71
|
+
customProps:{}
|
|
63
72
|
};
|
|
64
73
|
if (__DOCS__) {
|
|
65
74
|
TicketId.docs = {
|
|
@@ -21,8 +21,10 @@ export default class Subject extends Component {
|
|
|
21
21
|
fontWeight,
|
|
22
22
|
className,
|
|
23
23
|
isDotted,
|
|
24
|
-
children
|
|
24
|
+
children,
|
|
25
|
+
customProps
|
|
25
26
|
} = this.props;
|
|
27
|
+
let {LinkProps={},TextProps={}}=customProps;
|
|
26
28
|
return (
|
|
27
29
|
<React.Fragment>
|
|
28
30
|
{isLink ? (
|
|
@@ -35,7 +37,7 @@ export default class Subject extends Component {
|
|
|
35
37
|
dataId={dataId}
|
|
36
38
|
title={text}
|
|
37
39
|
target={target}
|
|
38
|
-
|
|
40
|
+
{...LinkProps}
|
|
39
41
|
>
|
|
40
42
|
{children? children:text}
|
|
41
43
|
</Link>
|
|
@@ -44,6 +46,7 @@ export default class Subject extends Component {
|
|
|
44
46
|
className={`${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${ fontWeight}`]}`}
|
|
45
47
|
data-title={text}
|
|
46
48
|
data-id={dataId}
|
|
49
|
+
{...TextProps}
|
|
47
50
|
>
|
|
48
51
|
{text}
|
|
49
52
|
</span>
|
|
@@ -64,13 +67,18 @@ Subject.propTypes = {
|
|
|
64
67
|
urlData: PropTypes.object,
|
|
65
68
|
urlName: PropTypes.string,
|
|
66
69
|
isDotted: PropTypes.bool,
|
|
67
|
-
children:PropTypes.node
|
|
70
|
+
children:PropTypes.node,
|
|
71
|
+
customProps:PropTypes.shape({
|
|
72
|
+
LinkProps:PropTypes.object,
|
|
73
|
+
TextProps:PropTypes.object
|
|
74
|
+
})
|
|
68
75
|
};
|
|
69
76
|
Subject.defaultProps = {
|
|
70
77
|
isLink: false,
|
|
71
78
|
fontWeight: 'regular',
|
|
72
79
|
className: '',
|
|
73
|
-
isDotted: true
|
|
80
|
+
isDotted: true,
|
|
81
|
+
customProps:{}
|
|
74
82
|
};
|
|
75
83
|
if (__DOCS__) {
|
|
76
84
|
Subject.docs = {
|