@jetbrains/ring-ui 5.0.81 → 5.0.83
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/components/query-assist/query-assist.css +34 -32
- package/components/tags-input/tags-input.css +15 -0
- package/components/tags-input/tags-input.js +2 -3
- package/dist/_helpers/query-assist__suggestions.js +1 -1
- package/dist/data-list/item.js +2 -2
- package/dist/style.css +1 -1
- package/dist/table/selection-shortcuts-hoc.js +2 -2
- package/dist/table/selection.js +3 -3
- package/dist/table/smart-table.js +3 -3
- package/dist/table/table.js +2 -2
- package/dist/tags-input/tags-input.js +19 -20
- package/package.json +8 -8
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
min-height: calc(var(--ring-input-padding-inline) * 3);
|
|
20
20
|
padding: var(--ring-input-padding-block) var(--ring-input-padding-inline);
|
|
21
21
|
|
|
22
|
+
transition: border-color var(--ring-ease);
|
|
23
|
+
|
|
22
24
|
border: 1px solid var(--ring-borders-color);
|
|
23
25
|
border-radius: var(--ring-border-radius);
|
|
24
26
|
|
|
@@ -28,6 +30,34 @@
|
|
|
28
30
|
& * {
|
|
29
31
|
box-sizing: border-box;
|
|
30
32
|
}
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
transition: none;
|
|
36
|
+
|
|
37
|
+
border-color: var(--ring-border-hover-color);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:focus-within {
|
|
41
|
+
transition: none;
|
|
42
|
+
|
|
43
|
+
border-color: var(--ring-main-color);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/*
|
|
47
|
+
Kill yellow/blue webkit autocomplete
|
|
48
|
+
https://css-tricks.com/snippets/css/change-autocomplete-styles-webkit-browsers/
|
|
49
|
+
*/
|
|
50
|
+
&:-webkit-autofill {
|
|
51
|
+
&,
|
|
52
|
+
&:hover,
|
|
53
|
+
&:focus {
|
|
54
|
+
transition: background-color 50000s ease-in-out 0s;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@nest .error & {
|
|
59
|
+
border-color: var(--ring-icon-error-color);
|
|
60
|
+
}
|
|
31
61
|
}
|
|
32
62
|
|
|
33
63
|
.queryAssistDisabled {
|
|
@@ -45,8 +75,6 @@
|
|
|
45
75
|
|
|
46
76
|
padding: 0 0 0 var(--ring-input-padding-inline);
|
|
47
77
|
|
|
48
|
-
border-right: 0;
|
|
49
|
-
|
|
50
78
|
& .actions {
|
|
51
79
|
padding-right: var(--ring-input-padding-inline);
|
|
52
80
|
}
|
|
@@ -67,9 +95,10 @@
|
|
|
67
95
|
}
|
|
68
96
|
|
|
69
97
|
.input {
|
|
70
|
-
overflow:
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
|
|
100
|
+
flex-grow: 1;
|
|
71
101
|
|
|
72
|
-
width: 100%;
|
|
73
102
|
margin: 0;
|
|
74
103
|
|
|
75
104
|
cursor: text;
|
|
@@ -85,34 +114,6 @@
|
|
|
85
114
|
scrollbar-width: none;
|
|
86
115
|
|
|
87
116
|
caret-color: var(--ring-main-color);
|
|
88
|
-
|
|
89
|
-
&:hover {
|
|
90
|
-
transition: none;
|
|
91
|
-
|
|
92
|
-
border-color: var(--ring-border-hover-color);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@nest .error & {
|
|
96
|
-
border-color: var(--ring-icon-error-color);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&:focus {
|
|
100
|
-
transition: none;
|
|
101
|
-
|
|
102
|
-
border-color: var(--ring-main-color);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/*
|
|
106
|
-
Kill yellow/blue webkit autocomplete
|
|
107
|
-
https://css-tricks.com/snippets/css/change-autocomplete-styles-webkit-browsers/
|
|
108
|
-
*/
|
|
109
|
-
&:-webkit-autofill {
|
|
110
|
-
&,
|
|
111
|
-
&:hover,
|
|
112
|
-
&:focus {
|
|
113
|
-
transition: background-color 50000s ease-in-out 0s;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
.letter-text {
|
|
@@ -212,6 +213,7 @@
|
|
|
212
213
|
color: var(--ring-icon-secondary-color);
|
|
213
214
|
|
|
214
215
|
border: 1px solid var(--ring-borders-color);
|
|
216
|
+
border-right: 0;
|
|
215
217
|
border-radius: var(--ring-border-radius);
|
|
216
218
|
border-top-left-radius: 0;
|
|
217
219
|
border-bottom-left-radius: 0;
|
|
@@ -35,6 +35,10 @@
|
|
|
35
35
|
--ring-input-padding-start: var(--ring-input-padding-inline);
|
|
36
36
|
--ring-input-padding-end: var(--ring-input-padding-inline);
|
|
37
37
|
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: row;
|
|
40
|
+
flex-wrap: wrap;
|
|
41
|
+
|
|
38
42
|
width: 100%;
|
|
39
43
|
|
|
40
44
|
margin: 0;
|
|
@@ -76,6 +80,17 @@
|
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
.tagsSelect {
|
|
83
|
+
flex-grow: 1;
|
|
84
|
+
flex-shrink: 1;
|
|
85
|
+
|
|
86
|
+
min-width: 160px;
|
|
87
|
+
|
|
88
|
+
& .input {
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
|
|
91
|
+
text-overflow: ellipsis;
|
|
92
|
+
}
|
|
93
|
+
|
|
79
94
|
& .outerContainer {
|
|
80
95
|
--ring-input-padding-block: 0;
|
|
81
96
|
}
|
|
@@ -141,11 +141,10 @@ export default class TagsInput extends PureComponent {
|
|
|
141
141
|
}, this.focusInput);
|
|
142
142
|
}
|
|
143
143
|
clickHandler = (event) => {
|
|
144
|
-
if (event.target !== this.node) {
|
|
144
|
+
if (event.target !== this.node && event.target.parentElement !== this.node) {
|
|
145
145
|
return;
|
|
146
146
|
}
|
|
147
|
-
this.
|
|
148
|
-
this.focusInput();
|
|
147
|
+
this.select?._clickHandler();
|
|
149
148
|
};
|
|
150
149
|
filterExistingTags = (suggestions) => {
|
|
151
150
|
const tagsMap = new Map(this.state.tags.map(tag => [tag.key, tag]));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import List from '../list/list.js';
|
|
3
3
|
|
|
4
|
-
var modules_da7ab055 = {"unit":"8px","button-shadow":"inset 0 0 0 1px","height":"var(--ring-button-height)","loaderWidth":"64px","overInputZIndex":"2","inputGap":"24px","light":"light_rui_d22e","heightS":"heightS_rui_d22e","heightM":"heightM_rui_d22e","heightL":"heightL_rui_d22e","button":"button_rui_d22e","active":"active_rui_d22e","withIcon":"withIcon_rui_d22e","icon":"icon_rui_d22e","primary":"primary_rui_d22e","loader":"loader_rui_d22e","loaderBackground":"loaderBackground_rui_d22e","danger":"danger_rui_d22e","text":"text_rui_d22e","content":"content_rui_d22e","text-loading":"text-loading_rui_d22e","inline":"inline_rui_d22e","withNormalIcon":"withNormalIcon_rui_d22e","withDangerIcon":"withDangerIcon_rui_d22e","progress":"progress_rui_d22e","delayed":"delayed_rui_d22e","short":"short_rui_d22e","dropdownIcon":"dropdownIcon_rui_d22e","queryAssist":"queryAssist_rui_d22e","queryAssistDisabled":"queryAssistDisabled_rui_d22e","huge":"huge_rui_d22e","actions":"actions_rui_d22e","placeholder":"placeholder_rui_d22e resetButton_rui_8bff","input":"input_rui_d22e","
|
|
4
|
+
var modules_da7ab055 = {"unit":"8px","button-shadow":"inset 0 0 0 1px","height":"var(--ring-button-height)","loaderWidth":"64px","overInputZIndex":"2","inputGap":"24px","light":"light_rui_d22e","heightS":"heightS_rui_d22e","heightM":"heightM_rui_d22e","heightL":"heightL_rui_d22e","button":"button_rui_d22e","active":"active_rui_d22e","withIcon":"withIcon_rui_d22e","icon":"icon_rui_d22e","primary":"primary_rui_d22e","loader":"loader_rui_d22e","loaderBackground":"loaderBackground_rui_d22e","danger":"danger_rui_d22e","text":"text_rui_d22e","content":"content_rui_d22e","text-loading":"text-loading_rui_d22e","inline":"inline_rui_d22e","withNormalIcon":"withNormalIcon_rui_d22e","withDangerIcon":"withDangerIcon_rui_d22e","progress":"progress_rui_d22e","delayed":"delayed_rui_d22e","short":"short_rui_d22e","dropdownIcon":"dropdownIcon_rui_d22e","queryAssist":"queryAssist_rui_d22e","error":"error_rui_d22e","queryAssistDisabled":"queryAssistDisabled_rui_d22e","huge":"huge_rui_d22e","actions":"actions_rui_d22e","placeholder":"placeholder_rui_d22e resetButton_rui_8bff","input":"input_rui_d22e","letter-text":"letter-text_rui_d22e","letterDefault":"letterDefault_rui_d22e","letter-field-name":"letter-field-name_rui_d22e","letter-field-value":"letter-field-value_rui_d22e","letter-operator":"letter-operator_rui_d22e","letter-error":"letter-error_rui_d22e","highlight":"highlight_rui_d22e","service":"service_rui_d22e","letter":"letter_rui_d22e","rightSearchButton":"rightSearchButton_rui_d22e","clear":"clear_rui_d22e","loaderOnTheRight":"loaderOnTheRight_rui_d22e","withoutGlass":"withoutGlass_rui_d22e"};
|
|
5
5
|
|
|
6
6
|
const ICON_ID_LENGTH = 44;
|
|
7
7
|
class QueryAssistSuggestions {
|
package/dist/data-list/item.js
CHANGED
|
@@ -7,7 +7,7 @@ import Link from '../link/link.js';
|
|
|
7
7
|
import Text from '../text/text.js';
|
|
8
8
|
import LoaderInline from '../loader-inline/loader-inline.js';
|
|
9
9
|
import { Button } from '../button/button.js';
|
|
10
|
-
import Selection from '../table/selection.js';
|
|
10
|
+
import Selection$1 from '../table/selection.js';
|
|
11
11
|
import { m as modules_09d014b4, T as Title } from '../_helpers/title.js';
|
|
12
12
|
import 'focus-visible';
|
|
13
13
|
import 'classnames';
|
|
@@ -202,7 +202,7 @@ Item.propTypes = {
|
|
|
202
202
|
onExpand: PropTypes.func,
|
|
203
203
|
showFocus: PropTypes.bool,
|
|
204
204
|
onFocus: PropTypes.func.isRequired,
|
|
205
|
-
selection: PropTypes.instanceOf(Selection).isRequired,
|
|
205
|
+
selection: PropTypes.instanceOf(Selection$1).isRequired,
|
|
206
206
|
selectable: PropTypes.bool,
|
|
207
207
|
selected: PropTypes.bool,
|
|
208
208
|
onSelect: PropTypes.func.isRequired,
|