@gitlab/ui 71.0.0 → 71.1.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 +14 -0
- package/dist/components/base/filtered_search/filtered_search_term.js +6 -3
- package/dist/components/base/filtered_search/filtered_search_token.js +8 -5
- package/dist/index.css.map +1 -1
- 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/dist/utility_classes.css +1 -1
- package/dist/utility_classes.css.map +1 -1
- package/package.json +2 -2
- package/src/components/base/filtered_search/filtered_search.spec.js +1 -1
- package/src/components/base/filtered_search/filtered_search_term.vue +7 -3
- package/src/components/base/filtered_search/filtered_search_token.spec.js +1 -0
- package/src/components/base/filtered_search/filtered_search_token.vue +10 -5
- package/src/scss/utilities.scss +42 -0
- package/src/scss/utility-mixins/text.scss +32 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [71.1.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v71.1.0...v71.1.1) (2023-11-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **GlFilteredSearch:** Make close button keyboard accessible ([78d809c](https://gitlab.com/gitlab-org/gitlab-ui/commit/78d809ccd7065ee61c90e09f48daa014f697557a))
|
|
7
|
+
|
|
8
|
+
# [71.1.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v71.0.0...v71.1.0) (2023-11-24)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **css:** Add gl-line-clamp-{value} utility class ([304a508](https://gitlab.com/gitlab-org/gitlab-ui/commit/304a508af5933ebe33de9f30f7e0aca4c871654a))
|
|
14
|
+
|
|
1
15
|
# [71.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v70.0.1...v71.0.0) (2023-11-22)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -122,7 +122,8 @@ var script = {
|
|
|
122
122
|
},
|
|
123
123
|
eventListeners() {
|
|
124
124
|
return this.viewOnly ? {} : {
|
|
125
|
-
mousedown: this.
|
|
125
|
+
mousedown: this.stopMousedownOnCloseButton,
|
|
126
|
+
close: this.destroyByClose
|
|
126
127
|
};
|
|
127
128
|
}
|
|
128
129
|
},
|
|
@@ -139,12 +140,14 @@ var script = {
|
|
|
139
140
|
intent: INTENT_ACTIVATE_PREVIOUS
|
|
140
141
|
});
|
|
141
142
|
},
|
|
142
|
-
|
|
143
|
+
stopMousedownOnCloseButton(event) {
|
|
143
144
|
if (event.target.closest(TOKEN_CLOSE_SELECTOR)) {
|
|
144
145
|
stopEvent(event);
|
|
145
|
-
this.$emit('destroy');
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
|
+
destroyByClose() {
|
|
149
|
+
this.$emit('destroy');
|
|
150
|
+
},
|
|
148
151
|
onComplete(type) {
|
|
149
152
|
if (type === TERM_TOKEN_TYPE) {
|
|
150
153
|
// We've completed this term token
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import cloneDeep from 'lodash/cloneDeep';
|
|
2
2
|
import isEqual from 'lodash/isEqual';
|
|
3
3
|
import GlToken from '../token/token';
|
|
4
|
+
import { stopEvent } from '../../../utils/utils';
|
|
4
5
|
import GlFilteredSearchTokenSegment from './filtered_search_token_segment';
|
|
5
6
|
import { tokenToOption, createTerm, TOKEN_CLOSE_SELECTOR } from './filtered_search_utils';
|
|
6
7
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
@@ -116,7 +117,8 @@ var script = {
|
|
|
116
117
|
},
|
|
117
118
|
eventListeners() {
|
|
118
119
|
return this.viewOnly ? {} : {
|
|
119
|
-
mousedown: this.
|
|
120
|
+
mousedown: this.stopMousedownOnCloseButton,
|
|
121
|
+
close: this.destroyByClose
|
|
120
122
|
};
|
|
121
123
|
}
|
|
122
124
|
},
|
|
@@ -315,12 +317,13 @@ var script = {
|
|
|
315
317
|
*/
|
|
316
318
|
this.$emit('complete');
|
|
317
319
|
},
|
|
318
|
-
|
|
320
|
+
stopMousedownOnCloseButton(event) {
|
|
319
321
|
if (event.target.closest(TOKEN_CLOSE_SELECTOR)) {
|
|
320
|
-
event
|
|
321
|
-
event.stopPropagation();
|
|
322
|
-
this.$emit('destroy');
|
|
322
|
+
stopEvent(event);
|
|
323
323
|
}
|
|
324
|
+
},
|
|
325
|
+
destroyByClose() {
|
|
326
|
+
this.$emit('destroy');
|
|
324
327
|
}
|
|
325
328
|
}
|
|
326
329
|
};
|