@flightctl/ui-components 0.7.2 → 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationTemplates.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigurationTemplates.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA8P/B,QAAA,MAAM,qCAAqC;;uBAa1C,CAAC;AAEF,eAAe,qCAAqC,CAAC"}
|
|
@@ -30,58 +30,72 @@ const useValidateOnMount = () => {
|
|
|
30
30
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
31
31
|
}, []);
|
|
32
32
|
};
|
|
33
|
-
const ConfigSection = ({ index, repositories, repoRefetch, canCreateRepo, canListRepo, }) => {
|
|
33
|
+
const ConfigSection = ({ index, repositories, repoRefetch, isReadOnly, canCreateRepo, canListRepo, }) => {
|
|
34
34
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
35
35
|
const fieldName = `configTemplates[${index}]`;
|
|
36
36
|
const [{ value: { name, type }, },] = (0, formik_1.useField)(fieldName);
|
|
37
37
|
useValidateOnMount();
|
|
38
38
|
const items = React.useMemo(() => {
|
|
39
|
-
const
|
|
39
|
+
const allOptions = {
|
|
40
40
|
[deviceSpec_1.ConfigType.INLINE]: { label: t('Inline configuration') },
|
|
41
|
+
[deviceSpec_1.ConfigType.GIT]: { label: t('Git configuration') },
|
|
42
|
+
[deviceSpec_1.ConfigType.HTTP]: { label: t('Http configuration') },
|
|
43
|
+
[deviceSpec_1.ConfigType.K8S_SECRET]: { label: t('Kubernetes secret') },
|
|
44
|
+
};
|
|
45
|
+
if (isReadOnly) {
|
|
46
|
+
return {
|
|
47
|
+
[type]: allOptions[type],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
const options = {
|
|
51
|
+
[deviceSpec_1.ConfigType.INLINE]: allOptions[deviceSpec_1.ConfigType.INLINE],
|
|
41
52
|
};
|
|
42
53
|
if (canListRepo && (canCreateRepo || repositories.length > 0)) {
|
|
43
|
-
options[deviceSpec_1.ConfigType.GIT] =
|
|
44
|
-
options[deviceSpec_1.ConfigType.HTTP] =
|
|
54
|
+
options[deviceSpec_1.ConfigType.GIT] = allOptions[deviceSpec_1.ConfigType.GIT];
|
|
55
|
+
options[deviceSpec_1.ConfigType.HTTP] = allOptions[deviceSpec_1.ConfigType.HTTP];
|
|
45
56
|
}
|
|
46
57
|
if (type === deviceSpec_1.ConfigType.K8S_SECRET) {
|
|
47
|
-
options[deviceSpec_1.ConfigType.K8S_SECRET] =
|
|
58
|
+
options[deviceSpec_1.ConfigType.K8S_SECRET] = allOptions[deviceSpec_1.ConfigType.K8S_SECRET];
|
|
48
59
|
}
|
|
49
60
|
return options;
|
|
50
61
|
// The k8s secret option must remain active for this config even when the users switch the configType to a different one
|
|
51
62
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
52
|
-
}, [t, canListRepo]);
|
|
63
|
+
}, [t, canListRepo, isReadOnly]);
|
|
53
64
|
return (React.createElement(ExpandableFormSection_1.default, { title: t('Configuration {{ configNum }}', { configNum: index + 1 }), fieldName: fieldName, description: name },
|
|
54
65
|
React.createElement(react_core_1.Grid, { hasGutter: true },
|
|
55
|
-
React.createElement(RichValidationTextField_1.default, { fieldName: `${fieldName}.name`, "aria-label": t('Source name'), validations: (0, validations_1.getDnsSubdomainValidations)(t), isRequired: true }),
|
|
66
|
+
React.createElement(RichValidationTextField_1.default, { isDisabled: isReadOnly, fieldName: `${fieldName}.name`, "aria-label": t('Source name'), validations: (0, validations_1.getDnsSubdomainValidations)(t), isRequired: true }),
|
|
56
67
|
React.createElement(react_core_1.FormGroup, { label: t('Source type'), isRequired: true },
|
|
57
|
-
React.createElement(FormSelect_1.default, { items: items, name: `${fieldName}.type`, placeholderText: t('Select a source type') })),
|
|
68
|
+
React.createElement(FormSelect_1.default, { items: items, name: `${fieldName}.type`, placeholderText: t('Select a source type'), isDisabled: isReadOnly })),
|
|
58
69
|
type === deviceSpec_1.ConfigType.K8S_SECRET && React.createElement(ConfigK8sSecretTemplateForm_1.default, { index: index }),
|
|
59
|
-
type === deviceSpec_1.ConfigType.INLINE && React.createElement(ConfigInlineTemplateForm_1.default, { index: index }),
|
|
60
|
-
(type === deviceSpec_1.ConfigType.GIT || type === deviceSpec_1.ConfigType.HTTP) && (React.createElement(ConfigWithRepositoryTemplateForm_1.default, { repoType: type === deviceSpec_1.ConfigType.HTTP ? types_1.RepoSpecType.HTTP : types_1.RepoSpecType.GIT, index: index, canCreateRepo: canCreateRepo, repositories: repositories, repoRefetch: repoRefetch })))));
|
|
70
|
+
type === deviceSpec_1.ConfigType.INLINE && React.createElement(ConfigInlineTemplateForm_1.default, { index: index, isReadOnly: isReadOnly }),
|
|
71
|
+
(type === deviceSpec_1.ConfigType.GIT || type === deviceSpec_1.ConfigType.HTTP) && (React.createElement(ConfigWithRepositoryTemplateForm_1.default, { repoType: type === deviceSpec_1.ConfigType.HTTP ? types_1.RepoSpecType.HTTP : types_1.RepoSpecType.GIT, index: index, isReadOnly: isReadOnly, canCreateRepo: canCreateRepo, repositories: repositories, repoRefetch: repoRefetch })))));
|
|
61
72
|
};
|
|
62
|
-
const ConfigurationTemplatesForm = ({ repositories, repoRefetch, canCreateRepo, canListRepo }) => {
|
|
73
|
+
const ConfigurationTemplatesForm = ({ repositories, repoRefetch, isReadOnly, canCreateRepo, canListRepo, }) => {
|
|
63
74
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
64
75
|
const { values, errors } = (0, formik_1.useFormikContext)();
|
|
76
|
+
if (isReadOnly && values.configTemplates.length === 0) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
65
79
|
const generalError = typeof errors.configTemplates === 'string' ? errors.configTemplates : undefined;
|
|
66
80
|
return (React.createElement(WithHelperText_1.FormGroupWithHelperText, { label: t('Host configurations (files)'), content: t("Define configuration files that shall be present on the device's file system. For example: systemd service config, network config, firewall config, etc.") },
|
|
67
81
|
React.createElement(formik_1.FieldArray, { name: "configTemplates" }, ({ push, remove }) => (React.createElement(React.Fragment, null,
|
|
68
82
|
values.configTemplates.map((_, index) => (React.createElement(react_core_1.FormSection, { key: index },
|
|
69
83
|
React.createElement(react_core_1.Split, { hasGutter: true },
|
|
70
84
|
React.createElement(react_core_1.SplitItem, { isFilled: true },
|
|
71
|
-
React.createElement(ConfigSection, { index: index, canCreateRepo: canCreateRepo, repositories: repositories, repoRefetch: repoRefetch, canListRepo: canListRepo })),
|
|
72
|
-
React.createElement(react_core_1.SplitItem, null,
|
|
73
|
-
React.createElement(react_core_1.Button, { "aria-label": t('Delete configuration'), variant: "link", icon: React.createElement(minus_circle_icon_1.MinusCircleIcon, null), iconPosition: "start", onClick: () => remove(index) })))))),
|
|
74
|
-
React.createElement(react_core_1.FormSection, null,
|
|
85
|
+
React.createElement(ConfigSection, { index: index, isReadOnly: isReadOnly, canCreateRepo: canCreateRepo, repositories: repositories, repoRefetch: repoRefetch, canListRepo: canListRepo })),
|
|
86
|
+
!isReadOnly && (React.createElement(react_core_1.SplitItem, null,
|
|
87
|
+
React.createElement(react_core_1.Button, { "aria-label": t('Delete configuration'), variant: "link", icon: React.createElement(minus_circle_icon_1.MinusCircleIcon, null), iconPosition: "start", onClick: () => remove(index) }))))))),
|
|
88
|
+
!isReadOnly && (React.createElement(react_core_1.FormSection, null,
|
|
75
89
|
React.createElement(react_core_1.FormGroup, null,
|
|
76
90
|
React.createElement(react_core_1.Button, { variant: "link", icon: React.createElement(plus_circle_icon_1.PlusCircleIcon, null), iconPosition: "start", onClick: () => {
|
|
77
91
|
push({
|
|
78
92
|
name: '',
|
|
79
93
|
type: '',
|
|
80
94
|
});
|
|
81
|
-
} }, t('Add configuration')))),
|
|
95
|
+
} }, t('Add configuration'))))),
|
|
82
96
|
React.createElement(FieldHelperText_1.default, { error: generalError }))))));
|
|
83
97
|
};
|
|
84
|
-
const ConfigurationTemplates = () => {
|
|
98
|
+
const ConfigurationTemplates = ({ isReadOnly }) => {
|
|
85
99
|
const [canCreateRepo] = (0, useAccessReview_1.useAccessReview)(rbac_1.RESOURCE.REPOSITORY, rbac_1.VERB.CREATE);
|
|
86
100
|
const [repositoryList, isLoading, error, refetch] = (0, useFetchPeriodically_1.useFetchPeriodically)({
|
|
87
101
|
endpoint: 'repositories',
|
|
@@ -95,11 +109,11 @@ const ConfigurationTemplates = () => {
|
|
|
95
109
|
return (React.createElement(react_core_1.Bullseye, null,
|
|
96
110
|
React.createElement(react_core_1.Spinner, null)));
|
|
97
111
|
}
|
|
98
|
-
return (React.createElement(ConfigurationTemplatesForm, { canListRepo: true, canCreateRepo: canCreateRepo, repositories: repositories, repoRefetch: refetch }));
|
|
112
|
+
return (React.createElement(ConfigurationTemplatesForm, { isReadOnly: isReadOnly, canListRepo: true, canCreateRepo: canCreateRepo, repositories: repositories, repoRefetch: refetch }));
|
|
99
113
|
};
|
|
100
|
-
const ConfigurationTemplatesWithPermissions = () => {
|
|
114
|
+
const ConfigurationTemplatesWithPermissions = ({ isReadOnly }) => {
|
|
101
115
|
const [canListRepo] = (0, useAccessReview_1.useAccessReview)(rbac_1.RESOURCE.REPOSITORY, rbac_1.VERB.LIST);
|
|
102
|
-
return canListRepo ? (React.createElement(ConfigurationTemplates, null)) : (React.createElement(ConfigurationTemplatesForm, { canListRepo: false, canCreateRepo: false, repositories: [], repoRefetch: () => { } }));
|
|
116
|
+
return canListRepo && !isReadOnly ? (React.createElement(ConfigurationTemplates, null)) : (React.createElement(ConfigurationTemplatesForm, { isReadOnly: true, canListRepo: false, canCreateRepo: false, repositories: [], repoRefetch: () => { } }));
|
|
103
117
|
};
|
|
104
118
|
exports.default = ConfigurationTemplatesWithPermissions;
|
|
105
119
|
//# sourceMappingURL=ConfigurationTemplates.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationTemplates.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAE/B,uDAUgC;AAChC,mCAAgE;AAChE,+FAA0F;AAC1F,6FAAwF;AAExF,4CAA4E;AAC5E,6DAA0G;AAC1G,qEAAkE;AAClE,iFAA8E;AAC9E,mDAA0D;AAC1D,mEAAyE;AACzE,2DAAuE;AACvE,4FAA4D;AAC5D,kFAAkD;AAClD,4GAA4E;AAC5E,kHAAkF;AAClF,wGAAwE;AACxE,kGAAkE;AAClE,wGAAwE;AACxE,uEAAoE;AACpE,iDAAwD;AAExD,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC9B,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,yBAAgB,GAA8B,CAAC;IAExE,uCAAuC;IACvC,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,YAAY,EAAE,CAAC;QACf,uDAAuD;IACzD,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigurationTemplates.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAE/B,uDAUgC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EAAE,YAAY,EAC1B,WAAW,EAAE,OAAO,GACpB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,qCAAqC,GAAG,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IAC/D,MAAM,CAAC,WAAW,CAAC,GAAG,IAAA,iCAAe,EAAC,eAAQ,CAAC,UAAU,EAAE,WAAI,CAAC,IAAI,CAAC,CAAC;IACtE,OAAO,WAAW,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAClC,oBAAC,sBAAsB,OAAG,CAC3B,CAAC,CAAC,CAAC,CACF,oBAAC,0BAA0B,IACzB,UAAU,QACV,WAAW,EAAE,KAAK,EAClB,aAAa,EAAE,KAAK,EACpB,YAAY,EAAE,EAAE,EAChB,WAAW,EAAE,GAAG,EAAE,GAAE,CAAC,GACrB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,qCAAqC,CAAC"}
|
|
@@ -3,8 +3,9 @@ import { FormikErrors } from 'formik';
|
|
|
3
3
|
import { DeviceSpecConfigFormValues } from '../../../../types/deviceSpec';
|
|
4
4
|
export declare const deviceTemplateStepId = "device-template";
|
|
5
5
|
export declare const isDeviceTemplateStepValid: (errors: FormikErrors<DeviceSpecConfigFormValues>) => boolean;
|
|
6
|
-
declare const DeviceTemplateStep: ({ isFleet }: {
|
|
6
|
+
declare const DeviceTemplateStep: ({ isFleet, isReadOnly }: {
|
|
7
7
|
isFleet: boolean;
|
|
8
|
+
isReadOnly?: boolean | undefined;
|
|
8
9
|
}) => React.JSX.Element;
|
|
9
10
|
export default DeviceTemplateStep;
|
|
10
11
|
//# sourceMappingURL=DeviceTemplateStep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceTemplateStep.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAoB,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"DeviceTemplateStep.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAoB,MAAM,QAAQ,CAAC;AASxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAU1E,eAAO,MAAM,oBAAoB,oBAAoB,CAAC;AAEtD,eAAO,MAAM,yBAAyB,WAAY,aAAa,0BAA0B,CAAC,YACE,CAAC;AAiF7F,QAAA,MAAM,kBAAkB;aAAwC,OAAO;;uBA+CtE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -6,7 +6,6 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const react_core_1 = require("@patternfly/react-core");
|
|
7
7
|
const formik_1 = require("formik");
|
|
8
8
|
const react_i18next_1 = require("react-i18next");
|
|
9
|
-
const links_1 = require("../../../../links");
|
|
10
9
|
const useTranslation_1 = require("../../../../hooks/useTranslation");
|
|
11
10
|
const WithHelperText_1 = tslib_1.__importStar(require("../../../common/WithHelperText"));
|
|
12
11
|
const LearnMoreLink_1 = tslib_1.__importDefault(require("../../../common/LearnMoreLink"));
|
|
@@ -16,6 +15,7 @@ const ConfigurationTemplates_1 = tslib_1.__importDefault(require("./Configuratio
|
|
|
16
15
|
const ApplicationTemplates_1 = tslib_1.__importDefault(require("./ApplicationTemplates"));
|
|
17
16
|
const SystemdUnitsForm_1 = tslib_1.__importDefault(require("./SystemdUnitsForm"));
|
|
18
17
|
const CheckboxField_1 = tslib_1.__importDefault(require("../../../form/CheckboxField"));
|
|
18
|
+
const useAppLinks_1 = require("../../../../hooks/useAppLinks");
|
|
19
19
|
const useFetchPeriodically_1 = require("../../../../hooks/useFetchPeriodically");
|
|
20
20
|
const useAppContext_1 = require("../../../../hooks/useAppContext");
|
|
21
21
|
const deviceSpecUtils_1 = require("../deviceSpecUtils");
|
|
@@ -25,9 +25,10 @@ exports.isDeviceTemplateStepValid = isDeviceTemplateStepValid;
|
|
|
25
25
|
const templateOption1 = '{{ .metadata.labels.key }}';
|
|
26
26
|
const templateOption2 = '{{ .metadata.name }}';
|
|
27
27
|
const exampleCode = `/device-configs/deployment-sites/site-{{ .metadata.labels.site }}`;
|
|
28
|
-
const MicroShiftCheckbox = ({ isFleet }) => {
|
|
28
|
+
const MicroShiftCheckbox = ({ isFleet, isReadOnly }) => {
|
|
29
29
|
const { initialValues } = (0, formik_1.useFormikContext)();
|
|
30
30
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
31
|
+
const createAcmRepoLink = (0, useAppLinks_1.useAppLinks)('createAcmRepo');
|
|
31
32
|
const [repo, loading, error] = (0, useFetchPeriodically_1.useFetchPeriodically)({
|
|
32
33
|
endpoint: `repositories/${deviceSpecUtils_1.ACM_REPO_NAME}`,
|
|
33
34
|
});
|
|
@@ -47,22 +48,23 @@ const MicroShiftCheckbox = ({ isFleet }) => {
|
|
|
47
48
|
React.createElement(WithHelperText_1.default, { label: "MicroShift registration", content: React.createElement(React.Fragment, null,
|
|
48
49
|
t('Select this when the device is running MicroShift and you want to register it to ACM.'),
|
|
49
50
|
React.createElement("br", null),
|
|
50
|
-
t("To remove registration, you'll need to uncheck this option and also remove the cluster from ACM's clusters list")), hideLabel: true }))), isDisabled: isDisabled })),
|
|
51
|
+
t("To remove registration, you'll need to uncheck this option and also remove the cluster from ACM's clusters list")), hideLabel: true }))), isDisabled: isDisabled || isReadOnly })),
|
|
51
52
|
isDisabled && (React.createElement(react_core_1.FormGroup, null,
|
|
52
53
|
React.createElement(react_core_1.Alert, { variant: "warning", title: t('Cannot register MicroShift devices'), isInline: true },
|
|
53
54
|
t(`{{ repository }} repository is missing. To re-create the repository`, {
|
|
54
55
|
repository: `'${deviceSpecUtils_1.ACM_REPO_NAME}'`,
|
|
55
56
|
}),
|
|
56
57
|
', ',
|
|
57
|
-
React.createElement(LearnMoreLink_1.default, { link:
|
|
58
|
+
React.createElement(LearnMoreLink_1.default, { link: createAcmRepoLink, text: t('view documentation') }))))));
|
|
58
59
|
};
|
|
59
|
-
const DeviceTemplateStep = ({ isFleet }) => {
|
|
60
|
+
const DeviceTemplateStep = ({ isFleet, isReadOnly }) => {
|
|
60
61
|
const { appType } = (0, useAppContext_1.useAppContext)();
|
|
61
62
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
62
63
|
const { values } = (0, formik_1.useFormikContext)();
|
|
64
|
+
const useTemplateVarsLink = (0, useAppLinks_1.useAppLinks)('useTemplateVars');
|
|
63
65
|
return (React.createElement(react_core_1.Grid, { span: 8 },
|
|
64
66
|
React.createElement(FlightCtlForm_1.default, null,
|
|
65
|
-
isFleet && (React.createElement(react_core_1.Alert, { isInline: true, variant: "info", title: t('Using template variables'), isExpandable: true },
|
|
67
|
+
isFleet && !isReadOnly && (React.createElement(react_core_1.Alert, { isInline: true, variant: "info", title: t('Using template variables'), isExpandable: true },
|
|
66
68
|
React.createElement(react_i18next_1.Trans, { t: t },
|
|
67
69
|
"Add a variable by using ",
|
|
68
70
|
React.createElement("strong", null, templateOption1),
|
|
@@ -71,18 +73,15 @@ const DeviceTemplateStep = ({ isFleet }) => {
|
|
|
71
73
|
" and it will be applied based on each device\u2019s details. For example, you could set the following value to apply different files in a Git configuration:"),
|
|
72
74
|
React.createElement(react_core_1.CodeBlock, { className: "pf-v5-u-mt-md" },
|
|
73
75
|
React.createElement(react_core_1.CodeBlockCode, null, exampleCode)),
|
|
74
|
-
React.createElement(LearnMoreLink_1.default, { link:
|
|
76
|
+
React.createElement(LearnMoreLink_1.default, { link: useTemplateVarsLink }))),
|
|
75
77
|
React.createElement(WithHelperText_1.FormGroupWithHelperText, { label: t('System image'), content: isFleet
|
|
76
78
|
? t("The target system image for this fleet's devices.")
|
|
77
79
|
: t('The target system image for this device.') },
|
|
78
|
-
React.createElement(TextField_1.default, { name: "osImage", "aria-label": t('System image'), value: values.osImage, helperText: t('Must be a reference to a bootable container image (such as "quay.io/<my-org>/my-rhel-with-fc-agent:<version>"). If you do not want to manage your OS from Edge management, leave this field empty.') })),
|
|
79
|
-
React.createElement(
|
|
80
|
-
|
|
81
|
-
React.createElement(
|
|
82
|
-
|
|
83
|
-
isFleet && (React.createElement(react_core_1.FormGroup, { label: t('Tracked systemd services') },
|
|
84
|
-
React.createElement(SystemdUnitsForm_1.default, null))),
|
|
85
|
-
appType === useAppContext_1.FlightCtlApp.OCP && React.createElement(MicroShiftCheckbox, { isFleet: isFleet }))));
|
|
80
|
+
React.createElement(TextField_1.default, { name: "osImage", "aria-label": t('System image'), value: values.osImage, isDisabled: isReadOnly, helperText: t('Must be a reference to a bootable container image (such as "quay.io/<my-org>/my-rhel-with-fc-agent:<version>"). If you do not want to manage your OS from Edge management, leave this field empty.') })),
|
|
81
|
+
React.createElement(ConfigurationTemplates_1.default, { isReadOnly: isReadOnly }),
|
|
82
|
+
React.createElement(ApplicationTemplates_1.default, { isReadOnly: isReadOnly }),
|
|
83
|
+
isFleet && React.createElement(SystemdUnitsForm_1.default, { isReadOnly: isReadOnly }),
|
|
84
|
+
appType === useAppContext_1.FlightCtlApp.OCP && React.createElement(MicroShiftCheckbox, { isFleet: isFleet, isReadOnly: isReadOnly }))));
|
|
86
85
|
};
|
|
87
86
|
exports.default = DeviceTemplateStep;
|
|
88
87
|
//# sourceMappingURL=DeviceTemplateStep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceTemplateStep.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,uDAAmG;AACnG,mCAAwD;AACxD,iDAAsC;AAGtC,
|
|
1
|
+
{"version":3,"file":"DeviceTemplateStep.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/DeviceTem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B,IAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAI,CACnF,CACX,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { FormikErrors } from 'formik';
|
|
|
3
3
|
import { DeviceSpecConfigFormValues } from '../../../../types/deviceSpec';
|
|
4
4
|
export declare const deviceUpdatePolicyStepId = "update-policy";
|
|
5
5
|
export declare const isUpdatePolicyStepValid: (errors: FormikErrors<DeviceSpecConfigFormValues>) => boolean;
|
|
6
|
-
declare const UpdatePolicyStep: (
|
|
6
|
+
declare const UpdatePolicyStep: ({ isReadOnly }: {
|
|
7
|
+
isReadOnly?: boolean | undefined;
|
|
8
|
+
}) => React.JSX.Element;
|
|
7
9
|
export default UpdatePolicyStep;
|
|
8
10
|
//# sourceMappingURL=DeviceUpdateStep.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceUpdateStep.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAoB,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"DeviceUpdateStep.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAoB,MAAM,QAAQ,CAAC;AAMxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAI1E,eAAO,MAAM,wBAAwB,kBAAkB,CAAC;AAExD,eAAO,MAAM,uBAAuB,WAAY,aAAa,0BAA0B,CAAC,YAAyB,CAAC;AAElH,QAAA,MAAM,gBAAgB;;uBA6BrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -6,53 +6,23 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const react_core_1 = require("@patternfly/react-core");
|
|
7
7
|
const formik_1 = require("formik");
|
|
8
8
|
const useTranslation_1 = require("../../../../hooks/useTranslation");
|
|
9
|
-
const UpdateConfirmChangesModal_1 = tslib_1.__importDefault(require("../../../Fleet/CreateFleet/steps/UpdateConfirmChangesModal"));
|
|
10
9
|
const UpdateStepUpdatePolicy_1 = tslib_1.__importDefault(require("../../../Fleet/CreateFleet/steps/UpdateStepUpdatePolicy"));
|
|
11
|
-
const fleetSpecUtils_1 = require("../../../Fleet/CreateFleet/fleetSpecUtils");
|
|
12
10
|
const FlightCtlForm_1 = tslib_1.__importDefault(require("../../../form/FlightCtlForm"));
|
|
13
11
|
const WithHelperText_1 = require("../../../common/WithHelperText");
|
|
12
|
+
const CheckboxField_1 = tslib_1.__importDefault(require("../../../form/CheckboxField"));
|
|
14
13
|
exports.deviceUpdatePolicyStepId = 'update-policy';
|
|
15
14
|
const isUpdatePolicyStepValid = (errors) => !errors.updatePolicy;
|
|
16
15
|
exports.isUpdatePolicyStepValid = isUpdatePolicyStepValid;
|
|
17
|
-
const UpdatePolicyStep = () => {
|
|
16
|
+
const UpdatePolicyStep = ({ isReadOnly }) => {
|
|
18
17
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
19
|
-
const { values: {
|
|
20
|
-
const [alertSwitchToBasic, setAlertSwitchToBasic] = React.useState();
|
|
21
|
-
const hasAdvancedMode = updatePolicy.isAdvanced;
|
|
22
|
-
const onChangeUpdatePolicy = (toAdvanced) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
23
|
-
if (toAdvanced) {
|
|
24
|
-
yield setFieldTouched('updatePolicy', true);
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
yield setFieldValue('updatePolicy', (0, fleetSpecUtils_1.getEmptyUpdateFormParams)(), true);
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
const onAdvancedEnableChange = (toAdvanced) => {
|
|
31
|
-
if (toAdvanced) {
|
|
32
|
-
setFieldValue('updatePolicy.isAdvanced', true);
|
|
33
|
-
onChangeUpdatePolicy(true);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
setAlertSwitchToBasic(true);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
const onModalClose = (doSwitch) => {
|
|
40
|
-
setAlertSwitchToBasic(false);
|
|
41
|
-
if (doSwitch) {
|
|
42
|
-
onChangeUpdatePolicy(false);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
18
|
+
const { values: { useBasicUpdateConfig }, } = (0, formik_1.useFormikContext)();
|
|
45
19
|
return (React.createElement(react_core_1.Grid, { lg: 8 },
|
|
46
20
|
React.createElement(FlightCtlForm_1.default, null,
|
|
47
|
-
React.createElement(
|
|
48
|
-
|
|
49
|
-
onAdvancedEnableChange(!toBasic);
|
|
50
|
-
} })),
|
|
51
|
-
hasAdvancedMode ? (React.createElement(React.Fragment, null,
|
|
21
|
+
React.createElement(CheckboxField_1.default, { name: "useBasicUpdateConfig", label: t('Use basic configurations'), isDisabled: isReadOnly }),
|
|
22
|
+
!useBasicUpdateConfig ? (React.createElement(React.Fragment, null,
|
|
52
23
|
React.createElement(react_core_1.Title, { headingLevel: "h3" }, t('Advanced configurations')),
|
|
53
24
|
React.createElement(WithHelperText_1.FormGroupWithHelperText, { label: t('Update policies'), content: t('Update policies allow you to control when updates should be downloaded and applied.') },
|
|
54
|
-
React.createElement(UpdateStepUpdatePolicy_1.default,
|
|
55
|
-
alertSwitchToBasic && React.createElement(UpdateConfirmChangesModal_1.default, { setting: "update-policies", onClose: onModalClose }))));
|
|
25
|
+
React.createElement(UpdateStepUpdatePolicy_1.default, { isReadOnly: isReadOnly })))) : (React.createElement(react_core_1.Alert, { isInline: true, variant: "info", title: t('Default update policy') }, t('The device will download and apply updates as soon as they are available.'))))));
|
|
56
26
|
};
|
|
57
27
|
exports.default = UpdatePolicyStep;
|
|
58
28
|
//# sourceMappingURL=DeviceUpdateStep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceUpdateStep.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"DeviceUpdateStep.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,uDAA4D;AAC5D,mCAAwD;AAExD,qEAAkE;AAClE,6HAA6F;AAE7F,wFAAwD;AAExD,mEAAyE;AACzE,wFAAwD;AAE3C,QAAA,wBAAwB,GAAG,eAAe,CAAC;AAEjD,MAAM,uBAAuB,GAAG,CAAC,MAAgD,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;AAArG,QAAA,uBAAuB,2BAA8E;AAElH,MAAM,gBAAgB,GAAG,CAAC,EAAE,UAAU,EAA4B,EAAE,EAAE;IACpE,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAE/B,MAAM,EACJ,MAAM,EAAE,EAAE,oBAAoB,EAAE,GACjC,GAAG,IAAA,yBAAgB,GAA8B,CAAC;IAEnD,OAAO,CACL,oBAAC,iBAAI,IAAC,EAAE,EAAE,CAAC;QACT,oBAAC,uBAAa;YACZ,oBAAC,uBAAa,IAAC,IAAI,EAAC,sBAAsB,EAAC,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC,EAAE,UAAU,EAAE,UAAU,GAAI;YAC1G,CAAC,oBAAoB,CAAC,CAAC,CAAC,CACvB;gBACE,oBAAC,kBAAK,IAAC,YAAY,EAAC,IAAI,IAAE,CAAC,CAAC,yBAAyB,CAAC,CAAS;gBAC/D,oBAAC,wCAAuB,IACtB,KAAK,EAAE,CAAC,CAAC,iBAAiB,CAAC,EAC3B,OAAO,EAAE,CAAC,CAAC,qFAAqF,CAAC;oBAEjG,oBAAC,gCAAsB,IAAC,UAAU,EAAE,UAAU,GAAI,CAC1B,CACzB,CACJ,CAAC,CAAC,CAAC,CACF,oBAAC,kBAAK,IAAC,QAAQ,QAAC,OAAO,EAAC,MAAM,EAAC,KAAK,EAAE,CAAC,CAAC,uBAAuB,CAAC,IAC7D,CAAC,CAAC,2EAA2E,CAAC,CACzE,CACT,CACa,CACX,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,gBAAgB,CAAC"}
|
|
@@ -38,7 +38,7 @@ const GeneralInfoStep = () => {
|
|
|
38
38
|
}, [matchLabelsOnChange]);
|
|
39
39
|
return (React.createElement(react_core_1.Grid, { lg: 5, span: 8 },
|
|
40
40
|
React.createElement(FlightCtlForm_1.default, null,
|
|
41
|
-
React.createElement(RichValidationTextField_1.default, { fieldName: "deviceAlias", "aria-label": t('
|
|
41
|
+
React.createElement(RichValidationTextField_1.default, { fieldName: "deviceAlias", "aria-label": t('Device alias'), validations: (0, validations_1.getLabelValueValidations)(t) }),
|
|
42
42
|
React.createElement(react_core_1.FormGroup, { label: t('Device labels') },
|
|
43
43
|
React.createElement(LabelsField_1.default, { name: "labels", onChangeCallback: matchLabelsOnChange })),
|
|
44
44
|
React.createElement(react_core_1.FormGroup, { label: t('Fleet name') },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneralInfoStep.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,uDAAyD;AACzD,mCAAwD;AAExD,qEAAkE;AAClE,wGAAwE;AACxE,wFAAwD;AACxD,oFAAoD;AACpD,4GAA4E;AAC5E,2DAAqE;AACrE,mHAAmF;AAGtE,QAAA,iBAAiB,GAAG,cAAc,CAAC;AAEzC,MAAM,sBAAsB,GAAG,CAAC,MAA0C,EAAE,EAAE;IACnF,OAAO,CAAC,MAAM,CAAC,WAAW,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;AAC/C,CAAC,CAAC;AAFW,QAAA,sBAAsB,0BAEjC;AAEF,MAAM,eAAe,GAAG,GAAG,EAAE;IAC3B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,CAAC,mBAAmB,EAAE,WAAW,CAAC,GAAG,IAAA,6BAAmB,GAAE,CAAC;IAEjE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,yBAAgB,GAAwB,CAAC;IAE3E,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,IAAI,WAAW,CAAC,MAAM,KAAK,iBAAiB,EAAE,CAAC;YAC7C,aAAa,CAAC,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,oCAAoC;QACvF,CAAC;aAAM,CAAC;YACN,aAAa,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;QAClC,CAAC;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC;IAEjC,gFAAgF;IAChF,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;YAClB,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAC5C,CAAC;QACD,uDAAuD;IACzD,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAE1B,OAAO,CACL,oBAAC,iBAAI,IAAC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC;QAClB,oBAAC,uBAAa;YACZ,oBAAC,iCAAuB,IACtB,SAAS,EAAC,aAAa,gBACX,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"GeneralInfoStep.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,u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B,oBAAC,uBAAa;YACZ,oBAAC,iCAAuB,IACtB,SAAS,EAAC,aAAa,gBACX,CAAC,CAAC,cAAc,CAAC,EAC7B,WAAW,EAAE,IAAA,sCAAwB,EAAC,CAAC,CAAC,GACxC;YACF,oBAAC,sBAAS,IAAC,KAAK,EAAE,CAAC,CAAC,eAAe,CAAC;gBAClC,oBAAC,qBAAW,IAAC,IAAI,EAAC,QAAQ,EAAC,gBAAgB,EAAE,mBAAmB,GAAI,CAC1D;YACZ,oBAAC,sBAAS,IAAC,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC;gBAC/B,oBAAC,0BAAgB,IAAC,WAAW,EAAE,WAAW,GAAI,CACpC,CACE,CACX,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
|
|
@@ -23,7 +23,7 @@ const ReviewStep = ({ error }) => {
|
|
|
23
23
|
default: '25ch',
|
|
24
24
|
} },
|
|
25
25
|
React.createElement(react_core_1.DescriptionListGroup, null,
|
|
26
|
-
React.createElement(react_core_1.DescriptionListTerm, null, t('
|
|
26
|
+
React.createElement(react_core_1.DescriptionListTerm, null, t('Device alias')),
|
|
27
27
|
React.createElement(react_core_1.DescriptionListDescription, null, values.deviceAlias || t('Untitled'))),
|
|
28
28
|
values.labels.length > 0 && (React.createElement(react_core_1.DescriptionListGroup, null,
|
|
29
29
|
React.createElement(react_core_1.DescriptionListTerm, null, t('Device labels')),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewDeviceStep.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,mCAA0C;AAC1C,uDAOgC;AAGhC,qEAAkE;AAClE,oFAAoD;AACpD,qDAAsD;AACtD,mDAA0D;AAC1D,gHAAoF;AACpF,8HAA8F;AAC9F,wDAAkD;AAClD,sFAAsD;AAEzC,QAAA,kBAAkB,GAAG,eAAe,CAAC;AAElD,MAAM,UAAU,GAAG,CAAC,EAAE,KAAK,EAAsB,EAAE,EAAE;IACnD,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,yBAAgB,GAAwB,CAAC;IAE5D,OAAO,CACL,oBAAC,kBAAK,IAAC,SAAS;QACd,oBAAC,sBAAS,IAAC,QAAQ;YACjB,oBAAC,kCAA4B,IAC3B,YAAY,QACZ,2BAA2B,EAAE;oBAC3B,OAAO,EAAE,MAAM;iBAChB;gBAED,oBAAC,iCAAoB;oBACnB,oBAAC,gCAAmB,QAAE,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"ReviewDeviceStep.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,mCAA0C;AAC1C,uDAOgC;AAGhC,qEAAkE;AAClE,oFAAoD;AACpD,qDAAsD;AACtD,mDAA0D;AAC1D,gHAAoF;AACpF,8HAA8F;AAC9F,wDAAkD;AAClD,sFAAsD;AAEzC,QAAA,kBAAkB,GAAG,eAAe,CAAC;AAElD,MAAM,UAAU,GAAG,CAAC,EAAE,KAAK,EAAsB,EAAE,EAAE;IACnD,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,yBAAgB,GAAwB,CAAC;IAE5D,OAAO,CACL,oBAAC,kBAAK,IAAC,SAAS;QACd,oBAAC,sBAAS,IAAC,QAAQ;YACjB,oBAAC,kCAA4B,IAC3B,YAAY,QACZ,2BAA2B,EAAE;oBAC3B,OAAO,EAAE,MAAM;iBAChB;gBAED,oBAAC,iCAAoB;oBACnB,oBAAC,gCAAmB,QAAE,CAAC,CAAC,cAAc,CAAC,CAAuB;oBAC9D,oBAAC,uCAA0B,QAAE,MAAM,CAAC,WAAW,IA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AC,KAAK,IAAI,CACV,oBAAC,sBAAS;YACR,oBAAC,kBAAK,IAAC,QAAQ,QAAC,OAAO,EAAC,QAAQ,EAAC,KAAK,EAAE,CAAC,CAAC,mBAAmB,CAAC,IAC3D,IAAA,uBAAe,EAAC,KAAK,CAAC,CACjB,CACE,CACb,CACK,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
|
@@ -9,8 +9,8 @@ const LabelsView_1 = tslib_1.__importDefault(require("../../../common/LabelsView
|
|
|
9
9
|
const ReviewUpdateRolloutPolicy = ({ rolloutPolicy }) => {
|
|
10
10
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
11
11
|
return rolloutPolicy.isAdvanced
|
|
12
|
-
? '
|
|
13
|
-
:
|
|
12
|
+
? t('{{ count }} batches have been defined', { count: rolloutPolicy.batches.length })
|
|
13
|
+
: '-';
|
|
14
14
|
};
|
|
15
15
|
exports.ReviewUpdateRolloutPolicy = ReviewUpdateRolloutPolicy;
|
|
16
16
|
const ReviewUpdateDisruptionBudget = ({ disruptionBudget }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewUpdatePolicy.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAA0D;AAI1D,qEAAkE;AAClE,oFAAoD;AAE7C,MAAM,yBAAyB,GAAG,CAAC,EAAE,aAAa,EAAwC,EAAE,EAAE;IACnG,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAE/B,OAAO,aAAa,CAAC,UAAU;QAC7B,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"ReviewUpdatePolicy.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAA0D;AAI1D,qEAAkE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AAgB,CAAC,YAAY,EAAE,CAAC,CAC1F,CACb;QACA,gBAAgB,CAAC,cAAc,IAAI,CAClC,8BAAC,sBAAS,QACP,CAAC,CAAC,mDAAmD,EAAE;YACtD,cAAc,EAAE,gBAAgB,CAAC,cAAc;SAChD,CAAC,CACQ,CACb,CACK,CACT,CAAC;AACJ,CAAC,CAAC;AAvCW,QAAA,4BAA4B,gCAuCvC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
declare const
|
|
3
|
-
|
|
2
|
+
declare const SystemdUnitsFormWrapper: ({ isReadOnly }: {
|
|
3
|
+
isReadOnly?: boolean | undefined;
|
|
4
|
+
}) => React.JSX.Element | null;
|
|
5
|
+
export default SystemdUnitsFormWrapper;
|
|
4
6
|
//# sourceMappingURL=SystemdUnitsForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemdUnitsForm.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SystemdUnitsForm.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA6E/B,QAAA,MAAM,uBAAuB;;8BAyB5B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -7,6 +7,7 @@ const formik_1 = require("formik");
|
|
|
7
7
|
const useTranslation_1 = require("../../../../hooks/useTranslation");
|
|
8
8
|
const FieldHelperText_1 = tslib_1.__importDefault(require("../../../form/FieldHelperText"));
|
|
9
9
|
const EditableLabelControl_1 = tslib_1.__importDefault(require("../../../common/EditableLabelControl"));
|
|
10
|
+
const LabelsView_1 = tslib_1.__importDefault(require("../../../common/LabelsView"));
|
|
10
11
|
const SystemdUnitsForm = () => {
|
|
11
12
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
12
13
|
const { values, setFieldValue, errors } = (0, formik_1.useFormikContext)();
|
|
@@ -36,5 +37,22 @@ const SystemdUnitsForm = () => {
|
|
|
36
37
|
React.createElement(react_core_1.LabelGroup, { isEditable: true, addLabelControl: React.createElement(EditableLabelControl_1.default, { defaultLabel: "name.service", addButtonText: t('Add service'), onAddLabel: onAdd, isEditable: true }) }, values.systemdUnits.map((systemD, index) => (React.createElement(react_core_1.Label, { key: `${systemD.pattern}-${index}`, isEditable: true, onEditComplete: (_, newText) => onEdit(index, newText), onClose: () => removeLabel(index) }, systemD.pattern)))),
|
|
37
38
|
React.createElement(FieldHelperText_1.default, { error: textError })));
|
|
38
39
|
};
|
|
39
|
-
|
|
40
|
+
const SystemdUnitsFormWrapper = ({ isReadOnly }) => {
|
|
41
|
+
const { values } = (0, formik_1.useFormikContext)();
|
|
42
|
+
const { t } = (0, useTranslation_1.useTranslation)();
|
|
43
|
+
if (isReadOnly && values.systemdUnits.length === 0) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
if (isReadOnly) {
|
|
47
|
+
const labels = {};
|
|
48
|
+
values.systemdUnits.forEach((systemdUnit) => {
|
|
49
|
+
labels[systemdUnit.pattern] = '';
|
|
50
|
+
});
|
|
51
|
+
return (React.createElement(react_core_1.FormGroup, { label: t('Tracked systemd services') },
|
|
52
|
+
React.createElement(LabelsView_1.default, { prefix: "systemdUnits", labels: labels })));
|
|
53
|
+
}
|
|
54
|
+
return (React.createElement(react_core_1.FormGroup, { label: t('Tracked systemd services') },
|
|
55
|
+
React.createElement(SystemdUnitsForm, null)));
|
|
56
|
+
};
|
|
57
|
+
exports.default = SystemdUnitsFormWrapper;
|
|
40
58
|
//# sourceMappingURL=SystemdUnitsForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemdUnitsForm.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"SystemdUnitsForm.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAAsE;AACtE,mCAA0C;AAG1C,qEAAkE;AAElE,4FAA4D;AAC5D,wGAAwE;AACxE,oFAAoD;AAEpD,MAAM,gBAAgB,GAAG,GAAG,EAAE;IAC5B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,IAAA,yBAAgB,GAA8B,CAAC;IAEzF,MAAM,KAAK,GAAG,CAAC,IAAY,EAAE,EAAE;QAC7B,IAAI,IAAI,EAAE,CAAC;YACT,KAAK,aAAa,CAChB,cAAc,EACd,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC;gBACzB,OAAO,EAAE,IAAI;gBACb,MAAM,EAAE,KAAK;aACd,CAAC,CACH,CAAC;QACJ,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,CAAC,SAAiB,EAAE,IAAY,EAAE,EAAE;QACjD,KAAK,aAAa,CAChB,cAAc,EACd,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,EAAE;YAC7C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACxB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC;YACvD,CAAC;iBAAM,CAAC;gBACN,OAAO,WAAW,CAAC;YACrB,CAAC;QACH,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,CAAC,WAAmB,EAAE,EAAE;QAC1C,KAAK,aAAa,CAChB,cAAc,EAC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AAU,EAAE,CAAC;QACf,MAAM,MAAM,GAA2B,EAAE,CAAC;QAC1C,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;YAC1C,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;QACnC,CAAC,CAAC,CAAC;QAEH,OAAO,CACL,oBAAC,sBAAS,IAAC,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC;YAC7C,oBAAC,oBAAU,IAAC,MAAM,EAAC,cAAc,EAAC,MAAM,EAAE,MAAM,GAAI,CAC1C,CACb,CAAC;IACJ,CAAC;IACD,OAAO,CACL,oBAAC,sBAAS,IAAC,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC;QAC7C,oBAAC,gBAAgB,OAAG,CACV,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,uBAAuB,CAAC"}
|
|
@@ -52,20 +52,7 @@ export declare const getValidationSchema: (t: TFunction) => Yup.Lazy<{
|
|
|
52
52
|
value?: string | undefined;
|
|
53
53
|
key: string;
|
|
54
54
|
}[];
|
|
55
|
-
updatePolicy: {
|
|
56
|
-
downloadStartsAt?: string | undefined;
|
|
57
|
-
downloadEndsAt?: string | undefined;
|
|
58
|
-
installStartsAt?: string | undefined;
|
|
59
|
-
installEndsAt?: string | undefined;
|
|
60
|
-
isAdvanced: NonNullable<boolean | undefined>;
|
|
61
|
-
downloadAndInstallDiffer: NonNullable<boolean | undefined>;
|
|
62
|
-
downloadScheduleMode: NonNullable<import("../../../utils/time").UpdateScheduleMode | undefined>;
|
|
63
|
-
downloadWeekDays: boolean[];
|
|
64
|
-
downloadTimeZone: string;
|
|
65
|
-
installScheduleMode: NonNullable<import("../../../utils/time").UpdateScheduleMode | undefined>;
|
|
66
|
-
installWeekDays: boolean[];
|
|
67
|
-
installTimeZone: string;
|
|
68
|
-
};
|
|
55
|
+
updatePolicy: {};
|
|
69
56
|
}, Yup.AnyObject, any>;
|
|
70
57
|
export declare const getDevicePatches: (currentDevice: Device, updatedDevice: EditDeviceFormValues) => PatchRequest;
|
|
71
58
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/Device/EditDeviceWizard/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAW3B,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAoB,MAAM,6BAA6B,CAAC;AAUrF,eAAO,MAAM,mBAAmB,MAAO,SAAS
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/Device/EditDeviceWizard/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAW3B,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAoB,MAAM,6BAA6B,CAAC;AAUrF,eAAO,MAAM,mBAAmB,MAAO,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAU7C,CAAC;AAEJ,eAAO,MAAM,gBAAgB,kBAAmB,MAAM,iBAAiB,oBAAoB,iBA2D1F,CAAC"}
|
|
@@ -6,13 +6,13 @@ const Yup = tslib_1.__importStar(require("yup"));
|
|
|
6
6
|
const validations_1 = require("../../form/validations");
|
|
7
7
|
const patch_1 = require("../../../utils/patch");
|
|
8
8
|
const deviceSpecUtils_1 = require("./deviceSpecUtils");
|
|
9
|
-
const getValidationSchema = (t) => Yup.lazy(() => Yup.object({
|
|
9
|
+
const getValidationSchema = (t) => Yup.lazy((values) => Yup.object({
|
|
10
10
|
deviceAlias: (0, validations_1.validKubernetesLabelValue)(t, { isRequired: false, fieldName: t('Alias') }),
|
|
11
11
|
osImage: (0, validations_1.validOsImage)(t, { isFleet: false }),
|
|
12
12
|
labels: (0, validations_1.validLabelsSchema)(t),
|
|
13
13
|
configTemplates: (0, validations_1.validConfigTemplatesSchema)(t),
|
|
14
14
|
applications: (0, validations_1.validApplicationsSchema)(t),
|
|
15
|
-
updatePolicy: (0, validations_1.validUpdatePolicySchema)(t),
|
|
15
|
+
updatePolicy: values.updatePolicy.isAdvanced ? (0, validations_1.validUpdatePolicySchema)(t) : Yup.object(),
|
|
16
16
|
}));
|
|
17
17
|
exports.getValidationSchema = getValidationSchema;
|
|
18
18
|
const getDevicePatches = (currentDevice, updatedDevice) => {
|
|
@@ -63,7 +63,7 @@ const getDevicePatches = (currentDevice, updatedDevice) => {
|
|
|
63
63
|
const appPatches = (0, deviceSpecUtils_1.getApplicationPatches)('/spec', ((_d = currentDevice.spec) === null || _d === void 0 ? void 0 : _d.applications) || [], updatedDevice.applications);
|
|
64
64
|
allPatches = allPatches.concat(appPatches);
|
|
65
65
|
// Updates
|
|
66
|
-
const updatesPatches = (0, patch_1.getUpdatePolicyPatches)('/spec/updatePolicy', (_e = currentDevice.spec) === null || _e === void 0 ? void 0 : _e.updatePolicy, updatedDevice.updatePolicy);
|
|
66
|
+
const updatesPatches = (0, patch_1.getUpdatePolicyPatches)('/spec/updatePolicy', (_e = currentDevice.spec) === null || _e === void 0 ? void 0 : _e.updatePolicy, Object.assign(Object.assign({}, updatedDevice.updatePolicy), { isAdvanced: !updatedDevice.useBasicUpdateConfig }));
|
|
67
67
|
allPatches = allPatches.concat(updatesPatches);
|
|
68
68
|
return allPatches;
|
|
69
69
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/components/Device/EditDeviceWizard/utils.ts"],"names":[],"mappings":";;;;AACA,iDAA2B;AAE3B,wDAOgC;AAChC,gDA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AsB,
|
|
1
|
+
{"version":3,"file":"SystemdUnitsModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Device/SystemdUnitsModal/SystemdUnitsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAS1C,KAAK,sBAAsB,GAAG;IAC5B,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,iBAAiB,CAAC,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACtE,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;GAOG;AACH,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAuDvD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|