@flightctl/ui-components 1.1.0-rc4 → 1.1.0-rc6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/Catalog/CatalogItemDetails.css +4 -0
- package/dist/src/components/Catalog/CatalogPage.css +10 -0
- package/dist/src/components/Catalog/EditWizard/steps/UpdateGraph.css +138 -0
- package/dist/src/components/Catalog/InstallWizard/steps/AppConfigStep.css +12 -0
- package/dist/src/components/Catalog/ResourceCatalog/ResourceCatalogPage.css +3 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/alpha/index.d.ts +18 -0
- package/dist/types/alpha/index.d.ts.map +1 -0
- package/dist/types/alpha/index.js +16 -0
- package/dist/types/alpha/index.js.map +1 -0
- package/dist/types/alpha/models/ApiVersion.d.ts +8 -0
- package/dist/types/alpha/models/ApiVersion.d.ts.map +1 -0
- package/dist/types/alpha/models/ApiVersion.js +16 -0
- package/dist/types/alpha/models/ApiVersion.js.map +1 -0
- package/dist/types/alpha/models/Catalog.d.ts +15 -0
- package/dist/types/alpha/models/Catalog.d.ts.map +1 -0
- package/dist/types/alpha/models/Catalog.js +3 -0
- package/dist/types/alpha/models/Catalog.js.map +1 -0
- package/dist/types/alpha/models/CatalogItem.d.ts +16 -0
- package/dist/types/alpha/models/CatalogItem.d.ts.map +1 -0
- package/dist/types/alpha/models/CatalogItem.js +3 -0
- package/dist/types/alpha/models/CatalogItem.js.map +1 -0
- package/dist/types/alpha/models/CatalogItemArtifact.d.ts +16 -0
- package/dist/types/alpha/models/CatalogItemArtifact.d.ts.map +1 -0
- package/dist/types/alpha/models/CatalogItemArtifact.js +3 -0
- package/dist/types/alpha/models/CatalogItemArtifact.js.map +1 -0
- package/dist/types/alpha/models/CatalogItemArtifactType.d.ts +15 -0
- package/dist/types/alpha/models/CatalogItemArtifactType.d.ts.map +1 -0
- package/dist/types/alpha/models/CatalogItemArtifactType.js +23 -0
- package/dist/types/alpha/models/CatalogItemArtifactType.js.map +1 -0
- package/dist/types/alpha/models/CatalogItemCategory.d.ts +8 -0
- package/dist/types/alpha/models/CatalogItemCategory.d.ts.map +1 -0
- package/dist/types/alpha/models/CatalogItemCategory.js +16 -0
- package/dist/types/alpha/models/CatalogItemCategory.js.map +1 -0
- package/dist/types/alpha/models/CatalogItemConfigurable.d.ts +18 -0
- package/dist/types/alpha/models/CatalogItemConfigurable.d.ts.map +1 -0
- package/dist/types/alpha/models/CatalogItemConfigurable.js +3 -0
- package/dist/types/alpha/models/CatalogItemConfigurable.js.map +1 -0
- package/dist/types/alpha/models/CatalogItemDeprecation.d.ts +14 -0
- package/dist/types/alpha/models/CatalogItemDeprecation.d.ts.map +1 -0
- package/dist/types/alpha/models/CatalogItemDeprecation.js +3 -0
- package/dist/types/alpha/models/CatalogItemDeprecation.js.map +1 -0
- package/dist/types/alpha/models/CatalogItemList.d.ts +19 -0
- package/dist/types/alpha/models/CatalogItemList.d.ts.map +1 -0
- package/dist/types/alpha/models/CatalogItemList.js +3 -0
- package/dist/types/alpha/models/CatalogItemList.js.map +1 -0
- package/dist/types/alpha/models/CatalogItemMeta.d.ts +11 -0
- package/dist/types/alpha/models/CatalogItemMeta.d.ts.map +1 -0
- package/dist/types/alpha/models/CatalogItemMeta.js +3 -0
- package/dist/types/alpha/models/CatalogItemMeta.js.map +1 -0
- package/dist/types/alpha/models/CatalogItemSpec.d.ts +52 -0
- package/dist/types/alpha/models/CatalogItemSpec.d.ts.map +1 -0
- package/dist/types/alpha/models/CatalogItemSpec.js +3 -0
- package/dist/types/alpha/models/CatalogItemSpec.js.map +1 -0
- package/dist/types/alpha/models/CatalogItemType.d.ts +14 -0
- package/dist/types/alpha/models/CatalogItemType.d.ts.map +1 -0
- package/dist/types/alpha/models/CatalogItemType.js +22 -0
- package/dist/types/alpha/models/CatalogItemType.js.map +1 -0
- package/dist/types/alpha/models/CatalogItemVersion.d.ts +38 -0
- package/dist/types/alpha/models/CatalogItemVersion.d.ts.map +1 -0
- package/dist/types/alpha/models/CatalogItemVersion.js +3 -0
- package/dist/types/alpha/models/CatalogItemVersion.js.map +1 -0
- package/dist/types/alpha/models/CatalogList.d.ts +19 -0
- package/dist/types/alpha/models/CatalogList.d.ts.map +1 -0
- package/dist/types/alpha/models/CatalogList.js +3 -0
- package/dist/types/alpha/models/CatalogList.js.map +1 -0
- package/dist/types/alpha/models/CatalogSpec.d.ts +26 -0
- package/dist/types/alpha/models/CatalogSpec.d.ts.map +1 -0
- package/dist/types/alpha/models/CatalogSpec.js +3 -0
- package/dist/types/alpha/models/CatalogSpec.js.map +1 -0
- package/dist/types/alpha/models/CatalogStatus.d.ts +11 -0
- package/dist/types/alpha/models/CatalogStatus.d.ts.map +1 -0
- package/dist/types/alpha/models/CatalogStatus.js +3 -0
- package/dist/types/alpha/models/CatalogStatus.js.map +1 -0
- package/dist/types/alpha/models/Status.d.ts +28 -0
- package/dist/types/alpha/models/Status.d.ts.map +1 -0
- package/dist/types/alpha/models/Status.js +3 -0
- package/dist/types/alpha/models/Status.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/models/ResourceSyncSpec.d.ts +2 -0
- package/dist/types/models/ResourceSyncSpec.d.ts.map +1 -1
- package/dist/types/models/ResourceSyncType.d.ts +8 -0
- package/dist/types/models/ResourceSyncType.d.ts.map +1 -0
- package/dist/types/models/ResourceSyncType.js +16 -0
- package/dist/types/models/ResourceSyncType.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/AddCatalogItemWizard.d.ts +4 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/AddCatalogItemWizard.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/AddCatalogItemWizard.js +173 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/AddCatalogItemWizard.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/ChannelsSelect.d.ts +9 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/ChannelsSelect.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/ChannelsSelect.js +115 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/ChannelsSelect.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/CreateCatalogModal.d.ts +10 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/CreateCatalogModal.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/CreateCatalogModal.js +100 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/CreateCatalogModal.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/GeneralInfoStep.d.ts +11 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/GeneralInfoStep.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/GeneralInfoStep.js +111 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/GeneralInfoStep.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/ReviewStep.d.ts +9 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/ReviewStep.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/ReviewStep.js +77 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/ReviewStep.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/TypeConfigStep.d.ts +11 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/TypeConfigStep.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/TypeConfigStep.js +90 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/TypeConfigStep.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/VersionStep.d.ts +11 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/VersionStep.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/VersionStep.js +105 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/VersionStep.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/types.d.ts +49 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/types.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/types.js +11 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/types.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/utils.d.ts +53 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/utils.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/utils.js +564 -0
- package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/utils.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/CatalogItemCard.d.ts +9 -0
- package/dist/ui-components/src/components/Catalog/CatalogItemCard.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/CatalogItemCard.js +37 -0
- package/dist/ui-components/src/components/Catalog/CatalogItemCard.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/CatalogItemDetails.d.ts +34 -0
- package/dist/ui-components/src/components/Catalog/CatalogItemDetails.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/CatalogItemDetails.js +256 -0
- package/dist/ui-components/src/components/Catalog/CatalogItemDetails.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/CatalogLandingPage.d.ts +10 -0
- package/dist/ui-components/src/components/Catalog/CatalogLandingPage.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/CatalogLandingPage.js +106 -0
- package/dist/ui-components/src/components/Catalog/CatalogLandingPage.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/CatalogPage.d.ts +20 -0
- package/dist/ui-components/src/components/Catalog/CatalogPage.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/CatalogPage.js +256 -0
- package/dist/ui-components/src/components/Catalog/CatalogPage.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/CatalogPageToolbar.d.ts +14 -0
- package/dist/ui-components/src/components/Catalog/CatalogPageToolbar.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/CatalogPageToolbar.js +54 -0
- package/dist/ui-components/src/components/Catalog/CatalogPageToolbar.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/DeleteCatalogModal.d.ts +10 -0
- package/dist/ui-components/src/components/Catalog/DeleteCatalogModal.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/DeleteCatalogModal.js +96 -0
- package/dist/ui-components/src/components/Catalog/DeleteCatalogModal.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/DeprecateModal.d.ts +15 -0
- package/dist/ui-components/src/components/Catalog/DeprecateModal.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/DeprecateModal.js +80 -0
- package/dist/ui-components/src/components/Catalog/DeprecateModal.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/EditAppWizard.d.ts +18 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/EditAppWizard.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/EditAppWizard.js +84 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/EditAppWizard.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/EditOsWizard.d.ts +16 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/EditOsWizard.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/EditOsWizard.js +66 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/EditOsWizard.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/EditWizard.d.ts +4 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/EditWizard.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/EditWizard.js +164 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/EditWizard.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/steps/ReviewStep.d.ts +10 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/steps/ReviewStep.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/steps/ReviewStep.js +37 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/steps/ReviewStep.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/steps/UpdateGraph.d.ts +12 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/steps/UpdateGraph.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/steps/UpdateGraph.js +105 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/steps/UpdateGraph.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/steps/UpdateStep.d.ts +13 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/steps/UpdateStep.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/steps/UpdateStep.js +97 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/steps/UpdateStep.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/types.d.ts +3 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/types.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/EditWizard/types.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/ImportCatalogWizard/ImportCatalogWizard.d.ts +4 -0
- package/dist/ui-components/src/components/Catalog/ImportCatalogWizard/ImportCatalogWizard.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/ImportCatalogWizard/ImportCatalogWizard.js +14 -0
- package/dist/ui-components/src/components/Catalog/ImportCatalogWizard/ImportCatalogWizard.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/InstallAppWizard.d.ts +11 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/InstallAppWizard.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/InstallAppWizard.js +140 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/InstallAppWizard.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/InstallOsWizard.d.ts +11 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/InstallOsWizard.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/InstallOsWizard.js +120 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/InstallOsWizard.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/InstallWizard.d.ts +4 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/InstallWizard.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/InstallWizard.js +58 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/InstallWizard.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/UpdateSuccessPage.d.ts +8 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/UpdateSuccessPage.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/UpdateSuccessPage.js +44 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/UpdateSuccessPage.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/steps/AppConfigStep.d.ts +18 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/steps/AppConfigStep.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/steps/AppConfigStep.js +100 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/steps/AppConfigStep.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/steps/ReviewStep.d.ts +9 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/steps/ReviewStep.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/steps/ReviewStep.js +140 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/steps/ReviewStep.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/steps/SelectTargetStep.d.ts +11 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/steps/SelectTargetStep.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/steps/SelectTargetStep.js +151 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/steps/SelectTargetStep.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/steps/SpecificationsStep.d.ts +22 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/steps/SpecificationsStep.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/steps/SpecificationsStep.js +192 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/steps/SpecificationsStep.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/types.d.ts +31 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/types.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/types.js +8 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/types.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/utils.d.ts +7 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/utils.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/utils.js +76 -0
- package/dist/ui-components/src/components/Catalog/InstallWizard/utils.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstalledSoftware.d.ts +20 -0
- package/dist/ui-components/src/components/Catalog/InstalledSoftware.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/InstalledSoftware.js +178 -0
- package/dist/ui-components/src/components/Catalog/InstalledSoftware.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/ResourceCatalog/ResourceCatalogPage.d.ts +21 -0
- package/dist/ui-components/src/components/Catalog/ResourceCatalog/ResourceCatalogPage.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/ResourceCatalog/ResourceCatalogPage.js +41 -0
- package/dist/ui-components/src/components/Catalog/ResourceCatalog/ResourceCatalogPage.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/const.d.ts +12 -0
- package/dist/ui-components/src/components/Catalog/const.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/const.js +19 -0
- package/dist/ui-components/src/components/Catalog/const.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/useCatalogFilter.d.ts +12 -0
- package/dist/ui-components/src/components/Catalog/useCatalogFilter.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/useCatalogFilter.js +20 -0
- package/dist/ui-components/src/components/Catalog/useCatalogFilter.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/useCatalogs.d.ts +12 -0
- package/dist/ui-components/src/components/Catalog/useCatalogs.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/useCatalogs.js +78 -0
- package/dist/ui-components/src/components/Catalog/useCatalogs.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/useSubmitCatalogForm.d.ts +11 -0
- package/dist/ui-components/src/components/Catalog/useSubmitCatalogForm.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/useSubmitCatalogForm.js +51 -0
- package/dist/ui-components/src/components/Catalog/useSubmitCatalogForm.js.map +1 -0
- package/dist/ui-components/src/components/Catalog/utils.d.ts +40 -0
- package/dist/ui-components/src/components/Catalog/utils.d.ts.map +1 -0
- package/dist/ui-components/src/components/Catalog/utils.js +304 -0
- package/dist/ui-components/src/components/Catalog/utils.js.map +1 -0
- package/dist/ui-components/src/components/DetailsPage/DetailsPage.d.ts +3 -1
- package/dist/ui-components/src/components/DetailsPage/DetailsPage.d.ts.map +1 -1
- package/dist/ui-components/src/components/DetailsPage/DetailsPage.js +2 -2
- package/dist/ui-components/src/components/DetailsPage/DetailsPage.js.map +1 -1
- package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsCatalog.d.ts +10 -0
- package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsCatalog.d.ts.map +1 -0
- package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsCatalog.js +58 -0
- package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsCatalog.js.map +1 -0
- package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsPage.js +5 -2
- package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsPage.js.map +1 -1
- package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDeviceTableRow.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDeviceTableRow.js +3 -3
- package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDeviceTableRow.js.map +1 -1
- package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDevicesTable.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDevicesTable.js +2 -2
- package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDevicesTable.js.map +1 -1
- package/dist/ui-components/src/components/Device/DevicesPage/DevicesPage.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/DevicesPage/DevicesPage.js +1 -1
- package/dist/ui-components/src/components/Device/DevicesPage/DevicesPage.js.map +1 -1
- package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDeviceTableRow.d.ts +10 -6
- package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDeviceTableRow.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDeviceTableRow.js +20 -18
- package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDeviceTableRow.js.map +1 -1
- package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDevicesTable.d.ts +3 -0
- package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDevicesTable.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDevicesTable.js +14 -6
- package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDevicesTable.js.map +1 -1
- package/dist/ui-components/src/components/Device/DevicesPage/useDevices.d.ts +30 -1
- package/dist/ui-components/src/components/Device/DevicesPage/useDevices.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/DevicesPage/useDevices.js +40 -4
- package/dist/ui-components/src/components/Device/DevicesPage/useDevices.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/EditDeviceWizard.js +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/EditDeviceWizard.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.js +3 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js +3 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts +2 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js +16 -10
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.js +3 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.js +3 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js +3 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.js +3 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts +2 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js +9 -3
- package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js.map +1 -1
- package/dist/ui-components/src/components/Device/EditDeviceWizard/utils.d.ts +23 -23
- package/dist/ui-components/src/components/DynamicForm/DynamicForm.d.ts +29 -0
- package/dist/ui-components/src/components/DynamicForm/DynamicForm.d.ts.map +1 -0
- package/dist/ui-components/src/components/DynamicForm/DynamicForm.js +35 -0
- package/dist/ui-components/src/components/DynamicForm/DynamicForm.js.map +1 -0
- package/dist/ui-components/src/components/DynamicForm/FieldErrors.d.ts +6 -0
- package/dist/ui-components/src/components/DynamicForm/FieldErrors.d.ts.map +1 -0
- package/dist/ui-components/src/components/DynamicForm/FieldErrors.js +12 -0
- package/dist/ui-components/src/components/DynamicForm/FieldErrors.js.map +1 -0
- package/dist/ui-components/src/components/DynamicForm/FieldTemplate.d.ts +9 -0
- package/dist/ui-components/src/components/DynamicForm/FieldTemplate.d.ts.map +1 -0
- package/dist/ui-components/src/components/DynamicForm/FieldTemplate.js +135 -0
- package/dist/ui-components/src/components/DynamicForm/FieldTemplate.js.map +1 -0
- package/dist/ui-components/src/components/DynamicForm/FormWidget.d.ts +12 -0
- package/dist/ui-components/src/components/DynamicForm/FormWidget.d.ts.map +1 -0
- package/dist/ui-components/src/components/DynamicForm/FormWidget.js +75 -0
- package/dist/ui-components/src/components/DynamicForm/FormWidget.js.map +1 -0
- package/dist/ui-components/src/components/DynamicForm/VolumeImageField.d.ts +21 -0
- package/dist/ui-components/src/components/DynamicForm/VolumeImageField.d.ts.map +1 -0
- package/dist/ui-components/src/components/DynamicForm/VolumeImageField.js +160 -0
- package/dist/ui-components/src/components/DynamicForm/VolumeImageField.js.map +1 -0
- package/dist/ui-components/src/components/EnrollmentRequest/EnrollmentRequestTableRow.d.ts.map +1 -1
- package/dist/ui-components/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js +2 -2
- package/dist/ui-components/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js.map +1 -1
- package/dist/ui-components/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts.map +1 -1
- package/dist/ui-components/src/components/Fleet/CreateFleet/CreateFleetWizard.js +1 -1
- package/dist/ui-components/src/components/Fleet/CreateFleet/CreateFleetWizard.js.map +1 -1
- package/dist/ui-components/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.js +3 -3
- package/dist/ui-components/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.js.map +1 -1
- package/dist/ui-components/src/components/Fleet/FleetDetails/FleetDetailsCatalog.d.ts +9 -0
- package/dist/ui-components/src/components/Fleet/FleetDetails/FleetDetailsCatalog.d.ts.map +1 -0
- package/dist/ui-components/src/components/Fleet/FleetDetails/FleetDetailsCatalog.js +45 -0
- package/dist/ui-components/src/components/Fleet/FleetDetails/FleetDetailsCatalog.js.map +1 -0
- package/dist/ui-components/src/components/Fleet/FleetDetails/FleetDetailsPage.d.ts.map +1 -1
- package/dist/ui-components/src/components/Fleet/FleetDetails/FleetDetailsPage.js +4 -1
- package/dist/ui-components/src/components/Fleet/FleetDetails/FleetDetailsPage.js.map +1 -1
- package/dist/ui-components/src/components/Fleet/FleetDetails/FleetOwnerLink.d.ts +0 -1
- package/dist/ui-components/src/components/Fleet/FleetDetails/FleetOwnerLink.d.ts.map +1 -1
- package/dist/ui-components/src/components/Fleet/FleetDetails/FleetOwnerLink.js +5 -6
- package/dist/ui-components/src/components/Fleet/FleetDetails/FleetOwnerLink.js.map +1 -1
- package/dist/ui-components/src/components/Fleet/FleetRow.d.ts +6 -3
- package/dist/ui-components/src/components/Fleet/FleetRow.d.ts.map +1 -1
- package/dist/ui-components/src/components/Fleet/FleetRow.js +10 -6
- package/dist/ui-components/src/components/Fleet/FleetRow.js.map +1 -1
- package/dist/ui-components/src/components/Fleet/FleetsPage.d.ts +3 -0
- package/dist/ui-components/src/components/Fleet/FleetsPage.d.ts.map +1 -1
- package/dist/ui-components/src/components/Fleet/FleetsPage.js +6 -4
- package/dist/ui-components/src/components/Fleet/FleetsPage.js.map +1 -1
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.d.ts +2 -2
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.d.ts.map +1 -1
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.js +3 -105
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.js.map +1 -1
- package/dist/ui-components/src/components/Fleet/useFleets.d.ts +1 -0
- package/dist/ui-components/src/components/Fleet/useFleets.d.ts.map +1 -1
- package/dist/ui-components/src/components/Fleet/useFleets.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/utils.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/utils.js +0 -2
- package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/utils.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildDetailsTab.js +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildDetailsTab.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildYaml.js +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildYaml.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildRow.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildRow.js +0 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildRow.js.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildsPage.d.ts.map +1 -1
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildsPage.js +0 -3
- package/dist/ui-components/src/components/ImageBuilds/ImageBuildsPage.js.map +1 -1
- package/dist/ui-components/src/components/ImportResourceWizard/ImportResourceWizard.d.ts +5 -0
- package/dist/ui-components/src/components/ImportResourceWizard/ImportResourceWizard.d.ts.map +1 -0
- package/dist/ui-components/src/components/ImportResourceWizard/ImportResourceWizard.js +118 -0
- package/dist/ui-components/src/components/ImportResourceWizard/ImportResourceWizard.js.map +1 -0
- package/dist/ui-components/src/components/{Fleet/ImportFleetWizard → ImportResourceWizard}/steps/RepositoryStep.d.ts +2 -2
- package/dist/ui-components/src/components/ImportResourceWizard/steps/RepositoryStep.d.ts.map +1 -0
- package/dist/ui-components/src/components/{Fleet/ImportFleetWizard → ImportResourceWizard}/steps/RepositoryStep.js +10 -10
- package/dist/ui-components/src/components/ImportResourceWizard/steps/RepositoryStep.js.map +1 -0
- package/dist/ui-components/src/components/ImportResourceWizard/steps/ResourceSyncStep.d.ts +12 -0
- package/dist/ui-components/src/components/ImportResourceWizard/steps/ResourceSyncStep.d.ts.map +1 -0
- package/dist/ui-components/src/components/{Fleet/ImportFleetWizard → ImportResourceWizard}/steps/ResourceSyncStep.js +5 -7
- package/dist/ui-components/src/components/ImportResourceWizard/steps/ResourceSyncStep.js.map +1 -0
- package/dist/ui-components/src/components/{Fleet/ImportFleetWizard → ImportResourceWizard}/steps/ReviewStep.d.ts +2 -1
- package/dist/ui-components/src/components/ImportResourceWizard/steps/ReviewStep.d.ts.map +1 -0
- package/dist/ui-components/src/components/{Fleet/ImportFleetWizard → ImportResourceWizard}/steps/ReviewStep.js +5 -5
- package/dist/ui-components/src/components/ImportResourceWizard/steps/ReviewStep.js.map +1 -0
- package/dist/ui-components/src/components/ImportResourceWizard/types.d.ts +19 -0
- package/dist/ui-components/src/components/ImportResourceWizard/types.d.ts.map +1 -0
- package/dist/ui-components/src/components/ImportResourceWizard/types.js +3 -0
- package/dist/ui-components/src/components/ImportResourceWizard/types.js.map +1 -0
- package/dist/ui-components/src/components/ListPage/ListPage.js +1 -1
- package/dist/ui-components/src/components/ListPage/ListPage.js.map +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepository.d.ts.map +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepository.js +4 -3
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepository.js.map +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepositoryForm.js +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepositoryForm.js.map +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateResourceSyncsForm.d.ts +7 -2
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateResourceSyncsForm.d.ts.map +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateResourceSyncsForm.js +19 -6
- package/dist/ui-components/src/components/Repository/CreateRepository/CreateResourceSyncsForm.js.map +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/types.d.ts +2 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/types.d.ts.map +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/utils.d.ts +3 -2
- package/dist/ui-components/src/components/Repository/CreateRepository/utils.d.ts.map +1 -1
- package/dist/ui-components/src/components/Repository/CreateRepository/utils.js +7 -4
- package/dist/ui-components/src/components/Repository/CreateRepository/utils.js.map +1 -1
- package/dist/ui-components/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.d.ts.map +1 -1
- package/dist/ui-components/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.js +2 -3
- package/dist/ui-components/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.js.map +1 -1
- package/dist/ui-components/src/components/ResourceSync/RepositoryResourceSyncList.d.ts.map +1 -1
- package/dist/ui-components/src/components/ResourceSync/RepositoryResourceSyncList.js +20 -6
- package/dist/ui-components/src/components/ResourceSync/RepositoryResourceSyncList.js.map +1 -1
- package/dist/ui-components/src/components/ResourceSync/ResourceSyncImportStatus.d.ts +6 -0
- package/dist/ui-components/src/components/ResourceSync/ResourceSyncImportStatus.d.ts.map +1 -0
- package/dist/ui-components/src/components/{Fleet/FleetResourceSyncs.js → ResourceSync/ResourceSyncImportStatus.js} +24 -17
- package/dist/ui-components/src/components/ResourceSync/ResourceSyncImportStatus.js.map +1 -0
- package/dist/ui-components/src/components/Table/Table.d.ts +5 -2
- package/dist/ui-components/src/components/Table/Table.d.ts.map +1 -1
- package/dist/ui-components/src/components/Table/Table.js +2 -1
- package/dist/ui-components/src/components/Table/Table.js.map +1 -1
- package/dist/ui-components/src/components/common/CodeEditor/YamlEditor.d.ts +1 -0
- package/dist/ui-components/src/components/common/CodeEditor/YamlEditor.d.ts.map +1 -1
- package/dist/ui-components/src/components/common/CodeEditor/YamlEditor.js +5 -3
- package/dist/ui-components/src/components/common/CodeEditor/YamlEditor.js.map +1 -1
- package/dist/ui-components/src/components/common/CodeEditor/YamlEditorBase.d.ts +5 -3
- package/dist/ui-components/src/components/common/CodeEditor/YamlEditorBase.d.ts.map +1 -1
- package/dist/ui-components/src/components/common/CodeEditor/YamlEditorBase.js +5 -5
- package/dist/ui-components/src/components/common/CodeEditor/YamlEditorBase.js.map +1 -1
- package/dist/ui-components/src/components/common/FlightCtlWizardFooter.d.ts +3 -1
- package/dist/ui-components/src/components/common/FlightCtlWizardFooter.d.ts.map +1 -1
- package/dist/ui-components/src/components/common/FlightCtlWizardFooter.js +6 -6
- package/dist/ui-components/src/components/common/FlightCtlWizardFooter.js.map +1 -1
- package/dist/ui-components/src/components/common/LabelsView.d.ts.map +1 -1
- package/dist/ui-components/src/components/common/LabelsView.js +2 -1
- package/dist/ui-components/src/components/common/LabelsView.js.map +1 -1
- package/dist/ui-components/src/components/common/PageNavigation.js +1 -1
- package/dist/ui-components/src/components/common/PageNavigation.js.map +1 -1
- package/dist/ui-components/src/components/common/ResourceLink.d.ts +2 -1
- package/dist/ui-components/src/components/common/ResourceLink.d.ts.map +1 -1
- package/dist/ui-components/src/components/common/ResourceLink.js +2 -2
- package/dist/ui-components/src/components/common/ResourceLink.js.map +1 -1
- package/dist/ui-components/src/components/common/WithHelperText.js +1 -1
- package/dist/ui-components/src/components/common/WithHelperText.js.map +1 -1
- package/dist/ui-components/src/components/common/WithTooltip.d.ts +3 -2
- package/dist/ui-components/src/components/common/WithTooltip.d.ts.map +1 -1
- package/dist/ui-components/src/components/common/WithTooltip.js +6 -1
- package/dist/ui-components/src/components/common/WithTooltip.js.map +1 -1
- package/dist/ui-components/src/components/form/ExpandableFormSection.d.ts +2 -1
- package/dist/ui-components/src/components/form/ExpandableFormSection.d.ts.map +1 -1
- package/dist/ui-components/src/components/form/ExpandableFormSection.js +2 -2
- package/dist/ui-components/src/components/form/ExpandableFormSection.js.map +1 -1
- package/dist/ui-components/src/components/form/FormSelect.d.ts +9 -2
- package/dist/ui-components/src/components/form/FormSelect.d.ts.map +1 -1
- package/dist/ui-components/src/components/form/FormSelect.js +16 -5
- package/dist/ui-components/src/components/form/FormSelect.js.map +1 -1
- package/dist/ui-components/src/components/form/IconUploadField.d.ts +8 -0
- package/dist/ui-components/src/components/form/IconUploadField.d.ts.map +1 -0
- package/dist/ui-components/src/components/form/IconUploadField.js +50 -0
- package/dist/ui-components/src/components/form/IconUploadField.js.map +1 -0
- package/dist/ui-components/src/components/form/LabelsField.d.ts.map +1 -1
- package/dist/ui-components/src/components/form/LabelsField.js +7 -3
- package/dist/ui-components/src/components/form/LabelsField.js.map +1 -1
- package/dist/ui-components/src/components/form/TextListField.d.ts +1 -1
- package/dist/ui-components/src/components/form/validations.d.ts +17 -1
- package/dist/ui-components/src/components/form/validations.d.ts.map +1 -1
- package/dist/ui-components/src/components/form/validations.js +14 -9
- package/dist/ui-components/src/components/form/validations.js.map +1 -1
- package/dist/ui-components/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.d.ts.map +1 -1
- package/dist/ui-components/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.js +1 -1
- package/dist/ui-components/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.js.map +1 -1
- package/dist/ui-components/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.d.ts.map +1 -1
- package/dist/ui-components/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.js +1 -1
- package/dist/ui-components/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.js.map +1 -1
- package/dist/ui-components/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.d.ts.map +1 -1
- package/dist/ui-components/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js +1 -1
- package/dist/ui-components/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js.map +1 -1
- package/dist/ui-components/src/constants.d.ts +1 -1
- package/dist/ui-components/src/constants.d.ts.map +1 -1
- package/dist/ui-components/src/constants.js +3 -0
- package/dist/ui-components/src/constants.js.map +1 -1
- package/dist/ui-components/src/hooks/useAppContext.d.ts +7 -0
- package/dist/ui-components/src/hooks/useAppContext.d.ts.map +1 -1
- package/dist/ui-components/src/hooks/useAppContext.js +7 -0
- package/dist/ui-components/src/hooks/useAppContext.js.map +1 -1
- package/dist/ui-components/src/hooks/useAppLinks.d.ts +1 -1
- package/dist/ui-components/src/hooks/useAppLinks.d.ts.map +1 -1
- package/dist/ui-components/src/hooks/useAppLinks.js +6 -0
- package/dist/ui-components/src/hooks/useAppLinks.js.map +1 -1
- package/dist/ui-components/src/hooks/useFetch.d.ts.map +1 -1
- package/dist/ui-components/src/hooks/useFetchPeriodically.d.ts.map +1 -1
- package/dist/ui-components/src/hooks/useFetchPeriodically.js +4 -4
- package/dist/ui-components/src/hooks/useFetchPeriodically.js.map +1 -1
- package/dist/ui-components/src/hooks/useNavigate.d.ts +10 -3
- package/dist/ui-components/src/hooks/useNavigate.d.ts.map +1 -1
- package/dist/ui-components/src/hooks/useNavigate.js +11 -3
- package/dist/ui-components/src/hooks/useNavigate.js.map +1 -1
- package/dist/ui-components/src/types/extraTypes.d.ts +0 -1
- package/dist/ui-components/src/types/extraTypes.d.ts.map +1 -1
- package/dist/ui-components/src/types/extraTypes.js.map +1 -1
- package/dist/ui-components/src/types/rbac.d.ts +2 -0
- package/dist/ui-components/src/types/rbac.d.ts.map +1 -1
- package/dist/ui-components/src/types/rbac.js +2 -0
- package/dist/ui-components/src/types/rbac.js.map +1 -1
- package/dist/ui-components/src/utils/api.d.ts +2 -1
- package/dist/ui-components/src/utils/api.d.ts.map +1 -1
- package/dist/ui-components/src/utils/api.js.map +1 -1
- package/dist/ui-components/src/utils/patch.d.ts.map +1 -1
- package/dist/ui-components/src/utils/patch.js +2 -1
- package/dist/ui-components/src/utils/patch.js.map +1 -1
- package/dist/ui-components/src/utils/resource.d.ts +2 -1
- package/dist/ui-components/src/utils/resource.d.ts.map +1 -1
- package/dist/ui-components/src/utils/resource.js +13 -1
- package/dist/ui-components/src/utils/resource.js.map +1 -1
- package/package.json +9 -3
- package/src/components/Catalog/AddCatalogItemWizard/AddCatalogItemWizard.tsx +278 -0
- package/src/components/Catalog/AddCatalogItemWizard/ChannelsSelect.tsx +214 -0
- package/src/components/Catalog/AddCatalogItemWizard/CreateCatalogModal.tsx +179 -0
- package/src/components/Catalog/AddCatalogItemWizard/steps/GeneralInfoStep.tsx +196 -0
- package/src/components/Catalog/AddCatalogItemWizard/steps/ReviewStep.tsx +145 -0
- package/src/components/Catalog/AddCatalogItemWizard/steps/TypeConfigStep.tsx +203 -0
- package/src/components/Catalog/AddCatalogItemWizard/steps/VersionStep.tsx +249 -0
- package/src/components/Catalog/AddCatalogItemWizard/types.ts +58 -0
- package/src/components/Catalog/AddCatalogItemWizard/utils.ts +655 -0
- package/src/components/Catalog/CatalogItemCard.tsx +86 -0
- package/src/components/Catalog/CatalogItemDetails.css +4 -0
- package/src/components/Catalog/CatalogItemDetails.tsx +480 -0
- package/src/components/Catalog/CatalogLandingPage.tsx +258 -0
- package/src/components/Catalog/CatalogPage.css +10 -0
- package/src/components/Catalog/CatalogPage.tsx +464 -0
- package/src/components/Catalog/CatalogPageToolbar.tsx +92 -0
- package/src/components/Catalog/DeleteCatalogModal.tsx +163 -0
- package/src/components/Catalog/DeprecateModal.tsx +149 -0
- package/src/components/Catalog/EditWizard/EditAppWizard.tsx +181 -0
- package/src/components/Catalog/EditWizard/EditOsWizard.tsx +136 -0
- package/src/components/Catalog/EditWizard/EditWizard.tsx +300 -0
- package/src/components/Catalog/EditWizard/steps/ReviewStep.tsx +83 -0
- package/src/components/Catalog/EditWizard/steps/UpdateGraph.css +138 -0
- package/src/components/Catalog/EditWizard/steps/UpdateGraph.tsx +169 -0
- package/src/components/Catalog/EditWizard/steps/UpdateStep.tsx +184 -0
- package/src/components/Catalog/EditWizard/types.ts +3 -0
- package/src/components/Catalog/ImportCatalogWizard/ImportCatalogWizard.tsx +23 -0
- package/src/components/Catalog/InstallWizard/InstallAppWizard.tsx +228 -0
- package/src/components/Catalog/InstallWizard/InstallOsWizard.tsx +199 -0
- package/src/components/Catalog/InstallWizard/InstallWizard.tsx +95 -0
- package/src/components/Catalog/InstallWizard/UpdateSuccessPage.tsx +80 -0
- package/src/components/Catalog/InstallWizard/steps/AppConfigStep.css +12 -0
- package/src/components/Catalog/InstallWizard/steps/AppConfigStep.tsx +202 -0
- package/src/components/Catalog/InstallWizard/steps/ReviewStep.tsx +193 -0
- package/src/components/Catalog/InstallWizard/steps/SelectTargetStep.tsx +312 -0
- package/src/components/Catalog/InstallWizard/steps/SpecificationsStep.tsx +353 -0
- package/src/components/Catalog/InstallWizard/types.ts +37 -0
- package/src/components/Catalog/InstallWizard/utils.ts +106 -0
- package/src/components/Catalog/InstalledSoftware.tsx +359 -0
- package/src/components/Catalog/ResourceCatalog/ResourceCatalogPage.css +3 -0
- package/src/components/Catalog/ResourceCatalog/ResourceCatalogPage.tsx +79 -0
- package/src/components/Catalog/const.ts +16 -0
- package/src/components/Catalog/useCatalogFilter.ts +26 -0
- package/src/components/Catalog/useCatalogs.ts +118 -0
- package/src/components/Catalog/useSubmitCatalogForm.ts +60 -0
- package/src/components/Catalog/utils.ts +404 -0
- package/src/components/DetailsPage/DetailsPage.tsx +9 -1
- package/src/components/Device/DeviceDetails/DeviceDetailsCatalog.tsx +94 -0
- package/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx +10 -1
- package/src/components/Device/DevicesPage/DecommissionedDeviceTableRow.tsx +7 -3
- package/src/components/Device/DevicesPage/DecommissionedDevicesTable.tsx +2 -0
- package/src/components/Device/DevicesPage/DevicesPage.tsx +7 -1
- package/src/components/Device/DevicesPage/EnrolledDeviceTableRow.tsx +90 -61
- package/src/components/Device/DevicesPage/EnrolledDevicesTable.tsx +12 -2
- package/src/components/Device/DevicesPage/useDevices.ts +71 -3
- package/src/components/Device/EditDeviceWizard/EditDeviceWizard.tsx +1 -1
- package/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.tsx +3 -3
- package/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.tsx +3 -3
- package/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.tsx +51 -22
- package/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.tsx +3 -3
- package/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.tsx +3 -3
- package/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.tsx +3 -3
- package/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.tsx +3 -3
- package/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.tsx +31 -11
- package/src/components/DynamicForm/DynamicForm.tsx +96 -0
- package/src/components/DynamicForm/FieldErrors.tsx +17 -0
- package/src/components/DynamicForm/FieldTemplate.tsx +246 -0
- package/src/components/DynamicForm/FormWidget.tsx +218 -0
- package/src/components/DynamicForm/VolumeImageField.tsx +374 -0
- package/src/components/EnrollmentRequest/EnrollmentRequestTableRow.tsx +6 -2
- package/src/components/Fleet/CreateFleet/CreateFleetWizard.tsx +3 -1
- package/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.tsx +3 -3
- package/src/components/Fleet/FleetDetails/FleetDetailsCatalog.tsx +66 -0
- package/src/components/Fleet/FleetDetails/FleetDetailsPage.tsx +4 -1
- package/src/components/Fleet/FleetDetails/FleetOwnerLink.tsx +5 -6
- package/src/components/Fleet/FleetRow.tsx +23 -12
- package/src/components/Fleet/FleetsPage.tsx +4 -4
- package/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.tsx +16 -203
- package/src/components/Fleet/useFleets.ts +1 -0
- package/src/components/ImageBuilds/CreateImageBuildWizard/utils.ts +1 -5
- package/src/components/ImageBuilds/ImageBuildDetails/ImageBuildDetailsTab.tsx +1 -1
- package/src/components/ImageBuilds/ImageBuildDetails/ImageBuildYaml.tsx +1 -1
- package/src/components/ImageBuilds/ImageBuildRow.tsx +0 -1
- package/src/components/ImageBuilds/ImageBuildsPage.tsx +0 -3
- package/src/components/ImportResourceWizard/ImportResourceWizard.tsx +226 -0
- package/src/components/{Fleet/ImportFleetWizard → ImportResourceWizard}/steps/RepositoryStep.tsx +21 -19
- package/src/components/ImportResourceWizard/steps/ResourceSyncStep.tsx +41 -0
- package/src/components/{Fleet/ImportFleetWizard → ImportResourceWizard}/steps/ReviewStep.tsx +10 -15
- package/src/components/ImportResourceWizard/types.ts +18 -0
- package/src/components/ListPage/ListPage.tsx +1 -1
- package/src/components/Repository/CreateRepository/CreateRepository.tsx +6 -5
- package/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx +1 -1
- package/src/components/Repository/CreateRepository/CreateResourceSyncsForm.tsx +59 -8
- package/src/components/Repository/CreateRepository/types.ts +2 -1
- package/src/components/Repository/CreateRepository/utils.ts +7 -2
- package/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.tsx +6 -9
- package/src/components/ResourceSync/RepositoryResourceSyncList.tsx +30 -15
- package/src/components/{Fleet/FleetResourceSyncs.tsx → ResourceSync/ResourceSyncImportStatus.tsx} +42 -18
- package/src/components/Table/Table.tsx +7 -2
- package/src/components/common/CodeEditor/YamlEditor.tsx +1 -1
- package/src/components/common/CodeEditor/YamlEditorBase.tsx +45 -34
- package/src/components/common/FlightCtlWizardFooter.tsx +25 -4
- package/src/components/common/LabelsView.tsx +2 -1
- package/src/components/common/PageNavigation.tsx +1 -1
- package/src/components/common/ResourceLink.tsx +15 -2
- package/src/components/common/WithHelperText.tsx +1 -1
- package/src/components/common/WithTooltip.tsx +13 -3
- package/src/components/form/ExpandableFormSection.tsx +3 -1
- package/src/components/form/FormSelect.tsx +51 -5
- package/src/components/form/IconUploadField.tsx +88 -0
- package/src/components/form/LabelsField.tsx +29 -25
- package/src/components/form/validations.ts +5 -3
- package/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.tsx +1 -0
- package/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.tsx +1 -0
- package/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx +8 -1
- package/src/constants.ts +4 -1
- package/src/hooks/useAppContext.tsx +7 -0
- package/src/hooks/useAppLinks.ts +8 -2
- package/src/hooks/useFetchPeriodically.ts +4 -5
- package/src/hooks/useNavigate.tsx +18 -5
- package/src/types/extraTypes.ts +0 -1
- package/src/types/rbac.ts +2 -0
- package/src/utils/api.ts +3 -1
- package/src/utils/patch.ts +2 -1
- package/src/utils/resource.ts +13 -1
- package/dist/ui-components/src/components/Fleet/FleetResourceSyncs.d.ts +0 -4
- package/dist/ui-components/src/components/Fleet/FleetResourceSyncs.d.ts.map +0 -1
- package/dist/ui-components/src/components/Fleet/FleetResourceSyncs.js.map +0 -1
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.d.ts.map +0 -1
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js.map +0 -1
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.d.ts +0 -8
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.d.ts.map +0 -1
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.js.map +0 -1
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/ReviewStep.d.ts.map +0 -1
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/ReviewStep.js.map +0 -1
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/types.d.ts +0 -6
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/types.d.ts.map +0 -1
- package/dist/ui-components/src/components/Fleet/ImportFleetWizard/types.js.map +0 -1
- package/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.tsx +0 -40
- package/src/components/Fleet/ImportFleetWizard/types.ts +0 -6
- /package/dist/ui-components/src/components/{Fleet/ImportFleetWizard → Catalog/EditWizard}/types.js +0 -0
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getArtifactLabel = exports.getCatalogItemIcon = exports.getUpdates = exports.getAppPatches = exports.getOsPatches = exports.getRemoveAppPatches = exports.getRemoveOsPatches = exports.getCatalogItemBadge = exports.getFullContainerURI = exports.getFullArtifactURI = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const types_1 = require("@flightctl/types");
|
|
6
|
+
const alpha_1 = require("@flightctl/types/alpha");
|
|
7
|
+
const semver_1 = tslib_1.__importDefault(require("semver"));
|
|
8
|
+
const patch_1 = require("../../utils/patch");
|
|
9
|
+
const const_1 = require("./const");
|
|
10
|
+
const labels_1 = require("../../utils/labels");
|
|
11
|
+
const application_svg_1 = tslib_1.__importDefault(require("../../../assets/application.svg"));
|
|
12
|
+
const os_svg_1 = tslib_1.__importDefault(require("../../../assets/os.svg"));
|
|
13
|
+
const tagRegex = /^[\w][\w.-]{0,127}$/;
|
|
14
|
+
const getFullArtifactURI = (artifact, version) => {
|
|
15
|
+
const versionRef = version.references[artifact.type];
|
|
16
|
+
if (!versionRef) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
try {
|
|
20
|
+
const url = new URL(versionRef);
|
|
21
|
+
if (url.host !== '') {
|
|
22
|
+
return versionRef;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (_a) { }
|
|
26
|
+
try {
|
|
27
|
+
const url = new URL(artifact.uri);
|
|
28
|
+
if (url.host !== '' && url.protocol !== 'oci:') {
|
|
29
|
+
return `${artifact.uri}/${versionRef}`;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
catch (_b) { }
|
|
33
|
+
if (tagRegex.test(versionRef)) {
|
|
34
|
+
return `${artifact.uri}:${versionRef}`;
|
|
35
|
+
}
|
|
36
|
+
return `${artifact.uri}@${versionRef}`;
|
|
37
|
+
};
|
|
38
|
+
exports.getFullArtifactURI = getFullArtifactURI;
|
|
39
|
+
const getFullContainerURI = (artifacts, version) => {
|
|
40
|
+
const containerArtifact = artifacts.find((a) => a.type === alpha_1.CatalogItemArtifactType.CatalogItemArtifactTypeContainer);
|
|
41
|
+
if (!containerArtifact) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
return (0, exports.getFullArtifactURI)(containerArtifact, version);
|
|
45
|
+
};
|
|
46
|
+
exports.getFullContainerURI = getFullContainerURI;
|
|
47
|
+
const getCatalogItemBadge = (itemType, t) => {
|
|
48
|
+
switch (itemType) {
|
|
49
|
+
case alpha_1.CatalogItemType.CatalogItemTypeCompose: {
|
|
50
|
+
return t('Compose');
|
|
51
|
+
}
|
|
52
|
+
case alpha_1.CatalogItemType.CatalogItemTypeContainer: {
|
|
53
|
+
return t('Container');
|
|
54
|
+
}
|
|
55
|
+
case alpha_1.CatalogItemType.CatalogItemTypeData: {
|
|
56
|
+
return t('Data');
|
|
57
|
+
}
|
|
58
|
+
case alpha_1.CatalogItemType.CatalogItemTypeHelm: {
|
|
59
|
+
return t('Helm');
|
|
60
|
+
}
|
|
61
|
+
case alpha_1.CatalogItemType.CatalogItemTypeQuadlet: {
|
|
62
|
+
return t('Quadlet');
|
|
63
|
+
}
|
|
64
|
+
case alpha_1.CatalogItemType.CatalogItemTypeOS: {
|
|
65
|
+
return t('OS image');
|
|
66
|
+
}
|
|
67
|
+
default: {
|
|
68
|
+
return t('Unknown');
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
exports.getCatalogItemBadge = getCatalogItemBadge;
|
|
73
|
+
const getRemoveOsPatches = ({ specPath, currentLabels, }) => {
|
|
74
|
+
const allPatches = [];
|
|
75
|
+
allPatches.push({
|
|
76
|
+
path: `${specPath}spec/os`,
|
|
77
|
+
op: 'remove',
|
|
78
|
+
});
|
|
79
|
+
const newLabels = currentLabels
|
|
80
|
+
? {
|
|
81
|
+
...currentLabels,
|
|
82
|
+
}
|
|
83
|
+
: {};
|
|
84
|
+
delete newLabels[const_1.OS_ITEM_LABEL_KEY];
|
|
85
|
+
delete newLabels[const_1.OS_CHANNEL_LABEL_KEY];
|
|
86
|
+
delete newLabels[const_1.OS_CATALOG_LABEL_KEY];
|
|
87
|
+
const labelPatches = (0, patch_1.getLabelPatches)('/metadata/labels', currentLabels || {}, (0, labels_1.fromAPILabel)(newLabels));
|
|
88
|
+
if (labelPatches.length) {
|
|
89
|
+
allPatches.push(...labelPatches);
|
|
90
|
+
}
|
|
91
|
+
return allPatches;
|
|
92
|
+
};
|
|
93
|
+
exports.getRemoveOsPatches = getRemoveOsPatches;
|
|
94
|
+
const removeAppLabels = (currentLabels, appName) => {
|
|
95
|
+
const apiLabels = (0, labels_1.fromAPILabel)(currentLabels);
|
|
96
|
+
const newLabels = apiLabels.filter(({ key }) => {
|
|
97
|
+
return (![
|
|
98
|
+
`${appName}.${const_1.APP_ITEM_LABEL_KEY}`,
|
|
99
|
+
`${appName}.${const_1.APP_CHANNEL_LABEL_KEY}`,
|
|
100
|
+
`${appName}.${const_1.APP_CATALOG_LABEL_KEY}`,
|
|
101
|
+
].includes(key) &&
|
|
102
|
+
!(key.startsWith(`${appName}.`) &&
|
|
103
|
+
(key.endsWith(`.${const_1.APP_VOLUME_ITEM_LABEL_KEY}`) ||
|
|
104
|
+
key.endsWith(`.${const_1.APP_VOLUME_CATALOG_LABEL_KEY}`) ||
|
|
105
|
+
key.endsWith(`.${const_1.APP_VOLUME_CHANNEL_LABEL_KEY}`))));
|
|
106
|
+
});
|
|
107
|
+
return newLabels;
|
|
108
|
+
};
|
|
109
|
+
const getRemoveAppPatches = ({ appName, specPath, currentLabels, currentApps, }) => {
|
|
110
|
+
const allPatches = [];
|
|
111
|
+
const appIndex = currentApps === null || currentApps === void 0 ? void 0 : currentApps.findIndex((a) => a.name === appName);
|
|
112
|
+
if ((currentApps === null || currentApps === void 0 ? void 0 : currentApps.length) && appIndex !== -1) {
|
|
113
|
+
allPatches.push({
|
|
114
|
+
path: `${specPath}spec/applications/${appIndex}`,
|
|
115
|
+
op: 'remove',
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
if (currentLabels) {
|
|
119
|
+
const newLabels = removeAppLabels(currentLabels, appName);
|
|
120
|
+
const labelPatches = (0, patch_1.getLabelPatches)('/metadata/labels', currentLabels || {}, newLabels);
|
|
121
|
+
if (labelPatches.length) {
|
|
122
|
+
allPatches.push(...labelPatches);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return allPatches;
|
|
126
|
+
};
|
|
127
|
+
exports.getRemoveAppPatches = getRemoveAppPatches;
|
|
128
|
+
const getOsPatches = ({ currentOsImage, currentLabels, catalogItem, catalogItemVersion, channel, specPath, }) => {
|
|
129
|
+
const allPatches = [];
|
|
130
|
+
const newOsImage = (0, exports.getFullContainerURI)(catalogItem.spec.artifacts, catalogItemVersion);
|
|
131
|
+
if (!currentOsImage) {
|
|
132
|
+
allPatches.push({
|
|
133
|
+
path: `${specPath}spec/os`,
|
|
134
|
+
op: 'add',
|
|
135
|
+
value: { image: newOsImage },
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
else if (currentOsImage !== newOsImage) {
|
|
139
|
+
(0, patch_1.appendJSONPatch)({
|
|
140
|
+
path: `${specPath}spec/os/image`,
|
|
141
|
+
patches: allPatches,
|
|
142
|
+
newValue: newOsImage,
|
|
143
|
+
originalValue: currentOsImage,
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
const newLabels = (0, labels_1.fromAPILabel)({
|
|
147
|
+
...(currentLabels || {}),
|
|
148
|
+
[const_1.OS_CHANNEL_LABEL_KEY]: channel,
|
|
149
|
+
[const_1.OS_CATALOG_LABEL_KEY]: catalogItem.metadata.catalog,
|
|
150
|
+
[const_1.OS_ITEM_LABEL_KEY]: catalogItem.metadata.name || '',
|
|
151
|
+
});
|
|
152
|
+
const labelPatches = (0, patch_1.getLabelPatches)('/metadata/labels', currentLabels || {}, newLabels);
|
|
153
|
+
if (labelPatches.length) {
|
|
154
|
+
allPatches.push(...labelPatches);
|
|
155
|
+
}
|
|
156
|
+
return allPatches;
|
|
157
|
+
};
|
|
158
|
+
exports.getOsPatches = getOsPatches;
|
|
159
|
+
const getAppType = (catalogItem) => {
|
|
160
|
+
switch (catalogItem.spec.type) {
|
|
161
|
+
case alpha_1.CatalogItemType.CatalogItemTypeCompose:
|
|
162
|
+
return types_1.AppType.AppTypeCompose;
|
|
163
|
+
case alpha_1.CatalogItemType.CatalogItemTypeQuadlet:
|
|
164
|
+
return types_1.AppType.AppTypeQuadlet;
|
|
165
|
+
case alpha_1.CatalogItemType.CatalogItemTypeHelm:
|
|
166
|
+
return types_1.AppType.AppTypeHelm;
|
|
167
|
+
case alpha_1.CatalogItemType.CatalogItemTypeContainer:
|
|
168
|
+
return types_1.AppType.AppTypeContainer;
|
|
169
|
+
default:
|
|
170
|
+
return undefined;
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
const getAppPatches = ({ appName, currentApps, currentLabels, catalogItem, catalogItemVersion, channel, formValues, specPath, selectedAssets, }) => {
|
|
174
|
+
const allPatches = [];
|
|
175
|
+
const appType = getAppType(catalogItem);
|
|
176
|
+
if (!appType) {
|
|
177
|
+
throw new Error('Unknown application type');
|
|
178
|
+
}
|
|
179
|
+
const image = (0, exports.getFullContainerURI)(catalogItem.spec.artifacts, catalogItemVersion);
|
|
180
|
+
if (!image) {
|
|
181
|
+
throw new Error(`Failed to create image uri for ${appName}`);
|
|
182
|
+
}
|
|
183
|
+
const appSpec = {
|
|
184
|
+
...formValues,
|
|
185
|
+
name: appName,
|
|
186
|
+
appType,
|
|
187
|
+
image,
|
|
188
|
+
};
|
|
189
|
+
const existingAppIndex = currentApps === null || currentApps === void 0 ? void 0 : currentApps.findIndex((app) => app.name === appSpec.name);
|
|
190
|
+
if (!currentApps) {
|
|
191
|
+
allPatches.push({
|
|
192
|
+
path: `${specPath}spec/applications`,
|
|
193
|
+
op: 'add',
|
|
194
|
+
value: [appSpec],
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
else if (existingAppIndex === -1) {
|
|
198
|
+
allPatches.push({
|
|
199
|
+
path: `${specPath}spec/applications/-`,
|
|
200
|
+
op: 'add',
|
|
201
|
+
value: appSpec,
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
allPatches.push({
|
|
206
|
+
path: `${specPath}spec/applications/${existingAppIndex}`,
|
|
207
|
+
op: 'replace',
|
|
208
|
+
value: appSpec,
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
const volumeLabels = selectedAssets.reduce((acc, { assetChannel, assetItemName, assetCatalog, volumeIndex }) => {
|
|
212
|
+
const volumes = appSpec.volumes;
|
|
213
|
+
if (!volumes || volumes.length <= volumeIndex) {
|
|
214
|
+
return acc;
|
|
215
|
+
}
|
|
216
|
+
const volumeName = volumes[volumeIndex].name;
|
|
217
|
+
return {
|
|
218
|
+
...acc,
|
|
219
|
+
[`${(0, const_1.getAppVolumeName)(appSpec.name, volumeName, const_1.APP_VOLUME_ITEM_LABEL_KEY)}`]: assetItemName,
|
|
220
|
+
[`${(0, const_1.getAppVolumeName)(appSpec.name, volumeName, const_1.APP_VOLUME_CHANNEL_LABEL_KEY)}`]: assetChannel,
|
|
221
|
+
[`${(0, const_1.getAppVolumeName)(appSpec.name, volumeName, const_1.APP_VOLUME_CATALOG_LABEL_KEY)}`]: assetCatalog,
|
|
222
|
+
};
|
|
223
|
+
}, {});
|
|
224
|
+
const newLabels = removeAppLabels(currentLabels || {}, appName);
|
|
225
|
+
const appLabels = (0, labels_1.fromAPILabel)({
|
|
226
|
+
[`${appSpec.name}.${const_1.APP_CHANNEL_LABEL_KEY}`]: channel,
|
|
227
|
+
[`${appSpec.name}.${const_1.APP_CATALOG_LABEL_KEY}`]: catalogItem.metadata.catalog,
|
|
228
|
+
[`${appSpec.name}.${const_1.APP_ITEM_LABEL_KEY}`]: catalogItem.metadata.name || '',
|
|
229
|
+
...volumeLabels,
|
|
230
|
+
});
|
|
231
|
+
newLabels.push(...appLabels);
|
|
232
|
+
const labelPatches = (0, patch_1.getLabelPatches)('/metadata/labels', currentLabels || {}, newLabels);
|
|
233
|
+
if (labelPatches.length) {
|
|
234
|
+
allPatches.push(...labelPatches);
|
|
235
|
+
}
|
|
236
|
+
return allPatches;
|
|
237
|
+
};
|
|
238
|
+
exports.getAppPatches = getAppPatches;
|
|
239
|
+
const getUpdates = (catalogItem, currentChannel, currentVersion) => {
|
|
240
|
+
const updateVersions = catalogItem.spec.versions.filter((version) => {
|
|
241
|
+
var _a;
|
|
242
|
+
if (!version.channels.includes(currentChannel))
|
|
243
|
+
return false;
|
|
244
|
+
// Check if current version can upgrade to this version via:
|
|
245
|
+
// 1. replaces - direct replacement (now a single string)
|
|
246
|
+
if (version.replaces === currentVersion)
|
|
247
|
+
return true;
|
|
248
|
+
// 2. skips - array of specific versions that can be skipped
|
|
249
|
+
if ((_a = version.skips) === null || _a === void 0 ? void 0 : _a.includes(currentVersion))
|
|
250
|
+
return true;
|
|
251
|
+
// 3. skipRange - semver range check
|
|
252
|
+
if (version.skipRange && semver_1.default.satisfies(currentVersion, version.skipRange, { includePrerelease: true })) {
|
|
253
|
+
return true;
|
|
254
|
+
}
|
|
255
|
+
return false;
|
|
256
|
+
});
|
|
257
|
+
// only versions which have container
|
|
258
|
+
return updateVersions.filter((v) => !!(0, exports.getFullContainerURI)(catalogItem.spec.artifacts, v));
|
|
259
|
+
};
|
|
260
|
+
exports.getUpdates = getUpdates;
|
|
261
|
+
const getCatalogItemIcon = (catalogItem) => catalogItem.spec.icon ||
|
|
262
|
+
(catalogItem.spec.category === alpha_1.CatalogItemCategory.CatalogItemCategorySystem ? os_svg_1.default : application_svg_1.default);
|
|
263
|
+
exports.getCatalogItemIcon = getCatalogItemIcon;
|
|
264
|
+
const getArtifactLabel = (t, type, name) => {
|
|
265
|
+
let artifactType;
|
|
266
|
+
switch (type) {
|
|
267
|
+
case alpha_1.CatalogItemArtifactType.CatalogItemArtifactTypeQcow2:
|
|
268
|
+
artifactType = t('OpenShift Virtualization');
|
|
269
|
+
break;
|
|
270
|
+
case alpha_1.CatalogItemArtifactType.CatalogItemArtifactTypeIso:
|
|
271
|
+
artifactType = t('Bare Metal');
|
|
272
|
+
break;
|
|
273
|
+
case alpha_1.CatalogItemArtifactType.CatalogItemArtifactTypeAmi:
|
|
274
|
+
artifactType = t('Amazon Web Services');
|
|
275
|
+
break;
|
|
276
|
+
case alpha_1.CatalogItemArtifactType.CatalogItemArtifactTypeAnacondaIso:
|
|
277
|
+
artifactType = t('Anaconda Installer');
|
|
278
|
+
break;
|
|
279
|
+
case alpha_1.CatalogItemArtifactType.CatalogItemArtifactTypeGce:
|
|
280
|
+
artifactType = t('Google Cloud');
|
|
281
|
+
break;
|
|
282
|
+
case alpha_1.CatalogItemArtifactType.CatalogItemArtifactTypeRaw:
|
|
283
|
+
artifactType = t('KVM/custom cloud import');
|
|
284
|
+
break;
|
|
285
|
+
case alpha_1.CatalogItemArtifactType.CatalogItemArtifactTypeVhd:
|
|
286
|
+
artifactType = t('Microsoft Hyper-V');
|
|
287
|
+
break;
|
|
288
|
+
case alpha_1.CatalogItemArtifactType.CatalogItemArtifactTypeVmdk:
|
|
289
|
+
artifactType = t('VMware vSphere');
|
|
290
|
+
break;
|
|
291
|
+
case alpha_1.CatalogItemArtifactType.CatalogItemArtifactTypeContainer:
|
|
292
|
+
artifactType = t('Cloud native');
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
if (name) {
|
|
296
|
+
return `${name} (${type})`;
|
|
297
|
+
}
|
|
298
|
+
if (artifactType) {
|
|
299
|
+
return `${artifactType} (${type})`;
|
|
300
|
+
}
|
|
301
|
+
return type;
|
|
302
|
+
};
|
|
303
|
+
exports.getArtifactLabel = getArtifactLabel;
|
|
304
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/components/Catalog/utils.ts"],"names":[],"mappings":";;;;AAAA,4CAAwG;AACxG,kDAOgC;AAEhC,4DAA4B;AAE5B,6CAAqE;AACrE,mCAWiB;AACjB,+CAAkD;AAGlD,8FAAsD;AACtD,4EAA4C;AAE5C,MAAM,QAAQ,GAAG,qBAAqB,CAAC;AAEhC,MAAM,kBAAkB,GAAG,CAAC,QAA6B,EAAE,OAA2B,EAAE,EAAE;IAC/F,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACrD,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC;QAChC,IAAI,GAAG,CAAC,IAAI,KAAK,EAAE,EAAE,CAAC;YACpB,OAAO,UAAU,CAAC;QACpB,CAAC;IACH,CAAC;IAAC,WAAM,CAAC,CAAA,CAAC;IAEV,IAAI,CAAC;QACH,MAAM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QACjB,OAAO,GAAG,YAAY,KAAK,IAAI,GAAG,CAAC;IACrC,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAxCW,QAAA,gBAAgB,oBAwC3B"}
|
|
@@ -14,7 +14,9 @@ export type DetailsPageProps = {
|
|
|
14
14
|
actions?: React.ReactNode;
|
|
15
15
|
nav?: React.ReactNode;
|
|
16
16
|
banner?: React.ReactNode;
|
|
17
|
+
/** Optional data-testid for the title (e.g. "device-details-title") */
|
|
18
|
+
titleDataTestId?: string;
|
|
17
19
|
};
|
|
18
|
-
declare const DetailsPage: ({ id, breadcrumbTitle, title, children, error, loading, resourceLink, resourceType, resourceTypeLabel, actions, nav, banner, }: DetailsPageProps) => React.JSX.Element;
|
|
20
|
+
declare const DetailsPage: ({ id, breadcrumbTitle, title, children, error, loading, resourceLink, resourceType, resourceTypeLabel, actions, nav, banner, titleDataTestId, }: DetailsPageProps) => React.JSX.Element;
|
|
19
21
|
export default DetailsPage;
|
|
20
22
|
//# sourceMappingURL=DetailsPage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsPage.d.ts","sourceRoot":"","sources":["../../../../../src/components/DetailsPage/DetailsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,OAAO,EAAQ,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGtD,OAAO,mBAAmB,CAAC;AAE3B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EACR,QAAQ,GACR,SAAS,GACT,cAAc,GACd,qBAAqB,GACrB,0BAA0B,GAC1B,cAAc,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,KAAK,CAAC;IACpB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,WAAW,GAAI,
|
|
1
|
+
{"version":3,"file":"DetailsPage.d.ts","sourceRoot":"","sources":["../../../../../src/components/DetailsPage/DetailsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,OAAO,EAAQ,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGtD,OAAO,mBAAmB,CAAC;AAE3B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EACR,QAAQ,GACR,SAAS,GACT,cAAc,GACd,qBAAqB,GACrB,0BAA0B,GAC1B,cAAc,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,KAAK,CAAC;IACpB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,uEAAuE;IACvE,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,WAAW,GAAI,iJAclB,gBAAgB,sBAyDlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -9,7 +9,7 @@ const useTranslation_1 = require("../../hooks/useTranslation");
|
|
|
9
9
|
const useNavigate_1 = require("../../hooks/useNavigate");
|
|
10
10
|
const ErrorBoundary_1 = tslib_1.__importDefault(require("../common/ErrorBoundary"));
|
|
11
11
|
require("./DetailsPage.css");
|
|
12
|
-
const DetailsPage = ({ id, breadcrumbTitle, title, children, error, loading, resourceLink, resourceType, resourceTypeLabel, actions, nav, banner, }) => {
|
|
12
|
+
const DetailsPage = ({ id, breadcrumbTitle, title, children, error, loading, resourceLink, resourceType, resourceTypeLabel, actions, nav, banner, titleDataTestId, }) => {
|
|
13
13
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
14
14
|
let content = children;
|
|
15
15
|
if (error) {
|
|
@@ -32,7 +32,7 @@ const DetailsPage = ({ id, breadcrumbTitle, title, children, error, loading, res
|
|
|
32
32
|
React.createElement(react_core_1.PageSection, { hasBodyWrapper: false },
|
|
33
33
|
React.createElement(react_core_1.Split, { hasGutter: true },
|
|
34
34
|
React.createElement(react_core_1.SplitItem, { isFilled: true },
|
|
35
|
-
React.createElement(react_core_1.Title, { headingLevel: "h1", size: "3xl", role: "heading" }, title || id)),
|
|
35
|
+
React.createElement(react_core_1.Title, { headingLevel: "h1", size: "3xl", role: "heading", ...(titleDataTestId && { 'data-testid': titleDataTestId }) }, title || id)),
|
|
36
36
|
React.createElement(react_core_1.SplitItem, null, actions))),
|
|
37
37
|
banner,
|
|
38
38
|
nav && (React.createElement(react_core_1.PageSection, { hasBodyWrapper: false, className: "fctl-details-page__nav" }, nav)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsPage.js","sourceRoot":"","sources":["../../../../../src/components/DetailsPage/DetailsPage.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAUgC;AAEhC,6CAAoD;AACpD,gFAAgD;AAChD,+DAA4D;AAC5D,yDAAsD;AACtD,oFAAoD;AAEpD,6BAA2B;
|
|
1
|
+
{"version":3,"file":"DetailsPage.js","sourceRoot":"","sources":["../../../../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AQ,UAAE,eAAe,IAAI,EAAE,CAAkB,CACtD,CACD;QACd,oBAAC,wBAAW,IAAC,cAAc,EAAE,KAAK;YAChC,oBAAC,kBAAK,IAAC,SAAS;gBACd,oBAAC,sBAAS,IAAC,QAAQ;oBACjB,oBAAC,kBAAK,IACJ,YAAY,EAAC,IAAI,EACjB,IAAI,EAAC,KAAK,EACV,IAAI,EAAC,SAAS,KACV,CAAC,eAAe,IAAI,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC,IAE1D,KAAK,IAAI,EAAE,CACN,CACE;gBACZ,oBAAC,sBAAS,QAAE,OAAO,CAAa,CAC1B,CACI;QACb,MAAM;QACN,GAAG,IAAI,CACN,oBAAC,wBAAW,IAAC,cAAc,EAAE,KAAK,EAAE,SAAS,EAAC,wBAAwB,IACnE,GAAG,CACQ,CACf;QACD,oBAAC,wBAAW,IAAC,cAAc,EAAE,KAAK;YAChC,oBAAC,uBAAa,QAAE,OAAO,CAAiB,CAC5B,CACb,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Device } from '@flightctl/types';
|
|
3
|
+
type DeviceDetailsCatalogProps = {
|
|
4
|
+
device: Device;
|
|
5
|
+
refetch: VoidFunction;
|
|
6
|
+
canEdit: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const DeviceDetailsCatalog: ({ device, refetch, canEdit }: DeviceDetailsCatalogProps) => React.JSX.Element;
|
|
9
|
+
export default DeviceDetailsCatalog;
|
|
10
|
+
//# sourceMappingURL=DeviceDetailsCatalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeviceDetailsCatalog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/DeviceDetails/DeviceDetailsCatalog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAqC,MAAM,kBAAkB,CAAC;AAW7E,KAAK,yBAAyB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,QAAA,MAAM,oBAAoB,GAAI,8BAA8B,yBAAyB,sBAyEpF,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const React = tslib_1.__importStar(require("react"));
|
|
5
|
+
const types_1 = require("@flightctl/types");
|
|
6
|
+
const react_core_1 = require("@patternfly/react-core");
|
|
7
|
+
const useFetch_1 = require("../../../hooks/useFetch");
|
|
8
|
+
const ResourceCatalogPage_1 = tslib_1.__importDefault(require("../../Catalog/ResourceCatalog/ResourceCatalogPage"));
|
|
9
|
+
const useNavigate_1 = require("../../../hooks/useNavigate");
|
|
10
|
+
const useFetchPeriodically_1 = require("../../../hooks/useFetchPeriodically");
|
|
11
|
+
const error_1 = require("../../..//utils/error");
|
|
12
|
+
const useTranslation_1 = require("../../../hooks/useTranslation");
|
|
13
|
+
const resource_1 = require("../../../utils/resource");
|
|
14
|
+
const DeviceDetailsCatalog = ({ device, refetch, canEdit }) => {
|
|
15
|
+
var _a;
|
|
16
|
+
const { patch } = (0, useFetch_1.useFetch)();
|
|
17
|
+
const { t } = (0, useTranslation_1.useTranslation)();
|
|
18
|
+
const navigate = (0, useNavigate_1.useNavigate)();
|
|
19
|
+
const onPatch = React.useCallback(async (allPatches) => {
|
|
20
|
+
await patch(`devices/${device.metadata.name}`, allPatches);
|
|
21
|
+
refetch();
|
|
22
|
+
}, [refetch, patch, device.metadata.name]);
|
|
23
|
+
const fleetOwnerName = (0, resource_1.getOwnerName)(types_1.ResourceKind.FLEET, device.metadata.owner);
|
|
24
|
+
const [ownerFleet, loading, error] = (0, useFetchPeriodically_1.useFetchPeriodically)({
|
|
25
|
+
endpoint: fleetOwnerName ? `fleets/${fleetOwnerName}` : '',
|
|
26
|
+
});
|
|
27
|
+
if (loading) {
|
|
28
|
+
return React.createElement(react_core_1.Spinner, null);
|
|
29
|
+
}
|
|
30
|
+
if (error) {
|
|
31
|
+
return (React.createElement(react_core_1.Alert, { isInline: true, variant: "danger", title: t('Failed to fetch owner fleet') }, (0, error_1.getErrorMessage)(error)));
|
|
32
|
+
}
|
|
33
|
+
return fleetOwnerName ? (React.createElement(ResourceCatalogPage_1.default, { canEdit: false, hasOwner: true, currentLabels: (_a = ownerFleet === null || ownerFleet === void 0 ? void 0 : ownerFleet.metadata) === null || _a === void 0 ? void 0 : _a.labels, onPatch: async () => { }, spec: ownerFleet === null || ownerFleet === void 0 ? void 0 : ownerFleet.spec.template.spec, specPath: "/spec/template", onEdit: () => { }, onInstall: () => { } })) : (React.createElement(ResourceCatalogPage_1.default, { canEdit: canEdit, currentLabels: device.metadata.labels, onPatch: onPatch, spec: device.spec, specPath: "/", onEdit: (catalogId, catalogItemId, appName) => {
|
|
34
|
+
let path = `${device.metadata.name}/${catalogId}/${catalogItemId}`;
|
|
35
|
+
if (appName) {
|
|
36
|
+
const params = new URLSearchParams({
|
|
37
|
+
appName,
|
|
38
|
+
});
|
|
39
|
+
path = `${path}?${params.toString()}`;
|
|
40
|
+
}
|
|
41
|
+
navigate({
|
|
42
|
+
route: useNavigate_1.ROUTE.CATALOG_DEVICE_EDIT,
|
|
43
|
+
postfix: path,
|
|
44
|
+
});
|
|
45
|
+
}, onInstall: ({ item, version, channel }) => {
|
|
46
|
+
const params = new URLSearchParams({
|
|
47
|
+
version,
|
|
48
|
+
channel,
|
|
49
|
+
});
|
|
50
|
+
const path = `${device.metadata.name}/${item.metadata.catalog}/${item.metadata.name}?${params.toString()}`;
|
|
51
|
+
navigate({
|
|
52
|
+
route: useNavigate_1.ROUTE.CATALOG_DEVICE_EDIT,
|
|
53
|
+
postfix: path,
|
|
54
|
+
});
|
|
55
|
+
} }));
|
|
56
|
+
};
|
|
57
|
+
exports.default = DeviceDetailsCatalog;
|
|
58
|
+
//# sourceMappingURL=DeviceDetailsCatalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeviceDetailsCatalog.js","sourceRoot":"","sources":["../../../../../../src/components/Device/DeviceDetails/DeviceDetailsCatalog.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,4CAA6E;AAC7E,uDAAwD;AAExD,sDAAmD;AACnD,oHAAoF;AACpF,4DAAgE;AAChE,8EAA2E;AAC3E,iDAAwD;AACxD,kEAA+D;AAC/D,sDAAuD;AAQvD,MAAM,oBAAoB,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAA6B,EAAE,EAAE;;IACvF,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAC;IAC7B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAC;IAC/B,MAAM,OAAO,GAAG,KAAK,CAAC,WAAW,CAC/B,KAAK,EAAE,UAAwB,EAAE,EAAE;QACjC,MAAM,KAAK,CAAC,WAAW,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,UAAU,CAAC,CAAC;QAC3D,OAAO,EAAE,CAAC;IACZ,CAAC,EACD,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CACvC,CAAC;IAEF,MAAM,cAAc,GAAG,IAAA,uBAAY,EAAC,oBAAY,CAAC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/E,MAAM,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,CAAC,GAAG,IAAA,2CAAoB,EAAQ;QAC/D,QAAQ,EAAE,cAAc,CAAC,CAA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,OAAO;iBACR,CAAC,CAAC;gBACH,IAAI,GAAG,GAAG,IAAI,IAAI,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC;YACxC,CAAC;YACD,QAAQ,CAAC;gBACP,KAAK,EAAE,mBAAK,CAAC,mBAAmB;gBAChC,OAAO,EAAE,IAAI;aACd,CAAC,CAAC;QACL,CAAC,EACD,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE;YACxC,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC;gBACjC,OAAO;gBACP,OAAO;aACR,CAAC,CAAC;YAEH,MAAM,IAAI,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC;YAC3G,QAAQ,CAAC;gBACP,KAAK,EAAE,mBAAK,CAAC,mBAAmB;gBAChC,OAAO,EAAE,IAAI;aACd,CAAC,CAAC;QACL,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceDetailsPage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/DeviceDetails/DeviceDetailsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DeviceDetailsPage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/DeviceDetails/DeviceDetailsPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoC/B,KAAK,sBAAsB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AA4LlF,QAAA,MAAM,gCAAgC,GAAI,OAAO,sBAAsB,sBAQtE,CAAC;AAEF,eAAe,gCAAgC,CAAC"}
|
|
@@ -24,6 +24,7 @@ const PageWithPermissions_1 = tslib_1.__importDefault(require("../../common/Page
|
|
|
24
24
|
const YamlEditor_1 = tslib_1.__importDefault(require("../../common/CodeEditor/YamlEditor"));
|
|
25
25
|
const DeviceAliasEdit_1 = tslib_1.__importDefault(require("./DeviceAliasEdit"));
|
|
26
26
|
const SystemRestoreBanners_1 = require("../../SystemRestore/SystemRestoreBanners");
|
|
27
|
+
const DeviceDetailsCatalog_1 = tslib_1.__importDefault(require("./DeviceDetailsCatalog"));
|
|
27
28
|
const deviceDetailsPermissions = [
|
|
28
29
|
{ kind: rbac_1.RESOURCE.DEVICE_CONSOLE, verb: rbac_1.VERB.GET },
|
|
29
30
|
{ kind: rbac_1.RESOURCE.DEVICE, verb: rbac_1.VERB.DELETE },
|
|
@@ -87,10 +88,11 @@ const DeviceDetailsPage = ({ children, hideTerminal }) => {
|
|
|
87
88
|
[types_1.DeviceSummaryStatusType.DeviceSummaryStatusConflictPaused]: deviceSummaryStatus === types_1.DeviceSummaryStatusType.DeviceSummaryStatusConflictPaused ? 1 : 0,
|
|
88
89
|
[types_1.DeviceSummaryStatusType.DeviceSummaryStatusAwaitingReconnect]: deviceSummaryStatus === types_1.DeviceSummaryStatusType.DeviceSummaryStatusAwaitingReconnect ? 1 : 0,
|
|
89
90
|
};
|
|
90
|
-
return (React.createElement(DetailsPage_1.default, { loading: loading, error: error, id: deviceId, breadcrumbTitle: deviceAlias, title: canEdit ? (
|
|
91
|
+
return (React.createElement(DetailsPage_1.default, { loading: loading, error: error, id: deviceId, breadcrumbTitle: deviceAlias, titleDataTestId: "device-details-title", title: canEdit ? (
|
|
91
92
|
/* key={deviceAlias} is needed for the input field to be initialized with the alias as its value */
|
|
92
|
-
React.createElement(DeviceAliasEdit_1.default, { key: deviceAlias, deviceId: deviceId, alias: deviceAlias, hasLabels: !!deviceLabels, onAliasEdited: refetch })) : (deviceAlias), banner: device && (React.createElement(SystemRestoreBanners_1.SystemRestoreBanners, { mode: "device", resumeAction: resumeDevice, summaryStatus: deviceSummary, onResumeComplete: refetch, className: "pf-v6-u-pt-0 pf-v6-u-px-lg" })), resourceLink: useNavigate_1.ROUTE.DEVICES, resourceType: "Devices", resourceTypeLabel: t('Devices'), nav: React.createElement(TabsNav_1.default, { "aria-label": "Device details tabs", tabKeys: ['details', 'yaml', 'terminal', 'events'] },
|
|
93
|
+
React.createElement(DeviceAliasEdit_1.default, { key: deviceAlias, deviceId: deviceId, alias: deviceAlias, hasLabels: !!deviceLabels, onAliasEdited: refetch })) : (deviceAlias), banner: device && (React.createElement(SystemRestoreBanners_1.SystemRestoreBanners, { mode: "device", resumeAction: resumeDevice, summaryStatus: deviceSummary, onResumeComplete: refetch, className: "pf-v6-u-pt-0 pf-v6-u-px-lg" })), resourceLink: useNavigate_1.ROUTE.DEVICES, resourceType: "Devices", resourceTypeLabel: t('Devices'), nav: React.createElement(TabsNav_1.default, { "aria-label": "Device details tabs", tabKeys: ['details', 'catalog', 'yaml', 'terminal', 'events'] },
|
|
93
94
|
React.createElement(react_core_1.Tab, { eventKey: "details", title: t('Details') }),
|
|
95
|
+
isEnrolled && React.createElement(react_core_1.Tab, { eventKey: "catalog", title: t('Catalog') }),
|
|
94
96
|
React.createElement(react_core_1.Tab, { eventKey: "yaml", title: t('YAML') }),
|
|
95
97
|
!hideTerminal && canOpenTerminal && React.createElement(react_core_1.Tab, { eventKey: "terminal", title: t('Terminal') }),
|
|
96
98
|
React.createElement(react_core_1.Tab, { eventKey: "events", title: t('Events') })), actions: isEnrolled ? (React.createElement(DetailsPageActions_1.default, null,
|
|
@@ -101,6 +103,7 @@ const DeviceDetailsPage = ({ children, hideTerminal }) => {
|
|
|
101
103
|
device && (React.createElement(Routes, null,
|
|
102
104
|
React.createElement(Route, { index: true, element: React.createElement(Navigate, { to: "details", replace: true }) }),
|
|
103
105
|
React.createElement(Route, { path: "details", element: React.createElement(DeviceDetailsTab_1.default, { device: device, refetch: refetch, canEdit: hasEditPermissions }, children) }),
|
|
106
|
+
isEnrolled && (React.createElement(Route, { path: "catalog", element: React.createElement(DeviceDetailsCatalog_1.default, { device: device, refetch: refetch, canEdit: hasEditPermissions }) })),
|
|
104
107
|
React.createElement(Route, { path: "yaml", element: React.createElement(YamlEditor_1.default, { apiObj: device, refetch: refetch, disabledEditReason: editDisabledReason, canEdit: hasEditPermissions }) }),
|
|
105
108
|
!hideTerminal && canOpenTerminal && React.createElement(Route, { path: "terminal", element: React.createElement(TerminalTab_1.default, { device: device }) }),
|
|
106
109
|
React.createElement(Route, { path: "events", element: React.createElement(EventsCard_1.default, { kind: types_1.ResourceKind.DEVICE, objId: deviceId }) }))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceDetailsPage.js","sourceRoot":"","sources":["../../../../../../src/components/Device/DeviceDetails/DeviceDetailsPage.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,iDAAsC;AACtC,uDAAiF;AAEjF,4CAM0B;AAC1B,8EAA2E;AAC3E,sDAAmD;AACnD,oDAAiE;AACjE,wFAAwD;AACxD,mGAI8C;AAC9C,kEAA+D;AAC/D,4DAAgE;AAChE,gEAA6D;AAC7D,kFAAkD;AAClD,wEAAwC;AACxC,oDAA0G;AAC1G,4EAA4C;AAC5C,8CAAqD;AACrD,wEAAwE;AACxE,iFAAiD;AACjD,mGAAmE;AACnE,4FAA4D;AAC5D,gFAAgD;AAChD,mFAAgF;
|
|
1
|
+
{"version":3,"file":"DeviceDetailsPage.js","sourceRoot":"","sources":["../../../../../../src/components/Device/DeviceDetails/DeviceDetailsPage.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,iDAAsC;AACtC,uDAAiF;AAEjF,4CAM0B;AAC1B,8EAA2E;AAC3E,sDAAmD;AACnD,oDAAiE;AACjE,wFAAwD;AACxD,mGAI8C;AAC9C,kEAA+D;AAC/D,4DAAgE;AAChE,gEAA6D;AAC7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,EACL,oBAAC,oBAAU,IACT,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE,kBAAkB,GAC3B,GAEJ;YACD,CAAC,YAAY,IAAI,eAAe,IAAI,oBAAC,KAAK,IAAC,IAAI,EAAC,UAAU,EAAC,OAAO,EAAE,oBAAC,qBAAW,IAAC,MAAM,EAAE,MAAM,GAAI,GAAI;YACxG,oBAAC,KAAK,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,oBAAC,oBAAU,IAAC,IAAI,EAAE,oBAAY,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAI,GAAI,CACrF,CACV;QAEA,WAAW,IAAI,iBAAiB,IAAI,WAAW,CACpC,CACf,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gCAAgC,GAAG,CAAC,KAA6B,EAAE,EAAE;IACzE,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,GAAG,IAAA,0CAAqB,GAAE,CAAC;IAC9D,MAAM,CAAC,OAAO,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,IAAI,EAAE,eAAQ,CAAC,MAAM,EAAE,IAAI,EAAE,WAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAChF,OAAO,CACL,oBAAC,6BAAmB,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO;QACrD,oBAAC,iBAAiB,OAAK,KAAK,GAAI,CACZ,CACvB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,gCAAgC,CAAC"}
|
package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDeviceTableRow.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DecommissionedDeviceTableRow.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/DecommissionedDeviceTableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAiB,QAAQ,EAAU,MAAM,yBAAyB,CAAC;AAE1E,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMlD,KAAK,iCAAiC,GAAG;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,QAAQ,CAAC;IAC1C,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,UAAU,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,4BAA4B,GAAI,qFAQnC,iCAAiC,
|
|
1
|
+
{"version":3,"file":"DecommissionedDeviceTableRow.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/DecommissionedDeviceTableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAiB,QAAQ,EAAU,MAAM,yBAAyB,CAAC;AAE1E,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMlD,KAAK,iCAAiC,GAAG;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,QAAQ,CAAC;IAC1C,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,UAAU,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,4BAA4B,GAAI,qFAQnC,iCAAiC,sBA4DnC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDeviceTableRow.js
CHANGED
|
@@ -13,17 +13,17 @@ const DecommissionedDeviceTableRow = ({ device, deleteAction, rowIndex, onRowSel
|
|
|
13
13
|
const navigate = (0, useNavigate_1.useNavigate)();
|
|
14
14
|
const deviceName = device.metadata.name;
|
|
15
15
|
const deviceAlias = (_a = device.metadata.labels) === null || _a === void 0 ? void 0 : _a.alias;
|
|
16
|
-
return (React.createElement(react_table_1.Tr,
|
|
16
|
+
return (React.createElement(react_table_1.Tr, { "data-testid": `decommissioned-device-row-${rowIndex}` },
|
|
17
17
|
React.createElement(react_table_1.Td, { select: {
|
|
18
18
|
rowIndex,
|
|
19
19
|
onSelect: onRowSelect(device),
|
|
20
20
|
isSelected: isRowSelected(device),
|
|
21
21
|
} }),
|
|
22
22
|
React.createElement(react_table_1.Td, { dataLabel: t('Name') },
|
|
23
|
-
React.createElement(ResourceLink_1.default, { id: deviceName, routeLink: useNavigate_1.ROUTE.DEVICE_DETAILS })),
|
|
23
|
+
React.createElement(ResourceLink_1.default, { id: deviceName, routeLink: useNavigate_1.ROUTE.DEVICE_DETAILS, "data-testid": `decommissioned-device-name-link-${rowIndex}` })),
|
|
24
24
|
React.createElement(react_table_1.Td, { dataLabel: t('Device status') },
|
|
25
25
|
React.createElement(DeviceLifecycleStatus_1.default, { device: device })),
|
|
26
|
-
canDelete && (React.createElement(react_table_1.Td, { isActionCell: true },
|
|
26
|
+
canDelete && (React.createElement(react_table_1.Td, { isActionCell: true, "data-testid": `decommissioned-device-row-actions-${rowIndex}` },
|
|
27
27
|
React.createElement(react_table_1.ActionsColumn, { items: [
|
|
28
28
|
...(canEdit
|
|
29
29
|
? [
|
package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDeviceTableRow.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DecommissionedDeviceTableRow.js","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/DecommissionedDeviceTableRow.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,yDAA0E;AAI1E,kEAA+D;AAC/D,4DAAgE;AAChE,qFAAqD;AACrD,uGAAuE;AAYvE,MAAM,4BAA4B,GAAG,CAAC,EACpC,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,aAAa,EACb,SAAS,EACT,OAAO,GAC2B,EAAE,EAAE;;IACtC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAC;IAE/B,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAc,CAAC;IAClD,MAAM,WAAW,GAAG,MAAA,MAAM,CAAC,QAAQ,CAAC,MAAM,0CAAE,KAAK,CAAC;IAElD,OAAO,CACL,oBAAC,gBAAE;
|
|
1
|
+
{"version":3,"file":"DecommissionedDeviceTableRow.js","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/DecommissionedDeviceTableRow.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,yDAA0E;AAI1E,kEAA+D;AAC/D,4DAAgE;AAChE,qFAAqD;AACrD,uGAAuE;AAYvE,MAAM,4BAA4B,GAAG,CAAC,EACpC,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,aAAa,EACb,SAAS,EACT,OAAO,GAC2B,EAAE,EAAE;;IACtC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAC;IAE/B,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAc,CAAC;IAClD,MAAM,WAAW,GAAG,MAAA,MAAM,CAAC,QAAQ,CAAC,MAAM,0CAAE,KAAK,CAAC;IAElD,OAAO,CACL,oBAAC,gBAAE,mBAAc,6BAA6B,QAAQ,EAAE;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AAC;yBACH;wBACH,CAAC,CAAC,EAAE,CAAC;iBACR,GACD,CACC,CACN,CACE,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,4BAA4B,CAAC"}
|
package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDevicesTable.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DecommissionedDevicesTable.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/DecommissionedDevicesTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAgBtE,UAAU,+BAA+B;IACvC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,OAAO,EAAE,YAAY,CAAC;IACtB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE,aAAa,GAAG,gBAAgB,GAAG,WAAW,CAAC,CAAC;CACjG;AAgBD,QAAA,MAAM,0BAA0B,GAAI,4HASjC,+BAA+B,
|
|
1
|
+
{"version":3,"file":"DecommissionedDevicesTable.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/DecommissionedDevicesTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAgBtE,UAAU,+BAA+B;IACvC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,OAAO,EAAE,YAAY,CAAC;IACtB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE,aAAa,GAAG,gBAAgB,GAAG,WAAW,CAAC,CAAC;CACjG;AAgBD,QAAA,MAAM,0BAA0B,GAAI,4HASjC,+BAA+B,sBAqGjC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -54,11 +54,11 @@ const DecommissionedDevicesTable = ({ devices, refetch, nameOrAlias, setNameOrAl
|
|
|
54
54
|
React.createElement(react_core_1.ToolbarItem, null,
|
|
55
55
|
React.createElement(react_core_1.Button, { "aria-label": t('Add devices'), onClick: () => setAddDeviceModal(true) }, t('Add devices'))),
|
|
56
56
|
canDelete && (React.createElement(react_core_1.ToolbarItem, null,
|
|
57
|
-
React.createElement(react_core_1.Button, { isDisabled: !hasSelectedRows, onClick: () => setIsMassDeleteModalOpen(true), variant: "secondary" }, t('Delete forever')))),
|
|
57
|
+
React.createElement(react_core_1.Button, { isDisabled: !hasSelectedRows, onClick: () => setIsMassDeleteModalOpen(true), variant: "secondary", "data-testid": "toolbar-delete-forever" }, t('Delete forever')))),
|
|
58
58
|
React.createElement(react_core_1.ToolbarItem, { alignSelf: "center" },
|
|
59
59
|
React.createElement(react_core_1.Switch, { id: "decommissioned-devices-switch", label: React.createElement("span", { className: "fctl-switch__label" }, t('Show decommissioned devices')), isChecked: true, onChange: () => {
|
|
60
60
|
setOnlyDecommissioned(false);
|
|
61
|
-
}, ouiaId: t('Show decommissioned devices') }))))),
|
|
61
|
+
}, ouiaId: t('Show decommissioned devices'), "data-testid": "show-decommissioned-devices-switch" }))))),
|
|
62
62
|
React.createElement(Table_1.default, { "aria-label": t('Devices table'), loading: isFilterUpdating, columns: deviceColumns, hasFilters: hasFiltersEnabled, clearFilters: () => setNameOrAlias(''), emptyData: devices.length === 0, isAllSelected: isAllSelected, onSelectAll: setAllSelected },
|
|
63
63
|
React.createElement(react_table_1.Tbody, null, devices.map((device, index) => (React.createElement(DecommissionedDeviceTableRow_1.default, { key: device.metadata.name || '', device: device, deleteAction: deleteDeviceAction, onRowSelect: onRowSelect, isRowSelected: isRowSelected, rowIndex: index, canDelete: canDelete, canEdit: canEdit }))))),
|
|
64
64
|
React.createElement(TablePagination_1.default, { isUpdating: isFilterUpdating, pagination: pagination }),
|
package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDevicesTable.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DecommissionedDevicesTable.js","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/DecommissionedDevicesTable.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAA4G;AAC5G,yDAAgD;AAMhD,kEAA+D;AAC/D,kEAA+D;AAC/D,wEAAwE;AACxE,sDAAmD;AACnD,8CAAqD;AAErD,sEAA8D;AAC9D,oEAAqE;AACrE,0FAA0D;AAC1D,wIAAwG;AACxG,8FAA8D;AAC9D,6DAAuE;AACvE,0GAA0E;AAC1E,wGAAwE;AAaxE,MAAM,gBAAgB,GAAG,CAAC,CAAY,EAAwB,EAAE,CAAC;IAC/D;QACE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;KAChB;IACD;QACE,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC;KAClB;CACF,CAAC;AAEF,MAAM,gCAAgC,GAAG;IACvC,EAAE,IAAI,EAAE,eAAQ,CAAC,MAAM,EAAE,I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gBAAgB,CAAC,gCAAgC,CAAC,CAAC;IAEhF,OAAO,CACL;QACE,oBAAC,oBAAO,IAAC,EAAE,EAAC,gCAAgC,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;YAC1E,oBAAC,2BAAc;gBACb,oBAAC,yBAAY;oBACX,oBAAC,wBAAW;wBACV,oBAAC,qCAA2B,IAAC,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,GAAI,CAC7E;oBACd,oBAAC,wBAAW;wBACV,oBAAC,mBAAM,kBAAa,CAAC,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,IACzE,CAAC,CAAC,aAAa,CAAC,CACV,CACG;oBACb,SAAS,IAAI,CACZ,oBAAC,wBAAW;wBACV,oBAAC,mBAAM,IACL,UAAU,EAAE,CAAC,eAAe,EAC5B,OAAO,EAAE,GAAG,EAAE,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAC7C,OAAO,EAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"DecommissionedDevicesTable.js","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/DecommissionedDevicesTable.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAA4G;AAC5G,yDAAgD;AAMhD,kEAA+D;AAC/D,kEAA+D;AAC/D,wEAAwE;AACxE,sDAAmD;AACnD,8CAAqD;AAErD,sEAA8D;AAC9D,oEAAqE;AACrE,0FAA0D;AAC1D,wIAAwG;AACxG,8FAA8D;AAC9D,6DAAuE;AACvE,0GAA0E;AAC1E,wGAAwE;AAaxE,MAAM,gBAAgB,GAAG,CAAC,CAAY,EAAwB,EAAE,CAAC;IAC/D;QACE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;KAChB;IACD;QACE,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC;KAClB;CACF,CAAC;AAEF,MAAM,gCAAgC,GAAG;IACvC,EAAE,IAAI,EAAE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Device/DevicesPage/DevicesPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DevicesPage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/DevicesPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA8G/B,QAAA,MAAM,0BAA0B,yBAY/B,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|