Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@vismaux/ngx-vud
Advanced tools
Common Visma Unified Design components for Angular.
@vismaux/ngx-vud | @vismaux/vud | @angular/* |
---|---|---|
^11.0.0 | ^1.6.3 | ^15.0.0 |
^10.0.0 | ^1.6.3 | ^14.1.0 |
^9.0.0 | ^1.5.0 | ^14.1.0 |
^8.0.0 | ^1.5.0 | ^14.0.0 |
^7.0.0 | ^1.0.0 | ^14.0.0 |
^5.0.0 | ^1.0.0 | ^13.0.0 |
still looking for outdated nordic-cool version? switch branch
ng add @vismaux/ngx-vud
Install this package together with two peer dependencies:
npm i @vismaux/ngx-vud @vismaux/vud @angular/cdk
If you're using npm@v7 you only have to install
@vismaux/ngx-vud
as it will automatically install peer dependencies for you.
Import required styles inside your global (e.g. style.scss
) file:
// One import that includes both global `@vismaux/vud` styles (dark-light) and extensions needed for the library.
@use '@vismaux/ngx-vud';
// In case you don't need the dark mode, don't use SCSS, or just want to have a more granual control, import these prebuilt files manully:
// @import '@vismaux/vud/dist/css/vud.light-dark.mode.min.css';
// @import '@angular/cdk/overlay-prebuilt.css';
Setup animations by importing BrowserAnimationsModule
in your app.module.ts
.
Use
NoopAnimationsModule
in case you don't want animations.
This library's i18n is based on @angular/localize
, so make sure you've installed that. Otherwise, run ng add @angular/localize
. In case you're not familiar with Angular's i18n, read the localization section below.
Import the global VismaUnifiedDesignModule
module that contains all components,
or pick specific ones (recommended), e.g. VudDatepickerModule
.
(Optional) Setup the icons if you plan to use the <vud-icon />
component or vismaicon-
CSS classes directly.
The required assets for the icons are not built into the package and requires setting them up separately.
This is mandatory if you plan to use the <vud-icon />
component or vismaicon-
CSS classes directly.
There are two ways to setup this.
// Option A (recommended): import from local assets
// this requires `@vismaux/vud-icons` npm package to be installed
@import '@vismaux/vud-icons/dist/css/vud-icons.min.css';
// Option B: import straight from CDN
// instructions taken from https://ux.visma.com/weblibrary/latest/index.php
@import 'https://vud-icons.s3.eu-north-1.amazonaws.com/latest/dist/css/vud-icons.min.css';
If you're not using the native angular localization process that requires building application for each locale, you can take use of dynamically loading translations which is available from Angular v9.
import { loadTranslations } from '@angular/localize';
// Make sure this is called *before* initialization of components that uses these translations
loadTranslations({
'vud-alert-close': 'Uždaryti',
});
To get the list of all possible translations you can run
ng extract-i18n
.
Follows PDAB Compatibility Policy:
the latest major stable version of Firefox, Chrome, Safari and Edge are supported. No support for IE.
You are more than welcome to open an issue or create a pull-request.
In the latter case, please make sure the changes follows the same coding principles,
is covered with unit tests and meets the official Visma Unified Design guidelines. 🙏
FAQs
Visma Unified Design components for Angular.
The npm package @vismaux/ngx-vud receives a total of 1,761 weekly downloads. As such, @vismaux/ngx-vud popularity was classified as popular.
We found that @vismaux/ngx-vud demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.