dashboard-shell-shell 3.0.5-test.6 → 3.0.5-test.61
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/brand/csp/favicon.png +0 -0
- package/assets/brand/harvester/favicon.png +0 -0
- package/assets/brand/suse/favicon.png +0 -0
- package/assets/icons/demo.css +539 -0
- package/assets/icons/demo.css:Zone.Identifier +0 -0
- package/assets/icons/demo_index.html +1131 -0
- package/assets/icons/demo_index.html:Zone.Identifier +0 -0
- package/assets/icons/iconfont.css +219 -0
- package/assets/icons/iconfont.css:Zone.Identifier +0 -0
- package/assets/icons/iconfont.js +1 -0
- package/assets/icons/iconfont.js:Zone.Identifier +0 -0
- package/assets/icons/iconfont.json +324 -0
- package/assets/icons/iconfont.json:Zone.Identifier +0 -0
- package/assets/icons/iconfont.ttf +0 -0
- package/assets/icons/iconfont.ttf:Zone.Identifier +0 -0
- package/assets/icons/iconfont.woff +0 -0
- package/assets/icons/iconfont.woff2 +0 -0
- package/assets/icons/iconfont.woff2:Zone.Identifier +0 -0
- package/assets/icons/iconfont.woff:Zone.Identifier +0 -0
- package/assets/iconsNew/demo.css +539 -0
- package/assets/iconsNew/demo.css:Zone.Identifier +0 -0
- package/assets/iconsNew/demo_index.html +303 -0
- package/assets/iconsNew/demo_index.html:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.css +43 -0
- package/assets/iconsNew/iconfont.css:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.js +1 -0
- package/assets/iconsNew/iconfont.js:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.json +44 -0
- package/assets/iconsNew/iconfont.json:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.ttf +0 -0
- package/assets/iconsNew/iconfont.ttf:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.woff +0 -0
- package/assets/iconsNew/iconfont.woff2 +0 -0
- package/assets/iconsNew/iconfont.woff2:Zone.Identifier +0 -0
- package/assets/iconsNew/iconfont.woff:Zone.Identifier +0 -0
- package/assets/images/API.svg +3 -0
- package/assets/images/action.svg +6 -0
- package/assets/images/login/password.svg +20 -0
- package/assets/images/login/user.svg +6 -0
- package/assets/images/login-bg.png +0 -0
- package/assets/images/login-left.png +0 -0
- package/assets/images/login-logo.svg +44 -0
- package/assets/images/logo.png +0 -0
- package/assets/images/logo.svg +47 -0
- package/assets/images/pl/dark/logo.png +0 -0
- package/assets/images/pl/half-logo.svg +2 -23
- package/assets/images/pl/harvester.png +0 -0
- package/assets/images/pl/logo.png +0 -0
- package/assets/images/promp-yellow.svg +5 -0
- package/assets/images/user.png +0 -0
- package/assets/styles/all.scss +83 -0
- package/assets/styles/app.scss +5 -0
- package/assets/styles/base/_basic.scss +2 -2
- package/assets/styles/base/_helpers.scss +1 -1
- package/assets/styles/base/_mixins.scss +1 -1
- package/assets/styles/base/_typography.scss +2 -1
- package/assets/styles/base/_variables.scss +14 -7
- package/assets/styles/fonts/_icons.scss +3 -2
- package/assets/styles/global/_button.scss +44 -26
- package/assets/styles/global/_columns.scss +3 -1
- package/assets/styles/global/_form.scss +46 -13
- package/assets/styles/global/_labeled-input.scss +54 -26
- package/assets/styles/global/_layout.scss +8 -3
- package/assets/styles/global/_select.scss +25 -17
- package/assets/styles/global/_table.scss +7 -1
- package/assets/styles/global/_tooltip.scss +60 -8
- package/assets/styles/themes/_dark.scss +3 -0
- package/assets/styles/themes/_light.scss +69 -46
- package/assets/styles/vendor/vue-select.scss +24 -10
- package/assets/translations/en-us.yaml +92 -4
- package/assets/translations/zh-hans.yaml +668 -206
- package/components/ActionDropdown.vue +2 -1
- package/components/ActionMenu.vue +2 -2
- package/components/ActionMenuShell.vue +2 -0
- package/components/AppModal.vue +46 -5
- package/components/BrandImage.vue +1 -0
- package/components/ButtonDropdown.vue +28 -4
- package/components/ButtonMultiAction.vue +1 -0
- package/components/ClusterIconMenu.vue +2 -2
- package/components/CodeMirror.vue +26 -10
- package/components/ConsumptionGauge.vue +24 -5
- package/components/ContainerResourceLimit.vue +2 -2
- package/components/CopyToClipboard.vue +15 -0
- package/components/CruResource.vue +12 -10
- package/components/CruResourceFooter.vue +2 -2
- package/components/DashboardOptions.vue +29 -17
- package/components/DotState.vue +84 -0
- package/components/Drawer/Chrome.vue +2 -2
- package/components/Drawer/ResourceDetailDrawer/ConfigTab.vue +30 -27
- package/components/Drawer/ResourceDetailDrawer/YamlTab.vue +1 -1
- package/components/Drawer/ResourceDetailDrawer/index.vue +5 -4
- package/components/ExplorerMembers.vue +28 -4
- package/components/ExplorerProjectsNamespaces.vue +19 -5
- package/components/GlobalRoleBindings.vue +23 -4
- package/components/GrafanaDashboard.vue +4 -4
- package/components/GrowlManager.vue +3 -1
- package/components/HardwareResourceGauge.vue +39 -3
- package/components/IndentedPanel.vue +4 -10
- package/components/InfoBox.vue +3 -3
- package/components/InputOrDisplay.vue +28 -2
- package/components/LabelValue.vue +20 -1
- package/components/ModalWithCard.vue +12 -3
- package/components/PodSecurityAdmission.vue +2 -2
- package/components/PromptModal.vue +1 -1
- package/components/PromptRemove.vue +53 -12
- package/components/RelatedResources.vue +3 -0
- package/components/Resource/Detail/Metadata/IdentifyingInformation/index.vue +1 -3
- package/components/Resource/Detail/Metadata/KeyValue.vue +8 -4
- package/components/Resource/Detail/Metadata/index.vue +3 -1
- package/components/Resource/Detail/TitleBar/Title.vue +4 -3
- package/components/Resource/Detail/TitleBar/Top.vue +2 -0
- package/components/Resource/Detail/TitleBar/composables.ts +16 -1
- package/components/Resource/Detail/TitleBar/index.vue +125 -27
- package/components/ResourceDetail/Masthead/index.vue +1 -1
- package/components/ResourceDetail/Masthead/latest.vue +1 -1
- package/components/ResourceDetail/Masthead/legacy.vue +183 -39
- package/components/ResourceDetail/legacy.vue +47 -29
- package/components/ResourceList/Masthead.vue +222 -54
- package/components/ResourceList/ResourceLoadingIndicator.vue +5 -2
- package/components/ResourceTable.vue +40 -2
- package/components/SideNav.vue +74 -20
- package/components/SingleClusterInfo.vue +2 -1
- package/components/SortableTable/THead.vue +79 -4
- package/components/SortableTable/index.vue +1053 -464
- package/components/SortableTable/paging.js +26 -16
- package/components/SortableTable/selection.js +2 -2
- package/components/Tabbed/Tab.vue +3 -3
- package/components/Tabbed/index.vue +53 -30
- package/components/YamlEditor.vue +0 -1
- package/components/auth/Principal.vue +51 -19
- package/components/auth/RoleDetailEdit.vue +69 -14
- package/components/auth/SelectPrincipal.vue +1 -0
- package/components/breadcrumb/index.vue +119 -0
- package/components/form/ArrayList.vue +177 -152
- package/components/form/ArrayListGrouped.vue +13 -3
- package/components/form/ArrayListSelect.vue +1 -1
- package/components/form/BannerSettings.vue +64 -59
- package/components/form/ChangePassword.vue +5 -5
- package/components/form/ClusterAppearance.vue +4 -3
- package/components/form/ColorInput.vue +32 -8
- package/components/form/Command.vue +4 -5
- package/components/form/Conditions.vue +15 -1
- package/components/form/Footer.vue +12 -8
- package/components/form/HealthCheck.vue +0 -2
- package/components/form/HookOption.vue +87 -58
- package/components/form/InputWithSelect.vue +8 -4
- package/components/form/KeyValue.vue +66 -8
- package/components/form/LabeledSelect.vue +216 -242
- package/components/form/Labels.vue +4 -4
- package/components/form/MatchExpressions.vue +28 -11
- package/components/form/Members/ClusterMembershipEditor.vue +1 -1
- package/components/form/Members/ClusterPermissionsEditor.vue +61 -43
- package/components/form/Members/MembershipEditor.vue +4 -4
- package/components/form/Members/ProjectMembershipEditor.vue +1 -1
- package/components/form/NameNsDescription.vue +62 -22
- package/components/form/Networking.vue +6 -9
- package/components/form/NodeAffinity.vue +29 -28
- package/components/form/Password.vue +16 -7
- package/components/form/PodAffinity.vue +24 -25
- package/components/form/Probe.vue +15 -11
- package/components/form/ProjectMemberEditor.vue +66 -48
- package/components/form/ResourceQuota/Namespace.vue +4 -4
- package/components/form/ResourceQuota/NamespaceRow.vue +26 -23
- package/components/form/ResourceQuota/Project.vue +4 -4
- package/components/form/ResourceQuota/ProjectRow.vue +38 -35
- package/components/form/ResourceSelector.vue +1 -1
- package/components/form/SecretSelector.vue +24 -23
- package/components/form/Security.vue +1 -3
- package/components/form/Select.vue +12 -3
- package/components/form/ServiceNameSelect.vue +2 -5
- package/components/form/ServicePorts.vue +149 -75
- package/components/form/SimpleSecretSelector.vue +29 -9
- package/components/form/Taints.vue +2 -1
- package/components/form/Tolerations.vue +13 -9
- package/components/form/UnitInput.vue +8 -3
- package/components/form/ValueFromResource.vue +110 -96
- package/components/form/WorkloadPorts.vue +143 -123
- package/components/formatter/BadgeStateFormatter.vue +8 -5
- package/components/formatter/LiveDate.vue +3 -3
- package/components/formatter/WorkloadHealthScale.vue +4 -3
- package/components/nav/Favorite.vue +5 -1
- package/components/nav/Group.vue +139 -99
- package/components/nav/Header.vue +138 -164
- package/components/nav/HeaderPageActionMenu.vue +1 -0
- package/components/nav/NamespaceFilter.vue +34 -36
- package/components/nav/TopLevelMenu.vue +62 -25
- package/components/nav/Type.vue +73 -43
- package/composables/useClickOutside.ts +1 -1
- package/config/menuRouteMap.js +10 -0
- package/config/private-label.js +14 -11
- package/config/product/auth.js +17 -7
- package/config/product/explorer.js +32 -10
- package/config/product/manager.js +28 -17
- package/config/product/settings.js +19 -9
- package/config/product/uiplugins.js +13 -10
- package/config/router/navigation-guards/index.js +61 -3
- package/config/settings.ts +28 -0
- package/config/table-headers.js +3 -2
- package/detail/node.vue +28 -23
- package/dialog/AddCustomBadgeDialog.vue +17 -9
- package/dialog/ForceMachineRemoveDialog.vue +2 -2
- package/dialog/RollbackWorkloadDialog.vue +1 -1
- package/dialog/ScalePoolDownDialog.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/external-metric.vue +1 -1
- package/edit/autoscaling.horizontalpodautoscaler/hpa-scaling-rule.vue +9 -6
- package/edit/autoscaling.horizontalpodautoscaler/index.vue +3 -1
- package/edit/autoscaling.horizontalpodautoscaler/metric-identifier.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/metric-object-reference.vue +7 -5
- package/edit/autoscaling.horizontalpodautoscaler/metric-target.vue +5 -3
- package/edit/autoscaling.horizontalpodautoscaler/metrics-row.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/object-metric.vue +2 -2
- package/edit/autoscaling.horizontalpodautoscaler/pod-metric.vue +1 -1
- package/edit/autoscaling.horizontalpodautoscaler/resource-metric.vue +2 -2
- package/edit/configmap.vue +4 -0
- package/edit/logging-flow/index.vue +1 -2
- package/edit/logging.banzaicloud.io.output/providers/awsElasticsearch.vue +3 -3
- package/edit/logging.banzaicloud.io.output/providers/azurestorage.vue +19 -19
- package/edit/logging.banzaicloud.io.output/providers/cloudwatch.vue +23 -23
- package/edit/logging.banzaicloud.io.output/providers/datadog.vue +19 -19
- package/edit/logging.banzaicloud.io.output/providers/elasticsearch.vue +14 -14
- package/edit/logging.banzaicloud.io.output/providers/forward.vue +12 -12
- package/edit/logging.banzaicloud.io.output/providers/gcs.vue +23 -23
- package/edit/logging.banzaicloud.io.output/providers/gelf.vue +6 -6
- package/edit/logging.banzaicloud.io.output/providers/kafka.vue +10 -10
- package/edit/logging.banzaicloud.io.output/providers/kinesisStream.vue +8 -8
- package/edit/logging.banzaicloud.io.output/providers/logdna.vue +17 -17
- package/edit/logging.banzaicloud.io.output/providers/logz.vue +7 -7
- package/edit/logging.banzaicloud.io.output/providers/loki.vue +12 -12
- package/edit/logging.banzaicloud.io.output/providers/newrelic.vue +3 -3
- package/edit/logging.banzaicloud.io.output/providers/opensearch.vue +14 -14
- package/edit/logging.banzaicloud.io.output/providers/redis.vue +6 -6
- package/edit/logging.banzaicloud.io.output/providers/s3.vue +23 -23
- package/edit/logging.banzaicloud.io.output/providers/splunkHec.vue +13 -13
- package/edit/logging.banzaicloud.io.output/providers/sumologic.vue +2 -2
- package/edit/logging.banzaicloud.io.output/providers/syslog.vue +54 -54
- package/edit/management.cattle.io.user.vue +17 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +19 -19
- package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +50 -26
- package/edit/monitoring.coreos.com.alertmanagerconfig/routeConfig.vue +36 -12
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/dingding.vue +32 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +6 -6
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/message.vue +52 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +10 -10
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +4 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +4 -4
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/snmp.vue +45 -0
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +1 -1
- package/edit/monitoring.coreos.com.alertmanagerconfig/types/work.vue +31 -0
- package/edit/monitoring.coreos.com.receiver/types/email.vue +6 -6
- package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +10 -10
- package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +5 -5
- package/edit/monitoring.coreos.com.receiver/types/slack.vue +4 -4
- package/edit/namespace.vue +1 -2
- package/edit/networking.k8s.io.ingress/Certificate.vue +14 -5
- package/edit/networking.k8s.io.ingress/DefaultBackend.vue +2 -2
- package/edit/networking.k8s.io.ingress/Rule.vue +5 -11
- package/edit/networking.k8s.io.ingress/RulePath.vue +105 -96
- package/edit/networking.k8s.io.networkpolicy/PolicyRule.vue +3 -3
- package/edit/networking.k8s.io.networkpolicy/PolicyRulePort.vue +4 -2
- package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +12 -11
- package/edit/networking.k8s.io.networkpolicy/index.vue +1 -1
- package/edit/persistentvolume/index.vue +3 -1
- package/edit/persistentvolumeclaim.vue +2 -0
- package/edit/provisioning.cattle.io.cluster/tabs/Basics.vue +1 -1
- package/edit/secret/index.vue +2 -2
- package/edit/service.vue +4 -1
- package/edit/storage.k8s.io.storageclass/index.vue +10 -8
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/aws-ebs.vue +34 -27
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/gce-pd.vue +15 -13
- package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/vsphere-volume.vue +41 -39
- package/edit/token.vue +31 -12
- package/edit/workload/Job.vue +31 -34
- package/edit/workload/Upgrading.vue +5 -5
- package/edit/workload/index.vue +22 -18
- package/edit/workload/storage/Mount.vue +1 -0
- package/edit/workload/storage/awsElasticBlockStore.vue +9 -7
- package/edit/workload/storage/azureDisk.vue +14 -10
- package/edit/workload/storage/azureFile.vue +9 -7
- package/edit/workload/storage/csi/index.vue +6 -9
- package/edit/workload/storage/emptyDir.vue +7 -5
- package/edit/workload/storage/gcePersistentDisk.vue +9 -7
- package/edit/workload/storage/hostPath.vue +7 -5
- package/edit/workload/storage/nfs.vue +8 -6
- package/edit/workload/storage/persistentVolumeClaim/index.vue +12 -10
- package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +20 -15
- package/edit/workload/storage/secret.vue +9 -6
- package/edit/workload/storage/vsphereVolume.vue +11 -7
- package/initialize/app-extended.js +7 -1
- package/list/management.cattle.io.podsecurityadmissionconfigurationtemplate.vue +8 -6
- package/list/management.cattle.io.setting.vue +22 -13
- package/list/management.cattle.io.user.vue +7 -3
- package/list/namespace.vue +3 -0
- package/list/provisioning.cattle.io.cluster.vue +6 -7
- package/mixins/brand.js +17 -0
- package/mixins/create-edit-view/impl.js +10 -0
- package/models/provisioning.cattle.io.cluster.js +19 -18
- package/models/workload.js +2 -2
- package/package.json +1 -1
- package/pages/account/index.vue +93 -58
- package/pages/account/pri.vue +229 -0
- package/pages/auth/login.vue +216 -51
- package/pages/auth/setup.vue +175 -33
- package/pages/c/_cluster/_product/namespaces.vue +5 -5
- package/pages/c/_cluster/auth/roles/index.vue +83 -8
- package/pages/c/_cluster/explorer/ConfigBadge.vue +1 -1
- package/pages/c/_cluster/explorer/index.vue +2 -1
- package/pages/c/_cluster/explorer/tools/index.vue +6 -6
- package/pages/c/_cluster/monitoring/monitor/index.vue +2 -2
- package/pages/c/_cluster/settings/banners.vue +174 -102
- package/pages/c/_cluster/settings/brand.vue +350 -302
- package/pages/c/_cluster/settings/performance.vue +61 -38
- package/pages/home.vue +119 -37
- package/pages/prefs.vue +27 -25
- package/pkg/tsconfig.json +9 -9
- package/pkg/vue.config.js +1 -1
- package/plugins/dashboard-store/actions.js +1 -1
- package/plugins/dashboard-store/resource-class.js +28 -27
- package/promptRemove/mixin/roleDeletionCheck.js +2 -2
- package/public/index.html +4 -4
- package/rancher-components/BadgeState/BadgeState.vue +38 -55
- package/rancher-components/Banner/Banner.vue +25 -9
- package/rancher-components/Card/Card.vue +7 -8
- package/rancher-components/Form/Checkbox/Checkbox.vue +4 -0
- package/rancher-components/Form/LabeledInput/LabeledInput.vue +42 -3
- package/rancher-components/Form/Radio/RadioButton.vue +35 -11
- package/rancher-components/Form/Radio/RadioGroup.vue +22 -6
- package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +3 -3
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.vue +1 -0
- package/rancher-components/LabeledTooltip/LabeledTooltip.vue +41 -4
- package/rancher-components/RcDropdown/RcDropdown.vue +35 -7
- package/rancher-components/RcDropdown/RcDropdownItem.vue +2 -2
- package/rancher-components/RcDropdown/RcDropdownMenu.vue +12 -6
- package/rancher-components/RcDropdown/types.ts +1 -0
- package/rancher-components/StringList/StringList.vue +1 -1
- package/scripts/build-pkg.sh +18 -23
- package/scripts/publish-shell.sh +1 -1
- package/static/favicon.ico +0 -0
- package/static/favicon.png +0 -0
- package/static/loading-indicator.html +3 -3
- package/store/i18n.js +6 -2
- package/store/modal.ts +3 -3
- package/store/prefs.js +11 -4
- package/store/type-map.js +30 -2
- package/types/shell/index.d.ts +86 -97
- package/utils/error.js +109 -8
- package/utils/errorTranslate.json +1740 -0
- package/utils/errorTranslateNew.json +39 -0
- package/utils/roleFiltering.js +33 -0
- package/utils/router.js +21 -0
- package/utils/select.js +26 -3
- package/utils/string.js +8 -5
- package/utils/title.ts +1 -1
- package/vue.config.js +1 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { get } from '@shell/utils/object';;
|
|
3
|
+
import { useRuntimeFlag } from '@shell/composables/useRuntimeFlag';
|
|
4
|
+
import { useStore } from 'vuex';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
|
|
8
|
+
name: 'MastheadBreadcrumb',
|
|
9
|
+
|
|
10
|
+
components: {
|
|
11
|
+
},
|
|
12
|
+
props: {
|
|
13
|
+
resourceTypeLabel: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: ''
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
resource: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: null,
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
realMode: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: 'view',
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
setup() {
|
|
31
|
+
const store = useStore();
|
|
32
|
+
const { featureDropdownMenu } = useRuntimeFlag(store);
|
|
33
|
+
|
|
34
|
+
return { featureDropdownMenu };
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
data() {
|
|
38
|
+
return {
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
computed: {
|
|
43
|
+
|
|
44
|
+
demoDisplay() {
|
|
45
|
+
|
|
46
|
+
const resources = this.$route.params?.resource || ''
|
|
47
|
+
|
|
48
|
+
let productId = this.$store.getters['type-map/groupForBasicType'](this.$store.getters['productId'], resources);
|
|
49
|
+
const parts = productId?.split('::') || [];
|
|
50
|
+
const newString = 'root';
|
|
51
|
+
|
|
52
|
+
if (!parts?.includes(newString)) {
|
|
53
|
+
parts?.unshift(newString); // 将字符串添加到数组第一位
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const partsEn = parts.map((item) => {
|
|
57
|
+
return this.$store.getters['i18n/t'](`typeLabel."${ item.toLowerCase() }"`);
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
return partsEn;
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
methods: {
|
|
66
|
+
get,
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
</script>
|
|
70
|
+
|
|
71
|
+
<template>
|
|
72
|
+
<div class="masthead">
|
|
73
|
+
<div class="title">
|
|
74
|
+
<!-- 标题区域 -->
|
|
75
|
+
<div
|
|
76
|
+
class="excram-list"
|
|
77
|
+
>
|
|
78
|
+
<span
|
|
79
|
+
v-for="(item,index) in demoDisplay"
|
|
80
|
+
:key="index"
|
|
81
|
+
>
|
|
82
|
+
<span>{{ item }}</span>
|
|
83
|
+
<span>/</span>
|
|
84
|
+
</span>
|
|
85
|
+
<span class="excram-last-name">
|
|
86
|
+
{{ (realMode === 'view'? '查看': realMode === 'edit' ? '编辑':'创建') + resourceTypeLabel }}
|
|
87
|
+
</span>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
</template>
|
|
92
|
+
|
|
93
|
+
<style lang='scss' scoped>
|
|
94
|
+
|
|
95
|
+
.excram-list{
|
|
96
|
+
font-size: 14px;
|
|
97
|
+
margin-bottom: 20px;
|
|
98
|
+
}
|
|
99
|
+
.excram-last-name{
|
|
100
|
+
color: var(--link);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.detailIcon-span{
|
|
104
|
+
width: 24px;
|
|
105
|
+
height: 24px;
|
|
106
|
+
display: inline-block;
|
|
107
|
+
position: relative;
|
|
108
|
+
background: var(--primary);
|
|
109
|
+
margin-right: 10px;
|
|
110
|
+
}
|
|
111
|
+
.detailIcon{
|
|
112
|
+
position: absolute;
|
|
113
|
+
color: #fff;
|
|
114
|
+
font-size: 38px;
|
|
115
|
+
left: 4px;
|
|
116
|
+
top: -2px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
</style>
|
|
@@ -263,174 +263,180 @@ export default {
|
|
|
263
263
|
role="group"
|
|
264
264
|
:aria-label="title || t('generic.ariaLabel.arrayList')"
|
|
265
265
|
>
|
|
266
|
-
<div
|
|
267
|
-
v-if="title"
|
|
268
|
-
class="clearfix"
|
|
269
|
-
role="group"
|
|
270
|
-
>
|
|
271
|
-
<slot name="title">
|
|
272
|
-
<h3>
|
|
273
|
-
{{ title }}
|
|
274
|
-
<span
|
|
275
|
-
v-if="required"
|
|
276
|
-
class="required"
|
|
277
|
-
aria-hidden="true"
|
|
278
|
-
>*</span>
|
|
279
|
-
<i
|
|
280
|
-
v-if="showProtip"
|
|
281
|
-
v-clean-tooltip="{content: protip, triggers: ['hover', 'touch', 'focus'] }"
|
|
282
|
-
class="icon icon-info"
|
|
283
|
-
tabindex="0"
|
|
284
|
-
/>
|
|
285
|
-
</h3>
|
|
286
|
-
</slot>
|
|
287
|
-
</div>
|
|
288
266
|
|
|
289
|
-
<div>
|
|
290
|
-
<
|
|
267
|
+
<div class="row">
|
|
268
|
+
<div v-if="title" style="width: 100%;" class="col">
|
|
291
269
|
<div
|
|
292
|
-
|
|
293
|
-
class="array-list-header-group"
|
|
270
|
+
class="clearfix"
|
|
294
271
|
role="group"
|
|
295
272
|
>
|
|
296
|
-
<slot name="
|
|
297
|
-
<
|
|
298
|
-
{{
|
|
299
|
-
|
|
273
|
+
<slot name="title">
|
|
274
|
+
<h3>
|
|
275
|
+
{{ title }}
|
|
276
|
+
<span
|
|
277
|
+
v-if="required"
|
|
278
|
+
class="required"
|
|
279
|
+
aria-hidden="true"
|
|
280
|
+
>*</span>
|
|
281
|
+
<i
|
|
282
|
+
v-if="showProtip"
|
|
283
|
+
v-clean-tooltip="{content: protip, triggers: ['hover', 'touch', 'focus'] }"
|
|
284
|
+
class="icon icon-info"
|
|
285
|
+
tabindex="0"
|
|
286
|
+
/>
|
|
287
|
+
</h3>
|
|
300
288
|
</slot>
|
|
301
289
|
</div>
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
290
|
+
</div>
|
|
291
|
+
<div style="width: 100%;" class="col">
|
|
292
|
+
<div>
|
|
293
|
+
<template v-if="rows.length">
|
|
294
|
+
<div
|
|
295
|
+
v-if="showHeader"
|
|
296
|
+
class="array-list-header-group"
|
|
297
|
+
role="group"
|
|
298
|
+
>
|
|
299
|
+
<slot name="column-headers">
|
|
300
|
+
<label class="value text-label mb-10">
|
|
301
|
+
{{ valueLabel }}
|
|
302
|
+
</label>
|
|
303
|
+
</slot>
|
|
304
|
+
</div>
|
|
305
|
+
<div
|
|
306
|
+
v-for="(row, idx) in rows"
|
|
307
|
+
:key="idx"
|
|
308
|
+
:data-testid="`${componentTestid}-box${ idx }`"
|
|
309
|
+
class="box"
|
|
310
|
+
:class="{'hide-remove-is-view': isView}"
|
|
311
|
+
role="group"
|
|
312
|
+
>
|
|
320
313
|
<slot
|
|
321
|
-
name="
|
|
314
|
+
name="columns"
|
|
315
|
+
:queueUpdate="queueUpdate"
|
|
316
|
+
:i="idx"
|
|
317
|
+
:rows="rows"
|
|
322
318
|
:row="row"
|
|
323
319
|
:mode="mode"
|
|
324
320
|
:isView="isView"
|
|
325
|
-
:queue-update="queueUpdate"
|
|
326
321
|
>
|
|
327
|
-
<
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
322
|
+
<div class="value">
|
|
323
|
+
<slot
|
|
324
|
+
name="value"
|
|
325
|
+
:row="row"
|
|
326
|
+
:mode="mode"
|
|
327
|
+
:isView="isView"
|
|
328
|
+
:queue-update="queueUpdate"
|
|
329
|
+
>
|
|
330
|
+
<TextAreaAutoGrow
|
|
331
|
+
v-if="valueMultiline"
|
|
332
|
+
ref="value"
|
|
333
|
+
v-model:value="row.value"
|
|
334
|
+
:data-testid="`${componentTestid}-textarea-${idx}`"
|
|
335
|
+
:placeholder="valuePlaceholder"
|
|
336
|
+
:mode="mode"
|
|
337
|
+
:disabled="disabled"
|
|
338
|
+
:aria-label="a11yLabel ? `${a11yLabel} ${t('generic.ariaLabel.genericRow', {index: idx+1})}` : undefined"
|
|
339
|
+
@paste="onPaste(idx, $event)"
|
|
340
|
+
@update:value="queueUpdate"
|
|
341
|
+
/>
|
|
342
|
+
<LabeledInput
|
|
343
|
+
v-else-if="rules.length > 0"
|
|
344
|
+
ref="value"
|
|
345
|
+
v-model:value="row.value"
|
|
346
|
+
:data-testid="`${componentTestid}-labeled-input-${idx}`"
|
|
347
|
+
:placeholder="valuePlaceholder"
|
|
348
|
+
:disabled="isView || disabled"
|
|
349
|
+
:rules="rules"
|
|
350
|
+
:compact="false"
|
|
351
|
+
:aria-label="a11yLabel ? `${a11yLabel} ${t('generic.ariaLabel.genericRow', {index: idx+1})}` : undefined"
|
|
352
|
+
@paste="onPaste(idx, $event)"
|
|
353
|
+
@update:value="queueUpdate"
|
|
354
|
+
/>
|
|
355
|
+
<input
|
|
356
|
+
v-else
|
|
357
|
+
ref="value"
|
|
358
|
+
v-model="row.value"
|
|
359
|
+
:data-testid="`${componentTestid}-input-${idx}`"
|
|
360
|
+
:placeholder="valuePlaceholder"
|
|
361
|
+
:disabled="isView || disabled"
|
|
362
|
+
:aria-label="a11yLabel ? `${a11yLabel} ${t('generic.ariaLabel.genericRow', {index: idx+1})}` : undefined"
|
|
363
|
+
@paste="onPaste(idx, $event)"
|
|
364
|
+
>
|
|
365
|
+
</slot>
|
|
366
|
+
</div>
|
|
362
367
|
</slot>
|
|
368
|
+
<div
|
|
369
|
+
v-if="showRemove && !isView"
|
|
370
|
+
class="remove"
|
|
371
|
+
>
|
|
372
|
+
<slot
|
|
373
|
+
name="remove-button"
|
|
374
|
+
:remove="() => remove(row, idx)"
|
|
375
|
+
:i="idx"
|
|
376
|
+
:row="row"
|
|
377
|
+
>
|
|
378
|
+
<button
|
|
379
|
+
type="button"
|
|
380
|
+
:disabled="isView"
|
|
381
|
+
class="btn role-link"
|
|
382
|
+
:data-testid="`${componentTestid}-remove-item-${idx}`"
|
|
383
|
+
:aria-label="t('generic.ariaLabel.remove', {index: idx+1})"
|
|
384
|
+
role="button"
|
|
385
|
+
@click="remove(row, idx)"
|
|
386
|
+
>
|
|
387
|
+
{{ _removeLabel }}
|
|
388
|
+
</button>
|
|
389
|
+
</slot>
|
|
390
|
+
</div>
|
|
391
|
+
<slot
|
|
392
|
+
name="value-sub-row"
|
|
393
|
+
:row="row"
|
|
394
|
+
:mode="mode"
|
|
395
|
+
:isView="isView"
|
|
396
|
+
/>
|
|
363
397
|
</div>
|
|
364
|
-
</
|
|
398
|
+
</template>
|
|
399
|
+
<div v-else>
|
|
400
|
+
<slot name="empty">
|
|
401
|
+
<div
|
|
402
|
+
v-if="mode==='view'"
|
|
403
|
+
class="text-muted"
|
|
404
|
+
>
|
|
405
|
+
—
|
|
406
|
+
</div>
|
|
407
|
+
</slot>
|
|
408
|
+
</div>
|
|
365
409
|
<div
|
|
366
|
-
v-if="
|
|
367
|
-
class="
|
|
410
|
+
v-if="showAdd && !isView"
|
|
411
|
+
class="footer"
|
|
368
412
|
>
|
|
369
413
|
<slot
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
:
|
|
373
|
-
:row="row"
|
|
414
|
+
v-if="showAdd"
|
|
415
|
+
name="add"
|
|
416
|
+
:add="add"
|
|
374
417
|
>
|
|
375
418
|
<button
|
|
376
419
|
type="button"
|
|
377
|
-
|
|
378
|
-
class="
|
|
379
|
-
:
|
|
380
|
-
:
|
|
420
|
+
class="btn role-tertiary add"
|
|
421
|
+
:class="[addClass]"
|
|
422
|
+
:disabled="loading || disableAdd"
|
|
423
|
+
:data-testid="`${componentTestid}-button`"
|
|
424
|
+
:aria-label="_addLabel"
|
|
381
425
|
role="button"
|
|
382
|
-
@click="
|
|
426
|
+
@click="add()"
|
|
383
427
|
>
|
|
384
|
-
|
|
428
|
+
<i
|
|
429
|
+
class="mr-5 icon"
|
|
430
|
+
:class="loading ? ['icon-lg', 'icon-spinner','icon-spin']: [addIcon]"
|
|
431
|
+
/>
|
|
432
|
+
{{ _addLabel }}
|
|
385
433
|
</button>
|
|
386
434
|
</slot>
|
|
387
435
|
</div>
|
|
388
|
-
<slot
|
|
389
|
-
name="value-sub-row"
|
|
390
|
-
:row="row"
|
|
391
|
-
:mode="mode"
|
|
392
|
-
:isView="isView"
|
|
393
|
-
/>
|
|
394
436
|
</div>
|
|
395
|
-
</template>
|
|
396
|
-
<div v-else>
|
|
397
|
-
<slot name="empty">
|
|
398
|
-
<div
|
|
399
|
-
v-if="mode==='view'"
|
|
400
|
-
class="text-muted"
|
|
401
|
-
>
|
|
402
|
-
—
|
|
403
|
-
</div>
|
|
404
|
-
</slot>
|
|
405
|
-
</div>
|
|
406
|
-
<div
|
|
407
|
-
v-if="showAdd && !isView"
|
|
408
|
-
class="footer mmt-6"
|
|
409
|
-
>
|
|
410
|
-
<slot
|
|
411
|
-
v-if="showAdd"
|
|
412
|
-
name="add"
|
|
413
|
-
:add="add"
|
|
414
|
-
>
|
|
415
|
-
<button
|
|
416
|
-
type="button"
|
|
417
|
-
class="btn role-tertiary add"
|
|
418
|
-
:class="[addClass]"
|
|
419
|
-
:disabled="loading || disableAdd"
|
|
420
|
-
:data-testid="`${componentTestid}-button`"
|
|
421
|
-
:aria-label="_addLabel"
|
|
422
|
-
role="button"
|
|
423
|
-
@click="add()"
|
|
424
|
-
>
|
|
425
|
-
<i
|
|
426
|
-
class="mr-5 icon"
|
|
427
|
-
:class="loading ? ['icon-lg', 'icon-spinner','icon-spin']: [addIcon]"
|
|
428
|
-
/>
|
|
429
|
-
{{ _addLabel }}
|
|
430
|
-
</button>
|
|
431
|
-
</slot>
|
|
432
437
|
</div>
|
|
433
438
|
</div>
|
|
439
|
+
|
|
434
440
|
</div>
|
|
435
441
|
</template>
|
|
436
442
|
|
|
@@ -444,26 +450,35 @@ export default {
|
|
|
444
450
|
}
|
|
445
451
|
|
|
446
452
|
.box {
|
|
447
|
-
display: grid;
|
|
448
|
-
grid-template-columns: auto $array-list-remove-margin;
|
|
449
|
-
align-items: center;
|
|
450
|
-
margin-bottom: 10px;
|
|
453
|
+
// display: grid;
|
|
454
|
+
// grid-template-columns: auto $array-list-remove-margin;
|
|
455
|
+
// align-items: center;
|
|
456
|
+
// margin-bottom: 10px;
|
|
457
|
+
display: flex;
|
|
451
458
|
.value {
|
|
452
|
-
flex: 1;
|
|
459
|
+
// flex: 1;
|
|
453
460
|
INPUT {
|
|
454
|
-
|
|
461
|
+
width: $input-width;
|
|
462
|
+
height: $input-height;
|
|
463
|
+
border: solid var(--border-width) var(--input-border);
|
|
464
|
+
padding: 4px 11px;
|
|
465
|
+
&:hover{
|
|
466
|
+
box-shadow: 0 4px 6px 0 var(--input-border-box-shadow);
|
|
467
|
+
}
|
|
455
468
|
}
|
|
456
469
|
}
|
|
457
470
|
}
|
|
458
|
-
|
|
459
|
-
.box.hide-remove-is-view {
|
|
460
|
-
grid-template-columns: auto;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
471
|
.remove {
|
|
464
472
|
text-align: right;
|
|
473
|
+
display: flex;
|
|
474
|
+
align-items: center;
|
|
475
|
+
|
|
476
|
+
button{
|
|
477
|
+
min-width: auto;
|
|
478
|
+
}
|
|
465
479
|
}
|
|
466
480
|
.footer {
|
|
481
|
+
margin-bottom: 20px;
|
|
467
482
|
.protip {
|
|
468
483
|
float: right;
|
|
469
484
|
padding: 5px 0;
|
|
@@ -473,4 +488,14 @@ export default {
|
|
|
473
488
|
.required {
|
|
474
489
|
color: var(--error);
|
|
475
490
|
}
|
|
491
|
+
:deep() .labeled-input.compact-input{
|
|
492
|
+
padding: 0px;
|
|
493
|
+
}
|
|
494
|
+
:deep() .box{
|
|
495
|
+
margin-bottom: 10px;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
H3{
|
|
499
|
+
width: 160px;
|
|
500
|
+
}
|
|
476
501
|
</style>
|
|
@@ -120,18 +120,28 @@ export default {
|
|
|
120
120
|
|
|
121
121
|
<style lang="scss">
|
|
122
122
|
.array-list-grouped {
|
|
123
|
-
|
|
123
|
+
.box {
|
|
124
|
+
border: 0px solid var(--tabbed-border) !important;
|
|
124
125
|
position: relative;
|
|
125
126
|
display: block;
|
|
126
127
|
|
|
127
128
|
& > .remove {
|
|
128
129
|
position: absolute;
|
|
129
130
|
|
|
130
|
-
top:
|
|
131
|
-
right:
|
|
131
|
+
top: 0px !important;
|
|
132
|
+
right: 0px !important;
|
|
133
|
+
& > .close{
|
|
134
|
+
width: 32px;
|
|
135
|
+
min-width: 32px !important;
|
|
136
|
+
color: var(--body-text);
|
|
137
|
+
&:hover{
|
|
138
|
+
color: var(--link);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
132
141
|
}
|
|
133
142
|
|
|
134
143
|
& > .info-box {
|
|
144
|
+
border: 1px solid var(--tabbed-border) !important;
|
|
135
145
|
margin-bottom: 0;
|
|
136
146
|
padding-right: 25px;
|
|
137
147
|
}
|