From aca423bbc3cc968a03072fbe18d0d4c842303e74 Mon Sep 17 00:00:00 2001 From: Serhii Kulykov Date: Thu, 6 Jan 2022 18:25:41 +0200 Subject: [PATCH] chore: fix typos detected by cspell (#3265) --- packages/crud/src/vaadin-crud.d.ts | 2 +- packages/grid/src/vaadin-grid-keyboard-navigation-mixin.js | 2 +- packages/grid/src/vaadin-grid-selection-column.js | 2 +- packages/grid/test/scroll-to-index.test.js | 4 ++-- .../src/template-renderer-templatizer.js | 2 +- packages/vaadin-list-mixin/vaadin-list-mixin.js | 2 +- packages/vaadin-overlay/src/vaadin-overlay.js | 2 +- packages/vaadin-themable-mixin/test/register-styles.test.js | 4 ++-- packages/vaadin-themable-mixin/vaadin-themable-mixin.js | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/crud/src/vaadin-crud.d.ts b/packages/crud/src/vaadin-crud.d.ts index bbf374dc91..0d0722f045 100644 --- a/packages/crud/src/vaadin-crud.d.ts +++ b/packages/crud/src/vaadin-crud.d.ts @@ -335,7 +335,7 @@ declare class Crud extends ElementMixin(ThemableMixin(HTMLElement)) { readonly size: number | null | undefined; /** - * Controls visiblity state of toolbar. + * Controls visibility state of toolbar. * When set to false toolbar is hidden and shown when set to true. * @attr {boolean} no-toolbar */ diff --git a/packages/grid/src/vaadin-grid-keyboard-navigation-mixin.js b/packages/grid/src/vaadin-grid-keyboard-navigation-mixin.js index 540d7543f1..3eac15455a 100644 --- a/packages/grid/src/vaadin-grid-keyboard-navigation-mixin.js +++ b/packages/grid/src/vaadin-grid-keyboard-navigation-mixin.js @@ -359,7 +359,7 @@ export const KeyboardNavigationMixin = (superClass) => /** * Returns the target row after navigating by the given dy offset. - * Also returns infromation whether the details cell should be the target on the target row. + * Also returns information whether the details cell should be the target on the target row. * If the row is not in the viewport, it is first scrolled to. * @private **/ diff --git a/packages/grid/src/vaadin-grid-selection-column.js b/packages/grid/src/vaadin-grid-selection-column.js index d5e760353b..5fc3838560 100644 --- a/packages/grid/src/vaadin-grid-selection-column.js +++ b/packages/grid/src/vaadin-grid-selection-column.js @@ -235,7 +235,7 @@ class GridSelectionColumn extends GridColumn { } /** - * iOS needs indeterminated + checked at the same time + * iOS needs indeterminate + checked at the same time * @private */ __isChecked(selectAll, indeterminate) { diff --git a/packages/grid/test/scroll-to-index.test.js b/packages/grid/test/scroll-to-index.test.js index b391c95933..351624360c 100644 --- a/packages/grid/test/scroll-to-index.test.js +++ b/packages/grid/test/scroll-to-index.test.js @@ -227,7 +227,7 @@ describe('scroll to index', () => { // Issue https://github.com/vaadin/vaadin-grid/issues/2107 it('should display correctly when scrolled to bottom immediately after setting dataProvider', (done) => { grid.size = 1; - const numberOfChidren = 250; + const numberOfChildren = 250; grid.itemIdPath = 'name'; const PARENT = { name: 'PARENT', hasChildren: true }; grid.dataProvider = ({ page, parentItem }, cb) => { @@ -242,7 +242,7 @@ describe('scroll to index', () => { [...new Array(grid.pageSize)].map((_, index) => { return { name: 'Child ' + (offset + index), hasChildren: false }; }), - numberOfChidren + numberOfChildren ); if (page > 0) { expect(getPhysicalItems(grid).length).to.be.above(10); diff --git a/packages/polymer-legacy-adapter/src/template-renderer-templatizer.js b/packages/polymer-legacy-adapter/src/template-renderer-templatizer.js index 5632d84c34..48523bd8a6 100644 --- a/packages/polymer-legacy-adapter/src/template-renderer-templatizer.js +++ b/packages/polymer-legacy-adapter/src/template-renderer-templatizer.js @@ -56,7 +56,7 @@ export class Templatizer extends PolymerElement { // The Polymer uses `===` to check whether a property is changed and should be re-rendered. // This means, object properties won't be re-rendered when mutated inside. // This workaround forces the `item` property to re-render even - // the new item is stricly equal to the old item. + // the new item is strictly equal to the old item. if (instance.item === properties.item) { instance._setPendingProperty('item'); } diff --git a/packages/vaadin-list-mixin/vaadin-list-mixin.js b/packages/vaadin-list-mixin/vaadin-list-mixin.js index fb07588708..e998caa416 100644 --- a/packages/vaadin-list-mixin/vaadin-list-mixin.js +++ b/packages/vaadin-list-mixin/vaadin-list-mixin.js @@ -301,7 +301,7 @@ export const ListMixin = (superClass) => } focus() { - // In initialisation (e.g vaadin-select) observer might not been run yet. + // In initialization (e.g vaadin-select) observer might not been run yet. this._observer && this._observer.flush(); const firstItem = this.querySelector('[tabindex="0"]') || (this.items ? this.items[0] : null); this._focusItem(firstItem); diff --git a/packages/vaadin-overlay/src/vaadin-overlay.js b/packages/vaadin-overlay/src/vaadin-overlay.js index 3cea7606e9..5477863085 100644 --- a/packages/vaadin-overlay/src/vaadin-overlay.js +++ b/packages/vaadin-overlay/src/vaadin-overlay.js @@ -675,7 +675,7 @@ class OverlayElement extends ThemableMixin(DirMixin(ControllerMixin(PolymerEleme if (this._placeholder) { this._exitModalState(); - // Use this.restoreFocusNode if specified, othwerwise fallback to the node + // Use this.restoreFocusNode if specified, otherwise fallback to the node // which was focused before opening the overlay. const restoreFocusNode = this.restoreFocusNode || this.__restoreFocusNode; diff --git a/packages/vaadin-themable-mixin/test/register-styles.test.js b/packages/vaadin-themable-mixin/test/register-styles.test.js index 6cdf8fde77..89467a939d 100644 --- a/packages/vaadin-themable-mixin/test/register-styles.test.js +++ b/packages/vaadin-themable-mixin/test/register-styles.test.js @@ -182,10 +182,10 @@ describe('registerStyles', () => { .map((sheet) => [...sheet.cssRules]) .flat(); - // Check the number of occurences of the style rule + // Check the number of occurrences of the style rule const occurrences = rules.filter((rule) => rule.cssText === duplicateStyle).length; - // There should be only one occurence + // There should be only one occurrence expect(occurrences).to.equal(1); }); diff --git a/packages/vaadin-themable-mixin/vaadin-themable-mixin.js b/packages/vaadin-themable-mixin/vaadin-themable-mixin.js index d4c8223617..84bcd6964a 100644 --- a/packages/vaadin-themable-mixin/vaadin-themable-mixin.js +++ b/packages/vaadin-themable-mixin/vaadin-themable-mixin.js @@ -58,7 +58,7 @@ export function registerStyles(themeFor, styles, options = {}) { } /** - * Returns all registered themes. By default the themeRegistry is returend as is. + * Returns all registered themes. By default the themeRegistry is returned as is. * In case the style-modules adapter is imported, the themes are obtained from there instead * @returns {Theme[]} */