survey-creator-core 1.9.53 → 1.9.55
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/package.json +2 -2
- package/survey-creator-core.css +35 -14
- package/survey-creator-core.d.ts +116 -50
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +521 -133
- package/survey-creator-core.min.css +7 -7
- package/survey-creator-core.min.js +2 -2
package/survey-creator-core.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.
|
|
2
|
+
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.55
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
6
|
-
import { Base, JsonObjectProperty, Question, SurveyModel,
|
|
7
|
-
import { MatrixDropdownColumn, ILocalizableString, IAction, Action
|
|
8
|
-
import { LocalizableString, ActionContainer, DragDropSurveyElements, DragDropChoices
|
|
9
|
-
import { AdaptiveActionContainer, PageModel, IElement, IPanel
|
|
10
|
-
import {
|
|
6
|
+
import { Base, JsonObjectProperty, Question, SurveyModel, PopupBaseViewModel } from "survey-core";
|
|
7
|
+
import { ItemValue, MatrixDropdownColumn, ILocalizableString, IAction, Action } from "survey-core";
|
|
8
|
+
import { ILocalizableOwner, LocalizableString, ActionContainer, DragDropSurveyElements, DragDropChoices } from "survey-core";
|
|
9
|
+
import { Event, AdaptiveActionContainer, PageModel, IElement, IPanel } from "survey-core";
|
|
10
|
+
import { ISurveyElement, QuestionSelectBase, Operand, DragOrClickHelper, PanelModel } from "survey-core";
|
|
11
11
|
import { QuestionDropdownModel, ListModel, PopupModel, EventBase, PanelModelBase } from "survey-core";
|
|
12
|
-
import { QuestionNonValue, SurveyTemplateRendererTemplateData, QuestionRatingModel, QuestionRowModel
|
|
13
|
-
import { QuestionCheckboxModel, ArrayChanges, ImageItemValue, HashTable
|
|
14
|
-
import { QuestionMatrixModel, QuestionMatrixDropdownModel, QuestionPanelDynamicModel, QuestionCommentModel
|
|
12
|
+
import { QuestionNonValue, SurveyTemplateRendererTemplateData, SurveyElement, QuestionRatingModel, QuestionRowModel } from "survey-core";
|
|
13
|
+
import { ComputedUpdater, QuestionCheckboxModel, ArrayChanges, ImageItemValue, HashTable } from "survey-core";
|
|
14
|
+
import { QuestionMatrixDynamicModel, QuestionMatrixModel, QuestionMatrixDropdownModel, QuestionPanelDynamicModel, QuestionCommentModel } from "survey-core";
|
|
15
|
+
import { MatrixDynamicRowModel } from "survey-core";
|
|
15
16
|
|
|
16
17
|
export { editorLocalization as localization };
|
|
17
18
|
|
|
@@ -32,6 +33,7 @@ export interface ICollectionItemAllowOperations {
|
|
|
32
33
|
allowEdit: boolean;
|
|
33
34
|
}
|
|
34
35
|
export interface ISurveyCreatorOptions {
|
|
36
|
+
isMobileView: boolean;
|
|
35
37
|
alwaySaveTextInPropertyEditors: boolean;
|
|
36
38
|
readOnly: boolean;
|
|
37
39
|
maxLogicItemsInCondition: number;
|
|
@@ -47,6 +49,7 @@ export interface ISurveyCreatorOptions {
|
|
|
47
49
|
onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): any;
|
|
48
50
|
onPropertyGridSurveyCreatedCallback(object: any, survey: SurveyModel): any;
|
|
49
51
|
onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: any): any;
|
|
52
|
+
onPropertyGridShowModalCallback(object: any, property: JsonObjectProperty, editor: Question, popupEditor: any, popupModel: PopupBaseViewModel): any;
|
|
50
53
|
onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
|
|
51
54
|
onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
|
|
52
55
|
onCollectionItemDeletingCallback(obj: Base, property: JsonObjectProperty, collection: any, item: Base): boolean;
|
|
@@ -398,7 +401,7 @@ export interface IPropertyGridEditor {
|
|
|
398
401
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
399
402
|
isDefault?: any;
|
|
400
403
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
401
|
-
showModalPropertyEditor?: (editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) =>
|
|
404
|
+
showModalPropertyEditor?: (editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => IPropertyEditorSetup;
|
|
402
405
|
onCreated?: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => void;
|
|
403
406
|
validateValue?: (obj: Base, question: Question, prop: JsonObjectProperty, val: any) => string;
|
|
404
407
|
onAfterRenderQuestion?: (obj: Base, prop: JsonObjectProperty, evtOptions: any) => void;
|
|
@@ -442,6 +445,20 @@ export interface IUndoRedoAction {
|
|
|
442
445
|
getChanges(): IUndoRedoChange;
|
|
443
446
|
tryMerge(sender: Base, propertyName: string, newValue: any): boolean;
|
|
444
447
|
}
|
|
448
|
+
export interface IPortableMouseEvent {
|
|
449
|
+
stopPropagation(): any;
|
|
450
|
+
preventDefault(): any;
|
|
451
|
+
cancelBubble: boolean;
|
|
452
|
+
target: any;
|
|
453
|
+
currentTarget: any;
|
|
454
|
+
clientX: number;
|
|
455
|
+
clientY: number;
|
|
456
|
+
offsetX: number;
|
|
457
|
+
offsetY: number;
|
|
458
|
+
}
|
|
459
|
+
export interface IPortableDragEvent extends IPortableMouseEvent {
|
|
460
|
+
dataTransfer: any;
|
|
461
|
+
}
|
|
445
462
|
export interface IKeyboardShortcut {
|
|
446
463
|
name?: string;
|
|
447
464
|
hotKey: any;
|
|
@@ -460,20 +477,6 @@ export interface ITabbedMenuItem extends IAction {
|
|
|
460
477
|
componentContent: string;
|
|
461
478
|
renderTab?: any;
|
|
462
479
|
}
|
|
463
|
-
export interface IPortableMouseEvent {
|
|
464
|
-
stopPropagation(): any;
|
|
465
|
-
preventDefault(): any;
|
|
466
|
-
cancelBubble: boolean;
|
|
467
|
-
target: any;
|
|
468
|
-
currentTarget: any;
|
|
469
|
-
clientX: number;
|
|
470
|
-
clientY: number;
|
|
471
|
-
offsetX: number;
|
|
472
|
-
offsetY: number;
|
|
473
|
-
}
|
|
474
|
-
export interface IPortableDragEvent extends IPortableMouseEvent {
|
|
475
|
-
dataTransfer: any;
|
|
476
|
-
}
|
|
477
480
|
export declare class ConditionEditorItem {
|
|
478
481
|
conjunction: string;
|
|
479
482
|
questionName: string;
|
|
@@ -755,6 +758,21 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
755
758
|
*/
|
|
756
759
|
onPropertyEditorUpdateTitleActions: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
757
760
|
/*
|
|
761
|
+
* An event that is raised before Survey Creator displays a pop-up window called from the Property Grid. This window allows users to edit choices, conditions, and so on.
|
|
762
|
+
*
|
|
763
|
+
* Use this event to customize the pop-up window, for example, add custom action buttons.
|
|
764
|
+
*
|
|
765
|
+
* Parameters:
|
|
766
|
+
*
|
|
767
|
+
* - `sender` - A Survey Creator instance that raised the event.
|
|
768
|
+
* - `options.obj` - An instance of a survey element (question or panel) that users are configuring in the Property Grid.
|
|
769
|
+
* - `options.property`- A `JsonObjectProperty` object with metadata about the property being edited.
|
|
770
|
+
* - `options.editor` - A property editor. It is an object of the [`Question`](https://surveyjs.io/form-library/documentation/question) type because the Property Grid is [built upon a regular survey](https://surveyjs.io/survey-creator/documentation/creator-v2-whats-new#survey-creator-ui-elements-are-surveys).
|
|
771
|
+
* - `options.popupEditor` - An editor inside the pop-up window.
|
|
772
|
+
* - `options.popupModel` - A `PopupBaseViewModel` object that describes the pop-up window model. Use `options.popupModel.footerToolbar` to access the actions at the bottom of the window.
|
|
773
|
+
*/
|
|
774
|
+
onPropertyGridShowModal: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
775
|
+
/*
|
|
758
776
|
* The event is called before rendering a delete button in the Property Grid or in Question Editor.
|
|
759
777
|
* Obsolete, please use onCollectionItemAllowOperations
|
|
760
778
|
* - sender the survey creator object that fires the event
|
|
@@ -846,7 +864,6 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
846
864
|
* - `options.propertyName` - The name of the property.
|
|
847
865
|
* - `options.value` - A property value entered by a user.
|
|
848
866
|
* - `options.newValue` - A corrected property value. Specify this field if you want to override the `options.value`.
|
|
849
|
-
* - `options.doValidation` - Enable this field to validate the property value while the user enters it.
|
|
850
867
|
*/
|
|
851
868
|
onPropertyValueChanging: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
852
869
|
/*
|
|
@@ -1443,7 +1460,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1443
1460
|
protected deleteObject(obj: any): void;
|
|
1444
1461
|
protected updateConditionsOnRemove(obj: any): void;
|
|
1445
1462
|
isElementSelected(element: Base): boolean;
|
|
1446
|
-
selectElement(element: any, propertyName?: string, focus?: boolean, startEdit?: boolean): void;
|
|
1463
|
+
selectElement(element: any, propertyName?: string, focus?: string | boolean, startEdit?: boolean): void;
|
|
1447
1464
|
protected get designerPropertyGrid(): any;
|
|
1448
1465
|
/*
|
|
1449
1466
|
* Collapse certain property editor tab (category) in properties panel/grid
|
|
@@ -1500,6 +1517,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1500
1517
|
onPropertyGridSurveyCreatedCallback(object: any, survey: SurveyModel): void;
|
|
1501
1518
|
onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): void;
|
|
1502
1519
|
onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: any): void;
|
|
1520
|
+
onPropertyGridShowModalCallback(object: any, property: JsonObjectProperty, editor: Question, popupEditor: any, popupModel: PopupBaseViewModel): void;
|
|
1503
1521
|
onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
|
|
1504
1522
|
onCollectionItemDeletingCallback(obj: Base, property: JsonObjectProperty, collection: any, item: Base): boolean;
|
|
1505
1523
|
onCollectionItemAllowingCallback(obj: Base, property: JsonObjectProperty, collection: any, item: Base, itemOptions: ICollectionItemAllowOperations): void;
|
|
@@ -1535,7 +1553,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1535
1553
|
addNewQuestionInPage(beforeAdd: (string: any) => void, panel?: IPanel, type?: string): void;
|
|
1536
1554
|
createIActionBarItemByClass(className: string, title: string, iconName: string, needSeparator: boolean): Action;
|
|
1537
1555
|
onElementMenuItemsChanged(element: any, items: any): void;
|
|
1538
|
-
getElementAllowOperations(element:
|
|
1556
|
+
getElementAllowOperations(element: any): any;
|
|
1539
1557
|
getNextItemValue(question: QuestionSelectBase): string | number;
|
|
1540
1558
|
createNewItemValue(question: QuestionSelectBase): ItemValue;
|
|
1541
1559
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
@@ -1641,6 +1659,7 @@ export declare class ItemValueWrapperViewModel extends Base {
|
|
|
1641
1659
|
dragOrClickHelper: DragOrClickHelper;
|
|
1642
1660
|
allowItemOperations: ICollectionItemAllowOperations;
|
|
1643
1661
|
canTouchItems: boolean;
|
|
1662
|
+
focusCameFromDown: boolean;
|
|
1644
1663
|
onPointerDown(pointerDownEvent: any): void;
|
|
1645
1664
|
startDragItemValue: (pointerDownEvent: any, currentTarget: any) => void;
|
|
1646
1665
|
dispose(): void;
|
|
@@ -1650,6 +1669,7 @@ export declare class ItemValueWrapperViewModel extends Base {
|
|
|
1650
1669
|
add(model: ItemValueWrapperViewModel): void;
|
|
1651
1670
|
addNewItem(item: ItemValue, question: QuestionSelectBase, creator: CreatorBase): void;
|
|
1652
1671
|
remove(model: ItemValueWrapperViewModel): void;
|
|
1672
|
+
onFocusOut(event: any): void;
|
|
1653
1673
|
get allowRemove(): boolean;
|
|
1654
1674
|
get tooltip(): string;
|
|
1655
1675
|
get dragTooltip(): string;
|
|
@@ -1696,6 +1716,12 @@ export declare class LogoImageViewModel extends Base {
|
|
|
1696
1716
|
remove(model: LogoImageViewModel): void;
|
|
1697
1717
|
get chooseLogoPlaceholder(): string;
|
|
1698
1718
|
}
|
|
1719
|
+
export declare class MatrixCellWrapperEditSurvey {
|
|
1720
|
+
constructor(creator: CreatorBase, cellQuestion: Question);
|
|
1721
|
+
surveyValue: SurveyModel;
|
|
1722
|
+
get survey(): SurveyModel;
|
|
1723
|
+
apply(): void;
|
|
1724
|
+
}
|
|
1699
1725
|
export declare class MatrixCellWrapperViewModel extends Base {
|
|
1700
1726
|
constructor(creator: CreatorBase, templateData: any, question: Question, row: any, column: any);
|
|
1701
1727
|
creator: CreatorBase;
|
|
@@ -1755,6 +1781,7 @@ export declare class PageNavigatorViewModel extends Base {
|
|
|
1755
1781
|
popupModel: any;
|
|
1756
1782
|
pagesChangedFunc: (sender: PagesController, options: any) => void;
|
|
1757
1783
|
currentPagesChangedFunc: (sender: PagesController, options: any) => void;
|
|
1784
|
+
_resizeObserver: any;
|
|
1758
1785
|
dispose(): void;
|
|
1759
1786
|
items: any;
|
|
1760
1787
|
visible: boolean;
|
|
@@ -1764,6 +1791,15 @@ export declare class PageNavigatorViewModel extends Base {
|
|
|
1764
1791
|
get pageSelectorCaption(): string;
|
|
1765
1792
|
onContainerScroll(viewPort: any): any;
|
|
1766
1793
|
currentPage: PageModel;
|
|
1794
|
+
stopItemsContainerHeightObserver(): void;
|
|
1795
|
+
visibleItemsStartIndex: number;
|
|
1796
|
+
visibleItemsCount: number;
|
|
1797
|
+
_itemsContainer: any;
|
|
1798
|
+
setItemsContainer(itemsContainer: any): void;
|
|
1799
|
+
static PAGE_NAVIGATION_MENU_ITEM_HEIGHT: number;
|
|
1800
|
+
static PAGE_NAVIGATION_ITEM_HEIGHT: number;
|
|
1801
|
+
protected updateVisibleItems(allAvailableHeight: number): void;
|
|
1802
|
+
get visibleItems(): any;
|
|
1767
1803
|
}
|
|
1768
1804
|
export declare class PagesController extends Base {
|
|
1769
1805
|
constructor(creator: ICreatorSelectionOwner);
|
|
@@ -1869,9 +1905,9 @@ export declare class QuestionLinkValueModel extends Question {
|
|
|
1869
1905
|
doClearClick(): void;
|
|
1870
1906
|
}
|
|
1871
1907
|
export declare class QuestionRatingAdornerViewModel extends Base {
|
|
1872
|
-
constructor(creator: CreatorBase, surveyElement:
|
|
1908
|
+
constructor(creator: CreatorBase, surveyElement: any, templateData: SurveyTemplateRendererTemplateData);
|
|
1873
1909
|
creator: CreatorBase;
|
|
1874
|
-
surveyElement:
|
|
1910
|
+
surveyElement: any;
|
|
1875
1911
|
templateData: SurveyTemplateRendererTemplateData;
|
|
1876
1912
|
get element(): QuestionRatingModel;
|
|
1877
1913
|
addItem(model: QuestionRatingAdornerViewModel): void;
|
|
@@ -2134,8 +2170,8 @@ export declare class StringEditorConnector extends Base {
|
|
|
2134
2170
|
hasEditCompleteHandler: boolean;
|
|
2135
2171
|
focusOnEditor: boolean;
|
|
2136
2172
|
activateEditor(): void;
|
|
2137
|
-
setItemValue(item: ItemValueWrapperViewModel): void;
|
|
2138
2173
|
onDoActivate: Event<(sender: StringEditorViewModelBase, options: any) => any, any>;
|
|
2174
|
+
onTextChanging: Event<(sender: StringEditorViewModelBase, options: any) => any, any>;
|
|
2139
2175
|
onEditComplete: Event<(sender: StringEditorViewModelBase, options: any) => any, any>;
|
|
2140
2176
|
onBackspaceEmptyString: Event<(sender: StringEditorViewModelBase, options: any) => any, any>;
|
|
2141
2177
|
}
|
|
@@ -2151,7 +2187,7 @@ export declare class StringEditorViewModelBase extends Base {
|
|
|
2151
2187
|
editAsText: boolean;
|
|
2152
2188
|
compostionInProgress: boolean;
|
|
2153
2189
|
afterRender(): void;
|
|
2154
|
-
activate():
|
|
2190
|
+
activate(): boolean;
|
|
2155
2191
|
setLocString(locString: LocalizableString): void;
|
|
2156
2192
|
checkConstraints(event: any): void;
|
|
2157
2193
|
blurEditor: any;
|
|
@@ -2173,6 +2209,15 @@ export declare class StringEditorViewModelBase extends Base {
|
|
|
2173
2209
|
get contentEditable(): boolean;
|
|
2174
2210
|
className(text: any): string;
|
|
2175
2211
|
}
|
|
2212
|
+
export declare class StringItemsNavigatorBase {
|
|
2213
|
+
constructor(question: any);
|
|
2214
|
+
protected getItemLocString(items: any, item: any): LocalizableString;
|
|
2215
|
+
protected getItemSets(): Array<any>;
|
|
2216
|
+
protected addNewItem(items: any, text?: string): void;
|
|
2217
|
+
protected getItemsPropertyName(items: any): string;
|
|
2218
|
+
protected addNewItems(items: any, startIndex: number, itemsToAdd: any): void;
|
|
2219
|
+
static setQuestion(questionAdorner: QuestionAdornerViewModel): void;
|
|
2220
|
+
}
|
|
2176
2221
|
export declare class StylesManager {
|
|
2177
2222
|
static get currentTheme(): string;
|
|
2178
2223
|
static set currentTheme(val: string);
|
|
@@ -2546,12 +2591,12 @@ export declare class SurveyTextWorker {
|
|
|
2546
2591
|
}
|
|
2547
2592
|
export declare class TabDesignerViewModel extends Base {
|
|
2548
2593
|
constructor(creator: CreatorBase);
|
|
2549
|
-
|
|
2594
|
+
cssUpdater: any;
|
|
2550
2595
|
pagesControllerValue: PagesController;
|
|
2551
2596
|
newPage: PageModel;
|
|
2552
2597
|
showNewPage: boolean;
|
|
2553
2598
|
pageCount: number;
|
|
2554
|
-
|
|
2599
|
+
designerCss: string;
|
|
2555
2600
|
showPlaceholder: boolean;
|
|
2556
2601
|
creator: CreatorBase;
|
|
2557
2602
|
get survey(): SurveyModel;
|
|
@@ -2562,7 +2607,6 @@ export declare class TabDesignerViewModel extends Base {
|
|
|
2562
2607
|
onDesignerSurveyPropertyChanged(obj: Base, propName: string): void;
|
|
2563
2608
|
initSurvey(): void;
|
|
2564
2609
|
clickDesigner(): void;
|
|
2565
|
-
getDesignerCss(): string;
|
|
2566
2610
|
getRootCss(): string;
|
|
2567
2611
|
}
|
|
2568
2612
|
export declare class TabbedMenuContainer extends AdaptiveActionContainer<TabbedMenuItem> {
|
|
@@ -2777,6 +2821,7 @@ export declare class AceJsonEditorModel extends JsonEditorBaseModel {
|
|
|
2777
2821
|
onEditorActivated(): void;
|
|
2778
2822
|
}
|
|
2779
2823
|
export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions {
|
|
2824
|
+
isMobileView: boolean;
|
|
2780
2825
|
alwaySaveTextInPropertyEditors: boolean;
|
|
2781
2826
|
readOnly: boolean;
|
|
2782
2827
|
maxLogicItemsInCondition: number;
|
|
@@ -2792,6 +2837,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
2792
2837
|
onPropertyGridSurveyCreatedCallback(object: any, survey: SurveyModel): void;
|
|
2793
2838
|
onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): void;
|
|
2794
2839
|
onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: any): void;
|
|
2840
|
+
onPropertyGridShowModalCallback(object: any, property: JsonObjectProperty, editor: Question, popupEditor: any, popupModel: PopupBaseViewModel): void;
|
|
2795
2841
|
onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
|
|
2796
2842
|
onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
|
|
2797
2843
|
onCollectionItemDeletingCallback(obj: Base, property: JsonObjectProperty, collection: any, item: Base): boolean;
|
|
@@ -2884,19 +2930,19 @@ export declare class PropertyGridEditor implements IPropertyGridEditor {
|
|
|
2884
2930
|
constructor();
|
|
2885
2931
|
fit(prop: JsonObjectProperty): boolean;
|
|
2886
2932
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
2887
|
-
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: any):
|
|
2933
|
+
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: any): IPropertyEditorSetup;
|
|
2888
2934
|
protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
2889
2935
|
protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
|
|
2890
2936
|
isSupportGrouping(): boolean;
|
|
2891
2937
|
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
2892
2938
|
}
|
|
2893
2939
|
export declare class QuestionAdornerViewModel extends SurveyElementAdornerBase {
|
|
2894
|
-
constructor(creator: CreatorBase, surveyElement:
|
|
2940
|
+
constructor(creator: CreatorBase, surveyElement: any, templateData: SurveyTemplateRendererTemplateData);
|
|
2895
2941
|
templateData: SurveyTemplateRendererTemplateData;
|
|
2896
2942
|
isDragged: boolean;
|
|
2897
2943
|
currentAddQuestionType: string;
|
|
2898
2944
|
dragOrClickHelper: DragOrClickHelper;
|
|
2899
|
-
get element():
|
|
2945
|
+
get element(): any;
|
|
2900
2946
|
select(model: QuestionAdornerViewModel, event: IPortableMouseEvent): boolean;
|
|
2901
2947
|
rootCss(): "" | " svc-question__adorner--start-with-new-line";
|
|
2902
2948
|
css(): string;
|
|
@@ -2919,6 +2965,28 @@ export declare class QuestionAdornerViewModel extends SurveyElementAdornerBase {
|
|
|
2919
2965
|
questionTypeSelectorModel: any;
|
|
2920
2966
|
get addNewQuestionText(): string;
|
|
2921
2967
|
}
|
|
2968
|
+
export declare class StringItemsNavigatorMatrix extends StringItemsNavigatorBase {
|
|
2969
|
+
constructor(question: any);
|
|
2970
|
+
protected getItemLocString(items: any, item: any): any;
|
|
2971
|
+
protected getItemSets(): any;
|
|
2972
|
+
protected addNewItem(items: any, text?: string): void;
|
|
2973
|
+
protected getItemsPropertyName(items: any): "columns" | "rows";
|
|
2974
|
+
}
|
|
2975
|
+
export declare class StringItemsNavigatorMultipleText extends StringItemsNavigatorBase {
|
|
2976
|
+
constructor(question: any);
|
|
2977
|
+
protected getItemLocString(items: any, item: any): any;
|
|
2978
|
+
protected getItemSets(): any;
|
|
2979
|
+
protected addNewItem(items: any, text?: string): void;
|
|
2980
|
+
protected getItemsPropertyName(items: any): string;
|
|
2981
|
+
protected addNewItems(items: any, startIndex: number, itemsToAdd: any): void;
|
|
2982
|
+
}
|
|
2983
|
+
export declare class StringItemsNavigatorSelectBase extends StringItemsNavigatorBase {
|
|
2984
|
+
constructor(question: any);
|
|
2985
|
+
protected getItemLocString(items: any, item: any): any;
|
|
2986
|
+
protected getItemSets(): any;
|
|
2987
|
+
protected addNewItem(items: any, text?: string): void;
|
|
2988
|
+
protected getItemsPropertyName(items: any): string;
|
|
2989
|
+
}
|
|
2922
2990
|
export declare class SurveyConditionEditorItem extends ConditionEditorItem {
|
|
2923
2991
|
constructor(survey: SurveyModel);
|
|
2924
2992
|
survey: SurveyModel;
|
|
@@ -3337,7 +3405,7 @@ export declare class PropertyGridValueEditorBase extends PropertyGridEditor {
|
|
|
3337
3405
|
isSupportGrouping(): boolean;
|
|
3338
3406
|
}
|
|
3339
3407
|
export declare class QuestionDropdownAdornerViewModel extends QuestionAdornerViewModel {
|
|
3340
|
-
constructor(creator: CreatorBase, surveyElement:
|
|
3408
|
+
constructor(creator: CreatorBase, surveyElement: any, templateData: SurveyTemplateRendererTemplateData);
|
|
3341
3409
|
isCollapsed: boolean;
|
|
3342
3410
|
visibleCount: number;
|
|
3343
3411
|
get question(): QuestionDropdownModel;
|
|
@@ -3352,10 +3420,15 @@ export declare class QuestionDropdownAdornerViewModel extends QuestionAdornerVie
|
|
|
3352
3420
|
dispose(): void;
|
|
3353
3421
|
}
|
|
3354
3422
|
export declare class QuestionImageAdornerViewModel extends QuestionAdornerViewModel {
|
|
3355
|
-
constructor(creator: CreatorBase, surveyElement:
|
|
3423
|
+
constructor(creator: CreatorBase, surveyElement: any, templateData: SurveyTemplateRendererTemplateData, questionRoot: any);
|
|
3356
3424
|
questionRoot: any;
|
|
3357
3425
|
chooseFile(model: QuestionImageAdornerViewModel): void;
|
|
3358
3426
|
}
|
|
3427
|
+
export declare class StringItemsNavigatorMatrixDropdown extends StringItemsNavigatorMatrix {
|
|
3428
|
+
constructor(question: any);
|
|
3429
|
+
protected getItemLocString(items: any, item: any): any;
|
|
3430
|
+
protected addNewItems(items: any, startIndex: number, itemsToAdd: any): void;
|
|
3431
|
+
}
|
|
3359
3432
|
export declare class TabJsonEditorAcePlugin extends TabJsonEditorBasePlugin implements ICreatorPlugin {
|
|
3360
3433
|
constructor(creator: CreatorBase);
|
|
3361
3434
|
protected createModel(creator: CreatorBase): JsonEditorBaseModel;
|
|
@@ -3535,6 +3608,10 @@ export declare class PropertyGridValueEditor extends PropertyGridValueEditorBase
|
|
|
3535
3608
|
fit(prop: JsonObjectProperty): boolean;
|
|
3536
3609
|
createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
|
|
3537
3610
|
}
|
|
3611
|
+
export declare class StringItemsNavigatorMatrixDynamic extends StringItemsNavigatorMatrixDropdown {
|
|
3612
|
+
constructor(question: any);
|
|
3613
|
+
protected getItemSets(): any;
|
|
3614
|
+
}
|
|
3538
3615
|
export declare class TriggerValueEditor extends DefaultValueEditor {
|
|
3539
3616
|
constructor(editQuestion: Question, editObj: Base, propertyName: string, options?: ISurveyCreatorOptions);
|
|
3540
3617
|
editQuestion: Question;
|
|
@@ -4047,17 +4124,6 @@ export declare var simulatorDevices: {
|
|
|
4047
4124
|
deviceType: string,
|
|
4048
4125
|
title: string,
|
|
4049
4126
|
},
|
|
4050
|
-
iPhone5: {
|
|
4051
|
-
cssPixelRatio: number,
|
|
4052
|
-
ppi: number,
|
|
4053
|
-
width: number,
|
|
4054
|
-
height: number,
|
|
4055
|
-
frameWidth: number,
|
|
4056
|
-
frameHeight: number,
|
|
4057
|
-
deviceType: string,
|
|
4058
|
-
title: string,
|
|
4059
|
-
cssClass: string,
|
|
4060
|
-
},
|
|
4061
4127
|
iPhone6: {
|
|
4062
4128
|
cssPixelRatio: number,
|
|
4063
4129
|
ppi: number,
|