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

pip-webui2-composite

v1.1.5

Published

![](https://img.shields.io/badge/license-MIT-blue.svg)

Readme

Composite content controls

Pip.WebUI.Composite contains a number of controls to visualize and edit complex unstructured and semi-structured content composed of pictures, documents, locations, video or audio, and, of course, hypertext with formatting and links.

Composite view

Control shows read-only version of composite content. The content structured as blocks with hypertext, images, documents, locations, checklists. The only allowed action is to check/uncheck item in checklists

Using

<pip-composite [elements]="elements" [disabled]="disabled"></pip-composite>
import { PipCompositeElement, PipCompositeElementTypes } from 'pip-webui2-composite';

...

elements: PipCompositeElement[] = [
        {
            type: PipCompositeElementTypes.TEXT,
            text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
        },
        {
            type: PipCompositeElementTypes.CHECKLIST,
            elements: [
                {
                    text: 'Create checklist edit component',
                    checked: true
                },
                {
                    text: 'Create checklist view component',
                    checked: true
                },
                {
                    text: 'Add checklist view component to composite view component',
                    checked: true
                }
            ]
        },
        {
            type: PipCompositeElementTypes.LOCATION,
            location: {
                coordinates: [48.8534100, 2.3488000]
            },
            locationName: 'Paris'
        },
        {
            type: PipCompositeElementTypes.DOCUMENTS,
            documents: [
                {
                    url: './assets/boy.png'
                }
            ]
        },
        {
            type: PipCompositeElementTypes.PICTURES,
            pictures: [
                './assets/boy2.png',
                './assets/girl.png',
                './assets/girl2.png',
                './assets/boy.png'
            ]
        },
        {
            type: PipCompositeElementTypes.TIME,
            startDate: this.startDate,
            endDate: this.endDate
        },
        {
            type: PipCompositeElementTypes.LOCATION,
            location: {
                coordinates: [51.5085300, -0.1257400]
            },
            locationName: 'London'
        }
];

Example on the image

Composite edit

Control allows to construct complex content using blocks with hypertext, images, documents, locations and checklists. Blocks can be added, moved up or down or removed. Hypertext is entered using popular markdown format

Using

<div class="scrollable-element">
    <pip-composite-edit #composite [elements]="elements" scrollContainer=".scrollable-element" 
        (onElementsChange)="elements = $event">
    </pip-composite-edit>
</div>
import { PipCompositeElement, PipCompositeElementTypes } from 'pip-webui2-composite';

...

elements: PipCompositeElement[] = [
        {
            type: PipCompositeElementTypes.TEXT,
            text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
        },
        {
            type: PipCompositeElementTypes.CHECKLIST,
            elements: [
                {
                    text: 'Create checklist edit component',
                    checked: true
                },
                {
                    text: 'Create checklist view component',
                    checked: true
                },
                {
                    text: 'Add checklist view component to composite view component',
                    checked: true
                }
            ]
        },
        {
            type: PipCompositeElementTypes.LOCATION,
            location: {
                coordinates: [48.8534100, 2.3488000]
            },
            locationName: 'Paris'
        },
        {
            type: PipCompositeElementTypes.DOCUMENTS,
            documents: [
                {
                    url: './assets/boy.png'
                }
            ]
        },
        {
            type: PipCompositeElementTypes.PICTURES,
            pictures: [
                './assets/boy2.png',
                './assets/girl.png',
                './assets/girl2.png',
                './assets/boy.png'
            ]
        },
        {
            type: PipCompositeElementTypes.TIME,
            startDate: this.startDate,
            endDate: this.endDate
        },
        {
            type: PipCompositeElementTypes.LOCATION,
            location: {
                coordinates: [51.5085300, -0.1257400]
            },
            locationName: 'London'
        }
];

Example on the image

Checlist view

Control shows read-only version of checklist and only allows to check/uncheck items. This control is integrated inside Composite view, but it also can be used independently

Using

<pip-checklist [disabled]="disabled" [elements]="elements"></pip-checklist>
import { PipChecklistElement } from '../pip-webui2-composite';

...

elements: PipChecklistElement[] = [
        {
            text: 'Buy christmas tree',
            checked: true,
        },
        {
            text: 'Buy gifts',
        },
        {
            text: 'Go to the gym on Saturday',
        },
        {
            text: 'Finish magistry site',
        },
        {
            text: 'Some text here...',
        }
];

Example on the image

Checlist edit

Control allows to edit checklist with textual items. It allows to append or insert new items, edit them, change their order or remove them. This control is integrated into Composite edit, but it can also be used independently

Using

<pip-checklist-edit [disabled]="disabled" [elements]="elements"></pip-checklist-edit>
import { PipChecklistElement } from '../pip-webui2-composite';

...

elements: PipChecklistElement[] = [
        {
            text: 'Buy christmas tree',
            checked: true,
        },
        {
            text: 'Buy gifts',
        },
        {
            text: 'Go to the gym on Saturday',
        },
        {
            text: 'Finish magistry site',
        },
        {
            text: 'Some text here...',
        }
];

Example on the image

Composite toolbar

Control helps to construct own vesion of a simple composite content. By clicking a button user can add text, images, files, location, date or checklist elements

Using

<pip-composite-edit #composite></pip-composite-edit>

<pip-composite-toolbar [compositeEdit]="composite"></pip-composite-toolbar>

Example on the image

Installation

To install this module using npm:

npm install pip-webui2-composite --save

License

This module is released under MIT license and totally free for commercial and non-commercial use.