@flightctl/ui-components 0.7.2 → 0.8.0-rc2

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 (410) hide show
  1. package/dist/src/components/DetailsPage/DetailsPageActions.d.ts +1 -1
  2. package/dist/src/components/DetailsPage/DetailsPageActions.d.ts.map +1 -1
  3. package/dist/src/components/DetailsPage/DetailsPageActions.js +1 -1
  4. package/dist/src/components/DetailsPage/DetailsPageActions.js.map +1 -1
  5. package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.d.ts.map +1 -1
  6. package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.js +18 -14
  7. package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.js.map +1 -1
  8. package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts.map +1 -1
  9. package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js +10 -11
  10. package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js.map +1 -1
  11. package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.d.ts.map +1 -1
  12. package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js +31 -10
  13. package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js.map +1 -1
  14. package/dist/src/components/Device/DevicesPage/DecommissionedDevicesTable.js +2 -2
  15. package/dist/src/components/Device/DevicesPage/DecommissionedDevicesTable.js.map +1 -1
  16. package/dist/src/components/Device/DevicesPage/EnrolledDevicesTable.js +2 -2
  17. package/dist/src/components/Device/DevicesPage/EnrolledDevicesTable.js.map +1 -1
  18. package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.d.ts.map +1 -1
  19. package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js +4 -2
  20. package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js.map +1 -1
  21. package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts.map +1 -1
  22. package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js +30 -5
  23. package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js.map +1 -1
  24. package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.d.ts +2 -1
  25. package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.d.ts.map +1 -1
  26. package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.js +6 -5
  27. package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.js.map +1 -1
  28. package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.d.ts +3 -2
  29. package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.d.ts.map +1 -1
  30. package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js +13 -9
  31. package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js.map +1 -1
  32. package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts +3 -1
  33. package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts.map +1 -1
  34. package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js +20 -17
  35. package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js.map +1 -1
  36. package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts +2 -1
  37. package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts.map +1 -1
  38. package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js +18 -14
  39. package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js.map +1 -1
  40. package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts +2 -1
  41. package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts.map +1 -1
  42. package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.js +20 -15
  43. package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.js.map +1 -1
  44. package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.d.ts +3 -1
  45. package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.d.ts.map +1 -1
  46. package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.js +34 -20
  47. package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.js.map +1 -1
  48. package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts +2 -1
  49. package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts.map +1 -1
  50. package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js +14 -15
  51. package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js.map +1 -1
  52. package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.d.ts +3 -1
  53. package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.d.ts.map +1 -1
  54. package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.js +6 -36
  55. package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.js.map +1 -1
  56. package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.js +1 -1
  57. package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.js.map +1 -1
  58. package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.js +1 -1
  59. package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.js.map +1 -1
  60. package/dist/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.js +2 -2
  61. package/dist/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.js.map +1 -1
  62. package/dist/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.d.ts +4 -2
  63. package/dist/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.d.ts.map +1 -1
  64. package/dist/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.js +19 -1
  65. package/dist/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.js.map +1 -1
  66. package/dist/src/components/Device/EditDeviceWizard/utils.d.ts +2 -16
  67. package/dist/src/components/Device/EditDeviceWizard/utils.d.ts.map +1 -1
  68. package/dist/src/components/Device/EditDeviceWizard/utils.js +3 -3
  69. package/dist/src/components/Device/EditDeviceWizard/utils.js.map +1 -1
  70. package/dist/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.d.ts.map +1 -1
  71. package/dist/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.js +28 -26
  72. package/dist/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.js.map +1 -1
  73. package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.d.ts.map +1 -1
  74. package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js +11 -16
  75. package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js.map +1 -1
  76. package/dist/src/components/Events/EventItem.d.ts +7 -0
  77. package/dist/src/components/Events/EventItem.d.ts.map +1 -0
  78. package/dist/src/components/Events/EventItem.js +25 -0
  79. package/dist/src/components/Events/EventItem.js.map +1 -0
  80. package/dist/src/components/Events/EventsCard.css +5 -0
  81. package/dist/src/components/Events/EventsCard.d.ts +11 -0
  82. package/dist/src/components/Events/EventsCard.d.ts.map +1 -0
  83. package/dist/src/components/Events/EventsCard.js +81 -0
  84. package/dist/src/components/Events/EventsCard.js.map +1 -0
  85. package/dist/src/components/Events/useEvents.d.ts +21 -0
  86. package/dist/src/components/Events/useEvents.d.ts.map +1 -0
  87. package/dist/src/components/Events/useEvents.js +105 -0
  88. package/dist/src/components/Events/useEvents.js.map +1 -0
  89. package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts.map +1 -1
  90. package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.js +27 -9
  91. package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.js.map +1 -1
  92. package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.d.ts +2 -1
  93. package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.d.ts.map +1 -1
  94. package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.js +13 -2
  95. package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.js.map +1 -1
  96. package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.d.ts +3 -33
  97. package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.d.ts.map +1 -1
  98. package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.js +7 -21
  99. package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.js.map +1 -1
  100. package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.d.ts +4 -2
  101. package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.d.ts.map +1 -1
  102. package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js +10 -1
  103. package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js.map +1 -1
  104. package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts +5 -3
  105. package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts.map +1 -1
  106. package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.js +4 -4
  107. package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.js.map +1 -1
  108. package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.d.ts.map +1 -1
  109. package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js +10 -9
  110. package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js.map +1 -1
  111. package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.d.ts +3 -1
  112. package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.d.ts.map +1 -1
  113. package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.js +8 -86
  114. package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.js.map +1 -1
  115. package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.d.ts +3 -1
  116. package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.d.ts.map +1 -1
  117. package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.js +4 -4
  118. package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.js.map +1 -1
  119. package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.d.ts +3 -1
  120. package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.d.ts.map +1 -1
  121. package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.js +16 -13
  122. package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.js.map +1 -1
  123. package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.d.ts +3 -1
  124. package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.d.ts.map +1 -1
  125. package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.js +20 -20
  126. package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.js.map +1 -1
  127. package/dist/src/components/Fleet/CreateFleet/utils.d.ts +1 -1
  128. package/dist/src/components/Fleet/CreateFleet/utils.d.ts.map +1 -1
  129. package/dist/src/components/Fleet/CreateFleet/utils.js +37 -23
  130. package/dist/src/components/Fleet/CreateFleet/utils.js.map +1 -1
  131. package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.d.ts.map +1 -1
  132. package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.js +20 -16
  133. package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.js.map +1 -1
  134. package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.d.ts.map +1 -1
  135. package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.js +8 -5
  136. package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.js.map +1 -1
  137. package/dist/src/components/Fleet/FleetDetails/{FleetDetails.d.ts → FleetDetailsPage.d.ts} +1 -1
  138. package/dist/src/components/Fleet/FleetDetails/FleetDetailsPage.d.ts.map +1 -0
  139. package/dist/src/components/Fleet/FleetDetails/{FleetDetails.js → FleetDetailsPage.js} +23 -17
  140. package/dist/src/components/Fleet/FleetDetails/FleetDetailsPage.js.map +1 -0
  141. package/dist/src/components/Fleet/FleetRow.d.ts.map +1 -1
  142. package/dist/src/components/Fleet/FleetRow.js +9 -12
  143. package/dist/src/components/Fleet/FleetRow.js.map +1 -1
  144. package/dist/src/components/Masthead/UserPreferencesModal.d.ts.map +1 -1
  145. package/dist/src/components/Masthead/UserPreferencesModal.js +14 -15
  146. package/dist/src/components/Masthead/UserPreferencesModal.js.map +1 -1
  147. package/dist/src/components/Masthead/UserPreferencesProvider.d.ts +8 -5
  148. package/dist/src/components/Masthead/UserPreferencesProvider.d.ts.map +1 -1
  149. package/dist/src/components/Masthead/UserPreferencesProvider.js +7 -5
  150. package/dist/src/components/Masthead/UserPreferencesProvider.js.map +1 -1
  151. package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts.map +1 -1
  152. package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js +11 -7
  153. package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js.map +1 -1
  154. package/dist/src/components/Repository/CreateRepository/utils.d.ts.map +1 -1
  155. package/dist/src/components/Repository/CreateRepository/utils.js +2 -3
  156. package/dist/src/components/Repository/CreateRepository/utils.js.map +1 -1
  157. package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.d.ts.map +1 -1
  158. package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.js +25 -24
  159. package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.js.map +1 -1
  160. package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.d.ts.map +1 -1
  161. package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.js +22 -8
  162. package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.js.map +1 -1
  163. package/dist/src/components/ResourceSync/RepositoryResourceSyncList.d.ts.map +1 -1
  164. package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js +18 -15
  165. package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js.map +1 -1
  166. package/dist/src/components/common/CodeEditor/CodeEditorTheme.d.ts +5 -0
  167. package/dist/src/components/common/CodeEditor/CodeEditorTheme.d.ts.map +1 -0
  168. package/dist/src/components/common/CodeEditor/CodeEditorTheme.js +52 -0
  169. package/dist/src/components/common/CodeEditor/CodeEditorTheme.js.map +1 -0
  170. package/dist/src/components/common/CodeEditor/Shortcut.css +22 -0
  171. package/dist/src/components/common/CodeEditor/Shortcut.d.ts +20 -0
  172. package/dist/src/components/common/CodeEditor/Shortcut.d.ts.map +1 -0
  173. package/dist/src/components/common/CodeEditor/Shortcut.js +46 -0
  174. package/dist/src/components/common/CodeEditor/Shortcut.js.map +1 -0
  175. package/dist/src/components/common/CodeEditor/YamlEditor.css +12 -0
  176. package/dist/src/components/common/CodeEditor/YamlEditor.d.ts +16 -0
  177. package/dist/src/components/common/CodeEditor/YamlEditor.d.ts.map +1 -0
  178. package/dist/src/components/common/CodeEditor/YamlEditor.js +48 -0
  179. package/dist/src/components/common/CodeEditor/YamlEditor.js.map +1 -0
  180. package/dist/src/components/common/CodeEditor/YamlEditorBase.css +3 -0
  181. package/dist/src/components/common/CodeEditor/YamlEditorBase.d.ts +11 -0
  182. package/dist/src/components/common/CodeEditor/YamlEditorBase.d.ts.map +1 -0
  183. package/dist/src/components/common/CodeEditor/YamlEditorBase.js +75 -0
  184. package/dist/src/components/common/CodeEditor/YamlEditorBase.js.map +1 -0
  185. package/dist/src/components/common/CodeEditor/useShortcutPopover.d.ts +3 -0
  186. package/dist/src/components/common/CodeEditor/useShortcutPopover.d.ts.map +1 -0
  187. package/dist/src/components/common/CodeEditor/useShortcutPopover.js +26 -0
  188. package/dist/src/components/common/CodeEditor/useShortcutPopover.js.map +1 -0
  189. package/dist/src/components/common/LabelsView.d.ts +1 -3
  190. package/dist/src/components/common/LabelsView.d.ts.map +1 -1
  191. package/dist/src/components/common/LabelsView.js +2 -4
  192. package/dist/src/components/common/LabelsView.js.map +1 -1
  193. package/dist/src/components/common/LeaveFormConfirmation.d.ts.map +1 -1
  194. package/dist/src/components/common/LeaveFormConfirmation.js +8 -7
  195. package/dist/src/components/common/LeaveFormConfirmation.js.map +1 -1
  196. package/dist/src/components/common/TechPreviewBadge.d.ts.map +1 -1
  197. package/dist/src/components/common/TechPreviewBadge.js +3 -2
  198. package/dist/src/components/common/TechPreviewBadge.js.map +1 -1
  199. package/dist/src/components/form/FlightCtlActionGroup.d.ts +1 -1
  200. package/dist/src/components/form/FlightCtlActionGroup.d.ts.map +1 -1
  201. package/dist/src/components/form/FlightCtlActionGroup.js.map +1 -1
  202. package/dist/src/components/form/FormSelect.d.ts +4 -2
  203. package/dist/src/components/form/FormSelect.d.ts.map +1 -1
  204. package/dist/src/components/form/FormSelect.js +12 -1
  205. package/dist/src/components/form/FormSelect.js.map +1 -1
  206. package/dist/src/components/form/FormSelectTypeahead.d.ts +4 -3
  207. package/dist/src/components/form/FormSelectTypeahead.d.ts.map +1 -1
  208. package/dist/src/components/form/FormSelectTypeahead.js +18 -1
  209. package/dist/src/components/form/FormSelectTypeahead.js.map +1 -1
  210. package/dist/src/components/form/LabelsField.d.ts +4 -3
  211. package/dist/src/components/form/LabelsField.d.ts.map +1 -1
  212. package/dist/src/components/form/LabelsField.js +15 -5
  213. package/dist/src/components/form/LabelsField.js.map +1 -1
  214. package/dist/src/components/form/NameField.d.ts +2 -2
  215. package/dist/src/components/form/NameField.d.ts.map +1 -1
  216. package/dist/src/components/form/NameField.js +14 -4
  217. package/dist/src/components/form/NameField.js.map +1 -1
  218. package/dist/src/components/form/RichValidationTextField.d.ts +2 -2
  219. package/dist/src/components/form/RichValidationTextField.d.ts.map +1 -1
  220. package/dist/src/components/form/RichValidationTextField.js +13 -1
  221. package/dist/src/components/form/RichValidationTextField.js.map +1 -1
  222. package/dist/src/components/form/TextListField.d.ts +4 -2
  223. package/dist/src/components/form/TextListField.d.ts.map +1 -1
  224. package/dist/src/components/form/TextListField.js +13 -3
  225. package/dist/src/components/form/TextListField.js.map +1 -1
  226. package/dist/src/components/form/UploadField.d.ts +3 -2
  227. package/dist/src/components/form/UploadField.d.ts.map +1 -1
  228. package/dist/src/components/form/UploadField.js +10 -1
  229. package/dist/src/components/form/UploadField.js.map +1 -1
  230. package/dist/src/components/form/validations.d.ts +1 -2
  231. package/dist/src/components/form/validations.d.ts.map +1 -1
  232. package/dist/src/components/form/validations.js +1 -4
  233. package/dist/src/components/form/validations.js.map +1 -1
  234. package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.d.ts.map +1 -1
  235. package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js +4 -1
  236. package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js.map +1 -1
  237. package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.d.ts.map +1 -1
  238. package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.js +5 -3
  239. package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.js.map +1 -1
  240. package/dist/src/components/modals/DecommissionModal/DecommissionModal.d.ts.map +1 -1
  241. package/dist/src/components/modals/DecommissionModal/DecommissionModal.js +32 -29
  242. package/dist/src/components/modals/DecommissionModal/DecommissionModal.js.map +1 -1
  243. package/dist/src/components/modals/DeleteModal/DeleteModal.d.ts.map +1 -1
  244. package/dist/src/components/modals/DeleteModal/DeleteModal.js +18 -15
  245. package/dist/src/components/modals/DeleteModal/DeleteModal.js.map +1 -1
  246. package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.d.ts.map +1 -1
  247. package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js +33 -30
  248. package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js.map +1 -1
  249. package/dist/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.d.ts.map +1 -1
  250. package/dist/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.js +27 -24
  251. package/dist/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.js.map +1 -1
  252. package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.d.ts.map +1 -1
  253. package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js +26 -23
  254. package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js.map +1 -1
  255. package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.d.ts.map +1 -1
  256. package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js +30 -25
  257. package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js.map +1 -1
  258. package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.d.ts.map +1 -1
  259. package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.js +29 -26
  260. package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.js.map +1 -1
  261. package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.d.ts +1 -1
  262. package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.d.ts.map +1 -1
  263. package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.js +28 -25
  264. package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.js.map +1 -1
  265. package/dist/src/constants.d.ts +2 -1
  266. package/dist/src/constants.d.ts.map +1 -1
  267. package/dist/src/constants.js +3 -1
  268. package/dist/src/constants.js.map +1 -1
  269. package/dist/src/hooks/useAppLinks.d.ts +5 -0
  270. package/dist/src/hooks/useAppLinks.d.ts.map +1 -0
  271. package/dist/src/hooks/useAppLinks.js +45 -0
  272. package/dist/src/hooks/useAppLinks.js.map +1 -0
  273. package/dist/src/{components/EnrollmentRequest/EnrollmentRequestDetails/useEnrollmentRequestSystemInfo.d.ts → hooks/useDeviceSpecSystemInfo.d.ts} +2 -2
  274. package/dist/src/hooks/useDeviceSpecSystemInfo.d.ts.map +1 -0
  275. package/dist/src/{components/EnrollmentRequest/EnrollmentRequestDetails/useEnrollmentRequestSystemInfo.js → hooks/useDeviceSpecSystemInfo.js} +18 -10
  276. package/dist/src/hooks/useDeviceSpecSystemInfo.js.map +1 -0
  277. package/dist/src/hooks/useFetchPeriodically.d.ts +2 -2
  278. package/dist/src/hooks/useFetchPeriodically.d.ts.map +1 -1
  279. package/dist/src/hooks/useFetchPeriodically.js +1 -1
  280. package/dist/src/hooks/useFetchPeriodically.js.map +1 -1
  281. package/dist/src/hooks/useThemePreferences.d.ts +6 -3
  282. package/dist/src/hooks/useThemePreferences.d.ts.map +1 -1
  283. package/dist/src/hooks/useThemePreferences.js +46 -23
  284. package/dist/src/hooks/useThemePreferences.js.map +1 -1
  285. package/dist/src/types/deviceSpec.d.ts +7 -2
  286. package/dist/src/types/deviceSpec.d.ts.map +1 -1
  287. package/dist/src/types/deviceSpec.js +16 -12
  288. package/dist/src/types/deviceSpec.js.map +1 -1
  289. package/dist/src/types/extraTypes.d.ts +3 -2
  290. package/dist/src/types/extraTypes.d.ts.map +1 -1
  291. package/dist/src/types/extraTypes.js.map +1 -1
  292. package/dist/src/utils/dates.d.ts +2 -1
  293. package/dist/src/utils/dates.d.ts.map +1 -1
  294. package/dist/src/utils/dates.js +20 -20
  295. package/dist/src/utils/dates.js.map +1 -1
  296. package/dist/src/utils/patch.d.ts.map +1 -1
  297. package/dist/src/utils/patch.js +2 -1
  298. package/dist/src/utils/patch.js.map +1 -1
  299. package/package.json +6 -2
  300. package/src/components/DetailsPage/DetailsPageActions.tsx +2 -1
  301. package/src/components/Device/AddDeviceModal/AddDeviceModal.tsx +27 -22
  302. package/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx +10 -19
  303. package/src/components/Device/DeviceDetails/DeviceDetailsTab.tsx +65 -21
  304. package/src/components/Device/DevicesPage/DecommissionedDevicesTable.tsx +2 -2
  305. package/src/components/Device/DevicesPage/EnrolledDevicesTable.tsx +2 -2
  306. package/src/components/Device/EditDeviceWizard/EditDeviceWizard.tsx +6 -1
  307. package/src/components/Device/EditDeviceWizard/deviceSpecUtils.ts +29 -5
  308. package/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.tsx +19 -5
  309. package/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.tsx +53 -23
  310. package/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.tsx +68 -53
  311. package/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.tsx +40 -25
  312. package/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx +38 -17
  313. package/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.tsx +81 -38
  314. package/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.tsx +15 -19
  315. package/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.tsx +7 -47
  316. package/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.tsx +1 -1
  317. package/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.tsx +1 -1
  318. package/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.tsx +2 -2
  319. package/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.tsx +30 -2
  320. package/src/components/Device/EditDeviceWizard/utils.ts +6 -7
  321. package/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.tsx +38 -35
  322. package/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.tsx +8 -19
  323. package/src/components/Events/EventItem.tsx +38 -0
  324. package/src/components/Events/EventsCard.css +5 -0
  325. package/src/components/Events/EventsCard.tsx +157 -0
  326. package/src/components/Events/useEvents.ts +136 -0
  327. package/src/components/Fleet/CreateFleet/CreateFleetWizard.tsx +29 -13
  328. package/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.tsx +25 -10
  329. package/src/components/Fleet/CreateFleet/fleetSpecUtils.ts +9 -23
  330. package/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.tsx +12 -1
  331. package/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.tsx +10 -5
  332. package/src/components/Fleet/CreateFleet/steps/ReviewStep.tsx +20 -17
  333. package/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.tsx +18 -122
  334. package/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.tsx +4 -1
  335. package/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.tsx +50 -31
  336. package/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.tsx +57 -12
  337. package/src/components/Fleet/CreateFleet/utils.ts +40 -22
  338. package/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.tsx +28 -28
  339. package/src/components/Fleet/FleetDetails/FleetDetailsContent.tsx +10 -9
  340. package/src/components/Fleet/FleetDetails/{FleetDetails.tsx → FleetDetailsPage.tsx} +40 -25
  341. package/src/components/Fleet/FleetRow.tsx +10 -11
  342. package/src/components/Masthead/UserPreferencesModal.tsx +43 -56
  343. package/src/components/Masthead/UserPreferencesProvider.tsx +15 -10
  344. package/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx +14 -15
  345. package/src/components/Repository/CreateRepository/utils.ts +2 -3
  346. package/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.tsx +54 -55
  347. package/src/components/Repository/RepositoryDetails/RepositoryDetails.tsx +47 -14
  348. package/src/components/ResourceSync/RepositoryResourceSyncList.tsx +28 -25
  349. package/src/components/common/CodeEditor/CodeEditorTheme.ts +53 -0
  350. package/src/components/common/CodeEditor/Shortcut.css +22 -0
  351. package/src/components/common/CodeEditor/Shortcut.tsx +90 -0
  352. package/src/components/common/CodeEditor/YamlEditor.css +12 -0
  353. package/src/components/common/CodeEditor/YamlEditor.tsx +81 -0
  354. package/src/components/common/CodeEditor/YamlEditorBase.css +3 -0
  355. package/src/components/common/CodeEditor/YamlEditorBase.tsx +124 -0
  356. package/src/components/common/CodeEditor/useShortcutPopover.tsx +39 -0
  357. package/src/components/common/LabelsView.tsx +2 -11
  358. package/src/components/common/LeaveFormConfirmation.tsx +14 -18
  359. package/src/components/common/TechPreviewBadge.tsx +3 -1
  360. package/src/components/form/FlightCtlActionGroup.tsx +1 -1
  361. package/src/components/form/FormSelect.tsx +14 -3
  362. package/src/components/form/FormSelectTypeahead.tsx +24 -3
  363. package/src/components/form/LabelsField.tsx +20 -20
  364. package/src/components/form/NameField.tsx +18 -4
  365. package/src/components/form/RichValidationTextField.tsx +20 -1
  366. package/src/components/form/TextListField.tsx +19 -3
  367. package/src/components/form/UploadField.tsx +16 -2
  368. package/src/components/form/validations.ts +1 -4
  369. package/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.tsx +12 -7
  370. package/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.tsx +6 -3
  371. package/src/components/modals/DecommissionModal/DecommissionModal.tsx +60 -56
  372. package/src/components/modals/DeleteModal/DeleteModal.tsx +25 -27
  373. package/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.tsx +81 -92
  374. package/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.tsx +64 -67
  375. package/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx +60 -62
  376. package/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.tsx +80 -87
  377. package/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.tsx +70 -73
  378. package/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.tsx +62 -63
  379. package/src/constants.ts +2 -1
  380. package/src/hooks/useAppLinks.ts +49 -0
  381. package/src/{components/EnrollmentRequest/EnrollmentRequestDetails/useEnrollmentRequestSystemInfo.tsx → hooks/useDeviceSpecSystemInfo.tsx} +15 -7
  382. package/src/hooks/useFetchPeriodically.ts +3 -3
  383. package/src/hooks/useThemePreferences.ts +48 -21
  384. package/src/types/deviceSpec.ts +25 -13
  385. package/src/types/extraTypes.ts +7 -4
  386. package/src/utils/dates.ts +23 -24
  387. package/src/utils/patch.ts +3 -1
  388. package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.css +0 -3
  389. package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.d.ts +0 -9
  390. package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.d.ts.map +0 -1
  391. package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.js +0 -34
  392. package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.js.map +0 -1
  393. package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/useEnrollmentRequestSystemInfo.d.ts.map +0 -1
  394. package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/useEnrollmentRequestSystemInfo.js.map +0 -1
  395. package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.d.ts +0 -9
  396. package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.d.ts.map +0 -1
  397. package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.js +0 -61
  398. package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.js.map +0 -1
  399. package/dist/src/components/Fleet/FleetDetails/FleetDetails.d.ts.map +0 -1
  400. package/dist/src/components/Fleet/FleetDetails/FleetDetails.js.map +0 -1
  401. package/dist/src/components/common/LabelsView.css +0 -9
  402. package/dist/src/links.d.ts +0 -7
  403. package/dist/src/links.d.ts.map +0 -1
  404. package/dist/src/links.js +0 -14
  405. package/dist/src/links.js.map +0 -1
  406. package/src/components/Device/DeviceDetails/DeviceStatusDebugModal.css +0 -3
  407. package/src/components/Device/DeviceDetails/DeviceStatusDebugModal.tsx +0 -60
  408. package/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.tsx +0 -96
  409. package/src/components/common/LabelsView.css +0 -9
  410. package/src/links.ts +0 -16
@@ -1 +1 @@
1
- {"version":3,"file":"MassApproveDeviceModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAA6B,MAAM,kBAAkB,CAAC;AAyBhF,OAAO,8BAA8B,CAAC;AAStC,KAAK,2BAA2B,GAAG;IACjC,OAAO,EAAE,YAAY,CAAC;IACtB,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAC7C,gBAAgB,EAAE,YAAY,CAAC;CAChC,CAAC;AAEF,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAkJjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"MassApproveDeviceModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAA6B,MAAM,kBAAkB,CAAC;AAiBhF,OAAO,8BAA8B,CAAC;AAStC,KAAK,2BAA2B,GAAG;IACjC,OAAO,EAAE,YAAY,CAAC;IACtB,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAC7C,gBAAgB,EAAE,YAAY,CAAC;CAChC,CAAC;AAEF,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA+IjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const React = tslib_1.__importStar(require("react"));
5
5
  const react_core_1 = require("@patternfly/react-core");
6
+ const next_1 = require("@patternfly/react-core/next");
6
7
  const react_table_1 = require("@patternfly/react-table");
7
8
  const formik_1 = require("formik");
8
9
  const TextField_1 = tslib_1.__importDefault(require("../../../form/TextField"));
@@ -51,37 +52,39 @@ const MassApproveDeviceModal = ({ onClose, onApproveSuccess, pendingEnrollments,
51
52
  return (React.createElement(formik_1.Formik, { initialValues: {
52
53
  labels: [],
53
54
  deviceAlias: '',
54
- }, validationSchema: (0, validations_1.deviceApprovalValidationSchema)(t, { isSingleDevice: false }), onSubmit: approveEnrollments }, ({ isSubmitting, values, submitForm, isValid }) => (React.createElement(react_core_1.Modal, { title: t('Approve pending devices'), isOpen: true, onClose: onClose, showClose: !isSubmitting, variant: "medium", actions: [
55
+ }, validationSchema: (0, validations_1.deviceApprovalValidationSchema)(t, { isSingleDevice: false }), onSubmit: approveEnrollments }, ({ isSubmitting, values, submitForm, isValid }) => (React.createElement(next_1.Modal, { isOpen: true, onClose: isSubmitting ? undefined : onClose, variant: "medium" },
56
+ React.createElement(next_1.ModalHeader, { title: t('Approve pending devices') }),
57
+ React.createElement(next_1.ModalBody, null,
58
+ React.createElement(react_core_1.Stack, { hasGutter: true },
59
+ React.createElement(react_core_1.StackItem, null, t('Make sure you recognise and expect the following devices before approving them. Are you sure you want to approve the listed devices?')),
60
+ React.createElement(react_core_1.StackItem, { className: "fctl-mass-approve__table" },
61
+ React.createElement(react_table_1.Table, null,
62
+ React.createElement(react_table_1.Thead, null,
63
+ React.createElement(react_table_1.Tr, null,
64
+ React.createElement(react_table_1.Th, { width: 60 }, t('Name')),
65
+ React.createElement(react_table_1.Th, { width: 40 }, t('Alias')))),
66
+ React.createElement(react_table_1.Tbody, null, pendingEnrollments.map((pendingEr, index) => (React.createElement(react_table_1.Tr, { key: pendingEr.metadata.name },
67
+ React.createElement(react_table_1.Td, { dataLabel: t('Name') },
68
+ React.createElement(ResourceLink_1.default, { id: pendingEr.metadata.name })),
69
+ React.createElement(react_table_1.Td, { dataLabel: t('Alias') }, templateToName(index, values.deviceAlias)))))))),
70
+ React.createElement(react_core_1.StackItem, null,
71
+ React.createElement(FlightCtlForm_1.default, null,
72
+ React.createElement(react_core_1.FormGroup, { label: t('Labels') },
73
+ React.createElement(LabelsField_1.default, { name: "labels" })),
74
+ React.createElement(react_core_1.FormGroup, { label: t('Alias') },
75
+ React.createElement(TextField_1.default, { name: "deviceAlias", "aria-label": t('Alias'), placeholder: "device-{{n}}", helperText: React.createElement(React.Fragment, null,
76
+ t('Alias devices using a custom template. Add a number using'),
77
+ React.createElement("strong", null,
78
+ " ",
79
+ `{{n}}`)) })))),
80
+ isSubmitting && (React.createElement(react_core_1.StackItem, null,
81
+ React.createElement(react_core_1.Progress, { value: progress, min: 0, max: totalProgress, title: t('Approving...'), measureLocation: react_core_1.ProgressMeasureLocation.top, label: t('{{progress}} of {{totalProgress}}', { progress, totalProgress }), valueText: t('{{progress}} of {{totalProgress}}', { progress, totalProgress }) }))),
82
+ (errors === null || errors === void 0 ? void 0 : errors.length) && (React.createElement(react_core_1.StackItem, null,
83
+ React.createElement(react_core_1.Alert, { isInline: true, variant: "danger", title: t('An error occurred') },
84
+ React.createElement(react_core_1.Stack, { hasGutter: true }, errors.map((e, index) => (React.createElement(react_core_1.StackItem, { key: index }, e))))))))),
85
+ React.createElement(next_1.ModalFooter, null,
55
86
  React.createElement(react_core_1.Button, { key: "approve", variant: "primary", onClick: submitForm, isLoading: isSubmitting, isDisabled: isSubmitting || !isValid }, t('Approve')),
56
- React.createElement(react_core_1.Button, { key: "cancel", variant: "link", onClick: onClose, isDisabled: isSubmitting }, t('Cancel')),
57
- ] },
58
- React.createElement(react_core_1.Stack, { hasGutter: true },
59
- React.createElement(react_core_1.StackItem, null, t('Make sure you recognise and expect the following devices before approving them. Are you sure you want to approve the listed devices?')),
60
- React.createElement(react_core_1.StackItem, { className: "fctl-mass-approve__table" },
61
- React.createElement(react_table_1.Table, null,
62
- React.createElement(react_table_1.Thead, null,
63
- React.createElement(react_table_1.Tr, null,
64
- React.createElement(react_table_1.Th, { width: 60 }, t('Name')),
65
- React.createElement(react_table_1.Th, { width: 40 }, t('Alias')))),
66
- React.createElement(react_table_1.Tbody, null, pendingEnrollments.map((pendingEr, index) => (React.createElement(react_table_1.Tr, { key: pendingEr.metadata.name },
67
- React.createElement(react_table_1.Td, { dataLabel: t('Name') },
68
- React.createElement(ResourceLink_1.default, { id: pendingEr.metadata.name })),
69
- React.createElement(react_table_1.Td, { dataLabel: t('Alias') }, templateToName(index, values.deviceAlias)))))))),
70
- React.createElement(react_core_1.StackItem, null,
71
- React.createElement(FlightCtlForm_1.default, null,
72
- React.createElement(react_core_1.FormGroup, { label: t('Labels') },
73
- React.createElement(LabelsField_1.default, { name: "labels" })),
74
- React.createElement(react_core_1.FormGroup, { label: t('Alias') },
75
- React.createElement(TextField_1.default, { name: "deviceAlias", "aria-label": t('Alias'), placeholder: "device-{{n}}", helperText: React.createElement(React.Fragment, null,
76
- t('Alias devices using a custom template. Add a number using'),
77
- React.createElement("strong", null,
78
- " ",
79
- `{{n}}`)) })))),
80
- isSubmitting && (React.createElement(react_core_1.StackItem, null,
81
- React.createElement(react_core_1.Progress, { value: progress, min: 0, max: totalProgress, title: t('Approving...'), measureLocation: react_core_1.ProgressMeasureLocation.top, label: t('{{progress}} of {{totalProgress}}', { progress, totalProgress }), valueText: t('{{progress}} of {{totalProgress}}', { progress, totalProgress }) }))),
82
- (errors === null || errors === void 0 ? void 0 : errors.length) && (React.createElement(react_core_1.StackItem, null,
83
- React.createElement(react_core_1.Alert, { isInline: true, variant: "danger", title: t('An error occurred') },
84
- React.createElement(react_core_1.Stack, { hasGutter: true }, errors.map((e, index) => (React.createElement(react_core_1.StackItem, { key: index }, e))))))))))));
87
+ React.createElement(react_core_1.Button, { key: "cancel", variant: "link", onClick: onClose, isDisabled: isSubmitting }, t('Cancel')))))));
85
88
  };
86
89
  exports.default = MassApproveDeviceModal;
87
90
  //# sourceMappingURL=MassApproveDeviceModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MassApproveDeviceModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAE/B,uDASgC;AAChC,yDAA0E;AAC1E,mCAAgC;AAEhC,gFAAgD;AAChD,oFAAoD;AACpD,wFAAwD;AACxD,2DAA2E;AAC3E,wFAAwD;AACxD,2DAAgE;AAChE,mDAA0D;AAC1D,mEAAgE;AAChE,qEAAkE;AAClE,qDAAsD;AAEtD,wCAAsC;AAEtC,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,YAAoB,EAAE,EAAE,CAC7D,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAYtE,MAAM,sBAAsB,GAA0C,CAAC,EACrE,OAAO,EACP,gBAAgB,EAChB,kBAAkB,GACnB,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAClD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC5D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAY,CAAC;IACvD,MAAM,EACJ,KAAK,EAAE,EAAE,GAAG,EAAE,GACf,GAAG,IAAA,6BAAa,GAAE,CAAC;IAEpB,MAAM,k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C,sBAAS;gBACR,oBAAC,kBAAK,IAAC,QAAQ,QAAC,OAAO,EAAC,QAAQ,EAAC,KAAK,EAAE,CAAC,CAAC,mBAAmB,CAAC;oBAC5D,oBAAC,kBAAK,IAAC,SAAS,UACb,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,oBAAC,sBAAS,IAAC,GAAG,EAAE,KAAK,IAAG,CAAC,CAAa,CACvC,CAAC,CACI,CACF,CACE,CACb,CACK,CACF,CACT,CACM,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"MassApproveDeviceModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAE/B,uDAAuH;AACvH,sDAAyF;AACzF,yDAA0E;AAC1E,mCAAgC;AAEhC,gFAAgD;AAChD,oFAAoD;AACpD,wFAAwD;AACxD,2DAA2E;AAC3E,wFAAwD;AACxD,2DAAgE;AAChE,mDAA0D;AAC1D,mEAAgE;AAChE,qEAAkE;AAClE,qDAAsD;AAEtD,wCAAsC;AAEtC,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,YAAoB,EAAE,EAAE,CAC7D,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAYtE,MAAM,sBAAsB,GAA0C,CAAC,EACrE,OAAO,EACP,gBAAgB,EAChB,kBAAkB,GACnB,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAClD,MAAM,CAAC,aAAa,EAAE,gBAAgB,C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AQ,EAAC,KAAK,EAAE,CAAC,CAAC,mBAAmB,CAAC;wBAC5D,oBAAC,kBAAK,IAAC,SAAS,UACb,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,oBAAC,sBAAS,IAAC,GAAG,EAAE,KAAK,IAAG,CAAC,CAAa,CACvC,CAAC,CACI,CACF,CACE,CACb,CACK,CACE;QACZ,oBAAC,kBAAW;YACV,oBAAC,mBAAM,IACL,GAAG,EAAC,SAAS,EACb,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,YAAY,EACvB,UAAU,EAAE,YAAY,IAAI,CAAC,OAAO,IAEnC,CAAC,CAAC,SAAS,CAAC,CACN;YACT,oBAAC,mBAAM,IAAC,GAAG,EAAC,QAAQ,EAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,IAC3E,CAAC,CAAC,QAAQ,CAAC,CACL,CACG,CACR,CACT,CACM,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MassDecommissionDeviceModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,MAAM,EAAoD,MAAM,kBAAkB,CAAC;AAQ5F,KAAK,gCAAgC,GAAG;IACtC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,OAAO,EAAE,YAAY,CAAC;IACtB,SAAS,EAAE,YAAY,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,2BAA2B,oCAAqC,gCAAgC,sBA6GrG,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"MassDecommissionDeviceModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,MAAM,EAAoD,MAAM,kBAAkB,CAAC;AAQ5F,KAAK,gCAAgC,GAAG;IACtC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,OAAO,EAAE,YAAY,CAAC;IACtB,SAAS,EAAE,YAAY,CAAC;CACzB,CAAC;AAEF,QAAA,MAAM,2BAA2B,oCAAqC,gCAAgC,sBAyGrG,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const React = tslib_1.__importStar(require("react"));
5
5
  const react_core_1 = require("@patternfly/react-core");
6
+ const next_1 = require("@patternfly/react-core/next");
6
7
  const react_table_1 = require("@patternfly/react-table");
7
8
  const types_1 = require("@flightctl/types");
8
9
  const error_1 = require("../../../../utils/error");
@@ -37,31 +38,33 @@ const MassDecommissionDeviceModal = ({ onClose, devices, onSuccess }) => {
37
38
  onSuccess();
38
39
  }
39
40
  });
40
- return (React.createElement(react_core_1.Modal, { title: t('Decommission devices ?'), isOpen: true, onClose: onClose, showClose: !isSubmitting, titleIconVariant: "warning", variant: "medium", actions: [
41
+ return (React.createElement(next_1.Modal, { isOpen: true, onClose: isSubmitting ? undefined : onClose, variant: "medium" },
42
+ React.createElement(next_1.ModalHeader, { title: t('Decommission devices ?'), titleIconVariant: "warning" }),
43
+ React.createElement(next_1.ModalBody, null,
44
+ React.createElement(react_core_1.Stack, { hasGutter: true },
45
+ React.createElement(react_core_1.StackItem, null, t('Are you sure you want to proceed with decommissioning these devices?')),
46
+ React.createElement(react_core_1.StackItem, null, t('Decommissioned devices will not be able to communicate with the edge management system anymore, and they will be removed from any fleet they were associated to. Once decommissioned, the devices cannot be managed further.')),
47
+ React.createElement(react_core_1.StackItem, null,
48
+ React.createElement(react_table_1.Table, null,
49
+ React.createElement(react_table_1.Thead, null,
50
+ React.createElement(react_table_1.Tr, null,
51
+ React.createElement(react_table_1.Th, null, t('Alias')),
52
+ React.createElement(react_table_1.Th, null, t('Name')))),
53
+ React.createElement(react_table_1.Tbody, null, devices.map((device) => {
54
+ var _a;
55
+ return (React.createElement(react_table_1.Tr, { key: device.metadata.name },
56
+ React.createElement(react_table_1.Td, { dataLabel: t('Alias') }, ((_a = device.metadata.labels) === null || _a === void 0 ? void 0 : _a.alias) || '-'),
57
+ React.createElement(react_table_1.Td, { dataLabel: t('Name') },
58
+ React.createElement(ResourceLink_1.default, { id: device.metadata.name }))));
59
+ })))),
60
+ isSubmitting && (React.createElement(react_core_1.StackItem, null,
61
+ React.createElement(react_core_1.Progress, { value: progress, min: 0, max: totalProgress, title: t('Decommissioning...'), measureLocation: react_core_1.ProgressMeasureLocation.top, label: t('{{progress}} of {{totalProgress}}', { progress, totalProgress }), valueText: t('{{progress}} of {{totalProgress}}', { progress, totalProgress }) }))),
62
+ (errors === null || errors === void 0 ? void 0 : errors.length) && (React.createElement(react_core_1.StackItem, null,
63
+ React.createElement(react_core_1.Alert, { isInline: true, variant: "danger", title: t('An error occurred') },
64
+ React.createElement(react_core_1.Stack, { hasGutter: true }, errors.map((e, index) => (React.createElement(react_core_1.StackItem, { key: index }, e))))))))),
65
+ React.createElement(next_1.ModalFooter, null,
41
66
  React.createElement(react_core_1.Button, { key: "decommission", variant: "danger", onClick: decommissionDevices, isLoading: isSubmitting, isDisabled: isSubmitting }, t('Decommission')),
42
- React.createElement(react_core_1.Button, { key: "cancel", variant: "link", onClick: onClose, isDisabled: isSubmitting }, t('Cancel')),
43
- ] },
44
- React.createElement(react_core_1.Stack, { hasGutter: true },
45
- React.createElement(react_core_1.StackItem, null, t('Are you sure you want to proceed with decommissioning these devices ?')),
46
- React.createElement(react_core_1.StackItem, null, t('Decommissioned devices will not be able to communicate with the edge management system anymore, and they will be removed from any fleet they were associated to. Once decommissioned, the devices cannot be managed further.')),
47
- React.createElement(react_core_1.StackItem, null,
48
- React.createElement(react_table_1.Table, null,
49
- React.createElement(react_table_1.Thead, null,
50
- React.createElement(react_table_1.Tr, null,
51
- React.createElement(react_table_1.Th, null, t('Alias')),
52
- React.createElement(react_table_1.Th, null, t('Name')))),
53
- React.createElement(react_table_1.Tbody, null, devices.map((device) => {
54
- var _a;
55
- return (React.createElement(react_table_1.Tr, { key: device.metadata.name },
56
- React.createElement(react_table_1.Td, { dataLabel: t('Alias') }, ((_a = device.metadata.labels) === null || _a === void 0 ? void 0 : _a.alias) || '-'),
57
- React.createElement(react_table_1.Td, { dataLabel: t('Name') },
58
- React.createElement(ResourceLink_1.default, { id: device.metadata.name }))));
59
- })))),
60
- isSubmitting && (React.createElement(react_core_1.StackItem, null,
61
- React.createElement(react_core_1.Progress, { value: progress, min: 0, max: totalProgress, title: t('Decommissioning...'), measureLocation: react_core_1.ProgressMeasureLocation.top, label: t('{{progress}} of {{totalProgress}}', { progress, totalProgress }), valueText: t('{{progress}} of {{totalProgress}}', { progress, totalProgress }) }))),
62
- (errors === null || errors === void 0 ? void 0 : errors.length) && (React.createElement(react_core_1.StackItem, null,
63
- React.createElement(react_core_1.Alert, { isInline: true, variant: "danger", title: t('An error occurred') },
64
- React.createElement(react_core_1.Stack, { hasGutter: true }, errors.map((e, index) => (React.createElement(react_core_1.StackItem, { key: index }, e))))))))));
67
+ React.createElement(react_core_1.Button, { key: "cancel", variant: "link", onClick: onClose, isDisabled: isSubmitting }, t('Cancel')))));
65
68
  };
66
69
  exports.default = MassDecommissionDeviceModal;
67
70
  //# sourceMappingURL=MassDecommissionDeviceModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MassDecommissionDeviceModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAAmH;AACnH,yDAA0E;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GAAG,EAAE,KAAK,IAAG,CAAC,CAAa,CACvC,CAAC,CACI,CACF,CACE,CACb,CACK,CACF,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"MassDecommissionDeviceModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAA4G;AAC5G,sDAAyF;AACzF,yDAA0E;AAE1E,4CAA4F;AAE5F,mDAA0D;AAC1D,yDAAsD;AACtD,qEAAkE;AAClE,2DAAgE;AAChE,wFAAwD;AAQxD,MAAM,2BAA2B,GAAG,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAoC,EAAE,EAAE;IACxG,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAClD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC5D,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAY,CAAC;IACvD,MAAM,EAAE,GAAG,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAC;IAE3B,MAAM,mBAAmB,GAAG,GAAS,EAAE;QACrC,WAAW,CAAC,CAAC,CAAC,CAAC;QACf,eAAe,CAAC,IAAI,CAAC,CAAC;QACtB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAAO,GAAG,EAAE,EAAE;YACzC,MAAM,GAAG,CAAqB,WAAW,GAAG,CAAC,QAAQ,CAAC,IAA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EAAE,CAAC,CACxB,oBAAC,sBAAS,IAAC,GAAG,EAAE,KAAK,IAAG,CAAC,CAAa,CACvC,CAAC,CACI,CACF,CACE,CACb,CACK,CACE;QACZ,oBAAC,kBAAW;YACV,oBAAC,mBAAM,IACL,GAAG,EAAC,cAAc,EAClB,OAAO,EAAC,QAAQ,EAChB,OAAO,EAAE,mBAAmB,EAC5B,SAAS,EAAE,YAAY,EACvB,UAAU,EAAE,YAAY,IAEvB,CAAC,CAAC,cAAc,CAAC,CACX;YACT,oBAAC,mBAAM,IAAC,GAAG,EAAC,QAAQ,EAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,IAC3E,CAAC,CAAC,QAAQ,CAAC,CACL,CACG,CACR,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,2BAA2B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MassDeleteDeviceModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAS7D,KAAK,0BAA0B,GAAG;IAChC,OAAO,EAAE,YAAY,CAAC;IACtB,SAAS,EAAE,KAAK,CAAC,MAAM,GAAG,iBAAiB,CAAC,CAAC;IAC7C,eAAe,EAAE,YAAY,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA+F/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"MassDeleteDeviceModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAS7D,KAAK,0BAA0B,GAAG;IAChC,OAAO,EAAE,YAAY,CAAC;IACtB,SAAS,EAAE,KAAK,CAAC,MAAM,GAAG,iBAAiB,CAAC,CAAC;IAC7C,eAAe,EAAE,YAAY,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA4F/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const React = tslib_1.__importStar(require("react"));
5
5
  const react_core_1 = require("@patternfly/react-core");
6
+ const next_1 = require("@patternfly/react-core/next");
6
7
  const react_table_1 = require("@patternfly/react-table");
7
8
  const extraTypes_1 = require("../../../../types/extraTypes");
8
9
  const error_1 = require("../../../../utils/error");
@@ -35,30 +36,32 @@ const MassDeleteDeviceModal = ({ onClose, resources, onDeleteSuccess }) => {
35
36
  onDeleteSuccess();
36
37
  }
37
38
  });
38
- return (React.createElement(react_core_1.Modal, { title: t('Delete devices ?'), isOpen: true, onClose: onClose, showClose: !isDeleting, titleIconVariant: "warning", variant: "medium", actions: [
39
+ return (React.createElement(next_1.Modal, { isOpen: true, onClose: isDeleting ? undefined : onClose, variant: "medium" },
40
+ React.createElement(next_1.ModalHeader, { title: t('Delete devices ?'), titleIconVariant: "warning" }),
41
+ React.createElement(next_1.ModalBody, null,
42
+ React.createElement(react_core_1.Stack, { hasGutter: true },
43
+ React.createElement(react_core_1.StackItem, null, t('Are you sure you want to delete the following devices ?')),
44
+ React.createElement(react_core_1.StackItem, null,
45
+ React.createElement(react_table_1.Table, null,
46
+ React.createElement(react_table_1.Thead, null,
47
+ React.createElement(react_table_1.Tr, null,
48
+ React.createElement(react_table_1.Th, null, t('Alias')),
49
+ React.createElement(react_table_1.Th, null, t('Name')))),
50
+ React.createElement(react_table_1.Tbody, null, resources.map((resource) => {
51
+ var _a;
52
+ return (React.createElement(react_table_1.Tr, { key: resource.metadata.name },
53
+ React.createElement(react_table_1.Td, { dataLabel: t('Alias') }, ((_a = resource.metadata.labels) === null || _a === void 0 ? void 0 : _a.alias) || '-'),
54
+ React.createElement(react_table_1.Td, { dataLabel: t('Name') },
55
+ React.createElement(ResourceLink_1.default, { id: resource.metadata.name }))));
56
+ })))),
57
+ isDeleting && (React.createElement(react_core_1.StackItem, null,
58
+ React.createElement(react_core_1.Progress, { value: progress, min: 0, max: totalProgress, title: t('Deleting...'), measureLocation: react_core_1.ProgressMeasureLocation.top, label: t('{{progress}} of {{totalProgress}}', { progress, totalProgress }), valueText: t('{{progress}} of {{totalProgress}}', { progress, totalProgress }) }))),
59
+ (errors === null || errors === void 0 ? void 0 : errors.length) && (React.createElement(react_core_1.StackItem, null,
60
+ React.createElement(react_core_1.Alert, { isInline: true, variant: "danger", title: t('An error occurred') },
61
+ React.createElement(react_core_1.Stack, { hasGutter: true }, errors.map((e, index) => (React.createElement(react_core_1.StackItem, { key: index }, e))))))))),
62
+ React.createElement(next_1.ModalFooter, null,
39
63
  React.createElement(react_core_1.Button, { key: "delete", variant: "danger", onClick: deleteResources, isLoading: isDeleting, isDisabled: isDeleting }, t('Delete devices')),
40
- React.createElement(react_core_1.Button, { key: "cancel", variant: "link", onClick: onClose, isDisabled: isDeleting }, t('Cancel')),
41
- ] },
42
- React.createElement(react_core_1.Stack, { hasGutter: true },
43
- React.createElement(react_core_1.StackItem, null, t('Are you sure you want to delete the following devices ?')),
44
- React.createElement(react_core_1.StackItem, null,
45
- React.createElement(react_table_1.Table, null,
46
- React.createElement(react_table_1.Thead, null,
47
- React.createElement(react_table_1.Tr, null,
48
- React.createElement(react_table_1.Th, null, t('Alias')),
49
- React.createElement(react_table_1.Th, null, t('Name')))),
50
- React.createElement(react_table_1.Tbody, null, resources.map((resource) => {
51
- var _a;
52
- return (React.createElement(react_table_1.Tr, { key: resource.metadata.name },
53
- React.createElement(react_table_1.Td, { dataLabel: t('Alias') }, ((_a = resource.metadata.labels) === null || _a === void 0 ? void 0 : _a.alias) || '-'),
54
- React.createElement(react_table_1.Td, { dataLabel: t('Name') },
55
- React.createElement(ResourceLink_1.default, { id: resource.metadata.name }))));
56
- })))),
57
- isDeleting && (React.createElement(react_core_1.StackItem, null,
58
- React.createElement(react_core_1.Progress, { value: progress, min: 0, max: totalProgress, title: t('Deleting...'), measureLocation: react_core_1.ProgressMeasureLocation.top, label: t('{{progress}} of {{totalProgress}}', { progress, totalProgress }), valueText: t('{{progress}} of {{totalProgress}}', { progress, totalProgress }) }))),
59
- (errors === null || errors === void 0 ? void 0 : errors.length) && (React.createElement(react_core_1.StackItem, null,
60
- React.createElement(react_core_1.Alert, { isInline: true, variant: "danger", title: t('An error occurred') },
61
- React.createElement(react_core_1.Stack, { hasGutter: true }, errors.map((e, index) => (React.createElement(react_core_1.StackItem, { key: index }, e))))))))));
64
+ React.createElement(react_core_1.Button, { key: "cancel", variant: "link", onClick: onClose, isDisabled: isDeleting }, t('Cancel')))));
62
65
  };
63
66
  exports.default = MassDeleteDeviceModal;
64
67
  //# sourceMappingURL=MassDeleteDeviceModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MassDeleteDeviceModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAAmH;AACnH,yDAA0E;AAG1E,6DAAmE;AAEnE,mDAA0D;AAC1D,yDAAsD;AACtD,qEAAkE;AAClE,2DAAgE;AAChE,wFAAwD;AAQxD,MAAM,qBAAqB,GAAyC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,EAAE,EAAE;IAC9G,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,C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AAM;4BACxE,oBAAC,gBAAE,IAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC;gCACtB,oBAAC,sBAAY,IAAC,EAAE,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAc,GAAI,CACnD,CACF,CACN,CAAC;oBACJ,CAAC,CAAC,CACI,CACF,CACE;YACX,UAAU,IAAI,CACb,oBAAC,sBAAS;gBACR,oBAAC,qBAAQ,IACP,KAAK,EAAE,QAAQ,EACf,GAAG,EAAE,CAAC,EACN,GAAG,EAAE,aAAa,EAClB,KAAK,EAAE,CAAC,CAAC,aAAa,CAAC,EACvB,eAAe,EAAE,oCAAuB,CAAC,GAAG,EAC5C,KAAK,EAAE,CAAC,CAAC,mCAAmC,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,EAC1E,SAAS,EAAE,CAAC,CAAC,mCAAmC,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,GAC9E,CACQ,CACb;YACA,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,KAAI,CACjB,oBAAC,sBAAS;gBACR,oBAAC,kBAAK,IAAC,QAAQ,QAAC,OAAO,EAAC,QAAQ,EAAC,KAAK,EAAE,CAAC,CAAC,mBAAmB,CAAC;oBAC5D,oBAAC,kBAAK,IAAC,SAAS,UACb,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,oBAAC,sBAAS,IAAC,GAAG,EAAE,KAAK,IAAG,CAAC,CAAa,CACvC,CAAC,CACI,CACF,CACE,CACb,CACK,CACF,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"MassDeleteDeviceModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAA4G;AAC5G,sDAAyF;AACzF,yDAA0E;A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AAC,QAAQ,EAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,IACzE,CAAC,CAAC,QAAQ,CAAC,CACL,CACG,CACR,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MassDeleteFleetModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AASzC,KAAK,yBAAyB,GAAG;IAC/B,OAAO,EAAE,YAAY,CAAC;IACtB,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACrB,eAAe,EAAE,YAAY,CAAC;CAC/B,CAAC;AA6BF,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAyI7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"MassDeleteFleetModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AASzC,KAAK,yBAAyB,GAAG;IAC/B,OAAO,EAAE,YAAY,CAAC;IACtB,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACrB,eAAe,EAAE,YAAY,CAAC;CAC/B,CAAC;AA6BF,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAkI7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const React = tslib_1.__importStar(require("react"));
5
5
  const react_core_1 = require("@patternfly/react-core");
6
+ const next_1 = require("@patternfly/react-core/next");
6
7
  const react_table_1 = require("@patternfly/react-table");
7
8
  const error_1 = require("../../../../utils/error");
8
9
  const useFetch_1 = require("../../../../hooks/useFetch");
@@ -52,34 +53,38 @@ const MassDeleteFleetModal = ({ onClose, fleets, onDeleteSuccess }) => {
52
53
  }
53
54
  });
54
55
  if (fleetsToDelete.length === 0) {
55
- return (React.createElement(react_core_1.Modal, { title: t('Delete fleets'), isOpen: true, onClose: onClose, showClose: true, variant: "medium", actions: [
56
- React.createElement(react_core_1.Button, { key: "close", variant: "primary", onClick: onClose }, t('Close')),
57
- ] },
56
+ return (React.createElement(next_1.Modal, { isOpen: true, onClose: onClose, variant: "medium" },
57
+ React.createElement(next_1.ModalHeader, { title: t('Delete fleets') }),
58
+ React.createElement(next_1.ModalBody, null,
59
+ React.createElement(react_core_1.Stack, { hasGutter: true },
60
+ React.createElement(react_core_1.StackItem, null,
61
+ React.createElement(react_core_1.Alert, { variant: "info", isInline: true, title: t('All the fleets you selected are managed by a resource sync and cannot be deleted. You can remove each fleet individually. Alternatively, to delete multiple fleets, first delete the resource syncs from the related repositories inside the "Repositories" tab.') })),
62
+ React.createElement(react_core_1.StackItem, null,
63
+ React.createElement(MassDeleteFleetTable, { fleets: fleets })))),
64
+ React.createElement(next_1.ModalFooter, null,
65
+ React.createElement(react_core_1.Button, { key: "close", variant: "primary", onClick: onClose }, t('Close')))));
66
+ }
67
+ return (React.createElement(next_1.Modal, { isOpen: true, onClose: isDeleting ? undefined : onClose, variant: "medium" },
68
+ React.createElement(next_1.ModalHeader, { title: t('Delete fleets ?'), titleIconVariant: "warning" }),
69
+ React.createElement(next_1.ModalBody, null,
58
70
  React.createElement(react_core_1.Stack, { hasGutter: true },
71
+ React.createElement(react_core_1.StackItem, null, t('The following fleets will be deleted and as a result, the devices managed by them will be left unmanaged. Are you sure you want to delete the listed fleets?')),
59
72
  React.createElement(react_core_1.StackItem, null,
60
- React.createElement(react_core_1.Alert, { variant: "info", isInline: true, title: t('All the fleets you selected are managed by a resource sync and cannot be deleted. You can remove each fleet individually. Alternatively, to delete multiple fleets, first delete the resource syncs from the related repositories inside the "Repositories" tab.') })),
61
- React.createElement(react_core_1.StackItem, null,
62
- React.createElement(MassDeleteFleetTable, { fleets: fleets })))));
63
- }
64
- return (React.createElement(react_core_1.Modal, { title: t('Delete fleets ?'), isOpen: true, onClose: onClose, showClose: !isDeleting, variant: "medium", titleIconVariant: "warning", actions: [
73
+ React.createElement(MassDeleteFleetTable, { fleets: fleetsToDelete })),
74
+ fleetsToSkip.length > 0 && (React.createElement(React.Fragment, null,
75
+ React.createElement(react_core_1.StackItem, null,
76
+ React.createElement(react_core_1.Alert, { variant: "info", isInline: true, title: t(`Some fleets you selected are managed by a resource sync and cannot be deleted. To remove those fleets, delete the resource syncs from the related repositories inside the "Repositories" tab.`) })),
77
+ React.createElement(react_core_1.StackItem, null,
78
+ React.createElement(react_core_1.ExpandableSection, { toggleText: t('Show fleets') },
79
+ React.createElement(MassDeleteFleetTable, { fleets: fleetsToSkip }))))),
80
+ isDeleting && (React.createElement(react_core_1.StackItem, null,
81
+ React.createElement(react_core_1.Progress, { value: progress, min: 0, max: progressTotal, title: t('Deleting...'), measureLocation: react_core_1.ProgressMeasureLocation.top, label: t('{{progress}} of {{progressTotal}}', { progress, progressTotal }), valueText: t('{{progress}} of {{progressTotal}}', { progress, progressTotal }) }))),
82
+ (errors === null || errors === void 0 ? void 0 : errors.length) && (React.createElement(react_core_1.StackItem, null,
83
+ React.createElement(react_core_1.Alert, { isInline: true, variant: "danger", title: t('An error occurred') },
84
+ React.createElement(react_core_1.Stack, { hasGutter: true }, errors.map((e, index) => (React.createElement(react_core_1.StackItem, { key: index }, e))))))))),
85
+ React.createElement(next_1.ModalFooter, null,
65
86
  React.createElement(react_core_1.Button, { key: "delete", variant: "danger", onClick: deleteFleets, isLoading: isDeleting, isDisabled: isDeleting }, t('Delete fleets')),
66
- React.createElement(react_core_1.Button, { key: "cancel", variant: "link", onClick: onClose, isDisabled: isDeleting }, t('Cancel')),
67
- ] },
68
- React.createElement(react_core_1.Stack, { hasGutter: true },
69
- React.createElement(react_core_1.StackItem, null, t('The following fleets will be deleted and as a result, the devices managed by them will be left unmanaged. Are you sure you want to delete the listed fleets?')),
70
- React.createElement(react_core_1.StackItem, null,
71
- React.createElement(MassDeleteFleetTable, { fleets: fleetsToDelete })),
72
- fleetsToSkip.length > 0 && (React.createElement(React.Fragment, null,
73
- React.createElement(react_core_1.StackItem, null,
74
- React.createElement(react_core_1.Alert, { variant: "info", isInline: true, title: t(`Some fleets you selected are managed by a resource sync and cannot be deleted. To remove those fleets, delete the resource syncs from the related repositories inside the "Repositories" tab.`) })),
75
- React.createElement(react_core_1.StackItem, null,
76
- React.createElement(react_core_1.ExpandableSection, { toggleText: t('Show fleets') },
77
- React.createElement(MassDeleteFleetTable, { fleets: fleetsToSkip }))))),
78
- isDeleting && (React.createElement(react_core_1.StackItem, null,
79
- React.createElement(react_core_1.Progress, { value: progress, min: 0, max: progressTotal, title: t('Deleting...'), measureLocation: react_core_1.ProgressMeasureLocation.top, label: t('{{progress}} of {{progressTotal}}', { progress, progressTotal }), valueText: t('{{progress}} of {{progressTotal}}', { progress, progressTotal }) }))),
80
- (errors === null || errors === void 0 ? void 0 : errors.length) && (React.createElement(react_core_1.StackItem, null,
81
- React.createElement(react_core_1.Alert, { isInline: true, variant: "danger", title: t('An error occurred') },
82
- React.createElement(react_core_1.Stack, { hasGutter: true }, errors.map((e, index) => (React.createElement(react_core_1.StackItem, { key: index }, e))))))))));
87
+ React.createElement(react_core_1.Button, { key: "cancel", variant: "link", onClick: onClose, isDisabled: isDeleting }, t('Cancel')))));
83
88
  };
84
89
  exports.default = MassDeleteFleetModal;
85
90
  //# sourceMappingURL=MassDeleteFleetModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MassDeleteFleetModal.js","sourceRoot":"","sources":["../../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AAQ,QAAC,OAAO,EAAC,QAAQ,EAAC,KAAK,EAAE,CAAC,CAAC,mBAAmB,CAAC;oBAC5D,oBAAC,kBAAK,IAAC,SAAS,UACb,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,oBAAC,sBAAS,IAAC,GAAG,EAAE,KAAK,IAAG,CAAC,CAAa,CACvC,CAAC,CACI,CACF,CACE,CACb,CACK,CACF,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"MassDeleteFleetModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAQgC;AAChC,sDAAyF;AAEzF,yDAA0E;AAE1E,mDAA0D;AAC1D,yDAAsD;AACtD,wGAAwE;AACxE,qEAAkE;AAClE,2DAAgE;AAQhE,MAAM,oBAAoB,GAAG,CAAC,EAAE,MAAM,EAA4B,EAAE,EAAE;IACpE,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,OAAO,CACL,oBAAC,mBAAK;QACJ,oBAAC,mBAAK;YACJ,oBAAC,gBAAE;gBACD,oBAAC,gBAAE,IAAC,QAAQ,EAAC,YAAY,IAAE,CAAC,CAAC,MAAM,CAAC,CAAM;gBAC1C,oBAAC,gBAAE,IAAC,QAAQ,EAAC,YAAY,IAAE,CAAC,CAAC,YAAY,CAAC,CAAM,CAC7C,CACC;QACR,oBAAC,mBAAK,QACH,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;YACpB,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAc,CAAC;YAC3C,OAAO,CACL,oBAAC,gBAAE,IAAC,GAAG,EAAE,IAAI;gBACX,oBAAC,gBAAE,IAAC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,IA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C,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,GAC9E,CACQ,CACb;gBACA,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,KAAI,CACjB,oBAAC,sBAAS;oBACR,oBAAC,kBAAK,IAAC,QAAQ,QAAC,OAAO,EAAC,QAAQ,EAAC,KAAK,EAAE,CAAC,CAAC,mBAAmB,CAAC;wBAC5D,oBAAC,kBAAK,IAAC,SAAS,UACb,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,oBAAC,sBAAS,IAAC,GAAG,EAAE,KAAK,IAAG,CAAC,CAAa,CACvC,CAAC,CACI,CACF,CACE,CACb,CACK,CACE;QACZ,oBAAC,kBAAW;YACV,oBAAC,mBAAM,IAAC,GAAG,EAAC,QAAQ,EAAC,OAAO,EAAC,QAAQ,EAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,IACvG,CAAC,CAAC,eAAe,CAAC,CACZ;YACT,oBAAC,mBAAM,IAAC,GAAG,EAAC,QAAQ,EAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,IACzE,CAAC,CAAC,QAAQ,CAAC,CACL,CACG,CACR,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MassDeleteRepositoryModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,UAAU,EAAoB,MAAM,kBAAkB,CAAC;AAShE,KAAK,8BAA8B,GAAG;IACpC,OAAO,EAAE,YAAY,CAAC;IACtB,eAAe,EAAE,YAAY,CAAC;IAC9B,YAAY,EAAE,UAAU,EAAE,CAAC;CAC5B,CAAC;AAIF,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAyJvE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"MassDeleteRepositoryModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,UAAU,EAAoB,MAAM,kBAAkB,CAAC;AAShE,KAAK,8BAA8B,GAAG;IACpC,OAAO,EAAE,YAAY,CAAC;IACtB,eAAe,EAAE,YAAY,CAAC;IAC9B,YAAY,EAAE,UAAU,EAAE,CAAC;CAC5B,CAAC;AAIF,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAqJvE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const React = tslib_1.__importStar(require("react"));
5
5
  const react_core_1 = require("@patternfly/react-core");
6
+ const next_1 = require("@patternfly/react-core/next");
6
7
  const react_table_1 = require("@patternfly/react-table");
7
8
  const useFetch_1 = require("../../../../hooks/useFetch");
8
9
  const error_1 = require("../../../../utils/error");
@@ -63,33 +64,35 @@ const MassDeleteRepositoryModal = ({ onClose, onDeleteSuccess, repositories, })
63
64
  React.useEffect(() => {
64
65
  void fetchResourceSyncsCount();
65
66
  }, [fetchResourceSyncsCount]);
66
- return (React.createElement(react_core_1.Modal, { title: t('Delete repositories ?'), isOpen: true, onClose: onClose, showClose: !isDeleting, variant: "medium", titleIconVariant: "warning", actions: [
67
+ return (React.createElement(next_1.Modal, { isOpen: true, onClose: isDeleting ? undefined : onClose, variant: "medium" },
68
+ React.createElement(next_1.ModalHeader, { title: t('Delete repositories ?'), titleIconVariant: "warning" }),
69
+ React.createElement(next_1.ModalBody, null,
70
+ React.createElement(react_core_1.Stack, { hasGutter: true },
71
+ isLoading && React.createElement(React.Fragment, null, t('Please wait while the repository details are loading')),
72
+ !isLoading && (React.createElement(React.Fragment, null,
73
+ React.createElement(react_core_1.StackItem, null, t('Are you sure you want to delete the following repositories ?')),
74
+ React.createElement(react_core_1.StackItem, null,
75
+ React.createElement(react_core_1.Alert, { variant: "warning", title: t('Resource syncs will also be deleted'), isInline: true }, t('Note that all the resource syncs of the selected repositories will also be deleted. Any fleet that is being managed by those resource syncs will become unmanaged.'))),
76
+ React.createElement(react_core_1.StackItem, null,
77
+ React.createElement(react_table_1.Table, null,
78
+ React.createElement(react_table_1.Thead, null,
79
+ React.createElement(react_table_1.Tr, null,
80
+ React.createElement(react_table_1.Th, { modifier: "fitContent" }, t('Repository name')),
81
+ React.createElement(react_table_1.Th, { modifier: "fitContent" }, t('# Resource syncs')))),
82
+ React.createElement(react_table_1.Tbody, null, repositories.map((repository) => {
83
+ const repositoryId = repository.metadata.name || '';
84
+ return (React.createElement(react_table_1.Tr, { key: repositoryId },
85
+ React.createElement(react_table_1.Td, { dataLabel: t('Repository name') }, repositoryId),
86
+ React.createElement(react_table_1.Td, { dataLabel: t('# Resource syncs') }, resourceSyncCount[repositoryId] || '0')));
87
+ })))))),
88
+ isDeleting && (React.createElement(react_core_1.StackItem, null,
89
+ React.createElement(react_core_1.Progress, { value: progress, min: 0, max: progressTotal, title: t('Deleting...'), measureLocation: react_core_1.ProgressMeasureLocation.top, label: t('{{progress}} of {{progressTotal}}', { progress, progressTotal }), valueText: t('{{progress}} of {{progressTotal}}', { progress, progressTotal }) }))),
90
+ (errors === null || errors === void 0 ? void 0 : errors.length) && (React.createElement(react_core_1.StackItem, null,
91
+ React.createElement(react_core_1.Alert, { isInline: true, variant: "danger", title: t('An error occurred') },
92
+ React.createElement(react_core_1.Stack, { hasGutter: true }, errors.map((e, index) => (React.createElement(react_core_1.StackItem, { key: index }, e))))))))),
93
+ React.createElement(next_1.ModalFooter, null,
67
94
  React.createElement(react_core_1.Button, { key: "delete", variant: "danger", onClick: deleteRepositories, isLoading: isLoading || isDeleting, isDisabled: isLoading || isDeleting }, t('Delete repositories')),
68
- React.createElement(react_core_1.Button, { key: "cancel", variant: "link", onClick: onClose, isDisabled: isDeleting }, t('Cancel')),
69
- ] },
70
- React.createElement(react_core_1.Stack, { hasGutter: true },
71
- isLoading && React.createElement(React.Fragment, null, t('Please wait while the repository details are loading')),
72
- !isLoading && (React.createElement(React.Fragment, null,
73
- React.createElement(react_core_1.StackItem, null, t('Are you sure you want to delete the following repositories ?')),
74
- React.createElement(react_core_1.StackItem, null,
75
- React.createElement(react_core_1.Alert, { variant: "warning", title: t('Resource syncs will also be deleted'), isInline: true }, t('Note that all the resource syncs of the selected repositories will also be deleted. Any fleet that is being managed by those resource syncs will become unmanaged.'))),
76
- React.createElement(react_core_1.StackItem, null,
77
- React.createElement(react_table_1.Table, null,
78
- React.createElement(react_table_1.Thead, null,
79
- React.createElement(react_table_1.Tr, null,
80
- React.createElement(react_table_1.Th, { modifier: "fitContent" }, t('Repository name')),
81
- React.createElement(react_table_1.Th, { modifier: "fitContent" }, t('# Resource syncs')))),
82
- React.createElement(react_table_1.Tbody, null, repositories.map((repository) => {
83
- const repositoryId = repository.metadata.name || '';
84
- return (React.createElement(react_table_1.Tr, { key: repositoryId },
85
- React.createElement(react_table_1.Td, { dataLabel: t('Repository name') }, repositoryId),
86
- React.createElement(react_table_1.Td, { dataLabel: t('# Resource syncs') }, resourceSyncCount[repositoryId] || '0')));
87
- })))))),
88
- isDeleting && (React.createElement(react_core_1.StackItem, null,
89
- React.createElement(react_core_1.Progress, { value: progress, min: 0, max: progressTotal, title: t('Deleting...'), measureLocation: react_core_1.ProgressMeasureLocation.top, label: t('{{progress}} of {{progressTotal}}', { progress, progressTotal }), valueText: t('{{progress}} of {{progressTotal}}', { progress, progressTotal }) }))),
90
- (errors === null || errors === void 0 ? void 0 : errors.length) && (React.createElement(react_core_1.StackItem, null,
91
- React.createElement(react_core_1.Alert, { isInline: true, variant: "danger", title: t('An error occurred') },
92
- React.createElement(react_core_1.Stack, { hasGutter: true }, errors.map((e, index) => (React.createElement(react_core_1.StackItem, { key: index }, e))))))))));
95
+ React.createElement(react_core_1.Button, { key: "cancel", variant: "link", onClick: onClose, isDisabled: isDeleting }, t('Cancel')))));
93
96
  };
94
97
  exports.default = MassDeleteRepositoryModal;
95
98
  //# sourceMappingURL=MassDeleteRepositoryModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MassDeleteRepositoryModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAAmH;AACnH,yDAA0E;AAI1E,yDAAsD;AACtD,mDAA0D;AAC1D,qEAAkE;AAClE,2DAAgE;AAChE,+CAAwD;AACxD,mDAAwD;AAUxD,MAAM,yBAAyB,GAA6C,CAAC,EAC3E,OAAO,EACP,eAAe,EACf,YAAY,GACb,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAY,CAAC;IACvD,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAuB,EAAE,CAAC,CAAC;IAC3F,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;IACpE,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAA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AE,EAAE,CAAC,CACxB,oBAAC,sBAAS,IAAC,GAAG,EAAE,KAAK,IAAG,CAAC,CAAa,CACvC,CAAC,CACI,CACF,CACE,CACb,CACK,CACF,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"MassDeleteRepositoryModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAA4G;AAC5G,sDAAyF;AACzF,yDAA0E;AAI1E,yDAAsD;AACtD,mDAA0D;AAC1D,qEAAkE;AAClE,2DAAgE;AAChE,+CAAwD;AACxD,mDAAwD;AAUxD,MAAM,yBAAyB,GAA6C,CAAC,EAC3E,OAAO,EACP,eAAe,EACf,YAAY,GACb,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAY,CAAC;IACvD,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAuB,EAAE,CAAC,CAAC;IAC3F,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;IACpE,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAClD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,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AAE,UAAU,EAAE,UAAU,IACzE,CAAC,CAAC,QAAQ,CAAC,CACL,CACG,CACR,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,yBAAyB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ResourceSync } from '@flightctl/types';
2
1
  import * as React from 'react';
2
+ import { ResourceSync } from '@flightctl/types';
3
3
  type MassDeleteResourceSyncModalProps = {
4
4
  onClose: VoidFunction;
5
5
  resources: ResourceSync[];
@@ -1 +1 @@
1
- {"version":3,"file":"MassDeleteResourceSyncModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,KAAK,gCAAgC,GAAG;IACtC,OAAO,EAAE,YAAY,CAAC;IACtB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,eAAe,EAAE,YAAY,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,gCAAgC,CAkG3E,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"MassDeleteResourceSyncModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMhD,KAAK,gCAAgC,GAAG;IACtC,OAAO,EAAE,YAAY,CAAC;IACtB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,eAAe,EAAE,YAAY,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,gCAAgC,CA+F3E,CAAC;AAEF,eAAe,2BAA2B,CAAC"}