survey-creator-angular 1.9.73 → 1.9.75
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 +14 -205
- package/bundles/survey-creator-angular.umd.js +2536 -0
- package/bundles/survey-creator-angular.umd.js.map +1 -0
- package/esm2015/adorners/cell-question-dropdown.component.js +34 -0
- package/esm2015/adorners/cell-question.component.js +28 -0
- package/esm2015/adorners/image-item-value.component.js +64 -0
- package/esm2015/adorners/item-value.component.js +48 -0
- package/esm2015/adorners/matrix-cell.component.js +50 -0
- package/esm2015/adorners/question-dropdown.component.js +62 -0
- package/esm2015/adorners/question-image.component.js +54 -0
- package/esm2015/adorners/question-rating.component.js +54 -0
- package/esm2015/angular-ui.js +53 -0
- package/esm2015/angular-ui.module.js +92 -0
- package/esm2015/components/action-button.component.js +48 -0
- package/esm2015/creator-model.component.js +40 -0
- package/esm2015/creator.component.js +52 -0
- package/esm2015/header/logo-image.component.js +44 -0
- package/esm2015/page-navigator/page-navigator-item.component.js +29 -0
- package/esm2015/page-navigator/page-navigator.component.js +59 -0
- package/esm2015/page.component.js +54 -0
- package/esm2015/panel.component.js +20 -0
- package/esm2015/property-panel/object-selector.component.js +24 -0
- package/esm2015/property-panel/property-grid.component.js +28 -0
- package/esm2015/question-editor.component.js +49 -0
- package/esm2015/question-widget.component.js +26 -0
- package/esm2015/question.component.js +55 -0
- package/esm2015/questions/logic-operator.component.js +40 -0
- package/esm2015/questions/question-embedded-survey.component.js +30 -0
- package/esm2015/questions/question-link-value.component.js +23 -0
- package/esm2015/row.component.js +36 -0
- package/esm2015/side-bar/side-bar-tab.component.js +23 -0
- package/esm2015/side-bar/side-bar.component.js +34 -0
- package/esm2015/string-editor.component.js +105 -0
- package/esm2015/survey-creator-angular.js +5 -0
- package/esm2015/svg-bundle.component.js +22 -0
- package/esm2015/tabbed-menu/tabbed-menu/tabbed-menu-item-wrapper.component.js +22 -0
- package/esm2015/tabbed-menu/tabbed-menu/tabbed-menu-item.component.js +23 -0
- package/esm2015/tabbed-menu/tabbed-menu/tabbed-menu.component.js +35 -0
- package/esm2015/tabs/designer/designer-pages.component.js +28 -0
- package/esm2015/tabs/designer/designer-survey.component.js +32 -0
- package/esm2015/tabs/designer/designer.component.js +33 -0
- package/esm2015/tabs/json/json-editor-ace.component.js +29 -0
- package/esm2015/tabs/json/json-editor-textarea.component.js +28 -0
- package/esm2015/tabs/logic/logic-add-btn.component.js +26 -0
- package/esm2015/tabs/logic/logic.component.js +25 -0
- package/esm2015/tabs/preview/simulator.component.js +36 -0
- package/esm2015/tabs/preview/survey-results-row.component.js +23 -0
- package/esm2015/tabs/preview/survey-results.component.js +34 -0
- package/esm2015/tabs/preview/test-again.component.js +22 -0
- package/esm2015/tabs/preview/test.component.js +27 -0
- package/esm2015/tabs/translation/translation-line-skeleton.component.js +17 -0
- package/esm2015/tabs/translation/translation.component.js +24 -0
- package/esm2015/toolbox/adaptive-toolbox.component.js +40 -0
- package/esm2015/toolbox/toolbox-category.component.js +26 -0
- package/esm2015/toolbox/toolbox-item.component.js +41 -0
- package/esm2015/toolbox/toolbox-tool.component.js +41 -0
- package/esm2015/toolbox/toolbox.component.js +28 -0
- package/esm2020/adorners/cell-question-dropdown.component.mjs +29 -29
- package/esm2020/adorners/cell-question.component.mjs +23 -23
- package/esm2020/adorners/image-item-value.component.mjs +59 -59
- package/esm2020/adorners/item-value.component.mjs +43 -43
- package/esm2020/adorners/matrix-cell.component.mjs +45 -45
- package/esm2020/adorners/question-dropdown.component.mjs +53 -53
- package/esm2020/adorners/question-image.component.mjs +44 -44
- package/esm2020/adorners/question-rating.component.mjs +45 -45
- package/esm2020/angular-ui.mjs +52 -52
- package/esm2020/angular-ui.module.mjs +91 -91
- package/esm2020/components/action-button.component.mjs +43 -43
- package/esm2020/creator-model.component.mjs +39 -39
- package/esm2020/creator.component.mjs +48 -48
- package/esm2020/header/logo-image.component.mjs +39 -39
- package/esm2020/page-navigator/page-navigator-item.component.mjs +24 -24
- package/esm2020/page-navigator/page-navigator.component.mjs +52 -52
- package/esm2020/page.component.mjs +48 -48
- package/esm2020/panel.component.mjs +15 -15
- package/esm2020/property-panel/object-selector.component.mjs +19 -19
- package/esm2020/property-panel/property-grid.component.mjs +23 -23
- package/esm2020/question-editor.component.mjs +45 -45
- package/esm2020/question-widget.component.mjs +21 -21
- package/esm2020/question.component.mjs +49 -49
- package/esm2020/questions/logic-operator.component.mjs +32 -32
- package/esm2020/questions/question-embedded-survey.component.mjs +25 -25
- package/esm2020/questions/question-link-value.component.mjs +18 -18
- package/esm2020/row.component.mjs +32 -32
- package/esm2020/side-bar/side-bar-tab.component.mjs +18 -18
- package/esm2020/side-bar/side-bar.component.mjs +29 -29
- package/esm2020/string-editor.component.mjs +98 -98
- package/esm2020/survey-creator-angular.mjs +4 -4
- package/esm2020/svg-bundle.component.mjs +21 -21
- package/esm2020/tabbed-menu/tabbed-menu/tabbed-menu-item-wrapper.component.mjs +17 -17
- package/esm2020/tabbed-menu/tabbed-menu/tabbed-menu-item.component.mjs +18 -18
- package/esm2020/tabbed-menu/tabbed-menu/tabbed-menu.component.mjs +30 -30
- package/esm2020/tabs/designer/designer-pages.component.mjs +23 -23
- package/esm2020/tabs/designer/designer-survey.component.mjs +27 -27
- package/esm2020/tabs/designer/designer.component.mjs +28 -28
- package/esm2020/tabs/json/json-editor-ace.component.mjs +24 -24
- package/esm2020/tabs/json/json-editor-textarea.component.mjs +23 -23
- package/esm2020/tabs/logic/logic-add-btn.component.mjs +21 -21
- package/esm2020/tabs/logic/logic.component.mjs +20 -20
- package/esm2020/tabs/preview/simulator.component.mjs +31 -31
- package/esm2020/tabs/preview/survey-results-row.component.mjs +18 -18
- package/esm2020/tabs/preview/survey-results.component.mjs +29 -29
- package/esm2020/tabs/preview/test-again.component.mjs +17 -17
- package/esm2020/tabs/preview/test.component.mjs +22 -22
- package/esm2020/tabs/translation/translation-line-skeleton.component.mjs +12 -12
- package/esm2020/tabs/translation/translation.component.mjs +19 -19
- package/esm2020/toolbox/adaptive-toolbox.component.mjs +34 -34
- package/esm2020/toolbox/toolbox-category.component.mjs +21 -21
- package/esm2020/toolbox/toolbox-item.component.mjs +36 -36
- package/esm2020/toolbox/toolbox-tool.component.mjs +36 -36
- package/esm2020/toolbox/toolbox.component.mjs +23 -23
- package/fesm2015/survey-creator-angular.js +1635 -0
- package/fesm2015/survey-creator-angular.js.map +1 -0
- package/fesm2015/survey-creator-angular.mjs +1430 -1430
- package/fesm2020/survey-creator-angular.mjs +1419 -1419
- package/package.json +10 -18
package/README.md
CHANGED
|
@@ -1,214 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
# Survey Creator / Form Builder for Angular
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://dev.azure.com/SurveyJS/SurveyJS%20Integration%20Tests/_build/latest?definitionId=8&branchName=master)
|
|
4
|
+
<a href="https://www.npmjs.com/package/survey-creator"><img alt="NPM Version" src="https://img.shields.io/npm/v/survey-creator.svg" data-canonical-src="https://img.shields.io/npm/v/survey-creator.svg" style="max-width:100%;"></a>
|
|
4
5
|
|
|
5
|
-
|
|
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>
|
|
6
|
+
A visual designer that enables you and your users to create and modify surveys and forms in your Angular application.
|
|
16
7
|
|
|
17
|
-
|
|
8
|
+
[Try Survey Creator / Form Builder](https://surveyjs.io/create-survey)
|
|
18
9
|
|
|
19
|
-
|
|
10
|
+
## Get Started
|
|
20
11
|
|
|
21
|
-
|
|
12
|
+
To get started with Survey Creator / Form Builder for Angular, refer to the following tutorial: [Add Survey Creator / Form Builder to an Angular Application](https://surveyjs.io/Documentation/Survey-Creator?id=get-started-angular).
|
|
22
13
|
|
|
23
|
-
|
|
14
|
+
## Resources
|
|
24
15
|
|
|
25
|
-
|
|
16
|
+
- [Website](https://surveyjs.io/)
|
|
17
|
+
- [Documentation](https://surveyjs.io/Documentation/Survey-Creator)
|
|
18
|
+
- [Live Examples](https://surveyjs.io/survey-creator/examples/free-nps-survey-template/angular)
|
|
19
|
+
- [What's New](https://surveyjs.io/WhatsNew)
|
|
26
20
|
|
|
27
|
-
|
|
21
|
+
## Licensing
|
|
28
22
|
|
|
29
|
-
Survey Creator
|
|
30
|
-
|
|
31
|
-
## Export Survey to PDF
|
|
32
|
-
|
|
33
|
-
[Export to PDF overview](https://surveyjs.io/Overview/Survey-Pdf-Export)
|
|
34
|
-
|
|
35
|
-
Export to PDF sources are [here](https://github.com/surveyjs/survey-pdf)
|
|
36
|
-
|
|
37
|
-
## More info about SurveyJS
|
|
38
|
-
|
|
39
|
-
**SurveyJS** is the most feature-rich Survey / Form Library available at the current moment. It can be easily customized and extended to suit your needs.
|
|
40
|
-
|
|
41
|
-

|
|
42
|
-
|
|
43
|
-
## Main Features
|
|
44
|
-
|
|
45
|
-
### A lot of question types with a lot of built-in functionalities.
|
|
46
|
-
|
|
47
|
-
* [Text Question](https://surveyjs.io/Examples/Library/?id=questiontype-text)
|
|
48
|
-
* [Radigroup Question](https://surveyjs.io/Examples/Library/?id=questiontype-radiogroup)
|
|
49
|
-
* [Dropdown Question](https://surveyjs.io/Examples/Library/?id=questiontype-dropdown)
|
|
50
|
-
* [Checkboxes Question](https://surveyjs.io/Examples/Library/?id=questiontype-checkbox)
|
|
51
|
-
* [Boolean Question](https://surveyjs.io/Examples/Library/?id=questiontype-boolean)
|
|
52
|
-
* [Matrix Question](https://surveyjs.io/Examples/Library/?id=questiontype-matrix)
|
|
53
|
-
* [Matrix Rubric Question](https://surveyjs.io/Examples/Library/?id=questiontype-matrix-rubric)
|
|
54
|
-
* [Matrix Dropdown Question](https://surveyjs.io/Examples/Library/?id=questiontype-matrixdropdown)
|
|
55
|
-
* [Matrix Dynamic Question](https://surveyjs.io/Examples/Library/?id=questiontype-matrixdynamic)
|
|
56
|
-
* [Multiple Text Question](https://surveyjs.io/Examples/Library/?id=questiontype-multipletext)
|
|
57
|
-
* [Rating Question](https://surveyjs.io/Examples/Library/?id=questiontype-rating)
|
|
58
|
-
* [Ranking Question](https://surveyjs.io/Examples/Library?id=questiontype-ranking)
|
|
59
|
-
* [Comment Question](https://surveyjs.io/Examples/Library/?id=questiontype-comment)
|
|
60
|
-
* [Html Question](https://surveyjs.io/Examples/Library/?id=questiontype-html)
|
|
61
|
-
* [Files uploading Question](https://surveyjs.io/Examples/Library/?id=questiontype-file)
|
|
62
|
-
* [Panel Container](https://surveyjs.io/Examples/Library/?id=questiontype-panel)
|
|
63
|
-
* [Panel Dynamic Question](https://surveyjs.io/Examples/Library/?id=questiontype-paneldynamic)
|
|
64
|
-
* [Expression Question](https://surveyjs.io/Examples/Library/?id=questiontype-expression)
|
|
65
|
-
* [Image Picker Question](https://surveyjs.io/Examples/Library/?id=questiontype-imagepicker)
|
|
66
|
-
* [Support for third-party popular UI widgets](https://surveyjs.io/Examples/Library/?id=custom-widget-select2). The custom widgets [GitHub repo](https://github.com/surveyjs/widgets)
|
|
67
|
-
|
|
68
|
-
### Multiple Pages Support
|
|
69
|
-
|
|
70
|
-
You may create a very complex forms with a lot of pages, like [this one](https://surveyjs.io/Examples/Library/?id=real-patient-history).
|
|
71
|
-
|
|
72
|
-
### Dynamically change survey logic and questions content
|
|
73
|
-
|
|
74
|
-
* [Change questions visibility using logical expressions](https://surveyjs.io/Examples/Library/?id=condition-kids)
|
|
75
|
-
* [Create custom functions to use it in expression](https://surveyjs.io/Examples/Library/?id=condition-customfunctions)
|
|
76
|
-
* [Filter choices in checkbox, radiogroup and dropdown questions](https://surveyjs.io/Examples/Library/?id=condition-choicesVisibleIf)
|
|
77
|
-
* [Filter rows and columns in matrix question](https://surveyjs.io/Examples/Library/?id=condition-matrixVisibleIf)
|
|
78
|
-
* [Disabled/enabled questions based on logical expressions](https://surveyjs.io/Examples/Library/?id=condition-enable-kids)
|
|
79
|
-
* [Questions value validation](https://surveyjs.io/Examples/Library/?id=validators-standard)
|
|
80
|
-
|
|
81
|
-
### Localization and Multiple language support
|
|
82
|
-
|
|
83
|
-
* [Localization for over 20 languages](https://surveyjs.io/Examples/Library/?id=survey-localization&platform)
|
|
84
|
-
* [Multiple language support in one survey](https://surveyjs.io/Examples/Library/?id=survey-multilanguages)
|
|
85
|
-
|
|
86
|
-
### Appearance and custom Rendering
|
|
87
|
-
|
|
88
|
-
* [Seven built-in Themes](https://surveyjs.io/Examples/Library/?id=darkblue-theme)
|
|
89
|
-
* [Bootstrap support](https://surveyjs.io/Examples/Library/?id=bootstrap-theme)
|
|
90
|
-
* [CSS styles customization](https://surveyjs.io/Examples/Library/?id=survey-cssclasses)
|
|
91
|
-
* [API for adding new or changing existing HTML elements](https://surveyjs.io/Examples/Library/?id=survey-afterrender)
|
|
92
|
-
* [Render Questions in one line](https://surveyjs.io/Examples/Library/?id=survey-startwithnewline)
|
|
93
|
-
* [Markdown support](https://surveyjs.io/Examples/Library/?id=survey-markdown-radiogroup)
|
|
94
|
-
|
|
95
|
-
### Frequently used functionalities
|
|
96
|
-
|
|
97
|
-
* [Quiz creation](https://surveyjs.io/Examples/Library/?id=survey-quiz)
|
|
98
|
-
* [Show survey or form in the popup window](https://surveyjs.io/Examples/Library/?id=survey-window)
|
|
99
|
-
* [Display mode](https://surveyjs.io/Examples/Library/?id=survey-displaymode)
|
|
100
|
-
* [Custom navigation](https://surveyjs.io/Examples/Library/?id=survey-customnavigation)
|
|
101
|
-
* [Sharing same data between questions](https://surveyjs.io/Examples/Library/?id=survey-shareddata)
|
|
102
|
-
|
|
103
|
-
### To find out more about the library
|
|
104
|
-
|
|
105
|
-
* go to the [SurveyJS Library Site](https://surveyjs.io/Library)
|
|
106
|
-
* explore the live [Examples](https://www.surveyjs.io/Examples/Library)
|
|
107
|
-
* and create a survey or form using [Survey Creator](https://surveyjs.io/survey/Builder/)
|
|
108
|
-
|
|
109
|
-
#### You can use our quickstart repos:
|
|
110
|
-
|
|
111
|
-
* [Angular CLI](https://github.com/surveyjs/surveyjs_angular_cli)
|
|
112
|
-
* [React](https://github.com/surveyjs/surveyjs_react_quickstart)
|
|
113
|
-
* [Vue](https://github.com/surveyjs/surveyjs_vue_quickstart)
|
|
114
|
-
|
|
115
|
-
## Getting started
|
|
116
|
-
|
|
117
|
-
Install the library using npm.
|
|
118
|
-
|
|
119
|
-
Angular version:
|
|
120
|
-
|
|
121
|
-
```
|
|
122
|
-
npm install survey-angular
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
jQuery version:
|
|
126
|
-
|
|
127
|
-
```
|
|
128
|
-
npm install survey-jquery
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
Knockout version:
|
|
132
|
-
|
|
133
|
-
```
|
|
134
|
-
npm install survey-knockout
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
React version:
|
|
138
|
-
|
|
139
|
-
```
|
|
140
|
-
npm install survey-react
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
Vue version:
|
|
144
|
-
|
|
145
|
-
```
|
|
146
|
-
npm install survey-vue
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
Or use unpkg CDN:
|
|
150
|
-
|
|
151
|
-
* https://unpkg.com/survey-angular@{version-number}/survey.angular.min.js
|
|
152
|
-
* https://unpkg.com/survey-knockout@{version-number}/survey.ko.min.js
|
|
153
|
-
* https://unpkg.com/survey-react@{version-number}/survey.react.min.js
|
|
154
|
-
* https://unpkg.com/survey-jquery@{version-number}/survey.jquery.min.js
|
|
155
|
-
* https://unpkg.com/survey-vue@{version-number}/survey.vue.min.js
|
|
156
|
-
|
|
157
|
-
You find all versions/builds in the [surveyjs/build repo](https://github.com/surveyjs/builds).
|
|
158
|
-
|
|
159
|
-
Or dowload a version as zip file from [Releases](https://github.com/surveyjs/survey-library/releases)
|
|
160
|
-
|
|
161
|
-
If you want to import it in another script:
|
|
162
|
-
|
|
163
|
-
```javascript
|
|
164
|
-
import * as Survey from "survey-jquery";
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
## Building survey.js from sources
|
|
168
|
-
|
|
169
|
-
To build library yourself:
|
|
170
|
-
|
|
171
|
-
1. **Clone the repo from GitHub**
|
|
172
|
-
|
|
173
|
-
```
|
|
174
|
-
git clone https://github.com/surveyjs/survey-library.git
|
|
175
|
-
cd survey-library
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
2. **Acquire build dependencies.** Make sure you have [Node.js](http://nodejs.org/) installed on your workstation. You need a version of Node.js greater than 6.0.0 and npm greater than 2.7.0. This is only needed to _build_ surveyjs from sources.
|
|
179
|
-
|
|
180
|
-
```
|
|
181
|
-
npm install -g karma-cli
|
|
182
|
-
npm install
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
3. **Build the library**
|
|
186
|
-
|
|
187
|
-
```
|
|
188
|
-
npm run build_prod
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
After that you should have the libraries (angular, jquery, knockout, react and vue) at 'packages' directory.
|
|
192
|
-
|
|
193
|
-
4. **Run samples**
|
|
194
|
-
|
|
195
|
-
```
|
|
196
|
-
npm start
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
This command will run local http server at the http://localhost:7777
|
|
200
|
-
You can open http://localhost:7777/examples/knockout to view KnockoutJS samples, http://localhost:7777/examples/react to view ReactJS samples and so on
|
|
201
|
-
|
|
202
|
-
5. **Run unit tests**
|
|
203
|
-
```
|
|
204
|
-
karma start
|
|
205
|
-
```
|
|
206
|
-
This command will run unit tests using [Karma](https://karma-runner.github.io/0.13/index.html)
|
|
207
|
-
|
|
208
|
-
### WordPress integration
|
|
209
|
-
|
|
210
|
-
[SurveyJS WordPress plugin](https://wordpress.org/plugins/surveyjs/)
|
|
211
|
-
|
|
212
|
-
## License
|
|
213
|
-
|
|
214
|
-
[MIT license](https://github.com/surveyjs/survey-library/blob/master/LICENSE)
|
|
23
|
+
Survey Creator is **not available for free commercial usage**. If you want to integrate it into your application, you must purchase a [commercial license](https://surveyjs.io/licensing). However, you can [use Survey Creator online](https://surveyjs.io/create-survey) to produce survey JSON configurations and run them with [SurveyJS Form Library](https://surveyjs.io/form-library/documentation/overview) in your application free of charge.
|