@rancher/shell 2.0.1 → 3.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/base/_variables.scss +1 -0
- package/assets/styles/global/_labeled-input.scss +22 -11
- package/assets/styles/global/_layout.scss +4 -4
- package/assets/styles/global/_select.scss +1 -1
- package/assets/styles/global/_tooltip.scss +39 -72
- package/assets/translations/en-us.yaml +26 -5
- package/chart/__tests__/S3.test.ts +21 -14
- package/chart/example.vue +1 -1
- package/chart/gatekeeper.vue +4 -4
- package/chart/istio.vue +11 -11
- package/chart/logging/index.vue +8 -8
- package/chart/monitoring/ClusterSelector.vue +13 -13
- package/chart/monitoring/alerting/index.vue +6 -6
- package/chart/monitoring/grafana/index.vue +14 -14
- package/chart/monitoring/index.vue +122 -108
- package/chart/monitoring/prometheus/index.vue +18 -18
- package/chart/rancher-backup/S3.vue +11 -11
- package/chart/rancher-backup/index.vue +68 -60
- package/cloud-credential/__tests__/azure.test.ts +7 -17
- package/cloud-credential/__tests__/harvester.test.ts +2 -2
- package/cloud-credential/aws.vue +3 -3
- package/cloud-credential/azure.vue +4 -4
- package/cloud-credential/digitalocean.vue +1 -1
- package/cloud-credential/gcp.vue +1 -1
- package/cloud-credential/generic.vue +1 -1
- package/cloud-credential/harvester.vue +1 -1
- package/cloud-credential/linode.vue +1 -1
- package/cloud-credential/pnap.vue +2 -2
- package/cloud-credential/s3.vue +8 -8
- package/cloud-credential/vmwarevsphere.vue +4 -4
- package/components/ActionDropdown.vue +12 -16
- package/components/ActionMenu.vue +2 -2
- package/components/AlertTable.vue +1 -1
- package/components/AppModal.vue +20 -9
- package/components/AssignTo.vue +38 -37
- package/components/AsyncButton.vue +4 -7
- package/components/ButtonDropdown.vue +22 -20
- package/components/ButtonGroup.vue +1 -1
- package/components/Carousel.vue +1 -1
- package/components/Certificates.vue +1 -1
- package/components/ChartReadme.vue +7 -7
- package/components/CodeMirror.vue +2 -2
- package/components/CommunityLinks.vue +2 -2
- package/components/ConsumptionGauge.vue +1 -1
- package/components/ContainerResourceLimit.vue +11 -11
- package/components/CountGauge.vue +1 -1
- package/components/CreateDriver.vue +4 -4
- package/components/CruResource.vue +36 -20
- package/components/DashboardMetrics.vue +3 -3
- package/components/DashboardOptions.vue +3 -3
- package/components/DetailTop.vue +3 -3
- package/components/DisableAuthProviderModal.vue +7 -8
- package/components/EmberPage.vue +1 -1
- package/components/EtcdInfoBanner.vue +1 -1
- package/components/ExplorerMembers.vue +8 -9
- package/components/ExplorerProjectsNamespaces.vue +6 -7
- package/components/FileDiff.vue +1 -1
- package/components/FixedBanner.vue +1 -0
- package/components/GlobalRoleBindings.vue +5 -6
- package/components/GradientBox.vue +1 -2
- package/components/GrafanaDashboard.vue +7 -7
- package/components/GrowlManager.vue +1 -1
- package/components/HarvesterServiceAddOnConfig.vue +2 -2
- package/components/IconOrSvg.vue +1 -2
- package/components/Import.vue +4 -3
- package/components/Inactivity.vue +2 -2
- package/components/IndentedPanel.vue +0 -1
- package/components/InputOrDisplay.vue +21 -32
- package/components/KeyValueView.vue +4 -3
- package/components/LandingPagePreference.vue +3 -2
- package/components/LazyImage.vue +1 -1
- package/components/Loading.vue +1 -1
- package/components/LocaleSelector.vue +4 -4
- package/components/Markdown.vue +1 -1
- package/components/ModalWithCard.vue +1 -4
- package/components/MoveModal.vue +10 -11
- package/components/PercentageBar.vue +7 -7
- package/components/PodSecurityAdmission.vue +13 -13
- package/components/PromptChangePassword.vue +9 -9
- package/components/PromptModal.vue +1 -1
- package/components/PromptRemove.vue +35 -38
- package/components/PromptRestore.vue +68 -69
- package/components/Questions/Array.vue +3 -4
- package/components/Questions/Boolean.vue +1 -1
- package/components/Questions/CloudCredential.vue +1 -1
- package/components/Questions/Enum.vue +1 -1
- package/components/Questions/Float.vue +1 -1
- package/components/Questions/Int.vue +1 -1
- package/components/Questions/Question.js +1 -1
- package/components/Questions/QuestionMap.vue +3 -4
- package/components/Questions/Radio.vue +1 -1
- package/components/Questions/Reference.vue +2 -2
- package/components/Questions/String.vue +1 -1
- package/components/Questions/Yaml.vue +1 -1
- package/components/Questions/__tests__/Boolean.test.ts +24 -12
- package/components/Questions/__tests__/Float.test.ts +24 -12
- package/components/Questions/__tests__/Int.test.ts +24 -12
- package/components/Questions/__tests__/String.test.ts +24 -12
- package/components/Questions/__tests__/Yaml.test.ts +25 -13
- package/components/Questions/__tests__/utils/questions-defaults.ts +2 -2
- package/components/Questions/index.vue +10 -10
- package/components/Random.vue +1 -1
- package/components/ResourceDetail/Masthead.vue +7 -2
- package/components/ResourceDetail/index.vue +6 -3
- package/components/ResourceList/Masthead.vue +4 -0
- package/components/ResourceList/index.vue +10 -4
- package/components/ResourceSummary.vue +1 -1
- package/components/ResourceTable.vue +4 -5
- package/components/ResourceYaml.vue +1 -2
- package/components/RoleBindings.vue +3 -3
- package/components/SideNav.vue +10 -8
- package/components/SimpleBox.vue +0 -1
- package/components/SortableTable/THead.vue +5 -5
- package/components/SortableTable/index.vue +21 -20
- package/components/SortableTable/sortable-config.ts +4 -0
- package/components/StatusTable.vue +1 -1
- package/components/TabTitle.vue +3 -9
- package/components/Tabbed/Tab.vue +1 -1
- package/components/Tabbed/index.vue +2 -4
- package/components/Wizard.vue +8 -3
- package/components/YamlEditor.vue +4 -4
- package/components/__tests__/AppModal.test.ts +33 -25
- package/components/__tests__/ApplicationCard.test.ts +1 -1
- package/components/__tests__/AsyncButton.test.ts +42 -34
- package/components/__tests__/BackLink.test.ts +3 -3
- package/components/__tests__/ButtonGroup.test.ts +5 -5
- package/components/__tests__/Carousel.test.ts +2 -2
- package/components/__tests__/Certificates.test.ts +10 -8
- package/components/__tests__/ClusterBadge.test.ts +2 -2
- package/components/__tests__/CodeMirror.test.ts +29 -23
- package/components/__tests__/Collapse.test.ts +3 -3
- package/components/__tests__/CollapsibleCard.test.ts +6 -6
- package/components/__tests__/ConsumptionGauge.test.ts +5 -5
- package/components/__tests__/CruResource.test.ts +67 -56
- package/components/__tests__/EtcdInfoBanner.test.ts +11 -9
- package/components/__tests__/FixedBanner.test.ts +8 -8
- package/components/__tests__/GrowlManager.test.ts +24 -25
- package/components/__tests__/NamespaceFilter.test.ts +49 -32
- package/components/__tests__/PercentageBar.test.ts +10 -10
- package/components/__tests__/PodSecurityAdmission.test.ts +80 -38
- package/components/__tests__/ProjectRow.test.ts +1 -5
- package/components/__tests__/PromptRestore.test.ts +15 -18
- package/components/__tests__/TabTitle.test.ts +21 -14
- package/components/auth/AllowedPrincipals.vue +6 -7
- package/components/auth/RoleDetailEdit.vue +44 -46
- package/components/auth/SelectPrincipal.vue +3 -5
- package/components/auth/__tests__/RoleDetailEdit.test.ts +18 -14
- package/components/auth/login/ldap.vue +2 -2
- package/components/fleet/FleetClusters.vue +0 -1
- package/components/fleet/FleetRepos.vue +0 -1
- package/components/fleet/FleetStatus.vue +15 -16
- package/components/fleet/__tests__/FleetSummary.test.ts +8 -2
- package/components/form/ArrayList.vue +6 -7
- package/components/form/ArrayListGrouped.vue +20 -7
- package/components/form/ArrayListSelect.vue +4 -4
- package/components/form/BannerSettings.vue +10 -10
- package/components/form/ChangePassword.vue +9 -9
- package/components/form/ColorInput.vue +2 -2
- package/components/form/Command.vue +13 -15
- package/components/form/EnvVars.vue +7 -7
- package/components/form/FileImageSelector.vue +1 -1
- package/components/form/GitPicker.vue +7 -7
- package/components/form/HealthCheck.vue +4 -4
- package/components/form/HookOption.vue +13 -13
- package/components/form/InputWithSelect.vue +19 -13
- package/components/form/KeyValue.vue +13 -14
- package/components/form/LabeledSelect.vue +61 -46
- package/components/form/Labels.vue +3 -3
- package/components/form/LifecycleHooks.vue +5 -7
- package/components/form/MatchExpressions.vue +7 -7
- package/components/form/Members/ClusterMembershipEditor.vue +1 -2
- package/components/form/Members/ClusterPermissionsEditor.vue +9 -9
- package/components/form/Members/MembershipEditor.vue +4 -5
- package/components/form/Members/ProjectMembershipEditor.vue +1 -2
- package/components/form/NameNsDescription.vue +12 -13
- package/components/form/Networking.vue +17 -17
- package/components/form/NodeAffinity.vue +9 -10
- package/components/form/NodeScheduling.vue +7 -7
- package/components/form/NotificationSettings.vue +2 -2
- package/components/form/Password.vue +2 -2
- package/components/form/PodAffinity.vue +21 -23
- package/components/form/PodSecurity.vue +6 -6
- package/components/form/Ports.vue +5 -5
- package/components/form/Probe.vue +20 -20
- package/components/form/ProjectMemberEditor.vue +9 -9
- package/components/form/ResourceLabeledSelect.vue +11 -4
- package/components/form/ResourceQuota/Namespace.vue +3 -3
- package/components/form/ResourceQuota/NamespaceRow.vue +3 -3
- package/components/form/ResourceQuota/Project.vue +7 -6
- package/components/form/ResourceQuota/ProjectRow.vue +113 -114
- package/components/form/ResourceSelector.vue +3 -3
- package/components/form/ResourceTabs/index.vue +1 -1
- package/components/form/RuleSelector.vue +7 -6
- package/components/form/SecretSelector.vue +5 -6
- package/components/form/Security.vue +14 -14
- package/components/form/Select.vue +38 -12
- package/components/form/SelectOrCreateAuthSecret.vue +30 -27
- package/components/form/ServiceNameSelect.vue +8 -5
- package/components/form/ServicePorts.vue +4 -4
- package/components/form/ShellInput.vue +3 -3
- package/components/form/SimpleSecretSelector.vue +2 -2
- package/components/form/Taints.vue +5 -4
- package/components/form/Tolerations.vue +12 -12
- package/components/form/UnitInput.vue +1 -1
- package/components/form/ValueFromResource.vue +17 -17
- package/components/form/WorkloadPorts.vue +21 -21
- package/components/form/__tests__/ArrayList.test.ts +14 -11
- package/components/form/__tests__/ArrayListGrouped.test.ts +4 -4
- package/components/form/__tests__/BannerSettings.test.ts +6 -5
- package/components/form/__tests__/Command.test.ts +14 -13
- package/components/form/__tests__/Error.test.ts +5 -5
- package/components/form/__tests__/FileImageSelector.test.ts +5 -5
- package/components/form/__tests__/FileSelector.test.ts +9 -9
- package/components/form/__tests__/InputWithSelect.test.ts +42 -0
- package/components/form/__tests__/KeyValue.test.ts +28 -18
- package/components/form/__tests__/LabeledSelect.test.ts +9 -9
- package/components/form/__tests__/MatchExpressions.test.ts +10 -10
- package/components/form/__tests__/NameNsDescription.test.ts +28 -25
- package/components/form/__tests__/NodeAffinity.test.ts +4 -3
- package/components/form/__tests__/PodAffinity.test.ts +4 -3
- package/components/form/__tests__/Probe.test.ts +6 -6
- package/components/form/__tests__/Security.test.ts +6 -6
- package/components/form/__tests__/Select.test.ts +30 -0
- package/components/form/__tests__/ServiceNameSelect.test.ts +42 -0
- package/components/form/__tests__/Taints.test.ts +18 -17
- package/components/form/__tests__/UnitInput.test.ts +20 -24
- package/components/form/labeled-select-utils/labeled-select.utils.ts +1 -1
- package/components/formatter/AppSummaryGraph.vue +5 -5
- package/components/formatter/ClusterLink.vue +1 -1
- package/components/formatter/Endpoints.vue +4 -1
- package/components/formatter/FleetSummaryGraph.vue +5 -5
- package/components/formatter/ListLink.vue +1 -1
- package/components/formatter/ListLinkDetail.vue +2 -2
- package/components/formatter/LiveExpiryBadgeState.vue +18 -5
- package/components/formatter/LiveExpiryDate.vue +1 -1
- package/components/formatter/MachineSummaryGraph.vue +5 -5
- package/components/formatter/PercentageBar.vue +1 -1
- package/components/formatter/Principal.vue +0 -1
- package/components/formatter/PrincipalGroupBindings.vue +5 -5
- package/components/formatter/ReceiverIcons.vue +5 -3
- package/components/formatter/Scale.vue +5 -5
- package/components/formatter/ServiceTargets.vue +1 -1
- package/components/formatter/VirtualServiceGateways.vue +1 -1
- package/components/formatter/Weight.vue +3 -3
- package/components/formatter/WorkloadDetailEndpoints.vue +4 -1
- package/components/formatter/WorkloadHealthScale.vue +5 -6
- package/components/formatter/__tests__/Checked.test.ts +2 -2
- package/components/formatter/__tests__/ClusterLink.test.ts +3 -3
- package/components/formatter/__tests__/Date.test.ts +8 -8
- package/components/formatter/__tests__/LinkDetail.test.ts +10 -10
- package/components/formatter/__tests__/LiveDate.test.ts +21 -15
- package/components/formatter/__tests__/PodsUsage.test.ts +5 -5
- package/components/formatter/__tests__/Si.test.ts +3 -3
- package/components/formatter/__tests__/WorkloadDetailEndpoints.test.ts +5 -5
- package/components/graph/LinePlot.vue +1 -2
- package/components/nav/Group.vue +11 -6
- package/components/nav/Header.vue +182 -131
- package/components/nav/Jump.vue +1 -1
- package/components/nav/NamespaceFilter.vue +2 -2
- package/components/nav/TopLevelMenu.vue +18 -17
- package/components/nav/Type.vue +7 -7
- package/components/nav/WindowManager/ContainerLogs.vue +53 -38
- package/components/nav/WindowManager/ContainerShell.vue +45 -39
- package/components/nav/WindowManager/Window.vue +1 -1
- package/components/nav/WindowManager/__tests__/ContainerLogs.test.ts +34 -23
- package/components/nav/WindowManager/__tests__/ContainerShell.test.ts +41 -33
- package/components/nav/WindowManager/index.vue +4 -4
- package/components/nav/WorkspaceSwitcher.vue +16 -16
- package/components/nav/__tests__/TopLevelMenu.test.ts +354 -308
- package/components/nav/__tests__/Type.test.ts +194 -111
- package/components/nuxt/nuxt-build-indicator.vue +79 -52
- package/components/nuxt/nuxt-child.js +24 -25
- package/components/nuxt/nuxt-error.vue +48 -18
- package/components/nuxt/nuxt-link.client.js +4 -3
- package/components/nuxt/nuxt-loading.vue +96 -85
- package/components/templates/blank.vue +0 -1
- package/components/templates/default.vue +0 -4
- package/components/templates/home.vue +4 -4
- package/components/templates/plain.vue +3 -2
- package/composables/useI18n.ts +1 -1
- package/composables/useLabeledFormElement.ts +12 -1
- package/composables/useUserRetentionValidation.test.ts +178 -0
- package/composables/useUserRetentionValidation.ts +201 -0
- package/config/__test__/home-links.test.ts +2 -7
- package/config/pagination-table-headers.js +5 -4
- package/config/query-params.js +1 -0
- package/config/roles.ts +34 -19
- package/config/router/index.js +10 -7
- package/config/router/navigation-guards/attempt-first-login.js +1 -1
- package/config/router/navigation-guards/authentication.js +2 -1
- package/{middleware/authenticated.js → config/router/navigation-guards/clusters.js} +28 -67
- package/config/router/navigation-guards/history.js +13 -0
- package/config/router/navigation-guards/i18n.js +1 -1
- package/config/router/navigation-guards/index.js +8 -1
- package/config/router/navigation-guards/install-redirect.js +95 -0
- package/config/router/navigation-guards/load-initial-settings.js +1 -1
- package/config/router/navigation-guards/page-title.js +12 -0
- package/config/router/navigation-guards/products.js +15 -0
- package/config/router/navigation-guards/runtime-extension-route.js +31 -0
- package/config/router/navigation-guards/server-upgrade-growl.js +19 -0
- package/config/router/routes.js +49 -23
- package/config/settings.ts +1 -1
- package/config/store.js +2 -5
- package/config/types.js +18 -0
- package/config/uiplugins.js +2 -2
- package/core/plugin-routes.ts +40 -30
- package/core/plugin.ts +10 -10
- package/core/plugins-loader.js +3 -3
- package/core/plugins.js +7 -1
- package/core/types.ts +7 -7
- package/detail/__tests__/autoscaling.horizontalpodautoscaler.test.ts +16 -8
- package/detail/__tests__/provisioning.cattle.io.cluster.test.ts +8 -8
- package/detail/__tests__/service.test.ts +6 -6
- package/detail/autoscaling.horizontalpodautoscaler/index.vue +6 -5
- package/detail/catalog.cattle.io.app.vue +2 -2
- package/detail/cis.cattle.io.clusterscan.vue +3 -3
- package/detail/configmap.vue +4 -1
- package/detail/fleet.cattle.io.cluster.vue +2 -1
- package/detail/fleet.cattle.io.clustergroup.vue +2 -1
- package/detail/fleet.cattle.io.gitrepo.vue +2 -1
- package/detail/harvesterhci.io.management.cluster.vue +2 -1
- package/detail/helm.cattle.io.projecthelmchart.vue +28 -29
- package/detail/management.cattle.io.user.vue +2 -1
- package/detail/namespace.vue +2 -1
- package/detail/networking.k8s.io.ingress.vue +4 -2
- package/detail/node.vue +2 -1
- package/detail/provisioning.cattle.io.cluster.vue +6 -7
- package/detail/secret.vue +3 -2
- package/detail/service.vue +2 -1
- package/detail/workload/index.vue +1 -19
- package/dialog/AddClusterMemberDialog.vue +30 -31
- package/dialog/AddCustomBadgeDialog.vue +101 -104
- package/dialog/AddProjectMemberDialog.vue +45 -46
- package/dialog/AddonConfigConfirmationDialog.vue +22 -24
- package/dialog/DeactivateDriverDialog.vue +5 -6
- package/dialog/DiagnosticTimingsDialog.vue +29 -29
- package/dialog/DrainNode.vue +245 -249
- package/dialog/ForceMachineRemoveDialog.vue +32 -34
- package/dialog/GenericPrompt.vue +23 -25
- package/dialog/RollbackWorkloadDialog.vue +68 -71
- package/dialog/RotateCertificatesDialog.vue +17 -18
- package/dialog/RotateEncryptionKeyDialog.vue +46 -47
- package/dialog/SaveAsRKETemplateDialog.vue +46 -47
- package/dialog/ScaleMachineDownDialog.vue +3 -3
- package/dialog/ScalePoolDownDialog.vue +22 -24
- package/dialog/SloDialog.vue +95 -0
- package/directives/clean-html.js +3 -3
- package/directives/clean-tooltip.js +1 -1
- package/directives/focus.js +17 -11
- package/directives/int-number.js +2 -2
- package/directives/positive-int-number.js +2 -2
- package/edit/__tests__/fleet.cattle.io.gitrepo.test.ts +7 -13
- package/edit/__tests__/kontainerDriver.test.ts +23 -20
- package/edit/__tests__/management.cattle.io.clusterroletemplatebinding.test.ts +31 -29
- package/edit/__tests__/management.cattle.io.setting.test.ts +20 -18
- package/edit/__tests__/monitoring.coreos.com.prometheusrule.test.ts +17 -15
- package/edit/__tests__/namespace.test.ts +28 -27
- package/edit/__tests__/nodeDriver.test.ts +35 -53
- package/edit/__tests__/service.test.ts +32 -17
- package/edit/__tests__/ui.cattle.io.navlink.test.ts +22 -20
- package/edit/auth/__tests__/AuthProviderWarningBanners.test.ts +2 -2
- package/edit/auth/__tests__/azuread.test.ts +43 -46
- package/edit/auth/__tests__/oidc.test.ts +36 -39
- package/edit/auth/azuread.vue +16 -23
- package/edit/auth/github.vue +6 -6
- package/edit/auth/googleoauth.vue +7 -7
- package/edit/auth/ldap/config.vue +29 -29
- package/edit/auth/ldap/index.vue +5 -5
- package/edit/auth/oidc.vue +18 -18
- package/edit/auth/saml.vue +94 -24
- package/edit/autoscaling.horizontalpodautoscaler/external-metric.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/hpa-scaling-rule.vue +7 -7
- package/edit/autoscaling.horizontalpodautoscaler/index.vue +18 -16
- package/edit/autoscaling.horizontalpodautoscaler/metric-identifier.vue +3 -3
- package/edit/autoscaling.horizontalpodautoscaler/metric-object-reference.vue +3 -3
- package/edit/autoscaling.horizontalpodautoscaler/metric-target.vue +12 -12
- package/edit/autoscaling.horizontalpodautoscaler/metrics-row.vue +5 -5
- package/edit/autoscaling.horizontalpodautoscaler/object-metric.vue +3 -3
- package/edit/autoscaling.horizontalpodautoscaler/pod-metric.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/resource-metric.vue +2 -2
- package/edit/catalog.cattle.io.clusterrepo.vue +31 -32
- package/edit/cis.cattle.io.clusterscan.vue +9 -9
- package/edit/cis.cattle.io.clusterscanbenchmark.vue +7 -7
- package/edit/cis.cattle.io.clusterscanprofile.vue +3 -3
- package/edit/cloudcredential.vue +13 -8
- package/edit/configmap.vue +7 -7
- package/edit/constraints.gatekeeper.sh.constraint/MatchKinds.vue +3 -3
- package/edit/constraints.gatekeeper.sh.constraint/NamespaceList.vue +1 -1
- package/edit/constraints.gatekeeper.sh.constraint/Scope.vue +1 -1
- package/edit/constraints.gatekeeper.sh.constraint/index.vue +21 -22
- package/edit/fleet.cattle.io.cluster.vue +2 -1
- package/edit/fleet.cattle.io.clustergroup.vue +6 -5
- package/edit/fleet.cattle.io.gitrepo.vue +18 -18
- package/edit/helm.cattle.io.projecthelmchart.vue +4 -4
- package/edit/k8s.cni.cncf.io.networkattachmentdefinition.vue +3 -2
- package/edit/logging-flow/Match.vue +4 -4
- package/edit/logging-flow/index.vue +11 -10
- package/edit/logging.banzaicloud.io.output/__tests__/logging.banzaicloud.io.output.test.ts +79 -73
- package/edit/logging.banzaicloud.io.output/index.vue +4 -4
- package/edit/logging.banzaicloud.io.output/providers/__tests__/loki.test.ts +1 -1
- package/edit/logging.banzaicloud.io.output/providers/awsElasticsearch.vue +3 -3
- package/edit/logging.banzaicloud.io.output/providers/azurestorage.vue +5 -5
- package/edit/logging.banzaicloud.io.output/providers/cloudwatch.vue +6 -6
- package/edit/logging.banzaicloud.io.output/providers/datadog.vue +4 -4
- package/edit/logging.banzaicloud.io.output/providers/elasticsearch.vue +16 -16
- package/edit/logging.banzaicloud.io.output/providers/file.vue +1 -1
- package/edit/logging.banzaicloud.io.output/providers/forward.vue +9 -9
- package/edit/logging.banzaicloud.io.output/providers/gcs.vue +5 -5
- package/edit/logging.banzaicloud.io.output/providers/gelf.vue +14 -14
- package/edit/logging.banzaicloud.io.output/providers/kafka.vue +10 -10
- package/edit/logging.banzaicloud.io.output/providers/kinesisStream.vue +3 -3
- package/edit/logging.banzaicloud.io.output/providers/logdna.vue +3 -3
- package/edit/logging.banzaicloud.io.output/providers/logz.vue +5 -5
- package/edit/logging.banzaicloud.io.output/providers/loki.vue +10 -10
- package/edit/logging.banzaicloud.io.output/providers/newrelic.vue +3 -3
- package/edit/logging.banzaicloud.io.output/providers/opensearch.vue +15 -15
- package/edit/logging.banzaicloud.io.output/providers/redis.vue +5 -5
- package/edit/logging.banzaicloud.io.output/providers/s3.vue +7 -7
- package/edit/logging.banzaicloud.io.output/providers/splunkHec.vue +12 -12
- package/edit/logging.banzaicloud.io.output/providers/sumologic.vue +2 -2
- package/edit/logging.banzaicloud.io.output/providers/syslog.vue +19 -19
- package/edit/management.cattle.io.clusterroletemplatebinding.vue +1 -1
- package/edit/management.cattle.io.fleetworkspace.vue +9 -7
- package/edit/management.cattle.io.node.vue +4 -3
- package/edit/management.cattle.io.podsecurityadmissionconfigurationtemplate.vue +3 -2
- package/edit/management.cattle.io.project.vue +13 -10
- package/edit/management.cattle.io.projectroletemplatebinding.vue +3 -3
- package/edit/management.cattle.io.setting.vue +6 -6
- package/edit/management.cattle.io.user.vue +4 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +4 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/index.vue +2 -1
- package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +5 -5
- package/edit/monitoring.coreos.com.alertmanagerconfig/routeConfig.vue +11 -11
- package/edit/monitoring.coreos.com.alertmanagerconfig/tls.vue +2 -2
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +10 -9
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +10 -10
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +5 -5
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +5 -5
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +9 -9
- package/edit/monitoring.coreos.com.prometheusrule/AlertingRule.vue +36 -36
- package/edit/monitoring.coreos.com.prometheusrule/RecordingRule.vue +4 -4
- package/edit/monitoring.coreos.com.prometheusrule/index.vue +9 -9
- package/edit/monitoring.coreos.com.receiver/auth.vue +9 -9
- package/edit/monitoring.coreos.com.receiver/index.vue +8 -8
- package/edit/monitoring.coreos.com.receiver/tls.vue +4 -4
- package/edit/monitoring.coreos.com.receiver/types/__tests__/email.test.ts +20 -16
- package/edit/monitoring.coreos.com.receiver/types/email.vue +12 -11
- package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +11 -11
- package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +6 -6
- package/edit/monitoring.coreos.com.receiver/types/slack.vue +6 -6
- package/edit/monitoring.coreos.com.receiver/types/webhook.vue +7 -7
- package/edit/monitoring.coreos.com.route.vue +10 -10
- package/edit/namespace.vue +10 -8
- package/edit/networking.istio.io.destinationrule/LoadBalancer.vue +12 -12
- package/edit/networking.istio.io.destinationrule/index.vue +15 -15
- package/edit/networking.k8s.io.ingress/Certificate.vue +5 -5
- package/edit/networking.k8s.io.ingress/Certificates.vue +2 -2
- package/edit/networking.k8s.io.ingress/DefaultBackend.vue +18 -18
- package/edit/networking.k8s.io.ingress/IngressClass.vue +1 -1
- package/edit/networking.k8s.io.ingress/Rule.vue +9 -7
- package/edit/networking.k8s.io.ingress/RulePath.vue +10 -10
- package/edit/networking.k8s.io.ingress/Rules.vue +3 -3
- package/edit/networking.k8s.io.ingress/index.vue +15 -10
- package/edit/networking.k8s.io.networkpolicy/PolicyRule.vue +4 -4
- package/edit/networking.k8s.io.networkpolicy/PolicyRulePort.vue +1 -1
- package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +47 -32
- package/edit/networking.k8s.io.networkpolicy/PolicyRules.vue +3 -3
- package/edit/networking.k8s.io.networkpolicy/__tests__/PolicyRuleTarget.test.ts +27 -26
- package/edit/networking.k8s.io.networkpolicy/index.vue +18 -16
- package/edit/node.vue +6 -5
- package/edit/nodeDriver.vue +6 -1
- package/edit/persistentvolume/__tests__/persistentvolume.test.ts +60 -49
- package/edit/persistentvolume/index.vue +26 -26
- package/edit/persistentvolume/plugins/awsElasticBlockStore.vue +8 -8
- package/edit/persistentvolume/plugins/azureDisk.vue +10 -10
- package/edit/persistentvolume/plugins/azureFile.vue +6 -6
- package/edit/persistentvolume/plugins/cephfs.vue +10 -10
- package/edit/persistentvolume/plugins/cinder.vue +8 -8
- package/edit/persistentvolume/plugins/csi.vue +18 -18
- package/edit/persistentvolume/plugins/fc.vue +9 -9
- package/edit/persistentvolume/plugins/flexVolume.vue +9 -9
- package/edit/persistentvolume/plugins/flocker.vue +3 -3
- package/edit/persistentvolume/plugins/gcePersistentDisk.vue +8 -8
- package/edit/persistentvolume/plugins/glusterfs.vue +5 -5
- package/edit/persistentvolume/plugins/hostPath.vue +4 -4
- package/edit/persistentvolume/plugins/iscsi.vue +18 -18
- package/edit/persistentvolume/plugins/local.vue +2 -2
- package/edit/persistentvolume/plugins/longhorn.vue +8 -8
- package/edit/persistentvolume/plugins/nfs.vue +5 -5
- package/edit/persistentvolume/plugins/photonPersistentDisk.vue +5 -5
- package/edit/persistentvolume/plugins/portworxVolume.vue +6 -6
- package/edit/persistentvolume/plugins/quobyte.vue +7 -7
- package/edit/persistentvolume/plugins/rbd.vue +12 -12
- package/edit/persistentvolume/plugins/scaleIO.vue +15 -15
- package/edit/persistentvolume/plugins/storageos.vue +9 -9
- package/edit/persistentvolume/plugins/vsphereVolume.vue +5 -5
- package/edit/persistentvolumeclaim.vue +29 -28
- package/edit/policy.poddisruptionbudget.vue +15 -14
- package/edit/provisioning.cattle.io.cluster/AgentEnv.vue +1 -1
- package/edit/provisioning.cattle.io.cluster/CustomCommand.vue +10 -10
- package/edit/provisioning.cattle.io.cluster/Labels.vue +12 -1
- package/edit/provisioning.cattle.io.cluster/SelectCredential.vue +5 -5
- package/edit/provisioning.cattle.io.cluster/__tests__/Advanced.test.ts +40 -36
- package/edit/provisioning.cattle.io.cluster/__tests__/Basics.test.ts +170 -79
- package/edit/provisioning.cattle.io.cluster/__tests__/CustomCommand.test.ts +16 -14
- package/edit/provisioning.cattle.io.cluster/__tests__/DirectoryConfig.test.ts +38 -8
- package/edit/provisioning.cattle.io.cluster/__tests__/DrainOptions.test.ts +14 -12
- package/edit/provisioning.cattle.io.cluster/__tests__/index.test.ts +18 -19
- package/edit/provisioning.cattle.io.cluster/__tests__/rke2.test.ts +292 -84
- package/edit/provisioning.cattle.io.cluster/import.vue +7 -4
- package/edit/provisioning.cattle.io.cluster/index.vue +32 -13
- package/edit/provisioning.cattle.io.cluster/rke2.vue +155 -78
- package/edit/provisioning.cattle.io.cluster/tabs/AddOnConfig.vue +5 -5
- package/edit/provisioning.cattle.io.cluster/tabs/Advanced.vue +10 -11
- package/edit/provisioning.cattle.io.cluster/tabs/AgentConfiguration.vue +12 -11
- package/edit/provisioning.cattle.io.cluster/tabs/Basics.vue +62 -24
- package/edit/provisioning.cattle.io.cluster/tabs/DirectoryConfig.vue +9 -9
- package/edit/provisioning.cattle.io.cluster/tabs/MachinePool.vue +12 -12
- package/edit/provisioning.cattle.io.cluster/tabs/etcd/S3Config.vue +15 -15
- package/edit/provisioning.cattle.io.cluster/tabs/etcd/index.vue +6 -6
- package/edit/provisioning.cattle.io.cluster/tabs/networking/ACE.vue +3 -3
- package/edit/provisioning.cattle.io.cluster/tabs/networking/index.vue +18 -9
- package/edit/provisioning.cattle.io.cluster/tabs/registries/RegistryConfigs.vue +16 -12
- package/edit/provisioning.cattle.io.cluster/tabs/registries/RegistryMirrors.vue +4 -4
- package/edit/provisioning.cattle.io.cluster/tabs/registries/__tests__/RegistryConfigs.test.ts +63 -0
- package/edit/provisioning.cattle.io.cluster/tabs/registries/index.vue +8 -6
- package/edit/provisioning.cattle.io.cluster/tabs/upgrade/DrainOptions.vue +15 -15
- package/edit/provisioning.cattle.io.cluster/tabs/upgrade/index.vue +4 -4
- package/edit/resources.cattle.io.backup.vue +9 -9
- package/edit/resources.cattle.io.restore.vue +11 -11
- package/edit/secret/basic.vue +2 -2
- package/edit/secret/generic.vue +1 -1
- package/edit/secret/index.vue +12 -10
- package/edit/secret/registry.vue +4 -4
- package/edit/secret/ssh.vue +2 -2
- package/edit/secret/tls.vue +2 -2
- package/edit/service.vue +25 -25
- package/edit/serviceaccount.vue +7 -7
- package/edit/storage.k8s.io.storageclass/index.vue +16 -16
- package/edit/storage.k8s.io.storageclass/provisioners/custom.vue +1 -1
- package/edit/storage.k8s.io.storageclass/provisioners/driver.harvesterhci.io.vue +2 -2
- package/edit/storage.k8s.io.storageclass/provisioners/driver.longhorn.io.vue +4 -4
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/aws-ebs.vue +12 -12
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-disk.vue +3 -3
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-file.vue +3 -3
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/cinder.vue +4 -4
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/gce-pd.vue +6 -6
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/glusterfs.vue +9 -9
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/portworx-volume.vue +7 -7
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/quobyte.vue +8 -8
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/rbd.vue +11 -11
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/scaleio.vue +8 -8
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/storageos.vue +5 -5
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/vsphere-volume.vue +7 -7
- package/edit/token.vue +4 -4
- package/edit/ui.cattle.io.navlink.vue +28 -27
- package/edit/workload/Job.vue +18 -18
- package/edit/workload/Upgrading.vue +16 -16
- package/edit/workload/VolumeClaimTemplate.vue +3 -3
- package/edit/workload/__tests__/Job.test.ts +10 -10
- package/edit/workload/__tests__/index.test.ts +32 -29
- package/edit/workload/index.vue +31 -30
- package/edit/workload/mixins/workload.js +30 -30
- package/edit/workload/storage/ContainerMountPaths.vue +3 -4
- package/edit/workload/storage/Mount.vue +10 -7
- package/edit/workload/storage/__tests__/Mount.test.ts +17 -13
- package/edit/workload/storage/__tests__/Storage.test.ts +26 -20
- package/edit/workload/storage/awsElasticBlockStore.vue +4 -4
- package/edit/workload/storage/azureDisk.vue +7 -7
- package/edit/workload/storage/azureFile.vue +5 -5
- package/edit/workload/storage/csi/driver.longhorn.io.vue +3 -3
- package/edit/workload/storage/csi/index.vue +4 -4
- package/edit/workload/storage/emptyDir.vue +4 -4
- package/edit/workload/storage/ephemeralVolume/index.vue +3 -3
- package/edit/workload/storage/gcePersistentDisk.vue +4 -4
- package/edit/workload/storage/hostPath.vue +4 -4
- package/edit/workload/storage/index.vue +13 -27
- package/edit/workload/storage/nfs.vue +4 -4
- package/edit/workload/storage/persistentVolumeClaim/__tests__/persistentvolumeclaim.test.ts +18 -16
- package/edit/workload/storage/persistentVolumeClaim/index.vue +5 -5
- package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +15 -15
- package/edit/workload/storage/secret.vue +9 -9
- package/edit/workload/storage/vsphereVolume.vue +4 -4
- package/initialize/App.vue +10 -8
- package/initialize/app-extended.js +14 -30
- package/initialize/entry-helpers.js +29 -428
- package/initialize/entry.js +11 -10
- package/initialize/install-plugins.js +15 -13
- package/list/__tests__/workload.test.ts +22 -20
- package/list/catalog.cattle.io.app.vue +1 -1
- package/list/cis.cattle.io.clusterscan.vue +1 -2
- package/list/fleet.cattle.io.clustergroup.vue +0 -1
- package/list/group.principal.vue +1 -1
- package/list/management.cattle.io.feature.vue +23 -29
- package/list/management.cattle.io.fleetworkspace.vue +0 -1
- package/list/management.cattle.io.setting.vue +2 -2
- package/list/management.cattle.io.user.vue +1 -1
- package/list/namespace.vue +0 -1
- package/list/node.vue +4 -5
- package/list/provisioning.cattle.io.cluster.vue +1 -1
- package/list/rbac.authorization.k8s.io.clusterrolebinding.vue +0 -1
- package/machine-config/__tests__/vmwarevsphere.test.ts +10 -7
- package/machine-config/amazonec2.vue +26 -26
- package/machine-config/azure.vue +31 -31
- package/machine-config/digitalocean.vue +8 -8
- package/machine-config/generic.vue +2 -1
- package/machine-config/linode.vue +4 -4
- package/machine-config/pnap.vue +11 -11
- package/machine-config/vmwarevsphere-config.ts +17 -0
- package/machine-config/vmwarevsphere.vue +400 -410
- package/mixins/__tests__/chart.test.ts +45 -24
- package/mixins/auth-config.js +37 -11
- package/mixins/chart.js +31 -15
- package/mixins/compact-input.ts +2 -3
- package/mixins/labeled-form-element.ts +8 -3
- package/mixins/page-actions.js +1 -1
- package/mixins/resource-fetch.js +4 -3
- package/models/__tests__/apps.deployment.test.ts +93 -0
- package/models/apps.deployment.js +18 -4
- package/models/apps.statefulset.js +1 -2
- package/models/batch.cronjob.js +1 -2
- package/models/catalog.cattle.io.clusterrepo.js +1 -2
- package/models/fleet.cattle.io.gitrepo.js +1 -2
- package/models/helm.cattle.io.projecthelmchart.js +2 -3
- package/models/management.cattle.io.cluster.js +2 -2
- package/models/management.cattle.io.roletemplate.js +2 -3
- package/models/namespace.js +1 -2
- package/models/networking.istio.io.destinationrule.js +2 -3
- package/models/persistentvolumeclaim.js +2 -3
- package/models/provisioning.cattle.io.cluster.js +4 -0
- package/models/workload.js +2 -2
- package/package.json +44 -43
- package/pages/404.vue +15 -0
- package/pages/__tests__/prefs.test.ts +44 -44
- package/pages/about.vue +4 -4
- package/pages/account/index.vue +1 -2
- package/pages/auth/login.vue +29 -9
- package/pages/auth/logout.vue +23 -1
- package/pages/auth/setup.vue +35 -31
- package/pages/auth/verify.vue +38 -5
- package/pages/c/_cluster/_product/namespaces.vue +1 -2
- package/pages/c/_cluster/apps/charts/chart.vue +4 -4
- package/pages/c/_cluster/apps/charts/index.vue +16 -16
- package/pages/c/_cluster/apps/charts/install.vue +46 -80
- package/pages/c/_cluster/auth/config/index.vue +2 -2
- package/pages/c/_cluster/auth/roles/index.vue +2 -2
- package/pages/c/_cluster/auth/user.retention/index.vue +34 -95
- package/pages/c/_cluster/explorer/EventsTable.vue +1 -1
- package/pages/c/_cluster/explorer/__tests__/index.test.ts +32 -34
- package/pages/c/_cluster/explorer/index.vue +9 -6
- package/pages/c/_cluster/explorer/tools/__tests__/index.test.ts +22 -20
- package/pages/c/_cluster/fleet/index.vue +5 -6
- package/pages/c/_cluster/gatekeeper/index.vue +4 -5
- package/pages/c/_cluster/istio/index.vue +6 -8
- package/pages/c/_cluster/logging/index.vue +9 -5
- package/pages/c/_cluster/longhorn/__tests__/longhorn.index.test.ts +7 -4
- package/pages/c/_cluster/longhorn/index.vue +2 -9
- package/pages/c/_cluster/manager/drivers/kontainerDriver/index.vue +1 -1
- package/pages/c/_cluster/manager/jwt.authentication/index.vue +14 -5
- package/pages/c/_cluster/monitoring/alertmanagerconfig/_alertmanagerconfigid/receiver.vue +1 -1
- package/pages/c/_cluster/monitoring/index.vue +8 -10
- package/pages/c/_cluster/neuvector/index.vue +7 -10
- package/pages/c/_cluster/settings/DefaultLinksEditor.vue +7 -9
- package/pages/c/_cluster/settings/banners.vue +82 -84
- package/pages/c/_cluster/settings/brand.vue +21 -19
- package/pages/c/_cluster/settings/links.vue +6 -4
- package/pages/c/_cluster/settings/performance.vue +25 -21
- package/pages/c/_cluster/uiplugins/AddExtensionRepos.vue +2 -2
- package/pages/c/_cluster/uiplugins/CatalogList/CatalogLoadDialog.vue +43 -45
- package/pages/c/_cluster/uiplugins/DeveloperInstallDialog.vue +5 -5
- package/pages/c/_cluster/uiplugins/InstallDialog.vue +1 -1
- package/pages/c/_cluster/uiplugins/PluginInfoPanel.vue +3 -3
- package/pages/c/_cluster/uiplugins/__tests__/AddExtensionRepos.test.ts +17 -34
- package/pages/c/_cluster/uiplugins/__tests__/SetupUIPlugins.test.ts +12 -9
- package/pages/c/_cluster/uiplugins/index.vue +173 -176
- package/pages/diagnostic.vue +6 -9
- package/pages/fail-whale.vue +3 -1
- package/pages/home.vue +8 -17
- package/pages/index.vue +17 -16
- package/pages/prefs.vue +12 -12
- package/pages/support/index.vue +3 -3
- package/pkg/tsconfig.json +0 -1
- package/plugins/dashboard-store/actions.js +1 -1
- package/plugins/dashboard-store/getters.js +1 -1
- package/plugins/dashboard-store/index.js +2 -0
- package/plugins/dashboard-store/mutations.js +5 -5
- package/plugins/dashboard-store/resource-class.js +5 -5
- package/plugins/extend-router.js +62 -42
- package/plugins/floating-vue.js +1 -0
- package/plugins/formatters.js +1 -1
- package/plugins/global-formatters.js +3 -14
- package/plugins/i18n.js +17 -22
- package/plugins/shortkey.js +273 -0
- package/plugins/steve/__tests__/getters.test.ts +6 -3
- package/plugins/steve/getters.js +6 -4
- package/plugins/steve/hybrid-class.js +7 -12
- package/plugins/steve/mutations.js +1 -2
- package/plugins/steve/norman-class.js +10 -11
- package/plugins/steve/subscribe.js +3 -1
- package/promptRemove/management.cattle.io.globalrole.vue +1 -5
- package/promptRemove/management.cattle.io.project.vue +1 -1
- package/promptRemove/pod.vue +1 -1
- package/public/index.html +53 -52
- package/rancher-components/BadgeState/BadgeState.test.ts +1 -1
- package/rancher-components/BadgeState/BadgeState.vue +1 -1
- package/rancher-components/Banner/Banner.test.ts +2 -2
- package/rancher-components/Form/Checkbox/Checkbox.test.ts +5 -5
- package/rancher-components/Form/Checkbox/Checkbox.vue +4 -4
- package/rancher-components/Form/LabeledInput/LabeledInput.test.ts +5 -5
- package/rancher-components/Form/LabeledInput/LabeledInput.vue +15 -4
- package/rancher-components/Form/Radio/RadioButton.vue +3 -2
- package/rancher-components/Form/Radio/RadioGroup.test.ts +6 -9
- package/rancher-components/Form/Radio/RadioGroup.vue +4 -5
- package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +18 -1
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.test.ts +13 -13
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.vue +1 -1
- package/rancher-components/LabeledTooltip/LabeledTooltip.vue +1 -0
- package/rancher-components/StringList/StringList.test.ts +22 -22
- package/rancher-components/StringList/StringList.vue +10 -9
- package/scripts/extension/helm/charts/ui-plugin-server/Chart.yaml +1 -1
- package/scripts/publish-shell.sh +52 -58
- package/scripts/test-plugins-build.sh +44 -38
- package/scripts/vue-migrate.js +7 -4
- package/shell/types/shell/index.d.ts +2 -0
- package/store/__tests__/catalog.test.ts +4 -21
- package/store/auth.js +28 -10
- package/store/index.js +16 -8
- package/store/prefs.js +3 -4
- package/types/resources/settings.d.ts +54 -0
- package/types/store/pagination.types.ts +1 -1
- package/utils/auth.js +21 -6
- package/utils/axios.js +1 -1
- package/utils/download.js +1 -1
- package/utils/dynamic-importer.js +14 -12
- package/utils/error.js +4 -4
- package/utils/object.js +4 -5
- package/utils/router.js +7 -1
- package/utils/select.js +1 -1
- package/utils/settings.ts +3 -1
- package/utils/unit-tests/ChildRenderingRouterLinkStub.ts +4 -4
- package/vue.config.js +171 -145
- package/config/middleware.js +0 -6
- package/config/nuxt-paths.js +0 -7
- package/creators/app/app.package.json +0 -14
- package/creators/app/files/.eslintignore +0 -16
- package/creators/app/files/.eslintrc.js +0 -173
- package/creators/app/files/.gitignore +0 -70
- package/creators/app/files/.gitlab-ci.yml +0 -14
- package/creators/app/files/.vscode/settings.json +0 -21
- package/creators/app/files/babel.config.js +0 -1
- package/creators/app/files/tsconfig.json +0 -42
- package/creators/app/files/vue.config.js +0 -6
- package/creators/app/init +0 -120
- package/creators/app/package.json +0 -25
- package/creators/pkg/files/.github/workflows/build-extension-catalog.yml +0 -24
- package/creators/pkg/files/.github/workflows/build-extension-charts.yml +0 -22
- package/creators/pkg/files/babel.config.js +0 -1
- package/creators/pkg/files/index.ts +0 -14
- package/creators/pkg/files/tsconfig.json +0 -53
- package/creators/pkg/files/vue.config.js +0 -1
- package/creators/pkg/init +0 -286
- package/creators/pkg/package.json +0 -19
- package/creators/pkg/pkg.package.json +0 -21
- package/creators/pkg/vue-shim.ts +0 -4
- package/creators/update/init +0 -56
- package/creators/update/package.json +0 -20
- package/creators/update/upgrade +0 -56
- package/pages/c/_cluster/backup/index.vue +0 -11
- package/pages/c/_cluster/cis/index.vue +0 -11
- package/plugins/clean-html-directive.js +0 -9
- package/plugins/clean-tooltip-directive.js +0 -8
- package/plugins/directives.js +0 -8
- package/plugins/int-number.js +0 -8
- package/plugins/positive-int-number.js +0 -8
- package/plugins/trim-whitespace.js +0 -9
- package/plugins/vue-js-modal.js +0 -4
- package/types/shell/index.d.ts +0 -4585
- package/utils/install-redirect.js +0 -55
- /package/utils/{cookie-universal-nuxt.js → cookie-universal.js} +0 -0
|
@@ -306,7 +306,7 @@ export default {
|
|
|
306
306
|
},
|
|
307
307
|
watch: {
|
|
308
308
|
/**
|
|
309
|
-
* KV works with v-model=value
|
|
309
|
+
* KV works with v-model:value=value
|
|
310
310
|
* value is transformed into this.rows (base64 decode, mark supported etc)
|
|
311
311
|
* on input, this.update constructs a new value from this.rows and emits
|
|
312
312
|
* if the parent component changes value, KV needs to re-compute this.rows
|
|
@@ -428,7 +428,7 @@ export default {
|
|
|
428
428
|
return (row.value.length || row.key.length);
|
|
429
429
|
});
|
|
430
430
|
|
|
431
|
-
this
|
|
431
|
+
this['rows'] = cleaned;
|
|
432
432
|
},
|
|
433
433
|
onFileSelected(file) {
|
|
434
434
|
const { name, value } = this.fileModifier(file.name, file.value);
|
|
@@ -513,7 +513,7 @@ export default {
|
|
|
513
513
|
}
|
|
514
514
|
this.lastUpdated = out;
|
|
515
515
|
|
|
516
|
-
this.$emit('
|
|
516
|
+
this.$emit('update:value', out);
|
|
517
517
|
},
|
|
518
518
|
onPaste(index, event) {
|
|
519
519
|
const text = event.clipboardData.getData('text/plain');
|
|
@@ -566,7 +566,7 @@ export default {
|
|
|
566
566
|
* Set focus on CodeMirror fields
|
|
567
567
|
*/
|
|
568
568
|
onFocusMarkdownMultiline(idx, value) {
|
|
569
|
-
this
|
|
569
|
+
this.codeMirrorFocus[idx] = value;
|
|
570
570
|
},
|
|
571
571
|
onValueFileSelected(idx, file) {
|
|
572
572
|
const { name, value } = file;
|
|
@@ -616,8 +616,8 @@ export default {
|
|
|
616
616
|
{{ _valueLabel }}
|
|
617
617
|
</label>
|
|
618
618
|
<label
|
|
619
|
-
v-for="c in extraColumns"
|
|
620
|
-
:key="
|
|
619
|
+
v-for="(c, i) in extraColumns"
|
|
620
|
+
:key="i"
|
|
621
621
|
>
|
|
622
622
|
<slot :name="'label:'+c">{{ c }}</slot>
|
|
623
623
|
</label>
|
|
@@ -639,10 +639,10 @@ export default {
|
|
|
639
639
|
<template
|
|
640
640
|
v-for="(row,i) in filteredRows"
|
|
641
641
|
v-else
|
|
642
|
+
:key="i"
|
|
642
643
|
>
|
|
643
644
|
<!-- Key -->
|
|
644
645
|
<div
|
|
645
|
-
:key="i+'key'"
|
|
646
646
|
class="kv-item key"
|
|
647
647
|
>
|
|
648
648
|
<slot
|
|
@@ -657,14 +657,14 @@ export default {
|
|
|
657
657
|
<Select
|
|
658
658
|
v-if="keyOptions"
|
|
659
659
|
ref="key"
|
|
660
|
-
v-model="row[keyName]"
|
|
660
|
+
v-model:value="row[keyName]"
|
|
661
661
|
:searchable="true"
|
|
662
662
|
:disabled="disabled || isProtected(row.key)"
|
|
663
663
|
:clearable="false"
|
|
664
664
|
:taggable="keyTaggable"
|
|
665
665
|
:options="calculateOptions(row[keyName])"
|
|
666
666
|
:data-testid="`select-kv-item-key-${i}`"
|
|
667
|
-
@
|
|
667
|
+
@update:value="queueUpdate"
|
|
668
668
|
/>
|
|
669
669
|
<input
|
|
670
670
|
v-else
|
|
@@ -681,7 +681,6 @@ export default {
|
|
|
681
681
|
|
|
682
682
|
<!-- Value -->
|
|
683
683
|
<div
|
|
684
|
-
:key="i+'value'"
|
|
685
684
|
:data-testid="`kv-item-value-${i}`"
|
|
686
685
|
class="kv-item value"
|
|
687
686
|
>
|
|
@@ -717,7 +716,7 @@ export default {
|
|
|
717
716
|
/>
|
|
718
717
|
<TextAreaAutoGrow
|
|
719
718
|
v-else-if="valueMultiline"
|
|
720
|
-
v-model="row[valueName]"
|
|
719
|
+
v-model:value="row[valueName]"
|
|
721
720
|
data-testid="value-multiline"
|
|
722
721
|
:class="{'conceal': valueConcealed}"
|
|
723
722
|
:disabled="disabled || isProtected(row.key)"
|
|
@@ -725,7 +724,7 @@ export default {
|
|
|
725
724
|
:placeholder="_valuePlaceholder"
|
|
726
725
|
:min-height="40"
|
|
727
726
|
:spellcheck="false"
|
|
728
|
-
@
|
|
727
|
+
@update:value="queueUpdate"
|
|
729
728
|
/>
|
|
730
729
|
<input
|
|
731
730
|
v-else
|
|
@@ -750,8 +749,8 @@ export default {
|
|
|
750
749
|
</slot>
|
|
751
750
|
</div>
|
|
752
751
|
<div
|
|
753
|
-
v-for="c in extraColumns"
|
|
754
|
-
:key="i
|
|
752
|
+
v-for="(c, j) in extraColumns"
|
|
753
|
+
:key="`${i}-${j}`"
|
|
755
754
|
class="kv-item extra"
|
|
756
755
|
>
|
|
757
756
|
<slot
|
|
@@ -13,8 +13,17 @@ import { LABEL_SELECT_NOT_OPTION_KINDS } from '@shell/types/components/labeledSe
|
|
|
13
13
|
export default {
|
|
14
14
|
name: 'LabeledSelect',
|
|
15
15
|
|
|
16
|
+
inheritAttrs: false,
|
|
17
|
+
|
|
16
18
|
components: { LabeledTooltip },
|
|
17
|
-
mixins: [
|
|
19
|
+
mixins: [
|
|
20
|
+
CompactInput,
|
|
21
|
+
LabeledFormElement,
|
|
22
|
+
VueSelectOverrides,
|
|
23
|
+
LabeledSelectPagination
|
|
24
|
+
],
|
|
25
|
+
|
|
26
|
+
emits: ['on-open', 'on-close', 'selecting', 'update:validation'],
|
|
18
27
|
|
|
19
28
|
props: {
|
|
20
29
|
appendToBody: {
|
|
@@ -240,17 +249,20 @@ export default {
|
|
|
240
249
|
<div
|
|
241
250
|
ref="select"
|
|
242
251
|
class="labeled-select"
|
|
243
|
-
:class="
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
:class="[
|
|
253
|
+
$attrs.class,
|
|
254
|
+
{
|
|
255
|
+
disabled: isView || disabled,
|
|
256
|
+
focused,
|
|
257
|
+
[mode]: true,
|
|
258
|
+
[status]: status,
|
|
259
|
+
taggable: $attrs.taggable,
|
|
260
|
+
taggable: $attrs.multiple,
|
|
261
|
+
hoverable: hoverTooltip,
|
|
262
|
+
'compact-input': isCompact,
|
|
263
|
+
'no-label': !hasLabel
|
|
264
|
+
}
|
|
265
|
+
]"
|
|
254
266
|
@click="focusSearch"
|
|
255
267
|
@focus="focusSearch"
|
|
256
268
|
>
|
|
@@ -290,9 +302,10 @@ export default {
|
|
|
290
302
|
:filterable="isFilterable"
|
|
291
303
|
:searchable="isSearchable"
|
|
292
304
|
:selectable="selectable"
|
|
293
|
-
:
|
|
305
|
+
:modelValue="value != null && !loading ? value : ''"
|
|
294
306
|
:dropdown-should-open="dropdownShouldOpen"
|
|
295
|
-
|
|
307
|
+
|
|
308
|
+
@update:modelValue="$emit('selecting', $event); $emit('update:value', $event)"
|
|
296
309
|
@search:blur="onBlur"
|
|
297
310
|
@search:focus="onFocus"
|
|
298
311
|
@search="onSearch"
|
|
@@ -338,7 +351,8 @@ export default {
|
|
|
338
351
|
</template>
|
|
339
352
|
<!-- Pass down templates provided by the caller -->
|
|
340
353
|
<template
|
|
341
|
-
v-for="(_, slot) of $
|
|
354
|
+
v-for="(_, slot) of $slots"
|
|
355
|
+
:key="slot"
|
|
342
356
|
#[slot]="scope"
|
|
343
357
|
>
|
|
344
358
|
<slot
|
|
@@ -347,28 +361,29 @@ export default {
|
|
|
347
361
|
/>
|
|
348
362
|
</template>
|
|
349
363
|
|
|
350
|
-
<
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
364
|
+
<template #list-footer>
|
|
365
|
+
<div
|
|
366
|
+
v-if="canPaginate && totalResults"
|
|
367
|
+
class="pagination-slot"
|
|
368
|
+
>
|
|
369
|
+
<div class="load-more">
|
|
370
|
+
<i
|
|
371
|
+
v-if="paginating"
|
|
372
|
+
class="icon icon-spinner icon-spin"
|
|
373
|
+
/>
|
|
374
|
+
<div v-else>
|
|
375
|
+
<a
|
|
376
|
+
v-if="canLoadMore"
|
|
377
|
+
@click="loadMore"
|
|
378
|
+
> {{ t('labelSelect.pagination.more') }}</a>
|
|
379
|
+
</div>
|
|
365
380
|
</div>
|
|
366
|
-
</div>
|
|
367
381
|
|
|
368
|
-
|
|
369
|
-
|
|
382
|
+
<div class="count">
|
|
383
|
+
{{ optionCounts }}
|
|
384
|
+
</div>
|
|
370
385
|
</div>
|
|
371
|
-
</
|
|
386
|
+
</template>
|
|
372
387
|
<template #no-options="{ search }">
|
|
373
388
|
<div class="no-options-slot">
|
|
374
389
|
<div
|
|
@@ -414,7 +429,7 @@ export default {
|
|
|
414
429
|
padding-bottom: 1px;
|
|
415
430
|
|
|
416
431
|
&.no-label.compact-input {
|
|
417
|
-
|
|
432
|
+
:deep() .vs__actions:after {
|
|
418
433
|
top: -2px;
|
|
419
434
|
}
|
|
420
435
|
|
|
@@ -427,7 +442,7 @@ export default {
|
|
|
427
442
|
height: $input-height;
|
|
428
443
|
padding-top: 4px;
|
|
429
444
|
|
|
430
|
-
|
|
445
|
+
:deep() .vs__actions:after {
|
|
431
446
|
top: 0;
|
|
432
447
|
}
|
|
433
448
|
}
|
|
@@ -463,21 +478,21 @@ export default {
|
|
|
463
478
|
|
|
464
479
|
&.taggable.compact-input {
|
|
465
480
|
min-height: $unlabeled-input-height;
|
|
466
|
-
|
|
481
|
+
:deep() .vs__selected-options {
|
|
467
482
|
padding-top: 8px !important;
|
|
468
483
|
}
|
|
469
484
|
}
|
|
470
485
|
|
|
471
486
|
&.taggable:not(.compact-input) {
|
|
472
487
|
min-height: $input-height;
|
|
473
|
-
|
|
488
|
+
:deep() .vs__selected-options {
|
|
474
489
|
// Need to adjust margin when there is a label in the control to add space between the label and the tags
|
|
475
490
|
margin-top: 0px;
|
|
476
491
|
}
|
|
477
492
|
}
|
|
478
493
|
|
|
479
494
|
&:not(.taggable) {
|
|
480
|
-
|
|
495
|
+
:deep() .vs__selected-options {
|
|
481
496
|
// Ensure whole select is clickable to close the select when open
|
|
482
497
|
.vs__selected {
|
|
483
498
|
width: 100%;
|
|
@@ -486,7 +501,7 @@ export default {
|
|
|
486
501
|
}
|
|
487
502
|
|
|
488
503
|
&.taggable {
|
|
489
|
-
|
|
504
|
+
:deep() .vs__selected-options {
|
|
490
505
|
padding: 3px 0;
|
|
491
506
|
.vs__selected {
|
|
492
507
|
border-color: var(--accent-btn);
|
|
@@ -511,30 +526,30 @@ export default {
|
|
|
511
526
|
}
|
|
512
527
|
}
|
|
513
528
|
|
|
514
|
-
|
|
529
|
+
:deep() .vs__selected-options {
|
|
515
530
|
margin-top: -5px;
|
|
516
531
|
}
|
|
517
532
|
|
|
518
|
-
|
|
533
|
+
:deep() .v-select:not(.vs--single) {
|
|
519
534
|
.vs__selected-options {
|
|
520
535
|
padding: 5px 0;
|
|
521
536
|
}
|
|
522
537
|
}
|
|
523
538
|
|
|
524
|
-
|
|
539
|
+
:deep() .vs__actions {
|
|
525
540
|
&:after {
|
|
526
541
|
position: relative;
|
|
527
542
|
top: -10px;
|
|
528
543
|
}
|
|
529
544
|
}
|
|
530
545
|
|
|
531
|
-
|
|
546
|
+
:deep() .v-select.vs--open {
|
|
532
547
|
.vs__dropdown-toggle {
|
|
533
548
|
color: var(--outline) !important;
|
|
534
549
|
}
|
|
535
550
|
}
|
|
536
551
|
|
|
537
|
-
|
|
552
|
+
:deep() &.disabled {
|
|
538
553
|
.labeled-container,
|
|
539
554
|
.vs__dropdown-toggle,
|
|
540
555
|
input,
|
|
@@ -543,7 +558,7 @@ export default {
|
|
|
543
558
|
}
|
|
544
559
|
}
|
|
545
560
|
|
|
546
|
-
.no-label
|
|
561
|
+
.no-label :deep() {
|
|
547
562
|
&.v-select:not(.vs--single) {
|
|
548
563
|
min-height: 33px;
|
|
549
564
|
}
|
|
@@ -84,7 +84,7 @@ export default {
|
|
|
84
84
|
</h3>
|
|
85
85
|
<ToggleSwitch
|
|
86
86
|
v-if="value.hasSystemLabels"
|
|
87
|
-
v-model="toggler"
|
|
87
|
+
v-model:value="toggler"
|
|
88
88
|
name="label-system-toggle"
|
|
89
89
|
:on-label="t('labels.labels.show')"
|
|
90
90
|
/>
|
|
@@ -107,7 +107,7 @@ export default {
|
|
|
107
107
|
:mode="mode"
|
|
108
108
|
:read-allowed="false"
|
|
109
109
|
:value-can-be-empty="true"
|
|
110
|
-
@
|
|
110
|
+
@update:value="value.setLabels($event)"
|
|
111
111
|
/>
|
|
112
112
|
</template>
|
|
113
113
|
</slot>
|
|
@@ -130,7 +130,7 @@ export default {
|
|
|
130
130
|
:title-protip="annotationTitleTooltip"
|
|
131
131
|
:read-allowed="false"
|
|
132
132
|
:value-can-be-empty="true"
|
|
133
|
-
@
|
|
133
|
+
@update:value="value.setAnnotations($event)"
|
|
134
134
|
/>
|
|
135
135
|
</div>
|
|
136
136
|
</div>
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import Vue from 'vue';
|
|
3
|
-
|
|
4
2
|
import HookOption from '@shell/components/form/HookOption';
|
|
5
3
|
import { _VIEW } from '@shell/config/query-params';
|
|
6
4
|
import { isEmpty } from '@shell/utils/object';
|
|
@@ -48,13 +46,13 @@ export default {
|
|
|
48
46
|
const val = out[prop];
|
|
49
47
|
|
|
50
48
|
if (val === '' || typeof val === 'undefined' || val === null || isEmpty(val)) {
|
|
51
|
-
|
|
49
|
+
delete this.value[prop];
|
|
52
50
|
} else {
|
|
53
|
-
|
|
51
|
+
this.value[prop] = val;
|
|
54
52
|
}
|
|
55
53
|
}
|
|
56
54
|
|
|
57
|
-
this.$emit('
|
|
55
|
+
this.$emit('update:value', this.value);
|
|
58
56
|
},
|
|
59
57
|
}
|
|
60
58
|
};
|
|
@@ -67,7 +65,7 @@ export default {
|
|
|
67
65
|
{{ t('workload.container.lifecycleHook.postStart.label') }}
|
|
68
66
|
</h3>
|
|
69
67
|
<HookOption
|
|
70
|
-
v-model="postStart"
|
|
68
|
+
v-model:value="postStart"
|
|
71
69
|
:mode="mode"
|
|
72
70
|
@input="update"
|
|
73
71
|
/>
|
|
@@ -78,7 +76,7 @@ export default {
|
|
|
78
76
|
{{ t('workload.container.lifecycleHook.preStop.label') }}
|
|
79
77
|
</h3>
|
|
80
78
|
<HookOption
|
|
81
|
-
v-model="preStop"
|
|
79
|
+
v-model:value="preStop"
|
|
82
80
|
:mode="mode"
|
|
83
81
|
@input="update"
|
|
84
82
|
/>
|
|
@@ -228,9 +228,9 @@ export default {
|
|
|
228
228
|
}).filter((x) => !!x);
|
|
229
229
|
|
|
230
230
|
if ( isArray(this.value) || this.matchingSelectorDisplay ) {
|
|
231
|
-
this.$emit('
|
|
231
|
+
this.$emit('update:value', out);
|
|
232
232
|
} else {
|
|
233
|
-
this.$emit('
|
|
233
|
+
this.$emit('update:value', simplify(out));
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
236
|
}
|
|
@@ -270,7 +270,7 @@ export default {
|
|
|
270
270
|
</div>
|
|
271
271
|
<div
|
|
272
272
|
v-for="(row, index) in rules"
|
|
273
|
-
:key="
|
|
273
|
+
:key="index"
|
|
274
274
|
class="match-expression-row"
|
|
275
275
|
:class="{'view':isView, 'mb-10': index !== rules.length - 1, 'match-expression-row-matching': matchingSelectorDisplay}"
|
|
276
276
|
>
|
|
@@ -284,7 +284,7 @@ export default {
|
|
|
284
284
|
</div>
|
|
285
285
|
<LabeledSelect
|
|
286
286
|
v-else
|
|
287
|
-
v-model="row.matching"
|
|
287
|
+
v-model:value="row.matching"
|
|
288
288
|
:mode="mode"
|
|
289
289
|
:options="matchingSelectOptions"
|
|
290
290
|
:data-testid="`input-match-type-field-control-${index}`"
|
|
@@ -306,7 +306,7 @@ export default {
|
|
|
306
306
|
>
|
|
307
307
|
<LabeledSelect
|
|
308
308
|
v-else
|
|
309
|
-
v-model="row.key"
|
|
309
|
+
v-model:value="row.key"
|
|
310
310
|
:mode="mode"
|
|
311
311
|
:options="keysSelectOptions"
|
|
312
312
|
:data-testid="`input-match-expression-key-control-select-${index}`"
|
|
@@ -320,14 +320,14 @@ export default {
|
|
|
320
320
|
</div>
|
|
321
321
|
<Select
|
|
322
322
|
v-else
|
|
323
|
-
v-model="row.operator"
|
|
323
|
+
v-model:value="row.operator"
|
|
324
324
|
class="operator single"
|
|
325
325
|
:options="ops"
|
|
326
326
|
:clearable="false"
|
|
327
327
|
:reduce="opt=>opt.value"
|
|
328
328
|
:mode="mode"
|
|
329
329
|
:data-testid="`input-match-expression-operator-control-${index}`"
|
|
330
|
-
@
|
|
330
|
+
@update:value="update"
|
|
331
331
|
/>
|
|
332
332
|
</div>
|
|
333
333
|
|
|
@@ -177,7 +177,7 @@ export default {
|
|
|
177
177
|
},
|
|
178
178
|
customPermissionsUpdate() {
|
|
179
179
|
return this.customPermissions.reduce((acc, customPermissionsItem) => {
|
|
180
|
-
const lockedExist = this.roleTemplates.find((roleTemplateItem) => roleTemplateItem.
|
|
180
|
+
const lockedExist = this.roleTemplates.find((roleTemplateItem) => roleTemplateItem.id === customPermissionsItem.key);
|
|
181
181
|
|
|
182
182
|
if (lockedExist.locked) {
|
|
183
183
|
customPermissionsItem['locked'] = true;
|
|
@@ -202,7 +202,7 @@ export default {
|
|
|
202
202
|
},
|
|
203
203
|
|
|
204
204
|
onAdd(principalId) {
|
|
205
|
-
this
|
|
205
|
+
this['principalId'] = principalId;
|
|
206
206
|
this.updateBindings();
|
|
207
207
|
},
|
|
208
208
|
|
|
@@ -218,7 +218,7 @@ export default {
|
|
|
218
218
|
|
|
219
219
|
const bindings = await Promise.all(bindingPromises);
|
|
220
220
|
|
|
221
|
-
this.$emit('
|
|
221
|
+
this.$emit('update:value', bindings);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
},
|
|
@@ -258,7 +258,7 @@ export default {
|
|
|
258
258
|
</template>
|
|
259
259
|
<template v-slot:body>
|
|
260
260
|
<RadioGroup
|
|
261
|
-
v-model="permissionGroup"
|
|
261
|
+
v-model:value="permissionGroup"
|
|
262
262
|
:options="options"
|
|
263
263
|
name="permission-group"
|
|
264
264
|
/>
|
|
@@ -268,11 +268,11 @@ export default {
|
|
|
268
268
|
:class="{'two-column': useTwoColumnsForCustom}"
|
|
269
269
|
>
|
|
270
270
|
<div
|
|
271
|
-
v-for="permission in customPermissionsUpdate"
|
|
272
|
-
:key="
|
|
271
|
+
v-for="(permission, i) in customPermissionsUpdate"
|
|
272
|
+
:key="i"
|
|
273
273
|
>
|
|
274
274
|
<Checkbox
|
|
275
|
-
v-model="permission.value"
|
|
275
|
+
v-model:value="permission.value"
|
|
276
276
|
:disabled="permission.locked"
|
|
277
277
|
class="mb-5"
|
|
278
278
|
:label="permission.label"
|
|
@@ -291,7 +291,7 @@ export default {
|
|
|
291
291
|
<style lang="scss" scoped>
|
|
292
292
|
$detailSize: 11px;
|
|
293
293
|
|
|
294
|
-
|
|
294
|
+
:deep() .type-description {
|
|
295
295
|
font-size: $detailSize;
|
|
296
296
|
}
|
|
297
297
|
|
|
@@ -305,7 +305,7 @@ label.radio {
|
|
|
305
305
|
&.two-column {
|
|
306
306
|
grid-template-columns: 1fr 1fr;
|
|
307
307
|
}
|
|
308
|
-
|
|
308
|
+
:deep() .checkbox-label {
|
|
309
309
|
margin-right: 0;
|
|
310
310
|
}
|
|
311
311
|
}
|
|
@@ -72,7 +72,7 @@ export default {
|
|
|
72
72
|
const bindings = allBindings
|
|
73
73
|
.filter((b) => normalizeId(get(b, this.parentKey)) === normalizeId(this.parentId));
|
|
74
74
|
|
|
75
|
-
this
|
|
75
|
+
this['lastSavedBindings'] = [...bindings];
|
|
76
76
|
|
|
77
77
|
// Add the current user as the project owner. This will get created by default
|
|
78
78
|
if (this.mode === _CREATE && bindings.length === 0 && this.defaultBindingHandler) {
|
|
@@ -82,7 +82,7 @@ export default {
|
|
|
82
82
|
bindings.push(defaultBinding);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
this
|
|
85
|
+
this['bindings'] = bindings;
|
|
86
86
|
},
|
|
87
87
|
|
|
88
88
|
data() {
|
|
@@ -150,7 +150,7 @@ export default {
|
|
|
150
150
|
},
|
|
151
151
|
|
|
152
152
|
onAddMember(bindings) {
|
|
153
|
-
this
|
|
153
|
+
this['bindings'] = [...this.bindings, ...bindings];
|
|
154
154
|
},
|
|
155
155
|
}
|
|
156
156
|
};
|
|
@@ -159,7 +159,7 @@ export default {
|
|
|
159
159
|
<Loading v-if="$fetchState.pending" />
|
|
160
160
|
<ArrayList
|
|
161
161
|
v-else
|
|
162
|
-
v-model="bindings"
|
|
162
|
+
v-model:value="bindings"
|
|
163
163
|
:mode="mode"
|
|
164
164
|
:show-header="true"
|
|
165
165
|
>
|
|
@@ -179,7 +179,6 @@ export default {
|
|
|
179
179
|
<div class="columns row">
|
|
180
180
|
<div class="col span-6">
|
|
181
181
|
<Principal
|
|
182
|
-
:key="row.value.principalId"
|
|
183
182
|
:value="row.value.principalId"
|
|
184
183
|
/>
|
|
185
184
|
</div>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import Vue from 'vue';
|
|
3
2
|
import { mapGetters, mapActions } from 'vuex';
|
|
4
3
|
import { get, set } from '@shell/utils/object';
|
|
5
4
|
import { sortBy } from '@shell/utils/sort';
|
|
@@ -322,14 +321,14 @@ export default {
|
|
|
322
321
|
if (this.nameKey) {
|
|
323
322
|
set(this.value, this.nameKey, val);
|
|
324
323
|
} else {
|
|
325
|
-
this
|
|
324
|
+
this.value.metadata['name'] = val;
|
|
326
325
|
}
|
|
327
|
-
this.$emit('
|
|
326
|
+
this.$emit('update:value', this.value);
|
|
328
327
|
},
|
|
329
328
|
|
|
330
329
|
namespace(val) {
|
|
331
330
|
this.updateNamespace(val);
|
|
332
|
-
this.$emit('
|
|
331
|
+
this.$emit('update:value', this.value);
|
|
333
332
|
},
|
|
334
333
|
|
|
335
334
|
description(val) {
|
|
@@ -338,7 +337,7 @@ export default {
|
|
|
338
337
|
} else {
|
|
339
338
|
this.value.setAnnotation(DESCRIPTION, val);
|
|
340
339
|
}
|
|
341
|
-
this.$emit('
|
|
340
|
+
this.$emit('update:value', this.value);
|
|
342
341
|
},
|
|
343
342
|
},
|
|
344
343
|
|
|
@@ -387,7 +386,7 @@ export default {
|
|
|
387
386
|
true,
|
|
388
387
|
);
|
|
389
388
|
this.$emit('isNamespaceNew', true);
|
|
390
|
-
|
|
389
|
+
this.$nextTick(() => this.$refs.namespace.focus());
|
|
391
390
|
} else {
|
|
392
391
|
this.createNamespace = false;
|
|
393
392
|
this.$store.dispatch(
|
|
@@ -410,7 +409,7 @@ export default {
|
|
|
410
409
|
>
|
|
411
410
|
<LabeledInput
|
|
412
411
|
ref="namespace"
|
|
413
|
-
v-model="namespace"
|
|
412
|
+
v-model:value="namespace"
|
|
414
413
|
:label="t('namespace.label')"
|
|
415
414
|
:placeholder="t('namespace.createNamespace')"
|
|
416
415
|
:disabled="namespaceReallyDisabled"
|
|
@@ -436,7 +435,7 @@ export default {
|
|
|
436
435
|
>
|
|
437
436
|
<LabeledSelect
|
|
438
437
|
v-show="!createNamespace"
|
|
439
|
-
v-model="namespace"
|
|
438
|
+
v-model:value="namespace"
|
|
440
439
|
:clearable="true"
|
|
441
440
|
:options="options"
|
|
442
441
|
:disabled="namespaceReallyDisabled"
|
|
@@ -459,7 +458,7 @@ export default {
|
|
|
459
458
|
<LabeledInput
|
|
460
459
|
ref="name"
|
|
461
460
|
key="name"
|
|
462
|
-
v-model="name"
|
|
461
|
+
v-model:value="name"
|
|
463
462
|
:label="t(nameLabel)"
|
|
464
463
|
:placeholder="t(namePlaceholder)"
|
|
465
464
|
:disabled="nameReallyDisabled"
|
|
@@ -479,7 +478,7 @@ export default {
|
|
|
479
478
|
>
|
|
480
479
|
<LabeledInput
|
|
481
480
|
key="description"
|
|
482
|
-
v-model="description"
|
|
481
|
+
v-model:value="description"
|
|
483
482
|
:mode="mode"
|
|
484
483
|
:disabled="descriptionDisabled"
|
|
485
484
|
:label="t(descriptionLabel)"
|
|
@@ -490,8 +489,8 @@ export default {
|
|
|
490
489
|
</div>
|
|
491
490
|
|
|
492
491
|
<div
|
|
493
|
-
v-for="slot in extraColumns"
|
|
494
|
-
:key="
|
|
492
|
+
v-for="(slot, i) in extraColumns"
|
|
493
|
+
:key="i"
|
|
495
494
|
:class="{ col: true, [colSpan]: true }"
|
|
496
495
|
>
|
|
497
496
|
<slot :name="slot" />
|
|
@@ -524,7 +523,7 @@ button {
|
|
|
524
523
|
max-height: $input-height;
|
|
525
524
|
}
|
|
526
525
|
|
|
527
|
-
.namespace-select
|
|
526
|
+
.namespace-select :deep() {
|
|
528
527
|
.labeled-select {
|
|
529
528
|
min-width: 40%;
|
|
530
529
|
|