{"id":19658138,"url":"https://github.com/cdaringe/ampersand-form-manager-view","last_synced_at":"2026-05-12T21:03:54.485Z","repository":{"id":57177442,"uuid":"38560018","full_name":"cdaringe/ampersand-form-manager-view","owner":"cdaringe","description":"Manage groups of ampersand-forms!","archived":false,"fork":false,"pushed_at":"2023-12-15T14:35:51.000Z","size":672,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-20T22:04:27.201Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdaringe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-07-05T07:01:58.000Z","updated_at":"2015-09-21T21:00:25.000Z","dependencies_parsed_at":"2024-11-11T15:38:46.888Z","dependency_job_id":null,"html_url":"https://github.com/cdaringe/ampersand-form-manager-view","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cdaringe/ampersand-form-manager-view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fampersand-form-manager-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fampersand-form-manager-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fampersand-form-manager-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fampersand-form-manager-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdaringe","download_url":"https://codeload.github.com/cdaringe/ampersand-form-manager-view/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fampersand-form-manager-view/sbom","scorecard":{"id":269544,"data":{"date":"2025-08-11","repo":{"name":"github.com/cdaringe/ampersand-form-manager-view","commit":"d7a0e489a54169d6b233b2006c27546144f287d0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/19 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"56 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-qcm3-vfq5-wfr2","Warn: Project is vulnerable to: GHSA-r23g-3qw4-gfh2","Warn: Project is vulnerable to: GHSA-j6gc-792m-qgm2","Warn: Project is vulnerable to: GHSA-pj73-v5mw-pm9j","Warn: Project is vulnerable to: GHSA-2gw2-8q9w-cw8p","Warn: Project is vulnerable to: GHSA-34hf-g744-jw64","Warn: Project is vulnerable to: GHSA-4xjh-m3qx-49wc","Warn: Project is vulnerable to: GHSA-jphg-qwrw-7w9g","Warn: Project is vulnerable to: GHSA-mqm2-cgpr-p4m6","Warn: Project is vulnerable to: GHSA-242x-7cm6-4w8j","Warn: Project is vulnerable to: GHSA-286v-pcf5-25rc","Warn: Project is vulnerable to: GHSA-2qc6-mcvw-92cw","Warn: Project is vulnerable to: GHSA-2rr5-8q37-2w7h","Warn: Project is vulnerable to: GHSA-353f-x4gh-cqq8","Warn: Project is vulnerable to: GHSA-4hm9-844j-jmxp","Warn: Project is vulnerable to: GHSA-59gp-qqm7-cw4j","Warn: Project is vulnerable to: GHSA-5w6v-399v-w3cc","Warn: Project is vulnerable to: GHSA-6qvp-r6r3-9p7h","Warn: Project is vulnerable to: GHSA-7553-jr98-vx47","Warn: Project is vulnerable to: GHSA-7hp2-xwpj-95jq","Warn: Project is vulnerable to: GHSA-7rrm-v45f-jp64","Warn: Project is vulnerable to: GHSA-882p-jqgm-f45g","Warn: Project is vulnerable to: GHSA-8c56-cpmw-89x7","Warn: Project is vulnerable to: GHSA-cf46-6xxh-pc75","Warn: Project is vulnerable to: GHSA-cgx6-hpwq-fhv5","Warn: Project is vulnerable to: GHSA-cr5j-953j-xw5p","Warn: Project is vulnerable to: GHSA-crjr-9rc5-ghw8","Warn: Project is vulnerable to: GHSA-fq42-c5rg-92c2","Warn: Project is vulnerable to: GHSA-fr52-4hqw-p27f","Warn: Project is vulnerable to: GHSA-gx8x-g87m-h5q6","Warn: Project is vulnerable to: GHSA-jc36-42cf-vqwj","Warn: Project is vulnerable to: GHSA-jw9f-hh49-cvp9","Warn: Project is vulnerable to: GHSA-jxjr-5h69-qw3w","Warn: Project is vulnerable to: GHSA-mrxw-mxhj-p664","Warn: Project is vulnerable to: GHSA-pf6m-fxpq-fg8v","Warn: Project is vulnerable to: GHSA-pxvg-2qj5-37jq","Warn: Project is vulnerable to: GHSA-q7wx-62r7-j2x7","Warn: Project is vulnerable to: GHSA-qxcg-xjjg-66mj","Warn: Project is vulnerable to: GHSA-r58r-74gx-6wx3","Warn: Project is vulnerable to: GHSA-r95h-9x8f-r3f7","Warn: Project is vulnerable to: GHSA-v4f8-2847-rwm7","Warn: Project is vulnerable to: GHSA-v6gp-9mmm-c6p5","Warn: Project is vulnerable to: GHSA-vmfx-gcfq-wvm2","Warn: Project is vulnerable to: GHSA-vr8q-g5c7-m54m","Warn: Project is vulnerable to: GHSA-vvfq-8hwr-qm4m","Warn: Project is vulnerable to: GHSA-x2fm-93ww-ggvx","Warn: Project is vulnerable to: GHSA-x7rv-cr6v-4vm4","Warn: Project is vulnerable to: GHSA-xc9x-jj77-9p9j","Warn: Project is vulnerable to: GHSA-xh29-r2w5-wx8m","Warn: Project is vulnerable to: GHSA-xjqg-9jvg-fgx2","Warn: Project is vulnerable to: GHSA-xxx9-3xcr-gjj3","Warn: Project is vulnerable to: GHSA-7322-9mx6-5j2m","Warn: Project is vulnerable to: GHSA-q3wr-qw3g-3p4h","Warn: Project is vulnerable to: GHSA-5cm2-9h8c-rvfx","Warn: Project is vulnerable to: GHSA-jj47-x69x-mxrm","Warn: Project is vulnerable to: GHSA-wwh7-4jw9-33x6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T12:59:24.032Z","repository_id":57177442,"created_at":"2025-08-17T12:59:24.032Z","updated_at":"2025-08-17T12:59:24.032Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32956837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T15:36:13.626Z","updated_at":"2026-05-12T21:03:54.448Z","avatar_url":"https://github.com/cdaringe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[ ![Codeship Status for cdaringe/ampersand-form-manager-view](https://codeship.com/projects/dd792fa0-0511-0133-1aec-265ba245c2c5/status?branch=master)](https://codeship.com/projects/89424)\n\n# ampersand-form-manager-view\nManage groups of forms!  Use to:\n- render sets of forms within a form-wrapper,\n- gather meta about a collection of forms, or\n- display/extract data about the group of forms.\n\n# demo\nSee github.io page here: [cdaringe.github.io/ampersand-form-manager-view](http://cdaringe.github.io/ampersand-form-manager-view/)\n\n## micro-demos\nRun `npm run demo` to check out each example.  Note, these are tightly coupled with the test suite.\n\n## why would i use this?\nUse this if you need to present a series of [forms](AmpersandJS/ampersand-form-view) to a user, but wish to collect the data from the full form set all at once.  Often times a client may need to go through several pages/views to fill in all of their information in non-trivial transactions.  This package makes it easy to present several forms, then agregate the composite result into a single js object.  Under the same thought, it is an excellent questionnaire foundation.\n\nIn a nutshell, this package can be used to manage various forms as though they were subsets of a larger, grander form.\n\n\n## api\n\n### methods\n\n#### constructor(opts)\n- autoAppend (boolean // default: true)\n    - add forms (FormView instances) to container, vs. allowing each form to bind to its own el\n- completeCallback (Function // default: noop)\n    - Fired when all forms are complete (valid).  This will fire immediately if all forms are valid on initialization\n- cycle (boolean // default: false)\n    - determines whether the form set is circular (e.g. next() sets the current form to the first form when the last form selected)\n- eagerLoad (boolean) Render form in `formContainer` on init\n    - `true` //=\u003e loads first form\n    - `function (formsCollection, CurrentView) { ... }` //=\u003e user specific actions to be executed at load time.\n- formContainer (Element|string|function // default: 'form-container')\n    - node that forms rendered into. if a string is provided, it must be a ref to a `data-hook` attr on a node.\n- forms (Collection|array|Function)\n    - collection of forms to render in view.  Function must return Collection or array.  Async not yet supported (PR welcomed).\n- freezeState (boolean // default: true)\n    - on each next/prev scroll through the form collection, does a `form.reset`\n- singleObject: (boolean // default: false)\n    - data by default is returned as an array of objects (results of all forms `.data` calls).  This mode flattens all data into a single object.\n- value [FormView]\n    default form loaded in view\n- validOnly (boolean // default: false)\n    - next/prev form calls will not be allowed to change form view unless current form valid\n\n#### next() / prev()\nSets the view to the next/previous form.  If no forms available, does nothing. If `cycle` is permitted on the form manager view, the views will rotate circularly.\n\n#### setForm([FormView])\nSets the View's switcher to the requested form.  Throws Error if the requested FormView not present\n\n\n### properties\n\n- `complete` [boolean] - `true` when all forms in `forms` collection are `valid`.\n- `completed` [Array] - returns an array of valid form views\n- `current` [FormView] - current form rendered by view\n- `remaining` [Array] - returns an array of invalid form views\n\n### usage\n- When extending FormManagerView to customize the `template ([String|Function])`, ensure that it contain an element with `data-hook=\"form-container\"` to render the forms in *if* the view is to be rendered.  The default view may be used, or, if you may use `formContainer` in the constructor instead.\n\n\n# Todo\n* KNOWN BUG: discrepancy between rendered `afmv.data` and all composite `form`s `.data`s. events dropped?  see `bug1` in src\n* `eagerLoad: all` support (lo-pro)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdaringe%2Fampersand-form-manager-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdaringe%2Fampersand-form-manager-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdaringe%2Fampersand-form-manager-view/lists"}