@kireibpm/js-components
v1.0.4
Published
AngularJS UI components and utilities for KireiBPM web applications
Readme
@kireibpm/js-components
KireiBPM AngularJS components library.
This repository is a rebranded fork of the Bonita AngularJS components library.
The distributed bundle keeps the historical bonita-lib* artifact names for compatibility with existing consumers.
The npm package is published as @kireibpm/js-components.
Requirements
You need Node.js, Yarn and npm.
The repository is maintained and packed with Node 18+ and Yarn 1.22+.
The library targets AngularJS 1.x applications and is currently consumed by KireiBPM UI Designer.
Included components
- [x] bo-sortable (bo-sortable sort-options="sortOptions" on-sort="onSort( options)")
- [x] bo-storable (bo-storable="storageId" on-storage-loaded="loadContent()")
- [x] bo-sorter (default id=key, or bo-sorter='key')
- [x] selectAll (bo-selectable, bo-selectAll, bo-selector)
- [x] bo-repeatable
- [x] table-settings
- [x] drag and drop
- [x] draggable-columns (need to add ng-sortable dependency to make it work as it is not imported by default)
Available commands
First, run yarn install to install dependencies.
$ npm start: launch the development environment with a local server and livereload$ npm run dist: regenerate thedist/bundle that is shipped to consumers$ npm test: run the Karma test suite$ npm run documentation: generate the ngdoc site inside./docs/
Todo
- [ ] kireibpm.resizable (see http://bz.var.ru/comp/web/resizable.html )
Publishing a new version
The published package contains only the prebuilt assets from dist/ plus package metadata.
The recommended release path is the Release npm package GitHub Actions workflow from main, described in docs/npm-publishing.md.
When you're ready to ship a new version:
Bump the version in
package.jsonand regenerate the distribution files.Build and verify the package.
$ yarn install
$ npm run dist
$ npm test
$ npm pack --dry-run- Publish the package to npm.
$ npm publishUpdate downstream repositories to consume the published version instead of a GitHub tarball.
Standard npm consumers should depend directly on
@kireibpm/js-components@<version>. Repositories that still expose dependencies through a bower-style bridge can map it under their own compatibility namespace, for example@bower_components/kireibpm-js-components.
The code coverage site is generated when you run tests and is available under ./coverage/.
Documentation
To ease the documentation process:
$ npm run documentationThis runs a local server with livereload and regenerates docs when source files change.
Code coverage
The Karma test suite provides code coverage through karma-istanbul. The generated coverage site is located in ./coverage/.
