survey-creator-angular 1.9.46
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 +214 -0
- package/adorners/cell-question-dropdown.component.d.ts +9 -0
- package/adorners/cell-question.component.d.ts +11 -0
- package/adorners/image-item-value.component.d.ts +24 -0
- package/adorners/item-value.component.d.ts +17 -0
- package/adorners/matrix-cell.component.d.ts +20 -0
- package/adorners/question-dropdown.component.d.ts +18 -0
- package/adorners/question-image.component.d.ts +19 -0
- package/adorners/question-rating.component.d.ts +19 -0
- package/angular-ui.d.ts +2 -0
- package/angular-ui.module.d.ts +60 -0
- package/components/action-button.component.d.ts +14 -0
- package/creator-model.component.d.ts +14 -0
- package/creator.component.d.ts +16 -0
- package/esm2020/adorners/cell-question-dropdown.component.mjs +30 -0
- package/esm2020/adorners/cell-question.component.mjs +24 -0
- package/esm2020/adorners/image-item-value.component.mjs +60 -0
- package/esm2020/adorners/item-value.component.mjs +41 -0
- package/esm2020/adorners/matrix-cell.component.mjs +46 -0
- package/esm2020/adorners/question-dropdown.component.mjs +54 -0
- package/esm2020/adorners/question-image.component.mjs +45 -0
- package/esm2020/adorners/question-rating.component.mjs +46 -0
- package/esm2020/angular-ui.mjs +3 -0
- package/esm2020/angular-ui.module.mjs +85 -0
- package/esm2020/components/action-button.component.mjs +44 -0
- package/esm2020/creator-model.component.mjs +40 -0
- package/esm2020/creator.component.mjs +47 -0
- package/esm2020/header/logo-image.component.mjs +40 -0
- package/esm2020/notifier.component.mjs +18 -0
- package/esm2020/page-navigator/page-navigator-item.component.mjs +22 -0
- package/esm2020/page-navigator/page-navigator.component.mjs +51 -0
- package/esm2020/page.component.mjs +49 -0
- package/esm2020/panel.component.mjs +16 -0
- package/esm2020/property-panel/object-selector.component.mjs +20 -0
- package/esm2020/property-panel/property-grid.component.mjs +20 -0
- package/esm2020/question-editor.component.mjs +46 -0
- package/esm2020/question-widget.component.mjs +22 -0
- package/esm2020/question.component.mjs +50 -0
- package/esm2020/questions/logic-operator.component.mjs +33 -0
- package/esm2020/questions/question-embedded-survey.component.mjs +26 -0
- package/esm2020/questions/question-link-value.component.mjs +19 -0
- package/esm2020/row.component.mjs +33 -0
- package/esm2020/side-bar/side-bar-tab.component.mjs +19 -0
- package/esm2020/side-bar/side-bar.component.mjs +30 -0
- package/esm2020/string-editor.component.mjs +101 -0
- package/esm2020/survey-creator-angular.mjs +5 -0
- package/esm2020/svg-bundle.component.mjs +22 -0
- package/esm2020/tabbed-menu/tabbed-menu/tabbed-menu-item-wrapper.component.mjs +18 -0
- package/esm2020/tabbed-menu/tabbed-menu/tabbed-menu-item.component.mjs +19 -0
- package/esm2020/tabbed-menu/tabbed-menu/tabbed-menu.component.mjs +31 -0
- package/esm2020/tabs/designer/designer-pages.component.mjs +24 -0
- package/esm2020/tabs/designer/designer-survey.component.mjs +28 -0
- package/esm2020/tabs/designer/designer.component.mjs +29 -0
- package/esm2020/tabs/json/json-editor-ace.component.mjs +25 -0
- package/esm2020/tabs/json/json-editor-textarea.component.mjs +24 -0
- package/esm2020/tabs/logic/logic-add-btn.component.mjs +22 -0
- package/esm2020/tabs/logic/logic.component.mjs +21 -0
- package/esm2020/tabs/preview/simulator.component.mjs +32 -0
- package/esm2020/tabs/preview/survey-results-row.component.mjs +19 -0
- package/esm2020/tabs/preview/survey-results.component.mjs +30 -0
- package/esm2020/tabs/preview/test-again.component.mjs +18 -0
- package/esm2020/tabs/preview/test.component.mjs +23 -0
- package/esm2020/tabs/translation/translation-line-skeleton.component.mjs +13 -0
- package/esm2020/tabs/translation/translation.component.mjs +20 -0
- package/esm2020/toolbox/adaptive-toolbox.component.mjs +35 -0
- package/esm2020/toolbox/toolbox-category.component.mjs +22 -0
- package/esm2020/toolbox/toolbox-item.component.mjs +37 -0
- package/esm2020/toolbox/toolbox-tool.component.mjs +34 -0
- package/esm2020/toolbox/toolbox.component.mjs +24 -0
- package/fesm2015/survey-creator-angular.mjs +1420 -0
- package/fesm2015/survey-creator-angular.mjs.map +1 -0
- package/fesm2020/survey-creator-angular.mjs +1410 -0
- package/fesm2020/survey-creator-angular.mjs.map +1 -0
- package/header/logo-image.component.d.ts +18 -0
- package/notifier.component.d.ts +9 -0
- package/package.json +52 -0
- package/page-navigator/page-navigator-item.component.d.ts +10 -0
- package/page-navigator/page-navigator.component.d.ts +17 -0
- package/page.component.d.ts +19 -0
- package/panel.component.d.ts +6 -0
- package/property-panel/object-selector.component.d.ts +9 -0
- package/property-panel/property-grid.component.d.ts +9 -0
- package/question-editor.component.d.ts +12 -0
- package/question-widget.component.d.ts +7 -0
- package/question.component.d.ts +19 -0
- package/questions/logic-operator.component.d.ts +13 -0
- package/questions/question-embedded-survey.component.d.ts +9 -0
- package/questions/question-link-value.component.d.ts +8 -0
- package/row.component.d.ts +18 -0
- package/side-bar/side-bar-tab.component.d.ts +9 -0
- package/side-bar/side-bar.component.d.ts +13 -0
- package/string-editor.component.d.ts +33 -0
- package/survey-creator-angular.d.ts +5 -0
- package/svg-bundle.component.d.ts +8 -0
- package/tabbed-menu/tabbed-menu/tabbed-menu-item-wrapper.component.d.ts +9 -0
- package/tabbed-menu/tabbed-menu/tabbed-menu-item.component.d.ts +9 -0
- package/tabbed-menu/tabbed-menu/tabbed-menu.component.d.ts +14 -0
- package/tabs/designer/designer-pages.component.d.ts +11 -0
- package/tabs/designer/designer-survey.component.d.ts +12 -0
- package/tabs/designer/designer.component.d.ts +11 -0
- package/tabs/json/json-editor-ace.component.d.ts +12 -0
- package/tabs/json/json-editor-textarea.component.d.ts +11 -0
- package/tabs/logic/logic-add-btn.component.d.ts +10 -0
- package/tabs/logic/logic.component.d.ts +9 -0
- package/tabs/preview/simulator.component.d.ts +12 -0
- package/tabs/preview/survey-results-row.component.d.ts +9 -0
- package/tabs/preview/survey-results.component.d.ts +13 -0
- package/tabs/preview/test-again.component.d.ts +9 -0
- package/tabs/preview/test.component.d.ts +9 -0
- package/tabs/translation/translation-line-skeleton.component.d.ts +5 -0
- package/tabs/translation/translation.component.d.ts +9 -0
- package/toolbox/adaptive-toolbox.component.d.ts +15 -0
- package/toolbox/toolbox-category.component.d.ts +10 -0
- package/toolbox/toolbox-item.component.d.ts +15 -0
- package/toolbox/toolbox-tool.component.d.ts +15 -0
- package/toolbox/toolbox.component.d.ts +10 -0
package/README.md
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
## **SurveyJS** is a JavaScript Survey and Form Library.
|
|
2
|
+
|
|
3
|
+
**SurveyJS** is a modern way to add surveys and forms to your website. It has versions for Angular, jQuery, knockout, react and vue.
|
|
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
|
+
## Documentation
|
|
18
|
+
|
|
19
|
+
[SurveyJS Library Documentation](https://surveyjs.io/Documentation/Library)
|
|
20
|
+
|
|
21
|
+
## Live Examples
|
|
22
|
+
|
|
23
|
+
[SurveyJS Library Live Examples](https://surveyjs.io/Examples/Library)
|
|
24
|
+
|
|
25
|
+
## Survey Creator / Form Builder
|
|
26
|
+
|
|
27
|
+
[Create your Survey or Form now](https://surveyjs.io/create-survey)
|
|
28
|
+
|
|
29
|
+
Survey Creator sources are [here](https://github.com/surveyjs/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)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ItemValue, QuestionDropdownModel } from "survey-core";
|
|
2
|
+
import { CellQuestionComponent } from "./cell-question.component";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CellQuestionDropdownComponent extends CellQuestionComponent<QuestionDropdownModel> {
|
|
5
|
+
getItemValueComponentName(item: ItemValue): string;
|
|
6
|
+
getItemValueComponentData(item: ItemValue): any;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CellQuestionDropdownComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CellQuestionDropdownComponent, "svc-cell-dropdown-question", never, {}, {}, never, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Question } from "survey-core";
|
|
2
|
+
import { BaseAngular } from "survey-angular-ui";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CellQuestionComponent<T extends Question> extends BaseAngular<T> {
|
|
5
|
+
componentName: string;
|
|
6
|
+
componentData: any;
|
|
7
|
+
protected getModel(): T;
|
|
8
|
+
get model(): T;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CellQuestionComponent<any>, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CellQuestionComponent<any>, "svc-cell-question", never, { "componentName": "componentName"; "componentData": "componentData"; }, {}, never, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
|
+
import { ImageItemValue, QuestionImagePickerModel } from "survey-core";
|
|
3
|
+
import { ImageItemValueWrapperViewModel } from "survey-creator-core";
|
|
4
|
+
import { CreatorModelComponent } from "../creator-model.component";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ImageItemValueDesignerComponent extends CreatorModelComponent<ImageItemValueWrapperViewModel> {
|
|
7
|
+
componentName: string;
|
|
8
|
+
componentData: any;
|
|
9
|
+
container: ElementRef;
|
|
10
|
+
adorner: ImageItemValueWrapperViewModel;
|
|
11
|
+
private get creator();
|
|
12
|
+
get question(): QuestionImagePickerModel;
|
|
13
|
+
get item(): ImageItemValue;
|
|
14
|
+
protected createModel(): void;
|
|
15
|
+
protected getPropertiesToTrack(): string[];
|
|
16
|
+
protected getModel(): ImageItemValueWrapperViewModel;
|
|
17
|
+
get showDragDropGhostOnTop(): boolean;
|
|
18
|
+
get showDragDropGhostOnBottom(): boolean;
|
|
19
|
+
blockEvent(event: MouseEvent): void;
|
|
20
|
+
getNewItemStyle(): any;
|
|
21
|
+
ngAfterViewInit(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageItemValueDesignerComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageItemValueDesignerComponent, "svc-image-item-value", never, { "componentName": "componentName"; "componentData": "componentData"; }, {}, never, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ItemValue, QuestionSelectBase } from "survey-core";
|
|
2
|
+
import { ItemValueWrapperViewModel } from "survey-creator-core";
|
|
3
|
+
import { CreatorModelComponent } from "../creator-model.component";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ItemValueDesignerComponent extends CreatorModelComponent<ItemValueWrapperViewModel> {
|
|
6
|
+
componentName: string;
|
|
7
|
+
componentData: any;
|
|
8
|
+
adorner: ItemValueWrapperViewModel;
|
|
9
|
+
private get creator();
|
|
10
|
+
get question(): QuestionSelectBase;
|
|
11
|
+
get item(): ItemValue;
|
|
12
|
+
protected createModel(): void;
|
|
13
|
+
protected getPropertiesToTrack(): string[];
|
|
14
|
+
protected getModel(): ItemValueWrapperViewModel;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItemValueDesignerComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItemValueDesignerComponent, "svc-item-value", never, { "componentName": "componentName"; "componentData": "componentData"; }, {}, never, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TemplateRef } from "@angular/core";
|
|
2
|
+
import { QuestionSelectBase } from "survey-core";
|
|
3
|
+
import { MatrixCellWrapperViewModel } from "survey-creator-core";
|
|
4
|
+
import { CreatorModelComponent } from "../creator-model.component";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class MatrixCellComponent extends CreatorModelComponent<MatrixCellWrapperViewModel> {
|
|
7
|
+
componentName: string;
|
|
8
|
+
componentData: any;
|
|
9
|
+
contentTempl: TemplateRef<any>;
|
|
10
|
+
adorner: MatrixCellWrapperViewModel;
|
|
11
|
+
private get creator();
|
|
12
|
+
get question(): QuestionSelectBase;
|
|
13
|
+
get column(): any;
|
|
14
|
+
get row(): any;
|
|
15
|
+
protected createModel(): void;
|
|
16
|
+
protected getPropertiesToTrack(): string[];
|
|
17
|
+
protected getModel(): MatrixCellWrapperViewModel;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatrixCellComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatrixCellComponent, "svc-matrix-cell", never, { "componentName": "componentName"; "componentData": "componentData"; "contentTempl": "contentTempl"; }, {}, never, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EmbeddedViewContentComponent } from "survey-angular-ui";
|
|
2
|
+
import { ItemValue } from "survey-core";
|
|
3
|
+
import { QuestionDesignerComponent } from "../question.component";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class QuestionDropdownDesignerComponent extends QuestionDesignerComponent {
|
|
6
|
+
protected createModel(): void;
|
|
7
|
+
adornerComponent: string;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionDropdownDesignerComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionDropdownDesignerComponent, "svc-dropdown-question", never, {}, {}, never, never>;
|
|
10
|
+
}
|
|
11
|
+
export declare class QuestionDropdownAdornerDesignerComponent extends EmbeddedViewContentComponent {
|
|
12
|
+
adorner: any;
|
|
13
|
+
question: any;
|
|
14
|
+
getItemValueComponentName(item: ItemValue): string;
|
|
15
|
+
getItemValueComponentData(item: ItemValue): any;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionDropdownAdornerDesignerComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionDropdownAdornerDesignerComponent, "svc-dropdown-question-adorner", never, { "adorner": "adorner"; "question": "question"; }, {}, never, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef } from "@angular/core";
|
|
2
|
+
import { EmbeddedViewContentComponent } from "survey-angular-ui";
|
|
3
|
+
import { QuestionImageAdornerViewModel } from "survey-creator-core";
|
|
4
|
+
import { QuestionDesignerComponent } from "../question.component";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class QuestionImageDesignerComponent extends QuestionDesignerComponent implements AfterViewInit {
|
|
7
|
+
container: ElementRef<HTMLDivElement>;
|
|
8
|
+
protected createModel(): void;
|
|
9
|
+
adornerComponent: string;
|
|
10
|
+
ngAfterViewInit(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionImageDesignerComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionImageDesignerComponent, "svc-image-question", never, {}, {}, never, never>;
|
|
13
|
+
}
|
|
14
|
+
export declare class QuestionImageAdornerDesignerComponent extends EmbeddedViewContentComponent {
|
|
15
|
+
adorner: QuestionImageAdornerViewModel;
|
|
16
|
+
question: any;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionImageAdornerDesignerComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionImageAdornerDesignerComponent, "svc-image-question-adorner", never, { "adorner": "adorner"; "question": "question"; }, {}, never, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CreatorModelComponent } from "../creator-model.component";
|
|
2
|
+
import { QuestionRatingAdornerViewModel } from "survey-creator-core";
|
|
3
|
+
import { QuestionDesignerComponent } from "../question.component";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class QuestionRatingDesignerComponent extends QuestionDesignerComponent {
|
|
6
|
+
adornerComponent: string;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionRatingDesignerComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionRatingDesignerComponent, "svc-rating-question", never, {}, {}, never, never>;
|
|
9
|
+
}
|
|
10
|
+
export declare class QuestionRatingAdornerDesignerComponent extends CreatorModelComponent<QuestionRatingAdornerViewModel> {
|
|
11
|
+
componentName: string;
|
|
12
|
+
componentData: any;
|
|
13
|
+
adorner: QuestionRatingAdornerViewModel;
|
|
14
|
+
protected createModel(): void;
|
|
15
|
+
protected getPropertiesToTrack(): string[];
|
|
16
|
+
protected getModel(): QuestionRatingAdornerViewModel;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionRatingAdornerDesignerComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QuestionRatingAdornerDesignerComponent, "svc-rating-question-content", never, { "componentName": "componentName"; "componentData": "componentData"; }, {}, never, never>;
|
|
19
|
+
}
|
package/angular-ui.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./creator.component";
|
|
3
|
+
import * as i2 from "./tabs/designer/designer.component";
|
|
4
|
+
import * as i3 from "./page.component";
|
|
5
|
+
import * as i4 from "./question.component";
|
|
6
|
+
import * as i5 from "./panel.component";
|
|
7
|
+
import * as i6 from "./svg-bundle.component";
|
|
8
|
+
import * as i7 from "./tabbed-menu/tabbed-menu/tabbed-menu.component";
|
|
9
|
+
import * as i8 from "./tabbed-menu/tabbed-menu/tabbed-menu-item.component";
|
|
10
|
+
import * as i9 from "./tabbed-menu/tabbed-menu/tabbed-menu-item-wrapper.component";
|
|
11
|
+
import * as i10 from "./side-bar/side-bar.component";
|
|
12
|
+
import * as i11 from "./side-bar/side-bar-tab.component";
|
|
13
|
+
import * as i12 from "./property-panel/object-selector.component";
|
|
14
|
+
import * as i13 from "./property-panel/property-grid.component";
|
|
15
|
+
import * as i14 from "./tabs/json/json-editor-textarea.component";
|
|
16
|
+
import * as i15 from "./tabs/json/json-editor-ace.component";
|
|
17
|
+
import * as i16 from "./tabs/logic/logic.component";
|
|
18
|
+
import * as i17 from "./tabs/logic/logic-add-btn.component";
|
|
19
|
+
import * as i18 from "./components/action-button.component";
|
|
20
|
+
import * as i19 from "./questions/question-link-value.component";
|
|
21
|
+
import * as i20 from "./questions/question-embedded-survey.component";
|
|
22
|
+
import * as i21 from "./tabs/translation/translation.component";
|
|
23
|
+
import * as i22 from "./tabs/translation/translation-line-skeleton.component";
|
|
24
|
+
import * as i23 from "./tabs/preview/simulator.component";
|
|
25
|
+
import * as i24 from "./tabs/preview/test.component";
|
|
26
|
+
import * as i25 from "./tabs/preview/test-again.component";
|
|
27
|
+
import * as i26 from "./tabs/preview/survey-results.component";
|
|
28
|
+
import * as i27 from "./tabs/preview/survey-results-row.component";
|
|
29
|
+
import * as i28 from "./toolbox/adaptive-toolbox.component";
|
|
30
|
+
import * as i29 from "./toolbox/toolbox-tool.component";
|
|
31
|
+
import * as i30 from "./toolbox/toolbox-item.component";
|
|
32
|
+
import * as i31 from "./toolbox/toolbox-category.component";
|
|
33
|
+
import * as i32 from "./string-editor.component";
|
|
34
|
+
import * as i33 from "./page-navigator/page-navigator.component";
|
|
35
|
+
import * as i34 from "./page-navigator/page-navigator-item.component";
|
|
36
|
+
import * as i35 from "./adorners/question-dropdown.component";
|
|
37
|
+
import * as i36 from "./adorners/question-image.component";
|
|
38
|
+
import * as i37 from "./adorners/item-value.component";
|
|
39
|
+
import * as i38 from "./adorners/image-item-value.component";
|
|
40
|
+
import * as i39 from "./questions/logic-operator.component";
|
|
41
|
+
import * as i40 from "./adorners/matrix-cell.component";
|
|
42
|
+
import * as i41 from "./question-editor.component";
|
|
43
|
+
import * as i42 from "./adorners/cell-question-dropdown.component";
|
|
44
|
+
import * as i43 from "./row.component";
|
|
45
|
+
import * as i44 from "./notifier.component";
|
|
46
|
+
import * as i45 from "./tabs/designer/designer-pages.component";
|
|
47
|
+
import * as i46 from "./tabs/designer/designer-survey.component";
|
|
48
|
+
import * as i47 from "./adorners/cell-question.component";
|
|
49
|
+
import * as i48 from "./question-widget.component";
|
|
50
|
+
import * as i49 from "./toolbox/toolbox.component";
|
|
51
|
+
import * as i50 from "./header/logo-image.component";
|
|
52
|
+
import * as i51 from "./adorners/question-rating.component";
|
|
53
|
+
import * as i52 from "@angular/common";
|
|
54
|
+
import * as i53 from "@angular/forms";
|
|
55
|
+
import * as i54 from "survey-angular-ui";
|
|
56
|
+
export declare class SurveyCreatorAngularModule {
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SurveyCreatorAngularModule, never>;
|
|
58
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SurveyCreatorAngularModule, [typeof i1.CreatorComponent, typeof i2.DesignerTabComponent, typeof i3.PageDesignerComponent, typeof i4.QuestionDesignerComponent, typeof i5.PanelDesignerComponent, typeof i6.SvgBundleComponent, typeof i7.TabbledMenuComponent, typeof i8.TabbedMenuItemComponent, typeof i9.TabbedMenuItemWrapperComponent, typeof i10.SidebarComponent, typeof i11.SidebarTabComponent, typeof i12.ObjectSelectorComponent, typeof i13.PropertyGridComponent, typeof i14.TextareaJsonEditorComponent, typeof i15.AceJsonEditorComponent, typeof i16.LogicTabComponent, typeof i17.LogicAddButtonComponent, typeof i18.ActionButtonComponent, typeof i19.LinkValueQuestionComponent, typeof i20.EmbeddedSurveyQuestionComponent, typeof i21.TranslationTabComponent, typeof i22.TranslationSkeletonComponent, typeof i23.SimulatorComponent, typeof i24.TestTabComponent, typeof i25.TestAgainActionComponent, typeof i26.SurveyResultsComponent, typeof i27.SurveyResultsTableRowComponent, typeof i28.AdaptiveToolboxComponent, typeof i29.ToolboxToolComponent, typeof i30.ToolboxItemComponent, typeof i31.ToolboxCategoryComponent, typeof i32.StringEditorComponent, typeof i33.PageNavigatorComponent, typeof i34.PageNavigatorItemComponent, typeof i35.QuestionDropdownDesignerComponent, typeof i35.QuestionDropdownAdornerDesignerComponent, typeof i36.QuestionImageDesignerComponent, typeof i36.QuestionImageAdornerDesignerComponent, typeof i37.ItemValueDesignerComponent, typeof i38.ImageItemValueDesignerComponent, typeof i39.LogicOperatorComponent, typeof i40.MatrixCellComponent, typeof i41.QuestionEditorComponent, typeof i42.CellQuestionDropdownComponent, typeof i43.CreatorRowComponent, typeof i44.NotifierComponent, typeof i45.DesignerPagesComponent, typeof i46.DesignerSurveyComponent, typeof i47.CellQuestionComponent, typeof i48.QuestionWidgetDesignerComponent, typeof i49.ToolboxComponent, typeof i50.CreatorLogoImageComponent, typeof i51.QuestionRatingAdornerDesignerComponent, typeof i51.QuestionRatingDesignerComponent], [typeof i52.CommonModule, typeof i53.FormsModule, typeof i54.SurveyAngularModule], [typeof i1.CreatorComponent]>;
|
|
59
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SurveyCreatorAngularModule>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EmbeddedViewContentComponent } from "survey-angular-ui";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ActionButtonComponent extends EmbeddedViewContentComponent {
|
|
4
|
+
classes: string;
|
|
5
|
+
click: () => void;
|
|
6
|
+
selected: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
text: string;
|
|
9
|
+
title: string;
|
|
10
|
+
allowBubble: boolean;
|
|
11
|
+
onClick(event: any): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionButtonComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionButtonComponent, "svc-action-button", never, { "classes": "classes"; "click": "click"; "selected": "selected"; "disabled": "disabled"; "text": "text"; "title": "title"; "allowBubble": "allowBubble"; }, {}, never, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseAngular } from "survey-angular-ui";
|
|
2
|
+
import { Base } from "survey-core";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare abstract class CreatorModelComponent<T extends Base> extends BaseAngular<T> {
|
|
5
|
+
protected abstract getPropertiesToTrack(): string[];
|
|
6
|
+
protected abstract createModel(): void;
|
|
7
|
+
private hash;
|
|
8
|
+
private createHash;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
ngDoCheck(): void;
|
|
11
|
+
needUpdateModel(): boolean;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CreatorModelComponent<any>, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CreatorModelComponent<any>, "ng-component", never, {}, {}, never, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef } from "@angular/core";
|
|
2
|
+
import { BaseAngular } from "survey-angular-ui";
|
|
3
|
+
import { CreatorBase } from "survey-creator-core";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CreatorComponent extends BaseAngular<CreatorBase> implements AfterViewInit {
|
|
6
|
+
model: CreatorBase;
|
|
7
|
+
container: ElementRef<HTMLDivElement>;
|
|
8
|
+
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
9
|
+
protected getModel(): CreatorBase;
|
|
10
|
+
get creator(): CreatorBase;
|
|
11
|
+
protected onModelChanged(): void;
|
|
12
|
+
ngAfterViewInit(): void;
|
|
13
|
+
ngOnDestroy(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CreatorComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CreatorComponent, "svc-creator", never, { "model": "model"; }, {}, never, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Component } from "@angular/core";
|
|
2
|
+
import { AngularComponentFactory } from "survey-angular-ui";
|
|
3
|
+
import { CellQuestionComponent } from "./cell-question.component";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "survey-angular-ui";
|
|
6
|
+
import * as i2 from "@angular/common";
|
|
7
|
+
export class CellQuestionDropdownComponent extends CellQuestionComponent {
|
|
8
|
+
getItemValueComponentName(item) {
|
|
9
|
+
return this.model.getItemValueWrapperComponentName(item) || "sv-ng-selectbase-item";
|
|
10
|
+
}
|
|
11
|
+
getItemValueComponentData(item) {
|
|
12
|
+
return {
|
|
13
|
+
componentName: "sv-ng-selectbase-item",
|
|
14
|
+
componentData: {
|
|
15
|
+
question: this.model,
|
|
16
|
+
model: item,
|
|
17
|
+
inputType: "radio",
|
|
18
|
+
data: this.model.getItemValueWrapperComponentData(item)
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
CellQuestionDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CellQuestionDropdownComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
CellQuestionDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: CellQuestionDropdownComponent, selector: "svc-cell-dropdown-question", usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div class=\"svc-question__adorner\">\n <div class=\"svc-question__content svc-question__content--selected-no-border\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n <div class=\"svc-question__dropdown-choices\">\n <div *ngFor=\"let item of model.visibleChoices\"class=\"svc-question__dropdown-choice\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </div>\n </div>\n\n </div>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], directives: [{ type: i1.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CellQuestionDropdownComponent, decorators: [{
|
|
26
|
+
type: Component,
|
|
27
|
+
args: [{ selector: "svc-cell-dropdown-question", styles: [":host { display: none; }"], template: "<ng-template #template>\n <div class=\"svc-question__adorner\">\n <div class=\"svc-question__content svc-question__content--selected-no-border\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n <div class=\"svc-question__dropdown-choices\">\n <div *ngFor=\"let item of model.visibleChoices\"class=\"svc-question__dropdown-choice\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </div>\n </div>\n\n </div>\n </div>\n</ng-template>" }]
|
|
28
|
+
}] });
|
|
29
|
+
AngularComponentFactory.Instance.registerComponent("svc-cell-dropdown-question", CellQuestionDropdownComponent);
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VsbC1xdWVzdGlvbi1kcm9wZG93bi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYWRvcm5lcnMvY2VsbC1xdWVzdGlvbi1kcm9wZG93bi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi9zcmMvYWRvcm5lcnMvY2VsbC1xdWVzdGlvbi1kcm9wZG93bi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTFDLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQzVELE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLDJCQUEyQixDQUFDOzs7O0FBT2xFLE1BQU0sT0FBTyw2QkFBOEIsU0FBUSxxQkFBNEM7SUFDdEYseUJBQXlCLEN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dWVzdGlvbkRyb3Bkb3duQ29tcG9uZW50KTsiLCI8bmctdGVtcGxhdGUgI3RlbXBsYXRlPlxuICA8ZGl2IGNsYXNzPVwic3ZjLXF1ZXN0aW9uX19hZG9ybmVyXCI+XG4gICAgPGRpdiBjbGFzcz1cInN2Yy1xdWVzdGlvbl9fY29udGVudCBzdmMtcXVlc3Rpb25fX2NvbnRlbnQtLXNlbGVjdGVkLW5vLWJvcmRlclwiPlxuICAgICAgPG5nLXRlbXBsYXRlIFtjb21wb25lbnRdPVwieyBuYW1lOiBjb21wb25lbnROYW1lLCBkYXRhOiBjb21wb25lbnREYXRhIH1cIj48L25nLXRlbXBsYXRlPlxuICAgICAgPGRpdiBjbGFzcz1cInN2Yy1xdWVzdGlvbl9fZHJvcGRvd24tY2hvaWNlc1wiPlxuICAgICAgICAgIDxkaXYgKm5nRm9yPVwibGV0IGl0ZW0gb2YgbW9kZWwudmlzaWJsZUNob2ljZXNcImNsYXNzPVwic3ZjLXF1ZXN0aW9uX19kcm9wZG93bi1jaG9pY2VcIj5cbiAgICAgICAgICAgIDxuZy10ZW1wbGF0ZSBbY29tcG9uZW50XT1cInsgbmFtZTogZ2V0SXRlbVZhbHVlQ29tcG9uZW50TmFtZShpdGVtKSwgZGF0YTogZ2V0SXRlbVZhbHVlQ29tcG9uZW50RGF0YShpdGVtKSB9XCI+PC9uZy10ZW1wbGF0ZT5cbiAgICAgICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cblxuICAgIDwvZGl2PlxuICA8L2Rpdj5cbjwvbmctdGVtcGxhdGU+Il19
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Component, Input } from "@angular/core";
|
|
2
|
+
import { AngularComponentFactory, BaseAngular } from "survey-angular-ui";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "survey-angular-ui";
|
|
5
|
+
export class CellQuestionComponent extends BaseAngular {
|
|
6
|
+
getModel() {
|
|
7
|
+
return this.model;
|
|
8
|
+
}
|
|
9
|
+
get model() {
|
|
10
|
+
return this.componentData.model;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
CellQuestionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CellQuestionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
CellQuestionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: CellQuestionComponent, selector: "svc-cell-question", inputs: { componentName: "componentName", componentData: "componentData" }, usesInheritance: true, ngImport: i0, template: "<ng-template #template>\n <div class=\"svc-question__adorner\">\n <div class=\"svc-question__content svc-question__content--selected-no-border\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n </div>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], directives: [{ type: i1.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CellQuestionComponent, decorators: [{
|
|
16
|
+
type: Component,
|
|
17
|
+
args: [{ selector: "svc-cell-question", styles: [":host { display: none; }"], template: "<ng-template #template>\n <div class=\"svc-question__adorner\">\n <div class=\"svc-question__content svc-question__content--selected-no-border\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n </div>\n </div>\n</ng-template>" }]
|
|
18
|
+
}], propDecorators: { componentName: [{
|
|
19
|
+
type: Input
|
|
20
|
+
}], componentData: [{
|
|
21
|
+
type: Input
|
|
22
|
+
}] } });
|
|
23
|
+
AngularComponentFactory.Instance.registerComponent("svc-cell-question", CellQuestionComponent);
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2VsbC1xdWVzdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYWRvcm5lcnMvY2V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