{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b59f3b9f8b6d4f43bcd0aea12538e9631c497914","tarball":"https://registry.npmjs.org/@material/dom/-/dom-7.0.0-canary.db5cc0382.0.tgz","fileCount":28,"integrity":"sha512-RvZJj3tdN9o1sCn5inQSjL1UaeWtTqR+uhoIxJGjC8u9NVPPijrBkVSx/IhGDovlz9wUtPi9YXCveNiMriH7Tw==","signatures":[{"sig":"MEUCIGYAiApzuj/PuxSLr8E8uX7kki+HeYpjE03ZC4m/xptTAiEAi6TJAo+I26qL6Zbd09SiDOsyLqnZrB4Pv3e90XUvOIo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":111609,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7RGPCRA9TVsSAnZWagAAp/QP/193ULKoQBhKSGPPsmwQ\nX9gWjxHZ89YYM0c51hxlI4QjeFf2EwR2LQT8VN+QylR7yC4a6mOBPn8cyZjf\nBwptkwNWqDQd2CImF0maK66FlrwB2YPPaf9d9I6BLKIvZLPS1yeq1VHkPpMm\no3JG5s51DxZHrR3RXzNHS0Aedjf6W+9zshh0Ow4/QpKsTIH7GhSR2cpWxO0F\nh+S4+w1OuJC+HX8SHiIwniQF+rIKXt5zdOsVUey7R1KVkaRsHjk4EWe37Mfq\nd9nDn2DJrvuC4tj2hWXB0KNUImih6li23NMmEppiyrsGrIXX3/LkXwq+eZXZ\nPRnGqugExoteERHtb6SU/f1+RsM8v4z2s7f5L8XqOrlCm/Z0VHZoK2lL89/3\nAOvUE992ky0TPxC7VuNEaPTwRz9Q0aVz/8c2avwEDr96wzi8h/i8UkkYJ6Iv\nFRSIhCF/895lL4fSxNYIRdv+jmlnZkN3jBiUhaq7yTL/G69aQzD6z4CzfzoR\nL1lC5dODPVT60EceUDna/+ofnTjpvJEsJJhTL4yECEZR3P0BbeZdpH/PtApc\n+GvL7Q6ZYPmg1iFBYWFcslZaIly4SkcJA3AUwXFQesjUvSc6xd26tEYT5l+s\nEd1wUQO0vQ9vouZv1ZRNEelDFQT1HNBAdQU70hlz31To5q8iHVP9I51+Br6T\n8hZV\r\n=buKC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.dom.js","name":"@material/dom","types":"dist/mdc.dom.d.ts","module":"index.js","readme":"<!--docs:\ntitle: \"DOM\"\nlayout: detail\nsection: components\nexcerpt: \"Provides commonly-used utilities for inspecting, traversing, and manipulating the DOM.\"\npath: /catalog/dom/\n-->\n\n# DOM\n\nMDC DOM provides commonly-used utilities for inspecting, traversing, and manipulating the DOM.\n\nMost of the time, you shouldn't need to depend on `mdc-dom` directly. It is useful however if you'd like to write custom components that follow MDC Web's pattern and elegantly integrate with the MDC Web ecosystem.\n\n## Installation\n\n```\nnpm install @material/dom\n```\n\n## Basic Usage\n\n```js\nimport * as ponyfill from '@material/dom/ponyfill';\n```\n\n> See [Importing the JS component](../../docs/importing-js.md) for more information on how to import JavaScript.\n\n## Ponyfill Functions\n\nThe `ponyfill` module provides the following functions:\n\nFunction Signature | Description\n--- | ---\n`closest(element: Element, selector: string) => ?Element` | Returns the ancestor of the given element matching the given selector (which may be the element itself if it matches), or `null` if no matching ancestor is found.\n`matches(element: Element, selector: string) => boolean` | Returns true if the given element matches the given CSS selector.\n`estimateScrollWidth(element: Element) => number`  | Returns the true optical width of the element if visible or an estimation if hidden by a parent element with `display: none;`.\n\n## Event Functions\n\nExternal frameworks and libraries can use the following event utility methods.\n\nMethod Signature | Description\n--- | ---\n`util.applyPassive(globalObj = window) => object` | Determine whether the current browser supports passive event listeners\n\n## Focus Trap\n\nThe `FocusTrap` utility traps focus within a given element. It is intended for usage from MDC-internal\ncomponents like dialog and modal drawer.\n\nMethod Signature | Description\n--- | ---\n`trapFocus() => void` | Traps focus in the root element. Also focuses on `initialFocusEl` if set; otherwise, sets initial focus to the first focusable child element.\n`releaseFocus() => void` | Releases focus from the root element. Also restores focus to the previously focused element.\n\n## Announce\n\nThe `announce` utility file contains a single helper method for announcing a message via an `aria-live` region. It is intended for usage from MDC-internal components.\n\nMethod Signature | Description\n--- | ---\n`announce(message: string, priority?: AnnouncerPriority) => void` | Announces the message via an `aria-live` region with the given priority (defaults to polite)\n<!-- TODO(b/148462294): Remove once only exported members are required in docs `say()` --> <!-- | --> <!-- DO NOT USE -->\n\n## Keyboard\n\nThe `keyboard` utility provides helper methods for normalizing `KeyboardEvent` keys across browsers. It is intended for usage from MDC-internal components.\n\nMethod Signature | Description\n--- | ---\n`normalizeKey(evt: KeyboardEvent) => string` | Returns a normalized string derived from `KeyboardEvent`'s `keyCode` property to be standard across browsers.\n`isNavigationEvent(evt: KeyboardEvent) => boolean` | Returns `true` if the event is a navigation event (Page Up, Page Down, Home, End, Left, Up, Right, Down).\n\n## Mixins\n\nThe module provides a single SASS mixin which helps improves a DOM element's UX for high-contrast mode users.\n\nMixin | Description\n--- | ---\n`transparent-border` | Emits necessary layout styles to set a transparent border around an element without interfering with the rest of its component layout. The border is only visible in high-contrast mode. The target element should be a child of a relatively positioned top-level element (i.e. a ::before pseudo-element).\n","gitHead":"698cb6184d0d6e6823147f7d050c39efe9b8e3b2","license":"MIT","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"homepage":"https://github.com/material-components/material-components-web#readme","repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-dom"},"_npmVersion":"lerna/3.20.2/node@v10.21.0+x64 (linux)","description":"DOM manipulation utilities for Material Components for the web","directories":{},"maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"sideEffects":false,"_nodeVersion":"10.21.0","dependencies":{"tslib":"^1.9.3","@material/feature-targeting":"7.0.0-canary.db5cc0382.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/dom_7.0.0-canary.db5cc0382.0_1592594829937_0.8685877186543389","host":"s3://npm-registry-packages"},"_id":"@material/dom@7.0.0-canary.db5cc0382.0","version":"7.0.0-canary.db5cc0382.0"}