@gitlab/ui 78.15.0 → 78.15.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 +7 -0
- package/dist/components/base/keyset_pagination/keyset_pagination.js +6 -5
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.dark.css +1 -1
- package/dist/tokens/js/tokens.dark.js +1 -1
- package/dist/tokens/js/tokens.js +1 -1
- package/dist/tokens/scss/_tokens.dark.scss +1 -1
- package/dist/tokens/scss/_tokens.scss +1 -1
- package/package.json +1 -1
- package/src/components/base/keyset_pagination/keyset_pagination.stories.js +2 -2
- package/src/components/base/keyset_pagination/keyset_pagination.vue +6 -5
- package/translations.json +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [78.15.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v78.15.0...v78.15.1) (2024-04-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **GlKeysetPagination:** externalize labels ([9057c19](https://gitlab.com/gitlab-org/gitlab-ui/commit/9057c1910477f1e5a9252900b3c67cd10c2eb2bf))
|
|
7
|
+
|
|
1
8
|
# [78.15.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v78.14.1...v78.15.0) (2024-04-16)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import GlButton from '../button/button';
|
|
2
2
|
import GlButtonGroup from '../button_group/button_group';
|
|
3
3
|
import GlIcon from '../icon/icon';
|
|
4
|
+
import { translate } from '../../../utils/i18n';
|
|
4
5
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
5
6
|
|
|
6
7
|
var script = {
|
|
@@ -53,12 +54,12 @@ var script = {
|
|
|
53
54
|
},
|
|
54
55
|
/**
|
|
55
56
|
* The text that will be rendered inside the "Prev" button.
|
|
56
|
-
* It
|
|
57
|
+
* It's important to provide this parameter since the default text is not translatable.
|
|
57
58
|
*/
|
|
58
59
|
prevText: {
|
|
59
60
|
type: String,
|
|
60
61
|
required: false,
|
|
61
|
-
default: 'Prev'
|
|
62
|
+
default: () => translate('GlKeysetPagination.prevText', 'Prev')
|
|
62
63
|
},
|
|
63
64
|
/**
|
|
64
65
|
* A link that will be used as the "Prev" button\'s "href" attribute.
|
|
@@ -76,16 +77,16 @@ var script = {
|
|
|
76
77
|
navigationLabel: {
|
|
77
78
|
type: String,
|
|
78
79
|
required: false,
|
|
79
|
-
default: 'Pagination'
|
|
80
|
+
default: () => translate('GlKeysetPagination.navigationLabel', 'Pagination')
|
|
80
81
|
},
|
|
81
82
|
/**
|
|
82
83
|
* The text that will be rendered inside the "Next" button.
|
|
83
|
-
* It
|
|
84
|
+
* It's important to provide this parameter since the default text is not translatable.
|
|
84
85
|
*/
|
|
85
86
|
nextText: {
|
|
86
87
|
type: String,
|
|
87
88
|
required: false,
|
|
88
|
-
default: 'Next'
|
|
89
|
+
default: () => translate('GlKeysetPagination.nextText', 'Next')
|
|
89
90
|
},
|
|
90
91
|
/**
|
|
91
92
|
* A link that will be used as the "Next" button\'s "href" attribute.
|
package/dist/tokens/js/tokens.js
CHANGED
package/package.json
CHANGED
|
@@ -6,8 +6,8 @@ const generateProps = ({
|
|
|
6
6
|
hasNextPage = true,
|
|
7
7
|
startCursor = 'eyJpZCI6IjE3NTg1ODciLCJyZWxlYXNlZF9hdCI6IjIwMjAtMDgtMjAgMTQ6NDc6MDguNTQ1MjE1MDAwIFVUQyJ9',
|
|
8
8
|
endCursor = 'eyJpZCI6IjEyNjcxNzkiLCJyZWxlYXNlZF9hdCI6IjIwMjAtMDItMTkgMjE6MDA6MDUuODU5NTQ2MDAwIFVUQyJ9',
|
|
9
|
-
prevText
|
|
10
|
-
nextText
|
|
9
|
+
prevText,
|
|
10
|
+
nextText,
|
|
11
11
|
prevButtonLink = '',
|
|
12
12
|
nextButtonLink = '',
|
|
13
13
|
disabled = false,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import GlButton from '../button/button.vue';
|
|
3
3
|
import GlButtonGroup from '../button_group/button_group.vue';
|
|
4
4
|
import GlIcon from '../icon/icon.vue';
|
|
5
|
+
import { translate } from '../../../utils/i18n';
|
|
5
6
|
|
|
6
7
|
export default {
|
|
7
8
|
name: 'GlKeysetPagination',
|
|
@@ -53,12 +54,12 @@ export default {
|
|
|
53
54
|
},
|
|
54
55
|
/**
|
|
55
56
|
* The text that will be rendered inside the "Prev" button.
|
|
56
|
-
* It
|
|
57
|
+
* It's important to provide this parameter since the default text is not translatable.
|
|
57
58
|
*/
|
|
58
59
|
prevText: {
|
|
59
60
|
type: String,
|
|
60
61
|
required: false,
|
|
61
|
-
default: 'Prev',
|
|
62
|
+
default: () => translate('GlKeysetPagination.prevText', 'Prev'),
|
|
62
63
|
},
|
|
63
64
|
/**
|
|
64
65
|
* A link that will be used as the "Prev" button\'s "href" attribute.
|
|
@@ -76,16 +77,16 @@ export default {
|
|
|
76
77
|
navigationLabel: {
|
|
77
78
|
type: String,
|
|
78
79
|
required: false,
|
|
79
|
-
default: 'Pagination',
|
|
80
|
+
default: () => translate('GlKeysetPagination.navigationLabel', 'Pagination'),
|
|
80
81
|
},
|
|
81
82
|
/**
|
|
82
83
|
* The text that will be rendered inside the "Next" button.
|
|
83
|
-
* It
|
|
84
|
+
* It's important to provide this parameter since the default text is not translatable.
|
|
84
85
|
*/
|
|
85
86
|
nextText: {
|
|
86
87
|
type: String,
|
|
87
88
|
required: false,
|
|
88
|
-
default: 'Next',
|
|
89
|
+
default: () => translate('GlKeysetPagination.nextText', 'Next'),
|
|
89
90
|
},
|
|
90
91
|
/**
|
|
91
92
|
* A link that will be used as the "Next" button\'s "href" attribute.
|
package/translations.json
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
"GlSorting.sortDescending": "Sort direction: descending",
|
|
5
5
|
"GlSearchBoxByType.clearButtonTitle": "Clear",
|
|
6
6
|
"GlSearchBoxByType.input.placeholder": "Search",
|
|
7
|
+
"GlKeysetPagination.prevText": "Prev",
|
|
8
|
+
"GlKeysetPagination.navigationLabel": "Pagination",
|
|
9
|
+
"GlKeysetPagination.nextText": "Next",
|
|
7
10
|
"GlBreadcrumb.showMoreLabel": "Show more breadcrumbs",
|
|
8
11
|
"GlCollapsibleListbox.srOnlyResultsLabel": "Results count"
|
|
9
12
|
}
|