@zohodesk/dot 1.0.0-temp-224 → 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 +16 -4
- package/es/common/dot_boxShadow.module.css +1 -2
- package/es/form/fields/CheckBoxField/CheckBoxField.js +6 -1
- package/es/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
- package/es/form/fields/CurrencyField/__tests__/__snapshots__/CurrencyField.spec.js.snap +1 -1
- package/es/form/fields/DateField/DateField.js +5 -0
- package/es/form/fields/DateField/__tests__/__snapshots__/DateField.spec.js.snap +1 -1
- package/es/form/fields/Fields.module.css +4 -1
- package/es/form/fields/MultiSelectField/MultiSelectField.js +17 -12
- package/es/form/fields/MultiSelectField/__tests__/__snapshots__/MultiSelectField.spec.js.snap +1 -1
- package/es/form/fields/PhoneField/__tests__/__snapshots__/PhoneField.spec.js.snap +1 -1
- package/es/form/fields/RadioField/RadioField.js +5 -0
- package/es/form/fields/SelectField/SelectField.js +5 -0
- package/es/form/fields/SelectField/__tests__/__snapshots__/SelectField.spec.js.snap +1 -1
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -6
- package/es/form/fields/TagsMultiSelect/__tests__/__snapshots__/TagsMultiSelect.spec.js.snap +1 -1
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +5 -0
- package/es/form/fields/TagsMultiSelectField/__tests__/__snapshots__/TagsMultiSelectField.spec.js.snap +1 -1
- package/es/form/fields/TextBoxField/TextBoxField.js +5 -0
- package/es/form/fields/TextBoxField/__tests__/__snapshots__/TextBoxField.spec.js.snap +1 -1
- package/es/form/fields/TextEditor/TextEditor.js +6 -2
- package/es/form/fields/TextEditor/__tests__/__snapshots__/TextEditor.spec.js.snap +1 -1
- package/es/form/fields/TextEditor/props/defaultProps.js +2 -1
- package/es/form/fields/TextEditor/props/propTypes.js +2 -1
- package/es/form/fields/TextareaField/TextareaField.js +5 -0
- 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/es/lookup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +6 -6
- package/lib/common/dot_boxShadow.module.css +1 -2
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +7 -2
- package/lib/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
- package/lib/form/fields/CurrencyField/__tests__/__snapshots__/CurrencyField.spec.js.snap +1 -1
- package/lib/form/fields/DateField/DateField.js +6 -1
- package/lib/form/fields/DateField/__tests__/__snapshots__/DateField.spec.js.snap +1 -1
- package/lib/form/fields/Fields.module.css +4 -1
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +18 -12
- package/lib/form/fields/MultiSelectField/__tests__/__snapshots__/MultiSelectField.spec.js.snap +1 -1
- package/lib/form/fields/PhoneField/__tests__/__snapshots__/PhoneField.spec.js.snap +1 -1
- package/lib/form/fields/RadioField/RadioField.js +6 -1
- package/lib/form/fields/SelectField/SelectField.js +6 -1
- package/lib/form/fields/SelectField/__tests__/__snapshots__/SelectField.spec.js.snap +1 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +12 -7
- package/lib/form/fields/TagsMultiSelect/__tests__/__snapshots__/TagsMultiSelect.spec.js.snap +1 -1
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +6 -1
- package/lib/form/fields/TagsMultiSelectField/__tests__/__snapshots__/TagsMultiSelectField.spec.js.snap +1 -1
- package/lib/form/fields/TextBoxField/TextBoxField.js +6 -1
- package/lib/form/fields/TextBoxField/__tests__/__snapshots__/TextBoxField.spec.js.snap +1 -1
- package/lib/form/fields/TextEditor/TextEditor.js +5 -2
- package/lib/form/fields/TextEditor/__tests__/__snapshots__/TextEditor.spec.js.snap +1 -1
- package/lib/form/fields/TextEditor/props/defaultProps.js +2 -1
- package/lib/form/fields/TextEditor/props/propTypes.js +2 -1
- package/lib/form/fields/TextareaField/TextareaField.js +6 -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/lib/lookup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +6 -6
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -2,11 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
In this Library, we Provide Some Basic Components to Build Your Application
|
|
4
4
|
|
|
5
|
-
# 1.
|
|
5
|
+
# 1.9.2
|
|
6
|
+
|
|
7
|
+
- **Highlight options added**
|
|
8
|
+
- Account Name, Contact Name, Department Text, Email, Phone Number, Priority, StatusText, TicketID, Website and Subject components
|
|
9
|
+
|
|
10
|
+
# 1.9.1
|
|
11
|
+
|
|
12
|
+
- **CheckBoxField, CurrencyField, DateField, MultiSelectField, RadioField, SelectField, TagsMultiSelectField, TextareaField, TextBoxField, TextEditorField**
|
|
13
|
+
- Accessibility Enhanced Label component has been updated in above components
|
|
14
|
+
(v1 folder components excluded)
|
|
15
|
+
|
|
16
|
+
# 1.9.0
|
|
17
|
+
|
|
18
|
+
- Updated @zohodesk-private/color-variable-preprocessor package - Grayscale introduced
|
|
6
19
|
|
|
7
|
-
- **
|
|
8
|
-
-
|
|
9
|
-
- `CheckBoxField`, `CurrencyField`, `DateField`, `MultiSelectField`, `RadioField`, `SelectField`, `TagsMultiSelectField`, `TextareaField`, `TextBoxField`, `TextEditorField` (v1 folder components excluded)
|
|
20
|
+
- **TextEditor**
|
|
21
|
+
- customClass prop added
|
|
10
22
|
|
|
11
23
|
# 1.8.6
|
|
12
24
|
|
|
@@ -37,8 +37,7 @@
|
|
|
37
37
|
--zd_bs_desktopnotification_container: var(--zd_bs_contrast_outline, 0 4px 20px var(--zdt_desktopnotification_box_shadow));
|
|
38
38
|
|
|
39
39
|
/* onboarding */
|
|
40
|
-
--zd_bs_onboarding_close_icon: var(--zd_bs_contrast_outline, 0px 2px 15px rgba(0, 0, 0, 0.09));
|
|
40
|
+
--zd_bs_onboarding_close_icon: var(--zd_bs_contrast_outline, 0px 2px 15px var(--zd-shadow-saturation, rgba(0, 0, 0, 0.09)));
|
|
41
41
|
--zd_bs_onboarding_gradient: var(--zd_bs_contrast_outline, 0px 20px 30px 0px var(--zdt_onboarding_bg_box_shadow));
|
|
42
42
|
--zd_bs_onboarding_primary_button: var(--zd_bs_contrast_outline, 0px 4px 20px 0px var(--zdt_onboarding_primary_button_shadow));
|
|
43
|
-
|
|
44
43
|
}
|
|
@@ -96,10 +96,15 @@ export default class CheckBoxField extends PureComponent {
|
|
|
96
96
|
container: !isDirectCol ? style.checkboxText : ''
|
|
97
97
|
},
|
|
98
98
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
99
|
-
|
|
99
|
+
fontWeight: isDirectCol ? 'regular' : 'semibold',
|
|
100
100
|
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
101
101
|
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
102
102
|
onClick: !removeEvent ? this.handleLabelClick : null,
|
|
103
|
+
tagAttributes: {
|
|
104
|
+
label: {
|
|
105
|
+
id
|
|
106
|
+
}
|
|
107
|
+
},
|
|
103
108
|
...LabelProps
|
|
104
109
|
}));
|
|
105
110
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -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>
|
|
@@ -10,7 +10,7 @@ exports[`CurrencyField rendering the defult props 1`] = `
|
|
|
10
10
|
class="fieldContainer "
|
|
11
11
|
>
|
|
12
12
|
<div
|
|
13
|
-
class="varClass customContainer
|
|
13
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container flex rowdir"
|
|
14
14
|
data-selector-id="textBoxIcon"
|
|
15
15
|
>
|
|
16
16
|
<div
|
|
@@ -145,6 +145,11 @@ export default class DateField extends PureComponent {
|
|
|
145
145
|
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
146
146
|
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
147
147
|
onClick: isDisabled || isReadOnly ? null : this.handleLabelClick,
|
|
148
|
+
tagAttributes: {
|
|
149
|
+
label: {
|
|
150
|
+
id: labelName
|
|
151
|
+
}
|
|
152
|
+
},
|
|
148
153
|
...LabelProps
|
|
149
154
|
})), /*#__PURE__*/React.createElement("div", {
|
|
150
155
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
@@ -18,7 +18,7 @@ exports[`DateField rendering the defult props 1`] = `
|
|
|
18
18
|
data-test-id="dateField(formatted_undefined)_widget"
|
|
19
19
|
>
|
|
20
20
|
<div
|
|
21
|
-
class="varClass customContainer
|
|
21
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container placeHolder flex rowdir"
|
|
22
22
|
data-selector-id="textBoxIcon"
|
|
23
23
|
>
|
|
24
24
|
<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
|
}
|
|
@@ -17,8 +17,8 @@ export default class MultiSelectField extends PureComponent {
|
|
|
17
17
|
super(props);
|
|
18
18
|
this.handleChange = this.handleChange.bind(this);
|
|
19
19
|
this.handleGetRef = this.handleGetRef.bind(this);
|
|
20
|
-
this.onDropBoxOpen = this.onDropBoxOpen.bind(this);
|
|
21
|
-
|
|
20
|
+
this.onDropBoxOpen = this.onDropBoxOpen.bind(this); // this.handleLabelClick = this.handleLabelClick.bind(this);
|
|
21
|
+
|
|
22
22
|
this.onSearch = this.onSearch.bind(this);
|
|
23
23
|
this.getNextOptions = this.getNextOptions.bind(this);
|
|
24
24
|
this.getNextId = getUniqueId(this);
|
|
@@ -67,17 +67,17 @@ export default class MultiSelectField extends PureComponent {
|
|
|
67
67
|
} = this.props;
|
|
68
68
|
this.multiSelectBox = el;
|
|
69
69
|
getRef && getRef(el, id);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
} // handleLabelClick() {
|
|
71
|
+
// let { isFocusOnLabelClick } = this.props;
|
|
72
|
+
// if (
|
|
73
|
+
// isFocusOnLabelClick &&
|
|
74
|
+
// this.multiSelectBox &&
|
|
75
|
+
// this.multiSelectBox.focus
|
|
76
|
+
// ) {
|
|
77
|
+
// this.multiSelectBox.focus();
|
|
78
|
+
// }
|
|
79
|
+
// }
|
|
76
80
|
|
|
77
|
-
if (isFocusOnLabelClick && this.multiSelectBox && this.multiSelectBox.focus) {
|
|
78
|
-
this.multiSelectBox.focus();
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
81
|
|
|
82
82
|
render() {
|
|
83
83
|
let {
|
|
@@ -154,6 +154,11 @@ export default class MultiSelectField extends PureComponent {
|
|
|
154
154
|
,
|
|
155
155
|
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
156
156
|
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
157
|
+
tagAttributes: {
|
|
158
|
+
label: {
|
|
159
|
+
id
|
|
160
|
+
}
|
|
161
|
+
},
|
|
157
162
|
...LabelProps
|
|
158
163
|
})), /*#__PURE__*/React.createElement(MultiSelect, {
|
|
159
164
|
options: options,
|
package/es/form/fields/MultiSelectField/__tests__/__snapshots__/MultiSelectField.spec.js.snap
CHANGED
|
@@ -29,7 +29,7 @@ exports[`MultiSelectField rendering the defult props 1`] = `
|
|
|
29
29
|
"
|
|
30
30
|
/>
|
|
31
31
|
<div
|
|
32
|
-
class="varClass customContainer
|
|
32
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
33
33
|
data-selector-id="textBoxIcon"
|
|
34
34
|
>
|
|
35
35
|
<div
|
|
@@ -22,7 +22,7 @@ exports[`PhoneField rendering the defult props 1`] = `
|
|
|
22
22
|
class="fieldContainer "
|
|
23
23
|
>
|
|
24
24
|
<div
|
|
25
|
-
class="varClass customContainer
|
|
25
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container flex rowdir"
|
|
26
26
|
data-selector-id="textBoxIcon"
|
|
27
27
|
>
|
|
28
28
|
<div
|
|
@@ -132,6 +132,11 @@ export default class RadioField extends PureComponent {
|
|
|
132
132
|
},
|
|
133
133
|
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
134
134
|
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
135
|
+
tagAttributes: {
|
|
136
|
+
label: {
|
|
137
|
+
id
|
|
138
|
+
}
|
|
139
|
+
},
|
|
135
140
|
...LabelProps
|
|
136
141
|
}), /*#__PURE__*/React.createElement("div", {
|
|
137
142
|
className: `${style.fieldContainer} ${isBoxStyle ? style.radiosWrapper : ''} ${labelName ? isBoxStyle ? style.fieldMargin_large : style.fieldMargin_medium : ''} ${style.radioContainer}`
|
|
@@ -126,6 +126,11 @@ export default class SelectField extends PureComponent {
|
|
|
126
126
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
127
127
|
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
128
128
|
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
129
|
+
tagAttributes: {
|
|
130
|
+
label: {
|
|
131
|
+
id: uniqueId
|
|
132
|
+
}
|
|
133
|
+
},
|
|
129
134
|
...LabelProps
|
|
130
135
|
})), /*#__PURE__*/React.createElement("div", {
|
|
131
136
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''} ${fieldClass ? fieldClass : ''}`
|
|
@@ -19,7 +19,7 @@ exports[`SelectField rendering the defult props 1`] = `
|
|
|
19
19
|
data-test-id="selectComponent"
|
|
20
20
|
>
|
|
21
21
|
<div
|
|
22
|
-
class="varClass customContainer
|
|
22
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container input flex rowdir"
|
|
23
23
|
data-selector-id="textBoxIcon"
|
|
24
24
|
>
|
|
25
25
|
<div
|
|
@@ -160,12 +160,14 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
160
160
|
let {
|
|
161
161
|
tagCustomClass = '',
|
|
162
162
|
listItemClass = '',
|
|
163
|
-
textBoxIconWrapperClass = ''
|
|
163
|
+
textBoxIconWrapperClass = '',
|
|
164
|
+
dropBoxClass = ''
|
|
164
165
|
} = customClass;
|
|
165
166
|
const {
|
|
166
167
|
TextBoxIconProps = {},
|
|
167
168
|
TagWrapperProps = {},
|
|
168
|
-
TagProps = {}
|
|
169
|
+
TagProps = {},
|
|
170
|
+
ListItemProps = {}
|
|
169
171
|
} = customProps;
|
|
170
172
|
const isEditable = !isReadOnly;
|
|
171
173
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -254,7 +256,8 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
254
256
|
boxPosition: boxPosition,
|
|
255
257
|
isPadding: false,
|
|
256
258
|
customClass: {
|
|
257
|
-
customDropBoxWrap: style.dropdown
|
|
259
|
+
customDropBoxWrap: style.dropdown,
|
|
260
|
+
customDropBox: dropBoxClass
|
|
258
261
|
},
|
|
259
262
|
dataId: `${dataId}_dropbox`,
|
|
260
263
|
isResponsivePadding: true,
|
|
@@ -286,7 +289,7 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
286
289
|
let {
|
|
287
290
|
name,
|
|
288
291
|
isNew,
|
|
289
|
-
|
|
292
|
+
listProps
|
|
290
293
|
} = item;
|
|
291
294
|
return /*#__PURE__*/React.createElement(React.Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/React.createElement(DropDownSeparator, null) : null, /*#__PURE__*/React.createElement(ListItem, {
|
|
292
295
|
key: index,
|
|
@@ -299,8 +302,9 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
299
302
|
highlight: selectSearchIndex === index,
|
|
300
303
|
getRef: this.getSelectedItemRef,
|
|
301
304
|
isDisabled: listDisabled,
|
|
302
|
-
customProps:
|
|
303
|
-
customClass: listItemClass
|
|
305
|
+
customProps: listProps,
|
|
306
|
+
customClass: listItemClass,
|
|
307
|
+
...ListItemProps
|
|
304
308
|
}, isNew ? /*#__PURE__*/React.createElement(Container, {
|
|
305
309
|
alignBox: "row",
|
|
306
310
|
align: "vertical"
|
|
@@ -25,7 +25,7 @@ exports[`TagsMultiSelect rendering the defult props 1`] = `
|
|
|
25
25
|
class="custmSpan"
|
|
26
26
|
/>
|
|
27
27
|
<div
|
|
28
|
-
class="varClass customContainer
|
|
28
|
+
class="varClass customContainer effect container custmInp flex rowdir"
|
|
29
29
|
data-selector-id="textBoxIcon"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
@@ -52,7 +52,8 @@ export const propTypes = {
|
|
|
52
52
|
customProps: PropTypes.shape({
|
|
53
53
|
TextBoxIconProps: PropTypes.object,
|
|
54
54
|
TagWrapperProps: PropTypes.object,
|
|
55
|
-
TagProps: PropTypes.object
|
|
55
|
+
TagProps: PropTypes.object,
|
|
56
|
+
ListItemProps: PropTypes.object
|
|
56
57
|
}),
|
|
57
58
|
isFocus: PropTypes.bool
|
|
58
59
|
};
|
|
@@ -217,6 +217,11 @@ const TagsMultiSelectField = props => {
|
|
|
217
217
|
size: labelSize,
|
|
218
218
|
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
219
219
|
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
220
|
+
tagAttributes: {
|
|
221
|
+
label: {
|
|
222
|
+
id
|
|
223
|
+
}
|
|
224
|
+
},
|
|
220
225
|
...LabelProps
|
|
221
226
|
}), selectedValueCount ? /*#__PURE__*/React.createElement(Box, {
|
|
222
227
|
dataId: `${dataId}_tagCount`,
|
|
@@ -31,7 +31,7 @@ exports[`TagsMultiSelectField rendering the defult props 1`] = `
|
|
|
31
31
|
class="custmSpan"
|
|
32
32
|
/>
|
|
33
33
|
<div
|
|
34
|
-
class="varClass customContainer
|
|
34
|
+
class="varClass customContainer effect container custmInp flex rowdir"
|
|
35
35
|
data-selector-id="textBoxIcon"
|
|
36
36
|
>
|
|
37
37
|
<div
|
|
@@ -114,6 +114,11 @@ export default class TextBoxField extends PureComponent {
|
|
|
114
114
|
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
115
115
|
htmlFor: uniqueId,
|
|
116
116
|
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
117
|
+
tagAttributes: {
|
|
118
|
+
label: {
|
|
119
|
+
id: labelName
|
|
120
|
+
}
|
|
121
|
+
},
|
|
117
122
|
...LabelProps
|
|
118
123
|
})), /*#__PURE__*/React.createElement("div", {
|
|
119
124
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
@@ -10,7 +10,7 @@ exports[`TextBoxField rendering the defult props 1`] = `
|
|
|
10
10
|
class="fieldContainer "
|
|
11
11
|
>
|
|
12
12
|
<div
|
|
13
|
-
class="varClass customContainer
|
|
13
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container flex rowdir"
|
|
14
14
|
data-selector-id="textBoxIcon"
|
|
15
15
|
>
|
|
16
16
|
<div
|
|
@@ -384,8 +384,12 @@ export default class TextEditor extends Component {
|
|
|
384
384
|
isNightMode,
|
|
385
385
|
isReadOnly,
|
|
386
386
|
dataSelectorId,
|
|
387
|
-
isDisabled
|
|
387
|
+
isDisabled,
|
|
388
|
+
customClass
|
|
388
389
|
} = this.props;
|
|
390
|
+
const {
|
|
391
|
+
wrapper: wrapperClass = ''
|
|
392
|
+
} = customClass;
|
|
389
393
|
let {
|
|
390
394
|
isEditorLoad,
|
|
391
395
|
isEditorShow
|
|
@@ -393,7 +397,7 @@ export default class TextEditor extends Component {
|
|
|
393
397
|
let editorDoc = ImgLazyLoad && global.editor && global.editor[id] ? global.editor[id].doc : null;
|
|
394
398
|
return /*#__PURE__*/React.createElement(Container, {
|
|
395
399
|
className: `${styles.textEditor} ${styles[type]} ${styles[border]}
|
|
396
|
-
${isNightMode ? styles.night : styles.light} ${isReadOnly ? styles.readOnly : ''} ${isDisabled ? styles.disable : ''} ${!isEditorShow ? styles.editorHide : ''}`,
|
|
400
|
+
${isNightMode ? styles.night : styles.light} ${isReadOnly ? styles.readOnly : ''} ${isDisabled ? styles.disable : ''} ${!isEditorShow ? styles.editorHide : ''} ${wrapperClass}`,
|
|
397
401
|
dataId: dataId,
|
|
398
402
|
"data-isEditor": true,
|
|
399
403
|
dataSelectorId: dataSelectorId
|
|
@@ -4,7 +4,7 @@ exports[`TextEditor rendering the defult props 1`] = `
|
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
6
|
class="textEditor large borderTop
|
|
7
|
-
light editorHide
|
|
7
|
+
light editorHide flex cover coldir"
|
|
8
8
|
data-id="containerComponent"
|
|
9
9
|
data-iseditor="true"
|
|
10
10
|
data-selector-id="textEditor"
|
|
@@ -142,6 +142,11 @@ export default class TextareaField extends PureComponent {
|
|
|
142
142
|
testId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
143
143
|
htmlFor: uniqueId,
|
|
144
144
|
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
145
|
+
tagAttributes: {
|
|
146
|
+
label: {
|
|
147
|
+
id
|
|
148
|
+
}
|
|
149
|
+
},
|
|
145
150
|
...LabelProps
|
|
146
151
|
})), /*#__PURE__*/React.createElement("div", {
|
|
147
152
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
@@ -48,15 +48,19 @@ class DepartmentDropDown extends Component {
|
|
|
48
48
|
onSearch,
|
|
49
49
|
needSearchFetching,
|
|
50
50
|
searchStr,
|
|
51
|
-
i18nKeys
|
|
51
|
+
i18nKeys,
|
|
52
|
+
customProps
|
|
52
53
|
} = this.props;
|
|
54
|
+
const {
|
|
55
|
+
ToggleDropDownProps = {}
|
|
56
|
+
} = customProps;
|
|
53
57
|
let {
|
|
54
58
|
title = 'Move Department',
|
|
55
59
|
searchEmptyText = 'No results found',
|
|
56
60
|
searchErrorText = 'No results',
|
|
57
61
|
placeholder = 'Search Department'
|
|
58
62
|
} = i18nKeys;
|
|
59
|
-
return /*#__PURE__*/React.createElement(ToggleDropDown, {
|
|
63
|
+
return /*#__PURE__*/React.createElement(ToggleDropDown, { ...ToggleDropDownProps,
|
|
60
64
|
title: title,
|
|
61
65
|
options: departmentList,
|
|
62
66
|
value: /*#__PURE__*/React.createElement(DepartmentText, {
|
|
@@ -7,6 +7,8 @@ import { AccountName_propTypes } from "./props/propTypes";
|
|
|
7
7
|
/**** Components ****/
|
|
8
8
|
|
|
9
9
|
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
10
|
+
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
11
|
+
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
10
12
|
import Link from "../../Link/Link";
|
|
11
13
|
/**** CSS ****/
|
|
12
14
|
|
|
@@ -28,6 +30,8 @@ export default class AccountName extends Component {
|
|
|
28
30
|
secondaryAccountHref,
|
|
29
31
|
secondaryAccountClick,
|
|
30
32
|
secondaryAccountText,
|
|
33
|
+
highlightData,
|
|
34
|
+
isHighlighted,
|
|
31
35
|
customProps
|
|
32
36
|
} = this.props;
|
|
33
37
|
let {
|
|
@@ -60,18 +64,29 @@ export default class AccountName extends Component {
|
|
|
60
64
|
className: style.link,
|
|
61
65
|
...LinkProps,
|
|
62
66
|
ariaLabel: `Account Name ${text}`
|
|
63
|
-
}, /*#__PURE__*/React.createElement(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
68
|
+
$tagAttributes_text: TextProps,
|
|
69
|
+
$ui_size: "12",
|
|
70
|
+
$flag_dotted: true,
|
|
71
|
+
$ui_className: `${style.linkWithText} ${className ? className : ''}`,
|
|
72
|
+
$ui_weight: fontWeight,
|
|
73
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
74
|
+
}, text)) : /*#__PURE__*/React.createElement(Typography, {
|
|
75
|
+
$tagAttributes_text: TextProps,
|
|
76
|
+
$ui_size: "12",
|
|
77
|
+
$flag_dotted: true,
|
|
78
|
+
$ui_className: `${style.secondaryText} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
79
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
68
80
|
}, text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
|
|
69
81
|
href: secondaryAccountHref,
|
|
70
82
|
onClick: secondaryAccountClick,
|
|
71
83
|
className: style.link
|
|
72
|
-
}, /*#__PURE__*/React.createElement(
|
|
73
|
-
|
|
74
|
-
|
|
84
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
85
|
+
$tagAttributes_text: SecondaryTextProps,
|
|
86
|
+
$ui_size: "12",
|
|
87
|
+
$flag_dotted: true,
|
|
88
|
+
$ui_weight: fontWeight,
|
|
89
|
+
$ui_className: `${style.linkWithText} ${className ? className : ''}`
|
|
75
90
|
}, secondaryAccountText))))));
|
|
76
91
|
}
|
|
77
92
|
|
|
@@ -2,6 +2,8 @@ import React, { Component } from 'react';
|
|
|
2
2
|
import { ContactName_defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { ContactName_propTypes } from "./props/propTypes";
|
|
4
4
|
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
5
|
+
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
6
|
+
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
5
7
|
import Link from "../../Link/Link";
|
|
6
8
|
import SentimentStatus from "../SentimentStatus/SentimentStatus";
|
|
7
9
|
import { Icon } from '@zohodesk/icons';
|
|
@@ -23,6 +25,8 @@ export default class ContactName extends Component {
|
|
|
23
25
|
notAccessible = false,
|
|
24
26
|
fontWeight,
|
|
25
27
|
i18nKeys,
|
|
28
|
+
highlightData,
|
|
29
|
+
isHighlighted,
|
|
26
30
|
customProps
|
|
27
31
|
} = this.props;
|
|
28
32
|
let {
|
|
@@ -62,12 +66,20 @@ export default class ContactName extends Component {
|
|
|
62
66
|
className: style.link,
|
|
63
67
|
...LinkProps,
|
|
64
68
|
ariaLabel: `Contact Name ${text}`
|
|
65
|
-
}, /*#__PURE__*/React.createElement(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
70
|
+
$flag_dotted: true,
|
|
71
|
+
$ui_size: "12",
|
|
72
|
+
$ui_weight: fontWeight,
|
|
73
|
+
$ui_className: `${style.linkWithText} ${className ? className : ''}`,
|
|
74
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
75
|
+
}, text)) : /*#__PURE__*/React.createElement(Typography, {
|
|
76
|
+
$tagAttributes_text: TextProps,
|
|
77
|
+
$ui_size: "12",
|
|
78
|
+
$flag_dotted: true,
|
|
79
|
+
$ui_className: `${style.secondaryText} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
80
|
+
$ui_weight: fontWeight,
|
|
81
|
+
$i18n_dataTitle: dataTitle,
|
|
82
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
71
83
|
}, text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
|
|
72
84
|
type: sentimentType,
|
|
73
85
|
dataTitle: sentimentDataTitle
|