survey-react-ui 1.9.139 → 1.10.2

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.
@@ -69,6 +69,7 @@ export { SurveyQuestionPanelDynamicPrevButton } from "../react/components/paneld
69
69
  export { SurveyQuestionPanelDynamicNextButton } from "../react/components/paneldynamic-actions/paneldynamic-next-btn";
70
70
  export { SurveyQuestionPanelDynamicProgressText } from "../react/components/paneldynamic-actions/paneldynamic-progress-text";
71
71
  export { SurveyNavigationButton } from "../react/components/survey-actions/survey-nav-button";
72
+ export { QuestionErrorComponent } from "../react/components/question-error";
72
73
  export { MatrixRow } from "../react/components/matrix/row";
73
74
  export { Skeleton } from "../react/components/skeleton";
74
75
  export { NotifierComponent } from "../react/components/notifier";
@@ -6,11 +6,15 @@ interface IMatrixRowProps {
6
6
  parentMatrix: QuestionMatrixDropdownModelBase;
7
7
  }
8
8
  export declare class MatrixRow extends SurveyElementBase<IMatrixRowProps, any> {
9
+ private root;
9
10
  constructor(props: IMatrixRowProps);
10
11
  get model(): QuestionMatrixDropdownRenderedRow;
11
12
  get parentMatrix(): QuestionMatrixDropdownModelBase;
12
13
  protected getStateElement(): QuestionMatrixDropdownRenderedRow;
13
14
  protected onPointerDownHandler: (event: any) => void;
15
+ componentDidMount(): void;
16
+ componentWillUnmount(): void;
17
+ shouldComponentUpdate(nextProps: any, nextState: any): boolean;
14
18
  render(): JSX.Element | null;
15
19
  }
16
20
  export {};
@@ -20,7 +20,6 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
20
20
  render(): JSX.Element;
21
21
  }
22
22
  export declare class PopupContainer extends SurveyElementBase<any, any> {
23
- prevIsVisible: boolean;
24
23
  constructor(props: any);
25
24
  handleKeydown: (event: any) => void;
26
25
  get model(): PopupBaseViewModel;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { SurveyError } from "survey-core";
3
+ export interface IQuestionErrorComponentProps {
4
+ error: SurveyError;
5
+ cssClasses: any;
6
+ element: any;
7
+ }
8
+ export declare class QuestionErrorComponent extends React.Component<IQuestionErrorComponentProps, any> {
9
+ render(): JSX.Element | null;
10
+ }
@@ -34,7 +34,7 @@ export declare class Survey extends SurveyElementBase<any, any> implements ISurv
34
34
  protected updateSurvey(newProps: any, oldProps?: any): void;
35
35
  protected setSurveyEvents(): void;
36
36
  createQuestionElement(question: Question): JSX.Element | null;
37
- renderError(key: string, error: SurveyError, cssClasses: any): JSX.Element;
37
+ renderError(key: string, error: SurveyError, cssClasses: any, element?: any): JSX.Element;
38
38
  questionTitleLocation(): string;
39
39
  questionErrorLocation(): string;
40
40
  }
@@ -3,7 +3,7 @@ import { Base, SurveyElement, SurveyError, Question, QuestionMatrixDropdownRende
3
3
  import { SurveyElementBase, ReactSurveyElement } from "./reactquestion_element";
4
4
  export interface ISurveyCreator {
5
5
  createQuestionElement(question: Question): JSX.Element | null;
6
- renderError(key: string, error: SurveyError, cssClasses: any): JSX.Element;
6
+ renderError(key: string, error: SurveyError, cssClasses: any, element?: any): JSX.Element;
7
7
  questionTitleLocation(): string;
8
8
  questionErrorLocation(): string;
9
9
  }
@@ -5,7 +5,7 @@ export declare class SurveyQuestionRanking extends SurveyQuestionElementBase {
5
5
  protected get question(): QuestionRankingModel;
6
6
  protected renderElement(): JSX.Element;
7
7
  protected getItems(choices?: any, unrankedItem?: boolean): Array<any>;
8
- protected renderItem(item: ItemValue, i: number, handleKeydown: (event: any) => void, handlePointerDown: (event: PointerEvent) => void, cssClasses: any, itemClass: string, question: QuestionRankingModel, unrankedItem?: boolean): JSX.Element;
8
+ protected renderItem(item: ItemValue, i: number, handleKeydown: (event: any) => void, handlePointerDown: (event: PointerEvent) => void, handlePointerUp: (event: PointerEvent) => void, cssClasses: any, itemClass: string, question: QuestionRankingModel, unrankedItem?: boolean): JSX.Element;
9
9
  }
10
10
  export declare class SurveyQuestionRankingItem extends ReactSurveyElement {
11
11
  protected get text(): string;
@@ -13,6 +13,7 @@ export declare class SurveyQuestionRankingItem extends ReactSurveyElement {
13
13
  protected get indexText(): string;
14
14
  protected get handleKeydown(): (event: any) => void;
15
15
  protected get handlePointerDown(): (event: any) => void;
16
+ protected get handlePointerUp(): (event: any) => void;
16
17
  protected get cssClasses(): any;
17
18
  protected get itemClass(): string;
18
19
  protected get itemTabIndex(): number;