@gitlab/ui 62.12.0 → 62.12.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 +9 -0
- package/dist/components/base/filtered_search/filtered_search.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +2 -2
- package/src/components/base/filtered_search/filtered_search.scss +13 -3
- package/src/components/base/filtered_search/filtered_search.vue +32 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "62.12.
|
|
3
|
+
"version": "62.12.1",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"babel-loader": "^8.0.5",
|
|
117
117
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
118
118
|
"bootstrap": "4.6.2",
|
|
119
|
-
"cypress": "12.
|
|
119
|
+
"cypress": "12.12.0",
|
|
120
120
|
"emoji-regex": "^10.0.0",
|
|
121
121
|
"eslint": "8.40.0",
|
|
122
122
|
"eslint-import-resolver-jest": "3.0.2",
|
|
@@ -1,21 +1,31 @@
|
|
|
1
|
-
.gl-filtered-search-scrollable {
|
|
1
|
+
.gl-filtered-search-scrollable-container {
|
|
2
2
|
@include gl-bg-white;
|
|
3
3
|
@include gl-display-flex;
|
|
4
4
|
@include gl-flex-grow-1;
|
|
5
5
|
@include gl-flex-basis-0;
|
|
6
|
-
@include gl-overflow-
|
|
6
|
+
@include gl-overflow-hidden;
|
|
7
7
|
@include gl-align-items-center;
|
|
8
|
-
@include gl-
|
|
8
|
+
@include gl-py-2;
|
|
9
9
|
@include gl-pl-4;
|
|
10
|
+
@include gl-pr-7;
|
|
10
11
|
@include gl-inset-border-1-gray-400;
|
|
11
12
|
@include gl-border-none;
|
|
12
13
|
@include gl-rounded-top-left-base;
|
|
13
14
|
@include gl-rounded-bottom-left-base;
|
|
14
15
|
}
|
|
15
16
|
|
|
17
|
+
.gl-filtered-search-scrollable {
|
|
18
|
+
@include gl-display-flex;
|
|
19
|
+
@include gl-overflow-y-auto;
|
|
20
|
+
}
|
|
21
|
+
|
|
16
22
|
.gl-filtered-search-item {
|
|
17
23
|
@include gl-display-flex;
|
|
18
24
|
@include gl-px-1;
|
|
25
|
+
|
|
26
|
+
&:first-child {
|
|
27
|
+
@include gl-pl-0;
|
|
28
|
+
}
|
|
19
29
|
}
|
|
20
30
|
|
|
21
31
|
.gl-filtered-search-last-item {
|
|
@@ -397,38 +397,40 @@ export default {
|
|
|
397
397
|
</template>
|
|
398
398
|
<template #input>
|
|
399
399
|
<div
|
|
400
|
-
class="gl-filtered-search-scrollable"
|
|
400
|
+
class="gl-filtered-search-scrollable-container"
|
|
401
401
|
:class="{ 'gl-bg-gray-10! gl-inset-border-1-gray-100!': viewOnly }"
|
|
402
402
|
>
|
|
403
|
-
<
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
403
|
+
<div class="gl-filtered-search-scrollable">
|
|
404
|
+
<component
|
|
405
|
+
:is="getTokenComponent(token.type)"
|
|
406
|
+
v-for="(token, idx) in tokens"
|
|
407
|
+
ref="tokens"
|
|
408
|
+
:key="token.id"
|
|
409
|
+
v-model="token.value"
|
|
410
|
+
:config="getTokenEntry(token.type)"
|
|
411
|
+
:active="activeTokenIdx === idx"
|
|
412
|
+
:cursor-position="intendedCursorPosition"
|
|
413
|
+
:available-tokens="currentAvailableTokens"
|
|
414
|
+
:current-value="tokens"
|
|
415
|
+
:index="idx"
|
|
416
|
+
:placeholder="termPlaceholder"
|
|
417
|
+
:show-friendly-text="showFriendlyText"
|
|
418
|
+
:search-input-attributes="searchInputAttributes"
|
|
419
|
+
:view-only="viewOnly"
|
|
420
|
+
:is-last-token="isLastToken(idx)"
|
|
421
|
+
:class="getTokenClassList(idx)"
|
|
422
|
+
:search-text-option-label="searchTextOptionLabel"
|
|
423
|
+
@activate="activate(idx)"
|
|
424
|
+
@deactivate="deactivate(token)"
|
|
425
|
+
@destroy="destroyToken(idx, $event)"
|
|
426
|
+
@replace="replaceToken(idx, $event)"
|
|
427
|
+
@complete="completeToken"
|
|
428
|
+
@submit="submit"
|
|
429
|
+
@split="createTokens(idx, $event)"
|
|
430
|
+
@previous="activatePreviousToken"
|
|
431
|
+
@next="activateNextToken"
|
|
432
|
+
/>
|
|
433
|
+
</div>
|
|
432
434
|
</div>
|
|
433
435
|
<portal-target
|
|
434
436
|
ref="menu"
|