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

systelab-schematics

v1.4.0

Published

Schematics to generate Systelab Components

Downloads

197

Readme

Systelab Angular Schematics

This repository is a basic Schematic implementation that serves as a starting point to create and publish Schematics to work with systelab-components.

Working with the repo

In order to clone the repository and test the library use the following commands:

git clone https://github.com/systelab/systelab-schematics.git
cd systelab-schematics
npm install
npm run build

In order to publish the library, an authorized npm user is required. Once set, update the version in the package.json, and run the npm publish script:

npm publish

Using systelab-schematics

In order to use the schematics you must install the following development dependency:

npm install -D systelab-schematics

Create Modal

In order to generate a new modal based on systelab-components, you must run the following angular cli command

ng g systelab-schematics:dialog "patient management" --module="/src/app/app.module.ts"

The schematic will:

  • Generate a patient-management folder
  • The files: patient-management-dialog.ts, patient-management-dialog.spec.ts, patient-management-dialog.html and patient-management-dialog.scss

The name for the selector will be name dashed, and the name of the components will be the name upper camel case.

Be aware that you can use the short command:

ng g systelab-schematics:dialog doctor --module="/src/app/app.module.ts"

If you specify a module, teh component will be added in the specified module.

Create Grid, ListBox, ComboBox

In order to generate a new grid based on systelab-components, you must run the following angular cli command

ng g systelab-schematics:grid --name="patient details" --api="PatientDetailsService" --model="PatientDetail" --module="/src/common/components/components.module.ts"

The schematic will:

  • Generate a patient-details folder and a grid folder
  • The files: patient-details-grid.ts and patient-details-grid-spec.ts

The name for the selector will be name dashed, and the name of the components will be the name upper camel case.

If api is not set name upper camel case with the suffix 'Api' will be used. If model is not set name upper camel case with the suffix 'Data' will be used.

Be aware that you can use the short command:

ng g systelab-schematics:grid doctor

Use similar commands fot listbox and combobox:

ng g systelab-schematics:listbox doctor
ng g systelab-schematics:combobox doctor

Example

For a full example run:

cd somelocation
ng new --style=scss --routing=false simpletest &&
cd simpletest &&
npm install -D systelab-schematics &&
npm install systelab-translate &&
npm install systelab-preferences &&
npm install systelab-components &&
npm install systelab-login &&
npm install systelab-charts &&
cd src &&
mkdir common &&
cd common &&
ng generate module Components && 
cd components &&
ng g systelab-schematics:grid --name="some name" --module="/src/common/components/components.module.ts" &&
ng g systelab-schematics:combobox --name="some name" --module="/src/common/components/components.module.ts" &&
cd .. &&
cd .. &&
cd app &&
ng g systelab-schematics:dialog --name="some name" --module="/src/app/app.module.ts"