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

@mvuijs/ui5

v1.24.8

Published

This is a wrapper around the [SAP UI5 Web Components](https://sap.github.io/ui5-webcomponents/) for [Mvui](https://github.com/dominiksta/mvui).

Downloads

22

Readme

Mvui SAP UI5 Web Components

This is a wrapper around the SAP UI5 Web Components for Mvui.

Why

The mvui team endeavours to provide enterprise ready solutions, empowering developers with a state-of-the-art framework to facilitate rapid iteration. Our continuing mission is and has always been to help businesses navigate the complex space of modern technology like Artificial Intelligence (AI) and Blockchain more effectively with standardized tooling. We are therefore excited to announce our integration of SAP UI5 Web Components!

Jokes aside, the UI5 Web Components are actually a very practical and complete component library. They will also probably stick around for a long time because SAP is advertising them to enterprise customers, which usually expect stability and long term support.

Are they the prettiest components in the world? Arguably no. But they fit the intended use case of mvui very well: Projects that are specifically built to require minimal long term maintenance. They are also much more feature complete than most component libraries: They have dark mode support, high contrast themes for accesibility, right-to-left language support, many responsive components (like a menu that looks like a right-click menu on desktop but becomes a full-screen component on mobile) and a selection of complex components like wizards, calendars that support different calendar types or trees with custom nested components.

Fundamentally, there is nothing stopping you from using any web component library in mvui. To provide type-safety for events and slots however, creating wrappers is necessary. Because of this, mvui provides wrappers to all UI5 Web Components in the @mvuijs/ui5 package. Also, the package bundles the required fonts so that you can use the package for offline applications (with something like electron). You can read about available components, their arguments, events, etc. in the official documentation.

How

First, install the package with npm install @mvuijs/ui5. All Components are available as single import (e.g. import { input } from '@mvuijs/ui5'), but you may import them all with a * import for convenience (import * as ui5 from '@mvuijs/ui5'),

Below is a simple example of the UI5 input and DateTimePicker, showing the use of two-way bindings for the date. Two-way bindings work because Mvui listens to change events when using two-way bindings by default.

import { Component, h, rx } from '@mvuijs/core';
import * as ui5 from '@mvuijs/ui5';

const INITIAL_DATE = '2024-01-01 01:02:03';

@Component.register
export default class UI5Test extends Component {
  render() {
    const date = new rx.State(INITIAL_DATE);

    return [
      // in production, you should really validate the dates string format. this
      // is more for demonstrational purposes
      ui5.input({ fields: { value: rx.bind(date) }}),
      ui5.dateTimePicker({ fields: {
        value: rx.bind(date),
        formatPattern: 'YYYY-MM-dd hh:mm:ss'
      }}),
      ui5.button({ events: { click: _ => date.next(INITIAL_DATE) } }, 'Reset'),
    ]
  }
}