@zohodesk/dot 1.0.0-temp-224.1 → 1.0.0-temp-187.22
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 +11 -6
- package/es/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
- package/es/form/fields/Fields.module.css +4 -1
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -6
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +6 -2
- package/es/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +3 -0
- package/es/list/SecondaryText/AccountName.js +23 -8
- package/es/list/SecondaryText/ContactName.js +18 -6
- package/es/list/SecondaryText/DepartmentText.js +13 -6
- package/es/list/SecondaryText/Email.js +19 -7
- package/es/list/SecondaryText/PhoneNumber.js +19 -7
- package/es/list/SecondaryText/PriorityText.js +13 -6
- package/es/list/SecondaryText/SecondaryText.js +17 -8
- package/es/list/SecondaryText/SecondaryText.module.css +40 -24
- package/es/list/SecondaryText/StatusText.js +13 -6
- package/es/list/SecondaryText/TicketId.js +8 -2
- package/es/list/SecondaryText/Website.js +16 -5
- package/es/list/SecondaryText/__tests__/__snapshots__/AccountName.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/ContactName.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/DepartmentText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/Email.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/PhoneNumber.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/PriorityText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/SecondaryText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/StatusText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/Website.spec.js.snap +6 -2
- package/es/list/SecondaryText/props/defaultProps.js +18 -0
- package/es/list/SecondaryText/props/propTypes.js +21 -0
- package/es/list/Subject/Subject.js +28 -12
- package/es/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
- package/es/list/Subject/props/defaultProps.js +3 -1
- package/es/list/Subject/props/propTypes.js +5 -1
- package/es/list/status/StatusDropdown/StatusDropdown.js +7 -2
- package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/es/list/status/StatusDropdown/props/propTypes.js +4 -1
- package/es/list/status/StatusListItem/StatusListItem.js +4 -2
- package/es/list/status/StatusListItem/StatusListItem.module.css +43 -17
- package/lib/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
- package/lib/form/fields/Fields.module.css +4 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +12 -7
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +2 -0
- package/lib/list/SecondaryText/AccountName.js +27 -8
- package/lib/list/SecondaryText/ContactName.js +21 -6
- package/lib/list/SecondaryText/DepartmentText.js +15 -6
- package/lib/list/SecondaryText/Email.js +22 -7
- package/lib/list/SecondaryText/PhoneNumber.js +22 -7
- package/lib/list/SecondaryText/PriorityText.js +15 -6
- package/lib/list/SecondaryText/SecondaryText.js +26 -8
- package/lib/list/SecondaryText/SecondaryText.module.css +40 -24
- package/lib/list/SecondaryText/StatusText.js +15 -6
- package/lib/list/SecondaryText/TicketId.js +10 -2
- package/lib/list/SecondaryText/Website.js +18 -5
- package/lib/list/SecondaryText/__tests__/__snapshots__/AccountName.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/ContactName.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/DepartmentText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/Email.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/PhoneNumber.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/PriorityText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/SecondaryText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/StatusText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/Website.spec.js.snap +6 -2
- package/lib/list/SecondaryText/props/defaultProps.js +18 -0
- package/lib/list/SecondaryText/props/propTypes.js +22 -0
- package/lib/list/Subject/Subject.js +40 -13
- package/lib/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
- package/lib/list/Subject/props/defaultProps.js +3 -1
- package/lib/list/Subject/props/propTypes.js +6 -1
- package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -2
- package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/lib/list/status/StatusDropdown/props/propTypes.js +3 -1
- package/lib/list/status/StatusListItem/StatusListItem.js +4 -2
- package/lib/list/status/StatusListItem/StatusListItem.module.css +43 -17
- package/package.json +4 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
+
import { propTypes as typographyProps } from '@zohodesk/components/es/Typography/props/propTypes';
|
|
2
3
|
export const propTypes = {
|
|
3
4
|
className: PropTypes.string,
|
|
4
5
|
dataId: PropTypes.string,
|
|
@@ -16,5 +17,8 @@ export const propTypes = {
|
|
|
16
17
|
LinkProps: PropTypes.object,
|
|
17
18
|
TextProps: PropTypes.object
|
|
18
19
|
}),
|
|
19
|
-
whiteSpace: PropTypes.oneOf(['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces'])
|
|
20
|
+
whiteSpace: PropTypes.oneOf(['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']),
|
|
21
|
+
// Highlight props
|
|
22
|
+
isHighlighted: PropTypes.bool,
|
|
23
|
+
highlightData: typographyProps.$ui_highlightConfig
|
|
20
24
|
};
|
|
@@ -178,8 +178,12 @@ export class StatusDropdown extends React.Component {
|
|
|
178
178
|
targetOffset,
|
|
179
179
|
renderTargetElement,
|
|
180
180
|
renderFooterElement,
|
|
181
|
-
a11y = {}
|
|
181
|
+
a11y = {},
|
|
182
|
+
customClass
|
|
182
183
|
} = this.props;
|
|
184
|
+
const {
|
|
185
|
+
dropBoxClass = ''
|
|
186
|
+
} = customClass;
|
|
183
187
|
const {
|
|
184
188
|
tabIndex = 0,
|
|
185
189
|
ariaLabelledby,
|
|
@@ -247,7 +251,8 @@ export class StatusDropdown extends React.Component {
|
|
|
247
251
|
isAnimate: true,
|
|
248
252
|
getRef: getContainerRef,
|
|
249
253
|
customClass: {
|
|
250
|
-
customDropBoxWrap: style.dropBoxContainer
|
|
254
|
+
customDropBoxWrap: style.dropBoxContainer,
|
|
255
|
+
customDropBox: dropBoxClass
|
|
251
256
|
},
|
|
252
257
|
needResponsive: needResponsive,
|
|
253
258
|
isResponsivePadding: true,
|
|
@@ -56,5 +56,8 @@ export const propTypes = {
|
|
|
56
56
|
positionsOffset: PropTypes.object,
|
|
57
57
|
renderTargetElement: PropTypes.func,
|
|
58
58
|
renderFooterElement: PropTypes.node,
|
|
59
|
-
targetOffset: PropTypes.object
|
|
59
|
+
targetOffset: PropTypes.object,
|
|
60
|
+
customClass: PropTypes.shape({
|
|
61
|
+
dropBoxClass: PropTypes.string
|
|
62
|
+
})
|
|
60
63
|
};
|
|
@@ -90,7 +90,7 @@ export default class StatusListItem extends React.Component {
|
|
|
90
90
|
"aria-label": ariaLabel,
|
|
91
91
|
"data-a11y-inset-focus": insetFocus,
|
|
92
92
|
isCover: false,
|
|
93
|
-
align: "
|
|
93
|
+
align: "vertical",
|
|
94
94
|
alignBox: "row",
|
|
95
95
|
className: `${style.list} ${style[size]} ${style[palette]} ${active ? style.active : highlight && !isDisabled ? style.hover : ''} ${autoHover && !isDisabled ? style.effect : ''} ${needTick ? style.withTick : ''} ${isDisabled ? CssProvider('isDisable') : ''} ${needBorder ? style.withBorder : ''} ${customClass}`,
|
|
96
96
|
dataId: String(value).replace("'", '_'),
|
|
@@ -102,6 +102,8 @@ export default class StatusListItem extends React.Component {
|
|
|
102
102
|
tabindex: isDisabled ? '-1' : '0',
|
|
103
103
|
...options,
|
|
104
104
|
...a11y
|
|
105
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
106
|
+
className: style.contentWrapper
|
|
105
107
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
106
108
|
className: `${style.statusType} ${style[bulletColor]}`
|
|
107
109
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
@@ -120,7 +122,7 @@ export default class StatusListItem extends React.Component {
|
|
|
120
122
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
121
123
|
name: "ZD-ticknew",
|
|
122
124
|
size: "8"
|
|
123
|
-
})) : null);
|
|
125
|
+
})) : null));
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
.varClass {
|
|
2
|
+
--statuslistitem_multiline_lineheight: 1.5385;
|
|
3
|
+
--statuslistitem_font_size: var(--zd_font_size13);
|
|
4
|
+
--statuslistitem_min_height: var(--zd_size35);
|
|
5
|
+
}
|
|
6
|
+
|
|
1
7
|
.list {
|
|
8
|
+
composes: varClass;
|
|
2
9
|
color: var(--zdt_statuslistitem_list_text);
|
|
3
|
-
font-size: var(--
|
|
10
|
+
font-size: var(--statuslistitem_font_size);
|
|
4
11
|
position: relative;
|
|
5
12
|
list-style: none;
|
|
6
|
-
min-height: var(--
|
|
13
|
+
min-height: var(--statuslistitem_min_height);
|
|
7
14
|
cursor: pointer;
|
|
8
15
|
}
|
|
9
16
|
[dir=ltr] .withBorder {
|
|
@@ -22,7 +29,7 @@
|
|
|
22
29
|
padding: var(--zd_size7) var(--zd_size20) ;
|
|
23
30
|
}
|
|
24
31
|
.large {
|
|
25
|
-
|
|
32
|
+
--statuslistitem_min_height: var(--zd_size48);
|
|
26
33
|
}
|
|
27
34
|
[dir=ltr] .large {
|
|
28
35
|
padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25) ;
|
|
@@ -36,9 +43,8 @@
|
|
|
36
43
|
.value {
|
|
37
44
|
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
38
45
|
}
|
|
39
|
-
.multiLineValue{
|
|
40
|
-
|
|
41
|
-
composes: clamp from '~@zohodesk/components/es/common/common.module.css';
|
|
46
|
+
.multiLineValue {
|
|
47
|
+
composes: lineClamp from '~@zohodesk/components/es/common/common.module.css';
|
|
42
48
|
}
|
|
43
49
|
[dir=ltr] .withBorder.active {
|
|
44
50
|
border-left-color: var(--zdt_statuslistitem_default_active_border);
|
|
@@ -88,24 +94,44 @@
|
|
|
88
94
|
[dir=rtl] .active.withTick {
|
|
89
95
|
padding-left: var(--zd_size39) ;
|
|
90
96
|
}
|
|
97
|
+
.contentWrapper {
|
|
98
|
+
composes: dflex flexrow alignVertical from '~@zohodesk/components/es/common/common.module.css';
|
|
99
|
+
width: 100% ;
|
|
100
|
+
}
|
|
91
101
|
/* Status Type */
|
|
92
|
-
.statusType
|
|
93
|
-
|
|
94
|
-
|
|
102
|
+
.statusType{
|
|
103
|
+
position: relative;
|
|
104
|
+
composes: dflex alignVertical alignHorizontal from '~@zohodesk/components/es/common/common.module.css';
|
|
105
|
+
align-self: flex-start;
|
|
106
|
+
min-height: calc(var(--statuslistitem_font_size) * var(--statuslistitem_multiline_lineheight));
|
|
107
|
+
min-width: var(--zd_size20) ;
|
|
108
|
+
}
|
|
109
|
+
.statusType::after{
|
|
110
|
+
/* css:validation:ignore */
|
|
111
|
+
--status_listitem_bullet_min_height: var(--zd_font_size8);
|
|
112
|
+
/* css:validation:ignore */
|
|
113
|
+
--status_listitem_bullet_min_width: var(--zd_font_size8);
|
|
114
|
+
|
|
115
|
+
content: '';
|
|
116
|
+
height: var(--status_listitem_bullet_min_height);
|
|
117
|
+
width: var(--status_listitem_bullet_min_width);
|
|
118
|
+
/* css:theme-validation:ignore */
|
|
95
119
|
border-radius: 50%;
|
|
120
|
+
background-color: var(--zdt_statuslistitem_black_bg);
|
|
96
121
|
}
|
|
97
|
-
[dir=ltr] .statusType
|
|
98
|
-
margin-right: var(--
|
|
122
|
+
[dir=ltr] .statusType::after{
|
|
123
|
+
margin-right: var(--zd_size12) ;
|
|
99
124
|
}
|
|
100
|
-
[dir=rtl] .statusType
|
|
101
|
-
margin-left: var(--
|
|
125
|
+
[dir=rtl] .statusType::after{
|
|
126
|
+
margin-left: var(--zd_size12) ;
|
|
102
127
|
}
|
|
103
|
-
|
|
128
|
+
|
|
129
|
+
.black.statusType::after {
|
|
104
130
|
background-color: var(--zdt_statuslistitem_black_bg);
|
|
105
131
|
}
|
|
106
|
-
.orange {
|
|
132
|
+
.orange.statusType::after {
|
|
107
133
|
background-color: var(--zdt_statuslistitem_orange_bg);
|
|
108
134
|
}
|
|
109
|
-
.green {
|
|
135
|
+
.green.statusType::after {
|
|
110
136
|
background-color: var(--zdt_statuslistitem_green_bg);
|
|
111
|
-
}
|
|
137
|
+
}
|
|
@@ -73,15 +73,16 @@ exports[`CheckBoxField rendering the custom children 1`] = `
|
|
|
73
73
|
data-selector-id="fieldContainer"
|
|
74
74
|
data-test-id="containerComponent"
|
|
75
75
|
>
|
|
76
|
-
<
|
|
77
|
-
class="
|
|
78
|
-
pointer checkboxText undefined cbTextPointer "
|
|
76
|
+
<div
|
|
77
|
+
class="inlineFlex row alignItems_center container default checkboxText"
|
|
79
78
|
data-id="undefined_label"
|
|
80
|
-
data-selector-id="
|
|
79
|
+
data-selector-id="undefined_label"
|
|
81
80
|
data-test-id="undefined_label"
|
|
82
81
|
>
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
<label
|
|
83
|
+
class="size14 font_semibold label"
|
|
84
|
+
/>
|
|
85
|
+
</div>
|
|
85
86
|
</div>
|
|
86
87
|
</div>
|
|
87
88
|
</div>
|
|
@@ -164,15 +165,16 @@ exports[`CheckBoxField rendering the custom label children via renderLabelProps
|
|
|
164
165
|
data-selector-id="fieldContainer"
|
|
165
166
|
data-test-id="containerComponent"
|
|
166
167
|
>
|
|
167
|
-
<
|
|
168
|
-
class="
|
|
169
|
-
pointer checkboxText undefined cbTextPointer "
|
|
168
|
+
<div
|
|
169
|
+
class="inlineFlex row alignItems_center container default checkboxText"
|
|
170
170
|
data-id="undefined_label"
|
|
171
|
-
data-selector-id="
|
|
171
|
+
data-selector-id="undefined_label"
|
|
172
172
|
data-test-id="undefined_label"
|
|
173
173
|
>
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
<label
|
|
175
|
+
class="size14 font_semibold label"
|
|
176
|
+
/>
|
|
177
|
+
</div>
|
|
176
178
|
{}
|
|
177
179
|
</div>
|
|
178
180
|
</div>
|
|
@@ -255,15 +257,16 @@ exports[`CheckBoxField rendering the defult props 1`] = `
|
|
|
255
257
|
data-selector-id="fieldContainer"
|
|
256
258
|
data-test-id="containerComponent"
|
|
257
259
|
>
|
|
258
|
-
<
|
|
259
|
-
class="
|
|
260
|
-
pointer checkboxText undefined cbTextPointer "
|
|
260
|
+
<div
|
|
261
|
+
class="inlineFlex row alignItems_center container default checkboxText"
|
|
261
262
|
data-id="undefined_label"
|
|
262
|
-
data-selector-id="
|
|
263
|
+
data-selector-id="undefined_label"
|
|
263
264
|
data-test-id="undefined_label"
|
|
264
265
|
>
|
|
265
|
-
|
|
266
|
-
|
|
266
|
+
<label
|
|
267
|
+
class="size14 font_semibold label"
|
|
268
|
+
/>
|
|
269
|
+
</div>
|
|
267
270
|
</div>
|
|
268
271
|
</div>
|
|
269
272
|
</div>
|
|
@@ -226,7 +226,10 @@ position: relative;
|
|
|
226
226
|
[dir=rtl] .rightPlaceholder{
|
|
227
227
|
left:var(--zd_size15)
|
|
228
228
|
}
|
|
229
|
-
|
|
230
229
|
.phoneField{
|
|
231
230
|
composes: ltr-zone from '~@zohodesk/components/es/common/common.module.css';
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.lineClampPickListItem{
|
|
234
|
+
--line-clamp: var(--picklist-field-line-clamp,3);
|
|
232
235
|
}
|
|
@@ -222,13 +222,17 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
222
222
|
_customClass$listItem = customClass.listItemClass,
|
|
223
223
|
listItemClass = _customClass$listItem === void 0 ? '' : _customClass$listItem,
|
|
224
224
|
_customClass$textBoxI = customClass.textBoxIconWrapperClass,
|
|
225
|
-
textBoxIconWrapperClass = _customClass$textBoxI === void 0 ? '' : _customClass$textBoxI
|
|
225
|
+
textBoxIconWrapperClass = _customClass$textBoxI === void 0 ? '' : _customClass$textBoxI,
|
|
226
|
+
_customClass$dropBoxC = customClass.dropBoxClass,
|
|
227
|
+
dropBoxClass = _customClass$dropBoxC === void 0 ? '' : _customClass$dropBoxC;
|
|
226
228
|
var _customProps$TextBoxI = customProps.TextBoxIconProps,
|
|
227
229
|
TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
|
|
228
230
|
_customProps$TagWrapp = customProps.TagWrapperProps,
|
|
229
231
|
TagWrapperProps = _customProps$TagWrapp === void 0 ? {} : _customProps$TagWrapp,
|
|
230
232
|
_customProps$TagProps = customProps.TagProps,
|
|
231
|
-
TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps
|
|
233
|
+
TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps,
|
|
234
|
+
_customProps$ListItem = customProps.ListItemProps,
|
|
235
|
+
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem;
|
|
232
236
|
var isEditable = !isReadOnly;
|
|
233
237
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
234
238
|
className: "".concat(_TagsMultiSelectModule["default"].container, " ").concat(!isReadOnly ? " ".concat(needBorder ? _TagsMultiSelectModule["default"].hasBorder : '', "\n ").concat(needBorder ? _TagsMultiSelectModule["default"]["borderColor_".concat(borderColor)] : _TagsMultiSelectModule["default"].borderColor_transparent, " ").concat(isPopupReady && needBorder || isEditable && isFocus ? _TagsMultiSelectModule["default"].active : '') : '', " ").concat(className),
|
|
@@ -306,7 +310,8 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
306
310
|
boxPosition: boxPosition,
|
|
307
311
|
isPadding: false,
|
|
308
312
|
customClass: {
|
|
309
|
-
customDropBoxWrap: _TagsMultiSelectModule["default"].dropdown
|
|
313
|
+
customDropBoxWrap: _TagsMultiSelectModule["default"].dropdown,
|
|
314
|
+
customDropBox: dropBoxClass
|
|
310
315
|
},
|
|
311
316
|
dataId: "".concat(dataId, "_dropbox"),
|
|
312
317
|
isResponsivePadding: true,
|
|
@@ -337,8 +342,8 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
337
342
|
}, searchList.map(function (item, index) {
|
|
338
343
|
var name = item.name,
|
|
339
344
|
isNew = item.isNew,
|
|
340
|
-
|
|
341
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/_react["default"].createElement(_DropDownSeparator["default"], null) : null, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
|
|
345
|
+
listProps = item.listProps;
|
|
346
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/_react["default"].createElement(_DropDownSeparator["default"], null) : null, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], _extends({
|
|
342
347
|
key: index,
|
|
343
348
|
index: index,
|
|
344
349
|
autoHover: true,
|
|
@@ -349,9 +354,9 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
349
354
|
highlight: selectSearchIndex === index,
|
|
350
355
|
getRef: _this3.getSelectedItemRef,
|
|
351
356
|
isDisabled: listDisabled,
|
|
352
|
-
customProps:
|
|
357
|
+
customProps: listProps,
|
|
353
358
|
customClass: listItemClass
|
|
354
|
-
}, isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
359
|
+
}, ListItemProps), isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
355
360
|
alignBox: "row",
|
|
356
361
|
align: "vertical"
|
|
357
362
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
@@ -62,7 +62,8 @@ var propTypes = {
|
|
|
62
62
|
customProps: _propTypes["default"].shape({
|
|
63
63
|
TextBoxIconProps: _propTypes["default"].object,
|
|
64
64
|
TagWrapperProps: _propTypes["default"].object,
|
|
65
|
-
TagProps: _propTypes["default"].object
|
|
65
|
+
TagProps: _propTypes["default"].object,
|
|
66
|
+
ListItemProps: _propTypes["default"].object
|
|
66
67
|
}),
|
|
67
68
|
isFocus: _propTypes["default"].bool
|
|
68
69
|
};
|
|
@@ -25,6 +25,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
27
|
|
|
28
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
|
+
|
|
28
30
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
31
|
|
|
30
32
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -100,7 +102,10 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
|
|
|
100
102
|
onSearch = _this$props3.onSearch,
|
|
101
103
|
needSearchFetching = _this$props3.needSearchFetching,
|
|
102
104
|
searchStr = _this$props3.searchStr,
|
|
103
|
-
i18nKeys = _this$props3.i18nKeys
|
|
105
|
+
i18nKeys = _this$props3.i18nKeys,
|
|
106
|
+
customProps = _this$props3.customProps;
|
|
107
|
+
var _customProps$ToggleDr = customProps.ToggleDropDownProps,
|
|
108
|
+
ToggleDropDownProps = _customProps$ToggleDr === void 0 ? {} : _customProps$ToggleDr;
|
|
104
109
|
var _i18nKeys$title = i18nKeys.title,
|
|
105
110
|
title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
|
|
106
111
|
_i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
|
|
@@ -109,7 +114,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
|
|
|
109
114
|
searchErrorText = _i18nKeys$searchError === void 0 ? 'No results' : _i18nKeys$searchError,
|
|
110
115
|
_i18nKeys$placeholder = i18nKeys.placeholder,
|
|
111
116
|
placeholder = _i18nKeys$placeholder === void 0 ? 'Search Department' : _i18nKeys$placeholder;
|
|
112
|
-
return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], {
|
|
117
|
+
return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], _extends({}, ToggleDropDownProps, {
|
|
113
118
|
title: title,
|
|
114
119
|
options: departmentList,
|
|
115
120
|
value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
|
|
@@ -138,7 +143,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
|
|
|
138
143
|
isNextOptions: isNextOptions,
|
|
139
144
|
onSearch: onSearch,
|
|
140
145
|
needSearchFetching: needSearchFetching
|
|
141
|
-
});
|
|
146
|
+
}));
|
|
142
147
|
}
|
|
143
148
|
}]);
|
|
144
149
|
|
|
@@ -31,5 +31,7 @@ var propTypes = (_propTypes = {
|
|
|
31
31
|
searchEmptyText: _propTypes2["default"].string,
|
|
32
32
|
searchErrorText: _propTypes2["default"].string,
|
|
33
33
|
placeholder: _propTypes2["default"].string
|
|
34
|
+
})), _defineProperty(_propTypes, "customProps", _propTypes2["default"].shape({
|
|
35
|
+
ToggleDropDownProps: _propTypes2["default"].object
|
|
34
36
|
})), _propTypes);
|
|
35
37
|
exports.propTypes = propTypes;
|
|
@@ -15,6 +15,10 @@ var _propTypes = require("./props/propTypes");
|
|
|
15
15
|
|
|
16
16
|
var _Layout = require("@zohodesk/components/es/Layout");
|
|
17
17
|
|
|
18
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
19
|
+
|
|
20
|
+
var _Common = require("@zohodesk/components/es/utils/Common");
|
|
21
|
+
|
|
18
22
|
var _Link = _interopRequireDefault(require("../../Link/Link"));
|
|
19
23
|
|
|
20
24
|
var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
|
|
@@ -77,6 +81,8 @@ var AccountName = /*#__PURE__*/function (_Component) {
|
|
|
77
81
|
secondaryAccountHref = _this$props.secondaryAccountHref,
|
|
78
82
|
secondaryAccountClick = _this$props.secondaryAccountClick,
|
|
79
83
|
secondaryAccountText = _this$props.secondaryAccountText,
|
|
84
|
+
highlightData = _this$props.highlightData,
|
|
85
|
+
isHighlighted = _this$props.isHighlighted,
|
|
80
86
|
customProps = _this$props.customProps;
|
|
81
87
|
var _customProps$LinkProp = customProps.LinkProps,
|
|
82
88
|
LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
|
|
@@ -109,17 +115,30 @@ var AccountName = /*#__PURE__*/function (_Component) {
|
|
|
109
115
|
className: _SecondaryTextModule["default"].link
|
|
110
116
|
}, LinkProps, {
|
|
111
117
|
ariaLabel: "Account Name ".concat(text)
|
|
112
|
-
}), /*#__PURE__*/_react["default"].createElement("
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
}), /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
119
|
+
$tagAttributes_text: TextProps,
|
|
120
|
+
$ui_size: "12",
|
|
121
|
+
$flag_dotted: true,
|
|
122
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].linkWithText, " ").concat(className ? className : ''),
|
|
123
|
+
$ui_weight: fontWeight,
|
|
124
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
125
|
+
}, text)) : /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
126
|
+
$tagAttributes_text: TextProps,
|
|
127
|
+
$ui_size: "12",
|
|
128
|
+
$flag_dotted: true,
|
|
129
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : ''),
|
|
130
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
131
|
+
}, text)), secondaryAccountText && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
117
132
|
href: secondaryAccountHref,
|
|
118
133
|
onClick: secondaryAccountClick,
|
|
119
134
|
className: _SecondaryTextModule["default"].link
|
|
120
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
121
|
-
|
|
122
|
-
|
|
135
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
136
|
+
$tagAttributes_text: SecondaryTextProps,
|
|
137
|
+
$ui_size: "12",
|
|
138
|
+
$flag_dotted: true,
|
|
139
|
+
$ui_weight: fontWeight,
|
|
140
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].linkWithText, " ").concat(className ? className : '')
|
|
141
|
+
}, secondaryAccountText))))));
|
|
123
142
|
}
|
|
124
143
|
}]);
|
|
125
144
|
|
|
@@ -15,6 +15,10 @@ var _propTypes = require("./props/propTypes");
|
|
|
15
15
|
|
|
16
16
|
var _Layout = require("@zohodesk/components/es/Layout");
|
|
17
17
|
|
|
18
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
19
|
+
|
|
20
|
+
var _Common = require("@zohodesk/components/es/utils/Common");
|
|
21
|
+
|
|
18
22
|
var _Link = _interopRequireDefault(require("../../Link/Link"));
|
|
19
23
|
|
|
20
24
|
var _SentimentStatus = _interopRequireDefault(require("../SentimentStatus/SentimentStatus"));
|
|
@@ -81,6 +85,8 @@ var ContactName = /*#__PURE__*/function (_Component) {
|
|
|
81
85
|
notAccessible = _this$props$notAccess === void 0 ? false : _this$props$notAccess,
|
|
82
86
|
fontWeight = _this$props.fontWeight,
|
|
83
87
|
i18nKeys = _this$props.i18nKeys,
|
|
88
|
+
highlightData = _this$props.highlightData,
|
|
89
|
+
isHighlighted = _this$props.isHighlighted,
|
|
84
90
|
customProps = _this$props.customProps;
|
|
85
91
|
var _i18nKeys$sentimentTi = i18nKeys.sentimentTitles,
|
|
86
92
|
sentimentTitles = _i18nKeys$sentimentTi === void 0 ? {
|
|
@@ -119,12 +125,21 @@ var ContactName = /*#__PURE__*/function (_Component) {
|
|
|
119
125
|
className: _SecondaryTextModule["default"].link
|
|
120
126
|
}, LinkProps, {
|
|
121
127
|
ariaLabel: "Contact Name ".concat(text)
|
|
122
|
-
}), /*#__PURE__*/_react["default"].createElement("
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
+
}), /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
129
|
+
$flag_dotted: true,
|
|
130
|
+
$ui_size: "12",
|
|
131
|
+
$ui_weight: fontWeight,
|
|
132
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].linkWithText, " ").concat(className ? className : ''),
|
|
133
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
134
|
+
}, text)) : /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
135
|
+
$tagAttributes_text: TextProps,
|
|
136
|
+
$ui_size: "12",
|
|
137
|
+
$flag_dotted: true,
|
|
138
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : ''),
|
|
139
|
+
$ui_weight: fontWeight,
|
|
140
|
+
$i18n_dataTitle: dataTitle,
|
|
141
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
142
|
+
}, text)), sentimentType && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_SentimentStatus["default"], {
|
|
128
143
|
type: sentimentType,
|
|
129
144
|
dataTitle: sentimentDataTitle
|
|
130
145
|
})));
|
|
@@ -11,6 +11,10 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _propTypes = require("./props/propTypes");
|
|
13
13
|
|
|
14
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
15
|
+
|
|
16
|
+
var _Common = require("@zohodesk/components/es/utils/Common");
|
|
17
|
+
|
|
14
18
|
var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
|
|
15
19
|
|
|
16
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -57,12 +61,17 @@ var DepartmentText = /*#__PURE__*/function (_Component) {
|
|
|
57
61
|
className = _this$props.className,
|
|
58
62
|
text = _this$props.text,
|
|
59
63
|
dataTitle = _this$props.dataTitle,
|
|
60
|
-
dataId = _this$props.dataId
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
|
|
64
|
+
dataId = _this$props.dataId,
|
|
65
|
+
isHighlighted = _this$props.isHighlighted,
|
|
66
|
+
highlightData = _this$props.highlightData;
|
|
67
|
+
return /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
68
|
+
$ui_size: "12",
|
|
69
|
+
$flag_dotted: true,
|
|
70
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].departmentText, " ").concat(className ? className : ''),
|
|
71
|
+
$i18n_dataTitle: dataTitle,
|
|
72
|
+
customId: dataId,
|
|
73
|
+
testId: dataId,
|
|
74
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
66
75
|
}, text);
|
|
67
76
|
}
|
|
68
77
|
}]);
|
|
@@ -13,6 +13,10 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
17
|
+
|
|
18
|
+
var _Common = require("@zohodesk/components/es/utils/Common");
|
|
19
|
+
|
|
16
20
|
var _Link = _interopRequireDefault(require("../../Link/Link"));
|
|
17
21
|
|
|
18
22
|
var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
|
|
@@ -69,7 +73,9 @@ var Email = /*#__PURE__*/function (_Component) {
|
|
|
69
73
|
isLink = _this$props.isLink,
|
|
70
74
|
target = _this$props.target,
|
|
71
75
|
fontWeight = _this$props.fontWeight,
|
|
72
|
-
customProps = _this$props.customProps
|
|
76
|
+
customProps = _this$props.customProps,
|
|
77
|
+
isHighlighted = _this$props.isHighlighted,
|
|
78
|
+
highlightData = _this$props.highlightData;
|
|
73
79
|
var _customProps$LinkProp = customProps.LinkProps,
|
|
74
80
|
LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
|
|
75
81
|
_customProps$TextProp = customProps.TextProps,
|
|
@@ -81,12 +87,21 @@ var Email = /*#__PURE__*/function (_Component) {
|
|
|
81
87
|
urlName: urlName,
|
|
82
88
|
target: target,
|
|
83
89
|
className: _SecondaryTextModule["default"].link
|
|
84
|
-
}, LinkProps), /*#__PURE__*/_react["default"].createElement("
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
+
}, LinkProps), /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
91
|
+
$flag_dotted: true,
|
|
92
|
+
$ui_size: "12",
|
|
93
|
+
$ui_weight: fontWeight,
|
|
94
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].linkWithText, " ").concat(className ? className : ''),
|
|
95
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
96
|
+
}, text)) : /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
97
|
+
$tagAttributes_text: TextProps,
|
|
98
|
+
$ui_size: "12",
|
|
99
|
+
$flag_dotted: true,
|
|
100
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : ''),
|
|
101
|
+
$ui_weight: fontWeight,
|
|
102
|
+
$i18n_dataTitle: title,
|
|
103
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
104
|
+
}, text));
|
|
90
105
|
}
|
|
91
106
|
}]);
|
|
92
107
|
|