{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"4c04b06ef55a8263d57e7a45f0be5534d2618817","tarball":"https://registry.npmjs.org/@material/dom/-/dom-5.0.0-canary.63f357dbf.0.tgz","fileCount":20,"integrity":"sha512-Eg0Km20gocwGWO1iXk39p+n2FTN+aLDKQKdXQw3+5PjJZwlLUTN+ItiCo2R7Xjm+PusSB9LeRXNTUcO35r1jGA==","signatures":[{"sig":"MEQCICxxFalgmgaz9VAC4uMGSe5syoF7A0b5kRSvyElKorUnAiAWhYBTd0GzbfAiwDshpj2CUugpEPV3TMrT3k0GUXoWVQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":76895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKhYjCRA9TVsSAnZWagAA334P/iBbNTn1u8+pkrVv+DbX\nAqTqm/F2xk4EiB18RlF94QCdgjoKiqfUriW/r6IL0Aq5+GHR1SCAa/UDJEyx\nHqUA59yrlM9XoMGwodirsCsb6K8bjj517KSiyX3pFATnMFwNsx5mhwiVYD0f\n+wGbUkof4JEbUTPyALiiB/PjnlYDM13s0qePcqO+65okSmPUmT/+BSum2HlL\nJlQQpOLlooL1t9KDZeazkk1jY+LR5miWIqAbaLyiixaPvykhOvL2Zowd3y62\n3vecata9p6AqYTZutxQ1I8EfTDMNlIGVN369m/H3j+BGa5hmOtFBmyeMtNOW\nr4kqVxXn2ECZa8Ehi2QnCpCUQ130WcfHbf2MDcx7ymB1HSHYyrJvOURAVC6l\nuYFwJI088gyKMGNAFwCDSuyOWY0AtEF/AHRyZBVikoNSXhzUndFDLYS6oKPP\nwsr6PI9F4lE0N8HAYAcH5/zOPdx60G8Wy/k2mS6vlDLxrMT6nYOP9dmMa6Uw\nrcPJiNHYRfbJ/OD+kzjIqsEjS8TpIa3+IgPO9bpxP7dZC41KuNw0/o8t+TGc\nb7aN3s0nEWG9ZOic1OlBdDr0bsEWMoFMMkWTUYEWfVkT01j12u/O1HwYCHOW\nqm6WC++rSAwPy6VurjmWMJnK9FTJ/G+cYSABCU65hXKmD9CP99WbhysgPbuy\naQZE\r\n=32Vv\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, forceRefresh = false) => object` | Determine whether the current browser supports passive event listeners\n\n> _NOTE_: The function `util.applyPassive` cache its results; `forceRefresh` will force recomputation, but is used mainly for testing and should not be necessary in normal use.\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","gitHead":"eeb2b38a1cd8ef32c66d35119a666a4b01da6d7d","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.14.1/node@v10.18.1+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.18.1","dependencies":{"tslib":"^1.9.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/dom_5.0.0-canary.63f357dbf.0_1579816482182_0.3537319479166403","host":"s3://npm-registry-packages"},"_id":"@material/dom@5.0.0-canary.63f357dbf.0","version":"5.0.0-canary.63f357dbf.0"}