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

@finastra/list

v1.8.1

Published

List Web Component

Downloads

416

Readme

List

fds-list extends Material Web mwc-list-base, the package export three list items that can be used inside the fds-list:

  • fds-list-item
  • fds-check-list-item
  • fds-radio-list-item

See it on NPM! How big is this package in your project? Storybook

Usage

APIs

See Material List for mor details.

Import

npm i @finastra/list
import '@finastra/list';
...
<fds-list>
  <fds-list-item>Item 1</fds-list-item>
  <fds-list-item>Item 2</fds-list-item>
</fds-list>

API

Properties

| Property | Modifiers | Type | Default | | ------------------ | --------- | ------------------------- | ------------------------- | | activated | | boolean | | | disabled | | boolean | | | graphic | | GraphicType | | | group | | string \| null | | | hasMeta | | boolean | | | left | | boolean | | | multipleGraphics | | boolean | | | noninteractive | | boolean | | | ripple | | Promise<Ripple \| null> | | | selected | | boolean | | | styles | | CSSResult[] | ["styles","controlStyle"] | | tabindex | | number | | | text | readonly | string | | | twoline | | boolean | | | value | | string | |

Events

| Event | Type | | -------------------- | ----------------------- | | list-item-rendered | | | request-selected | RequestSelectedDetail |

fds-list-item

Properties

| Property | Modifiers | Type | Default | | ------------------ | --------- | ------------------------- | ---------- | | activated | | boolean | | | disabled | | boolean | | | graphic | | GraphicType | | | group | | string \| null | | | hasMeta | | boolean | | | multipleGraphics | | boolean | | | noninteractive | | boolean | | | ripple | | Promise<Ripple \| null> | | | selected | | boolean | | | styles | | CSSResult[] | ["styles"] | | tabindex | | number | | | text | readonly | string | | | twoline | | boolean | | | value | | string | |

Events

| Event | Type | | -------------------- | ----------------------- | | list-item-rendered | | | request-selected | RequestSelectedDetail |

fds-list

Properties

| Property | Attribute | Modifiers | Type | Default | Description | | ----------------- | ---------------- | --------- | ----------------------------------------------------------- | ---------- | --------------------------------------------------------------------------------------- | | activatable | activatable | | boolean | false | Sets activated attribute on selected items which provides a focus-persistent highlight. | | debouncedLayout | | | (updateItems?: boolean \| undefined) => void \| undefined | | | | emptyMessage | | | string \| undefined | | | | index | | readonly | MWCListIndex | | | | innerAriaLabel | | | string \| null | | | | innerRole | | | string \| null | | | | itemRoles | | | string \| null | | | | items | | readonly | ListItemBase[] | | | | itemsReady | | | Promise<never[]> | | | | layout | | | (updateItems?: boolean \| undefined) => void | | | | multi | multi | | boolean | false | When true, enables selection of multiple items. | | noninteractive | noninteractive | | boolean | false | Disables focus and pointer events for the list item. | | rootTabbable | | | boolean | | | | selected | | readonly | ListItemBase \| ListItemBase[] \| null | | | | styles | | | CSSResult[] | ["styles"] | | | wrapFocus | | | boolean | | |

Methods

| Method | Type | | --------------------- | ----------------------------------------------------- | | blur | (): void | | click | (): void | | focus | (): void | | focusItemAtIndex | (index: number): void | | getFocusedItemIndex | (): number | | layout | (updateItems?: boolean \| undefined): void | | renderPlaceholder | (): TemplateResult<1> \| null | | select | (index: MWCListIndex): void | | toggle | (index: number, force?: boolean \| undefined): void |

Events

| Event | Type | | --------------- | ---------------- | | action | ActionDetail | | items-updated | | | selected | SelectedDetail |

Slots

| Name | Description | | --------- | ------------------------------------------------------ | | default | Content to display in the lists internal element. |

CSS Custom Properties

| Property | Type | Default | Description | | ----------------- | ----- | --------- | ------------------------- | | --fds-primary | color | "#694ED6" | Color of the select item. | | --fds-secondary | color | "#C137A2" | Color of the controls. |

fds-radio-list-item

Properties

| Property | Modifiers | Type | Default | | ------------------ | --------- | ------------------------- | ------------------------- | | activated | | boolean | | | disabled | | boolean | | | graphic | | GraphicType | | | group | | string \| null | | | hasMeta | | boolean | | | left | | boolean | | | multipleGraphics | | boolean | | | noninteractive | | boolean | | | ripple | | Promise<Ripple \| null> | | | selected | | boolean | | | styles | | CSSResult[] | ["styles","controlStyle"] | | tabindex | | number | | | text | readonly | string | | | twoline | | boolean | | | value | | string | |

Events

| Event | Type | | -------------------- | ----------------------- | | list-item-rendered | | | request-selected | RequestSelectedDetail |