survey-react-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 +27 -1
- package/index.html +22 -0
- package/package.json +5 -9
- package/survey-react-ui.js +9408 -8689
- package/survey-react-ui.js.map +1 -1
- package/survey-react-ui.min.js +2 -628
- package/survey-react-ui.min.js.LICENSE.txt +493 -0
- package/typings/entries/index.d.ts +2 -0
- package/typings/entries/react-ui-model.d.ts +86 -84
- 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/boolean-checkbox.d.ts +6 -0
- package/typings/src/boolean-radio.d.ts +8 -0
- package/typings/src/boolean.d.ts +17 -0
- package/typings/src/components/action-bar/action-bar-item-dropdown.d.ts +9 -0
- package/typings/src/components/action-bar/action-bar-item.d.ts +25 -0
- package/typings/src/components/action-bar/action-bar-separator.d.ts +5 -0
- package/typings/src/components/action-bar/action-bar.d.ts +21 -0
- package/typings/src/components/brand-info.d.ts +4 -0
- package/typings/src/components/character-counter.d.ts +11 -0
- package/typings/src/components/components-container.d.ts +4 -0
- package/typings/src/components/file/file-choose-button.d.ts +8 -0
- package/typings/src/components/file/file-item.d.ts +13 -0
- package/typings/src/components/file/file-page.d.ts +11 -0
- package/typings/src/components/file/file-preview.d.ts +11 -0
- package/typings/src/components/header.d.ts +22 -0
- package/typings/src/components/list/list-item-content.d.ts +14 -0
- package/typings/src/components/list/list-item-group.d.ts +14 -0
- package/typings/src/components/list/list-item.d.ts +16 -0
- package/typings/src/components/list/list.d.ts +23 -0
- package/typings/src/components/loading-indicator.d.ts +4 -0
- package/typings/src/components/matrix/row.d.ts +20 -0
- package/typings/src/components/matrix-actions/detail-button/detail-button.d.ts +12 -0
- package/typings/src/components/matrix-actions/drag-drop-icon/drag-drop-icon.d.ts +7 -0
- package/typings/src/components/matrix-actions/remove-button/remove-button.d.ts +9 -0
- package/typings/src/components/notifier.d.ts +11 -0
- package/typings/src/components/paneldynamic-actions/paneldynamic-add-btn.d.ts +12 -0
- package/typings/src/components/paneldynamic-actions/paneldynamic-next-btn.d.ts +6 -0
- package/typings/src/components/paneldynamic-actions/paneldynamic-prev-btn.d.ts +6 -0
- package/typings/src/components/paneldynamic-actions/paneldynamic-progress-text.d.ts +5 -0
- package/typings/src/components/paneldynamic-actions/paneldynamic-remove-btn.d.ts +6 -0
- package/typings/src/components/popup/popup-modal.d.ts +23 -0
- package/typings/src/components/popup/popup.d.ts +39 -0
- package/typings/src/components/question-error.d.ts +10 -0
- package/typings/src/components/rating/rating-dropdown-item.d.ts +12 -0
- package/typings/src/components/rating/rating-item-smiley.d.ts +5 -0
- package/typings/src/components/rating/rating-item-star.d.ts +5 -0
- package/typings/src/components/rating/rating-item.d.ts +22 -0
- package/typings/src/components/skeleton.d.ts +4 -0
- package/typings/src/components/survey-actions/survey-nav-button.d.ts +8 -0
- package/typings/src/components/survey-header/logo-image.d.ts +11 -0
- package/typings/src/components/survey-header/survey-header.d.ts +17 -0
- package/typings/src/components/svg-icon/svg-icon.d.ts +9 -0
- package/typings/src/components/text-area.d.ts +17 -0
- package/typings/src/components/title/title-actions.d.ts +7 -0
- package/typings/src/components/title/title-content.d.ts +10 -0
- package/typings/src/components/title/title-element.d.ts +7 -0
- package/typings/src/custom-widget.d.ts +12 -0
- package/typings/src/dropdown-base.d.ts +26 -0
- package/typings/src/dropdown-item.d.ts +14 -0
- package/typings/src/dropdown-select.d.ts +6 -0
- package/typings/src/element-factory.d.ts +9 -0
- package/typings/src/element-header.d.ts +5 -0
- package/typings/src/element.d.ts +19 -0
- package/typings/src/entries/react-ui.d.ts +2 -2
- package/typings/src/flow-panel.d.ts +22 -0
- package/typings/src/image.d.ts +10 -0
- package/typings/src/imagepicker.d.ts +25 -0
- package/typings/src/page.d.ts +11 -0
- package/typings/src/panel-base.d.ts +25 -0
- package/typings/src/panel.d.ts +16 -0
- package/typings/src/progress.d.ts +9 -0
- package/typings/src/progressButtons.d.ts +19 -0
- package/typings/src/progressToc.d.ts +5 -0
- package/typings/src/rating-dropdown.d.ts +8 -0
- package/typings/src/react-popup-survey.d.ts +24 -0
- package/typings/src/reactSurvey.d.ts +39 -0
- package/typings/src/reactSurveyNavigationBase.d.ts +10 -0
- package/typings/src/reactquestion.d.ts +82 -0
- package/typings/src/reactquestion_buttongroup.d.ts +23 -0
- package/typings/src/reactquestion_checkbox.d.ts +37 -0
- package/typings/src/reactquestion_comment.d.ts +18 -0
- package/typings/src/reactquestion_custom.d.ts +13 -0
- package/typings/src/reactquestion_dropdown.d.ts +7 -0
- package/typings/src/reactquestion_element.d.ts +67 -0
- package/typings/src/reactquestion_empty.d.ts +8 -0
- package/typings/src/reactquestion_expression.d.ts +8 -0
- package/typings/src/reactquestion_factory.d.ts +8 -0
- package/typings/src/reactquestion_file.d.ts +14 -0
- package/typings/src/reactquestion_html.d.ts +13 -0
- package/typings/src/reactquestion_matrix.d.ts +33 -0
- package/typings/src/reactquestion_matrixdropdown.d.ts +4 -0
- package/typings/src/reactquestion_matrixdropdownbase.d.ts +30 -0
- package/typings/src/reactquestion_matrixdynamic.d.ts +20 -0
- package/typings/src/reactquestion_multipletext.d.ts +22 -0
- package/typings/src/reactquestion_paneldynamic.d.ts +28 -0
- package/typings/src/reactquestion_radiogroup.d.ts +36 -0
- package/typings/src/reactquestion_ranking.d.ts +30 -0
- package/typings/src/reactquestion_rating.d.ts +10 -0
- package/typings/src/reactquestion_tagbox.d.ts +10 -0
- package/typings/src/reactquestion_text.d.ts +11 -0
- package/typings/src/reactsurveymodel.d.ts +9 -0
- package/typings/src/reacttimerpanel.d.ts +11 -0
- package/typings/src/row.d.ts +21 -0
- package/typings/src/signaturepad.d.ts +11 -0
- package/typings/src/string-editor.d.ts +11 -0
- package/typings/src/string-viewer.d.ts +15 -0
- package/typings/src/svgbundle.d.ts +9 -0
- package/typings/src/tagbox-filter.d.ts +23 -0
- package/typings/src/tagbox-item.d.ts +10 -0
package/README.md
CHANGED
|
@@ -44,7 +44,33 @@ To get started with SurveyJS React Form Library, refer to the following tutorial
|
|
|
44
44
|
|
|
45
45
|
## Build SurveyJS React Form Library from Sources
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
1. [**Build the platform-independent part**](../survey-core/README.md#survey-model-platform-independent-part)
|
|
48
|
+
|
|
49
|
+
1. **Install SurveyJS React Form Library dependencies and build this library**
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
cd ../survey-react-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).
|
|
48
74
|
|
|
49
75
|
## Licensing
|
|
50
76
|
|
package/index.html
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<title>Welcome to React</title>
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
|
|
8
|
+
|
|
9
|
+
<script src="https://unpkg.com/react@16.5.0/umd/react.development.js"></script>
|
|
10
|
+
<script src="https://unpkg.com/react-dom@16.5.0/umd/react-dom.development.js"></script>
|
|
11
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.js"></script>
|
|
12
|
+
<script src="./node_modules/survey-core/survey.core.js"></script>
|
|
13
|
+
<link rel="stylesheet" href="./node_modules/survey-core/default.css" />
|
|
14
|
+
</head>
|
|
15
|
+
|
|
16
|
+
<body spellcheck="false">
|
|
17
|
+
<div id="surveyElement" style="position: fixed; top: 0; left: 0; bottom: 0; right: 0;"></div>
|
|
18
|
+
<div id="surveyResultElement"></div>
|
|
19
|
+
<script type="text/babel" src="./index.js"></script>
|
|
20
|
+
<script defer src="survey-react-ui.js"></script></body>
|
|
21
|
+
|
|
22
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-react-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",
|
|
@@ -15,14 +15,10 @@
|
|
|
15
15
|
"**/*"
|
|
16
16
|
],
|
|
17
17
|
"main": "survey-react-ui.js",
|
|
18
|
-
"
|
|
19
|
-
"type": "git",
|
|
20
|
-
"url": "https://github.com/surveyjs/surveyjs.git"
|
|
21
|
-
},
|
|
22
|
-
"typings": "./typings/src/entries/react-ui.d.ts",
|
|
18
|
+
"typings": "./typings/entries/index.d.ts",
|
|
23
19
|
"peerDependencies": {
|
|
24
|
-
"survey-core": "
|
|
25
|
-
"react": "^16.5.0 || ^17.0.1 || ^18.2.0
|
|
26
|
-
"react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0
|
|
20
|
+
"survey-core": "2.0.0-rc.1",
|
|
21
|
+
"react": "^16.5.0 || ^17.0.1 || ^18.2.0",
|
|
22
|
+
"react-dom": "^16.5.0 || ^17.0.1 || ^18.2.0"
|
|
27
23
|
}
|
|
28
24
|
}
|