@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.
Files changed (64) hide show
  1. package/bin/migrate_custom_utils_to_tw.bundled.mjs +28625 -42474
  2. package/dist/components/base/alert/alert.js +1 -0
  3. package/dist/components/base/avatar/avatar.js +1 -0
  4. package/dist/components/base/badge/badge.js +1 -0
  5. package/dist/components/base/breadcrumb/breadcrumb.js +2 -1
  6. package/dist/components/base/button/button.js +1 -0
  7. package/dist/components/base/datepicker/datepicker.js +1 -0
  8. package/dist/components/base/drawer/drawer.js +1 -0
  9. package/dist/components/base/dropdown/dropdown.js +1 -0
  10. package/dist/components/base/icon/icon.js +1 -0
  11. package/dist/components/base/label/label.js +1 -0
  12. package/dist/components/base/link/link.js +1 -0
  13. package/dist/components/base/modal/modal.js +1 -0
  14. package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown.js +1 -0
  15. package/dist/components/base/new_dropdowns/listbox/listbox.js +1 -0
  16. package/dist/components/base/pagination/pagination.js +1 -0
  17. package/dist/components/base/path/path.js +1 -0
  18. package/dist/components/base/popover/popover.js +1 -0
  19. package/dist/components/base/table/table.js +1 -0
  20. package/dist/components/base/tabs/tab/tab.js +1 -0
  21. package/dist/components/base/tabs/tabs/tabs.js +1 -0
  22. package/dist/components/base/toggle/toggle.js +1 -0
  23. package/dist/components/base/token/token.js +1 -0
  24. package/dist/components/base/tooltip/tooltip.js +1 -0
  25. package/dist/components/charts/area/area.js +1 -0
  26. package/dist/components/charts/bar/bar.js +1 -0
  27. package/dist/components/charts/chart/chart.js +1 -0
  28. package/dist/components/charts/column/column.js +1 -0
  29. package/dist/components/charts/gauge/gauge.js +1 -0
  30. package/dist/components/charts/heatmap/heatmap.js +1 -0
  31. package/dist/components/charts/legend/legend.js +1 -0
  32. package/dist/components/charts/line/line.js +1 -0
  33. package/dist/components/charts/shared/tooltip/tooltip.js +1 -0
  34. package/dist/components/charts/sparkline/sparkline.js +1 -0
  35. package/dist/components/dashboards/dashboard_layout/dashboard_layout.js +0 -3
  36. package/dist/components/dashboards/dashboard_panel/dashboard_panel.js +2 -2
  37. package/dist/components/utilities/intersperse/intersperse.js +1 -0
  38. package/dist/components/utilities/sprintf/sprintf.js +1 -0
  39. package/dist/components/utilities/truncate/truncate.js +1 -0
  40. package/dist/index.css +2 -2
  41. package/dist/index.css.map +1 -1
  42. package/dist/tailwind.css +1 -1
  43. package/dist/tailwind.css.map +1 -1
  44. package/dist/utils/use_mock_intersection_observer.js +1 -0
  45. package/dist/vendor/bootstrap-vue/src/bv-config.js +2 -0
  46. package/dist/vendor/bootstrap-vue/src/components/modal/helpers/modal-manager.js +1 -0
  47. package/dist/vendor/bootstrap-vue/src/components/popover/helpers/bv-popover.js +5 -0
  48. package/dist/vendor/bootstrap-vue/src/components/toast/helpers/bv-toast.js +13 -3
  49. package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-popper.js +6 -0
  50. package/dist/vendor/bootstrap-vue/src/components/tooltip/helpers/bv-tooltip.js +4 -0
  51. package/dist/vendor/bootstrap-vue/src/components/transition/bv-transition.js +5 -0
  52. package/dist/vendor/bootstrap-vue/src/directives/visible/visible.js +32 -0
  53. package/dist/vendor/bootstrap-vue/src/mixins/has-listener.js +3 -0
  54. package/dist/vendor/bootstrap-vue/src/mixins/id.js +2 -0
  55. package/package.json +20 -20
  56. package/src/components/base/breadcrumb/breadcrumb.vue +1 -1
  57. package/src/components/base/toast/toast.scss +10 -1
  58. package/src/components/dashboards/dashboard_layout/dashboard_layout.md +145 -3
  59. package/src/components/dashboards/dashboard_layout/dashboard_layout.vue +0 -3
  60. package/src/components/dashboards/dashboard_panel/dashboard_panel.vue +33 -18
  61. package/src/vendor/bootstrap-vue/src/components/toast/_toast.scss +0 -4
  62. package/src/vendor/bootstrap-vue/src/components/toast/helpers/bv-toast.js +13 -3
  63. package/src/vendor/bootstrap-vue/src/components/toast/index.scss +0 -1
  64. 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
- <gl-disclosure-dropdown
182
- v-if="shouldShowActions"
183
- :items="actions"
184
- icon="ellipsis_v"
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
- <template #list-item="{ item }">
197
- <span> <gl-icon :name="item.icon" /> {{ item.text }}</span>
198
- </template>
199
- </gl-disclosure-dropdown>
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">
@@ -19,10 +19,6 @@
19
19
  background-color: rgba($toast-background-color, $b-toast-background-opacity);
20
20
  }
21
21
 
22
- &:not(:last-child) {
23
- margin-bottom: $toast-padding-x;
24
- }
25
-
26
22
  &.b-toast-solid {
27
23
  .toast {
28
24
  background-color: rgba($toast-background-color, 1);
@@ -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
- const div = document.createElement('div')
137
- document.body.appendChild(div)
138
- toast.$mount(div)
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,3 +1,2 @@
1
1
  @import "toast";
2
2
  @import "toaster";
3
- @import "toaster-transition";
@@ -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
- }