survey-react 1.9.7 → 1.9.8

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.7
2
+ * Type definition for Survey JavaScript library for React v1.9.8
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
  */
@@ -738,7 +738,6 @@ export declare class ButtonGroupItemModel {
738
738
  onChange(): void;
739
739
  }
740
740
  export declare class ComponentCollection {
741
- constructor();
742
741
  static Instance: ComponentCollection;
743
742
  customQuestionValues: any;
744
743
  onCreateComposite: any;
@@ -778,7 +777,6 @@ export declare class ComputedUpdater<T = any> {
778
777
  dispose(): any;
779
778
  }
780
779
  export declare class ConditionsParser {
781
- constructor();
782
780
  conditionError: ConditionsParserError;
783
781
  static parserCache: any;
784
782
  createCondition(text: string): Operand;
@@ -791,14 +789,12 @@ export declare class ConditionsParserError {
791
789
  code: string;
792
790
  }
793
791
  export declare class CssClassBuilder {
794
- constructor();
795
792
  classes: any;
796
793
  isEmpty(): boolean;
797
794
  append(value: string, condition?: boolean): CssClassBuilder;
798
795
  toString(): string;
799
796
  }
800
797
  export declare class CustomPropertiesCollection {
801
- constructor();
802
798
  static properties: IObject;
803
799
  static parentClasses: any;
804
800
  static addProperty(className: string, property: any): void;
@@ -808,7 +804,6 @@ export declare class CustomPropertiesCollection {
808
804
  static createProperties(obj: any): void;
809
805
  }
810
806
  export declare class CustomWidgetCollection {
811
- constructor();
812
807
  static Instance: CustomWidgetCollection;
813
808
  widgetsValues: any;
814
809
  widgetsActivatedBy: any;
@@ -838,7 +833,6 @@ export declare class DefaultTitle extends React.Component<any, any> {
838
833
  componentDidMount(): void;
839
834
  }
840
835
  export declare class DefaultTitleModel {
841
- constructor();
842
836
  static getIconCss(cssClasses: any, isCollapsed: boolean): string;
843
837
  }
844
838
  export declare class Dependencies {
@@ -862,7 +856,6 @@ export declare class DragDropInfo {
862
856
  isEdge: boolean;
863
857
  }
864
858
  export declare class ElementFactory {
865
- constructor();
866
859
  static Instance: ElementFactory;
867
860
  creatorHash: any;
868
861
  registerElement(elementType: string, elementCreator: any): void;
@@ -872,7 +865,6 @@ export declare class ElementFactory {
872
865
  createElement(elementType: string, name: string): IElement;
873
866
  }
874
867
  export declare class Event<T, Options> {
875
- constructor();
876
868
  onCallbacksChanged: any;
877
869
  protected callbacks: any;
878
870
  get isEmpty(): boolean;
@@ -901,7 +893,6 @@ export declare class ExpressionRunnerBase {
901
893
  protected doOnComplete(res: any): void;
902
894
  }
903
895
  export declare class FunctionFactory {
904
- constructor();
905
896
  static Instance: FunctionFactory;
906
897
  functionHash: any;
907
898
  isAsyncHash: any;
@@ -914,7 +905,6 @@ export declare class FunctionFactory {
914
905
  run(name: string, params: any, properties?: any): any;
915
906
  }
916
907
  export declare class Helpers {
917
- constructor();
918
908
  /*
919
909
  * A static methods that returns true if a value undefined, null, empty string or empty array.
920
910
  */
@@ -946,7 +936,6 @@ export declare class JsonError {
946
936
  * The metadata object. It contains object properties' runtime information and allows you to modify it.
947
937
  */
948
938
  export declare class JsonMetadata {
949
- constructor();
950
939
  classes: any;
951
940
  alternativeNames: any;
952
941
  childrenClasses: any;
@@ -991,7 +980,6 @@ export declare class JsonMetadataClass {
991
980
  createProperty(propInfo: any): JsonObjectProperty;
992
981
  }
993
982
  export declare class JsonObject {
994
- constructor();
995
983
  static typePropertyName: string;
996
984
  static positionPropertyName: string;
997
985
  static metaDataValue: JsonMetadata;
@@ -1042,7 +1030,6 @@ export declare class MatrixDropdownCell {
1042
1030
  runCondition(values: any, properties: any): void;
1043
1031
  }
1044
1032
  export declare class Operand {
1045
- constructor();
1046
1033
  toString(func?: any): string;
1047
1034
  getType(): string;
1048
1035
  evaluate(processValue?: ProcessValue): any;
@@ -1055,13 +1042,11 @@ export declare class Operand {
1055
1042
  protected areOperatorsEquals(op1: Operand, op2: Operand): boolean;
1056
1043
  }
1057
1044
  export declare class OperandMaker {
1058
- constructor();
1059
1045
  static unaryFunctions: any;
1060
1046
  static binaryFunctions: any;
1061
1047
  static signs: any;
1062
1048
  }
1063
1049
  export declare class PopupUtils {
1064
- constructor();
1065
1050
  static calculatePosition(targetRect: any, height: number, width: number, verticalPosition: any, horizontalPosition: any, showPointer: boolean): INumberPosition;
1066
1051
  static updateVerticalDimensions(top: number, height: number, windowHeight: number): any;
1067
1052
  static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: any): any;
@@ -1099,7 +1084,6 @@ export declare class QuestionCustomWidget {
1099
1084
  get pdfRender(): any;
1100
1085
  }
1101
1086
  export declare class QuestionFactory {
1102
- constructor();
1103
1087
  static Instance: QuestionFactory;
1104
1088
  static get DefaultChoices(): any;
1105
1089
  static get DefaultColums(): any;
@@ -1153,7 +1137,6 @@ export declare class QuestionMatrixDropdownRenderedCell {
1153
1137
  calculateFinalClassName(matrixCssClasses: any): string;
1154
1138
  }
1155
1139
  export declare class ReactElementFactory {
1156
- constructor();
1157
1140
  static Instance: ReactElementFactory;
1158
1141
  creatorHash: any;
1159
1142
  registerElement(elementType: string, elementCreator: any): void;
@@ -1162,7 +1145,6 @@ export declare class ReactElementFactory {
1162
1145
  createElement(elementType: string, params: any): any;
1163
1146
  }
1164
1147
  export declare class ReactQuestionFactory {
1165
- constructor();
1166
1148
  static Instance: ReactQuestionFactory;
1167
1149
  creatorHash: any;
1168
1150
  registerQuestion(questionType: string, questionCreator: any): void;
@@ -1170,7 +1152,6 @@ export declare class ReactQuestionFactory {
1170
1152
  createQuestion(questionType: string, params: any): any;
1171
1153
  }
1172
1154
  export declare class RendererFactory {
1173
- constructor();
1174
1155
  static Instance: RendererFactory;
1175
1156
  renderersHash: any;
1176
1157
  unregisterRenderer(questionType: string, rendererAs: string): void;
@@ -1285,12 +1266,10 @@ export declare class SurveyProgressButtonsModel {
1285
1266
  clickListElement(index: number): void;
1286
1267
  }
1287
1268
  export declare class SurveyProgressModel {
1288
- constructor();
1289
1269
  static getProgressTextInBarCss(css: any): string;
1290
1270
  static getProgressTextUnderBarCss(css: any): string;
1291
1271
  }
1292
1272
  export declare class SurveyTimer {
1293
- constructor();
1294
1273
  static instanceValue: SurveyTimer;
1295
1274
  static get instance(): SurveyTimer;
1296
1275
  listenerCounter: number;
@@ -1316,6 +1295,17 @@ export declare class SvgIcon extends React.Component<any, any> {
1316
1295
  render(): any;
1317
1296
  componentDidMount(): void;
1318
1297
  }
1298
+ export declare class SvgIconData {
1299
+ }
1300
+ export declare class SvgIconRegistry {
1301
+ icons: SvgIconData;
1302
+ iconPrefix: string;
1303
+ registerIconFromSymbol(iconId: string, iconSymbolSvg: string): void;
1304
+ registerIconFromSvgViaElement(iconId: string, iconSvg: string, iconPrefix?: string): void;
1305
+ registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
1306
+ iconsRenderedHtml(): any;
1307
+ renderIcons(): void;
1308
+ }
1319
1309
  export declare class SyntaxError {
1320
1310
  constructor(message: string, expected: any, found: string, location: IFileRange);
1321
1311
  static buildMessage(expected: any, found: string): string;
@@ -1326,7 +1316,6 @@ export declare class SyntaxError {
1326
1316
  name: string;
1327
1317
  }
1328
1318
  export declare class TextPreProcessor {
1329
- constructor();
1330
1319
  _unObservableValues: any;
1331
1320
  onProcess: any;
1332
1321
  process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string;
@@ -1334,7 +1323,6 @@ export declare class TextPreProcessor {
1334
1323
  get hasAllValuesOnLastRun(): boolean;
1335
1324
  }
1336
1325
  export declare class TextPreProcessorItem {
1337
- constructor();
1338
1326
  start: number;
1339
1327
  end: number;
1340
1328
  }
@@ -1375,13 +1363,11 @@ export declare class ValidatorResult {
1375
1363
  error: SurveyError;
1376
1364
  }
1377
1365
  export declare class ValidatorRunner {
1378
- constructor();
1379
1366
  asyncValidators: any;
1380
1367
  onAsyncCompleted: any;
1381
1368
  run(owner: IValidatorOwner): Array<SurveyError>;
1382
1369
  }
1383
1370
  export declare class XmlParser {
1384
- constructor();
1385
1371
  parser: any;
1386
1372
  assignValue(target: any, name: string, value: any): void;
1387
1373
  xml2Json(xmlNode: any, result: any): void;
@@ -1656,7 +1642,7 @@ export declare class DragDropCore<T> extends Base {
1656
1642
  protected draggedElementShortcut: any;
1657
1643
  scrollIntervalId: number;
1658
1644
  protected allowDropHere: boolean;
1659
- startDrag(event: any, draggedElement: any, parentElement?: any, draggedElementNode?: any): void;
1645
+ startDrag(event: any, draggedElement: any, parentElement?: any, draggedElementNode?: any, preventSaveTargetNode?: boolean): void;
1660
1646
  timeoutID: any;
1661
1647
  startX: number;
1662
1648
  startY: number;
@@ -1692,7 +1678,6 @@ export declare class DragDropCore<T> extends Base {
1692
1678
  protected doClear(): void;
1693
1679
  }
1694
1680
  export declare class EventBase<T> extends Event<any, any> {
1695
- constructor();
1696
1681
  }
1697
1682
  export declare class ExceedSizeError extends SurveyError {
1698
1683
  constructor(maxSize: number, errorOwner?: ISurveyErrorOwner);
@@ -2551,6 +2536,8 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
2551
2536
  static get cssType(): string;
2552
2537
  static set cssType(val: string);
2553
2538
  protected survey: ReactSurveyModel;
2539
+ rootNodeId: string;
2540
+ rootNodeClassName: string;
2554
2541
  protected getStateElement(): Base;
2555
2542
  shouldComponentUpdate(nextProps: any, nextState: any): boolean;
2556
2543
  componentDidUpdate(prevProps: any, prevState: any): void;
@@ -3266,6 +3253,7 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3266
3253
  get titleAriaExpanded(): boolean;
3267
3254
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
3268
3255
  protected get surveyImpl(): ISurveyImpl;
3256
+ __setData(data: ISurveyData): void;
3269
3257
  get data(): ISurveyData;
3270
3258
  /*
3271
3259
  * Returns the survey object.
@@ -4087,6 +4075,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4087
4075
  get cssNavigationPrev(): string;
4088
4076
  get cssNavigationStart(): string;
4089
4077
  get cssNavigationNext(): string;
4078
+ get bodyCss(): string;
4090
4079
  get completedCss(): string;
4091
4080
  lazyRenderingValue: boolean;
4092
4081
  /*
@@ -4991,6 +4980,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4991
4980
  protected questionOnValueChanging(valueName: string, newValue: any): any;
4992
4981
  protected updateQuestionValue(valueName: string, newValue: any): void;
4993
4982
  protected notifyQuestionOnValueChanged(valueName: string, newValue: any): void;
4983
+ isRunningElementsBindings: boolean;
4994
4984
  isTriggerIsRunning: boolean;
4995
4985
  triggerValues: any;
4996
4986
  triggerKeys: any;
@@ -7987,6 +7977,7 @@ export declare class QuestionCustomModel extends QuestionCustomModelBase {
7987
7977
  onSurveyValueChanged(newValue: any): void;
7988
7978
  protected getValueCore(): any;
7989
7979
  protected initElement(el: SurveyElement): void;
7980
+ updateElementCss(reNew?: boolean): void;
7990
7981
  protected updateElementCssCore(cssClasses: any): void;
7991
7982
  protected getDisplayValueCore(keyAsText: boolean, value: any): any;
7992
7983
  }
@@ -9437,36 +9428,21 @@ export declare var surveyTimerFunctions: {
9437
9428
  };
9438
9429
  export declare var matrixDropdownColumnTypes: {
9439
9430
  dropdown: {
9440
- properties: any,
9441
9431
  onCellQuestionUpdate: any,
9442
9432
  },
9443
9433
  checkbox: {
9444
- properties: any,
9445
9434
  onCellQuestionUpdate: any,
9446
9435
  },
9447
9436
  radiogroup: {
9448
- properties: any,
9449
- onCellQuestionUpdate: any,
9450
- },
9451
- text: {
9452
- properties: any,
9453
- onCellQuestionUpdate: any,
9454
- },
9455
- comment: {
9456
- properties: any,
9457
9437
  onCellQuestionUpdate: any,
9458
9438
  },
9439
+ text: any,
9440
+ comment: any,
9459
9441
  boolean: {
9460
- properties: any,
9461
9442
  onCellQuestionUpdate: any,
9462
9443
  },
9463
- expression: {
9464
- properties: any,
9465
- onCellQuestionUpdate: any,
9466
- },
9467
- rating: {
9468
- properties: any,
9469
- },
9444
+ expression: any,
9445
+ rating: any,
9470
9446
  };
9471
9447
  export declare var _isMobile: boolean;
9472
9448
  export declare var vendor: any;
@@ -10341,6 +10317,7 @@ export declare var defaultV2Css: {
10341
10317
  itemDecorator: string,
10342
10318
  controlDisabled: string,
10343
10319
  controlLabel: string,
10320
+ controlEmpty: string,
10344
10321
  materialDecorator: string,
10345
10322
  },
10346
10323
  imagepicker: {
@@ -10896,4 +10873,5 @@ export declare var modernCss: {
10896
10873
  },
10897
10874
  },
10898
10875
  };
10876
+ export declare var SvgRegistry: SvgIconRegistry;
10899
10877
  export declare var SvgBundleViewModel: any;