survey-react-ui 1.9.92 → 1.9.94

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.
@@ -3,6 +3,6 @@ import { SurveyActionBarItem } from "./action-bar-item";
3
3
  export declare class SurveyActionBarItemDropdown extends SurveyActionBarItem {
4
4
  private viewModel;
5
5
  constructor(props: any);
6
- renderButtonContent(): JSX.Element;
6
+ renderInnerButton(): JSX.Element;
7
7
  componentWillUnmount(): void;
8
8
  }
@@ -3,6 +3,7 @@ import { Base, PopupModel, PopupBaseViewModel, IDialogOptions } from "survey-cor
3
3
  import { SurveyElementBase } from "../../reactquestion_element";
4
4
  interface IPopupProps {
5
5
  model: PopupModel;
6
+ getTarget?: (container: HTMLElement) => HTMLElement;
6
7
  }
7
8
  export declare class Popup extends SurveyElementBase<IPopupProps, any> {
8
9
  private popup;
@@ -14,7 +15,6 @@ export declare class Popup extends SurveyElementBase<IPopupProps, any> {
14
15
  private setTargetElement;
15
16
  componentDidMount(): void;
16
17
  componentDidUpdate(prevProps: any, prevState: any): void;
17
- componentWillUnmount(): void;
18
18
  shouldComponentUpdate(nextProps: IPopupProps, nextState: any): boolean;
19
19
  render(): JSX.Element;
20
20
  }
@@ -37,5 +37,5 @@ export declare class PopupDropdownContainer extends PopupContainer {
37
37
  protected renderHeaderPopup(popupModel: PopupBaseViewModel): JSX.Element | null;
38
38
  }
39
39
  export declare function showModal(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): PopupBaseViewModel;
40
- export declare function showDialog(dialogOptions: IDialogOptions): PopupBaseViewModel;
40
+ export declare function showDialog(dialogOptions: IDialogOptions, container?: HTMLElement): PopupBaseViewModel;
41
41
  export {};
@@ -1,11 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { QuestionRatingModel, RenderedRatingItem } from "survey-core";
3
- import { SurveyElementBase } from "../../reactquestion_element";
4
- import { IRatingItemProps } from "./rating-item";
5
- export declare class RatingItemSmiley extends SurveyElementBase<IRatingItemProps, any> {
6
- get question(): QuestionRatingModel;
7
- get item(): RenderedRatingItem;
8
- get index(): any;
9
- getStateElement(): RenderedRatingItem;
2
+ import { RatingItemBase } from "./rating-item";
3
+ export declare class RatingItemSmiley extends RatingItemBase {
10
4
  render(): JSX.Element | null;
11
5
  }
@@ -1,11 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { QuestionRatingModel, RenderedRatingItem } from "survey-core";
3
- import { SurveyElementBase } from "../../reactquestion_element";
4
- import { IRatingItemProps } from "./rating-item";
5
- export declare class RatingItemStar extends SurveyElementBase<IRatingItemProps, any> {
6
- get question(): QuestionRatingModel;
7
- get item(): RenderedRatingItem;
8
- get index(): any;
9
- getStateElement(): RenderedRatingItem;
2
+ import { RatingItemBase } from "./rating-item";
3
+ export declare class RatingItemStar extends RatingItemBase {
10
4
  render(): JSX.Element | null;
11
5
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { QuestionRatingModel, RenderedRatingItem } from "survey-core";
2
+ import { Base, QuestionRatingModel, RenderedRatingItem } from "survey-core";
3
3
  import { SurveyElementBase } from "../../reactquestion_element";
4
4
  export interface IRatingItemProps {
5
5
  question: QuestionRatingModel;
@@ -8,11 +8,15 @@ export interface IRatingItemProps {
8
8
  handleOnClick: any;
9
9
  isDisplayMode: boolean;
10
10
  }
11
- export declare class RatingItem extends SurveyElementBase<IRatingItemProps, any> {
11
+ export declare class RatingItemBase extends SurveyElementBase<IRatingItemProps, any> {
12
+ constructor(props: any);
12
13
  get question(): QuestionRatingModel;
13
14
  get item(): RenderedRatingItem;
14
15
  get index(): any;
15
- getStateElement(): RenderedRatingItem;
16
+ getStateElement(): Base;
17
+ handleOnMouseDown(event: any): void;
18
+ }
19
+ export declare class RatingItem extends RatingItemBase {
16
20
  render(): JSX.Element | null;
17
21
  componentDidMount(): void;
18
22
  }
@@ -13,6 +13,7 @@ export declare class SurveyQuestionMatrixRow extends ReactSurveyElement {
13
13
  private get question();
14
14
  private get row();
15
15
  handleOnChange(event: any): void;
16
+ handleOnMouseDown(event: any): void;
16
17
  protected wrapCell(cell: any, element: JSX.Element, reason: string): JSX.Element;
17
18
  protected canRender(): boolean;
18
19
  protected renderElement(): JSX.Element;
@@ -26,6 +26,7 @@ export declare class SurveyQuestionRadioItem extends ReactSurveyElement {
26
26
  private get hideCaption();
27
27
  shouldComponentUpdate(nextProps: any, nextState: any): boolean;
28
28
  handleOnChange(event: any): void;
29
+ handleOnMouseDown(event: any): void;
29
30
  protected canRender(): boolean;
30
31
  protected renderElement(): JSX.Element;
31
32
  }
@@ -4,8 +4,8 @@ import { QuestionRankingModel, ItemValue } from "survey-core";
4
4
  export declare class SurveyQuestionRanking extends SurveyQuestionElementBase {
5
5
  protected get question(): QuestionRankingModel;
6
6
  protected renderElement(): JSX.Element;
7
- protected getItems(): Array<any>;
8
- protected renderItem(item: ItemValue, i: number, handleKeydown: (event: any) => void, handlePointerDown: (event: PointerEvent) => void, cssClasses: any, itemClass: string, question: QuestionRankingModel): JSX.Element;
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;
9
9
  }
10
10
  export declare class SurveyQuestionRankingItem extends ReactSurveyElement {
11
11
  protected get text(): string;
@@ -17,5 +17,7 @@ export declare class SurveyQuestionRankingItem extends ReactSurveyElement {
17
17
  protected get itemClass(): string;
18
18
  protected get itemTabIndex(): number;
19
19
  protected get question(): any;
20
+ protected get unrankedItem(): any;
21
+ protected get item(): any;
20
22
  protected renderElement(): JSX.Element;
21
23
  }