survey-react-ui 1.9.2 → 1.9.3

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.9.2",
3
+ "version": "1.9.3",
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.9.2
1
+ /*Type definitions for Survey JavaScript library v1.9.3
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
  */
@@ -389,6 +389,9 @@ export declare class SurveyQuestionMatrixRow extends ReactSurveyElement {
389
389
  export declare class SurveyQuestionHtml extends SurveyQuestionElementBase {
390
390
  constructor(props: any);
391
391
  protected get question(): QuestionHtmlModel;
392
+ componentDidMount(): void;
393
+ componentWillUnmount(): void;
394
+ componentDidUpdate(prevProps: any, prevState: any): void;
392
395
  protected canRender(): boolean;
393
396
  protected renderElement(): JSX.Element;
394
397
  }
@@ -521,6 +524,7 @@ export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBas
521
524
  protected renderRange(): JSX.Element;
522
525
  protected renderAddRowButton(): JSX.Element;
523
526
  protected renderNavigatorV2(): JSX.Element;
527
+ protected renderPlaceholder(): JSX.Element;
524
528
  }
525
529
  export declare class SurveyQuestionPanelDynamicItem extends SurveyPanel {
526
530
  constructor(props: any);
@@ -933,6 +937,8 @@ export declare class QuestionCheckboxModel extends QuestionCheckboxBase {
933
937
  protected onAfterRunItemsEnableCondition(): void;
934
938
  protected getItemClassCore(item: any, options: any): string;
935
939
  updateValueFromSurvey(newValue: any): void;
940
+ protected setDefaultValue(): void;
941
+ protected hasValueToClearIncorrectValues(): boolean;
936
942
  protected setNewValue(newValue: any): void;
937
943
  protected getIsMultipleValue(): boolean;
938
944
  protected getCommentFromValue(newValue: any): string;
@@ -1477,6 +1483,7 @@ export declare class QuestionSelectBase extends Question {
1477
1483
  onSurveyValueChanged(newValue: any): void;
1478
1484
  protected onVisibleChoicesChanged(): void;
1479
1485
  clearIncorrectValues(): void;
1486
+ protected hasValueToClearIncorrectValues(): boolean;
1480
1487
  clearValueIfInvisible(): void;
1481
1488
  /**
1482
1489
  * Returns true if item is selected
@@ -1608,15 +1615,16 @@ export declare class LocalizableStrings implements ILocalizableString {
1608
1615
  setJson(value: any): void;
1609
1616
  }
1610
1617
 
1611
- export interface IPropertyDecoratorOptions {
1612
- defaultValue?: any;
1618
+ export interface IPropertyDecoratorOptions<T = any> {
1619
+ defaultValue?: T;
1613
1620
  defaultSource?: string;
1621
+ getDefaultValue?: (objectInstance?: any) => T;
1614
1622
  localizable?: {
1615
1623
  name?: string;
1616
1624
  onGetTextCallback?: (str: string) => string;
1617
1625
  defaultStr?: string;
1618
1626
  } | boolean;
1619
- onSet?: (val: any, target: any) => void;
1627
+ onSet?: (val: T, objectInstance: any) => void;
1620
1628
  }
1621
1629
  export declare function property(options?: IPropertyDecoratorOptions): (target: any, key: string) => void;
1622
1630
  export interface IArrayPropertyDecoratorOptions {
@@ -2520,6 +2528,11 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
2520
2528
  get commentText(): string;
2521
2529
  set commentText(val: string);
2522
2530
  get locCommentText(): LocalizableString;
2531
+ /**
2532
+ * Use this property to set the place holder text for comment field .
2533
+ */
2534
+ commentPlaceHolder: string;
2535
+ get commentOrOtherPlaceHolder(): string;
2523
2536
  /**
2524
2537
  * Returns a copy of question errors survey. For some questions like matrix and panel dynamic it includes the errors of nested questions.
2525
2538
  */