@gitlab/ui 115.5.0 → 115.6.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/bin/migrate_custom_utils_to_tw.bundled.mjs +28625 -42474
- package/dist/components/base/alert/alert.js +1 -0
- package/dist/components/base/avatar/avatar.js +1 -0
- package/dist/components/base/badge/badge.js +1 -0
- package/dist/components/base/breadcrumb/breadcrumb.js +2 -1
- package/dist/components/base/button/button.js +1 -0
- package/dist/components/base/datepicker/datepicker.js +1 -0
- package/dist/components/base/drawer/drawer.js +1 -0
- package/dist/components/base/dropdown/dropdown.js +1 -0
- package/dist/components/base/icon/icon.js +1 -0
- package/dist/components/base/label/label.js +1 -0
- package/dist/components/base/link/link.js +1 -0
- package/dist/components/base/modal/modal.js +1 -0
- package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown.js +1 -0
- package/dist/components/base/new_dropdowns/listbox/listbox.js +1 -0
- package/dist/components/base/pagination/pagination.js +1 -0
- package/dist/components/base/path/path.js +1 -0
- package/dist/components/base/popover/popover.js +1 -0
- package/dist/components/base/table/table.js +1 -0
- package/dist/components/base/tabs/tab/tab.js +1 -0
- package/dist/components/base/tabs/tabs/tabs.js +1 -0
- package/dist/components/base/toggle/toggle.js +1 -0
- package/dist/components/base/token/token.js +1 -0
- package/dist/components/base/tooltip/tooltip.js +1 -0
- package/dist/components/charts/area/area.js +1 -0
- package/dist/components/charts/bar/bar.js +1 -0
- package/dist/components/charts/chart/chart.js +1 -0
- package/dist/components/charts/column/column.js +1 -0
- package/dist/components/charts/gauge/gauge.js +1 -0
- package/dist/components/charts/heatmap/heatmap.js +1 -0
- package/dist/components/charts/legend/legend.js +1 -0
- package/dist/components/charts/line/line.js +1 -0
- package/dist/components/charts/shared/tooltip/tooltip.js +1 -0
- package/dist/components/charts/sparkline/sparkline.js +1 -0
- package/dist/components/dashboards/dashboard_layout/dashboard_layout.js +0 -3
- package/dist/components/dashboards/dashboard_panel/dashboard_panel.js +2 -2
- package/dist/components/utilities/intersperse/intersperse.js +1 -0
- package/dist/components/utilities/sprintf/sprintf.js +1 -0
- package/dist/components/utilities/truncate/truncate.js +1 -0
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/dist/utils/use_mock_intersection_observer.js +1 -0
- package/dist/vendor/bootstrap-vue/src/bv-config.js +2 -0
- package/dist/vendor/bootstrap-vue/src/components/modal/helpers/modal-manager.js +1 -0
- package/dist/vendor/bootstrap-vue/src/components/popover/helpers/bv-popover.js +5 -0
- package/dist/vendor/bootstrap-vue/src/components/toast/helpers/bv-toast.js +13 -3
- package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-popper.js +6 -0
- package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip.js +4 -0
- package/dist/vendor/bootstrap-vue/src/components/transition/bv-transition.js +5 -0
- package/dist/vendor/bootstrap-vue/src/directives/visible/visible.js +32 -0
- package/dist/vendor/bootstrap-vue/src/mixins/has-listener.js +3 -0
- package/dist/vendor/bootstrap-vue/src/mixins/id.js +2 -0
- package/package.json +20 -20
- package/src/components/base/breadcrumb/breadcrumb.vue +1 -1
- package/src/components/base/toast/toast.scss +10 -1
- package/src/components/dashboards/dashboard_layout/dashboard_layout.md +145 -3
- package/src/components/dashboards/dashboard_layout/dashboard_layout.vue +0 -3
- package/src/components/dashboards/dashboard_panel/dashboard_panel.vue +33 -18
- package/src/vendor/bootstrap-vue/src/components/toast/_toast.scss +0 -4
- package/src/vendor/bootstrap-vue/src/components/toast/helpers/bv-toast.js +13 -3
- package/src/vendor/bootstrap-vue/src/components/toast/index.scss +0 -1
- package/src/vendor/bootstrap-vue/src/components/toast/_toaster-transition.scss +0 -45
|
@@ -178,25 +178,40 @@ export default {
|
|
|
178
178
|
</template>
|
|
179
179
|
</div>
|
|
180
180
|
|
|
181
|
-
<
|
|
182
|
-
v-if="shouldShowActions"
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
:toggle-text="actionsToggleText"
|
|
186
|
-
text-sr-only
|
|
187
|
-
no-caret
|
|
188
|
-
placement="bottom-end"
|
|
189
|
-
fluid-width
|
|
190
|
-
toggle-class="gl-ml-1"
|
|
191
|
-
category="tertiary"
|
|
192
|
-
positioning-strategy="fixed"
|
|
193
|
-
@shown="$emit('dropdownOpen')"
|
|
194
|
-
@hidden="$emit('dropdownClosed')"
|
|
181
|
+
<div
|
|
182
|
+
v-if="shouldShowActions || $scopedSlots.filters"
|
|
183
|
+
data-testid="panel-actions-filters-container"
|
|
184
|
+
class="gl-flex gl-flex-col gl-items-end gl-gap-2"
|
|
195
185
|
>
|
|
196
|
-
<
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
186
|
+
<gl-disclosure-dropdown
|
|
187
|
+
v-if="shouldShowActions"
|
|
188
|
+
:items="actions"
|
|
189
|
+
icon="ellipsis_v"
|
|
190
|
+
:toggle-text="actionsToggleText"
|
|
191
|
+
text-sr-only
|
|
192
|
+
no-caret
|
|
193
|
+
placement="bottom-end"
|
|
194
|
+
fluid-width
|
|
195
|
+
toggle-class="gl-ml-1"
|
|
196
|
+
category="tertiary"
|
|
197
|
+
positioning-strategy="fixed"
|
|
198
|
+
@shown="$emit('dropdownOpen')"
|
|
199
|
+
@hidden="$emit('dropdownClosed')"
|
|
200
|
+
>
|
|
201
|
+
<template #list-item="{ item }">
|
|
202
|
+
<span> <gl-icon :name="item.icon" /> {{ item.text }}</span>
|
|
203
|
+
</template>
|
|
204
|
+
</gl-disclosure-dropdown>
|
|
205
|
+
|
|
206
|
+
<div
|
|
207
|
+
v-if="$scopedSlots.filters"
|
|
208
|
+
class="gl-flex gl-items-center gl-justify-end gl-pb-2"
|
|
209
|
+
data-testid="panel-filters-container"
|
|
210
|
+
>
|
|
211
|
+
<!-- @slot The filter section to add additional UI elements for filtering, grouping, etc. -->
|
|
212
|
+
<slot name="filters"></slot>
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
200
215
|
</div>
|
|
201
216
|
<div :class="bodyClasses">
|
|
202
217
|
<template v-if="loading">
|
|
@@ -133,9 +133,19 @@ const plugin = Vue => {
|
|
|
133
133
|
}
|
|
134
134
|
})
|
|
135
135
|
// Create a mount point (a DIV) and mount it (which triggers the show)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
function createMountPoint() {
|
|
137
|
+
const div = document.createElement('div')
|
|
138
|
+
document.body.appendChild(div)
|
|
139
|
+
toast.$mount(div)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// ViewTransition fallback
|
|
143
|
+
if (!document.startViewTransition) {
|
|
144
|
+
createMountPoint()
|
|
145
|
+
return
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
document.startViewTransition(createMountPoint)
|
|
139
149
|
}
|
|
140
150
|
|
|
141
151
|
// Declare BvToast instance property class
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
// --- <b-toast> custom transition SCSS ---
|
|
2
|
-
|
|
3
|
-
// PortalVue appears to have issues with transition classes on portaled items
|
|
4
|
-
|
|
5
|
-
.b-toaster {
|
|
6
|
-
&.b-toaster-top-right,
|
|
7
|
-
&.b-toaster-top-left,
|
|
8
|
-
&.b-toaster-bottom-right,
|
|
9
|
-
&.b-toaster-bottom-left {
|
|
10
|
-
.b-toast {
|
|
11
|
-
&.b-toaster-enter-active,
|
|
12
|
-
&.b-toaster-leave-active,
|
|
13
|
-
&.b-toaster-move {
|
|
14
|
-
transition: transform 0.175s;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&.b-toaster-enter {
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&.b-toaster-enter-to,
|
|
21
|
-
&.b-toaster-enter-active {
|
|
22
|
-
.toast.fade {
|
|
23
|
-
// Delay the appearance of the toast until
|
|
24
|
-
// the move transition has completed
|
|
25
|
-
transition-delay: 0.175s;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&.b-toaster-enter-to {
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&.b-toaster-leave-active {
|
|
33
|
-
position: absolute;
|
|
34
|
-
transition-delay: 0.175s;
|
|
35
|
-
|
|
36
|
-
.toast.fade {
|
|
37
|
-
transition-delay: 0s;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&.b-toaster-leave-to {
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|