@gitlab/ui 80.19.0 → 80.20.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/CHANGELOG.md +14 -0
- package/dist/components/base/form/form_textarea/form_textarea.js +7 -1
- package/dist/components/experimental/duo/chat/duo_chat.js +3 -2
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +2 -2
- package/src/components/base/form/form_textarea/form_textarea.vue +6 -0
- package/src/components/base/pagination/pagination.md +0 -18
- package/src/components/experimental/duo/chat/duo_chat.vue +3 -2
- package/src/scss/components.scss +0 -1
- package/src/components/base/form/form_textarea/form_textarea.scss +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "80.
|
|
3
|
+
"version": "80.20.0",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"babel-jest": "29.0.1",
|
|
138
138
|
"babel-loader": "^8.0.5",
|
|
139
139
|
"bootstrap": "4.6.2",
|
|
140
|
-
"cypress": "13.
|
|
140
|
+
"cypress": "13.11.0",
|
|
141
141
|
"cypress-axe": "^1.4.0",
|
|
142
142
|
"cypress-real-events": "^1.11.0",
|
|
143
143
|
"dompurify": "^3.1.2",
|
|
@@ -41,6 +41,11 @@ export default {
|
|
|
41
41
|
required: false,
|
|
42
42
|
default: null,
|
|
43
43
|
},
|
|
44
|
+
rows: {
|
|
45
|
+
type: Number,
|
|
46
|
+
required: false,
|
|
47
|
+
default: 4,
|
|
48
|
+
},
|
|
44
49
|
},
|
|
45
50
|
data() {
|
|
46
51
|
return {
|
|
@@ -89,6 +94,7 @@ export default {
|
|
|
89
94
|
class: 'gl-form-input gl-form-textarea',
|
|
90
95
|
noResize: this.noResize,
|
|
91
96
|
value: this.value,
|
|
97
|
+
rows: this.rows,
|
|
92
98
|
};
|
|
93
99
|
},
|
|
94
100
|
},
|
|
@@ -16,24 +16,6 @@ The current page's value should be bound using `v-model`, e.g.:
|
|
|
16
16
|
</template>
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
## Compact pagination
|
|
20
|
-
|
|
21
|
-
In some cases, you might not be able to provide the total items count because your API doesn't
|
|
22
|
-
support it or because of performance concerns. For such cases, the pagination component supports a
|
|
23
|
-
compact mode, where only the previous and next buttons are displayed.
|
|
24
|
-
|
|
25
|
-
To enable the compact mode, you'll need to provide the previous and/or next page numbers via the
|
|
26
|
-
`prev-page` and `next-page` props respectively.
|
|
27
|
-
|
|
28
|
-
> NOTE: If one of the props is omitted, the corresponding button will be disabled. If both
|
|
29
|
-
> properties are omitted the pagination won't render at all.
|
|
30
|
-
|
|
31
|
-
```html
|
|
32
|
-
<template>
|
|
33
|
-
<gl-pagination :value="2" :prev-page="1" :next-page="3" />
|
|
34
|
-
</template>
|
|
35
|
-
```
|
|
36
|
-
|
|
37
19
|
## Limits
|
|
38
20
|
|
|
39
21
|
The `limits` prop is used to define pagination link limits based on Bootstrap's breakpoint sizes.
|
|
@@ -313,7 +313,7 @@ export default {
|
|
|
313
313
|
this.$emit('track-feedback', event);
|
|
314
314
|
},
|
|
315
315
|
onInputKeyup(e) {
|
|
316
|
-
const { metaKey, ctrlKey, altKey, shiftKey } = e;
|
|
316
|
+
const { metaKey, ctrlKey, altKey, shiftKey, isComposing } = e;
|
|
317
317
|
|
|
318
318
|
if (this.shouldShowSlashCommands) {
|
|
319
319
|
e.preventDefault();
|
|
@@ -327,8 +327,9 @@ export default {
|
|
|
327
327
|
} else {
|
|
328
328
|
this.activeCommandIndex = 0;
|
|
329
329
|
}
|
|
330
|
-
} else if (e.key === 'Enter' && !(metaKey || ctrlKey || altKey || shiftKey)) {
|
|
330
|
+
} else if (e.key === 'Enter' && !isComposing && !(metaKey || ctrlKey || altKey || shiftKey)) {
|
|
331
331
|
e.preventDefault();
|
|
332
|
+
|
|
332
333
|
this.sendChatPrompt();
|
|
333
334
|
}
|
|
334
335
|
},
|
package/src/scss/components.scss
CHANGED
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
@import '../components/base/form/form_radio/form_radio';
|
|
46
46
|
@import '../components/base/form/form_radio_group/form_radio_group';
|
|
47
47
|
@import '../components/base/form/form_select/form_select';
|
|
48
|
-
@import '../components/base/form/form_textarea/form_textarea';
|
|
49
48
|
@import '../components/base/form/form_combobox/form_combobox';
|
|
50
49
|
@import '../components/base/icon/icon';
|
|
51
50
|
@import '../components/base/infinite_scroll/infinite_scroll';
|