Table of Contents
This project contains the DEMIS Portal Theme Library, providing consistent styling and theming for DEMIS microfrontends based on Angular Material.
See ReleaseNotes for all information regarding the (newest) releases.
The Project requires access to the Nexus Private NPM registry from gematik, therefore the npm
CLI tool should be configured accordingly:
# Login to private registry with username/password
npm login --registry=https://nexus.prod.ccs.gematik.solutions/repository/allNpmRepos/
# Set npm standard registry
npm config set registry https://nexus.prod.ccs.gematik.solutions/repository/allNpmRepos/
The theme library can be built using the following commands:
npm clean-install
npm run build
To use this library in your project, install it via npm, if you have access to a registry, where this library is pushed to:
npm install @gematik/demis-portal-theme-library
Then import the CSS file in your Angular application:
@import '@gematik/demis-portal-theme-library/demis-theme.css';
If you do not have access to a registry that has this library available, you first need to build it yourself (see: build:dev). Afterwards, you can deploy this local build to any desired Angular project by utilizing the convenience script deploy-local-dev-package.
BEWARE! This will most likely always affect the dependency tree of the target Angular project!
There are several scripts available for local development that simplify the workflow between local TGZ builds and registry installations:
Builds the theme library and packs it into a TGZ file in the dist/
directory.
This is useful for local development and testing before deploying to a registry.
Usage:
# Build the library and create a TGZ file in dist/
npm run build:dev
Installs the locally built TGZ version of the Portal-Theme-Library into a target project.
Usage:
# Installs the latest TGZ file from dist/
npm run deploy-local-dev-package ../portal-shell
# Or directly:
node .local-scripts/deploy-local-dev-package.js ../portal-shell
Features:
- Automatically finds the latest TGZ file in the
dist/
directory - Installs the local version as
file:
dependency - Clears caches and reinstalls all dependencies
- Automatically validates target directory and project
Restores registry versions of the Portal-Theme-Library and checks for available updates.
Usage:
# Automatic update to latest stable version
npm run restore-to-registry-package ../portal-shell
# Installation of a specific version
npm run restore-to-registry-package ../portal-shell 1.2.3
# Or directly:
node .local-scripts/restore-to-registry-package.js ../portal-shell [version]
As can be seen, the script can also be used to install a specific version of the library. Typically, this is not necessary, as the latest version is always installed by default.
- Local development: Make changes to Portal-Theme styles
- Build: Run
npm run build:dev
- Deployment:
npm run deploy-local-dev-package ../portal-shell
for testing - Restoration:
npm run restore-to-registry-package ../portal-shell
for production
If you want to see the security policy, please check our SECURITY.md.
If you want to contribute, please check our CONTRIBUTING.md.
Copyright 2024-2025 gematik GmbH
EUROPEAN UNION PUBLIC LICENCE v. 1.2
EUPL © the European Union 2007, 2016
See the LICENSE for the specific language governing permissions and limitations under the License
- Copyright notice: Each published work result is accompanied by an explicit statement of the license conditions for use. These are regularly typical conditions in connection with open source or free software. Programs described/provided/linked here are free software, unless otherwise stated.
- Permission notice: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
- The copyright notice (Item 1) and the permission notice (Item 2) shall be included in all copies or substantial portions of the Software.
- The software is provided "as is" without warranty of any kind, either express or implied, including, but not limited to, the warranties of fitness for a particular purpose, merchantability, and/or non-infringement. The authors or copyright holders shall not be liable in any manner whatsoever for any damages or other claims arising from, out of or in connection with the software or the use or other dealings with the software, whether in an action of contract, tort, or otherwise.
- We take open source license compliance very seriously. We are always striving to achieve compliance at all times and to improve our processes. If you find any issues or have any suggestions or comments, or if you see any other ways in which we can improve, please reach out to: [email protected]
- Please note: Parts of this code may have been generated using AI-supported technology. Please take this into account, especially when troubleshooting, for security analyses and possible adjustments.
E-Mail to DEMIS Entwicklung