@gitlab/ui 114.4.0 → 114.6.0

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/README.md CHANGED
@@ -6,7 +6,7 @@ design system. GitLab UI is written in [Vue.js](https://vuejs.org) and its objec
6
6
  - Create reusable UI components to accelerate frontend development.
7
7
  - Create UI consistency for all components within GitLab.
8
8
 
9
- See <https://gitlab-org.gitlab.io/gitlab-ui/> for documentation.
9
+ See <https://design.gitlab.com/storybook> for documentation.
10
10
 
11
11
  ## Usage
12
12
 
@@ -53,7 +53,7 @@ or newer.
53
53
 
54
54
  ```sh
55
55
  # Clone the project
56
- git clone git@gitlab.com:gitlab-org/gitlab-ui.git
56
+ git clone git@gitlab.com:gitlab-org/gitlab-services/design.gitlab.com.git
57
57
 
58
58
  # Navigate to the root of the project
59
59
  cd gitlab-ui
@@ -1,3 +1,4 @@
1
+ import uniqueId from 'lodash/uniqueId';
1
2
  import { GlTooltipDirective } from '../../../directives/tooltip/tooltip';
2
3
  import GlButton from '../button/button';
3
4
  import GlButtonGroup from '../button_group/button_group';
@@ -94,7 +95,15 @@ var script = {
94
95
  default: false
95
96
  }
96
97
  },
98
+ data() {
99
+ return {
100
+ sortingListboxId: uniqueId('sorting-listbox-')
101
+ };
102
+ },
97
103
  computed: {
104
+ sortingListboxLabel() {
105
+ return translate('GlSorting.sortByLabel', 'Sort by:');
106
+ },
98
107
  localSortDirection() {
99
108
  return this.isAscending ? 'sort-lowest' : 'sort-highest';
100
109
  },
@@ -136,7 +145,7 @@ var script = {
136
145
  const __vue_script__ = script;
137
146
 
138
147
  /* template */
139
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-button-group',{staticClass:"gl-sorting"},[_c('gl-collapsible-listbox',{class:_vm.dropdownClass,attrs:{"toggle-text":_vm.text,"items":_vm.sortOptions,"selected":_vm.sortBy,"toggle-class":_vm.dropdownToggleClass,"placement":"bottom-end","block":_vm.block},on:{"select":_vm.onSortByChanged}}),_vm._v(" "),_c('gl-button',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip"}],class:['sorting-direction-button', _vm.sortDirectionToggleClass],attrs:{"title":_vm.sortDirectionText,"icon":_vm.localSortDirection,"aria-label":_vm.sortDirectionText},on:{"click":_vm.toggleSortDirection}})],1)};
148
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('gl-button-group',{staticClass:"gl-sorting"},[_c('gl-collapsible-listbox',{class:_vm.dropdownClass,attrs:{"toggle-text":_vm.text,"items":_vm.sortOptions,"selected":_vm.sortBy,"toggle-class":_vm.dropdownToggleClass,"placement":"bottom-end","block":_vm.block,"toggle-aria-labelled-by":_vm.sortingListboxId},on:{"select":_vm.onSortByChanged}}),_vm._v(" "),_c('span',{staticClass:"gl-sr-only",attrs:{"id":_vm.sortingListboxId}},[_vm._v(_vm._s(_vm.sortingListboxLabel))]),_vm._v(" "),_c('gl-button',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip"}],class:['sorting-direction-button', _vm.sortDirectionToggleClass],attrs:{"title":_vm.sortDirectionText,"icon":_vm.localSortDirection,"aria-label":_vm.sortDirectionText},on:{"click":_vm.toggleSortDirection}})],1)};
140
149
  var __vue_staticRenderFns__ = [];
141
150
 
142
151
  /* style */
@@ -1,5 +1,5 @@
1
1
  const tableFullSlots = ['bottom-row', 'empty', 'emptyfiltered', 'table-busy', 'thead-top', 'top-row'];
2
2
  const tableFullProps = ['api-url', 'busy', 'current-page', 'empty-filtered-html', 'empty-filtered-text', 'empty-html', 'empty-text', 'filter', 'filter-debounce', 'filter-function', 'filter-ignored-fields', 'filter-included-fields', 'label-sort-asc', 'label-sort-clear', 'label-sort-desc', 'no-footer-sorting', 'no-local-sorting', 'no-provider-filtering', 'no-provider-paging', 'no-provider-sorting', 'no-select-on-click', 'per-page', 'select-mode', 'selectable', 'selected-variant', 'show-empty', 'sort-by', 'sort-compare', 'sort-compare-locale', 'sort-compare-options', 'sort-desc', 'sort-direction', 'sort-icon-left', 'sort-null-last'];
3
- const glTableLiteWarning = 'This GlTable could be a GlTableLite component, please consider using GlTableLite instead of GlTable to reduce the page bundlesize more about this here: https://gitlab-org.gitlab.io/gitlab-ui/?path=/docs/base-table-table-lite--default';
3
+ const glTableLiteWarning = 'This GlTable could be a GlTableLite component, please consider using GlTableLite instead of GlTable to reduce the page bundlesize more about this here: https://design.gitlab.com/storybook?path=/docs/base-table-table-lite--default';
4
4
 
5
5
  export { glTableLiteWarning, tableFullProps, tableFullSlots };
@@ -65,7 +65,7 @@ function showToast(message) {
65
65
  * Note: This is not a typical Vue component and needs to be registered before instantiating a Vue app.
66
66
  * Once registered, the toast will be globally available throughout your app.
67
67
  *
68
- * See https://gitlab-org.gitlab.io/gitlab-ui/ for detailed documentation.
68
+ * See https://design.gitlab.com/storybook for detailed documentation.
69
69
  */
70
70
  var toast = {
71
71
  install(Vue) {