@rh-support/components 2.0.4 → 2.0.7-beta.1

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 (286) hide show
  1. package/lib/cjs/AlertMessage/AlertMessage.js +5 -5
  2. package/lib/cjs/AlertMessage/index.d.ts +0 -1
  3. package/lib/cjs/AlertMessage/index.d.ts.map +1 -1
  4. package/lib/cjs/AlertMessage/index.js +1 -1
  5. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts +0 -1
  6. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts.map +1 -1
  7. package/lib/cjs/ConfirmationModal/ConfirmationContext.js +13 -41
  8. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts +4 -2
  9. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts.map +1 -1
  10. package/lib/cjs/ConfirmationModal/ConfirmationDialog.js +7 -6
  11. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -6
  12. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts.map +1 -1
  13. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.js +29 -69
  14. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts +0 -1
  15. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts.map +1 -1
  16. package/lib/cjs/CoverSpinner/CoverSpinner.js +1 -1
  17. package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts.map +1 -1
  18. package/lib/cjs/CustomContentLoader/CustomContentLoader.js +25 -25
  19. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts +0 -1
  20. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts.map +1 -1
  21. package/lib/cjs/CustomTextInput/CustomTextInput.js +10 -21
  22. package/lib/cjs/DropDownList/AsyncDropDownList.js +5 -5
  23. package/lib/cjs/DropDownList/DropDownList.d.ts +0 -1
  24. package/lib/cjs/DropDownList/DropDownList.d.ts.map +1 -1
  25. package/lib/cjs/DropDownList/DropDownList.js +45 -75
  26. package/lib/cjs/DropDownList/DropdownWrapper.js +7 -18
  27. package/lib/cjs/DropDownList/MultiSelectDropdownList.js +3 -3
  28. package/lib/cjs/DropDownList/SearchableList.d.ts +1 -0
  29. package/lib/cjs/DropDownList/SearchableList.d.ts.map +1 -1
  30. package/lib/cjs/DropDownList/SearchableList.js +45 -55
  31. package/lib/cjs/DropDownList/SelectList.js +15 -26
  32. package/lib/cjs/DropDownList/async.js +28 -38
  33. package/lib/cjs/DropDownList/dropdownList.css +1 -1
  34. package/lib/cjs/DropDownList/dropdownUtils.d.ts.map +1 -1
  35. package/lib/cjs/DropDownList/dropdownUtils.js +9 -19
  36. package/lib/cjs/DropDownList/types.d.ts +1 -0
  37. package/lib/cjs/DropDownList/types.d.ts.map +1 -1
  38. package/lib/cjs/DropDownList/withMulti.js +15 -26
  39. package/lib/cjs/ErrorBoundary/ErrorBoundary.js +18 -47
  40. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -1
  41. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +1 -1
  42. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.js +10 -10
  43. package/lib/cjs/ErrorPages/Generic403.d.ts +0 -1
  44. package/lib/cjs/ErrorPages/Generic403.d.ts.map +1 -1
  45. package/lib/cjs/ErrorPages/Generic403.js +2 -2
  46. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts +0 -1
  47. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts.map +1 -1
  48. package/lib/cjs/FeedbackForm/FeedbackForm.js +24 -52
  49. package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts.map +1 -1
  50. package/lib/cjs/Functional/CaseContactsSelectorExternal.js +81 -154
  51. package/lib/cjs/InlineEdit/InlineEdit.d.ts +1 -0
  52. package/lib/cjs/InlineEdit/InlineEdit.d.ts.map +1 -1
  53. package/lib/cjs/InlineEdit/InlineEdit.js +58 -144
  54. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts +1 -0
  55. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts.map +1 -1
  56. package/lib/cjs/InlineEdit/NewInlineEdit.js +62 -147
  57. package/lib/cjs/InlineEdit/inlineEdit.css +4 -0
  58. package/lib/cjs/InlineEdit/newInlineEdit.css +4 -0
  59. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts +0 -1
  60. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts.map +1 -1
  61. package/lib/cjs/LanguageSelector/LanguageSelector.js +10 -26
  62. package/lib/cjs/LoadingDots/LoadingDots.d.ts +0 -1
  63. package/lib/cjs/LoadingDots/LoadingDots.d.ts.map +1 -1
  64. package/lib/cjs/LoadingDots/LoadingDots.js +4 -4
  65. package/lib/cjs/LoadingDots/index.d.ts +0 -1
  66. package/lib/cjs/LoadingDots/index.d.ts.map +1 -1
  67. package/lib/cjs/LoadingDots/index.js +1 -1
  68. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts +0 -1
  69. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  70. package/lib/cjs/LoadingIndicator/LoadingIndicator.js +3 -3
  71. package/lib/cjs/LoginModal/LoginModal.d.ts +0 -1
  72. package/lib/cjs/LoginModal/LoginModal.d.ts.map +1 -1
  73. package/lib/cjs/LoginModal/LoginModal.js +3 -3
  74. package/lib/cjs/MarkdownEditor/MarkdownEditor.js +113 -165
  75. package/lib/cjs/MoreOrLess/MoreOrLess.js +20 -40
  76. package/lib/cjs/PaginatedList/PaginatedList.js +15 -31
  77. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts +0 -1
  78. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts.map +1 -1
  79. package/lib/cjs/PaginationCompact/PaginationCompact.js +14 -31
  80. package/lib/cjs/PhoneInput/CountryData.d.ts +3 -0
  81. package/lib/cjs/PhoneInput/CountryData.d.ts.map +1 -0
  82. package/lib/cjs/PhoneInput/CountryData.js +583 -0
  83. package/lib/cjs/PhoneInput/PhoneInput.d.ts +19 -0
  84. package/lib/cjs/PhoneInput/PhoneInput.d.ts.map +1 -0
  85. package/lib/cjs/PhoneInput/PhoneInput.js +284 -0
  86. package/lib/cjs/PhoneInput/PhoneInput.scss +753 -0
  87. package/lib/cjs/PhoneInput/flags.png +0 -0
  88. package/lib/cjs/PhoneInput/index.d.ts +2 -0
  89. package/lib/cjs/PhoneInput/index.d.ts.map +1 -0
  90. package/lib/cjs/PhoneInput/index.js +13 -0
  91. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -1
  92. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +1 -1
  93. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.js +14 -14
  94. package/lib/cjs/ProgressBar/CircularProgressBar/Path.js +20 -18
  95. package/lib/cjs/ProgressBar/ProgressBar.js +8 -19
  96. package/lib/cjs/PromisifyModal/PromisifyModal.js +19 -36
  97. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -1
  98. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +1 -1
  99. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.js +5 -5
  100. package/lib/cjs/SubscriptionAbuse/const.d.ts +0 -1
  101. package/lib/cjs/SubscriptionAbuse/const.d.ts.map +1 -1
  102. package/lib/cjs/SubscriptionAbuse/const.js +3 -3
  103. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -1
  104. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +1 -1
  105. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.js +8 -24
  106. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -1
  107. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +1 -1
  108. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.js +50 -120
  109. package/lib/cjs/Table/PFTable.js +52 -89
  110. package/lib/cjs/Table/Table.js +12 -29
  111. package/lib/cjs/Table/TableColumnSelector.d.ts +0 -1
  112. package/lib/cjs/Table/TableColumnSelector.d.ts.map +1 -1
  113. package/lib/cjs/Table/TableColumnSelector.js +14 -15
  114. package/lib/cjs/Table/TablePagination.d.ts +0 -1
  115. package/lib/cjs/Table/TablePagination.d.ts.map +1 -1
  116. package/lib/cjs/Table/TablePagination.js +8 -8
  117. package/lib/cjs/Table/TableProvider.js +6 -6
  118. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts +0 -1
  119. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts.map +1 -1
  120. package/lib/cjs/TermsAndConditions/AcceptTermsModal.js +46 -100
  121. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.js +35 -62
  122. package/lib/cjs/TextAreaResizable/TextAreaResizable.js +12 -25
  123. package/lib/cjs/ToastNotification/ToastNotification.js +35 -70
  124. package/lib/cjs/TopContentSearch/TopContentSearch.js +48 -113
  125. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.js +13 -29
  126. package/lib/cjs/helperFunctions/errorMessage.d.ts +0 -1
  127. package/lib/cjs/helperFunctions/errorMessage.d.ts.map +1 -1
  128. package/lib/cjs/helperFunctions/errorMessage.js +13 -13
  129. package/lib/cjs/hooks/useBreakpoint.js +26 -43
  130. package/lib/cjs/hooks/useCopyToClipboard.js +8 -24
  131. package/lib/cjs/hooks/useDebounce.js +13 -38
  132. package/lib/cjs/hooks/useFetch.js +47 -123
  133. package/lib/cjs/hooks/useForceUpdate.js +2 -18
  134. package/lib/cjs/hooks/useForkRef.js +3 -3
  135. package/lib/cjs/hooks/useIsMounted.js +4 -4
  136. package/lib/cjs/hooks/useLRUCache.js +11 -11
  137. package/lib/cjs/hooks/useLocalStorage.js +7 -23
  138. package/lib/cjs/hooks/useOnScreen.js +5 -24
  139. package/lib/cjs/hooks/usePolling.js +8 -30
  140. package/lib/cjs/hooks/usePrevious.js +3 -3
  141. package/lib/cjs/hooks/useTitle.js +4 -4
  142. package/lib/cjs/hooks/useUndo.js +49 -72
  143. package/lib/cjs/index.d.ts +1 -0
  144. package/lib/cjs/index.d.ts.map +1 -1
  145. package/lib/cjs/index.js +1 -0
  146. package/lib/esm/AlertMessage/AlertMessage.js +2 -2
  147. package/lib/esm/AlertMessage/index.d.ts +0 -1
  148. package/lib/esm/AlertMessage/index.d.ts.map +1 -1
  149. package/lib/esm/AlertMessage/index.js +1 -1
  150. package/lib/esm/ConfirmationModal/ConfirmationContext.d.ts +0 -1
  151. package/lib/esm/ConfirmationModal/ConfirmationContext.d.ts.map +1 -1
  152. package/lib/esm/ConfirmationModal/ConfirmationDialog.d.ts +4 -2
  153. package/lib/esm/ConfirmationModal/ConfirmationDialog.d.ts.map +1 -1
  154. package/lib/esm/ConfirmationModal/ConfirmationDialog.js +3 -2
  155. package/lib/esm/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -6
  156. package/lib/esm/ConfirmationModal/ConfirmationModal.stories.d.ts.map +1 -1
  157. package/lib/esm/ConfirmationModal/ConfirmationModal.stories.js +19 -18
  158. package/lib/esm/CoverSpinner/CoverSpinner.d.ts +0 -1
  159. package/lib/esm/CoverSpinner/CoverSpinner.d.ts.map +1 -1
  160. package/lib/esm/CustomContentLoader/CustomContentLoader.d.ts.map +1 -1
  161. package/lib/esm/CustomContentLoader/CustomContentLoader.js +23 -23
  162. package/lib/esm/CustomTextInput/CustomTextInput.d.ts +0 -1
  163. package/lib/esm/CustomTextInput/CustomTextInput.d.ts.map +1 -1
  164. package/lib/esm/CustomTextInput/CustomTextInput.js +1 -1
  165. package/lib/esm/DropDownList/DropDownList.d.ts +0 -1
  166. package/lib/esm/DropDownList/DropDownList.d.ts.map +1 -1
  167. package/lib/esm/DropDownList/SearchableList.d.ts +1 -0
  168. package/lib/esm/DropDownList/SearchableList.d.ts.map +1 -1
  169. package/lib/esm/DropDownList/SearchableList.js +6 -2
  170. package/lib/esm/DropDownList/dropdownList.css +1 -1
  171. package/lib/esm/DropDownList/dropdownUtils.d.ts.map +1 -1
  172. package/lib/esm/DropDownList/dropdownUtils.js +1 -0
  173. package/lib/esm/DropDownList/types.d.ts +1 -0
  174. package/lib/esm/DropDownList/types.d.ts.map +1 -1
  175. package/lib/esm/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -1
  176. package/lib/esm/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +1 -1
  177. package/lib/esm/ErrorPages/Generic403.d.ts +0 -1
  178. package/lib/esm/ErrorPages/Generic403.d.ts.map +1 -1
  179. package/lib/esm/FeedbackForm/FeedbackForm.d.ts +0 -1
  180. package/lib/esm/FeedbackForm/FeedbackForm.d.ts.map +1 -1
  181. package/lib/esm/Functional/CaseContactsSelectorExternal.d.ts.map +1 -1
  182. package/lib/esm/Functional/CaseContactsSelectorExternal.js +2 -2
  183. package/lib/esm/InlineEdit/InlineEdit.d.ts +1 -0
  184. package/lib/esm/InlineEdit/InlineEdit.d.ts.map +1 -1
  185. package/lib/esm/InlineEdit/InlineEdit.js +3 -3
  186. package/lib/esm/InlineEdit/NewInlineEdit.d.ts +1 -0
  187. package/lib/esm/InlineEdit/NewInlineEdit.d.ts.map +1 -1
  188. package/lib/esm/InlineEdit/NewInlineEdit.js +3 -3
  189. package/lib/esm/InlineEdit/inlineEdit.css +4 -0
  190. package/lib/esm/InlineEdit/newInlineEdit.css +4 -0
  191. package/lib/esm/LanguageSelector/LanguageSelector.d.ts +0 -1
  192. package/lib/esm/LanguageSelector/LanguageSelector.d.ts.map +1 -1
  193. package/lib/esm/LoadingDots/LoadingDots.d.ts +0 -1
  194. package/lib/esm/LoadingDots/LoadingDots.d.ts.map +1 -1
  195. package/lib/esm/LoadingDots/LoadingDots.js +1 -1
  196. package/lib/esm/LoadingDots/index.d.ts +0 -1
  197. package/lib/esm/LoadingDots/index.d.ts.map +1 -1
  198. package/lib/esm/LoadingDots/index.js +1 -1
  199. package/lib/esm/LoadingIndicator/LoadingIndicator.d.ts +0 -1
  200. package/lib/esm/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  201. package/lib/esm/LoginModal/LoginModal.d.ts +0 -1
  202. package/lib/esm/LoginModal/LoginModal.d.ts.map +1 -1
  203. package/lib/esm/PaginationCompact/PaginationCompact.d.ts +0 -1
  204. package/lib/esm/PaginationCompact/PaginationCompact.d.ts.map +1 -1
  205. package/lib/esm/PhoneInput/CountryData.d.ts +3 -0
  206. package/lib/esm/PhoneInput/CountryData.d.ts.map +1 -0
  207. package/lib/esm/PhoneInput/CountryData.js +580 -0
  208. package/lib/esm/PhoneInput/PhoneInput.d.ts +19 -0
  209. package/lib/esm/PhoneInput/PhoneInput.d.ts.map +1 -0
  210. package/lib/esm/PhoneInput/PhoneInput.js +257 -0
  211. package/lib/esm/PhoneInput/PhoneInput.scss +753 -0
  212. package/lib/esm/PhoneInput/flags.png +0 -0
  213. package/lib/esm/PhoneInput/index.d.ts +2 -0
  214. package/lib/esm/PhoneInput/index.d.ts.map +1 -0
  215. package/lib/esm/PhoneInput/index.js +1 -0
  216. package/lib/esm/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -1
  217. package/lib/esm/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +1 -1
  218. package/lib/esm/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -1
  219. package/lib/esm/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +1 -1
  220. package/lib/esm/SubscriptionAbuse/const.d.ts +0 -1
  221. package/lib/esm/SubscriptionAbuse/const.d.ts.map +1 -1
  222. package/lib/esm/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -1
  223. package/lib/esm/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +1 -1
  224. package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -1
  225. package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +1 -1
  226. package/lib/esm/Table/TableColumnSelector.d.ts +0 -1
  227. package/lib/esm/Table/TableColumnSelector.d.ts.map +1 -1
  228. package/lib/esm/Table/TablePagination.d.ts +0 -1
  229. package/lib/esm/Table/TablePagination.d.ts.map +1 -1
  230. package/lib/esm/TermsAndConditions/AcceptTermsModal.d.ts +0 -1
  231. package/lib/esm/TermsAndConditions/AcceptTermsModal.d.ts.map +1 -1
  232. package/lib/esm/TextAreaResizable/TextAreaResizable.js +1 -1
  233. package/lib/esm/helperFunctions/errorMessage.d.ts +0 -1
  234. package/lib/esm/helperFunctions/errorMessage.d.ts.map +1 -1
  235. package/lib/esm/index.d.ts +1 -0
  236. package/lib/esm/index.d.ts.map +1 -1
  237. package/lib/esm/index.js +1 -0
  238. package/package.json +16 -30
  239. package/lib/cjs/AlertMessage/AlertMessage.stories.d.ts +0 -12
  240. package/lib/cjs/AlertMessage/AlertMessage.stories.d.ts.map +0 -1
  241. package/lib/cjs/AlertMessage/AlertMessage.stories.js +0 -29
  242. package/lib/cjs/DropDownList/Dropdownlist.stories.d.ts +0 -17
  243. package/lib/cjs/DropDownList/Dropdownlist.stories.d.ts.map +0 -1
  244. package/lib/cjs/DropDownList/Dropdownlist.stories.js +0 -253
  245. package/lib/cjs/LoadingDots/LoadingDots.stories.d.ts +0 -10
  246. package/lib/cjs/LoadingDots/LoadingDots.stories.d.ts.map +0 -1
  247. package/lib/cjs/LoadingDots/LoadingDots.stories.js +0 -16
  248. package/lib/cjs/LoadingIndicator/LoadingIndicator.stories.d.ts +0 -11
  249. package/lib/cjs/LoadingIndicator/LoadingIndicator.stories.d.ts.map +0 -1
  250. package/lib/cjs/LoadingIndicator/LoadingIndicator.stories.js +0 -18
  251. package/lib/cjs/Table/PFTable.stories.d.ts +0 -20
  252. package/lib/cjs/Table/PFTable.stories.d.ts.map +0 -1
  253. package/lib/cjs/Table/PFTable.stories.js +0 -81
  254. package/lib/cjs/demo/Demo.css +0 -3
  255. package/lib/cjs/demo/Demo.d.ts +0 -13
  256. package/lib/cjs/demo/Demo.d.ts.map +0 -1
  257. package/lib/cjs/demo/Demo.js +0 -42
  258. package/lib/cjs/demo/Demo.md +0 -0
  259. package/lib/cjs/demo/Demo.scss +0 -3
  260. package/lib/cjs/demo/index.d.ts +0 -3
  261. package/lib/cjs/demo/index.d.ts.map +0 -1
  262. package/lib/cjs/demo/index.js +0 -23
  263. package/lib/esm/AlertMessage/AlertMessage.stories.d.ts +0 -12
  264. package/lib/esm/AlertMessage/AlertMessage.stories.d.ts.map +0 -1
  265. package/lib/esm/AlertMessage/AlertMessage.stories.js +0 -20
  266. package/lib/esm/DropDownList/Dropdownlist.stories.d.ts +0 -17
  267. package/lib/esm/DropDownList/Dropdownlist.stories.d.ts.map +0 -1
  268. package/lib/esm/DropDownList/Dropdownlist.stories.js +0 -156
  269. package/lib/esm/LoadingDots/LoadingDots.stories.d.ts +0 -10
  270. package/lib/esm/LoadingDots/LoadingDots.stories.d.ts.map +0 -1
  271. package/lib/esm/LoadingDots/LoadingDots.stories.js +0 -8
  272. package/lib/esm/LoadingIndicator/LoadingIndicator.stories.d.ts +0 -11
  273. package/lib/esm/LoadingIndicator/LoadingIndicator.stories.d.ts.map +0 -1
  274. package/lib/esm/LoadingIndicator/LoadingIndicator.stories.js +0 -9
  275. package/lib/esm/Table/PFTable.stories.d.ts +0 -20
  276. package/lib/esm/Table/PFTable.stories.d.ts.map +0 -1
  277. package/lib/esm/Table/PFTable.stories.js +0 -73
  278. package/lib/esm/demo/Demo.css +0 -3
  279. package/lib/esm/demo/Demo.d.ts +0 -13
  280. package/lib/esm/demo/Demo.d.ts.map +0 -1
  281. package/lib/esm/demo/Demo.js +0 -26
  282. package/lib/esm/demo/Demo.md +0 -0
  283. package/lib/esm/demo/Demo.scss +0 -3
  284. package/lib/esm/demo/index.d.ts +0 -3
  285. package/lib/esm/demo/index.d.ts.map +0 -1
  286. package/lib/esm/demo/index.js +0 -2
@@ -42,7 +42,7 @@
42
42
 
43
43
  .downshift .downshift-menu.open {
44
44
  visibility: visible;
45
- z-index: 200;
45
+ z-index: 89;
46
46
  }
47
47
 
48
48
  .downshift .downshift-menu {
@@ -1 +1 @@
1
- {"version":3,"file":"dropdownUtils.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/dropdownUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAExD;AAED,eAAO,MAAM,IAAI,YAAW,CAAC;AAE7B,eAAO,MAAM,+BAA+B,4CAgC3C,CAAC"}
1
+ {"version":3,"file":"dropdownUtils.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/dropdownUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAExD;AAED,eAAO,MAAM,IAAI,YAAW,CAAC;AAE7B,eAAO,MAAM,+BAA+B,4CAoC3C,CAAC"}
@@ -1,37 +1,27 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.multiSelectDropdownStateReducer = exports.noop = exports.itemToString = void 0;
15
- var downshift_1 = require("downshift");
4
+ const downshift_1 = require("downshift");
16
5
  function itemToString(item) {
17
6
  return item ? item.label : '';
18
7
  }
19
8
  exports.itemToString = itemToString;
20
- var noop = function () { };
9
+ const noop = () => { };
21
10
  exports.noop = noop;
22
- var multiSelectDropdownStateReducer = function (state, actionAndChanges) {
23
- var changes = actionAndChanges.changes, type = actionAndChanges.type;
11
+ const multiSelectDropdownStateReducer = (state, actionAndChanges) => {
12
+ const { changes, type } = actionAndChanges;
24
13
  switch (type) {
25
14
  case downshift_1.useSelect.stateChangeTypes.MenuKeyDownSpaceButton:
26
- return __assign(__assign({}, changes), { isOpen: true, highlightedIndex: state.highlightedIndex });
15
+ return Object.assign(Object.assign({}, changes), { isOpen: true, highlightedIndex: state.highlightedIndex });
27
16
  case downshift_1.useSelect.stateChangeTypes.MenuKeyDownEnter:
28
17
  case downshift_1.useSelect.stateChangeTypes.ItemClick:
29
- return __assign(__assign({}, changes), { isOpen: true, highlightedIndex: state.highlightedIndex, inputValue: '' });
18
+ return Object.assign(Object.assign({}, changes), { isOpen: true, highlightedIndex: state.highlightedIndex, inputValue: '' });
30
19
  case downshift_1.useCombobox.stateChangeTypes.InputKeyDownEnter:
20
+ return Object.assign(Object.assign({}, changes), { inputValue: state.inputValue });
31
21
  case downshift_1.useCombobox.stateChangeTypes.ItemClick:
32
- return __assign(__assign({}, changes), { isOpen: true, highlightedIndex: state.highlightedIndex, inputValue: '' });
22
+ return Object.assign(Object.assign({}, changes), { isOpen: true, highlightedIndex: state.highlightedIndex, inputValue: '' });
33
23
  case downshift_1.useCombobox.stateChangeTypes.InputBlur:
34
- return __assign({}, changes);
24
+ return Object.assign({}, changes);
35
25
  default:
36
26
  return changes;
37
27
  }
@@ -31,6 +31,7 @@ export interface IDropdownListProps<T> extends IDClassNameProps {
31
31
  hasTwoColumns?: boolean;
32
32
  chipGroupComponent?: React.ReactNode;
33
33
  hideToggleButton?: boolean;
34
+ isExportingPDF?: boolean;
34
35
  }
35
36
  export declare type IMultiSelectOnlyProps<T> = {
36
37
  selectedItems?: Array<IOption<T>>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAIr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AK,GAAG,CAAC;CACvD,CAAC;AAEF,oBAAY,oCAAoC,CAAC,CAAC,IAAI,IAAI,CACtD,kBAAkB,CAAC,CAAC,CAAC,EACrB,UAAU,GAAG,cAAc,GAAG,aAAa,GAAG,cAAc,GAAG,gBAAgB,GAAG,eAAe,CACpG,CAAC;AAEF,oBAAY,wBAAwB,CAAC,CAAC,IAAI,oCAAoC,CAAC,CAAC,CAAC,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAE7G,oBAAY,eAAe,CAAC,CAAC,IAAI;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;CACtC,CAAC;AAEF,oBAAY,8BAA8B,CAAC,CAAC,IACtC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,eAAe,GAAG,YAAY,GAAG,aAAa,CAAC,GAC3E,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAElC,oBAAY,kBAAkB,CAAC,CAAC,IAAI,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,eAAe,GAAG,YAAY,GAAG,aAAa,CAAC,GAC3G,eAAe,CAAC,CAAC,CAAC,CAAC"}
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
3
  if (k2 === undefined) k2 = k;
15
4
  Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
@@ -42,38 +31,38 @@ var __rest = (this && this.__rest) || function (s, e) {
42
31
  };
43
32
  Object.defineProperty(exports, "__esModule", { value: true });
44
33
  exports.withMulti = exports.useMulti = void 0;
45
- var react_1 = __importStar(require("react"));
46
- var dropdownUtils_1 = require("./dropdownUtils");
47
- var defaultProps = {
34
+ const react_1 = __importStar(require("react"));
35
+ const dropdownUtils_1 = require("./dropdownUtils");
36
+ const defaultProps = {
48
37
  selectedItems: [],
49
38
  };
50
39
  function useMulti(props) {
51
- var selectedItems = props.selectedItems, onChange = props.onChange, rest = __rest(props, ["selectedItems", "onChange"]);
52
- var onChangeLocal = function (selectedItem) {
53
- var newItems = (selectedItems || []).slice();
54
- var selectedItemsLabel = props.selectedItems.filter(function (item) { return !item.isNotSelectable; }).map(dropdownUtils_1.itemToString);
55
- var selectedItemLabel = dropdownUtils_1.itemToString(selectedItem);
40
+ const { selectedItems, onChange } = props, rest = __rest(props, ["selectedItems", "onChange"]);
41
+ const onChangeLocal = (selectedItem) => {
42
+ let newItems = (selectedItems || []).slice();
43
+ const selectedItemsLabel = props.selectedItems.filter((item) => !item.isNotSelectable).map(dropdownUtils_1.itemToString);
44
+ const selectedItemLabel = dropdownUtils_1.itemToString(selectedItem);
56
45
  if (selectedItemsLabel.includes(selectedItemLabel)) {
57
- newItems = selectedItems.filter(function (i) { return dropdownUtils_1.itemToString(i) !== dropdownUtils_1.itemToString(selectedItem); });
46
+ newItems = selectedItems.filter((i) => dropdownUtils_1.itemToString(i) !== dropdownUtils_1.itemToString(selectedItem));
58
47
  }
59
48
  else {
60
49
  newItems.push(selectedItem);
61
50
  }
62
51
  props.onChange && props.onChange(newItems);
63
52
  };
64
- var onOuterClickLocal = function () {
53
+ const onOuterClickLocal = () => {
65
54
  props.onOuterClick && props.onOuterClick(props.selectedItems);
66
55
  };
67
- var isSelectedItemLocal = function (item) {
56
+ const isSelectedItemLocal = (item) => {
68
57
  return !item.isNotSelectable && props.selectedItems.map(dropdownUtils_1.itemToString).includes(dropdownUtils_1.itemToString(item));
69
58
  };
70
- return __assign(__assign({}, rest), { multiSelect: true, onChange: onChangeLocal, selectedItem: null, onOuterClick: onOuterClickLocal, isSelectedItem: isSelectedItemLocal });
59
+ return Object.assign(Object.assign({}, rest), { multiSelect: true, onChange: onChangeLocal, selectedItem: null, onOuterClick: onOuterClickLocal, isSelectedItem: isSelectedItemLocal });
71
60
  }
72
61
  exports.useMulti = useMulti;
73
62
  function withMulti(WrappedComponent) {
74
- var MultiSelectDropdown = react_1.forwardRef(function (props, ref) { return (react_1.default.createElement(WrappedComponent, __assign({}, useMulti(props), { ref: ref }))); });
75
- var displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
76
- MultiSelectDropdown.displayName = "withMulti" + displayName;
63
+ const MultiSelectDropdown = react_1.forwardRef((props, ref) => (react_1.default.createElement(WrappedComponent, Object.assign({}, useMulti(props), { ref: ref }))));
64
+ const displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
65
+ MultiSelectDropdown.displayName = `withMulti${displayName}`;
77
66
  MultiSelectDropdown.defaultProps = defaultProps;
78
67
  return MultiSelectDropdown;
79
68
  }
@@ -1,30 +1,4 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __assign = (this && this.__assign) || function () {
18
- __assign = Object.assign || function(t) {
19
- for (var s, i = 1, n = arguments.length; i < n; i++) {
20
- s = arguments[i];
21
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
- t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return __assign.apply(this, arguments);
27
- };
28
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
29
3
  if (k2 === undefined) k2 = k;
30
4
  Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
@@ -46,25 +20,23 @@ var __importStar = (this && this.__importStar) || function (mod) {
46
20
  };
47
21
  Object.defineProperty(exports, "__esModule", { value: true });
48
22
  exports.ErrorBoundary = void 0;
49
- var hydrajs_1 = require("@cee-eng/hydrajs");
50
- var utils_1 = require("@rh-support/utils");
51
- var react_1 = __importStar(require("react"));
52
- var ErrorBoundaryFallbackComponent_1 = require("./ErrorBoundaryFallbackComponent");
53
- var ErrorBoundary = /** @class */ (function (_super) {
54
- __extends(ErrorBoundary, _super);
55
- function ErrorBoundary(props) {
56
- var _this = _super.call(this, props) || this;
57
- _this.state = { hasError: false };
58
- return _this;
23
+ const hydrajs_1 = require("@cee-eng/hydrajs");
24
+ const utils_1 = require("@rh-support/utils");
25
+ const react_1 = __importStar(require("react"));
26
+ const ErrorBoundaryFallbackComponent_1 = require("./ErrorBoundaryFallbackComponent");
27
+ class ErrorBoundary extends react_1.Component {
28
+ constructor(props) {
29
+ super(props);
30
+ this.state = { hasError: false };
59
31
  }
60
- ErrorBoundary.getDerivedStateFromError = function () {
32
+ static getDerivedStateFromError() {
61
33
  // Update state so the next render will show the fallback UI.
62
34
  return { hasError: true };
63
- };
64
- ErrorBoundary.prototype.componentDidCatch = function (error, errorInfo) {
35
+ }
36
+ componentDidCatch(error, errorInfo) {
65
37
  if (hydrajs_1.Env.isLocalEnv())
66
38
  return;
67
- var onError = this.props.onError;
39
+ const { onError } = this.props;
68
40
  if (typeof onError === 'function') {
69
41
  try {
70
42
  onError.call(this, error, errorInfo || '');
@@ -78,14 +50,13 @@ var ErrorBoundary = /** @class */ (function (_super) {
78
50
  package_version: utils_1.getAppVersion(),
79
51
  },
80
52
  });
81
- };
82
- ErrorBoundary.prototype.render = function () {
83
- var _a = this.props, children = _a.children, FallbackComponent = _a.FallbackComponent;
53
+ }
54
+ render() {
55
+ const { children, FallbackComponent } = this.props;
84
56
  if (this.state.hasError) {
85
- return this.props.FallbackComponent ? (react_1.default.createElement(FallbackComponent, null)) : (react_1.default.createElement(ErrorBoundaryFallbackComponent_1.ErrorBoundaryFallbackComponent, __assign({ isPageLevelError: this.props.isPageLevelError }, this.props.errorMsgInfo)));
57
+ return this.props.FallbackComponent ? (react_1.default.createElement(FallbackComponent, null)) : (react_1.default.createElement(ErrorBoundaryFallbackComponent_1.ErrorBoundaryFallbackComponent, Object.assign({ isPageLevelError: this.props.isPageLevelError }, this.props.errorMsgInfo)));
86
58
  }
87
59
  return children || null;
88
- };
89
- return ErrorBoundary;
90
- }(react_1.Component));
60
+ }
61
+ }
91
62
  exports.ErrorBoundary = ErrorBoundary;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IErrorMsgInfo {
3
2
  errorType?: 'info' | 'warning' | 'error';
4
3
  title?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundaryFallbackComponent.d.ts","sourceRoot":"","sources":["../../../src/ErrorBoundary/ErrorBoundaryFallbackComponent.tsx"],"names":[],"mappings":";AAQA,MAAM,WAAW,aAAa;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,MAAO,SAAQ,aAAa;IAClC,gBAAgB,EAAE,OAAO,CAAC;CAC7B;AASD,iBAAS,8BAA8B,CAAC,KAAK,EAAE,MAAM,eA4BpD;kBA5BQ,8BAA8B;;;AA+BvC,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
1
+ {"version":3,"file":"ErrorBoundaryFallbackComponent.d.ts","sourceRoot":"","sources":["../../../src/ErrorBoundary/ErrorBoundaryFallbackComponent.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,aAAa;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,MAAO,SAAQ,aAAa;IAClC,gBAAgB,EAAE,OAAO,CAAC;CAC7B;AASD,iBAAS,8BAA8B,CAAC,KAAK,EAAE,MAAM,eA4BpD;kBA5BQ,8BAA8B;;;AA+BvC,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
@@ -4,22 +4,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ErrorBoundaryFallbackComponent = void 0;
7
- var react_core_1 = require("@patternfly/react-core");
8
- var exclamation_circle_icon_1 = __importDefault(require("@patternfly/react-icons/dist/js/icons/exclamation-circle-icon"));
9
- var global_danger_color_200_1 = __importDefault(require("@patternfly/react-tokens/dist/js/global_danger_color_200"));
10
- var global_info_color_200_1 = __importDefault(require("@patternfly/react-tokens/dist/js/global_info_color_200"));
11
- var global_warning_color_200_1 = __importDefault(require("@patternfly/react-tokens/dist/js/global_warning_color_200"));
12
- var react_1 = __importDefault(require("react"));
13
- var react_i18next_1 = require("react-i18next");
14
- var defaultProps = {
7
+ const react_core_1 = require("@patternfly/react-core");
8
+ const exclamation_circle_icon_1 = __importDefault(require("@patternfly/react-icons/dist/js/icons/exclamation-circle-icon"));
9
+ const global_danger_color_200_1 = __importDefault(require("@patternfly/react-tokens/dist/js/global_danger_color_200"));
10
+ const global_info_color_200_1 = __importDefault(require("@patternfly/react-tokens/dist/js/global_info_color_200"));
11
+ const global_warning_color_200_1 = __importDefault(require("@patternfly/react-tokens/dist/js/global_warning_color_200"));
12
+ const react_1 = __importDefault(require("react"));
13
+ const react_i18next_1 = require("react-i18next");
14
+ const defaultProps = {
15
15
  errorType: 'error',
16
16
  title: 'Unexpected Error Occured',
17
17
  message: 'There was an unexpected error. Please try refreshing the page.',
18
18
  isPageLevelError: false,
19
19
  };
20
20
  function ErrorBoundaryFallbackComponent(props) {
21
- var t = react_i18next_1.useTranslation().t;
22
- var getIconColor = function () {
21
+ const { t } = react_i18next_1.useTranslation();
22
+ const getIconColor = () => {
23
23
  switch (props.errorType) {
24
24
  case 'info':
25
25
  return global_info_color_200_1.default.value;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare function Generic403(): JSX.Element;
3
2
  //# sourceMappingURL=Generic403.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Generic403.d.ts","sourceRoot":"","sources":["../../../src/ErrorPages/Generic403.tsx"],"names":[],"mappings":";AAGA,wBAAgB,UAAU,gBAQzB"}
1
+ {"version":3,"file":"Generic403.d.ts","sourceRoot":"","sources":["../../../src/ErrorPages/Generic403.tsx"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,gBAQzB"}
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Generic403 = void 0;
7
- var react_1 = __importDefault(require("react"));
8
- var react_i18next_1 = require("react-i18next");
7
+ const react_1 = __importDefault(require("react"));
8
+ const react_i18next_1 = require("react-i18next");
9
9
  function Generic403() {
10
10
  return (react_1.default.createElement("div", { className: "container" },
11
11
  react_1.default.createElement("h2", null,
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IProps {
3
2
  buttonLabel: string;
4
3
  additionalBtnClass: string;
@@ -1 +1 @@
1
- {"version":3,"file":"FeedbackForm.d.ts","sourceRoot":"","sources":["../../../src/FeedbackForm/FeedbackForm.tsx"],"names":[],"mappings":";AAkBA,UAAU,MAAM;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACrB;AAID,iBAAS,YAAY,CAAC,KAAK,EAAE,MAAM,eA2OlC;kBA3OQ,YAAY;;;AA8OrB,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"FeedbackForm.d.ts","sourceRoot":"","sources":["../../../src/FeedbackForm/FeedbackForm.tsx"],"names":[],"mappings":"AAkBA,UAAU,MAAM;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACrB;AAID,iBAAS,YAAY,CAAC,KAAK,EAAE,MAAM,eA2OlC;kBA3OQ,YAAY;;;AA8OrB,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
3
  if (k2 === undefined) k2 = k;
15
4
  Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
@@ -29,79 +18,62 @@ var __importStar = (this && this.__importStar) || function (mod) {
29
18
  __setModuleDefault(result, mod);
30
19
  return result;
31
20
  };
32
- var __read = (this && this.__read) || function (o, n) {
33
- var m = typeof Symbol === "function" && o[Symbol.iterator];
34
- if (!m) return o;
35
- var i = m.call(o), r, ar = [], e;
36
- try {
37
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
38
- }
39
- catch (error) { e = { error: error }; }
40
- finally {
41
- try {
42
- if (r && !r.done && (m = i["return"])) m.call(i);
43
- }
44
- finally { if (e) throw e.error; }
45
- }
46
- return ar;
47
- };
48
21
  var __importDefault = (this && this.__importDefault) || function (mod) {
49
22
  return (mod && mod.__esModule) ? mod : { "default": mod };
50
23
  };
51
24
  Object.defineProperty(exports, "__esModule", { value: true });
52
25
  exports.FeedbackForm = void 0;
53
- var hydrajs_1 = require("@cee-eng/hydrajs");
54
- var react_core_1 = require("@patternfly/react-core");
55
- var utils_1 = require("@rh-support/utils");
56
- var isEmpty_1 = __importDefault(require("lodash/isEmpty"));
57
- var react_1 = __importStar(require("react"));
58
- var react_i18next_1 = require("react-i18next");
59
- var react_router_dom_1 = require("react-router-dom");
60
- var TextAreaAutosize_1 = require("../TextAreaAutosize");
61
- var required = {
26
+ const hydrajs_1 = require("@cee-eng/hydrajs");
27
+ const react_core_1 = require("@patternfly/react-core");
28
+ const utils_1 = require("@rh-support/utils");
29
+ const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
30
+ const react_1 = __importStar(require("react"));
31
+ const react_i18next_1 = require("react-i18next");
32
+ const react_router_dom_1 = require("react-router-dom");
33
+ const TextAreaAutosize_1 = require("../TextAreaAutosize");
34
+ const required = {
62
35
  isSolutionFound: true,
63
36
  levelOfSatisfied: true,
64
37
  isTimeSaved: true,
65
38
  moreInfo: false,
66
39
  };
67
- var defaultProps = { buttonLabel: 'Provide feedback', additionalBtnClass: '', isInline: false };
40
+ const defaultProps = { buttonLabel: 'Provide feedback', additionalBtnClass: '', isInline: false };
68
41
  function FeedbackForm(props) {
69
42
  var _a, _b;
70
- var t = react_i18next_1.useTranslation().t;
71
- var _c = __read(react_1.useState(false), 2), isModalOpen = _c[0], toggleModal = _c[1];
72
- var seSessionId = (_b = (_a = utils_1.getUrlParsedParams(react_router_dom_1.useLocation().search)) === null || _a === void 0 ? void 0 : _a.seSessionId) !== null && _b !== void 0 ? _b : '';
73
- var formInitState = {
43
+ const { t } = react_i18next_1.useTranslation();
44
+ const [isModalOpen, toggleModal] = react_1.useState(false);
45
+ const seSessionId = (_b = (_a = utils_1.getUrlParsedParams(react_router_dom_1.useLocation().search)) === null || _a === void 0 ? void 0 : _a.seSessionId) !== null && _b !== void 0 ? _b : '';
46
+ const formInitState = {
74
47
  isSolutionFound: null,
75
48
  levelOfSatisfied: null,
76
49
  isTimeSaved: null,
77
50
  moreInfo: '',
78
51
  };
79
- var _d = __read(react_1.useState(formInitState), 2), values = _d[0], setValues = _d[1];
80
- var _e = __read(react_1.useState(true), 2), isSubmitDisabled = _e[0], setSubmitDisabled = _e[1];
81
- react_1.useEffect(function () {
82
- var valid = true;
83
- Object.keys(values).forEach(function (key) {
52
+ const [values, setValues] = react_1.useState(formInitState);
53
+ const [isSubmitDisabled, setSubmitDisabled] = react_1.useState(true);
54
+ react_1.useEffect(() => {
55
+ let valid = true;
56
+ Object.keys(values).forEach((key) => {
84
57
  if (required[key]) {
85
58
  valid = valid && !isEmpty_1.default(values[key]);
86
59
  }
87
60
  });
88
61
  setSubmitDisabled(!valid);
89
62
  }, [values]);
90
- var handleChange = function (event) {
91
- var _a;
92
- setValues(__assign(__assign({}, values), (_a = {}, _a[event.currentTarget.name] = event.currentTarget.value, _a)));
63
+ const handleChange = (event) => {
64
+ setValues(Object.assign(Object.assign({}, values), { [event.currentTarget.name]: event.currentTarget.value }));
93
65
  };
94
- var handleSubmit = function (event) {
66
+ const handleSubmit = (event) => {
95
67
  event.preventDefault();
96
68
  hydrajs_1.pcm.sendFeedbackForm(values, window.sessionjs, window.location.href, seSessionId !== null && seSessionId !== void 0 ? seSessionId : '');
97
69
  setValues(formInitState);
98
70
  toggleModal(!isModalOpen);
99
71
  };
100
- var handleModalToggle = function () {
72
+ const handleModalToggle = () => {
101
73
  toggleModal(!isModalOpen);
102
74
  };
103
75
  return (react_1.default.createElement(react_1.default.Fragment, null,
104
- react_1.default.createElement(react_core_1.Button, { key: "confirm", onClick: handleModalToggle, variant: "link", "data-tracking-id": "se-feedback-trigger", className: "" + props.additionalBtnClass, isInline: props.isInline ? true : null },
76
+ react_1.default.createElement(react_core_1.Button, { key: "confirm", onClick: handleModalToggle, variant: "link", "data-tracking-id": "se-feedback-trigger", className: `${props.additionalBtnClass}`, isInline: props.isInline ? true : null },
105
77
  react_1.default.createElement(react_i18next_1.Trans, null, props.isInline ? props.buttonLabel.toLowerCase() : props.buttonLabel)),
106
78
  react_1.default.createElement(react_core_1.Modal, { className: "feedback-modal", title: t('Thank you for providing feedback'), "aria-describedby": "Feedback Form", isOpen: isModalOpen, variant: react_core_1.ModalVariant.large, onClose: handleModalToggle, actions: [
107
79
  react_1.default.createElement("button", { key: "confirm", onClick: handleSubmit, disabled: isSubmitDisabled, className: "btn btn-app btn-primary", "data-tracking-id": "se-feedback-submit" },
@@ -1 +1 @@
1
- {"version":3,"file":"CaseContactsSelectorExternal.d.ts","sourceRoot":"","sources":["../../../src/Functional/CaseContactsSelectorExternal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAuB,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAMxD,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAA0C,cAAc,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAKnH,oBAAY,oBAAoB,GAAG,QAAQ,GAAG,0BAA0B,CAAC;AACzE,UAAU,MAAM,CAAC,CAAC,SAAS,cAAc,CACrC,SAAQ,gBAAgB,EACpB,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,IAAI,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,CAAC;IAClG,qBAAqB,EAAE,MAAM,CAAC;IA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