@rh-support/components 2.1.48 → 2.1.50

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 (345) hide show
  1. package/lib/esm/Table/index.d.ts +0 -1
  2. package/lib/esm/Table/index.d.ts.map +1 -1
  3. package/lib/esm/Table/index.js +0 -1
  4. package/package.json +12 -23
  5. package/lib/cjs/AlertMessage/AlertMessage.css +0 -9
  6. package/lib/cjs/AlertMessage/AlertMessage.d.ts +0 -24
  7. package/lib/cjs/AlertMessage/AlertMessage.d.ts.map +0 -1
  8. package/lib/cjs/AlertMessage/AlertMessage.js +0 -30
  9. package/lib/cjs/AlertMessage/index.d.ts +0 -2
  10. package/lib/cjs/AlertMessage/index.d.ts.map +0 -1
  11. package/lib/cjs/AlertMessage/index.js +0 -18
  12. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts +0 -7
  13. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts.map +0 -1
  14. package/lib/cjs/ConfirmationModal/ConfirmationContext.js +0 -57
  15. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts +0 -30
  16. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts.map +0 -1
  17. package/lib/cjs/ConfirmationModal/ConfirmationDialog.js +0 -28
  18. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -1
  19. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts.map +0 -1
  20. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.js +0 -36
  21. package/lib/cjs/ConfirmationModal/index.d.ts +0 -3
  22. package/lib/cjs/ConfirmationModal/index.d.ts.map +0 -1
  23. package/lib/cjs/ConfirmationModal/index.js +0 -18
  24. package/lib/cjs/CoverSpinner/CoverSpinner.css +0 -16
  25. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts +0 -4
  26. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts.map +0 -1
  27. package/lib/cjs/CoverSpinner/CoverSpinner.js +0 -13
  28. package/lib/cjs/CoverSpinner/index.d.ts +0 -2
  29. package/lib/cjs/CoverSpinner/index.d.ts.map +0 -1
  30. package/lib/cjs/CoverSpinner/index.js +0 -17
  31. package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts +0 -15
  32. package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts.map +0 -1
  33. package/lib/cjs/CustomContentLoader/CustomContentLoader.js +0 -62
  34. package/lib/cjs/CustomContentLoader/index.d.ts +0 -2
  35. package/lib/cjs/CustomContentLoader/index.d.ts.map +0 -1
  36. package/lib/cjs/CustomContentLoader/index.js +0 -17
  37. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts +0 -14
  38. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts.map +0 -1
  39. package/lib/cjs/CustomTextInput/CustomTextInput.js +0 -50
  40. package/lib/cjs/CustomTextInput/index.d.ts +0 -2
  41. package/lib/cjs/CustomTextInput/index.d.ts.map +0 -1
  42. package/lib/cjs/CustomTextInput/index.js +0 -17
  43. package/lib/cjs/DropDownList/AsyncDropDownList.d.ts +0 -6
  44. package/lib/cjs/DropDownList/AsyncDropDownList.d.ts.map +0 -1
  45. package/lib/cjs/DropDownList/AsyncDropDownList.js +0 -10
  46. package/lib/cjs/DropDownList/DropDownList.d.ts +0 -9
  47. package/lib/cjs/DropDownList/DropDownList.d.ts.map +0 -1
  48. package/lib/cjs/DropDownList/DropDownList.js +0 -145
  49. package/lib/cjs/DropDownList/DropdownWrapper.d.ts +0 -16
  50. package/lib/cjs/DropDownList/DropdownWrapper.d.ts.map +0 -1
  51. package/lib/cjs/DropDownList/DropdownWrapper.js +0 -25
  52. package/lib/cjs/DropDownList/MultiSelectDropdownList.d.ts +0 -4
  53. package/lib/cjs/DropDownList/MultiSelectDropdownList.d.ts.map +0 -1
  54. package/lib/cjs/DropDownList/MultiSelectDropdownList.js +0 -7
  55. package/lib/cjs/DropDownList/Readme.md +0 -114
  56. package/lib/cjs/DropDownList/SearchableList.d.ts +0 -14
  57. package/lib/cjs/DropDownList/SearchableList.d.ts.map +0 -1
  58. package/lib/cjs/DropDownList/SearchableList.js +0 -104
  59. package/lib/cjs/DropDownList/SelectList.d.ts +0 -11
  60. package/lib/cjs/DropDownList/SelectList.d.ts.map +0 -1
  61. package/lib/cjs/DropDownList/SelectList.js +0 -41
  62. package/lib/cjs/DropDownList/async.d.ts +0 -9
  63. package/lib/cjs/DropDownList/async.d.ts.map +0 -1
  64. package/lib/cjs/DropDownList/async.js +0 -142
  65. package/lib/cjs/DropDownList/dropdownList.css +0 -59
  66. package/lib/cjs/DropDownList/dropdownUtils.d.ts +0 -5
  67. package/lib/cjs/DropDownList/dropdownUtils.d.ts.map +0 -1
  68. package/lib/cjs/DropDownList/dropdownUtils.js +0 -29
  69. package/lib/cjs/DropDownList/index.d.ts +0 -4
  70. package/lib/cjs/DropDownList/index.d.ts.map +0 -1
  71. package/lib/cjs/DropDownList/index.js +0 -19
  72. package/lib/cjs/DropDownList/types.d.ts +0 -54
  73. package/lib/cjs/DropDownList/types.d.ts.map +0 -1
  74. package/lib/cjs/DropDownList/types.js +0 -2
  75. package/lib/cjs/DropDownList/withMulti.d.ts +0 -5
  76. package/lib/cjs/DropDownList/withMulti.d.ts.map +0 -1
  77. package/lib/cjs/DropDownList/withMulti.js +0 -73
  78. package/lib/cjs/ErrorBoundary/ErrorBoundary.d.ts +0 -37
  79. package/lib/cjs/ErrorBoundary/ErrorBoundary.d.ts.map +0 -1
  80. package/lib/cjs/ErrorBoundary/ErrorBoundary.js +0 -66
  81. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -15
  82. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +0 -1
  83. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.js +0 -39
  84. package/lib/cjs/ErrorBoundary/index.d.ts +0 -2
  85. package/lib/cjs/ErrorBoundary/index.d.ts.map +0 -1
  86. package/lib/cjs/ErrorBoundary/index.js +0 -17
  87. package/lib/cjs/ErrorPages/Generic403.d.ts +0 -3
  88. package/lib/cjs/ErrorPages/Generic403.d.ts.map +0 -1
  89. package/lib/cjs/ErrorPages/Generic403.js +0 -14
  90. package/lib/cjs/ErrorPages/index.d.ts +0 -2
  91. package/lib/cjs/ErrorPages/index.d.ts.map +0 -1
  92. package/lib/cjs/ErrorPages/index.js +0 -17
  93. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts +0 -12
  94. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts.map +0 -1
  95. package/lib/cjs/FeedbackForm/FeedbackForm.js +0 -144
  96. package/lib/cjs/FeedbackForm/index.d.ts +0 -2
  97. package/lib/cjs/FeedbackForm/index.d.ts.map +0 -1
  98. package/lib/cjs/FeedbackForm/index.js +0 -17
  99. package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts +0 -30
  100. package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts.map +0 -1
  101. package/lib/cjs/Functional/CaseContactsSelectorExternal.js +0 -227
  102. package/lib/cjs/Functional/index.d.ts +0 -2
  103. package/lib/cjs/Functional/index.d.ts.map +0 -1
  104. package/lib/cjs/Functional/index.js +0 -17
  105. package/lib/cjs/InlineEdit/InlineEdit.d.ts +0 -37
  106. package/lib/cjs/InlineEdit/InlineEdit.d.ts.map +0 -1
  107. package/lib/cjs/InlineEdit/InlineEdit.js +0 -173
  108. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts +0 -41
  109. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts.map +0 -1
  110. package/lib/cjs/InlineEdit/NewInlineEdit.js +0 -182
  111. package/lib/cjs/InlineEdit/index.d.ts +0 -3
  112. package/lib/cjs/InlineEdit/index.d.ts.map +0 -1
  113. package/lib/cjs/InlineEdit/index.js +0 -18
  114. package/lib/cjs/InlineEdit/inlineEdit.css +0 -29
  115. package/lib/cjs/InlineEdit/newInlineEdit.css +0 -44
  116. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts +0 -26
  117. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts.map +0 -1
  118. package/lib/cjs/LanguageSelector/LanguageSelector.js +0 -65
  119. package/lib/cjs/LanguageSelector/index.d.ts +0 -2
  120. package/lib/cjs/LanguageSelector/index.d.ts.map +0 -1
  121. package/lib/cjs/LanguageSelector/index.js +0 -17
  122. package/lib/cjs/LanguageSelector/languageSelector.css +0 -5
  123. package/lib/cjs/LoadingDots/LoadingDots.css +0 -33
  124. package/lib/cjs/LoadingDots/LoadingDots.d.ts +0 -13
  125. package/lib/cjs/LoadingDots/LoadingDots.d.ts.map +0 -1
  126. package/lib/cjs/LoadingDots/LoadingDots.js +0 -25
  127. package/lib/cjs/LoadingDots/index.d.ts +0 -2
  128. package/lib/cjs/LoadingDots/index.d.ts.map +0 -1
  129. package/lib/cjs/LoadingDots/index.js +0 -18
  130. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts +0 -15
  131. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts.map +0 -1
  132. package/lib/cjs/LoadingIndicator/LoadingIndicator.js +0 -25
  133. package/lib/cjs/LoadingIndicator/index.d.ts +0 -2
  134. package/lib/cjs/LoadingIndicator/index.d.ts.map +0 -1
  135. package/lib/cjs/LoadingIndicator/index.js +0 -17
  136. package/lib/cjs/LoadingIndicator/loadingIndicator.css +0 -79
  137. package/lib/cjs/LoginModal/LoginModal.d.ts +0 -15
  138. package/lib/cjs/LoginModal/LoginModal.d.ts.map +0 -1
  139. package/lib/cjs/LoginModal/LoginModal.js +0 -21
  140. package/lib/cjs/LoginModal/index.d.ts +0 -2
  141. package/lib/cjs/LoginModal/index.d.ts.map +0 -1
  142. package/lib/cjs/LoginModal/index.js +0 -17
  143. package/lib/cjs/MarkdownEditor/MarkdownEditor.d.ts +0 -45
  144. package/lib/cjs/MarkdownEditor/MarkdownEditor.d.ts.map +0 -1
  145. package/lib/cjs/MarkdownEditor/MarkdownEditor.js +0 -442
  146. package/lib/cjs/MarkdownEditor/index.d.ts +0 -2
  147. package/lib/cjs/MarkdownEditor/index.d.ts.map +0 -1
  148. package/lib/cjs/MarkdownEditor/index.js +0 -17
  149. package/lib/cjs/MarkdownEditor/markdownEditor.css +0 -113
  150. package/lib/cjs/MoreOrLess/MoreOrLess.d.ts +0 -13
  151. package/lib/cjs/MoreOrLess/MoreOrLess.d.ts.map +0 -1
  152. package/lib/cjs/MoreOrLess/MoreOrLess.js +0 -75
  153. package/lib/cjs/MoreOrLess/index.d.ts +0 -2
  154. package/lib/cjs/MoreOrLess/index.d.ts.map +0 -1
  155. package/lib/cjs/MoreOrLess/index.js +0 -17
  156. package/lib/cjs/PaginatedList/PaginatedList.d.ts +0 -18
  157. package/lib/cjs/PaginatedList/PaginatedList.d.ts.map +0 -1
  158. package/lib/cjs/PaginatedList/PaginatedList.js +0 -67
  159. package/lib/cjs/PaginatedList/index.d.ts +0 -2
  160. package/lib/cjs/PaginatedList/index.d.ts.map +0 -1
  161. package/lib/cjs/PaginatedList/index.js +0 -17
  162. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts +0 -10
  163. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts.map +0 -1
  164. package/lib/cjs/PaginationCompact/PaginationCompact.js +0 -67
  165. package/lib/cjs/PaginationCompact/index.d.ts +0 -2
  166. package/lib/cjs/PaginationCompact/index.d.ts.map +0 -1
  167. package/lib/cjs/PaginationCompact/index.js +0 -17
  168. package/lib/cjs/PaginationCompact/paginationCompact.css +0 -5
  169. package/lib/cjs/PhoneInput/CountryData.d.ts +0 -3
  170. package/lib/cjs/PhoneInput/CountryData.d.ts.map +0 -1
  171. package/lib/cjs/PhoneInput/CountryData.js +0 -583
  172. package/lib/cjs/PhoneInput/PhoneInput.d.ts +0 -20
  173. package/lib/cjs/PhoneInput/PhoneInput.d.ts.map +0 -1
  174. package/lib/cjs/PhoneInput/PhoneInput.js +0 -293
  175. package/lib/cjs/PhoneInput/PhoneInput.scss +0 -753
  176. package/lib/cjs/PhoneInput/flags.png +0 -0
  177. package/lib/cjs/PhoneInput/index.d.ts +0 -2
  178. package/lib/cjs/PhoneInput/index.d.ts.map +0 -1
  179. package/lib/cjs/PhoneInput/index.js +0 -17
  180. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -9
  181. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +0 -1
  182. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.js +0 -68
  183. package/lib/cjs/ProgressBar/CircularProgressBar/Path.d.ts +0 -12
  184. package/lib/cjs/ProgressBar/CircularProgressBar/Path.d.ts.map +0 -1
  185. package/lib/cjs/ProgressBar/CircularProgressBar/Path.js +0 -39
  186. package/lib/cjs/ProgressBar/CircularProgressBar/constants.d.ts +0 -6
  187. package/lib/cjs/ProgressBar/CircularProgressBar/constants.d.ts.map +0 -1
  188. package/lib/cjs/ProgressBar/CircularProgressBar/constants.js +0 -8
  189. package/lib/cjs/ProgressBar/CircularProgressBar/index.d.ts +0 -2
  190. package/lib/cjs/ProgressBar/CircularProgressBar/index.d.ts.map +0 -1
  191. package/lib/cjs/ProgressBar/CircularProgressBar/index.js +0 -17
  192. package/lib/cjs/ProgressBar/CircularProgressBar/styles.css +0 -60
  193. package/lib/cjs/ProgressBar/CircularProgressBar/types.d.ts +0 -32
  194. package/lib/cjs/ProgressBar/CircularProgressBar/types.d.ts.map +0 -1
  195. package/lib/cjs/ProgressBar/CircularProgressBar/types.js +0 -2
  196. package/lib/cjs/ProgressBar/ProgressBar.d.ts +0 -15
  197. package/lib/cjs/ProgressBar/ProgressBar.d.ts.map +0 -1
  198. package/lib/cjs/ProgressBar/ProgressBar.js +0 -36
  199. package/lib/cjs/ProgressBar/index.d.ts +0 -3
  200. package/lib/cjs/ProgressBar/index.d.ts.map +0 -1
  201. package/lib/cjs/ProgressBar/index.js +0 -18
  202. package/lib/cjs/PromisifyModal/PromisifyModal.d.ts +0 -15
  203. package/lib/cjs/PromisifyModal/PromisifyModal.d.ts.map +0 -1
  204. package/lib/cjs/PromisifyModal/PromisifyModal.js +0 -43
  205. package/lib/cjs/PromisifyModal/index.d.ts +0 -2
  206. package/lib/cjs/PromisifyModal/index.d.ts.map +0 -1
  207. package/lib/cjs/PromisifyModal/index.js +0 -17
  208. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -8
  209. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +0 -1
  210. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.js +0 -20
  211. package/lib/cjs/SubscriptionAbuse/const.d.ts +0 -5
  212. package/lib/cjs/SubscriptionAbuse/const.d.ts.map +0 -1
  213. package/lib/cjs/SubscriptionAbuse/const.js +0 -15
  214. package/lib/cjs/SubscriptionAbuse/index.d.ts +0 -3
  215. package/lib/cjs/SubscriptionAbuse/index.d.ts.map +0 -1
  216. package/lib/cjs/SubscriptionAbuse/index.js +0 -18
  217. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -12
  218. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +0 -1
  219. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.js +0 -48
  220. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -11
  221. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +0 -1
  222. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.js +0 -182
  223. package/lib/cjs/SupportFeedbackForm/index.d.ts +0 -3
  224. package/lib/cjs/SupportFeedbackForm/index.d.ts.map +0 -1
  225. package/lib/cjs/SupportFeedbackForm/index.js +0 -18
  226. package/lib/cjs/Table/PFTable.d.ts +0 -40
  227. package/lib/cjs/Table/PFTable.d.ts.map +0 -1
  228. package/lib/cjs/Table/PFTable.js +0 -208
  229. package/lib/cjs/Table/README.md +0 -65
  230. package/lib/cjs/Table/TableColumnSelector.d.ts +0 -8
  231. package/lib/cjs/Table/TableColumnSelector.d.ts.map +0 -1
  232. package/lib/cjs/Table/TableColumnSelector.js +0 -34
  233. package/lib/cjs/Table/TableComponent.d.ts +0 -11
  234. package/lib/cjs/Table/TableComponent.d.ts.map +0 -1
  235. package/lib/cjs/Table/TableComponent.js +0 -42
  236. package/lib/cjs/Table/TablePagination.d.ts +0 -19
  237. package/lib/cjs/Table/TablePagination.d.ts.map +0 -1
  238. package/lib/cjs/Table/TablePagination.js +0 -50
  239. package/lib/cjs/Table/TableProvider.d.ts +0 -15
  240. package/lib/cjs/Table/TableProvider.d.ts.map +0 -1
  241. package/lib/cjs/Table/TableProvider.js +0 -25
  242. package/lib/cjs/Table/columnSelector.css +0 -41
  243. package/lib/cjs/Table/index.d.ts +0 -5
  244. package/lib/cjs/Table/index.d.ts.map +0 -1
  245. package/lib/cjs/Table/index.js +0 -20
  246. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts +0 -15
  247. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts.map +0 -1
  248. package/lib/cjs/TermsAndConditions/AcceptTermsModal.js +0 -121
  249. package/lib/cjs/TermsAndConditions/index.d.ts +0 -2
  250. package/lib/cjs/TermsAndConditions/index.d.ts.map +0 -1
  251. package/lib/cjs/TermsAndConditions/index.js +0 -17
  252. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.d.ts +0 -8
  253. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.d.ts.map +0 -1
  254. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.js +0 -140
  255. package/lib/cjs/TextAreaAutosize/index.d.ts +0 -2
  256. package/lib/cjs/TextAreaAutosize/index.d.ts.map +0 -1
  257. package/lib/cjs/TextAreaAutosize/index.js +0 -17
  258. package/lib/cjs/TextAreaResizable/TextAreaResizable.d.ts +0 -20
  259. package/lib/cjs/TextAreaResizable/TextAreaResizable.d.ts.map +0 -1
  260. package/lib/cjs/TextAreaResizable/TextAreaResizable.js +0 -60
  261. package/lib/cjs/TextAreaResizable/index.d.ts +0 -2
  262. package/lib/cjs/TextAreaResizable/index.d.ts.map +0 -1
  263. package/lib/cjs/TextAreaResizable/index.js +0 -17
  264. package/lib/cjs/ToastNotification/ToastNotification.d.ts +0 -28
  265. package/lib/cjs/ToastNotification/ToastNotification.d.ts.map +0 -1
  266. package/lib/cjs/ToastNotification/ToastNotification.js +0 -71
  267. package/lib/cjs/ToastNotification/index.d.ts +0 -2
  268. package/lib/cjs/ToastNotification/index.d.ts.map +0 -1
  269. package/lib/cjs/ToastNotification/index.js +0 -17
  270. package/lib/cjs/ToastNotification/toastNotification.css +0 -22
  271. package/lib/cjs/TopContentSearch/TopContentSearch.d.ts +0 -14
  272. package/lib/cjs/TopContentSearch/TopContentSearch.d.ts.map +0 -1
  273. package/lib/cjs/TopContentSearch/TopContentSearch.js +0 -143
  274. package/lib/cjs/TopContentSearch/index.d.ts +0 -2
  275. package/lib/cjs/TopContentSearch/index.d.ts.map +0 -1
  276. package/lib/cjs/TopContentSearch/index.js +0 -17
  277. package/lib/cjs/TopContentSearch/topContentSearch.scss +0 -22
  278. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.d.ts +0 -14
  279. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.d.ts.map +0 -1
  280. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.js +0 -80
  281. package/lib/cjs/ValueChangedIcon/index.d.ts +0 -2
  282. package/lib/cjs/ValueChangedIcon/index.d.ts.map +0 -1
  283. package/lib/cjs/ValueChangedIcon/index.js +0 -17
  284. package/lib/cjs/helperFunctions/errorMessage.d.ts +0 -13
  285. package/lib/cjs/helperFunctions/errorMessage.d.ts.map +0 -1
  286. package/lib/cjs/helperFunctions/errorMessage.js +0 -95
  287. package/lib/cjs/helperFunctions/errorMessage.scss +0 -3
  288. package/lib/cjs/helperFunctions/index.d.ts +0 -2
  289. package/lib/cjs/helperFunctions/index.d.ts.map +0 -1
  290. package/lib/cjs/helperFunctions/index.js +0 -17
  291. package/lib/cjs/hooks/index.d.ts +0 -15
  292. package/lib/cjs/hooks/index.d.ts.map +0 -1
  293. package/lib/cjs/hooks/index.js +0 -30
  294. package/lib/cjs/hooks/useBreakpoint.d.ts +0 -12
  295. package/lib/cjs/hooks/useBreakpoint.d.ts.map +0 -1
  296. package/lib/cjs/hooks/useBreakpoint.js +0 -91
  297. package/lib/cjs/hooks/useCopyToClipboard.d.ts +0 -6
  298. package/lib/cjs/hooks/useCopyToClipboard.d.ts.map +0 -1
  299. package/lib/cjs/hooks/useCopyToClipboard.js +0 -40
  300. package/lib/cjs/hooks/useDebounce.d.ts +0 -9
  301. package/lib/cjs/hooks/useDebounce.d.ts.map +0 -1
  302. package/lib/cjs/hooks/useDebounce.js +0 -40
  303. package/lib/cjs/hooks/useFetch.d.ts +0 -20
  304. package/lib/cjs/hooks/useFetch.d.ts.map +0 -1
  305. package/lib/cjs/hooks/useFetch.js +0 -70
  306. package/lib/cjs/hooks/useForceUpdate.d.ts +0 -18
  307. package/lib/cjs/hooks/useForceUpdate.d.ts.map +0 -1
  308. package/lib/cjs/hooks/useForceUpdate.js +0 -28
  309. package/lib/cjs/hooks/useForkRef.d.ts +0 -2
  310. package/lib/cjs/hooks/useForkRef.d.ts.map +0 -1
  311. package/lib/cjs/hooks/useForkRef.js +0 -29
  312. package/lib/cjs/hooks/useIsMounted.d.ts +0 -3
  313. package/lib/cjs/hooks/useIsMounted.d.ts.map +0 -1
  314. package/lib/cjs/hooks/useIsMounted.js +0 -18
  315. package/lib/cjs/hooks/useLRUCache.d.ts +0 -8
  316. package/lib/cjs/hooks/useLRUCache.d.ts.map +0 -1
  317. package/lib/cjs/hooks/useLRUCache.js +0 -28
  318. package/lib/cjs/hooks/useLocalStorage.d.ts +0 -5
  319. package/lib/cjs/hooks/useLocalStorage.d.ts.map +0 -1
  320. package/lib/cjs/hooks/useLocalStorage.js +0 -39
  321. package/lib/cjs/hooks/useOnScreen.d.ts +0 -2
  322. package/lib/cjs/hooks/useOnScreen.d.ts.map +0 -1
  323. package/lib/cjs/hooks/useOnScreen.js +0 -18
  324. package/lib/cjs/hooks/usePolling.d.ts +0 -2
  325. package/lib/cjs/hooks/usePolling.d.ts.map +0 -1
  326. package/lib/cjs/hooks/usePolling.js +0 -19
  327. package/lib/cjs/hooks/usePrevious.d.ts +0 -2
  328. package/lib/cjs/hooks/usePrevious.d.ts.map +0 -1
  329. package/lib/cjs/hooks/usePrevious.js +0 -12
  330. package/lib/cjs/hooks/useSelectKeyboardNavigator.d.ts +0 -13
  331. package/lib/cjs/hooks/useSelectKeyboardNavigator.d.ts.map +0 -1
  332. package/lib/cjs/hooks/useSelectKeyboardNavigator.js +0 -58
  333. package/lib/cjs/hooks/useTitle.d.ts +0 -2
  334. package/lib/cjs/hooks/useTitle.d.ts.map +0 -1
  335. package/lib/cjs/hooks/useTitle.js +0 -14
  336. package/lib/cjs/hooks/useUndo.d.ts +0 -22
  337. package/lib/cjs/hooks/useUndo.d.ts.map +0 -1
  338. package/lib/cjs/hooks/useUndo.js +0 -76
  339. package/lib/cjs/index.d.ts +0 -34
  340. package/lib/cjs/index.d.ts.map +0 -1
  341. package/lib/cjs/index.js +0 -49
  342. package/lib/esm/Table/TableColumnSelector.d.ts +0 -8
  343. package/lib/esm/Table/TableColumnSelector.d.ts.map +0 -1
  344. package/lib/esm/Table/TableColumnSelector.js +0 -27
  345. package/lib/esm/Table/columnSelector.css +0 -41
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Generic403 = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const react_i18next_1 = require("react-i18next");
9
- function Generic403() {
10
- return (react_1.default.createElement("div", { className: "container" },
11
- react_1.default.createElement("h2", null,
12
- react_1.default.createElement(react_i18next_1.Trans, null, "You don't have access to view this page."))));
13
- }
14
- exports.Generic403 = Generic403;
@@ -1,2 +0,0 @@
1
- export * from './Generic403';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ErrorPages/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./Generic403"), exports);
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- buttonLabel: string;
4
- additionalBtnClass: string;
5
- isInline: boolean;
6
- }
7
- declare function FeedbackForm(props: IProps): React.JSX.Element;
8
- declare namespace FeedbackForm {
9
- var defaultProps: IProps;
10
- }
11
- export { FeedbackForm };
12
- //# sourceMappingURL=FeedbackForm.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FeedbackForm.d.ts","sourceRoot":"","sources":["../../../src/FeedbackForm/FeedbackForm.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAanD,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,qBA2OlC;kBA3OQ,YAAY;;;AA8OrB,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1,144 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.FeedbackForm = void 0;
30
- const hydrajs_1 = require("@cee-eng/hydrajs");
31
- const react_core_1 = require("@patternfly/react-core");
32
- const utils_1 = require("@rh-support/utils");
33
- const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
34
- const react_1 = __importStar(require("react"));
35
- const react_i18next_1 = require("react-i18next");
36
- const react_router_dom_1 = require("react-router-dom");
37
- const TextAreaAutosize_1 = require("../TextAreaAutosize");
38
- const required = {
39
- isSolutionFound: true,
40
- levelOfSatisfied: true,
41
- isTimeSaved: true,
42
- moreInfo: false,
43
- };
44
- const defaultProps = { buttonLabel: 'Provide feedback', additionalBtnClass: '', isInline: false };
45
- function FeedbackForm(props) {
46
- var _a, _b;
47
- const { t } = (0, react_i18next_1.useTranslation)();
48
- const [isModalOpen, toggleModal] = (0, react_1.useState)(false);
49
- const seSessionId = (_b = (_a = (0, utils_1.getUrlParsedParams)((0, react_router_dom_1.useLocation)().search)) === null || _a === void 0 ? void 0 : _a.seSessionId) !== null && _b !== void 0 ? _b : '';
50
- const formInitState = {
51
- isSolutionFound: null,
52
- levelOfSatisfied: null,
53
- isTimeSaved: null,
54
- moreInfo: '',
55
- };
56
- const [values, setValues] = (0, react_1.useState)(formInitState);
57
- const [isSubmitDisabled, setSubmitDisabled] = (0, react_1.useState)(true);
58
- (0, react_1.useEffect)(() => {
59
- let valid = true;
60
- Object.keys(values).forEach((key) => {
61
- if (required[key]) {
62
- valid = valid && !(0, isEmpty_1.default)(values[key]);
63
- }
64
- });
65
- setSubmitDisabled(!valid);
66
- }, [values]);
67
- const handleChange = (event) => {
68
- setValues(Object.assign(Object.assign({}, values), { [event.currentTarget.name]: event.currentTarget.value }));
69
- };
70
- const handleSubmit = (event) => {
71
- event.preventDefault();
72
- hydrajs_1.pcm.sendFeedbackForm(values, window.sessionjs, window.location.href, seSessionId !== null && seSessionId !== void 0 ? seSessionId : '');
73
- setValues(formInitState);
74
- toggleModal(!isModalOpen);
75
- };
76
- const handleModalToggle = () => {
77
- toggleModal(!isModalOpen);
78
- };
79
- return (react_1.default.createElement(react_1.default.Fragment, null,
80
- 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 },
81
- react_1.default.createElement(react_i18next_1.Trans, null, props.isInline ? props.buttonLabel.toLowerCase() : props.buttonLabel)),
82
- 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: [
83
- react_1.default.createElement("button", { key: "confirm", onClick: handleSubmit, disabled: isSubmitDisabled, className: "btn btn-app btn-primary", "data-tracking-id": "se-feedback-submit" },
84
- react_1.default.createElement(react_i18next_1.Trans, null, "Submit")),
85
- react_1.default.createElement("button", { key: "cancel", onClick: handleModalToggle, className: "btn btn-app btn-link", "data-tracking-id": "se-feedback-cancel" },
86
- react_1.default.createElement(react_i18next_1.Trans, null, "Cancel")),
87
- ] },
88
- react_1.default.createElement("form", { action: "", onSubmit: handleSubmit },
89
- react_1.default.createElement("fieldset", { className: "form-group radios", role: "radiogroup", "data-role": "controlgroup " },
90
- react_1.default.createElement("legend", null,
91
- react_1.default.createElement(react_i18next_1.Trans, null, "Did you find a solution to your issue?"),
92
- react_1.default.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*")),
93
- react_1.default.createElement("label", { className: "radio-inline", htmlFor: "yes" },
94
- react_1.default.createElement("input", { type: "radio", name: "isSolutionFound", id: "yes", value: "Yes", checked: values.isSolutionFound === 'Yes', required: true, onChange: handleChange }),
95
- ' ',
96
- react_1.default.createElement(react_i18next_1.Trans, null, "Yes")),
97
- react_1.default.createElement("label", { className: "radio-inline", htmlFor: "no" },
98
- react_1.default.createElement("input", { type: "radio", name: "isSolutionFound", id: "no", value: "No", checked: values.isSolutionFound === 'No', required: true, onChange: handleChange }),
99
- ' ',
100
- react_1.default.createElement(react_i18next_1.Trans, null, "No"))),
101
- react_1.default.createElement("fieldset", { className: "form-group radios", role: "radiogroup", "aria-labelledby": "", "data-role": "controlgroup" },
102
- react_1.default.createElement("legend", { id: "group_label_1" },
103
- react_1.default.createElement(react_i18next_1.Trans, null, "How satisfied are you with the tool?"),
104
- react_1.default.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*")),
105
- react_1.default.createElement("label", { className: "radio-inline", htmlFor: "very_satisfied" },
106
- react_1.default.createElement("input", { type: "radio", id: "very_satisfied", name: "levelOfSatisfied", value: "Very Satisfied", checked: values.levelOfSatisfied === 'Very Satisfied', required: true, onChange: handleChange }),
107
- ' ',
108
- react_1.default.createElement(react_i18next_1.Trans, null, "Very Satisfied")),
109
- react_1.default.createElement("label", { className: "radio-inline", htmlFor: "satisfied" },
110
- react_1.default.createElement("input", { type: "radio", id: "satisfied", name: "levelOfSatisfied", value: "Satisfied", checked: values.levelOfSatisfied === 'Satisfied', required: true, onChange: handleChange }),
111
- ' ',
112
- react_1.default.createElement(react_i18next_1.Trans, null, "Satisfied")),
113
- react_1.default.createElement("label", { className: "radio-inline", htmlFor: "neutral" },
114
- react_1.default.createElement("input", { type: "radio", name: "levelOfSatisfied", id: "neutral", value: "Neutral", checked: values.levelOfSatisfied === 'Neutral', required: true, onChange: handleChange }),
115
- ' ',
116
- react_1.default.createElement(react_i18next_1.Trans, null, "Neutral")),
117
- react_1.default.createElement("label", { className: "radio-inline", htmlFor: "unsatisfied" },
118
- react_1.default.createElement("input", { type: "radio", name: "levelOfSatisfied", id: "unsatisfied", value: "Unsatisfied", checked: values.levelOfSatisfied === 'Unsatisfied', required: true, onChange: handleChange }),
119
- ' ',
120
- react_1.default.createElement(react_i18next_1.Trans, null, "Unsatisfied")),
121
- react_1.default.createElement("label", { className: "radio-inline", htmlFor: "very_unsatisfied" },
122
- react_1.default.createElement("input", { type: "radio", name: "levelOfSatisfied", id: "very_unsatisfied", value: "Very Unsatisfied", checked: values.levelOfSatisfied === 'Very Unsatisfied', required: true, onChange: handleChange }),
123
- ' ',
124
- react_1.default.createElement(react_i18next_1.Trans, null, "Very Unsatisfied"))),
125
- react_1.default.createElement("fieldset", { className: "form-group radios", role: "radiogroup" },
126
- react_1.default.createElement("legend", null,
127
- react_1.default.createElement(react_i18next_1.Trans, null, "Did the Solution Engine save you time?"),
128
- react_1.default.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*"),
129
- ' '),
130
- react_1.default.createElement("label", { className: "radio-inline", htmlFor: "yes_saved" },
131
- react_1.default.createElement("input", { type: "radio", name: "isTimeSaved", id: "yes_saved", value: "Yes", checked: values.isTimeSaved === 'Yes', required: true, onChange: handleChange }),
132
- ' ',
133
- react_1.default.createElement(react_i18next_1.Trans, null, "Yes")),
134
- react_1.default.createElement("label", { className: "radio-inline", htmlFor: "no_saved" },
135
- react_1.default.createElement("input", { type: "radio", name: "isTimeSaved", id: "no_saved", value: "No", checked: values.isTimeSaved === 'No', required: true, onChange: handleChange }),
136
- ' ',
137
- react_1.default.createElement(react_i18next_1.Trans, null, "No"))),
138
- react_1.default.createElement("div", { className: "form-group" },
139
- react_1.default.createElement("label", { htmlFor: "moreFeedback" },
140
- react_1.default.createElement(react_i18next_1.Trans, null, "Please share your feedback with us.")),
141
- react_1.default.createElement(TextAreaAutosize_1.TextAreaAutosize, { name: "moreInfo", id: "moreFeedback", value: values.moreInfo, className: "form-control", onChange: handleChange, rows: 3 }))))));
142
- }
143
- exports.FeedbackForm = FeedbackForm;
144
- FeedbackForm.defaultProps = defaultProps;
@@ -1,2 +0,0 @@
1
- export * from './FeedbackForm';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/FeedbackForm/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./FeedbackForm"), exports);
@@ -1,30 +0,0 @@
1
- import { IAccountNotificationAddresses } from '@cee-eng/hydrajs/@types/api/customEmail';
2
- import { ICaseNotificationAddresses } from '@cee-eng/hydrajs/@types/models/case';
3
- import { IContact } from '@cee-eng/hydrajs/@types/models/contact';
4
- import { IDClassNameProps } from '@rh-support/types/shared';
5
- import { UserAuth } from '@rh-support/user-permissions';
6
- import React from 'react';
7
- import { TypeaheadModel, TypeaheadProps } from 'react-bootstrap-typeahead';
8
- export type INotificationContact = IContact | ICaseNotificationAddresses;
9
- interface IProps<T extends TypeaheadModel> extends IDClassNameProps, Omit<TypeaheadProps<T>, 'id' | 'selected' | 'onChange' | 'className' | 'multiple' | 'options' | 'newSelectionPrefix'> {
10
- selectedAccountNumber: string;
11
- selected: (IContact | ICaseNotificationAddresses)[];
12
- onChange: (selectedContacts: (IContact | ICaseNotificationAddresses)[]) => void;
13
- loggedInUserRights: UserAuth;
14
- contactsToExclude?: IContact[];
15
- name?: string;
16
- clearButton?: boolean;
17
- multiple?: boolean;
18
- placeholder?: string;
19
- minLength?: number;
20
- isUpdating?: boolean;
21
- renderToken?: (option: any, props: any, idx: any) => string | React.ReactNode;
22
- isExportingPDF?: boolean;
23
- newSelectionPrefix?: React.ReactNode;
24
- customEmails?: IAccountNotificationAddresses[];
25
- }
26
- declare const renderMenuItemChildren: (option: INotificationContact, p: any) => React.JSX.Element;
27
- declare const getHydraContactLabel: (user: INotificationContact) => string;
28
- declare function CaseContactsSelectorExternal<T extends TypeaheadModel>(props: IProps<T>): React.JSX.Element;
29
- export { CaseContactsSelectorExternal, renderMenuItemChildren, getHydraContactLabel };
30
- //# sourceMappingURL=CaseContactsSelectorExternal.d.ts.map
@@ -1 +0,0 @@
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,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,0BAA0B,CAAC;AACzE,UAAU,MAAM,CAAC,CAAC,SAAS,cAAc,CACrC,SAAQ,gBAAgB,EACpB,IAAI,CACA,cAAc,CAAC,CAAC,CAAC,EACjB,IAAI,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,oBAAoB,CAC/F;IACL,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,EAAE,CAAC,QAAQ,GAAG,0BAA0B,CAAC,EAAE,CAAC;IACpD,QAAQ,EAAE,CAAC,gBAAgB,EAAE,CAAC,QAAQ,GAAG,0BAA0B,CAAC,EAAE,KAAK,IAAI,CAAC;IAChF,kBAAkB,EAAE,QAAQ,CAAC;IAC7B,iBAAiB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,MAAM,KAAA,EAAE,KAAK,KAAA,EAAE,GAAG,KAAA,KAAK,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAC/D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,YAAY,CAAC,EAAE,6BAA6B,EAAE,CAAC;CAClD;AAED,QAAA,MAAM,sBAAsB,WAAY,oBAAoB,8BAI3D,CAAC;AAcF,QAAA,MAAM,oBAAoB,SAAU,oBAAoB,KAAG,MAa1D,CAAC;AAEF,iBAAS,4BAA4B,CAAC,CAAC,SAAS,cAAc,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,qBAoN/E;AAED,OAAO,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,227 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- var __rest = (this && this.__rest) || function (s, e) {
35
- var t = {};
36
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
37
- t[p] = s[p];
38
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
39
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
40
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
41
- t[p[i]] = s[p[i]];
42
- }
43
- return t;
44
- };
45
- var __importDefault = (this && this.__importDefault) || function (mod) {
46
- return (mod && mod.__esModule) ? mod : { "default": mod };
47
- };
48
- Object.defineProperty(exports, "__esModule", { value: true });
49
- exports.getHydraContactLabel = exports.renderMenuItemChildren = exports.CaseContactsSelectorExternal = void 0;
50
- const hydrajs_1 = require("@cee-eng/hydrajs");
51
- const utils_1 = require("@rh-support/utils");
52
- const differenceBy_1 = __importDefault(require("lodash/differenceBy"));
53
- const isArray_1 = __importDefault(require("lodash/isArray"));
54
- const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
55
- const sortBy_1 = __importDefault(require("lodash/sortBy"));
56
- const react_1 = __importStar(require("react"));
57
- const react_bootstrap_typeahead_1 = require("react-bootstrap-typeahead");
58
- const react_i18next_1 = require("react-i18next");
59
- const usePrevious_1 = require("../hooks/usePrevious");
60
- const renderMenuItemChildren = (option, p) => (react_1.default.createElement(react_bootstrap_typeahead_1.Highlighter, { key: getKey(option), search: p.text }, getHydraContactLabel(option)));
61
- exports.renderMenuItemChildren = renderMenuItemChildren;
62
- const isCustomEmailAddress = (user) => {
63
- return !!(user === null || user === void 0 ? void 0 : user.emailAddress);
64
- };
65
- const isContact = (user) => {
66
- return !!(user === null || user === void 0 ? void 0 : user.ssoUsername) && !(user === null || user === void 0 ? void 0 : user.emailAddress);
67
- };
68
- const getKey = (option) => {
69
- if (isCustomEmailAddress(option))
70
- return option.emailAddress;
71
- if (isContact(option))
72
- return option.ssoUsername;
73
- };
74
- const getHydraContactLabel = (user) => {
75
- if ((0, isEmpty_1.default)(user) || typeof user !== 'object')
76
- return '';
77
- let label = '';
78
- if (isCustomEmailAddress(user)) {
79
- label = user.emailAddress;
80
- }
81
- else if (isContact(user)) {
82
- const fullname = !(0, isEmpty_1.default)(user.fullNameCustom)
83
- ? `${user.fullNameCustom}`
84
- : `${user.firstName} ${user.lastName}`;
85
- label = `${fullname} (${user.ssoUsername})`;
86
- }
87
- return label ? label : '';
88
- };
89
- exports.getHydraContactLabel = getHydraContactLabel;
90
- function CaseContactsSelectorExternal(props) {
91
- const previousSelectedAccountNumber = (0, usePrevious_1.usePrevious)(props.selectedAccountNumber);
92
- /**
93
- * External owner selector related
94
- */
95
- /** Getting user list for selected account when logged in user is a external */
96
- const [contactList, setContactList] = (0, react_1.useState)((0, utils_1.getApiResourceObject)([]));
97
- const controllerRef1 = (0, react_1.useRef)(new AbortController());
98
- const controllerRef2 = (0, react_1.useRef)(new AbortController());
99
- (0, react_1.useEffect)(() => {
100
- if (props.isExportingPDF)
101
- return;
102
- // when component is unmonted and error happens after apis responses are ready, we use this variable to prevent state update.
103
- let isSubscribed = true;
104
- const fetchStrataAccountUsers = () => __awaiter(this, void 0, void 0, function* () {
105
- if (controllerRef1.current) {
106
- controllerRef1.current.abort();
107
- }
108
- controllerRef1.current = new AbortController();
109
- if (controllerRef2.current) {
110
- controllerRef2.current.abort();
111
- }
112
- controllerRef2.current = new AbortController();
113
- try {
114
- setContactList((0, utils_1.getApiResourceObject)([], true));
115
- let contactListTemp = [];
116
- if (props.loggedInUserRights.isPartner() &&
117
- props.loggedInUserRights.isAccountDifferentFromLoggedInAccount(props.selectedAccountNumber)) {
118
- /** Show Partner contacts even when customer account is selected
119
- - Non Org-Admin partners => Only logged in contact + All Customer contacts
120
- - Org-Admin partners => All partner contacts + All Customer contacts */
121
- if (props.loggedInUserRights.isNonOrgAdmin()) {
122
- const extraLoggedInContacts = props.loggedInUserRights.getHydraContactFromLoggedInUser();
123
- const contacts = yield hydrajs_1.accounts.getAccountContacts(props.selectedAccountNumber, controllerRef1.current.signal);
124
- contactListTemp = contacts.concat(extraLoggedInContacts);
125
- }
126
- else {
127
- let promiseArray = [
128
- hydrajs_1.accounts.getAccountContacts(props.selectedAccountNumber, controllerRef1.current.signal),
129
- hydrajs_1.accounts.getAccountContacts(props.loggedInUserRights.getAccountNumber(), controllerRef2.current.signal),
130
- ];
131
- const loggedInContactsResponse = yield Promise.all(promiseArray);
132
- const selectedAccountsContacts = loggedInContactsResponse[0];
133
- const currentAccountsContacts = loggedInContactsResponse[1];
134
- contactListTemp = [...selectedAccountsContacts, ...currentAccountsContacts];
135
- }
136
- }
137
- else {
138
- contactListTemp = yield hydrajs_1.accounts.getAccountContacts(props.selectedAccountNumber, controllerRef1.current.signal);
139
- }
140
- if (props.contactsToExclude && props.contactsToExclude.length > 0) {
141
- contactListTemp = (0, differenceBy_1.default)(contactListTemp, props.contactsToExclude, 'ssoUsername');
142
- }
143
- setContactList((0, utils_1.getApiResourceObject)((0, utils_1.sortHydraContacts)(contactListTemp)));
144
- }
145
- catch (e) {
146
- isSubscribed && setContactList((0, utils_1.getApiResourceObject)([], false, true, e.message));
147
- }
148
- });
149
- const isOldAccountNumber = props.selectedAccountNumber && props.selectedAccountNumber === previousSelectedAccountNumber;
150
- if (isOldAccountNumber ||
151
- (props.loggedInUserRights.isExternal() &&
152
- props.loggedInUserRights.isNonOrgAdminWithSameAccount(props.selectedAccountNumber)))
153
- return;
154
- fetchStrataAccountUsers();
155
- return () => {
156
- isSubscribed = false;
157
- };
158
- }, [
159
- previousSelectedAccountNumber,
160
- props.contactsToExclude,
161
- props.loggedInUserRights,
162
- props.selectedAccountNumber,
163
- props.isExportingPDF,
164
- ]);
165
- const onCustomerContactSelect = (contacts) => {
166
- if (!(0, isArray_1.default)(contacts))
167
- return;
168
- const customerContacts = contacts.length === 0 || !(0, isEmpty_1.default)(contacts[0])
169
- ? contacts
170
- : [
171
- {
172
- firstName: '',
173
- lastName: '',
174
- isOrgAdmin: false,
175
- ssoUsername: '',
176
- fullNameCustom: '',
177
- },
178
- ];
179
- props.onChange && props.onChange(customerContacts);
180
- };
181
- const onCustomerContactSelectBlur = (event) => {
182
- props.onChange && props.onChange(props.selected);
183
- };
184
- const isDisabled = (props.loggedInUserRights.isExternal() &&
185
- props.loggedInUserRights.isNonOrgAdminWithSameAccount(props.selectedAccountNumber)) ||
186
- props.isUpdating ||
187
- contactList.isFetching;
188
- const renderMenu = (results, menuProps, state) => {
189
- const contacts = results.map((item, index) => {
190
- if (item.customOption) {
191
- return (react_1.default.createElement(react_bootstrap_typeahead_1.MenuItem, { className: "rbt-menu-custom-option", key: index, option: item, position: index },
192
- menuProps.newSelectionPrefix,
193
- react_1.default.createElement(react_bootstrap_typeahead_1.Highlighter, { search: state.text }, item['ssoUsername'])));
194
- }
195
- if (item.paginationOption) {
196
- return (react_1.default.createElement(react_1.default.Fragment, { key: "pagination-item" },
197
- react_1.default.createElement(react_bootstrap_typeahead_1.Menu.Divider, null),
198
- react_1.default.createElement(react_bootstrap_typeahead_1.MenuItem, { key: index, position: index, option: item, className: "rbt-menu-pagination-option", label: "Display additional results..." }, "Display additional results...")));
199
- }
200
- else {
201
- return (react_1.default.createElement(react_1.default.Fragment, { key: index },
202
- index === 0 && isContact(item) && (react_1.default.createElement(react_1.default.Fragment, null,
203
- react_1.default.createElement(react_bootstrap_typeahead_1.Menu.Header, null,
204
- react_1.default.createElement(react_i18next_1.Trans, null, "Contacts")))),
205
- (index === 0
206
- ? isCustomEmailAddress(item)
207
- : isCustomEmailAddress(item) && isContact(results[index - 1])) && (react_1.default.createElement(react_1.default.Fragment, null,
208
- index !== 0 && react_1.default.createElement(react_bootstrap_typeahead_1.Menu.Divider, null),
209
- react_1.default.createElement(react_bootstrap_typeahead_1.Menu.Header, null,
210
- react_1.default.createElement(react_i18next_1.Trans, null, "Notification emails")))),
211
- react_1.default.createElement(react_bootstrap_typeahead_1.MenuItem, { key: index, option: item, position: index }, renderMenuItemChildren(item, state))));
212
- }
213
- });
214
- return react_1.default.createElement(react_bootstrap_typeahead_1.Menu, Object.assign({}, menuProps), contacts);
215
- };
216
- const { customEmails } = props, restProps = __rest(props, ["customEmails"]);
217
- const conditionalProps = Object.assign(Object.assign({}, (props.renderToken ? { renderToken: props.renderToken } : undefined)), ((customEmails || []).length > 0 ? { renderMenu } : undefined));
218
- const getCustomEmails = () => {
219
- return (0, sortBy_1.default)((customEmails || []).map((item) => (Object.assign(Object.assign({}, item), { ssoUsername: item.emailAddress, firstName: item.emailAddress, lastName: item.emailAddress }))), 'emailAddress');
220
- };
221
- return (
222
- //@ts-ignore
223
- react_1.default.createElement(react_bootstrap_typeahead_1.Typeahead, Object.assign({}, restProps, { id: props.id || '', className: props.className || '', filterBy: ['firstName', 'lastName', 'ssoUsername'], clearButton: !!props.clearButton, multiple: !!props.multiple, isLoading: contactList.isFetching || props.isUpdating, options: [...contactList.data, ...getCustomEmails()], selected: !(0, isEmpty_1.default)(props.selected) ? props.selected : [], onChange: onCustomerContactSelect,
224
- //@ts-ignore
225
- labelKey: props.multiple ? 'ssoUsername' : getHydraContactLabel, placeholder: props.placeholder || 'Search by name or username', renderMenuItemChildren: renderMenuItemChildren, onBlur: onCustomerContactSelectBlur, minLength: props.minLength || 0, disabled: isDisabled }, conditionalProps, { "data-tracking-id": "external-case-contact-selector" })));
226
- }
227
- exports.CaseContactsSelectorExternal = CaseContactsSelectorExternal;
@@ -1,2 +0,0 @@
1
- export * from './CaseContactsSelectorExternal';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Functional/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./CaseContactsSelectorExternal"), exports);
@@ -1,37 +0,0 @@
1
- import './inlineEdit.css';
2
- import React, { HTMLProps } from 'react';
3
- interface IProps {
4
- inputId?: string;
5
- children: JSX.Element | JSX.Element[];
6
- labelProps: HTMLProps<HTMLLabelElement>;
7
- labelContent: JSX.Element | JSX.Element[];
8
- helperContent?: JSX.Element | JSX.Element[];
9
- loadingIndicator: JSX.Element | string;
10
- content?: string | JSX.Element;
11
- allowInlineEdit: boolean;
12
- formClassName?: string;
13
- formId?: string;
14
- dataTrackingId?: string;
15
- usePreformattedTag: boolean;
16
- hideSaveCancel: boolean;
17
- cancelLabel: JSX.Element | string;
18
- saveLabel: JSX.Element | string;
19
- onSave: any;
20
- onCancel: any;
21
- cancelOnToggle?: boolean;
22
- collapseOnBlur?: boolean;
23
- saveOnBlur?: boolean;
24
- saveDisabled?: boolean;
25
- cancelOnBlur?: boolean;
26
- initialIsEditing?: boolean;
27
- hideLabel?: boolean;
28
- isSpaceAllowed?: boolean;
29
- inputValue?: string;
30
- isExportingPDF?: boolean;
31
- }
32
- declare function InlineEdit(props: IProps): React.JSX.Element;
33
- declare namespace InlineEdit {
34
- var defaultProps: Partial<IProps>;
35
- }
36
- export { InlineEdit };
37
- //# sourceMappingURL=InlineEdit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InlineEdit.d.ts","sourceRoot":"","sources":["../../../src/InlineEdit/InlineEdit.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAI1B,OAAO,KAAK,EAAE,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAGnD,UAAU,MAAM;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IACtC,UAAU,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACxC,YAAY,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IAC1C,aAAa,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IAC5C,gBAAgB,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;IAC/B,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAClC,SAAS,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAChC,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE,GAAG,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;IAGzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAsBD,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,qBAwKhC;kBAxKQ,UAAU;;;AA2KnB,OAAO,EAAE,UAAU,EAAE,CAAC"}