0.0.46-beta • Published 3 years ago

@aforms/aformsjs v0.0.46-beta

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

styled with prettier Travis Dev Dependencies Inline docs HitCount Known Vulnerabilities

AForms

Enhanced forms library built using fomantic-ui, jQuery and form.io.

Features

  • Typescript ES Modules
  • Customizable styles using Fomantic-ui - 2.8 and up
  • Enhancing json generated using formio.js
  • ADA Compatible

NPM scripts

  • npm t: Run test suite
  • npm start: Run npm run build in watch mode
  • npm run test:watch: Run test suite in interactive watch mode
  • npm run test:prod: Run linting and generate coverage
  • npm run build: Generate bundles and typings, create docs
  • npm run lint: Lints code
  • npm run commit: Commit using conventional commit style (husky will tell you to use it if you haven't :wink:)

Usage

You can download the library from npm using npm i @aforms/aformsjs -D

Please note that this library requires jquery, ensure the build tool is properly setup.

Developer environment (Customizations)

For developers who intend to develop or use the library with typescript:

- import { AFormModelClass } from '@aforms/aformsjs'

Since library uses jquery, and it's plugins you need to add jquery to your tsconfig.

  • Install jquery npm i @types/jquery -D
  • Add jquery to types array in tsconfig

{
    "extends": "./tsconfig.json",
    "compilerOptions": {
        "outDir": "../../dist/out-tsc",
        "types": [
            **"jquery"**
            ]
        },
        "files": [
            "./../../node_modules/@aforms/aformsjs/src/typings.d.ts",
            "./../../node_modules/@aforms/aformsjs/src/index.ts"
        ],
    "include": []
}

This will ensure your typescript compiler can read all required modules properly, additionally you get the comfort of debugging source code using typescript.

For accessing as javascript use

- import { AFormModelClass } from '@aforms/aformsjs/build' for es modules
- import { AFormModelClass } from '@aforms/aformsjs/build/cjs/a-forms.cjs.js' for cjs
- import { AFormModelClass } from '@aforms/aformsjs/build/umd/a-forms.umd.js' for umd

License

The MIT License (MIT)

0.0.45-beta

3 years ago

0.0.46-beta

3 years ago

0.0.44-beta

3 years ago

0.0.42-beta

3 years ago

0.0.43-beta

3 years ago

0.0.41-beta

3 years ago

0.0.40-beta

3 years ago

0.0.35-beta

3 years ago

0.0.33-beta

3 years ago

0.0.30-beta

3 years ago

0.0.38-beta

3 years ago

0.0.32-beta

3 years ago

0.0.36-beta

3 years ago

0.0.39-beta

3 years ago

0.0.37-beta

3 years ago

0.0.31-beta

3 years ago

0.0.34-beta

3 years ago

0.0.29-beta

3 years ago

0.0.28-beta

3 years ago

0.0.26-beta

3 years ago

0.0.22-beta

3 years ago

0.0.27-beta

3 years ago

0.0.24-beta

3 years ago

0.0.25-beta

3 years ago

0.0.23-beta

3 years ago

0.0.267-beta

3 years ago

0.0.19-beta

3 years ago

0.0.21-beta

3 years ago

0.0.20-beta

3 years ago

0.0.18-beta

3 years ago

0.0.17-beta

3 years ago

0.0.16-beta

3 years ago

0.0.15-beta

3 years ago

0.0.14-beta

3 years ago

0.0.13-beta

3 years ago

0.0.12-beta

3 years ago

0.0.11-beta

3 years ago

0.0.10-beta

3 years ago

0.0.9-beta

3 years ago

0.0.8-beta

3 years ago

0.0.7-beta

3 years ago

0.0.6-beta

3 years ago

0.0.5-beta

3 years ago

0.0.4-beta

3 years ago

0.0.3-beta

3 years ago

0.0.2-beta

3 years ago

0.0.1-beta-1

3 years ago

0.0.1-beta

3 years ago

0.0.1-test

3 years ago