@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 +2 -2
- package/dist/components/base/sorting/sorting.js +10 -1
- package/dist/components/base/table/constants.js +1 -1
- package/dist/components/base/toast/toast.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +1 -1
- package/src/components/base/button/button.md +1 -1
- package/src/components/base/drawer/drawer.scss +2 -1
- package/src/components/base/form/form_character_count/form_character_count.md +1 -1
- package/src/components/base/form/form_combobox/form_combobox.md +4 -4
- package/src/components/base/link/link.md +1 -1
- package/src/components/base/sorting/sorting.vue +11 -0
- package/src/components/base/table/constants.js +1 -1
- package/src/components/base/toast/toast.js +1 -1
- package/src/components/charts/heatmap/heatmap.md +1 -1
- package/translations.js +1 -0
package/package.json
CHANGED
|
@@ -110,7 +110,7 @@ sanitization. This component exposes the `is-unsafe-link` prop for that purpose.
|
|
|
110
110
|
href="data:text/plain;charset=utf-8,GitLab%20is%20awesome">Download</gl-button>
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
-
[SafeLinkDirective docs]: https://
|
|
113
|
+
[SafeLinkDirective docs]: https://design.gitlab.com/storybook?path=/docs/directives-safe-link-directive--default
|
|
114
114
|
[Data URL]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
|
|
115
115
|
|
|
116
116
|
## vue-bootstrap component
|
|
@@ -51,7 +51,7 @@ $gl-drawer-scrim-gradient: linear-gradient(
|
|
|
51
51
|
.gl-drawer-body > * {
|
|
52
52
|
@apply gl-border-b;
|
|
53
53
|
@apply gl-mx-5;
|
|
54
|
-
|
|
54
|
+
|
|
55
55
|
&:last-child {
|
|
56
56
|
@apply gl-border-none;
|
|
57
57
|
}
|
|
@@ -112,6 +112,7 @@ $gl-drawer-scrim-gradient: linear-gradient(
|
|
|
112
112
|
|
|
113
113
|
.gl-drawer-body {
|
|
114
114
|
@apply gl-grow;
|
|
115
|
+
min-height: 0;
|
|
115
116
|
// prevent safari bug where box shadow is visible
|
|
116
117
|
// above the drawer when hovering interactive elements
|
|
117
118
|
// see https://gitlab.com/gitlab-org/gitlab/-/issues/366558
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
## Usage
|
|
2
2
|
|
|
3
3
|
`GlFormCharacterCount` can be used to add a character count to an input.
|
|
4
|
-
If you are using `GlFormTextarea` on its own see [with character count example](https://
|
|
4
|
+
If you are using `GlFormTextarea` on its own see [with character count example](https://design.gitlab.com/storybook?path=/story/base-form-form-textarea--with-character-count).
|
|
5
5
|
If you are wrapping your input, such as in a markdown component, and need the character
|
|
6
6
|
count separate from the input, use `GlFormCharacterCount`.
|
|
7
7
|
|
|
@@ -46,7 +46,7 @@ The algorithm to match tokens with the input is very naive. If you need to use t
|
|
|
46
46
|
very large list of matches, you may want to update the implementation or use one of the search
|
|
47
47
|
inputs, like [`GlSearchBoxByType`], [`GlSearchBoxByClick`], or [`GlFilteredSearch`].
|
|
48
48
|
|
|
49
|
-
[`GlSearchBoxByType`]: https://
|
|
50
|
-
[`GlSearchBoxByClick`]: https://
|
|
51
|
-
[`GlTokenSelector`]: https://
|
|
52
|
-
[`GlFilteredSearch`]: https://
|
|
49
|
+
[`GlSearchBoxByType`]: https://design.gitlab.com/storybook?path=/story/base-search-box-by-type--default
|
|
50
|
+
[`GlSearchBoxByClick`]: https://design.gitlab.com/storybook?path=/story/base-search-box-by-click--default
|
|
51
|
+
[`GlTokenSelector`]: https://design.gitlab.com/storybook?path=/story/base-token-selector--default
|
|
52
|
+
[`GlFilteredSearch`]: https://design.gitlab.com/storybook?path=/story/base-filtered-search--default
|
|
@@ -150,5 +150,5 @@ sanitization. This component exposes the `is-unsafe-link` prop for that purpose.
|
|
|
150
150
|
</gl-link>
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
-
[SafeLinkDirective docs]: https://
|
|
153
|
+
[SafeLinkDirective docs]: https://design.gitlab.com/storybook?path=/docs/directives-safe-link-directive--default
|
|
154
154
|
[Data URL]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import uniqueId from 'lodash/uniqueId';
|
|
2
3
|
import { GlTooltipDirective } from '../../../directives/tooltip/tooltip';
|
|
3
4
|
import GlButton from '../button/button.vue';
|
|
4
5
|
import GlButtonGroup from '../button_group/button_group.vue';
|
|
@@ -94,7 +95,15 @@ export default {
|
|
|
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
|
},
|
|
@@ -146,8 +155,10 @@ export default {
|
|
|
146
155
|
:class="dropdownClass"
|
|
147
156
|
placement="bottom-end"
|
|
148
157
|
:block="block"
|
|
158
|
+
:toggle-aria-labelled-by="sortingListboxId"
|
|
149
159
|
@select="onSortByChanged"
|
|
150
160
|
/>
|
|
161
|
+
<span :id="sortingListboxId" class="gl-sr-only">{{ sortingListboxLabel }}</span>
|
|
151
162
|
<gl-button
|
|
152
163
|
v-gl-tooltip
|
|
153
164
|
:title="sortDirectionText"
|
|
@@ -45,4 +45,4 @@ export const tableFullProps = [
|
|
|
45
45
|
];
|
|
46
46
|
|
|
47
47
|
export const glTableLiteWarning =
|
|
48
|
-
'This GlTable could be a GlTableLite component, please consider using GlTableLite instead of GlTable to reduce the page bundlesize more about this here: https://
|
|
48
|
+
'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';
|
|
@@ -79,7 +79,7 @@ function showToast(message, options = {}) {
|
|
|
79
79
|
* Note: This is not a typical Vue component and needs to be registered before instantiating a Vue app.
|
|
80
80
|
* Once registered, the toast will be globally available throughout your app.
|
|
81
81
|
*
|
|
82
|
-
* See https://
|
|
82
|
+
* See https://design.gitlab.com/storybook for detailed documentation.
|
|
83
83
|
*/
|
|
84
84
|
export default {
|
|
85
85
|
install(Vue) {
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
**Note** This component uses `<gl-legend>`, which should allow a user to click on any data point(s)
|
|
4
4
|
in the legend and make the corresponding data point(s) on the chart rendered disappear.
|
|
5
|
-
_See [area chart](https://
|
|
5
|
+
_See [area chart](https://design.gitlab.com/storybook?path=/story/charts-area-chart--default)
|
|
6
6
|
for an example_ For this particular chart, there is a [known issue](https://gitlab.com/gitlab-org/gitlab-ui/issues/352)
|
|
7
7
|
with the functionality of the legend, where clicking on it does nothing.
|
package/translations.js
CHANGED
|
@@ -31,6 +31,7 @@ export default {
|
|
|
31
31
|
'GlProgressBar.ariaLabel': 'Progress bar',
|
|
32
32
|
'GlSearchBoxByType.clearButtonTitle': 'Clear',
|
|
33
33
|
'GlSearchBoxByType.input.placeholder': 'Search',
|
|
34
|
+
'GlSorting.sortByLabel': 'Sort by:',
|
|
34
35
|
'GlSorting.sortAscending': 'Sort direction: ascending',
|
|
35
36
|
'GlSorting.sortDescending': 'Sort direction: descending',
|
|
36
37
|
'GlToken.closeButtonTitle': 'Remove',
|