@gitlab/ui 86.8.0 → 86.9.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/CHANGELOG.md +14 -0
- package/dist/components/base/new_dropdowns/disclosure/disclosure_dropdown.js +10 -6
- package/dist/components/base/new_dropdowns/disclosure/mock_data.js +8 -1
- package/dist/components/base/table/table.js +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +3 -1
- package/dist/tokens/build/js/tokens.js +3 -1
- package/dist/tokens/css/tokens.css +2 -0
- package/dist/tokens/css/tokens.dark.css +2 -0
- package/dist/tokens/js/tokens.dark.js +2 -0
- package/dist/tokens/js/tokens.js +2 -0
- package/dist/tokens/json/tokens.dark.json +53 -0
- package/dist/tokens/json/tokens.json +53 -0
- package/dist/tokens/scss/_tokens.dark.scss +2 -0
- package/dist/tokens/scss/_tokens.scss +2 -0
- package/dist/tokens/scss/_tokens_custom_properties.scss +2 -0
- package/package.json +1 -1
- package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.vue +10 -6
- package/src/components/base/new_dropdowns/disclosure/mock_data.js +12 -0
- package/src/components/base/table/table.scss +13 -13
- package/src/components/base/table/table.vue +1 -1
- package/src/tokens/build/css/tokens.css +2 -0
- package/src/tokens/build/css/tokens.dark.css +2 -0
- package/src/tokens/build/js/tokens.dark.js +2 -0
- package/src/tokens/build/js/tokens.js +2 -0
- package/src/tokens/build/json/tokens.dark.json +53 -0
- package/src/tokens/build/json/tokens.json +53 -0
- package/src/tokens/build/scss/_tokens.dark.scss +2 -0
- package/src/tokens/build/scss/_tokens.scss +2 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +2 -0
- package/src/tokens/contextual/table.tokens.json +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [86.9.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v86.9.0...v86.9.1) (2024-07-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **disclosure-dropdown:** correctly close on item selection ([9e21f53](https://gitlab.com/gitlab-org/gitlab-ui/commit/9e21f5385860862a520f8ae72d58721da6433d1c))
|
|
7
|
+
|
|
8
|
+
# [86.9.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v86.8.0...v86.9.0) (2024-07-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **GlTabe:** Use color design tokens ([53db384](https://gitlab.com/gitlab-org/gitlab-ui/commit/53db38438c4223e4c54109857d53d5e5d1d45c4f))
|
|
14
|
+
|
|
1
15
|
# [86.8.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v86.7.1...v86.8.0) (2024-07-11)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -321,12 +321,16 @@ var script = {
|
|
|
321
321
|
this.$refs.baseDropdown.closeAndFocus();
|
|
322
322
|
},
|
|
323
323
|
handleAction(action) {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
324
|
+
// See https://gitlab.com/gitlab-org/gitlab-ui/-/merge_requests/4376 for
|
|
325
|
+
// detailed explanation why we need requestAnimationFrame
|
|
326
|
+
window.requestAnimationFrame(() => {
|
|
327
|
+
/**
|
|
328
|
+
* Emitted when one of disclosure dropdown items is clicked
|
|
329
|
+
*
|
|
330
|
+
* @event action
|
|
331
|
+
*/
|
|
332
|
+
this.$emit('action', action);
|
|
333
|
+
});
|
|
330
334
|
},
|
|
331
335
|
handleAutoClose(e) {
|
|
332
336
|
if (this.autoClose && e.target.closest(ITEM_SELECTOR) && e.target.closest(DROPDOWN_SELECTOR) === this.$refs.baseDropdown.$el) {
|
|
@@ -31,6 +31,13 @@ const mockItems = [{
|
|
|
31
31
|
'data-method': 'put'
|
|
32
32
|
}
|
|
33
33
|
}];
|
|
34
|
+
const mockButtons = [{
|
|
35
|
+
text: 'Checks'
|
|
36
|
+
}, {
|
|
37
|
+
text: 'Projects'
|
|
38
|
+
}, {
|
|
39
|
+
text: 'Standards'
|
|
40
|
+
}];
|
|
34
41
|
const mockItemsCustomItem = [{
|
|
35
42
|
text: 'Assigned to you',
|
|
36
43
|
href: 'https://gitlab.com/dashboard/merge_requests?assignee_username=root',
|
|
@@ -150,4 +157,4 @@ const mockProfileGroups = [{
|
|
|
150
157
|
}]
|
|
151
158
|
}];
|
|
152
159
|
|
|
153
|
-
export { mockGroups, mockGroupsCustomItem, mockItems, mockItemsCustomItem, mockProfileGroups };
|
|
160
|
+
export { mockButtons, mockGroups, mockGroupsCustomItem, mockItems, mockItemsCustomItem, mockProfileGroups };
|
|
@@ -104,7 +104,7 @@ var script = {
|
|
|
104
104
|
const __vue_script__ = script;
|
|
105
105
|
|
|
106
106
|
/* template */
|
|
107
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-table',_vm._g(_vm._b({attrs:{"table-class":_vm.localTableClass,"fields":_vm.fields,"sort-by":_vm.localSortBy,"sort-desc":_vm.localSortDesc,"no-sort-reset":""},on:{"update:sortBy":function($event){_vm.localSortBy=$event;},"update:sort-by":function($event){_vm.localSortBy=$event;},"update:sortDesc":function($event){_vm.localSortDesc=$event;},"update:sort-desc":function($event){_vm.localSortDesc=$event;}},scopedSlots:_vm._u([_vm._l((Object.keys(_vm.$scopedSlots)),function(slotName){return {key:slotName,fn:function(scope){return [_vm._t(slotName,null,null,scope)]}}}),_vm._l((_vm.headSlots),function(headSlotName){return {key:headSlotName,fn:function(scope){return [_c('div',{key:headSlotName,staticClass:"gl-display-flex"},[_vm._t(headSlotName,function(){return [_c('span',[_vm._v(_vm._s(scope.label))])]},null,scope),(_vm.isSortable(scope))?[_c('div',{staticClass:"gl-ml-2 gl-w-5 gl-display-flex gl-justify-content-center
|
|
107
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-table',_vm._g(_vm._b({attrs:{"table-class":_vm.localTableClass,"fields":_vm.fields,"sort-by":_vm.localSortBy,"sort-desc":_vm.localSortDesc,"no-sort-reset":""},on:{"update:sortBy":function($event){_vm.localSortBy=$event;},"update:sort-by":function($event){_vm.localSortBy=$event;},"update:sortDesc":function($event){_vm.localSortDesc=$event;},"update:sort-desc":function($event){_vm.localSortDesc=$event;}},scopedSlots:_vm._u([_vm._l((Object.keys(_vm.$scopedSlots)),function(slotName){return {key:slotName,fn:function(scope){return [_vm._t(slotName,null,null,scope)]}}}),_vm._l((_vm.headSlots),function(headSlotName){return {key:headSlotName,fn:function(scope){return [_c('div',{key:headSlotName,staticClass:"gl-display-flex"},[_vm._t(headSlotName,function(){return [_c('span',[_vm._v(_vm._s(scope.label))])]},null,scope),(_vm.isSortable(scope))?[_c('div',{staticClass:"gl-ml-2 gl-w-5 gl-display-flex gl-justify-content-center"},[_c('span',{class:{ 'gl-display-none': !_vm.activeSortingColumn(scope) },attrs:{"name":"sort-icon","data-testid":"sort-icon"}},[_vm._v("\n "+_vm._s(_vm.getSortingIcon(scope))+"\n ")])])]:_vm._e()],2)]}}})],null,true)},'b-table',_vm.$attrs,false),_vm.$listeners))};
|
|
108
108
|
var __vue_staticRenderFns__ = [];
|
|
109
109
|
|
|
110
110
|
/* style */
|