survey-creator-react 1.9.5-beta.1 → 1.9.9-beta.1

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Type definition for Survey Creator library for React v1.9.5-beta.1
2
+ * Type definition for Survey Creator library for React v1.9.9-beta.1
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
4
4
  * License: https://surveyjs.io/Licenses#SurveyCreator
5
5
  */
@@ -7,11 +7,12 @@ import { Base, JsonObjectProperty, Question, ItemValue, MatrixDropdownColumn } f
7
7
  import { IAction, SurveyModel, Action, QuestionRowModel, PageModel } from "survey-core";
8
8
  import { QuestionSelectBase, ImageItemValue, SurveyElement, AdaptiveActionContainer, ActionContainer } from "survey-core";
9
9
  import { DragDropSurveyElements, DragDropChoices, Event, IElement, IPanel } from "survey-core";
10
- import { ISurveyElement, LocalizableString, ListModel, PopupModel, EventBase } from "survey-core";
11
- import { PanelModel, PanelModelBase, SurveyError, QuestionNonValue, SurveyTemplateRendererTemplateData } from "survey-core";
12
- import { ComputedUpdater, ResponsivityManager, QuestionCheckboxModel, ILocalizableString, ArrayChanges } from "survey-core";
13
- import { VerticalResponsivityManager, HashTable, QuestionMatrixDynamicModel, QuestionMatrixModel, QuestionMatrixDropdownModel } from "survey-core";
14
- import { QuestionPanelDynamicModel, QuestionCommentModel, QuestionRatingModel, MatrixDynamicRowModel } from "survey-core";
10
+ import { ISurveyElement, LocalizableString, DragOrClickHelper, PanelModel, QuestionDropdownModel } from "survey-core";
11
+ import { ListModel, PopupModel, EventBase, PanelModelBase, SurveyError } from "survey-core";
12
+ import { QuestionNonValue, SurveyTemplateRendererTemplateData, ComputedUpdater, ResponsivityManager, QuestionCheckboxModel } from "survey-core";
13
+ import { ILocalizableString, ArrayChanges, VerticalResponsivityManager, HashTable, QuestionMatrixDynamicModel } from "survey-core";
14
+ import { QuestionMatrixModel, QuestionMatrixDropdownModel, QuestionPanelDynamicModel, QuestionCommentModel, QuestionRatingModel } from "survey-core";
15
+ import { MatrixDynamicRowModel } from "survey-core";
15
16
  import { SurveyElementBase, ReactSurveyModel, ISurveyCreator, SurveyQuestionElementBase } from "survey-react-ui";
16
17
  import * as React from "react";
17
18
 
@@ -121,7 +122,10 @@ export interface ISurveyLogicType {
121
122
  isUniqueItem?: boolean;
122
123
  questionNames?: any;
123
124
  getDisplayText?: any;
124
- getDisplayTextName?: any;
125
+ getElementName?: any;
126
+ getSelectorChoices?: any;
127
+ supportContext?: any;
128
+ getParentElement(element: Base): Base;
125
129
  }
126
130
  export interface ISurveyLogicItemOwner {
127
131
  survey: SurveyModel;
@@ -144,7 +148,7 @@ export interface IPropertyGridEditor {
144
148
  fit(prop: JsonObjectProperty, context?: string): boolean;
145
149
  isDefault?: any;
146
150
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
147
- showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): any;
151
+ showModalPropertyEditor?: any;
148
152
  onCreated?: any;
149
153
  onAfterRenderQuestion?: any;
150
154
  createPropertyEditorSetup?: any;
@@ -291,7 +295,7 @@ export interface ISurveyCreatorToolboxItemProps {
291
295
  export interface ISurveyCreatorToolboxProps {
292
296
  model: any;
293
297
  }
294
- export interface ISideBarComponentProps {
298
+ export interface ISidebarComponentProps {
295
299
  model: any;
296
300
  }
297
301
  export interface ISurveyPageNavigatorProps {
@@ -327,6 +331,7 @@ export declare class ActionContainerViewModel<T> extends Base {
327
331
  actionContainer: any;
328
332
  allowDragging: boolean;
329
333
  selectedPropPageFunc: any;
334
+ sidebarFlyoutModeChangedFunc: any;
330
335
  protected checkActionProperties(): void;
331
336
  dispose(): void;
332
337
  protected onElementSelectedChanged(isSelected: boolean): void;
@@ -351,7 +356,6 @@ export declare class CellQuestionDropdownAdornerComponent extends SurveyElementB
351
356
  render(): any;
352
357
  }
353
358
  export declare class ConditionEditorItem {
354
- constructor();
355
359
  conjunction: string;
356
360
  questionName: string;
357
361
  operator: string;
@@ -781,14 +785,27 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
781
785
  */
782
786
  onUploadFile: Event<(sender: CreatorBase<T>, options: any) => any, any>;
783
787
  /*
784
- * Use this event to modify the list of the strings available in a translation tab.
785
- * <br/> sender - the survey creator object that fires the event
786
- * <br/> options.obj - the survey object which property translations are edited in the translation tab.
787
- * <br/> options.propertyName - the name of the property.
788
- * <br/> options.visible - a boolean value. You can change it to hide the property.
788
+ * Use this event to modify the list of the strings available in the Translation tab.
789
+ *
790
+ * The event handler accepts the following arguments:
791
+ *
792
+ * - `sender` - A Survey Creator instance that raised the event.
793
+ * - `options.obj` - A survey object instance (survey, page, panel, question) whose string translations are being edited in the Translation tab.
794
+ * - `options.propertyName` - The name of a property being translated.
795
+ * - `options.visible` - A Boolean value that specifies the property visibility. Set it to `false` to hide the property.
789
796
  */
790
797
  onTranslationStringVisibility: Event<(sender: CreatorBase<T>, options: any) => any, any>;
791
798
  /*
799
+ * Use this event to define is the locale initially selected (default value) and ready for translaion or it is unselected.
800
+ *
801
+ * The event handler accepts the following arguments:
802
+ *
803
+ * - `sender` - A Survey Creator instance that raised the event.
804
+ * - `options.locale` - the locale name, like 'en', 'de' and so on.
805
+ * - `options.isSelected` - it is true by default. Set it to false to make the translation unselected.
806
+ */
807
+ onTranslationLocaleInitiallySelected: Event<(sender: CreatorBase<T>, options: any) => any, any>;
808
+ /*
792
809
  * This callback is used internally for providing survey JSON text.
793
810
  */
794
811
  getSurveyJSONTextCallback: any;
@@ -914,19 +931,22 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
914
931
  * Change the active view/tab. It will return false if it can't change the current tab.
915
932
  */
916
933
  makeNewViewActive(viewName: string): boolean;
917
- static defaultNewSurveyText: string;
918
934
  toolbox: QuestionToolbox;
919
935
  get toolboxCategories(): any;
920
- sideBar: SideBarModel;
936
+ sidebar: SidebarModel;
921
937
  updateToolboxIsCompact(newVal?: boolean): void;
922
938
  onSurveyElementPropertyValueChanged(property: JsonObjectProperty, obj: any, newValue: any): void;
923
- get showToolbox(): boolean | "none" | "top" | "left" | "right";
924
- set showToolbox(val: boolean | "none" | "top" | "left" | "right");
925
- showPropertyGridValue: boolean;
926
- onShowPropertyGridVisiblityChanged: Event<(sender: CreatorBase<T>, options: any) => any, any>;
939
+ showToolboxValue: boolean;
940
+ get showToolbox(): boolean;
941
+ set showToolbox(val: boolean);
942
+ showSidebarValue: boolean;
943
+ onShowSidebarVisiblityChanged: Event<(sender: CreatorBase<T>, options: any) => any, any>;
927
944
  /*
928
945
  * Set this this property grid false to hide the property grid.
929
946
  */
947
+ get showSidebar(): boolean;
948
+ set showSidebar(val: boolean);
949
+ onShowPropertyGridVisiblityChanged: Event<(sender: CreatorBase<T>, options: any) => any, any>;
930
950
  get showPropertyGrid(): boolean;
931
951
  set showPropertyGrid(val: boolean);
932
952
  rightContainerActiveItem(name: string): void;
@@ -962,6 +982,10 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
962
982
  */
963
983
  stopUndoRedoTransaction(): void;
964
984
  /*
985
+ * Returns true if Creator is currently doing undo or redo opertaions
986
+ */
987
+ get isProcessingUndoRedo(): boolean;
988
+ /*
965
989
  * This method performs undo uperation if possible.
966
990
  */
967
991
  undo(): void;
@@ -1161,17 +1185,21 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> {
1161
1185
  showPageNavigator: any;
1162
1186
  showTabs: any;
1163
1187
  showToolbar: any;
1188
+ allowCollapseSidebar: any;
1164
1189
  isMobileView: any;
1165
1190
  toolboxLocation: any;
1166
- sideBarLocation: "left" | "right";
1191
+ sidebarLocation: "left" | "right";
1167
1192
  selectFromStringEditor: boolean;
1168
1193
  }
1169
1194
  export declare class CreatorResponsivityManager {
1170
1195
  constructor(container: any, creator: any);
1171
1196
  resizeObserver: any;
1172
1197
  currentWidth: any;
1173
- prevToolboxLocation: any;
1198
+ prevShowToolbox: any;
1199
+ prevToolboxIsCompact: any;
1200
+ prevShowPageNavigator: any;
1174
1201
  screenWidth: any;
1202
+ devicePixelRatio: any;
1175
1203
  process(): void;
1176
1204
  dispose(): void;
1177
1205
  }
@@ -1201,19 +1229,6 @@ export declare class DesignTimeSurveyModel extends ReactSurveyModel {
1201
1229
  getRendererForString(element: Base, name: string): string;
1202
1230
  getRendererContextForString(element: Base, locStr: LocalizableString): any;
1203
1231
  }
1204
- export declare class DragOrClickHelper {
1205
- constructor(dragHandler: any);
1206
- pointerDownEvent: any;
1207
- currentTarget: any;
1208
- startX: any;
1209
- startY: any;
1210
- currentX: any;
1211
- currentY: any;
1212
- itemModel: any;
1213
- onPointerDown(pointerDownEvent: any, itemModel?: any): void;
1214
- onPointerUp: any;
1215
- tryToStartDrag: any;
1216
- }
1217
1232
  export declare class EditableObject {
1218
1233
  constructor(obj: Base);
1219
1234
  static isCopyObject(obj: any): boolean;
@@ -1307,6 +1322,19 @@ export declare class JsonEditorBaseModel extends Base {
1307
1322
  processErrors(text: string): void;
1308
1323
  get readOnly(): boolean;
1309
1324
  }
1325
+ export declare class LogicActionModelBase {
1326
+ constructor(panel: PanelModel, initialLogicAction: SurveyLogicAction, logicType: SurveyLogicType);
1327
+ initialLogicAction: SurveyLogicAction;
1328
+ logicType: SurveyLogicType;
1329
+ isTrigger: boolean;
1330
+ currentLogicAction: SurveyLogicAction;
1331
+ updateCurrentLogicAction(survey: SurveyModel): boolean;
1332
+ afterUpdateInitialLogicAction(): void;
1333
+ resetElements(): void;
1334
+ getSelectedElement(): string;
1335
+ updateInitialLogicAction(): void;
1336
+ setInitialElementValue(question: QuestionDropdownModel, action: SurveyLogicAction, selectedQuestion: string): void;
1337
+ }
1310
1338
  export declare class LogoImageComponent extends SurveyElementBase<ILogoImageComponentProps, any> {
1311
1339
  constructor(props: ILogoImageComponentProps);
1312
1340
  model: any;
@@ -1517,7 +1545,6 @@ export declare class QuestionAdornerComponent extends SurveyElementBase<Question
1517
1545
  renderElementPlaceholder(): any;
1518
1546
  }
1519
1547
  export declare class QuestionConverter {
1520
- constructor();
1521
1548
  static convertInfo: any;
1522
1549
  static addConvertInfo(className: string, convertToClassName: string): void;
1523
1550
  static getConvertToClasses(className: string, availableTypes?: any, includeCurrent?: boolean): Array<any>;
@@ -1745,8 +1772,8 @@ export declare class SelectionHistory extends Base {
1745
1772
  selectFromAction(obj: Base, propertyName: string): void;
1746
1773
  onObjSelected(obj: Base): void;
1747
1774
  }
1748
- export declare class SideBarComponent extends SurveyElementBase<ISideBarComponentProps, any> {
1749
- constructor(props: ISideBarComponentProps);
1775
+ export declare class SidebarComponent extends SurveyElementBase<ISidebarComponentProps, any> {
1776
+ constructor(props: ISidebarComponentProps);
1750
1777
  containerRef: any;
1751
1778
  get model(): any;
1752
1779
  protected getStateElement(): Base;
@@ -1755,17 +1782,19 @@ export declare class SideBarComponent extends SurveyElementBase<ISideBarComponen
1755
1782
  canRender(): boolean;
1756
1783
  renderElement(): any;
1757
1784
  }
1758
- export declare class SideBarModel extends Base {
1785
+ export declare class SidebarModel extends Base {
1759
1786
  constructor(creator: any, collapseAction?: any, expandAction?: any);
1760
1787
  toolbar: any;
1761
1788
  _expandAction: Action;
1762
1789
  _collapseAction: Action;
1763
- _activeTab: SideBarTabModel;
1764
- onPropertyGridVisibilityChanged: any;
1790
+ _activeTab: SidebarTabModel;
1791
+ onSidebarVisibilityChanged: any;
1765
1792
  resizeManager: ResizeManager;
1766
1793
  tabs: any;
1767
1794
  headerText: string;
1768
1795
  visible: boolean;
1796
+ collapsedManually: boolean;
1797
+ expandedManually: boolean;
1769
1798
  hasVisibleTabs: boolean;
1770
1799
  flyoutMode: boolean;
1771
1800
  activeTab: string;
@@ -1773,23 +1802,23 @@ export declare class SideBarModel extends Base {
1773
1802
  get closeText(): string;
1774
1803
  getTabById(id: string): any;
1775
1804
  getExpandAction(): Action;
1776
- collapseSideBar(): void;
1777
- expandSideBar(): void;
1778
- addTab(id: string, componentName?: string, model?: any, buildActions?: any): SideBarTabModel;
1805
+ collapseSidebar(): void;
1806
+ expandSidebar(): void;
1807
+ addTab(id: string, componentName?: string, model?: any, buildActions?: any): SidebarTabModel;
1779
1808
  updateHasVisibleTabs(): void;
1780
1809
  dispose(): void;
1781
1810
  initResizeManager(container: any): void;
1782
1811
  resetResizeManager(): void;
1783
1812
  }
1784
- export declare class SideBarTab extends SurveyElementBase<any, any> {
1813
+ export declare class SidebarTab extends SurveyElementBase<any, any> {
1785
1814
  constructor(props: any);
1786
1815
  protected getStateElement(): Base;
1787
1816
  renderElement(): any;
1788
1817
  }
1789
- export declare class SideBarTabModel extends Base {
1790
- constructor(id: string, sidePanel: SideBarModel, componentName?: string, model?: any);
1818
+ export declare class SidebarTabModel extends Base {
1819
+ constructor(id: string, sidePanel: SidebarModel, componentName?: string, model?: any);
1791
1820
  id: string;
1792
- sidePanel: SideBarModel;
1821
+ sidePanel: SidebarModel;
1793
1822
  caption: string;
1794
1823
  visible: boolean;
1795
1824
  model: any;
@@ -1801,6 +1830,7 @@ export declare class StringEditorViewModelBase extends Base {
1801
1830
  focusedProgram: boolean;
1802
1831
  valueBeforeEdit: string;
1803
1832
  errorText: string;
1833
+ focused: boolean;
1804
1834
  setLocString(locString: LocalizableString): void;
1805
1835
  checkConstraints(event: any): void;
1806
1836
  blurEditor: any;
@@ -1811,12 +1841,12 @@ export declare class StringEditorViewModelBase extends Base {
1811
1841
  onKeyDown(event: any): boolean;
1812
1842
  findProperty(): JsonObjectProperty;
1813
1843
  get maxLength(): number;
1844
+ placeholderValue: string;
1814
1845
  get placeholder(): string;
1815
1846
  get contentEditable(): boolean;
1816
1847
  className(text: any): string;
1817
1848
  }
1818
1849
  export declare class StylesManager {
1819
- constructor();
1820
1850
  static get currentTheme(): string;
1821
1851
  static set currentTheme(val: string);
1822
1852
  static applyTheme(name?: string): void;
@@ -1831,7 +1861,7 @@ export declare class SurveyCreatorComponent extends SurveyElementBase<ISurveyCre
1831
1861
  renderElement(): any;
1832
1862
  renderActiveTab(): any;
1833
1863
  renderCreatorTab(tab: any): any;
1834
- renderSideBar(): any;
1864
+ renderSidebar(): any;
1835
1865
  }
1836
1866
  export declare class SurveyCreatorToolboxItem extends SurveyElementBase<ISurveyCreatorToolboxItemProps, any> {
1837
1867
  constructor(props: any);
@@ -1860,7 +1890,6 @@ export declare class SurveyForTextWorker extends SurveyModel {
1860
1890
  constructor(jsonObj: any);
1861
1891
  }
1862
1892
  export declare class SurveyHelper {
1863
- constructor();
1864
1893
  static getNewColumnName(objs: any, keyPropName: string, baseName: string): string | number;
1865
1894
  }
1866
1895
  export declare class SurveyJSON5 {
@@ -1891,9 +1920,11 @@ export declare class SurveyLocStringEditor extends SurveyElementBase<any, any> {
1891
1920
  get errorText(): string;
1892
1921
  componentDidMount(): void;
1893
1922
  componentWillUnmount(): void;
1894
- onInput: any;
1923
+ onBlur: any;
1924
+ justFocused: boolean;
1895
1925
  onFocus: any;
1896
1926
  onKeyDown: any;
1927
+ onMouseUp: any;
1897
1928
  done: any;
1898
1929
  edit: any;
1899
1930
  render(): any;
@@ -1963,6 +1994,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
1963
1994
  protected hasErrorInUI(): boolean;
1964
1995
  protected getExpressionText(): string;
1965
1996
  protected getEditingActions(): Array<SurveyLogicAction>;
1997
+ protected onReadOnlyChanged(): void;
1966
1998
  addNew(): void;
1967
1999
  editItem(item: SurveyLogicItem): void;
1968
2000
  protected onStartEditing(): void;
@@ -1985,6 +2017,7 @@ export declare class SurveyLogicAction {
1985
2017
  elementValue: Base;
1986
2018
  get logicType(): SurveyLogicType;
1987
2019
  get element(): Base;
2020
+ get parentElement(): Base;
1988
2021
  get survey(): SurveyModel;
1989
2022
  apply(expression: string, isRenaming?: boolean): void;
1990
2023
  renameQuestion(oldName: string, newName: string): void;
@@ -1999,6 +2032,7 @@ export declare class SurveyLogicAction {
1999
2032
  isSuitableByQuestionName(questionName: string): boolean;
2000
2033
  isSuitableByLogicType(logicTypeName: string): boolean;
2001
2034
  addQuestionNames(names: any): void;
2035
+ get elementName(): string;
2002
2036
  }
2003
2037
  export declare class SurveyLogicItem {
2004
2038
  constructor(owner: ISurveyLogicItemOwner, expression?: string);
@@ -2028,6 +2062,7 @@ export declare class SurveyLogicItem {
2028
2062
  removeQuestion(name: string): void;
2029
2063
  getQuestionNames(): Array<any>;
2030
2064
  getActionTypes(): Array<any>;
2065
+ getContext(): Base;
2031
2066
  get editText(): string;
2032
2067
  get deleteText(): string;
2033
2068
  get ifText(): string;
@@ -2055,12 +2090,16 @@ export declare class SurveyLogicType {
2055
2090
  get questionNames(): any;
2056
2091
  get displayName(): string;
2057
2092
  get description(): string;
2093
+ getParentElement(element: Base): Base;
2094
+ get hasSelectorChoices(): boolean;
2095
+ getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
2058
2096
  getDisplayText(element: Base): string;
2059
2097
  formatElName(name: string): string;
2060
2098
  formatExpression(expression: string): string;
2099
+ supportContext(context: Base): boolean;
2061
2100
  }
2062
2101
  export declare class SurveyLogicTypes {
2063
- constructor();
2102
+ static baseTypes: any;
2064
2103
  static types: any;
2065
2104
  }
2066
2105
  export declare class SurveyNavigation extends SurveyElementBase<any, any> {
@@ -2090,11 +2129,9 @@ export declare class SurveyPageNavigatorItem extends SurveyElementBase<any, any>
2090
2129
  renderElement(): any;
2091
2130
  }
2092
2131
  export declare class SurveyQuestionEditorDefinition {
2093
- constructor();
2094
2132
  static definition: any;
2095
2133
  }
2096
2134
  export declare class SurveyQuestionEditorPropertyDefinition {
2097
- constructor();
2098
2135
  property: JsonObjectProperty;
2099
2136
  title: string;
2100
2137
  category: string;
@@ -2103,7 +2140,6 @@ export declare class SurveyQuestionEditorPropertyDefinition {
2103
2140
  get name(): string;
2104
2141
  }
2105
2142
  export declare class SurveyQuestionEditorTabDefinition {
2106
- constructor();
2107
2143
  name: string;
2108
2144
  title: string;
2109
2145
  visible: boolean;
@@ -2138,12 +2174,16 @@ export declare class SurveyResults extends SurveyElementBase<ISurveyResultsProps
2138
2174
  render(): any;
2139
2175
  renderResultAsText(): any;
2140
2176
  renderResultAsTable(): any;
2141
- renderRows(data: any): Array<Element>;
2142
- renderRow(row: any): any;
2177
+ }
2178
+ export declare class SurveyResultsByRow extends SurveyElementBase<any, any> {
2179
+ constructor(props: any);
2180
+ protected getStateElement(): Base;
2181
+ render(): any;
2143
2182
  }
2144
2183
  export declare class SurveyResultsItemModel extends Base {
2145
- constructor(_data: any);
2184
+ constructor(_data: any, _lvl: number);
2146
2185
  collapsed: boolean;
2186
+ lvl: number;
2147
2187
  items: any;
2148
2188
  get data(): any;
2149
2189
  toggle: any;
@@ -2153,6 +2193,9 @@ export declare class SurveyResultsItemModel extends Base {
2153
2193
  get value(): any;
2154
2194
  get displayValue(): string;
2155
2195
  getString(data: any): string;
2196
+ markerWidth: number;
2197
+ get markerMargin(): string;
2198
+ get textMargin(): string;
2156
2199
  }
2157
2200
  export declare class SurveyResultsModel extends Base {
2158
2201
  constructor(survey: SurveyModel);
@@ -2165,8 +2208,10 @@ export declare class SurveyResultsModel extends Base {
2165
2208
  get resultsName(): any;
2166
2209
  get resultsValue(): any;
2167
2210
  get resultsDisplayValue(): any;
2168
- selectTableClick(model: SurveyResultsModel): void;
2169
- selectJsonClick(model: SurveyResultsModel): void;
2211
+ get isTableSelected(): boolean;
2212
+ get isJsonSelected(): boolean;
2213
+ selectTableClick: any;
2214
+ selectJsonClick: any;
2170
2215
  }
2171
2216
  export declare class SurveySimulator extends SurveyElementBase<any, any> {
2172
2217
  constructor(props: any);
@@ -2215,6 +2260,8 @@ export declare class TabDesignerComponent extends SurveyElementBase<ITabDesigner
2215
2260
  protected renderPages(): Array<Element>;
2216
2261
  protected renderPage(pageV: PageModel): any;
2217
2262
  renderElement(): any;
2263
+ renderPlaceHolder(): any;
2264
+ renderTabContent(): any;
2218
2265
  }
2219
2266
  export declare class TabDesignerViewModel<T> extends Base {
2220
2267
  constructor(creator: any);
@@ -2225,10 +2272,13 @@ export declare class TabDesignerViewModel<T> extends Base {
2225
2272
  showNewPage: boolean;
2226
2273
  pageCount: number;
2227
2274
  withModifier: string;
2275
+ showPlaceholder: boolean;
2228
2276
  creator: any;
2229
2277
  get survey(): T;
2230
2278
  get isToolboxVisible(): boolean;
2279
+ get placeholderText(): string;
2231
2280
  initSurvey(): void;
2281
+ onPagesChangedHandler: any;
2232
2282
  dispose(): void;
2233
2283
  clickDesigner(): void;
2234
2284
  getDesignerCss(): string;
@@ -2379,6 +2429,7 @@ export declare class Translation extends Base implements ITranslationLocales {
2379
2429
  availableTranlationsChangedCallback: any;
2380
2430
  tranlationChangedCallback: any;
2381
2431
  translationStringVisibilityCallback: any;
2432
+ localeInitialVisibleCallback: any;
2382
2433
  surveyValue: SurveyModel;
2383
2434
  settingsSurveyValue: SurveyModel;
2384
2435
  onBaseObjCreatingCallback: any;
@@ -2492,6 +2543,7 @@ export declare class UndoRedoManager {
2492
2543
  transactionCounter: number;
2493
2544
  startTransaction(name: string): void;
2494
2545
  stopTransaction(): void;
2546
+ get isProcessingUndoRedo(): boolean;
2495
2547
  canUndo(): boolean;
2496
2548
  undo(): void;
2497
2549
  canRedo(): boolean;
@@ -2524,7 +2576,6 @@ export declare class AdaptiveToolbox extends Toolbox {
2524
2576
  protected renderCategoryContent(category: any): Array<any>;
2525
2577
  }
2526
2578
  export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions {
2527
- constructor();
2528
2579
  alwaySaveTextInPropertyEditors: boolean;
2529
2580
  readOnly: boolean;
2530
2581
  maxLogicItemsInCondition: number;
@@ -2564,6 +2615,25 @@ export declare class ImageItemValueWrapperViewModel extends ItemValueWrapperView
2564
2615
  chooseFile(model: ImageItemValueWrapperViewModel): void;
2565
2616
  chooseNewFile(model: ImageItemValueWrapperViewModel): void;
2566
2617
  }
2618
+ export declare class LogicActionModel extends LogicActionModelBase {
2619
+ constructor(panel: PanelModel, logicAction: SurveyLogicAction, logicType: SurveyLogicType, selectorElementsHash: any);
2620
+ updateCurrentLogicAction(survey: SurveyModel): boolean;
2621
+ resetElements(): void;
2622
+ updatePanelElements(selectedElement: string, choices: any): void;
2623
+ getSelectedElement(): string;
2624
+ }
2625
+ export declare class LogicActionTriggerModel extends LogicActionModelBase {
2626
+ constructor(panel: PanelModel, logicAction: SurveyLogicAction, logicType: SurveyLogicType);
2627
+ panelObj: Base;
2628
+ isTrigger: boolean;
2629
+ afterUpdateInitialLogicAction(): void;
2630
+ updateCurrentLogicAction(survey: SurveyModel): boolean;
2631
+ updatePanel(propertyName: string, newValue: any, options: ISurveyCreatorOptions, survey: SurveyModel): void;
2632
+ setPanelObj(obj: Base): void;
2633
+ resetElements(): void;
2634
+ updatePanelElements(selectedElement: string, options?: ISurveyCreatorOptions): void;
2635
+ getSelectedElement(): string;
2636
+ }
2567
2637
  export declare class PageViewModel<T> extends ActionContainerViewModel<T> {
2568
2638
  constructor(creator: any, page: PageModel);
2569
2639
  isSelected: boolean;
@@ -2582,6 +2652,7 @@ export declare class PageViewModel<T> extends ActionContainerViewModel<T> {
2582
2652
  select(model: any, event: IPortableMouseEvent): void;
2583
2653
  get css(): string;
2584
2654
  hover(event: any, element: any): void;
2655
+ hoverStopper(event: any, element: any): void;
2585
2656
  protected duplicate(): void;
2586
2657
  get allowEdit(): boolean;
2587
2658
  get addNewQuestionText(): string;
@@ -2717,6 +2788,7 @@ export declare class SurveyLogicUI extends SurveyLogic {
2717
2788
  addNewUI(): void;
2718
2789
  toggleExpressionEditorIsFastEntry(): void;
2719
2790
  protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
2791
+ protected onReadOnlyChanged(): void;
2720
2792
  get expressionEditor(): ConditionEditor;
2721
2793
  get itemEditor(): LogicItemEditor;
2722
2794
  getExpressionEditor(item: SurveyLogicItem): ConditionEditor;
@@ -2740,8 +2812,8 @@ export declare class TabDesignerPlugin<T> implements ICreatorPlugin {
2740
2812
  constructor(creator: any);
2741
2813
  model: any;
2742
2814
  propertyGrid: any;
2743
- propertyGridTab: SideBarTabModel;
2744
- toolboxTab: SideBarTabModel;
2815
+ propertyGridTab: SidebarTabModel;
2816
+ toolboxTab: SidebarTabModel;
2745
2817
  surveySettingsAction: Action;
2746
2818
  saveSurveyAction: Action;
2747
2819
  previewAction: Action;
@@ -2800,20 +2872,22 @@ export declare class TabTestPlugin implements ICreatorPlugin {
2800
2872
  }
2801
2873
  export declare class TabTranslationPlugin implements ICreatorPlugin {
2802
2874
  constructor(creator: any);
2803
- showAllStringsAction: Action;
2875
+ filterStringsAction: Action;
2804
2876
  filterPageAction: Action;
2805
2877
  mergeLocaleWithDefaultAction: Action;
2806
2878
  importCsvAction: Action;
2807
2879
  exportCsvAction: Action;
2808
2880
  inputFileElement: any;
2809
2881
  pagePopupModel: any;
2810
- sideBarTab: SideBarTabModel;
2882
+ stringsPopupModel: any;
2883
+ sidebarTab: SidebarTabModel;
2811
2884
  model: Translation;
2812
2885
  activate(): void;
2813
2886
  update(): void;
2814
2887
  deactivate(): boolean;
2815
2888
  get selectLanguageOptionsCaption(): any;
2816
2889
  get showAllStringsText(): string;
2890
+ get showUsedStringsOnlyText(): string;
2817
2891
  get showAllPagesText(): string;
2818
2892
  get exportToCSVText(): string;
2819
2893
  get importFromCSVText(): string;
@@ -2918,11 +2992,13 @@ export declare class ConditionEditor extends PropertyEditorSetupValue {
2918
2992
  static canBuildExpression(text: string): boolean;
2919
2993
  objectValue: Base;
2920
2994
  surveyValue: SurveyModel;
2995
+ contextValue: Question;
2921
2996
  panelValue: QuestionPanelDynamicModel;
2922
2997
  textEditorValue: QuestionCommentModel;
2923
2998
  addConditionQuestionsHash: any;
2924
2999
  isModalValue: boolean;
2925
3000
  allConditionQuestions: any;
3001
+ onContextChanged: any;
2926
3002
  get title(): string;
2927
3003
  set title(val: string);
2928
3004
  get isModal(): boolean;
@@ -2932,6 +3008,8 @@ export declare class ConditionEditor extends PropertyEditorSetupValue {
2932
3008
  get text(): string;
2933
3009
  set text(val: string);
2934
3010
  isModified(prevText: string): boolean;
3011
+ get context(): Question;
3012
+ set context(val: Question);
2935
3013
  get survey(): SurveyModel;
2936
3014
  get object(): Base;
2937
3015
  get panel(): QuestionPanelDynamicModel;
@@ -2970,23 +3048,25 @@ export declare class LogicItemEditor extends PropertyEditorSetupValue {
2970
3048
  logicTypeChoices: any;
2971
3049
  editableItemValue: SurveyLogicItem;
2972
3050
  isBuildingPanels: boolean;
2973
- titleActionsCreator: PropertyGridTitleActionsCreator;
2974
3051
  initialSelectedElements: any;
2975
3052
  isModifiedValue: boolean;
3053
+ contextValue: Question;
3054
+ selectorElementsHash: any;
2976
3055
  get editableItem(): SurveyLogicItem;
2977
3056
  setEditableItem(val: SurveyLogicItem): void;
2978
3057
  get survey(): SurveyModel;
2979
3058
  get isModified(): boolean;
2980
3059
  get panel(): QuestionPanelDynamicModel;
2981
3060
  get panels(): any;
2982
- getPanelByAction(action: SurveyLogicAction): PanelModel;
2983
- getActionByPanel(panel: PanelModel): SurveyLogicAction;
3061
+ getActionModelByPanel(panel: PanelModel): LogicActionModelBase;
3062
+ setActionModelByPanel(panel: PanelModel, actionModel: LogicActionModelBase): void;
3063
+ get context(): Question;
3064
+ set context(val: Question);
2984
3065
  protected getSurveyJSON(): any;
2985
3066
  protected getSurveyCreationReason(): string;
2986
3067
  resetModified(): void;
2987
3068
  apply(): boolean;
2988
3069
  getEditingActions(): Array<SurveyLogicAction>;
2989
- static elementSelectorTypes: any;
2990
3070
  getLocString(name: string): string;
2991
3071
  }
2992
3072
  export declare class PropertyGridEditorBindings extends PropertyGridEditor {
@@ -2994,7 +3074,7 @@ export declare class PropertyGridEditorBindings extends PropertyGridEditor {
2994
3074
  fit(prop: JsonObjectProperty): boolean;
2995
3075
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
2996
3076
  onMatrixCellCreated(obj: Base, options: any): void;
2997
- onMatrixCellValueChanged(obj: Base, options: any): void;
3077
+ onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
2998
3078
  }
2999
3079
  export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
3000
3080
  constructor();
@@ -3166,7 +3246,6 @@ export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEdit
3166
3246
  constructor();
3167
3247
  fit(prop: JsonObjectProperty): boolean;
3168
3248
  isPropertyEditorSetupEnabled(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): boolean;
3169
- setupMatrixQuestion(obj: Base, matrix: QuestionMatrixDynamicModel, prop: JsonObjectProperty): void;
3170
3249
  protected getAllowRowDragDrop(): boolean;
3171
3250
  createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
3172
3251
  canClearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): boolean;
@@ -3352,9 +3431,13 @@ export declare var editorLocalization: {
3352
3431
  };
3353
3432
  export declare var defaultStrings: any;
3354
3433
  export declare var settings: {
3355
- traslation: {
3434
+ translation: {
3356
3435
  sortByName: boolean,
3357
3436
  exportPrefix: string,
3437
+ /*
3438
+ * The maximum number of locales that user can select at once for translation
3439
+ */
3440
+ maximumSelectedLocales: number,
3358
3441
  },
3359
3442
  operators: {
3360
3443
  empty: any,
@@ -3370,9 +3453,7 @@ export declare var settings: {
3370
3453
  greaterorequal: any,
3371
3454
  lessorequal: any,
3372
3455
  },
3373
- defaultNewSurveyJSON: {
3374
- pages: any,
3375
- },
3456
+ defaultNewSurveyJSON: any,
3376
3457
  logic: {
3377
3458
  visibleActions: any,
3378
3459
  logicItemTitleMaxChars: number,
@@ -3382,7 +3463,6 @@ export declare var settings: {
3382
3463
  */
3383
3464
  questionConvertMode: QuestionConvertMode,
3384
3465
  propertyGrid: {
3385
- allowCollapse: boolean,
3386
3466
  useButtonGroup: boolean,
3387
3467
  maxCharsInButtonGroup: number,
3388
3468
  showNavigationButtons: boolean,
@@ -3416,6 +3496,7 @@ export declare var settings: {
3416
3496
  layout: {
3417
3497
  showTabs: boolean,
3418
3498
  showToolbar: boolean,
3499
+ allowCollapseSidebar: boolean,
3419
3500
  },
3420
3501
  jsonEditor: {
3421
3502
  indentation: number,
@@ -3551,7 +3632,6 @@ export declare var propertyGridCss: {
3551
3632
  itemSvgIconId: string,
3552
3633
  labelChecked: string,
3553
3634
  itemControl: string,
3554
- itemDecorator: string,
3555
3635
  controlLabel: string,
3556
3636
  materialDecorator: string,
3557
3637
  other: string,
@@ -3585,7 +3665,6 @@ export declare var propertyGridCss: {
3585
3665
  svgIconId: string,
3586
3666
  label: string,
3587
3667
  disabledLabel: string,
3588
- itemDecorator: string,
3589
3668
  materialDecorator: string,
3590
3669
  },
3591
3670
  text: {
@@ -4539,6 +4618,7 @@ export declare var logicCss: {
4539
4618
  mainRoot: string,
4540
4619
  },
4541
4620
  };
4621
+ export declare var initialSettingsAllowShowEmptyTitleInDesignMode: boolean;
4542
4622
  export declare var svgBundle: string;
4543
4623
  export declare var Version: string;
4544
4624
  export declare var editableStringRendererName: any;