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

bedrock-angular-ui

v4.0.0

Published

A bedrock AngularJS module that provides various UI components.

Downloads

3

Readme

bedrock-angular-ui

A bedrock AngularJS module that provides various UI components.

Uses features from bedrock-angular.

Setup

bower install bedrock-angular-ui

Installation of the module followed by a restart of your bedrock server is sufficient to make the module available to your application.

To manually add bedrock-angular-ui as a dependency:

angular.module('myapp', ['bedrock.ui']);

Directives

br-action-menu

Show an action menu. Provides standard stackables wrapper around <ul> menu items. Useful in headlines and tables of resources.

<table class="table table-condensed" ng-show="model.items.length > 0">
  <thead>
    <tr>
      <th>Name</th>
      <th class="br-action">Action</th>
    </tr>
  </thead>
  <tbody>
    <tr ng-repeat="item in model.items | orderBy:'label'"
      <!-- Name -->
      <td>
        <a href="{{item.id}}">{{item.label}}</a>
      </td>
      <!-- Action -->
      <td class="br-action">
        <br-action-menu>
          <ul class="dropdown-menu stackable-menu">
            <!-- Edit -->
            <li>
              <a class="stackable-cancel" ng-click="model.editItem(item)">
                <i class="fa fa-pencil"></i> Edit
              </a>
            </li>
            <!-- Set as default -->
            <li>
              <a class="stackable-cancel" ng-click="model.setDefault(item.id)">
                <i class="fa fa-star"></i> Set as default
              </a>
            </li>
            <!-- Remove -->
            <li class="divider"></li>
            <li class="alert-danger">
              <a class="stackable-cancel" ng-click="model.removeItem(item)">
                <i class="fa fa-times"></i> Remove
              </a>
            </li>
          </ul>
        </br-action-menu>
      </td>
    </tr>
  </tbody>
</table>

br-error

Show details of an error.

<!-- error details -->
<div ng-show="model.error">
  <h3 class="headline">Error Details</h3>
  <div br-error-view="model.error"></div>
</div>

br-headline

Show a standard section headline. Useful for a common look and feel. Supports having a menu for section specific actions.

<div class="row">
  <div class="section col-md-12">
    <br-headline br-title="Items" br-loading="model.state.items.loading">
      <ul class="stackable-menu dropdown-menu">
        <li>
          <a class="stackable-cancel" ng-click="modals.showAddItem=true"><i class="fa fa-plus"></i> Add Item</a>
        </li>
      </ul>
    </br-headline>
    <div ng-show="!model.state.items.loading && items.length == 0">
      <p class="text-center">You have no items for this identity.</p>
      <button type="button"
        class="btn btn-success pull-right"
        ng-click="modals.showAddItem=true"><i class="fa fa-plus"></i> Add Item</button>
    </div>
    <div ...>...</div>
  </div>
</div>

<div class="row">
  <div class="section col-md-12">
    <br-headline br-title="Recent Items" br-loading="model.state.recent.loading"
      br-options="{menu: false}"></br-headline>
    <div ng-show="!model.state.items.loading && recent.length == 0">
      <p class="text-center">You have no recent items for this identity.</p>
    </div>
    <div ...>...</div>
  </div>
</div>

br-slug-in

Automatically create slug data from a model property.

<br-input br-model="model.resource.sysSlug"
  ng-model="model.resource.sysSlug"
  br-slug-in="model.resource.label"
  br-options="{
    name: 'sysSlug', label: 'Short Name',
    placeholder: 'my-short-name', disabled: {{model.loading}},
    autocomplete: 'off', maxlength: '32',
    columns: {
      label: 'col-md-2',
      input: 'col-md-8',
      help: 'col-md-offset-2 col-md-8'
    }
  }">
  Enter a short name for this resource. An example would be "my-short-name",
  or "myshortname".
</br-input>

br-tabs

Wrapper around a number of br-tabs-pane components.

<div br-tabs>
  ...
</div>

br-tabs-pane

Wrapper around content for a tab used with a br-tabs component.

<div br-tabs-pane br-title="My Tab" br-tab-id="my-tab"
  br-tab-pane-index="1">
  <div ng-include="'my-tab.html'"></div>
</div>

br-tooltip

Show a tooltip.

<i class="icon fa fa-pencil"
  br-tooltip="Edit this item."
  br-options="{placement: 'bottom'}"></i>

Options:

placeholder

Polyfill for placeholder attribute.

Filters

slug

Convert a string to a "slug". Repeated whitespace and - in a string are replaced with a single -. The string is also lowercased. Useful for URL friendly ids.

{{accountName | slug}}
var slugified = $filter('slug')(scope.input);
{{'My name' | slug}} => 'my-name'
{{'My   Name' | slug}} => 'my-name'
{{'My - Name' | slug}} => 'my-name'
{{'My --- Name' | slug}} => 'my-name'