Giter VIP home page Giter VIP logo

nb-form's Introduction

@bigbear713/nb-form

Angular common form lib by bigBear713.

OnlineDemo

Bug Report

Feature Request


Document


Changelog


Readme


Feature

  • Provide the common validators: arrLength, equal, fileSize, fileType, required, whitespace;
  • Support to use DI to set common error info;
  • Support the changeDetection of components as ChangeDetectionStrategy.OnPush;
  • Support to used in standalone component;
  • Support to be imported as a standalone component;

Version

The nb-form's major version will keep up with the Angular's major version
@bigbear713/nb-form @angular/core
^12.0.0 ^12.0.0
^13.0.0 ^13.0.0
^14.0.0 ^14.0.0
^15.0.0 ^15.0.0
^16.0.0 ^16.0.0
^17.0.0 ^17.0.0

Installation

$ npm i @bigbear713/nb-form
// or
$ yarn add @bigbear713/nb-form

Start the demo project

  • Install the dependencies:
npm i
  • Build the nb-form lib
npm run build:lib
  • Run the nb-form unit test
npm run test:lib
  • Start the demo
npm start
  • build the demo
npm run build

Contribution

Feature and PR are welcome to make this project better together

bigBear713

License

MIT

nb-form's People

Contributors

bigbear713 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

cerviny titalk fskeo

nb-form's Issues

Update document

Update readme markdown and change log markdown documents.

Remove errors and add some links

Update the link in documents

The default branch has been renamed as 'main', but the link containing old branch name (master) has not been updated in documents.

So let's update them as new default branch name

Upgrade to v17

version: v16.0.0

The Angular v17 will be released soon, so the lib is going to be upgraded to v17.0.0 which based on Angular 16

Rename the name of some enums, constants

version: 15.0.0
I think the names of NB_CONTROL_COMMON_ERR_INFO_TOKEN, NbControlErrTypeEnum are not good, so I will rename them in the v15.0.0.
The "Enum" is redundant in NbControlErrTypeEnum, so I will remove it;
NB_CONTROL_COMMON_ERR_INFO_TOKEN does not meet rules, the "_TOKEN" will be removed

Add Eslint and Prettier to the project

As we all know the Eslint and prettier are useful when we working with others, but now it is missing for the project. So let's add the Eslint and Prettier to the project

Upgrade to v16

version: v15.1.0

The Angular v16 will be released soon, so the lib is going to be upgraded to v16.0.0 which based on Angular 16

Support to import the components as standalone mode

version: v15.0.0

Now the components can be used in standalone components, but should import the NbFormModule first, someone may think using module is not good in standalone component, it is better when the import is all components, although it has no effect on the size of the packed file.
And I think it is ok to import the components as standalone mode, so I will support it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.