open-index/open-npm huggingface dataset:
npm package: @cegal/ui-utils
Description: Cegal UI utilities
Latest version: 0.9.3


<img src='../ui-logos/logos/png/cegal-white.png' width='300'/>

# UI

UI utilities we can use for our prokects

## fetch 

This is a fetch utility that can mock results, simulate different HTTP statues, and dispatches actions for request/success/failure events 

### How to use 

    import { fetch } from '@cegal/ui-utils'

and in your code, add this as an action: 

    const fetchSomething = (params) => {
      return fetch.call({
        url: YOUR_API_URL_HERE,
        expectedPayload: {
          'add here': 'your expected mocked response'
        },
        type: {
        request: 'YOUR_ACTION_FOR_REQUEST',
        success: 'YOUR_ACTION_FOR_SUCCESS',
        failure: 'YOUR_ACTION_FOR_FAILURE'
        }
      })
    }

Note that this will return a Promise, so please use it in a Redux project with thunk middleware.

## Change logs

Visit design.cegal.com/change-log

# How to use it

install from npm.

    npm install --save @cegal/ui-utils

See design.cegal.com on how to use the React components

## License

[Go to Licence](LICENCE)
npm package: @cejixo3dr/core-framework-angular
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.12.
Latest version: 0.0.10

# CoreFrameworkAngular

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.12.

## Code scaffolding

Run `ng generate component component-name --project core-framework-angular` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project core-framework-angular`.
> Note: Don't forget to add `--project core-framework-angular` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build core-framework-angular` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build core-framework-angular`, go to the dist folder `cd dist/core-framework-angular` and run `npm publish`.

## Running unit tests

Run `ng test core-framework-angular` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).