@vaadin/field-highlighter 23.1.0-alpha2 → 23.1.0-beta1

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-alpha2",
3
+ "version": "23.1.0-beta1",
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-alpha2",
38
- "@vaadin/vaadin-lumo-styles": "23.1.0-alpha2",
39
- "@vaadin/vaadin-material-styles": "23.1.0-alpha2",
40
- "@vaadin/vaadin-overlay": "23.1.0-alpha2",
41
- "@vaadin/vaadin-themable-mixin": "23.1.0-alpha2",
37
+ "@vaadin/component-base": "23.1.0-beta1",
38
+ "@vaadin/vaadin-lumo-styles": "23.1.0-beta1",
39
+ "@vaadin/vaadin-material-styles": "23.1.0-beta1",
40
+ "@vaadin/vaadin-overlay": "23.1.0-beta1",
41
+ "@vaadin/vaadin-themable-mixin": "23.1.0-beta1",
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-alpha2",
47
- "@vaadin/combo-box": "23.1.0-alpha2",
48
- "@vaadin/date-picker": "23.1.0-alpha2",
49
- "@vaadin/date-time-picker": "23.1.0-alpha2",
50
- "@vaadin/item": "23.1.0-alpha2",
51
- "@vaadin/list-box": "23.1.0-alpha2",
52
- "@vaadin/radio-group": "23.1.0-alpha2",
53
- "@vaadin/select": "23.1.0-alpha2",
46
+ "@vaadin/checkbox": "23.1.0-beta1",
47
+ "@vaadin/combo-box": "23.1.0-beta1",
48
+ "@vaadin/date-picker": "23.1.0-beta1",
49
+ "@vaadin/date-time-picker": "23.1.0-beta1",
50
+ "@vaadin/item": "23.1.0-beta1",
51
+ "@vaadin/list-box": "23.1.0-beta1",
52
+ "@vaadin/radio-group": "23.1.0-beta1",
53
+ "@vaadin/select": "23.1.0-beta1",
54
54
  "@vaadin/testing-helpers": "^0.3.2",
55
- "@vaadin/text-field": "23.1.0-alpha2",
56
- "@vaadin/time-picker": "23.1.0-alpha2",
57
- "sinon": "^9.2.1"
55
+ "@vaadin/text-field": "23.1.0-beta1",
56
+ "@vaadin/time-picker": "23.1.0-beta1",
57
+ "sinon": "^13.0.2"
58
58
  },
59
- "gitHead": "6842dcb8b163d4512fae8d3d12a6559077a4aee6"
59
+ "gitHead": "8be43cf83102a6b9ccf309687446e590ce0164e8"
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()).filter((node) => fields.indexOf(node) !== -1)[0];
15
+ return Array.from(event.composedPath()).filter((node) => fields.includes(node))[0];
16
16
  }
17
17
  }
@@ -109,8 +109,8 @@ export class ComponentObserver {
109
109
  new CustomEvent(`vaadin-highlight-${action}`, {
110
110
  bubbles: true,
111
111
  composed: true,
112
- detail: { fieldIndex: this.getFieldIndex(field) }
113
- })
112
+ detail: { fieldIndex: this.getFieldIndex(field) },
113
+ }),
114
114
  );
115
115
  }
116
116
 
@@ -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()).filter((node) => fields.indexOf(node) !== -1)[0];
15
+ return Array.from(event.composedPath()).filter((node) => fields.includes(node))[0];
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()).filter((node) => fields.indexOf(node) !== -1)[0];
15
+ return Array.from(event.composedPath()).filter((node) => fields.includes(node))[0];
16
16
  }
17
17
  }
@@ -54,8 +54,8 @@ export class FieldOutline extends ThemableMixin(DirMixin(PolymerElement)) {
54
54
  user: {
55
55
  type: Object,
56
56
  value: null,
57
- observer: '_userChanged'
58
- }
57
+ observer: '_userChanged',
58
+ },
59
59
  };
60
60
  }
61
61
 
@@ -66,14 +66,14 @@ export class UserTag extends ThemableMixin(DirMixin(PolymerElement)) {
66
66
  * Name of the user.
67
67
  */
68
68
  name: {
69
- type: String
69
+ type: String,
70
70
  },
71
71
 
72
72
  /**
73
73
  * Id of the user.
74
74
  */
75
75
  uid: {
76
- type: String
76
+ type: String,
77
77
  },
78
78
 
79
79
  /**
@@ -81,8 +81,8 @@ export class UserTag extends ThemableMixin(DirMixin(PolymerElement)) {
81
81
  */
82
82
  colorIndex: {
83
83
  type: Number,
84
- observer: '_colorIndexChanged'
85
- }
84
+ observer: '_colorIndexChanged',
85
+ },
86
86
  };
87
87
  }
88
88
 
@@ -114,9 +114,9 @@ export class UserTag extends ThemableMixin(DirMixin(PolymerElement)) {
114
114
  bubbles: true,
115
115
  composed: true,
116
116
  detail: {
117
- name: this.name
118
- }
119
- })
117
+ name: this.name,
118
+ },
119
+ }),
120
120
  );
121
121
  }
122
122
  }
@@ -64,7 +64,7 @@ registerStyles(
64
64
  opacity: 1;
65
65
  }
66
66
  }
67
- `
67
+ `,
68
68
  );
69
69
 
70
70
  /**
@@ -59,7 +59,7 @@ export class UserTags extends PolymerElement {
59
59
  hasFocus: {
60
60
  type: Boolean,
61
61
  value: false,
62
- observer: '_hasFocusChanged'
62
+ observer: '_hasFocusChanged',
63
63
  },
64
64
 
65
65
  /**
@@ -68,7 +68,7 @@ export class UserTags extends PolymerElement {
68
68
  opened: {
69
69
  type: Boolean,
70
70
  value: false,
71
- observer: '_openedChanged'
71
+ observer: '_openedChanged',
72
72
  },
73
73
 
74
74
  /**
@@ -77,14 +77,14 @@ export class UserTags extends PolymerElement {
77
77
  */
78
78
  flashing: {
79
79
  type: Boolean,
80
- value: false
80
+ value: false,
81
81
  },
82
82
 
83
83
  /**
84
84
  * A target element that the overlay is positioned to.
85
85
  */
86
86
  target: {
87
- type: Object
87
+ type: Object,
88
88
  },
89
89
 
90
90
  /**
@@ -92,14 +92,14 @@ export class UserTags extends PolymerElement {
92
92
  */
93
93
  users: {
94
94
  type: Array,
95
- value: () => []
95
+ value: () => [],
96
96
  },
97
97
 
98
98
  /** @private */
99
99
  _flashQueue: {
100
100
  type: Array,
101
- value: () => []
102
- }
101
+ value: () => [],
102
+ },
103
103
  };
104
104
  }
105
105
 
@@ -357,8 +357,12 @@ export class UserTags extends PolymerElement {
357
357
  }
358
358
 
359
359
  stopFlash() {
360
- this._debounceFlashStart && this._debounceFlashStart.flush();
361
- this._debounceFlashEnd && this._debounceFlashEnd.flush();
360
+ if (this._debounceFlashStart) {
361
+ this._debounceFlashStart.flush();
362
+ }
363
+ if (this._debounceFlashEnd) {
364
+ this._debounceFlashEnd.flush();
365
+ }
362
366
  this.$.overlay._flushAnimation('closing');
363
367
  }
364
368
 
@@ -41,5 +41,5 @@ registerStyles(
41
41
  box-shadow: inset 0 0 0 2px var(--_active-user-color);
42
42
  }
43
43
  `,
44
- { moduleId: 'lumo-field-outline' }
44
+ { moduleId: 'lumo-field-outline' },
45
45
  );
@@ -37,8 +37,8 @@ registerStyles(
37
37
  }
38
38
  `,
39
39
  {
40
- moduleId: 'lumo-user-tags-overlay'
41
- }
40
+ moduleId: 'lumo-user-tags-overlay',
41
+ },
42
42
  );
43
43
 
44
44
  registerStyles(
@@ -60,5 +60,5 @@ registerStyles(
60
60
  min-width: calc(var(--lumo-line-height-xs) * 1em + 0.45em);
61
61
  }
62
62
  `,
63
- { moduleId: 'lumo-user-tag' }
63
+ { moduleId: 'lumo-user-tag' },
64
64
  );
@@ -39,5 +39,5 @@ registerStyles(
39
39
  box-shadow: inset 0 0 0 2px var(--_active-user-color);
40
40
  }
41
41
  `,
42
- { moduleId: 'material-field-outline' }
42
+ { moduleId: 'material-field-outline' },
43
43
  );
@@ -27,5 +27,5 @@ registerStyles(
27
27
  min-width: 1.75em;
28
28
  }
29
29
  `,
30
- { moduleId: 'material-user-tag' }
30
+ { moduleId: 'material-user-tag' },
31
31
  );