@vaadin/field-highlighter 23.2.0-dev.8a7678b70 → 23.3.0-alpha1
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/README.md +1 -1
- package/package.json +17 -17
- package/src/fields/vaadin-checkbox-group-observer.js +1 -1
- package/src/fields/vaadin-list-box-observer.js +1 -1
- package/src/fields/vaadin-radio-group-observer.js +1 -1
- package/src/vaadin-field-highlighter.d.ts +1 -1
- package/src/vaadin-user-tags.js +7 -3
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ A set of field helpers used by [Vaadin Collaboration Engine](https://vaadin.com/
|
|
|
4
4
|
|
|
5
5
|
## Contributing
|
|
6
6
|
|
|
7
|
-
Read the [contributing guide](https://vaadin.com/docs/latest/
|
|
7
|
+
Read the [contributing guide](https://vaadin.com/docs/latest/contributing/overview) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
|
|
8
8
|
|
|
9
9
|
## License
|
|
10
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/field-highlighter",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.3.0-alpha1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,27 +34,27 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@polymer/polymer": "^3.0.0",
|
|
37
|
-
"@vaadin/component-base": "23.
|
|
38
|
-
"@vaadin/vaadin-lumo-styles": "23.
|
|
39
|
-
"@vaadin/vaadin-material-styles": "23.
|
|
40
|
-
"@vaadin/vaadin-overlay": "23.
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "23.
|
|
37
|
+
"@vaadin/component-base": "23.3.0-alpha1",
|
|
38
|
+
"@vaadin/vaadin-lumo-styles": "23.3.0-alpha1",
|
|
39
|
+
"@vaadin/vaadin-material-styles": "23.3.0-alpha1",
|
|
40
|
+
"@vaadin/vaadin-overlay": "23.3.0-alpha1",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "23.3.0-alpha1",
|
|
42
42
|
"lit": "^2.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@esm-bundle/chai": "^4.3.4",
|
|
46
|
-
"@vaadin/checkbox": "23.
|
|
47
|
-
"@vaadin/combo-box": "23.
|
|
48
|
-
"@vaadin/date-picker": "23.
|
|
49
|
-
"@vaadin/date-time-picker": "23.
|
|
50
|
-
"@vaadin/item": "23.
|
|
51
|
-
"@vaadin/list-box": "23.
|
|
52
|
-
"@vaadin/radio-group": "23.
|
|
53
|
-
"@vaadin/select": "23.
|
|
46
|
+
"@vaadin/checkbox": "23.3.0-alpha1",
|
|
47
|
+
"@vaadin/combo-box": "23.3.0-alpha1",
|
|
48
|
+
"@vaadin/date-picker": "23.3.0-alpha1",
|
|
49
|
+
"@vaadin/date-time-picker": "23.3.0-alpha1",
|
|
50
|
+
"@vaadin/item": "23.3.0-alpha1",
|
|
51
|
+
"@vaadin/list-box": "23.3.0-alpha1",
|
|
52
|
+
"@vaadin/radio-group": "23.3.0-alpha1",
|
|
53
|
+
"@vaadin/select": "23.3.0-alpha1",
|
|
54
54
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
55
|
-
"@vaadin/text-field": "23.
|
|
56
|
-
"@vaadin/time-picker": "23.
|
|
55
|
+
"@vaadin/text-field": "23.3.0-alpha1",
|
|
56
|
+
"@vaadin/time-picker": "23.3.0-alpha1",
|
|
57
57
|
"sinon": "^13.0.2"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "beabc527d4b1274eb798ff701d406fed45cfe638"
|
|
60
60
|
}
|
|
@@ -12,6 +12,6 @@ export class CheckboxGroupObserver extends FieldObserver {
|
|
|
12
12
|
|
|
13
13
|
getFocusTarget(event) {
|
|
14
14
|
const fields = this.getFields();
|
|
15
|
-
return Array.from(event.composedPath()).
|
|
15
|
+
return Array.from(event.composedPath()).find((node) => fields.includes(node));
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -12,6 +12,6 @@ export class ListBoxObserver extends FieldObserver {
|
|
|
12
12
|
|
|
13
13
|
getFocusTarget(event) {
|
|
14
14
|
const fields = this.getFields();
|
|
15
|
-
return Array.from(event.composedPath()).
|
|
15
|
+
return Array.from(event.composedPath()).find((node) => fields.includes(node));
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -12,6 +12,6 @@ export class RadioGroupObserver extends FieldObserver {
|
|
|
12
12
|
|
|
13
13
|
getFocusTarget(event) {
|
|
14
14
|
const fields = this.getFields();
|
|
15
|
-
return Array.from(event.composedPath()).
|
|
15
|
+
return Array.from(event.composedPath()).find((node) => fields.includes(node));
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2021 - 2022 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import { ReactiveController } from 'lit';
|
|
6
|
+
import type { ReactiveController } from 'lit';
|
|
7
7
|
|
|
8
8
|
export interface FieldHighlighterUser {
|
|
9
9
|
id: number;
|
package/src/vaadin-user-tags.js
CHANGED
|
@@ -221,7 +221,7 @@ export class UserTags extends PolymerElement {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
getTagForUser(user) {
|
|
224
|
-
return Array.from(this.wrapper.children).
|
|
224
|
+
return Array.from(this.wrapper.children).find((tag) => tag.uid === user.id);
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
getChangedTags(addedUsers, removedUsers) {
|
|
@@ -343,7 +343,9 @@ export class UserTags extends PolymerElement {
|
|
|
343
343
|
|
|
344
344
|
// Hide existing tags
|
|
345
345
|
const hidden = Array.from(wrapper.children);
|
|
346
|
-
hidden.forEach((tag) =>
|
|
346
|
+
hidden.forEach((tag) => {
|
|
347
|
+
tag.style.display = 'none';
|
|
348
|
+
});
|
|
347
349
|
|
|
348
350
|
// Render new tags
|
|
349
351
|
added.forEach((tag) => {
|
|
@@ -363,7 +365,9 @@ export class UserTags extends PolymerElement {
|
|
|
363
365
|
this._debounceFlashEnd = Debouncer.debounce(this._debounceFlashEnd, timeOut.after(this.duration), () => {
|
|
364
366
|
// Show all tags
|
|
365
367
|
const finishFlash = () => {
|
|
366
|
-
hidden.forEach((tag) =>
|
|
368
|
+
hidden.forEach((tag) => {
|
|
369
|
+
tag.style.display = 'block';
|
|
370
|
+
});
|
|
367
371
|
this.flashing = false;
|
|
368
372
|
resolve();
|
|
369
373
|
};
|