{"_id":"@aantix/vue-flow-form","_rev":"1-0e203650a536c597c8814d736216b937","name":"@aantix/vue-flow-form","dist-tags":{"latest":"2.3.3"},"versions":{"2.3.2":{"name":"@aantix/vue-flow-form","author":{"name":"DITDOT"},"description":"Create conversational conditional-logic forms with Vue.js. Components included.","version":"2.3.2","private":false,"scripts":{"serve":"vue-cli-service serve","build":"vue-cli-service build","build:npm":"rollup --config build/rollup.config.js && npm run cssmin","cssmin":"postcss dist/vue-flow-form.theme-minimal.css -o dist/vue-flow-form.theme-minimal.min.css && postcss dist/vue-flow-form.theme-green.css -o dist/vue-flow-form.theme-green.min.css && postcss dist/vue-flow-form.theme-purple.css -o dist/vue-flow-form.theme-purple.min.css","build:examples":"vue-cli-service build --dest dist/questionnaire examples/questionnaire/main.js && vue-cli-service build --dest dist/quiz examples/quiz/main.js && vue-cli-service build --dest dist/support-page examples/support-page/main.js"},"main":"dist/vue-flow-form.umd.js","module":"dist/vue-flow-form.esm.js","browser":"dist/vue-flow-form.common.js","unpkg":"dist/vue-flow-form.umd.min.js","eslintConfig":{"root":true,"extends":["plugin:vue/vue3-essential"],"rules":{"no-unused-vars":"off"}},"dependencies":{"vue-textarea-autosize":"^1.1.1","vue-the-mask":"^0.11.1"},"devDependencies":{"@rollup/plugin-alias":"^3.1.1","@rollup/plugin-buble":"^0.21.3","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-replace":"^3.0.0","@vue/cli-plugin-babel":"~5.0.8","@vue/cli-service":"~5.0.8","@vue/compiler-sfc":"^3.2.22","babel-helper-vue-jsx-merge-props":"^2.0.2","babel-plugin-syntax-jsx":"^6.18.0","babel-plugin-transform-vue-jsx":"^3.7.0","postcss":"^8.3.11","postcss-cli":"^9.0.2","postcss-import":"^12.0.1","rollup":"^2.60.0","rollup-plugin-cleanup":"^3.2.1","rollup-plugin-copy":"^3.4.0","rollup-plugin-css-only":"^3.1.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-postcss":"^4.0.1","rollup-plugin-terser":"^7.0.0","rollup-plugin-vue":"^6.0.0","vue":"^3.0.0","vue-loader-v16":"^16.0.0-beta.5.4"},"bugs":{"url":"https://github.com/ditdot-dev/vue-flow-form/issues"},"homepage":"https://www.ditdot.hr/en/vue-flow-form","jsdelivr":"dist/vue-flow-form.umd.min.js","keywords":["vue","vue3","vuejs","forms","survey-form","questionnaire","quiz","typeform","form-generator","vue-component","conversational-ui"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ditdot-dev/vue-flow-form.git"},"_id":"@aantix/vue-flow-form@2.3.2","gitHead":"a8f30b81543c2070589db49d9f326d2ec3287587","_nodeVersion":"21.5.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-6aWbwfo6I7XWyNATc3ogNjZ6nHRvG+3YY5NUK20qN2lNrUYwdkRIUa0YE3oten5jSyhad0ZaHKrUr4QqpZ0dCg==","shasum":"3dc3013922e269cb6385ac3c36f607931d3b4229","tarball":"https://registry.npmjs.org/@aantix/vue-flow-form/-/vue-flow-form-2.3.2.tgz","fileCount":18,"unpackedSize":1850981,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHHByndg5a6+RaFEdFIU1TwRRfzV/YsbSAWk5Tp8TnGHAiBXjdYiioJG0bTCXWbtwoUQRFl/55lVNPktKAfuDpl/tA=="}]},"_npmUser":{"name":"aantix","email":"jim.jones1@gmail.com"},"directories":{},"maintainers":[{"name":"aantix","email":"jim.jones1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-flow-form_2.3.2_1705700196080_0.9237679975026558"},"_hasShrinkwrap":false},"2.3.3":{"name":"@aantix/vue-flow-form","author":{"name":"DITDOT"},"description":"Create conversational conditional-logic forms with Vue.js. Components included.","version":"2.3.3","private":false,"scripts":{"serve":"vue-cli-service serve","build":"vue-cli-service build","build:npm":"rollup --config build/rollup.config.js && npm run cssmin","cssmin":"postcss dist/vue-flow-form.theme-minimal.css -o dist/vue-flow-form.theme-minimal.min.css && postcss dist/vue-flow-form.theme-green.css -o dist/vue-flow-form.theme-green.min.css && postcss dist/vue-flow-form.theme-purple.css -o dist/vue-flow-form.theme-purple.min.css","build:examples":"vue-cli-service build --dest dist/questionnaire examples/questionnaire/main.js && vue-cli-service build --dest dist/quiz examples/quiz/main.js && vue-cli-service build --dest dist/support-page examples/support-page/main.js"},"main":"dist/vue-flow-form.umd.js","module":"dist/vue-flow-form.esm.js","browser":"dist/vue-flow-form.common.js","unpkg":"dist/vue-flow-form.umd.min.js","eslintConfig":{"root":true,"extends":["plugin:vue/vue3-essential"],"rules":{"no-unused-vars":"off"}},"dependencies":{"vue-textarea-autosize":"^1.1.1","vue-the-mask":"^0.11.1"},"devDependencies":{"@rollup/plugin-alias":"^3.1.1","@rollup/plugin-buble":"^0.21.3","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-replace":"^3.0.0","@vue/cli-plugin-babel":"~5.0.8","@vue/cli-service":"~5.0.8","@vue/compiler-sfc":"^3.2.22","babel-helper-vue-jsx-merge-props":"^2.0.2","babel-plugin-syntax-jsx":"^6.18.0","babel-plugin-transform-vue-jsx":"^3.7.0","postcss":"^8.3.11","postcss-cli":"^9.0.2","postcss-import":"^12.0.1","rollup":"^2.60.0","rollup-plugin-cleanup":"^3.2.1","rollup-plugin-copy":"^3.4.0","rollup-plugin-css-only":"^3.1.0","rollup-plugin-delete":"^2.0.0","rollup-plugin-postcss":"^4.0.1","rollup-plugin-terser":"^7.0.0","rollup-plugin-vue":"^6.0.0","vue":"^3.0.0","vue-loader-v16":"^16.0.0-beta.5.4"},"bugs":{"url":"https://github.com/ditdot-dev/vue-flow-form/issues"},"homepage":"https://www.ditdot.hr/en/vue-flow-form","jsdelivr":"dist/vue-flow-form.umd.min.js","keywords":["vue","vue3","vuejs","forms","survey-form","questionnaire","quiz","typeform","form-generator","vue-component","conversational-ui"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/ditdot-dev/vue-flow-form.git"},"_id":"@aantix/vue-flow-form@2.3.3","gitHead":"a8f30b81543c2070589db49d9f326d2ec3287587","_nodeVersion":"21.5.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-MW35204Td6jr6kj8XF17ppQTKG2XKY2mmeLwgvvgh1xE8Krii2FnYZtJDeRbLBnrpO1qi+kbpVFgArbdSNR8Jw==","shasum":"72e1b8d02d5c86964c2ac34e8eee35e4045ec781","tarball":"https://registry.npmjs.org/@aantix/vue-flow-form/-/vue-flow-form-2.3.3.tgz","fileCount":36,"unpackedSize":606022,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBDdizN+wwMm4aZzB0V9dz0IeX0Pkuisxa+jBiwfp7MxAiEA2CMSP/efYcWHSImQG9zZgxImtsW3632sEE9/4kWShvs="}]},"_npmUser":{"name":"aantix","email":"jim.jones1@gmail.com"},"directories":{},"maintainers":[{"name":"aantix","email":"jim.jones1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-flow-form_2.3.3_1705712543243_0.020554598142499048"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-19T21:36:35.962Z","2.3.2":"2024-01-19T21:36:36.325Z","modified":"2024-01-20T01:02:23.604Z","2.3.3":"2024-01-20T01:02:23.406Z"},"maintainers":[{"name":"aantix","email":"jim.jones1@gmail.com"}],"description":"Create conversational conditional-logic forms with Vue.js. Components included.","homepage":"https://www.ditdot.hr/en/vue-flow-form","keywords":["vue","vue3","vuejs","forms","survey-form","questionnaire","quiz","typeform","form-generator","vue-component","conversational-ui"],"repository":{"type":"git","url":"git+https://github.com/ditdot-dev/vue-flow-form.git"},"author":{"name":"DITDOT"},"bugs":{"url":"https://github.com/ditdot-dev/vue-flow-form/issues"},"license":"MIT","readme":"# Vue Flow Form\n\nCreate conversational conditional-logic forms with Vue.js.\n\n<p>\n  <a href=\"https://github.com/ditdot-dev/vue-flow-form/blob/master/LICENSE\"><img src=\"https://img.shields.io/npm/l/@ditdot-dev/vue-flow-form.svg?sanitize=true&amp;color=41B883\" alt=\"License\" /></a>\n  <a href=\"https://www.npmjs.com/package/@ditdot-dev/vue-flow-form\"><img src=\"https://img.shields.io/npm/v/@ditdot-dev/vue-flow-form.svg?sanitize=true&amp;color=41B883\" alt=\"Version\" /></a>\n  <a href=\"https://cdnjs.com/libraries/vue-flow-form\"><img src=\"https://img.shields.io/cdnjs/v/vue-flow-form?color=yellow\" alt=\"cdnjs\" /></a>\n</p>\n\n<p align=\"center\">\n  <img src=\"https://www.ditdot.hr/demo/vff/visuals/v-form-green-full-rotate-02.png\" alt=\"v-form screenshots\">\n</p>\n\nStarting with v2.0.0, Vue Flow Form has migrated from Vue 2 to **Vue 3**. If you're looking for README for Vue Flow Form v1.1.7, which works with Vue 2, <a href=\"https://github.com/ditdot-dev/vue-flow-form/blob/bc471447a6aadbbda7df9eb950566ed03a0d5e37/README.md\">check it out here</a>.\n\n## Live Demos\n\n* [Questionnaire example](https://www.ditdot.hr/demo/vff/questionnaire/)\n* [Support page example](https://www.ditdot.hr/demo/vff/support-page/)\n* [Quiz example](https://www.ditdot.hr/demo/vff/quiz/)\n\n## Project Documentation\n\n* [Guide](https://www.ditdot.hr/en/docs/vue-flow-form-guide)\n\n## Example Project\n\nRequirements:\n\n* [Node.js](https://nodejs.org/en/) version 10.0.0 or above (12.0.0+ recommended)\n* [npm](https://www.npmjs.com/get-npm) version 5+ (or [yarn](https://yarnpkg.com/lang/en/docs/install/) version 1.16+)\n* [Git](https://git-scm.com/)\n\nAfter checking the prerequisites, follow these simple steps to install and use Vue Form:\n\n```shell\n# clone the repo\n$ git clone https://github.com/ditdot-dev/vue-flow-form.git myproject\n\n# go into app's directory and install dependencies:\n$ cd myproject\n```\n\nIf you use npm:\n\n```shell\n$ npm install\n\n# serve with hot reload at localhost:8080 by default.\n$ npm run serve\n\n# build for production\n$ npm run build\n```\n\nIf you use yarn:\n\n```shell\n$ yarn install\n\n# serve with hot reload at localhost:8080 by default.\n$ yarn serve\n\n# build for production\n$ yarn build\n```\n\nMade with [Vue.js](https://vuejs.org/)\n\n## Usage as npm Package\n\nIf you don't already have an existing Vue project, the easiest way to create one is to use [Vue CLI](https://cli.vuejs.org/):\n\n(For issues with Vue 3.13 and CLI 4 check [here](https://github.com/vuejs/vue-next/issues/4052))\n\n```shell\n$ npm install -g @vue/cli\n# OR\n$ yarn global add @vue/cli\n```\n\nAnd then create a project (refer to [Vue CLI documentation](https://cli.vuejs.org/guide/) and [issue tracker](https://github.com/vuejs/vue-cli/issues) for potential problems on Windows):\n\n```shell\n$ vue create my-project\n$ cd my-project\n```\n\nTo add Vue Flow Form as a dependency to your Vue project, use the following:\n\n```shell\n$ npm install @ditdot-dev/vue-flow-form --save\n```\n\nAnd then in your App.vue file:\n\n```html\n<template>\n  <flow-form v-bind:questions=\"questions\" v-bind:language=\"language\" />\n</template>\n\n<script>\n  // Import necessary components and classes\n  import { FlowForm, QuestionModel, QuestionType, ChoiceOption, LanguageModel } from '@ditdot-dev/vue-flow-form'\n\n  export default {\n    name: 'example',\n    components: {\n      FlowForm\n    },\n    data() {\n      return {\n        language: new LanguageModel({\n          // Your language definitions here (optional).\n          // You can leave out this prop if you want to use the default definitions.\n        }),\n        questions: [\n          // QuestionModel array\n          new QuestionModel({\n            title: 'Question',\n            type: QuestionType.MultipleChoice,\n            options: [\n              new ChoiceOption({\n                label: 'Answer'\n              })\n            ]\n          })\n        ]\n      }\n    }\n  }\n</script>\n\n<style>\n  /* Import Vue Flow Form base CSS */\n  @import '~@ditdot-dev/vue-flow-form/dist/vue-flow-form.css';\n  /* Import one of the Vue Flow Form CSS themes (optional) */\n  @import '~@ditdot-dev/vue-flow-form/dist/vue-flow-form.theme-minimal.css';\n  /* @import '~@ditdot-dev/vue-flow-form/dist/vue-flow-form.theme-green.css'; */\n  /* @import '~@ditdot-dev/vue-flow-form/dist/vue-flow-form.theme-purple.css'; */\n</style>\n```\n\n## Usage with Plain JavaScript via CDN\n\nHTML:\n\n```html\n<!DOCTYPE html>\n<html>\n  <head>\n    <meta charset=\"UTF-8\">\n    <!-- Requires Vue version 3.x -->\n    <script src=\"https://unpkg.com/vue@next\"></script>\n    <!-- Flow Form -->\n    <script src=\"https://unpkg.com/@ditdot-dev/vue-flow-form@2.3.2\"></script>\n    <!-- Flow Form base CSS -->\n    <link rel=\"stylesheet\" href=\"https://unpkg.com/@ditdot-dev/vue-flow-form@2.3.2/dist/vue-flow-form.min.css\">\n    <!-- Optional theme.css -->\n    <link rel=\"stylesheet\" href=\"https://unpkg.com/@ditdot-dev/vue-flow-form@2.3.2/dist/vue-flow-form.theme-minimal.min.css\">\n    <!-- Optional font -->\n    <link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;900&amp;display=swap\">\n  </head>\n  <body>\n    <div id=\"app\"></div>\n    <script src=\"app.js\"></script>\n  </body>\n</html>\n```\n\nJavaScript (content of app.js):\n\n```js\nvar app = Vue.createApp({\n  el: '#app',\n  template: '<flow-form v-bind:questions=\"questions\" v-bind:language=\"language\" />',\n  data: function() {\n    return {\n      language: new VueFlowForm.LanguageModel({\n        // Your language definitions here (optional).\n        // You can leave out this prop if you want to use the default definitions.\n      }),\n      questions: [\n        new VueFlowForm.QuestionModel({\n          title: 'Question',\n          type: VueFlowForm.QuestionType.MultipleChoice,\n          options: [\n            new VueFlowForm.ChoiceOption({\n              label: 'Answer'\n            })\n          ]\n        })\n      ]\n    }\n  }\n}).component('FlowForm', VueFlowForm.FlowForm);\n\nconst vm = app.mount('#app');\n```\n\n## Changelog\n\nChanges for each release are documented in the [release notes](https://github.com/ditdot-dev/vue-flow-form/releases).\n\n## Stay in Touch\n\n* [Twitter](https://twitter.com/ditdot_info)\n* [DITDOT](https://www.ditdot.hr/en)\n\n## License\n\n[MIT](https://github.com/ditdot-dev/vue-flow-form/blob/master/LICENSE) license.\n\nCopyright (c) 2020 - present, DITDOT Ltd.\n","readmeFilename":"README.md"}