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

innoboxrr-form-elements

v6.8.0

Published

Componentes Vue de la interfaz innoboxrr: formularios, diálogos, drawers, menús, avisos y paleta de comandos, sobre el tema de innoboxrr-form-core.

Downloads

340

Readme

innoboxrr-form-elements

Componentes Vue de la interfaz innoboxrr: los controles de formulario y las piezas de una aplicación de escritorio —diálogos, drawers, menús, avisos, confirmaciones, paleta de comandos, skeletons y edición en línea—.

El aspecto sale del tema de innoboxrr-form-core, y el gemelo React innoboxrr-react-form-elements exporta exactamente los mismos nombres: larapack-generator emite los mismos componentes para los dos frameworks. Un test de paridad en cada repositorio falla si uno se adelanta al otro.

npm i innoboxrr-form-elements
import 'innoboxrr-form-core/styles'
import FormElements from 'innoboxrr-form-elements'

app.use(FormElements)   // o importa solo los que uses

Formularios

ButtonComponent, CheckboxInputComponent, ClickToEditComponent, CodeInputComponent, CodeMirrorComponent, ColorPickerInputComponent, CountrySelectInputComponent, DynamicGroupInputComponent, EditorInputComponent, FileDropInputComponent, FileInputComponent, FqsInputComponent, IconComponent, InputErrorComponent, ModelSearchInputComponent, MultiCheckboxInputComponent, PolymorphicInputComponent, RadioInputComponent, SelectInputComponent, SelectSearchInputComponent, SimpleFileInputComponent, SingleCheckboxInputComponent, StarsInputComponent, SwitchComponent, TagsInputComponent, TextEditorMonoStyleInputComponent, TextInputComponent, TextareaInputComponent, TimezoneSelectInputComponent.

Editor de código

<CodeMirrorComponent v-model="config" lang="json" label="Configuración del sitio" />
  • El lenguaje se carga bajo demanda. lang (html por defecto, css, javascript o json) llega con import(), así que la aplicación solo descarga el que usa: un editor de JSON ya no se lleva html, css y javascript. Mientras llega, el editor funciona como texto plano. Un lenguaje fuera de esa lista cae a html.
  • theme es auto por defecto: sigue a data-theme en <html> y, sin él, a prefers-color-scheme, la misma regla que el tema de form-core. dark y light lo fuerzan. one-dark solo se descarga cuando hay que pintar en oscuro.
  • autofocus es opcional y vale false: el editor ya no se lleva el foco al montarse si no se pide.
  • La etiqueta nombra al editor con aria-labelledby, y un clic en ella lo enfoca.
  • Expone view, la EditorView de CodeMirror.

Piezas de escritorio

Se apoyan en lo que ya hace el navegador, sin librerías de interfaz: <dialog> con showModal() pone la capa superior, el fondo inerte, el foco atrapado y Escape; el atributo popover pone el cierre al pulsar fuera; Floating UI coloca los menús.

Diálogo y drawer

<DrawerComponent v-model:open="abierto" title="Nuevo producto">
    <CreateForm @submit="guardar" />
    <template #footer="{ close }">
        <ButtonComponent variant="secondary" type="button" @click="close" value="Cancelar" />
    </template>
</DrawerComponent>
  • DialogComponent (size: sm, md, lg) y DrawerComponent (side: end, start) tienen la misma forma: v-model:open, title, slots header, por defecto y footer, que reciben { close }.
  • Manda open. Escape, un clic en el fondo o la X emiten update:open con false; es quien abrió el diálogo el que lo cierra.
  • :dismissible="false" impide cerrarlo con Escape o con el fondo y quita la X.
  • El contenido solo existe mientras está abierto: un formulario vuelve limpio cada vez.

Avisos y confirmaciones

Se montan una vez, en la raíz, y se usan desde cualquier sitio con las funciones de innoboxrr-form-core:

<ToastRegionComponent />
<ConfirmHostComponent />
import { notifySuccess, notifyError, confirmAction } from 'innoboxrr-form-core'

notifySuccess('Producto creado')

if (await confirmAction({ message: '¿Borrar el producto?', variant: 'danger' })) {
    // …
}

La región de avisos vive en la capa superior para seguir encima de un drawer abierto. La confirmación empieza con el foco en cancelar.

Menú

<MenuComponent :items="[
    { id: 'edit', label: 'Editar', icon: 'edit', action: editar },
    { separator: true },
    { id: 'delete', label: 'Eliminar', icon: 'delete', danger: true, disabled: ! puede, disabledReason: 'Sin permiso' },
]" :before-open="cargarPermisos" @select="…" />
  • beforeOpen se espera antes de abrir: los permisos de una fila se resuelven antes de enseñar el menú, en vez de verlos habilitarse con el menú abierto.
  • Un elemento sin permiso se ve deshabilitado y explica por qué; no desaparece.
  • Las flechas, Inicio y Fin recorren los elementos usables. El slot trigger sustituye al botón.

Paleta de comandos

<CommandPaletteComponent v-model:open="paleta" :items="[
    { id: 'products', label: 'Productos', group: 'Ir a', icon: 'box', action: irAProductos },
    { id: 'new', label: 'Nuevo producto', group: 'Crear', shortcut: 'N', keywords: ['alta'] },
]" />

Ctrl+K o Cmd+K la abren desde cualquier sitio (hotkey cambia la tecla, null lo quita). El filtro no distingue mayúsculas ni acentos y busca también en group y keywords.

Skeleton y edición en línea

<SkeletonComponent :lines="3" />
<SkeletonComponent shape="circle" :width="40" />

<ClickToEditComponent :value="producto.title" :save="(title) => updateModel(producto.id, { title })" />

ClickToEditComponent confirma con Enter o al salir del campo y cancela con Escape. Con save, espera a que termine: si falla se queda abierto con el error. Emite input con el valor confirmado.

Pruebas

npm test