@flightctl/ui-components 1.1.0-rc4 → 1.1.0-rc5
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 +155 -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 +253 -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 +154 -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 +48 -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 +32 -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 +39 -3
- 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 +155 -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 +253 -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 +460 -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 +287 -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 +80 -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 +69 -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 +70 -2
- 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 +366 -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
|
@@ -23,7 +23,7 @@ const DevicesPage = ({ canListER }) => {
|
|
|
23
23
|
const { nameOrAlias, setNameOrAlias, ownerFleets, activeStatuses, hasFiltersEnabled, setOwnerFleets, setActiveStatuses, selectedLabels, setSelectedLabels, } = (0, useDeviceBackendFilters_1.useDeviceBackendFilters)();
|
|
24
24
|
const [onlyDecommissioned, setOnlyDecommissioned] = React.useState(false);
|
|
25
25
|
const { currentPage, setCurrentPage, onPageFetched, nextContinue, itemCount } = (0, useTablePagination_1.useTablePagination)(onlyDecommissioned ? undefined : removeDecommissionedDevices);
|
|
26
|
-
const
|
|
26
|
+
const { devices: data, isLoading: loading, error, isUpdating: updating, refetch, } = (0, useDevices_1.useDevices)({
|
|
27
27
|
nameOrAlias,
|
|
28
28
|
ownerFleets,
|
|
29
29
|
onlyDecommissioned,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevicesPage.js","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/DevicesPage.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAI/B,+EAA+C;AAC/C,uFAAuD;AACvD,kEAA+D;AAC/D,0EAAuE;AACvE,oDAA0D;AAC1D,6CAA0C;AAC1C,uEAAoE;AAEpE,kHAAkF;AAClF,mGAAmE;AACnE,8CAAqD;AACrD,wEAAwE;AACxE,0FAA0D;AAC1D,sGAAsE;AAEtE,MAAM,2BAA2B,GAAG,CAAC,IAAgB,EAAE,EAAE;IACvD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,0BAAgB,CAAC,CAAC;AACnD,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,EAAE,SAAS,EAA0B,EAAE,EAAE;IAC5D,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAE/B,MAAM,EACJ,WAAW,EACX,cAAc,EACd,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,iBAAiB,GAClB,GAAG,IAAA,iDAAuB,GAAE,CAAC;IAC9B,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAU,KAAK,CAAC,CAAC;IAEnF,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,IAAA,uCAAkB,EAChG,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,2BAA2B,CAC7D,CAAC;IAEF,MAAM,
|
|
1
|
+
{"version":3,"file":"DevicesPage.js","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/DevicesPage.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAI/B,+EAA+C;AAC/C,uFAAuD;AACvD,kEAA+D;AAC/D,0EAAuE;AACvE,oDAA0D;AAC1D,6CAA0C;AAC1C,uEAAoE;AAEpE,kHAAkF;AAClF,mGAAmE;AACnE,8CAAqD;AACrD,wEAAwE;AACxE,0FAA0D;AAC1D,sGAAsE;AAEtE,MAAM,2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BAAkB,EAAE,IAAI,EAAE,WAAI,CAAC,IAAI,EAAE;KACvD,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,6BAAmB,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,IAAI,SAAS,IACvE,aAAa,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,SAAS,EAAE,SAAS,GAAI,CAAC,CAAC,CAAC,oBAAC,+BAAqB,IAAC,YAAY,SAAG,CAC3E,CACvB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,0BAA0B,CAAC"}
|
|
@@ -2,17 +2,21 @@ import * as React from 'react';
|
|
|
2
2
|
import { OnSelect } from '@patternfly/react-table';
|
|
3
3
|
import { Device } from '@flightctl/types';
|
|
4
4
|
import { ListAction } from '../../ListPage/types';
|
|
5
|
+
import { ApiSortTableColumn } from '../../Table/Table';
|
|
5
6
|
type EnrolledDeviceTableRowProps = {
|
|
6
7
|
device: Device;
|
|
7
8
|
rowIndex: number;
|
|
8
9
|
onRowSelect: (device: Device) => OnSelect;
|
|
9
10
|
isRowSelected: (device: Device) => boolean;
|
|
10
|
-
canEdit
|
|
11
|
-
canDecommission
|
|
12
|
-
decommissionAction
|
|
13
|
-
canResume
|
|
14
|
-
resumeAction
|
|
11
|
+
canEdit?: boolean;
|
|
12
|
+
canDecommission?: boolean;
|
|
13
|
+
decommissionAction?: ListAction;
|
|
14
|
+
canResume?: boolean;
|
|
15
|
+
resumeAction?: ListAction;
|
|
16
|
+
singleSelect?: boolean;
|
|
17
|
+
hideActions?: boolean;
|
|
18
|
+
deviceColumns: ApiSortTableColumn[];
|
|
15
19
|
};
|
|
16
|
-
declare const EnrolledDeviceTableRow: ({ device, rowIndex, onRowSelect, isRowSelected, canEdit, canDecommission, decommissionAction, canResume, resumeAction, }: EnrolledDeviceTableRowProps) => React.JSX.Element;
|
|
20
|
+
declare const EnrolledDeviceTableRow: ({ device, rowIndex, onRowSelect, isRowSelected, canEdit, canDecommission, decommissionAction, canResume, resumeAction, singleSelect, hideActions, deviceColumns, }: EnrolledDeviceTableRowProps) => React.JSX.Element;
|
|
17
21
|
export default EnrolledDeviceTableRow;
|
|
18
22
|
//# sourceMappingURL=EnrolledDeviceTableRow.d.ts.map
|
package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDeviceTableRow.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnrolledDeviceTableRow.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/EnrolledDeviceTableRow.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;AAI1C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"EnrolledDeviceTableRow.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/EnrolledDeviceTableRow.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;AAI1C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAOlD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,KAAK,2BAA2B,GAAG;IACjC,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,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,kBAAkB,EAAE,CAAC;CACrC,CAAC;AAEF,QAAA,MAAM,sBAAsB,GAAI,oKAa7B,2BAA2B,sBAiG7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -12,7 +12,7 @@ const SystemUpdateStatus_1 = tslib_1.__importDefault(require("../../Status/Syste
|
|
|
12
12
|
const useTranslation_1 = require("../../../hooks/useTranslation");
|
|
13
13
|
const useNavigate_1 = require("../../../hooks/useNavigate");
|
|
14
14
|
const ResourceLink_1 = tslib_1.__importDefault(require("../../common/ResourceLink"));
|
|
15
|
-
const EnrolledDeviceTableRow = ({ device, rowIndex, onRowSelect, isRowSelected, canEdit, canDecommission, decommissionAction, canResume, resumeAction, }) => {
|
|
15
|
+
const EnrolledDeviceTableRow = ({ device, rowIndex, onRowSelect, isRowSelected, canEdit, canDecommission, decommissionAction, canResume, resumeAction, singleSelect, hideActions, deviceColumns, }) => {
|
|
16
16
|
var _a, _b;
|
|
17
17
|
const { t } = (0, useTranslation_1.useTranslation)();
|
|
18
18
|
const navigate = (0, useNavigate_1.useNavigate)();
|
|
@@ -21,25 +21,27 @@ const EnrolledDeviceTableRow = ({ device, rowIndex, onRowSelect, isRowSelected,
|
|
|
21
21
|
const editActionProps = (0, tooltip_1.getDisabledTooltipProps)((0, devices_1.getEditDisabledReason)(device, t));
|
|
22
22
|
const decommissionDisabledReason = (0, devices_1.getDecommissionDisabledReason)(device, t);
|
|
23
23
|
const resumeDisabledReason = (0, devices_1.getResumeDisabledReason)(device, t);
|
|
24
|
-
|
|
24
|
+
const columnIds = React.useMemo(() => deviceColumns.map(({ id }) => id), [deviceColumns]);
|
|
25
|
+
return (React.createElement(react_table_1.Tr, { "data-testid": `enrolled-device-row-${rowIndex}` },
|
|
25
26
|
React.createElement(react_table_1.Td, { select: {
|
|
26
27
|
rowIndex,
|
|
27
28
|
onSelect: onRowSelect(device),
|
|
28
29
|
isSelected: isRowSelected(device),
|
|
30
|
+
variant: singleSelect ? 'radio' : 'checkbox',
|
|
29
31
|
} }),
|
|
30
|
-
React.createElement(react_table_1.Td, { dataLabel: t('Alias') },
|
|
31
|
-
React.createElement(ResourceLink_1.default, { id: deviceName, name: deviceAlias || t('Untitled'), routeLink: useNavigate_1.ROUTE.DEVICE_DETAILS })),
|
|
32
|
-
React.createElement(react_table_1.Td, { dataLabel: t('Name') },
|
|
33
|
-
React.createElement(ResourceLink_1.default, { id: deviceName })),
|
|
34
|
-
React.createElement(react_table_1.Td, { dataLabel: t('Fleet') },
|
|
35
|
-
React.createElement(DeviceFleet_1.default, { device: device })),
|
|
36
|
-
React.createElement(react_table_1.Td, { dataLabel: t('Application status') },
|
|
37
|
-
React.createElement(ApplicationSummaryStatus_1.default, { statusSummary: (_b = device.status) === null || _b === void 0 ? void 0 : _b.applicationsSummary })),
|
|
38
|
-
React.createElement(react_table_1.Td, { dataLabel: t('Device status') },
|
|
39
|
-
React.createElement(DeviceStatus_1.default, { deviceStatus: device.status })),
|
|
40
|
-
React.createElement(react_table_1.Td, { dataLabel: t('Update status') },
|
|
41
|
-
React.createElement(SystemUpdateStatus_1.default, { deviceStatus: device.status })),
|
|
42
|
-
React.createElement(react_table_1.Td, { isActionCell: true },
|
|
32
|
+
columnIds.includes('alias') && (React.createElement(react_table_1.Td, { dataLabel: t('Alias') },
|
|
33
|
+
React.createElement(ResourceLink_1.default, { id: deviceName, name: deviceAlias || t('Untitled'), routeLink: useNavigate_1.ROUTE.DEVICE_DETAILS, "data-testid": `device-name-link-${rowIndex}` }))),
|
|
34
|
+
columnIds.includes('name') && (React.createElement(react_table_1.Td, { dataLabel: t('Name') },
|
|
35
|
+
React.createElement(ResourceLink_1.default, { id: deviceName, "data-testid": `device-internal-name-link-${rowIndex}` }))),
|
|
36
|
+
columnIds.includes('fleet') && (React.createElement(react_table_1.Td, { dataLabel: t('Fleet') },
|
|
37
|
+
React.createElement(DeviceFleet_1.default, { device: device }))),
|
|
38
|
+
columnIds.includes('appStatus') && (React.createElement(react_table_1.Td, { dataLabel: t('Application status') },
|
|
39
|
+
React.createElement(ApplicationSummaryStatus_1.default, { statusSummary: (_b = device.status) === null || _b === void 0 ? void 0 : _b.applicationsSummary }))),
|
|
40
|
+
columnIds.includes('deviceStatus') && (React.createElement(react_table_1.Td, { dataLabel: t('Device status') },
|
|
41
|
+
React.createElement(DeviceStatus_1.default, { deviceStatus: device.status }))),
|
|
42
|
+
columnIds.includes('updateStatus') && (React.createElement(react_table_1.Td, { dataLabel: t('Update status') },
|
|
43
|
+
React.createElement(SystemUpdateStatus_1.default, { deviceStatus: device.status }))),
|
|
44
|
+
!hideActions && (React.createElement(react_table_1.Td, { isActionCell: true, "data-testid": `device-row-actions-${rowIndex}` },
|
|
43
45
|
React.createElement(react_table_1.ActionsColumn, { items: [
|
|
44
46
|
...(canEdit
|
|
45
47
|
? [
|
|
@@ -54,7 +56,7 @@ const EnrolledDeviceTableRow = ({ device, rowIndex, onRowSelect, isRowSelected,
|
|
|
54
56
|
title: t('View device details'),
|
|
55
57
|
onClick: () => navigate({ route: useNavigate_1.ROUTE.DEVICE_DETAILS, postfix: deviceName }),
|
|
56
58
|
},
|
|
57
|
-
...(canResume
|
|
59
|
+
...(canResume && resumeAction
|
|
58
60
|
? [
|
|
59
61
|
resumeAction({
|
|
60
62
|
resourceId: deviceName,
|
|
@@ -63,7 +65,7 @@ const EnrolledDeviceTableRow = ({ device, rowIndex, onRowSelect, isRowSelected,
|
|
|
63
65
|
}),
|
|
64
66
|
]
|
|
65
67
|
: []),
|
|
66
|
-
...(canDecommission
|
|
68
|
+
...(canDecommission && decommissionAction
|
|
67
69
|
? [
|
|
68
70
|
decommissionAction({
|
|
69
71
|
resourceId: deviceName,
|
|
@@ -72,7 +74,7 @@ const EnrolledDeviceTableRow = ({ device, rowIndex, onRowSelect, isRowSelected,
|
|
|
72
74
|
}),
|
|
73
75
|
]
|
|
74
76
|
: []),
|
|
75
|
-
] }))));
|
|
77
|
+
] })))));
|
|
76
78
|
};
|
|
77
79
|
exports.default = EnrolledDeviceTableRow;
|
|
78
80
|
//# sourceMappingURL=EnrolledDeviceTableRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnrolledDeviceTableRow.js","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/EnrolledDeviceTableRow.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,yDAA0E;AAG1E,uFAAuD;AACvD,oDAAuH;AACvH,oDAAiE;AAEjE,6GAA6E;AAC7E,qFAAqD;AACrD,iGAAiE;AACjE,kEAA+D;AAC/D,4DAAgE;AAChE,qFAAqD;
|
|
1
|
+
{"version":3,"file":"EnrolledDeviceTableRow.js","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/EnrolledDeviceTableRow.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,yDAA0E;AAG1E,uFAAuD;AACvD,oDAAuH;AACvH,oDAAiE;AAEjE,6GAA6E;AAC7E,qFAAqD;AACrD,iGAAiE;AACjE,kEAA+D;AAC/D,4DAAgE;AAChE,qFAAqD;AAkBrD,MAAM,sBAAsB,GAAG,CAAC,EAC9B,MAAM,EACN,QAAQ,EACR,WAAW,EACX,aAAa,EACb,OAAO,EACP,eAAe,EACf,kBAAkB,EAClB,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,GACe,EAAE,EAAE;;IAChC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAC;IAC/B,MAAM,UAAU,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAc,CAAC;IAClD,MAAM,WAAW,GAAG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,CAAC,qBAAqB,CAAC;wBAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,mBAAK,CAAC,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;qBAC9E;oBACD,GAAG,CAAC,SAAS,IAAI,YAAY;wBAC3B,CAAC,CAAC;4BACE,YAAY,CAAC;gCACX,UAAU,EAAE,UAAU;gCACtB,YAAY,EAAE,WAAW;gCACzB,cAAc,EAAE,oBAAoB;6BACrC,CAAC;yBACH;wBACH,CAAC,CAAC,EAAE,CAAC;oBACP,GAAG,CAAC,eAAe,IAAI,kBAAkB;wBACvC,CAAC,CAAC;4BACE,kBAAkB,CAAC;gCACjB,UAAU,EAAE,UAAU;gCACtB,YAAY,EAAE,WAAW;gCACzB,cAAc,EAAE,0BAA0B;6BAC3C,CAAC;yBACH;wBACH,CAAC,CAAC,EAAE,CAAC;iBACR,GACD,CACC,CACN,CACE,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,sBAAsB,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { TFunction } from 'react-i18next';
|
|
2
3
|
import { Device, DeviceList } from '@flightctl/types';
|
|
3
4
|
import { FilterStatusMap } from './types';
|
|
4
5
|
import { FlightCtlLabel } from '../../../types/extraTypes';
|
|
5
6
|
import { PaginationDetails } from '../../../hooks/useTablePagination';
|
|
7
|
+
import { ApiSortTableColumn } from '../../Table/Table';
|
|
6
8
|
interface EnrolledDeviceTableProps {
|
|
7
9
|
devices: Array<Device>;
|
|
8
10
|
ownerFleets: string[];
|
|
@@ -19,6 +21,7 @@ interface EnrolledDeviceTableProps {
|
|
|
19
21
|
pagination: Pick<PaginationDetails<DeviceList>, 'currentPage' | 'setCurrentPage' | 'itemCount'>;
|
|
20
22
|
refetchDevices: VoidFunction;
|
|
21
23
|
}
|
|
24
|
+
export declare const getDeviceTableColumns: (t: TFunction) => ApiSortTableColumn[];
|
|
22
25
|
declare const EnrolledDevicesTable: ({ devices, nameOrAlias, setNameOrAlias, ownerFleets, setOwnerFleets, activeStatuses, setActiveStatuses, setOnlyDecommissioned, selectedLabels, setSelectedLabels, hasFiltersEnabled, isFilterUpdating, pagination, refetchDevices, }: EnrolledDeviceTableProps) => React.JSX.Element;
|
|
23
26
|
export default EnrolledDevicesTable;
|
|
24
27
|
//# sourceMappingURL=EnrolledDevicesTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnrolledDevicesTable.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/EnrolledDevicesTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"EnrolledDevicesTable.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/EnrolledDevicesTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,MAAM,EAAoD,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAExG,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAYtE,OAAc,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAW9D,UAAU,wBAAwB;IAChC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,cAAc,EAAE,eAAe,CAAC;IAChC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,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,cAAc,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAChD,iBAAiB,EAAE,CAAC,cAAc,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7D,cAAc,EAAE,cAAc,EAAE,CAAC;IACjC,iBAAiB,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC;IACtD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE,aAAa,GAAG,gBAAgB,GAAG,WAAW,CAAC,CAAC;IAChG,cAAc,EAAE,YAAY,CAAC;CAE9B;AAED,eAAO,MAAM,qBAAqB,GAAI,GAAG,SAAS,KAAG,kBAAkB,EA4BtE,CAAC;AAQF,QAAA,MAAM,oBAAoB,GAAI,sOAe3B,wBAAwB,sBAkI1B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDeviceTableColumns = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
const React = tslib_1.__importStar(require("react"));
|
|
5
6
|
const react_core_1 = require("@patternfly/react-core");
|
|
@@ -21,29 +22,36 @@ const DeviceTableToolbar_1 = tslib_1.__importDefault(require("./DeviceTableToolb
|
|
|
21
22
|
const EnrolledDeviceTableRow_1 = tslib_1.__importDefault(require("./EnrolledDeviceTableRow"));
|
|
22
23
|
const devices_1 = require("../../../utils/status/devices");
|
|
23
24
|
const SystemRestoreBanners_1 = require("../../SystemRestore/SystemRestoreBanners");
|
|
24
|
-
const
|
|
25
|
+
const getDeviceTableColumns = (t) => [
|
|
25
26
|
{
|
|
27
|
+
id: 'alias',
|
|
26
28
|
name: t('Alias'),
|
|
27
29
|
},
|
|
28
30
|
{
|
|
31
|
+
id: 'name',
|
|
29
32
|
name: t('Name'),
|
|
30
33
|
},
|
|
31
34
|
{
|
|
35
|
+
id: 'fleet',
|
|
32
36
|
name: t('Fleet'),
|
|
33
37
|
},
|
|
34
38
|
{
|
|
39
|
+
id: 'appStatus',
|
|
35
40
|
name: t('Application status'),
|
|
36
41
|
helperText: (0, utils_1.getApplicationStatusHelperText)(t),
|
|
37
42
|
},
|
|
38
43
|
{
|
|
44
|
+
id: 'deviceStatus',
|
|
39
45
|
name: t('Device status'),
|
|
40
46
|
helperText: (0, utils_1.getDeviceStatusHelperText)(t),
|
|
41
47
|
},
|
|
42
48
|
{
|
|
49
|
+
id: 'updateStatus',
|
|
43
50
|
name: t('Update status'),
|
|
44
51
|
helperText: (0, utils_1.getUpdateStatusHelperText)(t),
|
|
45
52
|
},
|
|
46
53
|
];
|
|
54
|
+
exports.getDeviceTableColumns = getDeviceTableColumns;
|
|
47
55
|
const enrolledDevicesPermissions = [
|
|
48
56
|
{ kind: rbac_1.RESOURCE.DEVICE, verb: rbac_1.VERB.PATCH },
|
|
49
57
|
{ kind: rbac_1.RESOURCE.DEVICE_DECOMMISSION, verb: rbac_1.VERB.UPDATE },
|
|
@@ -54,7 +62,7 @@ const EnrolledDevicesTable = ({ devices, nameOrAlias, setNameOrAlias, ownerFleet
|
|
|
54
62
|
const { put } = (0, useFetch_1.useFetch)();
|
|
55
63
|
const [addDeviceModal, setAddDeviceModal] = React.useState(false);
|
|
56
64
|
const [isMassDecommissionModalOpen, setIsMassDecommissionModalOpen] = React.useState(false);
|
|
57
|
-
const deviceColumns = React.useMemo(() =>
|
|
65
|
+
const deviceColumns = React.useMemo(() => (0, exports.getDeviceTableColumns)(t), [t]);
|
|
58
66
|
const { onRowSelect, hasSelectedRows, isAllSelected, isRowSelected, setAllSelected } = (0, useTableSelect_1.useTableSelect)();
|
|
59
67
|
const { action: resumeDeviceAction, modal: resumeDeviceModal } = (0, ListPageActions_1.useResumeListAction)(refetchDevices);
|
|
60
68
|
const { action: decommissionDeviceAction, modal: decommissionDeviceModal } = (0, ListPageActions_1.useDecommissionListAction)({
|
|
@@ -86,14 +94,14 @@ const EnrolledDevicesTable = ({ devices, nameOrAlias, setNameOrAlias, ownerFleet
|
|
|
86
94
|
React.createElement(react_core_1.ToolbarItem, null,
|
|
87
95
|
React.createElement(react_core_1.Button, { "aria-label": t('Add devices'), onClick: () => setAddDeviceModal(true) }, t('Add devices'))),
|
|
88
96
|
canDecommission && (React.createElement(react_core_1.ToolbarItem, null,
|
|
89
|
-
React.createElement(react_core_1.Button, { isDisabled: !hasSelectedRows, onClick: () => setIsMassDecommissionModalOpen(true), variant: "secondary" }, t('Decommission devices')))),
|
|
97
|
+
React.createElement(react_core_1.Button, { isDisabled: !hasSelectedRows, onClick: () => setIsMassDecommissionModalOpen(true), variant: "secondary", "data-testid": "toolbar-decommission-devices" }, t('Decommission devices')))),
|
|
90
98
|
React.createElement(react_core_1.ToolbarItem, { alignSelf: "center" },
|
|
91
99
|
React.createElement(react_core_1.Switch, { id: "enrolled-devices-switch", label: React.createElement("span", { className: "fctl-switch__label" }, t('Show decommissioned devices')), isChecked: false, onChange: () => {
|
|
92
100
|
clearAllFilters();
|
|
93
101
|
setOnlyDecommissioned(true);
|
|
94
|
-
}, ouiaId: t('Show decommissioned devices') }))),
|
|
95
|
-
React.createElement(Table_1.default, { "aria-label": t('Enrolled devices table'), loading: isFilterUpdating, columns: deviceColumns, hasFilters: hasFiltersEnabled, clearFilters: clearAllFilters, emptyData: devices.length === 0, isAllSelected: isAllSelected, onSelectAll: setAllSelected },
|
|
96
|
-
React.createElement(react_table_1.Tbody, null, devices.map((device, index) => (React.createElement(EnrolledDeviceTableRow_1.default, { key: device.metadata.name || '', device: device, onRowSelect: onRowSelect, isRowSelected: isRowSelected, rowIndex: index, canEdit: canEdit, canDecommission: canDecommission, decommissionAction: decommissionDeviceAction, canResume: canResume, resumeAction: resumeDeviceAction }))))),
|
|
102
|
+
}, ouiaId: t('Show decommissioned devices'), "data-testid": "show-decommissioned-devices-switch" }))),
|
|
103
|
+
React.createElement(Table_1.default, { "aria-label": t('Enrolled devices table'), loading: isFilterUpdating, columns: deviceColumns, hasFilters: hasFiltersEnabled, clearFilters: clearAllFilters, emptyData: devices.length === 0, isAllSelected: isAllSelected, onSelectAll: setAllSelected, "data-testid": "enrolled-devices-table" },
|
|
104
|
+
React.createElement(react_table_1.Tbody, null, devices.map((device, index) => (React.createElement(EnrolledDeviceTableRow_1.default, { key: device.metadata.name || '', device: device, onRowSelect: onRowSelect, isRowSelected: isRowSelected, rowIndex: index, canEdit: canEdit, canDecommission: canDecommission, decommissionAction: decommissionDeviceAction, canResume: canResume, resumeAction: resumeDeviceAction, deviceColumns: deviceColumns }))))),
|
|
97
105
|
React.createElement(TablePagination_1.default, { isUpdating: isFilterUpdating, pagination: pagination }),
|
|
98
106
|
!hasFiltersEnabled && devices.length === 0 && (React.createElement(DevicesEmptyStates_1.EnrolledDevicesEmptyState, { onAddDevice: () => setAddDeviceModal(true) })),
|
|
99
107
|
decommissionDeviceModal || resumeDeviceModal,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnrolledDevicesTable.js","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/EnrolledDevicesTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EnrolledDevicesTable.js","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/EnrolledDevicesTable.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,uDAAqE;AACrE,yDAAgD;AAGhD,4CAAwG;AAKxG,kEAA+D;AAC/D,kEAA+D;AAC/D,wEAAwE;AACxE,sDAAmD;AACnD,8CAAqD;AACrD,8CAI4B;AAE5B,sEAA8D;AAC9D,oEAAgG;AAChG,0FAA0D;AAC1D,0JAA0H;AAC1H,8FAA8D;AAC9D,6DAAiE;AACjE,sFAAsD;AACtD,8FAA8D;AAC9D,2DAAmE;AACnE,mFAAsF;AAo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,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAI,CAC1E;QACA,uBAAuB,IAAI,iBAAiB;QAC5C,cAAc,IAAI,oBAAC,wBAAc,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAI;QAC7E,2BAA2B,IAAI,CAC9B,oBAAC,qCAA2B,IAC1B,OAAO,EAAE,GAAG,EAAE,CAAC,8BAA8B,CAAC,KAAK,CAAC,EACpD,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,EACtC,SAAS,EAAE,GAAG,EAAE;gBACd,8BAA8B,CAAC,KAAK,CAAC,CAAC;gBACtC,qBAAqB,CAAC,IAAI,CAAC,CAAC;YAC9B,CAAC,GACD,CACH,CACA,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Device, DeviceList, DevicesSummary } from '@flightctl/types';
|
|
2
2
|
import { FlightCtlLabel } from '../../../types/extraTypes';
|
|
3
3
|
import { FilterStatusMap } from './types';
|
|
4
|
+
import { PaginationDetails } from '../../../hooks/useTablePagination';
|
|
4
5
|
type DevicesEndpointArgs = {
|
|
5
6
|
nameOrAlias?: string;
|
|
6
7
|
ownerFleets?: string[];
|
|
8
|
+
onlyFleetless?: boolean;
|
|
7
9
|
activeStatuses?: FilterStatusMap;
|
|
8
10
|
onlyDecommissioned?: boolean;
|
|
9
11
|
labels?: FlightCtlLabel[];
|
|
@@ -15,6 +17,14 @@ export declare const useDevicesSummary: ({ ownerFleets, labels, }: {
|
|
|
15
17
|
ownerFleets?: string[];
|
|
16
18
|
labels?: FlightCtlLabel[];
|
|
17
19
|
}) => [DevicesSummary | undefined, boolean];
|
|
20
|
+
export type DevicesResult = {
|
|
21
|
+
devices: Device[];
|
|
22
|
+
isLoading: boolean;
|
|
23
|
+
error: unknown;
|
|
24
|
+
isUpdating: boolean;
|
|
25
|
+
refetch: VoidFunction;
|
|
26
|
+
hasMore: boolean;
|
|
27
|
+
};
|
|
18
28
|
export declare const useDevices: (args: {
|
|
19
29
|
nameOrAlias?: string;
|
|
20
30
|
ownerFleets?: string[];
|
|
@@ -22,7 +32,26 @@ export declare const useDevices: (args: {
|
|
|
22
32
|
labels?: FlightCtlLabel[];
|
|
23
33
|
onlyDecommissioned: boolean;
|
|
24
34
|
nextContinue?: string;
|
|
35
|
+
onlyFleetless?: boolean;
|
|
25
36
|
onPageFetched?: (data: DeviceList) => void;
|
|
26
|
-
}) =>
|
|
37
|
+
}) => DevicesResult;
|
|
38
|
+
export type DevicesPaginatedResult = {
|
|
39
|
+
devices: Device[];
|
|
40
|
+
isLoading: boolean;
|
|
41
|
+
error: unknown;
|
|
42
|
+
isUpdating: boolean;
|
|
43
|
+
refetch: VoidFunction;
|
|
44
|
+
pagination: PaginationDetails<DeviceList>;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Hook for fetching devices with built-in pagination support.
|
|
48
|
+
* Use this for paginated tables/modals.
|
|
49
|
+
*/
|
|
50
|
+
export declare const useDevicesPaginated: (args: {
|
|
51
|
+
nameOrAlias?: string;
|
|
52
|
+
ownerFleets?: string[];
|
|
53
|
+
onlyDecommissioned: boolean;
|
|
54
|
+
onlyFleetless?: boolean;
|
|
55
|
+
}) => DevicesPaginatedResult;
|
|
27
56
|
export {};
|
|
28
57
|
//# sourceMappingURL=useDevices.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDevices.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/useDevices.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAA6B,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIjG,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"useDevices.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,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;IAC1B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;CAC5C,KAAG,aAoBH,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;CAC3C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,KAAG,sBAsBH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useDevices = exports.useDevicesSummary = exports.useDevicesEndpoint = void 0;
|
|
3
|
+
exports.useDevicesPaginated = exports.useDevices = exports.useDevicesSummary = exports.useDevicesEndpoint = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const use_debounce_1 = require("use-debounce");
|
|
6
6
|
const types_1 = require("@flightctl/types");
|
|
@@ -8,6 +8,7 @@ const devices_1 = require("../../../utils/status/devices");
|
|
|
8
8
|
const queryUtils = tslib_1.__importStar(require("../../../utils/query"));
|
|
9
9
|
const useFetchPeriodically_1 = require("../../../hooks/useFetchPeriodically");
|
|
10
10
|
const constants_1 = require("../../../constants");
|
|
11
|
+
const useTablePagination_1 = require("../../../hooks/useTablePagination");
|
|
11
12
|
const enrolledStatuses = [
|
|
12
13
|
types_1.DeviceLifecycleStatusType.DeviceLifecycleStatusEnrolled,
|
|
13
14
|
types_1.DeviceLifecycleStatusType.DeviceLifecycleStatusUnknown,
|
|
@@ -16,7 +17,7 @@ const decommissionedStatuses = [
|
|
|
16
17
|
types_1.DeviceLifecycleStatusType.DeviceLifecycleStatusDecommissioned,
|
|
17
18
|
types_1.DeviceLifecycleStatusType.DeviceLifecycleStatusDecommissioning,
|
|
18
19
|
];
|
|
19
|
-
const getDevicesEndpoint = ({ nameOrAlias, ownerFleets, activeStatuses, labels, onlyDecommissioned, nextContinue, summaryOnly, }) => {
|
|
20
|
+
const getDevicesEndpoint = ({ nameOrAlias, ownerFleets, activeStatuses, labels, onlyDecommissioned, nextContinue, summaryOnly, onlyFleetless, }) => {
|
|
20
21
|
const filterByAppStatus = activeStatuses === null || activeStatuses === void 0 ? void 0 : activeStatuses[devices_1.FilterSearchParams.AppStatus];
|
|
21
22
|
const filterByDevStatus = activeStatuses === null || activeStatuses === void 0 ? void 0 : activeStatuses[devices_1.FilterSearchParams.DeviceStatus];
|
|
22
23
|
const filterByUpdateStatus = activeStatuses === null || activeStatuses === void 0 ? void 0 : activeStatuses[devices_1.FilterSearchParams.UpdatedStatus];
|
|
@@ -30,6 +31,9 @@ const getDevicesEndpoint = ({ nameOrAlias, ownerFleets, activeStatuses, labels,
|
|
|
30
31
|
if (ownerFleets === null || ownerFleets === void 0 ? void 0 : ownerFleets.length) {
|
|
31
32
|
queryUtils.addQueryConditions(fieldSelectors, 'metadata.owner', ownerFleets.map((fleet) => `Fleet/${fleet}`));
|
|
32
33
|
}
|
|
34
|
+
if (onlyFleetless) {
|
|
35
|
+
fieldSelectors.push('!metadata.owner');
|
|
36
|
+
}
|
|
33
37
|
if (onlyDecommissioned) {
|
|
34
38
|
queryUtils.addQueryConditions(fieldSelectors, 'status.lifecycle.status', decommissionedStatuses);
|
|
35
39
|
}
|
|
@@ -67,11 +71,43 @@ const useDevicesSummary = ({ ownerFleets, labels, }) => {
|
|
|
67
71
|
};
|
|
68
72
|
exports.useDevicesSummary = useDevicesSummary;
|
|
69
73
|
const useDevices = (args) => {
|
|
74
|
+
var _a, _b, _c;
|
|
70
75
|
const [devicesEndpoint, devicesDebouncing] = (0, exports.useDevicesEndpoint)(args);
|
|
71
76
|
const [devicesList, devicesLoading, devicesError, devicesRefetch, updating] = (0, useFetchPeriodically_1.useFetchPeriodically)({
|
|
72
77
|
endpoint: devicesEndpoint,
|
|
73
78
|
}, args.onPageFetched);
|
|
74
|
-
|
|
79
|
+
const hasMore = !!((_a = devicesList === null || devicesList === void 0 ? void 0 : devicesList.metadata) === null || _a === void 0 ? void 0 : _a.continue) || ((_c = (_b = devicesList === null || devicesList === void 0 ? void 0 : devicesList.metadata) === null || _b === void 0 ? void 0 : _b.remainingItemCount) !== null && _c !== void 0 ? _c : 0) > 0;
|
|
80
|
+
return {
|
|
81
|
+
devices: (devicesList === null || devicesList === void 0 ? void 0 : devicesList.items) || [],
|
|
82
|
+
isLoading: devicesLoading,
|
|
83
|
+
error: devicesError,
|
|
84
|
+
isUpdating: updating || devicesDebouncing,
|
|
85
|
+
refetch: devicesRefetch,
|
|
86
|
+
hasMore,
|
|
87
|
+
};
|
|
75
88
|
};
|
|
76
89
|
exports.useDevices = useDevices;
|
|
90
|
+
/**
|
|
91
|
+
* Hook for fetching devices with built-in pagination support.
|
|
92
|
+
* Use this for paginated tables/modals.
|
|
93
|
+
*/
|
|
94
|
+
const useDevicesPaginated = (args) => {
|
|
95
|
+
const pagination = (0, useTablePagination_1.useTablePagination)();
|
|
96
|
+
const [devicesEndpoint, devicesDebouncing] = (0, exports.useDevicesEndpoint)({
|
|
97
|
+
...args,
|
|
98
|
+
nextContinue: pagination.nextContinue,
|
|
99
|
+
});
|
|
100
|
+
const [devicesList, devicesLoading, devicesError, devicesRefetch, updating] = (0, useFetchPeriodically_1.useFetchPeriodically)({
|
|
101
|
+
endpoint: devicesEndpoint,
|
|
102
|
+
}, pagination.onPageFetched);
|
|
103
|
+
return {
|
|
104
|
+
devices: (devicesList === null || devicesList === void 0 ? void 0 : devicesList.items) || [],
|
|
105
|
+
isLoading: devicesLoading,
|
|
106
|
+
error: devicesError,
|
|
107
|
+
isUpdating: updating || devicesDebouncing,
|
|
108
|
+
refetch: devicesRefetch,
|
|
109
|
+
pagination,
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
exports.useDevicesPaginated = useDevicesPaginated;
|
|
77
113
|
//# sourceMappingURL=useDevices.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDevices.js","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/useDevices.ts"],"names":[],"mappings":";;;;AAAA,+CAA2C;AAE3C,4CAAiG;AACjG,2DAAmE;AACnE,yEAAmD;AACnD,8EAA2E;AAG3E,kDAA+C;
|
|
1
|
+
{"version":3,"file":"useDevices.js","sourceRoot":"","sources":["../../../../../../src/components/Device/DevicesPage/useDevices.ts"],"names":[],"mappings":";;;;AAAA,+CAA2C;AAE3C,4CAAiG;AACjG,2DAAmE;AACnE,yEAAmD;AACnD,8EAA2E;AAG3E,kDAA+C;AAC/C,0EAA0F;AAa1F,MAAM,gBAAgB,GAAG;IACvB,iCAAyB,CAAC,6BAA6B;IACvD,iCAAyB,CAAC,4BAA4B;CACvD,CAAC;AAEF,MAAM,sBAAsB,GAAG;IAC7B,iCAAyB,CAAC,mCAAmC;IAC7D,iCAAyB,CAAC,oCAAoC;CAC/D,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,EAC1B,WAAW,EACX,WAAW,EACX,cAAc,EACd,MAAM,EACN,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,aAAa,GACO,EAAE,EAAE;IACxB,MAAM,iBAAiB,GAAG,cA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GAAG,IAAA,0BAAkB,EAAC;QAC9D,GAAG,IAAI;QACP,YAAY,EAAE,UAAU,CAAC,YAAY;KACtC,CAAC,CAAC;IAEH,MAAM,CAAC,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,QAAQ,CAAC,GAAG,IAAA,2CAAoB,EAChG;QACE,QAAQ,EAAE,eAAe;KAC1B,EACD,UAAU,CAAC,aAAa,CACzB,CAAC;IAEF,OAAO;QACL,OAAO,EAAE,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,KAAK,KAAI,EAAE;QACjC,SAAS,EAAE,cAAc;QACzB,KAAK,EAAE,YAAY;QACnB,UAAU,EAAE,QAAQ,IAAI,iBAAiB;QACzC,OAAO,EAAE,cAAc;QACvB,UAAU;KACX,CAAC;AACJ,CAAC,CAAC;AA3BW,QAAA,mBAAmB,uBA2B9B"}
|
|
@@ -92,7 +92,7 @@ const EditDeviceWizard = () => {
|
|
|
92
92
|
React.createElement(react_core_1.WizardStep, { name: t('General info'), id: GeneralInfoStep_1.generalInfoStepId },
|
|
93
93
|
React.createElement(GeneralInfoStep_1.default, null)),
|
|
94
94
|
React.createElement(react_core_1.WizardStep, { name: t('Device template'), id: DeviceTemplateStep_1.deviceTemplateStepId, isDisabled: isTemplateStepDisabled },
|
|
95
|
-
React.createElement(DeviceTemplateStep_1.default, { isFleet: false })),
|
|
95
|
+
React.createElement(DeviceTemplateStep_1.default, { isFleet: false, labels: device.metadata.labels })),
|
|
96
96
|
React.createElement(react_core_1.WizardStep, { name: t('Updates'), id: DeviceUpdateStep_1.deviceUpdatePolicyStepId, isDisabled: isUpdateStepDisabled },
|
|
97
97
|
React.createElement(DeviceUpdateStep_1.default, null)),
|
|
98
98
|
React.createElement(react_core_1.WizardStep, { name: t('Review and save'), id: ReviewDeviceStep_1.reviewDeviceStepId, isDisabled: !updateStepValid },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditDeviceWizard.js","sourceRoot":"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,GAAG,CAAC,iBAAiB,CAAC;YAEhD,OAAO,CACL;gBACE,oBAAC,+BAAqB,OAAG;gBACzB,oBAAC,mBAAM,IACL,MAAM,EAAE,oBAAC,gCAAsB,OAAG,EAClC,GAAG,EAAE,oBAAC,6BAAmB,OAAG,EAC5B,YAAY,EAAE,GAAG,EAAE;wBACjB,IAAI,WAAW,EAAE,CAAC;4BAChB,cAAc,CAAC,SAAS,CAAC,CAAC;wBAC5B,CAAC;oBACH,CAAC;oBAED,oBAAC,uBAAU,IAAC,IAAI,EAAE,CAAC,CAAC,cAAc,CAAC,EAAE,EAAE,EAAE,mCAAiB;wBACxD,oBAAC,yBAAe,OAAG,CACR;oBACb,oBAAC,uBAAU,IAAC,IAAI,EAAE,CAAC,CAAC,iBAAiB,CAAC,EAAE,EAAE,EAAE,yCAAoB,EAAE,UAAU,EAAE,sBAAsB;wBAClG,oBAAC,4BAAkB,IAAC,OAAO,EAAE,KAAK,GAAI,
|
|
1
|
+
{"version":3,"file":"EditDeviceWizard.js","sourceRoot":"","sources":["../../../../../../src/components/Device/EditDeviceWizard/EditDeviceWizard.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,mCAAgC;AAChC,uDAUgC;AAGhC,2EAA+E;AAE/E,gDAAuD;AACvD,kDAAqD;AACrD,oDAA+D;AAC/D,kEAA+D;AAC/D,4DAAsE;AACtE,uGAAuE;AACvE,uFAAuD;AACvD,mFAAqG;AACrG,yFAAiH;AACjH,qFAA+G;AAC/G,qFAAgF;AAChF,mCAAgE;AAChE,uDAK2B;AAC3B,sDAAmD;AACnD,mDAAgD;AAChD,wFAAwD;AACxD,8FAA8D;AAC9D,mGAAmE;AACnE,wEAAwE;AACxE,8CAAqD;AAErD,MAAM,gBAAgB,GAAG,GAAG,EAAE;;IAC5B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,KAAK,CAAC,QAA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C,CAAC;AAEF,MAAM,+BAA+B,GAAG,GAAG,EAAE;IAC3C,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,KAAK,EAAE,CAAC,CAAC,CAAC;IAClF,OAAO,CACL,oBAAC,6BAAmB,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO;QACrD,oBAAC,gBAAgB,OAAG,CACA,CACvB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,+BAA+B,CAAC"}
|
package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.js
CHANGED
|
@@ -27,16 +27,16 @@ const ApplicationHelmForm = ({ index, isReadOnly }) => {
|
|
|
27
27
|
React.createElement(TextField_1.default, { "aria-label": t('Namespace'), name: `${appFieldName}.namespace`, value: app.namespace || '', isDisabled: isReadOnly, placeholder: t('Type namespace here') }),
|
|
28
28
|
React.createElement(react_core_1.Alert, { isInline: true, isPlain: true, variant: "info", className: "pf-v6-u-mt-md", title: t('If you do not specify a namespace, the agent uses a namespace based on the application name.') })),
|
|
29
29
|
React.createElement(WithHelperText_1.FormGroupWithHelperText, { label: t('Values file names'), content: t('Reference values files that are defined within the Helm application package. Files are applied in the specified order, before user-provided values.') },
|
|
30
|
-
React.createElement(formik_1.FieldArray, { name: `${appFieldName}.valuesFiles` }, (
|
|
30
|
+
React.createElement(formik_1.FieldArray, { name: `${appFieldName}.valuesFiles` }, (arrayHelpers) => (React.createElement(React.Fragment, null,
|
|
31
31
|
(valuesFiles || []).map((file, fileIndex) => (React.createElement(react_core_1.Split, { hasGutter: true, key: fileIndex, className: "pf-v6-u-mb-sm" },
|
|
32
32
|
React.createElement(react_core_1.SplitItem, { isFilled: true },
|
|
33
33
|
React.createElement(TextField_1.default, { "aria-label": t('Values file {{ number }}', { number: fileIndex + 1 }), name: `${appFieldName}.valuesFiles.${fileIndex}`, value: file, isDisabled: isReadOnly, helperText: t('Enter a file path relative to the Helm chart root. For example, values.yaml'), placeholder: t('Type values file name here') })),
|
|
34
34
|
!isReadOnly && (React.createElement(react_core_1.SplitItem, null,
|
|
35
|
-
React.createElement(react_core_1.Button, { "aria-label": t('Delete values file'), variant: "link", icon: React.createElement(minus_circle_icon_1.MinusCircleIcon, null), iconPosition: "end", onClick: () => remove(fileIndex) })))))),
|
|
35
|
+
React.createElement(react_core_1.Button, { "aria-label": t('Delete values file'), variant: "link", icon: React.createElement(minus_circle_icon_1.MinusCircleIcon, null), iconPosition: "end", onClick: () => arrayHelpers.remove(fileIndex) })))))),
|
|
36
36
|
!isReadOnly && (React.createElement(react_core_1.FormGroup, null,
|
|
37
37
|
React.createElement(react_core_1.Tooltip, { className: "fctl-application-helm-form__tooltip", content: React.createElement(react_core_1.Content, null, t('Fill in the existing values files before you can add more values files.')) },
|
|
38
38
|
React.createElement(react_core_1.Button, { variant: "link", icon: React.createElement(plus_circle_icon_1.PlusCircleIcon, null), iconPosition: "start", isAriaDisabled: !canAddValuesFile, onClick: () => {
|
|
39
|
-
push('');
|
|
39
|
+
arrayHelpers.push('');
|
|
40
40
|
} }, t('Add values file'))))),
|
|
41
41
|
React.createElement(react_core_1.Alert, { isInline: true, isPlain: true, variant: "info", className: "pf-v6-u-mt-md", title: t('Order of precedence: Files are applied in the order listed. If the same parameter is defined in multiple files, the value in the last file takes precedence and overrides previous values.') }))))),
|
|
42
42
|
React.createElement(WithHelperText_1.FormGroupWithHelperText, { label: t('Inline values'), content: t('Provide a valid YAML file') },
|
package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationHelmForm.js","sourceRoot":"","sources":["../../../../../../../src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm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AC,CAAC,mEAAmE,CAAC,EAC/E,UAAU;YAEV,oBAAC,mBAAS,kBACI,CAAC,CAAC,OAAO,CAAC,EACtB,IAAI,EAAE,GAAG,YAAY,QAAQ,EAC7B,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,CAAC,CAAC,iCAAiC,CAAC,GAChD,CACsB;QAE1B,oBAAC,wCAAuB,IAAC,KAAK,EAAE,CAAC,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,+CAA+C,CAAC;YACzG,oBAAC,mBAAS,kBACI,CAAC,CAAC,WAAW,CAAC,EAC1B,IAAI,EAAE,GAAG,YAAY,YAAY,EACjC,KAAK,EAAE,GAAG,CAAC,SAAS,IAAI,EAAE,EAC1B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,CAAC,CAAC,qBAAqB,CAAC,GACrC;YACF,oBAAC,kBAAK,IACJ,QAAQ,QACR,OAAO,QACP,OAAO,EAAC,MAAM,EACd,SAAS,EAAC,eAAe,EACzB,KAAK,EAAE,CAAC,CAAC,8FAA8F,CAAC,GACxG,CACsB;QAE1B,oBAAC,wCAAuB,IACtB,KAAK,EAAE,CAAC,CAAC,mBAAmB,CAAC,EAC7B,OAAO,EAAE,CAAC,CACR,qJAAqJ,CACtJ;YAED,oBAAC,mBAAU,IAAC,IAAI,EAAE,GAAG,YAAY,cAAc,IAC5C,CAAC,
|
|
1
|
+
{"version":3,"file":"ApplicationHelmForm.js","sourceRoot":"","sources":["../../../../../../../src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,mCAA8C;AAC9C,uDAAmH;AACnH,+FAA0F;AAC1F,6FAAwF;AAExF,mEAAyE;AACzE,gFAAgD;AAChD,oFAAoD;AACpD,qEAAkE;AAClE,6DAAwE;AAExE,MAAM,mBAAmB,GAAG,CAAC,EAAE,KAAK,EAAE,UAAU,EAA2C,EAAE,EAAE;IAC7F,MAAM,EAAE,CAAC,EA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
CHANGED
|
@@ -30,18 +30,18 @@ const ApplicationInlineForm = ({ files, index, isReadOnly, }) => {
|
|
|
30
30
|
return null;
|
|
31
31
|
}
|
|
32
32
|
return (React.createElement(react_core_1.Grid, { hasGutter: true },
|
|
33
|
-
React.createElement(formik_1.FieldArray, { name: `applications.${index}.files` }, (
|
|
33
|
+
React.createElement(formik_1.FieldArray, { name: `applications.${index}.files` }, (arrayHelpers) => (React.createElement(React.Fragment, null,
|
|
34
34
|
fileList.map((file, fileIndex) => {
|
|
35
35
|
const fieldName = `applications[${index}].files[${fileIndex}]`;
|
|
36
36
|
return (React.createElement(react_core_1.Split, { key: fileIndex, hasGutter: true },
|
|
37
37
|
React.createElement(react_core_1.SplitItem, { isFilled: true },
|
|
38
38
|
React.createElement(InlineApplicationFileForm, { file: file, fileIndex: fileIndex, fileFieldName: fieldName, isReadOnly: isReadOnly })),
|
|
39
39
|
!isReadOnly && fileList.length > 1 && (React.createElement(react_core_1.SplitItem, null,
|
|
40
|
-
React.createElement(react_core_1.Button, { "aria-label": t('Delete file'), variant: "link", icon: React.createElement(minus_circle_icon_1.default, null), iconPosition: "start", onClick: () => remove(fileIndex) })))));
|
|
40
|
+
React.createElement(react_core_1.Button, { "aria-label": t('Delete file'), variant: "link", icon: React.createElement(minus_circle_icon_1.default, null), iconPosition: "start", onClick: () => arrayHelpers.remove(fileIndex) })))));
|
|
41
41
|
}),
|
|
42
42
|
!isReadOnly && (React.createElement(react_core_1.FormGroup, null,
|
|
43
43
|
React.createElement(react_core_1.Button, { variant: "link", icon: React.createElement(plus_circle_icon_1.default, null), iconPosition: "start", onClick: () => {
|
|
44
|
-
push({
|
|
44
|
+
arrayHelpers.push({
|
|
45
45
|
path: '',
|
|
46
46
|
content: '',
|
|
47
47
|
base64: false,
|
package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationInlineForm.js","sourceRoot":"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C;AACJ,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,EAC7B,KAAK,EACL,KAAK,EACL,UAAU,GAKX,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAE/B,MAAM,QAAQ,GAAG,KAAK,IAAI,EAAE,CAAC;IAC7B,IAAI,UAAU,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,oBAAC,iBAAI,IAAC,SAAS;QACb,oBAAC,mBAAU,IAAC,IAAI,EAAE,gBAAgB,KAAK,QAAQ,IAC5C,CAAC,
|
|
1
|
+
{"version":3,"file":"ApplicationInlineForm.js","sourceRoot":"","sources":["../../../../../../../src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,mCAAoC;AACpC,uDAAmF;AACnF,wHAAsF;AACtF,sHAAoF;AAEpF,qEAAkE;AAClE,wFAAwD;AACxD,oFAAoD;AACpD,gFAAgD;AAChD,wGAAwE;AAGxE,MAAM,0BAA0B,GAAG,IAAI,GAAG,IAAI,CAAC;AAS/C,MAAM,yBAAyB,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAkC,EAAE,EAAE;IACnH,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,+BAAc,GAAE,CAAC;IAC/B,OAAO,CACL,oBAAC,+BAAqB,IACpB,KAAK,EAAE,CAAC,CAAC,oBAAoB,EAAE,EAAE,OAAO,EAAE,SAAS,GAAG,CAAC,EAAE,CAAC,EAC1D,SAAS,EAAE,aAAa,EACxB,WAAW,EAAE,IAAI,CAAC,IAAI;QAEtB,oBAAC,iBAAI,IAAC,SAAS;YACb,oBAAC,sBAAS,IAAC,KAAK,EAAE,CAAC,CAAC,oCAAoC,CAAC,EAAE,UAAU;gBACnE,oBAAC,m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EACV,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,SAAS,EACxB,UAAU,EAAE,UAAU,GACtB,CACQ;oBACX,CAAC,UAAU,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,CACrC,oBAAC,sBAAS;wBACR,oBAAC,mBAAM,kBACO,CAAC,CAAC,aAAa,CAAC,EAC5B,OAAO,EAAC,MAAM,EACd,IAAI,EAAE,oBAAC,2BAAe,OAAG,EACzB,YAAY,EAAC,OAAO,EACpB,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,GAC7C,CACQ,CACb,CACK,CACT,CAAC;YACJ,CAAC,CAAC;YAED,CAAC,UAAU,IAAI,CACd,oBAAC,sBAAS;gBACR,oBAAC,mBAAM,IACL,OAAO,EAAC,MAAM,EACd,IAAI,EAAE,oBAAC,0BAAc,OAAG,EACxB,YAAY,EAAC,OAAO,EACpB,OAAO,EAAE,GAAG,EAAE;wBACZ,YAAY,CAAC,IAAI,CAAC;4BAChB,IAAI,EAAE,EAAE;4BACR,OAAO,EAAE,EAAE;4BACX,MAAM,EAAE,KAAK;yBACd,CAAC,CAAC;oBACL,CAAC,IAEA,CAAC,CAAC,UAAU,CAAC,CACP,CACC,CACb,CACA,CACJ,CACU,CACR,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,qBAAqB,CAAC"}
|
package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import './ApplicationsForm.css';
|
|
3
|
-
declare const ApplicationTemplates: ({ isReadOnly }: {
|
|
3
|
+
declare const ApplicationTemplates: ({ isReadOnly, labels, }: {
|
|
4
4
|
isReadOnly?: boolean;
|
|
5
|
+
labels: Record<string, string> | undefined;
|
|
5
6
|
}) => React.JSX.Element | null;
|
|
6
7
|
export default ApplicationTemplates;
|
|
7
8
|
//# sourceMappingURL=ApplicationTemplates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationTemplates.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ApplicationTemplates.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAsC/B,OAAO,wBAAwB,CAAC;AAiJhC,QAAA,MAAM,oBAAoB,GAAI,yBAG3B;IACD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;CAC5C,6BAuEA,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|