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

ui-angular

v0.1.2

Published

My KISS - semantic-ui/angularJS library

Downloads

5

Readme

UI Angular

My KISS - semantic-ui/angularJS library

About

You will find the all the help and usage instructions with navigation menu on the UI Angular homepage. Here the readme's are distributed over the relevant folders.


License MIT npm GitHub release


Approach

Designed around KISS Principle Keep it simple stupid

  1. Accept all parameters that Semantic UI does and extends with some angular features.
  2. Pass data in variables and objects (don't clutter html, use controller and services)
  3. Call Semantic UI js code as much as possible: Why reinvent the wheel!
  4. Semantic UI syntax looks good with angular, no need to have directive to add html classes unless really nessesary or simpifies significantly
  5. Follow from last two points :If there is no Semantic UI js code, there needs to be a real benefit to write angular code.

Dependencies

  • AngularJS
  • semantic UI
  • jQuery

Status

I have written directive as I have needed the modules, which mean they are used live and work. If you request a directive please allow a week for me to write it.

Please put an issue if you intend to contribute your work, then I will put some effort to write the rules and guidlines etc.

| Backlog | Planned | Done | Not Planned | | ------------- |-------------| -----------|--------------------------| | Dimmer | Accordian | Dropdown | ~~Checkbox~~ * | | Embed | | Modal | ~~Nag~~ * | | Progress | | Popup | ~~Tab~~ * | | Rating | | Sidebar | | | Search** | | Sticky | | | Shape | | | | | Transition** | | | | | | | Visibility | ~~API~~ * |
| | | | ~~Form Validation~~ * |
| | | | ~~Elements~~ *** |
| | | | ~~Collections~~ *** |

* Found AngularJS out of the box does the job well enough ** Not sure if AngularJs is better suited or not **** No javascript, so no plans unless there is a compelling reason

Install

Download

NPM

> npm install ui-angular --save

Bower

> bower install ui-angular --save

Build

Local Build

To build inside ui-angular folder

  • Go to ui-angular folder
  • Install all needed packages ui-angular> npm install
  • Build ui-angular> gulp build

Integrated Build

To integrate with your own gulp build

  • Copy ui-angular.json to your build folder and set the relative paths in the file
  • There must be a semantic.json file in the same folder
  • add
var buildUIAngular = require('[your path]/ui-angular/tasks/build')(__dirname); 
gulp.task('buildUIAngular', buildUIAngular);
  • And integrate this with your build task

Only the the modules used for Semantic-UI will be included in the build

Usage

Load the Module

Use uiAngular to load the module. E.g.

angular.module('app', ['uiAngular']);

Common features

  • All object are initiated if needed to. E.g.
$('.classes').method();
  • vm.directiveObject Dom instance object to be used for Semantic UI usage. E.g.
vm.directiveObject.method('show');
vm.directiveData = {
  on: 'hover',
  onShow: function(){...}
};

Warning: Setting the variables for the method through javascript/jquery syntax will in many cases render the ui-directive useless, i.e.

$('.classes').method({
 setting: value
});

/*OR*/

vm.directiveObject.method({
 setting: value,
 callBack: function(){...}
});