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

@uportal/grid-carousel

v1.40.2

Published

[![NPM Version](https://img.shields.io/npm/v/@uportal/grid-carousel.svg)](https://www.npmjs.com/package/@uportal/grid-carousel) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.webjars.npm/uportal__grid-carousel/badge.svg)](https://m

Downloads

29

Readme

grid-carousel

NPM Version Maven Central Build Status

The Grid Carousel

A component (designed for favorites) to show icons and names of portlets in a grid view, then collapsing to a carousel in mobile view.

Full

Example (full)

Mobile

Example (mobile)

Installation

# install with npm
npm install @uportal/grid-carousel

# install with yarn
yarn add @uportal/grid-carousel

install with maven

<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>uportal__grid-carousel</artifactId>
    <version>{version number goes here}</version>
</dependency>

install with gradle

compile 'org.webjars.npm:uportal__grid-carousel:{version number goes here}'

Usage as Web Component

<script src="https://unpkg.com/@uportal/grid-carousel"></script>

<grid-carousel debug data-api-url="/portletRegistry.json">
  <p slot="zero">Nothing loaded.</p>
</grid-carousel>

Options

  • data-api-url (string): URL of the REST API that provides JSON data to the template.
    • default: /uPortal/api/v4-3/dlm/portletRegistry.json?favorite=true
  • oidc-url (string): URL of the Authentication API that provides a JWT to send with the data-api-url
    • default: /uPortal/api/v5-1/userinfo
  • context-portlet-url (string) prefixed base of links intended to go to portlet detail in uPortal.
    • default: /uPortal/p/
  • debug (boolean): component will run in a standalone way (disable api call).
    • default: false
  • breakpoint (number): browser width where the component will collapse to a carousel (at less than number provided)
    • default: 768
  • default-icon (string) default path to icon if image is not defined in json
    • default: /ResourceServingWebapp/rs/tango/0.8.90/32x32/categories/applications-other.png
  • truncate-length (number) length of text to truncate to for name of portlet
    • default: 50
  • slides-per-view (number) number of slides to show in mobile view
    • default: 3
  • slides-per-group (number) number of slides to change by in mobile view
    • default: 3
  • speed (number) speed of transition in mobile view
    • default: 200;
  • space-between (number) distance between icons in mobile view
    • default: 20

Slot Content

The zero slot defines the template containing the markup that will appear on the page when the data retrieved is empty but returns a 20x status code.