survey-react-ui 1.9.0 → 1.9.1

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.0",
3
+ "version": "1.9.1",
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",
@@ -26,7 +26,7 @@
26
26
  "typings": "survey-react-ui.d.ts",
27
27
  "dependencies": {
28
28
  "survey-core": "*",
29
- "react": "^17.0.1",
30
- "react-dom": "^17.0.1"
29
+ "react": "^16.5.0 || ^17.0.1",
30
+ "react-dom": "^16.5.0 || ^17.0.1"
31
31
  }
32
32
  }
@@ -1,4 +1,4 @@
1
- /*Type definitions for Survey JavaScript library v1.9.0
1
+ /*Type definitions for Survey JavaScript library v1.9.1
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
  */
@@ -514,8 +514,8 @@ export declare class SurveyQuestionPanelDynamic extends SurveyQuestionElementBas
514
514
  handleOnRangeChange(event: any): void;
515
515
  protected renderElement(): JSX.Element;
516
516
  protected renderNavigator(): JSX.Element;
517
- protected rendrerPrevButton(viewBox?: string, icon?: JSX.Element): JSX.Element;
518
- protected rendrerNextButton(viewBox?: string, icon?: JSX.Element): JSX.Element;
517
+ protected rendrerPrevButton(): JSX.Element;
518
+ protected rendrerNextButton(): JSX.Element;
519
519
  protected renderRange(): JSX.Element;
520
520
  protected renderAddRowButton(): JSX.Element;
521
521
  protected renderNavigatorV2(): JSX.Element;
@@ -838,7 +838,7 @@ declare function isElementVisible(element: HTMLElement, threshold?: number): boo
838
838
  declare function findScrollableParent(element: HTMLElement): HTMLElement;
839
839
  declare function scrollElementByChildId(id: string): void;
840
840
  declare function getIconNameFromProxy(iconName: string): string;
841
- declare function createSvg(size: number, width: number, height: number, iconName: string, svgElem: any): void;
841
+ declare function createSvg(size: number | string, width: number, height: number, iconName: string, svgElem: any): void;
842
842
  export declare function unwrap<T>(value: T | (() => T)): T;
843
843
  export declare function getSize(value: any): any;
844
844
  declare function doKey2ClickUp(evt: KeyboardEvent, options?: {
@@ -2201,6 +2201,7 @@ export interface IAction {
2201
2201
  * Set this property to true to activate the toolbar item (page)
2202
2202
  */
2203
2203
  active?: boolean;
2204
+ pressed?: boolean;
2204
2205
  /**
2205
2206
  * Toolbar item template name
2206
2207
  */
@@ -2264,6 +2265,7 @@ export declare class Action extends Base implements IAction {
2264
2265
  popupModel: any;
2265
2266
  needSeparator: boolean;
2266
2267
  active: boolean;
2268
+ pressed: boolean;
2267
2269
  template: string;
2268
2270
  component: string;
2269
2271
  items: any;
@@ -2344,8 +2346,6 @@ export declare class Question extends SurveyElement implements IQuestion, ICondi
2344
2346
  */
2345
2347
  onReadyChanged: EventBase<Question>;
2346
2348
  isReadOnlyRenderDiv(): boolean;
2347
- get isErrorsModeTooltip(): boolean;
2348
- get hasParent(): boolean;
2349
2349
  constructor(name: string);
2350
2350
  protected createLocTitleProperty(): LocalizableString;
2351
2351
  getSurvey(live?: boolean): ISurvey;
@@ -3027,6 +3027,7 @@ export interface IMatrixDropdownData {
3027
3027
  getRenderer(name: string): string;
3028
3028
  getRendererContext(locStr: LocalizableString): any;
3029
3029
  getProcessedText(text: string): string;
3030
+ getParentTextProcessor(): ITextProcessor;
3030
3031
  getSharedQuestionByName(columnName: string, row: MatrixDropdownRowModelBase): Question;
3031
3032
  onTotalValueChanged(): any;
3032
3033
  getSurvey(): ISurvey;
@@ -3343,6 +3344,7 @@ export declare class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseM
3343
3344
  createRowDetailPanel(row: MatrixDropdownRowModelBase): PanelModel;
3344
3345
  getSharedQuestionByName(columnName: string, row: MatrixDropdownRowModelBase): Question;
3345
3346
  onTotalValueChanged(): any;
3347
+ getParentTextProcessor(): ITextProcessor;
3346
3348
  getQuestionFromArray(name: string, index: number): IQuestion;
3347
3349
  getCellTemplateData(cell: QuestionMatrixDropdownRenderedCell): any;
3348
3350
  getCellWrapperComponentName(cell: MatrixDropdownCell): string;
@@ -3600,6 +3602,10 @@ export declare class SurveyElement extends SurveyElementCore implements ISurveyE
3600
3602
  protected moveToBase(parent: IPanel, container: IPanel, insertBefore?: any): boolean;
3601
3603
  protected setPage(parent: IPanel, newPage: IPage): void;
3602
3604
  protected getSearchableLocKeys(keys: Array<string>): void;
3605
+ protected get isDefaultV2Theme(): boolean;
3606
+ get isErrorsModeTooltip(): boolean;
3607
+ get hasParent(): boolean;
3608
+ protected get hasFrameV2(): boolean;
3603
3609
  }
3604
3610
 
3605
3611
  export declare class ValidatorResult {
@@ -3770,6 +3776,7 @@ export declare class QuestionTextProcessor implements ITextProcessor {
3770
3776
  protected get panel(): PanelModel;
3771
3777
  protected getValues(): any;
3772
3778
  protected getQuestionByName(name: string): Question;
3779
+ protected getParentTextProcessor(): ITextProcessor;
3773
3780
  protected onCustomProcessText(textValue: TextPreProcessorValue): boolean;
3774
3781
  processText(text: string, returnDisplayValue: boolean): string;
3775
3782
  processTextEx(text: string, returnDisplayValue: boolean): any;
@@ -3923,6 +3930,7 @@ export declare class PanelModelBase extends SurveyElement implements IPanel, ICo
3923
3930
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
3924
3931
  endLoadingFromJson(): void;
3925
3932
  get hasTitle(): boolean;
3933
+ get hasDescription(): boolean;
3926
3934
  protected canShowTitle(): boolean;
3927
3935
  get _showDescription(): boolean;
3928
3936
  localeChanged(): void;
@@ -4332,6 +4340,7 @@ export declare class PanelModel extends PanelModelBase implements IElement {
4332
4340
  protected onVisibleChanged(): void;
4333
4341
  needResponsiveWidth(): boolean;
4334
4342
  focusIn: () => void;
4343
+ getContainerCss(): string;
4335
4344
  }
4336
4345
 
4337
4346
  export interface IMatrixColumnOwner extends ILocalizableOwner {