{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"684f43ca5cd572e7e574ab729a47b4dda55b74c3","tarball":"https://registry.npmjs.org/@material/dom/-/dom-13.0.0-canary.d86fb6fac.0.tgz","fileCount":28,"integrity":"sha512-I9nMJTCnqQbYdn0yav4HWQDmVlS3uQ8DW2XMey1Scr1ut5ADo63g2Jc6cJz+xlDsSVa5ZtrdgReFZdjbWPEhxQ==","signatures":[{"sig":"MEQCICNXt8KuTiaatdI2De0HO6UvmL0qoxYSjzbzVcN9oiNnAiAyl9P89ShRSqPcMAJVs2vLNe/2Ld+GpOSnXRANsrgA5w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":111693,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJpGSCRA9TVsSAnZWagAAp/kP/0kPjR7WcULNaEnKs8ZE\nbBV28+QAEk6tZgenh2v/ohFIvE6v2XoS2suRa6k26Nvk8by9GC2mJ6yyTKYC\nuppt9LYSsnqX+a0YO/Cg97+dHrUYrsn2JG0JLQJO9vGFMiMOuwm7gWPWQAXH\nzxZkQze9Fq9u2mDXvNyWTjl8PgUIVzHyrnMTrveT+1tmx/RbobH5kIIQqyYr\nClOYGNJ1VYNvi6k86YSjvZQJQujMyqjXPr+K8Vgm9ypxv5OWuwvyHpN8JVsi\ngTqYgNSg5wmyrGPNL+yP5AzmkRgx/MsZ/u2C71t5YMdan2xDVI4cfbK9mwoc\nCO+T/I+ZcH/iU4wGsIdIBAPLxh8+18S2cPWLmwJrkEF/UVC7nWwbrLhcFSvd\nYBJMYDJ8Z+VxzGf3b68cR2fYCvypqotJ5Ya7uX9ZDuDRsJYHeqMfRAuJBqCN\nCmnfTSfP51cxpnT56Nv5sfiPgJMbb6KBfV4D304bGer02umSbcGMoRmX0Uu9\nJgmbt4ONNPrePVwW3u8tzkTVaOfdZIHIn+2OzqnJWsyzy4aqxWq5Ak//cKMT\nMEUH3jYV/iPYltbAJbXbOyImPRU2M6tmvt0h8D3ZzghWgzC0P23EsOa7zrL6\npcvV8QRWx0QLUJ7ss0BKtY+HouGjcj1Q1XmgDPR1Iyfvgztf1BjPfbUq0hiP\neQd7\r\n=DYHD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/mdc.dom.js","name":"@material/dom","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":"35d13d1a20fe14c295e8589fe5960bc9b4da1925","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.24.1+x64 (linux)","description":"DOM manipulation utilities for Material Components for the web","directories":{},"maintainers":[{"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"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"sideEffects":false,"_nodeVersion":"10.24.1","dependencies":{"tslib":"^2.1.0","@material/feature-targeting":"13.0.0-canary.d86fb6fac.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/dom_13.0.0-canary.d86fb6fac.0_1629917585841_0.75557062752887","host":"s3://npm-registry-packages"},"_id":"@material/dom@13.0.0-canary.d86fb6fac.0","version":"13.0.0-canary.d86fb6fac.0"}