Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aribaui/components

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aribaui/components

Ariba UI widgets and layouts based on primeng.

  • 6.2.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by12.5%
Maintainers
1
Weekly downloads
 
Created
Source

components

Components module has 3 main parts:

Core

Mostly services or one interesting core directive such as:

IncludeComponentDirective which is key building block in order to render dynamic UI (MetaUI).

e.g:

<aw-include-component [name]="'TextFieldComponent'"  [bindings]=bindings >
</aw-include-component>

You just pass a string and component is rendered dynamically.

GenericContainerComponent is really generic component which can help you literary render any html element. Also key building block for generating UI on the fly. We are using this component to dynamically wrap other components.

<aw-generic-container tagName="h1" >
    My title
</aw-generic-container>

Layouts

FormTable: Pretty much every place that needs to render form fields uses this component. It support either only 1 zone layout (1 column) or multi zone layout:

<aw-form-table [labelsOnTop]="labelsOnTop" >
   <aw-form-row [label]="'a label 1'" [name]="'name'" [size]="'medium'">
           <aw-input-field [name]="'name'" [value]="value1"></aw-input-field>
    </aw-form-row>

    <aw-form-row [label]="'a label 2'" [name]="'name2'" [size]="'medium'">
        <aw-input-field [name]="'name'" [value]="value1"></aw-input-field>
    </aw-form-row>=
</aw-form-table>

or

<aw-form-table [useFiveZone]="fiveZone" >
    <aw-left>
        <aw-form-row [label]="'a label 1'" [name]="'name'" [size]="'medium'">
            <aw-input-field [name]="'name'" [value]="value1"></aw-input-field>
        </aw-form-row>
    </aw-left>


    <aw-right>
        <aw-form-row [label]="'a label 1'" [name]="'name'" [size]="'medium'">
            <aw-input-field [name]="'name'"  [value]="value1"></aw-input-field>
        </aw-form-row>
    </aw-right>
</aw-form-table>

Declarative layout

This is still on our todo list in order to loose dependency on PrimeNG grid system or any css grid system we might use in the future. We just want to have a component that could look like this e.g. :

<aw-flex-layout pattern=" (hbox (vzone MYLEFT) (vzone MYRIGHT))" >
        <aw-flex-content zone="MYLEFT">
                some fields
        </aw-flex-content>
              
         <aw-flex-content zone="MYRIGHT">
                some fields        
         </aw-flex-content>

</aw-flex-layout>

It would render one horizontal box with two named columns left and right for holding a content. aw-flex-content would just place your content into specific zone. With this you can define any kinds of layouts on the page. Basically the layout pattern would be parsed into a tree and then we would traverse a tree and render each box and zone. We don't want developers to trouble with detail of any css layout system.

Widgets

Contains basic set of widgets extending existing 3th-party library http://www.primefaces.org/primeng/ to match our custom usecases.

Keywords

FAQs

Package last updated on 23 Oct 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc