@vaadin/form-layout 22.0.12 → 22.0.15

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": "22.0.12",
3
+ "version": "22.0.15",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,16 +34,16 @@
34
34
  "dependencies": {
35
35
  "@polymer/iron-resizable-behavior": "^3.0.0",
36
36
  "@polymer/polymer": "^3.0.0",
37
- "@vaadin/component-base": "^22.0.12",
38
- "@vaadin/vaadin-lumo-styles": "^22.0.12",
39
- "@vaadin/vaadin-material-styles": "^22.0.12",
40
- "@vaadin/vaadin-themable-mixin": "^22.0.12"
37
+ "@vaadin/component-base": "^22.0.15",
38
+ "@vaadin/vaadin-lumo-styles": "^22.0.15",
39
+ "@vaadin/vaadin-material-styles": "^22.0.15",
40
+ "@vaadin/vaadin-themable-mixin": "^22.0.15"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@esm-bundle/chai": "^4.3.4",
44
44
  "@vaadin/testing-helpers": "^0.3.2",
45
- "@vaadin/text-field": "^22.0.12",
45
+ "@vaadin/text-field": "^22.0.15",
46
46
  "sinon": "^9.2.1"
47
47
  },
48
- "gitHead": "ba1b2b04365d6cc9d5c05376b6d1f1402bc314ec"
48
+ "gitHead": "bba021b56ba45da93d2bb980242956ad929ecfe2"
49
49
  }
@@ -163,7 +163,7 @@ class FormItem extends ThemableMixin(PolymerElement) {
163
163
  _onLabelClick() {
164
164
  const firstContentElementChild = Array.prototype.find.call(
165
165
  this.$.contentSlot.assignedNodes(),
166
- (e) => e.nodeType === Node.ELEMENT_NODE
166
+ (e) => e.nodeType === Node.ELEMENT_NODE,
167
167
  );
168
168
  if (firstContentElementChild) {
169
169
  firstContentElementChild.focus();
@@ -218,10 +218,10 @@ class FormLayout extends ElementMixin(ThemableMixin(mixinBehaviors([IronResizabl
218
218
  return [
219
219
  { minWidth: 0, columns: 1, labelsPosition: 'top' },
220
220
  { minWidth: '20em', columns: 1 },
221
- { minWidth: '40em', columns: 2 }
221
+ { minWidth: '40em', columns: 2 },
222
222
  ];
223
223
  },
224
- observer: '_responsiveStepsChanged'
224
+ observer: '_responsiveStepsChanged',
225
225
  },
226
226
 
227
227
  /**
@@ -229,7 +229,7 @@ class FormLayout extends ElementMixin(ThemableMixin(mixinBehaviors([IronResizabl
229
229
  * @private
230
230
  */
231
231
  _columnCount: {
232
- type: Number
232
+ type: Number,
233
233
  },
234
234
 
235
235
  /**
@@ -237,8 +237,8 @@ class FormLayout extends ElementMixin(ThemableMixin(mixinBehaviors([IronResizabl
237
237
  * @private
238
238
  */
239
239
  _labelsOnTop: {
240
- type: Boolean
241
- }
240
+ type: Boolean,
241
+ },
242
242
  };
243
243
  }
244
244
 
@@ -316,7 +316,7 @@ class FormLayout extends ElementMixin(ThemableMixin(mixinBehaviors([IronResizabl
316
316
  _getObservableNodes(nodeList) {
317
317
  const ignore = ['template', 'style', 'dom-repeat', 'dom-if'];
318
318
  return Array.from(nodeList).filter(
319
- (node) => node.nodeType === Node.ELEMENT_NODE && ignore.indexOf(node.localName.toLowerCase()) === -1
319
+ (node) => node.nodeType === Node.ELEMENT_NODE && ignore.indexOf(node.localName.toLowerCase()) === -1,
320
320
  );
321
321
  }
322
322
 
@@ -378,7 +378,7 @@ class FormLayout extends ElementMixin(ThemableMixin(mixinBehaviors([IronResizabl
378
378
 
379
379
  if (step.labelsPosition !== undefined && ['aside', 'top'].indexOf(step.labelsPosition) === -1) {
380
380
  throw new Error(
381
- `Invalid 'labelsPosition' value of ${step.labelsPosition}, 'aside' or 'top' string is required.`
381
+ `Invalid 'labelsPosition' value of ${step.labelsPosition}, 'aside' or 'top' string is required.`,
382
382
  );
383
383
  }
384
384
  });
@@ -391,7 +391,7 @@ class FormLayout extends ElementMixin(ThemableMixin(mixinBehaviors([IronResizabl
391
391
  this.responsiveSteps = [
392
392
  { minWidth: 0, columns: 1, labelsPosition: 'top' },
393
393
  { minWidth: '20em', columns: 1 },
394
- { minWidth: '40em', columns: 2 }
394
+ { minWidth: '40em', columns: 2 },
395
395
  ];
396
396
  }
397
397
  }
@@ -507,7 +507,7 @@ class FormLayout extends ElementMixin(ThemableMixin(mixinBehaviors([IronResizabl
507
507
  const colspanRatio = (this._columnCount - col - colspan) / this._columnCount;
508
508
  child.style.setProperty(
509
509
  marginEndProp,
510
- `calc(${colspanRatio * containerWidth}px + ${colspanRatio} * ${columnSpacing})`
510
+ `calc(${colspanRatio * containerWidth}px + ${colspanRatio} * ${columnSpacing})`,
511
511
  );
512
512
  } else {
513
513
  child.style.removeProperty(marginEndProp);
@@ -24,5 +24,5 @@ registerStyles(
24
24
  line-height: 1.333;
25
25
  }
26
26
  `,
27
- { moduleId: 'lumo-form-item' }
27
+ { moduleId: 'lumo-form-item' },
28
28
  );
@@ -8,5 +8,5 @@ registerStyles(
8
8
  --vaadin-form-layout-column-spacing: var(--lumo-space-l);
9
9
  }
10
10
  `,
11
- { moduleId: 'lumo-form-layout' }
11
+ { moduleId: 'lumo-form-layout' },
12
12
  );
@@ -15,5 +15,5 @@ registerStyles(
15
15
  margin-bottom: 8px;
16
16
  }
17
17
  `,
18
- { moduleId: 'material-form-item' }
18
+ { moduleId: 'material-form-item' },
19
19
  );