@bettercare/aql-result-table
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Aql result table

AQL result table is a UI component written in Angular (10+) which provides logic for presenting data from AQL query response in a human-readable format.

Using library

To install this library run:

npm install @better/aql-result-table

Once you have installed the library, include library to your project module:

 @NgModule({
   imports: [
     ...
     AqlResultTableModule
   ],
   bootstrap: [AppComponent]
 })
 
 export class AppModule {
 }

Then you can simply use it in your component html and provide input data:

<bui-aql-result-table
    [aqlResultMetadata]="aqlResultMetadata"
    [tablePresentation]="tablePresentation">
</bui-aql-result-table>

Input models

class AqlResultMetadata {
  aql?: string;
  executedAql: string;
  meta?: {href: string};
  resultSet: unknown[] = [];
}

enum TablePresentation {
  DETAILED = 'DETAILED',
  COMPACT = 'COMPACT'
}

Deveopment

Code scaffolding

Run ng generate component component-name --project aql-result-table to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project aql-result-table.

Note: Don't forget to add --project aql-result-table or else it will be added to the default project in your angular.json file.

Build

Run ng build aql-result-table to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test aql-result-table to execute the unit tests via Karma.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Package Sidebar

Install

npm i @bettercare/aql-result-table

Weekly Downloads

1

Version

1.0.0

License

Apache-2.0

Unpacked Size

841 kB

Total Files

47

Last publish

Collaborators

  • benjaminmu