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 🙏

© 2024 – Pkg Stats / Ryan Hefner

boar-ng-common

v1.2.6

Published

Common Emarsys UI AngularJS components

Downloads

27

Readme

Emarsys UI AngularJS components

The boar-ng-common library is a collection of reusable AngularJS UI components for the Emarsys Boar stack and Emarsys UI Framework.

Installation

You must have installed the angular-translate library.

Install boar-ng-common to your application:

npm install boar-ng-common --save

In your application load the library after loading angular:

require('boar-ng-common');

The Pager component

It is a paginator component.

this.pager = {
  page: 0,
  limit: 10,
  total: 78
}
<e-pager page="ctrl.pager.page" page-size="ctrl.pager.limit" total="ctrl.pager.total"></e-pager>

The Steps component

It implements the Emarsys UI Framework's Steps component.

this.steps = {
  step: 1,
  steps: [
    { value: 'Description' },
    { value: 'Contenu du formulaire', disabled: true },
    { value: 'Destinataires' },
    { value: 'Champs de données' },
    { value: 'Après inscription' },
    { value: 'Code source' },
  ]  
}
<e-steps steps="ctrl.steps.steps" step="ctrl.steps.step"></e-steps>

The Table component

It implements the Emarsys UI Framework's Table component, with a search field, sorting, paging and action buttons for the table and the table rows.

this.characters = [
  { id: 1, name: "Daenerys Targaryen", gender: "female" },
  { id: 2, name: "Joffrey Baratheon", gender: "male" },
  { id: 3, name: "Tyrion Lannister", gender: "male" },
  { id: 4, name: "Sansa Stark", gender: "female" },
  { id: 5, name: "Eddard Stark", gender: "male" }
]
<e-table model="ctrl.characters" default-sort-field="id" default-sort-order="asc" show-search>
  <e-table-button href="#/characters/new">Add a New Character</e-table-button>

  <e-table-cell title="ID" sort-field="id">{{ row.id }}</e-table-cell>
  <e-table-cell title="Character Name" sort-field="name">{{ row.name }}</e-table-cell>
  <e-table-cell title="Gender" sort-field="gender">{{ row.gender | uppercase }}</e-table-cell>

  <e-table-action tooltip="Edit" icon="#pencil" href="#/characters/{{ row.id }}"></e-table-action>
  <e-table-action tooltip="Delete" icon="#trash-o" action="ctrl.killCharacter(row.id)"></e-table-action>

  <e-table-pager></e-table-pager>
</e-table>

The search field and the pager can be removed.