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

@wemake4u/dmn-boxed

v1.0.1

Published

DMN boxed expression editors

Readme

@wemake4u/dmn-boxed

The editors of DMN boxed expressions for Angular 22, used by the complete @wemake4u/dmn-editor:

  • ElementEditorShell (dmn-element-editor-shell): the editor of the logic of a decision or business knowledge model (expression kind, result type, function signature and parameters, names in scope).
  • One editor per expression kind, found through a plugin registry and nested at any depth: literal FEEL expression, decision table (hit policy, rules, columns, keyboard grid, gap and overlap analysis), context, relation, list, invocation, function definition, conditional, filter, for, some, every.
  • FeelCell (dmn-feel-cell): FEEL editing based on the editor of @wemake4u/feel-editor, with completion of the names in scope and a larger editing window (⤢ or Alt+Enter). In the window «Formatta» (Shift+Alt+F) formats the expression (spaces, line breaks only where it does not fit, indentation; formatFeel of the feel-editor), undone with Ctrl+Z; a text with syntax errors stays as it is. Input formatting gives the same to a cell, method format().
  • DataTypesEditor (dmn-data-types-editor) and DecisionServiceEditor (dmn-decision-service-editor).

Installation

npm install @wemake4u/dmn-boxed @wemake4u/dmn-core @wemake4u/code-editor @angular/forms

Peer dependencies: @angular/core, @angular/common and @angular/forms 22.2.x, @wemake4u/code-editor 2.x and @wemake4u/dmn-core 1.x. @wemake4u/code-editor and @angular/forms are needed by @wemake4u/feel-editor (2.3 or later), which is installed with dmn-boxed, as tslib.

Usage

<dmn-element-editor-shell [store]="store" [elementId]="'Decision_1'" (back)="close()" />
<dmn-data-types-editor [store]="store" (back)="close()" />
<dmn-decision-service-editor [store]="store" [serviceId]="'DecisionService_1'" (back)="close()" />

Every change goes through the commands of @wemake4u/dmn-core on the given store, so it is part of the shared undo/redo history. With store.readOnly set, the editors show the model without allowing changes.

Functions of the host

DmnFeelFunctions (root service) holds the functions of the host callable from FEEL (entries, a list of FeelEntry of @wemake4u/dmn-core). The FEEL cells of the editors and of "Prova" offer them in the completion, and ElementEditorShell lists them by namespace in its side panel. DmnEditor fills its own instance from its feelFunctions input; an application that composes the editors itself sets inject(DmnFeelFunctions).entries.

"Prova" and diagnostics

TestPanel (dmn-test-panel) is the "Prova" panel of the editors (inputs store, elementId, evaluator; output diagnose with the evaluation and its trace). Its fields follow the types of the inputs (TypedControl, dmn-typed-control), structures and lists are edited in StructuredValueDialog (StructuredValueEditor inside, three widths), and a "Fields | FEEL" switch shows the FEEL text that is sent; the shapes come from inputShape of dmn-core. TraceStepDetail (dmn-trace-step-detail) shows one step of a trace (inputs store, step, root, wide; output selectStep). ValueViewer (dmn-value-viewer; inputs value, text, type, name, context, open, toolbar) shows a value of an evaluation, with ValueWindow for large values; value-model has the helpers (kinds, summaries, rows, search, tables). The diagnostics on the diagram are DmnDiagnostics in @wemake4u/dmn-editor.

Custom expression editors

The editor of each expression kind comes from the EXPRESSION_EDITORS registry. A component registered for a kind receives two inputs, expression (the semantic expression) and path (its location in the element), and changes the model only with commands executed through the ExpressionEditingContext:

import { Component, inject, input } from '@angular/core';
import { setExpressionText, type ExpressionPath, type LiteralExpression } from '@wemake4u/dmn-core';
import { ExpressionEditingContext, provideExpressionEditors } from '@wemake4u/dmn-boxed';

@Component({
  selector: 'app-plain-literal',
  template: `<textarea
    [value]="expression().text"
    [readOnly]="context.readOnly()"
    (change)="save($event)"
  ></textarea>`,
})
export class PlainLiteralEditor {
  readonly expression = input.required<LiteralExpression>();
  readonly path = input.required<ExpressionPath>();
  protected readonly context = inject(ExpressionEditingContext);

  protected save(event: Event): void {
    const text = (event.target as HTMLTextAreaElement).value;
    this.context.execute(
      setExpressionText({ elementId: this.context.elementId()!, path: this.path(), text }),
    );
  }
}

// in the providers of the application (or of the component hosting the editor):
provideExpressionEditors([
  { kind: 'literal', component: PlainLiteralEditor, creatable: 'literal' },
]);

Later registrations override earlier ones for the same kind. Nested expressions are shown with ExpressionHost (dmn-expression-host), which picks the registered editor.

Long relations and lists scroll in an area of their own, with the header row and the column of the numbers kept in place, so that both scroll bars and what follows the table (e.g. «Prova») stay at hand. The heights can be changed with CSS variables:

| Variable | Default | Area | | ------------------------------- | ------------------ | ---------------------------------- | | --dmn-boxed-max-height | max(240px, 60vh) | a relation or a list of the editor | | --dmn-boxed-nested-max-height | 320px | a nested relation or list |

Spinner

DmnSpinner (dmn-spinner, input size, colour --dmn-spinner-color) is the spinner shown while a handler of the host is working; it is decorative (aria-hidden), the text next to it says what is happening.

License

MIT. The licenses of the dependencies are in THIRD_PARTY_NOTICES.txt.