@rh-support/manage 2.4.10-beta.6 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/README.md +2 -0
  2. package/lib/esm/Manage.d.ts +2 -3
  3. package/lib/esm/Manage.d.ts.map +1 -1
  4. package/lib/esm/Manage.js +4 -10
  5. package/lib/esm/ManageTabs.d.ts +3 -1
  6. package/lib/esm/ManageTabs.d.ts.map +1 -1
  7. package/lib/esm/ManageTabs.js +54 -51
  8. package/lib/esm/Routes.d.ts +2 -0
  9. package/lib/esm/Routes.d.ts.map +1 -1
  10. package/lib/esm/Routes.js +21 -9
  11. package/lib/esm/components/Configs/ConfigInLineEdit.d.ts +2 -1
  12. package/lib/esm/components/Configs/ConfigInLineEdit.d.ts.map +1 -1
  13. package/lib/esm/components/Configs/ConfigSwitch.d.ts +2 -1
  14. package/lib/esm/components/Configs/ConfigSwitch.d.ts.map +1 -1
  15. package/lib/esm/components/Configs/ConfigSwitch.js +1 -1
  16. package/lib/esm/components/Configs/ConfigsTable.d.ts +2 -1
  17. package/lib/esm/components/Configs/ConfigsTable.d.ts.map +1 -1
  18. package/lib/esm/components/Configs/ConfigsTable.js +4 -3
  19. package/lib/esm/components/Groups/DefualtGroupSwitch/DefaultGroupSwitch.d.ts +2 -1
  20. package/lib/esm/components/Groups/DefualtGroupSwitch/DefaultGroupSwitch.d.ts.map +1 -1
  21. package/lib/esm/components/Groups/DefualtGroupSwitch/DefaultGroupSwitch.js +2 -1
  22. package/lib/esm/components/Groups/GroupSelect/GroupSelect.d.ts +2 -1
  23. package/lib/esm/components/Groups/GroupSelect/GroupSelect.d.ts.map +1 -1
  24. package/lib/esm/components/Groups/GroupSelect/GroupSelect.js +23 -11
  25. package/lib/esm/components/Groups/GroupUserPermissionsSelect/GroupUserPermissionsSelect.d.ts +2 -1
  26. package/lib/esm/components/Groups/GroupUserPermissionsSelect/GroupUserPermissionsSelect.d.ts.map +1 -1
  27. package/lib/esm/components/Groups/GroupUserPermissionsSelect/GroupUserPermissionsSelect.js +1 -1
  28. package/lib/esm/components/Groups/ManageGroupUsers/ManageGroupUsers.d.ts +2 -1
  29. package/lib/esm/components/Groups/ManageGroupUsers/ManageGroupUsers.d.ts.map +1 -1
  30. package/lib/esm/components/Groups/ManageGroupUsers/ManageGroupUsers.js +3 -3
  31. package/lib/esm/components/ManageBookmarkedAccountsTab/AddEditBookmarkModal.d.ts +2 -1
  32. package/lib/esm/components/ManageBookmarkedAccountsTab/AddEditBookmarkModal.d.ts.map +1 -1
  33. package/lib/esm/components/ManageBookmarkedAccountsTab/AddEditBookmarkModal.js +1 -1
  34. package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkAccountSelector.d.ts +2 -1
  35. package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkAccountSelector.d.ts.map +1 -1
  36. package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkAccountSelector.js +15 -7
  37. package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkGroupSelector.d.ts +1 -1
  38. package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkGroupSelector.d.ts.map +1 -1
  39. package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkGroupSelector.js +8 -5
  40. package/lib/esm/components/ManageBookmarkedAccountsTab/ManageGroupedBookmarkedAccountsTab.d.ts +2 -1
  41. package/lib/esm/components/ManageBookmarkedAccountsTab/ManageGroupedBookmarkedAccountsTab.d.ts.map +1 -1
  42. package/lib/esm/components/ManageBookmarkedAccountsTab/ManageGroupedBookmarkedAccountsTab.js +14 -11
  43. package/lib/esm/components/ManageExpiredContents/ExpiredContentCategory.d.ts +9 -0
  44. package/lib/esm/components/ManageExpiredContents/ExpiredContentCategory.d.ts.map +1 -0
  45. package/lib/esm/components/ManageExpiredContents/ExpiredContentCategory.js +31 -0
  46. package/lib/esm/components/ManageExpiredContents/ExpiredContentHeader.d.ts +3 -0
  47. package/lib/esm/components/ManageExpiredContents/ExpiredContentHeader.d.ts.map +1 -0
  48. package/lib/esm/components/ManageExpiredContents/ExpiredContentHeader.js +9 -0
  49. package/lib/esm/components/ManageExpiredContents/ExpiredContentManagement.d.ts +3 -0
  50. package/lib/esm/components/ManageExpiredContents/ExpiredContentManagement.d.ts.map +1 -0
  51. package/lib/esm/components/ManageExpiredContents/ExpiredContentManagement.js +13 -0
  52. package/lib/esm/components/ManageExpiredContents/ExpiredContentManager.d.ts +3 -0
  53. package/lib/esm/components/ManageExpiredContents/ExpiredContentManager.d.ts.map +1 -0
  54. package/lib/esm/components/ManageExpiredContents/ExpiredContentManager.js +68 -0
  55. package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItem.d.ts +9 -0
  56. package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItem.d.ts.map +1 -0
  57. package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItem.js +77 -0
  58. package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItemView.d.ts +14 -0
  59. package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItemView.d.ts.map +1 -0
  60. package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItemView.js +179 -0
  61. package/lib/esm/components/ManageExpiredContents/index.d.ts +2 -0
  62. package/lib/esm/components/ManageExpiredContents/index.d.ts.map +1 -0
  63. package/lib/esm/components/ManageExpiredContents/index.js +1 -0
  64. package/lib/esm/components/ManagePartnerships/NonOrgCustomerInfoModal.d.ts +2 -1
  65. package/lib/esm/components/ManagePartnerships/NonOrgCustomerInfoModal.d.ts.map +1 -1
  66. package/lib/esm/components/ManagePartnerships/PartnershipsList.d.ts +2 -1
  67. package/lib/esm/components/ManagePartnerships/PartnershipsList.d.ts.map +1 -1
  68. package/lib/esm/components/ManagePartnerships/PartnershipsList.js +3 -3
  69. package/lib/esm/components/ManagePartnerships/PartnershipsTermsModal.d.ts +2 -1
  70. package/lib/esm/components/ManagePartnerships/PartnershipsTermsModal.d.ts.map +1 -1
  71. package/lib/esm/components/ManagePartnerships/PartnershipsTermsModal.js +42 -21
  72. package/lib/esm/components/ManagePartnerships/RequestCollaborationModal.d.ts +2 -1
  73. package/lib/esm/components/ManagePartnerships/RequestCollaborationModal.d.ts.map +1 -1
  74. package/lib/esm/components/ManagePartnerships/RequestCollaborationModal.js +15 -13
  75. package/lib/esm/components/ManagePartnerships/Requests.d.ts +2 -1
  76. package/lib/esm/components/ManagePartnerships/Requests.d.ts.map +1 -1
  77. package/lib/esm/components/ManagePartnerships/Requests.js +25 -5
  78. package/lib/esm/components/ManagePartnerships/index.d.ts +2 -1
  79. package/lib/esm/components/ManagePartnerships/index.d.ts.map +1 -1
  80. package/lib/esm/components/ManagePartnerships/index.js +4 -3
  81. package/lib/esm/components/ManagePreferences/ManagePreferences.d.ts +2 -1
  82. package/lib/esm/components/ManagePreferences/ManagePreferences.d.ts.map +1 -1
  83. package/lib/esm/components/ManagePreferences/ManagePreferences.js +1 -2
  84. package/lib/esm/components/ManagePreferences/Preferences.d.ts +2 -1
  85. package/lib/esm/components/ManagePreferences/Preferences.d.ts.map +1 -1
  86. package/lib/esm/components/ManagePreferences/PreferencesBody.d.ts +2 -1
  87. package/lib/esm/components/ManagePreferences/PreferencesBody.d.ts.map +1 -1
  88. package/lib/esm/components/ManagePreferences/PreferencesBody.js +1 -1
  89. package/lib/esm/components/ManagePreferences/PreferencesHeader.d.ts +2 -1
  90. package/lib/esm/components/ManagePreferences/PreferencesHeader.d.ts.map +1 -1
  91. package/lib/esm/components/ManagePreferences/PreferencesHeader.js +1 -1
  92. package/lib/esm/components/ManagePreferences/components/PreferenceSelect.d.ts +1 -1
  93. package/lib/esm/components/ManagePreferences/components/PreferenceSelect.d.ts.map +1 -1
  94. package/lib/esm/components/ManagePreferences/components/PreferenceSelect.js +5 -3
  95. package/lib/esm/components/ManagePreferences/components/PreferenceSwitch.d.ts +2 -1
  96. package/lib/esm/components/ManagePreferences/components/PreferenceSwitch.d.ts.map +1 -1
  97. package/lib/esm/components/ManagePreferences/components/PreferenceSwitch.js +1 -1
  98. package/lib/esm/components/ManagePreferences/sections/PreferencesCaseCreate.d.ts +2 -1
  99. package/lib/esm/components/ManagePreferences/sections/PreferencesCaseCreate.d.ts.map +1 -1
  100. package/lib/esm/components/ManagePreferences/sections/PreferencesCaseCreate.js +13 -2
  101. package/lib/esm/components/ManagePreferences/sections/PreferencesCaseSearch.d.ts +2 -1
  102. package/lib/esm/components/ManagePreferences/sections/PreferencesCaseSearch.d.ts.map +1 -1
  103. package/lib/esm/components/ManagePreferences/sections/PreferencesCaseSearch.js +6 -4
  104. package/lib/esm/components/ManagePreferences/sections/PreferencesCaseView.d.ts +2 -1
  105. package/lib/esm/components/ManagePreferences/sections/PreferencesCaseView.d.ts.map +1 -1
  106. package/lib/esm/components/ManagePreferences/sections/PreferencesCaseView.js +12 -11
  107. package/lib/esm/components/ManageTable/ManageTable.d.ts +1 -1
  108. package/lib/esm/components/ManageTable/ManageTable.d.ts.map +1 -1
  109. package/lib/esm/components/ManageTable/ManageTable.js +7 -8
  110. package/lib/esm/components/ManageTags/TagsManagement.d.ts +3 -0
  111. package/lib/esm/components/ManageTags/TagsManagement.d.ts.map +1 -0
  112. package/lib/esm/components/ManageTags/TagsManagement.js +11 -0
  113. package/lib/esm/components/ManageTags/TagsManager.d.ts +3 -0
  114. package/lib/esm/components/ManageTags/TagsManager.d.ts.map +1 -0
  115. package/lib/esm/components/ManageTags/TagsManager.js +261 -0
  116. package/lib/esm/components/ManageTags/index.d.ts +2 -0
  117. package/lib/esm/components/ManageTags/index.d.ts.map +1 -0
  118. package/lib/esm/components/ManageTags/index.js +1 -0
  119. package/lib/esm/components/NotificationEmails/NotificationEmailsModal.d.ts +2 -1
  120. package/lib/esm/components/NotificationEmails/NotificationEmailsModal.d.ts.map +1 -1
  121. package/lib/esm/components/NotificationEmails/NotificationEmailsModal.js +32 -7
  122. package/lib/esm/components/NotificationEmails/index.d.ts +2 -1
  123. package/lib/esm/components/NotificationEmails/index.d.ts.map +1 -1
  124. package/lib/esm/components/NotificationEmails/index.js +4 -4
  125. package/lib/esm/components/TopContentManagement/CategoryLimit/CategoryLimit.d.ts.map +1 -1
  126. package/lib/esm/components/TopContentManagement/CategoryLimit/CategoryLimit.js +3 -2
  127. package/lib/esm/components/TopContentManagement/CategoryLimit/CategoryLimitGuidelines.js +1 -1
  128. package/lib/esm/components/TopContentManagement/CategoryLimit/QuestionAnswer.js +1 -1
  129. package/lib/esm/components/TopContentManagement/ContentUsage/ContentAccordion.d.ts.map +1 -1
  130. package/lib/esm/components/TopContentManagement/ContentUsage/ContentAccordion.js +2 -2
  131. package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetrics.d.ts.map +1 -1
  132. package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetrics.js +3 -3
  133. package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetricsSelect.d.ts +1 -1
  134. package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetricsSelect.d.ts.map +1 -1
  135. package/lib/esm/components/TopContentManagement/ContentUsage/PerformanceMetricsSelect.js +3 -3
  136. package/lib/esm/components/TopContentManagement/ContentUsage/VersionPerformanceMetrics.d.ts.map +1 -1
  137. package/lib/esm/components/TopContentManagement/ContentUsage/VersionPerformanceMetrics.js +4 -4
  138. package/lib/esm/components/TopContentManagement/NoTopContentFound.d.ts +2 -1
  139. package/lib/esm/components/TopContentManagement/NoTopContentFound.d.ts.map +1 -1
  140. package/lib/esm/components/TopContentManagement/NoTopContentFound.js +14 -15
  141. package/lib/esm/components/TopContentManagement/TopContent.d.ts +2 -1
  142. package/lib/esm/components/TopContentManagement/TopContent.d.ts.map +1 -1
  143. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/AddNewCategoryDropDown.d.ts +2 -1
  144. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/AddNewCategoryDropDown.d.ts.map +1 -1
  145. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/AddNewCategoryDropDown.js +8 -3
  146. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategory.d.ts +1 -1
  147. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategory.d.ts.map +1 -1
  148. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategory.js +3 -2
  149. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategoryNew.d.ts +2 -1
  150. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategoryNew.d.ts.map +1 -1
  151. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentComponent.d.ts.map +1 -1
  152. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentComponent.js +2 -2
  153. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.d.ts +6 -2
  154. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.d.ts.map +1 -1
  155. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.js +178 -59
  156. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItemLink.js +1 -1
  157. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.d.ts +2 -1
  158. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.d.ts.map +1 -1
  159. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.js +59 -15
  160. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestion.d.ts +1 -0
  161. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestion.d.ts.map +1 -1
  162. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestion.js +35 -10
  163. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestionHint.js +3 -3
  164. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestionHintAccept.d.ts.map +1 -1
  165. package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentSuggestion/TopContentSuggestionHintAccept.js +26 -20
  166. package/lib/esm/components/TopContentManagement/TopContentHeader.d.ts +2 -1
  167. package/lib/esm/components/TopContentManagement/TopContentHeader.d.ts.map +1 -1
  168. package/lib/esm/components/TopContentManagement/TopContentHeader.js +1 -1
  169. package/lib/esm/components/TopContentManagement/TopContentManagement.d.ts +2 -1
  170. package/lib/esm/components/TopContentManagement/TopContentManagement.d.ts.map +1 -1
  171. package/lib/esm/components/TopContentManagement/TopContentManagement.js +4 -3
  172. package/lib/esm/components/TopContentManagement/TopContentProductVersionSelector.d.ts +2 -1
  173. package/lib/esm/components/TopContentManagement/TopContentProductVersionSelector.d.ts.map +1 -1
  174. package/lib/esm/components/TopContentManagement/TopContentProductVersionSelector.js +6 -6
  175. package/lib/esm/context/ExpiredContentContextProvider.d.ts +8 -0
  176. package/lib/esm/context/ExpiredContentContextProvider.d.ts.map +1 -0
  177. package/lib/esm/context/ExpiredContentContextProvider.js +10 -0
  178. package/lib/esm/context/ManagePartnershipsProvider.d.ts +1 -1
  179. package/lib/esm/context/ManagePartnershipsProvider.d.ts.map +1 -1
  180. package/lib/esm/context/TagManagementContextProvider.d.ts +8 -0
  181. package/lib/esm/context/TagManagementContextProvider.d.ts.map +1 -0
  182. package/lib/esm/context/TagManagementContextProvider.js +10 -0
  183. package/lib/esm/context/TopContentProvider.d.ts +1 -1
  184. package/lib/esm/context/TopContentProvider.d.ts.map +1 -1
  185. package/lib/esm/context/TopContentProvider.js +1 -0
  186. package/lib/esm/hooks/useUserPreferences.d.ts +13 -12
  187. package/lib/esm/hooks/useUserPreferences.d.ts.map +1 -1
  188. package/lib/esm/hooks/useUserPreferences.js +0 -1
  189. package/lib/esm/index.d.ts +1 -0
  190. package/lib/esm/index.d.ts.map +1 -1
  191. package/lib/esm/index.js +1 -0
  192. package/lib/esm/reducers/ExpiredContentReducer.d.ts +36 -0
  193. package/lib/esm/reducers/ExpiredContentReducer.d.ts.map +1 -0
  194. package/lib/esm/reducers/ExpiredContentReducer.js +207 -0
  195. package/lib/esm/reducers/ManagePartnershipsReducer.d.ts +2 -2
  196. package/lib/esm/reducers/ManagePartnershipsReducer.d.ts.map +1 -1
  197. package/lib/esm/reducers/TagManagmentReducer.d.ts +27 -0
  198. package/lib/esm/reducers/TagManagmentReducer.d.ts.map +1 -0
  199. package/lib/esm/reducers/TagManagmentReducer.js +144 -0
  200. package/lib/esm/reducers/TopContentHelpers.d.ts.map +1 -1
  201. package/lib/esm/reducers/TopContentHelpers.js +4 -4
  202. package/lib/esm/reducers/TopContentReducer.d.ts +12 -7
  203. package/lib/esm/reducers/TopContentReducer.d.ts.map +1 -1
  204. package/lib/esm/reducers/TopContentReducer.js +61 -23
  205. package/lib/esm/scss/_main.scss +87 -55
  206. package/lib/esm/scss/_pf-overrides.scss +181 -0
  207. package/lib/esm/scss/index.scss +7 -7
  208. package/package.json +42 -42
  209. package/lib/esm/ManageTab.d.ts +0 -8
  210. package/lib/esm/ManageTab.d.ts.map +0 -1
  211. package/lib/esm/ManageTab.js +0 -12
  212. package/lib/esm/scss/_pf4-overrides.scss +0 -132
@@ -1 +1 @@
1
- {"version":3,"file":"PreferencesBody.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePreferences/PreferencesBody.tsx"],"names":[],"mappings":"AAMA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,eAQ5C"}
1
+ {"version":3,"file":"PreferencesBody.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePreferences/PreferencesBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,MAAM;CAAG;AAEnB,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,qBAQ5C"}
@@ -3,7 +3,7 @@ import { PreferencesCaseCreate } from './sections/PreferencesCaseCreate';
3
3
  import { PreferencesCaseSearch } from './sections/PreferencesCaseSearch';
4
4
  import { PreferencesCaseView } from './sections/PreferencesCaseView';
5
5
  export function PreferencesBody(props) {
6
- return (React.createElement("section", { className: "pfe-l-grid pfe-m-gutters pfe-m-all-4-col", id: "preferences-body" },
6
+ return (React.createElement("div", { className: "pfe-l-grid pfe-m-gutters pfe-m-all-4-col" },
7
7
  React.createElement(PreferencesCaseSearch, null),
8
8
  React.createElement(PreferencesCaseView, null),
9
9
  React.createElement(PreferencesCaseCreate, null)));
@@ -1,2 +1,3 @@
1
- export declare function PreferencesHeader(): JSX.Element;
1
+ import React from 'react';
2
+ export declare function PreferencesHeader(): React.JSX.Element;
2
3
  //# sourceMappingURL=PreferencesHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PreferencesHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePreferences/PreferencesHeader.tsx"],"names":[],"mappings":"AAGA,wBAAgB,iBAAiB,gBAahC"}
1
+ {"version":3,"file":"PreferencesHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePreferences/PreferencesHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,wBAAgB,iBAAiB,sBAahC"}
@@ -5,5 +5,5 @@ export function PreferencesHeader() {
5
5
  return (React.createElement("header", null,
6
6
  React.createElement("h2", null,
7
7
  React.createElement(Trans, null, "Preferences")),
8
- React.createElement("p", { className: "pf-u-mt-md pf-u-mb-sm" }, t('Setting preferences will personalize your support case experience to best suit your needs.'))));
8
+ React.createElement("p", { className: "pf-v5-u-mt-md pf-v5-u-mb-sm" }, t('Setting preferences will personalize your support case experience to best suit your needs.'))));
9
9
  }
@@ -6,6 +6,6 @@ interface IProps {
6
6
  onSelect: (event: any, selection: any, isPlaceholder: any) => Promise<any>;
7
7
  children: React.ReactElement[];
8
8
  }
9
- export declare function PreferenceSelect({ id, label, selections, children, onSelect }: IProps): JSX.Element;
9
+ export declare function PreferenceSelect({ id, label, selections, children, onSelect }: IProps): React.JSX.Element;
10
10
  export {};
11
11
  //# sourceMappingURL=PreferenceSelect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PreferenceSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/components/PreferenceSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,UAAU,MAAM;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,GAAG,CAAC;IACX,UAAU,EAAE,GAAG,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,KAAA,EAAE,SAAS,KAAA,EAAE,aAAa,KAAA,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5D,QAAQ,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;CAClC;AACD,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,MAAM,eA8CrF"}
1
+ {"version":3,"file":"PreferenceSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/components/PreferenceSelect.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,UAAU,MAAM;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,GAAG,CAAC;IACX,UAAU,EAAE,GAAG,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,KAAA,EAAE,SAAS,KAAA,EAAE,aAAa,KAAA,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5D,QAAQ,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;CAClC;AACD,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,MAAM,qBA8CrF"}
@@ -7,8 +7,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { Select, SelectVariant, Spinner } from '@patternfly/react-core';
10
+ import { Spinner } from '@patternfly/react-core';
11
+ import { Select, SelectVariant } from '@patternfly/react-core/deprecated';
11
12
  import { ToastNotification } from '@rh-support/components';
13
+ import isEqual from 'lodash/isEqual';
12
14
  import React, { useState } from 'react';
13
15
  import { Trans, useTranslation } from 'react-i18next';
14
16
  export function PreferenceSelect({ id, label, selections, children, onSelect }) {
@@ -20,7 +22,7 @@ export function PreferenceSelect({ id, label, selections, children, onSelect })
20
22
  };
21
23
  // To handle select
22
24
  const onSelectLocal = (event, selection, isPlaceholder) => __awaiter(this, void 0, void 0, function* () {
23
- if (isPlaceholder)
25
+ if (isPlaceholder || isEqual(selection, selections))
24
26
  defaultClearSelection();
25
27
  else {
26
28
  setIsLoading(true);
@@ -43,5 +45,5 @@ export function PreferenceSelect({ id, label, selections, children, onSelect })
43
45
  return (React.createElement(React.Fragment, null,
44
46
  React.createElement("label", { id: id },
45
47
  React.createElement(Trans, null, label)),
46
- React.createElement(Select, { variant: SelectVariant.single, onToggle: onSelectToggle, onSelect: onSelectLocal, selections: selections, isOpen: isOpen, "aria-labelledby": id, toggleIcon: isLoading && React.createElement(Spinner, { size: "sm" }) }, children)));
48
+ React.createElement(Select, { variant: SelectVariant.single, onToggle: (_event, isOpen) => onSelectToggle(isOpen), onSelect: onSelectLocal, selections: selections, isOpen: isOpen, "aria-labelledby": id, toggleIcon: isLoading && React.createElement(Spinner, { size: "sm" }) }, children)));
47
49
  }
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  interface IProps {
2
3
  className: string;
3
4
  id: string;
@@ -5,6 +6,6 @@ interface IProps {
5
6
  onSwitchChange: (checked: boolean) => Promise<any>;
6
7
  isChecked: boolean;
7
8
  }
8
- export declare function PreferenceSwitch({ onSwitchChange, className, id, label, isChecked }: IProps): JSX.Element;
9
+ export declare function PreferenceSwitch({ onSwitchChange, className, id, label, isChecked }: IProps): React.JSX.Element;
9
10
  export {};
10
11
  //# sourceMappingURL=PreferenceSwitch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PreferenceSwitch.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/components/PreferenceSwitch.tsx"],"names":[],"mappings":"AAKA,UAAU,MAAM;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,GAAG,CAAC;IACX,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnD,SAAS,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,cAAc,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,MAAM,eAgC3F"}
1
+ {"version":3,"file":"PreferenceSwitch.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/components/PreferenceSwitch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,UAAU,MAAM;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,GAAG,CAAC;IACX,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnD,SAAS,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,cAAc,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,MAAM,qBAgC3F"}
@@ -31,5 +31,5 @@ export function PreferenceSwitch({ onSwitchChange, className, id, label, isCheck
31
31
  }
32
32
  });
33
33
  return (React.createElement("div", null,
34
- React.createElement(Switch, { className: className, id: id, label: label, isChecked: isCheckedLocal, onChange: onChangeLocal, isDisabled: isSwitchLoading })));
34
+ React.createElement(Switch, { className: className, id: id, label: label, isChecked: isCheckedLocal, onChange: (_event, checked) => onChangeLocal(checked), isDisabled: isSwitchLoading })));
35
35
  }
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  interface IProps {
2
3
  }
3
- export declare function PreferencesCaseCreate(props: IProps): JSX.Element;
4
+ export declare function PreferencesCaseCreate(props: IProps): React.JSX.Element;
4
5
  export {};
5
6
  //# sourceMappingURL=PreferencesCaseCreate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PreferencesCaseCreate.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseCreate.tsx"],"names":[],"mappings":"AAoBA,UAAU,MAAM;CAAG;AACnB,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,eAwLlD"}
1
+ {"version":3,"file":"PreferencesCaseCreate.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseCreate.tsx"],"names":[],"mappings":"AAeA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAO/D,UAAU,MAAM;CAAG;AACnB,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,qBA0MlD"}
@@ -8,9 +8,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { publicApi } from '@cee-eng/hydrajs';
11
- import { Card, CardBody, CardHeader, SelectOption } from '@patternfly/react-core';
11
+ import { Card, CardBody, CardHeader } from '@patternfly/react-core';
12
+ import { SelectOption } from '@patternfly/react-core/deprecated';
12
13
  import { ToastNotification, useFetch } from '@rh-support/components';
13
- import { fetchLanguageMetadata, GlobalMetadataDispatchContext, GlobalMetadataStateContext, } from '@rh-support/react-context';
14
+ import { fetchLanguageMetadata, GlobalMetadataDispatchContext, GlobalMetadataReducerConstants, GlobalMetadataStateContext, } from '@rh-support/react-context';
14
15
  import { haventLoadedMetadata, PreferredLanguages } from '@rh-support/utils';
15
16
  import isEmpty from 'lodash/isEmpty';
16
17
  import map from 'lodash/map';
@@ -48,8 +49,18 @@ export function PreferencesCaseCreate(props) {
48
49
  }
49
50
  });
50
51
  const updateDefaultGroupPref = (groupNum) => __awaiter(this, void 0, void 0, function* () {
52
+ var _a;
51
53
  try {
52
54
  yield toggleDefaultGroupFetch.request(groupNum, loggedInUserRights.data.getSSOUsername(), true, loggedInUsersAccount.data.secureSupport);
55
+ const updatedGroups = (caseGroups.data || []).map((group) => (Object.assign(Object.assign({}, group), { isDefault: group.groupNum === groupNum })));
56
+ dispatchToGlobalMetadataReducer({
57
+ type: GlobalMetadataReducerConstants.setCaseGroups,
58
+ payload: {
59
+ caseGroups: Object.assign(Object.assign({}, caseGroups), { data: updatedGroups }),
60
+ },
61
+ });
62
+ setUserDefaultGroupList(updatedGroups);
63
+ setOriginalDefaultGroup(((_a = updatedGroups.find((g) => g.isDefault)) === null || _a === void 0 ? void 0 : _a.name) || 'Ungrouped Case');
53
64
  }
54
65
  catch (error) {
55
66
  console.log(error);
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  interface IProps {
2
3
  }
3
- export declare function PreferencesCaseSearch(props: IProps): JSX.Element;
4
+ export declare function PreferencesCaseSearch(props: IProps): React.JSX.Element;
4
5
  export {};
5
6
  //# sourceMappingURL=PreferencesCaseSearch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PreferencesCaseSearch.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseSearch.tsx"],"names":[],"mappings":"AAYA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,eA0GlD"}
1
+ {"version":3,"file":"PreferencesCaseSearch.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseSearch.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAM/D,UAAU,MAAM;CAAG;AAEnB,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,qBA6GlD"}
@@ -7,18 +7,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { Card, CardBody, CardHeader, SelectOption } from '@patternfly/react-core';
10
+ import { Card, CardBody, CardHeader } from '@patternfly/react-core';
11
+ import { SelectOption } from '@patternfly/react-core/deprecated';
11
12
  import { ToastNotification } from '@rh-support/components';
12
- import { UserPreferencesKeys } from '@rh-support/react-context';
13
+ import { GlobalMetadataStateContext, UserPreferencesKeys } from '@rh-support/react-context';
13
14
  import find from 'lodash/find';
14
15
  import isEmpty from 'lodash/isEmpty';
15
- import React, { useEffect, useState } from 'react';
16
+ import React, { useContext, useEffect, useState } from 'react';
16
17
  import { Trans, useTranslation } from 'react-i18next';
17
18
  import { useUserPreferences } from '../../../hooks/useUserPreferences';
18
19
  import { PreferenceSelect } from '../components/PreferenceSelect';
19
20
  export function PreferencesCaseSearch(props) {
20
21
  const { t } = useTranslation();
21
- const { getAutoRestoreSavedSearchPreference, updateAutoRestoreSavedSearchPreference, getAutoRestoreLastSearchPreference, updateAutoRestoreLastSearchPreference, hydraUserPreferences, } = useUserPreferences();
22
+ const { getAutoRestoreSavedSearchPreference, updateAutoRestoreSavedSearchPreference, getAutoRestoreLastSearchPreference, updateAutoRestoreLastSearchPreference, } = useUserPreferences();
23
+ const { globalMetadataState: { hydraUserPreferences }, } = useContext(GlobalMetadataStateContext);
22
24
  const [bookmarkedSearches, setBookmarkedSearches] = useState([]);
23
25
  const [originalSavedSearch, setOriginalSavedSearch] = useState('');
24
26
  const parseToBoolean = (value) => {
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  interface IProps {
2
3
  }
3
- export declare function PreferencesCaseView(props: IProps): JSX.Element;
4
+ export declare function PreferencesCaseView(props: IProps): React.JSX.Element;
4
5
  export {};
5
6
  //# sourceMappingURL=PreferencesCaseView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PreferencesCaseView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseView.tsx"],"names":[],"mappings":"AA6BA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAsShD"}
1
+ {"version":3,"file":"PreferencesCaseView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseView.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAO/D,UAAU,MAAM;CAAG;AAEnB,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,qBAsShD"}
@@ -8,7 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { accounts } from '@cee-eng/hydrajs';
11
- import { Card, CardBody, CardHeader, Popover, PopoverPosition, SelectOption, Spinner, TextArea, Tooltip, } from '@patternfly/react-core';
11
+ import { Card, CardBody, CardHeader, Popover, PopoverPosition, Spinner, TextArea, Tooltip, } from '@patternfly/react-core';
12
+ import { SelectOption } from '@patternfly/react-core/deprecated';
12
13
  import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
13
14
  import { EditorMode, ToastNotification, useFetch } from '@rh-support/components';
14
15
  import { fetchLoggedInUsersAccount, GlobalMetadataDispatchContext, GlobalMetadataStateContext, } from '@rh-support/react-context';
@@ -42,7 +43,7 @@ export function PreferencesCaseView(props) {
42
43
  const originalAccountPermission = loggedInUserRights.data.isInternal();
43
44
  const [originalCaseView, setOriginalCaseView] = useState(+originalAccountPermission);
44
45
  const caseViewTypes = [
45
- { value: t('Customer view'), description: t('Hide internal information that is unavailable to customers.') },
46
+ { value: t('Customer view'), description: t('Hide internal information that is unavailable to customers.') }, // [0] ; false
46
47
  {
47
48
  value: t('Internal view'),
48
49
  description: t('View internal information available to Red Hat associates only.'),
@@ -61,8 +62,8 @@ export function PreferencesCaseView(props) {
61
62
  }, [localCommentSignature, commentValidated]);
62
63
  useEffect(() => {
63
64
  function userOriginalHostnameValue() {
64
- var _a, _b;
65
65
  return __awaiter(this, void 0, void 0, function* () {
66
+ var _a, _b;
66
67
  try {
67
68
  ((_a = loggedInUsersAccount.data) === null || _a === void 0 ? void 0 : _a.shareHostnameWithRHT) &&
68
69
  setIsSharingHostNames((_b = loggedInUsersAccount.data) === null || _b === void 0 ? void 0 : _b.shareHostnameWithRHT);
@@ -92,7 +93,7 @@ export function PreferencesCaseView(props) {
92
93
  const retrievedComment = yield getCommentTypeFromPreference();
93
94
  setOriginalCommentType(retrievedComment);
94
95
  }
95
- catch (_b) {
96
+ catch (_a) {
96
97
  ToastNotification.addWarningMessage(t('Failed to fetch original preference'));
97
98
  }
98
99
  });
@@ -101,7 +102,7 @@ export function PreferencesCaseView(props) {
101
102
  const retrievedSignature = yield getCommentSignature();
102
103
  setOriginalCommentSignature(retrievedSignature);
103
104
  }
104
- catch (_c) {
105
+ catch (_a) {
105
106
  ToastNotification.addWarningMessage(t('Failed to fetch original preference'));
106
107
  }
107
108
  });
@@ -191,7 +192,7 @@ export function PreferencesCaseView(props) {
191
192
  React.createElement(Trans, null, "Default case view"),
192
193
  React.createElement(Popover, { "aria-label": "Preferred-default-case-view-popover", position: PopoverPosition.top, bodyContent: React.createElement("p", { className: 'pref-case-popover-text' },
193
194
  React.createElement(Trans, null, "Choose the default view you want to see when looking at a case")), showClose: false },
194
- React.createElement(InfoCircleIcon, { "aria-label": "Preferred-default-case-view-info-icon", className: "pf-u-ml-sm" }))));
195
+ React.createElement(InfoCircleIcon, { "aria-label": "Preferred-default-case-view-info-icon", className: "pf-v5-u-ml-sm" }))));
195
196
  return (React.createElement(Card, { className: "preference-card" },
196
197
  React.createElement(CardHeader, null,
197
198
  React.createElement("h3", null,
@@ -205,17 +206,17 @@ export function PreferencesCaseView(props) {
205
206
  React.createElement("div", { className: "form-group" },
206
207
  React.createElement("label", { htmlFor: "comment-signature-textarea" },
207
208
  React.createElement(Trans, null, "Comment signature")),
208
- React.createElement(TextArea, { value: localCommentSignature, onChange: handleCommentSignatureChange, "aria-label": "comment-signature-textarea", placeholder: originalCommentSignature || 'Add a comment signature', id: "comment-signature-textarea",
209
+ React.createElement(TextArea, { value: localCommentSignature, onChange: (_event, value) => handleCommentSignatureChange(value), "aria-label": "comment-signature-textarea", placeholder: originalCommentSignature || 'Add a comment signature', id: "comment-signature-textarea",
209
210
  // @ts-ignore
210
- validated: commentValidated }),
211
+ validated: commentValidated, resizeOrientation: "vertical" }),
211
212
  isCommentSignatureLoading && React.createElement(Spinner, { size: "md" })),
212
213
  canUseHostName && (React.createElement("div", { className: "form-group" },
213
- React.createElement("label", { htmlFor: "share-hostnames-switch" },
214
+ React.createElement("label", null,
214
215
  React.createElement(Trans, null, "Case information")),
215
216
  React.createElement("div", null,
216
217
  React.createElement(PreferenceSwitch, { className: "switches hostnameSwitch", id: "share-hostnames-switch", label: 'Share hostnames', isChecked: isSharingHostNames, onSwitchChange: onShareHostNamesSwitch }),
217
218
  React.createElement("div", { className: "prefhostnameTooltip" },
218
219
  React.createElement(Tooltip, { content: prefHostnameCopy, position: "right" },
219
- React.createElement(InfoCircleIcon, { className: "pf-u-ml-sm" })),
220
- isHostnamesLoading && (React.createElement(Spinner, { isSVG: true, size: "lg", className: "pf-u-ml-sm hostnameSpinner", "aria-label": "Hostname loading" }))))))))));
220
+ React.createElement(InfoCircleIcon, { className: "pf-v5-u-ml-sm" })),
221
+ isHostnamesLoading && (React.createElement(Spinner, { size: "lg", className: "pf-v5-u-ml-sm hostnameSpinner", "aria-label": "Hostname loading" }))))))))));
221
222
  }
@@ -20,6 +20,6 @@ interface IProps {
20
20
  noResultText?: string;
21
21
  perPage?: number;
22
22
  }
23
- export declare function ManageTable(props: IProps): JSX.Element;
23
+ export declare function ManageTable(props: IProps): React.JSX.Element;
24
24
  export {};
25
25
  //# sourceMappingURL=ManageTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ManageTable.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageTable/ManageTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,YAAY,EAQf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,SAAS,EAAmC,MAAM,wBAAwB,CAAC;AAC7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,MAAM;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAGrB,cAAc,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IAEjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;IACzC,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAElC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AA0BD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,eAoDxC"}
1
+ {"version":3,"file":"ManageTable.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageTable/ManageTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,YAAY,EAQf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,SAAS,EAA4C,MAAM,wBAAwB,CAAC;AACtG,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,MAAM;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAGrB,cAAc,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IAEjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;IACzC,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAElC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AA+BD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,qBAoDxC"}
@@ -9,9 +9,9 @@ var __rest = (this && this.__rest) || function (s, e) {
9
9
  }
10
10
  return t;
11
11
  };
12
- import { Alert, AlertActionCloseButton, Bullseye, EmptyState, EmptyStateBody, EmptyStateIcon, EmptyStateVariant, PaginationVariant, Title, } from '@patternfly/react-core';
12
+ import { Alert, AlertActionCloseButton, Bullseye, EmptyState, EmptyStateBody, EmptyStateHeader, EmptyStateIcon, EmptyStateVariant, PaginationVariant, } from '@patternfly/react-core';
13
13
  import SearchIcon from '@patternfly/react-icons/dist/js/icons/search-icon';
14
- import { PFTable, Table, TablePagination } from '@rh-support/components';
14
+ import { PFTable, TableComponent, TablePagination } from '@rh-support/components';
15
15
  import React from 'react';
16
16
  import { Trans } from 'react-i18next';
17
17
  const noResultFoundRow = (noResultString = '') => [
@@ -21,10 +21,9 @@ const noResultFoundRow = (noResultString = '') => [
21
21
  {
22
22
  props: { colSpan: 10 },
23
23
  title: (React.createElement(Bullseye, null,
24
- React.createElement(EmptyState, { variant: EmptyStateVariant.small },
25
- React.createElement(EmptyStateIcon, { icon: SearchIcon }),
26
- React.createElement(Title, { headingLevel: "h3", size: "md" },
27
- React.createElement(Trans, null, "No results found")),
24
+ React.createElement(EmptyState, { variant: EmptyStateVariant.xs },
25
+ React.createElement(EmptyStateHeader, { titleText: React.createElement(React.Fragment, null,
26
+ React.createElement(Trans, null, "No results found")), icon: React.createElement(EmptyStateIcon, { icon: SearchIcon }), headingLevel: "h3" }),
28
27
  React.createElement(EmptyStateBody, null, noResultString ? noResultString : React.createElement(Trans, null, "There are no results to display."))))),
29
28
  },
30
29
  ],
@@ -35,8 +34,8 @@ export function ManageTable(props) {
35
34
  const pagination = () => (props.pagination !== undefined ? props.pagination : true);
36
35
  return (React.createElement("div", { className: "table-wrapper" },
37
36
  isError && (React.createElement(React.Fragment, null,
38
- React.createElement(Alert, { variant: errorVariant, isInline: true, title: errorTitle, actionClose: React.createElement(AlertActionCloseButton, null), className: "pf-u-my-sm" }, errorComponent))),
39
- React.createElement(Table, Object.assign({}, tableProps),
37
+ React.createElement(Alert, { variant: errorVariant, isInline: true, title: errorTitle, actionClose: React.createElement(AlertActionCloseButton, null), className: "pf-v5-u-my-sm" }, errorComponent))),
38
+ React.createElement(TableComponent, Object.assign({}, tableProps),
40
39
  React.createElement(PFTable, { sortInfo: sortInfo, "aria-label": ariaLabel, pagination: pagination(), emptyStateRow: noResultFoundRow(props.noResultText), actions: actions, areActionsDisabled: areActionsDisabled, actionResolver: actionResolver, isLoading: isFetching, keepPageNumberOnDataChange: keepPageNumberOnDataChange }),
41
40
  tableProps.data.length > 0 && pagination() && (React.createElement("footer", null,
42
41
  React.createElement(TablePagination, { variant: PaginationVariant.bottom, perPage: props.perPage || 10 }))))));
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare function TagsManagement(): React.JSX.Element;
3
+ //# sourceMappingURL=TagsManagement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagsManagement.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageTags/TagsManagement.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,wBAAgB,cAAc,sBAS7B"}
@@ -0,0 +1,11 @@
1
+ import { ErrorBoundary } from '@rh-support/components';
2
+ import React from 'react';
3
+ import { useTranslation } from 'react-i18next';
4
+ import { TagManagementContextProvider } from '../../context/TagManagementContextProvider';
5
+ import TagsManager from './TagsManager';
6
+ export function TagsManagement() {
7
+ const { t } = useTranslation();
8
+ return (React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading contents') } },
9
+ React.createElement(TagManagementContextProvider, null,
10
+ React.createElement(TagsManager, null))));
11
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export default function TagsManager(): React.JSX.Element;
3
+ //# sourceMappingURL=TagsManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagsManager.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageTags/TagsManager.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,MAAM,CAAC,OAAO,UAAU,WAAW,sBAuYlC"}