@zohodesk/dot 1.0.0-temp-155 → 1.0.0-temp-157

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 (448) hide show
  1. package/README.md +1350 -1330
  2. package/coverage/ExternalLink/ExternalLink.js.html +229 -0
  3. package/coverage/ExternalLink/ExternalLink.module.css.html +94 -0
  4. package/coverage/ExternalLink/index.html +131 -0
  5. package/coverage/ExternalLink/props/defaultProps.js.html +100 -0
  6. package/coverage/ExternalLink/props/index.html +131 -0
  7. package/coverage/ExternalLink/props/propTypes.js.html +124 -0
  8. package/coverage/Image/Image.js.html +184 -0
  9. package/coverage/Image/Image.module.css.html +118 -0
  10. package/coverage/Image/index.html +131 -0
  11. package/coverage/Image/props/defaultProps.js.html +97 -0
  12. package/coverage/Image/props/index.html +131 -0
  13. package/coverage/Image/props/propTypes.js.html +127 -0
  14. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +448 -0
  15. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +133 -0
  16. package/coverage/avatar/AvatarWithTeam/index.html +131 -0
  17. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +112 -0
  18. package/coverage/avatar/AvatarWithTeam/props/index.html +131 -0
  19. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +163 -0
  20. package/coverage/base.css +224 -0
  21. package/coverage/block-navigation.js +87 -0
  22. package/coverage/coverage-final.json +13 -0
  23. package/coverage/coverage-summary.json +14 -0
  24. package/coverage/favicon.png +0 -0
  25. package/coverage/index.html +191 -0
  26. package/coverage/prettify.css +1 -0
  27. package/coverage/prettify.js +2 -0
  28. package/coverage/sort-arrow-sprite.png +0 -0
  29. package/coverage/sorter.js +196 -0
  30. package/es/ActionButton/ActionButton.module.css +139 -139
  31. package/es/AlphabeticList/AlphabeticList.module.css +57 -57
  32. package/es/Attachment/Attachment.js +2 -1
  33. package/es/Attachment/Attachment.module.css +163 -159
  34. package/es/AttachmentViewer/AttachmentViewer.module.css +352 -352
  35. package/es/ChannelIcon/ChannelIcon.module.css +217 -217
  36. package/es/Drawer/Drawer.js +19 -6
  37. package/es/Drawer/Drawer.module.css +190 -190
  38. package/es/Drawer/props/defaultProps.js +2 -1
  39. package/es/Drawer/props/propTypes.js +2 -1
  40. package/es/ExternalLink/ExternalLink.js +0 -0
  41. package/es/ExternalLink/ExternalLink.module.css +3 -3
  42. package/es/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
  43. package/es/FlipCard/FlipCard.module.css +44 -44
  44. package/es/FormAction/FormAction.module.css +82 -82
  45. package/es/FreezeLayer/FreezeLayer.js +1 -1
  46. package/es/FreezeLayer/css/FreezeLayer.module.css +42 -42
  47. package/es/FreezeLayer/css/cssJSLogic.js +1 -1
  48. package/es/Hooks/Dragger/css/Dragger.module.css +2 -2
  49. package/es/IconButton/IconButton.module.css +22 -22
  50. package/es/Image/Image.module.css +11 -11
  51. package/es/Image/__tests__/Image.spec.js +70 -0
  52. package/es/Image/__tests__/__snapshots__/Image.spec.js.snap +74 -0
  53. package/es/ImportantNotes/ImportantNotes.module.css +20 -20
  54. package/es/Link/Link.js +2 -1
  55. package/es/Link/Link.module.css +3 -3
  56. package/es/Loader/Loader.js +1 -5
  57. package/es/Loader/Loader.module.css +47 -47
  58. package/es/Message/Message.module.css +102 -102
  59. package/es/MessageBanner/MessageBanner.module.css +46 -46
  60. package/es/NewStar/NewStar.module.css +183 -183
  61. package/es/PlusIcon/PlusIcon.js +0 -0
  62. package/es/PlusIcon/PlusIcon.module.css +18 -18
  63. package/es/Separator/Separator.module.css +34 -34
  64. package/es/TagWithIcon/TagWithIcon.module.css +56 -56
  65. package/es/ToastMessage/ToastMessage.js +0 -0
  66. package/es/ToastMessage/ToastMessage.module.css +328 -328
  67. package/es/Upload/Upload.module.css +125 -125
  68. package/es/alert/AlertHeader/AlertHeader.module.css +80 -80
  69. package/es/alert/AlertHeader/props/propTypes.js +1 -1
  70. package/es/alert/AlertLookup/AlertLookup.module.css +26 -26
  71. package/es/avatar/AvatarClose/AvatarClose.module.css +37 -37
  72. package/es/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
  73. package/es/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
  74. package/es/avatar/AvatarStatus/AvatarStatus.js +0 -0
  75. package/es/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
  76. package/es/avatar/AvatarThread/AvatarThread.module.css +166 -166
  77. package/es/avatar/AvatarUser/AvatarUser.js +0 -0
  78. package/es/avatar/AvatarUser/AvatarUser.module.css +171 -171
  79. package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
  80. package/es/common/dot_animation.module.css +26 -26
  81. package/es/common/dot_boxShadow.module.css +37 -37
  82. package/es/common/dot_common.module.css +3 -3
  83. package/es/deprecated/FreezeLayer/_FreezeLayer.module.css +42 -42
  84. package/es/deprecated/SelectDropdown/SelectDropdown.module.css +56 -56
  85. package/es/deprecated/utils/KeyboardApi.js +25 -25
  86. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +168 -210
  87. package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +100 -100
  88. package/es/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
  89. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
  90. package/es/emptystate/EditionPage/EditionPage.css +43 -43
  91. package/es/errorstate/EmptyStates.module.css +87 -87
  92. package/es/errorstate/Inconvenience/Inconvenience.module.css +7 -7
  93. package/es/errorstate/LinkText/LinkText.module.css +6 -6
  94. package/es/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
  95. package/es/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
  96. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
  97. package/es/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
  98. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
  99. package/es/errorstate/WillBack/WillBack.module.css +34 -34
  100. package/es/form/fields/CheckBoxField/CheckBoxField.js +0 -0
  101. package/es/form/fields/Fields.module.css +183 -183
  102. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
  103. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
  104. package/es/form/fields/TextEditor/TextEditor.module.css +770 -770
  105. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +37 -37
  106. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
  107. package/es/form/layout/Field/Field.js +0 -0
  108. package/es/form/layout/Field/Field.module.css +22 -22
  109. package/es/form/layout/Section/ModuleFormSection.module.css +3 -3
  110. package/es/form/layout/Section/Section.js +0 -0
  111. package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
  112. package/es/layout/SubtabLayout/SubtabLayout.module.css +164 -164
  113. package/es/list/AvatarFlip/AvatarFlip.module.css +3 -3
  114. package/es/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
  115. package/es/list/Comment/Comment.module.css +29 -29
  116. package/es/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
  117. package/es/list/Dot/Dot.module.css +15 -15
  118. package/es/list/DotNew/DotNew.module.css +24 -24
  119. package/es/list/GridStencils/GridStencils.module.css +146 -146
  120. package/es/list/Icons/AddNewIcon.js +3 -2
  121. package/es/list/Icons/CompleteIcon.js +3 -2
  122. package/es/list/Icons/DeleteIcon.js +4 -3
  123. package/es/list/Icons/EditIcon.js +5 -3
  124. package/es/list/Icons/Icons.module.css +16 -16
  125. package/es/list/Icons/ReadUnreadIcon.js +5 -3
  126. package/es/list/Icons/SmartIcon.js +5 -3
  127. package/es/list/ListLayout/ListLayout.js +1 -1
  128. package/es/list/ListLayout/ListLayout.module.css +73 -57
  129. package/es/list/ListStencils/ListStencils.module.css +67 -67
  130. package/es/list/SecondaryText/SecondaryText.module.css +136 -136
  131. package/es/list/SecondaryText/Website.js +0 -0
  132. package/es/list/SecondryPanel/SecondryPanel.js +0 -0
  133. package/es/list/SecondryPanel/SecondryPanel.module.css +5 -5
  134. package/es/list/SentimentStatus/SentimentStatus.module.css +12 -12
  135. package/es/list/Subject/Subject.module.css +27 -27
  136. package/es/list/TagNew/TagNew.module.css +116 -116
  137. package/es/list/Thread/Thread.module.css +42 -42
  138. package/es/list/UserTime/UserTime.module.css +58 -58
  139. package/es/list/listCommon.module.css +78 -60
  140. package/es/list/status/StatusDropdown/StatusDropdown.js +12 -2
  141. package/es/list/status/StatusDropdown/StatusDropdown.module.css +92 -92
  142. package/es/list/status/StatusListItem/StatusListItem.js +0 -0
  143. package/es/list/status/StatusListItem/StatusListItem.module.css +111 -111
  144. package/es/lookup/EmptyPage/EmptyPage.js +0 -0
  145. package/es/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
  146. package/es/lookup/Lookup/Lookup.js +21 -6
  147. package/es/lookup/Lookup/Lookup.module.css +26 -26
  148. package/es/lookup/Lookup/props/defaultProps.js +2 -1
  149. package/es/lookup/Lookup/props/propTypes.js +2 -1
  150. package/es/lookup/Section/LookupSection.module.css +7 -7
  151. package/es/lookup/header/Close/LookupClose.module.css +15 -15
  152. package/es/lookup/header/Search/LookupSearch.module.css +57 -57
  153. package/es/lookup/header/TicketHeader/TicketHeader.module.css +22 -22
  154. package/es/lookup/header/Title/LookupTitle.module.css +20 -20
  155. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +50 -50
  156. package/es/lookup/header/lookupHeaderCommon.module.css +41 -41
  157. package/es/lookup/header/lookupHeaderCommonResponsive.module.css +24 -24
  158. package/es/setup/header/Button/HeaderButton.module.css +5 -5
  159. package/es/setup/header/Link/HeaderLink.module.css +21 -21
  160. package/es/setup/header/Search/Search.module.css +68 -68
  161. package/es/setup/header/Views/Views.module.css +37 -37
  162. package/es/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
  163. package/es/setup/helptips/Link/HelpTipsLink.module.css +7 -7
  164. package/es/setup/helptips/Link/Link.js +0 -0
  165. package/es/setup/helptips/ListGroup/ListGroup.module.css +22 -22
  166. package/es/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
  167. package/es/setup/helptips/Title/Title.js +0 -0
  168. package/es/setup/table/TableData/SetupTableData.module.css +44 -44
  169. package/es/setup/table/TableData/Tablehover.module.css +6 -6
  170. package/es/setup/table/TableHead/SetupTableHead.module.css +12 -12
  171. package/es/setup/table/TableRow/SetupTableRow.module.css +14 -14
  172. package/es/setup/table/Text/TableText.module.css +37 -37
  173. package/es/setup/table/Text/Text.js +0 -0
  174. package/es/svg/PlusIcon.js +1 -1
  175. package/es/svg/SnippetIcon.js +2 -2
  176. package/es/v1/ActionButton/ActionButton.js +137 -0
  177. package/es/v1/AlphabeticList/AlphabeticList.js +90 -0
  178. package/es/v1/ChannelIcon/ChannelIcon.js +92 -0
  179. package/es/v1/Drawer/Drawer.js +271 -0
  180. package/es/v1/ExternalLink/ExternalLink.js +49 -0
  181. package/es/v1/FlipCard/FlipCard.js +130 -0
  182. package/es/v1/FormAction/FormAction.js +75 -0
  183. package/es/v1/IconButton/IconButton.js +113 -0
  184. package/es/v1/ImportantNotes/ImportantNotes.js +41 -0
  185. package/es/v1/Link/Link.js +95 -0
  186. package/es/v1/MessageBanner/MessageBanner.js +58 -0
  187. package/es/v1/NewStar/NewStar.js +61 -0
  188. package/es/v1/TagWithIcon/TagWithIcon.js +39 -0
  189. package/es/v1/alert/AlertHeader/AlertHeader.js +70 -0
  190. package/es/v1/alert/AlertLookup/AlertLookup.js +104 -0
  191. package/es/v1/emptystate/CommonEmptyState/CommonEmptyState.js +63 -0
  192. package/es/v1/emptystate/EditionPage/EditionPage.js +51 -0
  193. package/es/v1/lookup/Lookup/Lookup.js +105 -0
  194. package/es/v1/lookup/header/Close/Close.js +30 -0
  195. package/es/v1/lookup/header/ModuleHeader/ModuleHeader.js +75 -0
  196. package/es/v1/lookup/header/Search/Search.js +177 -0
  197. package/es/v1/lookup/header/TicketHeader/TicketHeader.js +90 -0
  198. package/es/v1/lookup/header/Title/Title.js +27 -0
  199. package/es/v1/setup/table/Table/Table.js +22 -0
  200. package/es/v1/setup/table/TableBody/TableBody.js +26 -0
  201. package/es/v1/setup/table/TableData/TableData.js +31 -0
  202. package/es/v1/setup/table/TableHead/TableHead.js +31 -0
  203. package/es/v1/setup/table/TableRow/TableRow.js +36 -0
  204. package/es/v1/setup/table/Text/Text.js +50 -0
  205. package/es/v1/version2/AlertClose/AlertClose.js +43 -0
  206. package/es/v1/version2/GlobalNotification/GlobalNotification.js +111 -0
  207. package/es/v1/version2/alertIcons/AlarmAlertIcon.js +65 -0
  208. package/es/v1/version2/alertIcons/AlertIcons.js +57 -0
  209. package/es/v1/version2/alertIcons/DangerAlertIcon.js +65 -0
  210. package/es/v1/version2/alertIcons/ErrorAlertIcon.js +70 -0
  211. package/es/v1/version2/alertIcons/InfoAlertIcon.js +74 -0
  212. package/es/v1/version2/alertIcons/NotificationAlertIcon.js +70 -0
  213. package/es/v1/version2/alertIcons/SuccessAlertIcon.js +65 -0
  214. package/es/v1/version2/alertIcons/WarningAlertIcon.js +65 -0
  215. package/es/v1/version2/errorstate/Inconvenience/Inconvenience.js +63 -0
  216. package/es/v1/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +64 -0
  217. package/es/v1/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +63 -0
  218. package/es/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +65 -0
  219. package/es/v1/version2/errorstate/UrlNotFound/UrlNotFound.js +63 -0
  220. package/es/v1/version2/errorstate/WillBeRightBack/WillBeRightBack.js +63 -0
  221. package/es/v1/version2/lookup/AlertLookup/AlertLookup.js +152 -0
  222. package/es/v1/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +54 -0
  223. package/es/version2/AlertClose/AlertClose.module.css +42 -42
  224. package/es/version2/GlobalNotification/GlobalNotification.js +1 -1
  225. package/es/version2/GlobalNotification/GlobalNotification.module.css +127 -127
  226. package/es/version2/alertIcons/AlertIcons.module.css +67 -67
  227. package/es/version2/errorstate/V2_ErrorStates.module.css +46 -46
  228. package/es/version2/lookup/AlertHeader/AlertHeader.js +1 -1
  229. package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +87 -87
  230. package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +1 -1
  231. package/es/version2/lookup/AlertLookup/AlertLookup.js +14 -2
  232. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +43 -43
  233. package/es/version2/lookup/alertLookupCommonNew.module.css +32 -32
  234. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +126 -126
  235. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
  236. package/install.md +12 -12
  237. package/lib/ActionButton/ActionButton.module.css +139 -139
  238. package/lib/AlphabeticList/AlphabeticList.module.css +57 -57
  239. package/lib/Attachment/Attachment.js +2 -1
  240. package/lib/Attachment/Attachment.module.css +163 -159
  241. package/lib/AttachmentViewer/AttachmentViewer.module.css +352 -352
  242. package/lib/ChannelIcon/ChannelIcon.module.css +217 -217
  243. package/lib/Drawer/Drawer.js +21 -6
  244. package/lib/Drawer/Drawer.module.css +190 -190
  245. package/lib/Drawer/props/defaultProps.js +2 -1
  246. package/lib/Drawer/props/propTypes.js +2 -1
  247. package/lib/ExternalLink/ExternalLink.js +0 -0
  248. package/lib/ExternalLink/ExternalLink.module.css +3 -3
  249. package/lib/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
  250. package/lib/FlipCard/FlipCard.module.css +44 -44
  251. package/lib/FormAction/FormAction.module.css +82 -82
  252. package/lib/FreezeLayer/FreezeLayer.js +1 -1
  253. package/lib/FreezeLayer/css/FreezeLayer.module.css +42 -42
  254. package/lib/FreezeLayer/css/cssJSLogic.js +1 -1
  255. package/lib/Hooks/Dragger/css/Dragger.module.css +2 -2
  256. package/lib/IconButton/IconButton.module.css +22 -22
  257. package/lib/Image/Image.module.css +11 -11
  258. package/lib/Image/__tests__/Image.spec.js +77 -0
  259. package/lib/Image/__tests__/__snapshots__/Image.spec.js.snap +74 -0
  260. package/lib/ImportantNotes/ImportantNotes.module.css +20 -20
  261. package/lib/Link/Link.js +2 -1
  262. package/lib/Link/Link.module.css +3 -3
  263. package/lib/Loader/Loader.js +1 -6
  264. package/lib/Loader/Loader.module.css +47 -47
  265. package/lib/Message/Message.module.css +102 -102
  266. package/lib/MessageBanner/MessageBanner.module.css +46 -46
  267. package/lib/NewStar/NewStar.module.css +183 -183
  268. package/lib/PlusIcon/PlusIcon.js +0 -0
  269. package/lib/PlusIcon/PlusIcon.module.css +18 -18
  270. package/lib/Separator/Separator.module.css +34 -34
  271. package/lib/TagWithIcon/TagWithIcon.module.css +56 -56
  272. package/lib/ToastMessage/ToastMessage.js +0 -0
  273. package/lib/ToastMessage/ToastMessage.module.css +328 -328
  274. package/lib/Upload/Upload.module.css +125 -125
  275. package/lib/alert/AlertHeader/AlertHeader.module.css +80 -80
  276. package/lib/alert/AlertHeader/props/propTypes.js +1 -1
  277. package/lib/alert/AlertLookup/AlertLookup.module.css +26 -26
  278. package/lib/avatar/AvatarClose/AvatarClose.module.css +37 -37
  279. package/lib/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
  280. package/lib/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
  281. package/lib/avatar/AvatarStatus/AvatarStatus.js +0 -0
  282. package/lib/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
  283. package/lib/avatar/AvatarThread/AvatarThread.module.css +166 -166
  284. package/lib/avatar/AvatarUser/AvatarUser.js +0 -0
  285. package/lib/avatar/AvatarUser/AvatarUser.module.css +171 -171
  286. package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
  287. package/lib/common/dot_animation.module.css +26 -26
  288. package/lib/common/dot_boxShadow.module.css +37 -37
  289. package/lib/common/dot_common.module.css +3 -3
  290. package/lib/deprecated/FreezeLayer/_FreezeLayer.module.css +42 -42
  291. package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +56 -56
  292. package/lib/deprecated/utils/KeyboardApi.js +25 -25
  293. package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +258 -301
  294. package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +100 -100
  295. package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +1 -0
  296. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
  297. package/lib/emptystate/EditionPage/EditionPage.css +43 -43
  298. package/lib/errorstate/EmptyStates.module.css +87 -87
  299. package/lib/errorstate/Inconvenience/Inconvenience.module.css +7 -7
  300. package/lib/errorstate/LinkText/LinkText.module.css +6 -6
  301. package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
  302. package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
  303. package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
  304. package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
  305. package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
  306. package/lib/errorstate/WillBack/WillBack.module.css +34 -34
  307. package/lib/form/fields/CheckBoxField/CheckBoxField.js +0 -0
  308. package/lib/form/fields/Fields.module.css +183 -183
  309. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
  310. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
  311. package/lib/form/fields/TextEditor/TextEditor.module.css +770 -770
  312. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +37 -37
  313. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
  314. package/lib/form/layout/Field/Field.js +0 -0
  315. package/lib/form/layout/Field/Field.module.css +22 -22
  316. package/lib/form/layout/Section/ModuleFormSection.module.css +3 -3
  317. package/lib/form/layout/Section/Section.js +0 -0
  318. package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
  319. package/lib/layout/SubtabLayout/SubtabLayout.module.css +164 -164
  320. package/lib/list/AvatarFlip/AvatarFlip.module.css +3 -3
  321. package/lib/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
  322. package/lib/list/Comment/Comment.module.css +29 -29
  323. package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
  324. package/lib/list/Dot/Dot.module.css +15 -15
  325. package/lib/list/DotNew/DotNew.module.css +24 -24
  326. package/lib/list/GridStencils/GridStencils.module.css +146 -146
  327. package/lib/list/Icons/AddNewIcon.js +4 -2
  328. package/lib/list/Icons/CompleteIcon.js +4 -2
  329. package/lib/list/Icons/DeleteIcon.js +5 -3
  330. package/lib/list/Icons/EditIcon.js +6 -3
  331. package/lib/list/Icons/Icons.module.css +16 -16
  332. package/lib/list/Icons/ReadUnreadIcon.js +6 -3
  333. package/lib/list/Icons/SmartIcon.js +6 -3
  334. package/lib/list/ListLayout/ListLayout.js +1 -1
  335. package/lib/list/ListLayout/ListLayout.module.css +73 -57
  336. package/lib/list/ListStencils/ListStencils.module.css +67 -67
  337. package/lib/list/SecondaryText/SecondaryText.module.css +136 -136
  338. package/lib/list/SecondaryText/Website.js +0 -0
  339. package/lib/list/SecondryPanel/SecondryPanel.js +0 -0
  340. package/lib/list/SecondryPanel/SecondryPanel.module.css +5 -5
  341. package/lib/list/SentimentStatus/SentimentStatus.module.css +12 -12
  342. package/lib/list/Subject/Subject.module.css +27 -27
  343. package/lib/list/TagNew/TagNew.module.css +116 -116
  344. package/lib/list/Thread/Thread.module.css +42 -42
  345. package/lib/list/UserTime/UserTime.module.css +58 -58
  346. package/lib/list/listCommon.module.css +78 -60
  347. package/lib/list/status/StatusDropdown/StatusDropdown.js +12 -2
  348. package/lib/list/status/StatusDropdown/StatusDropdown.module.css +92 -92
  349. package/lib/list/status/StatusListItem/StatusListItem.js +0 -0
  350. package/lib/list/status/StatusListItem/StatusListItem.module.css +111 -111
  351. package/lib/lookup/EmptyPage/EmptyPage.js +0 -0
  352. package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
  353. package/lib/lookup/Lookup/Lookup.js +23 -6
  354. package/lib/lookup/Lookup/Lookup.module.css +26 -26
  355. package/lib/lookup/Lookup/props/defaultProps.js +2 -1
  356. package/lib/lookup/Lookup/props/propTypes.js +2 -1
  357. package/lib/lookup/Section/LookupSection.module.css +7 -7
  358. package/lib/lookup/header/Close/LookupClose.module.css +15 -15
  359. package/lib/lookup/header/Search/LookupSearch.module.css +57 -57
  360. package/lib/lookup/header/TicketHeader/TicketHeader.module.css +22 -22
  361. package/lib/lookup/header/Title/LookupTitle.module.css +20 -20
  362. package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +50 -50
  363. package/lib/lookup/header/lookupHeaderCommon.module.css +41 -41
  364. package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +24 -24
  365. package/lib/setup/header/Button/HeaderButton.module.css +5 -5
  366. package/lib/setup/header/Link/HeaderLink.module.css +21 -21
  367. package/lib/setup/header/Search/Search.module.css +68 -68
  368. package/lib/setup/header/Views/Views.module.css +37 -37
  369. package/lib/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
  370. package/lib/setup/helptips/Link/HelpTipsLink.module.css +7 -7
  371. package/lib/setup/helptips/Link/Link.js +0 -0
  372. package/lib/setup/helptips/ListGroup/ListGroup.module.css +22 -22
  373. package/lib/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
  374. package/lib/setup/helptips/Title/Title.js +0 -0
  375. package/lib/setup/table/TableData/SetupTableData.module.css +44 -44
  376. package/lib/setup/table/TableData/Tablehover.module.css +6 -6
  377. package/lib/setup/table/TableHead/SetupTableHead.module.css +12 -12
  378. package/lib/setup/table/TableRow/SetupTableRow.module.css +14 -14
  379. package/lib/setup/table/Text/TableText.module.css +37 -37
  380. package/lib/setup/table/Text/Text.js +0 -0
  381. package/lib/svg/PlusIcon.js +1 -1
  382. package/lib/svg/SnippetIcon.js +2 -2
  383. package/lib/v1/ActionButton/ActionButton.js +156 -0
  384. package/lib/v1/AlphabeticList/AlphabeticList.js +111 -0
  385. package/lib/v1/ChannelIcon/ChannelIcon.js +113 -0
  386. package/lib/v1/Drawer/Drawer.js +302 -0
  387. package/lib/v1/ExternalLink/ExternalLink.js +57 -0
  388. package/lib/v1/FlipCard/FlipCard.js +149 -0
  389. package/lib/v1/FormAction/FormAction.js +102 -0
  390. package/lib/v1/IconButton/IconButton.js +149 -0
  391. package/lib/v1/ImportantNotes/ImportantNotes.js +55 -0
  392. package/lib/v1/Link/Link.js +116 -0
  393. package/lib/v1/MessageBanner/MessageBanner.js +73 -0
  394. package/lib/v1/NewStar/NewStar.js +74 -0
  395. package/lib/v1/TagWithIcon/TagWithIcon.js +53 -0
  396. package/lib/v1/alert/AlertHeader/AlertHeader.js +86 -0
  397. package/lib/v1/alert/AlertLookup/AlertLookup.js +118 -0
  398. package/lib/v1/emptystate/CommonEmptyState/CommonEmptyState.js +76 -0
  399. package/lib/v1/emptystate/EditionPage/EditionPage.js +64 -0
  400. package/lib/v1/lookup/Lookup/Lookup.js +130 -0
  401. package/lib/v1/lookup/header/Close/Close.js +47 -0
  402. package/lib/v1/lookup/header/ModuleHeader/ModuleHeader.js +101 -0
  403. package/lib/v1/lookup/header/Search/Search.js +206 -0
  404. package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +108 -0
  405. package/lib/v1/lookup/header/Title/Title.js +44 -0
  406. package/lib/v1/setup/table/Table/Table.js +34 -0
  407. package/lib/v1/setup/table/TableBody/TableBody.js +39 -0
  408. package/lib/v1/setup/table/TableData/TableData.js +44 -0
  409. package/lib/v1/setup/table/TableHead/TableHead.js +44 -0
  410. package/lib/v1/setup/table/TableRow/TableRow.js +49 -0
  411. package/lib/v1/setup/table/Text/Text.js +64 -0
  412. package/lib/v1/version2/AlertClose/AlertClose.js +62 -0
  413. package/lib/v1/version2/GlobalNotification/GlobalNotification.js +134 -0
  414. package/lib/v1/version2/alertIcons/AlarmAlertIcon.js +77 -0
  415. package/lib/v1/version2/alertIcons/AlertIcons.js +78 -0
  416. package/lib/v1/version2/alertIcons/DangerAlertIcon.js +77 -0
  417. package/lib/v1/version2/alertIcons/ErrorAlertIcon.js +82 -0
  418. package/lib/v1/version2/alertIcons/InfoAlertIcon.js +86 -0
  419. package/lib/v1/version2/alertIcons/NotificationAlertIcon.js +82 -0
  420. package/lib/v1/version2/alertIcons/SuccessAlertIcon.js +77 -0
  421. package/lib/v1/version2/alertIcons/WarningAlertIcon.js +77 -0
  422. package/lib/v1/version2/errorstate/Inconvenience/Inconvenience.js +79 -0
  423. package/lib/v1/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +80 -0
  424. package/lib/v1/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +79 -0
  425. package/lib/v1/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +81 -0
  426. package/lib/v1/version2/errorstate/UrlNotFound/UrlNotFound.js +79 -0
  427. package/lib/v1/version2/errorstate/WillBeRightBack/WillBeRightBack.js +79 -0
  428. package/lib/v1/version2/lookup/AlertLookup/AlertLookup.js +173 -0
  429. package/lib/v1/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +76 -0
  430. package/lib/version2/AlertClose/AlertClose.module.css +42 -42
  431. package/lib/version2/GlobalNotification/GlobalNotification.js +2 -2
  432. package/lib/version2/GlobalNotification/GlobalNotification.module.css +127 -127
  433. package/lib/version2/alertIcons/AlertIcons.module.css +67 -67
  434. package/lib/version2/errorstate/V2_ErrorStates.module.css +46 -46
  435. package/lib/version2/lookup/AlertHeader/AlertHeader.js +1 -1
  436. package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +87 -87
  437. package/lib/version2/lookup/AlertHeader/css/cssJSLogic.js +1 -1
  438. package/lib/version2/lookup/AlertLookup/AlertLookup.js +14 -2
  439. package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +43 -43
  440. package/lib/version2/lookup/alertLookupCommonNew.module.css +32 -32
  441. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +126 -126
  442. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
  443. package/package.json +81 -107
  444. package/postPublish.js +8 -0
  445. package/prePublish.js +70 -0
  446. package/react-cli.config.js +24 -0
  447. package/result.json +1 -0
  448. package/unittest/index.html +37 -0
@@ -92,13 +92,13 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
92
92
  _this = _super.call(this, props);
93
93
  _this.state = {
94
94
  searchValue: '',
95
- selectedIndex: -1,
95
+ // selectedIndex: -1,
96
96
  options: props.options,
97
97
  isFetchingOptions: false
98
98
  };
99
99
  _this._isMounted = false;
100
- _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
101
- _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_this));
100
+ _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this)); // this.handleKeyDown = this.handleKeyDown.bind(this);
101
+
102
102
  _this.onSelect = _this.onSelect.bind(_assertThisInitialized(_this));
103
103
  _this.handleTogglePopup = _this.handleTogglePopup.bind(_assertThisInitialized(_this));
104
104
  _this.showTogglePopup = _this.showTogglePopup.bind(_assertThisInitialized(_this));
@@ -106,16 +106,16 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
106
106
  _this.onSearchAPI = _this.onSearchAPI.bind(_assertThisInitialized(_this));
107
107
  _this.onSearchClear = _this.onSearchClear.bind(_assertThisInitialized(_this));
108
108
  _this.handleFilterSuggestions = _this.handleFilterSuggestions.bind(_assertThisInitialized(_this));
109
- _this.scrollContentRef = _this.scrollContentRef.bind(_assertThisInitialized(_this));
110
- _this.handleMouseEnter = _this.handleMouseEnter.bind(_assertThisInitialized(_this));
109
+ _this.scrollContentRef = _this.scrollContentRef.bind(_assertThisInitialized(_this)); // this.handleMouseEnter = this.handleMouseEnter.bind(this);
110
+
111
111
  _this.searchInputRef = _this.searchInputRef.bind(_assertThisInitialized(_this));
112
- _this.itemRef = _this.itemRef.bind(_assertThisInitialized(_this));
113
- _this.inputRef = _this.inputRef.bind(_assertThisInitialized(_this));
114
- _this.handleScroll = _this.handleScroll.bind(_assertThisInitialized(_this));
115
- _this.getOptionsArray = _this.getOptionsArray.bind(_assertThisInitialized(_this));
112
+ _this.itemRef = _this.itemRef.bind(_assertThisInitialized(_this)); // this.inputRef = this.inputRef.bind(this);
113
+
114
+ _this.handleScroll = _this.handleScroll.bind(_assertThisInitialized(_this)); // this.getOptionsArray = this.getOptionsArray.bind(this);
115
+
116
116
  _this.emptySearchSVG = _this.emptySearchSVG.bind(_assertThisInitialized(_this));
117
- _this.getAriaId = (0, _IdProvider.getUniqueId)(_assertThisInitialized(_this));
118
- _this.getSelectedIndex = _this.getSelectedIndex.bind(_assertThisInitialized(_this));
117
+ _this.getAriaId = (0, _IdProvider.getUniqueId)(_assertThisInitialized(_this)); // this.getSelectedIndex = this.getSelectedIndex.bind(this);
118
+
119
119
  _this.handleGetNextOptions = _this.handleGetNextOptions.bind(_assertThisInitialized(_this));
120
120
  _this.handleFetchOptions = _this.handleFetchOptions.bind(_assertThisInitialized(_this));
121
121
  return _this;
@@ -137,12 +137,10 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
137
137
  return /*#__PURE__*/_react["default"].createElement(_EmptySearch["default"], {
138
138
  size: "small"
139
139
  });
140
- }
141
- }, {
142
- key: "inputRef",
143
- value: function inputRef(el) {
144
- this.hiddenInput = el;
145
- }
140
+ } // inputRef(el) {
141
+ // this.hiddenInput = el;
142
+ // }
143
+
146
144
  }, {
147
145
  key: "itemRef",
148
146
  value: function itemRef(ele, index, id) {
@@ -217,8 +215,6 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
217
215
  }, {
218
216
  key: "componentDidUpdate",
219
217
  value: function componentDidUpdate(prevProps) {
220
- var _this2 = this;
221
-
222
218
  var _this$props5 = this.props,
223
219
  isPopupOpen = _this$props5.isPopupOpen,
224
220
  isPopupReady = _this$props5.isPopupReady,
@@ -231,26 +227,21 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
231
227
  selectedIndex = _this$state.selectedIndex,
232
228
  searchValue = _this$state.searchValue;
233
229
 
234
- if (prevProps.isPopupReady !== isPopupReady) {
235
- setTimeout(function () {
236
- isPopupReady ? isSearch ? _this2.searchInput.focus({
237
- preventScroll: true
238
- }) : _this2.hiddenInput.focus({
239
- preventScroll: true
240
- }) : _this2.hiddenInput.focus({
241
- preventScroll: true
242
- });
243
- }, 10);
244
- }
245
-
246
- var optionsArr = this.getOptionsArray();
247
- var option = optionsArr[selectedIndex];
248
- var id = option && option[idName] || {};
249
- var selSuggestion = this["suggestion_".concat(id)];
230
+ if (prevProps.isPopupReady !== isPopupReady) {// setTimeout(() => {
231
+ // isPopupReady
232
+ // ? isSearch
233
+ // ? this.searchInput.focus({ preventScroll: true })
234
+ // : this.hiddenInput.focus({ preventScroll: true })
235
+ // : this.hiddenInput.focus({ preventScroll: true });
236
+ // }, 10);
237
+ } // const optionsArr = this.getOptionsArray();
238
+ // const option = optionsArr[selectedIndex];
239
+ // const id = (option && option[idName]) || {};
240
+ // const selSuggestion = this[`suggestion_${id}`];
241
+ // if (isPopupOpen) {
242
+ // this.optionsContainer && scrollTo(this.optionsContainer, selSuggestion);
243
+ // }
250
244
 
251
- if (isPopupOpen) {
252
- this.optionsContainer && (0, _Common.scrollTo)(this.optionsContainer, selSuggestion);
253
- }
254
245
 
255
246
  if (!prevProps.isPopupOpen && isPopupOpen && searchValue.length) {
256
247
  this.onSearchClear();
@@ -278,9 +269,8 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
278
269
  onDropDownOpen && onDropDownOpen();
279
270
  } else {
280
271
  onDropDownClose && onDropDownClose();
281
- }
272
+ } // this.getSelectedIndex(optionsArr);
282
273
 
283
- this.getSelectedIndex(optionsArr);
284
274
  }
285
275
  }
286
276
  }, {
@@ -350,143 +340,99 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
350
340
  }
351
341
 
352
342
  return result;
353
- }
354
- }, {
355
- key: "getOptionsArray",
356
- value: function getOptionsArray() {
357
- var searchValue = this.state.searchValue;
358
- var _this$props7 = this.props,
359
- isGroupDropDown = _this$props7.isGroupDropDown,
360
- groupOptionsKey = _this$props7.groupOptionsKey;
361
- var options = searchValue.length ? this.handleFilterSuggestions(searchValue) : this.props.options;
362
- var optionsArr = [];
363
-
364
- if (isGroupDropDown) {
365
- for (var i = 0; i < options.length; i++) {
366
- var groupOptions = options[i][groupOptionsKey];
367
- Array.prototype.push.apply(optionsArr, groupOptions);
368
- }
369
- } else {
370
- optionsArr = options.filter(function (item) {
371
- return !item.needDivider;
372
- });
373
- }
343
+ } // getOptionsArray() {
344
+ // const { searchValue } = this.state;
345
+ // const { isGroupDropDown, groupOptionsKey } = this.props;
346
+ // const options = searchValue.length ? this.handleFilterSuggestions(searchValue) : this.props.options;
347
+ // let optionsArr = [];
348
+ // if (isGroupDropDown) {
349
+ // for (let i = 0; i < options.length; i++) {
350
+ // const groupOptions = options[i][groupOptionsKey];
351
+ // Array.prototype.push.apply(optionsArr, groupOptions);
352
+ // }
353
+ // } else {
354
+ // optionsArr = options.filter((item) => !item.needDivider);
355
+ // }
356
+ // return optionsArr;
357
+ // }
358
+ // handleKeyDown(e) {
359
+ // const { keyCode } = e;
360
+ // const { selectedIndex, searchValue } = this.state;
361
+ // const optionsArr = this.getOptionsArray();
362
+ // const totalIndex = optionsArr.length;
363
+ // const { togglePopup, onClick, boxPosition, isPopupReady, value, keyName, idName, preventPopupClose, isSearch } =
364
+ // this.props;
365
+ // if (isPopupReady && (keyCode === 38 || keyCode === 40) && e.preventDefault) {
366
+ // e.preventDefault(); //prevent body scroll
367
+ // }
368
+ // if (isPopupReady) {
369
+ // switch (keyCode) {
370
+ // case 40:
371
+ // if (selectedIndex === totalIndex - 1) {
372
+ // this.setState({ selectedIndex: 0 });
373
+ // } else {
374
+ // if (selectedIndex === totalIndex - 3) {
375
+ // this.handleGetNextOptions();
376
+ // }
377
+ // this.setState({
378
+ // selectedIndex: selectedIndex + 1
379
+ // });
380
+ // }
381
+ // break;
382
+ // case 38:
383
+ // if (selectedIndex === 0) {
384
+ // this.setState({ selectedIndex: totalIndex - 1 });
385
+ // } else {
386
+ // this.setState({
387
+ // selectedIndex: selectedIndex - 1
388
+ // });
389
+ // }
390
+ // break;
391
+ // case 13: {
392
+ // const selectedId = optionsArr[selectedIndex][idName] || '';
393
+ // onClick && onClick(selectedId, optionsArr[selectedIndex]);
394
+ // if (!preventPopupClose) {
395
+ // togglePopup(e, boxPosition);
396
+ // } else if (isSearch) {
397
+ // this.searchInput.focus({ preventScroll: true });
398
+ // } else {
399
+ // this.hiddenInput.focus({ preventScroll: true });
400
+ // }
401
+ // break;
402
+ // }
403
+ // }
404
+ // } else {
405
+ // if (keyCode === 13 || keyCode === 40) {
406
+ // togglePopup(e, boxPosition);
407
+ // }
408
+ // }
409
+ // }
410
+ // getSelectedIndex(optionsArr) {
411
+ // const { selectedId, idName } = this.props;
412
+ // if (selectedId) {
413
+ // for (let i = 0; i < optionsArr.length; i++) {
414
+ // const indexId = optionsArr[i][idName];
415
+ // if (selectedId === indexId) {
416
+ // this.setState({
417
+ // selectedIndex: i
418
+ // });
419
+ // break;
420
+ // }
421
+ // }
422
+ // } else {
423
+ // this.setState({
424
+ // selectedIndex: -1
425
+ // });
426
+ // }
427
+ // }
374
428
 
375
- return optionsArr;
376
- }
377
- }, {
378
- key: "handleKeyDown",
379
- value: function handleKeyDown(e) {
380
- var keyCode = e.keyCode;
381
- var _this$state2 = this.state,
382
- selectedIndex = _this$state2.selectedIndex,
383
- searchValue = _this$state2.searchValue;
384
- var optionsArr = this.getOptionsArray();
385
- var totalIndex = optionsArr.length;
386
- var _this$props8 = this.props,
387
- togglePopup = _this$props8.togglePopup,
388
- onClick = _this$props8.onClick,
389
- boxPosition = _this$props8.boxPosition,
390
- isPopupReady = _this$props8.isPopupReady,
391
- value = _this$props8.value,
392
- keyName = _this$props8.keyName,
393
- idName = _this$props8.idName,
394
- preventPopupClose = _this$props8.preventPopupClose,
395
- isSearch = _this$props8.isSearch;
396
-
397
- if (isPopupReady && (keyCode === 38 || keyCode === 40) && e.preventDefault) {
398
- e.preventDefault(); //prevent body scroll
399
- }
400
-
401
- if (isPopupReady) {
402
- switch (keyCode) {
403
- case 40:
404
- if (selectedIndex === totalIndex - 1) {
405
- this.setState({
406
- selectedIndex: 0
407
- });
408
- } else {
409
- if (selectedIndex === totalIndex - 3) {
410
- this.handleGetNextOptions();
411
- }
412
-
413
- this.setState({
414
- selectedIndex: selectedIndex + 1
415
- });
416
- }
417
-
418
- break;
419
-
420
- case 38:
421
- if (selectedIndex === 0) {
422
- this.setState({
423
- selectedIndex: totalIndex - 1
424
- });
425
- } else {
426
- this.setState({
427
- selectedIndex: selectedIndex - 1
428
- });
429
- }
430
-
431
- break;
432
-
433
- case 13:
434
- {
435
- var selectedId = optionsArr[selectedIndex][idName] || '';
436
- onClick && onClick(selectedId, optionsArr[selectedIndex]);
437
-
438
- if (!preventPopupClose) {
439
- togglePopup(e, boxPosition);
440
- } else if (isSearch) {
441
- this.searchInput.focus({
442
- preventScroll: true
443
- });
444
- } else {
445
- this.hiddenInput.focus({
446
- preventScroll: true
447
- });
448
- }
449
-
450
- break;
451
- }
452
- }
453
- } else {
454
- if (keyCode === 13 || keyCode === 40) {
455
- togglePopup(e, boxPosition);
456
- }
457
- }
458
- }
459
- }, {
460
- key: "getSelectedIndex",
461
- value: function getSelectedIndex(optionsArr) {
462
- var _this$props9 = this.props,
463
- selectedId = _this$props9.selectedId,
464
- idName = _this$props9.idName;
465
-
466
- if (selectedId) {
467
- for (var i = 0; i < optionsArr.length; i++) {
468
- var indexId = optionsArr[i][idName];
469
-
470
- if (selectedId === indexId) {
471
- this.setState({
472
- selectedIndex: i
473
- });
474
- break;
475
- }
476
- }
477
- } else {
478
- this.setState({
479
- selectedIndex: -1
480
- });
481
- }
482
- }
483
429
  }, {
484
430
  key: "onSearchAPI",
485
431
  value: function onSearchAPI() {
486
432
  var searchValue = this.state.searchValue;
487
- var _this$props10 = this.props,
488
- needSearchFetching = _this$props10.needSearchFetching,
489
- onSearch = _this$props10.onSearch;
433
+ var _this$props7 = this.props,
434
+ needSearchFetching = _this$props7.needSearchFetching,
435
+ onSearch = _this$props7.onSearch;
490
436
 
491
437
  if (needSearchFetching && onSearch) {
492
438
  onSearch(searchValue);
@@ -495,37 +441,35 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
495
441
  }, {
496
442
  key: "handleChange",
497
443
  value: function handleChange(value, e) {
498
- var _this3 = this;
444
+ var _this2 = this;
499
445
 
500
446
  var filteredOptions = this.handleFilterSuggestions(value);
501
447
  this.setState({
502
448
  searchValue: value,
503
- selectedIndex: -1,
449
+ // selectedIndex: -1,
504
450
  options: filteredOptions
505
451
  }, function () {
506
- _this3.onSearchAPI();
452
+ _this2.onSearchAPI();
507
453
  });
508
454
  }
509
455
  }, {
510
456
  key: "onSearchClear",
511
457
  value: function onSearchClear() {
512
- var _this4 = this;
458
+ var _this3 = this;
513
459
 
514
460
  var filteredOptions = this.handleFilterSuggestions('');
515
461
  this.setState({
516
462
  searchValue: '',
517
463
  options: filteredOptions
518
464
  }, function () {
519
- _this4.onSearchAPI();
520
- });
521
- }
522
- }, {
523
- key: "handleMouseEnter",
524
- value: function handleMouseEnter(id, value, index, e) {
525
- this.setState({
526
- selectedIndex: index
465
+ _this3.onSearchAPI();
527
466
  });
528
- }
467
+ } // handleMouseEnter(id, value, index, e) {
468
+ // this.setState({
469
+ // selectedIndex: index
470
+ // });
471
+ // }
472
+
529
473
  }, {
530
474
  key: "handleScroll",
531
475
  value: function handleScroll(e) {
@@ -536,16 +480,16 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
536
480
  }, {
537
481
  key: "handleGetNextOptions",
538
482
  value: function handleGetNextOptions() {
539
- var _this$props11 = this.props,
540
- isNextOptions = _this$props11.isNextOptions,
541
- getNextOptions = _this$props11.getNextOptions;
483
+ var _this$props8 = this.props,
484
+ isNextOptions = _this$props8.isNextOptions,
485
+ getNextOptions = _this$props8.getNextOptions;
542
486
  var searchValue = this.state.searchValue;
543
487
  isNextOptions && getNextOptions && this.handleFetchOptions(getNextOptions, searchValue);
544
488
  }
545
489
  }, {
546
490
  key: "handleFetchOptions",
547
491
  value: function handleFetchOptions(APICall) {
548
- var _this5 = this;
492
+ var _this4 = this;
549
493
 
550
494
  var searchValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
551
495
  var _this$state$isFetchin = this.state.isFetchingOptions,
@@ -559,11 +503,11 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
559
503
 
560
504
  try {
561
505
  return APICall(searchValue).then(function () {
562
- _isMounted && _this5.setState({
506
+ _isMounted && _this4.setState({
563
507
  isFetchingOptions: false
564
508
  });
565
509
  }, function () {
566
- _isMounted && _this5.setState({
510
+ _isMounted && _this4.setState({
567
511
  isFetchingOptions: false
568
512
  });
569
513
  });
@@ -587,66 +531,66 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
587
531
  }, {
588
532
  key: "render",
589
533
  value: function render() {
590
- var _this6 = this;
534
+ var _this5 = this;
591
535
 
592
- var _this$state3 = this.state,
593
- options = _this$state3.options,
594
- selectedIndex = _this$state3.selectedIndex;
595
- var _this$props12 = this.props,
596
- value = _this$props12.value,
597
- removeClose = _this$props12.removeClose,
598
- boxSize = _this$props12.boxSize,
599
- keyName = _this$props12.keyName,
600
- idName = _this$props12.idName,
601
- title = _this$props12.title,
602
- isSearch = _this$props12.isSearch,
603
- isArrow = _this$props12.isArrow,
604
- placeHolderText = _this$props12.placeHolderText,
605
- className = _this$props12.className,
606
- right = _this$props12.right,
607
- left = _this$props12.left,
608
- top = _this$props12.top,
609
- bottom = _this$props12.bottom,
610
- isOpen = _this$props12.isPopupOpen,
611
- isPopupActive = _this$props12.isPopupActive,
612
- needExternalPopupState = _this$props12.needExternalPopupState,
613
- isPopupReady = _this$props12.isPopupReady,
614
- position = _this$props12.position,
615
- getTargetRef = _this$props12.getTargetRef,
616
- getContainerRef = _this$props12.getContainerRef,
617
- dataId = _this$props12.dataId,
618
- dataSelectorId = _this$props12.dataSelectorId,
619
- searchBoxSize = _this$props12.searchBoxSize,
620
- searchEmptyHint = _this$props12.searchEmptyHint,
621
- searchErrorText = _this$props12.searchErrorText,
622
- activeStyle = _this$props12.activeStyle,
623
- showOnHover = _this$props12.showOnHover,
624
- isDisabled = _this$props12.isDisabled,
625
- showIconOnHover = _this$props12.showIconOnHover,
626
- isReadOnly = _this$props12.isReadOnly,
627
- hoverStyle = _this$props12.hoverStyle,
628
- isEditable = _this$props12.isEditable,
629
- iconName = _this$props12.iconName,
630
- iconSize = _this$props12.iconSize,
631
- needTick = _this$props12.needTick,
632
- dataTitle = _this$props12.dataTitle,
633
- isDataLoaded = _this$props12.isDataLoaded,
634
- children = _this$props12.children,
635
- needResponsive = _this$props12.needResponsive,
636
- arrowIconPosition = _this$props12.arrowIconPosition,
637
- isGroupDropDown = _this$props12.isGroupDropDown,
638
- groupOptionsKey = _this$props12.groupOptionsKey,
639
- groupNameKey = _this$props12.groupNameKey,
640
- isToggleStateNeeded = _this$props12.isToggleStateNeeded,
641
- selectedId = _this$props12.selectedId,
642
- isPadding = _this$props12.isPadding,
643
- isNeedEffect = _this$props12.isNeedEffect,
644
- hoverType = _this$props12.hoverType,
645
- palette = _this$props12.palette,
646
- getFooter = _this$props12.getFooter,
647
- customProps = _this$props12.customProps,
648
- needMultiLineText = _this$props12.needMultiLineText,
649
- customClass = _this$props12.customClass;
536
+ var _this$state2 = this.state,
537
+ options = _this$state2.options,
538
+ selectedIndex = _this$state2.selectedIndex;
539
+ var _this$props9 = this.props,
540
+ value = _this$props9.value,
541
+ removeClose = _this$props9.removeClose,
542
+ boxSize = _this$props9.boxSize,
543
+ keyName = _this$props9.keyName,
544
+ idName = _this$props9.idName,
545
+ title = _this$props9.title,
546
+ isSearch = _this$props9.isSearch,
547
+ isArrow = _this$props9.isArrow,
548
+ placeHolderText = _this$props9.placeHolderText,
549
+ className = _this$props9.className,
550
+ right = _this$props9.right,
551
+ left = _this$props9.left,
552
+ top = _this$props9.top,
553
+ bottom = _this$props9.bottom,
554
+ isOpen = _this$props9.isPopupOpen,
555
+ isPopupActive = _this$props9.isPopupActive,
556
+ needExternalPopupState = _this$props9.needExternalPopupState,
557
+ isPopupReady = _this$props9.isPopupReady,
558
+ position = _this$props9.position,
559
+ getTargetRef = _this$props9.getTargetRef,
560
+ getContainerRef = _this$props9.getContainerRef,
561
+ dataId = _this$props9.dataId,
562
+ dataSelectorId = _this$props9.dataSelectorId,
563
+ searchBoxSize = _this$props9.searchBoxSize,
564
+ searchEmptyHint = _this$props9.searchEmptyHint,
565
+ searchErrorText = _this$props9.searchErrorText,
566
+ activeStyle = _this$props9.activeStyle,
567
+ showOnHover = _this$props9.showOnHover,
568
+ isDisabled = _this$props9.isDisabled,
569
+ showIconOnHover = _this$props9.showIconOnHover,
570
+ isReadOnly = _this$props9.isReadOnly,
571
+ hoverStyle = _this$props9.hoverStyle,
572
+ isEditable = _this$props9.isEditable,
573
+ iconName = _this$props9.iconName,
574
+ iconSize = _this$props9.iconSize,
575
+ needTick = _this$props9.needTick,
576
+ dataTitle = _this$props9.dataTitle,
577
+ isDataLoaded = _this$props9.isDataLoaded,
578
+ children = _this$props9.children,
579
+ needResponsive = _this$props9.needResponsive,
580
+ arrowIconPosition = _this$props9.arrowIconPosition,
581
+ isGroupDropDown = _this$props9.isGroupDropDown,
582
+ groupOptionsKey = _this$props9.groupOptionsKey,
583
+ groupNameKey = _this$props9.groupNameKey,
584
+ isToggleStateNeeded = _this$props9.isToggleStateNeeded,
585
+ selectedId = _this$props9.selectedId,
586
+ isPadding = _this$props9.isPadding,
587
+ isNeedEffect = _this$props9.isNeedEffect,
588
+ hoverType = _this$props9.hoverType,
589
+ palette = _this$props9.palette,
590
+ getFooter = _this$props9.getFooter,
591
+ customProps = _this$props9.customProps,
592
+ needMultiLineText = _this$props9.needMultiLineText,
593
+ customClass = _this$props9.customClass;
650
594
  var _customProps$ToggleDr = customProps.ToggleDropDownProps,
651
595
  ToggleDropDownProps = _customProps$ToggleDr === void 0 ? {} : _customProps$ToggleDr,
652
596
  _customProps$DropBoxP = customProps.DropBoxProps,
@@ -664,13 +608,13 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
664
608
  var isPopupOpen = needExternalPopupState ? isPopupActive && isOpen : isOpen;
665
609
  var Component = isToggleStateNeeded ? children.type : null,
666
610
  componentProps = isToggleStateNeeded ? children.props : null;
667
- var _this$state4 = this.state,
668
- searchValue = _this$state4.searchValue,
669
- isFetchingOptions = _this$state4.isFetchingOptions;
611
+ var _this$state3 = this.state,
612
+ searchValue = _this$state3.searchValue,
613
+ isFetchingOptions = _this$state3.isFetchingOptions;
670
614
  var commonClass = "".concat(className ? className : '', " ").concat(isPopupReady ? activeStyle ? activeStyle : '' : '', " ").concat(isDisabled ? (0, _CssProvider["default"])('isDisable') : isReadOnly || !isEditable ? _ToggleDropDownModule["default"].cursorDefault : !showOnHover ? "".concat(_ToggleDropDownModule["default"].cursor, " ").concat(hoverStyle ? hoverStyle : '') : "".concat(hoverStyle ? hoverStyle : '', " ").concat(_ToggleDropDownModule["default"].cursorDefault));
671
615
  var listIndex = -1;
672
- var ariaTitleId = this.getAriaId();
673
- var allyOptionsArr = this.getOptionsArray();
616
+ var ariaTitleId = this.getAriaId(); // const allyOptionsArr = this.getOptionsArray();
617
+
674
618
  return /*#__PURE__*/_react["default"].createElement("div", _extends({
675
619
  className: _ToggleDropDownModule["default"].wrapper,
676
620
  onMouseEnter: showOnHover && !isDisabled && !isReadOnly && isEditable ? this.showTogglePopup : undefined,
@@ -683,15 +627,7 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
683
627
  align: "vertical",
684
628
  isCover: false,
685
629
  dataId: dataId
686
- }, /*#__PURE__*/_react["default"].createElement("div", {
687
- className: _ToggleDropDownModule["default"].hiddenInput
688
- }, /*#__PURE__*/_react["default"].createElement("input", {
689
- type: "text",
690
- ref: this.inputRef,
691
- onKeyDown: this.handleKeyDown,
692
- tabIndex: "-1",
693
- className: _ToggleDropDownModule["default"].hiddenInputElement
694
- })), children ? isToggleStateNeeded ? /*#__PURE__*/_react["default"].createElement(Component, _extends({}, componentProps, {
630
+ }, children ? isToggleStateNeeded ? /*#__PURE__*/_react["default"].createElement(Component, _extends({}, componentProps, {
695
631
  isActive: isPopupOpen
696
632
  })) : children : /*#__PURE__*/_react["default"].createElement(_RippleEffect["default"], {
697
633
  hoverType: hoverType,
@@ -753,21 +689,37 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
753
689
  ariaLabelledby: !isSearch ? ariaTitleId : undefined
754
690
  },
755
691
  palette: palette,
756
- isResponsivePadding: true
757
- }, DropBoxProps), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isSearch ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
692
+ isResponsivePadding: true,
693
+ needFocusScope: true,
694
+ customProps: {
695
+ focusScopeProps: {
696
+ loadNextOptions: _this5.handleGetNextOptions,
697
+ searchValue: searchValue,
698
+ isFetchingOptions: isFetchingOptions
699
+ }
700
+ }
701
+ }, DropBoxProps, {
702
+ onClose: _this5.handleTogglePopup
703
+ }), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isSearch ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
758
704
  className: _ToggleDropDownModule["default"].search
759
705
  }, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], _extends({
760
706
  placeHolder: placeHolderText,
761
- onChange: _this6.handleChange,
707
+ onChange: _this5.handleChange,
762
708
  value: searchValue,
763
- onClear: _this6.onSearchClear,
764
- size: searchBoxSize,
765
- inputRef: _this6.searchInputRef,
766
- onKeyDown: _this6.handleKeyDown,
709
+ onClear: _this5.onSearchClear,
710
+ size: searchBoxSize // inputRef={this.searchInputRef}
711
+ ,
712
+ customProps: {
713
+ TextBoxProps: {
714
+ 'data-a11y-autofocus': true
715
+ }
716
+ } //search
717
+ // onKeyDown={this.handleKeyDown}
718
+ ,
767
719
  a11y: {
768
720
  role: 'combobox',
769
721
  ariaOwns: ariaTitleId,
770
- ariaActivedescendant: allyOptionsArr[selectedIndex] && allyOptionsArr[selectedIndex][keyName],
722
+ // ariaActivedescendant: allyOptionsArr[selectedIndex] && allyOptionsArr[selectedIndex][keyName],
771
723
  ariaAutocomplete: 'list',
772
724
  ariaHaspopup: true,
773
725
  ariaExpanded: true
@@ -790,10 +742,11 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
790
742
  preventParentScroll: "vertical",
791
743
  dataId: "".concat(dataId, "_list"),
792
744
  className: "".concat(tabletMode ? _ToggleDropDownModule["default"].responsivemaxHgt : _ToggleDropDownModule["default"].maxHgt, " ").concat(customListBox),
793
- eleRef: _this6.scrollContentRef,
794
- onScroll: _this6.handleScroll,
795
- role: isSearch ? 'listbox' : undefined,
796
- "aria-labelledby": isSearch ? ariaTitleId : undefined
745
+ eleRef: _this5.scrollContentRef,
746
+ onScroll: _this5.handleScroll,
747
+ role: isSearch ? 'listbox' : 'menu',
748
+ "aria-labelledby": isSearch ? ariaTitleId : undefined,
749
+ "data-scroll": "true"
797
750
  }, isDataLoaded ? options && options.length != 0 ? isGroupDropDown ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, options.map(function (group) {
798
751
  var groupName = group[groupNameKey];
799
752
  var groupOptions = group[groupOptionsKey];
@@ -826,21 +779,22 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
826
779
  value: item[keyName],
827
780
  id: item[idName],
828
781
  active: selectedId === item[idName],
829
- onClick: _this6.onSelect.bind(_this6, item),
830
- index: listIndex,
831
- highlight: selectedIndex === listIndex,
782
+ onClick: _this5.onSelect.bind(_this5, item),
783
+ index: listIndex // highlight={selectedIndex === listIndex}
784
+ ,
832
785
  disableTitle: disableTitle,
833
786
  isDisabled: isDisabled,
834
787
  iconName: iconName,
835
788
  iconClass: iconClass,
836
789
  iconSize: iconSize,
837
790
  needTick: needTick,
838
- needBorder: false,
839
- onMouseEnter: _this6.handleMouseEnter,
840
- getRef: _this6.itemRef,
791
+ needBorder: false // onMouseEnter={this.handleMouseEnter}
792
+ ,
793
+ getRef: _this5.itemRef,
841
794
  title: title ? title : item[keyName],
842
795
  palette: palette,
843
796
  needMultiLineText: needMultiLineText,
797
+ autoHover: true,
844
798
  a11y: {
845
799
  role: isSearch ? 'option' : 'menuitem',
846
800
  ariaSelected: selectedId === item[idName],
@@ -852,18 +806,19 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
852
806
  value: item[keyName],
853
807
  id: item[idName],
854
808
  active: selectedId === item[idName],
855
- onClick: _this6.onSelect.bind(_this6, item),
809
+ onClick: _this5.onSelect.bind(_this5, item),
856
810
  isDisabled: isDisabled,
857
811
  disableTitle: disableTitle,
858
- index: listIndex,
859
- highlight: selectedIndex === listIndex,
812
+ index: listIndex // highlight={selectedIndex === listIndex}
813
+ ,
860
814
  needTick: needTick,
861
- needBorder: false,
862
- onMouseEnter: _this6.handleMouseEnter,
863
- getRef: _this6.itemRef,
815
+ needBorder: false // onMouseEnter={this.handleMouseEnter}
816
+ ,
817
+ getRef: _this5.itemRef,
864
818
  title: title ? title : item[keyName],
865
819
  palette: palette,
866
820
  needMultiLineText: needMultiLineText,
821
+ autoHover: true,
867
822
  a11y: {
868
823
  role: isSearch ? 'option' : 'menuitem',
869
824
  ariaSelected: selectedId === item[idName],
@@ -898,22 +853,23 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
898
853
  value: item[keyName],
899
854
  id: item[idName],
900
855
  active: selectedId === item[idName],
901
- onClick: _this6.onSelect.bind(_this6, item),
856
+ onClick: _this5.onSelect.bind(_this5, item),
902
857
  index: listIndex,
903
858
  disableTitle: disableTitle,
904
- isDisabled: isDisabled,
905
- highlight: selectedIndex === listIndex,
859
+ isDisabled: isDisabled // highlight={selectedIndex === listIndex}
860
+ ,
906
861
  iconName: iconName,
907
862
  iconClass: iconClass,
908
863
  iconSize: iconSize,
909
864
  needTick: needTick,
910
- needBorder: false,
911
- onMouseEnter: _this6.handleMouseEnter,
912
- getRef: _this6.itemRef,
865
+ needBorder: false // onMouseEnter={this.handleMouseEnter}
866
+ ,
867
+ getRef: _this5.itemRef,
913
868
  title: title ? title : item[keyName],
914
869
  key: listIndex,
915
870
  palette: palette,
916
871
  needMultiLineText: needMultiLineText,
872
+ autoHover: true,
917
873
  a11y: {
918
874
  role: isSearch ? 'option' : 'menuitem',
919
875
  ariaSelected: selectedId === item[idName],
@@ -927,16 +883,17 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
927
883
  disableTitle: disableTitle,
928
884
  isDisabled: isDisabled,
929
885
  active: selectedId === item[idName],
930
- onClick: _this6.onSelect.bind(_this6, item),
931
- index: listIndex,
932
- highlight: selectedIndex === listIndex,
886
+ onClick: _this5.onSelect.bind(_this5, item),
887
+ index: listIndex // highlight={selectedIndex === listIndex}
888
+ ,
933
889
  needTick: needTick,
934
- needBorder: false,
935
- onMouseEnter: _this6.handleMouseEnter,
936
- getRef: _this6.itemRef,
890
+ needBorder: false // onMouseEnter={this.handleMouseEnter}
891
+ ,
892
+ getRef: _this5.itemRef,
937
893
  title: title ? title : item[keyName],
938
894
  palette: palette,
939
895
  needMultiLineText: needMultiLineText,
896
+ autoHover: true,
940
897
  a11y: {
941
898
  role: isSearch ? 'option' : 'menuitem',
942
899
  ariaSelected: selectedId === item[idName],
@@ -951,7 +908,7 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
951
908
  description: searchEmptyHint,
952
909
  title: searchErrorText || 'No results',
953
910
  size: "small",
954
- getEmptyState: _this6.emptySearchSVG
911
+ getEmptyState: _this5.emptySearchSVG
955
912
  }) : /*#__PURE__*/_react["default"].createElement("div", {
956
913
  className: _ToggleDropDownModule["default"].loader
957
914
  }, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null))), getFooter ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, getFooter()) : null));