@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 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\'s important to provide this parameter since the default text is not translatable.
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\'s important to provide this parameter since the default text is not translatable.
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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 Apr 2024 20:25:30 GMT
3
+ * Generated on Wed, 17 Apr 2024 11:12:12 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 Apr 2024 20:25:30 GMT
3
+ * Generated on Wed, 17 Apr 2024 11:12:12 GMT
4
4
  */
5
5
 
6
6
  :root.gl-dark {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 Apr 2024 20:25:30 GMT
3
+ * Generated on Wed, 17 Apr 2024 11:12:12 GMT
4
4
  */
5
5
 
6
6
  export const DATA_VIZ_GREEN_50 = "#133a03";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 16 Apr 2024 20:25:30 GMT
3
+ * Generated on Wed, 17 Apr 2024 11:12:12 GMT
4
4
  */
5
5
 
6
6
  export const DATA_VIZ_GREEN_50 = "#ddfab7";
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 16 Apr 2024 20:25:30 GMT
3
+ // Generated on Wed, 17 Apr 2024 11:12:12 GMT
4
4
 
5
5
  $gl-text-tertiary: #737278 !default;
6
6
  $gl-text-secondary: #89888d !default;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 16 Apr 2024 20:25:30 GMT
3
+ // Generated on Wed, 17 Apr 2024 11:12:12 GMT
4
4
 
5
5
  $gl-text-tertiary: #89888d !default;
6
6
  $gl-text-secondary: #737278 !default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "78.15.0",
3
+ "version": "78.15.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -6,8 +6,8 @@ const generateProps = ({
6
6
  hasNextPage = true,
7
7
  startCursor = 'eyJpZCI6IjE3NTg1ODciLCJyZWxlYXNlZF9hdCI6IjIwMjAtMDgtMjAgMTQ6NDc6MDguNTQ1MjE1MDAwIFVUQyJ9',
8
8
  endCursor = 'eyJpZCI6IjEyNjcxNzkiLCJyZWxlYXNlZF9hdCI6IjIwMjAtMDItMTkgMjE6MDA6MDUuODU5NTQ2MDAwIFVUQyJ9',
9
- prevText = 'Prev',
10
- nextText = 'Next',
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\'s important to provide this parameter since the default text is not translatable.
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\'s important to provide this parameter since the default text is not translatable.
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
  }