survey-react 1.9.6 → 1.9.10

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/survey.react.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Type definition for Survey JavaScript library for React v1.9.6
2
+ * Type definition for Survey JavaScript library for React v1.9.10
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -332,6 +332,8 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
332
332
  afterRenderPanel(panel: IElement, htmlElement: any): any;
333
333
  afterRenderPage(htmlElement: any): any;
334
334
  getQuestionByValueNameFromArray(valueName: string, name: string, index: number): IQuestion;
335
+ canChangeChoiceItemsVisibility(): boolean;
336
+ getChoiceItemVisibility(question: IQuestion, item: any, val: boolean): boolean;
335
337
  matrixRowAdded(question: IQuestion, row: any): any;
336
338
  matrixBeforeRowAdded(options: any): any;
337
339
  matrixRowRemoved(question: IQuestion, rowIndex: number, row: any): any;
@@ -528,6 +530,7 @@ export interface ISurveyHeaderProps {
528
530
  }
529
531
  export interface IMAtrixRowProps {
530
532
  model: any;
533
+ parentMatrix: any;
531
534
  }
532
535
  export interface IListItemProps {
533
536
  model: any;
@@ -738,7 +741,6 @@ export declare class ButtonGroupItemModel {
738
741
  onChange(): void;
739
742
  }
740
743
  export declare class ComponentCollection {
741
- constructor();
742
744
  static Instance: ComponentCollection;
743
745
  customQuestionValues: any;
744
746
  onCreateComposite: any;
@@ -778,7 +780,6 @@ export declare class ComputedUpdater<T = any> {
778
780
  dispose(): any;
779
781
  }
780
782
  export declare class ConditionsParser {
781
- constructor();
782
783
  conditionError: ConditionsParserError;
783
784
  static parserCache: any;
784
785
  createCondition(text: string): Operand;
@@ -791,14 +792,12 @@ export declare class ConditionsParserError {
791
792
  code: string;
792
793
  }
793
794
  export declare class CssClassBuilder {
794
- constructor();
795
795
  classes: any;
796
796
  isEmpty(): boolean;
797
797
  append(value: string, condition?: boolean): CssClassBuilder;
798
798
  toString(): string;
799
799
  }
800
800
  export declare class CustomPropertiesCollection {
801
- constructor();
802
801
  static properties: IObject;
803
802
  static parentClasses: any;
804
803
  static addProperty(className: string, property: any): void;
@@ -808,7 +807,6 @@ export declare class CustomPropertiesCollection {
808
807
  static createProperties(obj: any): void;
809
808
  }
810
809
  export declare class CustomWidgetCollection {
811
- constructor();
812
810
  static Instance: CustomWidgetCollection;
813
811
  widgetsValues: any;
814
812
  widgetsActivatedBy: any;
@@ -838,7 +836,6 @@ export declare class DefaultTitle extends React.Component<any, any> {
838
836
  componentDidMount(): void;
839
837
  }
840
838
  export declare class DefaultTitleModel {
841
- constructor();
842
839
  static getIconCss(cssClasses: any, isCollapsed: boolean): string;
843
840
  }
844
841
  export declare class Dependencies {
@@ -861,8 +858,20 @@ export declare class DragDropInfo {
861
858
  isBottom: boolean;
862
859
  isEdge: boolean;
863
860
  }
861
+ export declare class DragOrClickHelper {
862
+ constructor(dragHandler: any);
863
+ pointerDownEvent: any;
864
+ currentTarget: any;
865
+ startX: any;
866
+ startY: any;
867
+ currentX: any;
868
+ currentY: any;
869
+ itemModel: any;
870
+ onPointerDown(pointerDownEvent: any, itemModel?: any): void;
871
+ onPointerUp: any;
872
+ tryToStartDrag: any;
873
+ }
864
874
  export declare class ElementFactory {
865
- constructor();
866
875
  static Instance: ElementFactory;
867
876
  creatorHash: any;
868
877
  registerElement(elementType: string, elementCreator: any): void;
@@ -872,7 +881,6 @@ export declare class ElementFactory {
872
881
  createElement(elementType: string, name: string): IElement;
873
882
  }
874
883
  export declare class Event<T, Options> {
875
- constructor();
876
884
  onCallbacksChanged: any;
877
885
  protected callbacks: any;
878
886
  get isEmpty(): boolean;
@@ -901,7 +909,6 @@ export declare class ExpressionRunnerBase {
901
909
  protected doOnComplete(res: any): void;
902
910
  }
903
911
  export declare class FunctionFactory {
904
- constructor();
905
912
  static Instance: FunctionFactory;
906
913
  functionHash: any;
907
914
  isAsyncHash: any;
@@ -914,7 +921,6 @@ export declare class FunctionFactory {
914
921
  run(name: string, params: any, properties?: any): any;
915
922
  }
916
923
  export declare class Helpers {
917
- constructor();
918
924
  /*
919
925
  * A static methods that returns true if a value undefined, null, empty string or empty array.
920
926
  */
@@ -946,7 +952,6 @@ export declare class JsonError {
946
952
  * The metadata object. It contains object properties' runtime information and allows you to modify it.
947
953
  */
948
954
  export declare class JsonMetadata {
949
- constructor();
950
955
  classes: any;
951
956
  alternativeNames: any;
952
957
  childrenClasses: any;
@@ -991,7 +996,6 @@ export declare class JsonMetadataClass {
991
996
  createProperty(propInfo: any): JsonObjectProperty;
992
997
  }
993
998
  export declare class JsonObject {
994
- constructor();
995
999
  static typePropertyName: string;
996
1000
  static positionPropertyName: string;
997
1001
  static metaDataValue: JsonMetadata;
@@ -1042,7 +1046,6 @@ export declare class MatrixDropdownCell {
1042
1046
  runCondition(values: any, properties: any): void;
1043
1047
  }
1044
1048
  export declare class Operand {
1045
- constructor();
1046
1049
  toString(func?: any): string;
1047
1050
  getType(): string;
1048
1051
  evaluate(processValue?: ProcessValue): any;
@@ -1055,19 +1058,17 @@ export declare class Operand {
1055
1058
  protected areOperatorsEquals(op1: Operand, op2: Operand): boolean;
1056
1059
  }
1057
1060
  export declare class OperandMaker {
1058
- constructor();
1059
1061
  static unaryFunctions: any;
1060
1062
  static binaryFunctions: any;
1061
1063
  static signs: any;
1062
1064
  }
1063
1065
  export declare class PopupUtils {
1064
- constructor();
1065
1066
  static calculatePosition(targetRect: any, height: number, width: number, verticalPosition: any, horizontalPosition: any, showPointer: boolean): INumberPosition;
1066
1067
  static updateVerticalDimensions(top: number, height: number, windowHeight: number): any;
1067
1068
  static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: any): any;
1068
1069
  static updateVerticalPosition(targetRect: any, height: number, verticalPosition: any, showPointer: boolean, windowHeight: number): any;
1069
1070
  static calculatePopupDirection(verticalPosition: any, horizontalPosition: any): string;
1070
- static calculatePointerTarget(targetRect: any, top: number, left: number, verticalPosition: any, horizontalPosition: any): INumberPosition;
1071
+ static calculatePointerTarget(targetRect: any, top: number, left: number, verticalPosition: any, horizontalPosition: any, width?: number, margins?: number): INumberPosition;
1071
1072
  }
1072
1073
  export declare class ProcessValue {
1073
1074
  constructor();
@@ -1099,7 +1100,6 @@ export declare class QuestionCustomWidget {
1099
1100
  get pdfRender(): any;
1100
1101
  }
1101
1102
  export declare class QuestionFactory {
1102
- constructor();
1103
1103
  static Instance: QuestionFactory;
1104
1104
  static get DefaultChoices(): any;
1105
1105
  static get DefaultColums(): any;
@@ -1153,7 +1153,6 @@ export declare class QuestionMatrixDropdownRenderedCell {
1153
1153
  calculateFinalClassName(matrixCssClasses: any): string;
1154
1154
  }
1155
1155
  export declare class ReactElementFactory {
1156
- constructor();
1157
1156
  static Instance: ReactElementFactory;
1158
1157
  creatorHash: any;
1159
1158
  registerElement(elementType: string, elementCreator: any): void;
@@ -1162,7 +1161,6 @@ export declare class ReactElementFactory {
1162
1161
  createElement(elementType: string, params: any): any;
1163
1162
  }
1164
1163
  export declare class ReactQuestionFactory {
1165
- constructor();
1166
1164
  static Instance: ReactQuestionFactory;
1167
1165
  creatorHash: any;
1168
1166
  registerQuestion(questionType: string, questionCreator: any): void;
@@ -1170,7 +1168,6 @@ export declare class ReactQuestionFactory {
1170
1168
  createQuestion(questionType: string, params: any): any;
1171
1169
  }
1172
1170
  export declare class RendererFactory {
1173
- constructor();
1174
1171
  static Instance: RendererFactory;
1175
1172
  renderersHash: any;
1176
1173
  unregisterRenderer(questionType: string, rendererAs: string): void;
@@ -1285,12 +1282,10 @@ export declare class SurveyProgressButtonsModel {
1285
1282
  clickListElement(index: number): void;
1286
1283
  }
1287
1284
  export declare class SurveyProgressModel {
1288
- constructor();
1289
1285
  static getProgressTextInBarCss(css: any): string;
1290
1286
  static getProgressTextUnderBarCss(css: any): string;
1291
1287
  }
1292
1288
  export declare class SurveyTimer {
1293
- constructor();
1294
1289
  static instanceValue: SurveyTimer;
1295
1290
  static get instance(): SurveyTimer;
1296
1291
  listenerCounter: number;
@@ -1316,6 +1311,17 @@ export declare class SvgIcon extends React.Component<any, any> {
1316
1311
  render(): any;
1317
1312
  componentDidMount(): void;
1318
1313
  }
1314
+ export declare class SvgIconData {
1315
+ }
1316
+ export declare class SvgIconRegistry {
1317
+ icons: SvgIconData;
1318
+ iconPrefix: string;
1319
+ registerIconFromSymbol(iconId: string, iconSymbolSvg: string): void;
1320
+ registerIconFromSvgViaElement(iconId: string, iconSvg: string, iconPrefix?: string): void;
1321
+ registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
1322
+ iconsRenderedHtml(): any;
1323
+ renderIcons(): void;
1324
+ }
1319
1325
  export declare class SyntaxError {
1320
1326
  constructor(message: string, expected: any, found: string, location: IFileRange);
1321
1327
  static buildMessage(expected: any, found: string): string;
@@ -1326,7 +1332,6 @@ export declare class SyntaxError {
1326
1332
  name: string;
1327
1333
  }
1328
1334
  export declare class TextPreProcessor {
1329
- constructor();
1330
1335
  _unObservableValues: any;
1331
1336
  onProcess: any;
1332
1337
  process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string;
@@ -1334,7 +1339,6 @@ export declare class TextPreProcessor {
1334
1339
  get hasAllValuesOnLastRun(): boolean;
1335
1340
  }
1336
1341
  export declare class TextPreProcessorItem {
1337
- constructor();
1338
1342
  start: number;
1339
1343
  end: number;
1340
1344
  }
@@ -1375,13 +1379,11 @@ export declare class ValidatorResult {
1375
1379
  error: SurveyError;
1376
1380
  }
1377
1381
  export declare class ValidatorRunner {
1378
- constructor();
1379
1382
  asyncValidators: any;
1380
1383
  onAsyncCompleted: any;
1381
1384
  run(owner: IValidatorOwner): Array<SurveyError>;
1382
1385
  }
1383
1386
  export declare class XmlParser {
1384
- constructor();
1385
1387
  parser: any;
1386
1388
  assignValue(target: any, name: string, value: any): void;
1387
1389
  xml2Json(xmlNode: any, result: any): void;
@@ -1429,19 +1431,22 @@ export declare class Action extends Base implements IAction {
1429
1431
  mode: "popup" | "large" | "small";
1430
1432
  disableTabStop: boolean;
1431
1433
  disableShrink: boolean;
1434
+ cssClassesValue: any;
1435
+ get cssClasses(): any;
1432
1436
  get disabled(): boolean;
1433
1437
  get hasTitle(): boolean;
1434
1438
  get isVisible(): boolean;
1435
1439
  get canShrink(): boolean;
1436
1440
  getActionRootCss(): string;
1441
+ getActionBarItemTitleCss(): string;
1437
1442
  getActionBarItemCss(): string;
1438
- getActionBarItemActiveCss(): string;
1439
1443
  minDimension: number;
1440
1444
  maxDimension: number;
1441
1445
  }
1442
1446
  export declare class ActionContainer<T extends Action = Action> extends Base {
1443
1447
  constructor();
1444
1448
  actions: any;
1449
+ cssClassesValue: any;
1445
1450
  protected getRenderedActions(): Array<T>;
1446
1451
  updateCallback: any;
1447
1452
  containerCss: string;
@@ -1452,7 +1457,8 @@ export declare class ActionContainer<T extends Action = Action> extends Base {
1452
1457
  get hasActions(): boolean;
1453
1458
  get renderedActions(): any;
1454
1459
  get visibleActions(): any;
1455
- get css(): string;
1460
+ getRootCss(): string;
1461
+ get cssClasses(): any;
1456
1462
  setItems(items: any, sortByVisibleIndex?: boolean): void;
1457
1463
  initResponsivityManager(container: any): void;
1458
1464
  resetResponsivityManager(): void;
@@ -1652,7 +1658,7 @@ export declare class DragDropCore<T> extends Base {
1652
1658
  protected draggedElementShortcut: any;
1653
1659
  scrollIntervalId: number;
1654
1660
  protected allowDropHere: boolean;
1655
- startDrag(event: any, draggedElement: any, parentElement?: any, draggedElementNode?: any): void;
1661
+ startDrag(event: any, draggedElement: any, parentElement?: any, draggedElementNode?: any, preventSaveTargetNode?: boolean): void;
1656
1662
  timeoutID: any;
1657
1663
  startX: number;
1658
1664
  startY: number;
@@ -1688,7 +1694,6 @@ export declare class DragDropCore<T> extends Base {
1688
1694
  protected doClear(): void;
1689
1695
  }
1690
1696
  export declare class EventBase<T> extends Event<any, any> {
1691
- constructor();
1692
1697
  }
1693
1698
  export declare class ExceedSizeError extends SurveyError {
1694
1699
  constructor(maxSize: number, errorOwner?: ISurveyErrorOwner);
@@ -1750,12 +1755,15 @@ export declare class ItemValue extends Base implements ILocalizableOwner, IShort
1750
1755
  static set Separator(val: string);
1751
1756
  static createArray(locOwner: ILocalizableOwner): Array<ItemValue>;
1752
1757
  static setupArray(items: any, locOwner: ILocalizableOwner): void;
1753
- static setData(items: any, values: any): void;
1758
+ /*
1759
+ * Resets the input array and fills it with values from the values array
1760
+ */
1761
+ static setData(items: any, values: any, type?: string): void;
1754
1762
  static getData(items: any): any;
1755
1763
  static getItemByValue(items: any, val: any): ItemValue;
1756
1764
  static getTextOrHtmlByValue(items: any, val: any): string;
1757
1765
  static locStrsChanged(items: any): void;
1758
- static runConditionsForItems(items: any, filteredItems: any, runner: ConditionRunner, values: any, properties: any, useItemExpression?: boolean): boolean;
1766
+ static runConditionsForItems(items: any, filteredItems: any, runner: ConditionRunner, values: any, properties: any, useItemExpression?: boolean, onItemCallBack?: any): boolean;
1759
1767
  static runEnabledConditionsForItems(items: any, runner: ConditionRunner, values: any, properties: any, onItemCallBack?: any): boolean;
1760
1768
  ownerPropertyName: string;
1761
1769
  locTextValue: LocalizableString;
@@ -2186,7 +2194,9 @@ export declare class MatrixDropdownTotalCell extends MatrixDropdownCell {
2186
2194
  export declare class MatrixRow extends SurveyElementBase<IMAtrixRowProps, any> {
2187
2195
  constructor(props: IMAtrixRowProps);
2188
2196
  get model(): any;
2197
+ get parentMatrix(): any;
2189
2198
  protected getStateElement(): any;
2199
+ protected onPointerDownHandler: any;
2190
2200
  render(): any;
2191
2201
  }
2192
2202
  export declare class MatrixRowModel extends Base {
@@ -2403,7 +2413,7 @@ export declare class QuestionMatrixDropdownRenderedRow extends Base {
2403
2413
  constructor(cssClasses: any, isDetailRow?: boolean);
2404
2414
  cssClasses: any;
2405
2415
  isDetailRow: boolean;
2406
- ghostPosition: string;
2416
+ isGhostRow: boolean;
2407
2417
  isAdditionalClasses: boolean;
2408
2418
  row: MatrixDropdownRowModelBase;
2409
2419
  static counter: number;
@@ -2422,6 +2432,8 @@ export declare class QuestionMatrixDropdownRenderedTable extends Base {
2422
2432
  hasRemoveRowsValue: boolean;
2423
2433
  rowsActions: any;
2424
2434
  cssClasses: any;
2435
+ renderedRowsChangedCallback: any;
2436
+ rows: any;
2425
2437
  get showTable(): boolean;
2426
2438
  get showHeader(): boolean;
2427
2439
  get showAddRowOnTop(): boolean;
@@ -2432,7 +2444,6 @@ export declare class QuestionMatrixDropdownRenderedTable extends Base {
2432
2444
  isRequireReset(): boolean;
2433
2445
  get headerRow(): QuestionMatrixDropdownRenderedRow;
2434
2446
  get footerRow(): QuestionMatrixDropdownRenderedRow;
2435
- get rows(): any;
2436
2447
  protected build(): void;
2437
2448
  updateShowTableAndAddRow(): void;
2438
2449
  onAddedRow(): void;
@@ -2544,6 +2555,8 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
2544
2555
  static get cssType(): string;
2545
2556
  static set cssType(val: string);
2546
2557
  protected survey: ReactSurveyModel;
2558
+ rootNodeId: string;
2559
+ rootNodeClassName: string;
2547
2560
  protected getStateElement(): Base;
2548
2561
  shouldComponentUpdate(nextProps: any, nextState: any): boolean;
2549
2562
  componentDidUpdate(prevProps: any, prevState: any): void;
@@ -2627,8 +2640,10 @@ export declare class SurveyElementCore extends Base implements ILocalizableOwner
2627
2640
  * Question, Panel and Page description. It renders under element title by using smaller font. Unlike the question title, description can be empty.
2628
2641
  * Please note, this property is hidden for questions without input, for example html question.
2629
2642
  */
2643
+ hasDescription: boolean;
2630
2644
  get description(): string;
2631
2645
  set description(val: string);
2646
+ updateDescriptionVisibility(newDescription: any): void;
2632
2647
  get locDescription(): LocalizableString;
2633
2648
  get titleTagName(): string;
2634
2649
  protected getDefaultTitleTagName(): string;
@@ -2968,12 +2983,16 @@ export declare class DragDropChoices extends DragDropCore<QuestionSelectBase> {
2968
2983
  export declare class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynamicModel> {
2969
2984
  constructor(surveyValue?: ISurvey, creator?: any);
2970
2985
  protected get draggedElementType(): string;
2971
- protected ghostPositionChanged(): void;
2986
+ protected createDraggedElementShortcut(text: string, draggedElementNode: any, event: any): any;
2987
+ fromIndex: number;
2988
+ toIndex: number;
2972
2989
  protected getDropTargetByDataAttributeValue(dataAttributeValue: any): MatrixDropdownRowModelBase;
2973
2990
  protected isDropTargetValid(dropTarget: any): boolean;
2974
2991
  protected findDropTargetNodeByDragOverNode(dragOverNode: any): any;
2975
2992
  protected calculateIsBottom(clientY: number): boolean;
2993
+ protected afterDragOver(dropTargetNode: any): void;
2976
2994
  protected doDrop: any;
2995
+ protected doClear(): void;
2977
2996
  }
2978
2997
  export declare class DragDropSurveyElements extends DragDropCore<any> {
2979
2998
  constructor(surveyValue?: ISurvey, creator?: any);
@@ -3123,6 +3142,7 @@ export declare class MatrixDropdownTotalRowModel extends MatrixDropdownRowModelB
3123
3142
  export declare class MatrixDynamicRowModel extends MatrixDropdownRowModelBase implements IShortcutText {
3124
3143
  constructor(index: number, data: IMatrixDropdownData, value: any);
3125
3144
  index: number;
3145
+ dragOrClickHelper: DragOrClickHelper;
3126
3146
  get rowName(): string;
3127
3147
  get shortcutText(): string;
3128
3148
  }
@@ -3257,6 +3277,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3257
3277
  get titleAriaExpanded(): boolean;
3258
3278
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
3259
3279
  protected get surveyImpl(): ISurveyImpl;
3280
+ __setData(data: ISurveyData): void;
3260
3281
  get data(): ISurveyData;
3261
3282
  /*
3262
3283
  * Returns the survey object.
@@ -3843,6 +3864,13 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
3843
3864
  */
3844
3865
  onFocusInPanel: EventBase<SurveyModel>;
3845
3866
  /*
3867
+ * You can use this event to decide whether show or hide choice item in checkbox, dropdown and radiogroup like questions
3868
+ * <br/> `sender` - the survey object that fires the event
3869
+ * <br/> `options.question` - a question that contains choices.
3870
+ * <br/> `options.item` - an item of the question.
3871
+ */
3872
+ onShowingChoiceItem: EventBase<SurveyModel>;
3873
+ /*
3846
3874
  * The event is fired on adding a new row in Matrix Dynamic question.
3847
3875
  * <br/> `sender` - the survey object that fires the event
3848
3876
  * <br/> `options.question` - a matrix question.
@@ -4078,6 +4106,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4078
4106
  get cssNavigationPrev(): string;
4079
4107
  get cssNavigationStart(): string;
4080
4108
  get cssNavigationNext(): string;
4109
+ get bodyCss(): string;
4081
4110
  get completedCss(): string;
4082
4111
  lazyRenderingValue: boolean;
4083
4112
  /*
@@ -4875,6 +4904,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4875
4904
  afterRenderPanel(panel: IElement, htmlElement: any): void;
4876
4905
  whenQuestionFocusIn(question: IQuestion): void;
4877
4906
  whenPanelFocusIn(panel: IPanel): void;
4907
+ canChangeChoiceItemsVisibility(): boolean;
4908
+ getChoiceItemVisibility(question: IQuestion, item: any, val: boolean): boolean;
4878
4909
  matrixBeforeRowAdded(options: any): void;
4879
4910
  matrixRowAdded(question: IQuestion, row: any): void;
4880
4911
  getQuestionByValueNameFromArray(valueName: string, name: string, index: number): IQuestion;
@@ -4982,6 +5013,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4982
5013
  protected questionOnValueChanging(valueName: string, newValue: any): any;
4983
5014
  protected updateQuestionValue(valueName: string, newValue: any): void;
4984
5015
  protected notifyQuestionOnValueChanged(valueName: string, newValue: any): void;
5016
+ isRunningElementsBindings: boolean;
4985
5017
  isTriggerIsRunning: boolean;
4986
5018
  triggerValues: any;
4987
5019
  triggerKeys: any;
@@ -5349,7 +5381,6 @@ export declare class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElem
5349
5381
  }
5350
5382
  export declare class SurveyQuestionMatrixDynamicDragDropIcon extends ReactSurveyElement {
5351
5383
  constructor(props: any);
5352
- onPointerDownHandler(event: any): void;
5353
5384
  protected renderElement(): any;
5354
5385
  }
5355
5386
  export declare class SurveyQuestionMatrixDynamicRemoveButton extends ReactSurveyElement {
@@ -5567,7 +5598,6 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
5567
5598
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
5568
5599
  endLoadingFromJson(): void;
5569
5600
  get hasTitle(): boolean;
5570
- get hasDescription(): boolean;
5571
5601
  protected canShowTitle(): boolean;
5572
5602
  get _showDescription(): boolean;
5573
5603
  localeChanged(): void;
@@ -6121,6 +6151,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6121
6151
  */
6122
6152
  get enableIf(): string;
6123
6153
  set enableIf(val: string);
6154
+ surveyChoiceItemVisibilityChange(): void;
6124
6155
  /*
6125
6156
  * Run visibleIf and enableIf expressions. If visibleIf or/and enabledIf are not empty, then the results of performing the expression (true or false) set to the visible/readOnly properties.
6126
6157
  */
@@ -6155,6 +6186,7 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6155
6186
  */
6156
6187
  get isParentVisible(): boolean;
6157
6188
  clearValueIfInvisible(reason?: string): void;
6189
+ protected clearValueIfInvisibleCore(): void;
6158
6190
  /*
6159
6191
  * Gets or sets a value that specifies how invisible question clears the value. By default the behavior is define by Survey "clearInvisibleValues" property.
6160
6192
  *
@@ -6175,15 +6207,28 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
6175
6207
  protected getDisplayValueCore(keyAsText: boolean, value: any): any;
6176
6208
  protected getDisplayValueEmpty(): string;
6177
6209
  /*
6178
- * Set the default value to the question. It will be assign to the question on loading the survey from JSON or adding a question to the survey or on setting this property of the value is empty.
6179
- * Please note, this property is hidden for question without input, for example html question.
6210
+ * A default value for the question. Ignored for question types that cannot have a [value](https://surveyjs.io/Documentation/Library?id=Question#value) (for example, HTML).
6211
+ *
6212
+ * The default value is used as a question value in the following cases:
6213
+ *
6214
+ * - While the survey is being loaded from JSON.
6215
+ * - The question is just added to the survey and does not yet have an answer.
6216
+ * - The respondent left the answer empty.
6180
6217
  */
6181
6218
  get defaultValue(): any;
6182
6219
  set defaultValue(val: any);
6183
6220
  /*
6184
- * Set the default value to the question via expression. This expression will keep change the question value until the value is changed by end-user or via API.
6185
- * You can use expressions as: "today(2)" it will set the question value to after tomorrow or to today({q1}). If {q1} equals to 1, then the value will be tomorrow. If a user change it to 2 then aftertommrow.
6186
- * It works in dynamic panel and matrices as well, please use prefix "panel." and "row." to access question value in the same panel or row.
6221
+ * An expression used to calculate the [defaultValue](https://surveyjs.io/Documentation/Library?id=Question#defaultValue).
6222
+ *
6223
+ * This expression applies until the question [value](https://surveyjs.io/Documentation/Library?id=Question#value) is specified by an end user or programmatically.
6224
+ *
6225
+ * An expression can reference other questions as follows:
6226
+ *
6227
+ * - `{other_question_name}`
6228
+ * - `{panel.other_question_name}` (to access questions inside the same dynamic panel)
6229
+ * - `{row.other_question_name}` (to access questions inside the same dynamic matrix or multi-column dropdown)
6230
+ *
6231
+ * An expression can also include built-in and custom functions for advanced calculations. For example, if the `defaultValue` should be today's date, set the `defaultValueExpression` to `"today()"`, and the corresponding built-in function will be executed each time the survey is loaded. Refer to the following help topic for more information: [Use Functions in Expressions](https://surveyjs.io/Documentation/Library#conditions-functions).
6187
6232
  */
6188
6233
  get defaultValueExpression(): any;
6189
6234
  set defaultValueExpression(val: any);
@@ -7398,7 +7443,7 @@ export declare class QuestionPanelDynamicModel extends Question implements IQues
7398
7443
  hasErrors(fireCallback?: boolean, rec?: any): boolean;
7399
7444
  protected getContainsErrors(): boolean;
7400
7445
  protected getIsAnswered(): boolean;
7401
- clearValueIfInvisible(): void;
7446
+ protected clearValueIfInvisibleCore(): void;
7402
7447
  protected getIsRunningValidators(): boolean;
7403
7448
  getAllErrors(): Array<SurveyError>;
7404
7449
  protected getDisplayValueCore(keysAsText: boolean, value: any): any;
@@ -7560,6 +7605,7 @@ export declare class QuestionSelectBase extends Question {
7560
7605
  */
7561
7606
  get choicesEnableIf(): string;
7562
7607
  set choicesEnableIf(val: string);
7608
+ surveyChoiceItemVisibilityChange(): void;
7563
7609
  runCondition(values: any, properties: any): void;
7564
7610
  protected isTextValue(): boolean;
7565
7611
  isSettingDefaultValue: boolean;
@@ -7571,6 +7617,7 @@ export declare class QuestionSelectBase extends Question {
7571
7617
  protected runItemsEnableCondition(values: any, properties: any): any;
7572
7618
  protected onAfterRunItemsEnableCondition(): void;
7573
7619
  protected onEnableItemCallBack(item: ItemValue): boolean;
7620
+ changeItemVisisbility(): any;
7574
7621
  protected getHasOther(val: any): boolean;
7575
7622
  get validatedValue(): any;
7576
7623
  protected createRestful(): ChoicesRestful;
@@ -7667,7 +7714,7 @@ export declare class QuestionSelectBase extends Question {
7667
7714
  protected canUseFilteredChoices(): boolean;
7668
7715
  setCanShowOptionItemCallback(func: any): void;
7669
7716
  protected addToVisibleChoices(items: any, isAddAll: boolean): void;
7670
- protected canShowOptionItem(item: ItemValue): boolean;
7717
+ protected canShowOptionItem(item: ItemValue, isAddAll: boolean, hasItem: boolean): boolean;
7671
7718
  /*
7672
7719
  * For internal use in SurveyJS Creator V2.
7673
7720
  */
@@ -7708,7 +7755,7 @@ export declare class QuestionSelectBase extends Question {
7708
7755
  protected onVisibleChoicesChanged(): void;
7709
7756
  clearIncorrectValues(): void;
7710
7757
  protected hasValueToClearIncorrectValues(): boolean;
7711
- clearValueIfInvisible(): void;
7758
+ protected clearValueIfInvisibleCore(): void;
7712
7759
  /*
7713
7760
  * Returns true if item is selected
7714
7761
  */
@@ -7731,6 +7778,7 @@ export declare class QuestionSelectBase extends Question {
7731
7778
  ariaItemChecked(item: ItemValue): "true" | "false";
7732
7779
  isOtherItem(item: ItemValue): boolean;
7733
7780
  get itemSvgIcon(): string;
7781
+ getSelectBaseRootCss(): string;
7734
7782
  getAriaItemLabel(item: ItemValue): string;
7735
7783
  getItemId(item: ItemValue): string;
7736
7784
  get questionName(): string;
@@ -7930,7 +7978,7 @@ export declare class QuestionCompositeModel extends QuestionCustomModelBase {
7930
7978
  hasErrors(fireCallback?: boolean, rec?: any): boolean;
7931
7979
  updateElementCss(reNew?: boolean): void;
7932
7980
  getTextProcessor(): ITextProcessor;
7933
- clearValueIfInvisible(): void;
7981
+ protected clearValueIfInvisibleCore(): void;
7934
7982
  onAnyValueChanged(name: string): void;
7935
7983
  protected createPanel(): PanelModel;
7936
7984
  protected onReadOnlyChanged(): void;
@@ -7965,6 +8013,7 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
7965
8013
  onSurveyValueChanged(newValue: any): void;
7966
8014
  protected getValueCore(): any;
7967
8015
  protected initElement(el: SurveyElement): void;
8016
+ updateElementCss(reNew?: boolean): void;
7968
8017
  protected updateElementCssCore(cssClasses: any): void;
7969
8018
  protected getDisplayValueCore(keyAsText: boolean, value: any): any;
7970
8019
  }
@@ -8037,6 +8086,7 @@ export declare class QuestionImageModel extends QuestionNonValue {
8037
8086
  constructor(name: string);
8038
8087
  getType(): string;
8039
8088
  get isCompositeQuestion(): boolean;
8089
+ onSurveyLoad(): void;
8040
8090
  /*
8041
8091
  * The image URL.
8042
8092
  */
@@ -8054,11 +8104,13 @@ export declare class QuestionImageModel extends QuestionNonValue {
8054
8104
  */
8055
8105
  get imageHeight(): string;
8056
8106
  set imageHeight(val: string);
8107
+ get renderedHeight(): string;
8057
8108
  /*
8058
8109
  * The image width.
8059
8110
  */
8060
8111
  get imageWidth(): string;
8061
8112
  set imageWidth(val: string);
8113
+ get renderedWidth(): string;
8062
8114
  /*
8063
8115
  * The image fit mode.
8064
8116
  */
@@ -8069,6 +8121,11 @@ export declare class QuestionImageModel extends QuestionNonValue {
8069
8121
  */
8070
8122
  get contentMode(): string;
8071
8123
  set contentMode(val: string);
8124
+ /*
8125
+ * The rendered mode.
8126
+ */
8127
+ get renderedMode(): string;
8128
+ protected calculateRenderedMode(): void;
8072
8129
  }
8073
8130
  /*
8074
8131
  * A base class for matrix dropdown and matrix dynamic questions.
@@ -8133,6 +8190,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
8133
8190
  get canAddRow(): boolean;
8134
8191
  get canRemoveRows(): boolean;
8135
8192
  canRemoveRow(row: MatrixDropdownRowModelBase): boolean;
8193
+ onPointerDown(pointerDownEvent: any, row: MatrixDropdownRowModelBase): void;
8136
8194
  protected onRowsChanged(): void;
8137
8195
  lockResetRenderedTable: boolean;
8138
8196
  protected onStartRowAddingRemoving(): void;
@@ -8351,7 +8409,7 @@ export declare class QuestionMatrixModel extends QuestionMatrixBaseModel<MatrixR
8351
8409
  getPlainData(options?: any): any;
8352
8410
  addConditionObjectsByContext(objects: any, context: any): void;
8353
8411
  getConditionJson(operator?: string, path?: string): any;
8354
- clearValueIfInvisible(): void;
8412
+ protected clearValueIfInvisibleCore(): void;
8355
8413
  protected getFirstInputElementId(): string;
8356
8414
  protected onRowsChanged(): void;
8357
8415
  onMatrixRowChanged(row: MatrixRowModel): void;
@@ -8630,7 +8688,7 @@ export declare class QuestionMatrixDropdownModel extends QuestionMatrixDropdownM
8630
8688
  protected getConditionObjectRowText(index: number): string;
8631
8689
  protected getConditionObjectsRowIndeces(): Array<any>;
8632
8690
  clearIncorrectValues(): void;
8633
- clearValueIfInvisible(): void;
8691
+ protected clearValueIfInvisibleCore(): void;
8634
8692
  protected generateRows(): Array<MatrixDropdownRowModel>;
8635
8693
  protected createMatrixRow(item: ItemValue, value: any): MatrixDropdownRowModel;
8636
8694
  protected getSearchableItemValueKeys(keys: any): void;
@@ -8647,7 +8705,9 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
8647
8705
  setRowCountValueFromData: boolean;
8648
8706
  dragDropMatrixRows: DragDropMatrixRows;
8649
8707
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
8650
- startDragMatrixRow(event: any, row: MatrixDropdownRowModelBase): void;
8708
+ draggedRow: MatrixDropdownRowModelBase;
8709
+ onPointerDown(pointerDownEvent: any, row: MatrixDropdownRowModelBase): void;
8710
+ startDragMatrixRow: any;
8651
8711
  getType(): string;
8652
8712
  get isRowsDynamic(): boolean;
8653
8713
  /*
@@ -8822,7 +8882,6 @@ export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
8822
8882
  export declare class QuestionRankingModel extends QuestionCheckboxModel {
8823
8883
  constructor(name: string);
8824
8884
  domNode: any;
8825
- sortableInst: any;
8826
8885
  getType(): string;
8827
8886
  get rootClass(): string;
8828
8887
  protected getItemClassCore(item: ItemValue, options: any): string;
@@ -8846,8 +8905,6 @@ export declare class QuestionRankingModel extends QuestionCheckboxModel {
8846
8905
  protected supportSelectAll(): boolean;
8847
8906
  supportOther(): boolean;
8848
8907
  supportNone(): boolean;
8849
- get fallbackToSortableJS(): boolean;
8850
- set fallbackToSortableJS(val: boolean);
8851
8908
  handleArrowUp: any;
8852
8909
  handleArrowDown: any;
8853
8910
  focusItem: any;
@@ -8908,6 +8965,12 @@ export declare var settings: {
8908
8965
  */
8909
8966
  itemValueAlwaysSerializeAsObject: boolean,
8910
8967
  /*
8968
+ * Set it to true to serialize itemvalue text property, even if it is empty or equals to value
8969
+ * const item = new Survey.ItemValue("item1");
8970
+ * item.toJSON(); //will return {value: item1, text: "item1"}, instead of "item1" by default.
8971
+ */
8972
+ itemValueAlwaysSerializeText: boolean,
8973
+ /*
8911
8974
  * default locale name for localizable strings that uses during serialization, {"default": "My text", "de": "Mein Text"}
8912
8975
  */
8913
8976
  defaultLocaleName: string,
@@ -9023,6 +9086,7 @@ export declare var settings: {
9023
9086
  comment: any,
9024
9087
  text: any,
9025
9088
  checkbox: any,
9089
+ imagepicker: any,
9026
9090
  },
9027
9091
  /*
9028
9092
  * Set the value as string "yyyy-mm-dd". text questions with inputType "date" will not allow to set to survey date that less than this value
@@ -9068,6 +9132,15 @@ export declare var surveyStrings: any;
9068
9132
  export declare var Serializer: JsonMetadata;
9069
9133
  export declare var registerFunction: any;
9070
9134
  export declare var parse: any;
9135
+ export declare var defaultActionBarCss: {
9136
+ root: string,
9137
+ item: string,
9138
+ itemActive: string,
9139
+ itemPressed: string,
9140
+ itemIcon: string,
9141
+ itemTitle: string,
9142
+ itemTitleWithIcon: string,
9143
+ };
9071
9144
  export declare var FOCUS_INPUT_SELECTOR: any;
9072
9145
  export declare var surveyCss: {
9073
9146
  currentType: string,
@@ -9279,8 +9352,7 @@ export declare var defaultStandardCss: {
9279
9352
  emptyRowsSection: string,
9280
9353
  emptyRowsText: string,
9281
9354
  emptyRowsButton: string,
9282
- dragDropGhostPositionTop: string,
9283
- dragDropGhostPositionBottom: string,
9355
+ ghostRow: string,
9284
9356
  },
9285
9357
  paneldynamic: {
9286
9358
  root: string,
@@ -9399,36 +9471,21 @@ export declare var surveyTimerFunctions: {
9399
9471
  };
9400
9472
  export declare var matrixDropdownColumnTypes: {
9401
9473
  dropdown: {
9402
- properties: any,
9403
9474
  onCellQuestionUpdate: any,
9404
9475
  },
9405
9476
  checkbox: {
9406
- properties: any,
9407
9477
  onCellQuestionUpdate: any,
9408
9478
  },
9409
9479
  radiogroup: {
9410
- properties: any,
9411
- onCellQuestionUpdate: any,
9412
- },
9413
- text: {
9414
- properties: any,
9415
- onCellQuestionUpdate: any,
9416
- },
9417
- comment: {
9418
- properties: any,
9419
9480
  onCellQuestionUpdate: any,
9420
9481
  },
9482
+ text: any,
9483
+ comment: any,
9421
9484
  boolean: {
9422
- properties: any,
9423
9485
  onCellQuestionUpdate: any,
9424
9486
  },
9425
- expression: {
9426
- properties: any,
9427
- onCellQuestionUpdate: any,
9428
- },
9429
- rating: {
9430
- properties: any,
9431
- },
9487
+ expression: any,
9488
+ rating: any,
9432
9489
  };
9433
9490
  export declare var _isMobile: boolean;
9434
9491
  export declare var vendor: any;
@@ -9437,7 +9494,8 @@ export declare var IsMobile: boolean;
9437
9494
  export declare var _isTouch: boolean;
9438
9495
  export declare var IsTouch: boolean;
9439
9496
  export declare var minMaxTypes: any;
9440
- export declare var Sortable: any;
9497
+ export declare var youtubeTags: any;
9498
+ export declare var videoSuffics: any;
9441
9499
  export declare var defaultWidth: number;
9442
9500
  export declare var defaultHeight: number;
9443
9501
  export declare var Version: string;
@@ -9639,8 +9697,7 @@ export declare var defaultBootstrapCss: {
9639
9697
  emptyRowsSection: string,
9640
9698
  emptyRowsText: string,
9641
9699
  emptyRowsButton: string,
9642
- dragDropGhostPositionTop: string,
9643
- dragDropGhostPositionBottom: string,
9700
+ ghostRow: string,
9644
9701
  },
9645
9702
  paneldynamic: {
9646
9703
  root: string,
@@ -9961,8 +10018,7 @@ export declare var defaultBootstrapMaterialCss: {
9961
10018
  emptyRowsSection: string,
9962
10019
  emptyRowsText: string,
9963
10020
  emptyRowsButton: string,
9964
- dragDropGhostPositionTop: string,
9965
- dragDropGhostPositionBottom: string,
10021
+ ghostRow: string,
9966
10022
  },
9967
10023
  paneldynamic: {
9968
10024
  root: string,
@@ -10119,6 +10175,7 @@ export declare var defaultV2Css: {
10119
10175
  header: string,
10120
10176
  collapsed: string,
10121
10177
  nested: string,
10178
+ invisible: string,
10122
10179
  },
10123
10180
  paneldynamic: {
10124
10181
  mainRoot: string,
@@ -10148,6 +10205,18 @@ export declare var defaultV2Css: {
10148
10205
  progress: string,
10149
10206
  progressBar: string,
10150
10207
  progressText: string,
10208
+ progressButtonsContainerCenter: string,
10209
+ progressButtonsContainer: string,
10210
+ progressButtonsImageButtonLeft: string,
10211
+ progressButtonsImageButtonRight: string,
10212
+ progressButtonsImageButtonHidden: string,
10213
+ progressButtonsListContainer: string,
10214
+ progressButtonsList: string,
10215
+ progressButtonsListElementPassed: string,
10216
+ progressButtonsListElementCurrent: string,
10217
+ progressButtonsListElementNonClickable: string,
10218
+ progressButtonsPageTitle: string,
10219
+ progressButtonsPageDescription: string,
10151
10220
  progressTextInBar: string,
10152
10221
  page: {
10153
10222
  root: string,
@@ -10192,6 +10261,7 @@ export declare var defaultV2Css: {
10192
10261
  disabled: string,
10193
10262
  collapsed: string,
10194
10263
  nested: string,
10264
+ invisible: string,
10195
10265
  },
10196
10266
  image: {
10197
10267
  mainRoot: string,
@@ -10215,6 +10285,7 @@ export declare var defaultV2Css: {
10215
10285
  },
10216
10286
  checkbox: {
10217
10287
  root: string,
10288
+ rootMultiColumn: string,
10218
10289
  item: string,
10219
10290
  itemOnError: string,
10220
10291
  itemSelectAll: string,
@@ -10235,6 +10306,7 @@ export declare var defaultV2Css: {
10235
10306
  },
10236
10307
  radiogroup: {
10237
10308
  root: string,
10309
+ rootMultiColumn: string,
10238
10310
  item: string,
10239
10311
  itemOnError: string,
10240
10312
  itemInline: string,
@@ -10299,6 +10371,7 @@ export declare var defaultV2Css: {
10299
10371
  itemDecorator: string,
10300
10372
  controlDisabled: string,
10301
10373
  controlLabel: string,
10374
+ controlEmpty: string,
10302
10375
  materialDecorator: string,
10303
10376
  },
10304
10377
  imagepicker: {
@@ -10351,6 +10424,9 @@ export declare var defaultV2Css: {
10351
10424
  detailIconId: string,
10352
10425
  detailIconExpandedId: string,
10353
10426
  actionsCell: string,
10427
+ emptyCell: string,
10428
+ verticalCell: string,
10429
+ cellQuestionWrapper: string,
10354
10430
  },
10355
10431
  matrixdynamic: {
10356
10432
  mainRoot: string,
@@ -10375,6 +10451,11 @@ export declare var defaultV2Css: {
10375
10451
  iconRemove: string,
10376
10452
  footer: string,
10377
10453
  emptyRowsSection: string,
10454
+ iconDrag: string,
10455
+ ghostRow: string,
10456
+ emptyCell: string,
10457
+ verticalCell: string,
10458
+ cellQuestionWrapper: string,
10378
10459
  },
10379
10460
  rating: {
10380
10461
  root: string,
@@ -10471,6 +10552,13 @@ export declare var defaultV2Css: {
10471
10552
  itemDragMod: string,
10472
10553
  itemOnError: string,
10473
10554
  },
10555
+ actionBar: {
10556
+ root: string,
10557
+ item: string,
10558
+ itemPressed: string,
10559
+ itemAsIcon: string,
10560
+ itemIcon: string,
10561
+ },
10474
10562
  };
10475
10563
  export declare var modernCss: {
10476
10564
  root: string,
@@ -10775,8 +10863,7 @@ export declare var modernCss: {
10775
10863
  emptyRowsSection: string,
10776
10864
  emptyRowsText: string,
10777
10865
  emptyRowsButton: string,
10778
- dragDropGhostPositionTop: string,
10779
- dragDropGhostPositionBottom: string,
10866
+ ghostRow: string,
10780
10867
  },
10781
10868
  rating: {
10782
10869
  root: string,
@@ -10838,4 +10925,5 @@ export declare var modernCss: {
10838
10925
  },
10839
10926
  },
10840
10927
  };
10928
+ export declare var SvgRegistry: SvgIconRegistry;
10841
10929
  export declare var SvgBundleViewModel: any;