1.0.0 • Published 2 years ago
winx-form-winx v1.0.0
@bpmn-io/form-js
View and visually edit JSON-based forms.
Usage
This library exports a form viewer and editor.
Display a Form
Renders a form based on [a form schema](./docs/FORM_SCHEMA.md) and existing data:
import { Form } from '@bpmn-io/form-js';
const form = new Form({
container: document.querySelector('#form')
});
await form.importSchema(schema, data);
form.on('submit', (event) => {
console.log(event.data, event.errors);
});
See [viewer documentation](./packages/form-js-viewer) for further details.
Create and Edit a Form
Create a new form or edit an exsting one:
import { FormEditor } from '@bpmn-io/form-js';
const formEditor = new FormEditor({
container: document.querySelector('#form-editor')
});
await formEditor.importSchema(schema);
See [editor documentation](./packages/form-js-editor) for further details.
Resources
- [Demo](https://demo.bpmn.io/form)
- [Issues](https://github.com/bpmn-io/form-js/issues)
- [Changelog](./packages/form-js/CHANGELOG.md)
- [Form schema](./docs/FORM_SCHEMA.md)
License
Use under the terms of the [bpmn.io license](http://bpmn.io/license).
ababacceptsabbrevJSONStreamadd-streamacornagent-baseacorn-jsxajv-keywordsagentkeepaliveaggregate-errorajvansi-colorsansi-regexansi-stylesanymatchaprobaare-we-there-yetargparsearray-differarray-ifyarray-find-indexaria-queryarray-unionarray-movearray.prototype.flatmapasaparray-includesarray.prototype.flatassert-plusasn1astral-regexansi-escapesat-least-nodeatoaaws-sign2babel-eslintassertion-errorbabel-generatorasynckitbabel-plugin-react-svgbabel-code-framebabel-runtimebabel-messagesbabel-traversebabel-templatebalanced-matchbase64-arraybufferbabel-typesbcrypt-pbkdfbase64idbig.jsbefore-after-hookbinary-extensionsboolbasebabylonaws4brace-expansionbracesbrowser-stdoutbufferbrowserslistbuffer-crc32builtin-modulesbuffer-frombylinebuiltinsbytescamelcasecacachecall-bindbase64-jscaselesscamelcase-keyscaniuse-litebyte-sizechardetchalkcheck-errorchownrci-infoclean-stackcli-cursorchrome-trace-eventchokidarclone-deepcli-widthclonecliuicmd-shimcolor-convertcocode-point-atcolor-namecolorscoacolorettebody-parsercolumnifycommondircomponent-emitterblcombined-streamconnectcommanderconcat-mapcontent-typecompare-funcconsole-control-stringscontraconventional-changelog-angularconcat-streamconventional-changelog-corecomponent-eventconvert-source-mapconfig-chainconventional-commits-parserconventional-changelog-preset-loadercookieconventional-commits-filtercore-util-iscore-jscore-js-purecross-spawncosmiconfigcorscss-select-base-adaptercreltcrossventcss-selectcss-loadercss-treecss.escapecss-whatcssesccssocustom-eventcurrently-unhandleddargsdebugdashdashconventional-recommended-bumpdateformatdebuglogdecamelizedecamelize-keysdecode-uri-componentdeep-isdedentdeepmergedeep-eqldefine-propertiesdefaultsdeldelayed-streamdelegatesdepddetect-indentdevtools-protocoldideprecationdididezalgodir-globdiffdoctrinedom-accessibility-apidomelementtypedom-serializedom-serializerdomutilsdot-propee-firstdraguladownloadjsemoji-regexduplexeremojis-listecc-jsbnelectron-to-chromiumencodeurlencodingend-of-streamengine.io-parserengine.ioenhanced-resolveenquirerententitiesenv-pathserror-exenvinfoerr-codedomifyes-abstractes-module-lexerescape-string-regexpes-to-primitiveescape-htmlescaladeeslint-import-resolver-nodeeslint-plugin-mochaeslint-plugin-reacteslint-module-utilseslint-scopeeslint-utilseslint-visitor-keysesprimaesqueryespreeestraverseesutilsesrecurseestree-walkereventemitter3execaeventsextsprintfextendexternal-editorextract-zipfast-globfast-json-stable-stringifyfast-levenshteinfast-deep-equalfastqfd-slicerfill-rangefiguresfile-dropsfile-entry-cachefinalhandlerfind-upfilter-objflattedfollow-redirectsfind-cache-dirflatform-datafs-constantsfs-extraforever-agentfseventsfunction-bindfs-minipassfs.realpathfunctional-red-black-treeget-caller-filegaugegensyncflat-cacheget-func-nameget-intrinsicget-portget-stdinget-pkg-repoget-streamgit-raw-commitsgetpassgit-semver-tagsgit-remote-origin-urlgit-url-parsegit-upglob-parentgitconfiglocalglobconventional-changelog-writerglobbyglobalshammerjsgraceful-fshandlebarshar-schemagrowlhard-rejectionhashar-validatorhas-ansihas-bigintshas-symbolshas-flaghas-unicodedate-formathosted-git-infohttp-proxyhehttp-errorshtml-escaperhttp-signaturehttps-proxy-agenthttp-proxy-agenthuman-signalshumanize-msiconv-liteignoreicss-utilsidsimport-localignore-walkindexofieee754imurmurhashindent-stringinflightimport-freshinheritsinquirerinfer-ownerinit-package-jsoniniinterpretinternal-slotipinvariantis-arrayishis-binary-pathis-ciis-bigintis-boolean-objectis-callableis-date-objectis-core-moduleis-dockeris-finiteis-extglobis-lambdais-moduleis-fullwidth-code-pointis-globis-numberis-objis-path-cwdis-plain-objectis-plain-objis-negative-zerois-number-objectis-streamis-sshis-regexis-text-pathis-symbolis-referenceis-stringis-typedarrayis-path-insideis-wslis-utf8is-unicode-supportedisbinaryfileisarrayisobjectisstreamisexeistanbul-lib-coverageistanbul-lib-instrumentjs-tokensistanbul-lib-source-mapsistanbul-reportsjest-workerjsescjs-yamljsbnjson-parse-better-errorsistanbul-lib-reportjson-schema-traversejson-schemajson-stable-stringify-without-jsonifyjson5jsonfilejson-stringify-safejsonparsejsprimjsx-ast-utilsjust-extendkind-oflevnlezerlezer-jsonlezer-treeload-json-filelibnpmpublishlibnpmaccesslines-and-columnsloader-runnerlocate-pathloader-utilslodash._reinterpolatelodashlodash.clonedeeplodash.getlodash.isplainobjectlodash.templatelodash.mergelodash.templatesettingslodash.ismatchlodash.truncateloose-envifylog4jsloud-rejectionlru-cachelz-stringmagic-stringmake-dirmap-objmake-fetch-happenmdn-dataarrifymatches-selectormedia-typermemorystreammerge-streamlog-symbolsmeowmicromatchmerge2mime-dbmime-typesmimemimic-fnmin-dashminimatchmin-indentminimist-optionsminipassminimistminipass-collectminipass-fetchminipass-flushminipass-json-streamminipass-pipelineminipass-sizedmittminizlibmkdirpmkdirp-infer-ownermultimatchmsmodify-valuesmute-streamnatural-comparenanoidnegotiatorneo-asyncnice-trynisenode-gypnode-fetchnode-releasesnormalize-package-datahttp-cache-semanticsjson-parse-even-better-errorsmin-domnormalize-pathnoptnpm-install-checksnpm-bundlednpm-lifecyclenormalize-urlnpm-normalize-package-binnpm-package-argnpm-packlistnpm-pick-manifestnpm-run-pathnpm-registry-fetchnth-checknpmlognumber-is-nanoauth-signobject-assignobject-keysobject-inspectobject-refsobject.entriesobject.getownpropertydescriptorsobject.valuesobject.assignobject.fromentriesonceon-finishedonetimeos-tmpdiropenoptionatorp-limitp-finallyp-locateos-homedirp-map-seriesosenvp-reducep-pipep-mapp-queuep-timeoutp-waterfallparent-modulep-tryparse-jsonpacoteparseurlparse-pathparse-github-repo-urlparse-urlpath-is-absolutepath-existspath-keypath-intersectionpath-parsepath-typepath-to-regexppathvalpendpicomatchpifypicocolorsperformance-nowpidtreepkg-dirpkg-uppinkie-promisepinkiepostcss-modules-local-by-defaultpostcsspostcss-modules-extract-importspostcss-modules-scopepostcss-modules-valuespostcss-selector-parserpostcss-value-parserpreact-markupprocess-nextick-argsprelude-lspretty-formatprogresspromise-inflightpromise-retryproto-listpromzardprop-typespunycodeprotocolsproxy-from-envpslpumpqqueue-microtaskqjobsqsrandombytesrange-parserquery-stringquick-lruraw-bodyramdareact-isreact-svg-coreread-package-json-fastreadread-cmd-shimread-package-treeread-pkgread-package-jsonreaddirpreaddir-scoped-modulesreadable-streamread-pkg-uprechoirredentregenerator-runtimeregexp.prototype.flagsrepeatingregexpprequire-directoryrequire-from-stringrequires-portresolve-cwdrequestresolveresolve-fromrestore-cursorreusifyretryrfdcrollup-pluginutilsrollup-plugin-css-onlyrun-parallelsafer-buffersafe-bufferrxjsrun-asyncsaxsemverserialize-javascriptset-blockingschema-utilsshallow-clonesetprototypeofrimrafshebang-regexshebang-commandshell-quoteslashside-channelshelljsslice-ansislidesignal-exitsmart-buffersocket.iosocket.io-parsersocket.io-adaptersort-keyssockssocks-proxy-agentsource-mapsource-list-mapsource-map-supportsource-map-jssourcemap-codecspdx-correctspdx-license-idssplit-on-firstspdx-expression-parsespdx-exceptionssplit2splitsshpksprintf-jsstablestatusesssristreamrollerstrict-uri-encodestring.prototype.matchallstring-widthstring.prototype.padendstrip-ansistring.prototype.trimstartstrip-bomstring.prototype.trimendstring_decoderstrip-final-newlinestrip-json-commentsstrip-indentstrong-log-transformersupports-colorstyle-modstyle-loadersvgotabletapabletartemp-writetext-extensionstersertemp-dirterser-webpack-plugintext-tablethroughtickyto-regex-rangetiny-svgtmpthrough2to-fast-propertiestough-cookietrim-newlinestoidentifiertar-fstar-streamtsconfig-pathstunnel-agenttslibtweetnacltype-checktype-detecttype-festtype-istypedarray-to-buffertypedarrayuglify-jstr46ua-parser-jsunbox-primitiveuid-numberumasktrim-rightunique-slugunique-filenameuniversalifyupathuniversal-user-agentunbzip2-streamunpipeunquoteutil-deprecateuri-jsutil.promisifyutil-promisifytrim-off-newlinesvalidate-npm-package-licenseutils-mergev8-compile-cacheuuidverrorvalidate-npm-package-namevaryw3c-keynamewatchpackvoid-elementswebpack-sourceswcwidthwebpack-mergewhichwhatwg-urlword-wrapwebidl-conversionswide-alignwordwrapworkerpoolwrite-file-atomicwhich-boxed-primitivewrappywrap-ansiwrite-pkgwrite-json-filey18nwsyallistxtendyamlyargsyargs-unparseryargs-parseryauzlyocto-queue
1.0.0
2 years ago