npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@ewc-lib/ewc-dialogs

v5.0.8-beta

Published

Monorepo for EWCL dialog WebComponents

Readme

EWC dialog components

This is a monorepo, containing three different EWCL dialog components.

The links below provide detailled information about each dialog.

  • ewc-dialog
    • a general dialog for displaying arbitrary content
  • ewc-dialog-clipboard
    • a dialog, specialised to let end-users copy some given text into the OS's clipboard
  • ewc-dialog-feedback
    • another dialog, specialised to encourage end-users to take part in eurostat surveys.

Each component provides working usage examples for two contexts: WebPack and VanillaJS.

Notes

Accessibility

The components are designed with accessibility in mind:

  • Proper semantic HTML structure (dialog and header elements)
  • Keyboard navigable elements
  • Sufficient color contrast
  • Screen reader friendly with appropriate ARIA attributes

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

License

European Union Public License (EUPL)

Changelog

  • 5.0.7-beta

    • checkbox style
    • update tests
  • 5.0.6-beta

    • remove "fade to white" effect (bottom of scrollable area)
  • 5.0.5-beta

    • color clipboard-content
  • 5.0.4-beta

    • ewc-dialog-clipboard: initial focus on copy-button
    • include aria attributes in tests
  • 5.0.3-beta

    • addendum (aria)
  • 5.0.2-beta

    • playwright tests and code corrections for them
    • ewc-dialog-clipboard: support show/hide success/fail message during open dialog
    • ewc-dialog-clipboard: display repetition word properly inside button
    • update docu (ariaDescription)
    • all dialogs: make focus on close work correctly in tests
    • all dialogs: make focus trap work correctly in tests
    • ewc-dialog-clipboard: change copy-failure text
    • correction of a typo (makes import statement work)
  • 5.0.1-beta

    • ewc-dialog-feedback: tab order (close X, checkbox, take survey, don't take survey)
    • rename some files
  • 5.0.0-beta

    • initial version of monorepo, containing 3 former singlerepos

Changelog pre monorepo

Before 3 dialogs were grouped together into this monorepo, they each had their own changelog. They are listed below.

Changelog ewc-dialog

  • 3.2.2-beta

    • improve integration support
  • 3.2.1-beta

    • fix: avoid double customElements.define() invocation when deriving classes
  • 3.2.0-beta

    • a11y: remove autofocus, ARIAs
    • potential bugfix (move code out of constructor)
  • 3.1.0-beta

    • feature: introduce configuration "dismissable" (close on click outside of dialog)
    • restructure docu
  • 3.0.6-beta

    • feature: max width configuration for flexible adaption (to more/less text and wider/narrower width)
  • 3.0.5-alpha

    • update usage examples
  • 3.0.4-alpha

    • update usage examples
  • 3.0.3-alpha

    • expose focus trap (for access from deriving classes)
  • 3.0.2-alpha

    • support content change at runtime
  • 3.0.1-alpha

    • isolate content from light-DOM styles
  • 3.0.0-alpha

    • introduce shadow DOM
    • inline CSS (remove dependency to ewc-css)

Changelog ewc-dialog-clipboard

  • 2.2.3-beta

    • improve integration support
  • 2.2.2-beta

    • isolate class hierarchy to support different ewc-dialog version in host project
    • fix version info mistake
  • 2.2.1-beta

    • fix: avoid double customElements.define() invocation when deriving classes
  • 2.2.0-beta

    • a11y: remove superfluous p-tag, add error correction suggestion, add word "again" to copy button
  • 2.1.0-beta

    • bugfix: Success/Fail message from before still displayed after closing and opening the dialog again
  • 2.0.4-alpha

    • improve support of narrow width and zoom
    • focus on copy button after dialog opening

Changelog ewc-dialog-feedback

  • 4.1.3-beta

    • improve integration support
  • 4.1.2-beta

    • isolate class hierarchy to support different ewc-dialog version in host project
    • fix version info mistake
  • 4.1.1-beta

    • fix: avoid double customElements.define() invocation when deriving classes
  • 4.1.0-beta

    • use peerDependencies, update dependency of ewc-dialog, remove console output
  • 4.0.3-beta

    • change to beta, update dependency of ewc-dialog
  • 4.0.2-alpha

    • correction buttons, tab focus order, improve narrow width and zoom
  • 4.0.0-alpha

    • adapt to new standards (look and feel)
  • 3.0.1-alpha

    • guard custom element registering
  • 3.0.0-alpha

    • inline SVG (EWC-86), config (EWC-81)
  • 2.0.1-alpha

    • introduce focus trap