{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"ba67799e75eb4c0764f2ccb336f740a6e17bb6e2","tarball":"https://registry.npmjs.org/@material/dom/-/dom-15.0.0-canary.da22ca960.0.tgz","fileCount":28,"integrity":"sha512-ELtjKwa/fGY60M56mMeRROrhHWvhqbb/G5vB6WHBNIK8XbHoywlecuGvH8MlvzOsN4A2rG1OPddyfSasa7CAQQ==","signatures":[{"sig":"MEQCIHXz8yaRrwNBBKtEiwxZoCmO8L3W1JPJ5mULdFT0WsZ2AiAqOkKtfji/3dJfHud20D6QXG6EfRzvGDF4LhogKDVJ9A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":113777,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCj7pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSIBAAmUgfdV0z7Wlcq9R3WMIPdQYG5R7DNTgw1DonTu7y4Yk/t/HQ\r\nQguBNX8RasjKuPUB4xyKkFAXhOs2CRAzgf5KMEokxaSZaR+pELEaCauB/Fm0\r\nvx9k8jWxt8NKv9tasfsSXLFq4RVM9Zt/j7N6XqMosPh5VNIxETYXX9aQfhjW\r\nSRZyGeNrSqZFraix4U9nEQbiNIjGEQgIEXpjyybJVw0Q9vFw3UtdtAZPS6gz\r\nMlFC8dpVekhwRWTgS0uywrAjvq9H7dCRe9SsEJCenT92RhsyUYB+mkWHV3kw\r\n8RBDTAfLEk+SzpOXTj/S31I6DfYisuTLZbQ/vgO03ZOCu/tC0WG/mbjO47kz\r\nM1gHtBv7jtUylgYmgirDm9xYD0B+urwG7RLeuGedeHrcX8gV/lH9A5/MMmzT\r\nQIMsc2ld5BMp0keXUYA0xAERG+EHBu1YBappkL30anoTg9xBhjPNV+UQXYhw\r\nG16uQq4TxZb19JIyKenQvEzdjFsbZyqP+Lkv2uJqdgAZJw1IG85r8fKQK0mC\r\nKMPwzdwf2dPeSGnCtvaAqJs1c0JWIiF2WXEbHG9T+me8JKg/QhiphRV64V5Y\r\nJUBoPawnFEHYUtQ/q8p4ipjMMEZnKGFWfUSnJEchlHoE1H8VTfNOgaIdL5rV\r\nFe8GOAk8JOscw4SVfOhqzmn3vqkrPJeJR/w=\r\n=pfGj\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, options?: AnnouncerMessageOptions) => void` | Announces the message via an `aria-live` region with the given options. `AnnouncerMessageOptions.priority` defaults to polite and `AnnouncerMessageOptions.ownerDocument` defaults to the global document.\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":"1b58f37865efc4ba8ba06e1190cef502dee9f902","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@v14.21.3+x64 (linux)","description":"DOM manipulation utilities for Material Components for the web","directories":{},"maintainers":[{"name":"yefim","email":"hi@yef.im"},{"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":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@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":"14.21.3","dependencies":{"tslib":"^2.1.0","@material/rtl":"15.0.0-canary.da22ca960.0","@material/feature-targeting":"15.0.0-canary.da22ca960.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/dom_15.0.0-canary.da22ca960.0_1678393064674_0.8234159236029848","host":"s3://npm-registry-packages"},"_id":"@material/dom@15.0.0-canary.da22ca960.0","version":"15.0.0-canary.da22ca960.0"}