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

@iapps/ngx-dhis2-validation-rule-group-filter

v1.0.0-beta.2

Published

[![CircleCI](https://circleci.com/gh/hisptz/ngx-dhis2-validation-rule-filter.svg?style=svg)](https://circleci.com/gh/hisptz/ngx-dhis2-validation-rule-filter) [![Build Status](https://travis-ci.org/hisptz/ngx-dhis2-validation-rule-filter.svg?branch=master)

Downloads

5

Readme

Dhis2 Validation Rule Group Filter Library

CircleCI Build Status Maintainability Test Coverage Commitizen friendly Gitter chat GitHub commitizen on stackoverflow npm GitHub All Releases GitHub issues GitHub closed issues GitHub package.json version

Introduction

Dhis2 Validation Rule Group(DVRG) is a user interface component library for developing DHIS2 applications. DHIS2 Team from UDSM uses and maintain this component to ensure visual and usability consistency where it is used in the process of developing different DHIS2 web application.

Features

  • Fetching all the validation rules group from the DHIS2 Instance where the you have installed the Web app you are developing and use this library as part of it.
  • Give support to use to select the validation rule group available withing the instance and proceed with the analysis process.
  • Give support to De-select the validation rule group if it wrong selection.
  • It give support to select and de-select all the selection i.e validation rule group all at once.

Quickstart Guide

Prerequisite Requirements

Install the following dependencies withing your project before starting using the following library.

Installation Commands

npm i @ngrx/store

npm i @ngrx/effects

npm i rxjs

npm i --save lodash

npm i @iapps/ngx-dhis2-http-client

npm i @iapps/ngx-dhis2-validation-rule-group-filter

Installation Procedure

Import StoreModule, EffectsModule and HttpClientModule to the appModule.ts. Below is an example of configuration for a fresh project, but if you have already done installation based on your configuration the follow all along to see what is need to be added to make installation successfully

import { StoreModule } from '@ngrx/store';
import { EffectsModule } from '@ngrx/effects';
import { HttpClientModule } from '@angular/common/http';
import { NgxDhis2ValidationRuleFilterModule } from '@iapps/ngx-dhis2-validation-rule-group-filter';

@NgModule({
    declarations: [
    AppComponent,
],
imports: [
    BrowserModule,
    AppRoutingModule,
    StoreModule.forRoot({}),
    EffectsModule.forRoot([]),
    HttpClientModule,
    NgxDhis2ValidationRuleFilterModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }

NOTE: This library is using @iapps/ngx-dhis2-http-client library, Please follow installation instructions for this package as well. Instructions can found here

How to use

After installation you can use the following tags to start using it in your project.

<lib-ngx-dhis2-validation-rule-filter
    [dataSelection]='dataElements'
    [selectedVRGs]='preSelectedVRGs'
    (update)="onUpdateValidationRule($event)"
    (close)="onUpdateValidationRule($event)">
<lib-ngx-dhis2-validation-rule-filter>

Output Emmitted

Template of the OUTPUT Emmitted after clicking the UPDATE or CANCEL button:

items: []
periodTypes: {}
dimensions: "vrg"
change: true

Example of the output Emmitted after clicking the UPDATE or CANCEL button:

items: [
    {
        id: "odiGzVETtQQ",
        name: "Form: National Malaria control program"
    }
]
periodTypes: {
    id: "Monthly"
    name: "Monthly"
    rank: 3
}
dimensions: "vrg"
change: true

Contributions

Licence

GitHub