openui5-password
An OpenUI5 input control of password type that checks the typed value against length and character-class rules set as properties, and scores password strength in a separate property.
A password field in a UI5 app is an input with its type set to password, and whether the value is long enough and mixed enough is left to the application to work out. openui5/password/Password is that input with the rules as properties: minLength and maxLength, where 0 switches the check off, and requireNumbers, requireSymbols, requireLetters, requireLowercase and requireUppercase, each defaulting to true. Beside them sits score, an integer property the README describes as a number which indicates the password strength, so how strong the value is stays separate from whether the rules passed. It installs from npm and is wired into a host app by naming openui5.password in sap.ui5/dependencies/libs and pointing sap.ui5/resourceRoots at the library folder, after which the control is loaded with sap.ui.require. Its own ui5.yaml builds it as a UI5 library against OpenUI5 1.120.0.
Facts
Where it sits
Who is behind it
In the atlas: maintains 16, contributes to 41, wrote 4@mauriciolauffermaintainerMichael GrafContributes to this
In the atlas: contributes to 3@Michadelic1 contributor
What it declares
Every artifact
- Type
- Package
- Origin
- Independently maintained
As a package
- Where it runs
- does not say
- Distributed through
- does not say
Connections
Custom controls, wrappers and icon fonts packaged for reuse
Framework core: module loader, MVC runtime, binding, routing, theming
Download
Install
npm add openui5-passwordDerived from the package name. No recipe recorded; the README has the configuration.
README
quoted from mauriciolauffer/openui5-password under MIT, readopenui5-password
An OpenUI5 Control which checks password strength and validates it against pre-defined rules. The control is an input with password type and parameters to enable validation rules.
Demo
You can check out a live demo here:
https://mauriciolauffer.github.io/openui5-password/demo/webapp/index.html

Project Structure
- demo - Library's live demo
- dist - Distribution folder which contains the library ready to use
- src - Development folder
- test - Testing framework for the library
Getting started
Installation
Install openui5-password as an npm module
$ npm install openui5-password
Configure manifest.json
Add the library to sap.ui5/dependencies/libs and set its path in sap.ui5/resourceRoots in your manifest.json file, as follows:
{
"sap.ui5": {
"dependencies": {
"libs": {
"openui5.password": {}
}
},
"resourceRoots": {
"openui5.password": "./FOLDER_WHERE_YOU_PLACED_THE_LIBRARY/openui5/password/"
}
}
}
How to use
Import openui5-password to your UI5 controller using sap.ui.require:
sap.ui.require([
'openui5/password/Password'
], function (Password) {
const passwordInput = new Password({
requireNumbers: true,
requireLetters: true,
requireSymbols: true,
requireLowercase: true,
requireUppercase: true,
minLength: 5,
maxLength: 42
});
});
Config Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| maxLength | integer | 0 | Maximum number of characters. Value '0' means the feature is switched off. |
| minLength | integer | 0 | Minimum number of characters. Value '0' means the feature is switched off. |
| requireNumbers | boolean | true | Indicates that input must contain numbers |
| requireSymbols | boolean | true | Indicates that input must contain symbols |
| requireLetters | boolean | true | Indicates that input must contain letters |
| requireLowercase | boolean | true | Indicates that input must contain lowercase letters |
| requireUppercase | boolean | true | Indicates that input must contain uppercase letters |
| score | integer | 0 | The score is a number which indicates the password strength. |
Author
Mauricio Lauffer
License
This project is licensed under the MIT License - see the LICENSE file for details
History
Others providing
Compare all 15 on the Custom controls and libraries page →- custom-controlscustom-controlsThirteen custom controls for abap2UI5, a signature pad and a scanner that reads several barcodes at once among them, each one an ABAP builder class with a single render( ) method and all of them shipped in a BSP of their own.community org, abapThirteen custom UI5 controls for abap2UI5 apps
- @abap2ui5/embed-control@abap2ui5/embed-controlA UI5 custom control that runs an abap2UI5 app inside a host UI5 app, with the abap2UI5 frontend loaded from the backend the app talks to.community org, ui5UI5 custom control that runs an abap2UI5 app inside a host app
- ui5-cc-timerbuttonui5-cc-timerbuttonA UI5 control library with TimerButton, an sap.m.Button that delays becoming enabled or visible and shows other text or an icon in the meantime, with the delay set in milliseconds.independent, ui5UI5 control library with a button that delays enabling or showing
- ui5-control-generatorui5-control-generatorA command-line generator that writes UI5 custom controls, in JavaScript or TypeScript, from the html files in a project, with control logic and renderer split into two files by default.independent, ui5Command line generator of UI5 custom controls from html
- @marianfoo/ui5-cc-dayjs@marianfoo/ui5-cc-dayjsA UI5 custom control that writes a date to the page through Day.js, with the input format, the output format and any shift of days or months set as control properties.independent, ui5UI5 custom control formatting dates with Day.js
- ui5-cc-pdfviewerui5-cc-pdfviewerA UI5 custom control that renders a PDF from a base64 data URI with pdfjs-dist, so a file picked in the browser can be shown before it has been uploaded anywhere and has a URL.independent, ui5UI5 custom control rendering a PDF from a base64 data URI
- openui5-touropenui5-tourAn OpenUI5 control library for a step-by-step guided tour inside a UI5 app, where each TourStep has a title, content, a target control from the view and a placement.independent, ui5OpenUI5 control library for guided app tours
- ui5-lib-visualizationui5-lib-visualizationA UI5 control library that wraps the C3.js charting library as ui5.viz controls (Chart, ChartSeries, ChartDataPoint, ChartAxis, ChartLine, ChartArea and Color) declared in an XML view with data binding.independent, ui5UI5 control library wrapping C3.js charts as ui5.viz controls
- UI5XUI5XAn OpenUI5 and SAPUI5 library of eight composite controls under the ui5x namespace: skeleton placeholders and a container that swaps them for content, loading wrappers for the responsive and the grid table, an accordion, a copy button, a segmented input and a chat feed.independent, ui5UI5 library of eight composite controls under the ui5x namespace
- openui5-cameraopenui5-cameraA UI5 control that renders a live camera preview from the device's camera and hands the app the picture as a base64-encoded PNG when the user taps it.independent, ui5UI5 control for live camera preview and PNG capture
- ui5-cc-chartui5-cc-chartA UI5 custom control that wraps Chart.js to render a line chart from label and value records, installed as a plain npm dependency with ui5-tooling-modules in ui5.yaml.community org, ui5UI5 custom control wrapping Chart.js for line charts
- ui5-cc-mdui5-cc-mdA UI5 custom control that renders Markdown, including GitHub-flavoured syntax, to HTML inside an XML view, taking its content from a string, a file path or a model binding.community org, ui5UI5 custom control rendering Markdown to HTML
- ui5-fontawesome-libui5-fontawesome-libA UI5 library that adds Font Awesome's regular, solid and brand icon sets to the sap-icon:// namespace, addressable from a standard Icon control, for UI5 1.120.33 or later.community org, ui5UI5 library adding Font Awesome icon sets to sap-icon://
- openui5-paginatoropenui5-paginatorA UI5 custom control that pages through large data in a table, for backends that serve pages over REST rather than OData.independent, ui5A UI5 custom control that pages through large data in a table, for backends that serve pages over REST rather than OData.
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
Contributors
History in the atlas
- First seen.
For your agent
- Ref
artifact:mauriciolauffer-openui5-password- JSON
- /artifacts/mauriciolauffer-openui5-password.json
- MCP
- Connecting an agent