survey-react 1.9.120 → 1.9.122

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/survey.react.d.ts CHANGED
@@ -1022,18 +1022,6 @@ declare module "conditions" {
1022
1022
  protected doOnComplete(res: any): void;
1023
1023
  }
1024
1024
  }
1025
- declare module "rendererFactory" {
1026
- import { Question } from "question";
1027
- export class RendererFactory {
1028
- static Instance: RendererFactory;
1029
- private renderersHash;
1030
- unregisterRenderer(questionType: string, rendererAs: string): void;
1031
- registerRenderer(questionType: string, renderAs: string, renderer: any): void;
1032
- getRenderer(questionType: string, renderAs: string): any;
1033
- getRendererByQuestion(question: Question): any;
1034
- clear(): void;
1035
- }
1036
- }
1037
1025
  declare module "utils/cssClassBuilder" {
1038
1026
  export class CssClassBuilder {
1039
1027
  private classes;
@@ -1204,7 +1192,7 @@ declare module "actions/container" {
1204
1192
  addAction(val: IAction, sortByVisibleIndex?: boolean): T;
1205
1193
  private sortItems;
1206
1194
  setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
1207
- initResponsivityManager(container: HTMLDivElement): void;
1195
+ initResponsivityManager(container: HTMLDivElement, delayedUpdateFunction?: (callback: () => void) => void): void;
1208
1196
  resetResponsivityManager(): void;
1209
1197
  getActionById(id: string): T;
1210
1198
  dispose(): void;
@@ -1614,6 +1602,7 @@ declare module "utils/responsivity-manager" {
1614
1602
  private model;
1615
1603
  private itemsSelector;
1616
1604
  private dotsItemSize;
1605
+ private delayedUpdateFunction?;
1617
1606
  private resizeObserver;
1618
1607
  private isInitialized;
1619
1608
  protected minDimensionConst: number;
@@ -1623,11 +1612,12 @@ declare module "utils/responsivity-manager" {
1623
1612
  private dotsSizeConst;
1624
1613
  protected recalcMinDimensionConst: boolean;
1625
1614
  getComputedStyle: (elt: Element) => CSSStyleDeclaration;
1626
- constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number);
1615
+ constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number, delayedUpdateFunction?: (callback: () => void) => void);
1627
1616
  protected getDimensions(element: HTMLElement): IDimensions;
1628
1617
  protected getAvailableSpace(): number;
1629
1618
  protected calcItemSize(item: HTMLDivElement): number;
1630
1619
  private calcMinDimension;
1620
+ private getRenderedVisibleActionsCount;
1631
1621
  private calcItemsSizes;
1632
1622
  protected calcActionDimensions(currentAction: Action, item: HTMLDivElement): void;
1633
1623
  private get isContainerVisible();
@@ -1635,7 +1625,7 @@ declare module "utils/responsivity-manager" {
1635
1625
  dispose(): void;
1636
1626
  }
1637
1627
  export class VerticalResponsivityManager extends ResponsivityManager {
1638
- constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number, minDimension?: number);
1628
+ constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number, minDimension?: number, delayedUpdateFunction?: (callback: () => void) => void);
1639
1629
  protected getDimensions(): IDimensions;
1640
1630
  protected getAvailableSpace(): number;
1641
1631
  protected calcItemSize(item: HTMLDivElement): number;
@@ -1664,7 +1654,7 @@ declare module "actions/adaptive-container" {
1664
1654
  protected getRenderedActions(): Array<T>;
1665
1655
  protected raiseUpdate(isResetInitialized: boolean): void;
1666
1656
  fit(dimension: number, dotsItemSize: number): void;
1667
- initResponsivityManager(container: HTMLDivElement): void;
1657
+ initResponsivityManager(container: HTMLDivElement, delayedUpdateFunction?: (callback: () => void) => void): void;
1668
1658
  resetResponsivityManager(): void;
1669
1659
  setActionsMode(mode: actionModeType): void;
1670
1660
  dispose(): void;
@@ -2199,6 +2189,9 @@ declare module "defaultCss/defaultV2Css" {
2199
2189
  rootDropdown: string;
2200
2190
  root: string;
2201
2191
  rootWrappable: string;
2192
+ rootLabelsTop: string;
2193
+ rootLabelsBottom: string;
2194
+ rootLabelsDiagonal: string;
2202
2195
  item: string;
2203
2196
  itemOnError: string;
2204
2197
  itemHover: string;
@@ -2920,6 +2913,9 @@ declare module "question_custom" {
2920
2913
  constructor(name: string, customQuestion: ComponentQuestionJSON);
2921
2914
  getType(): string;
2922
2915
  locStrsChanged(): void;
2916
+ localeChanged(): void;
2917
+ addUsedLocales(locales: Array<string>): void;
2918
+ needResponsiveWidth(): boolean;
2923
2919
  protected createWrapper(): void;
2924
2920
  protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
2925
2921
  itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
@@ -3490,7 +3486,7 @@ declare module "panel" {
3490
3486
  set visible(value: boolean);
3491
3487
  onHidingContent(): void;
3492
3488
  protected onVisibleChanged(): void;
3493
- protected notifyStateChanged(): void;
3489
+ protected notifyStateChanged(prevState: string): void;
3494
3490
  /**
3495
3491
  * Returns `true` if the panel/page is visible or the survey is currently in design mode.
3496
3492
  *
@@ -3671,7 +3667,7 @@ declare module "panel" {
3671
3667
  */
3672
3668
  get no(): string;
3673
3669
  protected setNo(visibleIndex: number): void;
3674
- protected notifyStateChanged(): void;
3670
+ protected notifyStateChanged(prevState: string): void;
3675
3671
  protected createLocTitleProperty(): LocalizableString;
3676
3672
  protected beforeSetVisibleIndex(index: number): number;
3677
3673
  protected getPanelStartIndex(index: number): number;
@@ -3757,6 +3753,9 @@ declare module "question_file" {
3757
3753
  import { Camera } from "utils/camera";
3758
3754
  import { LocalizableString } from "localizablestring";
3759
3755
  export function dataUrl2File(dataUrl: string, fileName: string, type: string): File;
3756
+ /**
3757
+ * A base class for question types that support file upload: `QuestionFileModel` and `QuestionSignaturePadModel`.
3758
+ */
3760
3759
  export class QuestionFileModelBase extends Question {
3761
3760
  isUploading: boolean;
3762
3761
  currentState: string;
@@ -4657,7 +4656,6 @@ declare module "question_baseselect" {
4657
4656
  */
4658
4657
  get colCount(): number;
4659
4658
  set colCount(value: number);
4660
- clickItemHandler(item: ItemValue, checked: boolean): void;
4661
4659
  protected onParentChanged(): void;
4662
4660
  protected onParentQuestionChanged(): void;
4663
4661
  protected getSearchableItemValueKeys(keys: Array<string>): void;
@@ -6352,13 +6350,13 @@ declare module "question_paneldynamic" {
6352
6350
  */
6353
6351
  addPanelUI(): PanelModel;
6354
6352
  /**
6355
- * Add a new dynamic panel based on the template Panel.
6356
- * @see template
6353
+ * Adds a new panel based on the [template](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#template).
6354
+ * @param index *(Optional)* An index at which to insert the new panel. `undefined` adds the panel to the end or inserts it after the current panel if [`renderMode`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#renderMode) is `"tab"`. A negative index (for instance, -1) adds the panel to the end in all cases, regardless of the `renderMode` value.
6357
6355
  * @see panelCount
6358
6356
  * @see panels
6359
- * @see renderMode
6360
6357
  */
6361
- addPanel(): PanelModel;
6358
+ addPanel(index?: number): PanelModel;
6359
+ private updateValueOnAddingPanel;
6362
6360
  private canLeaveCurrentPanel;
6363
6361
  private copyValue;
6364
6362
  /**
@@ -7455,15 +7453,17 @@ declare module "survey-events-api" {
7455
7453
  */
7456
7454
  panel: PanelModel;
7457
7455
  }
7458
- export interface DynamicPanelGetTabTitleEvent extends PanelDynamicQuestionEventMixin {
7456
+ export interface DynamicPanelCurrentIndexChangedEvent extends PanelDynamicQuestionEventMixin {
7459
7457
  /**
7460
- * A panel whose tab title is being rendered.
7458
+ * A panel for which the event is raised.
7461
7459
  */
7462
7460
  panel: PanelModel;
7463
7461
  /**
7464
7462
  * The panel's index in the [`visiblePanels`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#visiblePanels) array of the Dynamic Panel.
7465
7463
  */
7466
7464
  visiblePanelIndex: number;
7465
+ }
7466
+ export interface DynamicPanelGetTabTitleEvent extends DynamicPanelCurrentIndexChangedEvent {
7467
7467
  /**
7468
7468
  * A tab title. You can change this parameter's value.
7469
7469
  */
@@ -8342,15 +8342,16 @@ declare module "question_multipletext" {
8342
8342
  * }
8343
8343
  * ```
8344
8344
  *
8345
- * To enable Markdown support for the `title` property, implement Markdown-to-HTML conversion in the [onTextMarkdown](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
8345
+ * To enable Markdown support for the `title` property, implement Markdown-to-HTML conversion in the [`onTextMarkdown`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
8346
+ * @see itemTitleWidth
8346
8347
  * @see addItem
8347
8348
  */
8348
8349
  get items(): Array<MultipleTextItemModel>;
8349
8350
  set items(val: Array<MultipleTextItemModel>);
8350
8351
  /**
8351
8352
  * Adds a new input item.
8352
- * @param name An item name
8353
- * @param title (Optional) An item title
8353
+ * @param name An item name.
8354
+ * @param title *(Optional)* An item title.
8354
8355
  * @see items
8355
8356
  */
8356
8357
  addItem(name: string, title?: string): MultipleTextItemModel;
@@ -8389,6 +8390,15 @@ declare module "question_multipletext" {
8389
8390
  */
8390
8391
  get itemSize(): number;
8391
8392
  set itemSize(val: number);
8393
+ /**
8394
+ * Specifies a uniform width for all text box titles. Accepts CSS values.
8395
+ *
8396
+ * Default value: `""` (the width of each title depends on the title length)
8397
+ * @see items
8398
+ * @see itemErrorLocation
8399
+ */
8400
+ get itemTitleWidth(): string;
8401
+ set itemTitleWidth(val: string);
8392
8402
  rows: Array<MutlipleTextRow>;
8393
8403
  protected onRowCreated(row: MutlipleTextRow): MutlipleTextRow;
8394
8404
  private calcVisibleRows;
@@ -8527,6 +8537,7 @@ declare module "header" {
8527
8537
  protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
8528
8538
  calculateActualHeight(logoHeight: number, titleHeight: number, descriptionHeight: number): number;
8529
8539
  processResponsiveness(width: number): void;
8540
+ get hasBackground(): boolean;
8530
8541
  }
8531
8542
  }
8532
8543
  declare module "surveyTaskManager" {
@@ -8567,7 +8578,7 @@ declare module "survey" {
8567
8578
  import { ActionContainer } from "actions/container";
8568
8579
  import { QuestionPanelDynamicModel } from "question_paneldynamic";
8569
8580
  import { Notifier } from "notifier";
8570
- import { TriggerExecutedEvent, CompletingEvent, CompleteEvent, ShowingPreviewEvent, NavigateToUrlEvent, CurrentPageChangingEvent, CurrentPageChangedEvent, ValueChangingEvent, ValueChangedEvent, VariableChangedEvent, QuestionVisibleChangedEvent, PageVisibleChangedEvent, PanelVisibleChangedEvent, QuestionCreatedEvent, QuestionAddedEvent, QuestionRemovedEvent, PanelAddedEvent, PanelRemovedEvent, PageAddedEvent, ValidateQuestionEvent, SettingQuestionErrorsEvent, ValidatePanelEvent, ErrorCustomTextEvent, ValidatedErrorsOnCurrentPageEvent, ProcessHtmlEvent, GetQuestionTitleEvent, GetTitleTagNameEvent, GetQuestionNoEvent, ProgressTextEvent, TextMarkdownEvent, TextRenderAsEvent, SendResultEvent, GetResultEvent, UploadFilesEvent, DownloadFileEvent, ClearFilesEvent, LoadChoicesFromServerEvent, ProcessTextValueEvent, UpdateQuestionCssClassesEvent, UpdatePanelCssClassesEvent, UpdatePageCssClassesEvent, UpdateChoiceItemCssEvent, AfterRenderSurveyEvent, AfterRenderHeaderEvent, AfterRenderPageEvent, AfterRenderQuestionEvent, AfterRenderQuestionInputEvent, AfterRenderPanelEvent, FocusInQuestionEvent, FocusInPanelEvent, ShowingChoiceItemEvent, ChoicesLazyLoadEvent, GetChoiceDisplayValueEvent, MatrixRowAddedEvent, MatrixBeforeRowAddedEvent, MatrixRowRemovingEvent, MatrixRowRemovedEvent, MatrixAllowRemoveRowEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent, MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, TimerPanelInfoTextEvent, DynamicPanelItemValueChangedEvent, DynamicPanelGetTabTitleEvent, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent } from "survey-events-api";
8581
+ import { TriggerExecutedEvent, CompletingEvent, CompleteEvent, ShowingPreviewEvent, NavigateToUrlEvent, CurrentPageChangingEvent, CurrentPageChangedEvent, ValueChangingEvent, ValueChangedEvent, VariableChangedEvent, QuestionVisibleChangedEvent, PageVisibleChangedEvent, PanelVisibleChangedEvent, QuestionCreatedEvent, QuestionAddedEvent, QuestionRemovedEvent, PanelAddedEvent, PanelRemovedEvent, PageAddedEvent, ValidateQuestionEvent, SettingQuestionErrorsEvent, ValidatePanelEvent, ErrorCustomTextEvent, ValidatedErrorsOnCurrentPageEvent, ProcessHtmlEvent, GetQuestionTitleEvent, GetTitleTagNameEvent, GetQuestionNoEvent, ProgressTextEvent, TextMarkdownEvent, TextRenderAsEvent, SendResultEvent, GetResultEvent, UploadFilesEvent, DownloadFileEvent, ClearFilesEvent, LoadChoicesFromServerEvent, ProcessTextValueEvent, UpdateQuestionCssClassesEvent, UpdatePanelCssClassesEvent, UpdatePageCssClassesEvent, UpdateChoiceItemCssEvent, AfterRenderSurveyEvent, AfterRenderHeaderEvent, AfterRenderPageEvent, AfterRenderQuestionEvent, AfterRenderQuestionInputEvent, AfterRenderPanelEvent, FocusInQuestionEvent, FocusInPanelEvent, ShowingChoiceItemEvent, ChoicesLazyLoadEvent, GetChoiceDisplayValueEvent, MatrixRowAddedEvent, MatrixBeforeRowAddedEvent, MatrixRowRemovingEvent, MatrixRowRemovedEvent, MatrixAllowRemoveRowEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent, MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, TimerPanelInfoTextEvent, DynamicPanelItemValueChangedEvent, DynamicPanelGetTabTitleEvent, DynamicPanelCurrentIndexChangedEvent, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent } from "survey-events-api";
8571
8582
  import { QuestionMatrixDropdownModelBase } from "question_matrixdropdownbase";
8572
8583
  import { QuestionMatrixDynamicModel } from "question_matrixdynamic";
8573
8584
  import { QuestionFileModel } from "question_file";
@@ -9182,6 +9193,10 @@ declare module "survey" {
9182
9193
  * [View Demo](https://surveyjs.io/form-library/examples/tabbed-interface-for-duplicate-group-option/ (linkStyle))
9183
9194
  */
9184
9195
  onGetDynamicPanelTabTitle: EventBase<SurveyModel, DynamicPanelGetTabTitleEvent>;
9196
+ /**
9197
+ * An event that is raised after the current panel is changed in a [Dynamic Panel](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/) question.
9198
+ */
9199
+ onDynamicPanelCurrentIndexChanged: EventBase<SurveyModel, DynamicPanelCurrentIndexChangedEvent>;
9185
9200
  /**
9186
9201
  * An event that is raised to define whether a question answer is correct. Applies only to [quiz surveys](https://surveyjs.io/form-library/documentation/design-survey/create-a-quiz).
9187
9202
  */
@@ -10061,7 +10076,7 @@ declare module "survey" {
10061
10076
  /**
10062
10077
  * Merges a specified data object with the object from the [`data`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#data) property.
10063
10078
  *
10064
- * Refer to the following help topic for more information: [Merge Question Values](https://surveyjs.io/form-library/documentation/design-survey/merge-question-values).
10079
+ * Refer to the following help topic for more information: [Populate Form Fields | Multiple Question Values](https://surveyjs.io/form-library/documentation/design-survey/pre-populate-form-fields#multiple-question-values).
10065
10080
  *
10066
10081
  * @param data A data object to merge. It should have the following structure: `{ questionName: questionValue, ... }`
10067
10082
  * @see setValue
@@ -10498,6 +10513,7 @@ declare module "survey" {
10498
10513
  protected onQuestionsOnPageModeChanged(oldValue: string): void;
10499
10514
  private restoreOriginalPages;
10500
10515
  private getPageStartIndex;
10516
+ private isCreatingPagesForPreview;
10501
10517
  private setupPagesForPageModes;
10502
10518
  private createPagesForQuestionOnPageMode;
10503
10519
  private createSinglePage;
@@ -10656,6 +10672,7 @@ declare module "survey" {
10656
10672
  dynamicPanelRemoving(question: QuestionPanelDynamicModel, panelIndex: number, panel: PanelModel): boolean;
10657
10673
  dynamicPanelItemValueChanged(question: IQuestion, options: any): void;
10658
10674
  dynamicPanelGetTabTitle(question: IQuestion, options: any): void;
10675
+ dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
10659
10676
  dragAndDropAllow(options: DragDropAllowEvent): boolean;
10660
10677
  elementContentVisibilityChanged(element: ISurveyElement): void;
10661
10678
  getUpdatedPanelFooterActions(panel: PanelModel, actions: Array<IAction>, question?: QuestionPanelDynamicModel): Array<IAction>;
@@ -10676,13 +10693,8 @@ declare module "survey" {
10676
10693
  * question,
10677
10694
  * question.name,
10678
10695
  * question.value,
10679
- * (status, data) => {
10680
- * if (status === "success") {
10681
- * // Handle success
10682
- * }
10683
- * if (status === "error") {
10684
- * // Handle error
10685
- * }
10696
+ * (data, errors) => {
10697
+ * // ...
10686
10698
  * }
10687
10699
  * );
10688
10700
  * ```
@@ -10767,7 +10779,7 @@ declare module "survey" {
10767
10779
  /**
10768
10780
  * Returns a question with a specified [`name`](https://surveyjs.io/form-library/documentation/api-reference/question#name).
10769
10781
  * @param name A question name
10770
- * @param caseInsensitive (Optional) A Boolean value that specifies case sensitivity when searching for the question. Default value: `false` (uppercase and lowercase letters are treated as distinct).
10782
+ * @param caseInsensitive *(Optional)* A Boolean value that specifies case sensitivity when searching for the question. Default value: `false` (uppercase and lowercase letters are treated as distinct).
10771
10783
  * @returns A question with a specified name.
10772
10784
  * @see getAllQuestions
10773
10785
  * @see getQuestionByValueName
@@ -10779,7 +10791,7 @@ declare module "survey" {
10779
10791
  *
10780
10792
  * > Since `valueName` does not have to be unique, multiple questions can have the same `valueName` value. In this case, the `getQuestionByValueName()` method returns the first such question. If you need to get all questions with the same `valueName`, call the `getQuestionsByValueName()` method.
10781
10793
  * @param valueName A question's `valueName` property value.
10782
- * @param caseInsensitive (Optional) A Boolean value that specifies case sensitivity when searching for the question. Default value: `false` (uppercase and lowercase letters are treated as distinct).
10794
+ * @param caseInsensitive *(Optional)* A Boolean value that specifies case sensitivity when searching for the question. Default value: `false` (uppercase and lowercase letters are treated as distinct).
10783
10795
  * @returns A question with a specified `valueName`.
10784
10796
  * @see getAllQuestions
10785
10797
  * @see getQuestionByName
@@ -10788,7 +10800,7 @@ declare module "survey" {
10788
10800
  /**
10789
10801
  * Returns all questions with a specified [`valueName`](https://surveyjs.io/form-library/documentation/api-reference/question#valueName). If a question's `valueName` is undefined, its [`name`](https://surveyjs.io/form-library/documentation/api-reference/question#name) property is used.
10790
10802
  * @param valueName A question's `valueName` property value.
10791
- * @param caseInsensitive (Optional) A Boolean value that specifies case sensitivity when searching for the questions. Default value: `false` (uppercase and lowercase letters are treated as distinct).
10803
+ * @param caseInsensitive *(Optional)* A Boolean value that specifies case sensitivity when searching for the questions. Default value: `false` (uppercase and lowercase letters are treated as distinct).
10792
10804
  * @returns An array of questions with a specified `valueName`.
10793
10805
  * @see getAllQuestions
10794
10806
  * @see getQuestionByName
@@ -10798,7 +10810,7 @@ declare module "survey" {
10798
10810
  /**
10799
10811
  * Returns an array of questions with specified [names](https://surveyjs.io/form-library/documentation/api-reference/question#name).
10800
10812
  * @param names An array of question names.
10801
- * @param caseInsensitive (Optional) A Boolean value that specifies case sensitivity when searching for the questions. Default value: `false` (uppercase and lowercase letters are treated as distinct).
10813
+ * @param caseInsensitive *(Optional)* A Boolean value that specifies case sensitivity when searching for the questions. Default value: `false` (uppercase and lowercase letters are treated as distinct).
10802
10814
  * @returns An array of questions with specified names
10803
10815
  * @see getAllQuestions
10804
10816
  */
@@ -10843,7 +10855,7 @@ declare module "survey" {
10843
10855
  /**
10844
10856
  * Returns a [panel](https://surveyjs.io/form-library/documentation/api-reference/panel-model) with a specified [`name`](https://surveyjs.io/form-library/documentation/api-reference/panel-model#name).
10845
10857
  * @param name A panel name.
10846
- * @param caseInsensitive (Optional) A Boolean value that specifies case sensitivity when searching for the panel. Default value: `false` (uppercase and lowercase letters are treated as distinct).
10858
+ * @param caseInsensitive *(Optional)* A Boolean value that specifies case sensitivity when searching for the panel. Default value: `false` (uppercase and lowercase letters are treated as distinct).
10847
10859
  * @returns A panel with a specified name.
10848
10860
  * @see getAllPanels
10849
10861
  */
@@ -11233,7 +11245,7 @@ declare module "survey" {
11233
11245
  startMovingQuestion(): void;
11234
11246
  stopMovingQuestion(): void;
11235
11247
  get isQuestionDragging(): boolean;
11236
- private needRenderIcons;
11248
+ needRenderIcons: boolean;
11237
11249
  private skippedPages;
11238
11250
  /**
11239
11251
  * Focuses a question with a specified name. Switches the current page if needed.
@@ -11426,7 +11438,7 @@ declare module "survey-element" {
11426
11438
  */
11427
11439
  get state(): string;
11428
11440
  set state(val: string);
11429
- protected notifyStateChanged(): void;
11441
+ protected notifyStateChanged(prevState: string): void;
11430
11442
  /**
11431
11443
  * Returns `true` if the survey element is collapsed.
11432
11444
  * @see state
@@ -11752,6 +11764,18 @@ declare module "questionCustomWidgets" {
11752
11764
  getCustomWidget(question: IQuestion): QuestionCustomWidget;
11753
11765
  }
11754
11766
  }
11767
+ declare module "rendererFactory" {
11768
+ import { Question } from "question";
11769
+ export class RendererFactory {
11770
+ static Instance: RendererFactory;
11771
+ private renderersHash;
11772
+ unregisterRenderer(questionType: string, rendererAs: string): void;
11773
+ registerRenderer(questionType: string, renderAs: string, renderer: any): void;
11774
+ getRenderer(questionType: string, renderAs: string): any;
11775
+ getRendererByQuestion(question: Question): any;
11776
+ clear(): void;
11777
+ }
11778
+ }
11755
11779
  declare module "question" {
11756
11780
  import { HashTable } from "helpers";
11757
11781
  import { EventBase } from "base";
@@ -11889,7 +11913,7 @@ declare module "question" {
11889
11913
  get visible(): boolean;
11890
11914
  set visible(val: boolean);
11891
11915
  protected onVisibleChanged(): void;
11892
- protected notifyStateChanged(): void;
11916
+ protected notifyStateChanged(prevState: string): void;
11893
11917
  private updateIsVisibleProp;
11894
11918
  /**
11895
11919
  * Specifies whether to use display names for question values in placeholders.
@@ -13428,6 +13452,7 @@ declare module "base-interfaces" {
13428
13452
  dynamicPanelRemoving(question: IQuestion, panelIndex: number, panel: IPanel): boolean;
13429
13453
  dynamicPanelItemValueChanged(question: IQuestion, options: any): any;
13430
13454
  dynamicPanelGetTabTitle(question: IQuestion, options: any): any;
13455
+ dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
13431
13456
  dragAndDropAllow(options: DragDropAllowEvent): boolean;
13432
13457
  scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean): any;
13433
13458
  runExpression(expression: string): any;
@@ -13747,7 +13772,7 @@ declare module "base" {
13747
13772
  * Returns `true` if a passed `value` is an empty string, array, or object or if it equals to `undefined` or `null`.
13748
13773
  *
13749
13774
  * @param value A value to be checked.
13750
- * @param trimString (Optional) When this parameter is `true`, the method ignores whitespace characters at the beginning and end of a string value. Pass `false` to disable this functionality.
13775
+ * @param trimString *(Optional)* When this parameter is `true`, the method ignores whitespace characters at the beginning and end of a string value. Pass `false` to disable this functionality.
13751
13776
  */
13752
13777
  isValueEmpty(value: any, trimString?: boolean): boolean;
13753
13778
  protected trimValue(value: any): any;
@@ -13879,7 +13904,7 @@ declare module "base" {
13879
13904
  * If the property is not found or does not have a value, this method returns either `undefined`, `defaultValue` specified in the property configuration, or a value passed as the `defaultValue` parameter.
13880
13905
  *
13881
13906
  * @param name A property name.
13882
- * @param defaultValue (Optional) A value to return if the property is not found or does not have a value.
13907
+ * @param defaultValue *(Optional)* A value to return if the property is not found or does not have a value.
13883
13908
  */
13884
13909
  getPropertyValue(name: string, defaultValue?: any): any;
13885
13910
  getDefaultPropertyValue(name: string): any;
@@ -13924,14 +13949,14 @@ declare module "base" {
13924
13949
  * Registers a function to call when a property value changes.
13925
13950
  * @param propertyNames An array of one or multiple property names.
13926
13951
  * @param handler A function to call when one of the listed properties change.
13927
- * @param key (Optional) A key that identifies the current registration. If a function for one of the properties is already registered with the same key, the function will be overwritten. You can also use the key to subsequently unregister handlers.
13952
+ * @param key *(Optional)* A key that identifies the current registration. If a function for one of the properties is already registered with the same key, the function will be overwritten. You can also use the key to subsequently unregister handlers.
13928
13953
  * @see unregisterPropertyChangedHandlers
13929
13954
  */
13930
13955
  registerPropertyChangedHandlers(propertyNames: Array<string>, handler: any, key?: string): void;
13931
13956
  /**
13932
13957
  * Unregisters value change event handlers for the specified properties.
13933
13958
  * @param propertyNames An array of one or multiple property names.
13934
- * @param key (Optional) A key of the registration that you want to cancel.
13959
+ * @param key *(Optional)* A key of the registration that you want to cancel.
13935
13960
  * @see registerPropertyChangedHandlers
13936
13961
  */
13937
13962
  unregisterPropertyChangedHandlers(propertyNames: Array<string>, key?: string): void;
@@ -14092,6 +14117,9 @@ declare module "settings" {
14092
14117
  root: Document | ShadowRoot;
14093
14118
  rootElement: HTMLElement | ShadowRoot;
14094
14119
  popupMountContainer: HTMLElement | string;
14120
+ /**
14121
+ * @deprecated
14122
+ */
14095
14123
  svgMountContainer: HTMLElement | string;
14096
14124
  stylesSheetsMountContainer: HTMLElement;
14097
14125
  };
@@ -15228,6 +15256,7 @@ declare module "question_checkbox" {
15228
15256
  * @see clearValue
15229
15257
  */
15230
15258
  selectAll(): void;
15259
+ clickItemHandler(item: ItemValue, checked?: boolean): void;
15231
15260
  protected isItemSelectedCore(item: ItemValue): boolean;
15232
15261
  private getRealValue;
15233
15262
  get isValueArray(): boolean;
@@ -15264,8 +15293,12 @@ declare module "question_checkbox" {
15264
15293
  protected validateItemValues(itemValues: Array<ItemValue>): Array<ItemValue>;
15265
15294
  protected getAnswerCorrectIgnoreOrder(): boolean;
15266
15295
  protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
15296
+ protected onVisibleChoicesChanged(): void;
15267
15297
  protected onEnableItemCallBack(item: ItemValue): boolean;
15268
15298
  protected onAfterRunItemsEnableCondition(): void;
15299
+ private updateSelectAllItemProps;
15300
+ private getSelectAllEnabled;
15301
+ private getVisibleEnableItems;
15269
15302
  private shouldCheckMaxSelectedChoices;
15270
15303
  private checkMinSelectedChoicesUnreached;
15271
15304
  protected getItemClassCore(item: any, options: any): string;
@@ -15547,10 +15580,8 @@ declare module "question_imagepicker" {
15547
15580
  *
15548
15581
  * Possible values:
15549
15582
  *
15550
- * - `"image"` - Images in one of the following formats: JPEG, GIF, PNG, APNG, SVG, BMP, ICO.
15583
+ * - `"image"` (default) - Images in one of the following formats: JPEG, GIF, PNG, APNG, SVG, BMP, ICO.
15551
15584
  * - `"video"` - Videos in one of the following formats: MP4, MOV, WMV, FLV, AVI, MKV.
15552
- * - `"youtube"` - Links to YouTube videos.
15553
- * - `"auto"` (default) - Selects one of the above based on the `imageLink` property value of each choice item.
15554
15585
  */
15555
15586
  get contentMode(): string;
15556
15587
  set contentMode(val: string);
@@ -16007,18 +16038,20 @@ declare module "question_rating" {
16007
16038
  protected getPlainDataCalculatedValue(propName: string): any;
16008
16039
  /**
16009
16040
  * Specifies a description for the minimum (first) rate value.
16041
+ * @see rateDescriptionLocation
16042
+ * @see displayRateDescriptionsAsExtremeItems
16010
16043
  * @see rateValues
16011
16044
  * @see rateMin
16012
- * @see displayRateDescriptionsAsExtremeItems
16013
16045
  */
16014
16046
  get minRateDescription(): string;
16015
16047
  set minRateDescription(val: string);
16016
16048
  get locMinRateDescription(): LocalizableString;
16017
16049
  /**
16018
16050
  * Specifies a description for the maximum (last) rate value.
16051
+ * @see rateDescriptionLocation
16052
+ * @see displayRateDescriptionsAsExtremeItems
16019
16053
  * @see rateValues
16020
16054
  * @see rateMax
16021
- * @see displayRateDescriptionsAsExtremeItems
16022
16055
  */
16023
16056
  get maxRateDescription(): string;
16024
16057
  set maxRateDescription(val: string);
@@ -16028,15 +16061,14 @@ declare module "question_rating" {
16028
16061
  get hasMinLabel(): boolean;
16029
16062
  get hasMaxLabel(): boolean;
16030
16063
  /**
16031
- * Specifies whether to display `minRateDescription` and `maxRateDescription` values as captions for buttons that correspond to the extreme (first and last) rate values.
16064
+ * Specifies whether to display [`minRateDescription`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#minRateDescription) and [`maxRateDescription`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#maxRateDescription) values as captions for buttons that correspond to the extreme (first and last) rate values.
16032
16065
  *
16033
16066
  * Default value: `false`
16034
16067
  *
16035
16068
  * If this property is disabled, the `minRateDescription` and `maxRateDescription` values are displayed as plain non-clickable texts.
16036
16069
  *
16037
16070
  * If any of the `minRateDescription` and `maxRateDescription` properties is empty, the corresponding rate value's `value` or `text` is displayed as a button caption.
16038
- * @see minRateDescription
16039
- * @see maxRateDescription
16071
+ * @see rateDescriptionLocation
16040
16072
  * @see rateMin
16041
16073
  * @see rateMax
16042
16074
  * @see rateValues
@@ -16055,6 +16087,18 @@ declare module "question_rating" {
16055
16087
  * @see rateType
16056
16088
  */
16057
16089
  displayMode: "dropdown" | "buttons" | "auto";
16090
+ /**
16091
+ * Specifies the alignment of [`minRateDescription`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#minRateDescription) and [`maxRateDescription`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#maxRateDescription) texts.
16092
+ *
16093
+ * Possible values:
16094
+ *
16095
+ * - `"leftRight"` (default) - Aligns `minRateDescription` to the left of rate values and `maxRateDescription` to their right.
16096
+ * - `"top"` - Displays the descriptions above the minimum and maximum rate values.
16097
+ * - `"bottom"` - Displays both descriptions below the minimum and maximum rate values.
16098
+ * - `"topBottom"` - Displays `minRateDescription` above the minimum rate value and `maxRateDescription` below the maximum rate value.
16099
+ * @see displayRateDescriptionsAsExtremeItems
16100
+ */
16101
+ rateDescriptionLocation: "leftRight" | "top" | "bottom" | "topBottom";
16058
16102
  /**
16059
16103
  * Specifies the visual representation of rate values.
16060
16104
  *
@@ -17553,7 +17597,6 @@ declare module "svgbundle" {
17553
17597
  registerIconFromSvg(iconId: string, iconSvg: string, iconPrefix?: string): boolean;
17554
17598
  registerIconsFromFolder(r: any): void;
17555
17599
  iconsRenderedHtml(): string;
17556
- renderIcons(): void;
17557
17600
  }
17558
17601
  export var SvgRegistry: SvgIconRegistry;
17559
17602
  export var SvgBundleViewModel: any;
@@ -24246,18 +24289,6 @@ declare module "react/components/survey-header/survey-header" {
24246
24289
  render(): JSX.Element | null;
24247
24290
  }
24248
24291
  }
24249
- declare module "react/reacttimerpanel" {
24250
- import { Base, SurveyTimerModel } from "entries/core";
24251
- import { ReactSurveyElement } from "react/reactquestion_element";
24252
- export class SurveyTimerPanel extends ReactSurveyElement {
24253
- constructor(props: any);
24254
- protected getStateElement(): Base;
24255
- protected get timerModel(): SurveyTimerModel;
24256
- private readonly circleLength;
24257
- private get progress();
24258
- render(): JSX.Element | null;
24259
- }
24260
- }
24261
24292
  declare module "react/components/brand-info" {
24262
24293
  import React from "react";
24263
24294
  export class BrandInfo extends React.Component<any, any> {
@@ -24282,6 +24313,15 @@ declare module "react/components/components-container" {
24282
24313
  render(): JSX.Element | null;
24283
24314
  }
24284
24315
  }
24316
+ declare module "react/svgbundle" {
24317
+ import React from "react";
24318
+ export class SvgBundleComponent extends React.Component {
24319
+ private containerRef;
24320
+ constructor(props: any);
24321
+ componentDidMount(): void;
24322
+ render(): JSX.Element;
24323
+ }
24324
+ }
24285
24325
  declare module "react/reactSurvey" {
24286
24326
  import { Base, Question, PageModel, SurveyError, SurveyModel, IAttachKey2clickOptions } from "entries/core";
24287
24327
  import { ISurveyCreator } from "react/reactquestion";
@@ -24336,6 +24376,18 @@ declare module "react/reactSurveyNavigationBase" {
24336
24376
  componentWillUnmount(): void;
24337
24377
  }
24338
24378
  }
24379
+ declare module "react/reacttimerpanel" {
24380
+ import { Base, SurveyTimerModel } from "entries/core";
24381
+ import { ReactSurveyElement } from "react/reactquestion_element";
24382
+ export class SurveyTimerPanel extends ReactSurveyElement {
24383
+ constructor(props: any);
24384
+ protected getStateElement(): Base;
24385
+ protected get timerModel(): SurveyTimerModel;
24386
+ private readonly circleLength;
24387
+ private get progress();
24388
+ render(): JSX.Element | null;
24389
+ }
24390
+ }
24339
24391
  declare module "react/panel" {
24340
24392
  import { SurveyPanelBase } from "react/panel-base";
24341
24393
  import { PanelModel } from "entries/core";
@@ -24403,7 +24455,6 @@ declare module "react/reactquestion_checkbox" {
24403
24455
  private get hideCaption();
24404
24456
  shouldComponentUpdate(nextProps: any, nextState: any): boolean;
24405
24457
  handleOnChange: (event: any) => void;
24406
- selectAllChanged: (event: any) => void;
24407
24458
  protected canRender(): boolean;
24408
24459
  protected renderElement(): JSX.Element;
24409
24460
  protected get inputStyle(): any;
@@ -25301,6 +25352,7 @@ declare module "entries/react-ui-model" {
25301
25352
  export { SurveyLocStringViewer } from "react/string-viewer";
25302
25353
  export { SurveyLocStringEditor } from "react/string-editor";
25303
25354
  export { LoadingIndicatorComponent } from "react/components/loading-indicator";
25355
+ export { SvgBundleComponent } from "react/svgbundle";
25304
25356
  }
25305
25357
  declare module "entries/react" {
25306
25358
  export * from "entries/core";