@vaadin/vaadin-list-mixin
Advanced tools
Comparing version 22.0.0-alpha1 to 22.0.0-alpha10
{ | ||
"name": "@vaadin/vaadin-list-mixin", | ||
"version": "22.0.0-alpha1", | ||
"version": "22.0.0-alpha10", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"description": "vaadin-list-mixin", | ||
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/vaadin/web-components.git", | ||
"directory": "packages/vaadin-list-mixin" | ||
}, | ||
"author": "Vaadin Ltd", | ||
"homepage": "https://vaadin.com/elements", | ||
"bugs": { | ||
"url": "https://github.com/vaadin/vaadin-list-mixin/issues" | ||
}, | ||
"main": "vaadin-list-mixin.js", | ||
"module": "vaadin-list-mixin.js", | ||
"repository": "vaadin/vaadin-list-mixin", | ||
"files": [ | ||
"*.d.ts", | ||
"vaadin-*.js" | ||
], | ||
"keywords": [ | ||
@@ -15,25 +32,12 @@ "Vaadin", | ||
], | ||
"author": "Vaadin Ltd", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/vaadin/vaadin-list-mixin/issues" | ||
}, | ||
"homepage": "https://vaadin.com/elements", | ||
"files": [ | ||
"*.d.ts", | ||
"vaadin-*.js" | ||
], | ||
"dependencies": { | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/vaadin-element-mixin": "^22.0.0-alpha1" | ||
"@vaadin/component-base": "22.0.0-alpha10" | ||
}, | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.1.5", | ||
"@vaadin/testing-helpers": "^0.2.1", | ||
"@esm-bundle/chai": "^4.3.4", | ||
"@vaadin/testing-helpers": "^0.3.0", | ||
"sinon": "^9.2.4" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"gitHead": "c9694d6549bff1f7fffb9ece26178e57fc228a51" | ||
"gitHead": "6d3055383b9c3c8306ea34c6f2e2087e63c49348" | ||
} |
@@ -8,30 +8,8 @@ # vaadin-list-mixin | ||
## Running tests in browser | ||
1. Fork the `vaadin-list-mixin` repository and clone it locally. | ||
1. Make sure you have [npm](https://www.npmjs.com/). | ||
1. When in the `vaadin-list-mixin` directory, run `npm install` to install dependencies. | ||
1. Run `npm test` to start the tests in Chrome. | ||
## Debugging tests in browser | ||
1. Run `npm run debug`, then choose manual mode (M) and open the link in browser. | ||
## Following the coding style | ||
We are using [ESLint](http://eslint.org/) for linting JavaScript code. You can check if your code is following our standards by running `npm run lint`, which will automatically lint all `.js` files. | ||
## Contributing | ||
To contribute to the component, please read [the guideline](https://github.com/vaadin/vaadin-core/blob/master/CONTRIBUTING.md) first. | ||
Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/overview) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components. | ||
## License | ||
Apache License 2.0 |
@@ -1,2 +0,6 @@ | ||
import { ListOrientation } from './interfaces'; | ||
/** | ||
* @license | ||
* Copyright (c) 2021 Vaadin Ltd. | ||
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
@@ -15,8 +19,4 @@ /** | ||
readonly _isRTL: boolean; | ||
readonly _scrollerElement: HTMLElement; | ||
readonly _vertical: boolean; | ||
/** | ||
@@ -38,3 +38,3 @@ * Used for mixin detection because `instanceof` does not work with mixins. | ||
*/ | ||
orientation: ListOrientation; | ||
orientation: 'horizontal' | 'vertical'; | ||
@@ -53,31 +53,4 @@ /** | ||
readonly items: Element[] | undefined; | ||
ready(): void; | ||
_filterItems(array: Element[]): Element[]; | ||
_onClick(event: MouseEvent): void; | ||
_searchKey(currentIdx: number, key: string): number; | ||
_onKeydown(event: KeyboardEvent): void; | ||
_getAvailableIndex(idx: number, increment: number, condition: (p0: Element) => boolean): number; | ||
_isItemHidden(item: Element): boolean; | ||
_setFocusable(idx: number): void; | ||
_focus(idx: number): void; | ||
focus(): void; | ||
/** | ||
* Scroll the container to have the next item by the edge of the viewport. | ||
*/ | ||
_scrollToItem(idx: number): void; | ||
_scroll(pixels: number): void; | ||
} | ||
export { ListMixin, ListMixinConstructor }; |
@@ -7,5 +7,5 @@ /** | ||
import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js'; | ||
import { DirHelper } from '@vaadin/vaadin-element-mixin/vaadin-dir-helper.js'; | ||
import { Debouncer } from '@polymer/polymer/lib/utils/debounce.js'; | ||
import { timeOut } from '@polymer/polymer/lib/utils/async.js'; | ||
import { DirHelper } from '@vaadin/component-base/src/dir-helper.js'; | ||
import { Debouncer } from '@vaadin/component-base/src/debounce.js'; | ||
import { timeOut } from '@vaadin/component-base/src/async.js'; | ||
@@ -160,3 +160,3 @@ /** | ||
item.textContent | ||
.replace(/[^a-zA-Z0-9]/g, '') | ||
.replace(/[^\p{L}\p{Nd}]/gu, '') | ||
.toLowerCase() | ||
@@ -169,3 +169,3 @@ .indexOf(this._searchBuf) === 0; | ||
item.textContent | ||
.replace(/[^a-zA-Z0-9]/g, '') | ||
.replace(/[^\p{L}\p{Nd}]/gu, '') | ||
.toLowerCase() | ||
@@ -172,0 +172,0 @@ .indexOf(this._searchBuf) === 0 |
@@ -0,1 +1,6 @@ | ||
/** | ||
* @license | ||
* Copyright (c) 2021 Vaadin Ltd. | ||
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ | ||
*/ | ||
import { ListMixin, ListMixinConstructor } from './vaadin-list-mixin.js'; | ||
@@ -25,6 +30,4 @@ | ||
selectedValues: number[] | null | undefined; | ||
_onMultipleClick(event: MouseEvent): void; | ||
} | ||
export { MultiSelectListMixin, MultiSelectListMixinConstructor }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
0
29120
7
504
15
+ Added@lit-labs/ssr-dom-shim@1.2.1(transitive)
+ Added@lit/reactive-element@1.6.3(transitive)
+ Added@types/trusted-types@2.0.7(transitive)
+ Added@vaadin/component-base@22.0.0-alpha10(transitive)
+ Addedlit@2.8.0(transitive)
+ Addedlit-element@3.3.3(transitive)
+ Addedlit-html@2.8.0(transitive)
- Removed@vaadin/vaadin-element-mixin@22.0.0-alpha6(transitive)