@gitlab/ui 126.3.0 → 126.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/avatars_inline/avatars_inline.js +21 -0
- package/dist/components/base/badge/badge.js +7 -7
- package/dist/components/base/drawer/drawer.js +19 -0
- package/dist/components/base/dropdown/dropdown_item.js +34 -0
- package/dist/components/base/form/form_input_group/form_input_group.js +6 -0
- package/dist/components/base/label/label.js +26 -6
- package/dist/components/base/popover/popover.js +15 -0
- package/dist/components/base/progress_bar/progress_bar.js +15 -0
- package/dist/components/base/search_box_by_type/search_box_by_type.js +20 -0
- package/dist/components/base/tabs/tab/tab.js +31 -2
- package/dist/components/base/token/token.js +3 -0
- package/dist/components/dashboards/dashboard_layout/dashboard_layout.js +27 -1
- package/dist/components/dashboards/dashboard_layout/grid_layout/grid_layout.js +28 -6
- package/package.json +2 -2
- package/src/components/base/avatars_inline/avatars_inline.vue +22 -0
- package/src/components/base/badge/badge.vue +9 -8
- package/src/components/base/drawer/drawer.vue +23 -0
- package/src/components/base/dropdown/dropdown_item.vue +35 -0
- package/src/components/base/form/form_input_group/form_input_group.vue +6 -0
- package/src/components/base/label/label.vue +26 -6
- package/src/components/base/popover/popover.vue +20 -1
- package/src/components/base/progress_bar/progress_bar.vue +15 -0
- package/src/components/base/search_box_by_type/search_box_by_type.vue +18 -0
- package/src/components/base/tabs/tab/tab.vue +46 -2
- package/src/components/base/token/token.vue +4 -0
- package/src/components/dashboards/dashboard_layout/dashboard_layout.vue +29 -0
- package/src/components/dashboards/dashboard_layout/grid_layout/grid_layout.vue +29 -6
|
@@ -35,6 +35,33 @@ export default {
|
|
|
35
35
|
required: false,
|
|
36
36
|
default: true,
|
|
37
37
|
},
|
|
38
|
+
/**
|
|
39
|
+
* Adjusts the cell height of the grid. Setting this too high can leave unwanted whitespace
|
|
40
|
+
* between grid panels. Reduce the number to allow for a more compact grid.
|
|
41
|
+
* For more information, see:
|
|
42
|
+
* https://gitlab.com/gitlab-org/gitlab-services/design.gitlab.com/-/issues/3051
|
|
43
|
+
*/
|
|
44
|
+
cellHeight: {
|
|
45
|
+
type: Number,
|
|
46
|
+
required: false,
|
|
47
|
+
|
|
48
|
+
/* Magic number:
|
|
49
|
+
* After allowing for padding, and the panel title row, this leaves us with minimum 48px height for the cell content.
|
|
50
|
+
* This means text/content with our spacing scale can fit up to 49px without scrolling.
|
|
51
|
+
*/
|
|
52
|
+
default: 137,
|
|
53
|
+
validator: (value) => value > 0,
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* Sets a default minimum height for grid panels. This can still be overriden on a per-panel
|
|
57
|
+
* basis by setting `value.panels[].gridAttributes.minHeight`
|
|
58
|
+
*/
|
|
59
|
+
minCellHeight: {
|
|
60
|
+
type: Number,
|
|
61
|
+
required: false,
|
|
62
|
+
default: 1,
|
|
63
|
+
validator: (value) => value > 0,
|
|
64
|
+
},
|
|
38
65
|
},
|
|
39
66
|
data() {
|
|
40
67
|
return {
|
|
@@ -143,15 +170,11 @@ export default {
|
|
|
143
170
|
margin: '8px',
|
|
144
171
|
// CSS Selector for finding the drag handle element
|
|
145
172
|
handle: '.grid-stack-item-handle',
|
|
146
|
-
/* Magic number:
|
|
147
|
-
* After allowing for padding, and the panel title row, this leaves us with minimum 48px height for the cell content.
|
|
148
|
-
* This means text/content with our spacing scale can fit up to 49px without scrolling.
|
|
149
|
-
*/
|
|
150
|
-
cellHeight: '137px',
|
|
151
173
|
// Setting 1 in minRow prevents the grid collapsing when all panels are removed
|
|
152
174
|
minRow: 1,
|
|
153
175
|
// Define the number of columns for anything below a set width, defaults to fill the available space
|
|
154
176
|
columnOpts: { breakpoints: [{ w: breakpoints.md, c: 1 }] },
|
|
177
|
+
cellHeight: this.cellHeight,
|
|
155
178
|
alwaysShowResizeHandle: true,
|
|
156
179
|
animate: true,
|
|
157
180
|
float: true,
|
|
@@ -194,7 +217,7 @@ export default {
|
|
|
194
217
|
y: yPos,
|
|
195
218
|
w: width,
|
|
196
219
|
h: height,
|
|
197
|
-
minH: minHeight,
|
|
220
|
+
minH: minHeight || this.minCellHeight,
|
|
198
221
|
minW: minWidth,
|
|
199
222
|
maxH: maxHeight,
|
|
200
223
|
maxW: maxWidth,
|