New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@paperless/angular

Package Overview
Dependencies
Maintainers
1
Versions
1065
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paperless/angular

#### React

Source
npmnpm
Version
1.15.0
Version published
Weekly downloads
272
-78.01%
Maintainers
1
Weekly downloads
 
Created
Source

Employes UI
A collection of Web, React & Angular components that conform to the Employes design system.

📦 Install

React

npm install @paperless/core @paperless/react
yarn add @paperless/core @paperless/react

Angular

npm install @paperless/core @paperless/angular
yarn add @paperless/core @paperless/angular

Web Components

npm install @paperless/core
yarn add @paperless/core

🚀 Usage

React

// setup
import { applyPolyfills, defineCustomElements } from '@paperless/core/loader';

applyPolyfills().then(() => defineCustomElements());

// usage
import { Button } from '@employes/paperless';

const App = () => <Button>Click me!</Button>;

Angular

// main.ts
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { applyPolyfills, defineCustomElements } from '@paperless/core/loader';

applyPolyfills()
    .then(() => defineCustomElements())
    .then(() => platformBrowserDynamic().bootstrapModule(AppModule))
    .catch((err) => console.error(err));

// App Module
import { PaperlessModule } from '@employes/paperless-ngx';

@NgModule({
    declarations: [AppComponent],
    imports: [
        BrowserModule,

        // add this in your app module
        PaperlessModule.forRoot(),

        // add this in any module using paperless components
        PaperlessModule,
    ],
    providers: [],
    bootstrap: [AppComponent],
})
export class AppModule {}

// Any component
@Component({
    selector: 'app-root',
    templateUrl: `
      <p-button>Click me!</p-button>
    `,
})
export class AppComponent {}

Web Components

Add the following code snippet in your project to start using the components

import { defineCustomElements } from '@paperless/core/loader';
defineCustomElements();

And in your html:

<p-button>Click me!</p-button>

⌨️ Typescript

The library is javascript based but types are supported with d.ts files. You should get the types automatically when installing @paperless/core.

🤝 Contributing PRs Welcome

We welcome contributions to @paperless!

Read our contributing guide and help us build or improve our components.

📝 License

This project is offered under Apache License 2.0.

FAQs

Package last updated on 05 Jan 2024

Did you know?

Socket

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.

Install

Related posts