{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"945f954248b898241c9d7156b6feb2d7290633aa","tarball":"https://registry.npmjs.org/@material/dom/-/dom-9.0.0-canary.c5dda809d.0.tgz","fileCount":29,"integrity":"sha512-yAfIWYYuv/ZRmSHYTuQ1BlBcORLWivWlN5zYHUQBDjiJH/AMGWU5CVExibIQ5HdsbArndNrn4zmdR6kZASSJrQ==","signatures":[{"sig":"MEYCIQDQ0GcOYWptttqJ6wqleqGHgNfb+k8Db9/TXh7CCGkfyAIhANkzWyDPILgJeEOFW2LUSXkpnEbuYU4v+eAt3gtCqHyl","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":112796,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0Tg0CRA9TVsSAnZWagAAsn4QAKNSQ0xqe+KSS3E5UqjX\noMNNixp+RhI4IQMwHhX7vnuyr2hfbRFMFdtgjzx08/MVzy38ZG9/BCmEJlsI\nPjL89W5ChlpMshmx1P0x7cIjEvdwJF8De3XOQEniETeb2KHzuW/mzhlgxTkP\n7+uz2lMEAgTqpPBsh/2CRM8G6T9HqVEW29xg1qQkOuvi2CmPrGR8qkdb74cl\nn/nsJHtHi9/bct5o9oy1WuD+0HgDwiVmMOvcd5i3pptB9OQXHMJHD/FaHQmP\nK7BTXzoGtAlWDDPqXb08W3/GJOHx6suyIkdrWcaqZYSPvepbOsEFiKMF4Bqu\nldgeXOMXTwZVUR6Pkivwqx4vvQ/qtUdqfG6KP4cru8Z9AOxKGtbhytG0onkh\nekKCMssca8g2U0JdWhSAbnc2fg86XqIY56eA0+Tzb69HQtakp/0ihaxp5tZu\n3uerf2oy3uPo2F227qVXUakVQqqs5jsoiZsBi9F+yksRwBmXa4u1tNXIKDMi\n8GUrAxb+1YrdKLYx1Rtk2XkQyUqm4dFpKJnLOFigF3ecw9CEoFQoplyP7Da5\na2lF4lvmCtS1awgzcMLX4+Q6jhLsmRBVwXXJOMNA26rDmSvbJqZqHGyxSC5R\nZoO3mEh0S3k5MsVkIjGaC9ObK8wQBdYMiVakEMtfj1gbHwhrRdZzrAZBf/wA\nVDL0\r\n=sO4P\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":"c2bc7206e40f2f31377a09e53af457109018ff02","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.23.0+x64 (linux)","description":"DOM manipulation utilities for Material Components for the web","directories":{},"maintainers":[{"name":"taylorv","email":"brian.t.vann@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"}],"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"tslib":"^1.9.3","@material/feature-targeting":"9.0.0-canary.c5dda809d.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/dom_9.0.0-canary.c5dda809d.0_1607546932421_0.5011205046591076","host":"s3://npm-registry-packages"},"_id":"@material/dom@9.0.0-canary.c5dda809d.0","version":"9.0.0-canary.c5dda809d.0"}