Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@oiz/stzh-components-angular
Advanced tools
Angular component wrappers for Design System Stadt Zürich with these benefits:
Currently, only Angular 16.x.x is supported.
With the usage of @oiz/stzh-components-angular, you shouldn't install @oiz/stzh-components and you can ignore installation instructions for web components. Instead, do the following:
npm install @oiz/stzh-components-angular
Add the StzhComponentsAngularModule to your app.module.ts:
@NgModule({
declarations: [AppComponent],
imports: [
...
StzhComponentsAngularModule
],
bootstrap: [AppComponent],
})
export class AppModule {}
Modify your angular.json:
{
...
"projects": {
"your-project": {
...
"architect": {
...
"options": {
...
"assets": [
...
<!-- ADD BELOW BLOCK -->
{
"glob": "**/*",
"input": "node_modules/@oiz/stzh-components/dist/stzh-components",
"output": "stzh-components-assets"
},
<!-- BLOCK FINISH -->
],
},
...
},
...
}
}
}
Add the following lines into the element of your index.html:
<head>
...
<!-- async loading of font stylesheet -->
<link rel="preload" as="style" href="stzh-components-assets/assets/fonts.css" />
<link
rel="stylesheet"
href="stzh-components-assets/assets/fonts.css"
media="print"
onload="this.media='all'" />
<!-- stylesheet with CSS properties/variables -->
<link rel="stylesheet" href="stzh-components-assets/stzh-components.css" />
<!-- OPTIONAL: include if you want to use the stzh-readspeaker component -->
<link rel="stylesheet" href="stzh-components-assets/assets/vendors/readspeaker/ReadSpeakerClassic.css" media="print" onload="this.media='all'" />
<!-- set path to translation and media files -->
<script>
window.stzhComponents = window.stzhComponents || {};
window.stzhComponents.pathTranslations = 'stzh-components-assets/assets/i18n';
window.stzhComponents.pathMedia = 'stzh-components-assets/assets/media';
</script>
...
</head>
Add the following lines on top of the element of your index.html:
<body>
<stzh-flyingfocus></stzh-flyingfocus>
<stzh-icon-sprite></stzh-icon-sprite>
<stzh-toastbar></stzh-toastbar>
...
</body>
If you use the stzh-readspeaker component, add the following at the end of the element of your index.html:
<body>
...
<script src="stzh-components-assets/assets/vendors/readspeaker/ReadSpeaker.js?pids=embhl" type="text/javascript"></script>
<script src="stzh-components-assets/assets/vendors/readspeaker/ReadSpeakerClassic.js" type="text/javascript"></script>
</body>
To import any type used by stzh-components (e.g. StzhProgressbarDataItem, StzhCheckboxChangeEvent etc.), add:
import { StzhProgressbarDataItem, StzhCheckboxChangeEvent } from '@oiz/stzh-components/dist/types';
FAQs
Angular specific component wrappers for @oiz/stzh-components.
The npm package @oiz/stzh-components-angular receives a total of 87 weekly downloads. As such, @oiz/stzh-components-angular popularity was classified as not popular.
We found that @oiz/stzh-components-angular 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.