@vaadin/message-input 25.3.0-beta1 → 25.3.0-beta2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/message-input",
|
|
3
|
-
"version": "25.3.0-
|
|
3
|
+
"version": "25.3.0-beta2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/button": "25.3.0-
|
|
39
|
-
"@vaadin/component-base": "25.3.0-
|
|
40
|
-
"@vaadin/text-area": "25.3.0-
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "25.3.0-
|
|
38
|
+
"@vaadin/button": "25.3.0-beta2",
|
|
39
|
+
"@vaadin/component-base": "25.3.0-beta2",
|
|
40
|
+
"@vaadin/text-area": "25.3.0-beta2",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "25.3.0-beta2",
|
|
42
42
|
"lit": "^3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@vaadin/aura": "25.3.0-
|
|
46
|
-
"@vaadin/chai-plugins": "25.3.0-
|
|
47
|
-
"@vaadin/test-runner-commands": "25.3.0-
|
|
45
|
+
"@vaadin/aura": "25.3.0-beta2",
|
|
46
|
+
"@vaadin/chai-plugins": "25.3.0-beta2",
|
|
47
|
+
"@vaadin/test-runner-commands": "25.3.0-beta2",
|
|
48
48
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
49
|
-
"@vaadin/vaadin-lumo-styles": "25.3.0-
|
|
49
|
+
"@vaadin/vaadin-lumo-styles": "25.3.0-beta2",
|
|
50
50
|
"sinon": "^22.0.0"
|
|
51
51
|
},
|
|
52
52
|
"customElements": "custom-elements.json",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"web-types.json",
|
|
55
55
|
"web-types.lit.json"
|
|
56
56
|
],
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "d97ccbec217b60c39f3c8b2dd52473c79a48c8c1"
|
|
58
58
|
}
|
|
@@ -14,10 +14,25 @@ export const messageInputStyles = css`
|
|
|
14
14
|
flex-shrink: 0;
|
|
15
15
|
border: var(--vaadin-input-field-border-width, 1px) solid
|
|
16
16
|
var(--vaadin-input-field-border-color, var(--vaadin-border-color));
|
|
17
|
-
|
|
17
|
+
--_radius: var(--vaadin-input-field-border-radius, var(--vaadin-radius-m));
|
|
18
|
+
border-radius:
|
|
19
|
+
/* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
|
|
20
|
+
var(--vaadin-input-field-top-start-radius, var(--_radius))
|
|
21
|
+
var(--vaadin-input-field-top-end-radius, var(--_radius))
|
|
22
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_radius))
|
|
23
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_radius));
|
|
18
24
|
background: var(--vaadin-input-field-background, var(--vaadin-background-color));
|
|
19
25
|
}
|
|
20
26
|
|
|
27
|
+
:host([dir='rtl']) {
|
|
28
|
+
border-radius:
|
|
29
|
+
/* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
|
|
30
|
+
var(--vaadin-input-field-top-end-radius, var(--_radius))
|
|
31
|
+
var(--vaadin-input-field-top-start-radius, var(--_radius))
|
|
32
|
+
var(--vaadin-input-field-bottom-start-radius, var(--_radius))
|
|
33
|
+
var(--vaadin-input-field-bottom-end-radius, var(--_radius));
|
|
34
|
+
}
|
|
35
|
+
|
|
21
36
|
:host([hidden]) {
|
|
22
37
|
display: none !important;
|
|
23
38
|
}
|
|
@@ -124,6 +124,15 @@ export const MessageInputMixin = (superClass) =>
|
|
|
124
124
|
|
|
125
125
|
this._tooltipController = new TooltipController(this);
|
|
126
126
|
this.addController(this._tooltipController);
|
|
127
|
+
|
|
128
|
+
this.addEventListener('mousedown', (event) => {
|
|
129
|
+
// Focus the text area when clicking the space around it.
|
|
130
|
+
if (event.target === this) {
|
|
131
|
+
// Prevent mousedown to avoid blur and re-focus if already focused.
|
|
132
|
+
event.preventDefault();
|
|
133
|
+
this.focus({ focusVisible: false });
|
|
134
|
+
}
|
|
135
|
+
});
|
|
127
136
|
}
|
|
128
137
|
|
|
129
138
|
focus(options) {
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED