@gitlab/ui 97.2.0 → 97.2.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
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [97.2.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v97.2.0...v97.2.1) (2024-10-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **GlProgressBar:** adds accessible name ([dad2627](https://gitlab.com/gitlab-org/gitlab-ui/commit/dad262736cf44b04ffd04ce731960c23b23d0dc1)), closes [/gitlab.com/gitlab-org/gitlab-ui/-/merge_requests/4125#note_1878259355](https://gitlab.com//gitlab.com/gitlab-org/gitlab-ui/-/merge_requests/4125/issues/note_1878259355)
|
|
7
|
+
|
|
1
8
|
# [97.2.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v97.1.0...v97.2.0) (2024-10-17)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { translate } from '../../../utils/i18n';
|
|
1
2
|
import { progressBarVariantOptions } from '../../../utils/constants';
|
|
2
3
|
import { toFloat } from '../../../utils/number_utils';
|
|
3
4
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
@@ -5,6 +6,11 @@ import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
|
5
6
|
var script = {
|
|
6
7
|
name: 'GlProgressBar',
|
|
7
8
|
props: {
|
|
9
|
+
ariaLabel: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: false,
|
|
12
|
+
default: translate('GlProgressBar.ariaLabel', 'Progress bar')
|
|
13
|
+
},
|
|
8
14
|
value: {
|
|
9
15
|
type: [Number, String],
|
|
10
16
|
required: false,
|
|
@@ -55,7 +61,7 @@ var script = {
|
|
|
55
61
|
const __vue_script__ = script;
|
|
56
62
|
|
|
57
63
|
/* template */
|
|
58
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-progress-bar progress",style:(_vm.progressHeight)},[_c('div',{class:_vm.classes,style:(_vm.progressBarStyles),attrs:{"role":"progressbar","aria-valuemin":"0","aria-valuemax":String(_vm.computedMax),"aria-valuenow":_vm.computedValue}})])};
|
|
64
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-progress-bar progress",style:(_vm.progressHeight)},[_c('div',{class:_vm.classes,style:(_vm.progressBarStyles),attrs:{"role":"progressbar","aria-label":_vm.ariaLabel,"aria-valuemin":"0","aria-valuemax":String(_vm.computedMax),"aria-valuenow":_vm.computedValue}})])};
|
|
59
65
|
var __vue_staticRenderFns__ = [];
|
|
60
66
|
|
|
61
67
|
/* style */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "97.2.
|
|
3
|
+
"version": "97.2.1",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"@gitlab/eslint-plugin": "20.4.1",
|
|
117
117
|
"@gitlab/fonts": "^1.3.0",
|
|
118
118
|
"@gitlab/stylelint-config": "6.2.2",
|
|
119
|
-
"@gitlab/svgs": "3.
|
|
119
|
+
"@gitlab/svgs": "3.119.0",
|
|
120
120
|
"@jest/test-sequencer": "^29.7.0",
|
|
121
121
|
"@rollup/plugin-commonjs": "^11.1.0",
|
|
122
122
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
<script>
|
|
2
|
+
import { translate } from '../../../utils/i18n';
|
|
2
3
|
import { progressBarVariantOptions } from '../../../utils/constants';
|
|
3
4
|
import { toFloat } from '../../../utils/number_utils';
|
|
4
5
|
|
|
5
6
|
export default {
|
|
6
7
|
name: 'GlProgressBar',
|
|
7
8
|
props: {
|
|
9
|
+
ariaLabel: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: false,
|
|
12
|
+
default: translate('GlProgressBar.ariaLabel', 'Progress bar'),
|
|
13
|
+
},
|
|
8
14
|
value: {
|
|
9
15
|
type: [Number, String],
|
|
10
16
|
required: false,
|
|
@@ -56,6 +62,7 @@ export default {
|
|
|
56
62
|
:class="classes"
|
|
57
63
|
:style="progressBarStyles"
|
|
58
64
|
role="progressbar"
|
|
65
|
+
:aria-label="ariaLabel"
|
|
59
66
|
aria-valuemin="0"
|
|
60
67
|
:aria-valuemax="String(computedMax)"
|
|
61
68
|
:aria-valuenow="computedValue"
|
package/translations.js
CHANGED
|
@@ -77,6 +77,7 @@ export default {
|
|
|
77
77
|
'GlPagination.nav': 'Pagination',
|
|
78
78
|
'GlPagination.nextText': 'Next',
|
|
79
79
|
'GlPagination.prevText': 'Previous',
|
|
80
|
+
'GlProgressBar.ariaLabel': 'Progress bar',
|
|
80
81
|
'GlSearchBoxByType.clearButtonTitle': 'Clear',
|
|
81
82
|
'GlSearchBoxByType.input.placeholder': 'Search',
|
|
82
83
|
'GlSorting.sortAscending': 'Sort direction: ascending',
|