@flightctl/ui-components 0.0.10 → 0.4.0-rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.css +7 -0
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.d.ts +8 -1
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.d.ts.map +1 -1
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.js +91 -9
- 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 +15 -51
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceApplications.d.ts +10 -0
- package/dist/src/components/Device/DeviceDetails/DeviceApplications.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceApplications.js +65 -0
- package/dist/src/components/Device/DeviceDetails/DeviceApplications.js.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts +5 -4
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js +18 -9
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.d.ts +3 -4
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.d.ts.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js +6 -18
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/TerminalTab.d.ts +4 -3
- package/dist/src/components/Device/DeviceDetails/TerminalTab.d.ts.map +1 -1
- package/dist/src/components/Device/DeviceDetails/TerminalTab.js +13 -4
- package/dist/src/components/Device/DeviceDetails/TerminalTab.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.d.ts.map +1 -1
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.js +4 -14
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/DeviceTableRow.d.ts +2 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableRow.d.ts.map +1 -1
- package/dist/src/components/Device/DevicesPage/DeviceTableRow.js +14 -6
- package/dist/src/components/Device/DevicesPage/DeviceTableRow.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/DeviceTableToolbar.d.ts +0 -3
- package/dist/src/components/Device/DevicesPage/DeviceTableToolbar.d.ts.map +1 -1
- package/dist/src/components/Device/DevicesPage/DeviceTableToolbar.js +2 -2
- package/dist/src/components/Device/DevicesPage/DeviceTableToolbar.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.d.ts +1 -4
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.d.ts.map +1 -1
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.js +70 -16
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/DevicesPage.d.ts +6 -8
- package/dist/src/components/Device/DevicesPage/DevicesPage.d.ts.map +1 -1
- package/dist/src/components/Device/DevicesPage/DevicesPage.js +41 -37
- package/dist/src/components/Device/DevicesPage/DevicesPage.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/types.d.ts +1 -10
- package/dist/src/components/Device/DevicesPage/types.d.ts.map +1 -1
- package/dist/src/components/Device/DevicesPage/types.js.map +1 -1
- package/dist/src/components/Device/DevicesPage/useDevices.d.ts +9 -10
- package/dist/src/components/Device/DevicesPage/useDevices.d.ts.map +1 -1
- package/dist/src/components/Device/DevicesPage/useDevices.js +9 -29
- package/dist/src/components/Device/DevicesPage/useDevices.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.d.ts +2 -2
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js +19 -4
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts +7 -2
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js +99 -7
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts +5 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/{ApplicationsForm.js → ApplicationTemplates.js} +31 -24
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js +9 -10
- 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 +5 -6
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.d.ts +4 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/{ConfigTemplateForm.js → ConfigurationTemplates.js} +42 -28
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js +53 -12
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.js +13 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.d.ts +4 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.js +38 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/types.d.ts +3 -0
- package/dist/src/components/Device/EditDeviceWizard/types.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts +1 -0
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/utils.js +5 -2
- package/dist/src/components/Device/EditDeviceWizard/utils.js.map +1 -1
- package/dist/src/components/Device/{MatchPatternsModal/MatchPatternsModal.d.ts → SystemdUnitsModal/SystemdUnitsModal.d.ts} +6 -6
- package/dist/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.d.ts.map +1 -0
- package/dist/src/components/Device/{MatchPatternsModal/MatchPatternsModal.js → SystemdUnitsModal/SystemdUnitsModal.js} +28 -15
- package/dist/src/components/Device/SystemdUnitsModal/SystemdUnitsModal.js.map +1 -0
- package/dist/src/components/Device/SystemdUnitsModal/TrackSystemdUnitsForm.d.ts +15 -0
- package/dist/src/components/Device/SystemdUnitsModal/TrackSystemdUnitsForm.d.ts.map +1 -0
- package/dist/src/components/Device/SystemdUnitsModal/TrackSystemdUnitsForm.js +57 -0
- package/dist/src/components/Device/SystemdUnitsModal/TrackSystemdUnitsForm.js.map +1 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.d.ts +2 -2
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.d.ts.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js +14 -4
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestList.d.ts +9 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestList.d.ts.map +1 -0
- package/dist/src/components/{Device/DevicesPage → EnrollmentRequest}/EnrollmentRequestList.js +40 -38
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestList.js.map +1 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.d.ts +2 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.d.ts.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js +15 -11
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js.map +1 -1
- package/dist/src/components/{Device/DevicesPage → EnrollmentRequest}/EnrollmentRequestTableToolbar.d.ts +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableToolbar.d.ts.map +1 -0
- package/dist/src/components/{Device/DevicesPage → EnrollmentRequest}/EnrollmentRequestTableToolbar.js +2 -2
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableToolbar.js.map +1 -0
- package/dist/src/components/EnrollmentRequest/useEnrollmentRequests.d.ts +9 -0
- package/dist/src/components/EnrollmentRequest/useEnrollmentRequests.d.ts.map +1 -0
- package/dist/src/components/EnrollmentRequest/useEnrollmentRequests.js +42 -0
- package/dist/src/components/EnrollmentRequest/useEnrollmentRequests.js.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts +2 -2
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.js +19 -2
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js +2 -4
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.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 +6 -1
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/utils.d.ts.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/utils.js +61 -35
- package/dist/src/components/Fleet/CreateFleet/utils.js.map +1 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDetails.d.ts +2 -2
- package/dist/src/components/Fleet/FleetDetails/FleetDetails.d.ts.map +1 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDetails.js +16 -6
- package/dist/src/components/Fleet/FleetDetails/FleetDetails.js.map +1 -1
- package/dist/src/components/Fleet/FleetResourceSyncs.d.ts +2 -5
- package/dist/src/components/Fleet/FleetResourceSyncs.d.ts.map +1 -1
- package/dist/src/components/Fleet/FleetResourceSyncs.js +38 -24
- package/dist/src/components/Fleet/FleetResourceSyncs.js.map +1 -1
- package/dist/src/components/Fleet/FleetRow.d.ts +2 -0
- package/dist/src/components/Fleet/FleetRow.d.ts.map +1 -1
- package/dist/src/components/Fleet/FleetRow.js +16 -14
- package/dist/src/components/Fleet/FleetRow.js.map +1 -1
- package/dist/src/components/Fleet/FleetsPage.d.ts +2 -2
- package/dist/src/components/Fleet/FleetsPage.d.ts.map +1 -1
- package/dist/src/components/Fleet/FleetsPage.js +34 -24
- package/dist/src/components/Fleet/FleetsPage.js.map +1 -1
- package/dist/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.d.ts +2 -2
- package/dist/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.d.ts.map +1 -1
- package/dist/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.js +11 -2
- package/dist/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.js.map +1 -1
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.d.ts.map +1 -1
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js +5 -2
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js.map +1 -1
- package/dist/src/components/Fleet/useFleets.d.ts +11 -3
- package/dist/src/components/Fleet/useFleets.d.ts.map +1 -1
- package/dist/src/components/Fleet/useFleets.js +22 -12
- package/dist/src/components/Fleet/useFleets.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.d.ts.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.js +5 -14
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.d.ts +0 -3
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.d.ts.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.js +2 -2
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.js.map +1 -1
- package/dist/src/components/OverviewPage/Overview.d.ts.map +1 -1
- package/dist/src/components/OverviewPage/Overview.js +11 -5
- package/dist/src/components/OverviewPage/Overview.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateRepository.d.ts +2 -2
- package/dist/src/components/Repository/CreateRepository/CreateRepository.d.ts.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateRepository.js +15 -6
- package/dist/src/components/Repository/CreateRepository/CreateRepository.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js +4 -1
- 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 +22 -6
- 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 +3 -2
- package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.d.ts +2 -2
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.d.ts.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.js +16 -5
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.js.map +1 -1
- package/dist/src/components/Repository/RepositoryList.d.ts +0 -1
- package/dist/src/components/Repository/RepositoryList.d.ts.map +1 -1
- package/dist/src/components/Repository/RepositoryList.js +55 -46
- package/dist/src/components/Repository/RepositoryList.js.map +1 -1
- package/dist/src/components/Repository/useRepositories.d.ts +16 -0
- package/dist/src/components/Repository/useRepositories.d.ts.map +1 -0
- package/dist/src/components/Repository/useRepositories.js +40 -0
- package/dist/src/components/Repository/useRepositories.js.map +1 -0
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.d.ts.map +1 -1
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js +21 -23
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js.map +1 -1
- package/dist/src/components/Table/Table.d.ts +0 -1
- package/dist/src/components/Table/Table.d.ts.map +1 -1
- package/dist/src/components/Table/Table.js +2 -2
- package/dist/src/components/Table/Table.js.map +1 -1
- package/dist/src/components/Table/TablePagination.d.ts +8 -0
- package/dist/src/components/Table/TablePagination.d.ts.map +1 -0
- package/dist/src/components/Table/TablePagination.js +38 -0
- package/dist/src/components/Table/TablePagination.js.map +1 -0
- package/dist/src/components/Terminal/Terminal.d.ts.map +1 -1
- package/dist/src/components/Terminal/Terminal.js +1 -0
- package/dist/src/components/Terminal/Terminal.js.map +1 -1
- package/dist/src/components/common/AccessDenied.d.ts +4 -0
- package/dist/src/components/common/AccessDenied.d.ts.map +1 -0
- package/dist/src/components/common/AccessDenied.js +15 -0
- package/dist/src/components/common/AccessDenied.js.map +1 -0
- package/dist/src/components/common/ButtonWithPermissions.d.ts +8 -0
- package/dist/src/components/common/ButtonWithPermissions.d.ts.map +1 -0
- package/dist/src/components/common/ButtonWithPermissions.js +12 -0
- package/dist/src/components/common/ButtonWithPermissions.js.map +1 -0
- package/dist/src/components/common/LearnMoreLink.d.ts +7 -0
- package/dist/src/components/common/LearnMoreLink.d.ts.map +1 -0
- package/dist/src/components/common/LearnMoreLink.js +13 -0
- package/dist/src/components/common/LearnMoreLink.js.map +1 -0
- package/dist/src/components/common/PageWithPermissions.d.ts +7 -0
- package/dist/src/components/common/PageWithPermissions.d.ts.map +1 -0
- package/dist/src/components/common/PageWithPermissions.js +17 -0
- package/dist/src/components/common/PageWithPermissions.js.map +1 -0
- package/dist/src/components/form/FilterSelect.d.ts +2 -4
- package/dist/src/components/form/FilterSelect.d.ts.map +1 -1
- package/dist/src/components/form/FilterSelect.js.map +1 -1
- package/dist/src/components/form/FlightCtlForm.css +3 -0
- package/dist/src/components/form/FlightCtlForm.d.ts +1 -0
- package/dist/src/components/form/FlightCtlForm.d.ts.map +1 -1
- package/dist/src/components/form/FlightCtlForm.js +2 -1
- package/dist/src/components/form/FlightCtlForm.js.map +1 -1
- package/dist/src/components/form/FormSelect.d.ts +1 -0
- package/dist/src/components/form/FormSelect.d.ts.map +1 -1
- package/dist/src/components/form/FormSelect.js +14 -2
- package/dist/src/components/form/FormSelect.js.map +1 -1
- package/dist/src/components/form/LabelsField.d.ts +2 -1
- package/dist/src/components/form/LabelsField.d.ts.map +1 -1
- package/dist/src/components/form/LabelsField.js +6 -6
- package/dist/src/components/form/LabelsField.js.map +1 -1
- package/dist/src/components/form/validations.d.ts +13 -2
- package/dist/src/components/form/validations.d.ts.map +1 -1
- package/dist/src/components/form/validations.js +39 -24
- 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 +2 -5
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js.map +1 -1
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.d.ts +2 -1
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.d.ts.map +1 -1
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.js +4 -4
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.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 +2 -3
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.d.ts +1 -1
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.d.ts.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.js +6 -5
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.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/useAccessReview.d.ts +4 -0
- package/dist/src/hooks/useAccessReview.d.ts.map +1 -0
- package/dist/src/hooks/useAccessReview.js +33 -0
- package/dist/src/hooks/useAccessReview.js.map +1 -0
- package/dist/src/hooks/useAppContext.d.ts +4 -3
- package/dist/src/hooks/useAppContext.d.ts.map +1 -1
- package/dist/src/hooks/useAppContext.js +2 -2
- package/dist/src/hooks/useAppContext.js.map +1 -1
- package/dist/src/hooks/useFetch.d.ts +4 -2
- package/dist/src/hooks/useFetch.d.ts.map +1 -1
- package/dist/src/hooks/useFetchPeriodically.d.ts +1 -1
- package/dist/src/hooks/useFetchPeriodically.d.ts.map +1 -1
- package/dist/src/hooks/useFetchPeriodically.js +4 -1
- package/dist/src/hooks/useFetchPeriodically.js.map +1 -1
- package/dist/src/hooks/useFleetImportAccessReview.d.ts +3 -0
- package/dist/src/hooks/useFleetImportAccessReview.d.ts.map +1 -0
- package/dist/src/hooks/useFleetImportAccessReview.js +12 -0
- package/dist/src/hooks/useFleetImportAccessReview.js.map +1 -0
- package/dist/src/hooks/useTablePagination.d.ts +10 -0
- package/dist/src/hooks/useTablePagination.d.ts.map +1 -0
- package/dist/src/hooks/useTablePagination.js +33 -0
- package/dist/src/hooks/useTablePagination.js.map +1 -0
- package/dist/src/hooks/useWebSocket.d.ts +2 -2
- package/dist/src/hooks/useWebSocket.d.ts.map +1 -1
- 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 -0
- package/dist/src/links.js +6 -0
- package/dist/src/links.js.map +1 -0
- package/dist/src/types/rbac.d.ts +18 -0
- package/dist/src/types/rbac.d.ts.map +1 -0
- package/dist/src/types/rbac.js +23 -0
- package/dist/src/types/rbac.js.map +1 -0
- package/dist/src/utils/api.d.ts +3 -3
- package/dist/src/utils/api.d.ts.map +1 -1
- package/dist/src/utils/api.js.map +1 -1
- package/dist/src/utils/labels.d.ts +1 -1
- package/dist/src/utils/labels.d.ts.map +1 -1
- package/dist/src/utils/labels.js +4 -8
- package/dist/src/utils/labels.js.map +1 -1
- package/dist/src/utils/query.d.ts +9 -0
- package/dist/src/utils/query.d.ts.map +1 -1
- package/dist/src/utils/query.js +33 -1
- package/dist/src/utils/query.js.map +1 -1
- package/dist/src/utils/search.d.ts +1 -0
- package/dist/src/utils/search.d.ts.map +1 -1
- package/dist/src/utils/search.js +7 -7
- package/dist/src/utils/search.js.map +1 -1
- package/package.json +5 -5
- package/src/components/DetailsPage/Tables/ApplicationsTable.css +7 -0
- package/src/components/DetailsPage/Tables/ApplicationsTable.tsx +150 -13
- package/src/components/Device/AddDeviceModal/AddDeviceModal.tsx +31 -132
- package/src/components/Device/DeviceDetails/DeviceApplications.tsx +102 -0
- package/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx +33 -16
- package/src/components/Device/DeviceDetails/DeviceDetailsTab.tsx +8 -38
- package/src/components/Device/DeviceDetails/TerminalTab.tsx +21 -4
- package/src/components/Device/DevicesPage/DeviceFilterSelect.tsx +13 -34
- package/src/components/Device/DevicesPage/DeviceTableRow.tsx +21 -9
- package/src/components/Device/DevicesPage/DeviceTableToolbar.tsx +0 -7
- package/src/components/Device/DevicesPage/DeviceToolbarFilters.tsx +93 -40
- package/src/components/Device/DevicesPage/DevicesPage.tsx +64 -58
- package/src/components/Device/DevicesPage/types.ts +1 -13
- package/src/components/Device/DevicesPage/useDevices.ts +19 -38
- package/src/components/Device/EditDeviceWizard/EditDeviceWizard.tsx +24 -4
- package/src/components/Device/EditDeviceWizard/deviceSpecUtils.ts +156 -47
- package/src/components/Device/EditDeviceWizard/steps/{ApplicationsForm.tsx → ApplicationTemplates.tsx} +89 -53
- package/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.tsx +22 -26
- package/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx +17 -12
- package/src/components/Device/EditDeviceWizard/steps/{ConfigTemplateForm.tsx → ConfigurationTemplates.tsx} +110 -52
- package/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.tsx +108 -11
- package/src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.tsx +19 -0
- package/src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.tsx +75 -0
- package/src/components/Device/EditDeviceWizard/types.ts +3 -0
- package/src/components/Device/EditDeviceWizard/utils.ts +14 -4
- package/src/components/Device/{MatchPatternsModal/MatchPatternsModal.tsx → SystemdUnitsModal/SystemdUnitsModal.tsx} +36 -19
- package/src/components/Device/SystemdUnitsModal/TrackSystemdUnitsForm.tsx +114 -0
- package/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.tsx +28 -9
- package/src/components/{Device/DevicesPage → EnrollmentRequest}/EnrollmentRequestList.tsx +57 -48
- package/src/components/EnrollmentRequest/EnrollmentRequestTableRow.tsx +28 -17
- package/src/components/{Device/DevicesPage → EnrollmentRequest}/EnrollmentRequestTableToolbar.tsx +3 -2
- package/src/components/EnrollmentRequest/useEnrollmentRequests.ts +63 -0
- package/src/components/Fleet/CreateFleet/CreateFleetWizard.tsx +28 -2
- package/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.tsx +2 -5
- package/src/components/Fleet/CreateFleet/steps/ReviewStep.tsx +7 -0
- package/src/components/Fleet/CreateFleet/utils.ts +101 -49
- package/src/components/Fleet/FleetDetails/FleetDetails.tsx +57 -36
- package/src/components/Fleet/FleetResourceSyncs.tsx +53 -41
- package/src/components/Fleet/FleetRow.tsx +28 -16
- package/src/components/Fleet/FleetsPage.tsx +63 -53
- package/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.tsx +16 -3
- package/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.tsx +25 -19
- package/src/components/Fleet/useFleets.ts +40 -22
- package/src/components/OverviewPage/Cards/Status/StatusCard.tsx +5 -18
- package/src/components/OverviewPage/Cards/Status/StatusCardFilters.tsx +0 -7
- package/src/components/OverviewPage/Overview.tsx +20 -8
- package/src/components/Repository/CreateRepository/CreateRepository.tsx +25 -9
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx +5 -2
- package/src/components/Repository/CreateRepository/utils.ts +23 -7
- package/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.tsx +5 -3
- package/src/components/Repository/RepositoryDetails/RepositoryDetails.tsx +32 -10
- package/src/components/Repository/RepositoryList.tsx +113 -71
- package/src/components/Repository/useRepositories.ts +59 -0
- package/src/components/ResourceSync/RepositoryResourceSyncList.tsx +41 -40
- package/src/components/Table/Table.tsx +3 -4
- package/src/components/Table/TablePagination.tsx +74 -0
- package/src/components/Terminal/Terminal.tsx +1 -0
- package/src/components/common/AccessDenied.tsx +17 -0
- package/src/components/common/ButtonWithPermissions.tsx +14 -0
- package/src/components/common/LearnMoreLink.tsx +26 -0
- package/src/components/common/PageWithPermissions.tsx +19 -0
- package/src/components/form/FilterSelect.tsx +2 -4
- package/src/components/form/FlightCtlForm.css +3 -0
- package/src/components/form/FlightCtlForm.tsx +3 -1
- package/src/components/form/FormSelect.tsx +22 -2
- package/src/components/form/LabelsField.tsx +17 -13
- package/src/components/form/validations.ts +53 -25
- package/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.tsx +2 -5
- package/src/components/modals/EditLabelsModal/EditLabelsForm.tsx +9 -4
- package/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.tsx +2 -4
- package/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.tsx +8 -5
- package/src/constants.ts +2 -1
- package/src/hooks/useAccessReview.ts +33 -0
- package/src/hooks/useAppContext.tsx +6 -5
- package/src/hooks/useFetchPeriodically.ts +4 -0
- package/src/hooks/useFleetImportAccessReview.ts +8 -0
- package/src/hooks/useTablePagination.tsx +44 -0
- package/src/hooks/useWebSocket.ts +4 -4
- package/src/links.ts +5 -0
- package/src/types/rbac.ts +18 -0
- package/src/utils/api.ts +3 -3
- package/src/utils/labels.ts +3 -7
- package/src/utils/query.ts +41 -0
- package/src/utils/search.ts +1 -1
- package/dist/src/components/DetailsPage/Tables/SystemdDetailsTable.d.ts +0 -12
- package/dist/src/components/DetailsPage/Tables/SystemdDetailsTable.d.ts.map +0 -1
- package/dist/src/components/DetailsPage/Tables/SystemdDetailsTable.js +0 -40
- package/dist/src/components/DetailsPage/Tables/SystemdDetailsTable.js.map +0 -1
- package/dist/src/components/Device/DeviceDetails/SystemdTable.d.ts +0 -10
- package/dist/src/components/Device/DeviceDetails/SystemdTable.d.ts.map +0 -1
- package/dist/src/components/Device/DeviceDetails/SystemdTable.js +0 -38
- package/dist/src/components/Device/DeviceDetails/SystemdTable.js.map +0 -1
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.d.ts +0 -6
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.d.ts.map +0 -1
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.js.map +0 -1
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.d.ts.map +0 -1
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.js.map +0 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.d.ts +0 -5
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.d.ts.map +0 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.js.map +0 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.d.ts +0 -4
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.d.ts.map +0 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.js.map +0 -1
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsForm.d.ts +0 -11
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsForm.d.ts.map +0 -1
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsForm.js +0 -39
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsForm.js.map +0 -1
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsModal.d.ts.map +0 -1
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsModal.js.map +0 -1
- package/dist/src/components/common/HelperTextItems.d.ts +0 -3
- package/dist/src/components/common/HelperTextItems.d.ts.map +0 -1
- package/dist/src/components/common/HelperTextItems.js +0 -17
- package/dist/src/components/common/HelperTextItems.js.map +0 -1
- package/dist/src/hooks/useApiTableSort.d.ts +0 -8
- package/dist/src/hooks/useApiTableSort.d.ts.map +0 -1
- package/dist/src/hooks/useApiTableSort.js +0 -44
- package/dist/src/hooks/useApiTableSort.js.map +0 -1
- package/dist/src/hooks/useTableSort.d.ts +0 -7
- package/dist/src/hooks/useTableSort.d.ts.map +0 -1
- package/dist/src/hooks/useTableSort.js +0 -38
- package/dist/src/hooks/useTableSort.js.map +0 -1
- package/dist/src/utils/sort/generic.d.ts +0 -5
- package/dist/src/utils/sort/generic.d.ts.map +0 -1
- package/dist/src/utils/sort/generic.js +0 -10
- package/dist/src/utils/sort/generic.js.map +0 -1
- package/dist/src/utils/sort/repository.d.ts +0 -6
- package/dist/src/utils/sort/repository.d.ts.map +0 -1
- package/dist/src/utils/sort/repository.js +0 -28
- package/dist/src/utils/sort/repository.js.map +0 -1
- package/dist/src/utils/sort/resourceSync.d.ts +0 -6
- package/dist/src/utils/sort/resourceSync.d.ts.map +0 -1
- package/dist/src/utils/sort/resourceSync.js +0 -29
- package/dist/src/utils/sort/resourceSync.js.map +0 -1
- package/src/components/DetailsPage/Tables/SystemdDetailsTable.tsx +0 -63
- package/src/components/Device/DeviceDetails/SystemdTable.tsx +0 -65
- package/src/components/Device/MatchPatternsModal/MatchPatternsForm.tsx +0 -92
- package/src/components/common/HelperTextItems.tsx +0 -25
- package/src/hooks/useApiTableSort.ts +0 -49
- package/src/hooks/useTableSort.ts +0 -42
- package/src/utils/sort/generic.ts +0 -8
- package/src/utils/sort/repository.ts +0 -28
- package/src/utils/sort/resourceSync.ts +0 -30
|
@@ -6,21 +6,58 @@ 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
|
+
const links_1 = require("../../../../links");
|
|
9
11
|
const useTranslation_1 = require("../../../../hooks/useTranslation");
|
|
10
12
|
const WithHelperText_1 = tslib_1.__importDefault(require("../../../common/WithHelperText"));
|
|
13
|
+
const LearnMoreLink_1 = tslib_1.__importDefault(require("../../../common/LearnMoreLink"));
|
|
11
14
|
const TextField_1 = tslib_1.__importDefault(require("../../../form/TextField"));
|
|
12
15
|
const FlightCtlForm_1 = tslib_1.__importDefault(require("../../../form/FlightCtlForm"));
|
|
13
|
-
const
|
|
14
|
-
const
|
|
16
|
+
const ConfigurationTemplates_1 = tslib_1.__importDefault(require("./ConfigurationTemplates"));
|
|
17
|
+
const ApplicationTemplates_1 = tslib_1.__importDefault(require("./ApplicationTemplates"));
|
|
18
|
+
const SystemdUnitsForm_1 = tslib_1.__importDefault(require("./SystemdUnitsForm"));
|
|
19
|
+
const CheckboxField_1 = tslib_1.__importDefault(require("../../../form/CheckboxField"));
|
|
20
|
+
const useFetchPeriodically_1 = require("../../../../hooks/useFetchPeriodically");
|
|
21
|
+
const useAppContext_1 = require("../../../../hooks/useAppContext");
|
|
22
|
+
const deviceSpecUtils_1 = require("../deviceSpecUtils");
|
|
15
23
|
exports.deviceTemplateStepId = 'device-template';
|
|
16
|
-
const isDeviceTemplateStepValid = (errors) =>
|
|
17
|
-
return !errors.osImage && !errors.configTemplates && !errors.applications;
|
|
18
|
-
};
|
|
24
|
+
const isDeviceTemplateStepValid = (errors) => !errors.osImage && !errors.configTemplates && !errors.applications && !errors.systemdUnits;
|
|
19
25
|
exports.isDeviceTemplateStepValid = isDeviceTemplateStepValid;
|
|
20
|
-
const templateOption1 = '{{
|
|
21
|
-
const templateOption2 = '{{
|
|
22
|
-
const exampleCode = `/device-configs/
|
|
26
|
+
const templateOption1 = '{{ .metadata.labels.key }}';
|
|
27
|
+
const templateOption2 = '{{ .metadata.name }}';
|
|
28
|
+
const exampleCode = `/device-configs/deployment-sites/site-{{ .metadata.labels.site }}`;
|
|
29
|
+
const MicroShiftCheckbox = ({ isFleet }) => {
|
|
30
|
+
const { initialValues } = (0, formik_1.useFormikContext)();
|
|
31
|
+
const { t } = (0, useTranslation_1.useTranslation)();
|
|
32
|
+
const [repo, loading, error] = (0, useFetchPeriodically_1.useFetchPeriodically)({
|
|
33
|
+
endpoint: `repositories/${deviceSpecUtils_1.ACM_REPO_NAME}`,
|
|
34
|
+
});
|
|
35
|
+
if (loading) {
|
|
36
|
+
return React.createElement(react_core_1.Spinner, { size: "sm" });
|
|
37
|
+
}
|
|
38
|
+
const isDisabled = !initialValues.registerMicroShift && (!repo || !!error);
|
|
39
|
+
return (React.createElement(React.Fragment, null,
|
|
40
|
+
React.createElement(react_core_1.FormGroup, null,
|
|
41
|
+
React.createElement(CheckboxField_1.default, { name: "registerMicroShift", label: isFleet ? (React.createElement(React.Fragment, null,
|
|
42
|
+
t('Register all MicroShift devices to ACM'),
|
|
43
|
+
React.createElement(WithHelperText_1.default, { ariaLabel: "MicroShift registration", content: React.createElement(React.Fragment, null,
|
|
44
|
+
t('Select this when all the devices in the fleet are running MicroShift and you want to register them to ACM.'),
|
|
45
|
+
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,
|
|
47
|
+
t('Register this MicroShift device to ACM'),
|
|
48
|
+
React.createElement(WithHelperText_1.default, { ariaLabel: "MicroShift registration", content: React.createElement(React.Fragment, null,
|
|
49
|
+
t('Select this when the device is running MicroShift and you want to register it to ACM.'),
|
|
50
|
+
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 })),
|
|
52
|
+
isDisabled && (React.createElement(react_core_1.FormGroup, null,
|
|
53
|
+
React.createElement(react_core_1.Alert, { variant: "warning", title: t(`'${deviceSpecUtils_1.ACM_REPO_NAME}' repository not found.`), isInline: true },
|
|
54
|
+
React.createElement(react_i18next_1.Trans, { t: t },
|
|
55
|
+
"To re-create the repository,",
|
|
56
|
+
' ',
|
|
57
|
+
React.createElement(react_core_1.Button, { component: "a", variant: "link", isInline: true, href: "https://github.com/flightctl/flightctl/blob/main/docs/user/registering-microshift-devices-acm.md#creating-repositories-in-flight-control", target: "_blank", icon: React.createElement(external_link_alt_icon_1.ExternalLinkAltIcon, null), iconPosition: "end" }, "View documentation")))))));
|
|
58
|
+
};
|
|
23
59
|
const DeviceTemplateStep = ({ isFleet }) => {
|
|
60
|
+
const { appType } = (0, useAppContext_1.useAppContext)();
|
|
24
61
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
25
62
|
const { values } = (0, formik_1.useFormikContext)();
|
|
26
63
|
return (React.createElement(react_core_1.Grid, { span: 8 },
|
|
@@ -33,15 +70,19 @@ const DeviceTemplateStep = ({ isFleet }) => {
|
|
|
33
70
|
React.createElement("strong", null, templateOption2),
|
|
34
71
|
" 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:"),
|
|
35
72
|
React.createElement(react_core_1.CodeBlock, { className: "pf-v5-u-mt-md" },
|
|
36
|
-
React.createElement(react_core_1.CodeBlockCode, null, exampleCode))
|
|
73
|
+
React.createElement(react_core_1.CodeBlockCode, null, exampleCode)),
|
|
74
|
+
React.createElement(LearnMoreLink_1.default, { link: links_1.USING_TEMPLATE_VARIABLES_LINK }))),
|
|
37
75
|
React.createElement(react_core_1.FormGroup, { label: React.createElement(WithHelperText_1.default, { ariaLabel: t('System image'), content: isFleet
|
|
38
76
|
? t("The target system image for this fleet's devices.")
|
|
39
77
|
: t('The target system image for this device.'), showLabel: true }) },
|
|
40
|
-
React.createElement(TextField_1.default, { name: "osImage", "aria-label": t('System image'), value: values.osImage, helperText: t('Must be
|
|
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 (e.g. "quay.io/<my-org>/my-rhel-with-fc-agent:<version>"). When left empty, the device\'s existing OS will be kept unchanged.') })),
|
|
41
79
|
React.createElement(react_core_1.FormGroup, null,
|
|
42
|
-
React.createElement(
|
|
80
|
+
React.createElement(ConfigurationTemplates_1.default, null)),
|
|
43
81
|
React.createElement(react_core_1.FormGroup, null,
|
|
44
|
-
React.createElement(
|
|
82
|
+
React.createElement(ApplicationTemplates_1.default, null)),
|
|
83
|
+
isFleet && (React.createElement(react_core_1.FormGroup, { label: t('Tracked systemd services') },
|
|
84
|
+
React.createElement(SystemdUnitsForm_1.default, null))),
|
|
85
|
+
appType === 'ocp' && React.createElement(MicroShiftCheckbox, { isFleet: isFleet }))));
|
|
45
86
|
};
|
|
46
87
|
exports.default = DeviceTemplateStep;
|
|
47
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.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,uDAA2G;AAC3G,mCAAwD;AACxD,iDAAsC;AAEtC,yGAAmG;AAEnG,6CAAkE;AAClE,qEAAkE;AAClE,4FAA4D;AAC5D,0FAA0D;AAC1D,gFAAgD;AAChD,wFAAwD;AAExD,8FAA8D;AAC9D,0FAAsD;AACtD,kFAAkD;AAClD,wFAAwD;AACxD,iFAA8E;AAC9E,mEAAgE;AAChE,wDAAmD;AAEtC,QAAA,oBAAoB,GAAG,iBAAiB,CA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,oCAAS,eAAe,CAAU;mLAG1F;gBACR,oBAAC,sBAAS,IAAC,SAAS,EAAC,eAAe;oBAClC,oBAAC,0BAAa,QAAE,WAAW,CAAiB,CAClC;gBACZ,oBAAC,uBAAa,IAAC,IAAI,EAAE,qCAA6B,GAAI,CAChD,CACT;YACD,oBAAC,sBAAS,IACR,KAAK,EACH,oBAAC,wBAAc,IACb,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,EAC5B,OAAO,EACL,OAAO;wBACL,CAAC,CAAC,CAAC,CAAC,mDAAmD,CAAC;wBACxD,CAAC,CAAC,CAAC,CAAC,0CAA0C,CAAC,EAEnD,SAAS,SACT;gBAGJ,oBAAC,mBAAS,IACR,IAAI,EAAC,SAAS,gBACF,CAAC,CAAC,cAAc,CAAC,EAC7B,KAAK,EAAE,MAAM,CAAC,OAAO,EACrB,UAAU,EAAE,CAAC,CACX,iLAAiL,CAClL,GACD,CACQ;YACZ,oBAAC,sBAAS;gBACR,oBAAC,gCAAsB,OAAG,CAChB;YACZ,oBAAC,sBAAS;gBACR,oBAAC,8BAAgB,OAAG,CACV;YACX,OAAO,IAAI,CACV,oBAAC,sBAAS,IAAC,KAAK,EAAE,CAAC,CAAC,0BAA0B,CAAC;gBAC7C,oBAAC,0BAAgB,OAAG,CACV,CACb;YACA,OAAO,KAAK,KAAK,IAAI,oBAAC,kBAAkB,IAAC,OAAO,EAAE,OAAO,GAAI,CAChD,CACX,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SystemdUnitFormValue } from '../../SystemdUnitsModal/TrackSystemdUnitsForm';
|
|
3
|
+
declare const ReviewTrackedSystemdServices: ({ systemdUnits }: {
|
|
4
|
+
systemdUnits: SystemdUnitFormValue[];
|
|
5
|
+
}) => React.JSX.Element | "-";
|
|
6
|
+
export default ReviewTrackedSystemdServices;
|
|
7
|
+
//# sourceMappingURL=ReviewTrackedSystemdServices.d.ts.map
|
package/dist/src/components/Device/EditDeviceWizard/steps/ReviewTrackedSystemdServices.d.ts.map
ADDED
|
@@ -0,0 +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,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAErF,QAAA,MAAM,4BAA4B;kBAAsC,oBAAoB,EAAE;6BAY7F,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
6
|
+
const ReviewTrackedSystemdServices = ({ systemdUnits }) => {
|
|
7
|
+
if (systemdUnits.length === 0) {
|
|
8
|
+
return '-';
|
|
9
|
+
}
|
|
10
|
+
return (react_1.default.createElement(react_core_1.LabelGroup, null, systemdUnits.map((systemD, index) => (react_1.default.createElement(react_core_1.Label, { key: `${systemD.pattern}_${index}` }, systemD.pattern)))));
|
|
11
|
+
};
|
|
12
|
+
exports.default = ReviewTrackedSystemdServices;
|
|
13
|
+
//# sourceMappingURL=ReviewTrackedSystemdServices.js.map
|
|
@@ -0,0 +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,EAA4C,EAAE,EAAE;IAClG,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"}
|
|
@@ -0,0 +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;AAU/B,QAAA,MAAM,gBAAgB,yBA8DrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const React = tslib_1.__importStar(require("react"));
|
|
5
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
6
|
+
const formik_1 = require("formik");
|
|
7
|
+
const useTranslation_1 = require("../../../../hooks/useTranslation");
|
|
8
|
+
const FieldHelperText_1 = tslib_1.__importDefault(require("../../../form/FieldHelperText"));
|
|
9
|
+
const EditableLabelControl_1 = tslib_1.__importDefault(require("../../../common/EditableLabelControl"));
|
|
10
|
+
const SystemdUnitsForm = () => {
|
|
11
|
+
const { t } = (0, useTranslation_1.useTranslation)();
|
|
12
|
+
const { values, setFieldValue, errors } = (0, formik_1.useFormikContext)();
|
|
13
|
+
const onAdd = (text) => {
|
|
14
|
+
void setFieldValue('systemdUnits', values.systemdUnits.concat({
|
|
15
|
+
pattern: text,
|
|
16
|
+
exists: false,
|
|
17
|
+
}));
|
|
18
|
+
};
|
|
19
|
+
const onEdit = (editIndex, text) => {
|
|
20
|
+
void setFieldValue('systemdUnits', values.systemdUnits.map((systemdUnit, index) => {
|
|
21
|
+
if (index === editIndex) {
|
|
22
|
+
return { pattern: text, exists: systemdUnit.exists };
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
return systemdUnit;
|
|
26
|
+
}
|
|
27
|
+
}));
|
|
28
|
+
};
|
|
29
|
+
const removeLabel = (removeIndex) => {
|
|
30
|
+
void setFieldValue('systemdUnits', values.systemdUnits.filter((_, index) => index !== removeIndex));
|
|
31
|
+
};
|
|
32
|
+
const textError = typeof errors.systemdUnits === 'string' ? errors.systemdUnits : undefined;
|
|
33
|
+
return (React.createElement(React.Fragment, null,
|
|
34
|
+
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)))),
|
|
35
|
+
React.createElement(FieldHelperText_1.default, { error: textError })));
|
|
36
|
+
};
|
|
37
|
+
exports.default = SystemdUnitsForm;
|
|
38
|
+
//# sourceMappingURL=SystemdUnitsForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SystemdUnitsForm.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/steps/SystemdUnitsForm.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAA2D;AAC3D,mCAA0C;AAG1C,qEAAkE;AAElE,4FAA4D;AAC5D,wGAAwE;AAExE,MAAM,gBAAgB,GAAG,GAAG,EAAE;IAC5B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC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SACV,IAGH,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CAC3C,oBAAC,kBAAK,IACJ,GAAG,EAAE,GAAG,OAAO,CAAC,OAAO,IAAI,KAAK,EAAE,EAClC,UAAU,QACV,cAAc,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,EACtD,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,IAEhC,OAAO,CAAC,OAAO,CACV,CACT,CAAC,CACS;QACb,oBAAC,yBAAe,IAAC,KAAK,EAAE,SAAS,GAAI,CACpC,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,gBAAgB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApplicationSpec } from '@flightctl/types';
|
|
2
2
|
import { FlightCtlLabel } from '../../../types/extraTypes';
|
|
3
3
|
import { SpecConfigTemplate } from '../../../types/deviceSpec';
|
|
4
|
+
import { SystemdUnitFormValue } from '../SystemdUnitsModal/TrackSystemdUnitsForm';
|
|
4
5
|
export type ApplicationFormSpec = Omit<ApplicationSpec, 'envVars'> & {
|
|
5
6
|
variables: {
|
|
6
7
|
name: string;
|
|
@@ -11,6 +12,8 @@ export type DeviceSpecConfigFormValues = {
|
|
|
11
12
|
osImage?: string;
|
|
12
13
|
configTemplates: SpecConfigTemplate[];
|
|
13
14
|
applications: ApplicationFormSpec[];
|
|
15
|
+
systemdUnits: SystemdUnitFormValue[];
|
|
16
|
+
registerMicroShift: boolean;
|
|
14
17
|
};
|
|
15
18
|
export type EditDeviceFormValues = DeviceSpecConfigFormValues & {
|
|
16
19
|
deviceAlias: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Device/EditDeviceWizard/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Device/EditDeviceWizard/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,GAAG;IACnE,SAAS,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,kBAAkB,EAAE,CAAC;IACtC,YAAY,EAAE,mBAAmB,EAAE,CAAC;IACpC,YAAY,EAAE,oBAAoB,EAAE,CAAC;IACrC,kBAAkB,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,0BAA0B,GAAG;IAC9D,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -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;AAU3B,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,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;AAU3B,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAS/C,eAAO,MAAM,mBAAmB,MAAO,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAS7C,CAAC;AAEJ,eAAO,MAAM,gBAAgB,kBAAmB,MAAM,iBAAiB,oBAAoB,iBAwD1F,CAAC"}
|
|
@@ -8,7 +8,7 @@ const patch_1 = require("../../../utils/patch");
|
|
|
8
8
|
const deviceSpecUtils_1 = require("./deviceSpecUtils");
|
|
9
9
|
const getValidationSchema = (t) => Yup.lazy(() => Yup.object({
|
|
10
10
|
deviceAlias: (0, validations_1.validKubernetesLabelValue)(t, { isRequired: false, fieldName: t('Alias') }),
|
|
11
|
-
osImage: (0, validations_1.
|
|
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),
|
|
@@ -19,7 +19,7 @@ const getDevicePatches = (currentDevice, updatedDevice) => {
|
|
|
19
19
|
let allPatches = [];
|
|
20
20
|
// Device labels
|
|
21
21
|
const currentLabels = currentDevice.metadata.labels || {};
|
|
22
|
-
const updatedLabels = updatedDevice.labels
|
|
22
|
+
const updatedLabels = [...updatedDevice.labels];
|
|
23
23
|
if (updatedDevice.deviceAlias) {
|
|
24
24
|
updatedLabels.push({ key: 'alias', value: updatedDevice.deviceAlias });
|
|
25
25
|
}
|
|
@@ -56,6 +56,9 @@ const getDevicePatches = (currentDevice, updatedDevice) => {
|
|
|
56
56
|
// Configurations
|
|
57
57
|
const currentConfigs = ((_c = currentDevice.spec) === null || _c === void 0 ? void 0 : _c.config) || [];
|
|
58
58
|
const newConfigs = updatedDevice.configTemplates.map(deviceSpecUtils_1.getAPIConfig);
|
|
59
|
+
if (updatedDevice.registerMicroShift) {
|
|
60
|
+
newConfigs.push(deviceSpecUtils_1.ACMCrdConfig, deviceSpecUtils_1.ACMImportConfig, deviceSpecUtils_1.MicroshiftRegistrationHook);
|
|
61
|
+
}
|
|
59
62
|
const configPatches = (0, deviceSpecUtils_1.getDeviceSpecConfigPatches)(currentConfigs, newConfigs, '/spec/config');
|
|
60
63
|
allPatches = allPatches.concat(configPatches);
|
|
61
64
|
// Applications
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/components/Device/EditDeviceWizard/utils.ts"],"names":[],"mappings":";;;;AACA,iDAA2B;AAE3B,wDAMgC;AAChC,gDAA+F;AAG/F,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/components/Device/EditDeviceWizard/utils.ts"],"names":[],"mappings":";;;;AACA,iDAA2B;AAE3B,wDAMgC;AAChC,gDAA+F;AAG/F,uDAM2B;AAEpB,MAAM,mBAAmB,GAAG,CAAC,CAAY,EAAE,EAAE,CAClD,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CACZ,GAAG,CAAC,MAAM,CAAC;IACT,WAAW,EAAE,IAAA,uCAAyB,EAAC,CAAC,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACvF,OAAO,EAAE,IAAA,0BAAY,EAAC,CAAC,EAAE,EAAE,OAAO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
|
4
|
-
|
|
2
|
+
import { Device } from '@flightctl/types';
|
|
3
|
+
type SystemdUnitsModalProps = {
|
|
4
|
+
onClose: (hasChanges?: boolean, addedSystemdUnits?: string[]) => void;
|
|
5
5
|
device: Device;
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
@@ -12,6 +12,6 @@ type MatchPatternsModalProps = {
|
|
|
12
12
|
* @param device FlightCtl device
|
|
13
13
|
* @param onClose on close callback
|
|
14
14
|
*/
|
|
15
|
-
declare const
|
|
16
|
-
export default
|
|
17
|
-
//# sourceMappingURL=
|
|
15
|
+
declare const SystemdUnitsModal: React.FC<SystemdUnitsModalProps>;
|
|
16
|
+
export default SystemdUnitsModal;
|
|
17
|
+
//# sourceMappingURL=SystemdUnitsModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,CAmDvD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_core_1 = require("@patternfly/react-core");
|
|
5
|
-
const formik_1 = require("formik");
|
|
6
4
|
const React = tslib_1.__importStar(require("react"));
|
|
7
|
-
const
|
|
5
|
+
const formik_1 = require("formik");
|
|
6
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
8
7
|
const useFetch_1 = require("../../../hooks/useFetch");
|
|
8
|
+
const useTranslation_1 = require("../../../hooks/useTranslation");
|
|
9
9
|
const error_1 = require("../../../utils/error");
|
|
10
10
|
const patch_1 = require("../../../utils/patch");
|
|
11
|
-
const useTranslation_1 = require("../../../hooks/useTranslation");
|
|
12
11
|
const validations_1 = require("../../form/validations");
|
|
12
|
+
const TrackSystemdUnitsForm_1 = tslib_1.__importDefault(require("./TrackSystemdUnitsForm"));
|
|
13
13
|
/**
|
|
14
14
|
* Modal for editing the Systemd units matchPatterns of a Device.
|
|
15
15
|
* This operation is only supported for devices that are NOT bound to fleets, in which case
|
|
@@ -18,29 +18,42 @@ const validations_1 = require("../../form/validations");
|
|
|
18
18
|
* @param device FlightCtl device
|
|
19
19
|
* @param onClose on close callback
|
|
20
20
|
*/
|
|
21
|
-
const
|
|
21
|
+
const SystemdUnitsModal = ({ onClose, device }) => {
|
|
22
22
|
var _a, _b;
|
|
23
23
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
24
24
|
const { patch } = (0, useFetch_1.useFetch)();
|
|
25
25
|
const [error, setError] = React.useState();
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
const currentSystemdUnits = (((_b = (_a = device.spec) === null || _a === void 0 ? void 0 : _a.systemd) === null || _b === void 0 ? void 0 : _b.matchPatterns) || []).map((p) => ({
|
|
27
|
+
pattern: p,
|
|
28
|
+
exists: true,
|
|
29
|
+
}));
|
|
30
|
+
return (React.createElement(react_core_1.Modal, { title: t('Track systemd services'), isOpen: true, onClose: () => onClose(), variant: "small" },
|
|
31
|
+
React.createElement(formik_1.Formik, { validationSchema: (0, validations_1.deviceSystemdUnitsValidationSchema)(t), initialValues: { systemdUnits: currentSystemdUnits }, onSubmit: ({ systemdUnits: updatedSystemdUnits }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
29
32
|
try {
|
|
30
|
-
const
|
|
33
|
+
const currentPatterns = currentSystemdUnits.map((p) => p.pattern);
|
|
34
|
+
const updatedPatterns = updatedSystemdUnits.map((p) => p.pattern);
|
|
35
|
+
const patches = (0, patch_1.getStringListPatches)('/spec/systemd', currentPatterns, updatedPatterns, (value) => ({
|
|
31
36
|
matchPatterns: value,
|
|
32
|
-
});
|
|
33
|
-
const patches = (0, patch_1.getStringListPatches)('/spec/systemd', currentPatterns, updatedPatterns, patternPatchBuilder);
|
|
37
|
+
}));
|
|
34
38
|
if (patches.length > 0) {
|
|
35
39
|
yield patch(`devices/${device.metadata.name}`, patches);
|
|
40
|
+
const addedServices = [];
|
|
41
|
+
updatedPatterns.forEach((newSystemd) => {
|
|
42
|
+
if (!currentPatterns.includes(newSystemd)) {
|
|
43
|
+
addedServices.push(newSystemd);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
onClose(true, addedServices);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
onClose();
|
|
36
50
|
}
|
|
37
|
-
onClose(true);
|
|
38
51
|
}
|
|
39
52
|
catch (err) {
|
|
40
53
|
setError((0, error_1.getErrorMessage)(err));
|
|
41
54
|
}
|
|
42
55
|
}) },
|
|
43
|
-
React.createElement(
|
|
56
|
+
React.createElement(TrackSystemdUnitsForm_1.default, { onClose: onClose, error: error }))));
|
|
44
57
|
};
|
|
45
|
-
exports.default =
|
|
46
|
-
//# sourceMappingURL=
|
|
58
|
+
exports.default = SystemdUnitsModal;
|
|
59
|
+
//# sourceMappingURL=SystemdUnitsModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SystemdUnitsModal.js","sourceRoot":"","sources":["../../../../../src/components/Device/SystemdUnitsModal/SystemdUnitsModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,mCAAgC;AAChC,uDAA+C;AAG/C,sDAAmD;AACnD,kEAA+D;AAC/D,gDAAu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eAAe,EACf,eAAe,EACf,eAAe,EACf,CAAC,KAAe,EAAE,EAAE,CAAC,CAAC;wBACpB,aAAa,EAAE,KAAK;qBACrB,CAAC,CACH,CAAC;oBACF,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;wBACvB,MAAM,KAAK,CAAC,WAAW,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;wBAExD,MAAM,aAAa,GAAa,EAAE,CAAC;wBACnC,eAAe,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;4BACrC,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;gCAC1C,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;4BACjC,CAAC;wBACH,CAAC,CAAC,CAAC;wBAEH,OAAO,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;oBAC/B,CAAC;yBAAM,CAAC;wBACN,OAAO,EAAE,CAAC;oBACZ,CAAC;gBACH,CAAC;gBAAC,OAAO,GAAG,EAAE,CAAC;oBACb,QAAQ,CAAC,IAAA,uBAAe,EAAC,GAAG,CAAC,CAAC,CAAC;gBACjC,CAAC;YACH,CAAC,CAAA;YAED,oBAAC,+BAAqB,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAI,CAClD,CACH,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type SystemdUnitFormValue = {
|
|
3
|
+
pattern: string;
|
|
4
|
+
exists: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type SystemdUnitsFormValues = {
|
|
7
|
+
systemdUnits: SystemdUnitFormValue[];
|
|
8
|
+
};
|
|
9
|
+
export type TrackSystemdUnitsFormProps = {
|
|
10
|
+
onClose: (reload?: boolean) => void;
|
|
11
|
+
error?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const TrackSystemdUnitsForm: React.FC<TrackSystemdUnitsFormProps>;
|
|
14
|
+
export default TrackSystemdUnitsForm;
|
|
15
|
+
//# sourceMappingURL=TrackSystemdUnitsForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrackSystemdUnitsForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/Device/SystemdUnitsModal/TrackSystemdUnitsForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,YAAY,EAAE,oBAAoB,EAAE,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAwF/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const React = tslib_1.__importStar(require("react"));
|
|
5
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
6
|
+
const formik_1 = require("formik");
|
|
7
|
+
const useTranslation_1 = require("../../../hooks/useTranslation");
|
|
8
|
+
const FieldHelperText_1 = tslib_1.__importDefault(require("../../form/FieldHelperText"));
|
|
9
|
+
const FlightCtlActionGroup_1 = tslib_1.__importDefault(require("../../form/FlightCtlActionGroup"));
|
|
10
|
+
const FlightCtlForm_1 = tslib_1.__importDefault(require("../../form/FlightCtlForm"));
|
|
11
|
+
const TrackSystemdUnitsForm = ({ onClose, error }) => {
|
|
12
|
+
const { t } = (0, useTranslation_1.useTranslation)();
|
|
13
|
+
const { values, setFieldValue, submitForm, isSubmitting, errors: formErrors, } = (0, formik_1.useFormikContext)();
|
|
14
|
+
const [currentText, setCurrentText] = React.useState('');
|
|
15
|
+
const onDeleteSystemdUnit = (deleteIndex) => {
|
|
16
|
+
const newSystemdUnits = values.systemdUnits.filter((_, index) => deleteIndex !== index);
|
|
17
|
+
void setFieldValue('systemdUnits', newSystemdUnits);
|
|
18
|
+
};
|
|
19
|
+
const onAdd = () => {
|
|
20
|
+
if (currentText) {
|
|
21
|
+
const newSystemdUnits = [...values.systemdUnits, { pattern: currentText, exists: false }];
|
|
22
|
+
void setFieldValue('systemdUnits', newSystemdUnits);
|
|
23
|
+
setCurrentText('');
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const onEdit = (editIndex, nextText) => {
|
|
27
|
+
const newSystemdUnits = [...values.systemdUnits].map((systemdUnit, index) => {
|
|
28
|
+
if (index === editIndex) {
|
|
29
|
+
return { pattern: nextText, exists: false };
|
|
30
|
+
}
|
|
31
|
+
return systemdUnit;
|
|
32
|
+
});
|
|
33
|
+
void setFieldValue('systemdUnits', newSystemdUnits);
|
|
34
|
+
};
|
|
35
|
+
const textError = typeof formErrors.systemdUnits === 'string' ? formErrors.systemdUnits : undefined;
|
|
36
|
+
return (React.createElement(FlightCtlForm_1.default, null,
|
|
37
|
+
React.createElement(react_core_1.TextInput, { "aria-label": t('Systemd service name'), placeholder: t('Type here'), value: currentText, onBlur: onAdd, onKeyDown: (ev) => {
|
|
38
|
+
if (ev.key === 'Enter') {
|
|
39
|
+
onAdd();
|
|
40
|
+
}
|
|
41
|
+
}, onChange: (_ev, text) => {
|
|
42
|
+
setCurrentText(text);
|
|
43
|
+
} }),
|
|
44
|
+
React.createElement(react_core_1.LabelGroup, { numLabels: 20, defaultIsOpen: true }, values.systemdUnits.map((systemdUnit, index) => {
|
|
45
|
+
if (systemdUnit.exists) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return (React.createElement(react_core_1.Label, { key: index, id: `${index}`, onClose: () => onDeleteSystemdUnit(index), onEditCancel: (_, prevText) => onEdit(index, prevText), onEditComplete: (_, newText) => onEdit(index, newText), isEditable: true }, systemdUnit.pattern));
|
|
49
|
+
})),
|
|
50
|
+
React.createElement(FieldHelperText_1.default, { error: textError }),
|
|
51
|
+
error && React.createElement(react_core_1.Alert, { isInline: true, title: error, variant: "danger" }),
|
|
52
|
+
React.createElement(FlightCtlActionGroup_1.default, null,
|
|
53
|
+
React.createElement(react_core_1.Button, { key: "confirm", variant: "primary", onClick: submitForm, isDisabled: isSubmitting || !!textError, isLoading: isSubmitting }, t('Track services')),
|
|
54
|
+
React.createElement(react_core_1.Button, { key: "cancel", variant: "link", onClick: () => onClose(), isDisabled: isSubmitting }, t('Cancel')))));
|
|
55
|
+
};
|
|
56
|
+
exports.default = TrackSystemdUnitsForm;
|
|
57
|
+
//# sourceMappingURL=TrackSystemdUnitsForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrackSystemdUnitsForm.js","sourceRoot":"","sources":["../../../../../src/components/Device/SystemdUnitsModal/TrackSystemdUnitsForm.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAAqF;AACrF,mCAA0C;AAE1C,kEAA+D;AAC/D,yFAAyD;AACzD,mGAAmE;AACnE,qFAAqD;AAgBrD,MAAM,qBAAqB,GAAyC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;IACzF,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,EACJ,MAAM,EACN,aAAa,EACb,UAAU,EACV,YAAY,EACZ,MAAM,EAAE,UAAU,GACnB,GAAG,IAAA,yBAAgB,GAA0B,CAAC;IAC/C,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,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C,SAAS,EACjB,OAAO,EAAE,UAAU,EACnB,UAAU,EAAE,YAAY,IAAI,CAAC,CAAC,SAAS,EACvC,SAAS,EAAE,YAAY,IAEtB,CAAC,CAAC,gBAAgB,CAAC,CACb;YACT,oBAAC,mBAAM,IAAC,GAAG,EAAC,QAAQ,EAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,YAAY,IACnF,CAAC,CAAC,QAAQ,CAAC,CACL,CACY,CACT,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,qBAAqB,CAAC"}
|
package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import './EnrollmentRequestDetails.css';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const EnrollmentRequestDetailsWithPermissions: () => React.JSX.Element;
|
|
4
|
+
export default EnrollmentRequestDetailsWithPermissions;
|
|
5
5
|
//# sourceMappingURL=EnrollmentRequestDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnrollmentRequestDetails.d.ts","sourceRoot":"","sources":["../../../../../src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"EnrollmentRequestDetails.d.ts","sourceRoot":"","sources":["../../../../../src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,OAAO,gCAAgC,CAAC;AAkMxC,QAAA,MAAM,uCAAuC,yBAO5C,CAAC;AAEF,eAAe,uCAAuC,CAAC"}
|
package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js
CHANGED
|
@@ -20,6 +20,9 @@ const FlightCtlDescriptionList_1 = tslib_1.__importDefault(require("../../common
|
|
|
20
20
|
const useTranslation_1 = require("../../../hooks/useTranslation");
|
|
21
21
|
const useNavigate_1 = require("../../../hooks/useNavigate");
|
|
22
22
|
const useAppContext_1 = require("../../../hooks/useAppContext");
|
|
23
|
+
const useAccessReview_1 = require("../../../hooks/useAccessReview");
|
|
24
|
+
const rbac_1 = require("../../../types/rbac");
|
|
25
|
+
const PageWithPermissions_1 = tslib_1.__importDefault(require("../../common/PageWithPermissions"));
|
|
23
26
|
require("./EnrollmentRequestDetails.css");
|
|
24
27
|
const EnrollmentRequestDetails = () => {
|
|
25
28
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
@@ -31,6 +34,8 @@ const EnrollmentRequestDetails = () => {
|
|
|
31
34
|
});
|
|
32
35
|
const { remove } = (0, useFetch_1.useFetch)();
|
|
33
36
|
const navigate = (0, useNavigate_1.useNavigate)();
|
|
37
|
+
const [canApprove] = (0, useAccessReview_1.useAccessReview)(rbac_1.RESOURCE.ENROLLMENT_REQUEST_APPROVAL, rbac_1.VERB.POST);
|
|
38
|
+
const [canDelete] = (0, useAccessReview_1.useAccessReview)(rbac_1.RESOURCE.ENROLLMENT_REQUEST, rbac_1.VERB.DELETE);
|
|
34
39
|
const [isApprovalModalOpen, setIsApprovalModalOpen] = React.useState(false);
|
|
35
40
|
const { deleteAction, deleteModal } = (0, DetailsPageActions_1.useDeleteAction)({
|
|
36
41
|
resourceName: enrollmentRequestId,
|
|
@@ -42,10 +47,10 @@ const EnrollmentRequestDetails = () => {
|
|
|
42
47
|
});
|
|
43
48
|
const approvalStatus = er ? (0, enrollmentRequest_1.getApprovalStatus)(er) : '-';
|
|
44
49
|
const isPendingApproval = approvalStatus === enrollmentRequest_1.EnrollmentRequestStatus.Pending;
|
|
45
|
-
return (React.createElement(DetailsPage_1.default, { loading: loading, error: error, id: er === null || er === void 0 ? void 0 : er.metadata.name, resourceLink: useNavigate_1.ROUTE.DEVICES, resourceType: "Devices", resourceTypeLabel: t('Devices'), actions: React.createElement(DetailsPageActions_1.default, null,
|
|
50
|
+
return (React.createElement(DetailsPage_1.default, { loading: loading, error: error, id: er === null || er === void 0 ? void 0 : er.metadata.name, resourceLink: useNavigate_1.ROUTE.DEVICES, resourceType: "Devices", resourceTypeLabel: t('Devices'), actions: (canApprove || canApprove) && (React.createElement(DetailsPageActions_1.default, null,
|
|
46
51
|
React.createElement(react_core_1.DropdownList, null,
|
|
47
|
-
React.createElement(react_core_1.DropdownItem, { onClick: () => setIsApprovalModalOpen(true), isDisabled: !isPendingApproval }, t('Approve')),
|
|
48
|
-
deleteAction)) },
|
|
52
|
+
canApprove && (React.createElement(react_core_1.DropdownItem, { onClick: () => setIsApprovalModalOpen(true), isDisabled: !isPendingApproval }, t('Approve'))),
|
|
53
|
+
canDelete && deleteAction))) },
|
|
49
54
|
React.createElement(react_core_1.Grid, { hasGutter: true },
|
|
50
55
|
React.createElement(react_core_1.GridItem, { md: 12 },
|
|
51
56
|
React.createElement(react_core_1.Card, null,
|
|
@@ -100,5 +105,10 @@ const EnrollmentRequestDetails = () => {
|
|
|
100
105
|
} })),
|
|
101
106
|
deleteModal));
|
|
102
107
|
};
|
|
103
|
-
|
|
108
|
+
const EnrollmentRequestDetailsWithPermissions = () => {
|
|
109
|
+
const [allowed, loading] = (0, useAccessReview_1.useAccessReview)(rbac_1.RESOURCE.ENROLLMENT_REQUEST, rbac_1.VERB.GET);
|
|
110
|
+
return (React.createElement(PageWithPermissions_1.default, { allowed: allowed, loading: loading },
|
|
111
|
+
React.createElement(EnrollmentRequestDetails, null)));
|
|
112
|
+
};
|
|
113
|
+
exports.default = EnrollmentRequestDetailsWithPermissions;
|
|
104
114
|
//# sourceMappingURL=EnrollmentRequestDetails.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnrollmentRequestDetails.js","sourceRoot":"","sources":["../../../../../src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.tsx"],"names":[],"mappings":";;;AAAA,uGAAuE;AACvE,wFAAwD;AACxD,yGAAyE;AACzE,iFAAiD;AACjD,8EAA2E;AAC3E,gDAAqD;AACrD,+EAGiD;AACjD,uDAagC;AAEhC,qDAA+B;AAE/B,sDAAmD;AACnD,oHAAoF;AACpF,6FAAyF;AACzF,mGAA2F;AAC3F,2GAA2E;AAC3E,yFAAyD;AACzD,6GAAiF;AACjF,kEAA+D;AAC/D,4DAAgE;AAChE,gEAA6D;
|
|
1
|
+
{"version":3,"file":"EnrollmentRequestDetails.js","sourceRoot":"","sources":["../../../../../src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.tsx"],"names":[],"mappings":";;;AAAA,uGAAuE;AACvE,wFAAwD;AACxD,yGAAyE;AACzE,iFAAiD;AACjD,8EAA2E;AAC3E,gDAAqD;AACrD,+EAGiD;AACjD,uDAagC;AAEhC,qDAA+B;AAE/B,sDAAmD;AACnD,oHAAoF;AACpF,6FAAyF;AACzF,mGAA2F;AAC3F,2GAA2E;AAC3E,yFAAyD;AACzD,6GAAiF;AACjF,kEAA+D;AAC/D,4DAAgE;AAChE,gEAA6D;AAC7D,oEAAiE;AACjE,8CAAqD;AACrD,mGAAmE;AAEnE,0CAAwC;AAExC,MAAM,wBAAwB,GAAG,GAAG,EAAE;;IACpC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,EACJ,MAAM,EAAE,EAAE,SAAS,EAAE,GACtB,GAAG,IAAA,6BAAa,GAAE,CAAC;IACpB,MAAM,EAAE,mBAAmB,EAAE,GAAG,SAAS,EAAqC,CAAC;IAC/E,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,IAAA,2CAAoB,EAAoB;QAC5E,QAAQ,EAAE,sBAAsB,mBAAmB,EAAE;KACtD,CAAC,CA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mB,CACN,CACT,CACZ;YACA,CAAC,iBAAiB,IAAI,CACrB,oBAAC,qBAAQ,IAAC,EAAE,EAAE,CAAC;gBACb,oBAAC,yBAAe;oBACd,oBAAC,sBAAS,QAAE,CAAC,CAAC,0BAA0B,CAAC,CAAa;oBACtD,oBAAC,qCAAmB,QACjB,EAAE,IAAI,oBAAC,0BAAgB,IAAC,SAAS,EAAE,MAAA,EAAE,CAAC,IAAI,CAAC,YAAY,0CAAE,SAAS,GAAI,CACnD,CACN,CACT,CACZ,CACI;QACN,EAAE,IAAI,mBAAmB,IAAI,CAC5B,oBAAC,4BAAkB,IACjB,iBAAiB,EAAE,EAAE,EACrB,OAAO,EAAE,CAAC,UAAU,EAAE,EAAE;gBACtB,sBAAsB,CAAC,KAAK,CAAC,CAAC;gBAC9B,UAAU,IAAI,OAAO,EAAE,CAAC;YAC1B,CAAC,GACD,CACH;QACA,WAAW,CACA,CACf,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,uCAAuC,GAAG,GAAG,EAAE;IACnD,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,IAAA,iCAAe,EAAC,eAAQ,CAAC,kBAAkB,EAAE,WAAI,CAAC,GAAG,CAAC,CAAC;IAClF,OAAO,CACL,oBAAC,6BAAmB,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO;QACrD,oBAAC,wBAAwB,OAAG,CACR,CACvB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { EnrollmentRequestList } from '@flightctl/types';
|
|
3
|
+
type EnrollmentRequestListProps = {
|
|
4
|
+
refetchDevices?: VoidFunction;
|
|
5
|
+
isStandalone?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const EnrollmentRequestList: ({ refetchDevices, isStandalone }: EnrollmentRequestListProps) => React.JSX.Element | null;
|
|
8
|
+
export default EnrollmentRequestList;
|
|
9
|
+
//# sourceMappingURL=EnrollmentRequestList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnrollmentRequestList.d.ts","sourceRoot":"","sources":["../../../../src/components/EnrollmentRequest/EnrollmentRequestList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAqB,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAsC5E,KAAK,0BAA0B,GAAG;IAAE,cAAc,CAAC,EAAE,YAAY,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE5F,QAAA,MAAM,qBAAqB,qCAAsC,0BAA0B,6BAsH1F,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|