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

aurelia-semantic-ui

v0.2.0

Published

Semantic-UI widgets for Aurelia apps

Downloads

65

Readme

aurelia-semantic-ui

Join the chat at https://gitter.im/ged/aurelia-semantic-ui

This plugin is for the Aurelia platform. It contains custom elements and attributes for some of the Semantic UI widgets.

It isn't really even alpha quality right now, as I'm still figuring out how half of this stuff works, so don't depend on anything quite yet.

The major "to do" list:

  • Flesh out the custom elements. I started this before the new projection system (slots), and I couldn't figure out how to implement custom elements with the old one so the custom elements are only half-implemented currently. The templates, for example, are mostly just placeholders.
  • TESTING. I have been keeping tests in line with the implementation of the components, so it's a pretty good indication of what's been implemented beyond just the basic custom elements/attributes.
  • Documentation via the demo app seems to be working well, but I've spent more time on layout and organization than content so far, so I need to catch up with the code so I can keep them in parity.
  • Finish making custom elements/attributes for the rest of the Semantic widgets.
  • Resolve some binding problems with the Modules and Behaviors.
  • Figure out a convention for binding attributes that have the same as methods of components (e.g., attached). I'm currently thinking that I'll prefix them (ui-attached/uiAttached).

Progress

The plan is to provide implementations for all of the Collections, Elements, Modules, and Views, and any of the Behaviors and plugins that make sense to use in the context of an Aurelia app.

Legend

[x] Complete and adequate test coverage
[-] Implemented but not complete
[?] Not sure if this will be included
[ ] Not implemented yet, but planned

Behaviors

  • [?] API (consider omitting)
  • [?] Form Validation (will this be easier to use than aurelia-validation when it's done?)
  • [-] Visibility (ui-visibility)

Collections

  • [x] Breadcrumb
  • [x] Form
  • [x] Grid
  • [x] Menu
  • [x] Message
  • [-] Table

Elements

  • [x] Button
  • [x] Container
  • [x] Divider
  • [x] Flag
  • [-] Header
  • [x] Icon
  • [-] Image
  • [-] Input
  • [-] Label
  • [x] List
  • [-] Loader
  • [-] Rail
  • [-] Reveal
  • [-] Segment
  • [-] Step

Modules

  • [-] Accordion
  • [-] Checkbox
  • [x] Dimmer
  • [-] Dropdown
  • [ ] Embed
  • [-] Modal
  • [ ] Nag
  • [-] Popup
  • [-] Progress
  • [ ] Rating
  • [-] Search
  • [ ] Shape
  • [-] Sidebar
  • [-] Sticky
  • [ ] Tab
  • [ ] Transition

Views

  • [ ] Advertisement
  • [-] Card
  • [ ] Comment
  • [-] Feed
  • [ ] Item
  • [-] Statistic

Plugins

  • [ ] Calendar

Installing

Again, this isn't production-ready yet, but once it is, this is how you'll install it.

In your Aurelia project install the plugin via jspm with following command

jspm install npm:aurelia-semantic-ui

Make sure you use manual bootstrapping. In order to do so open your index.html and locate the element with the attribute aurelia-app. Change it to look like this:

<body aurelia-app="main">

Create (if you haven't already) a file main.js in your src folder as described in the Bootstrapping Aurelia section of the Aurelia documentation. Add this before you call aurelia.start() to install the plugin in your app:

aurelia.use.plugin( 'aurelia-semantic-ui' );

If you wish to test to see if the plugin is being installed correctly, you can add the following markup as a sample:

<ui-card centered>
  <div class="image">
    <img src="/images/avatar2/large/elyse.png">
  </div>
  <div class="content">
    <a class="header">Elyse</a>
  </div>
</ui-card>

Thanks

Many thanks to the aurelia-bs-modal plugin by Patrick Walters upon which this plugin is based. Used under the terms of The MIT License (MIT):

Copyright (c) 2014 Durandal Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The rest is Copyright (c) 2016 Michael Granger, but otherwise distributed under the same MIT License.