@zohodesk/dot 1.2.4 → 1.3.0

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 (257) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/PropValidationExcludeFilesArray.js +1 -1
  3. package/.cli/propValidation_report.html +1 -1
  4. package/README.md +9 -0
  5. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  6. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  7. package/coverage/ExternalLink/index.html +1 -1
  8. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  9. package/coverage/ExternalLink/props/index.html +1 -1
  10. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  11. package/coverage/Image/Image.js.html +1 -1
  12. package/coverage/Image/Image.module.css.html +1 -1
  13. package/coverage/Image/index.html +1 -1
  14. package/coverage/Image/props/defaultProps.js.html +1 -1
  15. package/coverage/Image/props/index.html +1 -1
  16. package/coverage/Image/props/propTypes.js.html +1 -1
  17. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  18. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  19. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  20. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  21. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  22. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  23. package/coverage/coverage-final.json +12 -12
  24. package/coverage/coverage-summary.json +12 -12
  25. package/coverage/index.html +1 -1
  26. package/es/Drawer/Drawer.js +3 -2
  27. package/es/v1/ActionButton/ActionButton.js +11 -8
  28. package/es/v1/AlphabeticList/AlphabeticList.js +2 -2
  29. package/es/v1/Attachment/Attachment.js +1 -1
  30. package/es/v1/AttachmentViewer/AttachmentViewer.js +4 -4
  31. package/es/v1/ChannelIcon/ChannelIcon.js +1 -1
  32. package/es/v1/Drawer/Drawer.js +6 -6
  33. package/es/v1/FlipCard/FlipCard.js +4 -4
  34. package/es/v1/FormAction/FormAction.js +1 -1
  35. package/es/v1/FreezeLayer/FreezeLayer.js +3 -3
  36. package/es/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
  37. package/es/v1/IconButton/IconButton.js +3 -3
  38. package/es/v1/ImportantNotes/ImportantNotes.js +1 -1
  39. package/es/v1/Loader/Loader.js +1 -1
  40. package/es/v1/MessageBanner/MessageBanner.js +1 -1
  41. package/es/v1/NewStar/NewStar.js +1 -1
  42. package/es/v1/Separator/Separator.js +1 -1
  43. package/es/v1/TagWithIcon/TagWithIcon.js +1 -1
  44. package/es/v1/ToastMessage/ToastMessage.js +4 -4
  45. package/es/v1/Upload/Upload.js +1 -1
  46. package/es/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
  47. package/es/v1/alert/AlertHeader/AlertHeader.js +58 -49
  48. package/es/v1/alert/AlertLookup/AlertLookup.js +101 -41
  49. package/es/v1/avatar/AvatarClose/AvatarClose.js +1 -1
  50. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
  51. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
  52. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
  53. package/es/v1/avatar/AvatarThread/AvatarThread.js +1 -1
  54. package/es/v1/avatar/AvatarUser/AvatarUser.js +1 -1
  55. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
  56. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -15
  57. package/es/v1/errorstate/Inconvenience/Inconvenience.js +53 -80
  58. package/es/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
  59. package/es/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
  60. package/es/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -73
  61. package/es/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
  62. package/es/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
  63. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +102 -118
  64. package/es/v1/form/fields/CurrencyField/CurrencyField.js +128 -154
  65. package/es/v1/form/fields/DateField/DateField.js +131 -162
  66. package/es/v1/form/fields/FieldContainer/FieldContainer.js +52 -57
  67. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +144 -168
  68. package/es/v1/form/fields/PhoneField/PhoneField.js +128 -156
  69. package/es/v1/form/fields/RadioField/RadioField.js +2 -2
  70. package/es/v1/form/fields/SelectField/SelectField.js +3 -3
  71. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
  72. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +8 -5
  73. package/es/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
  74. package/es/v1/form/fields/TextEditor/TextEditor.js +1 -1
  75. package/es/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
  76. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
  77. package/es/v1/form/fields/TextareaField/TextareaField.js +3 -3
  78. package/es/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
  79. package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
  80. package/es/v1/layout/SubtabLayout/SubtabLayout.js +2 -2
  81. package/es/v1/list/AvatarFlip/AvatarFlip.js +61 -64
  82. package/es/v1/list/BluePrintStatus/BluePrintStatus.js +11 -18
  83. package/es/v1/list/Comment/Comment.js +25 -32
  84. package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +57 -72
  85. package/es/v1/list/Dot/Dot.js +9 -16
  86. package/es/v1/list/DotNew/DotNew.js +11 -18
  87. package/es/v1/list/GridStencils/GridStencils.js +21 -24
  88. package/es/v1/list/Icons/AddNewIcon.js +19 -22
  89. package/es/v1/list/Icons/CompleteIcon.js +21 -24
  90. package/es/v1/list/Icons/DeleteIcon.js +22 -25
  91. package/es/v1/list/Icons/EditIcon.js +22 -25
  92. package/es/v1/list/Icons/FloatingIcons.js +12 -19
  93. package/es/v1/list/Icons/ReadUnreadIcon.js +24 -27
  94. package/es/v1/list/Icons/SmartIcon.js +20 -23
  95. package/es/v1/list/ListLayout/ListLayout.js +54 -68
  96. package/es/v1/list/ListStencils/ListStencils.js +28 -31
  97. package/es/v1/list/SecondaryText/AccountName.js +1 -1
  98. package/es/v1/list/SecondaryText/ContactName.js +1 -1
  99. package/es/v1/list/SecondryPanel/SecondryPanel.js +1 -2
  100. package/es/v1/list/Thread/Thread.js +1 -1
  101. package/es/v1/list/UserTime/UserTime.js +1 -1
  102. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +266 -357
  103. package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
  104. package/es/v1/lookup/Lookup/Lookup.js +4 -3
  105. package/es/v1/lookup/Section/Section.js +1 -1
  106. package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
  107. package/es/v1/lookup/header/Search/Search.js +3 -3
  108. package/es/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
  109. package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
  110. package/es/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
  111. package/es/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
  112. package/es/v1/setup/header/Button/Button.js +1 -1
  113. package/es/v1/setup/header/Link/Link.js +1 -1
  114. package/es/v1/setup/header/Search/Search.js +1 -1
  115. package/es/v1/setup/table/Table/Table.js +1 -1
  116. package/es/v1/setup/table/TableBody/TableBody.js +1 -1
  117. package/es/v1/setup/table/TableData/TableData.js +1 -1
  118. package/es/v1/setup/table/TableHead/TableHead.js +1 -1
  119. package/es/v1/setup/table/TableRow/TableRow.js +1 -1
  120. package/lib/Drawer/Drawer.js +3 -2
  121. package/lib/v1/ActionButton/ActionButton.js +11 -9
  122. package/lib/v1/AlphabeticList/AlphabeticList.js +2 -4
  123. package/lib/v1/Attachment/Attachment.js +1 -1
  124. package/lib/v1/AttachmentViewer/AttachmentViewer.js +4 -4
  125. package/lib/v1/ChannelIcon/ChannelIcon.js +1 -1
  126. package/lib/v1/Drawer/Drawer.js +6 -6
  127. package/lib/v1/FlipCard/FlipCard.js +4 -4
  128. package/lib/v1/FormAction/FormAction.js +1 -1
  129. package/lib/v1/FreezeLayer/FreezeLayer.js +3 -3
  130. package/lib/v1/{version2/GlobalNotification → GlobalNotification}/GlobalNotification.js +7 -7
  131. package/lib/v1/IconButton/IconButton.js +3 -3
  132. package/lib/v1/ImportantNotes/ImportantNotes.js +1 -1
  133. package/lib/v1/Loader/Loader.js +1 -1
  134. package/lib/v1/MessageBanner/MessageBanner.js +1 -1
  135. package/lib/v1/NewStar/NewStar.js +1 -1
  136. package/lib/v1/Separator/Separator.js +1 -1
  137. package/lib/v1/TagWithIcon/TagWithIcon.js +1 -1
  138. package/lib/v1/ToastMessage/ToastMessage.js +4 -4
  139. package/lib/v1/Upload/Upload.js +1 -1
  140. package/lib/v1/{version2 → alert}/AlertClose/AlertClose.js +1 -1
  141. package/lib/v1/alert/AlertHeader/AlertHeader.js +68 -50
  142. package/lib/v1/alert/AlertLookup/AlertLookup.js +109 -42
  143. package/lib/v1/avatar/AvatarClose/AvatarClose.js +1 -1
  144. package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +1 -1
  145. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +2 -2
  146. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +1 -1
  147. package/lib/v1/avatar/AvatarThread/AvatarThread.js +1 -1
  148. package/lib/v1/avatar/AvatarUser/AvatarUser.js +1 -1
  149. package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +2 -2
  150. package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +18 -16
  151. package/lib/v1/errorstate/Inconvenience/Inconvenience.js +53 -115
  152. package/lib/v1/{version2/errorstate → errorstate}/OopsSomethingMiss/OopsSomethingMiss.js +6 -6
  153. package/lib/v1/{version2/errorstate → errorstate}/UnableToProcessRequest/UnableToProcessRequest.js +6 -6
  154. package/lib/v1/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +54 -108
  155. package/lib/v1/{version2/errorstate → errorstate}/UrlNotFound/UrlNotFound.js +6 -6
  156. package/lib/v1/{version2/errorstate → errorstate}/WillBeRightBack/WillBeRightBack.js +6 -6
  157. package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +107 -159
  158. package/lib/v1/form/fields/CurrencyField/CurrencyField.js +152 -193
  159. package/lib/v1/form/fields/DateField/DateField.js +140 -206
  160. package/lib/v1/form/fields/FieldContainer/FieldContainer.js +60 -91
  161. package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +168 -228
  162. package/lib/v1/form/fields/PhoneField/PhoneField.js +150 -193
  163. package/lib/v1/form/fields/RadioField/RadioField.js +2 -2
  164. package/lib/v1/form/fields/SelectField/SelectField.js +3 -3
  165. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +8 -8
  166. package/lib/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -8
  167. package/lib/v1/form/fields/TextBoxField/TextBoxField.js +3 -3
  168. package/lib/v1/form/fields/TextEditor/TextEditor.js +1 -1
  169. package/lib/v1/form/fields/TextEditorField/TextEditorField.js +1 -1
  170. package/lib/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
  171. package/lib/v1/form/fields/TextareaField/TextareaField.js +3 -3
  172. package/lib/v1/form/fields/ValidationMessage/ValidationMessage.js +2 -2
  173. package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +1 -1
  174. package/lib/v1/layout/SubtabLayout/SubtabLayout.js +2 -2
  175. package/lib/v1/list/AvatarFlip/AvatarFlip.js +61 -106
  176. package/lib/v1/list/BluePrintStatus/BluePrintStatus.js +11 -51
  177. package/lib/v1/list/Comment/Comment.js +24 -69
  178. package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +67 -122
  179. package/lib/v1/list/Dot/Dot.js +9 -54
  180. package/lib/v1/list/DotNew/DotNew.js +11 -56
  181. package/lib/v1/list/GridStencils/GridStencils.js +21 -62
  182. package/lib/v1/list/Icons/AddNewIcon.js +19 -60
  183. package/lib/v1/list/Icons/CompleteIcon.js +21 -62
  184. package/lib/v1/list/Icons/DeleteIcon.js +22 -63
  185. package/lib/v1/list/Icons/EditIcon.js +22 -63
  186. package/lib/v1/list/Icons/FloatingIcons.js +17 -62
  187. package/lib/v1/list/Icons/ReadUnreadIcon.js +24 -65
  188. package/lib/v1/list/Icons/SmartIcon.js +20 -65
  189. package/lib/v1/list/ListLayout/ListLayout.js +53 -116
  190. package/lib/v1/list/ListStencils/ListStencils.js +33 -72
  191. package/lib/v1/list/SecondaryText/AccountName.js +1 -1
  192. package/lib/v1/list/SecondaryText/ContactName.js +1 -1
  193. package/lib/v1/list/SecondryPanel/SecondryPanel.js +3 -5
  194. package/lib/v1/list/Thread/Thread.js +1 -1
  195. package/lib/v1/list/UserTime/UserTime.js +1 -1
  196. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +367 -472
  197. package/lib/v1/list/status/StatusListItem/StatusListItem.js +5 -5
  198. package/lib/v1/lookup/Lookup/Lookup.js +5 -3
  199. package/lib/v1/lookup/Section/Section.js +1 -1
  200. package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
  201. package/lib/v1/lookup/header/Search/Search.js +3 -3
  202. package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +1 -1
  203. package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +10 -9
  204. package/lib/v1/{version2/notification → notification}/DesktopNotification/DesktopNotification.js +6 -6
  205. package/lib/v1/{version2/notification → notification}/DesktopNotificationHeader/DesktopNotificationHeader.js +6 -6
  206. package/lib/v1/setup/header/Button/Button.js +1 -1
  207. package/lib/v1/setup/header/Link/Link.js +1 -1
  208. package/lib/v1/setup/header/Search/Search.js +1 -1
  209. package/lib/v1/setup/table/Table/Table.js +1 -1
  210. package/lib/v1/setup/table/TableBody/TableBody.js +1 -1
  211. package/lib/v1/setup/table/TableData/TableData.js +1 -1
  212. package/lib/v1/setup/table/TableHead/TableHead.js +1 -1
  213. package/lib/v1/setup/table/TableRow/TableRow.js +1 -1
  214. package/package.json +8 -8
  215. package/result.json +1 -1
  216. package/es/v1/errorstate/LinkText/LinkText.js +0 -29
  217. package/es/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -84
  218. package/es/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -83
  219. package/es/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -84
  220. package/es/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -86
  221. package/es/v1/errorstate/WillBack/WillBack.js +0 -75
  222. package/es/v1/errorstate/index.js +0 -8
  223. package/es/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -63
  224. package/es/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -65
  225. package/es/v1/version2/index.js +0 -12
  226. package/es/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -79
  227. package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -164
  228. package/lib/v1/errorstate/LinkText/LinkText.js +0 -80
  229. package/lib/v1/errorstate/NoRequestFound/NoRequestFound.js +0 -135
  230. package/lib/v1/errorstate/PermissionPlay/PermissionPlay.js +0 -134
  231. package/lib/v1/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +0 -135
  232. package/lib/v1/errorstate/UnableToProcess/UnableToProcess.js +0 -137
  233. package/lib/v1/errorstate/WillBack/WillBack.js +0 -125
  234. package/lib/v1/errorstate/index.js +0 -71
  235. package/lib/v1/version2/errorstate/Inconvenience/Inconvenience.js +0 -79
  236. package/lib/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +0 -81
  237. package/lib/v1/version2/index.js +0 -58
  238. package/lib/v1/version2/lookup/AlertHeader/AlertHeader.js +0 -104
  239. package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +0 -185
  240. /package/es/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
  241. /package/es/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
  242. /package/es/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
  243. /package/es/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
  244. /package/es/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
  245. /package/es/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
  246. /package/es/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
  247. /package/es/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
  248. /package/es/v1/{version2 → alert}/alertIcons/index.js +0 -0
  249. /package/lib/v1/{version2 → alert}/alertIcons/AlarmAlertIcon.js +0 -0
  250. /package/lib/v1/{version2 → alert}/alertIcons/AlertIcons.js +0 -0
  251. /package/lib/v1/{version2 → alert}/alertIcons/DangerAlertIcon.js +0 -0
  252. /package/lib/v1/{version2 → alert}/alertIcons/ErrorAlertIcon.js +0 -0
  253. /package/lib/v1/{version2 → alert}/alertIcons/InfoAlertIcon.js +0 -0
  254. /package/lib/v1/{version2 → alert}/alertIcons/NotificationAlertIcon.js +0 -0
  255. /package/lib/v1/{version2 → alert}/alertIcons/SuccessAlertIcon.js +0 -0
  256. /package/lib/v1/{version2 → alert}/alertIcons/WarningAlertIcon.js +0 -0
  257. /package/lib/v1/{version2 → alert}/alertIcons/index.js +0 -0
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = void 0;
6
+ exports["default"] = AvatarFlip;
9
7
 
10
- var _react = _interopRequireWildcard(require("react"));
8
+ var _react = _interopRequireDefault(require("react"));
11
9
 
12
10
  var _defaultProps = require("../../../list/AvatarFlip/props/defaultProps");
13
11
 
@@ -19,109 +17,66 @@ var _AvatarFlipModule = _interopRequireDefault(require("../../../list/AvatarFlip
19
17
 
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
19
 
22
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
-
24
- 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; }
25
-
26
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
-
28
- 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); } }
29
-
30
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
31
-
32
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
33
-
34
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
-
36
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
37
-
38
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
20
+ function AvatarFlip(props) {
21
+ var id = props.id,
22
+ action = props.action,
23
+ name = props.name,
24
+ isChecked = props.isChecked,
25
+ onChange = props.onChange,
26
+ noNeedFlip = props.noNeedFlip,
27
+ size = props.size,
28
+ onClick = props.onClick,
29
+ isPaidUser = props.isPaidUser,
30
+ isPortalUser = props.isPortalUser,
31
+ channel = props.channel,
32
+ src = props.src,
33
+ icon = props.icon,
34
+ initial = props.initial,
35
+ dataId = props.dataId,
36
+ className = props.className,
37
+ palette = props.palette,
38
+ textPalette = props.textPalette,
39
+ customTextClass = props.customTextClass,
40
+ frontClass = props.frontClass,
41
+ needTitle = props.needTitle,
42
+ tourId = props.tourId,
43
+ iconSize = props.iconSize,
44
+ isFilledCheckbox = props.isFilledCheckbox,
45
+ channelTitle = props.channelTitle,
46
+ customProps = props.customProps;
47
+ return /*#__PURE__*/_react["default"].createElement(_FlipCard["default"], {
48
+ id: id,
49
+ action: action,
50
+ name: name,
51
+ initial: initial,
52
+ isChecked: isChecked,
53
+ onChange: onChange,
54
+ noNeedFlip: noNeedFlip,
55
+ size: size,
56
+ onClick: onClick,
57
+ isPaidUser: isPaidUser,
58
+ isPortalUser: isPortalUser,
59
+ channel: channel,
60
+ src: src,
61
+ icon: icon,
62
+ iconSize: iconSize,
63
+ iconClass: "".concat(_AvatarFlipModule["default"].iconStyle),
64
+ dataId: dataId,
65
+ ticListContainer: "tic-list-filp-cont",
66
+ ticList: "tic-list-filp",
67
+ className: className,
68
+ palette: palette,
69
+ textPalette: textPalette,
70
+ customTextClass: customTextClass,
71
+ frontClass: frontClass,
72
+ needTitle: needTitle,
73
+ tourId: tourId,
74
+ isFilledCheckbox: isFilledCheckbox,
75
+ channelTitle: channelTitle,
76
+ customProps: customProps
77
+ });
78
+ }
39
79
 
40
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
41
-
42
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
43
-
44
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
45
-
46
- var AvatarFlip = /*#__PURE__*/function (_Component) {
47
- _inherits(AvatarFlip, _Component);
48
-
49
- var _super = _createSuper(AvatarFlip);
50
-
51
- function AvatarFlip() {
52
- _classCallCheck(this, AvatarFlip);
53
-
54
- return _super.apply(this, arguments);
55
- }
56
-
57
- _createClass(AvatarFlip, [{
58
- key: "render",
59
- value: function render() {
60
- var _this$props = this.props,
61
- id = _this$props.id,
62
- action = _this$props.action,
63
- name = _this$props.name,
64
- isChecked = _this$props.isChecked,
65
- onChange = _this$props.onChange,
66
- noNeedFlip = _this$props.noNeedFlip,
67
- size = _this$props.size,
68
- onClick = _this$props.onClick,
69
- isPaidUser = _this$props.isPaidUser,
70
- isPortalUser = _this$props.isPortalUser,
71
- channel = _this$props.channel,
72
- src = _this$props.src,
73
- icon = _this$props.icon,
74
- initial = _this$props.initial,
75
- dataId = _this$props.dataId,
76
- className = _this$props.className,
77
- palette = _this$props.palette,
78
- textPalette = _this$props.textPalette,
79
- customTextClass = _this$props.customTextClass,
80
- frontClass = _this$props.frontClass,
81
- needTitle = _this$props.needTitle,
82
- tourId = _this$props.tourId,
83
- iconSize = _this$props.iconSize,
84
- isFilledCheckbox = _this$props.isFilledCheckbox,
85
- channelTitle = _this$props.channelTitle,
86
- customProps = _this$props.customProps;
87
- return /*#__PURE__*/_react["default"].createElement(_FlipCard["default"], {
88
- id: id,
89
- action: action,
90
- name: name,
91
- initial: initial,
92
- isChecked: isChecked,
93
- onChange: onChange,
94
- noNeedFlip: noNeedFlip,
95
- size: size,
96
- onClick: onClick,
97
- isPaidUser: isPaidUser,
98
- isPortalUser: isPortalUser,
99
- channel: channel,
100
- src: src,
101
- icon: icon,
102
- iconSize: iconSize,
103
- iconClass: "".concat(_AvatarFlipModule["default"].iconStyle),
104
- dataId: dataId,
105
- ticListContainer: "tic-list-filp-cont",
106
- ticList: "tic-list-filp",
107
- className: className,
108
- palette: palette,
109
- textPalette: textPalette,
110
- customTextClass: customTextClass,
111
- frontClass: frontClass,
112
- needTitle: needTitle,
113
- tourId: tourId,
114
- isFilledCheckbox: isFilledCheckbox,
115
- channelTitle: channelTitle,
116
- customProps: customProps
117
- });
118
- }
119
- }]);
120
-
121
- return AvatarFlip;
122
- }(_react.Component);
123
-
124
- exports["default"] = AvatarFlip;
125
80
  AvatarFlip.propTypes = _propTypes.propTypes;
126
81
  AvatarFlip.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
127
82
  // AvatarFlip.docs = {
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = void 0;
6
+ exports["default"] = BluePrintStatus;
9
7
 
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
 
@@ -17,55 +15,17 @@ var _icons = require("@zohodesk/icons");
17
15
 
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
17
 
20
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
-
22
- 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); } }
23
-
24
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
-
26
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
-
28
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
-
30
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
31
-
32
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
33
-
34
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
18
+ function BluePrintStatus(props) {
19
+ var title = props.title;
20
+ return /*#__PURE__*/_react["default"].createElement("span", {
21
+ className: "".concat(_BluePrintStatusModule["default"].container)
22
+ }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
23
+ name: "ZD-blueprint",
24
+ title: title,
25
+ iconClass: _BluePrintStatusModule["default"].iconStyle
26
+ }));
27
+ }
35
28
 
36
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
37
-
38
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
-
40
- var BluePrintStatus = /*#__PURE__*/function (_React$Component) {
41
- _inherits(BluePrintStatus, _React$Component);
42
-
43
- var _super = _createSuper(BluePrintStatus);
44
-
45
- function BluePrintStatus(props) {
46
- _classCallCheck(this, BluePrintStatus);
47
-
48
- return _super.call(this, props);
49
- }
50
-
51
- _createClass(BluePrintStatus, [{
52
- key: "render",
53
- value: function render() {
54
- var title = this.props.title;
55
- return /*#__PURE__*/_react["default"].createElement("span", {
56
- className: "".concat(_BluePrintStatusModule["default"].container)
57
- }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
58
- name: "ZD-blueprint",
59
- title: title,
60
- iconClass: _BluePrintStatusModule["default"].iconStyle
61
- }));
62
- }
63
- }]);
64
-
65
- return BluePrintStatus;
66
- }(_react["default"].Component);
67
-
68
- exports["default"] = BluePrintStatus;
69
29
  BluePrintStatus.propTypes = _propTypes.propTypes; // if (__DOCS__) {
70
30
  // BluePrintStatus.docs = {
71
31
  // componentGroup: 'Atom'
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = void 0;
6
+ exports["default"] = Comment;
9
7
 
10
- var _react = _interopRequireWildcard(require("react"));
8
+ var _react = _interopRequireDefault(require("react"));
11
9
 
12
10
  var _defaultProps = require("../../../list/Comment/props/defaultProps");
13
11
 
@@ -17,78 +15,35 @@ var _icons = require("@zohodesk/icons");
17
15
 
18
16
  var _i18n = require("@zohodesk/i18n");
19
17
 
20
- var _Button = _interopRequireDefault(require("@zohodesk/components/lib/semantic/Button/Button"));
18
+ var _Button = _interopRequireDefault(require("@zohodesk/components/es/v1/semantic/Button/Button"));
21
19
 
22
20
  var _CommentModule = _interopRequireDefault(require("../../../list/Comment/Comment.module.css"));
23
21
 
24
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
23
 
26
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
-
28
- 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; }
29
-
30
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
31
-
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); } }
33
-
34
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
35
-
36
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
37
-
38
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
39
-
40
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
41
-
42
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
43
-
44
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
45
-
46
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
47
-
48
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
49
-
50
- var Comment = /*#__PURE__*/function (_Component) {
51
- _inherits(Comment, _Component);
52
-
53
- var _super = _createSuper(Comment);
54
-
55
- function Comment(props) {
56
- _classCallCheck(this, Comment);
57
-
58
- return _super.call(this, props);
59
- }
60
-
61
- _createClass(Comment, [{
62
- key: "render",
63
- value: function render() {
64
- var _this$props = this.props,
65
- count = _this$props.count,
66
- onClick = _this$props.onClick,
67
- className = _this$props.className;
68
- var i18N = _i18n.i18NProviderUtils.getI18NValue;
69
- var commentCount = parseInt(count);
70
- var commentTitle = !commentCount ? i18N('tabs.request.comment') : commentCount > 1 ? i18N('support.comment.many', count) : i18N('support.comment.one');
71
- return /*#__PURE__*/_react["default"].createElement(_Button["default"], {
72
- customClass: "".concat(_CommentModule["default"].container, " ").concat(className, " "),
73
- onClick: onClick,
74
- dataId: "commentLstContainer",
75
- title: commentTitle,
76
- a11y: {
77
- ariaLabel: commentTitle
78
- }
79
- }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
80
- name: "ZD-TK-commentLine",
81
- iconClass: _CommentModule["default"].commentIcon
82
- }), count && /*#__PURE__*/_react["default"].createElement("span", {
83
- className: _CommentModule["default"].count
84
- }, count));
24
+ function Comment(props) {
25
+ var count = props.count,
26
+ onClick = props.onClick,
27
+ className = props.className;
28
+ var i18N = _i18n.i18NProviderUtils.getI18NValue;
29
+ var commentCount = parseInt(count);
30
+ var commentTitle = !commentCount ? i18N('tabs.request.comment') : commentCount > 1 ? i18N('support.comment.many', count) : i18N('support.comment.one');
31
+ return /*#__PURE__*/_react["default"].createElement(_Button["default"], {
32
+ customClass: "".concat(_CommentModule["default"].container, " ").concat(className, " "),
33
+ onClick: onClick,
34
+ dataId: "commentLstContainer",
35
+ title: commentTitle,
36
+ a11y: {
37
+ ariaLabel: commentTitle
85
38
  }
86
- }]);
39
+ }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
40
+ name: "ZD-TK-commentLine",
41
+ iconClass: _CommentModule["default"].commentIcon
42
+ }), count && /*#__PURE__*/_react["default"].createElement("span", {
43
+ className: _CommentModule["default"].count
44
+ }, count));
45
+ }
87
46
 
88
- return Comment;
89
- }(_react.Component);
90
-
91
- exports["default"] = Comment;
92
47
  Comment.defaultProps = _defaultProps.defaultProps;
93
48
  Comment.propTypes = _propTypes.propTypes; // if (__DOCS__) {
94
49
  // Comment.docs = {
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports["default"] = void 0;
9
7
 
10
- var _react = _interopRequireWildcard(require("react"));
8
+ var _react = _interopRequireDefault(require("react"));
11
9
 
12
10
  var _defaultProps = require("../../../list/DepartmentDropDown/props/defaultProps");
13
11
 
@@ -21,129 +19,76 @@ var _DepartmentDropDownModule = _interopRequireDefault(require("../../../list/De
21
19
 
22
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
21
 
24
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
-
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
-
28
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
-
30
- 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); } }
31
-
32
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
33
-
34
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
35
-
36
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
-
38
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
39
-
40
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
41
-
42
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
43
-
44
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
45
-
46
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
47
-
48
- var DepartmentDropDown = /*#__PURE__*/function (_Component) {
49
- _inherits(DepartmentDropDown, _Component);
50
-
51
- var _super = _createSuper(DepartmentDropDown);
52
-
53
- function DepartmentDropDown(props) {
54
- var _this;
55
-
56
- _classCallCheck(this, DepartmentDropDown);
22
+ function DepartmentDropDown(props) {
23
+ var departmentName = props.departmentName,
24
+ _props$departmentList = props.departmentList,
25
+ departmentList = _props$departmentList === void 0 ? [] : _props$departmentList,
26
+ onSelectLabel = props.onSelectLabel,
27
+ isEditable = props.isEditable,
28
+ dataId = props.dataId,
29
+ isFetching = props.isFetching,
30
+ isPopupActive = props.isPopupActive,
31
+ getNextOptions = props.getNextOptions,
32
+ isNextOptions = props.isNextOptions,
33
+ onSearch = props.onSearch,
34
+ needSearchFetching = props.needSearchFetching,
35
+ searchStr = props.searchStr,
36
+ i18nKeys = props.i18nKeys,
37
+ onMoveDepartment = props.onMoveDepartment,
38
+ getDepartment = props.getDepartment;
39
+ var _i18nKeys$title = i18nKeys.title,
40
+ title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
41
+ _i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
42
+ searchEmptyText = _i18nKeys$searchEmpty === void 0 ? 'No results found' : _i18nKeys$searchEmpty,
43
+ _i18nKeys$searchError = i18nKeys.searchErrorText,
44
+ searchErrorText = _i18nKeys$searchError === void 0 ? 'No results' : _i18nKeys$searchError,
45
+ _i18nKeys$placeholder = i18nKeys.placeholder,
46
+ placeholder = _i18nKeys$placeholder === void 0 ? 'Search Department' : _i18nKeys$placeholder;
47
+
48
+ function onClick(e) {
49
+ if (getDepartment) {
50
+ getDepartment(e);
51
+ }
57
52
 
58
- _this = _super.call(this, props);
59
- _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));
60
- _this.onMoveDepartment = _this.onMoveDepartment.bind(_assertThisInitialized(_this));
61
- return _this;
53
+ onSearch('');
62
54
  }
63
55
 
64
- _createClass(DepartmentDropDown, [{
65
- key: "onClick",
66
- value: function onClick(e) {
67
- var _this$props = this.props,
68
- getDepartment = _this$props.getDepartment,
69
- onSearch = _this$props.onSearch;
70
-
71
- if (getDepartment) {
72
- getDepartment(e);
73
- }
74
-
75
- onSearch('');
76
- }
77
- }, {
78
- key: "onMoveDepartment",
79
- value: function onMoveDepartment(deptId) {
80
- var _this$props2 = this.props,
81
- onSearch = _this$props2.onSearch,
82
- onMoveDepartment = _this$props2.onMoveDepartment;
83
- onSearch('');
84
- onMoveDepartment(deptId);
85
- }
86
- }, {
87
- key: "render",
88
- value: function render() {
89
- var _this$props3 = this.props,
90
- departmentName = _this$props3.departmentName,
91
- _this$props3$departme = _this$props3.departmentList,
92
- departmentList = _this$props3$departme === void 0 ? [] : _this$props3$departme,
93
- onSelectLabel = _this$props3.onSelectLabel,
94
- isEditable = _this$props3.isEditable,
95
- dataId = _this$props3.dataId,
96
- isFetching = _this$props3.isFetching,
97
- isPopupActive = _this$props3.isPopupActive,
98
- getNextOptions = _this$props3.getNextOptions,
99
- isNextOptions = _this$props3.isNextOptions,
100
- onSearch = _this$props3.onSearch,
101
- needSearchFetching = _this$props3.needSearchFetching,
102
- searchStr = _this$props3.searchStr,
103
- i18nKeys = _this$props3.i18nKeys;
104
- var _i18nKeys$title = i18nKeys.title,
105
- title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
106
- _i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
107
- searchEmptyText = _i18nKeys$searchEmpty === void 0 ? 'No results found' : _i18nKeys$searchEmpty,
108
- _i18nKeys$searchError = i18nKeys.searchErrorText,
109
- searchErrorText = _i18nKeys$searchError === void 0 ? 'No results' : _i18nKeys$searchError,
110
- _i18nKeys$placeholder = i18nKeys.placeholder,
111
- placeholder = _i18nKeys$placeholder === void 0 ? 'Search Department' : _i18nKeys$placeholder;
112
- return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], {
113
- title: title,
114
- options: departmentList,
115
- value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
116
- text: departmentName,
117
- dataTitle: departmentName
118
- }),
119
- keyName: "name",
120
- idName: "id",
121
- onClick: this.onMoveDepartment,
122
- isArrow: false,
123
- isEditable: isEditable,
124
- onSelectLabel: onSelectLabel,
125
- isPopupActive: isPopupActive,
126
- needExternalPopupState: true,
127
- isSearch: departmentList.length > 5 || searchStr.length !== 0,
128
- boxSize: "small",
129
- dataId: dataId,
130
- isDataLoaded: !isFetching,
131
- isPadding: false,
132
- searchErrorText: searchErrorText,
133
- searchEmptyHint: searchEmptyText,
134
- isNeedEffect: false,
135
- className: _DepartmentDropDownModule["default"].departmentBox,
136
- placeHolderText: placeholder,
137
- getNextOptions: getNextOptions,
138
- isNextOptions: isNextOptions,
139
- onSearch: onSearch,
140
- needSearchFetching: needSearchFetching
141
- });
142
- }
143
- }]);
56
+ function handleMoveDepartment(deptId) {
57
+ onSearch('');
58
+ onMoveDepartment(deptId);
59
+ }
144
60
 
145
- return DepartmentDropDown;
146
- }(_react.Component);
61
+ return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], {
62
+ title: title,
63
+ options: departmentList,
64
+ value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
65
+ text: departmentName,
66
+ dataTitle: departmentName
67
+ }),
68
+ keyName: "name",
69
+ idName: "id",
70
+ onClick: handleMoveDepartment,
71
+ isArrow: false,
72
+ isEditable: isEditable,
73
+ onSelectLabel: onSelectLabel,
74
+ isPopupActive: isPopupActive,
75
+ needExternalPopupState: true,
76
+ isSearch: departmentList.length > 5 || searchStr.length !== 0,
77
+ boxSize: "small",
78
+ dataId: dataId,
79
+ isDataLoaded: !isFetching,
80
+ isPadding: false,
81
+ searchErrorText: searchErrorText,
82
+ searchEmptyHint: searchEmptyText,
83
+ isNeedEffect: false,
84
+ className: _DepartmentDropDownModule["default"].departmentBox,
85
+ placeHolderText: placeholder,
86
+ getNextOptions: getNextOptions,
87
+ isNextOptions: isNextOptions,
88
+ onSearch: onSearch,
89
+ needSearchFetching: needSearchFetching
90
+ });
91
+ }
147
92
 
148
93
  DepartmentDropDown.defaultProps = _defaultProps.defaultProps;
149
94
  DepartmentDropDown.propTypes = _propTypes.propTypes;