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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@livinglogic-components/inputs

v0.0.1-alpha.5

Published

Ionic UI Components for inputs.

Readme

LivingApps Input Components

Ionic UI Components for inputs.

This Library unifies the input events and packs errorhandling, labels, inputelements in one element.

Installation

install the library

yarn add @livinglogic-components/inputs

Usage

jsx

import one or more components component

// import all components
import LLBool from '@livinglogic-components/inputs/dist/bool';
import LLDate from '@livinglogic-components/inputs/dist/date';
import LLFile from '@livinglogic-components/inputs/dist/file';
import LLLookup from '@livinglogic-components/inputs/dist/lookup';
import LLNumber from '@livinglogic-components/inputs/dist/number';
import LLText from '@livinglogic-components/inputs/dist/text';
import LLTextarea from '@livinglogic-components/inputs/dist/textarea';
import LLSig from '@livinglogic-components/inputs/dist/signature';

use them in jsx

defineComponent({
  setup() {
    return () => (
      <ion-list>
        <LLBool label='boolean' />
      </ion-list>
    )
  }
})

Props:

handling Properties requires you to know if the prop should change. If it should change it has to be an reference, if it should be constant it should not be an reference. See more to vue3 reactifity: composition api

// render constant
...
<LLBool value={true} /> // shows a ticked boolean input
...
// variables
const boolRef = ref(true);
// render variable with boolRef.value = true
...
<LLBool value={boolRef} /> // shows a ticked boolean input
...
// change ref value
boolRef.value = false;
// render variable with boolRef.value = true
...
<LLBool value={boolRef} /> // shows a unticked boolean input
...

This feature is important for resetting input fields.

You can find the props for each component in the matching declaration file.

Usage with inputmanager

A huge advantage of using this input components is that you can use the input manager, a provider which collects the inputs, reset input values, stores error messages and sends data to LivingApps.

a small example

// import the componoent
import LLDate from '@livinglogic-components/inputs/dist/date';
// import the input manager
import Manager from '@livinglogic-components/inputmanager';
// import all apollo dependencies
import { InMemoryCache } from 'apollo-cache-inmemory';
import { ApolloClient } from 'apollo-client';
import { createUploadLink } from 'apollo-upload-client';
// import vue
import { defineComponent } from 'vue';
// a jsx helper function
import { h } from './__ultils/jsx';

export default defineComponent({
  setup() {
    // create GraphQL client
    const client = new ApolloClient({
      cache: new InMemoryCache({}),
      link: createUploadLink({
        uri: 'https://graphql-gateway-la-prod.xist4c.io/'
      }),
    })

    const manager = new Manager({
      // register all fields the manager should handle
      setup: [
        // [la field identifier, la field type, defaultvalue?]
        ['datum', 'date', new Date().toISOString()],
      ],
      // set GraphQL client
      client
    });

    return () => {
      return (
        <ion-list>
          <ion-item>
            {/* reset the form after pressing reset button */}
            <ion-button
              onClick={() => manager.reset()}
            >reset</ion-button>
            {/* submit when clicking here */}
            <ion-button
              onClick={() => manager.submit(
                '0000000',
                undefined,
                {}
              )}
            >submit</ion-button>
          </ion-item>
          {/*
            sets the label to Datum
            the manager listens to the llChange Event and stores
            all inputdata in the manager so it can use the data
            for submitting
            the component uses a ref to the value of datum, very
            usefull for resetting the form
          */}
          <LLDate 
            label='Datum'
            onllChange={manager.listen('datum')}
            value={manager.getValueRef('datum')}
          />
        </ion-list>
      )
    }
  }
}) 

a bigger example

As you can see there is not a lot of logic behind it, so it should be very easy to create apps with the inputs and the inputmanager.