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

vudal

v1.12.3

Published

Another modal window for vue

Readme

Vudal

Modal window component based on Semantic UI design. (Does not require semantic ui, it is completely independent)

Demo

Install plugin

import { VudalPlugin } from 'vudal';

Vue.use(VudalPlugin);

Possible options:

  • hideModalsOnDimmerClick (defaults to true) lets control whether clicking on dimmer will hide opened modals

Inside your component make preparations

import Vudal from 'vudal';

...
components: { Vudal }
...

Component usage example

<vudal name="myModal">
  <div class="header">
    <i class="close icon"></i>
    Title
  </div>
  <div class="content">
    Content
  </div>
  <div class="actions">
    <div class="ui cancel button">Cancel</div>
    <div class="ui button">Ok</div>
  </div>
</vudal>

Params:

  • name modal name
  • parent parent modal name (if any)
  • close-by-esc close by ESC button (true by default)
  • stickyHeader set sticky header block (class .header) (false by default)
  • stickyActions set sticky actions block (class .actions) (false by default)

Parent-child relationship is needed when second (child) modals is opened, but you close first modal (parent), child should also be closed. Also parent modal is blurred when child is opened.

Events:

  • show fired when modal is starting to show
  • hide fired when modal is starting to hide
  • hidden fired when modal finished hiding animation
  • visible fired when modal finished show animation

Methods:

  • $toggle toggle visibility
  • $show self explanatory
  • $hide self explanatory
  • $isActive check whether modal is visible
  • $remove destroy modal

Selector '.actions .cancel' call method $hide on click.

Also global $modals object is available to control modals.

You can access modals by name, for example this.$modals.myModal.

Example: this.$modals.myModal.$show() to show modal.

Use this.$modals.hideAll() to hide all active modals.

Custom modals

If you need to create your own custom looking modal, you can use modalMixin that will drive your modal.

It adds everything specified above, except .actions selector thing.

It also adds .vudal class to root element and .show, .hide and .mobile class for visible, hidden and opened on mobile device accordingly.