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

angular-flow-form

v0.0.5

Published

A configurable input form composer with step flows by using a declerative approach.

Downloads

12

Readme

feature set:

form:

  • can contain multiple steps
  • wraps and manages the whole process for steps, form items and actions
  • provides back button to go back to previous step

step:

  • contains form items and actions
  • step changes work with animations
  • loading logic of form items are triggered when a step is loaded
  • for the form items which has asynchronious loading logic are triggered parallelly and loading completes when all subscribed observables are completed
  • controls back button visibility (usually for the last step - when you show the result and don't want to show the form again)

form item:

  • provides access to custom components which wrap reusable input controls
  • you can program to provide how it is loaded
  • you can load it asynchroniously by returning observables with pipe / tap call
  • you can provide call back functions to configure its
    • visible and
    • enabled state
  • components and FormControls of other form items are provided as parameters to the callbacks
  • visible - invisible states occur with animations
  • it provides loading state to its step, so that step enters loading state and doesn't allow further action by the user
  • you can control Form Item's loading state, so the step and form enters the loading state. this is usually a requirement when you subscripe an event (typically to a value change of any form item) and load a form item during loading

actions:

  • action can be added in steps and can run a function which supports asyncyronous code execution by returning observables
  • actions can change the current step of the form, you program to change current step in actions
  • actions can return successful and unsuccessful results and can show validation error messages
  • actions can be configured for enabled/disabled by a function,
    • form values can be used to calculate the result and there is no need to trigger enabled/disabled value upon a value change
  • action can be configured for visible/invisible by a function
    • form values can be used to calculate the result and there is no need to trigger visible/invisible value upon a value change
  • when an action is running, step form, back button and actions are disabled
  • when an observable returning function is triggered, the loading icon is shown until it completes

step path:

  • all posible steps are shown ordered
  • current step is colored and colors changes with animation when step changes