dashboard-shell-shell 1.0.121 → 1.0.1000000081

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 (372) hide show
  1. package/.DS_Store +0 -0
  2. package/assets/brand/harvester/favicon.png +0 -0
  3. package/assets/brand/suse/favicon.png +0 -0
  4. package/assets/icons/iconfont.css +19 -3
  5. package/assets/icons/iconfont.js +1 -1
  6. package/assets/icons/iconfont.json +28 -0
  7. package/assets/icons/iconfont.ttf +0 -0
  8. package/assets/icons/iconfont.woff +0 -0
  9. package/assets/icons/iconfont.woff2 +0 -0
  10. package/assets/images/pl/half-logo.svg +2 -23
  11. package/assets/styles/base/_functions.scss +0 -0
  12. package/assets/styles/base/_mixins.scss +0 -0
  13. package/assets/styles/base/_variables.scss +1 -1
  14. package/assets/styles/global/_labeled-input.scss +0 -1
  15. package/assets/styles/global/_layout.scss +1 -1
  16. package/assets/styles/global/_select.scss +4 -2
  17. package/assets/styles/global/_table.scss +5 -0
  18. package/assets/styles/vendor/vue-select.scss +2 -1
  19. package/assets/translations/en-us.yaml +1 -1
  20. package/assets/translations/zh-hans.yaml +25 -15
  21. package/chart/monitoring/index.vue +3 -1
  22. package/chart/monitoring/prometheus/index.vue +13 -10
  23. package/cloud-credential/aws.vue +2 -0
  24. package/components/ActionDropdown.vue +1 -1
  25. package/components/ActionDropdownShell.vue +71 -0
  26. package/components/ActionMenu.vue +2 -2
  27. package/components/ActionMenuShell.vue +3 -0
  28. package/components/AppModal.vue +84 -8
  29. package/components/AssignTo.vue +25 -11
  30. package/components/AsyncButton.vue +24 -7
  31. package/components/BannerGraphic.vue +1 -0
  32. package/components/ButtonDropdown.vue +26 -4
  33. package/components/ButtonGroup.vue +4 -0
  34. package/components/ButtonMultiAction.vue +1 -0
  35. package/components/CodeMirror.vue +19 -6
  36. package/components/CommunityLinks.vue +3 -3
  37. package/components/ConsumptionGauge.vue +24 -5
  38. package/components/CopyToClipboardText.vue +2 -1
  39. package/components/CruResource.vue +13 -7
  40. package/components/CruResourceFooter.vue +2 -2
  41. package/components/DashboardOptions.vue +29 -17
  42. package/components/DetailText.vue +5 -0
  43. package/components/DisableAuthProviderModal.vue +1 -0
  44. package/components/DotState.vue +84 -0
  45. package/components/ExplorerMembers.vue +1 -1
  46. package/components/ExplorerProjectsNamespaces.vue +89 -16
  47. package/components/FixedBanner.vue +19 -12
  48. package/components/GlobalRoleBindings.vue +5 -1
  49. package/components/GrafanaDashboard.vue +4 -4
  50. package/components/GrowlManager.vue +4 -1
  51. package/components/HardwareResourceGauge.vue +39 -3
  52. package/components/InfoBox.vue +3 -3
  53. package/components/InputOrDisplay.vue +28 -2
  54. package/components/LabelValue.vue +20 -1
  55. package/components/LandingPagePreference.vue +5 -3
  56. package/components/LocaleSelector.vue +39 -93
  57. package/components/ModalManager.vue +55 -0
  58. package/components/ModalWithCard.vue +13 -3
  59. package/components/MoveModal.vue +1 -0
  60. package/components/PodSecurityAdmission.vue +1 -1
  61. package/components/PromptChangePassword.vue +1 -1
  62. package/components/PromptModal.vue +16 -3
  63. package/components/PromptRemove.vue +29 -9
  64. package/components/PromptRestore.vue +1 -0
  65. package/components/ResourceCancelModal.vue +1 -0
  66. package/components/ResourceDetail/Masthead.vue +52 -17
  67. package/components/ResourceDetail/__tests__/Masthead.test.ts +5 -1
  68. package/components/ResourceDetail/index.vue +54 -16
  69. package/components/ResourceList/Masthead.vue +9 -4
  70. package/components/ResourceList/index.vue +4 -3
  71. package/components/ResourceTable.vue +1 -0
  72. package/components/SideNav.vue +20 -15
  73. package/components/SlideInPanelManager.vue +126 -0
  74. package/components/SortableTable/THead.vue +10 -4
  75. package/components/SortableTable/actions.js +1 -1
  76. package/components/SortableTable/index.vue +540 -554
  77. package/components/SortableTable/selection.js +2 -13
  78. package/components/StatusBadge.vue +77 -0
  79. package/components/Tabbed/Tab.vue +3 -3
  80. package/components/Tabbed/index.vue +47 -29
  81. package/components/Wizard.vue +2 -2
  82. package/components/YamlEditor.vue +1 -1
  83. package/components/__tests__/AsyncButton.test.ts +2 -2
  84. package/components/__tests__/FixedBanner.test.ts +3 -3
  85. package/components/__tests__/ModalManager.spec.ts +176 -0
  86. package/components/__tests__/SlideInPanelManager.spec.ts +166 -0
  87. package/components/auth/Principal.vue +10 -3
  88. package/components/auth/RoleDetailEdit.vue +1 -1
  89. package/components/auth/__tests__/RoleDetailEdit.test.ts +3 -2
  90. package/components/form/ArrayList.vue +123 -85
  91. package/components/form/ArrayListGrouped.vue +10 -2
  92. package/components/form/ArrayListSelect.vue +1 -1
  93. package/components/form/Command.vue +6 -15
  94. package/components/form/EnvVars.vue +16 -8
  95. package/components/form/Footer.vue +10 -7
  96. package/components/form/HealthCheck.vue +3 -3
  97. package/components/form/HookOption.vue +11 -16
  98. package/components/form/InputWithSelect.vue +6 -5
  99. package/components/form/KeyValue.vue +39 -10
  100. package/components/form/LabeledSelect.vue +73 -77
  101. package/components/form/Labels.vue +6 -3
  102. package/components/form/LifecycleHooks.vue +3 -3
  103. package/components/form/MatchExpressions.vue +42 -17
  104. package/components/form/NameNsDescription.vue +163 -116
  105. package/components/form/Networking.vue +20 -12
  106. package/components/form/NodeAffinity.vue +31 -23
  107. package/components/form/NodeScheduling.vue +13 -3
  108. package/components/form/Password.vue +11 -5
  109. package/components/form/PodAffinity.vue +47 -48
  110. package/components/form/Probe.vue +68 -66
  111. package/components/form/ResourceQuota/Namespace.vue +4 -4
  112. package/components/form/ResourceQuota/NamespaceRow.vue +5 -7
  113. package/components/form/ResourceQuota/Project.vue +9 -5
  114. package/components/form/ResourceQuota/ProjectRow.vue +4 -6
  115. package/components/form/ResourceSelector.vue +7 -9
  116. package/components/form/SSHKnownHosts/KnownHostsEditDialog.vue +6 -3
  117. package/components/form/SSHKnownHosts/__tests__/KnownHostsEditDialog.test.ts +12 -1
  118. package/components/form/SSHKnownHosts/index.vue +16 -2
  119. package/components/form/Security.vue +54 -56
  120. package/components/form/Select.vue +44 -7
  121. package/components/form/ShellInput.vue +5 -1
  122. package/components/form/SimpleSecretSelector.vue +29 -9
  123. package/components/form/Tolerations.vue +5 -1
  124. package/components/form/UnitInput.vue +10 -5
  125. package/components/form/ValueFromResource.vue +134 -121
  126. package/components/form/WorkloadPorts.vue +18 -18
  127. package/components/form/__tests__/ArrayList.test.ts +5 -2
  128. package/components/form/__tests__/MatchExpressions.test.ts +12 -12
  129. package/components/form/__tests__/NameNsDescription.test.ts +115 -14
  130. package/components/form/__tests__/Probe.test.ts +12 -8
  131. package/components/form/__tests__/SSHKnownHosts.test.ts +11 -0
  132. package/components/form/__tests__/Select.test.ts +37 -0
  133. package/components/form/__tests__/UnitInput.test.ts +4 -5
  134. package/components/formatter/BadgeStateFormatter.vue +8 -5
  135. package/components/formatter/InternalExternalIP.vue +2 -0
  136. package/components/formatter/LiveDate.vue +3 -3
  137. package/components/formatter/SecretData.vue +20 -7
  138. package/components/nav/Favorite.vue +5 -1
  139. package/components/nav/Group.vue +18 -4
  140. package/components/nav/Header.vue +39 -13
  141. package/components/nav/Jump.vue +7 -0
  142. package/components/nav/NamespaceFilter.vue +21 -11
  143. package/components/nav/Pinned.vue +1 -1
  144. package/components/nav/TopLevelMenu.vue +5 -17
  145. package/components/nav/Type.vue +30 -33
  146. package/components/nav/__tests__/TopLevelMenu.test.ts +0 -40
  147. package/components/rancherResourceDetail/Masthead.vue +769 -0
  148. package/components/rancherResourceDetail/__tests__/Masthead.test.ts +65 -0
  149. package/components/rancherResourceDetail/index.vue +591 -0
  150. package/components/rancherResourceList/Masthead-btn.vue +225 -0
  151. package/components/rancherResourceList/Masthead.vue +375 -0
  152. package/components/rancherResourceList/ResourceLoadingIndicator.vue +140 -0
  153. package/components/rancherResourceList/index.vue +307 -0
  154. package/components/rancherResourceList/resource-list.config.js +7 -0
  155. package/components/rancherResourceTable.vue +783 -0
  156. package/components/rancherSortableTable/THead.vue +561 -0
  157. package/components/rancherSortableTable/actions.js +153 -0
  158. package/components/rancherSortableTable/advanced-filtering.js +272 -0
  159. package/components/rancherSortableTable/debug.js +117 -0
  160. package/components/rancherSortableTable/filtering.js +290 -0
  161. package/components/rancherSortableTable/grouping.js +48 -0
  162. package/components/rancherSortableTable/index.vue +2712 -0
  163. package/components/rancherSortableTable/paging.js +155 -0
  164. package/components/rancherSortableTable/selection.js +629 -0
  165. package/components/rancherSortableTable/sortable-config.ts +4 -0
  166. package/components/rancherSortableTable/sorting.js +129 -0
  167. package/components/templates/blank.vue +4 -1
  168. package/components/templates/default.vue +8 -0
  169. package/components/templates/home.vue +10 -1
  170. package/components/templates/plain.vue +10 -1
  171. package/composables/focusTrap.ts +11 -3
  172. package/composables/useRuntimeFlag.ts +29 -0
  173. package/config/private-label.js +15 -10
  174. package/config/router/routes.js +21 -13
  175. package/config/store.js +4 -0
  176. package/config/table-headers.js +3 -2
  177. package/config/uiplugins.js +5 -1
  178. package/core/plugin-routes.ts +5 -115
  179. package/core/plugins.js +1 -1
  180. package/core/types.ts +23 -2
  181. package/detail/__tests__/autoscaling.horizontalpodautoscaler.test.ts +84 -23
  182. package/detail/autoscaling.horizontalpodautoscaler/index.vue +13 -3
  183. package/detail/provisioning.cattle.io.cluster.vue +72 -6
  184. package/dialog/AddCustomBadgeDialog.vue +1 -0
  185. package/dialog/DeactivateDriverDialog.vue +5 -4
  186. package/dialog/ForceMachineRemoveDialog.vue +6 -3
  187. package/dialog/GitRepoForceUpdateDialog.vue +1 -1
  188. package/dialog/ScalePoolDownDialog.vue +2 -2
  189. package/edit/__tests__/monitoring.coreos.com.prometheusrule.test.ts +16 -3
  190. package/edit/auth/__tests__/oidc.test.ts +162 -88
  191. package/edit/auth/azuread.vue +2 -1
  192. package/edit/auth/github.vue +1 -1
  193. package/edit/auth/googleoauth.vue +5 -1
  194. package/edit/auth/ldap/__tests__/config.test.ts +0 -14
  195. package/edit/auth/ldap/config.vue +0 -24
  196. package/edit/auth/ldap/index.vue +1 -1
  197. package/edit/auth/oidc.vue +39 -6
  198. package/edit/auth/saml.vue +1 -1
  199. package/edit/autoscaling.horizontalpodautoscaler/metric-identifier.vue +5 -2
  200. package/edit/cloudcredential.vue +24 -9
  201. package/edit/fleet.cattle.io.clustergroup.vue +5 -3
  202. package/edit/fleet.cattle.io.gitrepo.vue +2 -0
  203. package/edit/logging-flow/Match.vue +1 -1
  204. package/edit/logging.banzaicloud.io.output/__tests__/logging.banzaicloud.io.output.test.ts +40 -9
  205. package/edit/management.cattle.io.user.vue +28 -3
  206. package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +19 -19
  207. package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +31 -31
  208. package/edit/monitoring.coreos.com.alertmanagerconfig/routeConfig.vue +36 -12
  209. package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +6 -6
  210. package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +10 -10
  211. package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +4 -4
  212. package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +4 -4
  213. package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +1 -1
  214. package/edit/monitoring.coreos.com.receiver/auth.vue +29 -29
  215. package/edit/monitoring.coreos.com.receiver/types/email.vue +6 -6
  216. package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +10 -10
  217. package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +5 -5
  218. package/edit/monitoring.coreos.com.receiver/types/slack.vue +4 -4
  219. package/edit/namespace.vue +1 -2
  220. package/edit/networking.k8s.io.ingress/IngressClass.vue +7 -3
  221. package/edit/networking.k8s.io.ingress/RulePath.vue +1 -1
  222. package/edit/networking.k8s.io.ingress/__tests__/IngressClass.test.ts +58 -0
  223. package/edit/persistentvolume/__tests__/persistentvolume.test.ts +14 -2
  224. package/edit/provisioning.cattle.io.cluster/CustomCommand.vue +4 -1
  225. package/edit/provisioning.cattle.io.cluster/SelectCredential.vue +26 -9
  226. package/edit/provisioning.cattle.io.cluster/__tests__/Advanced.test.ts +8 -10
  227. package/edit/provisioning.cattle.io.cluster/rke2.vue +31 -40
  228. package/edit/provisioning.cattle.io.cluster/tabs/Advanced.vue +5 -2
  229. package/edit/provisioning.cattle.io.cluster/tabs/AgentConfiguration.vue +6 -1
  230. package/edit/provisioning.cattle.io.cluster/tabs/MachinePool.vue +33 -2
  231. package/edit/provisioning.cattle.io.cluster/tabs/etcd/index.vue +3 -3
  232. package/edit/service.vue +0 -3
  233. package/edit/token.vue +32 -11
  234. package/edit/workload/Job.vue +6 -6
  235. package/edit/workload/__tests__/Job.test.ts +0 -1
  236. package/edit/workload/index.vue +1 -0
  237. package/edit/workload/mixins/workload.js +3 -3
  238. package/initialize/install-plugins.js +2 -1
  239. package/list/harvesterhci.io.management.cluster.vue +4 -1
  240. package/list/management.cattle.io.feature.vue +1 -0
  241. package/list/namespace.vue +3 -1
  242. package/list/provisioning.cattle.io.cluster.vue +20 -12
  243. package/list/workload.vue +7 -6
  244. package/machine-config/__tests__/vmwarevsphere.test.ts +48 -3
  245. package/machine-config/azure.vue +16 -4
  246. package/machine-config/vmwarevsphere.vue +16 -0
  247. package/mixins/resource-fetch.js +2 -1
  248. package/models/__tests__/logging.banzaicloud.io.flow.test.ts +88 -0
  249. package/models/__tests__/namespace.test.ts +25 -1
  250. package/models/cloudcredential.js +5 -0
  251. package/models/kontainerdriver.js +6 -3
  252. package/models/logging.banzaicloud.io.flow.js +2 -1
  253. package/models/management.cattle.io.node.js +3 -3
  254. package/models/management.cattle.io.setting.js +2 -1
  255. package/models/namespace.js +4 -5
  256. package/models/nodedriver.js +6 -3
  257. package/models/storage.k8s.io.storageclass.js +2 -2
  258. package/models/workload.js +4 -1
  259. package/package.json +1 -1
  260. package/pages/about.vue +16 -8
  261. package/pages/account/index.vue +80 -24
  262. package/pages/account/pri.vue +229 -0
  263. package/pages/auth/login.vue +195 -44
  264. package/pages/auth/logout.vue +4 -1
  265. package/pages/auth/setup.vue +144 -19
  266. package/pages/auth/verify.vue +13 -8
  267. package/pages/auth copy/login.vue +595 -0
  268. package/pages/auth copy/logout.vue +47 -0
  269. package/pages/auth copy/setup.vue +523 -0
  270. package/pages/auth copy/verify.vue +203 -0
  271. package/pages/c/_cluster/_product/namespaces.vue +5 -5
  272. package/pages/c/_cluster/apps/charts/chart.vue +1 -1
  273. package/pages/c/_cluster/apps/charts/install.vue +26 -26
  274. package/pages/c/_cluster/auth/config/index.vue +10 -12
  275. package/pages/c/_cluster/explorer/EventsTable.vue +38 -33
  276. package/pages/c/_cluster/explorer/index.vue +17 -15
  277. package/pages/c/_cluster/istio/index.vue +2 -2
  278. package/pages/c/_cluster/longhorn/index.vue +1 -1
  279. package/pages/c/_cluster/monitoring/index.vue +1 -1
  280. package/pages/c/_cluster/monitoring/monitor/_namespace/_id.vue +4 -2
  281. package/pages/c/_cluster/monitoring/monitor/create.vue +4 -2
  282. package/pages/c/_cluster/monitoring/monitor/index.vue +2 -2
  283. package/pages/c/_cluster/monitoring/route-receiver/_id.vue +4 -2
  284. package/pages/c/_cluster/monitoring/route-receiver/create.vue +5 -2
  285. package/pages/c/_cluster/neuvector/index.vue +1 -1
  286. package/pages/c/_cluster/settings/brand.vue +3 -3
  287. package/pages/c/_cluster/uiplugins/CatalogList/index.vue +8 -10
  288. package/pages/diagnostic.vue +59 -11
  289. package/pages/fail-whale.vue +14 -8
  290. package/pages/home.vue +24 -18
  291. package/pages/prefs.vue +9 -7
  292. package/pages/support/index.vue +4 -1
  293. package/pkg/tsconfig.json +9 -9
  294. package/pkg/vue.config.js +1 -1
  295. package/plugins/dashboard-store/normalize.js +3 -1
  296. package/plugins/dashboard-store/resource-class.js +31 -29
  297. package/plugins/internal-api/index.ts +37 -0
  298. package/plugins/internal-api/shared/base-api.ts +13 -0
  299. package/plugins/internal-api/shell/shell.api.ts +108 -0
  300. package/promptRemove/management.cattle.io.fleetworkspace.vue +1 -1
  301. package/promptRemove/management.cattle.io.globalrole.vue +1 -1
  302. package/promptRemove/management.cattle.io.project.vue +2 -2
  303. package/promptRemove/management.cattle.io.roletemplate.vue +1 -1
  304. package/promptRemove/pod.vue +1 -1
  305. package/public/index.html +2 -1
  306. package/rancher-components/BadgeState/BadgeState.vue +5 -1
  307. package/rancher-components/Banner/Banner.vue +8 -2
  308. package/rancher-components/Card/Card.vue +3 -6
  309. package/rancher-components/Form/Checkbox/Checkbox.vue +4 -0
  310. package/rancher-components/Form/LabeledInput/LabeledInput.vue +5 -2
  311. package/rancher-components/Form/Radio/RadioButton.vue +3 -3
  312. package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +1 -5
  313. package/rancher-components/LabeledTooltip/LabeledTooltip.vue +9 -4
  314. package/rancher-components/RcDropdown/RcDropdownItem.vue +1 -2
  315. package/rancher-components/RcDropdown/RcDropdownMenu.vue +7 -3
  316. package/rancher-components/RcDropdown/types.ts +1 -0
  317. package/scripts/clean +0 -0
  318. package/scripts/extension/bundle +20 -0
  319. package/scripts/extension/helm/charts/ui-plugin-server/templates/_helpers.tpl +2 -2
  320. package/scripts/extension/helm/charts/ui-plugin-server/templates/cr.yaml +2 -1
  321. package/scripts/extension/helm/charts/ui-plugin-server/values.yaml +2 -0
  322. package/scripts/extension/helm/scripts/package +0 -0
  323. package/scripts/extension/helm/scripts/patch +0 -0
  324. package/scripts/extension/helm/scripts/version +0 -0
  325. package/scripts/extension/helmpatch +44 -31
  326. package/scripts/extension/parse-tag-name +0 -0
  327. package/scripts/extension/publish +12 -12
  328. package/scripts/publish-shell.sh +18 -23
  329. package/scripts/serve-pkgs +0 -0
  330. package/scripts/sync-shell-deps +0 -0
  331. package/scripts/test-plugins-build.sh +4 -6
  332. package/scripts/typegen.sh +28 -46
  333. package/server/har-file.js +25 -3
  334. package/static/favicon.ico +0 -0
  335. package/static/favicon.png +0 -0
  336. package/static/loading-indicator.html +2 -2
  337. package/store/aws.js +9 -2
  338. package/store/features.js +2 -1
  339. package/store/i18n.js +3 -3
  340. package/store/modal.ts +71 -0
  341. package/store/slideInPanel.ts +47 -0
  342. package/store/type-map.js +2 -1
  343. package/types/cloud-shell/index.d.ts +11014 -0
  344. package/types/global-vue.d.ts +5 -0
  345. package/types/internal-api/shell/growl.d.ts +25 -0
  346. package/types/internal-api/shell/modal.d.ts +77 -0
  347. package/types/internal-api/shell/slideIn.d.ts +15 -0
  348. package/types/shell/index.d.ts +118 -128
  349. package/types/vue-shim.d.ts +4 -1
  350. package/utils/__tests__/object.test.ts +38 -4
  351. package/utils/__tests__/string.test.ts +2 -2
  352. package/utils/auth.js +1 -0
  353. package/utils/banners.js +0 -45
  354. package/utils/cluster.js +35 -0
  355. package/utils/color.js +9 -8
  356. package/utils/error.js +61 -3
  357. package/utils/errorTranslate.json +450 -30
  358. package/utils/object.js +46 -6
  359. package/utils/router.js +22 -1
  360. package/utils/select.js +26 -3
  361. package/utils/string.js +9 -8
  362. package/utils/title.ts +1 -1
  363. package/utils/validators/machine-pool.ts +20 -0
  364. package/vue.config.js +7 -2
  365. package/components/formatter/ExtensionCache.vue +0 -74
  366. package/components/formatter/Port.vue +0 -24
  367. package/components/formatter/SecretType.vue +0 -41
  368. package/types/resources/fleet.d.ts +0 -57
  369. package/types/resources/pod-security-admission.ts +0 -36
  370. package/types/resources/settings.d.ts +0 -93
  371. package/types/resources/userPreferences.d.ts +0 -13
  372. package/types/vue-shim.d +0 -20
@@ -1,25 +1,7 @@
1
1
  // Auto-generated type definitions for shell
2
2
  // Do not modify this file as changes will get overwritten
3
- declare module '*.vue' {
4
- import Vue from 'vue';
5
- export default Vue;
6
- }
7
-
8
- // This is required to keep typescript from complaining. It is required for
9
- // our i18n plugin. For more info see:
10
- // https://v2.vuejs.org/v2/guide/typescript.html?redirect=true#Augmenting-Types-for-Use-with-Plugins
11
- declare module 'vue/types/vue' {
12
- // eslint-disable-next-line no-unused-vars
13
- interface Vue {
14
- /**
15
- * Lookup a given string with the given arguments
16
- * @param raw if set, do not do HTML escaping.
17
- */
18
- t: (key: string, args?: Record<string, any>, raw?: boolean) => string,
19
- }
20
- }
21
-
22
- declare module 'js-yaml';
3
+ /// <reference types="@rancher/shell/types/vue-shim" />
4
+ /// <reference types="@rancher/shell/types/global-vue" />
23
5
 
24
6
  // @shell/config/labels-annotations
25
7
 
@@ -305,6 +287,8 @@ export namespace NAME {
305
287
  export { sort_3 as sort };
306
288
  let formatter_3: string;
307
289
  export { formatter_3 as formatter };
290
+ let width_2: number;
291
+ export { width_2 as width };
308
292
  let canBeVariable_1: boolean;
309
293
  export { canBeVariable_1 as canBeVariable };
310
294
  }
@@ -329,8 +313,8 @@ export namespace SIMPLE_NAME {
329
313
  export { value_5 as value };
330
314
  let sort_5: string[];
331
315
  export { sort_5 as sort };
332
- let width_2: number;
333
- export { width_2 as width };
316
+ let width_3: number;
317
+ export { width_3 as width };
334
318
  let canBeVariable_2: boolean;
335
319
  export { canBeVariable_2 as canBeVariable };
336
320
  }
@@ -535,8 +519,8 @@ export namespace CPU {
535
519
  export { value_21 as value };
536
520
  let formatter_11: string;
537
521
  export { formatter_11 as formatter };
538
- let width_3: number;
539
- export { width_3 as width };
522
+ let width_4: number;
523
+ export { width_4 as width };
540
524
  }
541
525
  export namespace RAM {
542
526
  let name_23: string;
@@ -551,8 +535,8 @@ export namespace RAM {
551
535
  export { value_22 as value };
552
536
  let formatter_12: string;
553
537
  export { formatter_12 as formatter };
554
- let width_4: number;
555
- export { width_4 as width };
538
+ let width_5: number;
539
+ export { width_5 as width };
556
540
  }
557
541
  export namespace PRINCIPAL {
558
542
  let name_24: string;
@@ -579,8 +563,8 @@ export namespace PODS {
579
563
  export { value_24 as value };
580
564
  let formatter_14: string;
581
565
  export { formatter_14 as formatter };
582
- let width_5: number;
583
- export { width_5 as width };
566
+ let width_6: number;
567
+ export { width_6 as width };
584
568
  }
585
569
  export namespace AGE {
586
570
  let name_26: string;
@@ -597,8 +581,8 @@ export namespace AGE {
597
581
  export { search_4 as search };
598
582
  let formatter_15: string;
599
583
  export { formatter_15 as formatter };
600
- let width_6: number;
601
- export { width_6 as width };
584
+ let width_7: number;
585
+ export { width_7 as width };
602
586
  let align_1: string;
603
587
  export { align_1 as align };
604
588
  }
@@ -631,8 +615,8 @@ export namespace DESCRIPTION {
631
615
  export { align_2 as align };
632
616
  let sort_28: string[];
633
617
  export { sort_28 as sort };
634
- let width_7: number;
635
- export { width_7 as width };
618
+ let width_8: number;
619
+ export { width_8 as width };
636
620
  }
637
621
  export namespace NS_SNAPSHOT_QUOTA {
638
622
  let name_29: string;
@@ -722,8 +706,8 @@ export namespace SCALE {
722
706
  export { sort_33 as sort };
723
707
  let formatter_22: string;
724
708
  export { formatter_22 as formatter };
725
- let width_8: number;
726
- export { width_8 as width };
709
+ let width_9: number;
710
+ export { width_9 as width };
727
711
  let align_4: string;
728
712
  export { align_4 as align };
729
713
  }
@@ -744,8 +728,8 @@ export namespace SUCCESS {
744
728
  export { labelKey_36 as labelKey };
745
729
  let value_35: string;
746
730
  export { value_35 as value };
747
- let width_9: number;
748
- export { width_9 as width };
731
+ let width_10: number;
732
+ export { width_10 as width };
749
733
  let align_5: string;
750
734
  export { align_5 as align };
751
735
  }
@@ -756,8 +740,8 @@ export namespace REQ_RATE {
756
740
  export { labelKey_37 as labelKey };
757
741
  let value_36: string;
758
742
  export { value_36 as value };
759
- let width_10: number;
760
- export { width_10 as width };
743
+ let width_11: number;
744
+ export { width_11 as width };
761
745
  let align_6: string;
762
746
  export { align_6 as align };
763
747
  }
@@ -768,8 +752,8 @@ export namespace P95 {
768
752
  export { labelKey_38 as labelKey };
769
753
  let value_37: string;
770
754
  export { value_37 as value };
771
- let width_11: number;
772
- export { width_11 as width };
755
+ let width_12: number;
756
+ export { width_12 as width };
773
757
  let align_7: string;
774
758
  export { align_7 as align };
775
759
  }
@@ -800,8 +784,8 @@ export namespace TARGET_KIND {
800
784
  export { labelKey_41 as labelKey };
801
785
  let value_40: string;
802
786
  export { value_40 as value };
803
- let width_12: number;
804
- export { width_12 as width };
787
+ let width_13: number;
788
+ export { width_13 as width };
805
789
  }
806
790
  export namespace TARGET {
807
791
  let name_42: string;
@@ -930,8 +914,8 @@ export namespace SIMPLE_TYPE {
930
914
  export { value_50 as value };
931
915
  let sort_44: string[];
932
916
  export { sort_44 as sort };
933
- let width_13: number;
934
- export { width_13 as width };
917
+ let width_14: number;
918
+ export { width_14 as width };
935
919
  }
936
920
  export namespace IMAGE_SIZE {
937
921
  let name_52: string;
@@ -956,8 +940,8 @@ export namespace TYPE {
956
940
  export { getValue_11 as getValue };
957
941
  let sort_46: string[];
958
942
  export { sort_46 as sort };
959
- let width_14: number;
960
- export { width_14 as width };
943
+ let width_15: number;
944
+ export { width_15 as width };
961
945
  }
962
946
  export namespace SUB_TYPE {
963
947
  let name_54: string;
@@ -968,8 +952,8 @@ export namespace SUB_TYPE {
968
952
  export { value_53 as value };
969
953
  let sort_47: string[];
970
954
  export { sort_47 as sort };
971
- let width_15: number;
972
- export { width_15 as width };
955
+ let width_16: number;
956
+ export { width_16 as width };
973
957
  }
974
958
  export namespace EVENT_TYPE {
975
959
  let name_55: string;
@@ -990,8 +974,8 @@ export namespace STATUS {
990
974
  export { value_55 as value };
991
975
  let sort_49: string[];
992
976
  export { sort_49 as sort };
993
- let width_16: number;
994
- export { width_16 as width };
977
+ let width_17: number;
978
+ export { width_17 as width };
995
979
  }
996
980
  export namespace LAST_SEEN_TIME {
997
981
  let name_57: string;
@@ -1018,8 +1002,8 @@ export namespace LAST_HEARTBEAT_TIME {
1018
1002
  export { sort_51 as sort };
1019
1003
  let formatter_29: string;
1020
1004
  export { formatter_29 as formatter };
1021
- let width_17: number;
1022
- export { width_17 as width };
1005
+ let width_18: number;
1006
+ export { width_18 as width };
1023
1007
  }
1024
1008
  export namespace REASON {
1025
1009
  let name_59: string;
@@ -1188,8 +1172,8 @@ export namespace INGRESS_DEFAULT_BACKEND {
1188
1172
  export { sort_66 as sort };
1189
1173
  let formatter_35: string;
1190
1174
  export { formatter_35 as formatter };
1191
- let width_18: number;
1192
- export { width_18 as width };
1175
+ let width_19: number;
1176
+ export { width_19 as width };
1193
1177
  let align_10: string;
1194
1178
  export { align_10 as align };
1195
1179
  }
@@ -1272,8 +1256,8 @@ export namespace RESOURCES {
1272
1256
  export { value_79 as value };
1273
1257
  let sort_73: string;
1274
1258
  export { sort_73 as sort };
1275
- let width_19: number;
1276
- export { width_19 as width };
1259
+ let width_20: number;
1260
+ export { width_20 as width };
1277
1261
  }
1278
1262
  export namespace URL {
1279
1263
  let name_81: string;
@@ -1342,8 +1326,8 @@ export namespace WORKLOAD_HEALTH_SCALE {
1342
1326
  export { formatter_42 as formatter };
1343
1327
  export function getValue_13(): any;
1344
1328
  export { getValue_13 as getValue };
1345
- let width_20: number;
1346
- export { width_20 as width };
1329
+ let width_21: number;
1330
+ export { width_21 as width };
1347
1331
  export let skipSelect: boolean;
1348
1332
  let delayLoading_1: boolean;
1349
1333
  export { delayLoading_1 as delayLoading };
@@ -1367,8 +1351,8 @@ export namespace FLEET_SUMMARY {
1367
1351
  export { formatter_43 as formatter };
1368
1352
  let align_11: string;
1369
1353
  export { align_11 as align };
1370
- let width_21: number;
1371
- export { width_21 as width };
1354
+ let width_22: number;
1355
+ export { width_22 as width };
1372
1356
  }
1373
1357
  export namespace FLEET_REPO_CLUSTER_SUMMARY {
1374
1358
  let name_87: string;
@@ -1385,8 +1369,8 @@ export namespace FLEET_REPO_CLUSTER_SUMMARY {
1385
1369
  export { formatter_44 as formatter };
1386
1370
  let align_12: string;
1387
1371
  export { align_12 as align };
1388
- let width_22: number;
1389
- export { width_22 as width };
1372
+ let width_23: number;
1373
+ export { width_23 as width };
1390
1374
  }
1391
1375
  export namespace FLEET_REPO_PER_CLUSTER_STATE {
1392
1376
  let name_88: string;
@@ -1397,8 +1381,8 @@ export namespace FLEET_REPO_PER_CLUSTER_STATE {
1397
1381
  export { tooltip_1 as tooltip };
1398
1382
  let sort_79: string[];
1399
1383
  export { sort_79 as sort };
1400
- let width_23: number;
1401
- export { width_23 as width };
1384
+ let width_24: number;
1385
+ export { width_24 as width };
1402
1386
  let _default_2: string;
1403
1387
  export { _default_2 as default };
1404
1388
  let formatter_45: string;
@@ -1423,8 +1407,8 @@ export namespace APP_SUMMARY {
1423
1407
  export { formatter_46 as formatter };
1424
1408
  let align_13: string;
1425
1409
  export { align_13 as align };
1426
- let width_24: number;
1427
- export { width_24 as width };
1410
+ let width_25: number;
1411
+ export { width_25 as width };
1428
1412
  }
1429
1413
  export namespace CONSTRAINT_VIOLATION_CONSTRAINT_LINK {
1430
1414
  let name_90: string;
@@ -1581,8 +1565,8 @@ export namespace GROUP_NAME {
1581
1565
  export { search_12 as search };
1582
1566
  let formatter_53: string;
1583
1567
  export { formatter_53 as formatter };
1584
- let width_25: number;
1585
- export { width_25 as width };
1568
+ let width_26: number;
1569
+ export { width_26 as width };
1586
1570
  }
1587
1571
  export namespace GROUP_ROLE_NAME {
1588
1572
  let name_100: string;
@@ -1649,8 +1633,8 @@ export namespace ACCESS_KEY {
1649
1633
  export { align_14 as align };
1650
1634
  let sort_95: string[];
1651
1635
  export { sort_95 as sort };
1652
- let width_26: number;
1653
- export { width_26 as width };
1636
+ let width_27: number;
1637
+ export { width_27 as width };
1654
1638
  }
1655
1639
  export namespace SCOPE {
1656
1640
  let name_106: string;
@@ -1665,8 +1649,8 @@ export namespace SCOPE {
1665
1649
  export { align_15 as align };
1666
1650
  let sort_96: string[];
1667
1651
  export { sort_96 as sort };
1668
- let width_27: number;
1669
- export { width_27 as width };
1652
+ let width_28: number;
1653
+ export { width_28 as width };
1670
1654
  }
1671
1655
  export namespace SCOPE_NORMAN {
1672
1656
  let value_105: string;
@@ -1685,8 +1669,8 @@ export namespace EXPIRES {
1685
1669
  export { align_16 as align };
1686
1670
  let sort_98: string[];
1687
1671
  export { sort_98 as sort };
1688
- let width_28: number;
1689
- export { width_28 as width };
1672
+ let width_29: number;
1673
+ export { width_29 as width };
1690
1674
  let formatter_56: string;
1691
1675
  export { formatter_56 as formatter };
1692
1676
  }
@@ -1701,8 +1685,8 @@ export namespace LAST_USED {
1701
1685
  export { align_17 as align };
1702
1686
  let sort_99: string[];
1703
1687
  export { sort_99 as sort };
1704
- let width_29: number;
1705
- export { width_29 as width };
1688
+ let width_30: number;
1689
+ export { width_30 as width };
1706
1690
  let formatter_57: string;
1707
1691
  export { formatter_57 as formatter };
1708
1692
  export namespace formatterOpts_14 {
@@ -1721,8 +1705,8 @@ export namespace RESTART {
1721
1705
  export { sort_100 as sort };
1722
1706
  let formatter_58: string;
1723
1707
  export { formatter_58 as formatter };
1724
- let width_30: number;
1725
- export { width_30 as width };
1708
+ let width_31: number;
1709
+ export { width_31 as width };
1726
1710
  let align_18: string;
1727
1711
  export { align_18 as align };
1728
1712
  }
@@ -1761,8 +1745,8 @@ export namespace STATE_NORMAN {
1761
1745
  export { sort_102 as sort };
1762
1746
  let value_111: string;
1763
1747
  export { value_111 as value };
1764
- let width_31: number;
1765
- export { width_31 as width };
1748
+ let width_32: number;
1749
+ export { width_32 as width };
1766
1750
  let _default_3: string;
1767
1751
  export { _default_3 as default };
1768
1752
  let formatter_60: string;
@@ -1834,8 +1818,8 @@ export namespace FLEET_BUNDLE_TYPE {
1834
1818
  export { value_116 as value };
1835
1819
  let sort_107: string[];
1836
1820
  export { sort_107 as sort };
1837
- let width_32: number;
1838
- export { width_32 as width };
1821
+ let width_33: number;
1822
+ export { width_33 as width };
1839
1823
  }
1840
1824
  export namespace FLEET_REPO_CLUSTERS_READY {
1841
1825
  let name_118: string;
@@ -2475,7 +2459,7 @@ export default class Namespace {
2475
2459
  get isObscure(): any;
2476
2460
  get projectId(): any;
2477
2461
  get project(): any;
2478
- get groupByLabel(): any;
2462
+ get groupById(): any;
2479
2463
  get projectNameSort(): any;
2480
2464
  get istioInstalled(): boolean;
2481
2465
  get injectionEnabled(): boolean;
@@ -2880,37 +2864,24 @@ export default class Resource {
2880
2864
  divider: boolean;
2881
2865
  action?: undefined;
2882
2866
  label?: undefined;
2883
- icon?: undefined;
2884
2867
  enabled?: undefined;
2868
+ altAction?: undefined;
2885
2869
  bulkable?: undefined;
2886
2870
  bulkAction?: undefined;
2887
2871
  weight?: undefined;
2888
- altAction?: undefined;
2889
2872
  } | {
2890
2873
  action: string;
2891
2874
  label: any;
2892
- icon: string;
2893
2875
  enabled: any;
2894
2876
  divider?: undefined;
2877
+ altAction?: undefined;
2895
2878
  bulkable?: undefined;
2896
2879
  bulkAction?: undefined;
2897
2880
  weight?: undefined;
2898
- altAction?: undefined;
2899
- } | {
2900
- action: string;
2901
- label: any;
2902
- icon: string;
2903
- bulkable: boolean;
2904
- bulkAction: string;
2905
- enabled: boolean;
2906
- weight: number;
2907
- divider?: undefined;
2908
- altAction?: undefined;
2909
2881
  } | {
2910
2882
  action: string;
2911
2883
  altAction: string;
2912
2884
  label: any;
2913
- icon: string;
2914
2885
  bulkable: boolean;
2915
2886
  enabled: any;
2916
2887
  bulkAction: string;
@@ -2921,37 +2892,24 @@ export default class Resource {
2921
2892
  divider: boolean;
2922
2893
  action?: undefined;
2923
2894
  label?: undefined;
2924
- icon?: undefined;
2925
2895
  enabled?: undefined;
2896
+ altAction?: undefined;
2926
2897
  bulkable?: undefined;
2927
2898
  bulkAction?: undefined;
2928
2899
  weight?: undefined;
2929
- altAction?: undefined;
2930
2900
  } | {
2931
2901
  action: string;
2932
2902
  label: any;
2933
- icon: string;
2934
2903
  enabled: any;
2935
2904
  divider?: undefined;
2905
+ altAction?: undefined;
2936
2906
  bulkable?: undefined;
2937
2907
  bulkAction?: undefined;
2938
2908
  weight?: undefined;
2939
- altAction?: undefined;
2940
- } | {
2941
- action: string;
2942
- label: any;
2943
- icon: string;
2944
- bulkable: boolean;
2945
- bulkAction: string;
2946
- enabled: boolean;
2947
- weight: number;
2948
- divider?: undefined;
2949
- altAction?: undefined;
2950
2909
  } | {
2951
2910
  action: string;
2952
2911
  altAction: string;
2953
2912
  label: any;
2954
- icon: string;
2955
2913
  bulkable: boolean;
2956
2914
  enabled: any;
2957
2915
  bulkAction: string;
@@ -3446,13 +3404,6 @@ export function getIndividualBanners(store: any): {};
3446
3404
  * Overlay settings from the individual banner settings onto the single banner setting
3447
3405
  */
3448
3406
  export function overlayIndividualBanners(parsedBanner: any, banners: any): void;
3449
- /**
3450
- * Get banner font sizes - used to add margins when header and footer banners are present
3451
- **/
3452
- export function getGlobalBannerFontSizes(store: any): {
3453
- headerFont: string;
3454
- footerFont: string;
3455
- };
3456
3407
  }
3457
3408
 
3458
3409
  // @shell/utils/clipboard
@@ -3505,6 +3456,13 @@ export function abbreviateClusterName(input: string): string;
3505
3456
  export function labelForAddon(store: any, name: any, configuration?: boolean): any;
3506
3457
  export function filterOutDeprecatedPatchVersions(allVersions: any, currentVersion: any): any;
3507
3458
  export function getAllOptionsAfterCurrentVersion(store: any, versions: any, currentVersion: any, defaultVersion: any): any;
3459
+ export function initSchedulingCustomization(value: any, features: any, store: any, mode: any): Promise<{
3460
+ clusterAgentDefaultPC: any;
3461
+ clusterAgentDefaultPDB: any;
3462
+ schedulingCustomizationFeatureEnabled: any;
3463
+ schedulingCustomizationOriginallyEnabled: boolean;
3464
+ errors: any[];
3465
+ }>;
3508
3466
  }
3509
3467
 
3510
3468
  // @shell/utils/color
@@ -3839,7 +3797,8 @@ export const EMBER_FRAME: "ember-iframe";
3839
3797
 
3840
3798
  declare module '@shell/utils/error' {
3841
3799
  export function stringify(err: any): any;
3842
- export function exceptionToErrorsArray(err: any): any;
3800
+ export function exceptionToErrorsArray(err: any): any[];
3801
+ export function translateError(error: any): any;
3843
3802
  export class ClusterNotFoundError extends Error {
3844
3803
  static NAME: string;
3845
3804
  constructor(message: any);
@@ -3987,7 +3946,8 @@ export function dropKeys(obj: any, keys: any): void;
3987
3946
  */
3988
3947
  export function deepToRaw(obj: any, cache?: any): any;
3989
3948
  /**
3990
- * Helper function to alter Lodash merge function default behaviour on merging arrays while updating machine pool configuration.
3949
+ * Helper function to alter Lodash merge function default behaviour on merging
3950
+ * arrays and objects.
3991
3951
  *
3992
3952
  * In rke2.vue, the syncMachineConfigWithLatest function updates machine pool configuration by
3993
3953
  * merging the latest configuration received from the backend with the current configuration updated by the user.
@@ -3999,13 +3959,39 @@ export function deepToRaw(obj: any, cache?: any): any;
3999
3959
  * merge(lastSavedConfigFromBE, currentConfigByUser); // returns { a: ["test"] }; but we expect { a: [] };
4000
3960
  *
4001
3961
  * More info: https://github.com/lodash/lodash/issues/1313
4002
- *
3962
+
4003
3963
  * This helper function addresses the issue by always replacing the old array with the new array during the merge process.
4004
3964
  *
4005
- * This helper is used for another case in rke2.vue to handle merging addon chart default values with the user's current values.
3965
+ * This helper is also used for another case in rke2.vue to handle merging addon chart default values with the user's current values.
4006
3966
  * It fixed https://github.com/rancher/dashboard/issues/12418
3967
+ *
3968
+ * If `mutateOriginal` is true, the merge is done directly into `obj1` (mutating it).
3969
+ * This is useful in cases like:
3970
+ * machinePool.config = mergeWithReplace(clonedLatestConfig, clonedCurrentConfig, { mutateOriginal: true })
3971
+ * where merging into a new empty object may lead to incomplete structure.
3972
+ *
3973
+ * Use `mutateOriginal` when you want to preserve obj1’s original shape, references,
3974
+ * or when assigning the result directly to an existing object.
3975
+ *
3976
+ * @param {Object} [obj1={}] - The first object to merge
3977
+ * @param {Object} [obj2={}] - The second object to merge
3978
+ * @param {Object} [options={}] - Options for customizing merge behavior
3979
+ * @param {boolean} [options.mutateOriginal=false] - true: mutates obj1
3980
+ * directly. false: returns a new object
3981
+ * @param {boolean} [options.replaceArray=true] - true: replaces arrays in obj1
3982
+ * with arrays in obj2 when both properties are arrays
3983
+ * false: default lodash merge behavior - recursively merges
3984
+ * array members
3985
+ * @param {boolean} [options.replaceObjectProps=false] - true: merges objects in
3986
+ * obj1 with objects in obj2, overwriting duplicate props
3987
+ * false: default lodash merge behavior - recursively merges
3988
+ * object props
4007
3989
  */
4008
- export function mergeWithReplaceArrays(obj1?: {}, obj2?: {}): any;
3990
+ export function mergeWithReplace(obj1?: any, obj2?: any, { mutateOriginal, replaceArray, replaceObjectProps, }?: {
3991
+ mutateOriginal?: boolean;
3992
+ replaceArray?: boolean;
3993
+ replaceObjectProps?: boolean;
3994
+ }): any;
4009
3995
  export { isEqualBasic as isEqual };
4010
3996
  export function toDictionary(array: any, callback: any): any;
4011
3997
  /**
@@ -4175,6 +4161,10 @@ export function setPromiseResult(promise: any, obj: any, key: any, label: any):
4175
4161
  // @shell/utils/router
4176
4162
 
4177
4163
  declare module '@shell/utils/router' {
4164
+ export function harvesterhci2cloud(str: any): any;
4165
+ export function cloud2harvesterhci(str: any): any;
4166
+ export function harvester2cloud(str: any): any;
4167
+ export function cloud2harvester(str: any): any;
4178
4168
  export function queryParamsFor(current: any, qp: any, defaults?: {}): any;
4179
4169
  export function getClusterFromRoute(to: any): any;
4180
4170
  export function getProductFromRoute(to: any): any;
@@ -4190,7 +4180,7 @@ export function routeRequiresInstallRedirect(to: any): boolean;
4190
4180
 
4191
4181
  declare module '@shell/utils/select' {
4192
4182
  export function onClickOption(option: any, e: any): void;
4193
- export function calculatePosition(dropdownList: any, component: any, width: any, placement: any): void;
4183
+ export function calculatePosition(dropdownList: any, component: any, width: any, placement: any, type: any, isLabel: any, leftWidth: any): void;
4194
4184
  }
4195
4185
 
4196
4186
  // @shell/utils/selector
@@ -4371,7 +4361,7 @@ export function random32(count: any): number | number[];
4371
4361
  export function randomStr(length?: number, chars?: string): any;
4372
4362
  export function formatPercent(value: any, maxPrecision?: number): string;
4373
4363
  export function pluralize(str: any): any;
4374
- export function resourceNames(names: any, t: any, options?: {}): any;
4364
+ export function resourceNames(names: any, plusMore: any, t: any, endString: any): any;
4375
4365
  export function indent(lines: any, count?: number, token?: string, afterRegex?: any): any;
4376
4366
  export function decamelize(str: any): any;
4377
4367
  export function dasherize(str: any): any;
@@ -4379,7 +4369,7 @@ export function asciiLike(str: any): boolean;
4379
4369
  export function coerceStringTypeToScalarType(val: any, type: any): any;
4380
4370
  export function matchesSomeRegex(stringRaw: any, regexes?: any[]): boolean;
4381
4371
  export function ensureRegex(strOrRegex: any, exact?: boolean): any;
4382
- export function nlToBr(value: any): string;
4372
+ export function nlToBr(value: any): any;
4383
4373
  export function splitObjectPath(path: any): any;
4384
4374
  export function joinObjectPath(ary: any): string;
4385
4375
  export function shortenedImage(image: any): any;
@@ -1,4 +1,6 @@
1
1
  /* eslint-disable */
2
+ import type ShellApi from '@shell/plugins/internal-api/shell/shell.api';
3
+
2
4
  export {};
3
5
 
4
6
  declare module 'vue' {
@@ -15,6 +17,7 @@ declare module 'vue' {
15
17
  getters: Record<string, any>,
16
18
  dispatch: (action: string, payload?: any) => Promise<any>,
17
19
  commit: (mutation: string, payload?: any) => void,
18
- }
20
+ },
21
+ $shell: ShellApi,
19
22
  }
20
23
  }
@@ -1,6 +1,6 @@
1
1
  import { reactive, isReactive } from 'vue';
2
2
  import {
3
- clone, get, getter, isEmpty, toDictionary, remove, diff, definedKeys, deepToRaw, mergeWithReplaceArrays
3
+ clone, get, getter, isEmpty, toDictionary, remove, diff, definedKeys, deepToRaw, mergeWithReplace
4
4
  } from '@shell/utils/object';
5
5
 
6
6
  describe('fx: get', () => {
@@ -379,7 +379,7 @@ describe('fx: deepToRaw', () => {
379
379
  });
380
380
  });
381
381
 
382
- describe('fx: mergeWithReplaceArrays', () => {
382
+ describe('fx: mergeWithReplace', () => {
383
383
  const testCases: Array<[object?, object?, object?]> = [
384
384
  // Some array test cases, an array from the first object should be replaced with the array from the second object
385
385
  [{ a: ['one'] }, { a: [] }, { a: [] }],
@@ -401,8 +401,42 @@ describe('fx: mergeWithReplaceArrays', () => {
401
401
  [undefined, {}, {}],
402
402
  ];
403
403
 
404
- it.each(testCases)('should merge properly', (obj1, obj2, expected) => {
405
- const result = mergeWithReplaceArrays(obj1, obj2);
404
+ it.each(testCases)('should merge arrays properly', (obj1, obj2, expected) => {
405
+ const result = mergeWithReplace(obj1, obj2);
406
+
407
+ expect(result).toStrictEqual(expected);
408
+ });
409
+
410
+ it.each([
411
+ [
412
+ { a: { b: false, c: false } }, { a: { b: true, c: null } }, { a: { b: true, c: null } }
413
+ ],
414
+ [
415
+ {
416
+ a: [{
417
+ b: 'test', c: 'test', value: true
418
+ }]
419
+ }, {
420
+ a: [{
421
+ b: 'test', c: 'test', operator: 'exists'
422
+ }]
423
+ }, {
424
+ a: [{
425
+ b: 'test', c: 'test', operator: 'exists'
426
+ }]
427
+ }
428
+ ],
429
+ [
430
+ {
431
+ a: { enabled: false }, b: { enabled: false }, c: { enabled: false }
432
+ },
433
+ { c: { enabled: true, stripUnderscores: true } },
434
+ {
435
+ a: { enabled: false }, b: { enabled: false }, c: { enabled: true, stripUnderscores: true }
436
+ }
437
+ ]
438
+ ])('should overwrite duplicate object properties when merging objects', (left, right, expected) => {
439
+ const result = mergeWithReplace(left, right, { replaceObjectProps: true });
406
440
 
407
441
  expect(result).toStrictEqual(expected);
408
442
  });
@@ -81,9 +81,9 @@ describe('fx: resourceNames', () => {
81
81
  it.each(args)(`having: %p`, (
82
82
  names,
83
83
  expectation,
84
- options,
84
+ options: any,
85
85
  ) => {
86
- const result = resourceNames(names, t, options);
86
+ const result = resourceNames(names, options.plusMore, t, options.endString);
87
87
 
88
88
  expect(result).toStrictEqual(expectation);
89
89
  });
package/utils/auth.js CHANGED
@@ -242,6 +242,7 @@ export function setProduct(store, to) {
242
242
  */
243
243
  export function validateResource(store, to) {
244
244
  const product = store.getters['currentProduct'];
245
+
245
246
  const resource = getResourceFromRoute(to);
246
247
 
247
248
  // In order to check a resource is valid we need these