open-index/open-npm huggingface dataset:
npm package: @flexem/broker-ui-angular
Description: >A warp of [fbroker-ui](https://www.npmjs.com/package/@flexem/broker-ui) with angular.
Latest version: 1.0.1-alpha.2211020521

# FBroker-UI-Angular

>A warp of [fbroker-ui](https://www.npmjs.com/package/@flexem/broker-ui) with angular.

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

## Install

```bash
npm install --save @flexem/broker-ui-angular
# OR
yarn add @flexem/broker-ui-angular
```

## Usage
1.Import Module
```ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FbrokerUiAngularModule } from '@flexem/broker-ui-angular';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FbrokerUiAngularModule, // add module
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

```
2.Create Component
```ts
import { Component } from '@angular/core';
import { PlcItem, TransferItem, VariableItem } from '@flexem/broker-ui';

@Component({
  selector: 'app-root',
  template: `
  <broker-template-tab
    [plcs]="plcs"
    [variables]="variables"
    [transfers]="transfers"
    (onPlcCreated)="handlePlcCreate($event)"
    (onVariableCreated)="handleVariableCreate($event)"
    (onTransferCreated)="handleTransferCreate($event)"
    (onTransferChange)="handleTransferChange($event)">
  </broker-template-tab>
  `
})
export class AppComponent {
  plcs: PlcItem[] = [];
  variables: VariableItem[] = [];
  transfers: TransferItem[] = [];

  handlePlcCreate(item: PlcItem) {
    this.plcs = this.plcs.concat(item);
  }

  handleVariableCreate(item: VariableItem) {
    this.variables = this.variables.concat(item);
  }

  handleTransferCreate(item: TransferItem) {
    const transfers = [...this.transfers];
    const i = transfers.findIndex((x) => x.id === item.id);
    if (i >= 0) {
      transfers[i] = item;
    } else {
      transfers.push(item);
    }
    this.transfers = transfers;
  }

  handleTransferChange(item: TransferItem) {
    const transfers = [...this.transfers];
    for (const x of transfers) {
      if (x.id === item.id) {
        x.enable = true;
      } else {
        x.enable = false;
      }
    }
    this.transfers = transfers;
  }
}
```

## License

MIT © [flexem](https://github.com/flexem)
npm package: @flexem/browser-update
Description: Old browser notification script.
Author: Graffino
Latest version: 1.3.0

<a href="https://travis-ci.org/zenopopovici/Browser-Update"><img src="https://travis-ci.org/zenopopovici/Browser-Update.svg" alt="Build Status" /></a>

# Browser Update

This is a little javascript that detects the user's browser and shows a warning message if the browser is too old.

If the user clicks the notification bar he is redirected to Google's "<a href="http://whatbrowser.org">WhatBrowser</a>" Page (no ads).

This is based on the <a href="http://www.browser-update.org">www.browser-update.org</a> script. See LICENSE file for more information.

### Installation via Bower
You can install it via Bower with: `bower install browser-update`

### The following browsers will be notified by default:
1. IE <= 9
2. Firefox <= 34
3. Opera <= 12
4. Safari <= 6.2
5. Netscape Navigator <= 12
6. Chrome - Automatic

### The following OSes and browsers will not be notified since there is no up to date version of browser
1. Windows NT 4.0, 5.0
3. Windows 98
4. OSX 10.2, 10.3, 10.4, 10.5
5. Firefox ESR
6. Opera 12 on Linux
7. Browsers versions bellow vsmin

### The following OSes and browsers will not be notified
1. IE => 11 - See issue <a href="https://github.com/zenopopovici/Browser-Update/issues/1">#1</a>

### The following options can be passed to the script:
``` javascript
var $buoop = {

    vs: {i:6,f:2,o:9.63,s:2,c:10}, 	// browser versions to notify
    reminder: 24,                   // after how many hours should the message reappear
                                    // 0 = show all the time
    reminderClosed: 150             // if the user closes message it reappears after x hours
    onshow: function(infos){},      // callback function after the bar has appeared
    onclick: function(infos){},     // callback function if bar was clicked
    onclose: function(infos){},     //

    l: false,                       // set a language for the message, e.g. "en"
                                    // overrides the default detection
    test: false,                    // true = always show the bar (for testing)
    text: "",                       // custom notification html text
    text_xx: "",                    // custom notification text for language "xx"
                                    // e.g. text_de for german and text_it for italian
    newwindow: true                 // open link in new window/tab
};
```
### You can overwrite the default CSS
``` css
.buorg {
    background: #FDF2AB no-repeat 1em 0.55em url(warning.png);

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    border-bottom: 1px solid #A29330;

    color:#000;
    font-family: Arial, Helvetica, sans-serif; 
    font-size: 12px;
    text-align: left;

    cursor: pointer;
}
.buorg div {
    padding: 5px 36px 5px 40px;
}
.buorg a {
    color:#E25600;
}
#buorgclose {
    position: absolute;
    right: .5em;
    top: .2em;

    padding: 0;
    height: 20px;
    width: 12px;

    font-size: 14px;
    font-weight: bold;
}
```