survey-js-ui 1.12.21 → 2.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +77 -51
- package/index.html +18 -0
- package/package.json +3 -3
- package/survey-js-ui.js +9753 -8077
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +2 -628
- package/survey-js-ui.min.js.LICENSE.txt +493 -0
- package/typings/packages/survey-react-ui/entries/react-ui-model.d.ts +86 -86
- package/typings/packages/survey-react-ui/src/boolean-checkbox.d.ts +6 -6
- package/typings/packages/survey-react-ui/src/boolean-radio.d.ts +8 -8
- package/typings/packages/survey-react-ui/src/boolean.d.ts +17 -17
- package/typings/packages/survey-react-ui/src/components/action-bar/action-bar-item-dropdown.d.ts +9 -9
- package/typings/packages/survey-react-ui/src/components/action-bar/action-bar-item.d.ts +20 -20
- package/typings/packages/survey-react-ui/src/components/action-bar/action-bar-separator.d.ts +5 -5
- package/typings/packages/survey-react-ui/src/components/action-bar/action-bar.d.ts +21 -21
- package/typings/packages/survey-react-ui/src/components/brand-info.d.ts +4 -4
- package/typings/packages/survey-react-ui/src/components/character-counter.d.ts +11 -11
- package/typings/packages/survey-react-ui/src/components/components-container.d.ts +4 -4
- package/typings/packages/survey-react-ui/src/components/file/file-choose-button.d.ts +8 -8
- package/typings/packages/survey-react-ui/src/components/file/file-item.d.ts +13 -13
- package/typings/packages/survey-react-ui/src/components/file/file-page.d.ts +11 -11
- package/typings/packages/survey-react-ui/src/components/file/file-preview.d.ts +11 -11
- package/typings/packages/survey-react-ui/src/components/header.d.ts +22 -22
- package/typings/packages/survey-react-ui/src/components/list/list-item-content.d.ts +14 -14
- package/typings/packages/survey-react-ui/src/components/list/list-item-group.d.ts +14 -14
- package/typings/packages/survey-react-ui/src/components/list/list-item.d.ts +16 -16
- package/typings/packages/survey-react-ui/src/components/list/list.d.ts +23 -23
- package/typings/packages/survey-react-ui/src/components/loading-indicator.d.ts +4 -4
- package/typings/packages/survey-react-ui/src/components/matrix/row.d.ts +20 -20
- package/typings/packages/survey-react-ui/src/components/matrix-actions/detail-button/detail-button.d.ts +12 -12
- package/typings/packages/survey-react-ui/src/components/matrix-actions/drag-drop-icon/drag-drop-icon.d.ts +7 -7
- package/typings/packages/survey-react-ui/src/components/matrix-actions/remove-button/remove-button.d.ts +9 -9
- package/typings/packages/survey-react-ui/src/components/notifier.d.ts +11 -11
- package/typings/packages/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-add-btn.d.ts +12 -12
- package/typings/packages/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-next-btn.d.ts +6 -6
- package/typings/packages/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-prev-btn.d.ts +6 -6
- package/typings/packages/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-progress-text.d.ts +5 -5
- package/typings/packages/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-remove-btn.d.ts +6 -6
- package/typings/packages/survey-react-ui/src/components/popup/popup-modal.d.ts +23 -23
- package/typings/packages/survey-react-ui/src/components/popup/popup.d.ts +39 -39
- package/typings/packages/survey-react-ui/src/components/question-error.d.ts +10 -10
- package/typings/packages/survey-react-ui/src/components/rating/rating-dropdown-item.d.ts +12 -12
- package/typings/packages/survey-react-ui/src/components/rating/rating-item-smiley.d.ts +5 -5
- package/typings/packages/survey-react-ui/src/components/rating/rating-item-star.d.ts +5 -5
- package/typings/packages/survey-react-ui/src/components/rating/rating-item.d.ts +22 -22
- package/typings/packages/survey-react-ui/src/components/skeleton.d.ts +4 -4
- package/typings/packages/survey-react-ui/src/components/survey-actions/survey-nav-button.d.ts +8 -8
- package/typings/packages/survey-react-ui/src/components/survey-header/logo-image.d.ts +11 -11
- package/typings/packages/survey-react-ui/src/components/survey-header/survey-header.d.ts +17 -17
- package/typings/packages/survey-react-ui/src/components/svg-icon/svg-icon.d.ts +9 -9
- package/typings/packages/survey-react-ui/src/components/text-area.d.ts +17 -17
- package/typings/packages/survey-react-ui/src/components/title/title-actions.d.ts +7 -7
- package/typings/packages/survey-react-ui/src/components/title/title-content.d.ts +10 -10
- package/typings/packages/survey-react-ui/src/components/title/title-element.d.ts +7 -7
- package/typings/packages/survey-react-ui/src/custom-widget.d.ts +12 -12
- package/typings/packages/survey-react-ui/src/dropdown-base.d.ts +26 -26
- package/typings/packages/survey-react-ui/src/dropdown-item.d.ts +14 -14
- package/typings/packages/survey-react-ui/src/dropdown-select.d.ts +6 -6
- package/typings/packages/survey-react-ui/src/element-factory.d.ts +9 -9
- package/typings/packages/survey-react-ui/src/element-header.d.ts +5 -5
- package/typings/packages/survey-react-ui/src/element.d.ts +19 -19
- package/typings/packages/survey-react-ui/src/flow-panel.d.ts +22 -22
- package/typings/packages/survey-react-ui/src/image.d.ts +10 -10
- package/typings/packages/survey-react-ui/src/imagepicker.d.ts +25 -25
- package/typings/packages/survey-react-ui/src/page.d.ts +11 -11
- package/typings/packages/survey-react-ui/src/panel-base.d.ts +25 -25
- package/typings/packages/survey-react-ui/src/panel.d.ts +16 -16
- package/typings/packages/survey-react-ui/src/progress.d.ts +9 -9
- package/typings/packages/survey-react-ui/src/progressButtons.d.ts +19 -19
- package/typings/packages/survey-react-ui/src/progressToc.d.ts +5 -5
- package/typings/packages/survey-react-ui/src/rating-dropdown.d.ts +8 -8
- package/typings/packages/survey-react-ui/src/react-popup-survey.d.ts +24 -24
- package/typings/packages/survey-react-ui/src/reactSurvey.d.ts +41 -41
- package/typings/packages/survey-react-ui/src/reactSurveyNavigationBase.d.ts +10 -10
- package/typings/packages/survey-react-ui/src/reactquestion.d.ts +82 -82
- package/typings/packages/survey-react-ui/src/reactquestion_buttongroup.d.ts +23 -23
- package/typings/packages/survey-react-ui/src/reactquestion_checkbox.d.ts +37 -37
- package/typings/packages/survey-react-ui/src/reactquestion_comment.d.ts +18 -18
- package/typings/packages/survey-react-ui/src/reactquestion_custom.d.ts +13 -13
- package/typings/packages/survey-react-ui/src/reactquestion_dropdown.d.ts +7 -7
- package/typings/packages/survey-react-ui/src/reactquestion_element.d.ts +67 -67
- package/typings/packages/survey-react-ui/src/reactquestion_empty.d.ts +8 -8
- package/typings/packages/survey-react-ui/src/reactquestion_expression.d.ts +8 -8
- package/typings/packages/survey-react-ui/src/reactquestion_factory.d.ts +8 -8
- package/typings/packages/survey-react-ui/src/reactquestion_file.d.ts +14 -14
- package/typings/packages/survey-react-ui/src/reactquestion_html.d.ts +13 -13
- package/typings/packages/survey-react-ui/src/reactquestion_matrix.d.ts +33 -33
- package/typings/packages/survey-react-ui/src/reactquestion_matrixdropdown.d.ts +4 -4
- package/typings/packages/survey-react-ui/src/reactquestion_matrixdropdownbase.d.ts +30 -30
- package/typings/packages/survey-react-ui/src/reactquestion_matrixdynamic.d.ts +20 -20
- package/typings/packages/survey-react-ui/src/reactquestion_multipletext.d.ts +22 -22
- package/typings/packages/survey-react-ui/src/reactquestion_paneldynamic.d.ts +28 -28
- package/typings/packages/survey-react-ui/src/reactquestion_radiogroup.d.ts +36 -36
- package/typings/packages/survey-react-ui/src/reactquestion_ranking.d.ts +30 -30
- package/typings/packages/survey-react-ui/src/reactquestion_rating.d.ts +10 -10
- package/typings/packages/survey-react-ui/src/reactquestion_tagbox.d.ts +10 -10
- package/typings/packages/survey-react-ui/src/reactquestion_text.d.ts +11 -11
- package/typings/packages/survey-react-ui/src/reactsurveymodel.d.ts +9 -9
- package/typings/packages/survey-react-ui/src/reacttimerpanel.d.ts +11 -11
- package/typings/packages/survey-react-ui/src/row.d.ts +21 -21
- package/typings/packages/survey-react-ui/src/signaturepad.d.ts +11 -11
- package/typings/packages/survey-react-ui/src/string-editor.d.ts +11 -11
- package/typings/packages/survey-react-ui/src/string-viewer.d.ts +15 -15
- package/typings/packages/survey-react-ui/src/svgbundle.d.ts +9 -9
- package/typings/packages/survey-react-ui/src/tagbox-filter.d.ts +23 -23
- package/typings/packages/survey-react-ui/src/tagbox-item.d.ts +10 -10
- package/typings/src/entries/core-export.d.ts +3 -3
- package/typings/src/entries/js-ui.d.ts +8 -8
- package/typings/survey-js-ui/entries/index.d.ts +7 -0
- package/typings/survey-react-ui/entries/react-ui-model.d.ts +86 -0
- package/typings/survey-react-ui/src/boolean-checkbox.d.ts +6 -0
- package/typings/survey-react-ui/src/boolean-radio.d.ts +8 -0
- package/typings/survey-react-ui/src/boolean.d.ts +17 -0
- package/typings/survey-react-ui/src/components/action-bar/action-bar-item-dropdown.d.ts +9 -0
- package/typings/survey-react-ui/src/components/action-bar/action-bar-item.d.ts +25 -0
- package/typings/survey-react-ui/src/components/action-bar/action-bar-separator.d.ts +5 -0
- package/typings/survey-react-ui/src/components/action-bar/action-bar.d.ts +21 -0
- package/typings/survey-react-ui/src/components/brand-info.d.ts +4 -0
- package/typings/survey-react-ui/src/components/character-counter.d.ts +11 -0
- package/typings/survey-react-ui/src/components/components-container.d.ts +4 -0
- package/typings/survey-react-ui/src/components/file/file-choose-button.d.ts +8 -0
- package/typings/survey-react-ui/src/components/file/file-item.d.ts +13 -0
- package/typings/survey-react-ui/src/components/file/file-page.d.ts +11 -0
- package/typings/survey-react-ui/src/components/file/file-preview.d.ts +11 -0
- package/typings/survey-react-ui/src/components/header.d.ts +22 -0
- package/typings/survey-react-ui/src/components/list/list-item-content.d.ts +14 -0
- package/typings/survey-react-ui/src/components/list/list-item-group.d.ts +14 -0
- package/typings/survey-react-ui/src/components/list/list-item.d.ts +16 -0
- package/typings/survey-react-ui/src/components/list/list.d.ts +23 -0
- package/typings/survey-react-ui/src/components/loading-indicator.d.ts +4 -0
- package/typings/survey-react-ui/src/components/matrix/row.d.ts +20 -0
- package/typings/survey-react-ui/src/components/matrix-actions/detail-button/detail-button.d.ts +12 -0
- package/typings/survey-react-ui/src/components/matrix-actions/drag-drop-icon/drag-drop-icon.d.ts +7 -0
- package/typings/survey-react-ui/src/components/matrix-actions/remove-button/remove-button.d.ts +9 -0
- package/typings/survey-react-ui/src/components/notifier.d.ts +11 -0
- package/typings/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-add-btn.d.ts +12 -0
- package/typings/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-next-btn.d.ts +6 -0
- package/typings/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-prev-btn.d.ts +6 -0
- package/typings/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-progress-text.d.ts +5 -0
- package/typings/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-remove-btn.d.ts +6 -0
- package/typings/survey-react-ui/src/components/popup/popup-modal.d.ts +23 -0
- package/typings/survey-react-ui/src/components/popup/popup.d.ts +39 -0
- package/typings/survey-react-ui/src/components/question-error.d.ts +10 -0
- package/typings/survey-react-ui/src/components/rating/rating-dropdown-item.d.ts +12 -0
- package/typings/survey-react-ui/src/components/rating/rating-item-smiley.d.ts +5 -0
- package/typings/survey-react-ui/src/components/rating/rating-item-star.d.ts +5 -0
- package/typings/survey-react-ui/src/components/rating/rating-item.d.ts +22 -0
- package/typings/survey-react-ui/src/components/skeleton.d.ts +4 -0
- package/typings/survey-react-ui/src/components/survey-actions/survey-nav-button.d.ts +8 -0
- package/typings/survey-react-ui/src/components/survey-header/logo-image.d.ts +11 -0
- package/typings/survey-react-ui/src/components/survey-header/survey-header.d.ts +17 -0
- package/typings/survey-react-ui/src/components/svg-icon/svg-icon.d.ts +9 -0
- package/typings/survey-react-ui/src/components/text-area.d.ts +17 -0
- package/typings/survey-react-ui/src/components/title/title-actions.d.ts +7 -0
- package/typings/survey-react-ui/src/components/title/title-content.d.ts +10 -0
- package/typings/survey-react-ui/src/components/title/title-element.d.ts +7 -0
- package/typings/survey-react-ui/src/custom-widget.d.ts +12 -0
- package/typings/survey-react-ui/src/dropdown-base.d.ts +26 -0
- package/typings/survey-react-ui/src/dropdown-item.d.ts +14 -0
- package/typings/survey-react-ui/src/dropdown-select.d.ts +6 -0
- package/typings/survey-react-ui/src/element-factory.d.ts +9 -0
- package/typings/survey-react-ui/src/element-header.d.ts +5 -0
- package/typings/survey-react-ui/src/element.d.ts +19 -0
- package/typings/survey-react-ui/src/flow-panel.d.ts +22 -0
- package/typings/survey-react-ui/src/image.d.ts +10 -0
- package/typings/survey-react-ui/src/imagepicker.d.ts +25 -0
- package/typings/survey-react-ui/src/page.d.ts +11 -0
- package/typings/survey-react-ui/src/panel-base.d.ts +25 -0
- package/typings/survey-react-ui/src/panel.d.ts +16 -0
- package/typings/survey-react-ui/src/progress.d.ts +9 -0
- package/typings/survey-react-ui/src/progressButtons.d.ts +19 -0
- package/typings/survey-react-ui/src/progressToc.d.ts +5 -0
- package/typings/survey-react-ui/src/rating-dropdown.d.ts +8 -0
- package/typings/survey-react-ui/src/react-popup-survey.d.ts +24 -0
- package/typings/survey-react-ui/src/reactSurvey.d.ts +39 -0
- package/typings/survey-react-ui/src/reactSurveyNavigationBase.d.ts +10 -0
- package/typings/survey-react-ui/src/reactquestion.d.ts +82 -0
- package/typings/survey-react-ui/src/reactquestion_buttongroup.d.ts +23 -0
- package/typings/survey-react-ui/src/reactquestion_checkbox.d.ts +37 -0
- package/typings/survey-react-ui/src/reactquestion_comment.d.ts +18 -0
- package/typings/survey-react-ui/src/reactquestion_custom.d.ts +13 -0
- package/typings/survey-react-ui/src/reactquestion_dropdown.d.ts +7 -0
- package/typings/survey-react-ui/src/reactquestion_element.d.ts +67 -0
- package/typings/survey-react-ui/src/reactquestion_empty.d.ts +8 -0
- package/typings/survey-react-ui/src/reactquestion_expression.d.ts +8 -0
- package/typings/survey-react-ui/src/reactquestion_factory.d.ts +8 -0
- package/typings/survey-react-ui/src/reactquestion_file.d.ts +14 -0
- package/typings/survey-react-ui/src/reactquestion_html.d.ts +13 -0
- package/typings/survey-react-ui/src/reactquestion_matrix.d.ts +33 -0
- package/typings/survey-react-ui/src/reactquestion_matrixdropdown.d.ts +4 -0
- package/typings/survey-react-ui/src/reactquestion_matrixdropdownbase.d.ts +30 -0
- package/typings/survey-react-ui/src/reactquestion_matrixdynamic.d.ts +20 -0
- package/typings/survey-react-ui/src/reactquestion_multipletext.d.ts +22 -0
- package/typings/survey-react-ui/src/reactquestion_paneldynamic.d.ts +28 -0
- package/typings/survey-react-ui/src/reactquestion_radiogroup.d.ts +36 -0
- package/typings/survey-react-ui/src/reactquestion_ranking.d.ts +30 -0
- package/typings/survey-react-ui/src/reactquestion_rating.d.ts +10 -0
- package/typings/survey-react-ui/src/reactquestion_tagbox.d.ts +10 -0
- package/typings/survey-react-ui/src/reactquestion_text.d.ts +11 -0
- package/typings/survey-react-ui/src/reactsurveymodel.d.ts +9 -0
- package/typings/survey-react-ui/src/reacttimerpanel.d.ts +11 -0
- package/typings/survey-react-ui/src/row.d.ts +21 -0
- package/typings/survey-react-ui/src/signaturepad.d.ts +11 -0
- package/typings/survey-react-ui/src/string-editor.d.ts +11 -0
- package/typings/survey-react-ui/src/string-viewer.d.ts +15 -0
- package/typings/survey-react-ui/src/svgbundle.d.ts +9 -0
- package/typings/survey-react-ui/src/tagbox-filter.d.ts +23 -0
- package/typings/survey-react-ui/src/tagbox-item.d.ts +10 -0
package/README.md
CHANGED
|
@@ -1,51 +1,77 @@
|
|
|
1
|
-
# SurveyJS Form Library UI for HTML/CSS/JavaScript Applications
|
|
2
|
-
|
|
3
|
-
<video src="https://github.com/surveyjs/survey-library/assets/22315929/b24a68bf-d703-4096-835b-752f5f610aa6"></video>
|
|
4
|
-
|
|
5
|
-
[](https://dev.azure.com/SurveyJS/SurveyJS%20Integration%20Tests/_build/latest?definitionId=7&branchName=master)
|
|
6
|
-
[](LICENSE)
|
|
7
|
-
<a href="https://github.com/DevExpress/testcafe">
|
|
8
|
-
<img alt="Tested with TestCafe" src="https://img.shields.io/badge/tested%20with-TestCafe-2fa4cf.svg">
|
|
9
|
-
</a>
|
|
10
|
-
<a href="https://github.com/surveyjs/survey-library/issues">
|
|
11
|
-
<img alt="Issues" title="Open Issues" src="https://img.shields.io/github/issues/surveyjs/survey-library.svg">
|
|
12
|
-
</a>
|
|
13
|
-
<a href="https://github.com/surveyjs/survey-library/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed+">
|
|
14
|
-
<img alt="Closed issues" title="Closed Issues" src="https://img.shields.io/github/issues-closed/surveyjs/survey-library.svg">
|
|
15
|
-
</a>
|
|
16
|
-
|
|
17
|
-
A free and open-source MIT-licensed JavaScript form builder library that allows you to design dynamic, data-driven, multi-language survey forms and run them in your vanilla JS applications or integrate them with any frontend framework.
|
|
18
|
-
|
|
19
|
-
## Features
|
|
20
|
-
|
|
21
|
-
- Dynamic forms, surveys, polls, and quizzes for your JavaScript application
|
|
22
|
-
- Integration with [React](https://www.npmjs.com/package/survey-react-ui), [Angular](https://www.npmjs.com/package/survey-angular-ui), and [Vue](https://www.npmjs.com/package/survey-vue3-ui)
|
|
23
|
-
- Possibility of integration with any other frontend framework
|
|
24
|
-
- Tiny and fast [Preact](https://preactjs.com/) library at the core
|
|
25
|
-
- 20+ built-in question types and support for custom question types
|
|
26
|
-
- Built-in themes and CSS customization
|
|
27
|
-
- Answer validation
|
|
28
|
-
- TypeScript support
|
|
29
|
-
- Community-supported UI localization to 50+ languages
|
|
30
|
-
- Integration with any backend framework (examples for PHP, NodeJS, and ASP.NET included)
|
|
31
|
-
- Compatibility with any server + database combination
|
|
32
|
-
- Third-party component integration
|
|
33
|
-
|
|
34
|
-
## Get Started
|
|
35
|
-
|
|
36
|
-
To get started with SurveyJS Form Library UI for HTML/CSS/JavaScript applications, refer to the following tutorial: [Add a Survey to a JavaScript Application](https://surveyjs.io/form-library/documentation/get-started-html-css-javascript).
|
|
37
|
-
|
|
38
|
-
## Resources
|
|
39
|
-
|
|
40
|
-
- [Website](https://surveyjs.io/)
|
|
41
|
-
- [Documentation](https://surveyjs.io/form-library/documentation/overview)
|
|
42
|
-
- [Live Examples](https://surveyjs.io/form-library/examples/nps-question/)
|
|
43
|
-
- [What's New](https://surveyjs.io/WhatsNew)
|
|
44
|
-
|
|
45
|
-
## Build SurveyJS Form Library UI from Sources
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
# SurveyJS Form Library UI for HTML/CSS/JavaScript Applications
|
|
2
|
+
|
|
3
|
+
<video src="https://github.com/surveyjs/survey-library/assets/22315929/b24a68bf-d703-4096-835b-752f5f610aa6"></video>
|
|
4
|
+
|
|
5
|
+
[](https://dev.azure.com/SurveyJS/SurveyJS%20Integration%20Tests/_build/latest?definitionId=7&branchName=master)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
<a href="https://github.com/DevExpress/testcafe">
|
|
8
|
+
<img alt="Tested with TestCafe" src="https://img.shields.io/badge/tested%20with-TestCafe-2fa4cf.svg">
|
|
9
|
+
</a>
|
|
10
|
+
<a href="https://github.com/surveyjs/survey-library/issues">
|
|
11
|
+
<img alt="Issues" title="Open Issues" src="https://img.shields.io/github/issues/surveyjs/survey-library.svg">
|
|
12
|
+
</a>
|
|
13
|
+
<a href="https://github.com/surveyjs/survey-library/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed+">
|
|
14
|
+
<img alt="Closed issues" title="Closed Issues" src="https://img.shields.io/github/issues-closed/surveyjs/survey-library.svg">
|
|
15
|
+
</a>
|
|
16
|
+
|
|
17
|
+
A free and open-source MIT-licensed JavaScript form builder library that allows you to design dynamic, data-driven, multi-language survey forms and run them in your vanilla JS applications or integrate them with any frontend framework.
|
|
18
|
+
|
|
19
|
+
## Features
|
|
20
|
+
|
|
21
|
+
- Dynamic forms, surveys, polls, and quizzes for your JavaScript application
|
|
22
|
+
- Integration with [React](https://www.npmjs.com/package/survey-react-ui), [Angular](https://www.npmjs.com/package/survey-angular-ui), and [Vue](https://www.npmjs.com/package/survey-vue3-ui)
|
|
23
|
+
- Possibility of integration with any other frontend framework
|
|
24
|
+
- Tiny and fast [Preact](https://preactjs.com/) library at the core
|
|
25
|
+
- 20+ built-in question types and support for custom question types
|
|
26
|
+
- Built-in themes and CSS customization
|
|
27
|
+
- Answer validation
|
|
28
|
+
- TypeScript support
|
|
29
|
+
- Community-supported UI localization to 50+ languages
|
|
30
|
+
- Integration with any backend framework (examples for PHP, NodeJS, and ASP.NET included)
|
|
31
|
+
- Compatibility with any server + database combination
|
|
32
|
+
- Third-party component integration
|
|
33
|
+
|
|
34
|
+
## Get Started
|
|
35
|
+
|
|
36
|
+
To get started with SurveyJS Form Library UI for HTML/CSS/JavaScript applications, refer to the following tutorial: [Add a Survey to a JavaScript Application](https://surveyjs.io/form-library/documentation/get-started-html-css-javascript).
|
|
37
|
+
|
|
38
|
+
## Resources
|
|
39
|
+
|
|
40
|
+
- [Website](https://surveyjs.io/)
|
|
41
|
+
- [Documentation](https://surveyjs.io/form-library/documentation/overview)
|
|
42
|
+
- [Live Examples](https://surveyjs.io/form-library/examples/nps-question/)
|
|
43
|
+
- [What's New](https://surveyjs.io/WhatsNew)
|
|
44
|
+
|
|
45
|
+
## Build SurveyJS Form Library UI from Sources
|
|
46
|
+
|
|
47
|
+
1. [**Build the platform-independent part**](../survey-core/README.md#survey-model-platform-independent-part)
|
|
48
|
+
|
|
49
|
+
1. **Install SurveyJS Form Library UI dependencies and build this library**
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
cd ../survey-js-ui
|
|
53
|
+
npm i
|
|
54
|
+
npm run build
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
You can find the built scripts in folders under the `build` directory.
|
|
58
|
+
|
|
59
|
+
2. **Run a test application**
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
npm run start
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
This command runs a local HTTP server at http://localhost:7777/.
|
|
66
|
+
|
|
67
|
+
3. **Run unit tests**
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
npm run test
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
The unit tests use [Karma](https://karma-runner.github.io/6.3/index.html).
|
|
74
|
+
|
|
75
|
+
## Licensing
|
|
76
|
+
|
|
77
|
+
SurveyJS Form Library is distributed under the [MIT license](https://github.com/surveyjs/survey-library/blob/master/LICENSE).
|
package/index.html
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<title>Welcome to UI</title>
|
|
6
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
+
<link rel="stylesheet" href="../node_modules/survey-core/default.css" />
|
|
9
|
+
<script src="./node_modules/survey-core/survey.core.js"></script>
|
|
10
|
+
</head>
|
|
11
|
+
|
|
12
|
+
<body spellcheck="false">
|
|
13
|
+
<div id="surveyElement" style="position: fixed; left: 0; right: 0; top: 0; bottom: 0;"></div>
|
|
14
|
+
<div id="surveyResultElement"></div>
|
|
15
|
+
<script src="./index.js"></script>
|
|
16
|
+
<script defer src="survey-js-ui.js"></script></body>
|
|
17
|
+
|
|
18
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-js-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-rc.1",
|
|
4
4
|
"description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"type": "git",
|
|
21
21
|
"url": "https://github.com/surveyjs/surveyjs.git"
|
|
22
22
|
},
|
|
23
|
-
"typings": "./typings/
|
|
23
|
+
"typings": "./typings/survey-js-ui/entries/index.d.ts",
|
|
24
24
|
"dependencies": {},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"survey-core": "
|
|
26
|
+
"survey-core": "2.0.0-rc.1",
|
|
27
27
|
"@types/react-dom": "*",
|
|
28
28
|
"@types/react": "*"
|
|
29
29
|
}
|