@zohodesk/dot 1.0.0-temp-89 → 1.0.0-temp-94

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.
Files changed (125) hide show
  1. package/README.md +26 -1
  2. package/es/Provider.js +5 -105
  3. package/es/alert/AlertLookup/AlertLookup.js +11 -4
  4. package/es/alert/AlertLookup/docs/AlertLookup__default.docs.js +4 -3
  5. package/es/docs/formDocs.js +5 -1
  6. package/es/docs/generalDocs.js +5 -2
  7. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +3 -2
  8. package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +3 -2
  9. package/es/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +3 -3
  10. package/es/emptystate/EditionPage/EditionPage.js +1 -1
  11. package/es/errorstate/Inconvenience/Inconvenience.js +1 -1
  12. package/es/errorstate/NoRequestFound/NoRequestFound.js +1 -1
  13. package/es/errorstate/PermissionPlay/PermissionPlay.js +1 -1
  14. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +1 -1
  15. package/es/errorstate/UnableToProcess/UnableToProcess.js +1 -1
  16. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -1
  17. package/es/errorstate/WillBack/WillBack.js +1 -1
  18. package/es/form/fields/CheckBoxField/CheckBoxField.js +16 -28
  19. package/es/form/fields/CheckBoxField/docs/CheckBoxField__default.docs.js +8 -1
  20. package/es/form/fields/CurrencyField/CurrencyField.js +16 -29
  21. package/es/form/fields/CurrencyField/docs/CurrencyField__default.docs.js +36 -0
  22. package/es/form/fields/DateField/DateField.js +16 -28
  23. package/es/form/fields/DateField/docs/DateField__default.docs.js +8 -1
  24. package/es/form/fields/FieldContainer/FieldContainer.js +82 -0
  25. package/es/form/fields/FieldContainer/docs/FieldContainer__default.docs.js +49 -0
  26. package/es/form/fields/MultiSelectField/MultiSelectField.js +16 -28
  27. package/es/form/fields/MultiSelectField/docs/MultiSelectField__default.docs.js +8 -1
  28. package/es/form/fields/SelectField/SelectField.js +16 -28
  29. package/es/form/fields/SelectField/docs/SelectField__default.docs.js +8 -1
  30. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +9 -6
  31. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +32 -28
  32. package/es/form/fields/TextBoxField/TextBoxField.js +18 -43
  33. package/es/form/fields/TextBoxField/docs/TextBoxField__default.docs.js +28 -1
  34. package/es/form/fields/TextEditorField/TextEditorField.js +27 -44
  35. package/es/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +9 -2
  36. package/es/form/fields/TextareaField/TextareaField.js +16 -28
  37. package/es/form/fields/TextareaField/docs/TextareaField__default.docs.js +8 -1
  38. package/es/form/fields/props/FieldCommonDefaultProps.js +10 -0
  39. package/es/form/fields/props/FieldCommonPropTypes.js +22 -0
  40. package/es/list/BluePrintStatus/BluePrintStatus.js +2 -4
  41. package/es/list/BluePrintStatus/BluePrintStatus.module.css +6 -8
  42. package/es/list/GridStencils/GridStencils.module.css +7 -18
  43. package/es/list/SecondaryText/AccountName.js +22 -39
  44. package/es/list/SecondaryText/ContactName.js +1 -3
  45. package/es/list/SecondaryText/SecondaryText.module.css +45 -15
  46. package/es/list/SecondaryText/docs/SecondaryText__default.docs.js +114 -0
  47. package/es/list/SentimentStatus/SentimentStatus.js +4 -6
  48. package/es/list/SentimentStatus/SentimentStatus.module.css +4 -9
  49. package/es/list/UserTime/UserTime.js +3 -5
  50. package/es/list/UserTime/UserTime.module.css +20 -3
  51. package/es/list/status/StatusDropdown/StatusDropdown.js +3 -2
  52. package/es/lookup/EmptyPage/EmptyPage.js +4 -4
  53. package/es/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
  54. package/es/svg/PlusIcon.js +1 -1
  55. package/es/svg/SnippetIcon.js +1 -1
  56. package/es/svg/TemplateIcon.js +1 -1
  57. package/es/version2/errorstate/Inconvenience/Inconvenience.js +1 -1
  58. package/es/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +1 -1
  59. package/es/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +1 -1
  60. package/es/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -1
  61. package/es/version2/errorstate/UrlNotFound/UrlNotFound.js +1 -1
  62. package/es/version2/errorstate/WillBeRightBack/WillBeRightBack.js +1 -1
  63. package/lib/Provider.js +6 -123
  64. package/lib/alert/AlertLookup/AlertLookup.js +11 -4
  65. package/lib/alert/AlertLookup/docs/AlertLookup__default.docs.js +4 -3
  66. package/lib/docs/formDocs.js +32 -0
  67. package/lib/docs/generalDocs.js +8 -0
  68. package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +3 -2
  69. package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +3 -2
  70. package/lib/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +3 -3
  71. package/lib/emptystate/EditionPage/EditionPage.js +1 -1
  72. package/lib/errorstate/Inconvenience/Inconvenience.js +1 -1
  73. package/lib/errorstate/NoRequestFound/NoRequestFound.js +1 -1
  74. package/lib/errorstate/PermissionPlay/PermissionPlay.js +1 -1
  75. package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +1 -1
  76. package/lib/errorstate/UnableToProcess/UnableToProcess.js +1 -1
  77. package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -1
  78. package/lib/errorstate/WillBack/WillBack.js +1 -1
  79. package/lib/form/fields/CheckBoxField/CheckBoxField.js +23 -29
  80. package/lib/form/fields/CheckBoxField/docs/CheckBoxField__default.docs.js +8 -1
  81. package/lib/form/fields/CurrencyField/CurrencyField.js +23 -30
  82. package/lib/{list/SecondaryText/docs/ContactName__default.docs.js → form/fields/CurrencyField/docs/CurrencyField__default.docs.js} +29 -16
  83. package/lib/form/fields/DateField/DateField.js +23 -29
  84. package/lib/form/fields/DateField/docs/DateField__default.docs.js +8 -1
  85. package/lib/form/fields/FieldContainer/FieldContainer.js +136 -0
  86. package/lib/form/fields/FieldContainer/docs/FieldContainer__default.docs.js +104 -0
  87. package/lib/form/fields/MultiSelectField/MultiSelectField.js +23 -29
  88. package/lib/form/fields/MultiSelectField/docs/MultiSelectField__default.docs.js +8 -1
  89. package/lib/form/fields/SelectField/SelectField.js +23 -29
  90. package/lib/form/fields/SelectField/docs/SelectField__default.docs.js +8 -1
  91. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +9 -6
  92. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +36 -30
  93. package/lib/form/fields/TextBoxField/TextBoxField.js +25 -45
  94. package/lib/form/fields/TextBoxField/docs/TextBoxField__default.docs.js +35 -2
  95. package/lib/form/fields/TextEditorField/TextEditorField.js +33 -47
  96. package/lib/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +9 -2
  97. package/lib/form/fields/TextareaField/TextareaField.js +23 -29
  98. package/lib/form/fields/TextareaField/docs/TextareaField__default.docs.js +8 -1
  99. package/lib/form/fields/props/FieldCommonDefaultProps.js +19 -0
  100. package/lib/form/fields/props/FieldCommonPropTypes.js +34 -0
  101. package/lib/list/BluePrintStatus/BluePrintStatus.js +2 -4
  102. package/lib/list/BluePrintStatus/BluePrintStatus.module.css +6 -8
  103. package/lib/list/GridStencils/GridStencils.module.css +7 -18
  104. package/lib/list/SecondaryText/AccountName.js +22 -40
  105. package/lib/list/SecondaryText/ContactName.js +1 -4
  106. package/lib/list/SecondaryText/SecondaryText.module.css +45 -15
  107. package/lib/list/SecondaryText/docs/SecondaryText__default.docs.js +162 -0
  108. package/lib/list/SentimentStatus/SentimentStatus.js +4 -6
  109. package/lib/list/SentimentStatus/SentimentStatus.module.css +4 -9
  110. package/lib/list/UserTime/UserTime.js +3 -5
  111. package/lib/list/UserTime/UserTime.module.css +20 -3
  112. package/lib/list/status/StatusDropdown/StatusDropdown.js +3 -2
  113. package/lib/lookup/EmptyPage/EmptyPage.js +4 -4
  114. package/lib/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
  115. package/lib/svg/PlusIcon.js +1 -1
  116. package/lib/svg/SnippetIcon.js +1 -1
  117. package/lib/svg/TemplateIcon.js +1 -1
  118. package/lib/version2/errorstate/Inconvenience/Inconvenience.js +1 -1
  119. package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +1 -1
  120. package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +1 -1
  121. package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -1
  122. package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +1 -1
  123. package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +1 -1
  124. package/package.json +10 -9
  125. package/es/list/SecondaryText/docs/ContactName__default.docs.js +0 -23
package/README.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  In this Library, we Provide Some Basic Components to Build Your Application
4
4
 
5
+ # 1.0.0-beta.234
6
+
7
+ - AlertLookup V1 => isHtmlContent prop added
8
+
9
+ # 1.0.0-beta.233
10
+
11
+ - ToggleDropDown , StatusDropdown => preventParentScroll implemented
12
+
13
+ # 1.0.0-beta.232
14
+
15
+ - Svg path updated
16
+
17
+ # 1.0.0-beta.231
18
+
19
+ - :focus in css removed
20
+
21
+ # 1.0.0-beta.230
22
+
23
+ - renderLabelProps props added and Field Container Component Wrapped for => CheckBoxField, CurrencyField, DateField, MultiField, SelectField, TextareaField, TextBoxField
24
+
25
+ # 1.0.0-beta.229
26
+
27
+ - TagsMultiSelect,TagsMultiSelectField => clickableTag prop added
28
+ - GridStencils => margin, width removed in css
29
+
5
30
  # 1.0.0-beta.228
6
31
 
7
32
  - ResponsiveDropBox Implemented for all DropBox
@@ -49,7 +74,7 @@ In this Library, we Provide Some Basic Components to Build Your Application
49
74
 
50
75
  # 1.0.0-beta.216
51
76
 
52
- - CurrencyField => formatCurrency call if check fixed (vavlue will formatted when isActive is false)
77
+ - CurrencyField => formatCurrency call if check fixed (value will formatted when isActive is false)
53
78
 
54
79
  # 1.0.0-beta.215
55
80
 
package/es/Provider.js CHANGED
@@ -4,6 +4,7 @@ import { Container } from '@zohodesk/components/lib/Layout';
4
4
  import AppContainer from '@zohodesk/components/lib/AppContainer/AppContainer';
5
5
  import LibraryContext from '@zohodesk/components/lib/Provider/LibraryContextInit';
6
6
  import datetime from '@zohodesk/datetimejs';
7
+ import ThemeTool from '../../common/lib/ThemeTool/ThemeTool';
7
8
  import i18n from './i18n';
8
9
  /* component pkg - default mode & themes */
9
10
 
@@ -109,6 +110,7 @@ export default class Provider extends React.Component {
109
110
  themeName: 'blue'
110
111
  };
111
112
  this.setTheme = this.setTheme.bind(this);
113
+ this.setAppearance = this.setAppearance.bind(this);
112
114
  }
113
115
 
114
116
  setAppearance(mode) {
@@ -128,51 +130,6 @@ export default class Provider extends React.Component {
128
130
  appearanceName,
129
131
  themeName
130
132
  } = this.state;
131
- let themeClass = {
132
- width: '20px',
133
- height: '20px',
134
- borderRadius: '3px',
135
- display: 'flex',
136
- border: '1px solid #ccc',
137
- margin: '0 5px',
138
- cursor: 'pointer',
139
- backgroundColor: '#0a73eb'
140
- };
141
- let green = {
142
- backgroundColor: '#26a942'
143
- };
144
- let red = {
145
- backgroundColor: '#de3535'
146
- };
147
- let orange = {
148
- backgroundColor: '#e57717'
149
- };
150
- let yellow = {
151
- backgroundColor: '#e8b923'
152
- };
153
- let light = {
154
- backgroundColor: '#fff'
155
- };
156
- let night = {
157
- backgroundColor: '#232b38'
158
- };
159
- let dark = {
160
- backgroundColor: '#212121'
161
- };
162
- let fixedPosition = {
163
- position: 'fixed',
164
- bottom: '0',
165
- backgroundColor: '#272727',
166
- padding: '10px',
167
- borderRadius: '15px 15px 0 0',
168
- minWidth: '100px',
169
- textAlign: 'center',
170
- boxShadow: '0 0 3px #000',
171
- fontSize: '12px',
172
- zIndex: '3',
173
- display: 'flex',
174
- alignItems: 'center'
175
- };
176
133
  return /*#__PURE__*/React.createElement(I18NProvider, {
177
134
  i18n: i18n,
178
135
  timeZone: "Asia/Kolkata",
@@ -194,66 +151,9 @@ export default class Provider extends React.Component {
194
151
  }
195
152
  }, /*#__PURE__*/React.createElement(Container, {
196
153
  scroll: "vertical"
197
- }, this.props.children), /*#__PURE__*/React.createElement("div", {
198
- style: Object.assign({}, fixedPosition, {
199
- left: '20%',
200
- transform: 'translate(-20%)'
201
- })
202
- }, /*#__PURE__*/React.createElement("div", {
203
- style: {
204
- color: '#fff'
205
- }
206
- }, "Appearance:"), /*#__PURE__*/React.createElement("div", {
207
- style: {
208
- display: 'flex'
209
- }
210
- }, /*#__PURE__*/React.createElement("span", {
211
- title: "Light Mode",
212
- style: Object.assign({}, themeClass, light),
213
- onClick: () => this.setAppearance('default')
214
- }), /*#__PURE__*/React.createElement("span", {
215
- title: "Night Mode",
216
- style: Object.assign({}, themeClass, night),
217
- onClick: () => this.setAppearance('dark')
218
- }), /*#__PURE__*/React.createElement("span", {
219
- title: "Dark Mode",
220
- style: Object.assign({}, themeClass, dark),
221
- onClick: () => this.setAppearance('pureDark')
222
- }))), /*#__PURE__*/React.createElement("div", {
223
- style: Object.assign({}, fixedPosition, {
224
- left: '80%',
225
- transform: 'translate(-80%)'
226
- })
227
- }, /*#__PURE__*/React.createElement("div", {
228
- style: {
229
- color: '#fff'
230
- }
231
- }, "Themes:"), /*#__PURE__*/React.createElement("div", {
232
- style: {
233
- display: 'flex'
234
- }
235
- }, /*#__PURE__*/React.createElement("span", {
236
- title: "Blue Theme",
237
- style: themeClass,
238
- onClick: () => this.setTheme('blue')
239
- }), /*#__PURE__*/React.createElement("span", {
240
- title: "Green Theme",
241
- style: Object.assign({}, themeClass, green),
242
- onClick: () => this.setTheme('green')
243
- }), /*#__PURE__*/React.createElement("span", {
244
- title: "Red Theme",
245
- style: Object.assign({}, themeClass, red),
246
- onClick: () => this.setTheme('red')
247
- }), /*#__PURE__*/React.createElement("span", {
248
- title: "Orange Theme",
249
- style: Object.assign({}, themeClass, orange),
250
- onClick: () => this.setTheme('orange')
251
- }), /*#__PURE__*/React.createElement("span", {
252
- title: "Yellow Theme",
253
- style: Object.assign({}, themeClass, yellow),
254
- onClick: () => this.setTheme('yellow')
255
- }))), /*#__PURE__*/React.createElement("div", {
256
- "data-portal": "portal1"
154
+ }, this.props.children), /*#__PURE__*/React.createElement(ThemeTool, {
155
+ onThemeChange: this.setTheme,
156
+ onAppearanceChange: this.setAppearance
257
157
  }))));
258
158
  }
259
159
 
@@ -90,7 +90,8 @@ export default class AlertLookup extends Component {
90
90
  iconName,
91
91
  iconClass,
92
92
  iconSize,
93
- customProps
93
+ customProps,
94
+ isHtmlContent
94
95
  } = this.props;
95
96
  const {
96
97
  LookupProps = {},
@@ -120,7 +121,11 @@ export default class AlertLookup extends Component {
120
121
  className: style.section
121
122
  }, /*#__PURE__*/React.createElement("div", {
122
123
  className: `${style.innerSection} ${sectionClassName}`
123
- }, children ? children : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, message), confirmationMessage && /*#__PURE__*/React.createElement("div", {
124
+ }, children ? children : /*#__PURE__*/React.createElement(React.Fragment, null, isHtmlContent && message ? /*#__PURE__*/React.createElement("div", {
125
+ dangerouslySetInnerHTML: {
126
+ __html: message
127
+ }
128
+ }) : /*#__PURE__*/React.createElement("div", null, message), confirmationMessage && /*#__PURE__*/React.createElement("div", {
124
129
  className: style.text
125
130
  }, confirmationMessage))), submitText || onSubmitClick || cancelText || onCancelClick ? /*#__PURE__*/React.createElement(FormAction, {
126
131
  size: "small",
@@ -172,7 +177,8 @@ AlertLookup.propTypes = {
172
177
  PrimaryButtonProps: PropTypes.object,
173
178
  SecondaryButtonProps: PropTypes.object
174
179
  }),
175
- onEsc: PropTypes.oneOf(['close', 'cancel'])
180
+ onEsc: PropTypes.oneOf(['close', 'cancel']),
181
+ isHtmlContent: PropTypes.bool
176
182
  };
177
183
  AlertLookup.defaultProps = {
178
184
  isActive: false,
@@ -185,7 +191,8 @@ AlertLookup.defaultProps = {
185
191
  customClass: '',
186
192
  isDefaultFocus: true,
187
193
  customProps: {},
188
- onEsc: 'cancel'
194
+ onEsc: 'cancel',
195
+ isHtmlContent: false
189
196
  };
190
197
 
191
198
  if (false) {
@@ -80,12 +80,13 @@ export default class AlertLookup__default extends Component {
80
80
  },
81
81
  onCancelClick: this.onCancel,
82
82
  title: "Delete Ticket",
83
- message: "Deleting this Ticket will move their Activities, and Time Entry to the Recycle Bin.",
83
+ message: "<h2>Deleting this Ticket will move their Activities, and Time Entry to the Recycle Bin.</h2>",
84
84
  confirmationMessage: "Would you like to delete?",
85
85
  submitText: "Delete",
86
86
  cancelText: "Cancel",
87
87
  onClose: this.onClose,
88
- onEsc: "close"
88
+ onEsc: "close",
89
+ isHtmlContent: true
89
90
  }), /*#__PURE__*/React.createElement(AlertLookup, {
90
91
  isActive: lookup === 'remoteAssist' ? true : false,
91
92
  type: "remoteAssist",
@@ -95,7 +96,7 @@ export default class AlertLookup__default extends Component {
95
96
  },
96
97
  onCancelClick: this.onCancel,
97
98
  title: "Remote Assist",
98
- message: /*#__PURE__*/React.createElement("div", null, "You are about to send an invite for remote assistance to", ' ', /*#__PURE__*/React.createElement("b", null, "antro.avemaxa@gmail.com")),
99
+ message: /*#__PURE__*/React.createElement("div", null, "You are about to send an invite for remote assistance to ", /*#__PURE__*/React.createElement("b", null, "antro.avemaxa@gmail.com")),
99
100
  confirmationMessage: "Would you like to continue?",
100
101
  submitText: "Continue",
101
102
  cancelText: "Cancel"
@@ -18,9 +18,13 @@ export { default as DateField } from '../form/fields/DateField/DateField';
18
18
  export { default as DateField__default } from '../form/fields/DateField/docs/DateField__default.docs';
19
19
  export { default as CheckBoxField } from '../form/fields/CheckBoxField/CheckBoxField';
20
20
  export { default as CheckBoxField__default } from '../form/fields/CheckBoxField/docs/CheckBoxField__default.docs';
21
+ export { default as CurrencyField } from '../form/fields/CurrencyField/CurrencyField';
22
+ export { default as CurrencyField__default } from '../form/fields/CurrencyField/docs/CurrencyField__default.docs';
21
23
  export { default as TagsMultiSelect } from '../form/fields/TagsMultiSelect/TagsMultiSelect';
22
24
  export { default as TagsMultiSelect__default } from '../form/fields/TagsMultiSelect/docs/TagsMultiSelect__default.docs';
23
25
  export { default as TagsMultiSelectField } from '../form/fields/TagsMultiSelectField/TagsMultiSelectField';
24
26
  export { default as TagsMultiSelectField__default } from '../form/fields/TagsMultiSelectField/docs/TagsMultiSelectField__default.docs';
25
27
  export { default as TextEditorField } from '../form/fields/TextEditorField/TextEditorField';
26
- export { default as TextEditorField__default } from '../form/fields/TextEditorField/docs/TextEditorField__default.docs';
28
+ export { default as TextEditorField__default } from '../form/fields/TextEditorField/docs/TextEditorField__default.docs';
29
+ export { default as FieldContainer } from '../form/fields/FieldContainer/FieldContainer';
30
+ export { default as FieldContainer__default } from '../form/fields/FieldContainer/docs/FieldContainer__default.docs';
@@ -131,5 +131,8 @@ export { default as V2_ErrState_OopsSomethingMiss } from '../version2/errorstate
131
131
  export { default as V2_ErrState_OopsSomethingMiss__default } from '../version2/errorstate/OopsSomethingMiss/docs/OopsSomethingMiss__default.docs';
132
132
  /* Attachment Viewer */
133
133
 
134
- export { default as AttachmentViewer } from "../AttachmentViewer/AttachmentViewer";
135
- export { default as AttachmentViewer__default } from "../AttachmentViewer/docs/AttachmentViewer__default.docs";
134
+ export { default as AttachmentViewer } from '../AttachmentViewer/AttachmentViewer';
135
+ export { default as AttachmentViewer__default } from '../AttachmentViewer/docs/AttachmentViewer__default.docs';
136
+ /* Secondary Text */
137
+
138
+ export { default as SecondaryText__default } from '../list/SecondaryText/docs/SecondaryText__default.docs';
@@ -11,9 +11,9 @@ import ListItem from '@zohodesk/components/lib/ListItem/ListItem';
11
11
  import ListItemWithIcon from '@zohodesk/components/lib/ListItem/ListItemWithIcon';
12
12
  import DropDownHeading from '@zohodesk/components/lib/DropDown/DropDownHeading';
13
13
  import TextBoxIcon from '@zohodesk/components/lib/TextBoxIcon/TextBoxIcon';
14
- import Loader from '@zohodesk/svg/lib/svg/Loader';
14
+ import Loader from '@zohodesk/svg/lib/Loader/Loader';
15
15
  import CommonEmptyState from '../../emptystate/CommonEmptyState/CommonEmptyState';
16
- import EmptySearch from '@zohodesk/svg/lib/svg/EmptySearch';
16
+ import EmptySearch from '@zohodesk/svg/lib/emptystate/version3/EmptySearch';
17
17
  import CssProvider from '@zohodesk/components/lib/Provider/CssProvider';
18
18
  import { scrollTo } from '@zohodesk/components/lib/utils/Common';
19
19
  import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
@@ -675,6 +675,7 @@ export class ToggleDropDown extends Component {
675
675
  flexible: true,
676
676
  shrink: true,
677
677
  scroll: "vertical",
678
+ preventParentScroll: "vertical",
678
679
  dataId: `${dataId}_list`,
679
680
  className: `${tabletMode ? style.responsivemaxHgt : style.maxHgt}`,
680
681
  eleRef: this.scrollContentRef,
@@ -33,8 +33,9 @@
33
33
  opacity: 0;
34
34
  visibility: hidden;
35
35
  }
36
- .hoverIcon:hover .arrow,
37
- .hoverIcon:focus .arrow {
36
+ .hoverIcon:hover .arrow
37
+ /* .hoverIcon:focus .arrow */
38
+ {
38
39
  opacity: 1;
39
40
  visibility: visible;
40
41
  }
@@ -1,8 +1,8 @@
1
1
  import React, { Component } from 'react';
2
2
  import CommonEmptyState from '../CommonEmptyState';
3
- import EmptySearch from '@zohodesk/svg/lib/svg/EmptySearch';
4
- import EmptyAccounts from '@zohodesk/svg/lib/svg/EmptyAccounts';
5
- import EmptyTicket from '@zohodesk/svg/lib/svg/EmptyTicket';
3
+ import EmptySearch from '@zohodesk/svg/lib/emptystate/version3/EmptySearch';
4
+ import EmptyAccounts from '@zohodesk/svg/lib/emptystate/version3/EmptyAccounts';
5
+ import EmptyTicket from '@zohodesk/svg/lib/emptystate/version3/EmptyTicket';
6
6
  import Button from '@zohodesk/components/lib/Button/Button';
7
7
  import { Container } from '@zohodesk/components/lib/Layout';
8
8
  export default class CommonEmptyState__default extends Component {
@@ -1,6 +1,6 @@
1
1
  import React, { Component } from 'react';
2
2
  import { PropTypes } from 'prop-types';
3
- import EmptyCrmPotential from '@zohodesk/svg/lib/svg/EmptyCrmPotential';
3
+ import EmptyCrmPotential from '@zohodesk/svg/lib/emptystate/version3/EmptyCrmPotential';
4
4
  import style from './EditionPage.css';
5
5
  export default class EditionPage extends Component {
6
6
  constructor(props) {
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { Container, Box } from '@zohodesk/components/lib/Layout';
4
4
  import LinkText from '../LinkText/LinkText';
5
- import InconvenienceSVG from '@zohodesk/svg/lib/svg/EmptyInconvenience';
5
+ import InconvenienceSVG from '@zohodesk/svg/lib/errorstate/version1/EmptyInconvenience';
6
6
  import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
7
7
  import commonStyle from '../EmptyStates.module.css';
8
8
  import style from './Inconvenience.module.css';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import commonStyle from '../EmptyStates.module.css';
4
- import NoRequestFoundSVG from '@zohodesk/svg/lib/svg/NoRequestFound';
4
+ import NoRequestFoundSVG from '@zohodesk/svg/lib/errorstate/version1/NoRequestFound';
5
5
  import { Container, Box } from '@zohodesk/components/lib/Layout';
6
6
  import LinkText from '../LinkText/LinkText';
7
7
  import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { Container, Box } from '@zohodesk/components/lib/Layout';
4
4
  import LinkText from '../LinkText/LinkText';
5
- import UnauthorizedLoginSVG from '@zohodesk/svg/lib/svg/UnauthorizedLogin';
5
+ import UnauthorizedLoginSVG from '@zohodesk/svg/lib/errorstate/version1/UnauthorizedLogin';
6
6
  import commonStyle from '../EmptyStates.module.css';
7
7
  import style from './PermissionPlay.module.css';
8
8
  import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { Container, Box } from '@zohodesk/components/lib/Layout';
4
- import UrlNotFound from '@zohodesk/svg/lib/svg/UrlNotFound';
4
+ import UrlNotFound from '@zohodesk/svg/lib/errorstate/version1/UrlNotFound';
5
5
  import LinkText from '../LinkText/LinkText';
6
6
  import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
7
7
  import commonStyle from '../EmptyStates.module.css';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { Container, Box } from '@zohodesk/components/lib/Layout';
4
4
  import LinkText from '../LinkText/LinkText';
5
- import UnableToProcessRequest from '@zohodesk/svg/lib/svg/UnableToProcessRequest';
5
+ import UnableToProcessRequest from '@zohodesk/svg/lib/errorstate/version1/UnableToProcessRequest';
6
6
  import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
7
7
  import commonStyle from '../EmptyStates.module.css';
8
8
  import style from './UnableToProcess.module.css';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { Container, Box } from '@zohodesk/components/lib/Layout';
4
4
  import LinkText from '../LinkText/LinkText';
5
- import UnauthorizedLoginSVG from '@zohodesk/svg/lib/svg/UnauthorizedLogin';
5
+ import UnauthorizedLoginSVG from '@zohodesk/svg/lib/errorstate/version1/UnauthorizedLogin';
6
6
  import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
7
7
  import commonStyle from '../EmptyStates.module.css';
8
8
  import style from './UnauthorizedLogin.module.css';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { Container, Box } from '@zohodesk/components/lib/Layout';
4
- import WillBeRightBack from '@zohodesk/svg/lib/svg/WillBeRightBack';
4
+ import WillBeRightBack from '@zohodesk/svg/lib/errorstate/version1/WillBeRightBack';
5
5
  import { ResponsiveReceiver } from '@zohodesk/components/lib/Responsive/CustomResponsive';
6
6
  import commonStyle from '../EmptyStates.module.css';
7
7
  import style from './WillBack.module.css';
@@ -9,9 +9,11 @@ import Label from '@zohodesk/components/lib/Label/Label';
9
9
  import CheckBox from '@zohodesk/components/lib/CheckBox/CheckBox';
10
10
  import ValidationMessage from '../ValidationMessage/ValidationMessage';
11
11
  import { Container, Box } from '@zohodesk/components/lib/Layout';
12
- /**** Icons ****/
12
+ import FieldContainer from '../FieldContainer/FieldContainer';
13
+ /**** props ****/
13
14
 
14
- import Icon from '@zohodesk/icons/lib/Icon';
15
+ import { FieldCommonDefaultProps } from '../props/FieldCommonDefaultProps';
16
+ import { FieldCommonPropTypes } from '../props/FieldCommonPropTypes';
15
17
  /**** CSS ****/
16
18
 
17
19
  import style from '../Fields.module.css';
@@ -69,7 +71,8 @@ export default class CheckBoxField extends PureComponent {
69
71
  lineClamp,
70
72
  isLocked,
71
73
  lockedInfoText,
72
- customProps
74
+ customProps,
75
+ renderLabelProps
73
76
  } = this.props;
74
77
  const {
75
78
  LabelProps = {},
@@ -79,8 +82,11 @@ export default class CheckBoxField extends PureComponent {
79
82
  } = customProps;
80
83
  let removeEvent = isDisabled || isReadOnly;
81
84
  let isDirectCol = direction === 'column';
82
- let labelElement = /*#__PURE__*/React.createElement("div", {
83
- className: style.labelContainer
85
+ let labelElement = /*#__PURE__*/React.createElement(FieldContainer, {
86
+ isLocked: isLocked,
87
+ lockedInfoText: lockedInfoText,
88
+ infoText: infoText,
89
+ renderProps: renderLabelProps
84
90
  }, /*#__PURE__*/React.createElement(Label, _extends({
85
91
  text: labelName,
86
92
  id: id,
@@ -92,17 +98,7 @@ export default class CheckBoxField extends PureComponent {
92
98
  onClick: !removeEvent ? this.handleLabelClick : null,
93
99
  variant: isDirectCol ? 'default' : 'primary',
94
100
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
95
- }, LabelProps)), infoText ? /*#__PURE__*/React.createElement(Icon, {
96
- name: "ZD-GN-info",
97
- iconClass: style.infoIcon,
98
- title: infoText,
99
- size: "15"
100
- }) : null, isLocked ? /*#__PURE__*/React.createElement(Icon, {
101
- name: "ZD-GN-lock",
102
- size: "13",
103
- iconClass: style.lockIcon,
104
- title: lockedInfoText
105
- }) : null);
101
+ }, LabelProps)));
106
102
  return /*#__PURE__*/React.createElement("div", {
107
103
  className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
108
104
  "data-title": isDisabled ? title : null
@@ -139,16 +135,11 @@ export default class CheckBoxField extends PureComponent {
139
135
  }
140
136
  CheckBoxField.propTypes = {
141
137
  checked: PropTypes.bool,
142
- dataId: PropTypes.string,
143
138
  direction: PropTypes.oneOf(['row', 'column']),
144
139
  errorType: PropTypes.oneOf(['primary', 'secondary']),
145
140
  fieldSize: PropTypes.oneOf(['small', 'medium']),
146
141
  getRef: PropTypes.func,
147
142
  id: PropTypes.string.isRequired,
148
- infoText: PropTypes.string,
149
- isDisabled: PropTypes.bool,
150
- isMandatory: PropTypes.bool,
151
- isReadOnly: PropTypes.bool,
152
143
  labelCustomClass: PropTypes.string,
153
144
  labelName: PropTypes.string,
154
145
  labelPalette: PropTypes.string,
@@ -159,26 +150,23 @@ CheckBoxField.propTypes = {
159
150
  validationPalette: PropTypes.string,
160
151
  validationRuleMessage: PropTypes.string,
161
152
  validationRulePalette: PropTypes.string,
162
- lockedInfoText: PropTypes.string,
163
- isLocked: PropTypes.bool,
164
153
  customProps: PropTypes.shape({
165
154
  LabelProps: PropTypes.object,
166
155
  CheckBoxProps: PropTypes.object,
167
156
  ValidationMessageProps1: PropTypes.object,
168
157
  ValidationMessageProps2: PropTypes.object
169
- })
158
+ }),
159
+ ...FieldCommonPropTypes()
170
160
  };
171
161
  CheckBoxField.defaultProps = {
172
- isMandatory: false,
173
162
  errorType: 'primary',
174
- isDisabled: false,
175
- isReadOnly: false,
176
163
  fieldSize: 'medium',
177
164
  labelPalette: 'default',
178
165
  labelCustomClass: '',
179
166
  direction: 'row',
180
167
  lineClamp: '',
181
- customProps: {}
168
+ customProps: {},
169
+ ...FieldCommonDefaultProps()
182
170
  };
183
171
 
184
172
  if (false) {
@@ -16,7 +16,14 @@ export default class CheckBoxField__default extends Component {
16
16
  id: "checkbox",
17
17
  validationMessage: "Invalid Input",
18
18
  isDisabled: true,
19
- title: "Invalid Permission"
19
+ title: "Invalid Permission",
20
+ infoText: "infoText",
21
+ isLocked: true,
22
+ ePhiData: {
23
+ ePhiTitle: 'ePhiTitle',
24
+ ePhiText: 'ePhiText',
25
+ ePhiStatus: true
26
+ }
20
27
  }));
21
28
  }
22
29
 
@@ -9,9 +9,11 @@ import Label from '@zohodesk/components/lib/Label/Label';
9
9
  import TextBox from '@zohodesk/components/lib/TextBox/TextBox';
10
10
  import ValidationMessage from '../ValidationMessage/ValidationMessage';
11
11
  import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
12
- /**** Icons ****/
12
+ import FieldContainer from '../FieldContainer/FieldContainer';
13
+ /**** props ****/
13
14
 
14
- import Icon from '@zohodesk/icons/lib/Icon';
15
+ import { FieldCommonDefaultProps } from '../props/FieldCommonDefaultProps';
16
+ import { FieldCommonPropTypes } from '../props/FieldCommonPropTypes';
15
17
  /**** CSS ****/
16
18
 
17
19
  import style from '../Fields.module.css';
@@ -81,7 +83,6 @@ export default class CurrencyField extends PureComponent {
81
83
  errorType,
82
84
  isDisabled,
83
85
  title,
84
- onBlur,
85
86
  dataId,
86
87
  validationRuleMessage,
87
88
  validationRulePalette,
@@ -99,7 +100,8 @@ export default class CurrencyField extends PureComponent {
99
100
  isClickable,
100
101
  userCurrencyType,
101
102
  customProps,
102
- formatCurrency
103
+ formatCurrency,
104
+ renderLabelProps
103
105
  } = this.props;
104
106
  const {
105
107
  LabelProps = {},
@@ -122,8 +124,11 @@ export default class CurrencyField extends PureComponent {
122
124
  return /*#__PURE__*/React.createElement("div", {
123
125
  className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
124
126
  "data-title": isDisabled ? title : null
125
- }, labelName && /*#__PURE__*/React.createElement("div", {
126
- className: style.labelContainer
127
+ }, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
128
+ infoText: infoText,
129
+ isLocked: isLocked,
130
+ lockedInfoText: lockedInfoText,
131
+ renderProps: renderLabelProps
127
132
  }, /*#__PURE__*/React.createElement(Label, _extends({
128
133
  text: labelName,
129
134
  size: fieldSize === 'small' ? 'small' : 'medium',
@@ -131,17 +136,7 @@ export default class CurrencyField extends PureComponent {
131
136
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
132
137
  htmlFor: uniqueId,
133
138
  dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
134
- }, LabelProps)), infoText ? /*#__PURE__*/React.createElement(Icon, {
135
- name: "ZD-GN-info",
136
- iconClass: style.infoIcon,
137
- title: infoText,
138
- size: "15"
139
- }) : null, isLocked ? /*#__PURE__*/React.createElement(Icon, {
140
- name: "ZD-GN-lock",
141
- size: "13",
142
- iconClass: style.lockIcon,
143
- title: lockedInfoText
144
- }) : null), /*#__PURE__*/React.createElement("div", {
139
+ }, LabelProps))), /*#__PURE__*/React.createElement("div", {
145
140
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
146
141
  }, /*#__PURE__*/React.createElement(TextBox, _extends({
147
142
  htmlId: uniqueId,
@@ -182,15 +177,10 @@ export default class CurrencyField extends PureComponent {
182
177
  }
183
178
  CurrencyField.propTypes = {
184
179
  borderColor: PropTypes.oneOf(['transparent', 'default']),
185
- dataId: PropTypes.string,
186
180
  errorType: PropTypes.oneOf(['primary', 'secondary']),
187
181
  fieldSize: PropTypes.oneOf(['small', 'medium']),
188
182
  getRef: PropTypes.func,
189
183
  id: PropTypes.string,
190
- infoText: PropTypes.string,
191
- isDisabled: PropTypes.bool,
192
- isMandatory: PropTypes.bool,
193
- isReadOnly: PropTypes.bool,
194
184
  labelCustomClass: PropTypes.string,
195
185
  labelName: PropTypes.string.isRequired,
196
186
  labelPalette: PropTypes.string,
@@ -208,8 +198,6 @@ CurrencyField.propTypes = {
208
198
  validationRuleMessage: PropTypes.string,
209
199
  validationRulePalette: PropTypes.string,
210
200
  value: PropTypes.string,
211
- lockedInfoText: PropTypes.string,
212
- isLocked: PropTypes.bool,
213
201
  isClickable: PropTypes.bool,
214
202
  needReadOnlyStyle: PropTypes.bool,
215
203
  customProps: PropTypes.shape({
@@ -218,24 +206,23 @@ CurrencyField.propTypes = {
218
206
  ValidationMessageProps1: PropTypes.object,
219
207
  ValidationMessageProps2: PropTypes.object
220
208
  }),
221
- formatCurrency: PropTypes.func
209
+ formatCurrency: PropTypes.func,
210
+ ...FieldCommonPropTypes()
222
211
  };
223
212
  CurrencyField.defaultProps = {
224
213
  errorType: 'primary',
225
- isMandatory: false,
226
214
  textBoxSize: 'xmedium',
227
215
  textBoxType: 'text',
228
216
  textBoxVariant: 'primary',
229
217
  borderColor: 'default',
230
- isDisabled: false,
231
- isReadOnly: false,
232
218
  fieldSize: 'medium',
233
219
  labelPalette: 'default',
234
220
  labelCustomClass: '',
235
221
  isClickable: false,
236
222
  needReadOnlyStyle: true,
237
223
  customProps: {},
238
- formatCurrency: () => {}
224
+ formatCurrency: () => {},
225
+ ...FieldCommonDefaultProps()
239
226
  };
240
227
 
241
228
  if (false) {