survey-creator-core 1.12.9 → 1.12.11
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/i18n/arabic.js +2 -2
- package/i18n/arabic.min.js.LICENSE.txt +1 -1
- package/i18n/bulgarian.js +2 -2
- package/i18n/bulgarian.min.js.LICENSE.txt +1 -1
- package/i18n/croatian.js +2 -2
- package/i18n/croatian.min.js.LICENSE.txt +1 -1
- package/i18n/czech.js +2 -2
- package/i18n/czech.min.js.LICENSE.txt +1 -1
- package/i18n/danish.js +2 -2
- package/i18n/danish.min.js.LICENSE.txt +1 -1
- package/i18n/dutch.js +2 -2
- package/i18n/dutch.min.js.LICENSE.txt +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js.LICENSE.txt +1 -1
- package/i18n/finnish.js +2 -2
- package/i18n/finnish.min.js.LICENSE.txt +1 -1
- package/i18n/french.js +2 -2
- package/i18n/french.min.js.LICENSE.txt +1 -1
- package/i18n/german.js +2 -2
- package/i18n/german.min.js.LICENSE.txt +1 -1
- package/i18n/hebrew.js +2 -2
- package/i18n/hebrew.min.js.LICENSE.txt +1 -1
- package/i18n/hungarian.js +2 -2
- package/i18n/hungarian.min.js.LICENSE.txt +1 -1
- package/i18n/index.js +2 -2
- package/i18n/index.min.js.LICENSE.txt +1 -1
- package/i18n/indonesian.js +2 -2
- package/i18n/indonesian.min.js.LICENSE.txt +1 -1
- package/i18n/italian.js +2 -2
- package/i18n/italian.min.js.LICENSE.txt +1 -1
- package/i18n/japanese.js +2 -2
- package/i18n/japanese.min.js.LICENSE.txt +1 -1
- package/i18n/korean.js +2 -2
- package/i18n/korean.min.js.LICENSE.txt +1 -1
- package/i18n/malay.js +2 -2
- package/i18n/malay.min.js.LICENSE.txt +1 -1
- package/i18n/mongolian.js +2 -2
- package/i18n/mongolian.min.js.LICENSE.txt +1 -1
- package/i18n/norwegian.js +2 -2
- package/i18n/norwegian.min.js.LICENSE.txt +1 -1
- package/i18n/persian.js +2 -2
- package/i18n/persian.min.js.LICENSE.txt +1 -1
- package/i18n/polish.js +2 -2
- package/i18n/polish.min.js.LICENSE.txt +1 -1
- package/i18n/portuguese.js +2 -2
- package/i18n/portuguese.min.js.LICENSE.txt +1 -1
- package/i18n/romanian.js +2 -2
- package/i18n/romanian.min.js.LICENSE.txt +1 -1
- package/i18n/russian.js +2 -2
- package/i18n/russian.min.js.LICENSE.txt +1 -1
- package/i18n/simplified-chinese.js +2 -2
- package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/slovak.js +2 -2
- package/i18n/slovak.min.js.LICENSE.txt +1 -1
- package/i18n/spanish.js +2 -2
- package/i18n/spanish.min.js.LICENSE.txt +1 -1
- package/i18n/swedish.js +2 -2
- package/i18n/swedish.min.js.LICENSE.txt +1 -1
- package/i18n/tajik.js +2 -2
- package/i18n/tajik.min.js.LICENSE.txt +1 -1
- package/i18n/thai.js +2 -2
- package/i18n/thai.min.js.LICENSE.txt +1 -1
- package/i18n/traditional-chinese.js +2 -2
- package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/turkish.js +2 -2
- package/i18n/turkish.min.js.LICENSE.txt +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +815 -332
- package/survey-creator-core.fontless.css +814 -331
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +24 -22
- package/survey-creator-core.i18n.js +2 -2
- package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
- package/survey-creator-core.js +985 -560
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +25 -23
- package/survey-creator-core.min.js +1 -1
- package/survey-creator-core.min.js.LICENSE.txt +1 -1
- package/themes/default-contrast.js +114 -12
- package/themes/default-contrast.js.map +1 -1
- package/themes/default-contrast.min.js +1 -1
- package/themes/default-contrast.min.js.LICENSE.txt +1 -1
- package/themes/default-dark.js +114 -12
- package/themes/default-dark.js.map +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-dark.min.js.LICENSE.txt +1 -1
- package/themes/default-light.js +114 -12
- package/themes/default-light.js.map +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/default-light.min.js.LICENSE.txt +1 -1
- package/themes/index.js +114 -12
- package/themes/index.js.map +1 -1
- package/themes/index.min.js +1 -1
- package/themes/index.min.js.LICENSE.txt +1 -1
- package/themes/themes/default.d.ts +212 -8
- package/typings/components/action-container-view-model.d.ts +3 -1
- package/typings/components/page.d.ts +2 -2
- package/typings/components/question-dropdown.d.ts +2 -1
- package/typings/components/question.d.ts +3 -4
- package/typings/components/row.d.ts +4 -0
- package/typings/components/search-manager.d.ts +16 -0
- package/typings/components/tabs/designer-plugin.d.ts +1 -0
- package/typings/components/tabs/designer.d.ts +7 -1
- package/typings/components/tabs/logic-types.d.ts +1 -1
- package/typings/components/tabs/logic.d.ts +3 -2
- package/typings/components/tabs/test-plugin.d.ts +3 -0
- package/typings/components/tabs/theme-plugin.d.ts +1 -0
- package/typings/components/toolbox/toolbox-search-manager.d.ts +8 -0
- package/typings/creator-base.d.ts +26 -4
- package/typings/creator-events-api.d.ts +16 -1
- package/typings/creator-options.d.ts +16 -0
- package/typings/creator-settings.d.ts +8 -6
- package/typings/creator-theme/creator-theme-model.d.ts +1 -0
- package/typings/entries/index.d.ts +2 -0
- package/typings/expand-collapse-manager.d.ts +2 -0
- package/typings/property-grid/matrices.d.ts +1 -0
- package/typings/property-grid/search-manager.d.ts +2 -23
- package/typings/property-grid-theme/property-grid.d.ts +1 -0
- package/typings/themes/default.d.ts +212 -8
- package/typings/toolbox.d.ts +1 -1
|
@@ -14,5 +14,6 @@ export declare class QuestionDropdownAdornerViewModel extends QuestionAdornerVie
|
|
|
14
14
|
getRenderedItems(): ItemValue[];
|
|
15
15
|
getButtonText(): string;
|
|
16
16
|
switchCollapse: () => void;
|
|
17
|
-
|
|
17
|
+
attachElement(surveyElement: SurveyElement): void;
|
|
18
|
+
detachElement(surveyElement: SurveyElement): void;
|
|
18
19
|
}
|
|
@@ -15,7 +15,6 @@ export declare class QuestionAdornerViewModel extends SurveyElementAdornerBase {
|
|
|
15
15
|
private dragOrClickHelper;
|
|
16
16
|
topActionContainer: ActionContainer;
|
|
17
17
|
constructor(creator: SurveyCreatorModel, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
|
|
18
|
-
get element(): SurveyElement<any>;
|
|
19
18
|
protected canSelectElement(): boolean;
|
|
20
19
|
select(model: QuestionAdornerViewModel, event: IPortableEvent): boolean;
|
|
21
20
|
rootCss(): string;
|
|
@@ -36,7 +35,8 @@ export declare class QuestionAdornerViewModel extends SurveyElementAdornerBase {
|
|
|
36
35
|
private createCarryForwardParams;
|
|
37
36
|
private createUsingRestfulParams;
|
|
38
37
|
private createCustomMessagePanel;
|
|
39
|
-
|
|
38
|
+
protected detachElement(surveyElement: SurveyElement): void;
|
|
39
|
+
protected attachElement(surveyElement: SurveyElement): void;
|
|
40
40
|
get isDraggable(): boolean;
|
|
41
41
|
get hoverDelay(): number;
|
|
42
42
|
hover(event: MouseEvent, element: HTMLElement | any): void;
|
|
@@ -50,8 +50,6 @@ export declare class QuestionAdornerViewModel extends SurveyElementAdornerBase {
|
|
|
50
50
|
get showHiddenTitle(): boolean;
|
|
51
51
|
get placeholderText(): string;
|
|
52
52
|
private get dragDropHelper();
|
|
53
|
-
get isRequired(): any;
|
|
54
|
-
set isRequired(newVal: any);
|
|
55
53
|
onPointerDown(pointerDownEvent: PointerEvent): void;
|
|
56
54
|
startDragSurveyElement: (event: PointerEvent) => boolean;
|
|
57
55
|
private getConvertToTypes;
|
|
@@ -68,6 +66,7 @@ export declare class QuestionAdornerViewModel extends SurveyElementAdornerBase {
|
|
|
68
66
|
private createConvertInputType;
|
|
69
67
|
private getSelectedItem;
|
|
70
68
|
private createDropdownModel;
|
|
69
|
+
private updateRequiredAction;
|
|
71
70
|
private createRequiredAction;
|
|
72
71
|
protected getUpdatedPropertyValue(propName: string, newValue: any): any;
|
|
73
72
|
protected buildActions(items: Array<Action>): void;
|
|
@@ -5,6 +5,10 @@ export declare class RowViewModel extends Base {
|
|
|
5
5
|
row: QuestionRowModel;
|
|
6
6
|
templateData: SurveyTemplateRendererTemplateData;
|
|
7
7
|
constructor(creator: SurveyCreatorModel, row: QuestionRowModel, templateData: SurveyTemplateRendererTemplateData);
|
|
8
|
+
subscribeElementChanges(): void;
|
|
9
|
+
unsubscribeElementChanges(): void;
|
|
8
10
|
dragTypeOverMe: DragTypeOverMeEnum;
|
|
11
|
+
private rowDragTypeOverMeChanged;
|
|
9
12
|
get cssClasses(): string;
|
|
13
|
+
dispose(): void;
|
|
10
14
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Action, ActionContainer, Base } from "survey-core";
|
|
2
|
+
export declare abstract class SearchManager extends Base {
|
|
3
|
+
searchActionBar: ActionContainer;
|
|
4
|
+
get filterStringPlaceholder(): string;
|
|
5
|
+
filterString: string;
|
|
6
|
+
isVisible: boolean;
|
|
7
|
+
matchCounterText: string;
|
|
8
|
+
protected getSearchActions(): Action[];
|
|
9
|
+
initActionBar(): void;
|
|
10
|
+
clearFilterString(): void;
|
|
11
|
+
protected abstract setFiterString(newValue: string, oldValue: string): any;
|
|
12
|
+
protected abstract getFilterStringPlaceholder(): string;
|
|
13
|
+
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
14
|
+
constructor();
|
|
15
|
+
dispose(): void;
|
|
16
|
+
}
|
|
@@ -36,6 +36,7 @@ export declare class TabDesignerPlugin implements ICreatorPlugin {
|
|
|
36
36
|
private syncTheme;
|
|
37
37
|
private updatePredefinedColorChoices;
|
|
38
38
|
updateThemeSettings(): void;
|
|
39
|
+
setTheme(): void;
|
|
39
40
|
private createCreatorThemeSettingsPage;
|
|
40
41
|
constructor(creator: SurveyCreatorModel);
|
|
41
42
|
private updateTabControlActions;
|
|
@@ -11,7 +11,7 @@ export declare class TabDesignerViewModel extends Base {
|
|
|
11
11
|
designerCss: string;
|
|
12
12
|
showPlaceholder: boolean;
|
|
13
13
|
creator: SurveyCreatorModel;
|
|
14
|
-
|
|
14
|
+
surfaceToolbar: ActionContainer;
|
|
15
15
|
get displayPageDropTarget(): string;
|
|
16
16
|
private createNewPage;
|
|
17
17
|
private get canShowNewPage();
|
|
@@ -30,8 +30,14 @@ export declare class TabDesignerViewModel extends Base {
|
|
|
30
30
|
private calculateDesignerCss;
|
|
31
31
|
initSurvey(): void;
|
|
32
32
|
private checkNewPage;
|
|
33
|
+
private updatePages;
|
|
33
34
|
dispose(): void;
|
|
34
35
|
private checkLastPageToDelete;
|
|
36
|
+
_pages: Array<PageModel>;
|
|
37
|
+
get pages(): Array<PageModel>;
|
|
38
|
+
set pages(val: Array<PageModel>);
|
|
39
|
+
private pagesAnimation;
|
|
40
|
+
private getPagesAnimationOptions;
|
|
35
41
|
clickDesigner(): void;
|
|
36
42
|
getRootCss(): string;
|
|
37
43
|
}
|
|
@@ -52,7 +52,7 @@ export declare class SurveyLogicType {
|
|
|
52
52
|
formatElName(name: string): string;
|
|
53
53
|
formatExpression(expression: string): string;
|
|
54
54
|
supportContext(context: Base): boolean;
|
|
55
|
-
|
|
55
|
+
get isTrigger(): boolean;
|
|
56
56
|
}
|
|
57
57
|
export declare class SurveyLogicTypes {
|
|
58
58
|
static baseTypes: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SurveyModel, Base, Question, ItemValue, MatrixDropdownColumn, QuestionDropdownModel, EventBase } from "survey-core";
|
|
2
2
|
import { ISurveyCreatorOptions } from "../../creator-settings";
|
|
3
3
|
import { ISurveyLogicItemOwner, SurveyLogicItem, SurveyLogicAction } from "./logic-items";
|
|
4
|
-
import { SurveyLogicType } from "./logic-types";
|
|
4
|
+
import { SurveyLogicType, ISurveyLogicType } from "./logic-types";
|
|
5
5
|
export declare function initLogicOperator(question: QuestionDropdownModel): void;
|
|
6
6
|
export declare class LogicEvent extends EventBase<SurveyLogic, any> {
|
|
7
7
|
}
|
|
@@ -11,7 +11,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
11
11
|
private editableItemValue;
|
|
12
12
|
static get visibleActions(): Array<string>;
|
|
13
13
|
static set visibleActions(val: Array<string>);
|
|
14
|
-
static get types():
|
|
14
|
+
static get types(): ISurveyLogicType[];
|
|
15
15
|
invisibleItems: Array<SurveyLogicItem>;
|
|
16
16
|
onChangedCallback: (item: SurveyLogicItem, changeType: string) => void;
|
|
17
17
|
/**
|
|
@@ -99,4 +99,5 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
99
99
|
private getParentQuestion;
|
|
100
100
|
private getElementAllTypes;
|
|
101
101
|
protected createLogicTypes(): Array<SurveyLogicType>;
|
|
102
|
+
private isLogicTypeVisible;
|
|
102
103
|
}
|
|
@@ -18,6 +18,9 @@ export declare class TabTestPlugin implements ICreatorPlugin {
|
|
|
18
18
|
private nextPageAction;
|
|
19
19
|
private simulatorTheme;
|
|
20
20
|
model: TestSurveyTabViewModel;
|
|
21
|
+
private _previewDevice;
|
|
22
|
+
get previewDevice(): string;
|
|
23
|
+
set previewDevice(newValue: string);
|
|
21
24
|
private setDevice;
|
|
22
25
|
private setDefaultLanguageOption;
|
|
23
26
|
private getLanguages;
|
|
@@ -67,6 +67,7 @@ export declare class ThemeTabPlugin implements ICreatorPlugin {
|
|
|
67
67
|
private setVisibleIf;
|
|
68
68
|
private updateTabControl;
|
|
69
69
|
constructor(creator: SurveyCreatorModel);
|
|
70
|
+
private previewDevice;
|
|
70
71
|
activate(): void;
|
|
71
72
|
private expandCategoryIfNeeded;
|
|
72
73
|
private updateTabControlActions;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { QuestionToolbox } from "../../toolbox";
|
|
2
|
+
import { SearchManager } from "../search-manager";
|
|
3
|
+
export declare class SearchManagerToolbox extends SearchManager {
|
|
4
|
+
toolbox: QuestionToolbox;
|
|
5
|
+
protected getFilterStringPlaceholder(): string;
|
|
6
|
+
protected setFiterString(newValue: string, oldValue: string): void;
|
|
7
|
+
clearFilterString(): void;
|
|
8
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Base, SurveyModel, Question, PageModel, IElement, JsonObjectProperty, ActionContainer, IAction, Action, IPanel, SurveyElement, ItemValue, QuestionSelectBase, LocalizableString, ILocalizableString, ILocalizableOwner, PopupBaseViewModel, EventBase, MatrixDropdownColumn, ISurveyElement, ITheme } from "survey-core";
|
|
1
|
+
import { Base, SurveyModel, Question, PanelModel, PageModel, IElement, JsonObjectProperty, ActionContainer, IAction, Action, IPanel, SurveyElement, ItemValue, QuestionSelectBase, LocalizableString, ILocalizableString, ILocalizableOwner, PopupBaseViewModel, EventBase, MatrixDropdownColumn, ISurveyElement, ITheme } from "survey-core";
|
|
2
2
|
import { ICreatorPlugin, ISurveyCreatorOptions, ICollectionItemAllowOperations } from "./creator-settings";
|
|
3
3
|
import { DragDropChoices } from "survey-core";
|
|
4
4
|
import { QuestionToolbox, QuestionToolboxItem } from "./toolbox";
|
|
@@ -14,7 +14,7 @@ import { ICreatorOptions } from "./creator-options";
|
|
|
14
14
|
import { ThemeTabPlugin } from "./components/tabs/theme-plugin";
|
|
15
15
|
import { DragDropSurveyElements } from "./survey-elements";
|
|
16
16
|
import { PageAdorner } from "./components/page";
|
|
17
|
-
import { ElementDeletingEvent, PropertyGetReadOnlyEvent, ElementGetDisplayNameEvent, HtmlToMarkdownEvent, ElementAllowOperationsEvent, ElementGetActionsEvent, PropertyAddingEvent, PropertyGridSurveyCreatedEvent, PropertyEditorCreatedEvent, PropertyEditorUpdateTitleActionsEvent, PropertyGridShowPopupEvent, CollectionItemAllowOperationsEvent, CollectionItemAddedEvent, FastEntryItemsEvent as FastEntryFinishedEvent, MatrixColumnAddedEvent, ConfigureTablePropertyEditorEvent, PropertyDisplayCustomErrorEvent, PropertyValueChangingEvent, PropertyValueChangedEvent, ConditionGetQuestionListEvent, GetConditionOperatorEvent, LogicRuleGetDisplayTextEvent, ModifiedEvent, QuestionAddedEvent, PanelAddedEvent, PageAddedEvent, QuestionConvertingEvent, PageGetFooterActionsEvent, SurveyInstanceCreatedEvent, DesignerSurveyCreatedEvent, PreviewSurveyCreatedEvent, NotifyEvent, ElementFocusingEvent, ElementFocusedEvent, OpenFileChooserEvent, UploadFileEvent, TranslationStringVisibilityEvent, TranslationImportItemEvent, TranslationImportedEvent, TranslationExportItemEvent, MachineTranslateEvent, TranslationItemChangingEvent, DragDropAllowEvent, CreateCustomMessagePanelEvent, ActiveTabChangingEvent, ActiveTabChangedEvent, BeforeUndoEvent, BeforeRedoEvent, PageAddingEvent, DragStartEndEvent } from "./creator-events-api";
|
|
17
|
+
import { ElementDeletingEvent, PropertyGetReadOnlyEvent, ElementGetDisplayNameEvent, HtmlToMarkdownEvent, ElementAllowOperationsEvent, ElementGetActionsEvent, PropertyAddingEvent, PropertyGridSurveyCreatedEvent, PropertyEditorCreatedEvent, PropertyEditorUpdateTitleActionsEvent, PropertyGridShowPopupEvent, CollectionItemAllowOperationsEvent, CollectionItemAddedEvent, FastEntryItemsEvent as FastEntryFinishedEvent, MatrixColumnAddedEvent, ConfigureTablePropertyEditorEvent, PropertyDisplayCustomErrorEvent, PropertyValueChangingEvent, PropertyValueChangedEvent, ConditionGetQuestionListEvent, GetConditionOperatorEvent, LogicRuleGetDisplayTextEvent, ModifiedEvent, QuestionAddedEvent, PanelAddedEvent, PageAddedEvent, QuestionConvertingEvent, PageGetFooterActionsEvent, SurveyInstanceCreatedEvent, DesignerSurveyCreatedEvent, PreviewSurveyCreatedEvent, NotifyEvent, ElementFocusingEvent, ElementFocusedEvent, OpenFileChooserEvent, UploadFileEvent, TranslationStringVisibilityEvent, TranslationImportItemEvent, TranslationImportedEvent, TranslationExportItemEvent, MachineTranslateEvent, TranslationItemChangingEvent, DragDropAllowEvent, CreateCustomMessagePanelEvent, ActiveTabChangingEvent, ActiveTabChangedEvent, BeforeUndoEvent, BeforeRedoEvent, PageAddingEvent, DragStartEndEvent, ElementGetExpandCollapseStateEvent, ElementGetExpandCollapseStateEventReason } from "./creator-events-api";
|
|
18
18
|
import { ExpandCollapseManager } from "./expand-collapse-manager";
|
|
19
19
|
import { ICreatorTheme } from "./creator-theme/creator-themes";
|
|
20
20
|
import { TabbedMenuContainer, TabbedMenuItem } from "./tabbed-menu";
|
|
@@ -148,10 +148,27 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
148
148
|
showSearch: boolean;
|
|
149
149
|
generateValidJSON: boolean;
|
|
150
150
|
currentAddQuestionType: string;
|
|
151
|
+
/**
|
|
152
|
+
* Specifies a default device for survey preview in the Preview tab.
|
|
153
|
+
*
|
|
154
|
+
* Possible values:
|
|
155
|
+
*
|
|
156
|
+
* - `"desktop"` (default)
|
|
157
|
+
* - `"iPhoneSE"`
|
|
158
|
+
* - `"iPhone15"`
|
|
159
|
+
* - `"iPhone15Plus"`
|
|
160
|
+
* - `"iPad"`
|
|
161
|
+
* - `"iPadMini"`
|
|
162
|
+
* - `"androidPhone"`
|
|
163
|
+
* - `"androidTablet"`
|
|
164
|
+
* - `"microsoftSurface"`
|
|
165
|
+
*/
|
|
166
|
+
previewDevice: string;
|
|
151
167
|
/**
|
|
152
168
|
* Specifies the orientation of the selected device in the Preview tab.
|
|
153
169
|
*
|
|
154
170
|
* Possible values:
|
|
171
|
+
*
|
|
155
172
|
* - `"landscape"` (default)
|
|
156
173
|
* - `"portrait"`
|
|
157
174
|
*/
|
|
@@ -253,6 +270,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
253
270
|
* An event that is raised after a user has edited a text value on the design surface. This value may include HTML markup. You can handle the `onHtmlToMarkdown` event to convert the HTML markup to Markdown.
|
|
254
271
|
*/
|
|
255
272
|
onHtmlToMarkdown: EventBase<SurveyCreatorModel, HtmlToMarkdownEvent>;
|
|
273
|
+
onElementGetExpandCollapseState: EventBase<SurveyCreatorModel, ElementGetExpandCollapseStateEvent>;
|
|
256
274
|
/**
|
|
257
275
|
* An event that is raised when Survey Creator obtains permitted operations for a survey element. Use this event to disable user interactions with a question, panel, or page on the design surface.
|
|
258
276
|
*
|
|
@@ -1020,8 +1038,11 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
1020
1038
|
onAfterDrop: EventBase<any, DragStartEndEvent>;
|
|
1021
1039
|
private initDragDropSurveyElements;
|
|
1022
1040
|
get designerStateManager(): import("./components/tabs/designer-state-manager").DesignerStateManager;
|
|
1023
|
-
|
|
1024
|
-
|
|
1041
|
+
private getCollapsableElements;
|
|
1042
|
+
collapseAllElements(): void;
|
|
1043
|
+
getElementExpandCollapseState(element: Question | PageModel | PanelModel, reason: ElementGetExpandCollapseStateEventReason, defaultValue: boolean): boolean;
|
|
1044
|
+
private restoreState;
|
|
1045
|
+
restoreElementsState(): void;
|
|
1025
1046
|
private initDragDropChoices;
|
|
1026
1047
|
updateElementsOnLocaleChanged(obj: Base, propertyName: string): void;
|
|
1027
1048
|
updateConditionsOnNameChanged(obj: Base, propertyName: string, oldValue: any): void;
|
|
@@ -1171,6 +1192,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
1171
1192
|
* @see onPageAdded
|
|
1172
1193
|
*/
|
|
1173
1194
|
copyPage(page: PageModel): PageModel;
|
|
1195
|
+
private isCopyingPage;
|
|
1174
1196
|
protected deleteObjectCore(obj: any): void;
|
|
1175
1197
|
private getNextPage;
|
|
1176
1198
|
protected deleteObject(obj: any): void;
|
|
@@ -79,6 +79,21 @@ export interface HtmlToMarkdownEvent {
|
|
|
79
79
|
*/
|
|
80
80
|
text: string;
|
|
81
81
|
}
|
|
82
|
+
export type ElementGetExpandCollapseStateEventReason = "loading" | "collapse-all" | "expand-all" | "drag-start" | "drag-end";
|
|
83
|
+
export interface ElementGetExpandCollapseStateEvent {
|
|
84
|
+
/**
|
|
85
|
+
* A survey element (question, panel, or page) whose expand/collapse state you can switch.
|
|
86
|
+
*/
|
|
87
|
+
element: Question | PanelModel | PageModel;
|
|
88
|
+
/**
|
|
89
|
+
* Indicates whether the element is currently collapsed or expanded. Set this parameter to `true` if you want to collapse the element or `false` to expand it.
|
|
90
|
+
*/
|
|
91
|
+
collapsed: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* A value that indicates what caused the event to raise: the loading of a survey JSON schema, a click on the Expand All or Collapse All button, or the beginning or end of a drag and drop operation.
|
|
94
|
+
*/
|
|
95
|
+
reason: ElementGetExpandCollapseStateEventReason;
|
|
96
|
+
}
|
|
82
97
|
export interface ElementAllowOperationsEvent {
|
|
83
98
|
/**
|
|
84
99
|
* A survey element (question or panel) for which you can disable user interactions.
|
|
@@ -435,7 +450,7 @@ export interface LogicRuleGetDisplayTextEvent {
|
|
|
435
450
|
}
|
|
436
451
|
export interface ModifiedEvent {
|
|
437
452
|
/**
|
|
438
|
-
* A value that indicates the modification: `"ADDED_FROM_TOOLBOX"`, "ADDED_FROM_PAGEBUTTON"
|
|
453
|
+
* A value that indicates the modification: `"ADDED_FROM_TOOLBOX"`, `"ADDED_FROM_PAGEBUTTON"`, `"PAGE_ADDED"`, `"QUESTION_CONVERTED"`, `"ELEMENT_COPIED"`, `"PROPERTY_CHANGED"`, `"ELEMENT_REORDERED"`, `"OBJECT_DELETED"`, `"JSON_EDITOR"`
|
|
439
454
|
*
|
|
440
455
|
* Depending on the `options.type` value, the `options` object contains parameters listed below:
|
|
441
456
|
*
|
|
@@ -229,6 +229,22 @@ export interface ICreatorOptions {
|
|
|
229
229
|
* [View Demo](https://surveyjs.io/Examples/Creator?id=theme-switcher (linkStyle))
|
|
230
230
|
*/
|
|
231
231
|
allowChangeThemeInPreview?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Specifies a default device for survey preview in the Preview tab.
|
|
234
|
+
*
|
|
235
|
+
* Possible values:
|
|
236
|
+
*
|
|
237
|
+
* - `"desktop"` (default)
|
|
238
|
+
* - `"iPhoneSE"`
|
|
239
|
+
* - `"iPhone15"`
|
|
240
|
+
* - `"iPhone15Plus"`
|
|
241
|
+
* - `"iPad"`
|
|
242
|
+
* - `"iPadMini"`
|
|
243
|
+
* - `"androidPhone"`
|
|
244
|
+
* - `"androidTablet"`
|
|
245
|
+
* - `"microsoftSurface"`
|
|
246
|
+
*/
|
|
247
|
+
previewDevice?: string;
|
|
232
248
|
/**
|
|
233
249
|
* Specifies the orientation of the selected device in the Preview tab.
|
|
234
250
|
*
|
|
@@ -56,7 +56,9 @@ export declare var settings: {
|
|
|
56
56
|
checkbox: string;
|
|
57
57
|
tagbox: string;
|
|
58
58
|
};
|
|
59
|
-
|
|
59
|
+
includeComplexQuestions: boolean;
|
|
60
|
+
visibleActions: string[];
|
|
61
|
+
invisibleTriggers: string[];
|
|
60
62
|
logicItemTitleMaxChars: number;
|
|
61
63
|
openBracket: string;
|
|
62
64
|
closeBracket: string;
|
|
@@ -211,11 +213,11 @@ export interface ISurveyCreatorOptions {
|
|
|
211
213
|
onMatrixDropdownColumnAddedCallback(matrix: Question, column: MatrixDropdownColumn, columns: Array<MatrixDropdownColumn>): any;
|
|
212
214
|
onSetPropertyEditorOptionsCallback(propertyName: string, obj: Base, editorOptions: any): any;
|
|
213
215
|
onGetErrorTextOnValidationCallback(propertyName: string, obj: Base, value: any): string;
|
|
214
|
-
onValueChangingCallback(options: any):
|
|
216
|
+
onValueChangingCallback(options: any): void;
|
|
215
217
|
onGetElementEditorTitleCallback(obj: Base, title: string): string;
|
|
216
|
-
startUndoRedoTransaction():
|
|
217
|
-
stopUndoRedoTransaction():
|
|
218
|
-
createSurvey(json: any, reason: string, model?: any, callback?: (survey: SurveyModel) => void, area?: string):
|
|
218
|
+
startUndoRedoTransaction(name?: string): void;
|
|
219
|
+
stopUndoRedoTransaction(): void;
|
|
220
|
+
createSurvey(json: any, reason: string, model?: any, callback?: (survey: SurveyModel) => void, area?: string): SurveyModel;
|
|
219
221
|
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[], variables: string[]): string;
|
|
220
222
|
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
221
223
|
isConditionOperatorEnabled(questionName: string, question: Question, operator: string, isEnabled: boolean): boolean;
|
|
@@ -277,7 +279,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
277
279
|
onGetErrorTextOnValidationCallback(propertyName: string, obj: Base, value: any): string;
|
|
278
280
|
onValueChangingCallback(options: any): void;
|
|
279
281
|
onGetElementEditorTitleCallback(obj: Base, title: string): string;
|
|
280
|
-
startUndoRedoTransaction(): void;
|
|
282
|
+
startUndoRedoTransaction(name?: string): void;
|
|
281
283
|
stopUndoRedoTransaction(): void;
|
|
282
284
|
createSurvey(json: any, reason: string, model?: any, callback?: (survey: SurveyModel) => void, area?: string): SurveyModel;
|
|
283
285
|
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[], variables: string[]): string;
|
|
@@ -45,6 +45,7 @@ export declare class CreatorThemeModel extends Base implements ICreatorTheme {
|
|
|
45
45
|
private updateScaleProperties;
|
|
46
46
|
private blockThemeChangedNotifications;
|
|
47
47
|
loadTheme(theme?: ICreatorTheme): void;
|
|
48
|
+
setTheme(theme: ICreatorTheme): void;
|
|
48
49
|
fromJSON(json: ICreatorTheme, options?: ILoadFromJSONOptions): void;
|
|
49
50
|
toJSON(options?: ISaveToJSONOptions): ICreatorTheme;
|
|
50
51
|
}
|
|
@@ -31,6 +31,7 @@ export * from "../components/tabs/logic-ui";
|
|
|
31
31
|
export * from "../components/tabs/logic-plugin";
|
|
32
32
|
export * from "../components/tabs/logic-theme";
|
|
33
33
|
export * from "../components/toolbox/toolbox-tool";
|
|
34
|
+
export * from "../components/toolbox/toolbox-search-manager";
|
|
34
35
|
export * from "../components/page-navigator/page-navigator";
|
|
35
36
|
export * from "../components/page";
|
|
36
37
|
export * from "../components/row";
|
|
@@ -47,6 +48,7 @@ export * from "../components/header/logo-image";
|
|
|
47
48
|
export * from "../components/string-editor";
|
|
48
49
|
export * from "../components/embedded-survey";
|
|
49
50
|
export * from "../components/link-value";
|
|
51
|
+
export * from "../components/search-manager";
|
|
50
52
|
export * from "../editorLocalization";
|
|
51
53
|
export * from "../json5";
|
|
52
54
|
export * from "../custom-questions/question-spin-editor";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { CreatorBase } from "./creator-base";
|
|
2
2
|
import { SurveyElementAdornerBase } from "./components/action-container-view-model";
|
|
3
3
|
export declare class ExpandCollapseManager {
|
|
4
|
+
private creator;
|
|
4
5
|
constructor(creator: CreatorBase);
|
|
5
6
|
private adorners;
|
|
6
7
|
updateCollapsed(isCollapsed: boolean): void;
|
|
7
8
|
add(adorner: SurveyElementAdornerBase): void;
|
|
8
9
|
remove(adorner: SurveyElementAdornerBase): void;
|
|
10
|
+
clear(): void;
|
|
9
11
|
}
|
|
@@ -142,6 +142,7 @@ export declare class PropertyGridEditorMatrixValidators extends PropertyGridEdit
|
|
|
142
142
|
}
|
|
143
143
|
export declare class PropertyGridEditorMatrixTriggers extends PropertyGridEditorMatrixMultipleTypes {
|
|
144
144
|
private getAvailableTriggers;
|
|
145
|
+
private isTriggerVisible;
|
|
145
146
|
fit(prop: JsonObjectProperty): boolean;
|
|
146
147
|
protected getObjTypeName(): string;
|
|
147
148
|
protected getDefaultClassName(obj: Base, prop: JsonObjectProperty): string;
|
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
import { Action,
|
|
2
|
-
import {
|
|
3
|
-
export declare abstract class SearchManager extends Base {
|
|
4
|
-
searchActionBar: ActionContainer;
|
|
5
|
-
get filterStringPlaceholder(): string;
|
|
6
|
-
filterString: string;
|
|
7
|
-
isVisible: boolean;
|
|
8
|
-
matchCounterText: string;
|
|
9
|
-
protected getSearchActions(): Action[];
|
|
10
|
-
initActionBar(): void;
|
|
11
|
-
clearFilterString(): void;
|
|
12
|
-
protected abstract setFiterString(newValue: string, oldValue: string): any;
|
|
13
|
-
protected abstract getFilterStringPlaceholder(): string;
|
|
14
|
-
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
15
|
-
constructor();
|
|
16
|
-
dispose(): void;
|
|
17
|
-
}
|
|
18
|
-
export declare class SearchManagerToolbox extends SearchManager {
|
|
19
|
-
toolbox: QuestionToolbox;
|
|
20
|
-
protected setFiterString(newValue: string, oldValue: string): void;
|
|
21
|
-
protected getFilterStringPlaceholder(): string;
|
|
22
|
-
clearFilterString(): void;
|
|
23
|
-
}
|
|
1
|
+
import { Action, Question, SurveyModel } from "survey-core";
|
|
2
|
+
import { SearchManager } from "../components/search-manager";
|
|
24
3
|
export declare class SearchManagerPropertyGrid extends SearchManager {
|
|
25
4
|
private highlightedEditorClass;
|
|
26
5
|
private currentMatchIndex;
|