@flightctl/ui-components 0.0.3 → 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 +11 -3
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditLabelsForm.js","sourceRoot":"","sources":["../../../../../src/components/modals/EditLabelsModal/EditLabelsForm.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,mCAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"EditLabelsForm.js","sourceRoot":"","sources":["../../../../../src/components/modals/EditLab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AAC;YAC5B,CAAC;QACH,CAAC,CAAA,EACD,gBAAgB,EAAE,mBAAmB,CAAC,CAAC,CAAC,IAEvC,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,oBAAC,qBAAqB,IAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,GAAI,CACzG,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,cAAc,CAAC"}
|
package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { EnrollmentRequest } from '@flightctl/types';
|
|
3
|
+
import './MassApproveDeviceModal.css';
|
|
4
|
+
type MassApproveDeviceModalProps = {
|
|
5
|
+
onClose: VoidFunction;
|
|
6
|
+
pendingEnrollments: Array<EnrollmentRequest>;
|
|
7
|
+
onApproveSuccess: VoidFunction;
|
|
8
|
+
};
|
|
9
|
+
declare const MassApproveDeviceModal: React.FC<MassApproveDeviceModalProps>;
|
|
10
|
+
export default MassApproveDeviceModal;
|
|
11
|
+
//# sourceMappingURL=MassApproveDeviceModal.d.ts.map
|
package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MassApproveDeviceModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAA6B,MAAM,kBAAkB,CAAC;AAyBhF,OAAO,8BAA8B,CAAC;AAStC,KAAK,2BAA2B,GAAG;IACjC,OAAO,EAAE,YAAY,CAAC;IACtB,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAC7C,gBAAgB,EAAE,YAAY,CAAC;CAChC,CAAC;AAEF,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAoJjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js
CHANGED
|
@@ -11,51 +11,19 @@ const FlightCtlForm_1 = tslib_1.__importDefault(require("../../../form/FlightCtl
|
|
|
11
11
|
const validations_1 = require("../../../form/validations");
|
|
12
12
|
const ResourceLink_1 = tslib_1.__importDefault(require("../../../common/ResourceLink"));
|
|
13
13
|
const typeUtils_1 = require("../../../../types/typeUtils");
|
|
14
|
-
const extraTypes_1 = require("../../../../types/extraTypes");
|
|
15
|
-
const enrollmentRequest_1 = require("../../../../utils/status/enrollmentRequest");
|
|
16
14
|
const error_1 = require("../../../../utils/error");
|
|
17
15
|
const useAppContext_1 = require("../../../../hooks/useAppContext");
|
|
18
16
|
const useTranslation_1 = require("../../../../hooks/useTranslation");
|
|
19
17
|
const labels_1 = require("../../../../utils/labels");
|
|
20
18
|
require("./MassApproveDeviceModal.css");
|
|
21
19
|
const templateToName = (index, nameTemplate) => nameTemplate ? nameTemplate.replace(/{{n+}}/g, `${index + 1}`) : '';
|
|
22
|
-
const
|
|
23
|
-
return (0, extraTypes_1.isEnrollmentRequest)(r) && (0, enrollmentRequest_1.getApprovalStatus)(r) === enrollmentRequest_1.EnrollmentRequestStatus.Pending;
|
|
24
|
-
};
|
|
25
|
-
const ApprovedDevicesTable = ({ devices }) => {
|
|
26
|
-
const { t } = (0, useTranslation_1.useTranslation)();
|
|
27
|
-
return (React.createElement(react_table_1.Table, null,
|
|
28
|
-
React.createElement(react_table_1.Thead, null,
|
|
29
|
-
React.createElement(react_table_1.Tr, null,
|
|
30
|
-
React.createElement(react_table_1.Th, { width: 25 }, t('Name')),
|
|
31
|
-
React.createElement(react_table_1.Th, { width: 50 }, t('Alias')))),
|
|
32
|
-
React.createElement(react_table_1.Tbody, null, devices.map((device) => {
|
|
33
|
-
var _a;
|
|
34
|
-
return (React.createElement(react_table_1.Tr, { key: device.metadata.name },
|
|
35
|
-
React.createElement(react_table_1.Td, { dataLabel: t('Name') },
|
|
36
|
-
React.createElement(ResourceLink_1.default, { id: device.metadata.name })),
|
|
37
|
-
React.createElement(react_table_1.Td, { dataLabel: t('Alias') }, ((_a = device.metadata.labels) === null || _a === void 0 ? void 0 : _a.alias) || '-')));
|
|
38
|
-
}))));
|
|
39
|
-
};
|
|
40
|
-
const MassApproveDeviceModal = ({ onClose, onApproveSuccess, resources }) => {
|
|
20
|
+
const MassApproveDeviceModal = ({ onClose, onApproveSuccess, pendingEnrollments, }) => {
|
|
41
21
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
42
22
|
const [progress, setProgress] = React.useState(0);
|
|
43
23
|
const [totalProgress, setTotalProgress] = React.useState(0);
|
|
44
24
|
const [errors, setErrors] = React.useState();
|
|
45
25
|
const { user, fetch: { post }, } = (0, useAppContext_1.useAppContext)();
|
|
46
|
-
const
|
|
47
|
-
const resourcesToSkip = resources.filter((r) => !isPendingEnrollmentRequest(r));
|
|
48
|
-
if (pendingEnrollments.length === 0) {
|
|
49
|
-
return (React.createElement(react_core_1.Modal, { title: t('Approve pending devices'), isOpen: true, onClose: onClose, showClose: true, variant: "medium", actions: [
|
|
50
|
-
React.createElement(react_core_1.Button, { key: "close", variant: "primary", onClick: onClose }, t('Close')),
|
|
51
|
-
] },
|
|
52
|
-
React.createElement(react_core_1.Stack, { hasGutter: true },
|
|
53
|
-
React.createElement(react_core_1.StackItem, null,
|
|
54
|
-
React.createElement(react_core_1.Alert, { variant: "info", isInline: true, title: t('All the devices you selected are already approved and cannot be approved again.') })),
|
|
55
|
-
React.createElement(react_core_1.StackItem, null,
|
|
56
|
-
React.createElement(ApprovedDevicesTable, { devices: resourcesToSkip })))));
|
|
57
|
-
}
|
|
58
|
-
const approveResources = (values) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
26
|
+
const approveEnrollments = (values) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
59
27
|
setProgress(0);
|
|
60
28
|
setErrors(undefined);
|
|
61
29
|
const promises = pendingEnrollments.map((r, index) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -84,7 +52,7 @@ const MassApproveDeviceModal = ({ onClose, onApproveSuccess, resources }) => {
|
|
|
84
52
|
return (React.createElement(formik_1.Formik, { initialValues: {
|
|
85
53
|
labels: [],
|
|
86
54
|
deviceAlias: '',
|
|
87
|
-
}, validationSchema: (0, validations_1.deviceApprovalValidationSchema)(t, { isSingleDevice: false }), onSubmit:
|
|
55
|
+
}, validationSchema: (0, validations_1.deviceApprovalValidationSchema)(t, { isSingleDevice: false }), onSubmit: approveEnrollments }, ({ isSubmitting, values, submitForm, isValid }) => (React.createElement(react_core_1.Modal, { title: t('Approve pending devices'), isOpen: true, onClose: onClose, showClose: !isSubmitting, variant: "medium", actions: [
|
|
88
56
|
React.createElement(react_core_1.Button, { key: "approve", variant: "primary", onClick: submitForm, isLoading: isSubmitting, isDisabled: isSubmitting || !isValid }, t('Approve')),
|
|
89
57
|
React.createElement(react_core_1.Button, { key: "cancel", variant: "link", onClick: onClose, isDisabled: isSubmitting }, t('Cancel')),
|
|
90
58
|
] },
|
|
@@ -110,12 +78,6 @@ const MassApproveDeviceModal = ({ onClose, onApproveSuccess, resources }) => {
|
|
|
110
78
|
React.createElement("strong", null,
|
|
111
79
|
" ",
|
|
112
80
|
`{{n}}`)) })))),
|
|
113
|
-
resourcesToSkip.length > 0 && (React.createElement(React.Fragment, null,
|
|
114
|
-
React.createElement(react_core_1.StackItem, null,
|
|
115
|
-
React.createElement(react_core_1.Alert, { variant: "info", isInline: true, title: t('Some devices you selected are already approved and will be excluded.') })),
|
|
116
|
-
React.createElement(react_core_1.StackItem, null,
|
|
117
|
-
React.createElement(react_core_1.ExpandableSection, { toggleText: t('Show already approved devices') },
|
|
118
|
-
React.createElement(ApprovedDevicesTable, { devices: resourcesToSkip }))))),
|
|
119
81
|
isSubmitting && (React.createElement(react_core_1.StackItem, null,
|
|
120
82
|
React.createElement(react_core_1.Progress, { value: progress, min: 0, max: totalProgress, title: t('Approving...'), measureLocation: react_core_1.ProgressMeasureLocation.top, label: t('{{progress}} of {{totalProgress}}', { progress, totalProgress }), valueText: t('{{progress}} of {{totalProgress}}', { progress, totalProgress }) }))),
|
|
121
83
|
(errors === null || errors === void 0 ? void 0 : errors.length) && (React.createElement(react_core_1.StackItem, null,
|
package/dist/src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MassApproveDeviceModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAE/B,
|
|
1
|
+
{"version":3,"file":"MassApproveDeviceModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassApproveDeviceModal/MassApproveDeviceModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAE/B,uDASgC;AAChC,yDAA0E;AAC1E,mCAAgC;AAEhC,gFAAgD;AAChD,oFAAoD;AACpD,wFAAwD;AACxD,2DAA2E;AAC3E,wFAAwD;AACxD,2DAAgE;AAChE,mDAA0D;AAC1D,mEAAgE;AAChE,qEAAkE;AAClE,qDAAsD;AAEtD,wCAAsC;AAEtC,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,YAAoB,EAAE,EAAE,CAC7D,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAYtE,MAAM,sBAAsB,GAA0C,CAAC,EACrE,OAAO,EACP,gBAAgB,EAChB,kBAAkB,GACnB,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,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AK,EAAE,QAAQ,EACf,GAAG,EAAE,CAAC,EACN,GAAG,EAAE,aAAa,EAClB,KAAK,EAAE,CAAC,CAAC,cAAc,CAAC,EACxB,eAAe,EAAE,oCAAuB,CAAC,GAAG,EAC5C,KAAK,EAAE,CAAC,CAAC,mCAAmC,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,EAC1E,SAAS,EAAE,CAAC,CAAC,mCAAmC,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,GAC9E,CACQ,CACb;YACA,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,KAAI,CACjB,oBAAC,sBAAS;gBACR,oBAAC,kBAAK,IAAC,QAAQ,QAAC,OAAO,EAAC,QAAQ,EAAC,KAAK,EAAE,CAAC,CAAC,mBAAmB,CAAC;oBAC5D,oBAAC,kBAAK,IAAC,SAAS,UACb,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,oBAAC,sBAAS,IAAC,GAAG,EAAE,KAAK,IAAG,CAAC,CAAa,CACvC,CAAC,CACI,CACF,CACE,CACb,CACK,CACF,CACT,CACM,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,sBAAsB,CAAC"}
|
package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Device, EnrollmentRequest } from '@flightctl/types';
|
|
3
|
+
type MassDeleteDeviceModalProps = {
|
|
4
|
+
onClose: VoidFunction;
|
|
5
|
+
resources: Array<Device | EnrollmentRequest>;
|
|
6
|
+
onDeleteSuccess: VoidFunction;
|
|
7
|
+
};
|
|
8
|
+
declare const MassDeleteDeviceModal: React.FC<MassDeleteDeviceModalProps>;
|
|
9
|
+
export default MassDeleteDeviceModal;
|
|
10
|
+
//# sourceMappingURL=MassDeleteDeviceModal.d.ts.map
|
package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MassDeleteDeviceModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAS7D,KAAK,0BAA0B,GAAG;IAChC,OAAO,EAAE,YAAY,CAAC;IACtB,SAAS,EAAE,KAAK,CAAC,MAAM,GAAG,iBAAiB,CAAC,CAAC;IAC7C,eAAe,EAAE,YAAY,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA+F/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_core_1 = require("@patternfly/react-core");
|
|
5
4
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const
|
|
7
|
-
const useFetch_1 = require("../../../../hooks/useFetch");
|
|
5
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
8
6
|
const react_table_1 = require("@patternfly/react-table");
|
|
9
7
|
const extraTypes_1 = require("../../../../types/extraTypes");
|
|
8
|
+
const error_1 = require("../../../../utils/error");
|
|
9
|
+
const useFetch_1 = require("../../../../hooks/useFetch");
|
|
10
10
|
const useTranslation_1 = require("../../../../hooks/useTranslation");
|
|
11
11
|
const typeUtils_1 = require("../../../../types/typeUtils");
|
|
12
12
|
const ResourceLink_1 = tslib_1.__importDefault(require("../../../common/ResourceLink"));
|
|
@@ -55,7 +55,7 @@ const MassDeleteDeviceModal = ({ onClose, resources, onDeleteSuccess }) => {
|
|
|
55
55
|
React.createElement(react_table_1.Td, { dataLabel: t('Alias') }, ((_a = resource.metadata.labels) === null || _a === void 0 ? void 0 : _a.alias) || '-')));
|
|
56
56
|
})))),
|
|
57
57
|
isDeleting && (React.createElement(react_core_1.StackItem, null,
|
|
58
|
-
React.createElement(react_core_1.Progress, { value: progress, min: 0, max: totalProgress, title: t('
|
|
58
|
+
React.createElement(react_core_1.Progress, { value: progress, min: 0, max: totalProgress, title: t('Deleting...'), measureLocation: react_core_1.ProgressMeasureLocation.top, label: t('{{progress}} of {{totalProgress}}', { progress, totalProgress }), valueText: t('{{progress}} of {{totalProgress}}', { progress, totalProgress }) }))),
|
|
59
59
|
(errors === null || errors === void 0 ? void 0 : errors.length) && (React.createElement(react_core_1.StackItem, null,
|
|
60
60
|
React.createElement(react_core_1.Alert, { isInline: true, variant: "danger", title: t('An error occurred') },
|
|
61
61
|
React.createElement(react_core_1.Stack, { hasGutter: true }, errors.map((e, index) => (React.createElement(react_core_1.StackItem, { key: index }, e))))))))));
|
package/dist/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MassDeleteDeviceModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"MassDeleteDeviceModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAAmH;AACnH,yDAA0E;AAG1E,6DAAmE;AAEnE,mDAA0D;AAC1D,yDAAsD;AACtD,qEAAkE;AAClE,2DAAgE;AAChE,wFAAwD;AAQxD,MAAM,qBAAqB,GAAyC,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@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Fleet } from '@flightctl/types';
|
|
3
|
+
type MassDeleteFleetModalProps = {
|
|
4
|
+
onClose: VoidFunction;
|
|
5
|
+
fleets: Array<Fleet>;
|
|
6
|
+
onDeleteSuccess: VoidFunction;
|
|
7
|
+
};
|
|
8
|
+
declare const MassDeleteFleetModal: React.FC<MassDeleteFleetModalProps>;
|
|
9
|
+
export default MassDeleteFleetModal;
|
|
10
|
+
//# sourceMappingURL=MassDeleteFleetModal.d.ts.map
|
package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MassDeleteFleetModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AASzC,KAAK,yBAAyB,GAAG;IAC/B,OAAO,EAAE,YAAY,CAAC;IACtB,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACrB,eAAe,EAAE,YAAY,CAAC;CAC/B,CAAC;AA6BF,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAyI7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const react_core_1 = require("@patternfly/react-core");
|
|
5
4
|
const React = tslib_1.__importStar(require("react"));
|
|
5
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
6
|
+
const react_table_1 = require("@patternfly/react-table");
|
|
6
7
|
const error_1 = require("../../../../utils/error");
|
|
7
8
|
const useFetch_1 = require("../../../../hooks/useFetch");
|
|
8
|
-
const
|
|
9
|
-
const FleetOwnerLink_1 = tslib_1.__importStar(require("../../../Fleet/FleetDetails/FleetOwnerLink"));
|
|
10
|
-
const extraTypes_1 = require("../../../../types/extraTypes");
|
|
9
|
+
const FleetOwnerLink_1 = tslib_1.__importDefault(require("../../../Fleet/FleetDetails/FleetOwnerLink"));
|
|
11
10
|
const useTranslation_1 = require("../../../../hooks/useTranslation");
|
|
12
11
|
const typeUtils_1 = require("../../../../types/typeUtils");
|
|
13
|
-
const MassDeleteFleetTable = ({
|
|
12
|
+
const MassDeleteFleetTable = ({ fleets }) => {
|
|
14
13
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
15
14
|
return (React.createElement(react_table_1.Table, null,
|
|
16
15
|
React.createElement(react_table_1.Thead, null,
|
|
17
16
|
React.createElement(react_table_1.Tr, null,
|
|
18
17
|
React.createElement(react_table_1.Th, null, t('Name')),
|
|
19
18
|
React.createElement(react_table_1.Th, null, t('Managed by')))),
|
|
20
|
-
React.createElement(react_table_1.Tbody, null,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
React.createElement(react_table_1.Td, { dataLabel: t('
|
|
19
|
+
React.createElement(react_table_1.Tbody, null, fleets.map((fleet) => {
|
|
20
|
+
const name = fleet.metadata.name;
|
|
21
|
+
return (React.createElement(react_table_1.Tr, { key: name },
|
|
22
|
+
React.createElement(react_table_1.Td, { dataLabel: t('Name') }, name),
|
|
23
|
+
React.createElement(react_table_1.Td, { dataLabel: t('Managed by') },
|
|
24
|
+
React.createElement(FleetOwnerLink_1.default, { owner: fleet.metadata.owner }))));
|
|
24
25
|
}))));
|
|
25
26
|
};
|
|
26
|
-
const MassDeleteFleetModal = ({ onClose,
|
|
27
|
+
const MassDeleteFleetModal = ({ onClose, fleets, onDeleteSuccess }) => {
|
|
27
28
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
28
29
|
const [progress, setProgress] = React.useState(0);
|
|
29
30
|
const [progressTotal, setProgressTotal] = React.useState(0);
|
|
30
31
|
const [isDeleting, setIsDeleting] = React.useState(false);
|
|
31
32
|
const [errors, setErrors] = React.useState();
|
|
32
33
|
const { remove } = (0, useFetch_1.useFetch)();
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
34
|
+
const fleetsToDelete = fleets.filter((r) => !r.metadata.owner);
|
|
35
|
+
const fleetsToSkip = fleets.filter((r) => r.metadata.owner);
|
|
36
|
+
const deleteFleets = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
36
37
|
setProgress(0);
|
|
37
38
|
setIsDeleting(true);
|
|
38
|
-
const promises =
|
|
39
|
-
yield remove(
|
|
39
|
+
const promises = fleetsToDelete.map((r) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
40
|
+
yield remove(`fleets/${r.metadata.name}`);
|
|
40
41
|
setProgress((p) => p + 1);
|
|
41
42
|
}));
|
|
42
43
|
setProgressTotal(promises.length);
|
|
@@ -50,7 +51,7 @@ const MassDeleteFleetModal = ({ onClose, resources, onDeleteSuccess }) => {
|
|
|
50
51
|
onDeleteSuccess();
|
|
51
52
|
}
|
|
52
53
|
});
|
|
53
|
-
if (
|
|
54
|
+
if (fleetsToDelete.length === 0) {
|
|
54
55
|
return (React.createElement(react_core_1.Modal, { title: t('Delete fleets'), isOpen: true, onClose: onClose, showClose: true, variant: "medium", actions: [
|
|
55
56
|
React.createElement(react_core_1.Button, { key: "close", variant: "primary", onClick: onClose }, t('Close')),
|
|
56
57
|
] },
|
|
@@ -58,22 +59,22 @@ const MassDeleteFleetModal = ({ onClose, resources, onDeleteSuccess }) => {
|
|
|
58
59
|
React.createElement(react_core_1.StackItem, null,
|
|
59
60
|
React.createElement(react_core_1.Alert, { variant: "info", isInline: true, title: t('All the fleets you selected are managed by a resource sync and cannot be deleted. You can remove each fleet individually. Alternatively, to delete multiple fleets, first delete the resource syncs from the related repositories inside the "Repositories" tab.') })),
|
|
60
61
|
React.createElement(react_core_1.StackItem, null,
|
|
61
|
-
React.createElement(MassDeleteFleetTable, {
|
|
62
|
+
React.createElement(MassDeleteFleetTable, { fleets: fleets })))));
|
|
62
63
|
}
|
|
63
64
|
return (React.createElement(react_core_1.Modal, { title: t('Delete fleets ?'), isOpen: true, onClose: onClose, showClose: !isDeleting, variant: "medium", titleIconVariant: "warning", actions: [
|
|
64
|
-
React.createElement(react_core_1.Button, { key: "delete", variant: "danger", onClick:
|
|
65
|
+
React.createElement(react_core_1.Button, { key: "delete", variant: "danger", onClick: deleteFleets, isLoading: isDeleting, isDisabled: isDeleting }, t('Delete fleets')),
|
|
65
66
|
React.createElement(react_core_1.Button, { key: "cancel", variant: "link", onClick: onClose, isDisabled: isDeleting }, t('Cancel')),
|
|
66
67
|
] },
|
|
67
68
|
React.createElement(react_core_1.Stack, { hasGutter: true },
|
|
68
69
|
React.createElement(react_core_1.StackItem, null, t('The following fleets will be deleted and as a result, the devices managed by them will be left unmanaged. Are you sure you want to delete the listed fleets?')),
|
|
69
70
|
React.createElement(react_core_1.StackItem, null,
|
|
70
|
-
React.createElement(MassDeleteFleetTable, {
|
|
71
|
-
|
|
71
|
+
React.createElement(MassDeleteFleetTable, { fleets: fleetsToDelete })),
|
|
72
|
+
fleetsToSkip.length > 0 && (React.createElement(React.Fragment, null,
|
|
72
73
|
React.createElement(react_core_1.StackItem, null,
|
|
73
74
|
React.createElement(react_core_1.Alert, { variant: "info", isInline: true, title: t(`Some fleets you selected are managed by a resource sync and cannot be deleted. To remove those fleets, delete the resource syncs from the related repositories inside the "Repositories" tab.`) })),
|
|
74
75
|
React.createElement(react_core_1.StackItem, null,
|
|
75
76
|
React.createElement(react_core_1.ExpandableSection, { toggleText: t('Show fleets') },
|
|
76
|
-
React.createElement(MassDeleteFleetTable, {
|
|
77
|
+
React.createElement(MassDeleteFleetTable, { fleets: fleetsToSkip }))))),
|
|
77
78
|
isDeleting && (React.createElement(react_core_1.StackItem, null,
|
|
78
79
|
React.createElement(react_core_1.Progress, { value: progress, min: 0, max: progressTotal, title: t('Deleting...'), measureLocation: react_core_1.ProgressMeasureLocation.top, label: t('{{progress}} of {{progressTotal}}', { progress, progressTotal }), valueText: t('{{progress}} of {{progressTotal}}', { progress, progressTotal }) }))),
|
|
79
80
|
(errors === null || errors === void 0 ? void 0 : errors.length) && (React.createElement(react_core_1.StackItem, null,
|
package/dist/src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MassDeleteFleetModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.tsx"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"MassDeleteFleetModal.js","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteFleetModal/MassDeleteFleetModal.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDASgC;AAEhC,yDAA0E;AAE1E,mDAA0D;AAC1D,yDAAsD;AACtD,wGAAwE;AACxE,qEAAkE;AAClE,2DAAgE;AAQhE,MAAM,oBAAoB,GAAG,CAAC,EAAE,MAAM,EAA4B,EAAE,EAAE;IACpE,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,OAAO,CACL,oBAAC,mBAAK;QACJ,oBAAC,mBAAK;YACJ,oBAAC,gBAAE;gBACD,oBAAC,gBAAE,QAAE,CAAC,CAAC,MAAM,CAAC,CAAM;gBACpB,oBAAC,gBAAE,QAAE,CAAC,CAAC,YAAY,CAAC,CAAM,CACvB,CACC;QACR,oBAAC,mBAAK,QACH,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;YACpB,MAAM,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAc,CAAC;YAC3C,OAAO,CACL,oBAAC,gBAAE,IAAC,GAAG,EAAE,IAAI;gBACX,oBAAC,gBAAE,IAAC,SAAS,EAAE,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KAAK,EAAE,QAAQ,EACf,GAAG,EAAE,CAAC,EACN,GAAG,EAAE,aAAa,EAClB,KAAK,EAAE,CAAC,CAAC,aAAa,CAAC,EACvB,eAAe,EAAE,oCAAuB,CAAC,GAAG,EAC5C,KAAK,EAAE,CAAC,CAAC,mCAAmC,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,EAC1E,SAAS,EAAE,CAAC,CAAC,mCAAmC,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,GAC9E,CACQ,CACb;YACA,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,KAAI,CACjB,oBAAC,sBAAS;gBACR,oBAAC,kBAAK,IAAC,QAAQ,QAAC,OAAO,EAAC,QAAQ,EAAC,KAAK,EAAE,CAAC,CAAC,mBAAmB,CAAC;oBAC5D,oBAAC,kBAAK,IAAC,SAAS,UACb,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,oBAAC,sBAAS,IAAC,GAAG,EAAE,KAAK,IAAG,CAAC,CAAa,CACvC,CAAC,CACI,CACF,CACE,CACb,CACK,CACF,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Repository } from '@flightctl/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
type MassDeleteRepositoryModalProps = {
|
|
4
|
+
onClose: VoidFunction;
|
|
5
|
+
onDeleteSuccess: VoidFunction;
|
|
6
|
+
repositories: Repository[];
|
|
7
|
+
};
|
|
8
|
+
declare const MassDeleteRepositoryModal: React.FC<MassDeleteRepositoryModalProps>;
|
|
9
|
+
export default MassDeleteRepositoryModal;
|
|
10
|
+
//# sourceMappingURL=MassDeleteRepositoryModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MassDeleteRepositoryModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteRepositoryModal/MassDeleteRepositoryModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAoB,MAAM,kBAAkB,CAAC;AAChE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,KAAK,8BAA8B,GAAG;IACpC,OAAO,EAAE,YAAY,CAAC;IACtB,eAAe,EAAE,YAAY,CAAC;IAC9B,YAAY,EAAE,UAAU,EAAE,CAAC;CAC5B,CAAC;AAIF,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAuJvE,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ResourceSync } from '@flightctl/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
type MassDeleteResourceSyncModalProps = {
|
|
4
|
+
onClose: VoidFunction;
|
|
5
|
+
resources: ResourceSync[];
|
|
6
|
+
onDeleteSuccess: VoidFunction;
|
|
7
|
+
};
|
|
8
|
+
declare const MassDeleteResourceSyncModal: React.FC<MassDeleteResourceSyncModalProps>;
|
|
9
|
+
export default MassDeleteResourceSyncModal;
|
|
10
|
+
//# sourceMappingURL=MassDeleteResourceSyncModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MassDeleteResourceSyncModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/modals/massModals/MassDeleteResourceSyncModal/MassDeleteResourceSyncModal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,KAAK,gCAAgC,GAAG;IACtC,OAAO,EAAE,YAAY,CAAC;IACtB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,eAAe,EAAE,YAAY,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,gCAAgC,CAkG3E,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS,8BAA8B,CAAC;AAC9C,QAAA,MAAM,WAAW,aAAa,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Link, Navigate, Route, NavigateFunction as RouterNavigateFunction, Routes, useBlocker, useLocation, useParams, useSearchParams } from 'react-router-dom';
|
|
3
|
+
import { ROUTE } from './useNavigate';
|
|
4
|
+
import { PatchRequest } from '@flightctl/types';
|
|
5
|
+
export declare const appRoutes: {
|
|
6
|
+
ROOT: string;
|
|
7
|
+
FLEETS: string;
|
|
8
|
+
" FLEET_DETAILS": string;
|
|
9
|
+
FLEET_CREATE: string;
|
|
10
|
+
FLEET_EDIT: string;
|
|
11
|
+
FLEET_IMPORT: string;
|
|
12
|
+
DEVICES: string;
|
|
13
|
+
DEVICE_DETAILS: string;
|
|
14
|
+
DEVICE_EDIT: string;
|
|
15
|
+
REPO_CREATE: string;
|
|
16
|
+
REPO_EDIT: string;
|
|
17
|
+
" REPO_DETAILS": string;
|
|
18
|
+
REPOSITORIES: string;
|
|
19
|
+
" RESOURCE_SYNC_DETAILS": string;
|
|
20
|
+
ENROLLMENT_REQUESTS: string;
|
|
21
|
+
ENROLLMENT_REQUEST_DETAILS: string;
|
|
22
|
+
};
|
|
23
|
+
export type NavLinkFC = React.FC<{
|
|
24
|
+
to: string;
|
|
25
|
+
children: (props: {
|
|
26
|
+
isActive: boolean;
|
|
27
|
+
}) => React.ReactNode;
|
|
28
|
+
}>;
|
|
29
|
+
export type PromptFC = React.FC<{
|
|
30
|
+
message: string;
|
|
31
|
+
}>;
|
|
32
|
+
export type AppContextProps = {
|
|
33
|
+
appType: 'standalone' | 'ocp';
|
|
34
|
+
qcow2ImgUrl: string | undefined;
|
|
35
|
+
bootcImgUrl: string | undefined;
|
|
36
|
+
user?: string;
|
|
37
|
+
i18n: {
|
|
38
|
+
transNamespace?: string;
|
|
39
|
+
};
|
|
40
|
+
router: {
|
|
41
|
+
useNavigate: () => RouterNavigateFunction;
|
|
42
|
+
Link: typeof Link;
|
|
43
|
+
appRoutes: Record<ROUTE, string>;
|
|
44
|
+
NavLink: NavLinkFC;
|
|
45
|
+
useSearchParams: typeof useSearchParams;
|
|
46
|
+
useBlocker?: typeof useBlocker;
|
|
47
|
+
useParams: typeof useParams;
|
|
48
|
+
Navigate: typeof Navigate;
|
|
49
|
+
Route: typeof Route;
|
|
50
|
+
Routes: typeof Routes;
|
|
51
|
+
useLocation: typeof useLocation;
|
|
52
|
+
Prompt?: PromptFC;
|
|
53
|
+
};
|
|
54
|
+
fetch: {
|
|
55
|
+
getWsEndpoint: () => {
|
|
56
|
+
wsEndpoint: string;
|
|
57
|
+
protocols: string[];
|
|
58
|
+
};
|
|
59
|
+
get: <R>(kind: string, abortSignal?: AbortSignal) => Promise<R>;
|
|
60
|
+
post: <R>(kind: string, data: R, abortSignal?: AbortSignal) => Promise<R>;
|
|
61
|
+
remove: <R>(kind: string, abortSignal?: AbortSignal) => Promise<R>;
|
|
62
|
+
patch: <R>(kind: string, patches: PatchRequest, abortSignal?: AbortSignal) => Promise<R>;
|
|
63
|
+
};
|
|
64
|
+
metrics: {
|
|
65
|
+
get: <R>(query: string, abortSignal?: AbortSignal) => Promise<R>;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export declare const AppContext: React.Context<AppContextProps>;
|
|
69
|
+
export declare const useAppContext: () => AppContextProps;
|
|
70
|
+
//# sourceMappingURL=useAppContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAppContext.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAppContext.tsx"],"names":[],"mapp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invalid' | 'checking' | 'checked--error' | 'checked--unique' | 'checked--multiple' | 'checked--empty';
|
|
4
|
+
detail?: string;
|
|
5
|
+
};
|
|
6
|
+
type MatchLabelsFn = (labels: FlightCtlLabel[], hasErrors: boolean) => void;
|
|
7
|
+
declare const useDeviceLabelMatch: () => [MatchLabelsFn, DeviceMatchStatus];
|
|
8
|
+
export default useDeviceLabelMatch;
|
|
9
|
+
//# sourceMappingURL=useDeviceLabelMatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDeviceLabelMatch.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDeviceLabelMatch.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAIrD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EACF,WAAW,GACX,oBAAoB,GACpB,UAAU,GACV,gBAAgB,GAChB,iBAAiB,GACjB,mBAAmB,GACnB,gBAAgB,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,aAAa,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;AA4B5E,QAAA,MAAM,mBAAmB,QAAO,CAAC,aAAa,EAAE,iBAAiB,CAmDhE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDocumentTitle.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDocumentTitle.ts"],"names":[],"mappings":"AAGA,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,QAQ7C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const useFetch: () => {
|
|
2
|
+
getMetrics: <R>(query: string, abortSignal?: AbortSignal | undefined) => Promise<R>;
|
|
3
|
+
getWsEndpoint: () => {
|
|
4
|
+
wsEndpoint: string;
|
|
5
|
+
protocols: string[];
|
|
6
|
+
};
|
|
7
|
+
get: <R_1>(kind: string, abortSignal?: AbortSignal | undefined) => Promise<R_1>;
|
|
8
|
+
post: <R_2>(kind: string, data: R_2, abortSignal?: AbortSignal | undefined) => Promise<R_2>;
|
|
9
|
+
remove: <R_3>(kind: string, abortSignal?: AbortSignal | undefined) => Promise<R_3>;
|
|
10
|
+
patch: <R_4>(kind: string, patches: import("@flightctl/types").PatchRequest, abortSignal?: AbortSignal | undefined) => Promise<R_4>;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=useFetch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFetch.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFetch.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;;;;;;;;CAOpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFetchPeriodically.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFetchPeriodically.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAOzD,eAAO,MAAM,oBAAoB,aACxB,kBAAkB,6DAwE1B,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LinkProps as RouterLinkProps } from 'react-router-dom';
|
|
3
|
+
export interface NavigateFunction {
|
|
4
|
+
(to: Route | ToObj): void;
|
|
5
|
+
(delta: number): void;
|
|
6
|
+
}
|
|
7
|
+
export declare enum ROUTE {
|
|
8
|
+
ROOT = "ROOT",
|
|
9
|
+
FLEETS = "FLEETS",
|
|
10
|
+
FLEET_CREATE = "FLEET_CREATE",
|
|
11
|
+
FLEET_IMPORT = "FLEET_IMPORT",
|
|
12
|
+
FLEET_DETAILS = " FLEET_DETAILS",
|
|
13
|
+
FLEET_EDIT = "FLEET_EDIT",
|
|
14
|
+
DEVICES = "DEVICES",
|
|
15
|
+
DEVICE_DETAILS = "DEVICE_DETAILS",
|
|
16
|
+
DEVICE_EDIT = "DEVICE_EDIT",
|
|
17
|
+
REPOSITORIES = "REPOSITORIES",
|
|
18
|
+
REPO_CREATE = "REPO_CREATE",
|
|
19
|
+
REPO_EDIT = "REPO_EDIT",
|
|
20
|
+
REPO_DETAILS = " REPO_DETAILS",
|
|
21
|
+
RESOURCE_SYNC_DETAILS = " RESOURCE_SYNC_DETAILS",
|
|
22
|
+
ENROLLMENT_REQUESTS = "ENROLLMENT_REQUESTS",
|
|
23
|
+
ENROLLMENT_REQUEST_DETAILS = "ENROLLMENT_REQUEST_DETAILS"
|
|
24
|
+
}
|
|
25
|
+
export type RouteWithPostfix = ROUTE.FLEET_DETAILS | ROUTE.FLEET_EDIT | ROUTE.REPO_DETAILS | ROUTE.RESOURCE_SYNC_DETAILS | ROUTE.REPO_EDIT | ROUTE.DEVICE_DETAILS | ROUTE.DEVICE_EDIT | ROUTE.ENROLLMENT_REQUEST_DETAILS;
|
|
26
|
+
export type Route = Exclude<ROUTE, RouteWithPostfix>;
|
|
27
|
+
type ToObj = {
|
|
28
|
+
route: RouteWithPostfix;
|
|
29
|
+
postfix: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
export declare const useNavigate: () => NavigateFunction;
|
|
32
|
+
export type LinkProps = Omit<RouterLinkProps, 'to'> & {
|
|
33
|
+
to: Route | ToObj;
|
|
34
|
+
query?: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const Link: ({ to, query, ...rest }: LinkProps) => React.JSX.Element;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=useNavigate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNavigate.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNavigate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGhE,MAAM,WA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ObjectMeta } from '@flightctl/types';
|
|
3
|
+
export declare const useTableSelect: <R extends {
|
|
4
|
+
kind: string;
|
|
5
|
+
metadata: ObjectMeta;
|
|
6
|
+
}>() => {
|
|
7
|
+
onRowSelect: (resource: R) => OnSelect;
|
|
8
|
+
hasSelectedRows: boolean;
|
|
9
|
+
isAllSelected: boolean;
|
|
10
|
+
setAllSelected: (isSelected: boolean) => void;
|
|
11
|
+
isRowSelected: (resource: R) => boolean;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=useTableSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTableSelect.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableSelect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C,eAAO,MAAM,cAAc;UAAsB,MAAM;cAAY,UAAU;;kCAe1D,QAAQ;;;iCANW,OAAO;;CAiC5C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TableColumn } from '../components/Table/Table';
|
|
2
|
+
import { ThProps } from '@patternfly/react-table';
|
|
3
|
+
export declare const useTableSort: <D>(data: D[], columns: TableColumn<D>[]) => {
|
|
4
|
+
getSortParams: (columnIndex: number) => ThProps['sort'];
|
|
5
|
+
sortedData: D[];
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=useTableSort.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTableSort.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableSort.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAQlD,eAAO,MAAM,YAAY;iCAKP,MAAM,KAAG,OAAO,CAAC,MAAM,CAAC;;CA2BzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTableTextSearch.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTableTextSearch.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,wCAEN,MAAM,MAAM,GAAG,SAAS,CAAC;YACrC,MAAM;uBAAqB,MAAM,KAAK,IAAI;;CAgBtD,CAAC"}
|