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

@byu-oit/admissions-polymer-components

v2.0.0

Published

Includes a set of polymer web components to be used across BYU Undergraduate Admissions web apps.

Downloads

4

Readme

Admissions Polymer Components

Includes a set of polymer web components to be used across BYU Undergraduate Admissions web apps.

Installation

The simplest way to install the component is with Bower. Run bower install admissions-polymer-components and the necesary files will be installed in a bower_components directory.

To use the components, include the web component loader polyfill and the desired components.

...
<head>
...
<script src="bower_components/webcomponentsjs/webcomponents-loader.js"></script>
<link rel="import" href="../admit-fieldset.html">
<link rel="import" href="../admit-heading-section.html">
<link rel="import" href="../admit-table.html">
<link rel="import" href="../admit-table-row.html">
...
</head>

admit-heading-section

Prefaces its content with a standard header.

Attributes

  • title The heading text
  • subsection If set, the section uses a smaller heading size, and can't be collapsed.
  • collapse If set, the section is collapsible.
  • is-collapsed If set, the section is collapsed.

Example

<admit-heading-section title="Admissions">
    <!-- Content goes here -->
</admit-heading-section>

admit-fieldset / admit-fieldset-row / admit-field

An admit-fieldset wraps any number of admit-field elements into a vertical 2-column layout with a heading. For multi-column layouts, you may use admit-fieldset-row elements instead.

admit-fieldset Attributes

  • title The heading text
  • collapse If set, the field set is collapsible.

admit-field Attributes

  • label The field's label (can be omitted)
  • value The field's value
  • emphasis If set, the field value will be bold

Example

<admit-fieldset title="Applicant" collapse>
    <admit-field label="Name" value="John Doe"></admit-field>
    <admit-field label="Age" value="15"></admit-field>
    <admit-field label="" value="Young Applicant!" emphasis></admit-field>
</admit-heading-section>

Using multi-column layout:

<admit-fieldset title="Clearances" collapse>
    <admit-fieldset-row>
        <span class="label">Endorsement</span>
        <span>Not Endorsed</span>
        <a class="action">clear</a>
    </admit-fieldset-row>
    <admit-fieldset-row>
        <span class="label">Dept Interest Flag</span>
        <span>Music</span>
        <a class="action">remove</a>
    </admit-fieldset-row>
    <admit-fieldset-row>
        <span class="label"></span>
        <span>Math</span>
        <a class="action">remove</a>
    </admit-fieldset-row>
    <admit-fieldset-row>
        <span class="label"></span>
        <span></span>
        <a class="action">+add flag</a>
    </admit-fieldset-row>
</admit-heading-section>

admit-table / admit-table-row

An admit-table creates a simple data table with column headings. Each row in the table is wrapped in an admit-table-row element, and must have an equal number of sub-elements for each cell in the table.

admit-table Attributes

  • columns A comma separated list of column headers. If a column doesn't require a header, set it to -. If a column header is prefixed with #, the text will be centered (good for numeric columns for example).

Example

<admit-table columns="-,Date,#Score">
    <admit-table-row>
        <span>ACT</span>
        <span>Apr 2015</span>
        <span style="text-align: center;">30</span>
    </admit-table-row>
    <admit-table-row>
        <span>SAT</span>
        <span>May 2016</span>
        <span style="text-align: center;">1400</span>
    </admit-table-row>
</admit-table>

admit-color-circle

Creates a simple circle with one of 5 color values.

admit-color-circle Attributes

  • color-index The color assigned to the circle. These values can be configured with the css variables --admit-color-circle-color[0-5]. Default values are:
    • 0: Navy
    • 1: Blue
    • 2: Light Blue
    • 3: Yellow
    • 4: Red
  • active Indicates that this circle is active

Example

<admit-color-circle color-index="0" on-click="setValue(0)"></admit-color-circle>
<admit-color-circle color-index="1" on-click="setValue(1)"></admit-color-circle>
<admit-color-circle color-index="2" active on-click="setValue(2)"></admit-color-circle>
<admit-color-circle color-index="3" on-click="setValue(3)"></admit-color-circle>
<admit-color-circle color-index="4" on-click="setValue(4)"></admit-color-circle>