survey-creator-core 1.9.82 → 1.9.84
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/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +75 -14
- package/survey-creator-core.d.ts +1 -8046
- package/survey-creator-core.fontless.css +74 -13
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +4 -4
- package/survey-creator-core.i18n.js +126 -128
- package/survey-creator-core.i18n.js.map +1 -1
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +447 -152
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +5 -5
- package/survey-creator-core.min.js +2 -2
- package/typings/components/action-container-view-model.d.ts +27 -0
- package/typings/components/embedded-survey.d.ts +9 -0
- package/typings/components/header/logo-image.d.ts +15 -0
- package/typings/components/image-item-value.d.ts +21 -0
- package/typings/components/item-value.d.ts +42 -0
- package/typings/components/link-value.d.ts +27 -0
- package/typings/components/matrix-cell.d.ts +25 -0
- package/typings/components/page-navigator/page-navigator.d.ts +39 -0
- package/typings/components/page.d.ts +28 -0
- package/typings/components/question-dropdown.d.ts +18 -0
- package/typings/components/question-image.d.ts +9 -0
- package/typings/components/question-rating.d.ts +15 -0
- package/typings/components/question.d.ts +41 -0
- package/typings/components/results.d.ts +40 -0
- package/typings/components/row.d.ts +9 -0
- package/typings/components/side-bar/side-bar-model.d.ts +34 -0
- package/typings/components/side-bar/side-bar-tab-model.d.ts +11 -0
- package/typings/components/simulator.d.ts +205 -0
- package/typings/components/string-editor.d.ts +68 -0
- package/typings/components/tabs/designer-plugin.d.ts +26 -0
- package/typings/components/tabs/designer.d.ts +29 -0
- package/typings/components/tabs/embed-json.d.ts +1 -0
- package/typings/components/tabs/embed.d.ts +13 -0
- package/typings/components/tabs/json-editor-ace.d.ts +22 -0
- package/typings/components/tabs/json-editor-plugin.d.ts +28 -0
- package/typings/components/tabs/json-editor-textarea.d.ts +22 -0
- package/typings/components/tabs/logic-actions-model.d.ts +49 -0
- package/typings/components/tabs/logic-expression.d.ts +32 -0
- package/typings/components/tabs/logic-item-editor.d.ts +53 -0
- package/typings/components/tabs/logic-items.d.ts +96 -0
- package/typings/components/tabs/logic-plugin.d.ts +22 -0
- package/typings/components/tabs/logic-theme.d.ts +327 -0
- package/typings/components/tabs/logic-types.d.ts +77 -0
- package/typings/components/tabs/logic-ui.d.ts +68 -0
- package/typings/components/tabs/logic.d.ts +102 -0
- package/typings/components/tabs/test-plugin.d.ts +33 -0
- package/typings/components/tabs/test.d.ts +43 -0
- package/typings/components/tabs/translation-plugin.d.ts +33 -0
- package/typings/components/tabs/translation-theme.d.ts +301 -0
- package/typings/components/tabs/translation.d.ts +199 -0
- package/typings/components/toolbox/toolbox-tool.d.ts +16 -0
- package/typings/creator-base.d.ts +1375 -0
- package/typings/creator-options.d.ts +247 -0
- package/typings/creator-responsivity-manager.d.ts +22 -0
- package/typings/creator-settings.d.ts +216 -0
- package/typings/custom-questions/question-color.d.ts +15 -0
- package/typings/custom-questions/question-file.d.ts +15 -0
- package/typings/custom-questions/question-spin-editor.d.ts +25 -0
- package/typings/editable-object.d.ts +20 -0
- package/typings/editorLocalization.d.ts +951 -0
- package/typings/entries/index.d.ts +68 -0
- package/typings/expressionToDisplayText.d.ts +46 -0
- package/typings/json5.d.ts +46 -0
- package/typings/localization/english.d.ts +922 -0
- package/typings/pages-controller.d.ts +21 -0
- package/typings/plugins/undo-redo/index.d.ts +12 -0
- package/typings/plugins/undo-redo/undo-redo-controller.d.ts +40 -0
- package/typings/plugins/undo-redo/undo-redo-manager.d.ts +78 -0
- package/typings/property-grid/bindings.d.ts +10 -0
- package/typings/property-grid/cells-survey.d.ts +14 -0
- package/typings/property-grid/condition-survey.d.ts +117 -0
- package/typings/property-grid/condition.d.ts +13 -0
- package/typings/property-grid/description-parser.d.ts +10 -0
- package/typings/property-grid/fast-entry.d.ts +32 -0
- package/typings/property-grid/index.d.ts +239 -0
- package/typings/property-grid/matrices.d.ts +132 -0
- package/typings/property-grid/object-selector.d.ts +42 -0
- package/typings/property-grid/property-grid-view-model.d.ts +23 -0
- package/typings/property-grid/restfull.d.ts +8 -0
- package/typings/property-grid/values-survey.d.ts +42 -0
- package/typings/property-grid/values.d.ts +37 -0
- package/typings/property-grid-theme/property-grid.d.ts +346 -0
- package/typings/question-editor/definition.d.ts +22 -0
- package/typings/question-editor/properties.d.ts +49 -0
- package/typings/questionconverter.d.ts +12 -0
- package/typings/selection-history.d.ts +20 -0
- package/typings/selection-owner.d.ts +7 -0
- package/typings/survey-helper.d.ts +43 -0
- package/typings/svgbundle.d.ts +1 -0
- package/typings/textWorker.d.ts +18 -0
- package/typings/toolbox.d.ts +269 -0
- package/typings/utils/actions.d.ts +5 -0
- package/typings/utils/events.d.ts +14 -0
- package/typings/utils/resizer.d.ts +24 -0
- package/typings/utils/utils.d.ts +19 -0
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
export declare var translationCss: {
|
|
2
|
+
root: string;
|
|
3
|
+
container: string;
|
|
4
|
+
header: string;
|
|
5
|
+
body: string;
|
|
6
|
+
bodyEmpty: string;
|
|
7
|
+
footer: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
logo: string;
|
|
11
|
+
logoImage: string;
|
|
12
|
+
headerText: string;
|
|
13
|
+
navigationButton: string;
|
|
14
|
+
completedPage: string;
|
|
15
|
+
navigation: {
|
|
16
|
+
complete: string;
|
|
17
|
+
prev: string;
|
|
18
|
+
next: string;
|
|
19
|
+
start: string;
|
|
20
|
+
preview: string;
|
|
21
|
+
edit: string;
|
|
22
|
+
};
|
|
23
|
+
panel: {
|
|
24
|
+
title: string;
|
|
25
|
+
titleExpandable: string;
|
|
26
|
+
titleOnExpand: string;
|
|
27
|
+
titleOnError: string;
|
|
28
|
+
description: string;
|
|
29
|
+
container: string;
|
|
30
|
+
content: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
iconExpanded: string;
|
|
33
|
+
footer: string;
|
|
34
|
+
requiredText: string;
|
|
35
|
+
};
|
|
36
|
+
paneldynamic: {
|
|
37
|
+
root: string;
|
|
38
|
+
navigation: string;
|
|
39
|
+
title: string;
|
|
40
|
+
button: string;
|
|
41
|
+
buttonRemove: string;
|
|
42
|
+
buttonAdd: string;
|
|
43
|
+
progressTop: string;
|
|
44
|
+
progressBottom: string;
|
|
45
|
+
buttonPrev: string;
|
|
46
|
+
buttonNext: string;
|
|
47
|
+
progressContainer: string;
|
|
48
|
+
progress: string;
|
|
49
|
+
progressBar: string;
|
|
50
|
+
progressText: string;
|
|
51
|
+
separator: string;
|
|
52
|
+
panelWrapper: string;
|
|
53
|
+
panelWrapperInRow: string;
|
|
54
|
+
};
|
|
55
|
+
progress: string;
|
|
56
|
+
progressBar: string;
|
|
57
|
+
progressText: string;
|
|
58
|
+
progressTextInBar: string;
|
|
59
|
+
page: {
|
|
60
|
+
root: string;
|
|
61
|
+
title: string;
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
pageTitle: string;
|
|
65
|
+
pageDescription: string;
|
|
66
|
+
row: string;
|
|
67
|
+
question: {
|
|
68
|
+
mainRoot: string;
|
|
69
|
+
flowRoot: string;
|
|
70
|
+
asCell: string;
|
|
71
|
+
header: string;
|
|
72
|
+
headerLeft: string;
|
|
73
|
+
headerTop: string;
|
|
74
|
+
headerBottom: string;
|
|
75
|
+
content: string;
|
|
76
|
+
contentLeft: string;
|
|
77
|
+
titleLeftRoot: string;
|
|
78
|
+
titleOnAnswer: string;
|
|
79
|
+
titleOnError: string;
|
|
80
|
+
title: string;
|
|
81
|
+
requiredText: string;
|
|
82
|
+
number: string;
|
|
83
|
+
description: string;
|
|
84
|
+
descriptionUnderInput: string;
|
|
85
|
+
comment: string;
|
|
86
|
+
required: string;
|
|
87
|
+
titleRequired: string;
|
|
88
|
+
indent: number;
|
|
89
|
+
footer: string;
|
|
90
|
+
formGroup: string;
|
|
91
|
+
hasError: string;
|
|
92
|
+
disabled: string;
|
|
93
|
+
};
|
|
94
|
+
image: {
|
|
95
|
+
root: string;
|
|
96
|
+
image: string;
|
|
97
|
+
};
|
|
98
|
+
error: {
|
|
99
|
+
root: string;
|
|
100
|
+
icon: string;
|
|
101
|
+
item: string;
|
|
102
|
+
locationTop: string;
|
|
103
|
+
locationBottom: string;
|
|
104
|
+
};
|
|
105
|
+
checkbox: {
|
|
106
|
+
root: string;
|
|
107
|
+
item: string;
|
|
108
|
+
itemSelectAll: string;
|
|
109
|
+
itemNone: string;
|
|
110
|
+
itemDisabled: string;
|
|
111
|
+
itemChecked: string;
|
|
112
|
+
itemHover: string;
|
|
113
|
+
itemInline: string;
|
|
114
|
+
label: string;
|
|
115
|
+
labelChecked: string;
|
|
116
|
+
itemControl: string;
|
|
117
|
+
itemDecorator: string;
|
|
118
|
+
controlLabel: string;
|
|
119
|
+
materialDecorator: string;
|
|
120
|
+
other: string;
|
|
121
|
+
column: string;
|
|
122
|
+
};
|
|
123
|
+
radiogroup: {
|
|
124
|
+
root: string;
|
|
125
|
+
item: string;
|
|
126
|
+
itemInline: string;
|
|
127
|
+
label: string;
|
|
128
|
+
labelChecked: string;
|
|
129
|
+
itemDisabled: string;
|
|
130
|
+
itemChecked: string;
|
|
131
|
+
itemHover: string;
|
|
132
|
+
itemControl: string;
|
|
133
|
+
itemDecorator: string;
|
|
134
|
+
controlLabel: string;
|
|
135
|
+
materialDecorator: string;
|
|
136
|
+
other: string;
|
|
137
|
+
clearButton: string;
|
|
138
|
+
column: string;
|
|
139
|
+
};
|
|
140
|
+
boolean: {
|
|
141
|
+
mainRoot: string;
|
|
142
|
+
root: string;
|
|
143
|
+
item: string;
|
|
144
|
+
control: string;
|
|
145
|
+
itemChecked: string;
|
|
146
|
+
itemIndeterminate: string;
|
|
147
|
+
itemDisabled: string;
|
|
148
|
+
label: string;
|
|
149
|
+
switch: string;
|
|
150
|
+
disabledLabel: string;
|
|
151
|
+
itemDecorator: string;
|
|
152
|
+
materialDecorator: string;
|
|
153
|
+
sliderText: string;
|
|
154
|
+
slider: string;
|
|
155
|
+
};
|
|
156
|
+
text: {
|
|
157
|
+
root: string;
|
|
158
|
+
small: string;
|
|
159
|
+
controlDisabled: string;
|
|
160
|
+
onError: string;
|
|
161
|
+
};
|
|
162
|
+
multipletext: {
|
|
163
|
+
root: string;
|
|
164
|
+
item: string;
|
|
165
|
+
itemTitle: string;
|
|
166
|
+
row: string;
|
|
167
|
+
cell: string;
|
|
168
|
+
};
|
|
169
|
+
dropdown: {
|
|
170
|
+
root: string;
|
|
171
|
+
small: string;
|
|
172
|
+
control: string;
|
|
173
|
+
selectWrapper: string;
|
|
174
|
+
other: string;
|
|
175
|
+
onError: string;
|
|
176
|
+
label: string;
|
|
177
|
+
item: string;
|
|
178
|
+
itemDisabled: string;
|
|
179
|
+
itemChecked: string;
|
|
180
|
+
itemHover: string;
|
|
181
|
+
itemControl: string;
|
|
182
|
+
itemDecorator: string;
|
|
183
|
+
controlDisabled: string;
|
|
184
|
+
controlLabel: string;
|
|
185
|
+
materialDecorator: string;
|
|
186
|
+
};
|
|
187
|
+
imagepicker: {
|
|
188
|
+
root: string;
|
|
189
|
+
item: string;
|
|
190
|
+
itemInline: string;
|
|
191
|
+
itemChecked: string;
|
|
192
|
+
itemDisabled: string;
|
|
193
|
+
itemHover: string;
|
|
194
|
+
label: string;
|
|
195
|
+
itemControl: string;
|
|
196
|
+
image: string;
|
|
197
|
+
itemText: string;
|
|
198
|
+
clearButton: string;
|
|
199
|
+
other: string;
|
|
200
|
+
};
|
|
201
|
+
matrix: {
|
|
202
|
+
mainRoot: string;
|
|
203
|
+
tableWrapper: string;
|
|
204
|
+
root: string;
|
|
205
|
+
rowError: string;
|
|
206
|
+
cell: string;
|
|
207
|
+
headerCell: string;
|
|
208
|
+
label: string;
|
|
209
|
+
itemValue: string;
|
|
210
|
+
itemChecked: string;
|
|
211
|
+
itemDisabled: string;
|
|
212
|
+
itemHover: string;
|
|
213
|
+
materialDecorator: string;
|
|
214
|
+
itemDecorator: string;
|
|
215
|
+
cellText: string;
|
|
216
|
+
cellTextSelected: string;
|
|
217
|
+
cellTextDisabled: string;
|
|
218
|
+
};
|
|
219
|
+
matrixdropdown: {
|
|
220
|
+
mainRoot: string;
|
|
221
|
+
root: string;
|
|
222
|
+
cell: string;
|
|
223
|
+
headerCell: string;
|
|
224
|
+
};
|
|
225
|
+
matrixdynamic: {
|
|
226
|
+
mainRoot: string;
|
|
227
|
+
root: string;
|
|
228
|
+
cell: string;
|
|
229
|
+
headerCell: string;
|
|
230
|
+
button: string;
|
|
231
|
+
detailRow: string;
|
|
232
|
+
detailButton: string;
|
|
233
|
+
detailButtonExpanded: string;
|
|
234
|
+
detailIcon: string;
|
|
235
|
+
detailIconExpanded: string;
|
|
236
|
+
detailPanelCell: string;
|
|
237
|
+
actionsCell: string;
|
|
238
|
+
buttonAdd: string;
|
|
239
|
+
buttonRemove: string;
|
|
240
|
+
iconAdd: string;
|
|
241
|
+
iconRemove: string;
|
|
242
|
+
};
|
|
243
|
+
rating: {
|
|
244
|
+
root: string;
|
|
245
|
+
item: string;
|
|
246
|
+
itemHover: string;
|
|
247
|
+
selected: string;
|
|
248
|
+
minText: string;
|
|
249
|
+
itemText: string;
|
|
250
|
+
maxText: string;
|
|
251
|
+
itemDisabled: string;
|
|
252
|
+
};
|
|
253
|
+
comment: {
|
|
254
|
+
root: string;
|
|
255
|
+
small: string;
|
|
256
|
+
};
|
|
257
|
+
expression: string;
|
|
258
|
+
file: {
|
|
259
|
+
root: string;
|
|
260
|
+
other: string;
|
|
261
|
+
placeholderInput: string;
|
|
262
|
+
preview: string;
|
|
263
|
+
fileSign: string;
|
|
264
|
+
fileSignBottom: string;
|
|
265
|
+
fileDecorator: string;
|
|
266
|
+
fileInput: string;
|
|
267
|
+
noFileChosen: string;
|
|
268
|
+
chooseFile: string;
|
|
269
|
+
disabled: string;
|
|
270
|
+
removeButton: string;
|
|
271
|
+
removeButtonBottom: string;
|
|
272
|
+
removeFile: string;
|
|
273
|
+
removeFileSvg: string;
|
|
274
|
+
wrapper: string;
|
|
275
|
+
};
|
|
276
|
+
signaturepad: {
|
|
277
|
+
root: string;
|
|
278
|
+
small: string;
|
|
279
|
+
controls: string;
|
|
280
|
+
placeholder: string;
|
|
281
|
+
clearButton: string;
|
|
282
|
+
};
|
|
283
|
+
saveData: {
|
|
284
|
+
root: string;
|
|
285
|
+
saving: string;
|
|
286
|
+
error: string;
|
|
287
|
+
success: string;
|
|
288
|
+
saveAgainButton: string;
|
|
289
|
+
};
|
|
290
|
+
window: {
|
|
291
|
+
root: string;
|
|
292
|
+
body: string;
|
|
293
|
+
header: {
|
|
294
|
+
root: string;
|
|
295
|
+
title: string;
|
|
296
|
+
button: string;
|
|
297
|
+
buttonExpanded: string;
|
|
298
|
+
buttonCollapsed: string;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
};
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { Base, SurveyModel, JsonObjectProperty, PageModel, ILocalizableString, QuestionCheckboxModel, IAction } from "survey-core";
|
|
2
|
+
import { ISurveyCreatorOptions } from "../../creator-settings";
|
|
3
|
+
export declare class TranslationItemBase extends Base {
|
|
4
|
+
name: string;
|
|
5
|
+
protected translation: ITranslationLocales;
|
|
6
|
+
constructor(name: string, translation: ITranslationLocales);
|
|
7
|
+
get isGroup(): boolean;
|
|
8
|
+
fillLocales(locales: Array<string>): void;
|
|
9
|
+
mergeLocaleWithDefault(loc: string): void;
|
|
10
|
+
makeObservable(): void;
|
|
11
|
+
deleteLocaleStrings(locale: string): void;
|
|
12
|
+
protected fireOnObjCreating(obj?: Base): void;
|
|
13
|
+
}
|
|
14
|
+
export declare class TranslationItemString extends Base {
|
|
15
|
+
locString: ILocalizableString;
|
|
16
|
+
locale: string;
|
|
17
|
+
constructor(locString: ILocalizableString, locale: string);
|
|
18
|
+
text: string;
|
|
19
|
+
placeholder: string;
|
|
20
|
+
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
21
|
+
getType(): string;
|
|
22
|
+
}
|
|
23
|
+
export declare class TranslationItem extends TranslationItemBase {
|
|
24
|
+
name: string;
|
|
25
|
+
locString: ILocalizableString;
|
|
26
|
+
defaultValue: string;
|
|
27
|
+
context: any;
|
|
28
|
+
private property;
|
|
29
|
+
private hashValues;
|
|
30
|
+
customText: string;
|
|
31
|
+
afterRender: any;
|
|
32
|
+
constructor(name: string, locString: ILocalizableString, defaultValue: string, translation: ITranslationLocales, context: any, property?: JsonObjectProperty);
|
|
33
|
+
get maxLength(): number;
|
|
34
|
+
makeObservable(): void;
|
|
35
|
+
getType(): string;
|
|
36
|
+
readOnly: boolean;
|
|
37
|
+
get text(): string;
|
|
38
|
+
get localizableName(): string;
|
|
39
|
+
getLocText(loc: string): string;
|
|
40
|
+
setLocText(loc: string, newValue: string): void;
|
|
41
|
+
values(loc: string): TranslationItemString;
|
|
42
|
+
fillLocales(locales: Array<string>): void;
|
|
43
|
+
toJSON(): any;
|
|
44
|
+
private correctJSON;
|
|
45
|
+
private getKeys;
|
|
46
|
+
mergeLocaleWithDefault(loc: string): void;
|
|
47
|
+
deleteLocaleStrings(locale: string): void;
|
|
48
|
+
getPlaceholder(locale: string): string;
|
|
49
|
+
getTextForExport(loc: string): string;
|
|
50
|
+
getPlaceholderText(loc: string): string;
|
|
51
|
+
private getRootDialect;
|
|
52
|
+
private getItemValuePlaceholderText;
|
|
53
|
+
}
|
|
54
|
+
export interface ITranslationLocales {
|
|
55
|
+
locales: Array<string>;
|
|
56
|
+
showAllStrings: boolean;
|
|
57
|
+
readOnly: boolean;
|
|
58
|
+
getLocaleName(loc: string): string;
|
|
59
|
+
availableTranlationsChangedCallback: () => void;
|
|
60
|
+
tranlationChangedCallback: (locale: string, name: string, value: string, context: any) => void;
|
|
61
|
+
translateItemAfterRender(item: TranslationItem, el: any, locale: string): any;
|
|
62
|
+
fireOnObjCreating(obj: Base): any;
|
|
63
|
+
removeLocale(loc: string): void;
|
|
64
|
+
canShowProperty(obj: Base, prop: JsonObjectProperty, isEmpty: boolean): boolean;
|
|
65
|
+
getProcessedTranslationItemText(locale: string, name: ILocalizableString, newValue: string, context: any): string;
|
|
66
|
+
}
|
|
67
|
+
export declare class TranslationGroup extends TranslationItemBase {
|
|
68
|
+
name: any;
|
|
69
|
+
obj: any;
|
|
70
|
+
text: string;
|
|
71
|
+
hasIndent: boolean;
|
|
72
|
+
private isRootValue;
|
|
73
|
+
private itemValues;
|
|
74
|
+
constructor(name: any, obj: any, translation?: ITranslationLocales, text?: string, hasIndent?: boolean);
|
|
75
|
+
getType(): string;
|
|
76
|
+
showHeader: boolean;
|
|
77
|
+
get items(): Array<TranslationItemBase>;
|
|
78
|
+
get locItems(): Array<TranslationItem>;
|
|
79
|
+
get isRoot(): boolean;
|
|
80
|
+
setAsRoot(): void;
|
|
81
|
+
getItemByName(name: string): TranslationItemBase;
|
|
82
|
+
get groups(): Array<TranslationGroup>;
|
|
83
|
+
get isGroup(): boolean;
|
|
84
|
+
get locales(): string[];
|
|
85
|
+
get removeLocaleText(): string;
|
|
86
|
+
get localeCount(): number;
|
|
87
|
+
get locWidth(): string;
|
|
88
|
+
getLocaleName(loc: string): string;
|
|
89
|
+
removeLocale: (loc: string) => void;
|
|
90
|
+
reset(): void;
|
|
91
|
+
fillLocales(locales: Array<string>): void;
|
|
92
|
+
makeObservable(): void;
|
|
93
|
+
get showAllStrings(): boolean;
|
|
94
|
+
get hasItems(): boolean;
|
|
95
|
+
mergeLocaleWithDefault(loc: string): void;
|
|
96
|
+
deleteLocaleStrings(locale: string): void;
|
|
97
|
+
private fillItems;
|
|
98
|
+
private sortItems;
|
|
99
|
+
private getLocalizedProperties;
|
|
100
|
+
private getArrayProperties;
|
|
101
|
+
private canShowProperty;
|
|
102
|
+
private createTranslationItem;
|
|
103
|
+
private getDefaultValue;
|
|
104
|
+
private isItemValueArray;
|
|
105
|
+
private createGroups;
|
|
106
|
+
private createItemValuesLocale;
|
|
107
|
+
private addCustomPropertiesForItemValue;
|
|
108
|
+
}
|
|
109
|
+
export declare class Translation extends Base implements ITranslationLocales {
|
|
110
|
+
private options;
|
|
111
|
+
private hasUI;
|
|
112
|
+
static csvDelimiter: string;
|
|
113
|
+
static newLineDelimiter: string;
|
|
114
|
+
exportToCSVFileUI: any;
|
|
115
|
+
importFromCSVFileUI: any;
|
|
116
|
+
importItemCallback: (name: string, locale: string, text: string) => string;
|
|
117
|
+
importFinishedCallback: () => void;
|
|
118
|
+
translateItemAfterRenderCallback: (item: TranslationItem, el: any, locale: string) => void;
|
|
119
|
+
availableTranlationsChangedCallback: () => void;
|
|
120
|
+
tranlationChangedCallback: (locale: string, name: string, value: string, context: any) => void;
|
|
121
|
+
translationStringVisibilityCallback: (obj: Base, propertyName: string, visible: boolean) => boolean;
|
|
122
|
+
localeInitialVisibleCallback: (locale: string) => boolean;
|
|
123
|
+
private surveyValue;
|
|
124
|
+
private settingsSurveyValue;
|
|
125
|
+
private onBaseObjCreatingCallback;
|
|
126
|
+
private addLanguageAction;
|
|
127
|
+
chooseLanguageActions: Array<IAction>;
|
|
128
|
+
constructor(survey: SurveyModel, options?: ISurveyCreatorOptions, hasUI?: boolean);
|
|
129
|
+
getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, context: any): string;
|
|
130
|
+
getType(): string;
|
|
131
|
+
locales: Array<string>;
|
|
132
|
+
canMergeLocaleWithDefault: boolean;
|
|
133
|
+
mergeLocaleWithDefaultText: string;
|
|
134
|
+
readOnly: boolean;
|
|
135
|
+
root: TranslationGroup;
|
|
136
|
+
showAllStrings: boolean;
|
|
137
|
+
filteredPage: PageModel;
|
|
138
|
+
stringsSurvey: SurveyModel;
|
|
139
|
+
stringsHeaderSurvey: SurveyModel;
|
|
140
|
+
isEmpty: boolean;
|
|
141
|
+
makeObservable(onBaseObjCreating: (obj: Base) => void): void;
|
|
142
|
+
fireOnObjCreating(obj: Base): void;
|
|
143
|
+
get settingsSurvey(): SurveyModel;
|
|
144
|
+
get localesQuestion(): QuestionCheckboxModel;
|
|
145
|
+
deleteLocaleStrings(locale: string): void;
|
|
146
|
+
protected createSettingsSurvey(): SurveyModel;
|
|
147
|
+
private isChooseLanguageEnabled;
|
|
148
|
+
private calcIsChooseLanguageEnabled;
|
|
149
|
+
private updateLocales;
|
|
150
|
+
private getSettingsSurveyJSON;
|
|
151
|
+
getSurveyLocales(): any[];
|
|
152
|
+
private updateSettingsSurveyLocales;
|
|
153
|
+
private resetStringsSurvey;
|
|
154
|
+
private createStringsSurvey;
|
|
155
|
+
private setPlaceHolder;
|
|
156
|
+
private createStringsHeaderSurvey;
|
|
157
|
+
private addTranslationGroupIntoStringsSurvey;
|
|
158
|
+
private addLocaleColumns;
|
|
159
|
+
private getStringsSurveyQuestionName;
|
|
160
|
+
private getStringsSurveyData;
|
|
161
|
+
private getStringsQuestionData;
|
|
162
|
+
private updateHeaderStringsSurveyColumns;
|
|
163
|
+
private updateStringsSurveyColumns;
|
|
164
|
+
private addLocaleIntoChoices;
|
|
165
|
+
private addLocaleIntoValue;
|
|
166
|
+
private addLocaleIntoValueCore;
|
|
167
|
+
private isLocaleVisible;
|
|
168
|
+
private setupToolbarItems;
|
|
169
|
+
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
170
|
+
private getMergeLocaleWithDefaultText;
|
|
171
|
+
get survey(): SurveyModel;
|
|
172
|
+
set survey(val: SurveyModel);
|
|
173
|
+
reset(resetSelectedLocales?: boolean): void;
|
|
174
|
+
private updateReadOnly;
|
|
175
|
+
canShowProperty(obj: Base, prop: JsonObjectProperty, isEmpty: boolean): boolean;
|
|
176
|
+
get defaultLocale(): string;
|
|
177
|
+
getLocaleName(loc: string): string;
|
|
178
|
+
removeLocale(locale: string): void;
|
|
179
|
+
hasLocale(locale: string): boolean;
|
|
180
|
+
addLocale(locale: string): void;
|
|
181
|
+
private updateChooseLanguageActions;
|
|
182
|
+
resetLocales(): void;
|
|
183
|
+
getSelectedLocales(): Array<string>;
|
|
184
|
+
setSelectedLocales(selectedLocales: Array<string>): void;
|
|
185
|
+
get noStringsText(): string;
|
|
186
|
+
exportToCSV(): string;
|
|
187
|
+
importFromNestedArray(rows: string[][]): void;
|
|
188
|
+
exportToSCVFile(fileName: string): void;
|
|
189
|
+
importFromCSVFile(file: File): void;
|
|
190
|
+
mergeLocaleWithDefault(): void;
|
|
191
|
+
translateItemAfterRender(item: TranslationItem, el: any, locale: string): void;
|
|
192
|
+
/**
|
|
193
|
+
* Update a translation item with given values
|
|
194
|
+
*/
|
|
195
|
+
private updateItemWithStrings;
|
|
196
|
+
private fillItemsHash;
|
|
197
|
+
private setLocales;
|
|
198
|
+
dispose(): void;
|
|
199
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Base } from "survey-core";
|
|
2
|
+
import { IQuestionToolboxItem } from "../../toolbox";
|
|
3
|
+
import { CreatorBase } from "../../creator-base";
|
|
4
|
+
export declare class ToolboxToolViewModel extends Base {
|
|
5
|
+
protected item: IQuestionToolboxItem;
|
|
6
|
+
protected creator: CreatorBase;
|
|
7
|
+
private dragOrClickHelper;
|
|
8
|
+
constructor(item: IQuestionToolboxItem, creator: CreatorBase);
|
|
9
|
+
click: (event: any) => void;
|
|
10
|
+
get allowAdd(): boolean;
|
|
11
|
+
onPointerDown(pointerDownEvent: any): boolean;
|
|
12
|
+
private _node;
|
|
13
|
+
private onPointerUp;
|
|
14
|
+
private startDragToolboxItem;
|
|
15
|
+
private get dragDropHelper();
|
|
16
|
+
}
|