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

@enso-ui/discounts

v5.2.5

Published

Discount administration routes and pages for Enso UI.

Downloads

199

Readme

Discounts

License Stable Vue JavaScript SCSS npm Issues Merge Requests

Description

Discounts ships the Enso UI route tree and page modules used to manage client and supplier discount rules.

It covers the full backend-driven discount workflow for general, product, and service discounts, with dedicated list, create, and edit screens for both client and supplier contexts.

Installation

This package is distributed as part of the private Enso UI workspace and is normally consumed from the Solarlink client bundle.

Features

  • exports the /discounts route tree consumed by the Enso shell
  • ships separate client and supplier discount flows
  • covers general, product, and service discount families
  • reuses a shared Enso form wrapper to enforce mutually exclusive company/person selection on client forms

Usage

import discountsRoutes from '@enso-ui/discounts';
import ClientDiscountIndex from '@enso-ui/discounts/src/bulma/pages/discounts/clients/Index.vue';
import SupplierProductDiscountEdit from '@enso-ui/discounts/src/bulma/pages/discounts/suppliers/products/Edit.vue';

The package is page-oriented. Applications usually register the route tree and let the backend forms and tables drive the create/edit/index pages.

API

Default export

Default export for the discount route group.

Import: @enso-ui/discounts

Shared form building block

  • src/bulma/pages/discounts/clients/components/BaseForm.vue

Wraps EnsoForm and toggles the company_id and person_id fields so only one client target can be selected at a time.

Routes

/discounts/clients

Route names:

  • discounts.clients.index
  • discounts.clients.generals.create
  • discounts.clients.generals.edit
  • discounts.clients.products.create
  • discounts.clients.products.edit
  • discounts.clients.services.create
  • discounts.clients.services.edit

Pages:

  • src/bulma/pages/discounts/clients/Index.vue
  • src/bulma/pages/discounts/clients/generals/Create.vue
  • src/bulma/pages/discounts/clients/generals/Edit.vue
  • src/bulma/pages/discounts/clients/products/Create.vue
  • src/bulma/pages/discounts/clients/products/Edit.vue
  • src/bulma/pages/discounts/clients/services/Create.vue
  • src/bulma/pages/discounts/clients/services/Edit.vue

/discounts/suppliers

Route names:

  • discounts.suppliers.index
  • discounts.suppliers.generals.create
  • discounts.suppliers.generals.edit
  • discounts.suppliers.products.create
  • discounts.suppliers.products.edit
  • discounts.suppliers.services.create
  • discounts.suppliers.services.edit

Pages:

  • src/bulma/pages/discounts/suppliers/Index.vue
  • src/bulma/pages/discounts/suppliers/generals/Create.vue
  • src/bulma/pages/discounts/suppliers/generals/Edit.vue
  • src/bulma/pages/discounts/suppliers/products/Create.vue
  • src/bulma/pages/discounts/suppliers/products/Edit.vue
  • src/bulma/pages/discounts/suppliers/services/Create.vue
  • src/bulma/pages/discounts/suppliers/services/Edit.vue

Companion Backend Package

The backend companion provides the route contracts, form payloads, and table definitions consumed by these discount pages.

Depends On

License

Proprietary. See LICENSE.