survey-creator-core 1.9.100 → 1.9.102

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.
@@ -13,6 +13,7 @@ export declare class AceJsonEditorModel extends JsonEditorBaseModel {
13
13
  protected onTextChanged(): void;
14
14
  private createAnnotations;
15
15
  protected setErrors(errors: any[]): void;
16
+ protected gotoError(at: number, row: number, column: number): void;
16
17
  onEditorActivated(): void;
17
18
  }
18
19
  export declare class TabJsonEditorAcePlugin extends TabJsonEditorBasePlugin implements ICreatorPlugin {
@@ -1,11 +1,13 @@
1
- import { Base } from "survey-core";
1
+ import { Base, ListModel } from "survey-core";
2
2
  import { ICreatorPlugin, CreatorBase } from "../../creator-base";
3
+ import { SurveyTextWorkerError } from "../../textWorker";
3
4
  export declare abstract class JsonEditorBaseModel extends Base {
4
5
  protected creator: CreatorBase;
5
6
  isJSONChanged: boolean;
6
7
  isProcessingImmediately: boolean;
7
8
  private static updateTextTimeout;
8
9
  private jsonEditorChangedTimeoutId;
10
+ hasErrors: boolean;
9
11
  constructor(creator: CreatorBase);
10
12
  get text(): string;
11
13
  set text(val: string);
@@ -14,7 +16,11 @@ export declare abstract class JsonEditorBaseModel extends Base {
14
16
  protected onEditorActivated(): void;
15
17
  onPluginActivate(): void;
16
18
  protected onTextChanged(): void;
17
- protected abstract setErrors(errors: any[]): void;
19
+ private errorListValue;
20
+ get errorList(): ListModel;
21
+ protected setErrors(errors: Array<SurveyTextWorkerError>): void;
22
+ protected gotoError(at: number, row: number, column: number): void;
23
+ private createErrorActions;
18
24
  processErrors(text: string): void;
19
25
  get readOnly(): boolean;
20
26
  }
@@ -4,11 +4,13 @@ export declare class TextareaJsonEditorModel extends JsonEditorBaseModel {
4
4
  protected _text: string;
5
5
  private _errors;
6
6
  ariaLabel: string;
7
+ textElement: HTMLTextAreaElement;
7
8
  canShowErrors: boolean;
8
9
  constructor(creator: CreatorBase);
9
10
  checkKey(data: any, e: any): boolean;
10
11
  protected getText(): string;
11
12
  protected setText(value: string): void;
13
+ protected gotoError(at: number, row: number, column: number): void;
12
14
  get errorButtonText(): string;
13
15
  toggleErrors(): void;
14
16
  get userFriendlyErrors(): any[];
@@ -1,5 +1,4 @@
1
- import * as Survey from "survey-core";
2
- import { Base, SurveyModel, Question, PageModel, IElement, JsonObjectProperty, ActionContainer, AdaptiveActionContainer, IAction, Action, IPanel, SurveyElement, ItemValue, QuestionSelectBase, LocalizableString, ILocalizableString, ILocalizableOwner, PopupBaseViewModel, EventBase, ITheme } from "survey-core";
1
+ import { Base, SurveyModel, Question, PageModel, IElement, JsonObjectProperty, ActionContainer, AdaptiveActionContainer, IAction, Action, IPanel, SurveyElement, ItemValue, QuestionSelectBase, LocalizableString, ILocalizableString, ILocalizableOwner, PopupBaseViewModel, EventBase, Event, MatrixDropdownColumn, ISurveyElement, ITheme } from "survey-core";
3
2
  import { ISurveyCreatorOptions, ICollectionItemAllowOperations } from "./creator-settings";
4
3
  import { DragDropChoices } from "survey-core";
5
4
  import { QuestionToolbox } from "./toolbox";
@@ -7,6 +6,7 @@ import { PropertyGridModel } from "./property-grid";
7
6
  import { ICreatorSelectionOwner } from "./selection-owner";
8
7
  import { SelectionHistory } from "./selection-history";
9
8
  import { SurveyLogic } from "./components/tabs/logic";
9
+ import { Notifier } from "survey-core";
10
10
  import { UndoRedoManager } from "./plugins/undo-redo/undo-redo-manager";
11
11
  import { UndoRedoController } from "./plugins/undo-redo/undo-redo-controller";
12
12
  import { SidebarModel } from "./components/side-bar/side-bar-model";
@@ -91,7 +91,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
91
91
  get showPreviewTab(): boolean;
92
92
  set showPreviewTab(val: boolean);
93
93
  /**
94
- * Specifies whether to display the Theme tab.
94
+ * Specifies whether to display the Themes tab.
95
95
  *
96
96
  * Default value: `false`
97
97
  */
@@ -142,7 +142,8 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
142
142
  *
143
143
  * > You can enable this property only if you have a Survey Creator commercial license. It is illegal to enable this property without a license.
144
144
  */
145
- haveCommercialLicense: boolean;
145
+ get haveCommercialLicense(): boolean;
146
+ set haveCommercialLicense(val: boolean);
146
147
  get licenseText(): string;
147
148
  /**
148
149
  * Specifies whether to call the [saveSurveyFunc](https://surveyjs.io/Documentation/Survey-Creator?id=surveycreator#saveSurveyFunc) each time survey settings are changed.
@@ -512,6 +513,9 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
512
513
  * A Survey Creator instance that raised the event.
513
514
  * - `options.questionName`: `String`\
514
515
  * The name of a question for which conditions are displayed.
516
+ * - `options.questionName`: `String`\
517
+ * The type of a question for which conditions are displayed.
518
+ * The name of a question for which conditions are displayed.
515
519
  * - `options.operator`: `"empty"` | `"notempty"` | `"equal"` | `"notequal"` | `"contains"` | `"notcontains"` | `"anyof"` | `"allof"` | `"greater"` | `"less"` | `"greaterorequal"` | `"lessorequal"`\
516
520
  * A condition opeator for which the event is raised.
517
521
  * - `options.show`: `Boolean`\
@@ -532,58 +536,61 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
532
536
  */
533
537
  onLogicItemDisplayText: CreatorEvent;
534
538
  /**
535
- * The event is called when a survey is changed in the designer. A new page/question/page is added or existing is removed, a property is changed and so on.
536
- *- sender the survey creator object that fires the event
537
- * options object contains the information about certain modifications
538
- *- options.type contains string constant describing certain modification
539
- * Available values:
539
+ * An event that is raised when users modify survey or theme settings.
540
+ *
541
+ * Parameters:
540
542
  *
541
- *- options.type: "ADDED_FROM_TOOLBOX"
542
- *- options.question: newly added question
543
+ * - `sender`: `CreatorBase`\
544
+ * A Survey Creator instance that raised the event.
543
545
  *
544
- *- options.type: "PAGE_ADDED"
545
- *- options.newValue: newly created page
546
+ * - `options.type`: `"ADDED_FROM_TOOLBOX"` | `"PAGE_ADDED"` | `"PAGE_MOVED"` | `"QUESTION_CONVERTED"` | `"QUESTION_CHANGED_BY_EDITOR"` | `"PROPERTY_CHANGED"` | `"ELEMENT_REORDERED"` | `"OBJECT_DELETED"` | `"VIEW_TYPE_CHANGED"` | `"DO_DROP"` | `"TRANSLATIONS_CHANGED"` | `"JSON_EDITOR"` | `"THEME_MODIFIED"`\
547
+ * A value that indicates the modification.
546
548
  *
547
- *- options.type: "PAGE_MOVED"
548
- *- options.page: page has been moved
549
- *- options.indexFrom: pevious index
550
- *- options.indexTo: new index
549
+ * Depending on the `options.type` value, the `options` object contains parameters listed below:
551
550
  *
552
- *- options.type: "QUESTION_CONVERTED"
553
- *- options.className: the converted class name
554
- *- options.oldValue: pevious object
555
- *- options.newValue: the new object, converted from oldVale to the given class name
551
+ * `options.type`: `"ADDED_FROM_TOOLBOX"`\
552
+ * - `options.question` - An added question.
556
553
  *
557
- *- options.type: "QUESTION_CHANGED_BY_EDITOR"
558
- *- options.question: question has been edited in the popup question editor
554
+ * `options.type`: `"PAGE_ADDED"`\
555
+ * - `options.newValue` - An added page.
559
556
  *
560
- *- options.type: "PROPERTY_CHANGED"
561
- *- options.name: the name of the property has been changed
562
- *- options.target: the object containing the changed property
563
- *- options.oldValue: the previous value of the changed property
564
- *- options.newValue: the new value of the changed property
557
+ * `options.type`: `"PAGE_MOVED"`\
558
+ * - `options.page` - A moved page.
559
+ * - `options.indexFrom` - A previous index.
560
+ * - `options.indexTo` - A current index.
565
561
  *
566
- *- options.type: "ELEMENT_REORDERED"
567
- *- options.arrayName: the name of the array property has been changed
568
- *- options.parent: the object containing the array property
569
- *- options.element: the element that changed the place in the array
570
- *- options.indexFrom: moved from index
571
- *- options.indexTo: moved to index
562
+ * `options.type`: `"QUESTION_CONVERTED"`\
563
+ * - `options.className` - The name of a class to which a question has been converted.
564
+ * - `options.oldValue` - An object of a previous class.
565
+ * - `options.newValue` - An object of a class specified by `options.className`.
572
566
  *
573
- *- options.type: "OBJECT_DELETED"
574
- *- options.target: deleted object
567
+ * `options.type`: `"QUESTION_CHANGED_BY_EDITOR"`\
568
+ * - `options.question` - A question that has been edited in a pop-up editor.
575
569
  *
576
- *- options.type: "VIEW_TYPE_CHANGED"
577
- *- options.newType: new type of the creator view: editor or designer
570
+ * `options.type`: `"PROPERTY_CHANGED"`\
571
+ * - `options.name` - The name of the changed property.
572
+ * - `options.target` - An object that contains the changed property.
573
+ * - `options.oldValue` - A previous value of the changed property.
574
+ * - `options.newValue` - A new value of the changed property.
578
575
  *
579
- *- options.type: "DO_DROP"
580
- *- options.page: the page of the drap/drop operation
581
- *- options.source: the source dragged object
582
- *- options.target: the drop target
583
- *- options.newElement: a new element. It is defined if a user drops question or panel from the toolbox
576
+ * `options.type`: `"ELEMENT_REORDERED"`\
577
+ * - `options.arrayName` - The name of the changed array.
578
+ * - `options.parent` - An object that contains the changed array.
579
+ * - `options.element` - A reordered element.
580
+ * - `options.indexFrom` - A previous index.
581
+ * - `options.indexTo` - A current index.
584
582
  *
585
- *- options.type: "TRANSLATIONS_CHANGED"
586
- *- options.type: "JSON_EDITOR"
583
+ * `options.type`: `"OBJECT_DELETED"`\
584
+ * - `options.target` - A deleted object.
585
+ *
586
+ * `options.type`: `"VIEW_TYPE_CHANGED"`\
587
+ * - `options.newType` - A current view: `"editor"` or `"designer"`.
588
+ *
589
+ * `options.type`: `"DO_DROP"`\
590
+ * - `options.page` - A parent page of the dragged element.
591
+ * - `options.source` - A dragged element.
592
+ * - `options.target` - A drop target.
593
+ * - `options.newElement` - A new element. This parameter is defined only if users drag a question or panel from the Toolbox.
587
594
  */
588
595
  onModified: CreatorEvent;
589
596
  /**
@@ -1114,8 +1121,8 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1114
1121
  * A survey element to which `draggedElement` is being dragged.
1115
1122
  * @see onDragEnd
1116
1123
  */
1117
- onDragStart: Survey.Event<() => any, any, any>;
1118
- onBeforeDrop: Survey.Event<() => any, any, any>;
1124
+ onDragStart: Event<() => any, any, any>;
1125
+ onBeforeDrop: Event<() => any, any, any>;
1119
1126
  /**
1120
1127
  * An event that is raised when users finish dragging a survey element within the design surface.
1121
1128
  *
@@ -1130,8 +1137,8 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1130
1137
  * - `options.toElement`: `any`\
1131
1138
  * A survey element to which `draggedElement` was dragged.
1132
1139
  */
1133
- onDragEnd: Survey.Event<() => any, any, any>;
1134
- onAfterDrop: Survey.Event<() => any, any, any>;
1140
+ onDragEnd: Event<() => any, any, any>;
1141
+ onAfterDrop: Event<() => any, any, any>;
1135
1142
  private initDragDropSurveyElements;
1136
1143
  private initDragDropChoices;
1137
1144
  updateElementsOnLocaleChanged(obj: Base, propertyName: string): void;
@@ -1151,6 +1158,8 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1151
1158
  isObjPage(obj: Base): boolean;
1152
1159
  private isObjThisType;
1153
1160
  private addNewElementReason;
1161
+ onDragDropItemStart(): void;
1162
+ onDragDropItemEnd(): void;
1154
1163
  private doOnQuestionAdded;
1155
1164
  private doOnPanelAdded;
1156
1165
  private doOnPageAdded;
@@ -1182,7 +1191,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1182
1191
  get state(): string;
1183
1192
  protected setState(value: string): void;
1184
1193
  onStateChanged: CreatorEvent;
1185
- notifier: Survey.Notifier;
1194
+ notifier: Notifier;
1186
1195
  setModified(options?: any): void;
1187
1196
  notifySurveyPropertyChanged(options: any): void;
1188
1197
  notifySurveyItemMoved(options: any): void;
@@ -1205,7 +1214,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1205
1214
  private isRowMultiline;
1206
1215
  private findRowByElement;
1207
1216
  private addElemenMultiline;
1208
- setNewNames(element: Survey.ISurveyElement): void;
1217
+ setNewNames(element: ISurveyElement): void;
1209
1218
  private updateNewElementExpressions;
1210
1219
  protected getAllQuestions(): Array<any>;
1211
1220
  protected getAllPanels(): Array<any>;
@@ -1213,14 +1222,14 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1213
1222
  protected getNewName(type: string, isPanel?: boolean): string;
1214
1223
  protected getNewQuestionName(): string;
1215
1224
  protected getNewPanelName(): string;
1216
- protected setNewNamesCore(element: Survey.ISurveyElement): void;
1225
+ protected setNewNamesCore(element: ISurveyElement): void;
1217
1226
  createNewElement(json: any): IElement;
1218
1227
  copyElement(element: Base): IElement;
1219
1228
  /**
1220
1229
  * Copy a question to the active page
1221
1230
  * @param question A copied Survey.Question
1222
1231
  */
1223
- fastCopyQuestion(question: Base): Survey.IElement;
1232
+ fastCopyQuestion(question: Base): IElement;
1224
1233
  /**
1225
1234
  * Get or set the current selected object in the Creator. It can be a question, panel, page or survey itself.
1226
1235
  */
@@ -1337,6 +1346,10 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1337
1346
  * @param uploadingCallback a call back function to get the status on uploading the file and operation result - URI of the uploaded file
1338
1347
  */
1339
1348
  uploadFiles(files: File[], question: Question, uploadingCallback: (status: string, data: any) => any): void;
1349
+ private _rootElementValue;
1350
+ get rootElement(): HTMLElement;
1351
+ setRootElement(element: HTMLElement): void;
1352
+ unsubscribeRootElement(): void;
1340
1353
  initKeyboardShortcuts(rootNode: HTMLElement): void;
1341
1354
  removeKeyboardShortcuts(rootNode: HTMLElement): void;
1342
1355
  protected onKeyDownHandler: (event: KeyboardEvent) => void;
@@ -1361,15 +1374,15 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1361
1374
  onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
1362
1375
  onCollectionItemDeletingCallback(obj: Base, property: JsonObjectProperty, collection: Array<Base>, item: Base): boolean;
1363
1376
  onCollectionItemAllowingCallback(obj: Base, property: JsonObjectProperty, collection: Array<Base>, item: Base, itemOptions: ICollectionItemAllowOperations): void;
1364
- onItemValueAddedCallback(obj: Base, propertyName: string, itemValue: Survey.ItemValue, itemValues: Array<Survey.ItemValue>): void;
1365
- onMatrixDropdownColumnAddedCallback(matrix: Survey.Question, column: Survey.MatrixDropdownColumn, columns: Array<Survey.MatrixDropdownColumn>): void;
1377
+ onItemValueAddedCallback(obj: Base, propertyName: string, itemValue: ItemValue, itemValues: Array<ItemValue>): void;
1378
+ onMatrixDropdownColumnAddedCallback(matrix: Question, column: MatrixDropdownColumn, columns: Array<MatrixDropdownColumn>): void;
1366
1379
  onSetPropertyEditorOptionsCallback(propertyName: string, obj: Base, editorOptions: any): void;
1367
1380
  onGetErrorTextOnValidationCallback(propertyName: string, obj: Base, value: any): string;
1368
1381
  onValueChangingCallback(options: any): void;
1369
1382
  onGetElementEditorTitleCallback(obj: Base, title: string): string;
1370
1383
  onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[]): string;
1371
1384
  onConditionGetTitleCallback(expression: string, title: string): string;
1372
- isConditionOperatorEnabled(questionName: string, operator: string, isEnabled: boolean): boolean;
1385
+ isConditionOperatorEnabled(questionName: string, questionType: string, operator: string, isEnabled: boolean): boolean;
1373
1386
  onLogicGetTitleCallback(expression: string, expressionText: string, text: string, logicItem: any): string;
1374
1387
  getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
1375
1388
  getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
@@ -1385,23 +1398,32 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
1385
1398
  doSave(): void;
1386
1399
  doSaveTheme(): void;
1387
1400
  /**
1388
- * Assign to this property a function that will be called on clicking the 'Save' button or on any change if isAutoSave equals true.
1389
- * @see isAutoSave
1401
+ * A function that is called each time users click the [Save button](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#showSaveButton) or [auto-save](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#isAutoSave) is triggered to save a theme JSON object.
1402
+ *
1403
+ * For more information, refer to the [Save and Load Custom Themes](/survey-creator/documentation/theme-editor#save-and-load-custom-themes) help topic.
1404
+ * @see showThemeTab
1405
+ * @see saveSurveyFunc
1390
1406
  */
1391
1407
  get saveThemeFunc(): any;
1392
1408
  set saveThemeFunc(value: any);
1393
- showSaveButton: boolean;
1394
1409
  /**
1395
- * Assign to this property a function that will be called on clicking the 'Save' button or on any change if isAutoSave equals true.
1410
+ * Specifies whether to display a button that saves the survey or theme (executes the [`saveSurveyFunc`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#saveSurveyFunc) or [`saveThemeFunc`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#saveThemeFunc) function).
1396
1411
  * @see isAutoSave
1397
1412
  */
1413
+ showSaveButton: boolean;
1414
+ /**
1415
+ * A function that is called each time users click the [Save button](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#showSaveButton) or [auto-save](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#isAutoSave) is triggered to save a survey JSON schema.
1416
+ *
1417
+ * For more information, refer to the Save and Load Survey Model Schemas help topic for your framework: [Angular](https://surveyjs.io/survey-creator/documentation/get-started-angular#save-and-load-survey-model-schemas) | [Vue](https://surveyjs.io/survey-creator/documentation/get-started-vue#save-and-load-survey-model-schemas) | [React](https://surveyjs.io/survey-creator/documentation/get-started-react#save-and-load-survey-model-schemas) | [Knockout / jQuery](https://surveyjs.io/survey-creator/documentation/get-started-knockout-jquery).
1418
+ * @see saveThemeFunc
1419
+ */
1398
1420
  get saveSurveyFunc(): any;
1399
1421
  set saveSurveyFunc(value: any);
1400
1422
  convertCurrentQuestion(newType: string): void;
1401
1423
  getAddNewQuestionText(currentAddQuestionType?: string): any;
1402
1424
  get addNewQuestionText(): any;
1403
1425
  getQuestionTypeSelectorModel(beforeAdd: (type: string) => void, panel?: IPanel): any;
1404
- getUpdatedPageAdornerFooterActions(pageAdorner: PageAdorner, actions: Array<IAction>): Survey.IAction[];
1426
+ getUpdatedPageAdornerFooterActions(pageAdorner: PageAdorner, actions: Array<IAction>): IAction[];
1405
1427
  addNewQuestionInPage(beforeAdd: (string: any) => void, panel?: IPanel, type?: string): void;
1406
1428
  createIActionBarItemByClass(className: string, title: string, iconName: string, needSeparator: boolean): Action;
1407
1429
  onElementMenuItemsChanged(element: any, items: Action[]): void;
@@ -52,7 +52,7 @@ export interface ICreatorOptions {
52
52
  */
53
53
  haveCommercialLicense?: boolean;
54
54
  /**
55
- * Specifies whether to call the [saveSurveyFunc](https://surveyjs.io/Documentation/Survey-Creator?id=surveycreator#saveSurveyFunc) each time survey settings are changed.
55
+ * Specifies whether to call the [`saveSurveyFunc`](https://surveyjs.io/Documentation/Survey-Creator?id=surveycreator#saveSurveyFunc) and [`saveThemeFunc`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#saveThemeFunc) functions each time survey or theme settings are changed.
56
56
  *
57
57
  * Default value: `false`
58
58
  */
@@ -166,6 +166,7 @@ export interface ISurveyCreatorOptions {
166
166
  maximumRowsCount: number;
167
167
  maximumRateValues: number;
168
168
  enableLinkFileEditor: boolean;
169
+ rootElement?: HTMLElement;
169
170
  getObjectDisplayName(obj: Base, area: string, reason: string, displayName: string): string;
170
171
  onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
171
172
  onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): any;
@@ -187,13 +188,14 @@ export interface ISurveyCreatorOptions {
187
188
  createSurvey(json: any, reason: string, surveyType?: new (json: any) => SurveyModel): any;
188
189
  onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[]): string;
189
190
  onConditionGetTitleCallback(expression: string, title: string): string;
190
- isConditionOperatorEnabled(questionName: string, operator: string, isEnabled: boolean): boolean;
191
+ isConditionOperatorEnabled(questionName: string, questionType: string, operator: string, isEnabled: boolean): boolean;
191
192
  onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
192
193
  getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
193
194
  getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
194
195
  uploadFiles(files: File[], question: Question, uploadingCallback: (status: string, data: any) => any): void;
195
196
  }
196
197
  export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions {
198
+ rootElement: HTMLElement;
197
199
  enableLinkFileEditor: boolean;
198
200
  getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
199
201
  isMobileView: boolean;
@@ -228,7 +230,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
228
230
  createSurvey(json: any, reason: string, surveyType?: new (json: any) => SurveyModel): SurveyModel;
229
231
  onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[]): string;
230
232
  onConditionGetTitleCallback(expression: string, title: string): string;
231
- isConditionOperatorEnabled(questionName: string, operator: string, isEnabled: boolean): boolean;
233
+ isConditionOperatorEnabled(questionName: string, questionType: string, operator: string, isEnabled: boolean): boolean;
232
234
  onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
233
235
  getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
234
236
  uploadFiles(files: File[], question: Question, uploadingCallback: (status: string, data: any) => any): void;
@@ -524,7 +524,6 @@ export declare var defaultStrings: {
524
524
  hideColumnsIfEmpty: string;
525
525
  rateValues: string;
526
526
  rateCount: string;
527
- rateDisplayMode: string;
528
527
  autoGenerate: string;
529
528
  hideIfChoicesEmpty: string;
530
529
  hideNumber: string;
@@ -541,6 +540,7 @@ export declare var defaultStrings: {
541
540
  maxErrorText: string;
542
541
  otherErrorText: string;
543
542
  keyDuplicationError: string;
543
+ minSelectedChoices: string;
544
544
  maxSelectedChoices: string;
545
545
  showClearButton: string;
546
546
  showNumber: string;
@@ -658,6 +658,7 @@ export declare var defaultStrings: {
658
658
  columnsVisibleIf: string;
659
659
  rowsVisibleIf: string;
660
660
  otherPlaceholder: string;
661
+ rateType: string;
661
662
  };
662
663
  pv: {
663
664
  true: string;
@@ -973,6 +974,20 @@ export declare var defaultStrings: {
973
974
  showCaption: string;
974
975
  iconName: string;
975
976
  iconSize: string;
977
+ precision: string;
978
+ matrixDragHandleArea: string;
979
+ backgroundImage: string;
980
+ backgroundImageFit: string;
981
+ backgroundImageAttachment: string;
982
+ backgroundOpacity: string;
983
+ selectToRankEnabled: string;
984
+ selectToRankAreasLayout: string;
985
+ allowCameraAccess: string;
986
+ scaleColorMode: string;
987
+ rateColorMode: string;
988
+ templateTabTitle: string;
989
+ templateVisibleIf: string;
990
+ copyDisplayValue: string;
976
991
  };
977
992
  theme: {
978
993
  "--background": string;
@@ -1042,15 +1057,15 @@ export declare var defaultStrings: {
1042
1057
  editorShadow: string;
1043
1058
  names: {
1044
1059
  default: string;
1045
- contrast: string;
1060
+ sharp: string;
1061
+ borderless: string;
1062
+ flat: string;
1046
1063
  plain: string;
1047
- simple: string;
1048
- blank: string;
1049
- double: string;
1050
- bulk: string;
1051
- "pseudo-3d": string;
1052
- playful: string;
1053
- ultra: string;
1064
+ doubleborder: string;
1065
+ layered: string;
1066
+ solid: string;
1067
+ threedimensional: string;
1068
+ contrast: string;
1054
1069
  };
1055
1070
  colors: {
1056
1071
  teal: string;
@@ -495,7 +495,6 @@ export declare var enStrings: {
495
495
  hideColumnsIfEmpty: string;
496
496
  rateValues: string;
497
497
  rateCount: string;
498
- rateDisplayMode: string;
499
498
  autoGenerate: string;
500
499
  hideIfChoicesEmpty: string;
501
500
  hideNumber: string;
@@ -512,6 +511,7 @@ export declare var enStrings: {
512
511
  maxErrorText: string;
513
512
  otherErrorText: string;
514
513
  keyDuplicationError: string;
514
+ minSelectedChoices: string;
515
515
  maxSelectedChoices: string;
516
516
  showClearButton: string;
517
517
  showNumber: string;
@@ -629,6 +629,7 @@ export declare var enStrings: {
629
629
  columnsVisibleIf: string;
630
630
  rowsVisibleIf: string;
631
631
  otherPlaceholder: string;
632
+ rateType: string;
632
633
  };
633
634
  pv: {
634
635
  true: string;
@@ -944,6 +945,20 @@ export declare var enStrings: {
944
945
  showCaption: string;
945
946
  iconName: string;
946
947
  iconSize: string;
948
+ precision: string;
949
+ matrixDragHandleArea: string;
950
+ backgroundImage: string;
951
+ backgroundImageFit: string;
952
+ backgroundImageAttachment: string;
953
+ backgroundOpacity: string;
954
+ selectToRankEnabled: string;
955
+ selectToRankAreasLayout: string;
956
+ allowCameraAccess: string;
957
+ scaleColorMode: string;
958
+ rateColorMode: string;
959
+ templateTabTitle: string;
960
+ templateVisibleIf: string;
961
+ copyDisplayValue: string;
947
962
  };
948
963
  theme: {
949
964
  "--background": string;
@@ -1013,15 +1028,15 @@ export declare var enStrings: {
1013
1028
  editorShadow: string;
1014
1029
  names: {
1015
1030
  default: string;
1016
- contrast: string;
1031
+ sharp: string;
1032
+ borderless: string;
1033
+ flat: string;
1017
1034
  plain: string;
1018
- simple: string;
1019
- blank: string;
1020
- double: string;
1021
- bulk: string;
1022
- "pseudo-3d": string;
1023
- playful: string;
1024
- ultra: string;
1035
+ doubleborder: string;
1036
+ layered: string;
1037
+ solid: string;
1038
+ threedimensional: string;
1039
+ contrast: string;
1025
1040
  };
1026
1041
  colors: {
1027
1042
  teal: string;
@@ -14,7 +14,7 @@ export declare abstract class PropertyGridEditorMatrix extends PropertyGridEdito
14
14
  private getShowDetailActionIconName;
15
15
  onGetQuestionTitleActions(obj: Base, options: any): void;
16
16
  protected createNewItem(matrix: QuestionMatrixDynamicModel, prop: JsonObjectProperty): Base;
17
- protected getDefaultClassName(prop: JsonObjectProperty): string;
17
+ protected getDefaultClassName(obj: Base, prop: JsonObjectProperty): string;
18
18
  protected getBaseValue(prop: JsonObjectProperty): string;
19
19
  protected getKeyValue(): string;
20
20
  protected getColumnNames(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): Array<string>;
@@ -124,7 +124,7 @@ export declare abstract class PropertyGridEditorMatrixMultipleTypes extends Prop
124
124
  export declare class PropertyGridEditorMatrixValidators extends PropertyGridEditorMatrixMultipleTypes {
125
125
  fit(prop: JsonObjectProperty): boolean;
126
126
  protected getObjTypeName(): string;
127
- protected getDefaultClassName(prop: JsonObjectProperty): string;
127
+ protected getDefaultClassName(obj: Base, prop: JsonObjectProperty): string;
128
128
  protected getChoices(obj: Base): Array<any>;
129
129
  private getSupportedValidators;
130
130
  }
@@ -132,7 +132,7 @@ export declare class PropertyGridEditorMatrixTriggers extends PropertyGridEditor
132
132
  private getAvailableTriggers;
133
133
  fit(prop: JsonObjectProperty): boolean;
134
134
  protected getObjTypeName(): string;
135
- protected getDefaultClassName(prop: JsonObjectProperty): string;
135
+ protected getDefaultClassName(obj: Base, prop: JsonObjectProperty): string;
136
136
  protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
137
137
  protected getChoices(obj: Base): Array<any>;
138
138
  }
@@ -0,0 +1,12 @@
1
+ import { IElement, IPanel } from "survey-core";
2
+ import { DragDropSurveyElements } from "./survey-elements";
3
+ export declare class DragDropSurveyElementsInCreator extends DragDropSurveyElements {
4
+ protected duringDragOver(dropTargetNode?: HTMLElement, event?: PointerEvent): void;
5
+ protected removeDragOverMarker(dropTarget: {
6
+ dragTypeOverMe: boolean;
7
+ }): void;
8
+ protected afterDragOver(dropTargetNode?: HTMLElement, event?: PointerEvent): void;
9
+ private getElementIndexInPanel;
10
+ moveElementInPanel(panel: IPanel, src: IElement, target: IElement, targetIndex: number): void;
11
+ protected doDrop: () => any;
12
+ }
@@ -1,4 +1,4 @@
1
- import { Base, ItemValue, JsonObjectProperty } from "survey-core";
1
+ import { Base, ISurveyElement, ItemValue, JsonObjectProperty } from "survey-core";
2
2
  import { ISurveyCreatorOptions } from "./creator-settings";
3
3
  export declare enum ObjType {
4
4
  Unknown = 0,
@@ -9,6 +9,7 @@ export declare enum ObjType {
9
9
  Column = 5
10
10
  }
11
11
  export declare class SurveyHelper {
12
+ static getNewElementName(el: ISurveyElement): string;
12
13
  static getNewPageName(objs: Array<any>): string;
13
14
  static isPageNameAutoGenerated(name: string): boolean;
14
15
  static getNewQuestionName(objs: Array<any>): string;
@@ -1,11 +1,21 @@
1
1
  import { SurveyModel, JsonError, Base } from "survey-core";
2
+ declare class SurveyTextWorkerJsonErrorFixerBase {
3
+ getCorrectAt(text: string, at: number, end: number): number;
4
+ get isFixable(): boolean;
5
+ fixError(text: string, start: number, end: number): string;
6
+ }
2
7
  export declare abstract class SurveyTextWorkerError {
3
8
  at: number;
4
9
  text: string;
5
10
  rowAt: number;
6
11
  columnAt: number;
12
+ private fixerValue;
7
13
  constructor(at: number, text: string);
8
14
  abstract getErrorType(): string;
15
+ get isFixable(): boolean;
16
+ fixError(text: string): string;
17
+ protected get fixer(): SurveyTextWorkerJsonErrorFixerBase;
18
+ protected createFixer(): SurveyTextWorkerJsonErrorFixerBase;
9
19
  }
10
20
  export declare class SurveyTextWorkerParserError extends SurveyTextWorkerError {
11
21
  getErrorType(): string;
@@ -13,14 +23,16 @@ export declare class SurveyTextWorkerParserError extends SurveyTextWorkerError {
13
23
  export declare class SurveyTextWorkerJsonError extends SurveyTextWorkerError {
14
24
  elementStart: number;
15
25
  elementEnd: number;
26
+ private element;
16
27
  private errorType;
17
28
  private propertyName;
29
+ private jsonObj;
18
30
  constructor(jsonError: JsonError);
31
+ protected createFixer(): SurveyTextWorkerJsonErrorFixerBase;
19
32
  getErrorType(): string;
33
+ get isFixable(): boolean;
20
34
  correctAt(text: string): void;
21
- private getCorrectAtForUnknowProperty;
22
- private getCorrectAtForDuplicateName;
23
- private getNewIndex;
35
+ fixError(text: string): string;
24
36
  }
25
37
  export declare class SurveyTextWorker {
26
38
  text: string;
@@ -43,3 +55,4 @@ export declare class SurveyTextWorker {
43
55
  export declare class JsonDuplicateNameError extends JsonError {
44
56
  constructor(el: Base);
45
57
  }
58
+ export {};