@gitlab/ui 129.2.0 → 129.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/dashboards/dashboard_layout/dashboard_layout.js +7 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +3 -3
- package/src/components/base/progress_bar/progress_bar.scss +1 -0
- package/src/components/dashboards/dashboard_layout/dashboard_layout.vue +17 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "129.
|
|
3
|
+
"version": "129.3.1",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@cypress/grep": "^4.1.1",
|
|
102
102
|
"@gitlab/fonts": "^1.3.1",
|
|
103
103
|
"@gitlab/svgs": "*",
|
|
104
|
-
"@jest/test-sequencer": "30.
|
|
104
|
+
"@jest/test-sequencer": "30.3.0",
|
|
105
105
|
"@rollup/plugin-commonjs": "^28.0.9",
|
|
106
106
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
107
107
|
"@rollup/plugin-replace": "^6.0.3",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"autoprefixer": "10.4.27",
|
|
133
133
|
"axe-playwright": "^2.2.2",
|
|
134
134
|
"babel-loader": "^9.2.1",
|
|
135
|
-
"cypress": "15.
|
|
135
|
+
"cypress": "15.12.0",
|
|
136
136
|
"cypress-real-events": "^1.15.0",
|
|
137
137
|
"dompurify": "^3.1.2",
|
|
138
138
|
"emoji-regex": "^10.6.0",
|
|
@@ -67,9 +67,20 @@ export default {
|
|
|
67
67
|
dashboardHasPanels() {
|
|
68
68
|
return this.config.panels?.length > 0;
|
|
69
69
|
},
|
|
70
|
+
dashboardHasTitle() {
|
|
71
|
+
return this.$scopedSlots.title || Boolean(this.config.title);
|
|
72
|
+
},
|
|
70
73
|
dashboardHasDescription() {
|
|
71
74
|
return this.$scopedSlots.description || Boolean(this.config.description);
|
|
72
75
|
},
|
|
76
|
+
dashboardHasHeader() {
|
|
77
|
+
return (
|
|
78
|
+
this.$scopedSlots.header ||
|
|
79
|
+
this.$scopedSlots.actions ||
|
|
80
|
+
this.dashboardHasTitle ||
|
|
81
|
+
this.dashboardHasDescription
|
|
82
|
+
);
|
|
83
|
+
},
|
|
73
84
|
},
|
|
74
85
|
methods: {
|
|
75
86
|
emitChanges(newConfig) {
|
|
@@ -80,12 +91,16 @@ export default {
|
|
|
80
91
|
</script>
|
|
81
92
|
<template>
|
|
82
93
|
<div>
|
|
83
|
-
<section
|
|
94
|
+
<section
|
|
95
|
+
v-if="dashboardHasHeader"
|
|
96
|
+
data-testid="header-container"
|
|
97
|
+
class="gl-my-4 gl-flex gl-items-center"
|
|
98
|
+
>
|
|
84
99
|
<!-- @slot Used to render custom dashboard header state. Replaces the default rendering. -->
|
|
85
100
|
<slot name="header">
|
|
86
101
|
<div class="gl-flex gl-w-full gl-flex-col">
|
|
87
102
|
<!-- Dashboard title -->
|
|
88
|
-
<div class="gl-flex gl-items-center">
|
|
103
|
+
<div v-if="dashboardHasTitle" class="gl-flex gl-items-center">
|
|
89
104
|
<!-- @slot Used to render custom dashboard titles. Replaces the default rendering. -->
|
|
90
105
|
<slot name="title">
|
|
91
106
|
<h2 data-testid="title" class="gl-my-0">{{ config.title }}</h2>
|