@vaadin/form-layout 23.1.0 → 23.2.0-dev.53560527d

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/form-layout",
3
- "version": "23.1.0",
3
+ "version": "23.2.0-dev.53560527d",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,17 +34,17 @@
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-themable-mixin": "^23.1.0"
37
+ "@vaadin/component-base": "23.2.0-dev.53560527d",
38
+ "@vaadin/vaadin-lumo-styles": "23.2.0-dev.53560527d",
39
+ "@vaadin/vaadin-material-styles": "23.2.0-dev.53560527d",
40
+ "@vaadin/vaadin-themable-mixin": "23.2.0-dev.53560527d"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@esm-bundle/chai": "^4.3.4",
44
- "@vaadin/custom-field": "^23.1.0",
44
+ "@vaadin/custom-field": "23.2.0-dev.53560527d",
45
45
  "@vaadin/testing-helpers": "^0.3.2",
46
- "@vaadin/text-field": "^23.1.0",
46
+ "@vaadin/text-field": "23.2.0-dev.53560527d",
47
47
  "sinon": "^13.0.2"
48
48
  },
49
- "gitHead": "322bba42b83f908a78cd972b06acadc5da95a69d"
49
+ "gitHead": "6c5c18369b09e22e76365d8a8a5e4bbb220f969b"
50
50
  }
@@ -4,6 +4,7 @@
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
7
+ import { generateUniqueId } from '@vaadin/component-base/src/unique-id-utils.js';
7
8
  import { addValueToAttribute, removeValueFromAttribute } from '@vaadin/field-base/src/utils.js';
8
9
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
9
10
 
@@ -256,8 +257,7 @@ class FormItem extends ThemableMixin(PolymerElement) {
256
257
  this.__labelId = this.__labelNode.id;
257
258
  } else {
258
259
  // The new label node doesn't have an id yet. Generate a unique one.
259
- const uniqueId = (FormItem._uniqueLabelId = 1 + FormItem._uniqueLabelId || 0);
260
- this.__labelId = `label-${this.localName}-${uniqueId}`;
260
+ this.__labelId = `label-${this.localName}-${generateUniqueId()}`;
261
261
  this.__labelNode.id = this.__labelId;
262
262
  }
263
263