@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.
Files changed (659) hide show
  1. package/dist/src/components/Catalog/CatalogItemDetails.css +4 -0
  2. package/dist/src/components/Catalog/CatalogPage.css +10 -0
  3. package/dist/src/components/Catalog/EditWizard/steps/UpdateGraph.css +138 -0
  4. package/dist/src/components/Catalog/InstallWizard/steps/AppConfigStep.css +12 -0
  5. package/dist/src/components/Catalog/ResourceCatalog/ResourceCatalogPage.css +3 -0
  6. package/dist/tsconfig.tsbuildinfo +1 -1
  7. package/dist/types/alpha/index.d.ts +18 -0
  8. package/dist/types/alpha/index.d.ts.map +1 -0
  9. package/dist/types/alpha/index.js +16 -0
  10. package/dist/types/alpha/index.js.map +1 -0
  11. package/dist/types/alpha/models/ApiVersion.d.ts +8 -0
  12. package/dist/types/alpha/models/ApiVersion.d.ts.map +1 -0
  13. package/dist/types/alpha/models/ApiVersion.js +16 -0
  14. package/dist/types/alpha/models/ApiVersion.js.map +1 -0
  15. package/dist/types/alpha/models/Catalog.d.ts +15 -0
  16. package/dist/types/alpha/models/Catalog.d.ts.map +1 -0
  17. package/dist/types/alpha/models/Catalog.js +3 -0
  18. package/dist/types/alpha/models/Catalog.js.map +1 -0
  19. package/dist/types/alpha/models/CatalogItem.d.ts +16 -0
  20. package/dist/types/alpha/models/CatalogItem.d.ts.map +1 -0
  21. package/dist/types/alpha/models/CatalogItem.js +3 -0
  22. package/dist/types/alpha/models/CatalogItem.js.map +1 -0
  23. package/dist/types/alpha/models/CatalogItemArtifact.d.ts +16 -0
  24. package/dist/types/alpha/models/CatalogItemArtifact.d.ts.map +1 -0
  25. package/dist/types/alpha/models/CatalogItemArtifact.js +3 -0
  26. package/dist/types/alpha/models/CatalogItemArtifact.js.map +1 -0
  27. package/dist/types/alpha/models/CatalogItemArtifactType.d.ts +15 -0
  28. package/dist/types/alpha/models/CatalogItemArtifactType.d.ts.map +1 -0
  29. package/dist/types/alpha/models/CatalogItemArtifactType.js +23 -0
  30. package/dist/types/alpha/models/CatalogItemArtifactType.js.map +1 -0
  31. package/dist/types/alpha/models/CatalogItemCategory.d.ts +8 -0
  32. package/dist/types/alpha/models/CatalogItemCategory.d.ts.map +1 -0
  33. package/dist/types/alpha/models/CatalogItemCategory.js +16 -0
  34. package/dist/types/alpha/models/CatalogItemCategory.js.map +1 -0
  35. package/dist/types/alpha/models/CatalogItemConfigurable.d.ts +18 -0
  36. package/dist/types/alpha/models/CatalogItemConfigurable.d.ts.map +1 -0
  37. package/dist/types/alpha/models/CatalogItemConfigurable.js +3 -0
  38. package/dist/types/alpha/models/CatalogItemConfigurable.js.map +1 -0
  39. package/dist/types/alpha/models/CatalogItemDeprecation.d.ts +14 -0
  40. package/dist/types/alpha/models/CatalogItemDeprecation.d.ts.map +1 -0
  41. package/dist/types/alpha/models/CatalogItemDeprecation.js +3 -0
  42. package/dist/types/alpha/models/CatalogItemDeprecation.js.map +1 -0
  43. package/dist/types/alpha/models/CatalogItemList.d.ts +19 -0
  44. package/dist/types/alpha/models/CatalogItemList.d.ts.map +1 -0
  45. package/dist/types/alpha/models/CatalogItemList.js +3 -0
  46. package/dist/types/alpha/models/CatalogItemList.js.map +1 -0
  47. package/dist/types/alpha/models/CatalogItemMeta.d.ts +11 -0
  48. package/dist/types/alpha/models/CatalogItemMeta.d.ts.map +1 -0
  49. package/dist/types/alpha/models/CatalogItemMeta.js +3 -0
  50. package/dist/types/alpha/models/CatalogItemMeta.js.map +1 -0
  51. package/dist/types/alpha/models/CatalogItemSpec.d.ts +52 -0
  52. package/dist/types/alpha/models/CatalogItemSpec.d.ts.map +1 -0
  53. package/dist/types/alpha/models/CatalogItemSpec.js +3 -0
  54. package/dist/types/alpha/models/CatalogItemSpec.js.map +1 -0
  55. package/dist/types/alpha/models/CatalogItemType.d.ts +14 -0
  56. package/dist/types/alpha/models/CatalogItemType.d.ts.map +1 -0
  57. package/dist/types/alpha/models/CatalogItemType.js +22 -0
  58. package/dist/types/alpha/models/CatalogItemType.js.map +1 -0
  59. package/dist/types/alpha/models/CatalogItemVersion.d.ts +38 -0
  60. package/dist/types/alpha/models/CatalogItemVersion.d.ts.map +1 -0
  61. package/dist/types/alpha/models/CatalogItemVersion.js +3 -0
  62. package/dist/types/alpha/models/CatalogItemVersion.js.map +1 -0
  63. package/dist/types/alpha/models/CatalogList.d.ts +19 -0
  64. package/dist/types/alpha/models/CatalogList.d.ts.map +1 -0
  65. package/dist/types/alpha/models/CatalogList.js +3 -0
  66. package/dist/types/alpha/models/CatalogList.js.map +1 -0
  67. package/dist/types/alpha/models/CatalogSpec.d.ts +26 -0
  68. package/dist/types/alpha/models/CatalogSpec.d.ts.map +1 -0
  69. package/dist/types/alpha/models/CatalogSpec.js +3 -0
  70. package/dist/types/alpha/models/CatalogSpec.js.map +1 -0
  71. package/dist/types/alpha/models/CatalogStatus.d.ts +11 -0
  72. package/dist/types/alpha/models/CatalogStatus.d.ts.map +1 -0
  73. package/dist/types/alpha/models/CatalogStatus.js +3 -0
  74. package/dist/types/alpha/models/CatalogStatus.js.map +1 -0
  75. package/dist/types/alpha/models/Status.d.ts +28 -0
  76. package/dist/types/alpha/models/Status.d.ts.map +1 -0
  77. package/dist/types/alpha/models/Status.js +3 -0
  78. package/dist/types/alpha/models/Status.js.map +1 -0
  79. package/dist/types/index.d.ts +1 -0
  80. package/dist/types/index.d.ts.map +1 -1
  81. package/dist/types/index.js +3 -1
  82. package/dist/types/index.js.map +1 -1
  83. package/dist/types/models/ResourceSyncSpec.d.ts +2 -0
  84. package/dist/types/models/ResourceSyncSpec.d.ts.map +1 -1
  85. package/dist/types/models/ResourceSyncType.d.ts +8 -0
  86. package/dist/types/models/ResourceSyncType.d.ts.map +1 -0
  87. package/dist/types/models/ResourceSyncType.js +16 -0
  88. package/dist/types/models/ResourceSyncType.js.map +1 -0
  89. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/AddCatalogItemWizard.d.ts +4 -0
  90. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/AddCatalogItemWizard.d.ts.map +1 -0
  91. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/AddCatalogItemWizard.js +155 -0
  92. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/AddCatalogItemWizard.js.map +1 -0
  93. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/ChannelsSelect.d.ts +9 -0
  94. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/ChannelsSelect.d.ts.map +1 -0
  95. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/ChannelsSelect.js +115 -0
  96. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/ChannelsSelect.js.map +1 -0
  97. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/CreateCatalogModal.d.ts +10 -0
  98. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/CreateCatalogModal.d.ts.map +1 -0
  99. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/CreateCatalogModal.js +100 -0
  100. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/CreateCatalogModal.js.map +1 -0
  101. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/GeneralInfoStep.d.ts +11 -0
  102. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/GeneralInfoStep.d.ts.map +1 -0
  103. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/GeneralInfoStep.js +111 -0
  104. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/GeneralInfoStep.js.map +1 -0
  105. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/ReviewStep.d.ts +9 -0
  106. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/ReviewStep.d.ts.map +1 -0
  107. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/ReviewStep.js +77 -0
  108. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/ReviewStep.js.map +1 -0
  109. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/TypeConfigStep.d.ts +11 -0
  110. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/TypeConfigStep.d.ts.map +1 -0
  111. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/TypeConfigStep.js +90 -0
  112. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/TypeConfigStep.js.map +1 -0
  113. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/VersionStep.d.ts +11 -0
  114. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/VersionStep.d.ts.map +1 -0
  115. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/VersionStep.js +105 -0
  116. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/steps/VersionStep.js.map +1 -0
  117. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/types.d.ts +49 -0
  118. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/types.d.ts.map +1 -0
  119. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/types.js +11 -0
  120. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/types.js.map +1 -0
  121. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/utils.d.ts +53 -0
  122. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/utils.d.ts.map +1 -0
  123. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/utils.js +564 -0
  124. package/dist/ui-components/src/components/Catalog/AddCatalogItemWizard/utils.js.map +1 -0
  125. package/dist/ui-components/src/components/Catalog/CatalogItemCard.d.ts +9 -0
  126. package/dist/ui-components/src/components/Catalog/CatalogItemCard.d.ts.map +1 -0
  127. package/dist/ui-components/src/components/Catalog/CatalogItemCard.js +37 -0
  128. package/dist/ui-components/src/components/Catalog/CatalogItemCard.js.map +1 -0
  129. package/dist/ui-components/src/components/Catalog/CatalogItemDetails.d.ts +34 -0
  130. package/dist/ui-components/src/components/Catalog/CatalogItemDetails.d.ts.map +1 -0
  131. package/dist/ui-components/src/components/Catalog/CatalogItemDetails.js +256 -0
  132. package/dist/ui-components/src/components/Catalog/CatalogItemDetails.js.map +1 -0
  133. package/dist/ui-components/src/components/Catalog/CatalogLandingPage.d.ts +10 -0
  134. package/dist/ui-components/src/components/Catalog/CatalogLandingPage.d.ts.map +1 -0
  135. package/dist/ui-components/src/components/Catalog/CatalogLandingPage.js +106 -0
  136. package/dist/ui-components/src/components/Catalog/CatalogLandingPage.js.map +1 -0
  137. package/dist/ui-components/src/components/Catalog/CatalogPage.d.ts +20 -0
  138. package/dist/ui-components/src/components/Catalog/CatalogPage.d.ts.map +1 -0
  139. package/dist/ui-components/src/components/Catalog/CatalogPage.js +253 -0
  140. package/dist/ui-components/src/components/Catalog/CatalogPage.js.map +1 -0
  141. package/dist/ui-components/src/components/Catalog/CatalogPageToolbar.d.ts +14 -0
  142. package/dist/ui-components/src/components/Catalog/CatalogPageToolbar.d.ts.map +1 -0
  143. package/dist/ui-components/src/components/Catalog/CatalogPageToolbar.js +54 -0
  144. package/dist/ui-components/src/components/Catalog/CatalogPageToolbar.js.map +1 -0
  145. package/dist/ui-components/src/components/Catalog/DeleteCatalogModal.d.ts +10 -0
  146. package/dist/ui-components/src/components/Catalog/DeleteCatalogModal.d.ts.map +1 -0
  147. package/dist/ui-components/src/components/Catalog/DeleteCatalogModal.js +96 -0
  148. package/dist/ui-components/src/components/Catalog/DeleteCatalogModal.js.map +1 -0
  149. package/dist/ui-components/src/components/Catalog/DeprecateModal.d.ts +15 -0
  150. package/dist/ui-components/src/components/Catalog/DeprecateModal.d.ts.map +1 -0
  151. package/dist/ui-components/src/components/Catalog/DeprecateModal.js +80 -0
  152. package/dist/ui-components/src/components/Catalog/DeprecateModal.js.map +1 -0
  153. package/dist/ui-components/src/components/Catalog/EditWizard/EditAppWizard.d.ts +18 -0
  154. package/dist/ui-components/src/components/Catalog/EditWizard/EditAppWizard.d.ts.map +1 -0
  155. package/dist/ui-components/src/components/Catalog/EditWizard/EditAppWizard.js +84 -0
  156. package/dist/ui-components/src/components/Catalog/EditWizard/EditAppWizard.js.map +1 -0
  157. package/dist/ui-components/src/components/Catalog/EditWizard/EditOsWizard.d.ts +16 -0
  158. package/dist/ui-components/src/components/Catalog/EditWizard/EditOsWizard.d.ts.map +1 -0
  159. package/dist/ui-components/src/components/Catalog/EditWizard/EditOsWizard.js +66 -0
  160. package/dist/ui-components/src/components/Catalog/EditWizard/EditOsWizard.js.map +1 -0
  161. package/dist/ui-components/src/components/Catalog/EditWizard/EditWizard.d.ts +4 -0
  162. package/dist/ui-components/src/components/Catalog/EditWizard/EditWizard.d.ts.map +1 -0
  163. package/dist/ui-components/src/components/Catalog/EditWizard/EditWizard.js +154 -0
  164. package/dist/ui-components/src/components/Catalog/EditWizard/EditWizard.js.map +1 -0
  165. package/dist/ui-components/src/components/Catalog/EditWizard/steps/ReviewStep.d.ts +10 -0
  166. package/dist/ui-components/src/components/Catalog/EditWizard/steps/ReviewStep.d.ts.map +1 -0
  167. package/dist/ui-components/src/components/Catalog/EditWizard/steps/ReviewStep.js +37 -0
  168. package/dist/ui-components/src/components/Catalog/EditWizard/steps/ReviewStep.js.map +1 -0
  169. package/dist/ui-components/src/components/Catalog/EditWizard/steps/UpdateGraph.d.ts +12 -0
  170. package/dist/ui-components/src/components/Catalog/EditWizard/steps/UpdateGraph.d.ts.map +1 -0
  171. package/dist/ui-components/src/components/Catalog/EditWizard/steps/UpdateGraph.js +105 -0
  172. package/dist/ui-components/src/components/Catalog/EditWizard/steps/UpdateGraph.js.map +1 -0
  173. package/dist/ui-components/src/components/Catalog/EditWizard/steps/UpdateStep.d.ts +13 -0
  174. package/dist/ui-components/src/components/Catalog/EditWizard/steps/UpdateStep.d.ts.map +1 -0
  175. package/dist/ui-components/src/components/Catalog/EditWizard/steps/UpdateStep.js +97 -0
  176. package/dist/ui-components/src/components/Catalog/EditWizard/steps/UpdateStep.js.map +1 -0
  177. package/dist/ui-components/src/components/Catalog/EditWizard/types.d.ts +3 -0
  178. package/dist/ui-components/src/components/Catalog/EditWizard/types.d.ts.map +1 -0
  179. package/dist/ui-components/src/components/Catalog/EditWizard/types.js.map +1 -0
  180. package/dist/ui-components/src/components/Catalog/ImportCatalogWizard/ImportCatalogWizard.d.ts +4 -0
  181. package/dist/ui-components/src/components/Catalog/ImportCatalogWizard/ImportCatalogWizard.d.ts.map +1 -0
  182. package/dist/ui-components/src/components/Catalog/ImportCatalogWizard/ImportCatalogWizard.js +14 -0
  183. package/dist/ui-components/src/components/Catalog/ImportCatalogWizard/ImportCatalogWizard.js.map +1 -0
  184. package/dist/ui-components/src/components/Catalog/InstallWizard/InstallAppWizard.d.ts +11 -0
  185. package/dist/ui-components/src/components/Catalog/InstallWizard/InstallAppWizard.d.ts.map +1 -0
  186. package/dist/ui-components/src/components/Catalog/InstallWizard/InstallAppWizard.js +140 -0
  187. package/dist/ui-components/src/components/Catalog/InstallWizard/InstallAppWizard.js.map +1 -0
  188. package/dist/ui-components/src/components/Catalog/InstallWizard/InstallOsWizard.d.ts +11 -0
  189. package/dist/ui-components/src/components/Catalog/InstallWizard/InstallOsWizard.d.ts.map +1 -0
  190. package/dist/ui-components/src/components/Catalog/InstallWizard/InstallOsWizard.js +120 -0
  191. package/dist/ui-components/src/components/Catalog/InstallWizard/InstallOsWizard.js.map +1 -0
  192. package/dist/ui-components/src/components/Catalog/InstallWizard/InstallWizard.d.ts +4 -0
  193. package/dist/ui-components/src/components/Catalog/InstallWizard/InstallWizard.d.ts.map +1 -0
  194. package/dist/ui-components/src/components/Catalog/InstallWizard/InstallWizard.js +48 -0
  195. package/dist/ui-components/src/components/Catalog/InstallWizard/InstallWizard.js.map +1 -0
  196. package/dist/ui-components/src/components/Catalog/InstallWizard/UpdateSuccessPage.d.ts +8 -0
  197. package/dist/ui-components/src/components/Catalog/InstallWizard/UpdateSuccessPage.d.ts.map +1 -0
  198. package/dist/ui-components/src/components/Catalog/InstallWizard/UpdateSuccessPage.js +44 -0
  199. package/dist/ui-components/src/components/Catalog/InstallWizard/UpdateSuccessPage.js.map +1 -0
  200. package/dist/ui-components/src/components/Catalog/InstallWizard/steps/AppConfigStep.d.ts +18 -0
  201. package/dist/ui-components/src/components/Catalog/InstallWizard/steps/AppConfigStep.d.ts.map +1 -0
  202. package/dist/ui-components/src/components/Catalog/InstallWizard/steps/AppConfigStep.js +100 -0
  203. package/dist/ui-components/src/components/Catalog/InstallWizard/steps/AppConfigStep.js.map +1 -0
  204. package/dist/ui-components/src/components/Catalog/InstallWizard/steps/ReviewStep.d.ts +9 -0
  205. package/dist/ui-components/src/components/Catalog/InstallWizard/steps/ReviewStep.d.ts.map +1 -0
  206. package/dist/ui-components/src/components/Catalog/InstallWizard/steps/ReviewStep.js +140 -0
  207. package/dist/ui-components/src/components/Catalog/InstallWizard/steps/ReviewStep.js.map +1 -0
  208. package/dist/ui-components/src/components/Catalog/InstallWizard/steps/SelectTargetStep.d.ts +11 -0
  209. package/dist/ui-components/src/components/Catalog/InstallWizard/steps/SelectTargetStep.d.ts.map +1 -0
  210. package/dist/ui-components/src/components/Catalog/InstallWizard/steps/SelectTargetStep.js +151 -0
  211. package/dist/ui-components/src/components/Catalog/InstallWizard/steps/SelectTargetStep.js.map +1 -0
  212. package/dist/ui-components/src/components/Catalog/InstallWizard/steps/SpecificationsStep.d.ts +22 -0
  213. package/dist/ui-components/src/components/Catalog/InstallWizard/steps/SpecificationsStep.d.ts.map +1 -0
  214. package/dist/ui-components/src/components/Catalog/InstallWizard/steps/SpecificationsStep.js +192 -0
  215. package/dist/ui-components/src/components/Catalog/InstallWizard/steps/SpecificationsStep.js.map +1 -0
  216. package/dist/ui-components/src/components/Catalog/InstallWizard/types.d.ts +31 -0
  217. package/dist/ui-components/src/components/Catalog/InstallWizard/types.d.ts.map +1 -0
  218. package/dist/ui-components/src/components/Catalog/InstallWizard/types.js +8 -0
  219. package/dist/ui-components/src/components/Catalog/InstallWizard/types.js.map +1 -0
  220. package/dist/ui-components/src/components/Catalog/InstallWizard/utils.d.ts +7 -0
  221. package/dist/ui-components/src/components/Catalog/InstallWizard/utils.d.ts.map +1 -0
  222. package/dist/ui-components/src/components/Catalog/InstallWizard/utils.js +76 -0
  223. package/dist/ui-components/src/components/Catalog/InstallWizard/utils.js.map +1 -0
  224. package/dist/ui-components/src/components/Catalog/InstalledSoftware.d.ts +20 -0
  225. package/dist/ui-components/src/components/Catalog/InstalledSoftware.d.ts.map +1 -0
  226. package/dist/ui-components/src/components/Catalog/InstalledSoftware.js +178 -0
  227. package/dist/ui-components/src/components/Catalog/InstalledSoftware.js.map +1 -0
  228. package/dist/ui-components/src/components/Catalog/ResourceCatalog/ResourceCatalogPage.d.ts +21 -0
  229. package/dist/ui-components/src/components/Catalog/ResourceCatalog/ResourceCatalogPage.d.ts.map +1 -0
  230. package/dist/ui-components/src/components/Catalog/ResourceCatalog/ResourceCatalogPage.js +32 -0
  231. package/dist/ui-components/src/components/Catalog/ResourceCatalog/ResourceCatalogPage.js.map +1 -0
  232. package/dist/ui-components/src/components/Catalog/const.d.ts +12 -0
  233. package/dist/ui-components/src/components/Catalog/const.d.ts.map +1 -0
  234. package/dist/ui-components/src/components/Catalog/const.js +19 -0
  235. package/dist/ui-components/src/components/Catalog/const.js.map +1 -0
  236. package/dist/ui-components/src/components/Catalog/useCatalogFilter.d.ts +12 -0
  237. package/dist/ui-components/src/components/Catalog/useCatalogFilter.d.ts.map +1 -0
  238. package/dist/ui-components/src/components/Catalog/useCatalogFilter.js +20 -0
  239. package/dist/ui-components/src/components/Catalog/useCatalogFilter.js.map +1 -0
  240. package/dist/ui-components/src/components/Catalog/useCatalogs.d.ts +12 -0
  241. package/dist/ui-components/src/components/Catalog/useCatalogs.d.ts.map +1 -0
  242. package/dist/ui-components/src/components/Catalog/useCatalogs.js +78 -0
  243. package/dist/ui-components/src/components/Catalog/useCatalogs.js.map +1 -0
  244. package/dist/ui-components/src/components/Catalog/useSubmitCatalogForm.d.ts +11 -0
  245. package/dist/ui-components/src/components/Catalog/useSubmitCatalogForm.d.ts.map +1 -0
  246. package/dist/ui-components/src/components/Catalog/useSubmitCatalogForm.js +51 -0
  247. package/dist/ui-components/src/components/Catalog/useSubmitCatalogForm.js.map +1 -0
  248. package/dist/ui-components/src/components/Catalog/utils.d.ts +40 -0
  249. package/dist/ui-components/src/components/Catalog/utils.d.ts.map +1 -0
  250. package/dist/ui-components/src/components/Catalog/utils.js +304 -0
  251. package/dist/ui-components/src/components/Catalog/utils.js.map +1 -0
  252. package/dist/ui-components/src/components/DetailsPage/DetailsPage.d.ts +3 -1
  253. package/dist/ui-components/src/components/DetailsPage/DetailsPage.d.ts.map +1 -1
  254. package/dist/ui-components/src/components/DetailsPage/DetailsPage.js +2 -2
  255. package/dist/ui-components/src/components/DetailsPage/DetailsPage.js.map +1 -1
  256. package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsCatalog.d.ts +10 -0
  257. package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsCatalog.d.ts.map +1 -0
  258. package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsCatalog.js +58 -0
  259. package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsCatalog.js.map +1 -0
  260. package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsPage.d.ts.map +1 -1
  261. package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsPage.js +5 -2
  262. package/dist/ui-components/src/components/Device/DeviceDetails/DeviceDetailsPage.js.map +1 -1
  263. package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDeviceTableRow.d.ts.map +1 -1
  264. package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDeviceTableRow.js +3 -3
  265. package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDeviceTableRow.js.map +1 -1
  266. package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDevicesTable.d.ts.map +1 -1
  267. package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDevicesTable.js +2 -2
  268. package/dist/ui-components/src/components/Device/DevicesPage/DecommissionedDevicesTable.js.map +1 -1
  269. package/dist/ui-components/src/components/Device/DevicesPage/DevicesPage.d.ts.map +1 -1
  270. package/dist/ui-components/src/components/Device/DevicesPage/DevicesPage.js +1 -1
  271. package/dist/ui-components/src/components/Device/DevicesPage/DevicesPage.js.map +1 -1
  272. package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDeviceTableRow.d.ts +10 -6
  273. package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDeviceTableRow.d.ts.map +1 -1
  274. package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDeviceTableRow.js +20 -18
  275. package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDeviceTableRow.js.map +1 -1
  276. package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDevicesTable.d.ts +3 -0
  277. package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDevicesTable.d.ts.map +1 -1
  278. package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDevicesTable.js +14 -6
  279. package/dist/ui-components/src/components/Device/DevicesPage/EnrolledDevicesTable.js.map +1 -1
  280. package/dist/ui-components/src/components/Device/DevicesPage/useDevices.d.ts +30 -1
  281. package/dist/ui-components/src/components/Device/DevicesPage/useDevices.d.ts.map +1 -1
  282. package/dist/ui-components/src/components/Device/DevicesPage/useDevices.js +39 -3
  283. package/dist/ui-components/src/components/Device/DevicesPage/useDevices.js.map +1 -1
  284. package/dist/ui-components/src/components/Device/EditDeviceWizard/EditDeviceWizard.js +1 -1
  285. package/dist/ui-components/src/components/Device/EditDeviceWizard/EditDeviceWizard.js.map +1 -1
  286. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.js +3 -3
  287. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.js.map +1 -1
  288. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js +3 -3
  289. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.js.map +1 -1
  290. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts +2 -1
  291. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.d.ts.map +1 -1
  292. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js +16 -10
  293. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.js.map +1 -1
  294. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.js +3 -3
  295. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.js.map +1 -1
  296. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.js +3 -3
  297. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.js.map +1 -1
  298. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js +3 -3
  299. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.js.map +1 -1
  300. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.js +3 -3
  301. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.js.map +1 -1
  302. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts +2 -1
  303. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.d.ts.map +1 -1
  304. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js +9 -3
  305. package/dist/ui-components/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.js.map +1 -1
  306. package/dist/ui-components/src/components/Device/EditDeviceWizard/utils.d.ts +23 -23
  307. package/dist/ui-components/src/components/DynamicForm/DynamicForm.d.ts +29 -0
  308. package/dist/ui-components/src/components/DynamicForm/DynamicForm.d.ts.map +1 -0
  309. package/dist/ui-components/src/components/DynamicForm/DynamicForm.js +35 -0
  310. package/dist/ui-components/src/components/DynamicForm/DynamicForm.js.map +1 -0
  311. package/dist/ui-components/src/components/DynamicForm/FieldErrors.d.ts +6 -0
  312. package/dist/ui-components/src/components/DynamicForm/FieldErrors.d.ts.map +1 -0
  313. package/dist/ui-components/src/components/DynamicForm/FieldErrors.js +12 -0
  314. package/dist/ui-components/src/components/DynamicForm/FieldErrors.js.map +1 -0
  315. package/dist/ui-components/src/components/DynamicForm/FieldTemplate.d.ts +9 -0
  316. package/dist/ui-components/src/components/DynamicForm/FieldTemplate.d.ts.map +1 -0
  317. package/dist/ui-components/src/components/DynamicForm/FieldTemplate.js +135 -0
  318. package/dist/ui-components/src/components/DynamicForm/FieldTemplate.js.map +1 -0
  319. package/dist/ui-components/src/components/DynamicForm/FormWidget.d.ts +12 -0
  320. package/dist/ui-components/src/components/DynamicForm/FormWidget.d.ts.map +1 -0
  321. package/dist/ui-components/src/components/DynamicForm/FormWidget.js +75 -0
  322. package/dist/ui-components/src/components/DynamicForm/FormWidget.js.map +1 -0
  323. package/dist/ui-components/src/components/DynamicForm/VolumeImageField.d.ts +21 -0
  324. package/dist/ui-components/src/components/DynamicForm/VolumeImageField.d.ts.map +1 -0
  325. package/dist/ui-components/src/components/DynamicForm/VolumeImageField.js +155 -0
  326. package/dist/ui-components/src/components/DynamicForm/VolumeImageField.js.map +1 -0
  327. package/dist/ui-components/src/components/EnrollmentRequest/EnrollmentRequestTableRow.d.ts.map +1 -1
  328. package/dist/ui-components/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js +2 -2
  329. package/dist/ui-components/src/components/EnrollmentRequest/EnrollmentRequestTableRow.js.map +1 -1
  330. package/dist/ui-components/src/components/Fleet/CreateFleet/CreateFleetWizard.d.ts.map +1 -1
  331. package/dist/ui-components/src/components/Fleet/CreateFleet/CreateFleetWizard.js +1 -1
  332. package/dist/ui-components/src/components/Fleet/CreateFleet/CreateFleetWizard.js.map +1 -1
  333. package/dist/ui-components/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.js +3 -3
  334. package/dist/ui-components/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.js.map +1 -1
  335. package/dist/ui-components/src/components/Fleet/FleetDetails/FleetDetailsCatalog.d.ts +9 -0
  336. package/dist/ui-components/src/components/Fleet/FleetDetails/FleetDetailsCatalog.d.ts.map +1 -0
  337. package/dist/ui-components/src/components/Fleet/FleetDetails/FleetDetailsCatalog.js +45 -0
  338. package/dist/ui-components/src/components/Fleet/FleetDetails/FleetDetailsCatalog.js.map +1 -0
  339. package/dist/ui-components/src/components/Fleet/FleetDetails/FleetDetailsPage.d.ts.map +1 -1
  340. package/dist/ui-components/src/components/Fleet/FleetDetails/FleetDetailsPage.js +4 -1
  341. package/dist/ui-components/src/components/Fleet/FleetDetails/FleetDetailsPage.js.map +1 -1
  342. package/dist/ui-components/src/components/Fleet/FleetDetails/FleetOwnerLink.d.ts +0 -1
  343. package/dist/ui-components/src/components/Fleet/FleetDetails/FleetOwnerLink.d.ts.map +1 -1
  344. package/dist/ui-components/src/components/Fleet/FleetDetails/FleetOwnerLink.js +5 -6
  345. package/dist/ui-components/src/components/Fleet/FleetDetails/FleetOwnerLink.js.map +1 -1
  346. package/dist/ui-components/src/components/Fleet/FleetRow.d.ts +6 -3
  347. package/dist/ui-components/src/components/Fleet/FleetRow.d.ts.map +1 -1
  348. package/dist/ui-components/src/components/Fleet/FleetRow.js +10 -6
  349. package/dist/ui-components/src/components/Fleet/FleetRow.js.map +1 -1
  350. package/dist/ui-components/src/components/Fleet/FleetsPage.d.ts +3 -0
  351. package/dist/ui-components/src/components/Fleet/FleetsPage.d.ts.map +1 -1
  352. package/dist/ui-components/src/components/Fleet/FleetsPage.js +6 -4
  353. package/dist/ui-components/src/components/Fleet/FleetsPage.js.map +1 -1
  354. package/dist/ui-components/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.d.ts +2 -2
  355. package/dist/ui-components/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.d.ts.map +1 -1
  356. package/dist/ui-components/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.js +3 -105
  357. package/dist/ui-components/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.js.map +1 -1
  358. package/dist/ui-components/src/components/Fleet/useFleets.d.ts +1 -0
  359. package/dist/ui-components/src/components/Fleet/useFleets.d.ts.map +1 -1
  360. package/dist/ui-components/src/components/Fleet/useFleets.js.map +1 -1
  361. package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/utils.d.ts.map +1 -1
  362. package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/utils.js +0 -2
  363. package/dist/ui-components/src/components/ImageBuilds/CreateImageBuildWizard/utils.js.map +1 -1
  364. package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildDetailsTab.js +1 -1
  365. package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildDetailsTab.js.map +1 -1
  366. package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildYaml.js +1 -1
  367. package/dist/ui-components/src/components/ImageBuilds/ImageBuildDetails/ImageBuildYaml.js.map +1 -1
  368. package/dist/ui-components/src/components/ImageBuilds/ImageBuildRow.d.ts.map +1 -1
  369. package/dist/ui-components/src/components/ImageBuilds/ImageBuildRow.js +0 -1
  370. package/dist/ui-components/src/components/ImageBuilds/ImageBuildRow.js.map +1 -1
  371. package/dist/ui-components/src/components/ImageBuilds/ImageBuildsPage.d.ts.map +1 -1
  372. package/dist/ui-components/src/components/ImageBuilds/ImageBuildsPage.js +0 -3
  373. package/dist/ui-components/src/components/ImageBuilds/ImageBuildsPage.js.map +1 -1
  374. package/dist/ui-components/src/components/ImportResourceWizard/ImportResourceWizard.d.ts +5 -0
  375. package/dist/ui-components/src/components/ImportResourceWizard/ImportResourceWizard.d.ts.map +1 -0
  376. package/dist/ui-components/src/components/ImportResourceWizard/ImportResourceWizard.js +118 -0
  377. package/dist/ui-components/src/components/ImportResourceWizard/ImportResourceWizard.js.map +1 -0
  378. package/dist/ui-components/src/components/{Fleet/ImportFleetWizard → ImportResourceWizard}/steps/RepositoryStep.d.ts +2 -2
  379. package/dist/ui-components/src/components/ImportResourceWizard/steps/RepositoryStep.d.ts.map +1 -0
  380. package/dist/ui-components/src/components/{Fleet/ImportFleetWizard → ImportResourceWizard}/steps/RepositoryStep.js +10 -10
  381. package/dist/ui-components/src/components/ImportResourceWizard/steps/RepositoryStep.js.map +1 -0
  382. package/dist/ui-components/src/components/ImportResourceWizard/steps/ResourceSyncStep.d.ts +12 -0
  383. package/dist/ui-components/src/components/ImportResourceWizard/steps/ResourceSyncStep.d.ts.map +1 -0
  384. package/dist/ui-components/src/components/{Fleet/ImportFleetWizard → ImportResourceWizard}/steps/ResourceSyncStep.js +5 -7
  385. package/dist/ui-components/src/components/ImportResourceWizard/steps/ResourceSyncStep.js.map +1 -0
  386. package/dist/ui-components/src/components/{Fleet/ImportFleetWizard → ImportResourceWizard}/steps/ReviewStep.d.ts +2 -1
  387. package/dist/ui-components/src/components/ImportResourceWizard/steps/ReviewStep.d.ts.map +1 -0
  388. package/dist/ui-components/src/components/{Fleet/ImportFleetWizard → ImportResourceWizard}/steps/ReviewStep.js +5 -5
  389. package/dist/ui-components/src/components/ImportResourceWizard/steps/ReviewStep.js.map +1 -0
  390. package/dist/ui-components/src/components/ImportResourceWizard/types.d.ts +19 -0
  391. package/dist/ui-components/src/components/ImportResourceWizard/types.d.ts.map +1 -0
  392. package/dist/ui-components/src/components/ImportResourceWizard/types.js +3 -0
  393. package/dist/ui-components/src/components/ImportResourceWizard/types.js.map +1 -0
  394. package/dist/ui-components/src/components/ListPage/ListPage.js +1 -1
  395. package/dist/ui-components/src/components/ListPage/ListPage.js.map +1 -1
  396. package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepository.d.ts.map +1 -1
  397. package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepository.js +4 -3
  398. package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepository.js.map +1 -1
  399. package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepositoryForm.js +1 -1
  400. package/dist/ui-components/src/components/Repository/CreateRepository/CreateRepositoryForm.js.map +1 -1
  401. package/dist/ui-components/src/components/Repository/CreateRepository/CreateResourceSyncsForm.d.ts +7 -2
  402. package/dist/ui-components/src/components/Repository/CreateRepository/CreateResourceSyncsForm.d.ts.map +1 -1
  403. package/dist/ui-components/src/components/Repository/CreateRepository/CreateResourceSyncsForm.js +19 -6
  404. package/dist/ui-components/src/components/Repository/CreateRepository/CreateResourceSyncsForm.js.map +1 -1
  405. package/dist/ui-components/src/components/Repository/CreateRepository/types.d.ts +2 -1
  406. package/dist/ui-components/src/components/Repository/CreateRepository/types.d.ts.map +1 -1
  407. package/dist/ui-components/src/components/Repository/CreateRepository/utils.d.ts +3 -2
  408. package/dist/ui-components/src/components/Repository/CreateRepository/utils.d.ts.map +1 -1
  409. package/dist/ui-components/src/components/Repository/CreateRepository/utils.js +7 -4
  410. package/dist/ui-components/src/components/Repository/CreateRepository/utils.js.map +1 -1
  411. package/dist/ui-components/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.d.ts.map +1 -1
  412. package/dist/ui-components/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.js +2 -3
  413. package/dist/ui-components/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.js.map +1 -1
  414. package/dist/ui-components/src/components/ResourceSync/RepositoryResourceSyncList.d.ts.map +1 -1
  415. package/dist/ui-components/src/components/ResourceSync/RepositoryResourceSyncList.js +20 -6
  416. package/dist/ui-components/src/components/ResourceSync/RepositoryResourceSyncList.js.map +1 -1
  417. package/dist/ui-components/src/components/ResourceSync/ResourceSyncImportStatus.d.ts +6 -0
  418. package/dist/ui-components/src/components/ResourceSync/ResourceSyncImportStatus.d.ts.map +1 -0
  419. package/dist/ui-components/src/components/{Fleet/FleetResourceSyncs.js → ResourceSync/ResourceSyncImportStatus.js} +24 -17
  420. package/dist/ui-components/src/components/ResourceSync/ResourceSyncImportStatus.js.map +1 -0
  421. package/dist/ui-components/src/components/Table/Table.d.ts +5 -2
  422. package/dist/ui-components/src/components/Table/Table.d.ts.map +1 -1
  423. package/dist/ui-components/src/components/Table/Table.js +2 -1
  424. package/dist/ui-components/src/components/Table/Table.js.map +1 -1
  425. package/dist/ui-components/src/components/common/CodeEditor/YamlEditor.d.ts +1 -0
  426. package/dist/ui-components/src/components/common/CodeEditor/YamlEditor.d.ts.map +1 -1
  427. package/dist/ui-components/src/components/common/CodeEditor/YamlEditor.js +5 -3
  428. package/dist/ui-components/src/components/common/CodeEditor/YamlEditor.js.map +1 -1
  429. package/dist/ui-components/src/components/common/CodeEditor/YamlEditorBase.d.ts +5 -3
  430. package/dist/ui-components/src/components/common/CodeEditor/YamlEditorBase.d.ts.map +1 -1
  431. package/dist/ui-components/src/components/common/CodeEditor/YamlEditorBase.js +5 -5
  432. package/dist/ui-components/src/components/common/CodeEditor/YamlEditorBase.js.map +1 -1
  433. package/dist/ui-components/src/components/common/FlightCtlWizardFooter.d.ts +3 -1
  434. package/dist/ui-components/src/components/common/FlightCtlWizardFooter.d.ts.map +1 -1
  435. package/dist/ui-components/src/components/common/FlightCtlWizardFooter.js +6 -6
  436. package/dist/ui-components/src/components/common/FlightCtlWizardFooter.js.map +1 -1
  437. package/dist/ui-components/src/components/common/LabelsView.d.ts.map +1 -1
  438. package/dist/ui-components/src/components/common/LabelsView.js +2 -1
  439. package/dist/ui-components/src/components/common/LabelsView.js.map +1 -1
  440. package/dist/ui-components/src/components/common/PageNavigation.js +1 -1
  441. package/dist/ui-components/src/components/common/PageNavigation.js.map +1 -1
  442. package/dist/ui-components/src/components/common/ResourceLink.d.ts +2 -1
  443. package/dist/ui-components/src/components/common/ResourceLink.d.ts.map +1 -1
  444. package/dist/ui-components/src/components/common/ResourceLink.js +2 -2
  445. package/dist/ui-components/src/components/common/ResourceLink.js.map +1 -1
  446. package/dist/ui-components/src/components/common/WithHelperText.js +1 -1
  447. package/dist/ui-components/src/components/common/WithHelperText.js.map +1 -1
  448. package/dist/ui-components/src/components/common/WithTooltip.d.ts +3 -2
  449. package/dist/ui-components/src/components/common/WithTooltip.d.ts.map +1 -1
  450. package/dist/ui-components/src/components/common/WithTooltip.js +6 -1
  451. package/dist/ui-components/src/components/common/WithTooltip.js.map +1 -1
  452. package/dist/ui-components/src/components/form/ExpandableFormSection.d.ts +2 -1
  453. package/dist/ui-components/src/components/form/ExpandableFormSection.d.ts.map +1 -1
  454. package/dist/ui-components/src/components/form/ExpandableFormSection.js +2 -2
  455. package/dist/ui-components/src/components/form/ExpandableFormSection.js.map +1 -1
  456. package/dist/ui-components/src/components/form/FormSelect.d.ts +9 -2
  457. package/dist/ui-components/src/components/form/FormSelect.d.ts.map +1 -1
  458. package/dist/ui-components/src/components/form/FormSelect.js +16 -5
  459. package/dist/ui-components/src/components/form/FormSelect.js.map +1 -1
  460. package/dist/ui-components/src/components/form/IconUploadField.d.ts +8 -0
  461. package/dist/ui-components/src/components/form/IconUploadField.d.ts.map +1 -0
  462. package/dist/ui-components/src/components/form/IconUploadField.js +50 -0
  463. package/dist/ui-components/src/components/form/IconUploadField.js.map +1 -0
  464. package/dist/ui-components/src/components/form/LabelsField.d.ts.map +1 -1
  465. package/dist/ui-components/src/components/form/LabelsField.js +7 -3
  466. package/dist/ui-components/src/components/form/LabelsField.js.map +1 -1
  467. package/dist/ui-components/src/components/form/TextListField.d.ts +1 -1
  468. package/dist/ui-components/src/components/form/validations.d.ts +17 -1
  469. package/dist/ui-components/src/components/form/validations.d.ts.map +1 -1
  470. package/dist/ui-components/src/components/form/validations.js +14 -9
  471. package/dist/ui-components/src/components/form/validations.js.map +1 -1
  472. package/dist/ui-components/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.d.ts.map +1 -1
  473. package/dist/ui-components/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.js +1 -1
  474. package/dist/ui-components/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.js.map +1 -1
  475. package/dist/ui-components/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.d.ts.map +1 -1
  476. package/dist/ui-components/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.js +1 -1
  477. package/dist/ui-components/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.js.map +1 -1
  478. package/dist/ui-components/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.d.ts.map +1 -1
  479. package/dist/ui-components/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js +1 -1
  480. package/dist/ui-components/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.js.map +1 -1
  481. package/dist/ui-components/src/constants.d.ts +1 -1
  482. package/dist/ui-components/src/constants.d.ts.map +1 -1
  483. package/dist/ui-components/src/constants.js +3 -0
  484. package/dist/ui-components/src/constants.js.map +1 -1
  485. package/dist/ui-components/src/hooks/useAppContext.d.ts +7 -0
  486. package/dist/ui-components/src/hooks/useAppContext.d.ts.map +1 -1
  487. package/dist/ui-components/src/hooks/useAppContext.js +7 -0
  488. package/dist/ui-components/src/hooks/useAppContext.js.map +1 -1
  489. package/dist/ui-components/src/hooks/useAppLinks.d.ts +1 -1
  490. package/dist/ui-components/src/hooks/useAppLinks.d.ts.map +1 -1
  491. package/dist/ui-components/src/hooks/useAppLinks.js +6 -0
  492. package/dist/ui-components/src/hooks/useAppLinks.js.map +1 -1
  493. package/dist/ui-components/src/hooks/useFetch.d.ts.map +1 -1
  494. package/dist/ui-components/src/hooks/useFetchPeriodically.d.ts.map +1 -1
  495. package/dist/ui-components/src/hooks/useFetchPeriodically.js +4 -4
  496. package/dist/ui-components/src/hooks/useFetchPeriodically.js.map +1 -1
  497. package/dist/ui-components/src/hooks/useNavigate.d.ts +10 -3
  498. package/dist/ui-components/src/hooks/useNavigate.d.ts.map +1 -1
  499. package/dist/ui-components/src/hooks/useNavigate.js +11 -3
  500. package/dist/ui-components/src/hooks/useNavigate.js.map +1 -1
  501. package/dist/ui-components/src/types/extraTypes.d.ts +0 -1
  502. package/dist/ui-components/src/types/extraTypes.d.ts.map +1 -1
  503. package/dist/ui-components/src/types/extraTypes.js.map +1 -1
  504. package/dist/ui-components/src/types/rbac.d.ts +2 -0
  505. package/dist/ui-components/src/types/rbac.d.ts.map +1 -1
  506. package/dist/ui-components/src/types/rbac.js +2 -0
  507. package/dist/ui-components/src/types/rbac.js.map +1 -1
  508. package/dist/ui-components/src/utils/api.d.ts +2 -1
  509. package/dist/ui-components/src/utils/api.d.ts.map +1 -1
  510. package/dist/ui-components/src/utils/api.js.map +1 -1
  511. package/dist/ui-components/src/utils/patch.d.ts.map +1 -1
  512. package/dist/ui-components/src/utils/patch.js +2 -1
  513. package/dist/ui-components/src/utils/patch.js.map +1 -1
  514. package/dist/ui-components/src/utils/resource.d.ts +2 -1
  515. package/dist/ui-components/src/utils/resource.d.ts.map +1 -1
  516. package/dist/ui-components/src/utils/resource.js +13 -1
  517. package/dist/ui-components/src/utils/resource.js.map +1 -1
  518. package/package.json +9 -3
  519. package/src/components/Catalog/AddCatalogItemWizard/AddCatalogItemWizard.tsx +253 -0
  520. package/src/components/Catalog/AddCatalogItemWizard/ChannelsSelect.tsx +214 -0
  521. package/src/components/Catalog/AddCatalogItemWizard/CreateCatalogModal.tsx +179 -0
  522. package/src/components/Catalog/AddCatalogItemWizard/steps/GeneralInfoStep.tsx +196 -0
  523. package/src/components/Catalog/AddCatalogItemWizard/steps/ReviewStep.tsx +145 -0
  524. package/src/components/Catalog/AddCatalogItemWizard/steps/TypeConfigStep.tsx +203 -0
  525. package/src/components/Catalog/AddCatalogItemWizard/steps/VersionStep.tsx +249 -0
  526. package/src/components/Catalog/AddCatalogItemWizard/types.ts +58 -0
  527. package/src/components/Catalog/AddCatalogItemWizard/utils.ts +655 -0
  528. package/src/components/Catalog/CatalogItemCard.tsx +86 -0
  529. package/src/components/Catalog/CatalogItemDetails.css +4 -0
  530. package/src/components/Catalog/CatalogItemDetails.tsx +480 -0
  531. package/src/components/Catalog/CatalogLandingPage.tsx +258 -0
  532. package/src/components/Catalog/CatalogPage.css +10 -0
  533. package/src/components/Catalog/CatalogPage.tsx +460 -0
  534. package/src/components/Catalog/CatalogPageToolbar.tsx +92 -0
  535. package/src/components/Catalog/DeleteCatalogModal.tsx +163 -0
  536. package/src/components/Catalog/DeprecateModal.tsx +149 -0
  537. package/src/components/Catalog/EditWizard/EditAppWizard.tsx +181 -0
  538. package/src/components/Catalog/EditWizard/EditOsWizard.tsx +136 -0
  539. package/src/components/Catalog/EditWizard/EditWizard.tsx +287 -0
  540. package/src/components/Catalog/EditWizard/steps/ReviewStep.tsx +83 -0
  541. package/src/components/Catalog/EditWizard/steps/UpdateGraph.css +138 -0
  542. package/src/components/Catalog/EditWizard/steps/UpdateGraph.tsx +169 -0
  543. package/src/components/Catalog/EditWizard/steps/UpdateStep.tsx +184 -0
  544. package/src/components/Catalog/EditWizard/types.ts +3 -0
  545. package/src/components/Catalog/ImportCatalogWizard/ImportCatalogWizard.tsx +23 -0
  546. package/src/components/Catalog/InstallWizard/InstallAppWizard.tsx +228 -0
  547. package/src/components/Catalog/InstallWizard/InstallOsWizard.tsx +199 -0
  548. package/src/components/Catalog/InstallWizard/InstallWizard.tsx +80 -0
  549. package/src/components/Catalog/InstallWizard/UpdateSuccessPage.tsx +80 -0
  550. package/src/components/Catalog/InstallWizard/steps/AppConfigStep.css +12 -0
  551. package/src/components/Catalog/InstallWizard/steps/AppConfigStep.tsx +202 -0
  552. package/src/components/Catalog/InstallWizard/steps/ReviewStep.tsx +193 -0
  553. package/src/components/Catalog/InstallWizard/steps/SelectTargetStep.tsx +312 -0
  554. package/src/components/Catalog/InstallWizard/steps/SpecificationsStep.tsx +353 -0
  555. package/src/components/Catalog/InstallWizard/types.ts +37 -0
  556. package/src/components/Catalog/InstallWizard/utils.ts +106 -0
  557. package/src/components/Catalog/InstalledSoftware.tsx +359 -0
  558. package/src/components/Catalog/ResourceCatalog/ResourceCatalogPage.css +3 -0
  559. package/src/components/Catalog/ResourceCatalog/ResourceCatalogPage.tsx +69 -0
  560. package/src/components/Catalog/const.ts +16 -0
  561. package/src/components/Catalog/useCatalogFilter.ts +26 -0
  562. package/src/components/Catalog/useCatalogs.ts +118 -0
  563. package/src/components/Catalog/useSubmitCatalogForm.ts +60 -0
  564. package/src/components/Catalog/utils.ts +404 -0
  565. package/src/components/DetailsPage/DetailsPage.tsx +9 -1
  566. package/src/components/Device/DeviceDetails/DeviceDetailsCatalog.tsx +94 -0
  567. package/src/components/Device/DeviceDetails/DeviceDetailsPage.tsx +10 -1
  568. package/src/components/Device/DevicesPage/DecommissionedDeviceTableRow.tsx +7 -3
  569. package/src/components/Device/DevicesPage/DecommissionedDevicesTable.tsx +2 -0
  570. package/src/components/Device/DevicesPage/DevicesPage.tsx +7 -1
  571. package/src/components/Device/DevicesPage/EnrolledDeviceTableRow.tsx +90 -61
  572. package/src/components/Device/DevicesPage/EnrolledDevicesTable.tsx +12 -2
  573. package/src/components/Device/DevicesPage/useDevices.ts +70 -2
  574. package/src/components/Device/EditDeviceWizard/EditDeviceWizard.tsx +1 -1
  575. package/src/components/Device/EditDeviceWizard/steps/ApplicationHelmForm.tsx +3 -3
  576. package/src/components/Device/EditDeviceWizard/steps/ApplicationInlineForm.tsx +3 -3
  577. package/src/components/Device/EditDeviceWizard/steps/ApplicationTemplates.tsx +51 -22
  578. package/src/components/Device/EditDeviceWizard/steps/ApplicationVariablesForm.tsx +3 -3
  579. package/src/components/Device/EditDeviceWizard/steps/ApplicationVolumeForm.tsx +3 -3
  580. package/src/components/Device/EditDeviceWizard/steps/ConfigInlineTemplateForm.tsx +3 -3
  581. package/src/components/Device/EditDeviceWizard/steps/ConfigurationTemplates.tsx +3 -3
  582. package/src/components/Device/EditDeviceWizard/steps/DeviceTemplateStep.tsx +31 -11
  583. package/src/components/DynamicForm/DynamicForm.tsx +96 -0
  584. package/src/components/DynamicForm/FieldErrors.tsx +17 -0
  585. package/src/components/DynamicForm/FieldTemplate.tsx +246 -0
  586. package/src/components/DynamicForm/FormWidget.tsx +218 -0
  587. package/src/components/DynamicForm/VolumeImageField.tsx +366 -0
  588. package/src/components/EnrollmentRequest/EnrollmentRequestTableRow.tsx +6 -2
  589. package/src/components/Fleet/CreateFleet/CreateFleetWizard.tsx +3 -1
  590. package/src/components/Fleet/CreateFleet/steps/UpdateStepRolloutPolicy.tsx +3 -3
  591. package/src/components/Fleet/FleetDetails/FleetDetailsCatalog.tsx +66 -0
  592. package/src/components/Fleet/FleetDetails/FleetDetailsPage.tsx +4 -1
  593. package/src/components/Fleet/FleetDetails/FleetOwnerLink.tsx +5 -6
  594. package/src/components/Fleet/FleetRow.tsx +23 -12
  595. package/src/components/Fleet/FleetsPage.tsx +4 -4
  596. package/src/components/Fleet/ImportFleetWizard/ImportFleetWizard.tsx +16 -203
  597. package/src/components/Fleet/useFleets.ts +1 -0
  598. package/src/components/ImageBuilds/CreateImageBuildWizard/utils.ts +1 -5
  599. package/src/components/ImageBuilds/ImageBuildDetails/ImageBuildDetailsTab.tsx +1 -1
  600. package/src/components/ImageBuilds/ImageBuildDetails/ImageBuildYaml.tsx +1 -1
  601. package/src/components/ImageBuilds/ImageBuildRow.tsx +0 -1
  602. package/src/components/ImageBuilds/ImageBuildsPage.tsx +0 -3
  603. package/src/components/ImportResourceWizard/ImportResourceWizard.tsx +226 -0
  604. package/src/components/{Fleet/ImportFleetWizard → ImportResourceWizard}/steps/RepositoryStep.tsx +21 -19
  605. package/src/components/ImportResourceWizard/steps/ResourceSyncStep.tsx +41 -0
  606. package/src/components/{Fleet/ImportFleetWizard → ImportResourceWizard}/steps/ReviewStep.tsx +10 -15
  607. package/src/components/ImportResourceWizard/types.ts +18 -0
  608. package/src/components/ListPage/ListPage.tsx +1 -1
  609. package/src/components/Repository/CreateRepository/CreateRepository.tsx +6 -5
  610. package/src/components/Repository/CreateRepository/CreateRepositoryForm.tsx +1 -1
  611. package/src/components/Repository/CreateRepository/CreateResourceSyncsForm.tsx +59 -8
  612. package/src/components/Repository/CreateRepository/types.ts +2 -1
  613. package/src/components/Repository/CreateRepository/utils.ts +7 -2
  614. package/src/components/Repository/RepositoryDetails/DeleteRepositoryModal.tsx +6 -9
  615. package/src/components/ResourceSync/RepositoryResourceSyncList.tsx +30 -15
  616. package/src/components/{Fleet/FleetResourceSyncs.tsx → ResourceSync/ResourceSyncImportStatus.tsx} +42 -18
  617. package/src/components/Table/Table.tsx +7 -2
  618. package/src/components/common/CodeEditor/YamlEditor.tsx +1 -1
  619. package/src/components/common/CodeEditor/YamlEditorBase.tsx +45 -34
  620. package/src/components/common/FlightCtlWizardFooter.tsx +25 -4
  621. package/src/components/common/LabelsView.tsx +2 -1
  622. package/src/components/common/PageNavigation.tsx +1 -1
  623. package/src/components/common/ResourceLink.tsx +15 -2
  624. package/src/components/common/WithHelperText.tsx +1 -1
  625. package/src/components/common/WithTooltip.tsx +13 -3
  626. package/src/components/form/ExpandableFormSection.tsx +3 -1
  627. package/src/components/form/FormSelect.tsx +51 -5
  628. package/src/components/form/IconUploadField.tsx +88 -0
  629. package/src/components/form/LabelsField.tsx +29 -25
  630. package/src/components/form/validations.ts +5 -3
  631. package/src/components/modals/ApproveDeviceModal/ApproveDeviceForm.tsx +1 -0
  632. package/src/components/modals/massModals/MassDecommissionDeviceModal/MassDecommissionDeviceModal.tsx +1 -0
  633. package/src/components/modals/massModals/MassDeleteDeviceModal/MassDeleteDeviceModal.tsx +8 -1
  634. package/src/constants.ts +4 -1
  635. package/src/hooks/useAppContext.tsx +7 -0
  636. package/src/hooks/useAppLinks.ts +8 -2
  637. package/src/hooks/useFetchPeriodically.ts +4 -5
  638. package/src/hooks/useNavigate.tsx +18 -5
  639. package/src/types/extraTypes.ts +0 -1
  640. package/src/types/rbac.ts +2 -0
  641. package/src/utils/api.ts +3 -1
  642. package/src/utils/patch.ts +2 -1
  643. package/src/utils/resource.ts +13 -1
  644. package/dist/ui-components/src/components/Fleet/FleetResourceSyncs.d.ts +0 -4
  645. package/dist/ui-components/src/components/Fleet/FleetResourceSyncs.d.ts.map +0 -1
  646. package/dist/ui-components/src/components/Fleet/FleetResourceSyncs.js.map +0 -1
  647. package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.d.ts.map +0 -1
  648. package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/RepositoryStep.js.map +0 -1
  649. package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.d.ts +0 -8
  650. package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.d.ts.map +0 -1
  651. package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.js.map +0 -1
  652. package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/ReviewStep.d.ts.map +0 -1
  653. package/dist/ui-components/src/components/Fleet/ImportFleetWizard/steps/ReviewStep.js.map +0 -1
  654. package/dist/ui-components/src/components/Fleet/ImportFleetWizard/types.d.ts +0 -6
  655. package/dist/ui-components/src/components/Fleet/ImportFleetWizard/types.d.ts.map +0 -1
  656. package/dist/ui-components/src/components/Fleet/ImportFleetWizard/types.js.map +0 -1
  657. package/src/components/Fleet/ImportFleetWizard/steps/ResourceSyncStep.tsx +0 -40
  658. package/src/components/Fleet/ImportFleetWizard/types.ts +0 -6
  659. /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 [data, loading, error, updating, refetch] = (0, useDevices_1.useDevices)({
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,MAA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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: boolean;
11
- canDecommission: boolean;
12
- decommissionAction: ListAction;
13
- canResume: boolean;
14
- resumeAction: ListAction;
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
@@ -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;AAQlD,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,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,UAAU,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,UAAU,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,sBAAsB,GAAI,0HAU7B,2BAA2B,sBA2E7B,CAAC;AAEF,eAAe,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
- return (React.createElement(react_table_1.Tr, null,
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/EnrolledDeviceT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AS;wBACX,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;wBACjB,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,CACF,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,sBAAsB,CAAC"}
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,MAAA,MAAM,CAAC,QAAQ,CAAC,MAAM,0CAAE,KAAK,CAAC;IAClD,MAAM,eAAe,GAAG,IAAA,iCAAuB,EAAC,IAAA,+BAAqB,EAAC,M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AAE,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;AAK/B,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;AAuBtE,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;AAgCD,QAAA,MAAM,oBAAoB,GAAI,sOAe3B,wBAAwB,sBA8H1B,CA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AE,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 getDeviceColumns = (t) => [
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(() => getDeviceColumns(t), [t]);
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":";;;AAAA,qDAA+B;AAC/B,uDAAqE;AACrE,yDAAgD;AAGhD,4CAAwG;AAKxG,kEAA+D;AAC/D,kEA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AI,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
+ {"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;AAoB/E,MAAM,qBAAqB,GAAG,CAAC,CAAY,EAAwB,EAAE,CAAC;IAC3E;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC;KACjB;IACD;QACE,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;KAChB;IACD;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC;KACjB;IACD;QACE,EAAE,EAAE,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AAE,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
- }) => [Device[], boolean, unknown, boolean, VoidFunction];
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;AAG1C,KAAK,mBAAmB,GAAG;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAgEF,eAAO,MAAM,kBAAkB,GAAI,MAAM,mBAAmB,KAAG,CAAC,MAAM,EAAE,OAAO,CAK9E,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,0BAG/B;IACD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;CAC3B,KAAG,CAAC,cAAc,GAAG,SAAS,EAAE,OAAO,CAOvC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,C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SAAS,EAAE,OAAO,CAOvC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,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,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,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
- return [(devicesList === null || devicesList === void 0 ? void 0 : devicesList.items) || [], devicesLoading, devicesError, updating || devicesDebouncing, devicesRefetch];
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;AAY/C,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,GACS,EAAE,EAAE;IACxB,MAAM,iBAAiB,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAG,4BAAkB,CAAC,SAAS,CAAC,CAAC;IACzE,MAAM,iBAAiB,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAG,4BAAkB,CAAC,YAAY,CAAC,CAAC;IAC5E,MAAM,oBAAoB,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAG,4BAAkB,CAAC,aAAa,CAAC,CAAC;IAEhF,MAAM,cAAc,GAAa,EAAE,CAAC;IACpC,UAAU,CAAC,kBAAkB,CAAC,cAAc,EAAE,mCAAmC,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E,cAAc,EAAE,QAAQ,CAAC,GAAG,IAAA,2CAAoB,EAChG;QACE,QAAQ,EAAE,eAAe;KAC1B,EACD,IAAI,CAAC,aAAa,CACnB,CAAC;IAEF,OAAO,CAAC,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,KAAK,KAAI,EAAE,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,IAAI,iBAAiB,EAAE,cAAc,CAAC,CAAC;AACjH,CAAC,CAAC;AAnBW,QAAA,UAAU,cAmBrB"}
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,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAG,4BAAkB,CAAC,SAAS,CAAC,CAAC;IACzE,MAAM,iBAAiB,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAG,4BAAkB,CAAC,YAAY,CAAC,CAAC;IAC5E,MAAM,oBAAoB,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAG,4BAAkB,CAAC,aAAa,CAAC,CAAC;IAEhF,MAAM,cAAc,GAAa,EAAE,CAAC;IACpC,UAAU,CAAC,kBAAkB,CAAC,cAAc,EAAE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,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":"","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,8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W,IAAC,cAAc,EAAE,KAAK,EAAE,IAAI,EAAC,QAAQ;YAC/C,oBAAC,uBAAa,QAAE,IAAI,CAAiB,CACzB,CACb,CACJ,CAAC;AACJ,CAAC,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"}
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,QAAQ,EAAsB,CAAC;IAC3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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"}
@@ -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` }, ({ push, remove }) => (React.createElement(React.Fragment, null,
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') },
@@ -1 +1 @@
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,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AAC,oBAAO,IAAC,SAAS,EAAC,OAAO,IACvB,CAAC,CACA,uJAAuJ,CACxJ,CACO;YACV,oBAAC,qBAAW,IAAC,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,GAAG,YAAY,aAAa,EAAE,UAAU,EAAE,UAAU,GAAI,CAClF,CACrB,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,mBAAmB,CAAC"}
@@ -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` }, ({ push, remove }) => (React.createElement(React.Fragment, null,
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,
@@ -1 +1 @@
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,mBAAS,IAAC,IAAI,EAAE,GAAG,aAAa,OAAO,EAAE,UAAU,EAAE,UAAU,GAAI,CAC1D;YAEZ,oBAAC,sBAAS,IAAC,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC;gBAC5B,oBAAC,qBAAW,IACV,SAAS,EAAE,CAAC,CAAC,SAAS,CAAC,EACvB,IAAI,EAAE,GAAG,aAAa,UAAU,EAChC,YAAY,EAAE,0BAA0B,EACxC,UAAU,EAAE,UAAU,GACtB,CACQ;YAEZ,oBAAC,sBAAS;gBACR,oBAAC,uBAAa,IACZ,IAAI,EAAE,GAAG,aAAa,SAAS,EAC/B,KAAK,EAAE,CAAC,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ACT,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,IAAI,CAAC;4BACH,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"}
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,o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,IAAI,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"}
@@ -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;AAmC/B,OAAO,wBAAwB,CAAC;AAoIhC,QAAA,MAAM,oBAAoB,GAAI,gBAAgB;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,6BAgErE,CAAC;AAEF,eAAe,oBAAoB,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"}