@material/list
Advanced tools
Comparing version 15.0.0-canary.d0788120f.0 to 15.0.0-canary.d153db62b.0
@@ -6,3 +6,3 @@ # Change Log | ||
# [15.0.0-canary.d0788120f.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.d0788120f.0) (2023-05-09) | ||
# [15.0.0-canary.d153db62b.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.d153db62b.0) (2023-09-19) | ||
@@ -12,2 +12,3 @@ | ||
* **list:** Remove ripple styles for disabled items in deprecated list. ([f52358d](https://github.com/material-components/material-components-web/commit/f52358dd0796308919bb78deffc573d0d933c7de)) | ||
* correct behavior of checkboxes/radios in a list. ([f771b09](https://github.com/material-components/material-components-web/commit/f771b091ce1e5b1b97b3a508f1459e4665008a80)) | ||
@@ -14,0 +15,0 @@ * **list:** Allow alt + enter to select index for lists. ([113b1a3](https://github.com/material-components/material-components-web/commit/113b1a38e87337fdd00c7495fda3299df2dbc317)) |
@@ -352,4 +352,4 @@ /** | ||
*/ | ||
MDCList.prototype.handleFocusInEvent = function (evt) { | ||
var index = this.getListItemIndex(evt.target); | ||
MDCList.prototype.handleFocusInEvent = function (event) { | ||
var index = this.getListItemIndex(event.target); | ||
this.foundation.handleFocusIn(index); | ||
@@ -361,4 +361,4 @@ }; | ||
*/ | ||
MDCList.prototype.handleFocusOutEvent = function (evt) { | ||
var index = this.getListItemIndex(evt.target); | ||
MDCList.prototype.handleFocusOutEvent = function (event) { | ||
var index = this.getListItemIndex(event.target); | ||
this.foundation.handleFocusOut(index); | ||
@@ -370,6 +370,6 @@ }; | ||
*/ | ||
MDCList.prototype.handleKeydownEvent = function (evt) { | ||
var index = this.getListItemIndex(evt.target); | ||
var target = evt.target; | ||
this.foundation.handleKeydown(evt, target.classList.contains(this.classNameMap[cssClasses.LIST_ITEM_CLASS]), index); | ||
MDCList.prototype.handleKeydownEvent = function (event) { | ||
var index = this.getListItemIndex(event.target); | ||
var target = event.target; | ||
this.foundation.handleKeydown(event, target.classList.contains(this.classNameMap[cssClasses.LIST_ITEM_CLASS]), index); | ||
}; | ||
@@ -380,6 +380,6 @@ /** | ||
*/ | ||
MDCList.prototype.handleClickEvent = function (evt) { | ||
var index = this.getListItemIndex(evt.target); | ||
var target = evt.target; | ||
this.foundation.handleClick(index, matches(target, strings.CHECKBOX_RADIO_SELECTOR), evt); | ||
MDCList.prototype.handleClickEvent = function (event) { | ||
var index = this.getListItemIndex(event.target); | ||
var target = event.target; | ||
this.foundation.handleClick(index, matches(target, strings.CHECKBOX_RADIO_SELECTOR), event); | ||
}; | ||
@@ -386,0 +386,0 @@ return MDCList; |
@@ -27,4 +27,4 @@ /** | ||
* | ||
* @param evt keyboard event to be prevented. | ||
* @param event keyboard event to be prevented. | ||
*/ | ||
export declare const preventDefaultEvent: (evt: KeyboardEvent) => void; | ||
export declare const preventDefaultEvent: (event: KeyboardEvent) => void; |
@@ -28,6 +28,6 @@ /** | ||
* | ||
* @param evt keyboard event to be prevented. | ||
* @param event keyboard event to be prevented. | ||
*/ | ||
export var preventDefaultEvent = function (evt) { | ||
var target = evt.target; | ||
export var preventDefaultEvent = function (event) { | ||
var target = event.target; | ||
if (!target) { | ||
@@ -38,5 +38,5 @@ return; | ||
if (ELEMENTS_KEY_ALLOWED_IN.indexOf(tagName) === -1) { | ||
evt.preventDefault(); | ||
event.preventDefault(); | ||
} | ||
}; | ||
//# sourceMappingURL=events.js.map |
{ | ||
"name": "@material/list", | ||
"description": "The Material Components for the web list component", | ||
"version": "15.0.0-canary.d0788120f.0", | ||
"version": "15.0.0-canary.d153db62b.0", | ||
"license": "MIT", | ||
@@ -20,15 +20,15 @@ "main": "dist/mdc.list.js", | ||
"dependencies": { | ||
"@material/base": "15.0.0-canary.d0788120f.0", | ||
"@material/density": "15.0.0-canary.d0788120f.0", | ||
"@material/dom": "15.0.0-canary.d0788120f.0", | ||
"@material/feature-targeting": "15.0.0-canary.d0788120f.0", | ||
"@material/ripple": "15.0.0-canary.d0788120f.0", | ||
"@material/rtl": "15.0.0-canary.d0788120f.0", | ||
"@material/shape": "15.0.0-canary.d0788120f.0", | ||
"@material/theme": "15.0.0-canary.d0788120f.0", | ||
"@material/tokens": "15.0.0-canary.d0788120f.0", | ||
"@material/typography": "15.0.0-canary.d0788120f.0", | ||
"@material/base": "15.0.0-canary.d153db62b.0", | ||
"@material/density": "15.0.0-canary.d153db62b.0", | ||
"@material/dom": "15.0.0-canary.d153db62b.0", | ||
"@material/feature-targeting": "15.0.0-canary.d153db62b.0", | ||
"@material/ripple": "15.0.0-canary.d153db62b.0", | ||
"@material/rtl": "15.0.0-canary.d153db62b.0", | ||
"@material/shape": "15.0.0-canary.d153db62b.0", | ||
"@material/theme": "15.0.0-canary.d153db62b.0", | ||
"@material/tokens": "15.0.0-canary.d153db62b.0", | ||
"@material/typography": "15.0.0-canary.d153db62b.0", | ||
"tslib": "^2.1.0" | ||
}, | ||
"gitHead": "7eccbee262206623b89c40dadb4e11abe30d5e45" | ||
"gitHead": "4ca05c144c691cd06cd5926fe0bc54818e462202" | ||
} |
@@ -676,6 +676,6 @@ <!--docs: | ||
`setUseActivatedClass(useActivated: boolean) => void` | Sets the selection logic to apply/remove the `mdc-deprecated-list-item--activated` class. | ||
`handleFocusIn(evt: Event) => void` | Handles the changing of `tabindex` to `0` for all button and anchor elements when a list item receives focus. | ||
`handleFocusOut(evt: Event) => void` | Handles the changing of `tabindex` to `-1` for all button and anchor elements when a list item loses focus. | ||
`handleKeydown(evt: Event) => void` | Handles determining if a focus action should occur when a key event is triggered. | ||
`handleClick(evt: Event) => void` | Handles toggling the selected/deselected state for a list item when clicked. This method is only used by the single selection list. | ||
`handleFocusIn(event: Event) => void` | Handles the changing of `tabindex` to `0` for all button and anchor elements when a list item receives focus. | ||
`handleFocusOut(event: Event) => void` | Handles the changing of `tabindex` to `-1` for all button and anchor elements when a list item loses focus. | ||
`handleKeydown(event: Event) => void` | Handles determining if a focus action should occur when a key event is triggered. | ||
`handleClick(event: Event) => void` | Handles toggling the selected/deselected state for a list item when clicked. This method is only used by the single selection list. | ||
`focusNextElement(index: number) => number` | Handles focusing the next element using the current `index`. Returns focused element index. | ||
@@ -682,0 +682,0 @@ `focusPrevElement(index: number) => number` | Handles focusing the previous element using the current `index`. Returns focused element index. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1738628
12466
+ Added@material/animation@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/base@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/density@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/dom@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/elevation@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/feature-targeting@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/ripple@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/rtl@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/shape@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/theme@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/tokens@15.0.0-canary.d153db62b.0(transitive)
+ Added@material/typography@15.0.0-canary.d153db62b.0(transitive)
- Removed@material/animation@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/base@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/density@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/dom@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/elevation@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/feature-targeting@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/ripple@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/rtl@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/shape@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/theme@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/tokens@15.0.0-canary.d0788120f.0(transitive)
- Removed@material/typography@15.0.0-canary.d0788120f.0(transitive)
Updated@material/feature-targeting@15.0.0-canary.d153db62b.0