@flightctl/ui-components 0.0.4 → 0.0.5
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/__mocks__/fileMock.d.ts +3 -0
- package/dist/__mocks__/fileMock.d.ts.map +1 -0
- package/dist/__mocks__/styleMock.d.ts +2 -0
- package/dist/__mocks__/styleMock.d.ts.map +1 -0
- package/dist/jest.config.d.ts +12 -0
- package/dist/jest.config.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsNotFound.d.ts +8 -0
- package/dist/src/components/DetailsPage/DetailsNotFound.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsPage.d.ts +18 -0
- package/dist/src/components/DetailsPage/DetailsPage.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsPage.spec.d.ts +2 -0
- package/dist/src/components/DetailsPage/DetailsPage.spec.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsPageActions.d.ts +17 -0
- package/dist/src/components/DetailsPage/DetailsPageActions.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/DetailsPageCard.d.ts +7 -0
- package/dist/src/components/DetailsPage/DetailsPageCard.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.d.ts +8 -0
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.js +2 -3
- package/dist/src/components/DetailsPage/Tables/ApplicationsTable.js.map +1 -1
- package/dist/src/components/DetailsPage/Tables/ConditionsTable.d.ts +9 -0
- package/dist/src/components/DetailsPage/Tables/ConditionsTable.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/Tables/IntegrityDetails.d.ts +8 -0
- package/dist/src/components/DetailsPage/Tables/IntegrityDetails.d.ts.map +1 -0
- package/dist/src/components/DetailsPage/Tables/IntegrityDetails.js +2 -1
- package/dist/src/components/DetailsPage/Tables/IntegrityDetails.js.map +1 -1
- package/dist/src/components/DetailsPage/Tables/SystemdDetailsTable.d.ts +12 -0
- package/dist/src/components/DetailsPage/Tables/SystemdDetailsTable.d.ts.map +1 -0
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.d.ts +6 -0
- package/dist/src/components/Device/AddDeviceModal/AddDeviceModal.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts +4 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js +10 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsPage.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.d.ts +12 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js +24 -22
- package/dist/src/components/Device/DeviceDetails/DeviceDetailsTab.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceFleet.d.ts +8 -0
- package/dist/src/components/Device/DeviceDetails/DeviceFleet.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceFleet.js +3 -3
- package/dist/src/components/Device/DeviceDetails/DeviceFleet.js.map +1 -1
- package/dist/src/components/Device/DeviceDetails/DeviceOs.d.ts +7 -0
- package/dist/src/components/Device/DeviceDetails/DeviceOs.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceOs.js +24 -0
- package/dist/src/components/Device/DeviceDetails/DeviceOs.js.map +1 -0
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.d.ts +9 -0
- package/dist/src/components/Device/DeviceDetails/DeviceStatusDebugModal.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/SystemdTable.d.ts +10 -0
- package/dist/src/components/Device/DeviceDetails/SystemdTable.d.ts.map +1 -0
- package/dist/src/components/Device/DeviceDetails/TerminalTab.d.ts +7 -0
- package/dist/src/components/Device/DeviceDetails/TerminalTab.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.d.ts +17 -0
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.js +61 -0
- package/dist/src/components/Device/DevicesPage/DeviceFilterSelect.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableRow.d.ts +14 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableRow.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList → DevicesPage}/DeviceTableRow.js +1 -1
- package/dist/src/components/Device/DevicesPage/DeviceTableRow.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableToolbar.d.ts +21 -0
- package/dist/src/components/Device/DevicesPage/DeviceTableToolbar.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList → DevicesPage}/DeviceTableToolbar.js +5 -6
- package/dist/src/components/Device/DevicesPage/DeviceTableToolbar.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.css +16 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.d.ts +18 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.js +127 -0
- package/dist/src/components/Device/DevicesPage/DeviceToolbarFilters.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/DevicesPage.d.ts +22 -0
- package/dist/src/components/Device/DevicesPage/DevicesPage.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList/DeviceList.js → DevicesPage/DevicesPage.js} +20 -47
- package/dist/src/components/Device/DevicesPage/DevicesPage.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.d.ts +13 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.js +104 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestList.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.d.ts +11 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.js +18 -0
- package/dist/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/types.d.ts +18 -0
- package/dist/src/components/Device/DevicesPage/types.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/types.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/useDeviceBackendFilters.d.ts +12 -0
- package/dist/src/components/Device/DevicesPage/useDeviceBackendFilters.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList → DevicesPage}/useDeviceBackendFilters.js +1 -1
- package/dist/src/components/Device/DevicesPage/useDeviceBackendFilters.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/useDeviceFilters.d.ts +8 -0
- package/dist/src/components/Device/DevicesPage/useDeviceFilters.d.ts.map +1 -0
- package/dist/src/components/Device/{DeviceList → DevicesPage}/useDeviceFilters.js +3 -3
- package/dist/src/components/Device/DevicesPage/useDeviceFilters.js.map +1 -0
- package/dist/src/components/Device/DevicesPage/useDevices.d.ts +21 -0
- package/dist/src/components/Device/DevicesPage/useDevices.d.ts.map +1 -0
- package/dist/src/components/Device/DevicesPage/useDevices.js +83 -0
- package/dist/src/components/Device/DevicesPage/useDevices.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.d.ts +5 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js +1 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizard.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.d.ts +4 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.d.ts +4 -0
- package/dist/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts +10 -0
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js +87 -21
- package/dist/src/components/Device/EditDeviceWizard/deviceSpecUtils.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.css +4 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.d.ts +5 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.js +61 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js +88 -4
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.js +3 -3
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.d.ts +4 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.js +26 -31
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts +11 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts +10 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js +14 -12
- package/dist/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.d.ts +8 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.js +26 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewApplications.js.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.d.ts +7 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.js +9 -4
- package/dist/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.js.map +1 -1
- package/dist/src/components/Device/EditDeviceWizard/types.d.ts +20 -0
- package/dist/src/components/Device/EditDeviceWizard/types.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/useEditDevice.d.ts +3 -0
- package/dist/src/components/Device/EditDeviceWizard/useEditDevice.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts +44 -0
- package/dist/src/components/Device/EditDeviceWizard/utils.d.ts.map +1 -0
- package/dist/src/components/Device/EditDeviceWizard/utils.js +6 -4
- package/dist/src/components/Device/EditDeviceWizard/utils.js.map +1 -1
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsForm.d.ts +11 -0
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsForm.d.ts.map +1 -0
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsModal.d.ts +17 -0
- package/dist/src/components/Device/MatchPatternsModal/MatchPatternsModal.d.ts.map +1 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.d.ts +5 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.d.ts.map +1 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js +2 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.js.map +1 -1
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.d.ts +15 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.d.ts.map +1 -0
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js +9 -13
- package/dist/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js.map +1 -1
- package/dist/src/components/ErrorAlert/ErrorAlert.d.ts +6 -0
- package/dist/src/components/ErrorAlert/ErrorAlert.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts +5 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.d.ts +7 -0
- package/dist/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.d.ts +4 -0
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js +4 -5
- package/dist/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts +10 -0
- package/dist/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.d.ts +7 -0
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js +11 -6
- package/dist/src/components/Fleet/CreateFleet/steps/ReviewStep.js.map +1 -1
- package/dist/src/components/Fleet/CreateFleet/types.d.ts +8 -0
- package/dist/src/components/Fleet/CreateFleet/types.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/useEditFleet.d.ts +3 -0
- package/dist/src/components/Fleet/CreateFleet/useEditFleet.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/utils.d.ts +9 -0
- package/dist/src/components/Fleet/CreateFleet/utils.d.ts.map +1 -0
- package/dist/src/components/Fleet/CreateFleet/utils.js +8 -3
- package/dist/src/components/Fleet/CreateFleet/utils.js.map +1 -1
- package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.d.ts +7 -0
- package/dist/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetails.d.ts +4 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetails.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.d.ts +7 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.js +10 -20
- package/dist/src/components/Fleet/FleetDetails/FleetDetailsContent.js.map +1 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDevices.d.ts +9 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevices.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevices.js +18 -12
- package/dist/src/components/Fleet/FleetDetails/FleetDevices.js.map +1 -1
- package/dist/src/components/Fleet/FleetDetails/FleetDevicesLink.d.ts +7 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevicesLink.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevicesLink.js +13 -0
- package/dist/src/components/Fleet/FleetDetails/FleetDevicesLink.js.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetOwnerLink.d.ts +13 -0
- package/dist/src/components/Fleet/FleetDetails/FleetOwnerLink.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetOwnerLink.js +1 -0
- package/dist/src/components/Fleet/FleetDetails/FleetOwnerLink.js.map +1 -1
- package/dist/src/components/Fleet/FleetResourceSyncs.d.ts +7 -0
- package/dist/src/components/Fleet/FleetResourceSyncs.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetResourceSyncs.js +115 -0
- package/dist/src/components/Fleet/FleetResourceSyncs.js.map +1 -0
- package/dist/src/components/Fleet/FleetRow.d.ts +13 -0
- package/dist/src/components/Fleet/FleetRow.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetRow.js +5 -5
- package/dist/src/components/Fleet/FleetRow.js.map +1 -1
- package/dist/src/components/Fleet/FleetStatus.d.ts +7 -0
- package/dist/src/components/Fleet/FleetStatus.d.ts.map +1 -0
- package/dist/src/components/Fleet/FleetsPage.d.ts +4 -0
- package/dist/src/components/Fleet/FleetsPage.d.ts.map +1 -0
- package/dist/src/components/Fleet/{FleetList.js → FleetsPage.js} +28 -42
- package/dist/src/components/Fleet/FleetsPage.js.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.d.ts +5 -0
- package/dist/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.d.ts.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.d.ts +12 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js +1 -1
- package/dist/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js.map +1 -1
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.d.ts +8 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ReviewStep.d.ts +7 -0
- package/dist/src/components/Fleet/ImportFleetWizard/steps/ReviewStep.d.ts.map +1 -0
- package/dist/src/components/Fleet/ImportFleetWizard/types.d.ts +6 -0
- package/dist/src/components/Fleet/ImportFleetWizard/types.d.ts.map +1 -0
- package/dist/src/components/ListPage/ListPage.d.ts +10 -0
- package/dist/src/components/ListPage/ListPage.d.ts.map +1 -0
- package/dist/src/components/ListPage/ListPage.js +2 -2
- package/dist/src/components/ListPage/ListPage.js.map +1 -1
- package/dist/src/components/ListPage/ListPageActions.d.ts +17 -0
- package/dist/src/components/ListPage/ListPageActions.d.ts.map +1 -0
- package/dist/src/components/ListPage/ListPageActions.js +13 -2
- package/dist/src/components/ListPage/ListPageActions.js.map +1 -1
- package/dist/src/components/ListPage/ListPageBody.d.ts +9 -0
- package/dist/src/components/ListPage/ListPageBody.d.ts.map +1 -0
- package/dist/src/components/ListPage/types.d.ts +16 -0
- package/dist/src/components/ListPage/types.d.ts.map +1 -0
- package/dist/src/components/NavItem/NavItem.d.ts +8 -0
- package/dist/src/components/NavItem/NavItem.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.d.ts +9 -0
- package/dist/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.js +5 -17
- package/dist/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/DeviceStatusChart.d.ts +9 -0
- package/dist/src/components/OverviewPage/Cards/Status/DeviceStatusChart.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/DeviceStatusChart.js +7 -20
- package/dist/src/components/OverviewPage/Cards/Status/DeviceStatusChart.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.d.ts +4 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.js +11 -10
- package/dist/src/components/OverviewPage/Cards/Status/StatusCard.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.d.ts +14 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.js +22 -51
- package/dist/src/components/OverviewPage/Cards/Status/StatusCardFilters.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.d.ts +9 -0
- package/dist/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.js +5 -17
- package/dist/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/Status/utils.d.ts +15 -0
- package/dist/src/components/OverviewPage/Cards/Status/utils.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/Status/utils.js +9 -26
- package/dist/src/components/OverviewPage/Cards/Status/utils.js.map +1 -1
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.d.ts +4 -0
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.js +2 -3
- package/dist/src/components/OverviewPage/Cards/ToDo/ToDoCard.js.map +1 -1
- package/dist/src/components/OverviewPage/Overview.d.ts +4 -0
- package/dist/src/components/OverviewPage/Overview.d.ts.map +1 -0
- package/dist/src/components/OverviewPage/OverviewPage.d.ts +4 -0
- package/dist/src/components/OverviewPage/OverviewPage.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepository.d.ts +4 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepository.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts +21 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js +8 -1
- package/dist/src/components/Repository/CreateRepository/CreateRepositoryForm.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.d.ts +9 -0
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.js +18 -11
- package/dist/src/components/Repository/CreateRepository/CreateResourceSyncsForm.js.map +1 -1
- package/dist/src/components/Repository/CreateRepository/types.d.ts +42 -0
- package/dist/src/components/Repository/CreateRepository/types.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/utils.d.ts +75 -0
- package/dist/src/components/Repository/CreateRepository/utils.d.ts.map +1 -0
- package/dist/src/components/Repository/CreateRepository/utils.js +40 -7
- package/dist/src/components/Repository/CreateRepository/utils.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.d.ts +9 -0
- package/dist/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.d.ts +4 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.js +3 -2
- package/dist/src/components/Repository/RepositoryDetails/RepositoryDetails.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.d.ts +7 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.js +14 -13
- package/dist/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.d.ts +6 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySource.d.ts +22 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySource.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySource.js +43 -11
- package/dist/src/components/Repository/RepositoryDetails/RepositorySource.js.map +1 -1
- package/dist/src/components/Repository/RepositoryDetails/RepositorySourceList.d.ts +7 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySourceList.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryDetails/RepositorySourceList.js +30 -33
- package/dist/src/components/Repository/RepositoryDetails/RepositorySourceList.js.map +1 -1
- package/dist/src/components/Repository/RepositoryList.d.ts +5 -0
- package/dist/src/components/Repository/RepositoryList.d.ts.map +1 -0
- package/dist/src/components/Repository/RepositoryList.js +3 -3
- package/dist/src/components/Repository/RepositoryList.js.map +1 -1
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.css +7 -0
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.d.ts +7 -0
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.d.ts.map +1 -0
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js +72 -25
- package/dist/src/components/ResourceSync/RepositoryResourceSyncList.js.map +1 -1
- package/dist/src/components/ResourceSync/ResourceSyncStatus.d.ts +9 -0
- package/dist/src/components/ResourceSync/ResourceSyncStatus.d.ts.map +1 -0
- package/dist/src/components/ResourceSync/ResourceSyncStatus.js +9 -18
- package/dist/src/components/ResourceSync/ResourceSyncStatus.js.map +1 -1
- package/dist/src/components/ResourceSync/ResourceSyncToRepository.d.ts +4 -0
- package/dist/src/components/ResourceSync/ResourceSyncToRepository.d.ts.map +1 -0
- package/dist/src/components/Status/ApplicationStatus.d.ts +13 -0
- package/dist/src/components/Status/ApplicationStatus.d.ts.map +1 -0
- package/dist/src/components/Status/ApplicationSummaryStatus.d.ts +13 -0
- package/dist/src/components/Status/ApplicationSummaryStatus.d.ts.map +1 -0
- package/dist/src/components/Status/ApplicationSummaryStatus.js.map +1 -1
- package/dist/src/components/Status/DeviceResourceStatus.d.ts +9 -0
- package/dist/src/components/Status/DeviceResourceStatus.d.ts.map +1 -0
- package/dist/src/components/Status/DeviceStatus.d.ts +7 -0
- package/dist/src/components/Status/DeviceStatus.d.ts.map +1 -0
- package/dist/src/components/Status/EnrollmentRequestStatus.d.ts +7 -0
- package/dist/src/components/Status/EnrollmentRequestStatus.d.ts.map +1 -0
- package/dist/src/components/Status/IntegrityStatus.d.ts +7 -0
- package/dist/src/components/Status/IntegrityStatus.d.ts.map +1 -0
- package/dist/src/components/Status/RepositoryStatus.d.ts +10 -0
- package/dist/src/components/Status/RepositoryStatus.d.ts.map +1 -0
- package/dist/src/components/Status/StatusDisplay.css +3 -0
- package/dist/src/components/Status/StatusDisplay.d.ts +23 -0
- package/dist/src/components/Status/StatusDisplay.d.ts.map +1 -0
- package/dist/src/components/Status/SystemUpdateStatus.d.ts +7 -0
- package/dist/src/components/Status/SystemUpdateStatus.d.ts.map +1 -0
- package/dist/src/components/Status/SystemdStatus.d.ts +6 -0
- package/dist/src/components/Status/SystemdStatus.d.ts.map +1 -0
- package/dist/src/components/Status/utils.d.ts +5 -0
- package/dist/src/components/Status/utils.d.ts.map +1 -0
- package/dist/src/components/Table/Table.d.ts +25 -0
- package/dist/src/components/Table/Table.d.ts.map +1 -0
- package/dist/src/components/Table/TableActions.d.ts +7 -0
- package/dist/src/components/Table/TableActions.d.ts.map +1 -0
- package/dist/src/components/Table/TableActions.js +3 -3
- package/dist/src/components/Table/TableActions.js.map +1 -1
- package/dist/src/components/Table/TableTextSearch.d.ts +9 -0
- package/dist/src/components/Table/TableTextSearch.d.ts.map +1 -0
- package/dist/src/components/Table/TableTextSearch.js +2 -4
- package/dist/src/components/Table/TableTextSearch.js.map +1 -1
- package/dist/src/components/Terminal/Terminal.d.ts +15 -0
- package/dist/src/components/Terminal/Terminal.d.ts.map +1 -0
- package/dist/src/components/UserPreferences/UserPreferencesModal.d.ts +7 -0
- package/dist/src/components/UserPreferences/UserPreferencesModal.d.ts.map +1 -0
- package/dist/src/components/UserPreferences/UserPreferencesProvider.d.ts +11 -0
- package/dist/src/components/UserPreferences/UserPreferencesProvider.d.ts.map +1 -0
- package/dist/src/components/charts/DonutChart.d.ts +17 -0
- package/dist/src/components/charts/DonutChart.d.ts.map +1 -0
- package/dist/src/components/charts/utils.d.ts +15 -0
- package/dist/src/components/charts/utils.d.ts.map +1 -0
- package/dist/src/components/charts/utils.js +30 -0
- package/dist/src/components/charts/utils.js.map +1 -0
- package/dist/src/components/common/CopyButton.d.ts +10 -0
- package/dist/src/components/common/CopyButton.d.ts.map +1 -0
- package/dist/src/components/common/CopyButton.js +3 -3
- package/dist/src/components/common/CopyButton.js.map +1 -1
- package/dist/src/components/common/EditableLabelControl.d.ts +10 -0
- package/dist/src/components/common/EditableLabelControl.d.ts.map +1 -0
- package/dist/src/components/common/ErrorBoundary.d.ts +9 -0
- package/dist/src/components/common/ErrorBoundary.d.ts.map +1 -0
- package/dist/src/components/common/FlightCtlDescriptionList.d.ts +5 -0
- package/dist/src/components/common/FlightCtlDescriptionList.d.ts.map +1 -0
- package/dist/src/components/common/FlightCtlDescriptionList.js +13 -0
- package/dist/src/components/common/FlightCtlDescriptionList.js.map +1 -0
- package/dist/src/components/common/HelperTextItems.d.ts +3 -0
- package/dist/src/components/common/HelperTextItems.d.ts.map +1 -0
- package/dist/src/components/common/HelperTextItems.js +1 -9
- package/dist/src/components/common/HelperTextItems.js.map +1 -1
- package/dist/src/components/common/LabelsView.d.ts +10 -0
- package/dist/src/components/common/LabelsView.d.ts.map +1 -0
- package/dist/src/components/common/LeaveFormConfirmation.d.ts +4 -0
- package/dist/src/components/common/LeaveFormConfirmation.d.ts.map +1 -0
- package/dist/src/components/common/LeaveFormConfirmation.js +4 -1
- package/dist/src/components/common/LeaveFormConfirmation.js.map +1 -1
- package/dist/src/components/common/ResourceLink.d.ts +13 -0
- package/dist/src/components/common/ResourceLink.d.ts.map +1 -0
- package/dist/src/components/common/ResourceListEmptyState.d.ts +8 -0
- package/dist/src/components/common/ResourceListEmptyState.d.ts.map +1 -0
- package/dist/src/components/common/WithHelperText.d.ts +11 -0
- package/dist/src/components/common/WithHelperText.d.ts.map +1 -0
- package/dist/src/components/common/WithTooltip.d.ts +10 -0
- package/dist/src/components/common/WithTooltip.d.ts.map +1 -0
- package/dist/src/components/form/CheckboxField.d.ts +10 -0
- package/dist/src/components/form/CheckboxField.d.ts.map +1 -0
- package/dist/src/components/{Device/EditDeviceWizard/steps/ConfigTemplateForm.css → form/ExpandableFormSection.css} +2 -2
- package/dist/src/components/form/ExpandableFormSection.d.ts +11 -0
- package/dist/src/components/form/ExpandableFormSection.d.ts.map +1 -0
- package/dist/src/components/form/ExpandableFormSection.js +30 -0
- package/dist/src/components/form/ExpandableFormSection.js.map +1 -0
- package/dist/src/components/form/FieldHelperText.d.ts +14 -0
- package/dist/src/components/form/FieldHelperText.d.ts.map +1 -0
- package/dist/src/components/form/FilterSelect.css +11 -1
- package/dist/src/components/form/FilterSelect.d.ts +16 -0
- package/dist/src/components/form/FilterSelect.d.ts.map +1 -0
- package/dist/src/components/form/FilterSelect.js +14 -9
- package/dist/src/components/form/FilterSelect.js.map +1 -1
- package/dist/src/components/form/FlightCtlActionGroup.d.ts +5 -0
- package/dist/src/components/form/FlightCtlActionGroup.d.ts.map +1 -0
- package/dist/src/components/form/FlightCtlForm.d.ts +6 -0
- package/dist/src/components/form/FlightCtlForm.d.ts.map +1 -0
- package/dist/src/components/form/FormSelect.css +8 -0
- package/dist/src/components/form/FormSelect.d.ts +16 -0
- package/dist/src/components/form/FormSelect.d.ts.map +1 -0
- package/dist/src/components/form/FormSelectTypeahead.d.ts +19 -0
- package/dist/src/components/form/FormSelectTypeahead.d.ts.map +1 -0
- package/dist/src/components/form/FormSelectTypeahead.js +116 -0
- package/dist/src/components/form/FormSelectTypeahead.js.map +1 -0
- package/dist/src/components/form/LabelsField.d.ts +12 -0
- package/dist/src/components/form/LabelsField.d.ts.map +1 -0
- package/dist/src/components/form/NameField.d.ts +10 -0
- package/dist/src/components/form/NameField.d.ts.map +1 -0
- package/dist/src/components/form/RadioField.d.ts +12 -0
- package/dist/src/components/form/RadioField.d.ts.map +1 -0
- package/dist/src/components/form/RichValidationTextField.d.ts +13 -0
- package/dist/src/components/form/RichValidationTextField.d.ts.map +1 -0
- package/dist/src/components/form/SwitchField.d.ts +9 -0
- package/dist/src/components/form/SwitchField.d.ts.map +1 -0
- package/dist/src/components/form/SwitchField.js +24 -0
- package/dist/src/components/form/SwitchField.js.map +1 -0
- package/dist/src/components/form/TextAreaField.d.ts +11 -0
- package/dist/src/components/form/TextAreaField.d.ts.map +1 -0
- package/dist/src/components/form/TextField.d.ts +10 -0
- package/dist/src/components/form/TextField.d.ts.map +1 -0
- package/dist/src/components/form/UploadField.d.ts +13 -0
- package/dist/src/components/form/UploadField.d.ts.map +1 -0
- package/dist/src/components/form/UploadField.js +74 -0
- package/dist/src/components/form/UploadField.js.map +1 -0
- package/dist/src/components/form/validations.d.ts +82 -0
- package/dist/src/components/form/validations.d.ts.map +1 -0
- package/dist/src/components/form/validations.js +54 -19
- package/dist/src/components/form/validations.js.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.d.ts +16 -0
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.d.ts.map +1 -0
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.d.ts +6 -0
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.d.ts.map +1 -0
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.js.map +1 -1
- package/dist/src/components/modals/ApproveDeviceModal/DeviceLabelMatch.d.ts +8 -0
- package/dist/src/components/modals/ApproveDeviceModal/DeviceLabelMatch.d.ts.map +1 -0
- package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.d.ts +11 -0
- package/dist/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.d.ts.map +1 -0
- package/dist/src/components/modals/DeleteModal/DeleteModal.d.ts +10 -0
- package/dist/src/components/modals/DeleteModal/DeleteModal.d.ts.map +1 -0
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.d.ts +9 -0
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.d.ts.map +1 -0
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.js +1 -2
- package/dist/src/components/modals/EditLabelsModal/EditLabelsForm.js.map +1 -1
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.d.ts +11 -0
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.d.ts.map +1 -0
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js +3 -41
- package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.d.ts +10 -0
- package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.d.ts.map +1 -0
- 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.d.ts +10 -0
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.d.ts.map +1 -0
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js +22 -21
- package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js.map +1 -1
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.d.ts +10 -0
- package/dist/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.d.ts.map +1 -0
- package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.d.ts +10 -0
- package/dist/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.d.ts.map +1 -0
- package/dist/src/constants.d.ts +4 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/hooks/useAppContext.d.ts +70 -0
- package/dist/src/hooks/useAppContext.d.ts.map +1 -0
- package/dist/src/hooks/useDeviceLabelMatch.d.ts +9 -0
- package/dist/src/hooks/useDeviceLabelMatch.d.ts.map +1 -0
- package/dist/src/hooks/useDocumentTitle.d.ts +2 -0
- package/dist/src/hooks/useDocumentTitle.d.ts.map +1 -0
- package/dist/src/hooks/useFetch.d.ts +12 -0
- package/dist/src/hooks/useFetch.d.ts.map +1 -0
- package/dist/src/hooks/useFetchPeriodically.d.ts +3 -0
- package/dist/src/hooks/useFetchPeriodically.d.ts.map +1 -0
- package/dist/src/hooks/useNavigate.d.ts +38 -0
- package/dist/src/hooks/useNavigate.d.ts.map +1 -0
- package/dist/src/hooks/useTableSelect.d.ts +13 -0
- package/dist/src/hooks/useTableSelect.d.ts.map +1 -0
- package/dist/src/hooks/useTableSort.d.ts +7 -0
- package/dist/src/hooks/useTableSort.d.ts.map +1 -0
- package/dist/src/hooks/useTableTextSearch.d.ts +6 -0
- package/dist/src/hooks/useTableTextSearch.d.ts.map +1 -0
- package/dist/src/hooks/useTemplateVersion.d.ts +3 -0
- package/dist/src/hooks/useTemplateVersion.d.ts.map +1 -0
- package/dist/src/hooks/useThemePreferences.d.ts +8 -0
- package/dist/src/hooks/useThemePreferences.d.ts.map +1 -0
- package/dist/src/hooks/useTranslation.d.ts +2 -0
- package/dist/src/hooks/useTranslation.d.ts.map +1 -0
- package/dist/src/hooks/useUserPreferences.d.ts +2 -0
- package/dist/src/hooks/useUserPreferences.d.ts.map +1 -0
- package/dist/src/hooks/useWebSocket.d.ts +8 -0
- package/dist/src/hooks/useWebSocket.d.ts.map +1 -0
- package/dist/src/setupTests.d.ts +2 -0
- package/dist/src/setupTests.d.ts.map +1 -0
- package/dist/src/tests/test-utils.d.ts +7 -0
- package/dist/src/tests/test-utils.d.ts.map +1 -0
- package/dist/src/types/deviceSpec.d.ts +57 -0
- package/dist/src/types/deviceSpec.d.ts.map +1 -0
- package/dist/src/types/deviceSpec.js +41 -9
- package/dist/src/types/deviceSpec.js.map +1 -1
- package/dist/src/types/extraTypes.d.ts +36 -0
- package/dist/src/types/extraTypes.d.ts.map +1 -0
- package/dist/src/types/extraTypes.js +1 -3
- package/dist/src/types/extraTypes.js.map +1 -1
- package/dist/src/types/typeUtils.d.ts +3 -0
- package/dist/src/types/typeUtils.d.ts.map +1 -0
- package/dist/src/utils/api.d.ts +24 -0
- package/dist/src/utils/api.d.ts.map +1 -0
- package/dist/src/utils/dates.d.ts +5 -0
- package/dist/src/utils/dates.d.ts.map +1 -0
- package/dist/src/utils/devices.d.ts +4 -0
- package/dist/src/utils/devices.d.ts.map +1 -0
- package/dist/src/utils/devices.js +1 -27
- package/dist/src/utils/devices.js.map +1 -1
- package/dist/src/utils/error.d.ts +4 -0
- package/dist/src/utils/error.d.ts.map +1 -0
- package/dist/src/utils/labels.d.ts +11 -0
- package/dist/src/utils/labels.d.ts.map +1 -0
- package/dist/src/utils/labels.js +4 -14
- package/dist/src/utils/labels.js.map +1 -1
- package/dist/src/utils/metrics.d.ts +9 -0
- package/dist/src/utils/metrics.d.ts.map +1 -0
- package/dist/src/utils/patch.d.ts +15 -0
- package/dist/src/utils/patch.d.ts.map +1 -0
- package/dist/src/utils/patch.js +71 -1
- package/dist/src/utils/patch.js.map +1 -1
- package/dist/src/utils/resource.d.ts +6 -0
- package/dist/src/utils/resource.d.ts.map +1 -0
- package/dist/src/utils/search.d.ts +3 -0
- package/dist/src/utils/search.d.ts.map +1 -0
- package/dist/src/utils/search.js +15 -1
- package/dist/src/utils/search.js.map +1 -1
- package/dist/src/utils/sort/device.d.ts +4 -0
- package/dist/src/utils/sort/device.d.ts.map +1 -0
- package/dist/src/utils/sort/device.js +3 -43
- package/dist/src/utils/sort/device.js.map +1 -1
- package/dist/src/utils/sort/fleet.d.ts +4 -0
- package/dist/src/utils/sort/fleet.d.ts.map +1 -0
- package/dist/src/utils/sort/fleet.js +6 -8
- package/dist/src/utils/sort/fleet.js.map +1 -1
- package/dist/src/utils/sort/generic.d.ts +8 -0
- package/dist/src/utils/sort/generic.d.ts.map +1 -0
- package/dist/src/utils/sort/generic.js +14 -11
- package/dist/src/utils/sort/generic.js.map +1 -1
- package/dist/src/utils/sort/repository.d.ts +6 -0
- package/dist/src/utils/sort/repository.d.ts.map +1 -0
- package/dist/src/utils/sort/repository.js +2 -2
- package/dist/src/utils/sort/repository.js.map +1 -1
- package/dist/src/utils/sort/resourceSync.d.ts +6 -0
- package/dist/src/utils/sort/resourceSync.d.ts.map +1 -0
- package/dist/src/utils/status/applications.d.ts +7 -0
- package/dist/src/utils/status/applications.d.ts.map +1 -0
- package/dist/src/utils/status/applications.js +19 -21
- package/dist/src/utils/status/applications.js.map +1 -1
- package/dist/src/utils/status/common.d.ts +12 -0
- package/dist/src/utils/status/common.d.ts.map +1 -0
- package/dist/src/utils/status/devices.d.ts +17 -0
- package/dist/src/utils/status/devices.d.ts.map +1 -0
- package/dist/src/utils/status/devices.js +9 -19
- package/dist/src/utils/status/devices.js.map +1 -1
- package/dist/src/utils/status/enrollmentRequest.d.ts +12 -0
- package/dist/src/utils/status/enrollmentRequest.d.ts.map +1 -0
- package/dist/src/utils/status/fleet.d.ts +15 -0
- package/dist/src/utils/status/fleet.d.ts.map +1 -0
- package/dist/src/utils/status/integrity.d.ts +5 -0
- package/dist/src/utils/status/integrity.d.ts.map +1 -0
- package/dist/src/utils/status/repository.d.ts +24 -0
- package/dist/src/utils/status/repository.d.ts.map +1 -0
- package/dist/src/utils/status/repository.js +9 -5
- package/dist/src/utils/status/repository.js.map +1 -1
- package/dist/src/utils/status/system.d.ts +6 -0
- package/dist/src/utils/status/system.d.ts.map +1 -0
- package/dist/src/utils/status/system.js +5 -5
- package/dist/src/utils/status/system.js.map +1 -1
- package/package.json +10 -2
- package/src/components/DetailsPage/DetailsNotFound.tsx +114 -0
- package/src/components/DetailsPage/DetailsPage.css +3 -0
- package/src/components/DetailsPage/DetailsPage.spec.tsx +128 -0
- package/src/components/DetailsPage/DetailsPage.tsx +99 -0
- package/src/components/DetailsPage/DetailsPageActions.tsx +73 -0
- package/src/components/DetailsPage/DetailsPageCard.css +8 -0
- package/src/components/DetailsPage/DetailsPageCard.tsx +12 -0
- package/src/components/DetailsPage/Tables/ApplicationsTable.tsx +44 -0
- package/src/components/DetailsPage/Tables/ConditionsTable.tsx +40 -0
- package/src/components/DetailsPage/Tables/IntegrityDetails.tsx +44 -0
- package/src/components/DetailsPage/Tables/SystemdDetailsTable.tsx +63 -0
- package/src/components/Device/AddDeviceModal/AddDeviceModal.tsx +146 -0
- package/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx +117 -0
- package/src/components/Device/DeviceDetails/DeviceDetailsTab.css +4 -0
- package/src/components/Device/DeviceDetails/DeviceDetailsTab.tsx +216 -0
- package/src/components/Device/DeviceDetails/DeviceFleet.css +3 -0
- package/src/components/Device/DeviceDetails/DeviceFleet.tsx +76 -0
- package/src/components/Device/DeviceDetails/DeviceOs.tsx +43 -0
- package/src/components/Device/DeviceDetails/DeviceStatusDebugModal.css +3 -0
- package/src/components/Device/DeviceDetails/DeviceStatusDebugModal.tsx +60 -0
- package/src/components/Device/DeviceDetails/SystemdTable.tsx +65 -0
- package/src/components/Device/DeviceDetails/TerminalTab.tsx +53 -0
- package/src/components/Device/DevicesPage/DeviceFilterSelect.tsx +111 -0
- package/src/components/Device/DevicesPage/DeviceTableRow.tsx +95 -0
- package/src/components/Device/DevicesPage/DeviceTableToolbar.tsx +195 -0
- package/src/components/Device/DevicesPage/DeviceToolbarFilters.css +16 -0
- package/src/components/Device/DevicesPage/DeviceToolbarFilters.tsx +305 -0
- package/src/components/Device/DevicesPage/DevicesPage.tsx +265 -0
- package/src/components/Device/DevicesPage/EnrollmentRequestList.tsx +183 -0
- package/src/components/Device/DevicesPage/EnrollmentRequestTableToolbar.tsx +35 -0
- package/src/components/Device/DevicesPage/types.ts +22 -0
- package/src/components/Device/DevicesPage/useDeviceBackendFilters.ts +119 -0
- package/src/components/Device/DevicesPage/useDeviceFilters.ts +15 -0
- package/src/components/Device/DevicesPage/useDevices.ts +112 -0
- package/src/components/Device/EditDeviceWizard/EditDeviceWizard.css +4 -0
- package/src/components/Device/EditDeviceWizard/EditDeviceWizard.tsx +150 -0
- package/src/components/Device/EditDeviceWizard/EditDeviceWizardFooter.tsx +52 -0
- package/src/components/Device/EditDeviceWizard/EditDeviceWizardNav.tsx +66 -0
- package/src/components/Device/EditDeviceWizard/deviceSpecUtils.ts +278 -0
- package/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.css +4 -0
- package/src/components/Device/EditDeviceWizard/steps/ApplicationsForm.tsx +140 -0
- package/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.tsx +161 -0
- package/src/components/Device/EditDeviceWizard/steps/ConfigK8sSecretTemplateForm.tsx +50 -0
- package/src/components/Device/EditDeviceWizard/steps/ConfigTemplateForm.tsx +174 -0
- package/src/components/Device/EditDeviceWizard/steps/ConfigWithRepositoryTemplateForm.tsx +229 -0
- package/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.tsx +75 -0
- package/src/components/Device/EditDeviceWizard/steps/GeneralInfoStep.tsx +61 -0
- package/src/components/Device/EditDeviceWizard/steps/ReviewApplications.tsx +35 -0
- package/src/components/Device/EditDeviceWizard/steps/ReviewDeviceStep.tsx +83 -0
- package/src/components/Device/EditDeviceWizard/types.ts +19 -0
- package/src/components/Device/EditDeviceWizard/useEditDevice.ts +36 -0
- package/src/components/Device/EditDeviceWizard/utils.ts +79 -0
- package/src/components/Device/MatchPatternsModal/MatchPatternsForm.tsx +92 -0
- package/src/components/Device/MatchPatternsModal/MatchPatternsModal.tsx +62 -0
- package/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.css +3 -0
- package/src/components/EnrollmentRequest/EnrollmentRequestDetails/EnrollmentRequestDetails.tsx +226 -0
- package/src/components/EnrollmentRequest/EnrollmentRequestTableRow.tsx +69 -0
- package/src/components/ErrorAlert/ErrorAlert.tsx +15 -0
- package/src/components/Fleet/CreateFleet/CreateFleetWizard.css +3 -0
- package/src/components/Fleet/CreateFleet/CreateFleetWizard.tsx +152 -0
- package/src/components/Fleet/CreateFleet/CreateFleetWizardFooter.tsx +56 -0
- package/src/components/Fleet/CreateFleet/steps/DeviceLabelSelector.tsx +114 -0
- package/src/components/Fleet/CreateFleet/steps/GeneralInfoStep.tsx +55 -0
- package/src/components/Fleet/CreateFleet/steps/ReviewStep.tsx +83 -0
- package/src/components/Fleet/CreateFleet/types.ts +8 -0
- package/src/components/Fleet/CreateFleet/useEditFleet.ts +35 -0
- package/src/components/Fleet/CreateFleet/utils.ts +160 -0
- package/src/components/Fleet/DeleteFleetModal/DeleteFleetModal.tsx +89 -0
- package/src/components/Fleet/FleetDetails/FleetDetails.tsx +97 -0
- package/src/components/Fleet/FleetDetails/FleetDetailsContent.tsx +97 -0
- package/src/components/Fleet/FleetDetails/FleetDevices.tsx +115 -0
- package/src/components/Fleet/FleetDetails/FleetDevicesLink.tsx +16 -0
- package/src/components/Fleet/FleetDetails/FleetOwnerLink.tsx +51 -0
- package/src/components/Fleet/FleetResourceSyncs.tsx +161 -0
- package/src/components/Fleet/FleetRow.tsx +86 -0
- package/src/components/Fleet/FleetStatus.tsx +37 -0
- package/src/components/Fleet/FleetsPage.tsx +204 -0
- package/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.css +3 -0
- package/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.tsx +216 -0
- package/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.tsx +115 -0
- package/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.tsx +42 -0
- package/src/components/Fleet/ImportFleetWizard/steps/ReviewStep.tsx +70 -0
- package/src/components/Fleet/ImportFleetWizard/types.ts +6 -0
- package/src/components/ListPage/ListPage.tsx +22 -0
- package/src/components/ListPage/ListPageActions.tsx +68 -0
- package/src/components/ListPage/ListPageBody.tsx +34 -0
- package/src/components/ListPage/types.ts +13 -0
- package/src/components/NavItem/NavItem.tsx +42 -0
- package/src/components/OverviewPage/Cards/Status/ApplicationStatusChart.tsx +39 -0
- package/src/components/OverviewPage/Cards/Status/DeviceStatusChart.tsx +38 -0
- package/src/components/OverviewPage/Cards/Status/StatusCard.tsx +115 -0
- package/src/components/OverviewPage/Cards/Status/StatusCardFilters.tsx +111 -0
- package/src/components/OverviewPage/Cards/Status/SystemUpdateStatusChart.tsx +39 -0
- package/src/components/OverviewPage/Cards/Status/utils.ts +19 -0
- package/src/components/OverviewPage/Cards/ToDo/ToDoCard.tsx +72 -0
- package/src/components/OverviewPage/Overview.tsx +19 -0
- package/src/components/OverviewPage/OverviewPage.tsx +22 -0
- package/src/components/Repository/CreateRepository/CreateRepository.tsx +144 -0
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.css +7 -0
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx +440 -0
- package/src/components/Repository/CreateRepository/CreateResourceSyncsForm.tsx +98 -0
- package/src/components/Repository/CreateRepository/types.ts +43 -0
- package/src/components/Repository/CreateRepository/utils.ts +539 -0
- package/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.tsx +156 -0
- package/src/components/Repository/RepositoryDetails/RepositoryDetails.tsx +78 -0
- package/src/components/Repository/RepositoryDetails/RepositoryGeneralDetailsCard.tsx +102 -0
- package/src/components/Repository/RepositoryDetails/RepositoryResourceSyncsCard.tsx +28 -0
- package/src/components/Repository/RepositoryDetails/RepositorySource.tsx +96 -0
- package/src/components/Repository/RepositoryDetails/RepositorySourceList.tsx +79 -0
- package/src/components/Repository/RepositoryList.tsx +216 -0
- package/src/components/ResourceSync/RepositoryResourceSyncList.css +14 -0
- package/src/components/ResourceSync/RepositoryResourceSyncList.tsx +322 -0
- package/src/components/ResourceSync/ResourceSyncStatus.tsx +77 -0
- package/src/components/ResourceSync/ResourceSyncToRepository.tsx +73 -0
- package/src/components/Status/ApplicationStatus.tsx +25 -0
- package/src/components/Status/ApplicationSummaryStatus.tsx +24 -0
- package/src/components/Status/DeviceResourceStatus.tsx +112 -0
- package/src/components/Status/DeviceStatus.tsx +20 -0
- package/src/components/Status/EnrollmentRequestStatus.tsx +24 -0
- package/src/components/Status/IntegrityStatus.tsx +19 -0
- package/src/components/Status/RepositoryStatus.tsx +50 -0
- package/src/components/Status/StatusDisplay.css +12 -0
- package/src/components/Status/StatusDisplay.tsx +83 -0
- package/src/components/Status/SystemUpdateStatus.tsx +34 -0
- package/src/components/Status/SystemdStatus.tsx +22 -0
- package/src/components/Status/utils.ts +8 -0
- package/src/components/Table/Table.tsx +78 -0
- package/src/components/Table/TableActions.tsx +33 -0
- package/src/components/Table/TableTextSearch.tsx +23 -0
- package/src/components/Terminal/Terminal.css +1 -0
- package/src/components/Terminal/Terminal.tsx +100 -0
- package/src/components/UserPreferences/UserPreferencesModal.tsx +85 -0
- package/src/components/UserPreferences/UserPreferencesProvider.tsx +29 -0
- package/src/components/charts/DonutChart.css +10 -0
- package/src/components/charts/DonutChart.tsx +115 -0
- package/src/components/charts/utils.ts +38 -0
- package/src/components/common/CopyButton.tsx +36 -0
- package/src/components/common/EditableLabelControl.tsx +69 -0
- package/src/components/common/ErrorBoundary.tsx +53 -0
- package/src/components/common/FlightCtlDescriptionList.tsx +13 -0
- package/src/components/common/HelperTextItems.tsx +25 -0
- package/src/components/common/LabelsView.css +9 -0
- package/src/components/common/LabelsView.tsx +38 -0
- package/src/components/common/LeaveFormConfirmation.tsx +96 -0
- package/src/components/common/ResourceLink.css +29 -0
- package/src/components/common/ResourceLink.tsx +42 -0
- package/src/components/common/ResourceListEmptyState.tsx +19 -0
- package/src/components/common/WithHelperText.css +3 -0
- package/src/components/common/WithHelperText.tsx +34 -0
- package/src/components/common/WithTooltip.tsx +14 -0
- package/src/components/form/CheckboxField.tsx +39 -0
- package/src/components/form/ExpandableFormSection.css +3 -0
- package/src/components/form/ExpandableFormSection.tsx +59 -0
- package/src/components/form/FieldHelperText.tsx +45 -0
- package/src/components/form/FilterSelect.css +18 -0
- package/src/components/form/FilterSelect.tsx +92 -0
- package/src/components/form/FlightCtlActionGroup.css +9 -0
- package/src/components/form/FlightCtlActionGroup.tsx +11 -0
- package/src/components/form/FlightCtlForm.tsx +18 -0
- package/src/components/form/FormSelect.css +16 -0
- package/src/components/form/FormSelect.tsx +96 -0
- package/src/components/form/FormSelectTypeahead.tsx +212 -0
- package/src/components/form/LabelsField.tsx +116 -0
- package/src/components/form/NameField.tsx +73 -0
- package/src/components/form/RadioField.tsx +57 -0
- package/src/components/form/RichValidationTextField.tsx +142 -0
- package/src/components/form/SwitchField.tsx +32 -0
- package/src/components/form/TextAreaField.tsx +46 -0
- package/src/components/form/TextField.tsx +49 -0
- package/src/components/form/UploadField.tsx +133 -0
- package/src/components/form/validations.ts +386 -0
- package/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.tsx +74 -0
- package/src/components/modals/ApproveDeviceModal/ApproveDeviceModal.tsx +65 -0
- package/src/components/modals/ApproveDeviceModal/DeviceLabelMatch.css +24 -0
- package/src/components/modals/ApproveDeviceModal/DeviceLabelMatch.tsx +101 -0
- package/src/components/modals/CreateRepositoryModal/CreateRepositoryModal.tsx +25 -0
- package/src/components/modals/DeleteModal/DeleteModal.tsx +68 -0
- package/src/components/modals/EditLabelsModal/EditLabelsForm.tsx +101 -0
- package/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.css +4 -0
- package/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.tsx +192 -0
- package/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx +117 -0
- package/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.tsx +193 -0
- package/src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.tsx +172 -0
- package/src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.tsx +116 -0
- package/src/constants.ts +4 -0
- package/src/hooks/useAppContext.tsx +108 -0
- package/src/hooks/useDeviceLabelMatch.ts +101 -0
- package/src/hooks/useDocumentTitle.ts +12 -0
- package/src/hooks/useFetch.ts +10 -0
- package/src/hooks/useFetchPeriodically.ts +82 -0
- package/src/hooks/useNavigate.tsx +92 -0
- package/src/hooks/useTableSelect.ts +48 -0
- package/src/hooks/useTableSort.ts +42 -0
- package/src/hooks/useTableTextSearch.ts +23 -0
- package/src/hooks/useTemplateVersion.ts +23 -0
- package/src/hooks/useThemePreferences.ts +64 -0
- package/src/hooks/useTranslation.ts +8 -0
- package/src/hooks/useUserPreferences.ts +16 -0
- package/src/hooks/useWebSocket.ts +74 -0
- package/src/setupTests.ts +21 -0
- package/src/tests/test-utils.tsx +21 -0
- package/src/types/deviceSpec.ts +110 -0
- package/src/types/extraTypes.ts +52 -0
- package/src/types/typeUtils.ts +7 -0
- package/src/typings.d.ts +12 -0
- package/src/utils/api.ts +87 -0
- package/src/utils/dates.ts +60 -0
- package/src/utils/devices.ts +10 -0
- package/src/utils/error.ts +24 -0
- package/src/utils/labels.ts +40 -0
- package/src/utils/metrics.ts +49 -0
- package/src/utils/patch.ts +202 -0
- package/src/utils/resource.ts +4 -0
- package/src/utils/search.ts +25 -0
- package/src/utils/sort/device.ts +60 -0
- package/src/utils/sort/fleet.ts +16 -0
- package/src/utils/sort/generic.ts +37 -0
- package/src/utils/sort/repository.ts +28 -0
- package/src/utils/sort/resourceSync.ts +30 -0
- package/src/utils/status/applications.ts +58 -0
- package/src/utils/status/common.ts +71 -0
- package/src/utils/status/devices.ts +74 -0
- package/src/utils/status/enrollmentRequest.ts +49 -0
- package/src/utils/status/fleet.ts +47 -0
- package/src/utils/status/integrity.ts +26 -0
- package/src/utils/status/repository.ts +117 -0
- package/src/utils/status/system.ts +28 -0
- package/dist/src/components/Device/DeviceList/DeviceFilterSelect.js +0 -87
- package/dist/src/components/Device/DeviceList/DeviceFilterSelect.js.map +0 -1
- package/dist/src/components/Device/DeviceList/DeviceList.js.map +0 -1
- package/dist/src/components/Device/DeviceList/DeviceTableRow.js.map +0 -1
- package/dist/src/components/Device/DeviceList/DeviceTableToolbar.js.map +0 -1
- package/dist/src/components/Device/DeviceList/types.js.map +0 -1
- package/dist/src/components/Device/DeviceList/useDeviceBackendFilters.js.map +0 -1
- package/dist/src/components/Device/DeviceList/useDeviceFilters.js.map +0 -1
- package/dist/src/components/Device/DeviceList/useDeviceLikeResources.js +0 -98
- package/dist/src/components/Device/DeviceList/useDeviceLikeResources.js.map +0 -1
- package/dist/src/components/Fleet/FleetDetails/chartUtils.js +0 -29
- package/dist/src/components/Fleet/FleetDetails/chartUtils.js.map +0 -1
- package/dist/src/components/Fleet/FleetList.js.map +0 -1
- package/dist/src/components/Fleet/ResourceSyncRow.js +0 -36
- package/dist/src/components/Fleet/ResourceSyncRow.js.map +0 -1
- /package/dist/src/components/Device/{DeviceList → DevicesPage}/types.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/utils/search.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,WAAY,MAAM,GAAG,SAAS,UAAU,MAAM,KAAG,OAMvE,CAAC;AAEF,eAAO,MAAM,qBAAqB,eAAgB,MAAM,cAAc,MAAM,aAW3E,CAAC"}
|
package/dist/src/utils/search.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fuzzySeach = void 0;
|
|
3
|
+
exports.getSearchResultsCount = exports.fuzzySeach = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const fuzzysearch_1 = tslib_1.__importDefault(require("fuzzysearch"));
|
|
6
|
+
// Must be an even number for "getSearchResultsCount" to work
|
|
7
|
+
const MAX_TOTAL_SEARCH_RESULTS = 10;
|
|
6
8
|
const fuzzySeach = (filter, value) => {
|
|
7
9
|
if (!filter) {
|
|
8
10
|
return true;
|
|
@@ -11,4 +13,16 @@ const fuzzySeach = (filter, value) => {
|
|
|
11
13
|
return (0, fuzzysearch_1.default)(filter.toLowerCase(), value ? value.toLowerCase() : value);
|
|
12
14
|
};
|
|
13
15
|
exports.fuzzySeach = fuzzySeach;
|
|
16
|
+
const getSearchResultsCount = (labelCount, fleetCount) => {
|
|
17
|
+
if (labelCount + fleetCount <= MAX_TOTAL_SEARCH_RESULTS) {
|
|
18
|
+
return [labelCount, fleetCount];
|
|
19
|
+
}
|
|
20
|
+
const min = Math.min(labelCount, fleetCount, MAX_TOTAL_SEARCH_RESULTS / 2);
|
|
21
|
+
if (min === MAX_TOTAL_SEARCH_RESULTS / 2) {
|
|
22
|
+
return [MAX_TOTAL_SEARCH_RESULTS / 2, MAX_TOTAL_SEARCH_RESULTS / 2];
|
|
23
|
+
}
|
|
24
|
+
const rest = MAX_TOTAL_SEARCH_RESULTS - min;
|
|
25
|
+
return labelCount === min ? [labelCount, rest] : [rest, fleetCount];
|
|
26
|
+
};
|
|
27
|
+
exports.getSearchResultsCount = getSearchResultsCount;
|
|
14
28
|
//# sourceMappingURL=search.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/utils/search.ts"],"names":[],"mappings":";;;;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+
export declare const sortDeviceStatus: (devices: Array<Device>, status: 'DeviceStatus' | 'ApplicationStatus' | 'SystemUpdateStatus') => Device[];
|
|
3
|
+
export declare const sortDevicesByFleet: (resources: Array<Device>) => Device[];
|
|
4
|
+
//# sourceMappingURL=device.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../../src/utils/sort/device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAuC1C,eAAO,MAAM,gBAAgB,YAClB,MAAM,MAAM,CAAC,UACd,cAAc,GAAG,mBAAmB,GAAG,oBAAoB,aAWjE,CAAC;AAEL,eAAO,MAAM,kBAAkB,cAAe,MAAM,MAAM,CAAC,aAKvD,CAAC"}
|
|
@@ -2,33 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sortDevicesByFleet = exports.sortDeviceStatus = void 0;
|
|
4
4
|
const devices_1 = require("../devices");
|
|
5
|
-
const enrollmentRequest_1 = require("../status/enrollmentRequest");
|
|
6
|
-
const enrollmentRequest_2 = require("../status/enrollmentRequest");
|
|
7
5
|
const devices_2 = require("../status/devices");
|
|
8
|
-
const extraTypes_1 = require("../../types/extraTypes");
|
|
9
6
|
const applications_1 = require("../status/applications");
|
|
10
7
|
const system_1 = require("../status/system");
|
|
11
|
-
const sortEnrollmentRequests = (a, b) => {
|
|
12
|
-
const aStatus = (0, enrollmentRequest_1.getApprovalStatus)(a);
|
|
13
|
-
const bStatus = (0, enrollmentRequest_1.getApprovalStatus)(b);
|
|
14
|
-
if (aStatus === enrollmentRequest_2.EnrollmentRequestStatus.Pending || bStatus === enrollmentRequest_2.EnrollmentRequestStatus.Pending) {
|
|
15
|
-
if (aStatus === bStatus) {
|
|
16
|
-
return 0;
|
|
17
|
-
}
|
|
18
|
-
return aStatus === enrollmentRequest_2.EnrollmentRequestStatus.Pending ? -1 : 1;
|
|
19
|
-
}
|
|
20
|
-
const order = aStatus.localeCompare(bStatus);
|
|
21
|
-
if (order === 0) {
|
|
22
|
-
const aName = a.metadata.name || '';
|
|
23
|
-
const bName = b.metadata.name || '';
|
|
24
|
-
return aName.localeCompare(bName);
|
|
25
|
-
}
|
|
26
|
-
return order;
|
|
27
|
-
};
|
|
28
8
|
const sortByApplicationStatus = (a, b) => {
|
|
29
9
|
var _a, _b;
|
|
30
|
-
const aStatus = (0, devices_2.getApplicationSummaryStatus)((_a = a.status) === null || _a === void 0 ? void 0 : _a.
|
|
31
|
-
const bStatus = (0, devices_2.getApplicationSummaryStatus)((_b = b.status) === null || _b === void 0 ? void 0 : _b.
|
|
10
|
+
const aStatus = (0, devices_2.getApplicationSummaryStatus)((_a = a.status) === null || _a === void 0 ? void 0 : _a.applicationsSummary);
|
|
11
|
+
const bStatus = (0, devices_2.getApplicationSummaryStatus)((_b = b.status) === null || _b === void 0 ? void 0 : _b.applicationsSummary);
|
|
32
12
|
const aIndex = applications_1.applicationSummaryStatusOrder.indexOf(aStatus);
|
|
33
13
|
const bIndex = applications_1.applicationSummaryStatusOrder.indexOf(bStatus);
|
|
34
14
|
return aIndex - bIndex;
|
|
@@ -49,18 +29,7 @@ const sortBySystemUpdateStatus = (a, b) => {
|
|
|
49
29
|
const bIndex = system_1.systemUpdateStatusOrder.indexOf(bStatus);
|
|
50
30
|
return aIndex - bIndex;
|
|
51
31
|
};
|
|
52
|
-
const sortDeviceStatus = (
|
|
53
|
-
const isERa = (0, extraTypes_1.isEnrollmentRequest)(a);
|
|
54
|
-
const isERb = (0, extraTypes_1.isEnrollmentRequest)(b);
|
|
55
|
-
if (isERa && isERb) {
|
|
56
|
-
// Both are Enrollment requests
|
|
57
|
-
return sortEnrollmentRequests(a, b);
|
|
58
|
-
}
|
|
59
|
-
else if (isERa || isERb) {
|
|
60
|
-
// Only one is an EnrollmentRequest
|
|
61
|
-
return isERa ? -1 : 1;
|
|
62
|
-
}
|
|
63
|
-
// Both are Devices
|
|
32
|
+
const sortDeviceStatus = (devices, status) => devices.sort((a, b) => {
|
|
64
33
|
switch (status) {
|
|
65
34
|
case 'ApplicationStatus':
|
|
66
35
|
return sortByApplicationStatus(a, b);
|
|
@@ -74,15 +43,6 @@ exports.sortDeviceStatus = sortDeviceStatus;
|
|
|
74
43
|
const sortDevicesByFleet = (resources) => resources.sort((a, b) => {
|
|
75
44
|
const aFleet = (0, devices_1.getDeviceFleet)(a.metadata);
|
|
76
45
|
const bFleet = (0, devices_1.getDeviceFleet)(b.metadata);
|
|
77
|
-
if (!aFleet && !bFleet) {
|
|
78
|
-
// sort ERs first, then Devices
|
|
79
|
-
if ((0, extraTypes_1.isEnrollmentRequest)(a) && !(0, extraTypes_1.isEnrollmentRequest)(b)) {
|
|
80
|
-
return -1;
|
|
81
|
-
}
|
|
82
|
-
if ((0, extraTypes_1.isEnrollmentRequest)(b) && !(0, extraTypes_1.isEnrollmentRequest)(a)) {
|
|
83
|
-
return 1;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
46
|
return (aFleet || '-').localeCompare(bFleet || '-');
|
|
87
47
|
});
|
|
88
48
|
exports.sortDevicesByFleet = sortDevicesByFleet;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.js","sourceRoot":"","sources":["../../../../src/utils/sort/device.ts"],"names":[],"mappings":";;;AACA,wCAA4C;
|
|
1
|
+
{"version":3,"file":"device.js","sourceRoot":"","sources":["../../../../src/utils/sort/device.ts"],"names":[],"mappings":";;;AACA,wCAA4C;AAE5C,+CAK2B;AAC3B,yDAAuE;AACvE,6CAA2D;AAE3D,MAAM,uBAAuB,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE;;IACvD,MAAM,OAAO,GAAG,IAAA,qCAA2B,EAAC,MAAA,CAAC,CAAC,MAAM,0CAAE,mBAAmB,CAAC,CAAC;IAC3E,MAAM,OAAO,GAAG,IAAA,qCAA2B,EAAC,MAAA,CAAC,CAAC,MAAM,0C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E,EAAE;IACpB,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,mBAAmB;YACtB,OAAO,uBAAuB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACvC,KAAK,cAAc;YACjB,OAAO,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClC,KAAK,oBAAoB;YACvB,OAAO,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC,CAAC,CAAC;AAbQ,QAAA,gBAAgB,oBAaxB;AAEE,MAAM,kBAAkB,GAAG,CAAC,SAAwB,EAAE,EAAE,CAC7D,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;IACtB,MAAM,MAAM,GAAG,IAAA,wBAAc,EAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC1C,MAAM,MAAM,GAAG,IAAA,wBAAc,EAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC1C,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,aAAa,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC;AACtD,CAAC,CAAC,CAAC;AALQ,QAAA,kBAAkB,sBAK1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fleet.d.ts","sourceRoot":"","sources":["../../../../src/utils/sort/fleet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAGzC,eAAO,MAAM,iBAAiB,WAAY,MAAM,KAAK,CAAC,YAKlD,CAAC;AAEL,eAAO,MAAM,YAAY,WAAY,MAAM,KAAK,CAAC,YAK7C,CAAC"}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sortByStatus = exports.sortFleetsByOSImg = void 0;
|
|
4
|
-
const extraTypes_1 = require("../../types/extraTypes");
|
|
5
|
-
const repository_1 = require("../status/repository");
|
|
6
4
|
const fleet_1 = require("../status/fleet");
|
|
7
|
-
const sortFleetsByOSImg = (
|
|
5
|
+
const sortFleetsByOSImg = (fleets) => fleets.sort((a, b) => {
|
|
8
6
|
var _a, _b;
|
|
9
|
-
const aOS = ((
|
|
10
|
-
const bOS = ((
|
|
7
|
+
const aOS = ((_a = a.spec.template.spec.os) === null || _a === void 0 ? void 0 : _a.image) || '-';
|
|
8
|
+
const bOS = ((_b = b.spec.template.spec.os) === null || _b === void 0 ? void 0 : _b.image) || '-';
|
|
11
9
|
return aOS.localeCompare(bOS);
|
|
12
10
|
});
|
|
13
11
|
exports.sortFleetsByOSImg = sortFleetsByOSImg;
|
|
14
|
-
const sortByStatus = (
|
|
15
|
-
const aStatus = (0,
|
|
16
|
-
const bStatus = (0,
|
|
12
|
+
const sortByStatus = (fleets) => fleets.sort((a, b) => {
|
|
13
|
+
const aStatus = (0, fleet_1.getFleetSyncStatus)(a).status;
|
|
14
|
+
const bStatus = (0, fleet_1.getFleetSyncStatus)(b).status;
|
|
17
15
|
return aStatus.localeCompare(bStatus);
|
|
18
16
|
});
|
|
19
17
|
exports.sortByStatus = sortByStatus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fleet.js","sourceRoot":"","sources":["../../../../src/utils/sort/fleet.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"fleet.js","sourceRoot":"","sources":["../../../../src/utils/sort/fleet.ts"],"names":[],"mappings":";;;AACA,2CAAqD;AAE9C,MAAM,iBAAiB,GAAG,CAAC,MAAoB,EAAE,EAAE,CACxD,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;;IACnB,MAAM,GAAG,GAAG,CAAA,MAAA,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,0CAAE,KAAK,KAAI,GAAG,CAAC;IAClD,MAAM,GAAG,GAAG,CAAA,MAAA,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,0CAAE,KAAK,KAAI,GAAG,CAAC;IAClD,OAAO,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;AAChC,CAAC,CAAC,CAAC;AALQ,QAAA,iBAAiB,qBAKzB;AAEE,MAAM,YAAY,GAAG,CAAC,MAAoB,EAAE,EAAE,CACnD,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;IACnB,MAAM,OAAO,GAAG,IAAA,0BAAkB,EAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAC7C,MAAM,OAAO,GAAG,IAAA,0BAAkB,EAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAC7C,OAAO,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AACxC,CAAC,CAAC,CAAC;AALQ,QAAA,YAAY,gBAKpB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Device, EnrollmentRequest, ObjectMeta } from '@flightctl/types';
|
|
2
|
+
export declare const sortByName: <R extends {
|
|
3
|
+
metadata: ObjectMeta;
|
|
4
|
+
}>(resources: R[]) => R[];
|
|
5
|
+
export declare const sortByLastSeenDate: (devices: Device[]) => Device[];
|
|
6
|
+
export declare const sortByCreationDate: (enrollments: EnrollmentRequest[]) => EnrollmentRequest[];
|
|
7
|
+
export declare const sortByAlias: (devices: Device[]) => Device[];
|
|
8
|
+
//# sourceMappingURL=generic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generic.d.ts","sourceRoot":"","sources":["../../../../src/utils/sort/generic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEzE,eAAO,MAAM,UAAU;cAA0B,UAAU;yBAKvD,CAAC;AAEL,eAAO,MAAM,kBAAkB,YAAa,MAAM,EAAE,aAahD,CAAC;AAEL,eAAO,MAAM,kBAAkB,gBAAiB,iBAAiB,EAAE,wBAK/D,CAAC;AAEL,eAAO,MAAM,WAAW,YAAa,MAAM,EAAE,aAKzC,CAAC"}
|
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sortByAlias = exports.sortByLastSeenDate = exports.sortByName = void 0;
|
|
4
|
-
const extraTypes_1 = require("../../types/extraTypes");
|
|
3
|
+
exports.sortByAlias = exports.sortByCreationDate = exports.sortByLastSeenDate = exports.sortByName = void 0;
|
|
5
4
|
const sortByName = (resources) => resources.sort((a, b) => {
|
|
6
5
|
const aName = a.metadata.name || '-';
|
|
7
6
|
const bName = b.metadata.name || '-';
|
|
8
7
|
return aName.localeCompare(bName);
|
|
9
8
|
});
|
|
10
9
|
exports.sortByName = sortByName;
|
|
11
|
-
const sortByLastSeenDate = (
|
|
12
|
-
const getDate = (
|
|
10
|
+
const sortByLastSeenDate = (devices) => devices.sort((a, b) => {
|
|
11
|
+
const getDate = (device) => {
|
|
13
12
|
var _a;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return lastSeen;
|
|
18
|
-
}
|
|
13
|
+
const lastSeen = (_a = device.status) === null || _a === void 0 ? void 0 : _a.lastSeen;
|
|
14
|
+
if (lastSeen) {
|
|
15
|
+
return lastSeen;
|
|
19
16
|
}
|
|
20
|
-
return
|
|
17
|
+
return device.metadata.creationTimestamp || 0;
|
|
21
18
|
};
|
|
22
19
|
const aDate = getDate(a);
|
|
23
20
|
const bDate = getDate(b);
|
|
24
21
|
return new Date(aDate).getTime() - new Date(bDate).getTime();
|
|
25
22
|
});
|
|
26
23
|
exports.sortByLastSeenDate = sortByLastSeenDate;
|
|
27
|
-
const
|
|
24
|
+
const sortByCreationDate = (enrollments) => enrollments.sort((a, b) => {
|
|
25
|
+
const aDate = a.metadata.creationTimestamp || 0;
|
|
26
|
+
const bDate = b.metadata.creationTimestamp || 0;
|
|
27
|
+
return new Date(aDate).getTime() - new Date(bDate).getTime();
|
|
28
|
+
});
|
|
29
|
+
exports.sortByCreationDate = sortByCreationDate;
|
|
30
|
+
const sortByAlias = (devices) => devices.sort((a, b) => {
|
|
28
31
|
var _a, _b;
|
|
29
32
|
const aAlias = ((_a = a.metadata.labels) === null || _a === void 0 ? void 0 : _a.alias) || '-';
|
|
30
33
|
const bAlias = ((_b = b.metadata.labels) === null || _b === void 0 ? void 0 : _b.alias) || '-';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic.js","sourceRoot":"","sources":["../../../../src/utils/sort/generic.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"generic.js","sourceRoot":"","sources":["../../../../src/utils/sort/generic.ts"],"names":[],"mappings":";;;AAEO,MAAM,UAAU,GAAG,CAAqC,SAAc,EAAE,EAAE,CAC/E,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;IACtB,MAAM,KAAK,GAAG,CAAC,CAAC,QAAQ,CAAC,IAAI,IAAI,GAAG,CAAC;IACrC,MAAM,KAAK,GAAG,CAAC,CAAC,QAAQ,CAAC,IAAI,IAAI,GAAG,CAAC;IACrC,OAAO,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACpC,CAAC,CAAC,CAAC;AALQ,QAAA,UAAU,cAKlB;AAEE,MAAM,kBAAkB,GAAG,CAAC,OAAiB,EAAE,EAAE,CACtD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;IACpB,MAAM,OAAO,GAAG,CAAC,MAAc,EAAE,EAAE;;QACjC,MAAM,QAAQ,GAAG,MAAA,MAAM,CAAC,MAAM,0CAAE,QAAQ,CAAC;QACzC,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,QAAQ,CAAC;QAClB,CAAC;QACD,OAAO,MAAM,CAAC,QAAQ,CAAC,iBAAiB,IAAI,CAAC,CAAC;IAChD,CA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export declare const sortRepositoriesByUrl: (resources: Repository[]) => Repository[];
|
|
3
|
+
export declare const sortRepositoriesBySyncStatus: (resources: Repository[]) => Repository[];
|
|
4
|
+
export declare const sortRepositoriesByLastTransition: (resources: Repository[]) => Repository[];
|
|
5
|
+
export declare const sortRepositoriesByType: (resources: Repository[]) => Repository[];
|
|
6
|
+
//# sourceMappingURL=repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../../src/utils/sort/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG5D,eAAO,MAAM,qBAAqB,cAAe,UAAU,EAAE,iBAKzD,CAAC;AAEL,eAAO,MAAM,4BAA4B,cAAe,UAAU,EAAE,iBAKhE,CAAC;AAEL,eAAO,MAAM,gCAAgC,cAAe,UAAU,EAAE,iBAKpE,CAAC;AAEL,eAAO,MAAM,sBAAsB,cAAe,UAAU,EAAE,iBAG1D,CAAC"}
|
|
@@ -16,8 +16,8 @@ const sortRepositoriesBySyncStatus = (resources) => resources.sort((a, b) => {
|
|
|
16
16
|
});
|
|
17
17
|
exports.sortRepositoriesBySyncStatus = sortRepositoriesBySyncStatus;
|
|
18
18
|
const sortRepositoriesByLastTransition = (resources) => resources.sort((a, b) => {
|
|
19
|
-
const aTransition = (0, repository_1.
|
|
20
|
-
const bTransition = (0, repository_1.
|
|
19
|
+
const aTransition = (0, repository_1.getLastTransitionTimeText)(a).timestamp;
|
|
20
|
+
const bTransition = (0, repository_1.getLastTransitionTimeText)(b).timestamp;
|
|
21
21
|
return new Date(bTransition).getTime() - new Date(aTransition).getTime();
|
|
22
22
|
});
|
|
23
23
|
exports.sortRepositoriesByLastTransition = sortRepositoriesByLastTransition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../../../../src/utils/sort/repository.ts"],"names":[],"mappings":";;;AAAA,4CAA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WAAW,CAAC,CAAC,OAAO,EAAE,CAAC;AAC3E,CAAC,CAAC,CAAC;AALQ,QAAA,gCAAgC,oCAKxC;AAEE,MAAM,sBAAsB,GAAG,CAAC,SAAuB,EAAE,EAAE,CAChE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;IACtB,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,oBAAY,CAAC,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,oBAAY,CAAC,GAAG,CAAC,CAAC;AAC1F,CAAC,CAAC,CAAC;AAHQ,QAAA,sBAAsB,0BAG9B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ResourceSync } from '@flightctl/types';
|
|
2
|
+
export declare const sortResourceSyncsByPath: (resources: ResourceSync[]) => ResourceSync[];
|
|
3
|
+
export declare const sortResourceSyncsByRevision: (resources: ResourceSync[]) => ResourceSync[];
|
|
4
|
+
export declare const sortResourceSyncsByStatus: (resources: ResourceSync[]) => ResourceSync[];
|
|
5
|
+
export declare const sortResourceSyncsByHash: (resources: ResourceSync[]) => ResourceSync[];
|
|
6
|
+
//# sourceMappingURL=resourceSync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resourceSync.d.ts","sourceRoot":"","sources":["../../../../src/utils/sort/resourceSync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGhD,eAAO,MAAM,uBAAuB,cAAe,YAAY,EAAE,mBAK7D,CAAC;AAEL,eAAO,MAAM,2BAA2B,cAAe,YAAY,EAAE,mBAKjE,CAAC;AAEL,eAAO,MAAM,yBAAyB,cAAe,YAAY,EAAE,mBAK/D,CAAC;AAEL,eAAO,MAAM,uBAAuB,cAAe,YAAY,EAAE,mBAK7D,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TFunction } from 'react-i18next';
|
|
2
|
+
import { ApplicationStatusType as AppStatus, ApplicationsSummaryStatusType as AppSummaryStatus } from '@flightctl/types';
|
|
3
|
+
import { StatusItem } from './common';
|
|
4
|
+
export declare const getApplicationSummaryStatusItems: (t: TFunction) => StatusItem<AppSummaryStatus>[];
|
|
5
|
+
export declare const getApplicationStatusItems: (t: TFunction) => StatusItem<AppStatus>[];
|
|
6
|
+
export declare const applicationSummaryStatusOrder: AppSummaryStatus[];
|
|
7
|
+
//# sourceMappingURL=applications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applications.d.ts","sourceRoot":"","sources":["../../../../src/utils/status/applications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EACL,qBAAqB,IAAI,SAAS,EAClC,6BAA6B,IAAI,gBAAgB,EAClD,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,eAAO,MAAM,gCAAgC,MAAO,SAAS,KAAG,WAAW,gBAAgB,CAAC,EAsB3F,CAAC;AAEF,eAAO,MAAM,yBAAyB,MAAO,SAAS,KAAG,WAAW,SAAS,CAAC,EAuB7E,CAAC;AAEF,eAAO,MAAM,6BAA6B,oBAA4E,CAAC"}
|
|
@@ -3,53 +3,51 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.applicationSummaryStatusOrder = exports.getApplicationStatusItems = exports.getApplicationSummaryStatusItems = void 0;
|
|
4
4
|
const types_1 = require("@flightctl/types");
|
|
5
5
|
const getApplicationSummaryStatusItems = (t) => [
|
|
6
|
-
// Application summary statuses
|
|
7
6
|
{
|
|
8
|
-
id: types_1.ApplicationsSummaryStatusType.
|
|
9
|
-
label: t('
|
|
10
|
-
level: '
|
|
7
|
+
id: types_1.ApplicationsSummaryStatusType.ApplicationsSummaryStatusError,
|
|
8
|
+
label: t('Error'),
|
|
9
|
+
level: 'danger',
|
|
11
10
|
},
|
|
12
11
|
{
|
|
13
12
|
id: types_1.ApplicationsSummaryStatusType.ApplicationsSummaryStatusDegraded,
|
|
14
13
|
label: t('Degraded'),
|
|
15
14
|
level: 'warning',
|
|
16
15
|
},
|
|
17
|
-
{
|
|
18
|
-
id: types_1.ApplicationsSummaryStatusType.ApplicationsSummaryStatusError,
|
|
19
|
-
label: t('Error'),
|
|
20
|
-
level: 'danger',
|
|
21
|
-
},
|
|
22
16
|
{
|
|
23
17
|
id: types_1.ApplicationsSummaryStatusType.ApplicationsSummaryStatusUnknown,
|
|
24
18
|
label: t('Unknown'),
|
|
25
19
|
level: 'unknown',
|
|
26
20
|
},
|
|
27
|
-
];
|
|
28
|
-
exports.getApplicationSummaryStatusItems = getApplicationSummaryStatusItems;
|
|
29
|
-
const getApplicationStatusItems = (t) => [
|
|
30
|
-
// Application statuses
|
|
31
|
-
{
|
|
32
|
-
id: types_1.ApplicationStatusType.ApplicationStatusRunning,
|
|
33
|
-
label: t('Running'),
|
|
34
|
-
level: 'success',
|
|
35
|
-
},
|
|
36
21
|
{
|
|
37
|
-
id: types_1.
|
|
38
|
-
label: t('
|
|
22
|
+
id: types_1.ApplicationsSummaryStatusType.ApplicationsSummaryStatusHealthy,
|
|
23
|
+
label: t('Healthy'),
|
|
39
24
|
level: 'success',
|
|
40
25
|
},
|
|
26
|
+
];
|
|
27
|
+
exports.getApplicationSummaryStatusItems = getApplicationSummaryStatusItems;
|
|
28
|
+
const getApplicationStatusItems = (t) => [
|
|
29
|
+
{ id: types_1.ApplicationStatusType.ApplicationStatusError, label: t('Error'), level: 'danger' },
|
|
41
30
|
{
|
|
42
31
|
id: types_1.ApplicationStatusType.ApplicationStatusPreparing,
|
|
43
32
|
label: t('Preparing'),
|
|
44
33
|
level: 'info',
|
|
45
34
|
},
|
|
46
35
|
{ id: types_1.ApplicationStatusType.ApplicationStatusStarting, label: t('Starting'), level: 'info' },
|
|
47
|
-
{ id: types_1.ApplicationStatusType.ApplicationStatusError, label: t('Error'), level: 'danger' },
|
|
48
36
|
{
|
|
49
37
|
id: types_1.ApplicationStatusType.ApplicationStatusUnknown,
|
|
50
38
|
label: t('Unknown'),
|
|
51
39
|
level: 'unknown',
|
|
52
40
|
},
|
|
41
|
+
{
|
|
42
|
+
id: types_1.ApplicationStatusType.ApplicationStatusRunning,
|
|
43
|
+
label: t('Running'),
|
|
44
|
+
level: 'success',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: types_1.ApplicationStatusType.ApplicationStatusCompleted,
|
|
48
|
+
label: t('Completed'),
|
|
49
|
+
level: 'success',
|
|
50
|
+
},
|
|
53
51
|
];
|
|
54
52
|
exports.getApplicationStatusItems = getApplicationStatusItems;
|
|
55
53
|
exports.applicationSummaryStatusOrder = (0, exports.getApplicationSummaryStatusItems)((s) => s).map((item) => item.id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applications.js","sourceRoot":"","sources":["../../../../src/utils/status/applications.ts"],"names":[],"mappings":";;;AAEA,4CAG0B;AAGnB,MAAM,gCAAgC,GAAG,CAAC,CAAY,EAAkC,EAAE,CAAC;IAChG
|
|
1
|
+
{"version":3,"file":"applications.js","sourceRoot":"","sources":["../../../../src/utils/status/applications.ts"],"names":[],"mappings":";;;AAEA,4CAG0B;AAGnB,MAAM,gCAAgC,GAAG,CAAC,CAAY,EAAkC,EAAE,CAAC;IAChG;QACE,EAAE,EAAE,qCAAgB,CAAC,8BAA8B;QACnD,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC;QACjB,KAAK,EAAE,QAAQ;KAChB;IACD;QACE,EAAE,EAAE,qCAAgB,CAAC,iCAAiC;QACtD,KAAK,EAAE,CAAC,CAAC,UAAU,CAAC;QACpB,KAAK,EAAE,SAAS;KACjB;IAED;QACE,EAAE,EAAE,qCAAgB,CAAC,gCAAgC;QACrD,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC;QACnB,KAAK,EAAE,SAAS;KACjB;IAC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|
3
|
+
export type StatusLevel = 'custom' | 'info' | 'success' | 'warning' | 'danger' | 'unknown';
|
|
4
|
+
export interface StatusItem<T extends string> {
|
|
5
|
+
id: T;
|
|
6
|
+
label: string;
|
|
7
|
+
level: StatusLevel;
|
|
8
|
+
customIcon?: React.ComponentClass<SVGIconProps>;
|
|
9
|
+
}
|
|
10
|
+
export declare const getDefaultStatusIcon: (level: StatusLevel) => React.ComponentClass<SVGIconProps, any>;
|
|
11
|
+
export declare const getDefaultStatusColor: (level: StatusLevel) => string;
|
|
12
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/utils/status/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAc1E,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE3F,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,MAAM;IAC1C,EAAE,EAAE,CAAC,CAAC;IACN,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,WAAW,CAAC;IACnB,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;CACjD;AAED,eAAO,MAAM,oBAAoB,UAAW,WAAW,4CAqBtD,CAAC;AAEF,eAAO,MAAM,qBAAqB,UAAW,WAAW,WAuBvD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TFunction } from 'react-i18next';
|
|
2
|
+
import { ApplicationsSummaryStatusType, DeviceSummaryStatus as BEDeviceSummaryStatus, DeviceApplicationsSummaryStatus, DeviceIntegrityStatusSummaryType, DeviceSummaryStatusType, DeviceUpdatedStatus, DeviceUpdatedStatusType } from '@flightctl/types';
|
|
3
|
+
import { StatusItem } from './common';
|
|
4
|
+
export declare enum FilterSearchParams {
|
|
5
|
+
Fleet = "fleetId",
|
|
6
|
+
DeviceStatus = "devSt",
|
|
7
|
+
AppStatus = "appSt",
|
|
8
|
+
UpdatedStatus = "updSt",
|
|
9
|
+
Label = "label"
|
|
10
|
+
}
|
|
11
|
+
export type DeviceSummaryStatus = ApplicationsSummaryStatusType | DeviceUpdatedStatusType | DeviceSummaryStatusType | DeviceIntegrityStatusSummaryType;
|
|
12
|
+
export declare const getDeviceSummaryStatus: (deviceStatus?: BEDeviceSummaryStatus) => DeviceSummaryStatusType;
|
|
13
|
+
export declare const getApplicationSummaryStatus: (appSummaryStatus?: DeviceApplicationsSummaryStatus) => ApplicationsSummaryStatusType;
|
|
14
|
+
export declare const getSystemUpdateStatus: (updatedStatus?: DeviceUpdatedStatus) => DeviceUpdatedStatusType;
|
|
15
|
+
export declare const getDeviceStatusItems: (t: TFunction) => StatusItem<DeviceSummaryStatusType>[];
|
|
16
|
+
export declare const deviceStatusOrder: DeviceSummaryStatusType[];
|
|
17
|
+
//# sourceMappingURL=devices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devices.d.ts","sourceRoot":"","sources":["../../../../src/utils/status/devices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,EACL,6BAA6B,EAC7B,mBAAmB,IAAI,qBAAqB,EAC5C,+BAA+B,EAC/B,gCAAgC,EAChC,uBAAuB,EACvB,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,oBAAY,kBAAkB;IAC5B,KAAK,YAAY;IACjB,YAAY,UAAU;IACtB,SAAS,UAAU;IACnB,aAAa,UAAU;IACvB,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,mBAAmB,GAC3B,6BAA6B,GAC7B,uBAAuB,GACvB,uBAAuB,GACvB,gCAAgC,CAAC;AAErC,eAAO,MAAM,sBAAsB,kBAAmB,qBAAqB,KAAG,uBACF,CAAC;AAE7E,eAAO,MAAM,2BAA2B,sBACnB,+BAA+B,KACjD,6BACyF,CAAC;AAE7F,eAAO,MAAM,qBAAqB,mBAAoB,mBAAmB,KAAG,uBACC,CAAC;AAE9E,eAAO,MAAM,oBAAoB,MAAO,SAAS,KAAG,WAAW,uBAAuB,CAAC,EAgCtF,CAAC;AAEF,eAAO,MAAM,iBAAiB,2BAAgE,CAAC"}
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.deviceStatusOrder = exports.getDeviceStatusItems = exports.getSystemUpdateStatus = exports.getApplicationSummaryStatus = exports.getDeviceSummaryStatus = exports.FilterSearchParams = void 0;
|
|
4
4
|
const icons_1 = require("@patternfly/react-icons/dist/js/icons");
|
|
5
|
-
const pause_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/pause-circle-icon");
|
|
6
5
|
const types_1 = require("@flightctl/types");
|
|
7
|
-
const enrollmentRequest_1 = require("./enrollmentRequest");
|
|
8
6
|
var FilterSearchParams;
|
|
9
7
|
(function (FilterSearchParams) {
|
|
10
8
|
FilterSearchParams["Fleet"] = "fleetId";
|
|
@@ -21,17 +19,9 @@ const getSystemUpdateStatus = (updatedStatus) => (updatedStatus === null || upda
|
|
|
21
19
|
exports.getSystemUpdateStatus = getSystemUpdateStatus;
|
|
22
20
|
const getDeviceStatusItems = (t) => [
|
|
23
21
|
{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
level: 'info',
|
|
28
|
-
customIcon: pause_circle_icon_1.PauseCircleIcon,
|
|
29
|
-
},
|
|
30
|
-
// Device statuses
|
|
31
|
-
{
|
|
32
|
-
id: types_1.DeviceSummaryStatusType.DeviceSummaryStatusOnline,
|
|
33
|
-
label: t('Online'),
|
|
34
|
-
level: 'success',
|
|
22
|
+
id: types_1.DeviceSummaryStatusType.DeviceSummaryStatusError,
|
|
23
|
+
label: t('Error'),
|
|
24
|
+
level: 'danger',
|
|
35
25
|
},
|
|
36
26
|
{
|
|
37
27
|
id: types_1.DeviceSummaryStatusType.DeviceSummaryStatusDegraded,
|
|
@@ -39,9 +29,9 @@ const getDeviceStatusItems = (t) => [
|
|
|
39
29
|
level: 'warning',
|
|
40
30
|
},
|
|
41
31
|
{
|
|
42
|
-
id: types_1.DeviceSummaryStatusType.
|
|
43
|
-
label: t('
|
|
44
|
-
level: '
|
|
32
|
+
id: types_1.DeviceSummaryStatusType.DeviceSummaryStatusUnknown,
|
|
33
|
+
label: t('Unknown'),
|
|
34
|
+
level: 'unknown',
|
|
45
35
|
},
|
|
46
36
|
{
|
|
47
37
|
id: types_1.DeviceSummaryStatusType.DeviceSummaryStatusRebooting,
|
|
@@ -55,9 +45,9 @@ const getDeviceStatusItems = (t) => [
|
|
|
55
45
|
customIcon: icons_1.PowerOffIcon,
|
|
56
46
|
},
|
|
57
47
|
{
|
|
58
|
-
id: types_1.DeviceSummaryStatusType.
|
|
59
|
-
label: t('
|
|
60
|
-
level: '
|
|
48
|
+
id: types_1.DeviceSummaryStatusType.DeviceSummaryStatusOnline,
|
|
49
|
+
label: t('Online'),
|
|
50
|
+
level: 'success',
|
|
61
51
|
},
|
|
62
52
|
];
|
|
63
53
|
exports.getDeviceStatusItems = getDeviceStatusItems;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devices.js","sourceRoot":"","sources":["../../../../src/utils/status/devices.ts"],"names":[],"mappings":";;;AACA,iEAAqE;
|
|
1
|
+
{"version":3,"file":"devices.js","sourceRoot":"","sources":["../../../../src/utils/status/devices.ts"],"names":[],"mappings":";;;AACA,iEAAqE;AAErE,4CAQ0B;AAG1B,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,uCAAiB,CAAA;IACjB,4CAAsB,CAAA;IACtB,yCAAmB,CAAA;IACnB,6CAAuB,CAAA;IAC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AAQ;QACf,UAAU,EAAE,oBAAY;KACzB;IACD;QACE,EAAE,EAAE,+BAAuB,CAAC,yBAAyB;QACrD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC;QAClB,KAAK,EAAE,SAAS;KACjB;CACF,CAAC;AAhCW,QAAA,oBAAoB,wBAgC/B;AAEW,QAAA,iBAAiB,GAAG,IAAA,4BAAoB,EAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TFunction } from 'i18next';
|
|
2
|
+
import { EnrollmentRequest } from '@flightctl/types';
|
|
3
|
+
import { StatusItem } from './common';
|
|
4
|
+
export declare enum EnrollmentRequestStatus {
|
|
5
|
+
Pending = "Pending",
|
|
6
|
+
Approved = "Approved",
|
|
7
|
+
Denied = "Denied",
|
|
8
|
+
Unknown = "Unknown"
|
|
9
|
+
}
|
|
10
|
+
export declare const getEnrollmentRequestsStatusItems: (t: TFunction) => StatusItem<EnrollmentRequestStatus>[];
|
|
11
|
+
export declare const getApprovalStatus: (enrollmentRequest: EnrollmentRequest) => EnrollmentRequestStatus;
|
|
12
|
+
//# sourceMappingURL=enrollmentRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrollmentRequest.d.ts","sourceRoot":"","sources":["../../../../src/utils/status/enrollmentRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAiB,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtC,oBAAY,uBAAuB;IACjC,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,eAAO,MAAM,gCAAgC,MAAO,SAAS,KAAG,WAAW,uBAAuB,CAAC,EAsBlG,CAAC;AAEF,eAAO,MAAM,iBAAiB,sBAAuB,iBAAiB,KAAG,uBAYxE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Fleet } from '@flightctl/types';
|
|
2
|
+
import { FleetConditionType } from '../../types/extraTypes';
|
|
3
|
+
import { TFunction } from 'i18next';
|
|
4
|
+
declare const fleetStatusLabels: (t: TFunction) => {
|
|
5
|
+
OverlappingSelectors: string;
|
|
6
|
+
Valid: string;
|
|
7
|
+
Invalid: string;
|
|
8
|
+
SyncPending: string;
|
|
9
|
+
};
|
|
10
|
+
declare const getFleetSyncStatus: (fleet: Fleet, t?: TFunction) => {
|
|
11
|
+
status: FleetConditionType;
|
|
12
|
+
message: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
export { getFleetSyncStatus, fleetStatusLabels };
|
|
15
|
+
//# sourceMappingURL=fleet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fleet.d.ts","sourceRoot":"","sources":["../../../../src/utils/status/fleet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,QAAA,MAAM,iBAAiB,MAAO,SAAS;;;;;CAKrC,CAAC;AAEH,QAAA,MAAM,kBAAkB,UACf,KAAK,MACT,SAAS,KACX;IACD,QAAQ,kBAAkB,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CA2B7B,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TFunction } from 'i18next';
|
|
2
|
+
import { DeviceIntegrityStatusSummaryType } from '@flightctl/types';
|
|
3
|
+
import { StatusItem } from './common';
|
|
4
|
+
export declare const getIntegrityStatusItems: (t: TFunction) => StatusItem<DeviceIntegrityStatusSummaryType>[];
|
|
5
|
+
//# sourceMappingURL=integrity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrity.d.ts","sourceRoot":"","sources":["../../../../src/utils/status/integrity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,eAAO,MAAM,uBAAuB,MAAO,SAAS,KAAG,WAAW,gCAAgC,CAAC,EAqBlG,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TFunction } from 'i18next';
|
|
2
|
+
import { Condition, ConditionType, Repository, ResourceSync } from '@flightctl/types';
|
|
3
|
+
export type RepositorySyncStatus = ConditionType.ResourceSyncSynced | 'Not synced' | ConditionType.ResourceSyncResourceParsed | 'Not parsed' | ConditionType.RepositoryAccessible | 'Not accessible' | 'Sync pending';
|
|
4
|
+
declare const repositoryStatusLabels: (t: TFunction) => {
|
|
5
|
+
Synced: string;
|
|
6
|
+
'Not synced': string;
|
|
7
|
+
ResourceParsed: string;
|
|
8
|
+
'Not parsed': string;
|
|
9
|
+
Accessible: string;
|
|
10
|
+
'Not accessible': string;
|
|
11
|
+
'Sync pending': string;
|
|
12
|
+
};
|
|
13
|
+
declare const getRepositorySyncStatus: (repository: Repository | ResourceSync, t?: TFunction) => {
|
|
14
|
+
status: RepositorySyncStatus;
|
|
15
|
+
message: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
export declare const getLastTransitionTime: (conditions?: Condition[]) => string | undefined;
|
|
18
|
+
declare const getLastTransitionTimeText: (repository: Repository, t?: TFunction) => {
|
|
19
|
+
text: string;
|
|
20
|
+
timestamp: string;
|
|
21
|
+
};
|
|
22
|
+
declare const getObservedHash: (resourceSync: ResourceSync) => string | undefined;
|
|
23
|
+
export { getRepositorySyncStatus, getLastTransitionTimeText, getObservedHash, repositoryStatusLabels };
|
|
24
|
+
//# sourceMappingURL=repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../../src/utils/status/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,SAAS,EAAmB,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAIvG,MAAM,MAAM,oBAAoB,GAC5B,aAAa,CAAC,kBAAkB,GAChC,YAAY,GACZ,aAAa,CAAC,0BAA0B,GACxC,YAAY,GACZ,aAAa,CAAC,oBAAoB,GAClC,gBAAgB,GAChB,cAAc,CAAC;AAEnB,QAAA,MAAM,sBAAsB,MAAO,SAAS;;;;;;;;CAQ1C,CAAC;AAEH,QAAA,MAAM,uBAAuB,eACf,UAAU,GAAG,YAAY,MAClC,SAAS,KACX;IACD,QAAQ,oBAAoB,CAAC;IAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAqD7B,CAAC;AAEF,eAAO,MAAM,qBAAqB,gBAAiB,SAAS,EAAE,KAAG,MAAM,GAAG,SAUzE,CAAC;AAEF,QAAA,MAAM,yBAAyB,eACjB,UAAU,MACnB,SAAS,KACX;IACD,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CAQnB,CAAC;AAEF,QAAA,MAAM,eAAe,iBAAkB,YAAY,KAAG,MAAM,GAAG,SAG9D,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,eAAe,EAAE,sBAAsB,EAAE,CAAC"}
|