survey-react 1.9.105 → 1.9.107

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
@@ -279,7 +279,9 @@ declare module "localizablestring" {
279
279
  private htmlValues;
280
280
  private renderedText;
281
281
  private calculatedTextValue;
282
- localizationName: string;
282
+ private _localizationName;
283
+ get localizationName(): string;
284
+ set localizationName(val: string);
283
285
  onGetTextCallback: (str: string) => string;
284
286
  onGetDefaultTextCallback: () => string;
285
287
  storeDefaultText: boolean;
@@ -308,8 +310,12 @@ declare module "localizablestring" {
308
310
  get textOrHtml(): string;
309
311
  get renderedHtml(): string;
310
312
  getLocaleText(loc: string): string;
311
- private getLocaleTextWithDefault;
313
+ private getLocaleTextCore;
314
+ private isLocaleTextEqualsWithDefault;
315
+ clear(): void;
316
+ clearLocale(loc?: string): void;
312
317
  setLocaleText(loc: string, value: string): void;
318
+ private isValueEmpty;
313
319
  private get curLocale();
314
320
  private canRemoveLocValue;
315
321
  private fireStrChanged;
@@ -1044,6 +1050,7 @@ declare module "actions/container" {
1044
1050
  defaultSizeMode: string;
1045
1051
  smallSizeMode: string;
1046
1052
  item: string;
1053
+ itemAsIcon: string;
1047
1054
  itemActive: string;
1048
1055
  itemPressed: string;
1049
1056
  itemIcon: string;
@@ -1465,6 +1472,7 @@ declare module "actions/action" {
1465
1472
  getEnabled(): boolean;
1466
1473
  setComponent(val: string): void;
1467
1474
  getComponent(): string;
1475
+ dispose(): void;
1468
1476
  }
1469
1477
  export class ActionDropdownViewModel {
1470
1478
  private item;
@@ -1526,6 +1534,7 @@ declare module "actions/adaptive-container" {
1526
1534
  minVisibleItemsCount: number;
1527
1535
  isResponsivenessDisabled: boolean;
1528
1536
  private hideItemsGreaterN;
1537
+ private getActionsToHide;
1529
1538
  private getVisibleItemsCount;
1530
1539
  private updateItemMode;
1531
1540
  private static ContainerID;
@@ -1570,6 +1579,7 @@ declare module "defaultCss/defaultV2Css" {
1570
1579
  rootMobile: string;
1571
1580
  rootReadOnly: string;
1572
1581
  rootCompact: string;
1582
+ rootFitToContainer: string;
1573
1583
  rootBackgroundImage: string;
1574
1584
  container: string;
1575
1585
  header: string;
@@ -1585,6 +1595,7 @@ declare module "defaultCss/defaultV2Css" {
1585
1595
  clockTimerMinorText: string;
1586
1596
  clockTimerMajorText: string;
1587
1597
  bodyEmpty: string;
1598
+ bodyLoading: string;
1588
1599
  footer: string;
1589
1600
  title: string;
1590
1601
  description: string;
@@ -1595,6 +1606,7 @@ declare module "defaultCss/defaultV2Css" {
1595
1606
  navigationButton: string;
1596
1607
  bodyNavigationButton: string;
1597
1608
  completedPage: string;
1609
+ completedBeforePage: string;
1598
1610
  timerRoot: string;
1599
1611
  navigation: {
1600
1612
  complete: string;
@@ -1868,6 +1880,9 @@ declare module "defaultCss/defaultV2Css" {
1868
1880
  content: string;
1869
1881
  row: string;
1870
1882
  cell: string;
1883
+ cellError: string;
1884
+ cellErrorTop: string;
1885
+ cellErrorBottom: string;
1871
1886
  };
1872
1887
  dropdown: {
1873
1888
  root: string;
@@ -3144,7 +3159,7 @@ declare module "question_file" {
3144
3159
  * [View Demo](https://surveyjs.io/form-library/examples/file-upload/ (linkStyle))
3145
3160
  */
3146
3161
  export class QuestionFileModel extends Question {
3147
- private isUploading;
3162
+ isUploading: boolean;
3148
3163
  isDragging: boolean;
3149
3164
  /**
3150
3165
  * An event that is raised after the upload state has changed.
@@ -3262,8 +3277,12 @@ declare module "question_file" {
3262
3277
  clear(doneCallback?: () => void): void;
3263
3278
  get renderCapture(): string;
3264
3279
  get multipleRendered(): string;
3265
- get showRemoveButton(): any;
3266
- get showRemoveButtonBottom(): any;
3280
+ get showChooseButton(): boolean;
3281
+ get showLoadingIndicator(): boolean;
3282
+ get allowShowPreview(): boolean;
3283
+ get showRemoveButtonCore(): boolean;
3284
+ get showRemoveButton(): boolean;
3285
+ get showRemoveButtonBottom(): boolean;
3267
3286
  defaultImage(data: any): boolean;
3268
3287
  /**
3269
3288
  * Removes a file with a specified name.
@@ -3639,8 +3658,7 @@ declare module "question_baseselect" {
3639
3658
  protected rendredValueToDataCore(val: any): any;
3640
3659
  protected needConvertRenderedOtherToDataValue(): boolean;
3641
3660
  protected updateSelectedItemValues(): void;
3642
- protected updateSingleSelectedItemValues(): void;
3643
- protected updateMultipleSelectedItemValues(): void;
3661
+ private setCustomValuesIntoItems;
3644
3662
  protected hasUnknownValue(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
3645
3663
  protected isValueDisabled(val: any): boolean;
3646
3664
  /**
@@ -4220,6 +4238,7 @@ declare module "question_matrixdropdowncolumn" {
4220
4238
  onColumnPropertyChanged(column: MatrixDropdownColumn, name: string, newValue: any): void;
4221
4239
  onColumnItemValuePropertyChanged(column: MatrixDropdownColumn, propertyName: string, obj: ItemValue, name: string, newValue: any, oldValue: any): void;
4222
4240
  onShowInMultipleColumnsChanged(column: MatrixDropdownColumn): void;
4241
+ onColumnVisibilityChanged(column: MatrixDropdownColumn): void;
4223
4242
  getCellType(): string;
4224
4243
  getCustomCellType(column: MatrixDropdownColumn, row: MatrixDropdownRowModelBase, cellType: string): string;
4225
4244
  onColumnCellTypeChanged(column: MatrixDropdownColumn): void;
@@ -4230,7 +4249,6 @@ declare module "question_matrixdropdowncolumn" {
4230
4249
  private templateQuestionValue;
4231
4250
  private colOwnerValue;
4232
4251
  private indexValue;
4233
- private _isVisible;
4234
4252
  private _hasVisibleCell;
4235
4253
  private _visiblechoices;
4236
4254
  constructor(name: string, title?: string);
@@ -4252,7 +4270,9 @@ declare module "question_matrixdropdowncolumn" {
4252
4270
  get templateQuestion(): Question;
4253
4271
  get value(): string;
4254
4272
  get isVisible(): boolean;
4255
- setIsVisible(newVal: boolean): void;
4273
+ get isColumnVisible(): boolean;
4274
+ get visible(): boolean;
4275
+ set visible(val: boolean);
4256
4276
  get hasVisibleCell(): boolean;
4257
4277
  set hasVisibleCell(newVal: boolean);
4258
4278
  getVisibleMultipleChoices(): Array<ItemValue>;
@@ -4339,6 +4359,7 @@ declare module "question_matrixdropdowncolumn" {
4339
4359
  protected propertyValueChanged(name: string, oldValue: any, newValue: any): void;
4340
4360
  private doItemValuePropertyChanged;
4341
4361
  private doShowInMultipleColumnsChanged;
4362
+ private doColumnVisibilityChanged;
4342
4363
  private getProperties;
4343
4364
  private removeProperties;
4344
4365
  private addProperties;
@@ -4375,6 +4396,7 @@ declare module "dragdrop/dom-adapter" {
4375
4396
  private currentX;
4376
4397
  private currentY;
4377
4398
  private savedTargetNode;
4399
+ private savedTargetNodeParent;
4378
4400
  private scrollIntervalId;
4379
4401
  constructor(dd: IDragDropEngine, longTap?: boolean);
4380
4402
  private get rootElement();
@@ -5573,7 +5595,7 @@ declare module "question_paneldynamic" {
5573
5595
  declare module "survey-events-api" {
5574
5596
  import { IAction } from "actions/action";
5575
5597
  import { Base } from "base";
5576
- import { IElement, ISurveyElement } from "base-interfaces";
5598
+ import { IElement, ISurveyElement, IValueItemCustomPropValues } from "base-interfaces";
5577
5599
  import { ItemValue } from "itemvalue";
5578
5600
  import { PageModel } from "page";
5579
5601
  import { PanelModel, PanelModelBase } from "panel";
@@ -6209,7 +6231,7 @@ declare module "survey-events-api" {
6209
6231
  /**
6210
6232
  * A method that you should call to assign display texts to the question.
6211
6233
  */
6212
- setItems: (displayValues: Array<string>) => void;
6234
+ setItems: (displayValues: Array<string>, ...customValues: Array<IValueItemCustomPropValues>) => void;
6213
6235
  /**
6214
6236
  * An array of one (in Dropdown) or more (in Tag Box) default values.
6215
6237
  */
@@ -6404,6 +6426,20 @@ declare module "survey-events-api" {
6404
6426
  */
6405
6427
  panel: PanelModel;
6406
6428
  }
6429
+ export interface DynamicPanelGetTabTitleEvent extends PanelDynamicQuestionEventMixin {
6430
+ /**
6431
+ * A panel whose tab title is being rendered.
6432
+ */
6433
+ panel: PanelModel;
6434
+ /**
6435
+ * The panel's index in the [`visiblePanels`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#visiblePanels) array of the Dynamic Panel.
6436
+ */
6437
+ visiblePanelIndex: number;
6438
+ /**
6439
+ * A tab title. You can change this parameter's value.
6440
+ */
6441
+ title: string;
6442
+ }
6407
6443
  export interface IsAnswerCorrectEvent extends QuestionEventMixin {
6408
6444
  /**
6409
6445
  * you may change the default number of correct or incorrect answers in the question, for example for matrix, where each row is a quiz question
@@ -7130,7 +7166,7 @@ declare module "question_multipletext" {
7130
7166
  localeChanged(): void;
7131
7167
  locStrsChanged(): void;
7132
7168
  setData(data: IMultipleTextData): void;
7133
- focusIn(): void;
7169
+ focusIn: () => void;
7134
7170
  /**
7135
7171
  * Set this property to true, to make the item a required. If a user doesn't fill the item then a validation error will be generated.
7136
7172
  */
@@ -7216,7 +7252,6 @@ declare module "question_multipletext" {
7216
7252
  */
7217
7253
  export class QuestionMultipleTextModel extends Question implements IMultipleTextData, IPanel {
7218
7254
  static addDefaultItems(question: QuestionMultipleTextModel): void;
7219
- colCountChangedCallback: () => void;
7220
7255
  constructor(name: string);
7221
7256
  getType(): string;
7222
7257
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
@@ -7273,6 +7308,8 @@ declare module "question_multipletext" {
7273
7308
  get itemErrorLocation(): string;
7274
7309
  set itemErrorLocation(val: string);
7275
7310
  getQuestionErrorLocation(): string;
7311
+ get showItemErrorOnTop(): boolean;
7312
+ get showItemErrorOnBottom(): boolean;
7276
7313
  getChildErrorLocation(child: Question): string;
7277
7314
  protected isNewValueCorrect(val: any): boolean;
7278
7315
  supportGoNextPageAutomatic(): boolean;
@@ -7288,6 +7325,9 @@ declare module "question_multipletext" {
7288
7325
  */
7289
7326
  get itemSize(): number;
7290
7327
  set itemSize(val: number);
7328
+ rows: Array<MutlipleTextRow>;
7329
+ protected onRowCreated(row: MutlipleTextRow): MutlipleTextRow;
7330
+ private calcVisibleRows;
7291
7331
  getRows(): Array<any>;
7292
7332
  private isMultipleItemValueChanging;
7293
7333
  protected onValueChanged(): void;
@@ -7320,7 +7360,25 @@ declare module "question_multipletext" {
7320
7360
  getItemLabelCss(item: MultipleTextItemModel): string;
7321
7361
  getItemCss(): string;
7322
7362
  getItemTitleCss(): string;
7323
- protected getIsTooltipErrorInsideSupported(): boolean;
7363
+ }
7364
+ export class MutlipleTextRow extends Base {
7365
+ isVisible: boolean;
7366
+ cells: Array<MultipleTextCell>;
7367
+ }
7368
+ export class MutlipleTextErrorRow extends MutlipleTextRow {
7369
+ onAfterCreated(): void;
7370
+ }
7371
+ export class MultipleTextCell {
7372
+ item: MultipleTextItemModel;
7373
+ protected question: QuestionMultipleTextModel;
7374
+ constructor(item: MultipleTextItemModel, question: QuestionMultipleTextModel);
7375
+ isErrorsCell: boolean;
7376
+ protected getClassName(): string;
7377
+ get className(): string;
7378
+ }
7379
+ export class MultipleTextErrorCell extends MultipleTextCell {
7380
+ isErrorsCell: boolean;
7381
+ protected getClassName(): string;
7324
7382
  }
7325
7383
  }
7326
7384
  declare module "themes" {
@@ -7340,7 +7398,7 @@ declare module "themes" {
7340
7398
  declare module "survey" {
7341
7399
  import { JsonError } from "jsonobject";
7342
7400
  import { Base, EventBase } from "base";
7343
- import { ISurvey, ISurveyData, ISurveyImpl, ITextProcessor, IQuestion, IPanel, IElement, IPage, ISurveyErrorOwner, ISurveyElement, IProgressInfo, IFindElement, ISurveyLayoutElement, IPlainDataOptions, LayoutElementContainer } from "base-interfaces";
7401
+ import { ISurvey, ISurveyData, ISurveyImpl, ITextProcessor, IQuestion, IPanel, IElement, IPage, ISurveyErrorOwner, ISurveyElement, IProgressInfo, IFindElement, ISurveyLayoutElement, IPlainDataOptions, LayoutElementContainer, IValueItemCustomPropValues } from "base-interfaces";
7344
7402
  import { SurveyElementCore } from "survey-element";
7345
7403
  import { ISurveyTriggerOwner, SurveyTrigger, Trigger } from "trigger";
7346
7404
  import { CalculatedValue } from "calculatedValue";
@@ -7358,7 +7416,7 @@ declare module "survey" {
7358
7416
  import { ActionContainer } from "actions/container";
7359
7417
  import { QuestionPanelDynamicModel } from "question_paneldynamic";
7360
7418
  import { Notifier } from "notifier";
7361
- 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, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent } from "survey-events-api";
7419
+ 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";
7362
7420
  import { QuestionMatrixDropdownModelBase } from "question_matrixdropdownbase";
7363
7421
  import { QuestionMatrixDynamicModel } from "question_matrixdynamic";
7364
7422
  import { QuestionFileModel } from "question_file";
@@ -7456,7 +7514,7 @@ declare module "survey" {
7456
7514
  *
7457
7515
  * For information on event handler parameters, refer to descriptions within the interface.
7458
7516
  *
7459
- * [Continue an Incomplete Survey](https://surveyjs.io/form-library/documentation/handle-survey-results-continue-incomplete (linkStyle))
7517
+ * Alternatively, you can handle the [`onCurrentPageChanged`](#onCurrentPageChanged) and [`onValueChanged`](#onValueChanged) events, as shown in the following demo: [Continue an Incomplete Survey](https://surveyjs.io/form-library/examples/survey-editprevious/).
7460
7518
  */
7461
7519
  onPartialSend: EventBase<SurveyModel, {}>;
7462
7520
  /**
@@ -7481,7 +7539,7 @@ declare module "survey" {
7481
7539
  */
7482
7540
  onValueChanging: EventBase<SurveyModel, ValueChangingEvent>;
7483
7541
  /**
7484
- * An event that is raised after a question value is changed
7542
+ * An event that is raised after a question value is changed.
7485
7543
  *
7486
7544
  * For information on event handler parameters, refer to descriptions within the interface.
7487
7545
  *
@@ -7969,6 +8027,10 @@ declare module "survey" {
7969
8027
  * An event that is raised after an item value is changed in a panel within a [Dynamic Panel](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/) question.
7970
8028
  */
7971
8029
  onDynamicPanelItemValueChanged: EventBase<SurveyModel, DynamicPanelItemValueChangedEvent>;
8030
+ /**
8031
+ * An event that is raised before a [Dynamic Panel](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/) renders [tab titles](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#templateTabTitle). Use this event to change individual tab titles.
8032
+ */
8033
+ onGetDynamicPanelTabTitle: EventBase<SurveyModel, DynamicPanelGetTabTitleEvent>;
7972
8034
  /**
7973
8035
  * Use this event to define, whether an answer to a question is correct or not.
7974
8036
  * @see Question.value
@@ -8076,7 +8138,10 @@ declare module "survey" {
8076
8138
  get bodyCss(): string;
8077
8139
  get bodyContainerCss(): string;
8078
8140
  completedCss: string;
8141
+ completedBeforeCss: string;
8142
+ loadingBodyCss: string;
8079
8143
  containerCss: string;
8144
+ fitToContainer: boolean;
8080
8145
  private getNavigationCss;
8081
8146
  private lazyRenderingValue;
8082
8147
  showBrandInfo: boolean;
@@ -8143,7 +8208,7 @@ declare module "survey" {
8143
8208
  /**
8144
8209
  * Specifies whether to save survey results when respondents switch between pages. Handle the [`onPartialSend`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onPartialSend) event to implement the save operation.
8145
8210
  *
8146
- * [Continue an Incomplete Survey](https://surveyjs.io/form-library/documentation/handle-survey-results-continue-incomplete (linkStyle))
8211
+ * Alternatively, you can handle the [`onCurrentPageChanged`](#onCurrentPageChanged) and [`onValueChanged`](#onValueChanged) events, as shown in the following demo: [Continue an Incomplete Survey](https://surveyjs.io/form-library/examples/survey-editprevious/).
8147
8212
  */
8148
8213
  get sendResultOnPageNext(): boolean;
8149
8214
  set sendResultOnPageNext(val: boolean);
@@ -8738,7 +8803,7 @@ declare module "survey" {
8738
8803
  get isShowProgressBarOnTop(): boolean;
8739
8804
  get isShowProgressBarOnBottom(): boolean;
8740
8805
  getProgressTypeComponent(): string;
8741
- getProgressCssClasses(): string;
8806
+ getProgressCssClasses(container?: string): string;
8742
8807
  private canShowProresBar;
8743
8808
  get processedTitle(): string;
8744
8809
  /**
@@ -9375,7 +9440,7 @@ declare module "survey" {
9375
9440
  getChoiceDisplayValue(options: {
9376
9441
  question: Question;
9377
9442
  values: Array<any>;
9378
- setItems: (displayValues: Array<string>) => void;
9443
+ setItems: (displayValues: Array<string>, ...customValues: Array<IValueItemCustomPropValues>) => void;
9379
9444
  }): void;
9380
9445
  matrixBeforeRowAdded(options: any): void;
9381
9446
  matrixRowAdded(question: QuestionMatrixDynamicModel, row: any): void;
@@ -9398,6 +9463,7 @@ declare module "survey" {
9398
9463
  dynamicPanelRemoved(question: QuestionPanelDynamicModel, panelIndex: number, panel: PanelModel): void;
9399
9464
  dynamicPanelRemoving(question: QuestionPanelDynamicModel, panelIndex: number, panel: PanelModel): boolean;
9400
9465
  dynamicPanelItemValueChanged(question: IQuestion, options: any): void;
9466
+ dynamicPanelGetTabTitle(question: IQuestion, options: any): void;
9401
9467
  dragAndDropAllow(options: DragDropAllowEvent): boolean;
9402
9468
  elementContentVisibilityChanged(element: ISurveyElement): void;
9403
9469
  getUpdatedPanelFooterActions(panel: PanelModel, actions: Array<IAction>, question?: QuestionPanelDynamicModel): Array<IAction>;
@@ -9499,36 +9565,42 @@ declare module "survey" {
9499
9565
  */
9500
9566
  removePage(page: PageModel): void;
9501
9567
  /**
9502
- * Returns a question by its name.
9503
- * @param name a question name
9504
- * @param caseInsensitive
9568
+ * Returns a question with a specified [`name`](https://surveyjs.io/form-library/documentation/api-reference/question#name).
9569
+ * @param name A question name
9570
+ * @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).
9571
+ * @returns A question with a specified name.
9572
+ * @see getAllQuestions
9505
9573
  * @see getQuestionByValueName
9506
9574
  */
9507
9575
  getQuestionByName(name: string, caseInsensitive?: boolean): Question;
9508
9576
  findQuestionByName(name: string): IQuestion;
9509
9577
  /**
9510
- * Returns a question by its value name
9511
- * @param valueName a question name
9512
- * @param caseInsensitive
9578
+ * Returns a question with a specified [`valueName`](https://surveyjs.io/form-library/documentation/api-reference/question#valueName).
9579
+ *
9580
+ * > 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.
9581
+ * @param valueName A question's `valueName` property value.
9582
+ * @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).
9583
+ * @returns A question with a specified `valueName`.
9584
+ * @see getAllQuestions
9513
9585
  * @see getQuestionByName
9514
- * @see getQuestionsByValueName
9515
- * @see Question.valueName
9516
9586
  */
9517
- getQuestionByValueName(valueName: string, caseInsensitive?: boolean): IQuestion;
9587
+ getQuestionByValueName(valueName: string, caseInsensitive?: boolean): Question;
9518
9588
  /**
9519
- * Returns all questions by their valueName. name property is used if valueName property is empty.
9520
- * @param valueName a question name
9521
- * @param caseInsensitive
9589
+ * 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.
9590
+ * @param valueName A question's `valueName` property value.
9591
+ * @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).
9592
+ * @returns An array of questions with a specified `valueName`.
9593
+ * @see getAllQuestions
9522
9594
  * @see getQuestionByName
9523
- * @see getQuestionByValueName
9524
- * @see Question.valueName
9525
9595
  */
9526
9596
  getQuestionsByValueName(valueName: string, caseInsensitive?: boolean): Array<Question>;
9527
9597
  getCalculatedValueByName(name: string): CalculatedValue;
9528
9598
  /**
9529
- * Gets a list of questions by their names.
9530
- * @param names an array of question names
9531
- * @param caseInsensitive
9599
+ * Returns an array of questions with specified [names](https://surveyjs.io/form-library/documentation/api-reference/question#name).
9600
+ * @param names An array of question names.
9601
+ * @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).
9602
+ * @returns An array of questions with specified names
9603
+ * @see getAllQuestions
9532
9604
  */
9533
9605
  getQuestionsByNames(names: string[], caseInsensitive?: boolean): IQuestion[];
9534
9606
  /**
@@ -9552,26 +9624,36 @@ declare module "survey" {
9552
9624
  */
9553
9625
  getPagesByNames(names: string[]): PageModel[];
9554
9626
  /**
9555
- * Returns a list of all questions in the survey.
9627
+ * Returns a list of all [questions](https://surveyjs.io/form-library/documentation/api-reference/question) in the survey.
9556
9628
  * @param visibleOnly A Boolean value that specifies whether to include only visible questions.
9557
9629
  * @param includeDesignTime For internal use.
9558
9630
  * @param includeNested A Boolean value that specifies whether to include nested questions, such as questions within matrix cells.
9631
+ * @returns An array of questions.
9632
+ * @see getQuestionByName
9559
9633
  */
9560
9634
  getAllQuestions(visibleOnly?: boolean, includeDesignTime?: boolean, includeNested?: boolean): Array<Question>;
9561
9635
  /**
9562
- * Returns quiz questions. All visible questions that has input(s) widgets.
9636
+ * Returns an array of quiz questions. A question counts if it is visible, has an input field, and specifies [`correctAnswer`](https://surveyjs.io/form-library/documentation/api-reference/checkbox-question-model#correctAnswer).
9637
+ *
9638
+ * For more information about quizzes, refer to the following tutorial: [Create a Quiz](https://surveyjs.io/form-library/documentation/design-survey/create-a-quiz).
9639
+ * @returns An array of quiz questions.
9563
9640
  * @see getQuizQuestionCount
9564
9641
  */
9565
9642
  getQuizQuestions(): Array<IQuestion>;
9566
9643
  /**
9567
- * Returns a panel by its name.
9568
- * @param name a panel name
9569
- * @param caseInsensitive
9570
- * @see getQuestionByName
9644
+ * 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).
9645
+ * @param name A panel name.
9646
+ * @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).
9647
+ * @returns A panel with a specified name.
9648
+ * @see getAllPanels
9571
9649
  */
9572
9650
  getPanelByName(name: string, caseInsensitive?: boolean): PanelModel;
9573
9651
  /**
9574
- * Returns a list of all survey's panels.
9652
+ * Returns a list of all [panels](https://surveyjs.io/form-library/documentation/api-reference/panel-model) in the survey.
9653
+ * @param visibleOnly A Boolean value that specifies whether to include only visible panels.
9654
+ * @param includeDesignTime For internal use.
9655
+ * @returns An array of panels.
9656
+ * @see getPanelByName
9575
9657
  */
9576
9658
  getAllPanels(visibleOnly?: boolean, includeDesignTime?: boolean): Array<IPanel>;
9577
9659
  /**
@@ -9662,45 +9744,56 @@ declare module "survey" {
9662
9744
  questionCountByValueName(valueName: string): number;
9663
9745
  private clearInvisibleQuestionValues;
9664
9746
  /**
9665
- * Returns a variable value. Variable, unlike values, are not stored in the survey results.
9666
- * @param name A variable name
9667
- * @see SetVariable
9747
+ * Returns a variable value.
9748
+ *
9749
+ * [Variables help topic](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#variables (linkStyle))
9750
+ * @param name A variable name.
9751
+ * @return A variable value.
9752
+ * @see setVariable
9753
+ * @see getVariableNames
9668
9754
  */
9669
9755
  getVariable(name: string): any;
9670
9756
  /**
9671
- * Sets a variable value. Variable, unlike values, are not stored in the survey results.
9672
- * @param name A variable name
9673
- * @param newValue A variable new value
9674
- * @see GetVariable
9757
+ * Sets a variable value.
9758
+ *
9759
+ * [Variables help topic](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#variables (linkStyle))
9760
+ * @param name A variable name.
9761
+ * @param newValue A new variable value.
9762
+ * @see getVariable
9763
+ * @see getVariableNames
9675
9764
  */
9676
9765
  setVariable(name: string, newValue: any): void;
9677
9766
  /**
9678
- * Returns all variables in the survey. Use setVariable function to create a new variable.
9767
+ * Returns the names of all variables in the survey.
9768
+ *
9769
+ * [Variables help topic](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#variables (linkStyle))
9770
+ * @returns An array of variable names.
9679
9771
  * @see getVariable
9680
9772
  * @see setVariable
9681
9773
  */
9682
9774
  getVariableNames(): Array<string>;
9683
9775
  protected getUnbindValue(value: any): any;
9684
9776
  /**
9685
- * Returns a question value (answer) by a question's name.
9686
- * @param name A question name
9777
+ * Returns a value (answer) for a question with a specified `name`.
9778
+ * @param name A question name.
9779
+ * @returns A question value (answer).
9687
9780
  * @see data
9688
9781
  * @see setValue
9689
9782
  */
9690
9783
  getValue(name: string): any;
9691
9784
  /**
9692
- * Sets a question value (answer). It runs all triggers and conditions (`visibleIf` properties).
9785
+ * Sets a question value (answer).
9693
9786
  *
9694
- * Goes to the next page if `goNextPageAutomatic` is `true` and all questions on the current page are answered correctly.
9695
- * @param name A question name
9696
- * @param newValue A new question value
9787
+ * > This method executes all triggers and reevaluates conditions (`visibleIf`, `requiredId`, and others). It also switches the survey to the next page if the [`goNextPageAutomatic`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#goNextPageAutomatic) property is enabled and all questions on the current page have correct answers.
9788
+ * @param name A question name.
9789
+ * @param newValue A new question value.
9790
+ * @param locNotification For internal use.
9791
+ * @param allowNotifyValueChanged For internal use.
9697
9792
  * @see data
9698
9793
  * @see getValue
9699
- * @see PageModel.visibleIf
9700
- * @see Question.visibleIf
9701
- * @see goNextPageAutomatic
9702
9794
  */
9703
9795
  setValue(name: string, newQuestionValue: any, locNotification?: any, allowNotifyValueChanged?: boolean): void;
9796
+ private isValueEmpyOnSetValue;
9704
9797
  private updateOnSetValue;
9705
9798
  private isValueEqual;
9706
9799
  protected doOnPageAdded(page: PageModel): void;
@@ -9708,15 +9801,17 @@ declare module "survey" {
9708
9801
  private generateNewName;
9709
9802
  protected tryGoNextPageAutomatic(name: string): void;
9710
9803
  /**
9711
- * Returns the comment value.
9712
- * @param name A comment's name.
9804
+ * Returns a comment value from a question with a specified `name`.
9805
+ * @param name A question name.
9806
+ * @returns A comment.
9713
9807
  * @see setComment
9714
9808
  */
9715
9809
  getComment(name: string): string;
9716
9810
  /**
9717
- * Sets a comment value.
9718
- * @param name A comment name.
9811
+ * Sets a comment value to a question with a specified `name`.
9812
+ * @param name A question name.
9719
9813
  * @param newValue A new comment value.
9814
+ * @param locNotification For internal use.
9720
9815
  * @see getComment
9721
9816
  */
9722
9817
  setComment(name: string, newValue: string, locNotification?: any): void;
@@ -9760,17 +9855,31 @@ declare module "survey" {
9760
9855
  getSurveyMarkdownHtml(element: Question | PanelModel | PageModel | SurveyModel, text: string, name: string): string;
9761
9856
  getCorrectedAnswerCount(): number;
9762
9857
  /**
9763
- * Returns an amount of corrected quiz answers.
9858
+ * Returns the number of correct answers in a quiz.
9859
+ *
9860
+ * For more information about quizzes, refer to the following tutorial: [Create a Quiz](https://surveyjs.io/form-library/documentation/design-survey/create-a-quiz).
9861
+ * @returns The number of correct answers in a quiz.
9862
+ * @see getQuizQuestionCount
9863
+ * @see getInCorrectAnswerCount
9764
9864
  */
9765
9865
  getCorrectAnswerCount(): number;
9766
9866
  /**
9767
- * Returns quiz question number. It may be different from `getQuizQuestions.length` because some widgets like matrix may have several questions.
9867
+ * Returns the number of quiz questions. A question counts if it is visible, has an input field, and specifies [`correctAnswer`](https://surveyjs.io/form-library/documentation/api-reference/checkbox-question-model#correctAnswer).
9868
+ *
9869
+ * This number may be different from `getQuizQuestions().length` because certain question types (for instance, matrix-like types) include more than one question.
9870
+ *
9871
+ * For more information about quizzes, refer to the following tutorial: [Create a Quiz](https://surveyjs.io/form-library/documentation/design-survey/create-a-quiz).
9872
+ * @returns The number of quiz questions.
9768
9873
  * @see getQuizQuestions
9769
9874
  */
9770
9875
  getQuizQuestionCount(): number;
9771
9876
  getInCorrectedAnswerCount(): number;
9772
9877
  /**
9773
- * Returns an amount of incorrect quiz answers.
9878
+ * Returns the number of incorrect answers in a quiz.
9879
+ *
9880
+ * For more information about quizzes, refer to the following tutorial: [Create a Quiz](https://surveyjs.io/form-library/documentation/design-survey/create-a-quiz).
9881
+ * @returns The number of incorrect answers in a quiz.
9882
+ * @see getCorrectAnswerCount
9774
9883
  */
9775
9884
  getInCorrectAnswerCount(): number;
9776
9885
  onCorrectQuestionAnswer(question: IQuestion, options: any): void;
@@ -9979,6 +10088,10 @@ declare module "survey" {
9979
10088
  */
9980
10089
  dispose(): void;
9981
10090
  disposeCallback: () => void;
10091
+ private onScrollCallback;
10092
+ onScroll(): void;
10093
+ addScrollEventListener(): void;
10094
+ removeScrollEventListener(): void;
9982
10095
  }
9983
10096
  }
9984
10097
  declare module "survey-element" {
@@ -10303,10 +10416,6 @@ declare module "survey-element" {
10303
10416
  protected setPage(parent: IPanel, newPage: IPage): void;
10304
10417
  protected getSearchableLocKeys(keys: Array<string>): void;
10305
10418
  get isDefaultV2Theme(): boolean;
10306
- get isErrorsModeTooltip(): boolean;
10307
- protected getIsErrorsModeTooltip(): boolean;
10308
- protected getIsTooltipErrorSupportedByParent(): boolean;
10309
- protected getIsTooltipErrorInsideSupported(): boolean;
10310
10419
  get hasParent(): any;
10311
10420
  isSingleInRow: boolean;
10312
10421
  private shouldAddRunnerStyles;
@@ -10381,6 +10490,7 @@ declare module "survey-element" {
10381
10490
  protected getAdditionalTitleToolbar(): ActionContainer | null;
10382
10491
  protected getCssTitle(cssClasses: any): string;
10383
10492
  localeChanged(): void;
10493
+ dispose(): void;
10384
10494
  }
10385
10495
  }
10386
10496
  declare module "questionCustomWidgets" {
@@ -10564,6 +10674,7 @@ declare module "question" {
10564
10674
  get visible(): boolean;
10565
10675
  set visible(val: boolean);
10566
10676
  protected onVisibleChanged(): void;
10677
+ private updateIsVisibleProp;
10567
10678
  /**
10568
10679
  * Specifies whether to use display names for question values in placeholders.
10569
10680
  *
@@ -10815,11 +10926,9 @@ declare module "question" {
10815
10926
  get cssDescription(): string;
10816
10927
  protected setCssDescription(val: string): void;
10817
10928
  protected getCssDescription(cssClasses: any): string;
10818
- protected getIsErrorsModeTooltip(): boolean;
10819
10929
  showErrorOnCore(location: string): boolean;
10820
10930
  get showErrorOnTop(): boolean;
10821
10931
  get showErrorOnBottom(): boolean;
10822
- protected getIsTooltipErrorSupportedByParent(): boolean;
10823
10932
  private get showErrorsOutsideQuestion();
10824
10933
  get showErrorsAboveQuestion(): boolean;
10825
10934
  get showErrorsBelowQuestion(): boolean;
@@ -10975,6 +11084,8 @@ declare module "question" {
10975
11084
  */
10976
11085
  get value(): any;
10977
11086
  set value(newValue: any);
11087
+ get hasFilteredValue(): boolean;
11088
+ getFilteredValue(): any;
10978
11089
  get valueForSurvey(): any;
10979
11090
  /**
10980
11091
  * Sets the question's `value` and `comment` properties to `undefined`.
@@ -11078,6 +11189,7 @@ declare module "question" {
11078
11189
  protected getQuizQuestionCount(): number;
11079
11190
  protected getCorrectAnswerCount(): number;
11080
11191
  protected checkIfAnswerCorrect(): boolean;
11192
+ protected getAnswerCorrectIgnoreOrder(): boolean;
11081
11193
  /**
11082
11194
  * Returns `true` if a question answer matches the `correctAnswer` property value.
11083
11195
  *
@@ -11374,7 +11486,7 @@ declare module "question_matrixdropdownbase" {
11374
11486
  import { ILocalizableOwner, LocalizableString } from "localizablestring";
11375
11487
  import { PanelModel } from "panel";
11376
11488
  import { SurveyError } from "survey-error";
11377
- import { MatrixDropdownColumn } from "question_matrixdropdowncolumn";
11489
+ import { IMatrixColumnOwner, MatrixDropdownColumn } from "question_matrixdropdowncolumn";
11378
11490
  import { QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable } from "question_matrixdropdownrendered";
11379
11491
  export interface IMatrixDropdownData {
11380
11492
  value: any;
@@ -11521,7 +11633,7 @@ declare module "question_matrixdropdownbase" {
11521
11633
  /**
11522
11634
  * A base class for the [QuestionMatrixDropdownModel](https://surveyjs.io/form-library/documentation/questionmatrixdropdownmodel) and [QuestionMatrixDynamicModel](https://surveyjs.io/form-library/documentation/questionmatrixdynamicmodel) classes.
11523
11635
  */
11524
- export class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseModel<MatrixDropdownRowModelBase, MatrixDropdownColumn> implements IMatrixDropdownData {
11636
+ export class QuestionMatrixDropdownModelBase extends QuestionMatrixBaseModel<MatrixDropdownRowModelBase, MatrixDropdownColumn> implements IMatrixDropdownData, IMatrixColumnOwner {
11525
11637
  static get defaultCellType(): string;
11526
11638
  static set defaultCellType(val: string);
11527
11639
  static addDefaultColumns(matrix: QuestionMatrixDropdownModelBase): void;
@@ -11696,7 +11808,9 @@ declare module "question_matrixdropdownbase" {
11696
11808
  onColumnPropertyChanged(column: MatrixDropdownColumn, name: string, newValue: any): void;
11697
11809
  onColumnItemValuePropertyChanged(column: MatrixDropdownColumn, propertyName: string, obj: ItemValue, name: string, newValue: any, oldValue: any): void;
11698
11810
  onShowInMultipleColumnsChanged(column: MatrixDropdownColumn): void;
11811
+ onColumnVisibilityChanged(column: MatrixDropdownColumn): void;
11699
11812
  onColumnCellTypeChanged(column: MatrixDropdownColumn): void;
11813
+ private resetTableAndRows;
11700
11814
  getRowTitleWidth(): string;
11701
11815
  get hasFooter(): boolean;
11702
11816
  getAddRowLocation(): string;
@@ -11866,7 +11980,6 @@ declare module "question_matrixdropdownbase" {
11866
11980
  getRowHeaderWrapperComponentData(cell: MatrixDropdownCell): any;
11867
11981
  get showHorizontalScroll(): boolean;
11868
11982
  getRootCss(): string;
11869
- protected getIsTooltipErrorInsideSupported(): boolean;
11870
11983
  }
11871
11984
  }
11872
11985
  declare module "base-interfaces" {
@@ -11900,6 +12013,10 @@ declare module "base-interfaces" {
11900
12013
  export interface ISurveyErrorOwner extends ILocalizableOwner {
11901
12014
  getErrorCustomText(text: string, error: SurveyError): string;
11902
12015
  }
12016
+ export interface IValueItemCustomPropValues {
12017
+ propertyName: string;
12018
+ values: Array<any>;
12019
+ }
11903
12020
  export interface ISurvey extends ITextProcessor, ISurveyErrorOwner {
11904
12021
  getSkeletonComponentName(element: ISurveyElement): string;
11905
12022
  currentPage: IPage;
@@ -11992,7 +12109,7 @@ declare module "base-interfaces" {
11992
12109
  getChoiceDisplayValue(options: {
11993
12110
  question: IQuestion;
11994
12111
  values: Array<any>;
11995
- setItems: (displayValues: Array<string>) => void;
12112
+ setItems: (displayValues: Array<string>, ...customValues: Array<IValueItemCustomPropValues>) => void;
11996
12113
  }): void;
11997
12114
  matrixRowAdded(question: IQuestion, row: any): any;
11998
12115
  matrixColumnAdded(question: IQuestion, column: any): void;
@@ -12016,6 +12133,7 @@ declare module "base-interfaces" {
12016
12133
  dynamicPanelRemoved(question: IQuestion, panelIndex: number, panel: IPanel): void;
12017
12134
  dynamicPanelRemoving(question: IQuestion, panelIndex: number, panel: IPanel): boolean;
12018
12135
  dynamicPanelItemValueChanged(question: IQuestion, options: any): any;
12136
+ dynamicPanelGetTabTitle(question: IQuestion, options: any): any;
12019
12137
  dragAndDropAllow(options: DragDropAllowEvent): boolean;
12020
12138
  scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean): any;
12021
12139
  runExpression(expression: string): any;
@@ -12317,6 +12435,9 @@ declare module "base" {
12317
12435
  static finishCollectDependencies(): Dependencies;
12318
12436
  static startCollectDependencies(updater: () => void, target: Base, property: string): void;
12319
12437
  private static collectDependency;
12438
+ dependencies: {
12439
+ [key: string]: ComputedUpdater;
12440
+ };
12320
12441
  static get commentSuffix(): string;
12321
12442
  static set commentSuffix(val: string);
12322
12443
  static get commentPrefix(): string;
@@ -12582,7 +12703,10 @@ declare module "utils/popup" {
12582
12703
  export class PopupUtils {
12583
12704
  static bottomIndent: number;
12584
12705
  static calculatePosition(targetRect: ClientRect, height: number, width: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, showPointer: boolean, positionMode?: PositionMode): INumberPosition;
12585
- static updateVerticalDimensions(top: number, height: number, windowHeight: number): any;
12706
+ static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number): {
12707
+ height: number;
12708
+ top: number;
12709
+ };
12586
12710
  static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition, positionMode?: PositionMode, margins?: {
12587
12711
  left: number;
12588
12712
  right: number;
@@ -12622,6 +12746,7 @@ declare module "popup" {
12622
12746
  contentComponentData: T;
12623
12747
  }
12624
12748
  export class PopupModel<T = any> extends Base {
12749
+ private onDispose;
12625
12750
  setWidthByTarget: boolean;
12626
12751
  focusFirstInputSelector: string;
12627
12752
  contentComponentName: string;
@@ -12644,12 +12769,13 @@ declare module "popup" {
12644
12769
  onFooterActionsCreated: EventBase<Base>;
12645
12770
  onRecalculatePosition: EventBase<Base>;
12646
12771
  private refreshInnerModel;
12647
- constructor(contentComponentName: string, contentComponentData: T, verticalPosition?: VerticalPosition, horizontalPosition?: HorizontalPosition, showPointer?: boolean, isModal?: boolean, onCancel?: () => void, onApply?: () => boolean, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string);
12772
+ constructor(contentComponentName: string, contentComponentData: T, verticalPosition?: VerticalPosition, horizontalPosition?: HorizontalPosition, showPointer?: boolean, isModal?: boolean, onCancel?: () => void, onApply?: () => boolean, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string, onDispose?: () => void);
12648
12773
  get isVisible(): boolean;
12649
12774
  set isVisible(value: boolean);
12650
12775
  toggleVisibility(): void;
12651
12776
  recalculatePosition(isResetHeight: boolean): void;
12652
12777
  updateFooterActions(footerActions: Array<IAction>): Array<IAction>;
12778
+ dispose(): void;
12653
12779
  }
12654
12780
  export function createDialogOptions(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): IDialogOptions;
12655
12781
  }
@@ -13306,6 +13432,7 @@ declare module "dropdownListModel" {
13306
13432
  get showHintString(): boolean;
13307
13433
  get hintStringSuffix(): string;
13308
13434
  get hintStringMiddle(): string;
13435
+ private qustionPropertyChangedHandler;
13309
13436
  constructor(question: Question, onSelectionChanged?: (item: IAction, ...params: any[]) => void);
13310
13437
  get popupModel(): PopupModel;
13311
13438
  get inputReadOnly(): boolean;
@@ -13776,8 +13903,11 @@ declare module "question_checkbox" {
13776
13903
  */
13777
13904
  get selectedChoices(): Array<ItemValue>;
13778
13905
  get selectedItems(): Array<ItemValue>;
13906
+ get hasFilteredValue(): boolean;
13907
+ getFilteredValue(): any;
13779
13908
  protected getMultipleSelectedItems(): Array<ItemValue>;
13780
13909
  protected validateItemValues(itemValues: Array<ItemValue>): Array<ItemValue>;
13910
+ protected getAnswerCorrectIgnoreOrder(): boolean;
13781
13911
  protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
13782
13912
  protected onEnableItemCallBack(item: ItemValue): boolean;
13783
13913
  protected onAfterRunItemsEnableCondition(): void;
@@ -13846,6 +13976,7 @@ declare module "dropdownMultiSelectListModel" {
13846
13976
  protected popupCssClasses: string;
13847
13977
  filterStringPlaceholder: string;
13848
13978
  closeOnSelect: boolean;
13979
+ locStrsChanged(): void;
13849
13980
  private updateListState;
13850
13981
  private syncFilterStringPlaceholder;
13851
13982
  private getSelectedActions;
@@ -13890,8 +14021,10 @@ declare module "question_tagbox" {
13890
14021
  dropdownListModel: DropdownMultiSelectListModel;
13891
14022
  private itemDisplayNameMap;
13892
14023
  constructor(name: string);
14024
+ locStrsChanged(): void;
14025
+ readOnlyText: string;
14026
+ private updateReadOnlyText;
13893
14027
  protected getDefaultItemComponent(): string;
13894
- get readOnlyText(): any;
13895
14028
  onSurveyLoad(): void;
13896
14029
  /**
13897
14030
  * Specifies whether to display a button that clears the selected value.
@@ -14194,6 +14327,7 @@ declare module "question_ranking" {
14194
14327
  private isDragStartNodeValid;
14195
14328
  private get allowStartDrag();
14196
14329
  private canStartDragDueMaxSelectedChoices;
14330
+ private canStartDragDueItemEnabled;
14197
14331
  checkMaxSelectedChoicesUnreached(): boolean;
14198
14332
  afterRenderQuestionElement(el: HTMLElement): void;
14199
14333
  beforeDestroyQuestionElement(el: HTMLElement): void;
@@ -15030,7 +15164,6 @@ declare module "popup-survey" {
15030
15164
  private setCssButton;
15031
15165
  protected createSurvey(jsonObj: any): SurveyModel;
15032
15166
  protected onSurveyComplete(): void;
15033
- private onScrollCallback;
15034
15167
  onScroll(): void;
15035
15168
  }
15036
15169
  /**
@@ -15393,6 +15526,8 @@ declare module "popup-view-model" {
15393
15526
  import { ActionContainer } from "actions/container";
15394
15527
  export const FOCUS_INPUT_SELECTOR = "input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^=\"-\"])";
15395
15528
  export class PopupBaseViewModel extends Base {
15529
+ private static SubscriptionId;
15530
+ private subscriptionId;
15396
15531
  protected popupSelector: string;
15397
15532
  protected fixedPopupContainer: string;
15398
15533
  protected containerSelector: string;
@@ -15417,6 +15552,7 @@ declare module "popup-view-model" {
15417
15552
  protected getPopupHeaderTemplate(): string;
15418
15553
  protected createFooterActionBar(): void;
15419
15554
  protected resetDimensionsAndPositionStyleProperties(): void;
15555
+ protected onModelChanging(newModel: PopupModel): void;
15420
15556
  private setupModel;
15421
15557
  private _model;
15422
15558
  get model(): PopupModel;
@@ -15474,12 +15610,16 @@ declare module "popup-dropdown-view-model" {
15474
15610
  protected getPopupHeaderTemplate(): string;
15475
15611
  popupDirection: string;
15476
15612
  pointerTarget: IPosition;
15613
+ private recalculatePositionHandler;
15477
15614
  constructor(model: PopupModel, targetElement?: HTMLElement);
15478
15615
  setComponentElement(componentRoot: HTMLElement, targetElement?: HTMLElement | null): void;
15616
+ resetComponentElement(): void;
15479
15617
  updateOnShowing(): void;
15480
15618
  private get shouldCreateResizeCallback();
15481
15619
  updatePosition(isResetHeight: boolean, isDelayUpdating?: boolean): void;
15482
15620
  updateOnHiding(): void;
15621
+ protected onModelChanging(newModel: PopupModel): void;
15622
+ dispose(): void;
15483
15623
  }
15484
15624
  }
15485
15625
  declare module "popup-modal-view-model" {
@@ -15591,7 +15731,7 @@ declare module "entries/chunks/model" {
15591
15731
  export { MatrixDynamicRowModel, QuestionMatrixDynamicModel } from "question_matrixdynamic";
15592
15732
  export { MatrixRowModel, MatrixCells, QuestionMatrixModel, IMatrixData } from "question_matrix";
15593
15733
  export { QuestionMatrixBaseModel } from "martixBase";
15594
- export { MultipleTextItemModel, QuestionMultipleTextModel, MultipleTextEditorModel } from "question_multipletext";
15734
+ export { MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel } from "question_multipletext";
15595
15735
  export { PanelModel, PanelModelBase, QuestionRowModel } from "panel";
15596
15736
  export { FlowPanelModel } from "flowpanel";
15597
15737
  export { PageModel } from "page";
@@ -16512,15 +16652,6 @@ declare module "svgbundle" {
16512
16652
  export var SvgRegistry: SvgIconRegistry;
16513
16653
  export var SvgBundleViewModel: any;
16514
16654
  }
16515
- declare module "utils/tooltip" {
16516
- export class TooltipManager {
16517
- tooltipElement: HTMLElement;
16518
- private targetElement;
16519
- constructor(tooltipElement: HTMLElement);
16520
- dispose(): void;
16521
- private onMouseMoveCallback;
16522
- }
16523
- }
16524
16655
  declare module "entries/core-wo-model" {
16525
16656
  export * from "entries/chunks/model";
16526
16657
  export { defaultStandardCss } from "defaultCss/cssstandard";
@@ -16532,7 +16663,6 @@ declare module "entries/core-wo-model" {
16532
16663
  export * from "actions/action";
16533
16664
  export * from "actions/adaptive-container";
16534
16665
  export * from "actions/container";
16535
- export * from "utils/tooltip";
16536
16666
  export * from "utils/dragOrClickHelper";
16537
16667
  }
16538
16668
  declare module "entries/core" {
@@ -22670,6 +22800,7 @@ declare module "react/components/popup/popup" {
22670
22800
  private setTargetElement;
22671
22801
  componentDidMount(): void;
22672
22802
  componentDidUpdate(prevProps: any, prevState: any): void;
22803
+ componentWillUnmount(): void;
22673
22804
  shouldComponentUpdate(nextProps: IPopupProps, nextState: any): boolean;
22674
22805
  render(): JSX.Element;
22675
22806
  }
@@ -22801,11 +22932,7 @@ declare module "react/reactquestion" {
22801
22932
  protected get location(): string;
22802
22933
  private getState;
22803
22934
  protected canRender(): boolean;
22804
- private tooltipManager;
22805
- private tooltipRef;
22806
- componentDidUpdate(prevProps: any, prevState: any): void;
22807
22935
  componentWillUnmount(): void;
22808
- private disposeTooltipManager;
22809
22936
  protected renderElement(): JSX.Element;
22810
22937
  }
22811
22938
  export abstract class SurveyQuestionAndErrorsWrapped extends ReactSurveyElement {
@@ -22820,7 +22947,6 @@ declare module "react/reactquestion" {
22820
22947
  componentDidUpdate(prevProps: any, prevState: any): void;
22821
22948
  protected doAfterRender(): void;
22822
22949
  protected canRender(): boolean;
22823
- protected renderErrors(errorsLocation: string): JSX.Element;
22824
22950
  protected renderContent(): JSX.Element;
22825
22951
  protected abstract renderElement(): JSX.Element;
22826
22952
  protected getShowErrors(): boolean;
@@ -22836,6 +22962,16 @@ declare module "react/reactquestion" {
22836
22962
  protected getHeaderText(): string;
22837
22963
  protected wrapCell(cell: QuestionMatrixDropdownRenderedCell, element: JSX.Element): JSX.Element;
22838
22964
  }
22965
+ export class SurveyQuestionErrorCell extends React.Component<any, any> {
22966
+ constructor(props: any);
22967
+ private get question();
22968
+ private update;
22969
+ private registerCallback;
22970
+ private unRegisterCallback;
22971
+ componentDidUpdate(prevProps: Readonly<any>): void;
22972
+ componentWillUnmount(): void;
22973
+ render(): JSX.Element;
22974
+ }
22839
22975
  }
22840
22976
  declare module "react/reactquestion_element" {
22841
22977
  import * as React from "react";
@@ -23355,14 +23491,22 @@ declare module "react/reactquestion_html" {
23355
23491
  protected renderElement(): JSX.Element;
23356
23492
  }
23357
23493
  }
23494
+ declare module "react/components/loading-indicator" {
23495
+ import * as React from "react";
23496
+ export class LoadingIndicatorComponent extends React.Component<any, any> {
23497
+ render(): JSX.Element | null;
23498
+ }
23499
+ }
23358
23500
  declare module "react/reactquestion_file" {
23359
23501
  import { QuestionFileModel } from "entries/core";
23360
23502
  import { SurveyQuestionElementBase } from "react/reactquestion_element";
23361
23503
  export class SurveyQuestionFile extends SurveyQuestionElementBase {
23362
23504
  constructor(props: any);
23363
23505
  protected get question(): QuestionFileModel;
23506
+ protected renderLoadingIndicator(): JSX.Element;
23364
23507
  protected renderElement(): JSX.Element;
23365
23508
  protected renderFileDecorator(): JSX.Element;
23509
+ protected renderChooseButton(): JSX.Element;
23366
23510
  protected renderClearButton(className: string): JSX.Element | null;
23367
23511
  protected renderFileSign(className: string, val: any): JSX.Element | null;
23368
23512
  protected renderPreview(): JSX.Element | null;
@@ -23371,13 +23515,14 @@ declare module "react/reactquestion_file" {
23371
23515
  declare module "react/reactquestion_multipletext" {
23372
23516
  import { SurveyQuestionElementBase } from "react/reactquestion_element";
23373
23517
  import { SurveyQuestionAndErrorsWrapped } from "react/reactquestion";
23374
- import { QuestionMultipleTextModel, MultipleTextItemModel } from "entries/core";
23518
+ import { QuestionMultipleTextModel, MultipleTextItemModel, MultipleTextCell } from "entries/core";
23375
23519
  import { ReactSurveyElement } from "react/reactquestion_element";
23376
23520
  export class SurveyQuestionMultipleText extends SurveyQuestionElementBase {
23377
23521
  constructor(props: any);
23378
23522
  protected get question(): QuestionMultipleTextModel;
23379
23523
  protected renderElement(): JSX.Element;
23380
- protected renderRow(rowIndex: number, items: Array<MultipleTextItemModel>, cssClasses: any): JSX.Element;
23524
+ protected renderCell(cell: MultipleTextCell, cssClasses: any, index: number): JSX.Element;
23525
+ protected renderRow(rowIndex: number, cells: Array<MultipleTextCell>, cssClasses: any): JSX.Element;
23381
23526
  }
23382
23527
  export class SurveyMultipleTextItem extends ReactSurveyElement {
23383
23528
  private get question();
@@ -23385,7 +23530,6 @@ declare module "react/reactquestion_multipletext" {
23385
23530
  protected getStateElements(): (import("question_multipletext").MultipleTextEditorModel | MultipleTextItemModel)[];
23386
23531
  private get creator();
23387
23532
  protected renderElement(): JSX.Element;
23388
- protected renderItemTooltipError(item: MultipleTextItemModel, cssClasses: any): JSX.Element | null;
23389
23533
  }
23390
23534
  export class SurveyMultipleTextItemEditor extends SurveyQuestionAndErrorsWrapped {
23391
23535
  protected renderElement(): JSX.Element;
@@ -23502,7 +23646,6 @@ declare module "react/components/matrix-actions/drag-drop-icon/drag-drop-icon" {
23502
23646
  }
23503
23647
  }
23504
23648
  declare module "react/reactquestion_matrixdropdownbase" {
23505
- import * as React from "react";
23506
23649
  import { SurveyQuestionElementBase } from "react/reactquestion_element";
23507
23650
  import { SurveyQuestionAndErrorsCell } from "react/reactquestion";
23508
23651
  import { QuestionMatrixDropdownModelBase, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedCell, Question } from "entries/core";
@@ -23536,16 +23679,6 @@ declare module "react/reactquestion_matrixdropdownbase" {
23536
23679
  private renderCellCheckboxButton;
23537
23680
  private renderCellRadiogroupButton;
23538
23681
  }
23539
- export class SurveyQuestionMatrixDropdownErrorCell extends React.Component<any, any> {
23540
- constructor(props: any);
23541
- private get cell();
23542
- private update;
23543
- private registerCallback;
23544
- private unRegisterCallback;
23545
- componentDidUpdate(prevProps: Readonly<any>): void;
23546
- componentWillUnmount(): void;
23547
- render(): JSX.Element;
23548
- }
23549
23682
  }
23550
23683
  declare module "react/reactquestion_matrixdropdown" {
23551
23684
  import { SurveyQuestionMatrixDropdownBase } from "react/reactquestion_matrixdropdownbase";
@@ -23703,6 +23836,7 @@ declare module "react/components/list/list" {
23703
23836
  handleMouseMove: (event: any) => void;
23704
23837
  getStateElement(): ListModel<import("survey-core").Action>;
23705
23838
  componentDidMount(): void;
23839
+ componentWillUnmount(): void;
23706
23840
  renderElement(): JSX.Element;
23707
23841
  renderList(): JSX.Element;
23708
23842
  renderItems(): JSX.Element[];
@@ -23989,6 +24123,7 @@ declare module "entries/react-ui-model" {
23989
24123
  export { CharacterCounterComponent } from "react/components/character-counter";
23990
24124
  export { SurveyLocStringViewer } from "react/string-viewer";
23991
24125
  export { SurveyLocStringEditor } from "react/string-editor";
24126
+ export { LoadingIndicatorComponent } from "react/components/loading-indicator";
23992
24127
  }
23993
24128
  declare module "entries/react" {
23994
24129
  export * from "entries/core";