{"_id":"@cather/kwc-aria-reflection","_rev":"2-e2545ea53487b45ddf76adeda93a6b8c","name":"@cather/kwc-aria-reflection","dist-tags":{"latest":"1.0.0"},"versions":{"8.21.2":{"name":"@cather/kwc-aria-reflection","version":"8.21.2","keywords":["aom","aria","kwc","polyfill","reflection"],"license":"MIT","_id":"@cather/kwc-aria-reflection@8.21.2","maintainers":[{"name":"catherine2020","email":"303673522@qq.com"}],"homepage":"https://kwc.dev","bugs":{"url":"https://github.com/kingdee/kwc/issues"},"//":["THIS FILE IS AUTOGENERATED. If you modify it, it will be rewritten by check-and-rewrite-package-json.js","You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."],"nx":{"targets":{"build":{"outputs":["{projectRoot}/dist"]}}},"dist":{"shasum":"b8028e8195470c3a14241a1c24111061060a0bb7","tarball":"https://registry.npmjs.org/@cather/kwc-aria-reflection/-/kwc-aria-reflection-8.21.2.tgz","fileCount":6,"integrity":"sha512-HzQP4QeoNWVTflcr42LAALz9Q5JcTSqNmKcnQ9iB42QNupxvPJf16VU341yLePqJsGNYNH0q868gZmlS44N7/w==","signatures":[{"sig":"MEYCIQDMoviUwrmtBV6TjaByWTwngp64SahdryGKA87CoHj9PwIhALL6xp8c+shXNVcFFFiCfPf+xPp+oYCfM88JxxOjo4ob","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19063},"main":"dist/index.cjs.js","types":"dist/index.d.ts","volta":{"extends":"../../../package.json"},"module":"dist/index.js","scripts":{"dev":"rollup  --config ../../../scripts/rollup/rollup.config.js --watch --no-watch.clearScreen","build":"rollup --config ../../../scripts/rollup/rollup.config.js"},"_npmUser":{"name":"catherine2020","email":"303673522@qq.com"},"repository":{"url":"git+https://github.com/kingdee/kwc.git","type":"git","directory":"packages/@kwc/aria-reflection"},"_npmVersion":"10.8.2","description":"ARIA element reflection polyfill for strings","directories":{},"_nodeVersion":"20.19.4","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/kwc-aria-reflection_8.21.2_1755849859235_0.9153804050530847","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"//":["THIS FILE IS AUTOGENERATED. If you modify it, it will be rewritten by check-and-rewrite-package-json.js","You can safely modify dependencies, devDependencies, keywords, etc., but other props will be overwritten."],"name":"@cather/kwc-aria-reflection","version":"1.0.0","description":"ARIA element reflection polyfill for strings","keywords":["aom","aria","kwc","polyfill","reflection"],"homepage":"https://kwc.dev","repository":{"type":"git","url":"git+https://github.com/kingdee/kwc.git","directory":"packages/@kwc/aria-reflection"},"bugs":{"url":"https://github.com/kingdee/kwc/issues"},"license":"MIT","publishConfig":{"access":"public"},"volta":{"extends":"../../../package.json"},"main":"dist/index.cjs.js","module":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rollup --config ../../../scripts/rollup/rollup.config.js","dev":"rollup  --config ../../../scripts/rollup/rollup.config.js --watch --no-watch.clearScreen"},"nx":{"targets":{"build":{"outputs":["{projectRoot}/dist"]}}},"dependencies":{},"_id":"@cather/kwc-aria-reflection@1.0.0","_nodeVersion":"20.19.4","_npmVersion":"10.8.2","dist":{"integrity":"sha512-azCgPShT2fG8HITcteH/0Ir+Fz6Vzs415DwwCszMFBQrZP4fjfk43HFjDG+4oC0FqEzlAl9Y7RqmLRvX5N6S9w==","shasum":"c8caf653a9f44366c6596f70ce20dc82d700a620","tarball":"https://registry.npmjs.org/@cather/kwc-aria-reflection/-/kwc-aria-reflection-1.0.0.tgz","fileCount":6,"unpackedSize":19062,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDOd1Y/cHKARbG5GvvfM/VpGvjzqrTCt6UcUoB/lZ0qzAiAdfeFm6kCed9nz4I3cj6wgPJqExVDOdV2l87B9Gbxo3w=="}]},"_npmUser":{"name":"catherine2020","email":"303673522@qq.com"},"directories":{},"maintainers":[{"name":"catherine2020","email":"303673522@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/kwc-aria-reflection_1.0.0_1755849904132_0.8002179332015438"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-22T08:04:19.176Z","modified":"2025-08-22T08:05:04.629Z","8.21.2":"2025-08-22T08:04:19.419Z","1.0.0":"2025-08-22T08:05:04.401Z"},"bugs":{"url":"https://github.com/kingdee/kwc/issues"},"license":"MIT","homepage":"https://kwc.dev","keywords":["aom","aria","kwc","polyfill","reflection"],"repository":{"type":"git","url":"git+https://github.com/kingdee/kwc.git","directory":"packages/@kwc/aria-reflection"},"description":"ARIA element reflection polyfill for strings","maintainers":[{"name":"catherine2020","email":"303673522@qq.com"}],"readme":"# @cather/kwc-aria-reflection\n\n> **Note:** use this code at your own risk. It is optimized for backwards-compatibility, not\n> as a forward-looking polyfill that keeps up to date with web standards.\n\nPolyfill for [ARIA string reflection](https://wicg.github.io/aom/spec/aria-reflection.html) on Elements.\nThis is part of the [Accessibility Object Model](https://wicg.github.io/aom/explainer.html) (AOM).\n\nFor example:\n\n```js\nelement.setAttribute('aria-pressed', 'true');\nconsole.log(element.ariaPressed); // true\nelement.ariaPressed = false;\nconsole.log(element.getAttribute('aria-pressed')); // false\n```\n\nNote that the attribute `aria-pressed` is reflected to the property `ariaPressed`, and vice versa.\n\n## Usage\n\n```shell\nnpm install @cather/kwc-aria-reflection\n```\n\n```js\nimport '@cather/kwc-aria-reflection';\n```\n\nThe polyfill is applied globally to `Element.prototype` as soon as the module is imported.\n\n## Implementation\n\nThe polyfill patches these [standard](https://w3c.github.io/aria/#ARIAMixin) property/attribute reflections:\n\n| Property                     | Attribute                     |\n| ---------------------------- | ----------------------------- |\n| `ariaAtomic`                 | `aria-atomic`                 |\n| `ariaAutoComplete`           | `aria-autocomplete`           |\n| `ariaBrailleLabel`           | `aria-braillelabel`           |\n| `ariaBrailleRoleDescription` | `aria-brailleroledescription` |\n| `ariaBusy`                   | `aria-busy`                   |\n| `ariaChecked`                | `aria-checked`                |\n| `ariaColCount`               | `aria-colcount`               |\n| `ariaColIndex`               | `aria-colindex`               |\n| `ariaColIndexText`           | `aria-colindextext`           |\n| `ariaColSpan`                | `aria-colspan`                |\n| `ariaCurrent`                | `aria-current`                |\n| `ariaDescription`            | `aria-description`            |\n| `ariaDisabled`               | `aria-disabled`               |\n| `ariaExpanded`               | `aria-expanded`               |\n| `ariaHasPopup`               | `aria-haspopup`               |\n| `ariaHidden`                 | `aria-hidden`                 |\n| `ariaInvalid`                | `aria-invalid`                |\n| `ariaKeyShortcuts`           | `aria-keyshortcuts`           |\n| `ariaLabel`                  | `aria-label`                  |\n| `ariaLevel`                  | `aria-level`                  |\n| `ariaLive`                   | `aria-live`                   |\n| `ariaModal`                  | `aria-modal`                  |\n| `ariaMultiLine`              | `aria-multiline`              |\n| `ariaMultiSelectable`        | `aria-multiselectable`        |\n| `ariaOrientation`            | `aria-orientation`            |\n| `ariaPlaceholder`            | `aria-placeholder`            |\n| `ariaPosInSet`               | `aria-posinset`               |\n| `ariaPressed`                | `aria-pressed`                |\n| `ariaReadOnly`               | `aria-readonly`               |\n| `ariaRelevant`               | `aria-relevant`               |\n| `ariaRequired`               | `aria-required`               |\n| `ariaRoleDescription`        | `aria-roledescription`        |\n| `ariaRowCount`               | `aria-rowcount`               |\n| `ariaRowIndex`               | `aria-rowindex`               |\n| `ariaRowIndexText`           | `aria-rowindextext`           |\n| `ariaRowSpan`                | `aria-rowspan`                |\n| `ariaSelected`               | `aria-selected`               |\n| `ariaSetSize`                | `aria-setsize`                |\n| `ariaSort`                   | `aria-sort`                   |\n| `ariaValueMax`               | `aria-valuemax`               |\n| `ariaValueMin`               | `aria-valuemin`               |\n| `ariaValueNow`               | `aria-valuenow`               |\n| `ariaValueText`              | `aria-valuetext`              |\n| `role`                       | `role`                        |\n\nAs well as these [non-standard](https://github.com/w3c/aria/issues/1732) reflections:\n\n| Property               | Attribute               |\n| ---------------------- | ----------------------- |\n| `ariaActiveDescendant` | `aria-activedescendant` |\n| `ariaControls`         | `aria-controls`         |\n| `ariaDescribedBy`      | `aria-describedby`      |\n| `ariaDetails`          | `aria-details`          |\n| `ariaErrorMessage`     | `aria-errormessage`     |\n| `ariaFlowTo`           | `aria-flowto`           |\n| `ariaLabelledBy`       | `aria-labelledby`       |\n| `ariaOwns`             | `aria-owns`             |\n\nTo determine which browsers support ARIA reflection, see the relevant [Web Platform Tests](https://web-platform-tests.org/) for [ARIA string reflection](https://wpt.fyi/results/custom-elements/reactions/AriaMixin-string-attributes.html?label=experimental&label=master&aligned) and [ARIA element reflection](https://wpt.fyi/results/custom-elements/reactions/AriaMixin-element-attributes.html?label=experimental&label=master&aligned).\n","readmeFilename":"README.md"}