@vaadin/field-highlighter 23.1.0-beta3 → 23.1.0-rc2
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/field-highlighter",
|
|
3
|
-
"version": "23.1.0-
|
|
3
|
+
"version": "23.1.0-rc2",
|
|
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.1.0-
|
|
38
|
-
"@vaadin/vaadin-lumo-styles": "23.1.0-
|
|
39
|
-
"@vaadin/vaadin-material-styles": "23.1.0-
|
|
40
|
-
"@vaadin/vaadin-overlay": "23.1.0-
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "23.1.0-
|
|
37
|
+
"@vaadin/component-base": "23.1.0-rc2",
|
|
38
|
+
"@vaadin/vaadin-lumo-styles": "23.1.0-rc2",
|
|
39
|
+
"@vaadin/vaadin-material-styles": "23.1.0-rc2",
|
|
40
|
+
"@vaadin/vaadin-overlay": "23.1.0-rc2",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "23.1.0-rc2",
|
|
42
42
|
"lit": "^2.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@esm-bundle/chai": "^4.3.4",
|
|
46
|
-
"@vaadin/checkbox": "23.1.0-
|
|
47
|
-
"@vaadin/combo-box": "23.1.0-
|
|
48
|
-
"@vaadin/date-picker": "23.1.0-
|
|
49
|
-
"@vaadin/date-time-picker": "23.1.0-
|
|
50
|
-
"@vaadin/item": "23.1.0-
|
|
51
|
-
"@vaadin/list-box": "23.1.0-
|
|
52
|
-
"@vaadin/radio-group": "23.1.0-
|
|
53
|
-
"@vaadin/select": "23.1.0-
|
|
46
|
+
"@vaadin/checkbox": "23.1.0-rc2",
|
|
47
|
+
"@vaadin/combo-box": "23.1.0-rc2",
|
|
48
|
+
"@vaadin/date-picker": "23.1.0-rc2",
|
|
49
|
+
"@vaadin/date-time-picker": "23.1.0-rc2",
|
|
50
|
+
"@vaadin/item": "23.1.0-rc2",
|
|
51
|
+
"@vaadin/list-box": "23.1.0-rc2",
|
|
52
|
+
"@vaadin/radio-group": "23.1.0-rc2",
|
|
53
|
+
"@vaadin/select": "23.1.0-rc2",
|
|
54
54
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
55
|
-
"@vaadin/text-field": "23.1.0-
|
|
56
|
-
"@vaadin/time-picker": "23.1.0-
|
|
55
|
+
"@vaadin/text-field": "23.1.0-rc2",
|
|
56
|
+
"@vaadin/time-picker": "23.1.0-rc2",
|
|
57
57
|
"sinon": "^13.0.2"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "154c6782c42145fed21e443559fbe2d781ad3ec7"
|
|
60
60
|
}
|
|
@@ -20,8 +20,6 @@ export interface FieldHighlighterUser {
|
|
|
20
20
|
* See https://vaadin.com/collaboration for Collaboration Engine documentation.
|
|
21
21
|
*/
|
|
22
22
|
declare class FieldHighlighterController implements ReactiveController {
|
|
23
|
-
constructor(host: HTMLElement);
|
|
24
|
-
|
|
25
23
|
/**
|
|
26
24
|
* The controller host element.
|
|
27
25
|
*/
|
|
@@ -47,6 +45,8 @@ declare class FieldHighlighterController implements ReactiveController {
|
|
|
47
45
|
*/
|
|
48
46
|
users: FieldHighlighterUser[];
|
|
49
47
|
|
|
48
|
+
constructor(host: HTMLElement);
|
|
49
|
+
|
|
50
50
|
hostConnected(): void;
|
|
51
51
|
|
|
52
52
|
redraw(): void;
|
package/src/vaadin-user-tags.js
CHANGED
|
@@ -231,16 +231,25 @@ export class UserTags extends PolymerElement {
|
|
|
231
231
|
|
|
232
232
|
if (this.opened && this.hasFocus) {
|
|
233
233
|
this.updateTags(users, changedTags);
|
|
234
|
-
} else if (addedUsers.length && document.visibilityState !== 'hidden') {
|
|
234
|
+
} else if (addedUsers.length > 0 && document.visibilityState !== 'hidden') {
|
|
235
235
|
// Avoid adding to queue if window is not visible.
|
|
236
|
-
|
|
236
|
+
|
|
237
|
+
const addedTags = changedTags.added;
|
|
238
|
+
const removedTags = changedTags.removed;
|
|
239
|
+
|
|
240
|
+
// Only sync the removed user tags.
|
|
241
|
+
// The added tags are handled by the `flashTags` method.
|
|
242
|
+
this.updateTagsSync(users, {
|
|
243
|
+
added: [],
|
|
244
|
+
removed: removedTags,
|
|
245
|
+
});
|
|
246
|
+
|
|
237
247
|
if (this.flashing) {
|
|
238
248
|
// Schedule next flash later
|
|
239
|
-
this.push('_flashQueue',
|
|
249
|
+
this.push('_flashQueue', addedTags);
|
|
240
250
|
} else {
|
|
241
|
-
this.flashTags(
|
|
251
|
+
this.flashTags(addedTags);
|
|
242
252
|
}
|
|
243
|
-
this.set('users', users);
|
|
244
253
|
} else {
|
|
245
254
|
this.updateTagsSync(users, changedTags);
|
|
246
255
|
}
|
|
@@ -3,5 +3,6 @@
|
|
|
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 '@vaadin/vaadin-overlay/theme/lumo/vaadin-overlay.js';
|
|
6
7
|
import './vaadin-user-tags-styles.js';
|
|
7
8
|
import '../../src/vaadin-user-tags.js';
|
|
@@ -3,5 +3,6 @@
|
|
|
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 '@vaadin/vaadin-overlay/theme/material/vaadin-overlay.js';
|
|
6
7
|
import './vaadin-user-tags-styles.js';
|
|
7
8
|
import '../../src/vaadin-user-tags.js';
|