@gitlab/ui 137.2.7 → 137.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/base/alert/alert.js +3 -2
- package/dist/components/base/new_dropdowns/base_dropdown/base_dropdown.js +3 -3
- package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown.js +4 -1
- package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown_item.js +35 -20
- package/dist/components/dashboards/dashboard_layout/dashboard_layout.js +9 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +2 -2
- package/src/components/base/alert/alert.scss +18 -18
- package/src/components/base/alert/alert.vue +3 -1
- package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.vue +3 -3
- package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.scss +2 -1
- package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.vue +4 -0
- package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown_item.vue +33 -14
- package/src/components/dashboards/dashboard_layout/dashboard_layout.vue +9 -0
|
@@ -12,7 +12,6 @@ var script = {
|
|
|
12
12
|
CloseButton,
|
|
13
13
|
GlButton
|
|
14
14
|
},
|
|
15
|
-
expose: ['focus'],
|
|
16
15
|
props: {
|
|
17
16
|
/**
|
|
18
17
|
* The title text to display in the alert header.
|
|
@@ -117,6 +116,7 @@ var script = {
|
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
118
|
},
|
|
119
|
+
expose: ['focus'],
|
|
120
120
|
data() {
|
|
121
121
|
return {
|
|
122
122
|
hasProgrammaticFocus: false
|
|
@@ -227,8 +227,9 @@ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=
|
|
|
227
227
|
{ 'gl-alert-sticky': _vm.sticky },
|
|
228
228
|
{ 'gl-alert-not-dismissible': !_vm.dismissible },
|
|
229
229
|
{ 'gl-alert-has-title': !!_vm.title },
|
|
230
|
+
{ 'gl-alert-has-actions': _vm.shouldRenderActions },
|
|
230
231
|
{ 'gl-focus': _vm.hasProgrammaticFocus },
|
|
231
|
-
_vm.variantClass ],attrs:{"role":_vm.role,"aria-live":_vm.politeness,"tabindex":"-1"},on:{"blur":function($event){_vm.hasProgrammaticFocus = false;}}},[_c('div',{staticClass:"gl-alert-icon-container"},[_c('gl-icon',{staticClass:"gl-alert-icon",attrs:{"name":_vm.iconName}})],1),_vm._v(" "),_c('div',{staticClass:"gl-alert-content"},[(_vm.title)?_c(_vm.headingComponent,{tag:"component",staticClass:"gl-alert-title"},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-alert-body"},[_vm._t("default")],2),_vm._v(" "),(_vm.shouldRenderActions)?_c('div',{staticClass:"gl-alert-actions"},[_vm._t("actions",function(){return _vm._l((_vm.actionButtons),function(actionButton,index){return _c('gl-button',_vm._g(_vm._b({key:index,staticClass:"gl-alert-action"},'gl-button',actionButton.attrs,false),actionButton.listeners),[_vm._v("\n "+_vm._s(actionButton.text)+"\n ")])})})],2):_vm._e()],1),_vm._v(" "),(_vm.dismissible)?_c('close-button',{ref:"dismiss",staticClass:"gl-dismiss-btn",attrs:{"label":_vm.dismissLabel},on:{"click":_vm.onDismiss}}):_vm._e()],1)};
|
|
232
|
+
_vm.variantClass ],attrs:{"role":_vm.role,"aria-live":_vm.politeness,"tabindex":"-1"},on:{"blur":function($event){_vm.hasProgrammaticFocus = false;}}},[_c('div',{staticClass:"gl-alert-icon-container"},[_c('gl-icon',{staticClass:"gl-alert-icon",attrs:{"name":_vm.iconName}})],1),_vm._v(" "),_c('div',{staticClass:"gl-alert-content"},[(_vm.title)?_c(_vm.headingComponent,{tag:"component",staticClass:"gl-alert-title"},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-alert-body"},[_vm._t("default")],2),_vm._v(" "),(_vm.shouldRenderActions)?_c('div',{staticClass:"gl-alert-actions"},[_vm._t("actions",function(){return _vm._l((_vm.actionButtons),function(actionButton,index){return _c('gl-button',_vm._g(_vm._b({key:index,staticClass:"gl-alert-action",attrs:{"size":"small"}},'gl-button',actionButton.attrs,false),actionButton.listeners),[_vm._v("\n "+_vm._s(actionButton.text)+"\n ")])})})],2):_vm._e()],1),_vm._v(" "),(_vm.dismissible)?_c('close-button',{ref:"dismiss",staticClass:"gl-dismiss-btn",attrs:{"label":_vm.dismissLabel},on:{"click":_vm.onDismiss}}):_vm._e()],1)};
|
|
232
233
|
var __vue_staticRenderFns__ = [];
|
|
233
234
|
|
|
234
235
|
/* style */
|
|
@@ -84,9 +84,6 @@ const BASE_DROPDOWN_CLASS = 'gl-new-dropdown';
|
|
|
84
84
|
const DROPDOWN_CONTAINER_CLASS = 'gl-new-dropdown-container';
|
|
85
85
|
var script = {
|
|
86
86
|
name: 'BaseDropdown',
|
|
87
|
-
expose: ['open', 'close', 'closeAndFocus', 'containsElement'],
|
|
88
|
-
BASE_DROPDOWN_CLASS,
|
|
89
|
-
DROPDOWN_CONTAINER_CLASS,
|
|
90
87
|
components: {
|
|
91
88
|
DropdownContainer,
|
|
92
89
|
GlButton,
|
|
@@ -331,6 +328,9 @@ var script = {
|
|
|
331
328
|
validator: strategy => [POSITION_ABSOLUTE, POSITION_FIXED].includes(strategy)
|
|
332
329
|
}
|
|
333
330
|
},
|
|
331
|
+
expose: ['open', 'close', 'closeAndFocus', 'containsElement'],
|
|
332
|
+
BASE_DROPDOWN_CLASS,
|
|
333
|
+
DROPDOWN_CONTAINER_CLASS,
|
|
334
334
|
data() {
|
|
335
335
|
return {
|
|
336
336
|
openedYet: false,
|
|
@@ -345,6 +345,9 @@ var script = {
|
|
|
345
345
|
this.closeAndFocus();
|
|
346
346
|
}
|
|
347
347
|
},
|
|
348
|
+
isDisabled(item) {
|
|
349
|
+
return item.disabled;
|
|
350
|
+
},
|
|
348
351
|
uniqueItemId() {
|
|
349
352
|
return uniqueId(`disclosure-item-`);
|
|
350
353
|
},
|
|
@@ -357,7 +360,7 @@ var script = {
|
|
|
357
360
|
const __vue_script__ = script;
|
|
358
361
|
|
|
359
362
|
/* template */
|
|
360
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-base-dropdown',{ref:"baseDropdown",staticClass:"gl-disclosure-dropdown",attrs:{"aria-labelledby":_vm.toggleAriaLabelledBy,"aria-label":_vm.toggleAriaLabelledBy ? undefined : _vm.toggleAriaLabel,"arrow-element":_vm.$refs.disclosureArrow,"toggle-id":_vm.toggleId,"toggle-text":_vm.toggleText,"toggle-class":_vm.toggleClass,"text-sr-only":_vm.textSrOnly,"category":_vm.category,"variant":_vm.variant,"size":_vm.size,"icon":_vm.icon,"disabled":_vm.disabled,"loading":_vm.loading,"no-caret":_vm.noCaret,"placement":_vm.placement,"block":_vm.block,"offset":_vm.dropdownOffset,"fluid-width":_vm.fluidWidth,"positioning-strategy":_vm.positioningStrategy,"is-disclosure":""},on:_vm._d({},[_vm.$options.events.GL_DROPDOWN_SHOWN,_vm.onShow,_vm.$options.events.GL_DROPDOWN_HIDDEN,_vm.onHide,_vm.$options.events.GL_DROPDOWN_BEFORE_CLOSE,_vm.onBeforeClose,_vm.$options.events.GL_DROPDOWN_FOCUS_CONTENT,_vm.onKeydown]),scopedSlots:_vm._u([(_vm.hasCustomToggle)?{key:"toggle",fn:function(slotProps){return [_vm._t("toggle",null,null,slotProps)]}}:null],null,true)},[_vm._v(" "),_vm._t("header"),_vm._v(" "),_c(_vm.disclosureTag,{ref:"content",tag:"component",class:_vm.$options.GL_DROPDOWN_CONTENTS_CLASS,attrs:{"id":_vm.disclosureId,"aria-labelledby":_vm.listAriaLabelledBy || _vm.toggleId,"data-testid":"disclosure-content","tabindex":"-1"},on:{"keydown":_vm.onKeydown,"click":_vm.handleAutoClose}},[_vm._t("default",function(){return [_vm._l((_vm.items),function(item,index){return [(_vm.isItem(item))?[_c('gl-disclosure-dropdown-item',{key:_vm.uniqueItemId(),attrs:{"siblings-have-icons":_vm.siblingsHaveIcons,"item":item},on:{"action":_vm.handleAction},scopedSlots:_vm._u([('list-item' in _vm.$scopedSlots)?{key:"list-item",fn:function(){return [_vm._t("list-item",null,{"item":item})]},proxy:true}:null],null,true)})]:[_c('gl-disclosure-dropdown-group',{key:item.name,attrs:{"bordered":index !== 0,"group":item},on:{"action":_vm.handleAction},scopedSlots:_vm._u([(_vm.$scopedSlots['group-label'])?{key:"group-label",fn:function(){return [_vm._t("group-label",null,{"group":item})]},proxy:true}:null,(_vm.$scopedSlots['list-item'])?{key:"default",fn:function(){return _vm._l((item.items),function(groupItem){return _c('gl-disclosure-dropdown-item',{key:_vm.uniqueItemId(),attrs:{"siblings-have-icons":_vm.doSomeItemsHaveIcon(item.items),"item":groupItem},on:{"action":_vm.handleAction},scopedSlots:_vm._u([{key:"list-item",fn:function(){return [_vm._t("list-item",null,{"item":groupItem})]},proxy:true}],null,true)})})},proxy:true}:null],null,true)})]]})]})],2),_vm._v(" "),_vm._t("footer")],2)};
|
|
363
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-base-dropdown',{ref:"baseDropdown",staticClass:"gl-disclosure-dropdown",attrs:{"aria-labelledby":_vm.toggleAriaLabelledBy,"aria-label":_vm.toggleAriaLabelledBy ? undefined : _vm.toggleAriaLabel,"arrow-element":_vm.$refs.disclosureArrow,"toggle-id":_vm.toggleId,"toggle-text":_vm.toggleText,"toggle-class":_vm.toggleClass,"text-sr-only":_vm.textSrOnly,"category":_vm.category,"variant":_vm.variant,"size":_vm.size,"icon":_vm.icon,"disabled":_vm.disabled,"loading":_vm.loading,"no-caret":_vm.noCaret,"placement":_vm.placement,"block":_vm.block,"offset":_vm.dropdownOffset,"fluid-width":_vm.fluidWidth,"positioning-strategy":_vm.positioningStrategy,"is-disclosure":""},on:_vm._d({},[_vm.$options.events.GL_DROPDOWN_SHOWN,_vm.onShow,_vm.$options.events.GL_DROPDOWN_HIDDEN,_vm.onHide,_vm.$options.events.GL_DROPDOWN_BEFORE_CLOSE,_vm.onBeforeClose,_vm.$options.events.GL_DROPDOWN_FOCUS_CONTENT,_vm.onKeydown]),scopedSlots:_vm._u([(_vm.hasCustomToggle)?{key:"toggle",fn:function(slotProps){return [_vm._t("toggle",null,null,slotProps)]}}:null],null,true)},[_vm._v(" "),_vm._t("header"),_vm._v(" "),_c(_vm.disclosureTag,{ref:"content",tag:"component",class:_vm.$options.GL_DROPDOWN_CONTENTS_CLASS,attrs:{"id":_vm.disclosureId,"aria-labelledby":_vm.listAriaLabelledBy || _vm.toggleId,"data-testid":"disclosure-content","tabindex":"-1"},on:{"keydown":_vm.onKeydown,"click":_vm.handleAutoClose}},[_vm._t("default",function(){return [_vm._l((_vm.items),function(item,index){return [(_vm.isItem(item))?[_c('gl-disclosure-dropdown-item',{key:_vm.uniqueItemId(),attrs:{"siblings-have-icons":_vm.siblingsHaveIcons,"item":item,"disabled":_vm.isDisabled(item)},on:{"action":_vm.handleAction},scopedSlots:_vm._u([('list-item' in _vm.$scopedSlots)?{key:"list-item",fn:function(){return [_vm._t("list-item",null,{"item":item})]},proxy:true}:null],null,true)})]:[_c('gl-disclosure-dropdown-group',{key:item.name,attrs:{"bordered":index !== 0,"group":item},on:{"action":_vm.handleAction},scopedSlots:_vm._u([(_vm.$scopedSlots['group-label'])?{key:"group-label",fn:function(){return [_vm._t("group-label",null,{"group":item})]},proxy:true}:null,(_vm.$scopedSlots['list-item'])?{key:"default",fn:function(){return _vm._l((item.items),function(groupItem){return _c('gl-disclosure-dropdown-item',{key:_vm.uniqueItemId(),attrs:{"siblings-have-icons":_vm.doSomeItemsHaveIcon(item.items),"item":groupItem},on:{"action":_vm.handleAction},scopedSlots:_vm._u([{key:"list-item",fn:function(){return [_vm._t("list-item",null,{"item":groupItem})]},proxy:true}],null,true)})})},proxy:true}:null],null,true)})]]})]})],2),_vm._v(" "),_vm._t("footer")],2)};
|
|
361
364
|
var __vue_staticRenderFns__ = [];
|
|
362
365
|
|
|
363
366
|
/* style */
|
|
@@ -51,6 +51,14 @@ var script = {
|
|
|
51
51
|
type: Boolean,
|
|
52
52
|
default: false,
|
|
53
53
|
required: false
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* Is the item able to be selected
|
|
57
|
+
*/
|
|
58
|
+
disabled: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: false,
|
|
61
|
+
required: false
|
|
54
62
|
}
|
|
55
63
|
},
|
|
56
64
|
computed: {
|
|
@@ -109,7 +117,7 @@ var script = {
|
|
|
109
117
|
// It just so happens this class has the same prefix `gl-`.
|
|
110
118
|
this.itemVariant && this.itemVariant !== 'default' ?
|
|
111
119
|
// eslint-disable-next-line @gitlab/tailwind-no-interpolation
|
|
112
|
-
`gl-new-dropdown-item-${this.itemVariant}` : ''];
|
|
120
|
+
`gl-new-dropdown-item-${this.itemVariant}` : '', this.disabled ? 'disabled' : ''];
|
|
113
121
|
},
|
|
114
122
|
iconName() {
|
|
115
123
|
var _this$item7;
|
|
@@ -127,31 +135,38 @@ var script = {
|
|
|
127
135
|
},
|
|
128
136
|
methods: {
|
|
129
137
|
onKeydown(event) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
if (
|
|
133
|
-
this.
|
|
134
|
-
|
|
135
|
-
stopEvent(event);
|
|
136
|
-
/** Instead of simply navigating or calling the action, we want
|
|
137
|
-
* the `a/button` to be the target of the event as it might have additional attributes.
|
|
138
|
-
* E.g. `a` might have `target` attribute.
|
|
139
|
-
*/
|
|
140
|
-
const e = new MouseEvent('click', {
|
|
141
|
-
bubbles: true,
|
|
142
|
-
cancelable: true
|
|
143
|
-
});
|
|
144
|
-
if (this.isLink) {
|
|
145
|
-
this.$refs.item.$el.dispatchEvent(e);
|
|
138
|
+
if (!this.disabled) {
|
|
139
|
+
const code = event.code;
|
|
140
|
+
if (code === ENTER || code === SPACE) {
|
|
141
|
+
if (this.isCustomContent) {
|
|
142
|
+
this.action();
|
|
146
143
|
} else {
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
stopEvent(event);
|
|
145
|
+
/** Instead of simply navigating or calling the action, we want
|
|
146
|
+
* the `a/button` to be the target of the event as it might have additional attributes.
|
|
147
|
+
* E.g. `a` might have `target` attribute.
|
|
148
|
+
*/
|
|
149
|
+
const e = new MouseEvent('click', {
|
|
150
|
+
bubbles: true,
|
|
151
|
+
cancelable: true
|
|
152
|
+
});
|
|
153
|
+
if (this.isLink) {
|
|
154
|
+
this.$refs.item.$el.dispatchEvent(e);
|
|
155
|
+
} else {
|
|
156
|
+
var _this$$refs$item;
|
|
157
|
+
(_this$$refs$item = this.$refs.item) === null || _this$$refs$item === void 0 ? void 0 : _this$$refs$item.dispatchEvent(e);
|
|
158
|
+
}
|
|
149
159
|
}
|
|
150
160
|
}
|
|
151
161
|
}
|
|
152
162
|
},
|
|
153
163
|
action() {
|
|
154
164
|
this.$emit('action', this.item);
|
|
165
|
+
},
|
|
166
|
+
handleClick(event) {
|
|
167
|
+
if (this.disabled) {
|
|
168
|
+
stopEvent(event);
|
|
169
|
+
}
|
|
155
170
|
}
|
|
156
171
|
}
|
|
157
172
|
};
|
|
@@ -160,7 +175,7 @@ var script = {
|
|
|
160
175
|
const __vue_script__ = script;
|
|
161
176
|
|
|
162
177
|
/* template */
|
|
163
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',_vm._g({class:_vm.classes,attrs:{"tabindex":_vm.listIndex,"data-testid":"disclosure-dropdown-item"}},_vm.wrapperListeners),[_vm._t("default",function(){return [_c(_vm.itemComponent.is,_vm._g(_vm._b({ref:"item",tag:"component",staticClass:"gl-new-dropdown-item-content",attrs:{"tabindex":_vm.componentIndex}},'component',_vm.itemComponent.attrs,false),_vm.itemComponent.listeners),[_c('span',{staticClass:"gl-new-dropdown-item-text-wrapper"},[_vm._t("list-item",function(){return [(_vm.iconName || _vm.siblingsHaveIcons)?_c('span',{staticClass:"gl-new-dropdown-item-icon"},[(_vm.iconName)?_c('gl-icon',{attrs:{"name":_vm.iconName,"variant":"current"}}):_vm._e()],1):_vm._e(),_vm._v("\n "+_vm._s(_vm.item.text)+"\n ")]})],2)])]})],2)};
|
|
178
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',_vm._g({class:_vm.classes,attrs:{"tabindex":_vm.listIndex,"data-testid":"disclosure-dropdown-item","aria-disabled":_vm.disabled}},_vm.wrapperListeners),[_vm._t("default",function(){return [_c(_vm.itemComponent.is,_vm._g(_vm._b({ref:"item",tag:"component",staticClass:"gl-new-dropdown-item-content",attrs:{"tabindex":_vm.componentIndex},on:{"click":_vm.handleClick}},'component',_vm.itemComponent.attrs,false),_vm.itemComponent.listeners),[_c('span',{staticClass:"gl-new-dropdown-item-text-wrapper"},[_vm._t("list-item",function(){return [(_vm.iconName || _vm.siblingsHaveIcons)?_c('span',{staticClass:"gl-new-dropdown-item-icon"},[(_vm.iconName)?_c('gl-icon',{attrs:{"name":_vm.iconName,"variant":"current"}}):_vm._e()],1):_vm._e(),_vm._v("\n "+_vm._s(_vm.item.text)+"\n ")]})],2)])]})],2)};
|
|
164
179
|
var __vue_staticRenderFns__ = [];
|
|
165
180
|
|
|
166
181
|
/* style */
|
|
@@ -60,6 +60,14 @@ var script = {
|
|
|
60
60
|
required: false,
|
|
61
61
|
default: 1,
|
|
62
62
|
validator: value => value > 0
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* Additional CSS classes to apply to the `#filters` slot container.
|
|
66
|
+
*/
|
|
67
|
+
filtersClass: {
|
|
68
|
+
type: String,
|
|
69
|
+
required: false,
|
|
70
|
+
default: ''
|
|
63
71
|
}
|
|
64
72
|
},
|
|
65
73
|
computed: {
|
|
@@ -88,7 +96,7 @@ var script = {
|
|
|
88
96
|
const __vue_script__ = script;
|
|
89
97
|
|
|
90
98
|
/* template */
|
|
91
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.dashboardHasHeader)?_c('section',{staticClass:"gl-my-4 gl-flex gl-items-center",attrs:{"data-testid":"header-container"}},[_vm._t("header",function(){return [_c('div',{staticClass:"gl-flex gl-w-full gl-flex-col"},[(_vm.dashboardHasTitle)?_c('div',{staticClass:"gl-flex gl-items-center"},[_vm._t("title",function(){return [_c('h2',{staticClass:"gl-my-0",attrs:{"data-testid":"title"}},[_vm._v(_vm._s(_vm.config.title))])]})],2):_vm._e(),_vm._v(" "),(_vm.dashboardHasDescription)?_c('div',{staticClass:"gl-mt-3 gl-flex"},[_vm._t("description",function(){return [_c('p',{staticClass:"gl-mb-0",attrs:{"data-testid":"description"}},[_vm._v("\n "+_vm._s(_vm.config.description)+"\n ")])]})],2):_vm._e()])]}),_vm._v(" "),(_vm.$scopedSlots.actions)?_c('div',{attrs:{"data-testid":"actions-container"}},[_vm._t("actions")],2):_vm._e()],2):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-flex"},[_c('div',{staticClass:"gl-flex gl-min-w-0 gl-grow gl-flex-col"},[_vm._t("alert"),_vm._v(" "),(_vm.$scopedSlots.filters)?_c('section',{staticClass:"gl-flex gl-flex-row gl-flex-wrap gl-gap-5 gl-pb-3 gl-pt-4",attrs:{"data-testid":"filters-container"}},[_vm._t("filters")],2):_vm._e(),_vm._v(" "),(_vm.dashboardHasPanels)?_c('grid-layout',{staticClass:"-gl-mx-3",attrs:{"value":_vm.config,"is-static-grid":_vm.isStaticGrid,"cell-height":_vm.cellHeight,"min-cell-height":_vm.minCellHeight},on:{"input":_vm.emitChanges},scopedSlots:_vm._u([{key:"panel",fn:function(ref){
|
|
99
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.dashboardHasHeader)?_c('section',{staticClass:"gl-my-4 gl-flex gl-items-center",attrs:{"data-testid":"header-container"}},[_vm._t("header",function(){return [_c('div',{staticClass:"gl-flex gl-w-full gl-flex-col"},[(_vm.dashboardHasTitle)?_c('div',{staticClass:"gl-flex gl-items-center"},[_vm._t("title",function(){return [_c('h2',{staticClass:"gl-my-0",attrs:{"data-testid":"title"}},[_vm._v(_vm._s(_vm.config.title))])]})],2):_vm._e(),_vm._v(" "),(_vm.dashboardHasDescription)?_c('div',{staticClass:"gl-mt-3 gl-flex"},[_vm._t("description",function(){return [_c('p',{staticClass:"gl-mb-0",attrs:{"data-testid":"description"}},[_vm._v("\n "+_vm._s(_vm.config.description)+"\n ")])]})],2):_vm._e()])]}),_vm._v(" "),(_vm.$scopedSlots.actions)?_c('div',{attrs:{"data-testid":"actions-container"}},[_vm._t("actions")],2):_vm._e()],2):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-flex"},[_c('div',{staticClass:"gl-flex gl-min-w-0 gl-grow gl-flex-col"},[_vm._t("alert"),_vm._v(" "),(_vm.$scopedSlots.filters)?_c('section',{staticClass:"gl-flex gl-flex-row gl-flex-wrap gl-gap-5 gl-pb-3 gl-pt-4",class:_vm.filtersClass,attrs:{"data-testid":"filters-container"}},[_vm._t("filters")],2):_vm._e(),_vm._v(" "),(_vm.dashboardHasPanels)?_c('grid-layout',{staticClass:"-gl-mx-3",attrs:{"value":_vm.config,"is-static-grid":_vm.isStaticGrid,"cell-height":_vm.cellHeight,"min-cell-height":_vm.minCellHeight},on:{"input":_vm.emitChanges},scopedSlots:_vm._u([{key:"panel",fn:function(ref){
|
|
92
100
|
var panel = ref.panel;
|
|
93
101
|
return [_vm._t("panel",null,null,{ panel: panel })]}}],null,true)}):_vm._t("empty-state")],2)]),_vm._v(" "),_vm._t("footer")],2)};
|
|
94
102
|
var __vue_staticRenderFns__ = [];
|