@zohodesk/dot 1.0.0-temp-221 → 1.0.0-temp-187.17
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/form/fields/CheckBoxField/CheckBoxField.js +9 -6
- package/es/form/fields/CurrencyField/CurrencyField.js +5 -5
- package/es/form/fields/DateField/DateField.js +8 -7
- package/es/form/fields/Fields.module.css +4 -1
- package/es/form/fields/MultiSelectField/MultiSelectField.js +6 -5
- package/es/form/fields/SelectField/SelectField.js +6 -5
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -6
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -6
- package/es/form/fields/TextBoxField/TextBoxField.js +7 -7
- package/es/form/fields/TextareaField/TextareaField.js +6 -6
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +6 -2
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +3 -0
- 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.module.css +6 -3
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +10 -6
- package/lib/form/fields/CurrencyField/CurrencyField.js +5 -4
- package/lib/form/fields/DateField/DateField.js +9 -6
- package/lib/form/fields/Fields.module.css +4 -1
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +7 -5
- package/lib/form/fields/SelectField/SelectField.js +7 -5
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +12 -7
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
- package/lib/form/fields/TextBoxField/TextBoxField.js +8 -6
- package/lib/form/fields/TextareaField/TextareaField.js +6 -5
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +2 -0
- 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.module.css +6 -3
- package/package.json +3 -3
|
@@ -3,9 +3,8 @@ import React, { PureComponent } from 'react';
|
|
|
3
3
|
import { defaultProps } from "./props/defaultProps";
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
|
-
// import Label from '@zohodesk/components/es/Label/Label';
|
|
7
6
|
|
|
8
|
-
import Label from '@zohodesk/components/es/
|
|
7
|
+
import Label from '@zohodesk/components/es/Label/Label';
|
|
9
8
|
import CheckBox from '@zohodesk/components/es/CheckBox/CheckBox';
|
|
10
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
11
10
|
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
@@ -88,11 +87,15 @@ export default class CheckBoxField extends PureComponent {
|
|
|
88
87
|
renderProps: renderLabelProps
|
|
89
88
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
90
89
|
text: labelName,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
id: id,
|
|
91
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
92
|
+
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
93
|
+
infoText: infoText,
|
|
94
|
+
customClass: `${!isDirectCol ? style.checkboxText : ''} ${!isDirectCol ? style[`lineClamp_${lineClamp}`] : ''} ${isReadOnly || isDisabled ? style.cbTextReadonly : style.cbTextPointer} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
95
|
+
title: labelName,
|
|
95
96
|
onClick: !removeEvent ? this.handleLabelClick : null,
|
|
97
|
+
variant: isDirectCol ? 'default' : 'primary',
|
|
98
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
96
99
|
...LabelProps
|
|
97
100
|
}));
|
|
98
101
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -3,9 +3,8 @@ import React, { PureComponent } from 'react';
|
|
|
3
3
|
import { defaultProps } from "./props/defaultProps";
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
|
-
// import Label from '@zohodesk/components/es/Label/Label';
|
|
7
6
|
|
|
8
|
-
import Label from '@zohodesk/components/es/
|
|
7
|
+
import Label from '@zohodesk/components/es/Label/Label';
|
|
9
8
|
import TextBoxIcon from '@zohodesk/components/es/TextBoxIcon/TextBoxIcon';
|
|
10
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
11
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -130,10 +129,11 @@ export default class CurrencyField extends PureComponent {
|
|
|
130
129
|
renderProps: renderLabelProps
|
|
131
130
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
132
131
|
text: labelName,
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
133
|
+
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
134
|
+
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
135
135
|
htmlFor: uniqueId,
|
|
136
|
-
|
|
136
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
137
137
|
...LabelProps
|
|
138
138
|
})), /*#__PURE__*/React.createElement("div", {
|
|
139
139
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
@@ -3,9 +3,8 @@ import React, { PureComponent } from 'react';
|
|
|
3
3
|
import { defaultProps } from "./props/defaultProps";
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
|
-
// import Label from '@zohodesk/components/es/Label/Label';
|
|
7
6
|
|
|
8
|
-
import Label from '@zohodesk/components/es/
|
|
7
|
+
import Label from '@zohodesk/components/es/Label/Label';
|
|
9
8
|
import DateWidget from '@zohodesk/components/es/DateTime/DateWidget';
|
|
10
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
11
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -134,12 +133,14 @@ export default class DateField extends PureComponent {
|
|
|
134
133
|
renderProps: renderLabelProps
|
|
135
134
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
136
135
|
text: labelName,
|
|
137
|
-
isRequired: isMandatory,
|
|
138
|
-
customStyle: labelCustomClass,
|
|
139
136
|
htmlFor: getAriaId,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
137
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
138
|
+
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
139
|
+
onClick: isDisabled || isReadOnly ? null : this.handleLabelClick,
|
|
140
|
+
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
141
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
142
|
+
...LabelProps,
|
|
143
|
+
id: labelName
|
|
143
144
|
})), /*#__PURE__*/React.createElement("div", {
|
|
144
145
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
145
146
|
}, isLocked && lockedValueText ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -221,7 +221,10 @@ position: relative;
|
|
|
221
221
|
[dir=rtl] .rightPlaceholder{
|
|
222
222
|
left:var(--zd_size15)
|
|
223
223
|
}
|
|
224
|
-
|
|
225
224
|
.phoneField{
|
|
226
225
|
composes: ltr-zone from '~@zohodesk/components/es/common/common.module.css';
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.lineClampPickListItem{
|
|
229
|
+
--line-clamp: var(--picklist-field-line-clamp,3);
|
|
227
230
|
}
|
|
@@ -3,9 +3,8 @@ import React, { PureComponent } from 'react';
|
|
|
3
3
|
import { defaultProps } from "./props/defaultProps";
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
|
-
// import Label from '@zohodesk/components/es/Label/Label';
|
|
7
6
|
|
|
8
|
-
import Label from '@zohodesk/components/es/
|
|
7
|
+
import Label from '@zohodesk/components/es/Label/Label';
|
|
9
8
|
import MultiSelect from '@zohodesk/components/es/MultiSelect/MultiSelect';
|
|
10
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
11
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -146,11 +145,13 @@ export default class MultiSelectField extends PureComponent {
|
|
|
146
145
|
renderProps: renderLabelProps
|
|
147
146
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
148
147
|
text: labelName,
|
|
149
|
-
|
|
148
|
+
id: id,
|
|
149
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
150
|
+
palette: isDarkPalette ? 'dark' : isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette // onClick={this.handleLabelClick}
|
|
150
151
|
,
|
|
152
|
+
customClass: `${style.fieldLabel} ${isMandatory ? style.labelMandatory : ''}`,
|
|
153
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
151
154
|
htmlFor: uniqueId,
|
|
152
|
-
testId: id,
|
|
153
|
-
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
154
155
|
...LabelProps
|
|
155
156
|
})), /*#__PURE__*/React.createElement(MultiSelect, {
|
|
156
157
|
options: options,
|
|
@@ -3,9 +3,8 @@ import React, { PureComponent } from 'react';
|
|
|
3
3
|
import { defaultProps } from "./props/defaultProps";
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
|
-
// import Label from '@zohodesk/components/es/Label/Label';
|
|
7
6
|
|
|
8
|
-
import Label from '@zohodesk/components/es/
|
|
7
|
+
import Label from '@zohodesk/components/es/Label/Label';
|
|
9
8
|
import Select from '@zohodesk/components/es/Select/Select';
|
|
10
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
11
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -116,11 +115,13 @@ export default class SelectField extends PureComponent {
|
|
|
116
115
|
renderProps: renderLabelProps
|
|
117
116
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
118
117
|
text: labelName,
|
|
119
|
-
|
|
118
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
119
|
+
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
120
|
+
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
120
121
|
htmlFor: uniqueId,
|
|
122
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
121
123
|
...LabelProps,
|
|
122
|
-
|
|
123
|
-
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
124
|
+
id: uniqueId
|
|
124
125
|
})), /*#__PURE__*/React.createElement("div", {
|
|
125
126
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''} ${fieldClass ? fieldClass : ''}`
|
|
126
127
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
@@ -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"
|
|
@@ -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
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import { defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { propTypes } from "./props/propTypes";
|
|
4
|
-
import { Box } from '@zohodesk/components/es/Layout';
|
|
5
|
-
|
|
6
|
-
import Label from '@zohodesk/components/es/v1/Label/Label';
|
|
4
|
+
import { Box } from '@zohodesk/components/es/Layout';
|
|
5
|
+
import Label from '@zohodesk/components/es/Label/Label';
|
|
7
6
|
import Popup from '@zohodesk/components/es/Popup/Popup';
|
|
8
7
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
9
8
|
import TagsMultiSelect from "../TagsMultiSelect/TagsMultiSelect";
|
|
@@ -207,10 +206,13 @@ const TagsMultiSelectField = props => {
|
|
|
207
206
|
}
|
|
208
207
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
209
208
|
text: labelName,
|
|
210
|
-
|
|
209
|
+
title: labelName,
|
|
210
|
+
id: id,
|
|
211
|
+
size: labelSize,
|
|
212
|
+
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
213
|
+
customClass: `${fieldStyle.fieldLabel} ${isMandatory ? fieldStyle.labelMandatory : ''} ${labelClass ? labelClass : ''}`,
|
|
214
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
211
215
|
htmlFor: htmlId,
|
|
212
|
-
testId: id,
|
|
213
|
-
customId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
214
216
|
...LabelProps
|
|
215
217
|
}), selectedValueCount ? /*#__PURE__*/React.createElement(Box, {
|
|
216
218
|
dataId: `${dataId}_tagCount`,
|
|
@@ -3,9 +3,8 @@ import React, { PureComponent } from 'react';
|
|
|
3
3
|
import { defaultProps } from "./props/defaultProps";
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
|
-
// import Label from '@zohodesk/components/es/Label/Label';
|
|
7
6
|
|
|
8
|
-
import Label from '@zohodesk/components/es/
|
|
7
|
+
import Label from '@zohodesk/components/es/Label/Label';
|
|
9
8
|
import TextBoxIcon from '@zohodesk/components/es/TextBoxIcon/TextBoxIcon';
|
|
10
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
11
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -104,12 +103,13 @@ export default class TextBoxField extends PureComponent {
|
|
|
104
103
|
renderProps: renderLabelProps
|
|
105
104
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
106
105
|
text: labelName,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
107
|
+
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
108
|
+
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
110
109
|
htmlFor: uniqueId,
|
|
111
|
-
|
|
112
|
-
...LabelProps
|
|
110
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
111
|
+
...LabelProps,
|
|
112
|
+
id: labelName
|
|
113
113
|
})), /*#__PURE__*/React.createElement("div", {
|
|
114
114
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
115
115
|
}, /*#__PURE__*/React.createElement(TextBoxIcon, {
|
|
@@ -3,9 +3,8 @@ import React, { PureComponent } from 'react';
|
|
|
3
3
|
import { defaultProps } from "./props/defaultProps";
|
|
4
4
|
import { propTypes } from "./props/propTypes";
|
|
5
5
|
/**** Components ****/
|
|
6
|
-
// import Label from '@zohodesk/components/es/Label/Label';
|
|
7
6
|
|
|
8
|
-
import Label from '@zohodesk/components/es/
|
|
7
|
+
import Label from '@zohodesk/components/es/Label/Label';
|
|
9
8
|
import Textarea from '@zohodesk/components/es/Textarea/Textarea';
|
|
10
9
|
import ValidationMessage from "../ValidationMessage/ValidationMessage";
|
|
11
10
|
import { getUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
|
|
@@ -132,11 +131,12 @@ export default class TextareaField extends PureComponent {
|
|
|
132
131
|
renderProps: renderLabelProps
|
|
133
132
|
}, /*#__PURE__*/React.createElement(Label, {
|
|
134
133
|
text: labelName,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
id: id,
|
|
135
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
136
|
+
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
137
|
+
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
138
138
|
htmlFor: uniqueId,
|
|
139
|
-
|
|
139
|
+
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
|
|
140
140
|
...LabelProps
|
|
141
141
|
})), /*#__PURE__*/React.createElement("div", {
|
|
142
142
|
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, {
|
|
@@ -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
|
};
|
|
@@ -36,9 +36,8 @@
|
|
|
36
36
|
.value {
|
|
37
37
|
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
38
38
|
}
|
|
39
|
-
.multiLineValue{
|
|
40
|
-
|
|
41
|
-
composes: clamp from '~@zohodesk/components/es/common/common.module.css';
|
|
39
|
+
.multiLineValue {
|
|
40
|
+
composes: lineClamp from '~@zohodesk/components/es/common/common.module.css';
|
|
42
41
|
}
|
|
43
42
|
[dir=ltr] .withBorder.active {
|
|
44
43
|
border-left-color: var(--zdt_statuslistitem_default_active_border);
|
|
@@ -90,6 +89,10 @@
|
|
|
90
89
|
}
|
|
91
90
|
/* Status Type */
|
|
92
91
|
.statusType {
|
|
92
|
+
--status_listitem_bullet_min_height: var(--zd_size8);
|
|
93
|
+
--status_listitem_bullet_min_width: var(--zd_size8);
|
|
94
|
+
min-height: var(--status_listitem_bullet_min_height);
|
|
95
|
+
min-width: var(--status_listitem_bullet_min_width);
|
|
93
96
|
width: var(--zd_size8) ;
|
|
94
97
|
height: var(--zd_size8) ;
|
|
95
98
|
border-radius: 50%;
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/es/
|
|
16
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/Label/Label"));
|
|
17
17
|
|
|
18
18
|
var _CheckBox = _interopRequireDefault(require("@zohodesk/components/es/CheckBox/CheckBox"));
|
|
19
19
|
|
|
@@ -140,11 +140,15 @@ var CheckBoxField = /*#__PURE__*/function (_PureComponent) {
|
|
|
140
140
|
renderProps: renderLabelProps
|
|
141
141
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
142
142
|
text: labelName,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
id: id,
|
|
144
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
145
|
+
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
146
|
+
infoText: infoText,
|
|
147
|
+
customClass: "".concat(!isDirectCol ? _FieldsModule["default"].checkboxText : '', " ").concat(!isDirectCol ? _FieldsModule["default"]["lineClamp_".concat(lineClamp)] : '', " ").concat(isReadOnly || isDisabled ? _FieldsModule["default"].cbTextReadonly : _FieldsModule["default"].cbTextPointer, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
148
|
+
title: labelName,
|
|
149
|
+
onClick: !removeEvent ? this.handleLabelClick : null,
|
|
150
|
+
variant: isDirectCol ? 'default' : 'primary',
|
|
151
|
+
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
148
152
|
}, LabelProps)));
|
|
149
153
|
|
|
150
154
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/es/
|
|
16
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/Label/Label"));
|
|
17
17
|
|
|
18
18
|
var _TextBoxIcon = _interopRequireDefault(require("@zohodesk/components/es/TextBoxIcon/TextBoxIcon"));
|
|
19
19
|
|
|
@@ -178,10 +178,11 @@ var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
|
178
178
|
renderProps: renderLabelProps
|
|
179
179
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
180
180
|
text: labelName,
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
182
|
+
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
183
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
183
184
|
htmlFor: uniqueId,
|
|
184
|
-
|
|
185
|
+
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
185
186
|
}, LabelProps))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
186
187
|
className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
|
|
187
188
|
}, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], _extends({
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/es/
|
|
16
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/Label/Label"));
|
|
17
17
|
|
|
18
18
|
var _DateWidget = _interopRequireDefault(require("@zohodesk/components/es/DateTime/DateWidget"));
|
|
19
19
|
|
|
@@ -185,12 +185,15 @@ var DateField = /*#__PURE__*/function (_PureComponent) {
|
|
|
185
185
|
renderProps: renderLabelProps
|
|
186
186
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
187
187
|
text: labelName,
|
|
188
|
-
isRequired: isMandatory,
|
|
189
|
-
customStyle: labelCustomClass,
|
|
190
188
|
htmlFor: getAriaId,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
189
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
190
|
+
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
191
|
+
onClick: isDisabled || isReadOnly ? null : this.handleLabelClick,
|
|
192
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
193
|
+
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
194
|
+
}, LabelProps, {
|
|
195
|
+
id: labelName
|
|
196
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
194
197
|
className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
|
|
195
198
|
}, isLocked && lockedValueText ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
196
199
|
className: _FieldsModule["default"].lockText
|
|
@@ -221,7 +221,10 @@ position: relative;
|
|
|
221
221
|
[dir=rtl] .rightPlaceholder{
|
|
222
222
|
left:var(--zd_size15)
|
|
223
223
|
}
|
|
224
|
-
|
|
225
224
|
.phoneField{
|
|
226
225
|
composes: ltr-zone from '~@zohodesk/components/es/common/common.module.css';
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.lineClampPickListItem{
|
|
229
|
+
--line-clamp: var(--picklist-field-line-clamp,3);
|
|
227
230
|
}
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/es/
|
|
16
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/Label/Label"));
|
|
17
17
|
|
|
18
18
|
var _MultiSelect = _interopRequireDefault(require("@zohodesk/components/es/MultiSelect/MultiSelect"));
|
|
19
19
|
|
|
@@ -198,11 +198,13 @@ var MultiSelectField = /*#__PURE__*/function (_PureComponent) {
|
|
|
198
198
|
renderProps: renderLabelProps
|
|
199
199
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
200
200
|
text: labelName,
|
|
201
|
-
|
|
201
|
+
id: id,
|
|
202
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
203
|
+
palette: isDarkPalette ? 'dark' : isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette // onClick={this.handleLabelClick}
|
|
202
204
|
,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
205
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
206
|
+
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
207
|
+
htmlFor: uniqueId
|
|
206
208
|
}, LabelProps))), /*#__PURE__*/_react["default"].createElement(_MultiSelect["default"], _extends({
|
|
207
209
|
options: options,
|
|
208
210
|
onChange: this.handleChange,
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/es/
|
|
16
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/Label/Label"));
|
|
17
17
|
|
|
18
18
|
var _Select = _interopRequireDefault(require("@zohodesk/components/es/Select/Select"));
|
|
19
19
|
|
|
@@ -166,11 +166,13 @@ var SelectField = /*#__PURE__*/function (_PureComponent) {
|
|
|
166
166
|
renderProps: renderLabelProps
|
|
167
167
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
168
168
|
text: labelName,
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
170
|
+
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
171
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
172
|
+
htmlFor: uniqueId,
|
|
173
|
+
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
171
174
|
}, LabelProps, {
|
|
172
|
-
|
|
173
|
-
customId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
175
|
+
id: uniqueId
|
|
174
176
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
175
177
|
className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '', " ").concat(fieldClass ? fieldClass : '')
|
|
176
178
|
}, /*#__PURE__*/_react["default"].createElement(_Select["default"], _extends({
|
|
@@ -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
|
};
|
|
@@ -15,7 +15,7 @@ var _propTypes = require("./props/propTypes");
|
|
|
15
15
|
|
|
16
16
|
var _Layout = require("@zohodesk/components/es/Layout");
|
|
17
17
|
|
|
18
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/es/
|
|
18
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/Label/Label"));
|
|
19
19
|
|
|
20
20
|
var _Popup = _interopRequireDefault(require("@zohodesk/components/es/Popup/Popup"));
|
|
21
21
|
|
|
@@ -247,10 +247,13 @@ var TagsMultiSelectField = function TagsMultiSelectField(props) {
|
|
|
247
247
|
}
|
|
248
248
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
249
249
|
text: labelName,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
250
|
+
title: labelName,
|
|
251
|
+
id: id,
|
|
252
|
+
size: labelSize,
|
|
253
|
+
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
254
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : '', " ").concat(labelClass ? labelClass : ''),
|
|
255
|
+
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
256
|
+
htmlFor: htmlId
|
|
254
257
|
}, LabelProps)), selectedValueCount ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
255
258
|
dataId: "".concat(dataId, "_tagCount"),
|
|
256
259
|
className: _TagsMultiSelectFieldModule["default"].count
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/es/
|
|
16
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/Label/Label"));
|
|
17
17
|
|
|
18
18
|
var _TextBoxIcon = _interopRequireDefault(require("@zohodesk/components/es/TextBoxIcon/TextBoxIcon"));
|
|
19
19
|
|
|
@@ -156,12 +156,14 @@ var TextBoxField = /*#__PURE__*/function (_PureComponent) {
|
|
|
156
156
|
renderProps: renderLabelProps
|
|
157
157
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
158
158
|
text: labelName,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
160
|
+
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
161
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
162
162
|
htmlFor: uniqueId,
|
|
163
|
-
|
|
164
|
-
}, LabelProps
|
|
163
|
+
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
164
|
+
}, LabelProps, {
|
|
165
|
+
id: labelName
|
|
166
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
165
167
|
className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
|
|
166
168
|
}, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], _extends({
|
|
167
169
|
htmlId: uniqueId,
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/es/
|
|
16
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/Label/Label"));
|
|
17
17
|
|
|
18
18
|
var _Textarea = _interopRequireDefault(require("@zohodesk/components/es/Textarea/Textarea"));
|
|
19
19
|
|
|
@@ -185,11 +185,12 @@ var TextareaField = /*#__PURE__*/function (_PureComponent) {
|
|
|
185
185
|
renderProps: renderLabelProps
|
|
186
186
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
187
187
|
text: labelName,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
id: id,
|
|
189
|
+
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
190
|
+
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
191
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
191
192
|
htmlFor: uniqueId,
|
|
192
|
-
|
|
193
|
+
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
193
194
|
}, LabelProps))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
194
195
|
className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
|
|
195
196
|
}, !renderRightPlaceholderNode ? textAreaContent : /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -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;
|
|
@@ -247,7 +247,10 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
247
247
|
renderTargetElement = _this$props4.renderTargetElement,
|
|
248
248
|
renderFooterElement = _this$props4.renderFooterElement,
|
|
249
249
|
_this$props4$a11y = _this$props4.a11y,
|
|
250
|
-
a11y = _this$props4$a11y === void 0 ? {} : _this$props4$a11y
|
|
250
|
+
a11y = _this$props4$a11y === void 0 ? {} : _this$props4$a11y,
|
|
251
|
+
customClass = _this$props4.customClass;
|
|
252
|
+
var _customClass$dropBoxC = customClass.dropBoxClass,
|
|
253
|
+
dropBoxClass = _customClass$dropBoxC === void 0 ? '' : _customClass$dropBoxC;
|
|
251
254
|
var _a11y$tabIndex = a11y.tabIndex,
|
|
252
255
|
tabIndex = _a11y$tabIndex === void 0 ? 0 : _a11y$tabIndex,
|
|
253
256
|
ariaLabelledby = a11y.ariaLabelledby,
|
|
@@ -310,7 +313,8 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
310
313
|
isAnimate: true,
|
|
311
314
|
getRef: getContainerRef,
|
|
312
315
|
customClass: {
|
|
313
|
-
customDropBoxWrap: _StatusDropdownModule["default"].dropBoxContainer
|
|
316
|
+
customDropBoxWrap: _StatusDropdownModule["default"].dropBoxContainer,
|
|
317
|
+
customDropBox: dropBoxClass
|
|
314
318
|
},
|
|
315
319
|
needResponsive: needResponsive,
|
|
316
320
|
isResponsivePadding: true,
|
|
@@ -30,5 +30,7 @@ var propTypes = (_propTypes = {
|
|
|
30
30
|
idName: _propTypes2["default"].string,
|
|
31
31
|
isArrow: _propTypes2["default"].bool,
|
|
32
32
|
isDataLoaded: _propTypes2["default"].bool
|
|
33
|
-
}, _defineProperty(_propTypes, "isDataLoaded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isDisabled", _propTypes2["default"].bool), _defineProperty(_propTypes, "isEditable", _propTypes2["default"].bool), _defineProperty(_propTypes, "isFetchingOptions", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupActive", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupOpen", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupReady", _propTypes2["default"].bool), _defineProperty(_propTypes, "isReadOnly", _propTypes2["default"].bool), _defineProperty(_propTypes, "isSearch", _propTypes2["default"].bool), _defineProperty(_propTypes, "keyName", _propTypes2["default"].string), _defineProperty(_propTypes, "left", _propTypes2["default"].number), _defineProperty(_propTypes, "needExternalPopupState", _propTypes2["default"].bool), _defineProperty(_propTypes, "needResponsive", _propTypes2["default"].bool), _defineProperty(_propTypes, "needTick", _propTypes2["default"].bool), _defineProperty(_propTypes, "onClick", _propTypes2["default"].func), _defineProperty(_propTypes, "onTogglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "options", _propTypes2["default"].array.isRequired), _defineProperty(_propTypes, "placeHolderText", _propTypes2["default"].string), _defineProperty(_propTypes, "position", _propTypes2["default"].string), _defineProperty(_propTypes, "removeClose", _propTypes2["default"].func), _defineProperty(_propTypes, "right", _propTypes2["default"].number), _defineProperty(_propTypes, "searchBoxSize", _propTypes2["default"].oneOf(['small', 'medium', 'xmedium'])), _defineProperty(_propTypes, "searchEmptyHint", _propTypes2["default"].string), _defineProperty(_propTypes, "searchErrorText", _propTypes2["default"].string), _defineProperty(_propTypes, "showIconOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "showOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "statusColor", _propTypes2["default"].string), _defineProperty(_propTypes, "targetAlign", _propTypes2["default"].oneOf(['vertical', 'horizontal', 'both', 'top', 'right', 'bottom', 'left', 'between', 'around'])), _defineProperty(_propTypes, "title", _propTypes2["default"].string), _defineProperty(_propTypes, "togglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "value", _propTypes2["default"].node), _defineProperty(_propTypes, "needMultiLineText", _propTypes2["default"].bool), _defineProperty(_propTypes, "onSelectLabel", _propTypes2["default"].func), _defineProperty(_propTypes, "top", _propTypes2["default"].number), _defineProperty(_propTypes, "a11y", _propTypes2["default"].object), _defineProperty(_propTypes, "isAbsolutePositioningNeeded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isRestrictScroll", _propTypes2["default"].bool), _defineProperty(_propTypes, "positionsOffset", _propTypes2["default"].object), _defineProperty(_propTypes, "renderTargetElement", _propTypes2["default"].func), _defineProperty(_propTypes, "renderFooterElement", _propTypes2["default"].node), _defineProperty(_propTypes, "targetOffset", _propTypes2["default"].object), _propTypes
|
|
33
|
+
}, _defineProperty(_propTypes, "isDataLoaded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isDisabled", _propTypes2["default"].bool), _defineProperty(_propTypes, "isEditable", _propTypes2["default"].bool), _defineProperty(_propTypes, "isFetchingOptions", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupActive", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupOpen", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupReady", _propTypes2["default"].bool), _defineProperty(_propTypes, "isReadOnly", _propTypes2["default"].bool), _defineProperty(_propTypes, "isSearch", _propTypes2["default"].bool), _defineProperty(_propTypes, "keyName", _propTypes2["default"].string), _defineProperty(_propTypes, "left", _propTypes2["default"].number), _defineProperty(_propTypes, "needExternalPopupState", _propTypes2["default"].bool), _defineProperty(_propTypes, "needResponsive", _propTypes2["default"].bool), _defineProperty(_propTypes, "needTick", _propTypes2["default"].bool), _defineProperty(_propTypes, "onClick", _propTypes2["default"].func), _defineProperty(_propTypes, "onTogglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "options", _propTypes2["default"].array.isRequired), _defineProperty(_propTypes, "placeHolderText", _propTypes2["default"].string), _defineProperty(_propTypes, "position", _propTypes2["default"].string), _defineProperty(_propTypes, "removeClose", _propTypes2["default"].func), _defineProperty(_propTypes, "right", _propTypes2["default"].number), _defineProperty(_propTypes, "searchBoxSize", _propTypes2["default"].oneOf(['small', 'medium', 'xmedium'])), _defineProperty(_propTypes, "searchEmptyHint", _propTypes2["default"].string), _defineProperty(_propTypes, "searchErrorText", _propTypes2["default"].string), _defineProperty(_propTypes, "showIconOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "showOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "statusColor", _propTypes2["default"].string), _defineProperty(_propTypes, "targetAlign", _propTypes2["default"].oneOf(['vertical', 'horizontal', 'both', 'top', 'right', 'bottom', 'left', 'between', 'around'])), _defineProperty(_propTypes, "title", _propTypes2["default"].string), _defineProperty(_propTypes, "togglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "value", _propTypes2["default"].node), _defineProperty(_propTypes, "needMultiLineText", _propTypes2["default"].bool), _defineProperty(_propTypes, "onSelectLabel", _propTypes2["default"].func), _defineProperty(_propTypes, "top", _propTypes2["default"].number), _defineProperty(_propTypes, "a11y", _propTypes2["default"].object), _defineProperty(_propTypes, "isAbsolutePositioningNeeded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isRestrictScroll", _propTypes2["default"].bool), _defineProperty(_propTypes, "positionsOffset", _propTypes2["default"].object), _defineProperty(_propTypes, "renderTargetElement", _propTypes2["default"].func), _defineProperty(_propTypes, "renderFooterElement", _propTypes2["default"].node), _defineProperty(_propTypes, "targetOffset", _propTypes2["default"].object), _defineProperty(_propTypes, "customClass", _propTypes2["default"].shape({
|
|
34
|
+
dropBoxClass: _propTypes2["default"].string
|
|
35
|
+
})), _propTypes);
|
|
34
36
|
exports.propTypes = propTypes;
|
|
@@ -36,9 +36,8 @@
|
|
|
36
36
|
.value {
|
|
37
37
|
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
38
38
|
}
|
|
39
|
-
.multiLineValue{
|
|
40
|
-
|
|
41
|
-
composes: clamp from '~@zohodesk/components/es/common/common.module.css';
|
|
39
|
+
.multiLineValue {
|
|
40
|
+
composes: lineClamp from '~@zohodesk/components/es/common/common.module.css';
|
|
42
41
|
}
|
|
43
42
|
[dir=ltr] .withBorder.active {
|
|
44
43
|
border-left-color: var(--zdt_statuslistitem_default_active_border);
|
|
@@ -90,6 +89,10 @@
|
|
|
90
89
|
}
|
|
91
90
|
/* Status Type */
|
|
92
91
|
.statusType {
|
|
92
|
+
--status_listitem_bullet_min_height: var(--zd_size8);
|
|
93
|
+
--status_listitem_bullet_min_width: var(--zd_size8);
|
|
94
|
+
min-height: var(--status_listitem_bullet_min_height);
|
|
95
|
+
min-width: var(--status_listitem_bullet_min_width);
|
|
93
96
|
width: var(--zd_size8) ;
|
|
94
97
|
height: var(--zd_size8) ;
|
|
95
98
|
border-radius: 50%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/dot",
|
|
3
|
-
"version": "1.0.0-temp-
|
|
3
|
+
"version": "1.0.0-temp-187.17",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"sstest": "react-cli sstest",
|
|
40
40
|
"common_package_build": "cd ../common && npm run build && cd ../dot",
|
|
41
41
|
"docs": "npm run css:review && review:props && react-cli docs",
|
|
42
|
-
"prepublishOnly": "node prePublish.js && npm run
|
|
42
|
+
"prepublishOnly": "node prePublish.js && npm run css:review && npm run review:props",
|
|
43
43
|
"postpublish": "node postPublish.js",
|
|
44
44
|
"test-clean": "react-cli clean ./coverage && react-cli clean ./unittest react-cli clean ./es && react-cli clean ./lib && react-cli clean ./package-lock.json && react-cli clean ./result.json",
|
|
45
45
|
"download": "npm run downloadOnly && cd ../ && npm run download",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@zohodesk-private/node-plugins": "1.1.13",
|
|
74
74
|
"@zohodesk-private/react-prop-validator": "1.2.3",
|
|
75
75
|
"@zohodesk/a11y": "2.3.8",
|
|
76
|
-
"@zohodesk/components": "
|
|
76
|
+
"@zohodesk/components": "../components",
|
|
77
77
|
"@zohodesk/hooks": "2.0.6",
|
|
78
78
|
"@zohodesk/icons": "1.1.3",
|
|
79
79
|
"@zohodesk/layout": "^3.1.0",
|