@flightctl/ui-components 0.7.1 → 0.8.0-rc1
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.
- package/dist/src/components/DetailsPage/DetailsPageActions.d.ts +1 -1
- package/dist/src/components/DetailsPage/DetailsPageActions.d.ts.map +1 -1
- package/dist/src/components/DetailsPage/DetailsPageActions.js +1 -1
- package/dist/src/components/DetailsPage/DetailsPageActions.js.map +1 -1
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.d.ts.map +1 -1
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.js +18 -14
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js +10 -11
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.d.ts.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js +31 -10
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/DecommissionedDevicesTable.js +2 -2
- package/dist/src/components/Device/DevicesPage/DecommissionedDevicesTable.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/EnrolledDevicesTable.js +2 -2
- package/dist/src/components/Device/DevicesPage/EnrolledDevicesTable.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js +4 -2
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js +29 -1
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.d.ts +2 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.js +6 -5
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.d.ts +3 -2
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js +13 -9
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts +3 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js +20 -17
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts +2 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js +18 -14
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts +2 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.js +21 -14
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.d.ts +3 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.js +34 -20
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts +2 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js +14 -15
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.d.ts +3 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.js +6 -36
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.js +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.js +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.js +2 -2
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.d.ts +4 -2
- package/dist/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.js +19 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts +1 -14
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/utils.js +3 -3
- package/dist/src/components/Device/EditDeviceWizard/utils.js.map +1 -1
- package/dist/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.d.ts.map +1 -1
- package/dist/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.js +28 -26
- package/dist/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.js.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.d.ts.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js +11 -16
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js.map +1 -1
- package/dist/src/components/Events/EventItem.d.ts +7 -0
- package/dist/src/components/Events/EventItem.d.ts.map +1 -0
- package/dist/src/components/Events/EventItem.js +25 -0
- package/dist/src/components/Events/EventItem.js.map +1 -0
- package/dist/src/components/Events/EventsCard.css +5 -0
- package/dist/src/components/Events/EventsCard.d.ts +11 -0
- package/dist/src/components/Events/EventsCard.d.ts.map +1 -0
- package/dist/src/components/Events/EventsCard.js +81 -0
- package/dist/src/components/Events/EventsCard.js.map +1 -0
- package/dist/src/components/Events/useEvents.d.ts +21 -0
- package/dist/src/components/Events/useEvents.d.ts.map +1 -0
- package/dist/src/components/Events/useEvents.js +105 -0
- package/dist/src/components/Events/useEvents.js.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.js +27 -9
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.d.ts +2 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.js +13 -2
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.d.ts +3 -33
- package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.js +7 -21
- package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.d.ts +4 -2
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js +10 -1
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts +5 -3
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.js +4 -4
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js +10 -9
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.d.ts +3 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.js +8 -86
- package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.d.ts +3 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.js +4 -4
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.d.ts +3 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.js +16 -13
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.d.ts +3 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.js +20 -20
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/utils.d.ts +1 -1
- package/dist/src/components/Fleet/CreateFleet/utils.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/utils.js +37 -23
- package/dist/src/components/Fleet/CreateFleet/utils.js.map +1 -1
- package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.d.ts.map +1 -1
- package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.js +20 -16
- package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.js.map +1 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.d.ts.map +1 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.js +8 -5
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.js.map +1 -1
- package/dist/src/components/Fleet/FleetDetails/{FleetDetails.d.ts → FleetDetailsPage.d.ts} +1 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsPage.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/{FleetDetails.js → FleetDetailsPage.js} +23 -17
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsPage.js.map +1 -0
- package/dist/src/components/Fleet/FleetRow.d.ts.map +1 -1
- package/dist/src/components/Fleet/FleetRow.js +9 -12
- package/dist/src/components/Fleet/FleetRow.js.map +1 -1
- package/dist/src/components/Masthead/UserPreferencesModal.d.ts.map +1 -1
- package/dist/src/components/Masthead/UserPreferencesModal.js +14 -15
- package/dist/src/components/Masthead/UserPreferencesModal.js.map +1 -1
- package/dist/src/components/Masthead/UserPreferencesProvider.d.ts +8 -5
- package/dist/src/components/Masthead/UserPreferencesProvider.d.ts.map +1 -1
- package/dist/src/components/Masthead/UserPreferencesProvider.js +7 -5
- package/dist/src/components/Masthead/UserPreferencesProvider.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js +11 -7
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/utils.d.ts.map +1 -1
- package/dist/src/components/Repository/CreateRepository/utils.js +2 -3
- package/dist/src/components/Repository/CreateRepository/utils.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.d.ts.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.js +25 -24
- package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.d.ts.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.js +22 -8
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.js.map +1 -1
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.d.ts.map +1 -1
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js +18 -15
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js.map +1 -1
- package/dist/src/components/common/CodeEditor/CodeEditorTheme.d.ts +5 -0
- package/dist/src/components/common/CodeEditor/CodeEditorTheme.d.ts.map +1 -0
- package/dist/src/components/common/CodeEditor/CodeEditorTheme.js +52 -0
- package/dist/src/components/common/CodeEditor/CodeEditorTheme.js.map +1 -0
- package/dist/src/components/common/CodeEditor/Shortcut.css +22 -0
- package/dist/src/components/common/CodeEditor/Shortcut.d.ts +20 -0
- package/dist/src/components/common/CodeEditor/Shortcut.d.ts.map +1 -0
- package/dist/src/components/common/CodeEditor/Shortcut.js +46 -0
- package/dist/src/components/common/CodeEditor/Shortcut.js.map +1 -0
- package/dist/src/components/common/CodeEditor/YamlEditor.css +12 -0
- package/dist/src/components/common/CodeEditor/YamlEditor.d.ts +16 -0
- package/dist/src/components/common/CodeEditor/YamlEditor.d.ts.map +1 -0
- package/dist/src/components/common/CodeEditor/YamlEditor.js +48 -0
- package/dist/src/components/common/CodeEditor/YamlEditor.js.map +1 -0
- package/dist/src/components/common/CodeEditor/YamlEditorBase.css +3 -0
- package/dist/src/components/common/CodeEditor/YamlEditorBase.d.ts +11 -0
- package/dist/src/components/common/CodeEditor/YamlEditorBase.d.ts.map +1 -0
- package/dist/src/components/common/CodeEditor/YamlEditorBase.js +75 -0
- package/dist/src/components/common/CodeEditor/YamlEditorBase.js.map +1 -0
- package/dist/src/components/common/CodeEditor/useShortcutPopover.d.ts +3 -0
- package/dist/src/components/common/CodeEditor/useShortcutPopover.d.ts.map +1 -0
- package/dist/src/components/common/CodeEditor/useShortcutPopover.js +26 -0
- package/dist/src/components/common/CodeEditor/useShortcutPopover.js.map +1 -0
- package/dist/src/components/common/LabelsView.d.ts +1 -3
- package/dist/src/components/common/LabelsView.d.ts.map +1 -1
- package/dist/src/components/common/LabelsView.js +2 -4
- package/dist/src/components/common/LabelsView.js.map +1 -1
- package/dist/src/components/common/LeaveFormConfirmation.d.ts.map +1 -1
- package/dist/src/components/common/LeaveFormConfirmation.js +8 -7
- package/dist/src/components/common/LeaveFormConfirmation.js.map +1 -1
- package/dist/src/components/common/TechPreviewBadge.d.ts.map +1 -1
- package/dist/src/components/common/TechPreviewBadge.js +3 -2
- package/dist/src/components/common/TechPreviewBadge.js.map +1 -1
- package/dist/src/components/form/FlightCtlActionGroup.d.ts +1 -1
- package/dist/src/components/form/FlightCtlActionGroup.d.ts.map +1 -1
- package/dist/src/components/form/FlightCtlActionGroup.js.map +1 -1
- package/dist/src/components/form/FormSelect.d.ts +4 -2
- package/dist/src/components/form/FormSelect.d.ts.map +1 -1
- package/dist/src/components/form/FormSelect.js +12 -1
- package/dist/src/components/form/FormSelect.js.map +1 -1
- package/dist/src/components/form/FormSelectTypeahead.d.ts +4 -3
- package/dist/src/components/form/FormSelectTypeahead.d.ts.map +1 -1
- package/dist/src/components/form/FormSelectTypeahead.js +18 -1
- package/dist/src/components/form/FormSelectTypeahead.js.map +1 -1
- package/dist/src/components/form/LabelsField.d.ts +4 -3
- package/dist/src/components/form/LabelsField.d.ts.map +1 -1
- package/dist/src/components/form/LabelsField.js +15 -5
- package/dist/src/components/form/LabelsField.js.map +1 -1
- package/dist/src/components/form/NameField.d.ts +2 -2
- package/dist/src/components/form/NameField.d.ts.map +1 -1
- package/dist/src/components/form/NameField.js +14 -4
- package/dist/src/components/form/NameField.js.map +1 -1
- package/dist/src/components/form/RichValidationTextField.d.ts +2 -2
- package/dist/src/components/form/RichValidationTextField.d.ts.map +1 -1
- package/dist/src/components/form/RichValidationTextField.js +13 -1
- package/dist/src/components/form/RichValidationTextField.js.map +1 -1
- package/dist/src/components/form/TextListField.d.ts +4 -2
- package/dist/src/components/form/TextListField.d.ts.map +1 -1
- package/dist/src/components/form/TextListField.js +13 -3
- package/dist/src/components/form/TextListField.js.map +1 -1
- package/dist/src/components/form/UploadField.d.ts +3 -2
- package/dist/src/components/form/UploadField.d.ts.map +1 -1
- package/dist/src/components/form/UploadField.js +10 -1
- package/dist/src/components/form/UploadField.js.map +1 -1
- package/dist/src/components/form/validations.js +1 -1
- package/dist/src/components/form/validations.js.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.d.ts.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js +4 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js.map +1 -1
- package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.d.ts.map +1 -1
- package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.js +5 -3
- package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.js.map +1 -1
- package/dist/src/components/modals/DecommissionModal/DecommissionModal.d.ts.map +1 -1
- package/dist/src/components/modals/DecommissionModal/DecommissionModal.js +32 -29
- package/dist/src/components/modals/DecommissionModal/DecommissionModal.js.map +1 -1
- package/dist/src/components/modals/DeleteModal/DeleteModal.d.ts.map +1 -1
- package/dist/src/components/modals/DeleteModal/DeleteModal.js +18 -15
- package/dist/src/components/modals/DeleteModal/DeleteModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.d.ts.map +1 -1
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js +33 -30
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.d.ts.map +1 -1
- package/dist/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.js +27 -24
- package/dist/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.d.ts.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js +26 -23
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.d.ts.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js +30 -25
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.d.ts.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.js +29 -26
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.d.ts +1 -1
- package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.d.ts.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.js +28 -25
- package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.js.map +1 -1
- package/dist/src/constants.d.ts +2 -1
- package/dist/src/constants.d.ts.map +1 -1
- package/dist/src/constants.js +3 -1
- package/dist/src/constants.js.map +1 -1
- package/dist/src/hooks/useAppLinks.d.ts +5 -0
- package/dist/src/hooks/useAppLinks.d.ts.map +1 -0
- package/dist/src/hooks/useAppLinks.js +45 -0
- package/dist/src/hooks/useAppLinks.js.map +1 -0
- package/dist/src/{components/EnrollmentRequest/EnrollmentRequestDetails/useEnrollmentRequestSystemInfo.d.ts → hooks/useDeviceSpecSystemInfo.d.ts} +2 -2
- package/dist/src/hooks/useDeviceSpecSystemInfo.d.ts.map +1 -0
- package/dist/src/{components/EnrollmentRequest/EnrollmentRequestDetails/useEnrollmentRequestSystemInfo.js → hooks/useDeviceSpecSystemInfo.js} +18 -10
- package/dist/src/hooks/useDeviceSpecSystemInfo.js.map +1 -0
- package/dist/src/hooks/useFetchPeriodically.d.ts +2 -2
- package/dist/src/hooks/useFetchPeriodically.d.ts.map +1 -1
- package/dist/src/hooks/useFetchPeriodically.js +1 -1
- package/dist/src/hooks/useFetchPeriodically.js.map +1 -1
- package/dist/src/hooks/useThemePreferences.d.ts +6 -3
- package/dist/src/hooks/useThemePreferences.d.ts.map +1 -1
- package/dist/src/hooks/useThemePreferences.js +46 -23
- package/dist/src/hooks/useThemePreferences.js.map +1 -1
- package/dist/src/types/deviceSpec.d.ts +7 -1
- package/dist/src/types/deviceSpec.d.ts.map +1 -1
- package/dist/src/types/deviceSpec.js +16 -12
- package/dist/src/types/deviceSpec.js.map +1 -1
- package/dist/src/types/extraTypes.d.ts +3 -2
- package/dist/src/types/extraTypes.d.ts.map +1 -1
- package/dist/src/types/extraTypes.js.map +1 -1
- package/dist/src/utils/dates.d.ts +2 -1
- package/dist/src/utils/dates.d.ts.map +1 -1
- package/dist/src/utils/dates.js +20 -20
- package/dist/src/utils/dates.js.map +1 -1
- package/dist/src/utils/patch.d.ts.map +1 -1
- package/dist/src/utils/patch.js +2 -1
- package/dist/src/utils/patch.js.map +1 -1
- package/package.json +6 -2
- package/src/components/DetailsPage/DetailsPageActions.tsx +2 -1
- package/src/components/Device/AddDeviceModal/AddDeviceModal.tsx +27 -22
- package/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx +10 -19
- package/src/components/Device/DeviceDetails/DeviceDetailsTab.tsx +65 -21
- package/src/components/Device/DevicesPage/DecommissionedDevicesTable.tsx +2 -2
- package/src/components/Device/DevicesPage/EnrolledDevicesTable.tsx +2 -2
- package/src/components/Device/EditDeviceWizard/EditDeviceWizard.tsx +6 -1
- package/src/components/Device/EditDeviceWizard/deviceSpecUtils.ts +28 -1
- package/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.tsx +19 -5
- package/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.tsx +53 -23
- package/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.tsx +68 -53
- package/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.tsx +40 -25
- package/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx +39 -5
- package/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.tsx +81 -38
- package/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.tsx +15 -19
- package/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.tsx +7 -47
- package/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.tsx +1 -1
- package/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.tsx +1 -1
- package/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.tsx +2 -2
- package/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.tsx +30 -2
- package/src/components/Device/EditDeviceWizard/utils.ts +6 -7
- package/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.tsx +38 -35
- package/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.tsx +8 -19
- package/src/components/Events/EventItem.tsx +38 -0
- package/src/components/Events/EventsCard.css +5 -0
- package/src/components/Events/EventsCard.tsx +157 -0
- package/src/components/Events/useEvents.ts +136 -0
- package/src/components/Fleet/CreateFleet/CreateFleetWizard.tsx +29 -13
- package/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.tsx +25 -10
- package/src/components/Fleet/CreateFleet/fleetSpecUtils.ts +9 -23
- package/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.tsx +12 -1
- package/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.tsx +10 -5
- package/src/components/Fleet/CreateFleet/steps/ReviewStep.tsx +20 -17
- package/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.tsx +18 -122
- package/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.tsx +4 -1
- package/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.tsx +50 -31
- package/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.tsx +57 -12
- package/src/components/Fleet/CreateFleet/utils.ts +40 -22
- package/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.tsx +28 -28
- package/src/components/Fleet/FleetDetails/FleetDetailsContent.tsx +10 -9
- package/src/components/Fleet/FleetDetails/{FleetDetails.tsx → FleetDetailsPage.tsx} +40 -25
- package/src/components/Fleet/FleetRow.tsx +10 -11
- package/src/components/Masthead/UserPreferencesModal.tsx +43 -56
- package/src/components/Masthead/UserPreferencesProvider.tsx +15 -10
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx +14 -15
- package/src/components/Repository/CreateRepository/utils.ts +2 -3
- package/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.tsx +54 -55
- package/src/components/Repository/RepositoryDetails/RepositoryDetails.tsx +47 -14
- package/src/components/ResourceSync/RepositoryResourceSyncList.tsx +28 -25
- package/src/components/common/CodeEditor/CodeEditorTheme.ts +53 -0
- package/src/components/common/CodeEditor/Shortcut.css +22 -0
- package/src/components/common/CodeEditor/Shortcut.tsx +90 -0
- package/src/components/common/CodeEditor/YamlEditor.css +12 -0
- package/src/components/common/CodeEditor/YamlEditor.tsx +81 -0
- package/src/components/common/CodeEditor/YamlEditorBase.css +3 -0
- package/src/components/common/CodeEditor/YamlEditorBase.tsx +124 -0
- package/src/components/common/CodeEditor/useShortcutPopover.tsx +39 -0
- package/src/components/common/LabelsView.tsx +2 -11
- package/src/components/common/LeaveFormConfirmation.tsx +14 -18
- package/src/components/common/TechPreviewBadge.tsx +3 -1
- package/src/components/form/FlightCtlActionGroup.tsx +1 -1
- package/src/components/form/FormSelect.tsx +14 -3
- package/src/components/form/FormSelectTypeahead.tsx +24 -3
- package/src/components/form/LabelsField.tsx +20 -20
- package/src/components/form/NameField.tsx +18 -4
- package/src/components/form/RichValidationTextField.tsx +20 -1
- package/src/components/form/TextListField.tsx +19 -3
- package/src/components/form/UploadField.tsx +16 -2
- package/src/components/form/validations.ts +1 -1
- package/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.tsx +12 -7
- package/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.tsx +6 -3
- package/src/components/modals/DecommissionModal/DecommissionModal.tsx +60 -56
- package/src/components/modals/DeleteModal/DeleteModal.tsx +25 -27
- package/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.tsx +81 -92
- package/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.tsx +64 -67
- package/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx +60 -62
- package/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.tsx +80 -87
- package/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.tsx +70 -73
- package/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.tsx +62 -63
- package/src/constants.ts +2 -1
- package/src/hooks/useAppLinks.ts +49 -0
- package/src/{components/EnrollmentRequest/EnrollmentRequestDetails/useEnrollmentRequestSystemInfo.tsx → hooks/useDeviceSpecSystemInfo.tsx} +15 -7
- package/src/hooks/useFetchPeriodically.ts +3 -3
- package/src/hooks/useThemePreferences.ts +48 -21
- package/src/types/deviceSpec.ts +25 -12
- package/src/types/extraTypes.ts +7 -4
- package/src/utils/dates.ts +23 -24
- package/src/utils/patch.ts +3 -1
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.css +0 -3
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.d.ts +0 -9
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.d.ts.map +0 -1
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.js +0 -34
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.js.map +0 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/useEnrollmentRequestSystemInfo.d.ts.map +0 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/useEnrollmentRequestSystemInfo.js.map +0 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.d.ts +0 -9
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.d.ts.map +0 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.js +0 -61
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.js.map +0 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDetails.d.ts.map +0 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDetails.js.map +0 -1
- package/dist/src/components/common/LabelsView.css +0 -9
- package/dist/src/links.d.ts +0 -7
- package/dist/src/links.d.ts.map +0 -1
- package/dist/src/links.js +0 -14
- package/dist/src/links.js.map +0 -1
- package/src/components/Device/DeviceDetails/DeviceStatusDebugModal.css +0 -3
- package/src/components/Device/DeviceDetails/DeviceStatusDebugModal.tsx +0 -60
- package/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.tsx +0 -96
- package/src/components/common/LabelsView.css +0 -9
- package/src/links.ts +0 -16
package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js
CHANGED
|
@@ -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(
|
|
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
|
package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MassApproveDeviceModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAE/B,
|
|
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,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,kBAAkB,GAAG,CAAO,MAAmC,EAAE,EAAE;QACvE,WAAW,CAAC,CAAC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AM,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;
|
|
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(
|
|
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,
|
|
1
|
+
{"version":3,"file":"MassDecommissionDeviceModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAA4G;AAC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,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"}
|
package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.d.ts.map
CHANGED
|
@@ -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;
|
|
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"}
|
package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js
CHANGED
|
@@ -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(
|
|
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
|
package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MassDeleteDeviceModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,
|
|
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;AAG1E,6DAAmE;AAEnE,mDAA0D;AAC1D,yDAAsD;AACtD,qEAAkE;AAClE,2DAAgE;AAChE,wFAAwD;AAQxD,MAAM,qBAAqB,GAAyC,CAAC,EAAE,OAAO,EAAE,SAAS,EAA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,CAAC;AAEF,kBAAe,qBAAqB,CAAC"}
|
package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.d.ts.map
CHANGED
|
@@ -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,
|
|
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(
|
|
56
|
-
|
|
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(
|
|
61
|
-
React.createElement(
|
|
62
|
-
React.createElement(
|
|
63
|
-
|
|
64
|
-
|
|
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
|
package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MassDeleteFleetModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,
|
|
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,IAAG,IAAI,CAAM;gBACrC,oBAAC,gBAAE,IAAC,SAAS,EAAE,CAAC,CAAC,YAAY,CAAC;oBAC5B,oBAAC,wBAAc,IAAC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KA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ACR,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;
|
|
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"}
|
package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.js
CHANGED
|
@@ -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(
|
|
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,
|
|
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,CAA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,KAAK,IAAG,CAAC,CAAa,CACvC,CAAC,CACI,CACF,CACE,CACb,CACK,CACE;QACZ,oBAAC,kBAAW;YACV,oBAAC,mBAAM,IACL,GAAG,EAAC,QAAQ,EACZ,OAAO,EAAC,QAAQ,EAChB,OAAO,EAAE,kBAAkB,EAC3B,SAAS,EAAE,SAAS,IAAI,UAAU,EAClC,UAAU,EAAE,SAAS,IAAI,UAAU,IAElC,CAAC,CAAC,qBAAqB,CAAC,CAClB;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,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MassDeleteResourceSyncModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.tsx"],"names":[],"mappings":"
|
|
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"}
|