@flightctl/ui-components 0.5.1 → 0.6.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/DetailsPage.d.ts +3 -2
- package/dist/src/components/DetailsPage/DetailsPage.d.ts.map +1 -1
- package/dist/src/components/DetailsPage/DetailsPage.js +2 -2
- package/dist/src/components/DetailsPage/DetailsPage.js.map +1 -1
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.d.ts.map +1 -1
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.js +5 -3
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.js.map +1 -1
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.d.ts.map +1 -1
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.js +4 -5
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceAliasEdit.d.ts +10 -0
- package/dist/src/components/Device/DeviceDetails/DeviceAliasEdit.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceAliasEdit.js +110 -0
- package/dist/src/components/Device/DeviceDetails/DeviceAliasEdit.js.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceApplications.d.ts.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceApplications.js +7 -1
- package/dist/src/components/Device/DeviceDetails/DeviceApplications.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js +9 -6
- 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 +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTabContent/StatusContent.d.ts.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTabContent/StatusContent.js +3 -3
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTabContent/StatusContent.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTabContent/SystemResourcesContent.js +3 -3
- package/dist/src/components/Device/DeviceDetails/TerminalTab.d.ts.map +1 -1
- package/dist/src/components/Device/DeviceDetails/TerminalTab.js +34 -3
- package/dist/src/components/Device/DeviceDetails/TerminalTab.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/DecommissionedDevicesTable.d.ts.map +1 -1
- package/dist/src/components/Device/DevicesPage/DecommissionedDevicesTable.js +1 -1
- package/dist/src/components/Device/DevicesPage/DecommissionedDevicesTable.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.d.ts.map +1 -1
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.js +35 -30
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/DevicesPage.d.ts.map +1 -1
- package/dist/src/components/Device/DevicesPage/DevicesPage.js +11 -2
- package/dist/src/components/Device/DevicesPage/DevicesPage.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/EnrolledDevicesTable.d.ts.map +1 -1
- package/dist/src/components/Device/DevicesPage/EnrolledDevicesTable.js +14 -11
- 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 +9 -2
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.js +21 -6
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.js +11 -4
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts +6 -5
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js +123 -10
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.d.ts +8 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.js +19 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.d.ts +8 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js +49 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js +52 -19
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js +13 -16
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.js +5 -5
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.js +2 -2
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js +16 -16
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.d.ts +8 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.js +58 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.d.ts +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.d.ts +2 -2
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.js +17 -12
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.js +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.d.ts +2 -4
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.d.ts +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts +29 -3
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/utils.js +8 -7
- 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.map +1 -1
- package/dist/src/components/Device/SystemdUnitsModal/TrackSystemdUnitsForm.d.ts +1 -4
- package/dist/src/components/Device/SystemdUnitsModal/TrackSystemdUnitsForm.d.ts.map +1 -1
- package/dist/src/components/Device/SystemdUnitsModal/TrackSystemdUnitsForm.js.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.d.ts.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js +5 -5
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestList.d.ts +2 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestList.d.ts.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestList.js +19 -11
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestList.js.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.d.ts.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js +5 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js.map +1 -1
- package/dist/src/components/EnrollmentRequest/useEnrollmentRequests.d.ts +2 -1
- package/dist/src/components/EnrollmentRequest/useEnrollmentRequests.d.ts.map +1 -1
- package/dist/src/components/EnrollmentRequest/useEnrollmentRequests.js +8 -4
- package/dist/src/components/EnrollmentRequest/useEnrollmentRequests.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.js +2 -2
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.js +8 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.d.ts +19 -2
- package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.js +53 -18
- package/dist/src/components/Fleet/CreateFleet/fleetSpecUtils.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.js +1 -2
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.d.ts +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.js +9 -0
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.d.ts +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.js +22 -9
- package/dist/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.js.map +1 -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.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.js +5 -5
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.css +3 -0
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.d.ts +9 -0
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.js +127 -0
- package/dist/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.js.map +1 -0
- 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 +13 -4
- package/dist/src/components/Fleet/CreateFleet/utils.js.map +1 -1
- package/dist/src/components/Fleet/FleetsPage.d.ts.map +1 -1
- package/dist/src/components/Fleet/FleetsPage.js +8 -12
- package/dist/src/components/Fleet/FleetsPage.js.map +1 -1
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.js +1 -1
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.js.map +1 -1
- package/dist/src/components/ListPage/ListPage.d.ts +1 -0
- package/dist/src/components/ListPage/ListPage.d.ts.map +1 -1
- package/dist/src/components/ListPage/ListPage.js +3 -3
- package/dist/src/components/ListPage/ListPage.js.map +1 -1
- package/dist/src/components/Masthead/CommandLineToolsPage.d.ts +4 -0
- package/dist/src/components/Masthead/CommandLineToolsPage.d.ts.map +1 -0
- package/dist/src/components/Masthead/CommandLineToolsPage.js +90 -0
- package/dist/src/components/Masthead/CommandLineToolsPage.js.map +1 -0
- package/dist/src/components/Masthead/UserPreferencesModal.d.ts.map +1 -0
- package/dist/src/components/Masthead/UserPreferencesModal.js.map +1 -0
- package/dist/src/components/Masthead/UserPreferencesProvider.d.ts.map +1 -0
- package/dist/src/components/Masthead/UserPreferencesProvider.js.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.js +3 -3
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Tasks/TasksCard.d.ts +4 -0
- package/dist/src/components/OverviewPage/Cards/Tasks/TasksCard.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/{ToDo/ToDoCard.js → Tasks/TasksCard.js} +4 -4
- package/dist/src/components/OverviewPage/Cards/Tasks/TasksCard.js.map +1 -0
- package/dist/src/components/OverviewPage/Overview.js +2 -2
- package/dist/src/components/OverviewPage/Overview.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js +6 -5
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.d.ts.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.js +3 -3
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/utils.d.ts.map +1 -1
- package/dist/src/components/Repository/CreateRepository/utils.js +4 -1
- package/dist/src/components/Repository/CreateRepository/utils.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.d.ts.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.js +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.js.map +1 -1
- package/dist/src/components/Repository/RepositoryList.d.ts.map +1 -1
- package/dist/src/components/Repository/RepositoryList.js +3 -11
- package/dist/src/components/Repository/RepositoryList.js.map +1 -1
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.d.ts.map +1 -1
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js +3 -6
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js.map +1 -1
- package/dist/src/components/Status/DeviceResourceStatus.js +3 -3
- package/dist/src/components/Status/utils.d.ts.map +1 -1
- package/dist/src/components/Status/utils.js +3 -3
- package/dist/src/components/Status/utils.js.map +1 -1
- package/dist/src/components/Table/Table.d.ts +2 -1
- package/dist/src/components/Table/Table.d.ts.map +1 -1
- package/dist/src/components/Table/Table.js +9 -5
- package/dist/src/components/Table/Table.js.map +1 -1
- package/dist/src/components/Table/TablePagination.d.ts.map +1 -1
- package/dist/src/components/Table/TablePagination.js +1 -1
- package/dist/src/components/Table/TablePagination.js.map +1 -1
- package/dist/src/components/Terminal/Terminal.d.ts +1 -1
- package/dist/src/components/Terminal/Terminal.d.ts.map +1 -1
- package/dist/src/components/Terminal/Terminal.js +10 -3
- package/dist/src/components/Terminal/Terminal.js.map +1 -1
- package/dist/src/components/charts/DonutChart.js +1 -1
- package/dist/src/components/charts/DonutChart.js.map +1 -1
- package/dist/src/components/common/LeaveFormConfirmation.js +1 -1
- package/dist/src/components/common/LeaveFormConfirmation.js.map +1 -1
- package/dist/src/components/common/WithHelperText.d.ts +10 -5
- package/dist/src/components/common/WithHelperText.d.ts.map +1 -1
- package/dist/src/components/common/WithHelperText.js +13 -8
- package/dist/src/components/common/WithHelperText.js.map +1 -1
- package/dist/src/components/form/CheckboxField.d.ts +6 -3
- package/dist/src/components/form/CheckboxField.d.ts.map +1 -1
- package/dist/src/components/form/CheckboxField.js +20 -1
- package/dist/src/components/form/CheckboxField.js.map +1 -1
- package/dist/src/components/form/FormSelectTypeahead.d.ts +3 -3
- package/dist/src/components/form/FormSelectTypeahead.d.ts.map +1 -1
- package/dist/src/components/form/FormSelectTypeahead.js +43 -53
- package/dist/src/components/form/FormSelectTypeahead.js.map +1 -1
- package/dist/src/components/form/RichValidationTextField.d.ts +1 -1
- package/dist/src/components/form/RichValidationTextField.d.ts.map +1 -1
- package/dist/src/components/form/RichValidationTextField.js +8 -4
- package/dist/src/components/form/RichValidationTextField.js.map +1 -1
- package/dist/src/components/form/validations.d.ts +44 -4
- package/dist/src/components/form/validations.d.ts.map +1 -1
- package/dist/src/components/form/validations.js +148 -25
- package/dist/src/components/form/validations.js.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.js +5 -3
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.js.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.d.ts.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js +3 -2
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js.map +1 -1
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.d.ts.map +1 -1
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.js +7 -12
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.js +4 -4
- package/dist/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js +4 -4
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js +2 -2
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.js +2 -2
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.js.map +1 -1
- package/dist/src/hooks/timeZones.d.ts +3 -0
- package/dist/src/hooks/timeZones.d.ts.map +1 -0
- package/dist/src/hooks/timeZones.js +607 -0
- package/dist/src/hooks/timeZones.js.map +1 -0
- package/dist/src/hooks/useAppContext.d.ts +14 -8
- package/dist/src/hooks/useAppContext.d.ts.map +1 -1
- package/dist/src/hooks/useAppContext.js +13 -6
- package/dist/src/hooks/useAppContext.js.map +1 -1
- package/dist/src/hooks/useFetch.d.ts +3 -5
- package/dist/src/hooks/useFetch.d.ts.map +1 -1
- package/dist/src/hooks/useFetch.js +3 -2
- package/dist/src/hooks/useFetch.js.map +1 -1
- package/dist/src/hooks/useNavigate.d.ts +2 -1
- package/dist/src/hooks/useNavigate.d.ts.map +1 -1
- package/dist/src/hooks/useNavigate.js +1 -0
- package/dist/src/hooks/useNavigate.js.map +1 -1
- package/dist/src/hooks/useTimeZones.d.ts +4 -0
- package/dist/src/hooks/useTimeZones.d.ts.map +1 -0
- package/dist/src/hooks/useTimeZones.js +22 -0
- package/dist/src/hooks/useTimeZones.js.map +1 -0
- package/dist/src/hooks/useWebSocket.d.ts +6 -2
- package/dist/src/hooks/useWebSocket.d.ts.map +1 -1
- package/dist/src/hooks/useWebSocket.js +22 -7
- package/dist/src/hooks/useWebSocket.js.map +1 -1
- package/dist/src/links.d.ts +3 -0
- package/dist/src/links.d.ts.map +1 -1
- package/dist/src/links.js +10 -3
- package/dist/src/links.js.map +1 -1
- package/dist/src/types/deviceSpec.d.ts +93 -5
- package/dist/src/types/deviceSpec.d.ts.map +1 -1
- package/dist/src/types/deviceSpec.js +28 -2
- package/dist/src/types/deviceSpec.js.map +1 -1
- package/dist/src/types/extraTypes.d.ts +19 -1
- package/dist/src/types/extraTypes.d.ts.map +1 -1
- package/dist/src/types/extraTypes.js.map +1 -1
- package/dist/src/utils/labels.d.ts +1 -0
- package/dist/src/utils/labels.d.ts.map +1 -1
- package/dist/src/utils/labels.js +9 -2
- package/dist/src/utils/labels.js.map +1 -1
- package/dist/src/utils/patch.d.ts +13 -5
- package/dist/src/utils/patch.d.ts.map +1 -1
- package/dist/src/utils/patch.js +115 -71
- package/dist/src/utils/patch.js.map +1 -1
- package/dist/src/utils/query.d.ts +1 -0
- package/dist/src/utils/query.d.ts.map +1 -1
- package/dist/src/utils/query.js +10 -3
- package/dist/src/utils/query.js.map +1 -1
- package/dist/src/utils/search.d.ts +6 -0
- package/dist/src/utils/search.d.ts.map +1 -1
- package/dist/src/utils/search.js +9 -1
- package/dist/src/utils/search.js.map +1 -1
- package/dist/src/utils/time.d.ts +31 -0
- package/dist/src/utils/time.d.ts.map +1 -0
- package/dist/src/utils/time.js +134 -0
- package/dist/src/utils/time.js.map +1 -0
- package/package.json +1 -4
- package/src/components/DetailsPage/DetailsPage.tsx +6 -4
- package/src/components/DetailsPage/Tables/ApplicationsTable.tsx +6 -3
- package/src/components/Device/AddDeviceModal/AddDeviceModal.tsx +4 -13
- package/src/components/Device/DeviceDetails/DeviceAliasEdit.tsx +180 -0
- package/src/components/Device/DeviceDetails/DeviceApplications.tsx +8 -1
- package/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx +21 -5
- package/src/components/Device/DeviceDetails/DeviceDetailsTab.tsx +3 -4
- package/src/components/Device/DeviceDetails/DeviceDetailsTabContent/StatusContent.tsx +7 -10
- package/src/components/Device/DeviceDetails/DeviceDetailsTabContent/SystemResourcesContent.tsx +3 -3
- package/src/components/Device/DeviceDetails/TerminalTab.tsx +43 -5
- package/src/components/Device/DevicesPage/DecommissionedDevicesTable.tsx +2 -1
- package/src/components/Device/DevicesPage/DeviceToolbarFilters.tsx +66 -38
- package/src/components/Device/DevicesPage/DevicesPage.tsx +11 -2
- package/src/components/Device/DevicesPage/EnrolledDevicesTable.tsx +16 -11
- package/src/components/Device/EditDeviceWizard/EditDeviceWizard.tsx +11 -2
- package/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.tsx +22 -6
- package/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.tsx +15 -2
- package/src/components/Device/EditDeviceWizard/deviceSpecUtils.ts +147 -14
- package/src/components/Device/EditDeviceWizard/steps/ApplicationImageForm.tsx +28 -0
- package/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.tsx +94 -0
- package/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.tsx +81 -50
- package/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.tsx +23 -28
- package/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.tsx +1 -2
- package/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx +18 -39
- package/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.tsx +8 -14
- package/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.tsx +26 -39
- package/src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.tsx +88 -0
- package/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.tsx +1 -1
- package/src/components/Device/EditDeviceWizard/steps/ReviewApplications.tsx +18 -19
- package/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.tsx +3 -3
- package/src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.tsx +2 -2
- package/src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.tsx +2 -1
- package/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.tsx +1 -1
- package/src/components/Device/EditDeviceWizard/utils.ts +16 -9
- package/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.tsx +7 -6
- package/src/components/Device/SystemdUnitsModal/TrackSystemdUnitsForm.tsx +1 -5
- package/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.tsx +7 -9
- package/src/components/EnrollmentRequest/EnrollmentRequestList.tsx +30 -17
- package/src/components/EnrollmentRequest/EnrollmentRequestTableRow.tsx +5 -1
- package/src/components/EnrollmentRequest/useEnrollmentRequests.ts +12 -4
- package/src/components/Fleet/CreateFleet/CreateFleetWizard.tsx +4 -3
- package/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.tsx +9 -2
- package/src/components/Fleet/CreateFleet/fleetSpecUtils.ts +51 -17
- package/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.tsx +1 -1
- package/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.tsx +2 -13
- package/src/components/Fleet/CreateFleet/steps/ReviewStep.tsx +3 -3
- package/src/components/Fleet/CreateFleet/steps/UpdateConfirmChangesModal.tsx +10 -1
- package/src/components/Fleet/CreateFleet/steps/UpdatePolicyStep.tsx +49 -16
- package/src/components/Fleet/CreateFleet/steps/UpdateStepDisruptionBudget.tsx +18 -33
- package/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.tsx +14 -24
- package/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.css +3 -0
- package/src/components/Fleet/CreateFleet/steps/UpdateStepUpdatePolicy.tsx +246 -0
- package/src/components/Fleet/CreateFleet/utils.ts +23 -7
- package/src/components/Fleet/FleetsPage.tsx +15 -17
- package/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.tsx +1 -1
- package/src/components/ListPage/ListPage.tsx +7 -4
- package/src/components/Masthead/CommandLineToolsPage.tsx +179 -0
- package/src/components/OverviewPage/Cards/Status/StatusCard.tsx +6 -6
- package/src/components/OverviewPage/Cards/{ToDo/ToDoCard.tsx → Tasks/TasksCard.tsx} +3 -3
- package/src/components/OverviewPage/Overview.tsx +2 -2
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx +11 -26
- package/src/components/Repository/CreateRepository/CreateResourceSyncsForm.tsx +8 -17
- package/src/components/Repository/CreateRepository/utils.ts +4 -1
- package/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.tsx +3 -4
- package/src/components/Repository/RepositoryList.tsx +9 -16
- package/src/components/ResourceSync/RepositoryResourceSyncList.tsx +7 -11
- package/src/components/Status/DeviceResourceStatus.tsx +4 -4
- package/src/components/Status/utils.ts +3 -5
- package/src/components/Table/Table.tsx +32 -9
- package/src/components/Table/TablePagination.tsx +0 -1
- package/src/components/Terminal/Terminal.tsx +10 -4
- package/src/components/charts/DonutChart.tsx +2 -2
- package/src/components/common/LeaveFormConfirmation.tsx +2 -2
- package/src/components/common/WithHelperText.tsx +53 -21
- package/src/components/form/CheckboxField.tsx +28 -3
- package/src/components/form/FormSelectTypeahead.tsx +53 -80
- package/src/components/form/RichValidationTextField.tsx +73 -62
- package/src/components/form/validations.ts +207 -28
- package/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.tsx +5 -5
- package/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.tsx +3 -2
- package/src/components/modals/EditLabelsModal/EditLabelsForm.tsx +9 -20
- package/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.tsx +2 -2
- package/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx +2 -2
- package/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.tsx +2 -2
- package/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.tsx +2 -2
- package/src/hooks/timeZones.ts +606 -0
- package/src/hooks/useAppContext.tsx +20 -10
- package/src/hooks/useFetch.ts +3 -2
- package/src/hooks/useNavigate.tsx +1 -0
- package/src/hooks/useTimeZones.ts +26 -0
- package/src/hooks/useWebSocket.ts +29 -7
- package/src/links.ts +13 -4
- package/src/types/deviceSpec.ts +118 -2
- package/src/types/extraTypes.ts +33 -1
- package/src/utils/labels.ts +7 -1
- package/src/utils/patch.ts +126 -72
- package/src/utils/query.ts +13 -4
- package/src/utils/search.ts +8 -0
- package/src/utils/time.ts +147 -0
- package/dist/jest.config.d.ts +0 -12
- package/dist/jest.config.d.ts.map +0 -1
- package/dist/jest.config.js +0 -24
- package/dist/jest.config.js.map +0 -1
- package/dist/src/components/DetailsPage/DetailsPage.spec.d.ts +0 -2
- package/dist/src/components/DetailsPage/DetailsPage.spec.d.ts.map +0 -1
- package/dist/src/components/DetailsPage/DetailsPage.spec.js +0 -81
- package/dist/src/components/DetailsPage/DetailsPage.spec.js.map +0 -1
- package/dist/src/components/Device/EditDeviceWizard/types.d.ts +0 -23
- package/dist/src/components/Device/EditDeviceWizard/types.d.ts.map +0 -1
- package/dist/src/components/Device/EditDeviceWizard/types.js +0 -3
- package/dist/src/components/Device/EditDeviceWizard/types.js.map +0 -1
- package/dist/src/components/Fleet/CreateFleet/types.d.ts +0 -29
- package/dist/src/components/Fleet/CreateFleet/types.d.ts.map +0 -1
- package/dist/src/components/Fleet/CreateFleet/types.js +0 -9
- package/dist/src/components/Fleet/CreateFleet/types.js.map +0 -1
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.d.ts +0 -4
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.d.ts.map +0 -1
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.js.map +0 -1
- package/dist/src/components/UserPreferences/UserPreferencesModal.d.ts.map +0 -1
- package/dist/src/components/UserPreferences/UserPreferencesModal.js.map +0 -1
- package/dist/src/components/UserPreferences/UserPreferencesProvider.d.ts.map +0 -1
- package/dist/src/components/UserPreferences/UserPreferencesProvider.js.map +0 -1
- package/dist/src/setupTests.d.ts +0 -2
- package/dist/src/setupTests.d.ts.map +0 -1
- package/dist/src/setupTests.js +0 -24
- package/dist/src/setupTests.js.map +0 -1
- package/dist/src/tests/test-utils.d.ts +0 -7
- package/dist/src/tests/test-utils.d.ts.map +0 -1
- package/dist/src/tests/test-utils.js +0 -21
- package/dist/src/tests/test-utils.js.map +0 -1
- package/src/components/DetailsPage/DetailsPage.spec.tsx +0 -128
- package/src/components/Device/EditDeviceWizard/types.ts +0 -22
- package/src/components/Fleet/CreateFleet/types.ts +0 -33
- package/src/setupTests.ts +0 -21
- package/src/tests/test-utils.tsx +0 -21
- /package/dist/src/components/{UserPreferences → Masthead}/UserPreferencesModal.d.ts +0 -0
- /package/dist/src/components/{UserPreferences → Masthead}/UserPreferencesModal.js +0 -0
- /package/dist/src/components/{UserPreferences → Masthead}/UserPreferencesProvider.d.ts +0 -0
- /package/dist/src/components/{UserPreferences → Masthead}/UserPreferencesProvider.js +0 -0
- /package/src/components/{UserPreferences → Masthead}/UserPreferencesModal.tsx +0 -0
- /package/src/components/{UserPreferences → Masthead}/UserPreferencesProvider.tsx +0 -0
package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigK8sSecretTemplateForm.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigK8sSecretTemplateForm.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,KAAK,gCAAgC,GAAG;IACtC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,QAAA,MAAM,2BAA2B,cAAe,gCAAgC,sBAiC/E,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigK8sSecretTemplateForm.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,mCAA0C;AAC1C,uDAAmD;AAEnD,qEAAkE;AAElE,gFAAgD;
|
|
1
|
+
{"version":3,"file":"ConfigK8sSecretTemplateForm.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,mCAA0C;AAC1C,uDAAmD;AAEnD,qEAAkE;AAElE,gFAAgD;AAOhD,MAAM,2BAA2B,GAAG,CAAC,EAAE,KAAK,EAAoC,EAAE,EAAE;IAClF,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,yBAAgB,GAA8B,CAAC;IAClE,MAAM,QAAQ,GAAG,MAAM,CAAC,eAAe,CAAC,KAAK,CAAuB,CAAC;IACrE,OAAO,CACL;QACE,oBAAC,sBAAS,IAAC,KAAK,EAAE,CAAC,CAAC,aAAa,CAAC,EAAE,UAAU;YAC5C,oBAAC,mBAAS,kBACI,CAAC,CAAC,aAAa,CAAC,EAC5B,KAAK,EAAE,QAAQ,CAAC,UAAU,EAC1B,IAAI,EAAE,mBAAmB,KAAK,aAAa,EAC3C,UAAU,SACV,CACQ;QACZ,oBAAC,sBAAS,IAAC,KAAK,EAAE,CAAC,CAAC,kBAAkB,CAAC,EAAE,UAAU;YACjD,oBAAC,mBAAS,kBACI,CAAC,CAAC,kBAAkB,CAAC,EACjC,IAAI,EAAE,mBAAmB,KAAK,WAAW,EACzC,KAAK,EAAE,QAAQ,CAAC,QAAQ,EACxB,UAAU,SACV,CACQ;QACZ,oBAAC,sBAAS,IAAC,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,UAAU;YAC3C,oBAAC,mBAAS,kBACI,CAAC,CAAC,YAAY,CAAC,EAC3B,IAAI,EAAE,mBAAmB,KAAK,YAAY,EAC1C,KAAK,EAAE,QAAQ,CAAC,SAAS,EACzB,WAAW,EAAE,CAAC,CAAC,gBAAgB,CAAC,EAChC,UAAU,SACV,CACQ,CACX,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,2BAA2B,CAAC"}
|
package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigWithRepositoryTemplateForm.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigWithRepositoryTemplateForm.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAQ5D,KAAK,qCAAqC,GAAG;IAC3C,QAAQ,EAAE,YAAY,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,UAAU,EAAE,CAAC;IAC3B,WAAW,EAAE,YAAY,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAgIF,QAAA,MAAM,gCAAgC,mEAMnC,qCAAqC,sBAuDvC,CAAC;AAEF,eAAe,gCAAgC,CAAC"}
|
package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.js
CHANGED
|
@@ -12,7 +12,7 @@ const useTranslation_1 = require("../../../../hooks/useTranslation");
|
|
|
12
12
|
const TextField_1 = tslib_1.__importDefault(require("../../../form/TextField"));
|
|
13
13
|
const FormSelect_1 = tslib_1.__importDefault(require("../../../form/FormSelect"));
|
|
14
14
|
const CreateRepositoryModal_1 = tslib_1.__importDefault(require("../../../modals/CreateRepositoryModal/CreateRepositoryModal"));
|
|
15
|
-
const WithHelperText_1 =
|
|
15
|
+
const WithHelperText_1 = require("../../../common/WithHelperText");
|
|
16
16
|
const getRepositoryItems = (t, repositories, repoType, forcedRepoName) => {
|
|
17
17
|
const repositoryItems = repositories.reduce((acc, curr) => {
|
|
18
18
|
if (curr.spec.type === repoType) {
|
|
@@ -41,9 +41,9 @@ const GitConfigForm = ({ template, index }) => {
|
|
|
41
41
|
return (React.createElement(React.Fragment, null,
|
|
42
42
|
React.createElement(react_core_1.FormGroup, { label: t('Branch/tag/commit'), isRequired: true },
|
|
43
43
|
React.createElement(TextField_1.default, { "aria-label": t('Branch/tag/commit'), name: `configTemplates[${index}].targetRevision`, value: template.targetRevision })),
|
|
44
|
-
React.createElement(
|
|
44
|
+
React.createElement(WithHelperText_1.FormGroupWithHelperText, { label: t('Path'), content: t('Path in the repository where the configuration files are located.'), isRequired: true },
|
|
45
45
|
React.createElement(TextField_1.default, { "aria-label": t('Path'), name: `configTemplates[${index}].path`, value: template.path, placeholder: t('/absolute/path') })),
|
|
46
|
-
React.createElement(
|
|
46
|
+
React.createElement(WithHelperText_1.FormGroupWithHelperText, { label: t('Mount path'), content: t('Path in the device where the configurations will be stored.'), isRequired: true },
|
|
47
47
|
React.createElement(TextField_1.default, { "aria-label": t('Mount path'), name: `configTemplates[${index}].mountPath`, value: template.mountPath, placeholder: t('/absolute/path') }))));
|
|
48
48
|
};
|
|
49
49
|
const HttpConfigForm = ({ template, baseURL, index, }) => {
|
|
@@ -59,9 +59,9 @@ const HttpConfigForm = ({ template, baseURL, index, }) => {
|
|
|
59
59
|
suffixHelperText = t('Select a repository to generate the full URL');
|
|
60
60
|
}
|
|
61
61
|
return (React.createElement(React.Fragment, null,
|
|
62
|
-
React.createElement(
|
|
62
|
+
React.createElement(WithHelperText_1.FormGroupWithHelperText, { label: t('Suffix'), content: t("Suffix that will be combined with the repository's base URL to invoke the HTTP service. Can include query parameters.") },
|
|
63
63
|
React.createElement(TextField_1.default, { "aria-label": t('Suffix'), name: `configTemplates[${index}].suffix`, value: template.suffix || '', helperText: suffixHelperText })),
|
|
64
|
-
React.createElement(
|
|
64
|
+
React.createElement(WithHelperText_1.FormGroupWithHelperText, { label: t('File path'), content: t('Path of the file where the response will be stored in the device filesystem.'), isRequired: true },
|
|
65
65
|
React.createElement(TextField_1.default, { "aria-label": t('File path'), name: `configTemplates[${index}].filePath`, value: template.filePath || '', placeholder: t('/absolute/path') }))));
|
|
66
66
|
};
|
|
67
67
|
const ConfigWithRepositoryTemplateForm = ({ repoType, index, repositories, repoRefetch, canCreateRepo, }) => {
|
package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigWithRepositoryTemplateForm.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,mCAA0C;AAC1C,uDAA6E;AAC7E,6FAAwF;AACxF,2GAAsG;AACtG,iDAAiD;AAEjD,4CAA4D;AAE5D,qEAAkE;
|
|
1
|
+
{"version":3,"file":"ConfigWithRepositoryTemplateForm.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,mCAA0C;AAC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;gBAC9B,WAAW,EAAE,CAAC;gBACd,KAAK,aAAa,CAAC,mBAAmB,KAAK,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACvF,CAAC,EACD,OAAO,EAAE;gBACP,mBAAmB,EAAE,KAAK;gBAC1B,gBAAgB,EAAE,CAAC,QAAQ,CAAC;aAC7B,GACD,CACH,CACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,gCAAgC,CAAC"}
|
|
@@ -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;AAyN/B,QAAA,MAAM,qCAAqC,yBAO1C,CAAC;AAEF,eAAe,qCAAqC,CAAC"}
|
|
@@ -11,7 +11,7 @@ const deviceSpec_1 = require("../../../../types/deviceSpec");
|
|
|
11
11
|
const useTranslation_1 = require("../../../../hooks/useTranslation");
|
|
12
12
|
const useFetchPeriodically_1 = require("../../../../hooks/useFetchPeriodically");
|
|
13
13
|
const error_1 = require("../../../../utils/error");
|
|
14
|
-
const WithHelperText_1 =
|
|
14
|
+
const WithHelperText_1 = require("../../../common/WithHelperText");
|
|
15
15
|
const validations_1 = require("../../../form/validations");
|
|
16
16
|
const FieldHelperText_1 = tslib_1.__importDefault(require("../../../form/FieldHelperText"));
|
|
17
17
|
const FormSelect_1 = tslib_1.__importDefault(require("../../../form/FormSelect"));
|
|
@@ -63,7 +63,7 @@ const ConfigurationTemplatesForm = ({ repositories, repoRefetch, canCreateRepo,
|
|
|
63
63
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
64
64
|
const { values, errors } = (0, formik_1.useFormikContext)();
|
|
65
65
|
const generalError = typeof errors.configTemplates === 'string' ? errors.configTemplates : undefined;
|
|
66
|
-
return (React.createElement(
|
|
66
|
+
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
67
|
React.createElement(formik_1.FieldArray, { name: "configTemplates" }, ({ push, remove }) => (React.createElement(React.Fragment, null,
|
|
68
68
|
values.configTemplates.map((_, index) => (React.createElement(react_core_1.FormSection, { key: index },
|
|
69
69
|
React.createElement(react_core_1.Split, { hasGutter: true },
|
|
@@ -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,
|
|
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;I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,EAAE,YAAY,EAC1B,WAAW,EAAE,OAAO,GACpB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,qCAAqC,GAAG,GAAG,EAAE;IACjD,MAAM,CAAC,WAAW,CAAC,GAAG,IAAA,iCAAe,EAAC,eAAQ,CAAC,UAAU,EAAE,WAAI,CAAC,IAAI,CAAC,CAAC;IACtE,OAAO,WAAW,CAAC,CAAC,CAAC,CACnB,oBAAC,sBAAsB,OAAG,CAC3B,CAAC,CAAC,CAAC,CACF,oBAAC,0BAA0B,IAAC,WAAW,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,GAAE,CAAC,GAAI,CAClH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,qCAAqC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FormikErrors } from 'formik';
|
|
3
|
-
import { DeviceSpecConfigFormValues } from '
|
|
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
6
|
declare const DeviceTemplateStep: ({ isFleet }: {
|
|
@@ -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;AAUxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAS1E,eAAO,MAAM,oBAAoB,oBAAoB,CAAC;AAEtD,eAAO,MAAM,yBAAyB,WAAY,aAAa,0BAA0B,CAAC,YACE,CAAC;AAgF7F,QAAA,MAAM,kBAAkB;aAA4B,OAAO;uBAoD1D,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -6,10 +6,9 @@ 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 external_link_alt_icon_1 = require("@patternfly/react-icons/dist/js/icons/external-link-alt-icon");
|
|
10
9
|
const links_1 = require("../../../../links");
|
|
11
10
|
const useTranslation_1 = require("../../../../hooks/useTranslation");
|
|
12
|
-
const WithHelperText_1 = tslib_1.
|
|
11
|
+
const WithHelperText_1 = tslib_1.__importStar(require("../../../common/WithHelperText"));
|
|
13
12
|
const LearnMoreLink_1 = tslib_1.__importDefault(require("../../../common/LearnMoreLink"));
|
|
14
13
|
const TextField_1 = tslib_1.__importDefault(require("../../../form/TextField"));
|
|
15
14
|
const FlightCtlForm_1 = tslib_1.__importDefault(require("../../../form/FlightCtlForm"));
|
|
@@ -40,21 +39,22 @@ const MicroShiftCheckbox = ({ isFleet }) => {
|
|
|
40
39
|
React.createElement(react_core_1.FormGroup, null,
|
|
41
40
|
React.createElement(CheckboxField_1.default, { name: "registerMicroShift", label: isFleet ? (React.createElement(React.Fragment, null,
|
|
42
41
|
t('Register all MicroShift devices to ACM'),
|
|
43
|
-
React.createElement(WithHelperText_1.default, {
|
|
42
|
+
React.createElement(WithHelperText_1.default, { label: "MicroShift registration", content: React.createElement(React.Fragment, null,
|
|
44
43
|
t('Select this when all the devices in the fleet are running MicroShift and you want to register them to ACM.'),
|
|
45
44
|
React.createElement("br", null),
|
|
46
|
-
t("To remove registration, you'll need to uncheck this option and also remove the clusters from ACM's clusters list")) }))) : (React.createElement(React.Fragment, null,
|
|
45
|
+
t("To remove registration, you'll need to uncheck this option and also remove the clusters from ACM's clusters list")), hideLabel: true }))) : (React.createElement(React.Fragment, null,
|
|
47
46
|
t('Register this MicroShift device to ACM'),
|
|
48
|
-
React.createElement(WithHelperText_1.default, {
|
|
47
|
+
React.createElement(WithHelperText_1.default, { label: "MicroShift registration", content: React.createElement(React.Fragment, null,
|
|
49
48
|
t('Select this when the device is running MicroShift and you want to register it to ACM.'),
|
|
50
49
|
React.createElement("br", null),
|
|
51
|
-
t("To remove registration, you'll need to uncheck this option and also remove the cluster from ACM's clusters list")) }))), isDisabled: isDisabled })),
|
|
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 })),
|
|
52
51
|
isDisabled && (React.createElement(react_core_1.FormGroup, null,
|
|
53
|
-
React.createElement(react_core_1.Alert, { variant: "warning", title: t(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
React.createElement(react_core_1.Alert, { variant: "warning", title: t('Cannot register MicroShift devices'), isInline: true },
|
|
53
|
+
t(`{{ repository }} repository is missing. To re-create the repository`, {
|
|
54
|
+
repository: `'${deviceSpecUtils_1.ACM_REPO_NAME}'`,
|
|
55
|
+
}),
|
|
56
|
+
', ',
|
|
57
|
+
React.createElement(LearnMoreLink_1.default, { link: links_1.CREATE_ACM_REPOSITORY, text: t('view documentation') }))))));
|
|
58
58
|
};
|
|
59
59
|
const DeviceTemplateStep = ({ isFleet }) => {
|
|
60
60
|
const { appType } = (0, useAppContext_1.useAppContext)();
|
|
@@ -72,17 +72,17 @@ const DeviceTemplateStep = ({ isFleet }) => {
|
|
|
72
72
|
React.createElement(react_core_1.CodeBlock, { className: "pf-v5-u-mt-md" },
|
|
73
73
|
React.createElement(react_core_1.CodeBlockCode, null, exampleCode)),
|
|
74
74
|
React.createElement(LearnMoreLink_1.default, { link: links_1.USING_TEMPLATE_VARIABLES_LINK }))),
|
|
75
|
-
React.createElement(
|
|
76
|
-
|
|
77
|
-
|
|
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 (
|
|
75
|
+
React.createElement(WithHelperText_1.FormGroupWithHelperText, { label: t('System image'), content: isFleet
|
|
76
|
+
? t("The target system image for this fleet's devices.")
|
|
77
|
+
: 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
79
|
React.createElement(react_core_1.FormGroup, null,
|
|
80
80
|
React.createElement(ConfigurationTemplates_1.default, null)),
|
|
81
81
|
React.createElement(react_core_1.FormGroup, null,
|
|
82
82
|
React.createElement(ApplicationTemplates_1.default, null)),
|
|
83
83
|
isFleet && (React.createElement(react_core_1.FormGroup, { label: t('Tracked systemd services') },
|
|
84
84
|
React.createElement(SystemdUnitsForm_1.default, null))),
|
|
85
|
-
appType ===
|
|
85
|
+
appType === useAppContext_1.FlightCtlApp.OCP && React.createElement(MicroShiftCheckbox, { isFleet: isFleet }))));
|
|
86
86
|
};
|
|
87
87
|
exports.default = DeviceTemplateStep;
|
|
88
88
|
//# 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,
|
|
1
|
+
{"version":3,"file":"DeviceTemplateStep.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep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
2
|
+
import { FormikErrors } from 'formik';
|
|
3
|
+
import { DeviceSpecConfigFormValues } from '../../../../types/deviceSpec';
|
|
4
|
+
export declare const deviceUpdatePolicyStepId = "update-policy";
|
|
5
|
+
export declare const isUpdatePolicyStepValid: (errors: FormikErrors<DeviceSpecConfigFormValues>) => boolean;
|
|
6
|
+
declare const UpdatePolicyStep: () => React.JSX.Element;
|
|
7
|
+
export default UpdatePolicyStep;
|
|
8
|
+
//# sourceMappingURL=DeviceUpdateStep.d.ts.map
|
|
@@ -0,0 +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;AAQxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAG1E,eAAO,MAAM,wBAAwB,kBAAkB,CAAC;AAExD,eAAO,MAAM,uBAAuB,WAAY,aAAa,0BAA0B,CAAC,YAAyB,CAAC;AAElH,QAAA,MAAM,gBAAgB,yBAoErB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isUpdatePolicyStepValid = exports.deviceUpdatePolicyStepId = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
7
|
+
const formik_1 = require("formik");
|
|
8
|
+
const useTranslation_1 = require("../../../../hooks/useTranslation");
|
|
9
|
+
const UpdateConfirmChangesModal_1 = tslib_1.__importDefault(require("../../../Fleet/CreateFleet/steps/UpdateConfirmChangesModal"));
|
|
10
|
+
const UpdateStepUpdatePolicy_1 = tslib_1.__importDefault(require("../../../Fleet/CreateFleet/steps/UpdateStepUpdatePolicy"));
|
|
11
|
+
const fleetSpecUtils_1 = require("../../../Fleet/CreateFleet/fleetSpecUtils");
|
|
12
|
+
const FlightCtlForm_1 = tslib_1.__importDefault(require("../../../form/FlightCtlForm"));
|
|
13
|
+
const WithHelperText_1 = require("../../../common/WithHelperText");
|
|
14
|
+
exports.deviceUpdatePolicyStepId = 'update-policy';
|
|
15
|
+
const isUpdatePolicyStepValid = (errors) => !errors.updatePolicy;
|
|
16
|
+
exports.isUpdatePolicyStepValid = isUpdatePolicyStepValid;
|
|
17
|
+
const UpdatePolicyStep = () => {
|
|
18
|
+
const { t } = (0, useTranslation_1.useTranslation)();
|
|
19
|
+
const { values: { updatePolicy }, setFieldValue, setFieldTouched, } = (0, formik_1.useFormikContext)();
|
|
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
|
+
};
|
|
45
|
+
return (React.createElement(react_core_1.Grid, { lg: 8 },
|
|
46
|
+
React.createElement(FlightCtlForm_1.default, null,
|
|
47
|
+
React.createElement(react_core_1.FormGroup, null,
|
|
48
|
+
React.createElement(react_core_1.Checkbox, { label: t('Use basic configurations'), isChecked: !hasAdvancedMode, id: "basic-update-configuration", onChange: (_ev, toBasic) => {
|
|
49
|
+
onAdvancedEnableChange(!toBasic);
|
|
50
|
+
} })),
|
|
51
|
+
hasAdvancedMode ? (React.createElement(React.Fragment, null,
|
|
52
|
+
React.createElement(react_core_1.Title, { headingLevel: "h3" }, t('Advanced configurations')),
|
|
53
|
+
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, null)))) : (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.'))),
|
|
55
|
+
alertSwitchToBasic && React.createElement(UpdateConfirmChangesModal_1.default, { setting: "update-policies", onClose: onModalClose }))));
|
|
56
|
+
};
|
|
57
|
+
exports.default = UpdatePolicyStep;
|
|
58
|
+
//# sourceMappingURL=DeviceUpdateStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeviceUpdateStep.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/DeviceUpdateStep.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,uDAAiF;AACjF,mCAAwD;AAExD,qEAAkE;AAClE,mIAAmG;AACnG,6HAA6F;AAC7F,8EAAqF;AAErF,wFAAwD;AAExD,mEAAyE;AAE5D,QAAA,wBAAwB,GAAG,eAAe,CAAC;AAEjD,MAAM,uBAAuB,GAAG,CAAC,MAAgD,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;AAArG,QAAA,uBAAuB,2BAA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CAAC,EACpC,SAAS,EAAE,CAAC,eAAe,EAC3B,EAAE,EAAC,4BAA4B,EAC/B,QAAQ,EAAE,CAAC,GAAsC,EAAE,OAAgB,EAAE,EAAE;wBACrE,sBAAsB,CAAC,CAAC,OAAO,CAAC,CAAC;oBACnC,CAAC,GACD,CACQ;YACX,eAAe,CAAC,CAAC,CAAC,CACjB;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,OAAG,CACF,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;YACA,kBAAkB,IAAI,oBAAC,mCAAyB,IAAC,OAAO,EAAC,iBAAiB,EAAC,OAAO,EAAE,YAAY,GAAI,CACvF,CACX,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,gBAAgB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FormikErrors } from 'formik';
|
|
3
|
-
import { EditDeviceFormValues } from '
|
|
3
|
+
import { EditDeviceFormValues } from '../../../../types/deviceSpec';
|
|
4
4
|
export declare const generalInfoStepId = "general-info";
|
|
5
5
|
export declare const isGeneralInfoStepValid: (errors: FormikErrors<EditDeviceFormValues>) => boolean;
|
|
6
6
|
declare const GeneralInfoStep: () => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeneralInfoStep.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAoB,MAAM,QAAQ,CAAC;AASxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"GeneralInfoStep.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAoB,MAAM,QAAQ,CAAC;AASxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAEhD,eAAO,MAAM,sBAAsB,WAAY,aAAa,oBAAoB,CAAC,YAEhF,CAAC;AAEF,QAAA,MAAM,eAAe,yBAuCpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { AppForm } from '../../../../types/deviceSpec';
|
|
3
3
|
declare const ReviewApplications: ({ apps }: {
|
|
4
|
-
apps:
|
|
4
|
+
apps: AppForm[];
|
|
5
5
|
}) => React.JSX.Element | "-";
|
|
6
6
|
export default ReviewApplications;
|
|
7
7
|
//# sourceMappingURL=ReviewApplications.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewApplications.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ReviewApplications.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ReviewApplications.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ReviewApplications.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,OAAO,EAAqC,MAAM,8BAA8B,CAAC;AAE1F,QAAA,MAAM,kBAAkB;UAAsB,OAAO,EAAE;6BAyBtD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -4,23 +4,28 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const react_core_1 = require("@patternfly/react-core");
|
|
6
6
|
const useTranslation_1 = require("../../../../hooks/useTranslation");
|
|
7
|
+
const deviceSpec_1 = require("../../../../types/deviceSpec");
|
|
7
8
|
const ReviewApplications = ({ apps }) => {
|
|
8
9
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
9
10
|
if (apps.length === 0) {
|
|
10
11
|
return '-';
|
|
11
12
|
}
|
|
12
|
-
return (react_1.default.createElement(react_core_1.Stack, { hasGutter: true }, apps.map((app, index) =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
return (react_1.default.createElement(react_core_1.Stack, { hasGutter: true }, apps.map((app, index) => {
|
|
14
|
+
const isInlineApp = (0, deviceSpec_1.isInlineAppForm)(app);
|
|
15
|
+
const type = isInlineApp ? t('Inline') : t('Image based');
|
|
16
|
+
let name = '';
|
|
17
|
+
if (isInlineApp || app.name) {
|
|
18
|
+
name = app.name;
|
|
19
|
+
}
|
|
20
|
+
else if (app.image) {
|
|
21
|
+
name = `${t('Unnamed')} (${app.image})`;
|
|
22
|
+
}
|
|
23
|
+
return (react_1.default.createElement(react_core_1.StackItem, { key: `${(0, deviceSpec_1.getAppIdentifier)(app)}_${index}` },
|
|
24
|
+
name,
|
|
25
|
+
" (",
|
|
26
|
+
type,
|
|
27
|
+
")"));
|
|
28
|
+
})));
|
|
24
29
|
};
|
|
25
30
|
exports.default = ReviewApplications;
|
|
26
31
|
//# sourceMappingURL=ReviewApplications.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewApplications.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ReviewApplications.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"ReviewApplications.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ReviewApplications.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,uDAA0D;AAE1D,qEAAkE;AAClE,6DAA0F;AAE1F,MAAM,kBAAkB,GAAG,CAAC,EAAE,IAAI,EAAuB,EAAE,EAAE;IAC3D,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,GAAG,CAAC;IACb,CAAC;IAED,OAAO,CACL,8BAAC,kBAAK,IAAC,SAAS,UACb,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;QACvB,MAAM,WAAW,GAAG,IAAA,4BAAe,EAAC,GAAG,CAAC,CAAC;QACzC,MAAM,IAAI,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;QAC1D,IAAI,IAAI,GAAW,EAAE,CAAC;QACtB,IAAI,WAAW,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC;YAC5B,IAAI,GAAG,GAAG,CAAC,IAAc,CAAC;QAC5B,CAAC;aAAM,IAAI,GAAG,CAAC,KAAK,EAAE,CAAC;YACrB,IAAI,GAAG,GAAG,CAAC,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,KAAK,GAAG,CAAC;QAC1C,CAAC;QACD,OAAO,CACL,8BAAC,sBAAS,IAAC,GAAG,EAAE,GAAG,IAAA,6BAAgB,EAAC,GAAG,CAAC,IAAI,KAAK,EAAE;YAChD,IAAI;;YAAI,IAAI;gBACH,CACb,CAAC;IACJ,CAAC,CAAC,CACI,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
|
|
@@ -38,7 +38,7 @@ const ReviewStep = ({ error }) => {
|
|
|
38
38
|
values.configTemplates.length > 0 && (React.createElement(react_core_1.DescriptionListGroup, null,
|
|
39
39
|
React.createElement(react_core_1.DescriptionListTerm, null, t('Configurations')),
|
|
40
40
|
React.createElement(react_core_1.DescriptionListDescription, null,
|
|
41
|
-
React.createElement(RepositorySourceList_1.default, { configs: values.configTemplates.map(deviceSpecUtils_1.
|
|
41
|
+
React.createElement(RepositorySourceList_1.default, { configs: values.configTemplates.map(deviceSpecUtils_1.getApiConfig) })))),
|
|
42
42
|
values.applications.length > 0 && (React.createElement(react_core_1.DescriptionListGroup, null,
|
|
43
43
|
React.createElement(react_core_1.DescriptionListTerm, null, t('Applications')),
|
|
44
44
|
React.createElement(react_core_1.DescriptionListDescription, null,
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare const ReviewTrackedSystemdServices: ({ systemdUnits }:
|
|
4
|
-
systemdUnits: SystemdUnitFormValue[];
|
|
5
|
-
}) => React.JSX.Element | "-";
|
|
2
|
+
import { SystemdUnitsFormValues } from '../../SystemdUnitsModal/TrackSystemdUnitsForm';
|
|
3
|
+
declare const ReviewTrackedSystemdServices: ({ systemdUnits }: SystemdUnitsFormValues) => React.JSX.Element | "-";
|
|
6
4
|
export default ReviewTrackedSystemdServices;
|
|
7
5
|
//# sourceMappingURL=ReviewTrackedSystemdServices.d.ts.map
|
package/dist/src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewTrackedSystemdServices.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ReviewTrackedSystemdServices.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AAEvF,QAAA,MAAM,4BAA4B,qBAAsB,sBAAsB,4BAY7E,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
package/dist/src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewTrackedSystemdServices.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,uDAA2D;AAG3D,MAAM,4BAA4B,GAAG,CAAC,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"ReviewTrackedSystemdServices.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,uDAA2D;AAG3D,MAAM,4BAA4B,GAAG,CAAC,EAAE,YAAY,EAA0B,EAAE,EAAE;IAChF,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC9B,OAAO,GAAG,CAAC;IACb,CAAC;IAED,OAAO,CACL,8BAAC,uBAAU,QACR,YAAY,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CACpC,8BAAC,kBAAK,IAAC,GAAG,EAAE,GAAG,OAAO,CAAC,OAAO,IAAI,KAAK,EAAE,IAAG,OAAO,CAAC,OAAO,CAAS,CACrE,CAAC,CACS,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,4BAA4B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DisruptionBudgetForm, RolloutPolicyForm } from '
|
|
2
|
+
import { DisruptionBudgetForm, RolloutPolicyForm } from '../../../../types/deviceSpec';
|
|
3
3
|
export declare const ReviewUpdateRolloutPolicy: ({ rolloutPolicy }: {
|
|
4
4
|
rolloutPolicy: RolloutPolicyForm;
|
|
5
5
|
}) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewUpdatePolicy.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ReviewUpdatePolicy.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAKvF,eAAO,MAAM,yBAAyB;mBAAwC,iBAAiB;YAM9F,CAAC;AAEF,eAAO,MAAM,4BAA4B;sBAA8C,oBAAoB;6BAuC1G,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewUpdatePolicy.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAA0D;
|
|
1
|
+
{"version":3,"file":"ReviewUpdatePolicy.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/ReviewUpdatePolicy.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAA0D;AA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AAY,EAAE,gBAAgB,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,7 +1,7 @@
|
|
|
1
1
|
import { TFunction } from 'i18next';
|
|
2
2
|
import * as Yup from 'yup';
|
|
3
3
|
import { Device, PatchRequest } from '@flightctl/types';
|
|
4
|
-
import { EditDeviceFormValues } from '
|
|
4
|
+
import { EditDeviceFormValues } from './../../../types/deviceSpec';
|
|
5
5
|
export declare const getValidationSchema: (t: TFunction) => Yup.Lazy<{
|
|
6
6
|
deviceAlias?: string | undefined;
|
|
7
7
|
osImage?: string | undefined;
|
|
@@ -28,18 +28,44 @@ export declare const getValidationSchema: (t: TFunction) => Yup.Lazy<{
|
|
|
28
28
|
name?: string | undefined;
|
|
29
29
|
type: string;
|
|
30
30
|
})[] | undefined;
|
|
31
|
-
applications?: {
|
|
31
|
+
applications?: ({
|
|
32
|
+
name: string;
|
|
33
|
+
files: {
|
|
34
|
+
content?: string | undefined;
|
|
35
|
+
path: string;
|
|
36
|
+
}[];
|
|
37
|
+
specType: NonNullable<import("./../../../types/deviceSpec").AppSpecType | undefined>;
|
|
38
|
+
variables: {
|
|
39
|
+
value: string;
|
|
40
|
+
name: string;
|
|
41
|
+
}[];
|
|
42
|
+
} | {
|
|
32
43
|
name?: string | undefined;
|
|
33
44
|
image: string;
|
|
45
|
+
specType: NonNullable<import("./../../../types/deviceSpec").AppSpecType | undefined>;
|
|
34
46
|
variables: {
|
|
35
47
|
value: string;
|
|
36
48
|
name: string;
|
|
37
49
|
}[];
|
|
38
|
-
}[] | undefined;
|
|
50
|
+
})[] | undefined;
|
|
39
51
|
labels: {
|
|
40
52
|
value?: string | undefined;
|
|
41
53
|
key: string;
|
|
42
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
|
+
};
|
|
43
69
|
}, Yup.AnyObject, any>;
|
|
44
70
|
export declare const getDevicePatches: (currentDevice: Device, updatedDevice: EditDeviceFormValues) => PatchRequest;
|
|
45
71
|
//# 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;
|
|
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,iBA4D1F,CAAC"}
|
|
@@ -12,18 +12,16 @@ const getValidationSchema = (t) => Yup.lazy(() => Yup.object({
|
|
|
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
16
|
}));
|
|
16
17
|
exports.getValidationSchema = getValidationSchema;
|
|
17
18
|
const getDevicePatches = (currentDevice, updatedDevice) => {
|
|
18
|
-
var _a, _b, _c, _d;
|
|
19
|
+
var _a, _b, _c, _d, _e;
|
|
19
20
|
let allPatches = [];
|
|
20
21
|
// Device labels
|
|
21
22
|
const currentLabels = currentDevice.metadata.labels || {};
|
|
22
23
|
const updatedLabels = [...updatedDevice.labels];
|
|
23
|
-
|
|
24
|
-
updatedLabels.push({ key: 'alias', value: updatedDevice.deviceAlias });
|
|
25
|
-
}
|
|
26
|
-
const deviceLabelPatches = (0, patch_1.getLabelPatches)('/metadata/labels', currentLabels, updatedLabels);
|
|
24
|
+
const deviceLabelPatches = (0, patch_1.getDeviceLabelPatches)(currentLabels, updatedLabels, updatedDevice.deviceAlias);
|
|
27
25
|
allPatches = allPatches.concat(deviceLabelPatches);
|
|
28
26
|
if (updatedDevice.fleetMatch) {
|
|
29
27
|
// The change in device labels makes the device bound to a fleet. Only the labels can be updated.
|
|
@@ -55,15 +53,18 @@ const getDevicePatches = (currentDevice, updatedDevice) => {
|
|
|
55
53
|
}
|
|
56
54
|
// Configurations
|
|
57
55
|
const currentConfigs = ((_c = currentDevice.spec) === null || _c === void 0 ? void 0 : _c.config) || [];
|
|
58
|
-
const newConfigs = updatedDevice.configTemplates.map(deviceSpecUtils_1.
|
|
56
|
+
const newConfigs = updatedDevice.configTemplates.map(deviceSpecUtils_1.getApiConfig);
|
|
59
57
|
if (updatedDevice.registerMicroShift) {
|
|
60
58
|
newConfigs.push(deviceSpecUtils_1.ACMCrdConfig, deviceSpecUtils_1.ACMImportConfig, deviceSpecUtils_1.MicroshiftRegistrationHook);
|
|
61
59
|
}
|
|
62
60
|
const configPatches = (0, deviceSpecUtils_1.getDeviceSpecConfigPatches)(currentConfigs, newConfigs, '/spec/config');
|
|
63
61
|
allPatches = allPatches.concat(configPatches);
|
|
64
62
|
// Applications
|
|
65
|
-
const appPatches = (0,
|
|
63
|
+
const appPatches = (0, deviceSpecUtils_1.getApplicationPatches)('/spec', ((_d = currentDevice.spec) === null || _d === void 0 ? void 0 : _d.applications) || [], updatedDevice.applications);
|
|
66
64
|
allPatches = allPatches.concat(appPatches);
|
|
65
|
+
// Updates
|
|
66
|
+
const updatesPatches = (0, patch_1.getUpdatePolicyPatches)('/spec/updatePolicy', (_e = currentDevice.spec) === null || _e === void 0 ? void 0 : _e.updatePolicy, updatedDevice.updatePolicy);
|
|
67
|
+
allPatches = allPatches.concat(updatesPatches);
|
|
67
68
|
return allPatches;
|
|
68
69
|
};
|
|
69
70
|
exports.getDevicePatches = getDevicePatches;
|