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

@jiffylive/vue-j-editable

v1.0.36

Published

Edit in place with validation for Vue

Downloads

43

Readme

Demo

  • Install the component, run "cd node_modules/@jiffylive/vue-j-editable" then "npm run serve" to see examples.
  • Online demo coming soon

Docs

  • [v1.x (latest)] - Docs here on NPM, more on the way

Why use vue-j-editable?

  • Usability: Easy for users to update text

  • Control: Different inputs and options

  • Validation: Uses vuelidate to validate fields

  • Tooltips: Presented for invalid fields using popperjs

  • Color coding: optionally show color if invalid

  • Currency support: show currency in different international formats

  • Date support: using date picker

Form input types

  • Default: contentEditable div
  • Input: input form field
  • Select: select with options provided by :selectOptions
  • Date: date picker to choose date

Future field types include image, file input, time, date range, color picker

Available rules

The package uses vuelidate for field validation. See vuelidate documentation for more info about specific rules. These rules can be specified by property or via rules JSON

eg.
<jEditable :item="item" field="name" :rules="{required: true, minLength: 4}" />
<jEditable :item="item" field="name" required="true" :rules="{format: 'email'}"  />
<jEditable :item="item" field="name" format="email"  />

Direct property rules:

  • Required

Current supported formats:

  • Email
  • minLength
  • numeric
  • decimal
  • currency (not supported by vuelidate but allows a $ or € symbol to be proceeding the figure)
  • URL

Currencies can be supported by providing formatParam parameter eg :formatParam="{country: 'it-IT', currency: 'EUR'}" or {"country": "jp-JP", "currency": "JPY"} See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat for more information about

Input properties

  • item - an item (object) or array of values
  • field - the name of the field from the object

Available events

  • @update when the field is changed and complete (via enter, tab or field blur)
  • @updateLive when a character is typed
  • @onFocus when the field comes into focus
  • @onBlur when the field leaves focus

Current modes

All features are available via properties but these modes are presets to save time

  • jEditable: Reads field from object / array and emit updates
  • jEditableItem: Reads directly from item properties and sends updates to item
  • jEditableItemGetSet: Reads an object via get / set methods

Installation

1. Package Manager

# With npm
npm i @jiffylive/vue-j-editable
import jEditable from '@jiffylive/vue-j-editable';

components: {
  "Editable": jEditable
}

<Editable :item="item" :field="field" />

License

MIT