@vaadin/multi-select-combo-box 23.2.2 → 23.3.0-alpha2
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 +11 -11
- package/src/vaadin-multi-select-combo-box.js +8 -0
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/multi-select-combo-box",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.3.0-alpha2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"main": "vaadin-multi-select-combo-box.js",
|
|
20
20
|
"module": "vaadin-multi-select-combo-box.js",
|
|
21
21
|
"files": [
|
|
22
|
-
"lit.js",
|
|
23
22
|
"lit.d.ts",
|
|
23
|
+
"lit.js",
|
|
24
24
|
"src",
|
|
25
25
|
"theme",
|
|
26
26
|
"vaadin-*.d.ts",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@polymer/polymer": "^3.0.0",
|
|
40
|
-
"@vaadin/combo-box": "
|
|
41
|
-
"@vaadin/component-base": "
|
|
42
|
-
"@vaadin/field-base": "
|
|
43
|
-
"@vaadin/input-container": "
|
|
44
|
-
"@vaadin/lit-renderer": "
|
|
45
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
46
|
-
"@vaadin/vaadin-material-styles": "
|
|
47
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
40
|
+
"@vaadin/combo-box": "23.3.0-alpha2",
|
|
41
|
+
"@vaadin/component-base": "23.3.0-alpha2",
|
|
42
|
+
"@vaadin/field-base": "23.3.0-alpha2",
|
|
43
|
+
"@vaadin/input-container": "23.3.0-alpha2",
|
|
44
|
+
"@vaadin/lit-renderer": "23.3.0-alpha2",
|
|
45
|
+
"@vaadin/vaadin-lumo-styles": "23.3.0-alpha2",
|
|
46
|
+
"@vaadin/vaadin-material-styles": "23.3.0-alpha2",
|
|
47
|
+
"@vaadin/vaadin-themable-mixin": "23.3.0-alpha2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@esm-bundle/chai": "^4.3.4",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "ae61027c62ffa7f7d70cfc50e43f333addfc74b6"
|
|
59
59
|
}
|
|
@@ -11,6 +11,7 @@ import { announce } from '@vaadin/component-base/src/a11y-announcer.js';
|
|
|
11
11
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
12
12
|
import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
|
|
13
13
|
import { processTemplates } from '@vaadin/component-base/src/templates.js';
|
|
14
|
+
import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js';
|
|
14
15
|
import { InputControlMixin } from '@vaadin/field-base/src/input-control-mixin.js';
|
|
15
16
|
import { InputController } from '@vaadin/field-base/src/input-controller.js';
|
|
16
17
|
import { LabelledInputController } from '@vaadin/field-base/src/labelled-input-controller.js';
|
|
@@ -213,6 +214,8 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
|
|
|
213
214
|
<slot name="error-message"></slot>
|
|
214
215
|
</div>
|
|
215
216
|
</div>
|
|
217
|
+
|
|
218
|
+
<slot name="tooltip"></slot>
|
|
216
219
|
`;
|
|
217
220
|
}
|
|
218
221
|
|
|
@@ -510,6 +513,11 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
|
|
|
510
513
|
);
|
|
511
514
|
this.addController(new LabelledInputController(this.inputElement, this._labelController));
|
|
512
515
|
|
|
516
|
+
this._tooltipController = new TooltipController(this);
|
|
517
|
+
this.addController(this._tooltipController);
|
|
518
|
+
this._tooltipController.setPosition('top');
|
|
519
|
+
this._tooltipController.setShouldShow((target) => !target.opened);
|
|
520
|
+
|
|
513
521
|
this._inputField = this.shadowRoot.querySelector('[part="input-field"]');
|
|
514
522
|
this.__updateChips();
|
|
515
523
|
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED