@redhat-cloud-services/frontend-components 3.5.1 → 3.6.3

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 (760) hide show
  1. package/Ansible/Ansible.d.ts +13 -0
  2. package/Ansible/Ansible.js +56 -91
  3. package/Ansible/Ansible.js.map +1 -0
  4. package/Ansible/index.d.ts +1 -0
  5. package/Ansible/index.js +10 -20
  6. package/Ansible/index.js.map +1 -0
  7. package/Ansible/package.json +1 -1
  8. package/AsyncComponent/index.d.ts +12 -0
  9. package/AsyncComponent/index.js +36 -89
  10. package/AsyncComponent/index.js.map +1 -0
  11. package/AsyncComponent/package.json +1 -1
  12. package/Battery/Battery.d.ts +11 -0
  13. package/Battery/Battery.js +83 -125
  14. package/Battery/Battery.js.map +1 -0
  15. package/Battery/CriticalBattery.d.ts +3 -0
  16. package/Battery/CriticalBattery.js +7 -22
  17. package/Battery/CriticalBattery.js.map +1 -0
  18. package/Battery/HighBattery.d.ts +3 -0
  19. package/Battery/HighBattery.js +7 -18
  20. package/Battery/HighBattery.js.map +1 -0
  21. package/Battery/LowBattery.d.ts +3 -0
  22. package/Battery/LowBattery.js +7 -18
  23. package/Battery/LowBattery.js.map +1 -0
  24. package/Battery/MediumBattery.d.ts +3 -0
  25. package/Battery/MediumBattery.js +7 -18
  26. package/Battery/MediumBattery.js.map +1 -0
  27. package/Battery/NullBattery.d.ts +3 -0
  28. package/Battery/NullBattery.js +7 -18
  29. package/Battery/NullBattery.js.map +1 -0
  30. package/Battery/index.d.ts +7 -0
  31. package/Battery/index.js +20 -60
  32. package/Battery/index.js.map +1 -0
  33. package/Battery/package.json +1 -1
  34. package/Breadcrumbs/Breadcrumbs.d.ts +28 -0
  35. package/Breadcrumbs/Breadcrumbs.js +53 -67
  36. package/Breadcrumbs/Breadcrumbs.js.map +1 -0
  37. package/Breadcrumbs/ConnectedBreadcrumbs.d.ts +2 -0
  38. package/Breadcrumbs/ConnectedBreadcrumbs.js +52 -73
  39. package/Breadcrumbs/ConnectedBreadcrumbs.js.map +1 -0
  40. package/Breadcrumbs/index.d.ts +2 -0
  41. package/Breadcrumbs/index.js +12 -28
  42. package/Breadcrumbs/index.js.map +1 -0
  43. package/Breadcrumbs/package.json +1 -1
  44. package/BulkSelect/BulkSelect.d.ts +23 -0
  45. package/BulkSelect/BulkSelect.js +75 -191
  46. package/BulkSelect/BulkSelect.js.map +1 -0
  47. package/BulkSelect/index.d.ts +2 -0
  48. package/BulkSelect/index.js +10 -20
  49. package/BulkSelect/index.js.map +1 -0
  50. package/BulkSelect/package.json +1 -1
  51. package/ConditionalFilter/CheckboxFilter.d.ts +38 -0
  52. package/ConditionalFilter/CheckboxFilter.js +145 -208
  53. package/ConditionalFilter/CheckboxFilter.js.map +1 -0
  54. package/ConditionalFilter/ConditionalFilter.d.ts +58 -0
  55. package/ConditionalFilter/ConditionalFilter.js +184 -262
  56. package/ConditionalFilter/ConditionalFilter.js.map +1 -0
  57. package/ConditionalFilter/GroupFilter.d.ts +47 -0
  58. package/ConditionalFilter/GroupFilter.js +151 -262
  59. package/ConditionalFilter/GroupFilter.js.map +1 -0
  60. package/ConditionalFilter/RadioFilter.d.ts +37 -0
  61. package/ConditionalFilter/RadioFilter.js +125 -167
  62. package/ConditionalFilter/RadioFilter.js.map +1 -0
  63. package/ConditionalFilter/TextFilter.d.ts +27 -0
  64. package/ConditionalFilter/TextFilter.js +102 -124
  65. package/ConditionalFilter/TextFilter.js.map +1 -0
  66. package/ConditionalFilter/conditionalFilterConstants.d.ts +19 -0
  67. package/ConditionalFilter/conditionalFilterConstants.js +22 -31
  68. package/ConditionalFilter/conditionalFilterConstants.js.map +1 -0
  69. package/ConditionalFilter/groupFilterConstants.d.ts +7 -0
  70. package/ConditionalFilter/groupFilterConstants.js +149 -198
  71. package/ConditionalFilter/groupFilterConstants.js.map +1 -0
  72. package/ConditionalFilter/groupType.d.ts +8 -0
  73. package/ConditionalFilter/groupType.js +8 -12
  74. package/ConditionalFilter/groupType.js.map +1 -0
  75. package/ConditionalFilter/index.d.ts +7 -0
  76. package/ConditionalFilter/index.js +30 -81
  77. package/ConditionalFilter/index.js.map +1 -0
  78. package/ConditionalFilter/package.json +1 -1
  79. package/CullingInfo/CullingInformation.d.ts +31 -0
  80. package/CullingInfo/CullingInformation.js +85 -102
  81. package/CullingInfo/CullingInformation.js.map +1 -0
  82. package/CullingInfo/index.d.ts +1 -0
  83. package/CullingInfo/index.js +10 -20
  84. package/CullingInfo/index.js.map +1 -0
  85. package/CullingInfo/package.json +1 -1
  86. package/Dark/Dark.d.ts +3 -0
  87. package/Dark/Dark.js +35 -0
  88. package/Dark/Dark.js.map +1 -0
  89. package/Dark/DarkContext.d.ts +4 -0
  90. package/Dark/DarkContext.js +7 -30
  91. package/Dark/DarkContext.js.map +1 -0
  92. package/Dark/index.d.ts +3 -3
  93. package/Dark/index.js +12 -28
  94. package/Dark/index.js.map +1 -0
  95. package/DateFormat/DateFormat.d.ts +16 -0
  96. package/DateFormat/DateFormat.js +20 -48
  97. package/DateFormat/DateFormat.js.map +1 -0
  98. package/DateFormat/helper.d.ts +3 -0
  99. package/DateFormat/helper.js +51 -99
  100. package/DateFormat/helper.js.map +1 -0
  101. package/DateFormat/index.d.ts +2 -0
  102. package/DateFormat/index.js +20 -36
  103. package/DateFormat/index.js.map +1 -0
  104. package/DateFormat/package.json +1 -1
  105. package/DownloadButton/DownloadButton.d.ts +10 -0
  106. package/DownloadButton/DownloadButton.js +66 -145
  107. package/DownloadButton/DownloadButton.js.map +1 -0
  108. package/DownloadButton/index.d.ts +2 -0
  109. package/DownloadButton/index.js +10 -20
  110. package/DownloadButton/index.js.map +1 -0
  111. package/DownloadButton/package.json +1 -1
  112. package/EmptyTable/EmptyTable.d.ts +15 -0
  113. package/EmptyTable/EmptyTable.js +42 -37
  114. package/EmptyTable/EmptyTable.js.map +1 -0
  115. package/EmptyTable/index.d.ts +2 -0
  116. package/EmptyTable/index.js +10 -22
  117. package/EmptyTable/index.js.map +1 -0
  118. package/EmptyTable/package.json +1 -1
  119. package/ErrorState/DefaultErrorMessage.d.ts +2 -0
  120. package/ErrorState/DefaultErrorMessage.js +16 -21
  121. package/ErrorState/DefaultErrorMessage.js.map +1 -0
  122. package/ErrorState/ErrorState.d.ts +9 -0
  123. package/ErrorState/ErrorState.js +41 -69
  124. package/ErrorState/ErrorState.js.map +1 -0
  125. package/ErrorState/index.d.ts +3 -0
  126. package/ErrorState/index.js +12 -28
  127. package/ErrorState/index.js.map +1 -0
  128. package/ErrorState/package.json +1 -1
  129. package/FilterChips/FilterChips.d.ts +39 -0
  130. package/FilterChips/FilterChips.js +71 -117
  131. package/FilterChips/FilterChips.js.map +1 -0
  132. package/FilterChips/index.d.ts +1 -0
  133. package/FilterChips/index.js +10 -20
  134. package/FilterChips/index.js.map +1 -0
  135. package/FilterChips/package.json +1 -1
  136. package/FilterHooks/constants.d.ts +68 -0
  137. package/FilterHooks/constants.js +110 -129
  138. package/FilterHooks/constants.js.map +1 -0
  139. package/FilterHooks/index.d.ts +3 -0
  140. package/FilterHooks/index.js +17 -39
  141. package/FilterHooks/index.js.map +1 -0
  142. package/FilterHooks/package.json +1 -1
  143. package/FilterHooks/tagFilterHook.d.ts +20 -0
  144. package/FilterHooks/tagFilterHook.js +118 -146
  145. package/FilterHooks/tagFilterHook.js.map +1 -0
  146. package/Filters/FilterDropdown.d.ts +43 -0
  147. package/Filters/FilterDropdown.js +105 -159
  148. package/Filters/FilterDropdown.js.map +1 -0
  149. package/Filters/FilterInput.d.ts +37 -0
  150. package/Filters/FilterInput.js +109 -164
  151. package/Filters/FilterInput.js.map +1 -0
  152. package/Filters/index.d.ts +2 -0
  153. package/Filters/index.js +10 -22
  154. package/Filters/index.js.map +1 -0
  155. package/Filters/package.json +1 -1
  156. package/Input/Input.d.ts +23 -0
  157. package/Input/Input.js +44 -50
  158. package/Input/Input.js.map +1 -0
  159. package/Input/LabeledInput.d.ts +17 -0
  160. package/Input/LabeledInput.js +43 -44
  161. package/Input/LabeledInput.js.map +1 -0
  162. package/Input/index.d.ts +2 -0
  163. package/Input/index.js +12 -28
  164. package/Input/index.js.map +1 -0
  165. package/Input/package.json +1 -1
  166. package/InsightsLabel/CriticalIcon.d.ts +3 -0
  167. package/InsightsLabel/CriticalIcon.js +9 -22
  168. package/InsightsLabel/CriticalIcon.js.map +1 -0
  169. package/InsightsLabel/InsightsLabel.d.ts +14 -0
  170. package/InsightsLabel/InsightsLabel.js +42 -67
  171. package/InsightsLabel/InsightsLabel.js.map +1 -0
  172. package/InsightsLabel/index.d.ts +3 -0
  173. package/InsightsLabel/index.js +12 -28
  174. package/InsightsLabel/index.js.map +1 -0
  175. package/InsightsLabel/package.json +1 -1
  176. package/InvalidObject/InvalidObject.d.ts +4 -0
  177. package/InvalidObject/InvalidObject.js +40 -42
  178. package/InvalidObject/InvalidObject.js.map +1 -0
  179. package/InvalidObject/icon-404.d.ts +4 -0
  180. package/InvalidObject/icon-404.js +50 -202
  181. package/InvalidObject/icon-404.js.map +1 -0
  182. package/InvalidObject/index.d.ts +3 -0
  183. package/InvalidObject/index.js +12 -28
  184. package/InvalidObject/index.js.map +1 -0
  185. package/InvalidObject/package.json +1 -1
  186. package/Inventory/AppInfo.d.ts +3 -0
  187. package/Inventory/AppInfo.js +61 -73
  188. package/Inventory/AppInfo.js.map +1 -0
  189. package/Inventory/DetailWrapper.d.ts +3 -0
  190. package/Inventory/DetailWrapper.js +61 -73
  191. package/Inventory/DetailWrapper.js.map +1 -0
  192. package/Inventory/InventoryDetail.d.ts +3 -0
  193. package/Inventory/InventoryDetail.js +61 -73
  194. package/Inventory/InventoryDetail.js.map +1 -0
  195. package/Inventory/InventoryDetailHead.d.ts +3 -0
  196. package/Inventory/InventoryDetailHead.js +61 -73
  197. package/Inventory/InventoryDetailHead.js.map +1 -0
  198. package/Inventory/InventoryLoadError.d.ts +6 -0
  199. package/Inventory/InventoryLoadError.js +43 -31
  200. package/Inventory/InventoryLoadError.js.map +1 -0
  201. package/Inventory/InventoryTable.d.ts +3 -0
  202. package/Inventory/InventoryTable.js +61 -73
  203. package/Inventory/InventoryTable.js.map +1 -0
  204. package/Inventory/TagWithDialog.d.ts +3 -0
  205. package/Inventory/TagWithDialog.js +61 -78
  206. package/Inventory/TagWithDialog.js.map +1 -0
  207. package/Inventory/index.d.ts +7 -0
  208. package/Inventory/index.js +20 -62
  209. package/Inventory/index.js.map +1 -0
  210. package/Inventory/package.json +1 -1
  211. package/LongTextTooltip/LongTextTooltip.d.ts +25 -0
  212. package/LongTextTooltip/LongTextTooltip.js +68 -75
  213. package/LongTextTooltip/LongTextTooltip.js.map +1 -0
  214. package/LongTextTooltip/index.d.ts +2 -0
  215. package/LongTextTooltip/index.js +10 -22
  216. package/LongTextTooltip/index.js.map +1 -0
  217. package/LongTextTooltip/package.json +1 -1
  218. package/Main/Main.d.ts +25 -0
  219. package/Main/Main.js +86 -150
  220. package/Main/Main.js.map +1 -0
  221. package/Main/index.js +10 -20
  222. package/Main/index.js.map +1 -0
  223. package/Maintenance/Maintenance.d.ts +15 -0
  224. package/Maintenance/Maintenance.js +55 -77
  225. package/Maintenance/Maintenance.js.map +1 -0
  226. package/Maintenance/index.d.ts +2 -0
  227. package/Maintenance/index.js +10 -20
  228. package/Maintenance/index.js.map +1 -0
  229. package/Maintenance/package.json +1 -1
  230. package/NotAuthorized/NotAuthorized.d.ts +16 -0
  231. package/NotAuthorized/NotAuthorized.js +43 -97
  232. package/NotAuthorized/NotAuthorized.js.map +1 -0
  233. package/NotAuthorized/index.d.ts +2 -0
  234. package/NotAuthorized/index.js +10 -20
  235. package/NotAuthorized/index.js.map +1 -0
  236. package/NotAuthorized/package.json +1 -1
  237. package/NotConnected/NotConnected.d.ts +22 -0
  238. package/NotConnected/NotConnected.js +23 -50
  239. package/NotConnected/NotConnected.js.map +1 -0
  240. package/NotConnected/index.d.ts +1 -0
  241. package/NotConnected/index.js +10 -20
  242. package/NotConnected/index.js.map +1 -0
  243. package/NotConnected/package.json +1 -1
  244. package/PageHeader/PageHeader.d.ts +7 -0
  245. package/PageHeader/PageHeader.js +40 -46
  246. package/PageHeader/PageHeader.js.map +1 -0
  247. package/PageHeader/PageHeaderTitle.d.ts +7 -0
  248. package/PageHeader/PageHeaderTitle.js +13 -36
  249. package/PageHeader/PageHeaderTitle.js.map +1 -0
  250. package/PageHeader/index.js +12 -28
  251. package/PageHeader/index.js.map +1 -0
  252. package/Pagination/Pagination.d.ts +32 -0
  253. package/Pagination/Pagination.js +109 -139
  254. package/Pagination/Pagination.js.map +1 -0
  255. package/Pagination/PaginationMenu.d.ts +34 -0
  256. package/Pagination/PaginationMenu.js +125 -154
  257. package/Pagination/PaginationMenu.js.map +1 -0
  258. package/Pagination/PaginationNav.d.ts +39 -0
  259. package/Pagination/PaginationNav.js +78 -125
  260. package/Pagination/PaginationNav.js.map +1 -0
  261. package/Pagination/PaginationNext.d.ts +31 -0
  262. package/Pagination/PaginationNext.js +97 -118
  263. package/Pagination/PaginationNext.js.map +1 -0
  264. package/Pagination/index.d.ts +5 -0
  265. package/Pagination/index.js +26 -68
  266. package/Pagination/index.js.map +1 -0
  267. package/Pagination/package.json +1 -1
  268. package/PrimaryToolbar/Actions.d.ts +31 -0
  269. package/PrimaryToolbar/Actions.js +128 -187
  270. package/PrimaryToolbar/Actions.js.map +1 -0
  271. package/PrimaryToolbar/PrimaryToolbar.d.ts +78 -0
  272. package/PrimaryToolbar/PrimaryToolbar.js +146 -188
  273. package/PrimaryToolbar/PrimaryToolbar.js.map +1 -0
  274. package/PrimaryToolbar/SortBy.d.ts +20 -0
  275. package/PrimaryToolbar/SortBy.js +21 -45
  276. package/PrimaryToolbar/SortBy.js.map +1 -0
  277. package/PrimaryToolbar/index.d.ts +4 -0
  278. package/PrimaryToolbar/index.js +24 -58
  279. package/PrimaryToolbar/index.js.map +1 -0
  280. package/PrimaryToolbar/package.json +1 -1
  281. package/Reboot/Reboot.d.ts +13 -0
  282. package/Reboot/Reboot.js +42 -37
  283. package/Reboot/Reboot.js.map +1 -0
  284. package/Reboot/index.d.ts +1 -0
  285. package/Reboot/index.js +10 -20
  286. package/Reboot/index.js.map +1 -0
  287. package/Reboot/package.json +1 -1
  288. package/Section/Section.d.ts +8 -0
  289. package/Section/Section.js +38 -38
  290. package/Section/Section.js.map +1 -0
  291. package/Section/index.js +10 -20
  292. package/Section/index.js.map +1 -0
  293. package/Shield/Shield.d.ts +11 -0
  294. package/Shield/Shield.js +35 -57
  295. package/Shield/Shield.js.map +1 -0
  296. package/Shield/consts.d.ts +70 -0
  297. package/Shield/consts.js +70 -82
  298. package/Shield/consts.js.map +1 -0
  299. package/Shield/index.d.ts +3 -0
  300. package/Shield/index.js +20 -36
  301. package/Shield/index.js.map +1 -0
  302. package/Shield/package.json +1 -1
  303. package/SimpleTableFilter/SimpleTableFilter.d.ts +47 -0
  304. package/SimpleTableFilter/SimpleTableFilter.js +135 -188
  305. package/SimpleTableFilter/SimpleTableFilter.js.map +1 -0
  306. package/SimpleTableFilter/index.d.ts +1 -0
  307. package/SimpleTableFilter/index.js +10 -20
  308. package/SimpleTableFilter/index.js.map +1 -0
  309. package/SimpleTableFilter/package.json +1 -1
  310. package/Skeleton/Skeleton.d.ts +15 -0
  311. package/Skeleton/Skeleton.js +36 -50
  312. package/Skeleton/Skeleton.js.map +1 -0
  313. package/Skeleton/index.js +11 -30
  314. package/Skeleton/index.js.map +1 -0
  315. package/SkeletonTable/SkeletonTable.d.ts +51 -0
  316. package/SkeletonTable/SkeletonTable.js +93 -155
  317. package/SkeletonTable/SkeletonTable.js.map +1 -0
  318. package/SkeletonTable/index.d.ts +1 -0
  319. package/SkeletonTable/index.js +10 -20
  320. package/SkeletonTable/index.js.map +1 -0
  321. package/SkeletonTable/package.json +1 -1
  322. package/Spinner/Spinner.d.ts +8 -0
  323. package/Spinner/Spinner.js +36 -39
  324. package/Spinner/Spinner.js.map +1 -0
  325. package/Spinner/index.js +10 -20
  326. package/Spinner/index.js.map +1 -0
  327. package/TabLayout/TabLayout.d.ts +28 -0
  328. package/TabLayout/TabLayout.js +46 -61
  329. package/TabLayout/TabLayout.js.map +1 -0
  330. package/TabLayout/index.d.ts +1 -0
  331. package/TabLayout/index.js +10 -20
  332. package/TabLayout/index.js.map +1 -0
  333. package/TabLayout/package.json +1 -1
  334. package/TableToolbar/TableToolbar.d.ts +27 -0
  335. package/TableToolbar/TableToolbar.js +83 -73
  336. package/TableToolbar/TableToolbar.js.map +1 -0
  337. package/TableToolbar/index.d.ts +2 -0
  338. package/TableToolbar/index.js +10 -22
  339. package/TableToolbar/index.js.map +1 -0
  340. package/TableToolbar/package.json +1 -1
  341. package/TagCount/TagCount.d.ts +10 -0
  342. package/TagCount/TagCount.js +36 -50
  343. package/TagCount/TagCount.js.map +1 -0
  344. package/TagCount/index.d.ts +2 -0
  345. package/TagCount/index.js +10 -20
  346. package/TagCount/index.js.map +1 -0
  347. package/TagCount/package.json +1 -1
  348. package/TagModal/TableWithFilter.d.ts +45 -0
  349. package/TagModal/TableWithFilter.js +148 -201
  350. package/TagModal/TableWithFilter.js.map +1 -0
  351. package/TagModal/TagModal.d.ts +54 -0
  352. package/TagModal/TagModal.js +153 -228
  353. package/TagModal/TagModal.js.map +1 -0
  354. package/TagModal/index.d.ts +2 -0
  355. package/TagModal/index.js +12 -28
  356. package/TagModal/index.js.map +1 -0
  357. package/TagModal/package.json +1 -1
  358. package/TreeTable/decorator.d.ts +14 -0
  359. package/TreeTable/decorator.js +44 -55
  360. package/TreeTable/decorator.js.map +1 -0
  361. package/TreeTable/helpers.d.ts +16 -0
  362. package/TreeTable/helpers.js +43 -55
  363. package/TreeTable/helpers.js.map +1 -0
  364. package/TreeTable/index.d.ts +4 -0
  365. package/TreeTable/index.js +22 -45
  366. package/TreeTable/index.js.map +1 -0
  367. package/TreeTable/package.json +1 -1
  368. package/TreeTable/rowWrapper.d.ts +18 -0
  369. package/TreeTable/rowWrapper.js +27 -51
  370. package/TreeTable/rowWrapper.js.map +1 -0
  371. package/Truncate/Truncate.d.ts +26 -0
  372. package/Truncate/Truncate.js +75 -116
  373. package/Truncate/Truncate.js.map +1 -0
  374. package/Truncate/index.d.ts +2 -0
  375. package/Truncate/index.js +10 -22
  376. package/Truncate/index.js.map +1 -0
  377. package/Truncate/package.json +1 -1
  378. package/Unavailable/Unavailable.d.ts +2 -0
  379. package/Unavailable/Unavailable.js +20 -38
  380. package/Unavailable/Unavailable.js.map +1 -0
  381. package/Unavailable/index.d.ts +1 -0
  382. package/Unavailable/index.js +10 -20
  383. package/Unavailable/index.js.map +1 -0
  384. package/Unavailable/package.json +1 -1
  385. package/Wizard/Wizard.d.ts +31 -0
  386. package/Wizard/Wizard.js +126 -170
  387. package/Wizard/Wizard.js.map +1 -0
  388. package/Wizard/index.d.ts +1 -0
  389. package/Wizard/index.js +10 -20
  390. package/Wizard/index.js.map +1 -0
  391. package/Wizard/package.json +1 -1
  392. package/esm/Ansible/Ansible.js +49 -74
  393. package/esm/Ansible/Ansible.js.map +1 -0
  394. package/esm/Ansible/ansible.css +19 -0
  395. package/esm/Ansible/ansible.scss +14 -0
  396. package/esm/Ansible/index.js +2 -1
  397. package/esm/Ansible/index.js.map +1 -0
  398. package/esm/AsyncComponent/index.js +31 -72
  399. package/esm/AsyncComponent/index.js.map +1 -0
  400. package/esm/Battery/Battery.js +72 -99
  401. package/esm/Battery/Battery.js.map +1 -0
  402. package/esm/Battery/CriticalBattery.js +3 -12
  403. package/esm/Battery/CriticalBattery.js.map +1 -0
  404. package/esm/Battery/HighBattery.js +3 -9
  405. package/esm/Battery/HighBattery.js.map +1 -0
  406. package/esm/Battery/LowBattery.js +3 -9
  407. package/esm/Battery/LowBattery.js.map +1 -0
  408. package/esm/Battery/MediumBattery.js +3 -9
  409. package/esm/Battery/MediumBattery.js.map +1 -0
  410. package/esm/Battery/NullBattery.js +3 -9
  411. package/esm/Battery/NullBattery.js.map +1 -0
  412. package/esm/Battery/battery.css +35 -0
  413. package/esm/Battery/battery.scss +47 -0
  414. package/esm/Battery/index.js +2 -1
  415. package/esm/Battery/index.js.map +1 -0
  416. package/esm/Breadcrumbs/Breadcrumbs.js +46 -50
  417. package/esm/Breadcrumbs/Breadcrumbs.js.map +1 -0
  418. package/esm/Breadcrumbs/ConnectedBreadcrumbs.js +45 -52
  419. package/esm/Breadcrumbs/ConnectedBreadcrumbs.js.map +1 -0
  420. package/esm/Breadcrumbs/index.js +2 -1
  421. package/esm/Breadcrumbs/index.js.map +1 -0
  422. package/esm/BulkSelect/BulkSelect.js +53 -166
  423. package/esm/BulkSelect/BulkSelect.js.map +1 -0
  424. package/esm/BulkSelect/bulk-select.css +15 -0
  425. package/esm/BulkSelect/bulk-select.scss +19 -0
  426. package/esm/BulkSelect/index.js +2 -1
  427. package/esm/BulkSelect/index.js.map +1 -0
  428. package/esm/ConditionalFilter/CheckboxFilter.js +120 -183
  429. package/esm/ConditionalFilter/CheckboxFilter.js.map +1 -0
  430. package/esm/ConditionalFilter/ConditionalFilter.js +154 -225
  431. package/esm/ConditionalFilter/ConditionalFilter.js.map +1 -0
  432. package/esm/ConditionalFilter/GroupFilter.js +124 -223
  433. package/esm/ConditionalFilter/GroupFilter.js.map +1 -0
  434. package/esm/ConditionalFilter/RadioFilter.js +100 -143
  435. package/esm/ConditionalFilter/RadioFilter.js.map +1 -0
  436. package/esm/ConditionalFilter/TextFilter.js +79 -102
  437. package/esm/ConditionalFilter/TextFilter.js.map +1 -0
  438. package/esm/ConditionalFilter/conditional-filter.css +93 -0
  439. package/esm/ConditionalFilter/conditional-filter.scss +110 -0
  440. package/esm/ConditionalFilter/conditionalFilterConstants.js +12 -11
  441. package/esm/ConditionalFilter/conditionalFilterConstants.js.map +1 -0
  442. package/esm/ConditionalFilter/group-filter.css +19 -0
  443. package/esm/ConditionalFilter/group-filter.scss +23 -0
  444. package/esm/ConditionalFilter/groupFilterConstants.js +143 -175
  445. package/esm/ConditionalFilter/groupFilterConstants.js.map +1 -0
  446. package/esm/ConditionalFilter/groupType.js +7 -6
  447. package/esm/ConditionalFilter/groupType.js.map +1 -0
  448. package/esm/ConditionalFilter/index.js +2 -1
  449. package/esm/ConditionalFilter/index.js.map +1 -0
  450. package/esm/CullingInfo/CullingInformation.css +14 -0
  451. package/esm/CullingInfo/CullingInformation.js +79 -82
  452. package/esm/CullingInfo/CullingInformation.js.map +1 -0
  453. package/esm/CullingInfo/CullingInformation.scss +10 -0
  454. package/esm/CullingInfo/index.js +2 -1
  455. package/esm/CullingInfo/index.js.map +1 -0
  456. package/esm/Dark/Dark.js +30 -0
  457. package/esm/Dark/Dark.js.map +1 -0
  458. package/esm/Dark/DarkContext.js +3 -18
  459. package/esm/Dark/DarkContext.js.map +1 -0
  460. package/esm/Dark/index.js +4 -3
  461. package/esm/Dark/index.js.map +1 -0
  462. package/esm/DateFormat/DateFormat.js +12 -34
  463. package/esm/DateFormat/DateFormat.js.map +1 -0
  464. package/esm/DateFormat/helper.js +45 -82
  465. package/esm/DateFormat/helper.js.map +1 -0
  466. package/esm/DateFormat/index.js +2 -1
  467. package/esm/DateFormat/index.js.map +1 -0
  468. package/esm/DownloadButton/DownloadButton.js +47 -124
  469. package/esm/DownloadButton/DownloadButton.js.map +1 -0
  470. package/esm/DownloadButton/index.js +2 -1
  471. package/esm/DownloadButton/index.js.map +1 -0
  472. package/esm/EmptyTable/EmptyTable.css +14 -0
  473. package/esm/EmptyTable/EmptyTable.js +35 -20
  474. package/esm/EmptyTable/EmptyTable.js.map +1 -0
  475. package/esm/EmptyTable/EmptyTable.scss +11 -0
  476. package/esm/EmptyTable/index.js +2 -1
  477. package/esm/EmptyTable/index.js.map +1 -0
  478. package/esm/ErrorState/DefaultErrorMessage.js +11 -11
  479. package/esm/ErrorState/DefaultErrorMessage.js.map +1 -0
  480. package/esm/ErrorState/ErrorState.js +36 -48
  481. package/esm/ErrorState/ErrorState.js.map +1 -0
  482. package/esm/ErrorState/error-state.css +3 -0
  483. package/esm/ErrorState/error-state.scss +5 -0
  484. package/esm/ErrorState/index.js +2 -1
  485. package/esm/ErrorState/index.js.map +1 -0
  486. package/esm/FilterChips/FilterChips.js +65 -98
  487. package/esm/FilterChips/FilterChips.js.map +1 -0
  488. package/esm/FilterChips/filter-chips.css +12 -0
  489. package/esm/FilterChips/filter-chips.scss +15 -0
  490. package/esm/FilterChips/index.js +2 -1
  491. package/esm/FilterChips/index.js.map +1 -0
  492. package/esm/FilterHooks/constants.js +102 -112
  493. package/esm/FilterHooks/constants.js.map +1 -0
  494. package/esm/FilterHooks/index.js +2 -1
  495. package/esm/FilterHooks/index.js.map +1 -0
  496. package/esm/FilterHooks/tagFilterHook.css +22 -0
  497. package/esm/FilterHooks/tagFilterHook.js +97 -120
  498. package/esm/FilterHooks/tagFilterHook.js.map +1 -0
  499. package/esm/FilterHooks/tagFilterHook.scss +21 -0
  500. package/esm/Filters/FilterDropdown.js +80 -134
  501. package/esm/Filters/FilterDropdown.js.map +1 -0
  502. package/esm/Filters/FilterInput.js +85 -143
  503. package/esm/Filters/FilterInput.js.map +1 -0
  504. package/esm/Filters/filter-dropdown.css +8 -0
  505. package/esm/Filters/filter-dropdown.scss +10 -0
  506. package/esm/Filters/index.js +2 -1
  507. package/esm/Filters/index.js.map +1 -0
  508. package/esm/Input/Input.js +36 -32
  509. package/esm/Input/Input.js.map +1 -0
  510. package/esm/Input/LabeledInput.js +35 -27
  511. package/esm/Input/LabeledInput.js.map +1 -0
  512. package/esm/Input/index.js +2 -1
  513. package/esm/Input/index.js.map +1 -0
  514. package/esm/InsightsLabel/CriticalIcon.js +5 -12
  515. package/esm/InsightsLabel/CriticalIcon.js.map +1 -0
  516. package/esm/InsightsLabel/InsightsLabel.js +36 -46
  517. package/esm/InsightsLabel/InsightsLabel.js.map +1 -0
  518. package/esm/InsightsLabel/critical-icon.css +8 -0
  519. package/esm/InsightsLabel/critical-icon.scss +8 -0
  520. package/esm/InsightsLabel/index.js +2 -1
  521. package/esm/InsightsLabel/index.js.map +1 -0
  522. package/esm/InsightsLabel/labels.css +54 -0
  523. package/esm/InsightsLabel/labels.scss +54 -0
  524. package/esm/InvalidObject/InvalidObject.js +35 -27
  525. package/esm/InvalidObject/InvalidObject.js.map +1 -0
  526. package/esm/InvalidObject/icon-404.css +15 -0
  527. package/esm/InvalidObject/icon-404.js +46 -192
  528. package/esm/InvalidObject/icon-404.js.map +1 -0
  529. package/esm/InvalidObject/icon-404.scss +11 -0
  530. package/esm/InvalidObject/index.js +2 -1
  531. package/esm/InvalidObject/index.js.map +1 -0
  532. package/esm/InvalidObject/invalidObject.css +22 -0
  533. package/esm/InvalidObject/invalidObject.scss +15 -0
  534. package/esm/Inventory/AppInfo.js +33 -44
  535. package/esm/Inventory/AppInfo.js.map +1 -0
  536. package/esm/Inventory/DetailWrapper.js +33 -44
  537. package/esm/Inventory/DetailWrapper.js.map +1 -0
  538. package/esm/Inventory/InventoryDetail.js +33 -44
  539. package/esm/Inventory/InventoryDetail.js.map +1 -0
  540. package/esm/Inventory/InventoryDetailHead.js +33 -44
  541. package/esm/Inventory/InventoryDetailHead.js.map +1 -0
  542. package/esm/Inventory/InventoryLoadError.js +24 -16
  543. package/esm/Inventory/InventoryLoadError.js.map +1 -0
  544. package/esm/Inventory/InventoryTable.js +33 -44
  545. package/esm/Inventory/InventoryTable.js.map +1 -0
  546. package/esm/Inventory/TagWithDialog.js +33 -49
  547. package/esm/Inventory/TagWithDialog.js.map +1 -0
  548. package/esm/Inventory/index.js +2 -1
  549. package/esm/Inventory/index.js.map +1 -0
  550. package/esm/LongTextTooltip/LongTextTooltip.js +62 -59
  551. package/esm/LongTextTooltip/LongTextTooltip.js.map +1 -0
  552. package/esm/LongTextTooltip/index.js +2 -1
  553. package/esm/LongTextTooltip/index.js.map +1 -0
  554. package/esm/Main/Main.js +79 -119
  555. package/esm/Main/Main.js.map +1 -0
  556. package/esm/Main/index.js +2 -1
  557. package/esm/Main/index.js.map +1 -0
  558. package/esm/Main/main.css +3 -0
  559. package/esm/Main/main.scss +3 -0
  560. package/esm/Maintenance/Maintenance.js +51 -57
  561. package/esm/Maintenance/Maintenance.js.map +1 -0
  562. package/esm/Maintenance/index.js +2 -1
  563. package/esm/Maintenance/index.js.map +1 -0
  564. package/esm/Maintenance/maintenance.css +9 -0
  565. package/esm/Maintenance/maintenance.scss +7 -0
  566. package/esm/NotAuthorized/NotAuthorized.css +5 -0
  567. package/esm/NotAuthorized/NotAuthorized.js +40 -81
  568. package/esm/NotAuthorized/NotAuthorized.js.map +1 -0
  569. package/esm/NotAuthorized/NotAuthorized.scss +7 -0
  570. package/esm/NotAuthorized/index.js +2 -1
  571. package/esm/NotAuthorized/index.js.map +1 -0
  572. package/esm/NotConnected/NotConnected.js +17 -32
  573. package/esm/NotConnected/NotConnected.js.map +1 -0
  574. package/esm/NotConnected/index.js +2 -1
  575. package/esm/NotConnected/index.js.map +1 -0
  576. package/esm/PageHeader/PageHeader.js +34 -29
  577. package/esm/PageHeader/PageHeader.js.map +1 -0
  578. package/esm/PageHeader/PageHeaderTitle.js +6 -21
  579. package/esm/PageHeader/PageHeaderTitle.js.map +1 -0
  580. package/esm/PageHeader/index.js +2 -1
  581. package/esm/PageHeader/index.js.map +1 -0
  582. package/esm/PageHeader/page-header.css +13 -0
  583. package/esm/PageHeader/page-header.scss +12 -0
  584. package/esm/Pagination/Pagination.js +82 -113
  585. package/esm/Pagination/Pagination.js.map +1 -0
  586. package/esm/Pagination/PaginationMenu.js +101 -129
  587. package/esm/Pagination/PaginationMenu.js.map +1 -0
  588. package/esm/Pagination/PaginationNav.js +72 -107
  589. package/esm/Pagination/PaginationNav.js.map +1 -0
  590. package/esm/Pagination/PaginationNext.js +71 -94
  591. package/esm/Pagination/PaginationNext.js.map +1 -0
  592. package/esm/Pagination/index.js +2 -1
  593. package/esm/Pagination/index.js.map +1 -0
  594. package/esm/Pagination/pagination.css +580 -0
  595. package/esm/Pagination/pagination.scss +15 -0
  596. package/esm/PrimaryToolbar/Actions.js +104 -154
  597. package/esm/PrimaryToolbar/Actions.js.map +1 -0
  598. package/esm/PrimaryToolbar/PrimaryToolbar.js +117 -146
  599. package/esm/PrimaryToolbar/PrimaryToolbar.js.map +1 -0
  600. package/esm/PrimaryToolbar/SortBy.js +12 -26
  601. package/esm/PrimaryToolbar/SortBy.js.map +1 -0
  602. package/esm/PrimaryToolbar/index.js +2 -1
  603. package/esm/PrimaryToolbar/index.js.map +1 -0
  604. package/esm/PrimaryToolbar/primary-toolbar.css +49 -0
  605. package/esm/PrimaryToolbar/primary-toolbar.scss +64 -0
  606. package/esm/Reboot/Reboot.js +35 -19
  607. package/esm/Reboot/Reboot.js.map +1 -0
  608. package/esm/Reboot/index.js +2 -1
  609. package/esm/Reboot/index.js.map +1 -0
  610. package/esm/Reboot/reboot.css +11 -0
  611. package/esm/Reboot/reboot.scss +12 -0
  612. package/esm/Section/Section.js +32 -22
  613. package/esm/Section/Section.js.map +1 -0
  614. package/esm/Section/index.js +2 -1
  615. package/esm/Section/index.js.map +1 -0
  616. package/esm/Section/section.css +35 -0
  617. package/esm/Section/section.scss +27 -0
  618. package/esm/Shield/Shield.js +31 -41
  619. package/esm/Shield/Shield.js.map +1 -0
  620. package/esm/Shield/consts.js +67 -73
  621. package/esm/Shield/consts.js.map +1 -0
  622. package/esm/Shield/index.js +2 -1
  623. package/esm/Shield/index.js.map +1 -0
  624. package/esm/SimpleTableFilter/SimpleTableFilter.js +111 -166
  625. package/esm/SimpleTableFilter/SimpleTableFilter.js.map +1 -0
  626. package/esm/SimpleTableFilter/index.js +2 -1
  627. package/esm/SimpleTableFilter/index.js.map +1 -0
  628. package/esm/SimpleTableFilter/simple-table-filter.css +356 -0
  629. package/esm/SimpleTableFilter/simple-table-filter.scss +18 -0
  630. package/esm/Skeleton/Skeleton.js +30 -32
  631. package/esm/Skeleton/Skeleton.js.map +1 -0
  632. package/esm/Skeleton/index.js +2 -1
  633. package/esm/Skeleton/index.js.map +1 -0
  634. package/esm/Skeleton/skeleton.css +24 -0
  635. package/esm/Skeleton/skeleton.scss +18 -0
  636. package/esm/SkeletonTable/SkeletonTable.css +3 -0
  637. package/esm/SkeletonTable/SkeletonTable.js +85 -137
  638. package/esm/SkeletonTable/SkeletonTable.js.map +1 -0
  639. package/esm/SkeletonTable/SkeletonTable.scss +3 -0
  640. package/esm/SkeletonTable/index.js +2 -1
  641. package/esm/SkeletonTable/index.js.map +1 -0
  642. package/esm/Spinner/Spinner.js +31 -24
  643. package/esm/Spinner/Spinner.js.map +1 -0
  644. package/esm/Spinner/index.js +2 -1
  645. package/esm/Spinner/index.js.map +1 -0
  646. package/esm/Spinner/spinner.css +27 -0
  647. package/esm/Spinner/spinner.scss +24 -0
  648. package/esm/TabLayout/TabLayout.js +40 -46
  649. package/esm/TabLayout/TabLayout.js.map +1 -0
  650. package/esm/TabLayout/index.js +2 -1
  651. package/esm/TabLayout/index.js.map +1 -0
  652. package/esm/TabLayout/tab-layout.css +14 -0
  653. package/esm/TabLayout/tab-layout.scss +21 -0
  654. package/esm/TableToolbar/TableToolbar.css +36 -0
  655. package/esm/TableToolbar/TableToolbar.js +57 -48
  656. package/esm/TableToolbar/TableToolbar.js.map +1 -0
  657. package/esm/TableToolbar/TableToolbar.scss +28 -0
  658. package/esm/TableToolbar/index.js +2 -1
  659. package/esm/TableToolbar/index.js.map +1 -0
  660. package/esm/TagCount/TagCount.js +32 -36
  661. package/esm/TagCount/TagCount.js.map +1 -0
  662. package/esm/TagCount/index.js +2 -1
  663. package/esm/TagCount/index.js.map +1 -0
  664. package/esm/TagCount/tagCount.css +9 -0
  665. package/esm/TagCount/tagCount.scss +9 -0
  666. package/esm/TagModal/TableWithFilter.js +123 -168
  667. package/esm/TagModal/TableWithFilter.js.map +1 -0
  668. package/esm/TagModal/TagModal.js +128 -200
  669. package/esm/TagModal/TagModal.js.map +1 -0
  670. package/esm/TagModal/index.js +2 -1
  671. package/esm/TagModal/index.js.map +1 -0
  672. package/esm/TagModal/tagModal.css +3 -0
  673. package/esm/TagModal/tagModal.scss +3 -0
  674. package/esm/TreeTable/decorator.js +41 -42
  675. package/esm/TreeTable/decorator.js.map +1 -0
  676. package/esm/TreeTable/helpers.js +40 -42
  677. package/esm/TreeTable/helpers.js.map +1 -0
  678. package/esm/TreeTable/index.js +2 -1
  679. package/esm/TreeTable/index.js.map +1 -0
  680. package/esm/TreeTable/rowWrapper.js +21 -36
  681. package/esm/TreeTable/rowWrapper.js.map +1 -0
  682. package/esm/TreeTable/styles.css +338 -0
  683. package/esm/TreeTable/styles.scss +278 -0
  684. package/esm/Truncate/Truncate.js +50 -87
  685. package/esm/Truncate/Truncate.js.map +1 -0
  686. package/esm/Truncate/index.js +2 -1
  687. package/esm/Truncate/index.js.map +1 -0
  688. package/esm/Truncate/truncate.css +12 -0
  689. package/esm/Truncate/truncate.scss +5 -0
  690. package/esm/Unavailable/Unavailable.css +3 -0
  691. package/esm/Unavailable/Unavailable.js +16 -24
  692. package/esm/Unavailable/Unavailable.js.map +1 -0
  693. package/esm/Unavailable/Unavailable.scss +3 -0
  694. package/esm/Unavailable/index.js +2 -1
  695. package/esm/Unavailable/index.js.map +1 -0
  696. package/esm/Wizard/Wizard.js +102 -149
  697. package/esm/Wizard/Wizard.js.map +1 -0
  698. package/esm/Wizard/index.js +2 -1
  699. package/esm/Wizard/index.js.map +1 -0
  700. package/esm/Wizard/wizard.css +7 -0
  701. package/esm/Wizard/wizard.scss +7 -0
  702. package/esm/index.css +1902 -0
  703. package/esm/index.js +2 -1
  704. package/esm/index.js.map +1 -0
  705. package/esm/index.scss +32 -0
  706. package/esm/useChrome/index.js +2 -1
  707. package/esm/useChrome/index.js.map +1 -0
  708. package/esm/useChrome/useChrome.js +22 -23
  709. package/esm/useChrome/useChrome.js.map +1 -0
  710. package/esm/usePendoFeedback/index.js +2 -1
  711. package/esm/usePendoFeedback/index.js.map +1 -0
  712. package/esm/usePendoFeedback/usePendoFeedback.js +14 -18
  713. package/esm/usePendoFeedback/usePendoFeedback.js.map +1 -0
  714. package/esm/useScreenSize/breakpoints.js +8 -7
  715. package/esm/useScreenSize/breakpoints.js.map +1 -0
  716. package/esm/useScreenSize/getVariant.js +12 -20
  717. package/esm/useScreenSize/getVariant.js.map +1 -0
  718. package/esm/useScreenSize/index.js +2 -1
  719. package/esm/useScreenSize/index.js.map +1 -0
  720. package/esm/useScreenSize/isSmallScreen.js +3 -6
  721. package/esm/useScreenSize/isSmallScreen.js.map +1 -0
  722. package/esm/useScreenSize/useScreenSize.js +17 -29
  723. package/esm/useScreenSize/useScreenSize.js.map +1 -0
  724. package/index.d.ts +39 -0
  725. package/index.js +51 -511
  726. package/index.js.map +1 -0
  727. package/package.json +7 -6
  728. package/tsconfig.cjs.json +8 -0
  729. package/useChrome/index.d.ts +2 -0
  730. package/useChrome/index.js +10 -20
  731. package/useChrome/index.js.map +1 -0
  732. package/useChrome/package.json +1 -1
  733. package/useChrome/useChrome.d.ts +130 -0
  734. package/useChrome/useChrome.js +24 -33
  735. package/useChrome/useChrome.js.map +1 -0
  736. package/usePendoFeedback/index.d.ts +2 -0
  737. package/usePendoFeedback/index.js +10 -20
  738. package/usePendoFeedback/index.js.map +1 -0
  739. package/usePendoFeedback/package.json +1 -1
  740. package/usePendoFeedback/usePendoFeedback.d.ts +2 -0
  741. package/usePendoFeedback/usePendoFeedback.js +18 -27
  742. package/usePendoFeedback/usePendoFeedback.js.map +1 -0
  743. package/useScreenSize/breakpoints.d.ts +9 -0
  744. package/useScreenSize/breakpoints.js +18 -28
  745. package/useScreenSize/breakpoints.js.map +1 -0
  746. package/useScreenSize/getVariant.d.ts +2 -0
  747. package/useScreenSize/getVariant.js +17 -31
  748. package/useScreenSize/getVariant.js.map +1 -0
  749. package/useScreenSize/index.d.ts +5 -0
  750. package/useScreenSize/index.js +16 -44
  751. package/useScreenSize/index.js.map +1 -0
  752. package/useScreenSize/isSmallScreen.d.ts +3 -0
  753. package/useScreenSize/isSmallScreen.js +7 -15
  754. package/useScreenSize/isSmallScreen.js.map +1 -0
  755. package/useScreenSize/package.json +1 -1
  756. package/useScreenSize/useScreenSize.d.ts +2 -0
  757. package/useScreenSize/useScreenSize.js +23 -42
  758. package/useScreenSize/useScreenSize.js.map +1 -0
  759. package/Dark/configContext.js +0 -15
  760. package/esm/Dark/configContext.js +0 -3
@@ -1,52 +1,40 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
3
23
  import React from 'react';
4
- import { Stack } from "@patternfly/react-core/dist/esm/layouts/Stack/Stack.js";
5
- import { StackItem } from "@patternfly/react-core/dist/esm/layouts/Stack/StackItem.js";
6
24
  import { ExclamationCircleIcon } from '@patternfly/react-icons/';
7
25
  import DefaultErrorMessage from './DefaultErrorMessage';
8
- import propTypes from 'prop-types';
9
- import { Title } from "@patternfly/react-core/dist/esm/components/Title/Title.js";
10
- import { EmptyState } from "@patternfly/react-core/dist/esm/components/EmptyState/EmptyState.js";
11
- import { EmptyStateVariant } from "@patternfly/react-core/dist/esm/components/EmptyState/EmptyState.js";
12
- import { EmptyStateIcon } from "@patternfly/react-core/dist/esm/components/EmptyState/EmptyStateIcon.js";
13
- import { EmptyStateBody } from "@patternfly/react-core/dist/esm/components/EmptyState/EmptyStateBody.js";
14
- import { Button } from "@patternfly/react-core/dist/esm/components/Button/Button.js";
15
- import "../../ErrorState/./error-state.css";
16
-
17
- var ErrorState = function ErrorState(_ref) {
18
- var errorTitle = _ref.errorTitle,
19
- errorDescription = _ref.errorDescription,
20
- props = _objectWithoutProperties(_ref, ["errorTitle", "errorDescription"]);
21
-
22
- return /*#__PURE__*/React.createElement(EmptyState, _extends({
23
- variant: EmptyStateVariant.large
24
- }, props, {
25
- className: "ins-c-error-state"
26
- }), /*#__PURE__*/React.createElement(EmptyStateIcon, {
27
- icon: ExclamationCircleIcon
28
- }), /*#__PURE__*/React.createElement(Title, {
29
- headingLevel: "h4",
30
- size: "lg"
31
- }, errorTitle), /*#__PURE__*/React.createElement(EmptyStateBody, null, /*#__PURE__*/React.createElement(Stack, null, !errorDescription && /*#__PURE__*/React.createElement(StackItem, null, "There was a problem processing the request. Please try again."), /*#__PURE__*/React.createElement(StackItem, null, errorDescription || /*#__PURE__*/React.createElement(DefaultErrorMessage, null)))), document.referrer ? /*#__PURE__*/React.createElement(Button, {
32
- variant: "primary",
33
- onClick: function onClick() {
34
- return history.back();
35
- }
36
- }, "Return to last page") : /*#__PURE__*/React.createElement(Button, {
37
- variant: "primary",
38
- component: "a",
39
- href: ".",
40
- target: "_blank",
41
- rel: "noopener noreferrer"
42
- }, "Go to home page"));
43
- };
44
-
45
- ErrorState.propTypes = {
46
- errorTitle: propTypes.string,
47
- errorDescription: propTypes.string
48
- };
49
- ErrorState.defaultProps = {
50
- errorTitle: 'Something went wrong'
26
+ import { Title, EmptyState, EmptyStateVariant, EmptyStateIcon, EmptyStateBody, Button, Stack, StackItem, } from '@patternfly/react-core';
27
+ import './error-state.css';
28
+ var ErrorState = function (_a) {
29
+ var _b = _a.errorTitle, errorTitle = _b === void 0 ? 'Something went wrong' : _b, errorDescription = _a.errorDescription, props = __rest(_a, ["errorTitle", "errorDescription"]);
30
+ return (React.createElement(EmptyState, __assign({ variant: EmptyStateVariant.large }, props, { className: "ins-c-error-state" }),
31
+ React.createElement(EmptyStateIcon, { icon: ExclamationCircleIcon }),
32
+ React.createElement(Title, { headingLevel: "h4", size: "lg" }, errorTitle),
33
+ React.createElement(EmptyStateBody, null,
34
+ React.createElement(Stack, null,
35
+ !errorDescription && React.createElement(StackItem, null, "There was a problem processing the request. Please try again."),
36
+ React.createElement(StackItem, null, errorDescription || React.createElement(DefaultErrorMessage, null)))),
37
+ document.referrer ? (React.createElement(Button, { variant: "primary", onClick: function () { return history.back(); } }, "Return to last page")) : (React.createElement(Button, { variant: "primary", component: "a", href: ".", target: "_blank", rel: "noopener noreferrer" }, "Go to home page"))));
51
38
  };
52
- export default ErrorState;
39
+ export default ErrorState;
40
+ //# sourceMappingURL=ErrorState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorState.js","sourceRoot":"","sources":["../../src/ErrorState/ErrorState.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,EACL,KAAK,EACL,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,MAAM,EAEN,KAAK,EACL,SAAS,GACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,oBAAoB,CAAC;AAO5B,IAAM,UAAU,GAA6C,UAAC,EAAmE;IAAjE,IAAA,kBAAmC,EAAnC,UAAU,mBAAG,sBAAsB,KAAA,EAAE,gBAAgB,sBAAA,EAAK,KAAK,cAAjE,kCAAmE,CAAF;IAC7H,OAAO,CACL,oBAAC,UAAU,aAAC,OAAO,EAAE,iBAAiB,CAAC,KAAK,IAAM,KAAK,IAAE,SAAS,EAAC,mBAAmB;QACpF,oBAAC,cAAc,IAAC,IAAI,EAAE,qBAAqB,GAAI;QAC/C,oBAAC,KAAK,IAAC,YAAY,EAAC,IAAI,EAAC,IAAI,EAAC,IAAI,IAC/B,UAAU,CACL;QACR,oBAAC,cAAc;YACb,oBAAC,KAAK;gBACH,CAAC,gBAAgB,IAAI,oBAAC,SAAS,wEAA0E;gBAC1G,oBAAC,SAAS,QAAE,gBAAgB,IAAI,oBAAC,mBAAmB,OAAG,CAAa,CAC9D,CACO;QAChB,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CACnB,oBAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,cAAM,OAAA,OAAO,CAAC,IAAI,EAAE,EAAd,CAAc,0BAE9C,CACV,CAAC,CAAC,CAAC,CACF,oBAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,SAAS,EAAC,GAAG,EAAC,IAAI,EAAC,GAAG,EAAC,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,sBAEjF,CACV,CACU,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ .ins-c-error-state.pf-c-empty-state .pf-c-empty-state__icon {
2
+ fill: var(--pf-global--danger-color--100);
3
+ }
@@ -0,0 +1,5 @@
1
+ .ins-c-error-state.pf-c-empty-state {
2
+ .pf-c-empty-state__icon {
3
+ fill: var(--pf-global--danger-color--100);
4
+ }
5
+ }
@@ -1,3 +1,4 @@
1
1
  export { default } from './ErrorState';
2
2
  export { default as ErrorState } from './ErrorState';
3
- export { default as DefaultErrorMessage } from './DefaultErrorMessage';
3
+ export { default as DefaultErrorMessage } from './DefaultErrorMessage';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ErrorState/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,106 +1,73 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
-
4
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
5
-
6
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
7
-
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
8
12
  import React from 'react';
9
13
  import PropTypes from 'prop-types';
10
- import { Badge } from "@patternfly/react-core/dist/esm/components/Badge/Badge.js";
11
- import { Chip } from "@patternfly/react-core/dist/esm/components/ChipGroup/Chip.js";
12
- import { ChipGroup } from "@patternfly/react-core/dist/esm/components/ChipGroup/ChipGroup.js";
13
- import { Button } from "@patternfly/react-core/dist/esm/components/Button/Button.js";
14
+ import { Badge, Chip, ChipGroup, Button } from '@patternfly/react-core';
14
15
  import classNames from 'classnames';
15
- import "../../FilterChips/./filter-chips.css";
16
-
17
- var FilterChips = function FilterChips(_ref) {
18
- var className = _ref.className,
19
- filters = _ref.filters,
20
- onDelete = _ref.onDelete,
21
- deleteTitle = _ref.deleteTitle,
22
- showDeleteButton = _ref.showDeleteButton,
23
- onDeleteGroup = _ref.onDeleteGroup;
24
- var groups = filters.filter(function (group) {
25
- return Object.prototype.hasOwnProperty.call(group, 'category');
26
- });
27
- var groupedFilters = groups.map(function (group, groupKey) {
28
- return /*#__PURE__*/React.createElement(ChipGroup, _extends({
29
- key: "group_".concat(group.category),
30
- categoryName: String(group.category) || ' '
31
- }, onDeleteGroup && {
32
- isClosable: true,
33
- onClick: function onClick(event) {
34
- event.stopPropagation();
35
- onDeleteGroup(event, [group], groups.filter(function (_item, key) {
36
- return key !== groupKey;
37
- }));
38
- }
39
- }), group.chips.map(function (chip) {
40
- return /*#__PURE__*/React.createElement(Chip, {
41
- key: chip.name,
42
- onClick: function onClick(event) {
43
- event.stopPropagation();
44
- onDelete(event, [_objectSpread(_objectSpread({}, group), {}, {
45
- chips: [chip]
46
- })]);
47
- }
48
- }, chip.name, chip.count && /*#__PURE__*/React.createElement(Badge, {
49
- key: "chip_badge_".concat(chip.id),
50
- isRead: chip.isRead
51
- }, chip.count));
52
- }));
53
- });
54
- var plainFilters = filters.filter(function (group) {
55
- return !Object.prototype.hasOwnProperty.call(group, 'category');
56
- });
57
- return /*#__PURE__*/React.createElement("span", {
58
- className: classNames(className, 'ins-c-chip-filters')
59
- }, groupedFilters, plainFilters && plainFilters.map(function (chip) {
60
- return /*#__PURE__*/React.createElement(ChipGroup, {
61
- key: "group_plain_chip_".concat(chip.name)
62
- }, /*#__PURE__*/React.createElement(Chip, {
63
- onClick: function onClick(event) {
64
- event.stopPropagation();
65
- onDelete(event, [chip]);
66
- }
67
- }, chip.name, chip.count && /*#__PURE__*/React.createElement(Badge, {
68
- key: "chip_badge_".concat(chip.id),
69
- isRead: chip.isRead
70
- }, chip.count)));
71
- }), (showDeleteButton === true || showDeleteButton === undefined && filters.length > 0) && /*#__PURE__*/React.createElement(Button, {
72
- variant: "link",
73
- ouiaId: "ClearFilters",
74
- onClick: function onClick(event) {
75
- return onDelete(event, filters, true);
76
- }
77
- }, deleteTitle));
16
+ import './filter-chips.css';
17
+ var FilterChips = function (_a) {
18
+ var className = _a.className, filters = _a.filters, onDelete = _a.onDelete, deleteTitle = _a.deleteTitle, showDeleteButton = _a.showDeleteButton, onDeleteGroup = _a.onDeleteGroup;
19
+ var groups = filters.filter(function (group) { return Object.prototype.hasOwnProperty.call(group, 'category'); });
20
+ var groupedFilters = groups.map(function (group, groupKey) { return (React.createElement(ChipGroup, __assign({ key: "group_".concat(group.category), categoryName: String(group.category) || ' ' }, (onDeleteGroup && {
21
+ isClosable: true,
22
+ onClick: function (event) {
23
+ event.stopPropagation();
24
+ onDeleteGroup(event, [group], groups.filter(function (_item, key) { return key !== groupKey; }));
25
+ },
26
+ })), group.chips.map(function (chip) { return (React.createElement(Chip, { key: chip.name, onClick: function (event) {
27
+ event.stopPropagation();
28
+ onDelete(event, [__assign(__assign({}, group), { chips: [chip] })]);
29
+ } },
30
+ chip.name,
31
+ chip.count && (React.createElement(Badge, { key: "chip_badge_".concat(chip.id), isRead: chip.isRead }, chip.count)))); }))); });
32
+ var plainFilters = filters.filter(function (group) { return !Object.prototype.hasOwnProperty.call(group, 'category'); });
33
+ return (React.createElement("span", { className: classNames(className, 'ins-c-chip-filters') },
34
+ groupedFilters,
35
+ plainFilters &&
36
+ plainFilters.map(function (chip) { return (React.createElement(ChipGroup, { key: "group_plain_chip_".concat(chip.name) },
37
+ React.createElement(Chip, { onClick: function (event) {
38
+ event.stopPropagation();
39
+ onDelete(event, [chip]);
40
+ } },
41
+ chip.name,
42
+ chip.count && (React.createElement(Badge, { key: "chip_badge_".concat(chip.id), isRead: chip.isRead }, chip.count))))); }),
43
+ (showDeleteButton === true || (showDeleteButton === undefined && filters.length > 0)) && (React.createElement(Button, { variant: "link", ouiaId: "ClearFilters", onClick: function (event) { return onDelete(event, filters, true); } }, deleteTitle))));
78
44
  };
79
-
80
45
  FilterChips.propTypes = {
81
- className: PropTypes.string,
82
- filters: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape({
83
- category: PropTypes.string.isRequired,
84
- chips: PropTypes.arrayOf(PropTypes.shape({
85
- name: PropTypes.string.isRequired,
86
- isRead: PropTypes.bool,
87
- count: PropTypes.number
88
- })).isRequired
89
- }), PropTypes.shape({
90
- name: PropTypes.string.isRequired,
91
- isRead: PropTypes.bool,
92
- count: PropTypes.number
93
- })])),
94
- onDelete: PropTypes.func,
95
- onDeleteGroup: PropTypes.func,
96
- deleteTitle: PropTypes.node,
97
- showDeleteButton: PropTypes.bool
46
+ className: PropTypes.string,
47
+ filters: PropTypes.arrayOf(PropTypes.oneOfType([
48
+ PropTypes.shape({
49
+ category: PropTypes.string.isRequired,
50
+ chips: PropTypes.arrayOf(PropTypes.shape({
51
+ name: PropTypes.string.isRequired,
52
+ isRead: PropTypes.bool,
53
+ count: PropTypes.number,
54
+ })).isRequired,
55
+ }),
56
+ PropTypes.shape({
57
+ name: PropTypes.string.isRequired,
58
+ isRead: PropTypes.bool,
59
+ count: PropTypes.number,
60
+ }),
61
+ ])),
62
+ onDelete: PropTypes.func,
63
+ onDeleteGroup: PropTypes.func,
64
+ deleteTitle: PropTypes.node,
65
+ showDeleteButton: PropTypes.bool,
98
66
  };
99
67
  FilterChips.defaultProps = {
100
- filters: [],
101
- onDelete: function onDelete() {
102
- return undefined;
103
- },
104
- deleteTitle: 'Clear filters'
68
+ filters: [],
69
+ onDelete: function () { return undefined; },
70
+ deleteTitle: 'Clear filters',
105
71
  };
106
- export default FilterChips;
72
+ export default FilterChips;
73
+ //# sourceMappingURL=FilterChips.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterChips.js","sourceRoot":"","sources":["../../src/FilterChips/FilterChips.js"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,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}
6
+ .ins-c-chip-filters .ins-c-chip-group__plain.pf-m-toolbar > li:not(.pf-m-overflow) h4 {
7
+ display: none;
8
+ }
9
+
10
+ .ins-c-chip-filters .pf-c-chip-group:not(:last-child) {
11
+ margin-right: var(--pf-global--spacer--sm);
12
+ }
@@ -0,0 +1,15 @@
1
+ .ins-c-chip-filters .ins-c-chip-group__plain.pf-m-toolbar > li:not(.pf-m-overflow) {
2
+ background: none;
3
+ padding: 0;
4
+ background-color: initial;
5
+
6
+ h4 {
7
+ display: none;
8
+ }
9
+ }
10
+
11
+ .ins-c-chip-filters {
12
+ .pf-c-chip-group:not(:last-child) {
13
+ margin-right: var(--pf-global--spacer--sm);
14
+ }
15
+ }
@@ -1,2 +1,3 @@
1
1
  export { default } from './FilterChips';
2
- export { default as FilterChips } from './FilterChips';
2
+ export { default as FilterChips } from './FilterChips';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/FilterChips/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -1,116 +1,106 @@
1
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
4
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
5
-
6
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
7
-
8
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
9
-
10
- import React from 'react';
11
- import { Badge } from "@patternfly/react-core/dist/esm/components/Badge/Badge.js";
12
- import { Tooltip } from "@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js";
13
- export function mapGroups(currSelection) {
14
- var valuesKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'values';
15
- return Object.entries(currSelection || {}).reduce(function (acc, _ref) {
16
- var _ref2 = _slicedToArray(_ref, 2),
17
- groupKey = _ref2[0],
18
- groupValue = _ref2[1];
19
-
20
- var values = constructValues(groupValue, groupKey);
21
-
22
- if (values.length > 0) {
23
- var _values$, _values$$group, _values$2, _values$2$group;
24
-
25
- return [].concat(_toConsumableArray(acc), [_defineProperty({
26
- type: 'tags',
27
- key: groupKey,
28
- category: ((_values$ = values[0]) === null || _values$ === void 0 ? void 0 : (_values$$group = _values$.group) === null || _values$$group === void 0 ? void 0 : _values$$group.value) || ((_values$2 = values[0]) === null || _values$2 === void 0 ? void 0 : (_values$2$group = _values$2.group) === null || _values$2$group === void 0 ? void 0 : _values$2$group.label)
29
- }, valuesKey, values)]);
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
24
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
25
+ if (ar || !(i in from)) {
26
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
27
+ ar[i] = from[i];
28
+ }
30
29
  }
31
-
32
- return acc;
33
- }, []);
34
- }
30
+ return to.concat(ar || Array.prototype.slice.call(from));
31
+ };
32
+ import React from 'react';
33
+ import { Badge, Tooltip } from '@patternfly/react-core';
35
34
  export function constructValues(groupValue, groupKey) {
36
- return Object.entries(groupValue || {}).reduce(function (acc, _ref4) {
37
- var _ref5 = _slicedToArray(_ref4, 2),
38
- key = _ref5[0],
39
- _ref5$ = _ref5[1],
40
- isSelected = _ref5$.isSelected,
41
- group = _ref5$.group,
42
- value = _ref5$.value,
43
- item = _ref5$.item;
44
-
45
- if (isSelected) {
46
- var _item$meta;
47
-
48
- var _ref6 = (item === null || item === void 0 ? void 0 : (_item$meta = item.meta) === null || _item$meta === void 0 ? void 0 : _item$meta.tag) || {
49
- key: (item === null || item === void 0 ? void 0 : item.tagKey) || groupKey,
50
- value: value || (item === null || item === void 0 ? void 0 : item.tagValue)
51
- },
52
- tagKey = _ref6.key,
53
- tagValue = _ref6.value;
54
-
55
- return [].concat(_toConsumableArray(acc), [{
56
- key: key,
57
- tagKey: tagKey,
58
- value: tagValue,
59
- name: "".concat(tagKey).concat(tagValue ? "=".concat(tagValue) : ''),
60
- group: _objectSpread({
61
- value: groupKey
62
- }, group)
63
- }]);
64
- }
65
-
66
- return acc;
67
- }, []);
35
+ return Object.entries(groupValue || {}).reduce(function (acc, curr) {
36
+ var _a;
37
+ var key = curr[0], _b = curr[1], isSelected = _b.isSelected, group = _b.group, value = _b.value, item = _b.item;
38
+ if (isSelected) {
39
+ var _c = ((_a = item === null || item === void 0 ? void 0 : item.meta) === null || _a === void 0 ? void 0 : _a.tag) || {
40
+ key: (item === null || item === void 0 ? void 0 : item.tagKey) || groupKey,
41
+ value: value || (item === null || item === void 0 ? void 0 : item.tagValue),
42
+ }, tagKey = _c.key, tagValue = _c.value;
43
+ return __spreadArray(__spreadArray([], acc, true), [
44
+ {
45
+ key: key,
46
+ tagKey: tagKey,
47
+ value: tagValue,
48
+ name: "".concat(tagKey).concat(tagValue ? "=".concat(tagValue) : ''),
49
+ group: __assign({ value: groupKey }, group),
50
+ },
51
+ ], false);
52
+ }
53
+ return acc;
54
+ }, []);
55
+ }
56
+ export function mapGroups(currSelection, valuesKey) {
57
+ if (valuesKey === void 0) { valuesKey = 'values'; }
58
+ return Object.entries(currSelection || {}).reduce(function (acc, _a) {
59
+ var _b;
60
+ var _c, _d, _e, _f;
61
+ var groupKey = _a[0], groupValue = _a[1];
62
+ var values = constructValues(groupValue, groupKey);
63
+ if (values.length > 0) {
64
+ return __spreadArray(__spreadArray([], acc, true), [
65
+ (_b = {
66
+ type: 'tags',
67
+ key: groupKey,
68
+ category: ((_d = (_c = values[0]) === null || _c === void 0 ? void 0 : _c.group) === null || _d === void 0 ? void 0 : _d.value) || ((_f = (_e = values[0]) === null || _e === void 0 ? void 0 : _e.group) === null || _f === void 0 ? void 0 : _f.label)
69
+ },
70
+ _b[valuesKey] = values,
71
+ _b),
72
+ ], false);
73
+ }
74
+ return acc;
75
+ }, []);
68
76
  }
69
- export function constructGroups(allTags) {
70
- var item = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'item';
71
- return allTags.map(function (_ref7) {
72
- var name = _ref7.name,
73
- tags = _ref7.tags,
74
- _ref7$type = _ref7.type,
75
- type = _ref7$type === void 0 ? 'checkbox' : _ref7$type,
76
- rest = _objectWithoutProperties(_ref7, ["name", "tags", "type"]);
77
-
78
- return _objectSpread(_objectSpread({}, rest), {}, {
79
- label: name,
80
- value: name,
81
- type: type,
82
- items: tags.map(function (_ref8) {
83
- var count = _ref8.count,
84
- _ref8$tag = _ref8.tag,
85
- tagKey = _ref8$tag.key,
86
- value = _ref8$tag.value;
87
- var tagText = "".concat(tagKey).concat(value ? "=".concat(value) : '');
88
- return {
89
- className: 'ins-c-tagfilter__option',
90
- label: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
91
- content: tagText
92
- }, /*#__PURE__*/React.createElement("div", {
93
- className: "ins-c-tagfilter__option-value"
94
- }, tagText)), count !== undefined && /*#__PURE__*/React.createElement(Tooltip, {
95
- position: "right",
96
- enableFlip: true,
97
- content: "Applicable to ".concat(count, " ").concat(item).concat(count === 1 ? '' : 's', ".")
98
- }, /*#__PURE__*/React.createElement(Badge, {
99
- isRead: count <= 0
100
- }, count))),
101
- meta: {
102
- count: count,
103
- tag: {
104
- key: tagKey,
105
- value: value
106
- }
107
- },
108
- id: "".concat(tagKey, "-").concat(value),
109
- tagKey: tagKey,
110
- value: tagText,
111
- tagValue: value
112
- };
113
- })
77
+ export function constructGroups(allTags, item) {
78
+ if (item === void 0) { item = 'item'; }
79
+ return allTags.map(function (_a) {
80
+ var name = _a.name, tags = _a.tags, _b = _a.type, type = _b === void 0 ? 'checkbox' : _b, rest = __rest(_a, ["name", "tags", "type"]);
81
+ return (__assign(__assign({}, rest), { label: name, value: name, type: type, items: tags.map(function (_a) {
82
+ var count = _a.count, _b = _a.tag, tagKey = _b.key, value = _b.value;
83
+ var tagText = "".concat(tagKey).concat(value ? "=".concat(value) : '');
84
+ return {
85
+ className: 'ins-c-tagfilter__option',
86
+ label: (React.createElement(React.Fragment, null,
87
+ React.createElement(Tooltip, { content: tagText },
88
+ React.createElement("div", { className: "ins-c-tagfilter__option-value" }, tagText)),
89
+ count !== undefined && (React.createElement(Tooltip, { position: "right", enableFlip: true, content: "Applicable to ".concat(count, " ").concat(item).concat(count === 1 ? '' : 's', ".") },
90
+ React.createElement(Badge, { isRead: count <= 0 }, count))))),
91
+ meta: {
92
+ count: count,
93
+ tag: {
94
+ key: tagKey,
95
+ value: value,
96
+ },
97
+ },
98
+ id: "".concat(tagKey, "-").concat(value),
99
+ tagKey: tagKey,
100
+ value: tagText,
101
+ tagValue: value,
102
+ };
103
+ }) }));
114
104
  });
115
- });
116
- }
105
+ }
106
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/FilterHooks/constants.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AA6CxD,MAAM,UAAU,eAAe,CAAC,UAAsB,EAAE,QAAgB;IACtE,OAAO,MAAM,CAAC,OAAO,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,MAAM,CAAwB,UAAC,GAAG,EAAE,IAAI;;QACvE,IAAA,GAAG,GAAwC,IAAI,GAA5C,EAAE,KAAsC,IAAI,GAAR,EAAhC,UAAU,gBAAA,EAAE,KAAK,WAAA,EAAE,KAAK,WAAA,EAAE,IAAI,UAAE,CAAS;QACvD,IAAI,UAAU,EAAE;YACR,IAAA,KAAmC,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,0CAAE,GAAG,KAAI;gBAC1D,GAAG,EAAE,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,KAAI,QAAQ;gBAC7B,KAAK,EAAE,KAAK,KAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,CAAA;aAC/B,EAHY,MAAM,SAAA,EAAS,QAAQ,WAGnC,CAAC;YACF,uCACK,GAAG;gBACN;oBACE,GAAG,KAAA;oBACH,MAAM,QAAA;oBACN,KAAK,EAAE,QAAQ;oBACf,IAAI,EAAE,UAAG,MAAM,SAA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,IAAI,MAAA,EACJ,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,UAAC,EAAsC;oBAApC,KAAK,WAAA,EAAE,WAA2B,EAAf,MAAM,SAAA,EAAE,KAAK,WAAA;gBACjD,IAAM,OAAO,GAAG,UAAG,MAAM,SAAG,KAAK,CAAC,CAAC,CAAC,WAAI,KAAK,CAAE,CAAC,CAAC,CAAC,EAAE,CAAE,CAAC;gBACvD,OAAO;oBACL,SAAS,EAAE,yBAAyB;oBACpC,KAAK,EAAE,CACL,oBAAC,KAAK,CAAC,QAAQ;wBACb,oBAAC,OAAO,IAAC,OAAO,EAAE,OAAO;4BACvB,6BAAK,SAAS,EAAC,+BAA+B,IAAE,OAAO,CAAO,CACtD;wBACT,KAAK,KAAK,SAAS,IAAI,CACtB,oBAAC,OAAO,IAAC,QAAQ,EAAC,OAAO,EAAC,UAAU,QAAC,OAAO,EAAE,wBAAiB,KAAK,cAAI,IAAI,SAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,MAAG;4BACtG,oBAAC,KAAK,IAAC,MAAM,EAAE,KAAK,IAAI,CAAC,IAAG,KAAK,CAAS,CAClC,CACX,CACc,CAClB;oBACD,IAAI,EAAE;wBACJ,KAAK,OAAA;wBACL,GAAG,EAAE;4BACH,GAAG,EAAE,MAAM;4BACX,KAAK,OAAA;yBACN;qBACF;oBACD,EAAE,EAAE,UAAG,MAAM,cAAI,KAAK,CAAE;oBACxB,MAAM,QAAA;oBACN,KAAK,EAAE,OAAO;oBACd,QAAQ,EAAE,KAAK;iBAChB,CAAC;YACJ,CAAC,CAAC,IACF,CAAA;KAAA,CAAC,CAAC;AACN,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export { useTagsFilter as default } from './tagFilterHook';
2
2
  export * from './tagFilterHook';
3
- export * from './constants';
3
+ export * from './constants';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/FilterHooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC3D,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,22 @@
1
+ .ins-c-tagfilter .ins-c-tagfilter__option label {
2
+ display: flex;
3
+ width: 100%;
4
+ }
5
+ .ins-c-tagfilter .ins-c-tagfilter__option label .ins-c-tagfilter__option-value {
6
+ max-width: 12.5rem;
7
+ overflow: hidden;
8
+ text-overflow: ellipsis;
9
+ }
10
+ .ins-c-tagfilter .ins-c-tagfilter__option label .pf-c-badge {
11
+ margin-left: auto;
12
+ padding-top: 0.2;
13
+ }
14
+ .ins-c-tagfilter .pf-c-select__menu-group-title:empty {
15
+ display: none;
16
+ }
17
+ .ins-c-tagfilter .pf-c-select__menu > div {
18
+ padding-top: 0;
19
+ }
20
+ .ins-c-tagfilter.pf-m-expanded {
21
+ width: 18.75rem !important;
22
+ }