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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lmvz-ds/angular

v0.42.2

Published

Downloads

662

Readme

Angular Components

This is the Angular wrapper library generated from the LMVZ-DS Components package via Stencil.

Angular project stub

The Angular project was generated with Angular CLI version 18.2.8 and upgraded to 20.3.7.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory and published from there (during the root project's pnpm publish run).

lmvz-select Value Accessor

Angular's Forms API (ControlValueAccessor) does not integrate automatically with Web Component custom properties and events (unlike React and Vue, which align more closely with the web platform's event and property model). The LmvzSelectValueChangeHelper directive bridges this gap, providing the necessary two-way binding and form-control integration that the Stencil-generated wrapper alone cannot supply.

The LmvzSelectValueChangeHelper directive provides automatic ControlValueAccessor integration for lmvz-select, supporting both single-select and multiselect modes on the same component via formControlName, [(ngModel)], or manual FormControl binding.

Value Type

The resulting FormControl/FormGroup value type is string | string[] | null regardless of mode. This intentionally looser type reflects the component's runtime behavior:

  • Single-select mode (multiple false or unset): value is string | null
  • Multiselect mode (multiple true): values is string[]

The accessor branches in writeValue on the shape of the incoming value; your app must set compatible values. See lmvz-select value and values props for full prop documentation.

Property Binding for values (Multiselect)

The values prop is a JS property only — it is not attribute-reflected. Template attribute bindings do not work:

// ❌ Silently fails
<lmvz-select [multiple]="true" values="['ch', 'de']"></lmvz-select>

// ✓ Correct: property binding
<lmvz-select [multiple]="true" [values]="selectedValues"></lmvz-select>

// ✓ Correct: form control binding (recommended for form integration)
<lmvz-select [formControl]="myControl"></lmvz-select>

Runtime multiple Mode Switching

Toggling the multiple prop at runtime is an app-level responsibility. The component does not automatically reset the control's value when switching modes. If you toggle multiple dynamically:

  1. The stale value left in the now-inactive field (value in single→multi, values in multi→single) is ignored.
  2. You must explicitly reset the control's value to match the new shape:
// When switching from single to multiselect
this.selectControl.setValue([this.selectControl.value]);

// When switching from multiselect to single
this.selectControl.setValue(this.selectControl.value[0]);

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.