survey-react-ui 1.8.79 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-react-ui",
3
- "version": "1.8.79",
3
+ "version": "1.9.0",
4
4
  "description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -1,4 +1,4 @@
1
- /*Type definitions for Survey JavaScript library v1.8.79
1
+ /*Type definitions for Survey JavaScript library v1.9.0
2
2
  Copyright (c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
3
3
  Definitions by: Devsoft Baltic OÜ <https://github.com/surveyjs/>
4
4
  */
@@ -1108,7 +1108,7 @@ export declare class Base {
1108
1108
  * @param val new property value
1109
1109
  */
1110
1110
  setPropertyValue(name: string, val: any): void;
1111
- protected setArrayPropertyDirectly(name: string, val: any): void;
1111
+ protected setArrayPropertyDirectly(name: string, val: any, sendNotification?: boolean): void;
1112
1112
  protected setPropertyValueDirectly(name: string, val: any): void;
1113
1113
  protected clearPropertyValue(name: string): void;
1114
1114
  onPropertyValueChangedCallback(name: string, oldValue: any, newValue: any, sender: Base, arrayChanges: ArrayChanges): void;
@@ -1143,7 +1143,7 @@ export declare class Base {
1143
1143
  */
1144
1144
  unRegisterFunctionOnPropertiesValueChanged(names: Array<string>, key?: string): void;
1145
1145
  createCustomLocalizableObj(name: string): void;
1146
- protected createLocalizableString(name: string, owner: ILocalizableOwner, useMarkDown?: boolean, hasDefaultValue?: boolean): LocalizableString;
1146
+ protected createLocalizableString(name: string, owner: ILocalizableOwner, useMarkDown?: boolean, defaultStr?: boolean | string): LocalizableString;
1147
1147
  getLocalizableString(name: string): LocalizableString;
1148
1148
  getLocalizableStringText(name: string, defaultStr?: string): string;
1149
1149
  setLocalizableStringText(name: string, value: string): void;
@@ -1407,9 +1407,7 @@ export declare class QuestionSelectBase extends Question {
1407
1407
  /**
1408
1408
  * Use this property to set the place holder text for other or comment field .
1409
1409
  */
1410
- get otherPlaceHolder(): string;
1411
- set otherPlaceHolder(val: string);
1412
- get locOtherPlaceHolder(): LocalizableString;
1410
+ otherPlaceHolder: string;
1413
1411
  /**
1414
1412
  * The text that shows when the other item is choosed by the other input is empty.
1415
1413
  */
@@ -1869,6 +1867,7 @@ export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
1869
1867
  requiredText: string;
1870
1868
  beforeSettingQuestionErrors(question: IQuestion, errors: Array<SurveyError>): void;
1871
1869
  beforeSettingPanelErrors(question: IPanel, errors: Array<SurveyError>): void;
1870
+ getSurveyErrorCustomText(obj: Base, text: string, error: SurveyError): string;
1872
1871
  getElementTitleTagName(element: Base, tagName: string): string;
1873
1872
  questionTitlePattern: string;
1874
1873
  getUpdatedQuestionTitle(question: IQuestion, title: string): string;
@@ -3374,6 +3373,10 @@ export declare class PopupUtils {
3374
3373
  height: number;
3375
3374
  top: number;
3376
3375
  };
3376
+ static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition): {
3377
+ width: number;
3378
+ left: number;
3379
+ };
3377
3380
  static updateVerticalPosition(targetRect: ClientRect, height: number, verticalPosition: VerticalPosition, showPointer: boolean, windowHeight: number): VerticalPosition;
3378
3381
  static calculatePopupDirection(verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): string;
3379
3382
  static calculatePointerTarget(targetRect: ClientRect, top: number, left: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): INumberPosition;