survey-react 1.12.16 → 1.12.17
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/defaultV2.css +1 -1
- package/defaultV2.min.css +1 -1
- package/modern.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +93 -39
- package/survey.react.js +157 -80
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/defaultV2.css
CHANGED
package/defaultV2.min.css
CHANGED
package/modern.css
CHANGED
package/modern.min.css
CHANGED
package/package.json
CHANGED
package/survey.css
CHANGED
package/survey.min.css
CHANGED
package/survey.react.d.ts
CHANGED
@@ -999,7 +999,7 @@ declare module "packages/survey-core/src/utils/utils" {
|
|
999
999
|
export function setPropertiesOnElementForAnimation(el: HTMLElement, styles: any, prefix?: string): void;
|
1000
1000
|
export function prepareElementForVerticalAnimation(el: HTMLElement): void;
|
1001
1001
|
export function cleanHtmlElementAfterAnimation(el: HTMLElement): void;
|
1002
|
-
export function
|
1002
|
+
export function floorTo2Decimals(number: number): number;
|
1003
1003
|
export { mergeValues, updateListCssValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, activateLazyRenderingChecks, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles, isBase64URL, renamedIcons };
|
1004
1004
|
}
|
1005
1005
|
declare module "packages/survey-core/src/actions/container" {
|
@@ -2417,6 +2417,7 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
|
|
2417
2417
|
itemBody: string;
|
2418
2418
|
itemSelected: string;
|
2419
2419
|
itemFocused: string;
|
2420
|
+
itemHovered: string;
|
2420
2421
|
};
|
2421
2422
|
actionBar: {
|
2422
2423
|
root: string;
|
@@ -3404,7 +3405,7 @@ declare module "packages/survey-core/src/panel" {
|
|
3404
3405
|
private questionsValue;
|
3405
3406
|
private _columns;
|
3406
3407
|
private _columnsReady;
|
3407
|
-
|
3408
|
+
gridLayoutColumns: Array<PanelLayoutColumnModel>;
|
3408
3409
|
addElementCallback: (element: IElement) => void;
|
3409
3410
|
removeElementCallback: (element: IElement) => void;
|
3410
3411
|
onGetQuestionTitleLocation: () => string;
|
@@ -3656,6 +3657,7 @@ declare module "packages/survey-core/src/panel" {
|
|
3656
3657
|
getQuestionTitleWidth(): string;
|
3657
3658
|
get columns(): Array<PanelLayoutColumnModel>;
|
3658
3659
|
protected generateColumns(): void;
|
3660
|
+
updateGridColumns(): void;
|
3659
3661
|
getColumsForElement(el: IElement): Array<PanelLayoutColumnModel>;
|
3660
3662
|
protected getStartIndex(): string;
|
3661
3663
|
getQuestionStartIndex(): string;
|
@@ -3897,7 +3899,7 @@ declare module "packages/survey-core/src/panel" {
|
|
3897
3899
|
* @see visibleIf
|
3898
3900
|
*/
|
3899
3901
|
get no(): string;
|
3900
|
-
|
3902
|
+
private calcNo;
|
3901
3903
|
protected notifyStateChanged(prevState: string): void;
|
3902
3904
|
protected createLocTitleProperty(): LocalizableString;
|
3903
3905
|
protected beforeSetVisibleIndex(index: number): number;
|
@@ -7485,7 +7487,11 @@ declare module "packages/survey-core/src/survey-events-api" {
|
|
7485
7487
|
/**
|
7486
7488
|
* An array of [actions](https://surveyjs.io/form-library/documentation/iaction) associated with the processed element.
|
7487
7489
|
*/
|
7488
|
-
|
7490
|
+
actions: Array<IAction>;
|
7491
|
+
/**
|
7492
|
+
* Obsolete. Use `options.actions` instead.
|
7493
|
+
*/
|
7494
|
+
titleActions?: Array<IAction>;
|
7489
7495
|
}
|
7490
7496
|
export interface GetActionsEventMixin {
|
7491
7497
|
/**
|
@@ -7841,7 +7847,13 @@ declare module "packages/survey-core/src/survey-events-api" {
|
|
7841
7847
|
*/
|
7842
7848
|
number: string;
|
7843
7849
|
}
|
7844
|
-
export interface
|
7850
|
+
export interface GetPanelNumberEvent extends PanelEventMixin {
|
7851
|
+
/**
|
7852
|
+
* A panel number. Note that this is a string value that contains not only the number itself but also the characters that separate the number from the panel title: `"1. "`, `"2. "`, etc. You can change this parameter's value.
|
7853
|
+
*/
|
7854
|
+
number: string;
|
7855
|
+
}
|
7856
|
+
export interface GetProgressTextEvent {
|
7845
7857
|
/**
|
7846
7858
|
* The number of questions with input fields. [Image](https://surveyjs.io/form-library/examples/add-image-and-video-to-survey/), [HTML](https://surveyjs.io/form-library/examples/questiontype-html/), and [Expression](https://surveyjs.io/form-library/examples/questiontype-expression/) questions are not counted.
|
7847
7859
|
*/
|
@@ -7863,6 +7875,8 @@ declare module "packages/survey-core/src/survey-events-api" {
|
|
7863
7875
|
*/
|
7864
7876
|
text: string;
|
7865
7877
|
}
|
7878
|
+
export interface ProgressTextEvent extends GetProgressTextEvent {
|
7879
|
+
}
|
7866
7880
|
export interface TextProcessingEvent {
|
7867
7881
|
/**
|
7868
7882
|
* The name of the property that contains the text to process.
|
@@ -8345,17 +8359,27 @@ declare module "packages/survey-core/src/survey-events-api" {
|
|
8345
8359
|
}
|
8346
8360
|
export interface IsAnswerCorrectEvent extends QuestionEventMixin {
|
8347
8361
|
/**
|
8348
|
-
*
|
8362
|
+
* A Boolean property that specifies whether the answer is correct (`true`) or incorrect (`false`). Use the `options.question.value` and `options.question.correctAnswer` properties to check the answer.
|
8349
8363
|
*/
|
8350
|
-
|
8364
|
+
result: boolean;
|
8351
8365
|
/**
|
8352
|
-
*
|
8366
|
+
* Obsolete. Use `options.correctAnswerCount` instead.
|
8353
8367
|
*/
|
8354
|
-
|
8368
|
+
correctAnswers?: number;
|
8355
8369
|
/**
|
8356
|
-
*
|
8370
|
+
* Obsolete. Use `options.incorrectAnswerCount` instead.
|
8357
8371
|
*/
|
8358
|
-
|
8372
|
+
incorrectAnswers?: number;
|
8373
|
+
}
|
8374
|
+
export interface CheckAnswerCorrectEvent extends IsAnswerCorrectEvent {
|
8375
|
+
/**
|
8376
|
+
* The number of correct answers in a matrix where each row is considered as one quiz question.
|
8377
|
+
*/
|
8378
|
+
correctAnswerCount: number;
|
8379
|
+
/**
|
8380
|
+
* The number of incorrect answers in a matrix where each row is considered as one quiz question.
|
8381
|
+
*/
|
8382
|
+
incorrectAnswerCount: number;
|
8359
8383
|
}
|
8360
8384
|
export interface DragDropAllowEvent {
|
8361
8385
|
/**
|
@@ -8406,9 +8430,9 @@ declare module "packages/survey-core/src/survey-events-api" {
|
|
8406
8430
|
*/
|
8407
8431
|
elementId: string;
|
8408
8432
|
/**
|
8409
|
-
*
|
8433
|
+
* Obsolete. Use `options.allow` instead.
|
8410
8434
|
*/
|
8411
|
-
cancel
|
8435
|
+
cancel?: boolean;
|
8412
8436
|
/**
|
8413
8437
|
* Obsolete. Use `options.element` instead.
|
8414
8438
|
*/
|
@@ -8418,6 +8442,12 @@ declare module "packages/survey-core/src/survey-events-api" {
|
|
8418
8442
|
*/
|
8419
8443
|
page?: PageModel;
|
8420
8444
|
}
|
8445
|
+
export interface ScrollToTopEvent extends ScrollingElementToTopEvent {
|
8446
|
+
/**
|
8447
|
+
* A Boolean property that you can set to `false` if you want to cancel the scroll operation.
|
8448
|
+
*/
|
8449
|
+
allow: boolean;
|
8450
|
+
}
|
8421
8451
|
export interface GetQuestionTitleActionsEvent extends QuestionEventMixin, GetTitleActionsEventMixin {
|
8422
8452
|
}
|
8423
8453
|
export interface GetPanelTitleActionsEvent extends PanelEventMixin, GetTitleActionsEventMixin {
|
@@ -9751,7 +9781,7 @@ declare module "packages/survey-core/src/survey" {
|
|
9751
9781
|
import { ActionContainer } from "packages/survey-core/src/actions/container";
|
9752
9782
|
import { QuestionPanelDynamicModel } from "packages/survey-core/src/question_paneldynamic";
|
9753
9783
|
import { Notifier } from "packages/survey-core/src/notifier";
|
9754
|
-
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, GetQuestionNumberEvent, GetPageNumberEvent,
|
9784
|
+
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, GetQuestionNumberEvent, GetPageNumberEvent, GetPanelNumberEvent, GetProgressTextEvent, TextMarkdownEvent, SendResultEvent, GetResultEvent, UploadFilesEvent, DownloadFileEvent, ClearFilesEvent, LoadChoicesFromServerEvent, ProcessTextValueEvent, UpdateQuestionCssClassesEvent, UpdatePanelCssClassesEvent, UpdatePageCssClassesEvent, UpdateChoiceItemCssEvent, AfterRenderSurveyEvent, AfterRenderPageEvent, AfterRenderQuestionEvent, AfterRenderQuestionInputEvent, AfterRenderPanelEvent, FocusInQuestionEvent, FocusInPanelEvent, ShowingChoiceItemEvent, ChoicesLazyLoadEvent, GetChoiceDisplayValueEvent, MatrixRowAddedEvent, MatrixBeforeRowAddedEvent, MatrixRowRemovingEvent, MatrixRowRemovedEvent, MatrixAllowRemoveRowEvent, MatrixDetailPanelVisibleChangedEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent, MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, DynamicPanelItemValueChangedEvent, DynamicPanelGetTabTitleEvent, DynamicPanelCurrentIndexChangedEvent, CheckAnswerCorrectEvent, DragDropAllowEvent, ScrollToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent, ChoicesSearchEvent, OpenFileChooserEvent, OpenDropdownMenuEvent, ResizeEvent, ProgressTextEvent, ScrollingElementToTopEvent, IsAnswerCorrectEvent } from "packages/survey-core/src/survey-events-api";
|
9755
9785
|
import { QuestionMatrixDropdownModelBase } from "packages/survey-core/src/question_matrixdropdownbase";
|
9756
9786
|
import { QuestionMatrixDynamicModel } from "packages/survey-core/src/question_matrixdynamic";
|
9757
9787
|
import { QuestionFileModel } from "packages/survey-core/src/question_file";
|
@@ -10068,9 +10098,16 @@ declare module "packages/survey-core/src/survey" {
|
|
10068
10098
|
*/
|
10069
10099
|
onGetQuestionNumber: EventBase<SurveyModel, GetQuestionNumberEvent>;
|
10070
10100
|
/**
|
10071
|
-
*
|
10101
|
+
* Obsolete. Use the [`onGetQuestionNumber`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetQuestionNumber) event instead.
|
10102
|
+
* @deprecated
|
10072
10103
|
*/
|
10073
10104
|
onGetQuestionNo: EventBase<SurveyModel, GetQuestionNumberEvent>;
|
10105
|
+
/**
|
10106
|
+
* An event that is raised before the survey calculates a panel number. Handle this event to modify panel numbers.
|
10107
|
+
*
|
10108
|
+
* This event is raised only for the panels with a [specified title](https://surveyjs.io/form-library/documentation/api-reference/panel-model#title) and [visible number](https://surveyjs.io/form-library/documentation/api-reference/panel-model#showNumber).
|
10109
|
+
*/
|
10110
|
+
onGetPanelNumber: EventBase<SurveyModel, GetPanelNumberEvent>;
|
10074
10111
|
/**
|
10075
10112
|
* An event that is raised before the survey calculates a page number. Handle this event to modify page numbers.
|
10076
10113
|
*
|
@@ -10086,6 +10123,11 @@ declare module "packages/survey-core/src/survey" {
|
|
10086
10123
|
* @see showProgressBar
|
10087
10124
|
* @see progressBarType
|
10088
10125
|
*/
|
10126
|
+
onGetProgressText: EventBase<SurveyModel, GetProgressTextEvent>;
|
10127
|
+
/**
|
10128
|
+
* Obsolete. Use the [`onGetProgressText`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetProgressText) event instead.
|
10129
|
+
* @deprecated
|
10130
|
+
*/
|
10089
10131
|
onProgressText: EventBase<SurveyModel, ProgressTextEvent>;
|
10090
10132
|
/**
|
10091
10133
|
* An event that is raised to convert Markdown content to HTML.
|
@@ -10288,7 +10330,8 @@ declare module "packages/survey-core/src/survey" {
|
|
10288
10330
|
*/
|
10289
10331
|
onMatrixRowAdding: EventBase<SurveyModel, MatrixBeforeRowAddedEvent>;
|
10290
10332
|
/**
|
10291
|
-
*
|
10333
|
+
* Obsolete. Use the [`onMatrixRowAdding`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRowAdding) event instead.
|
10334
|
+
* @deprecated
|
10292
10335
|
*/
|
10293
10336
|
onMatrixBeforeRowAdded: EventBase<SurveyModel, MatrixBeforeRowAddedEvent>;
|
10294
10337
|
/**
|
@@ -10308,7 +10351,8 @@ declare module "packages/survey-core/src/survey" {
|
|
10308
10351
|
*/
|
10309
10352
|
onMatrixRenderRemoveButton: EventBase<SurveyModel, MatrixAllowRemoveRowEvent>;
|
10310
10353
|
/**
|
10311
|
-
*
|
10354
|
+
* Obsolete. Use the [`onMatrixRenderRemoveButton`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onMatrixRenderRemoveButton) event instead.
|
10355
|
+
* @deprecated
|
10312
10356
|
*/
|
10313
10357
|
onMatrixAllowRemoveRow: EventBase<SurveyModel, MatrixAllowRemoveRowEvent>;
|
10314
10358
|
/**
|
@@ -10331,7 +10375,8 @@ declare module "packages/survey-core/src/survey" {
|
|
10331
10375
|
*/
|
10332
10376
|
onAfterRenderMatrixCell: EventBase<SurveyModel, MatrixAfterCellRenderEvent>;
|
10333
10377
|
/**
|
10334
|
-
*
|
10378
|
+
* Obsolete. Use the [`onAfterRenderMatrixCell`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onAfterRenderMatrixCell) event instead.
|
10379
|
+
* @deprecated
|
10335
10380
|
*/
|
10336
10381
|
onMatrixAfterCellRender: EventBase<SurveyModel, MatrixAfterCellRenderEvent>;
|
10337
10382
|
/**
|
@@ -10405,6 +10450,11 @@ declare module "packages/survey-core/src/survey" {
|
|
10405
10450
|
/**
|
10406
10451
|
* 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).
|
10407
10452
|
*/
|
10453
|
+
onCheckAnswerCorrect: EventBase<SurveyModel, CheckAnswerCorrectEvent>;
|
10454
|
+
/**
|
10455
|
+
* Obsolete. Use the [`onCheckAnswerCorrect`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onCheckAnswerCorrect) event instead.
|
10456
|
+
* @deprecated
|
10457
|
+
*/
|
10408
10458
|
onIsAnswerCorrect: EventBase<SurveyModel, IsAnswerCorrectEvent>;
|
10409
10459
|
/**
|
10410
10460
|
* An event that is raised when users drag and drop survey elements while designing the survey in [Survey Creator](https://surveyjs.io/survey-creator/documentation/overview). Use this event to control drag and drop operations.
|
@@ -10414,6 +10464,11 @@ declare module "packages/survey-core/src/survey" {
|
|
10414
10464
|
/**
|
10415
10465
|
* An event this is raised before a survey element (usually page) is scrolled to the top. Use this event to cancel the scroll operation.
|
10416
10466
|
*/
|
10467
|
+
onScrollToTop: EventBase<SurveyModel, ScrollToTopEvent>;
|
10468
|
+
/**
|
10469
|
+
* Obsolete. Use the [`onScrollToTop`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onScrollToTop) event instead.
|
10470
|
+
* @deprecated
|
10471
|
+
*/
|
10417
10472
|
onScrollingElementToTop: EventBase<SurveyModel, ScrollingElementToTopEvent>;
|
10418
10473
|
onLocaleChangedEvent: EventBase<SurveyModel, {}>;
|
10419
10474
|
/**
|
@@ -10453,10 +10508,7 @@ declare module "packages/survey-core/src/survey" {
|
|
10453
10508
|
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
10454
10509
|
*/
|
10455
10510
|
onGetMatrixRowActions: EventBase<SurveyModel, GetMatrixRowActionsEvent>;
|
10456
|
-
|
10457
|
-
* An event that is raised after a survey element is [expanded or collapsed](https://surveyjs.io/form-library/documentation/api-reference/question#state).
|
10458
|
-
*/
|
10459
|
-
onElementContentVisibilityChanged: EventBase<SurveyModel, ElementContentVisibilityChangedEvent>;
|
10511
|
+
onElementContentVisibilityChanged: EventBase<SurveyModel, any>;
|
10460
10512
|
/**
|
10461
10513
|
* An event that is raised before an [Expression](https://surveyjs.io/form-library/documentation/api-reference/expression-model) question displays a value. Use this event to override the display value.
|
10462
10514
|
*/
|
@@ -10524,7 +10576,8 @@ declare module "packages/survey-core/src/survey" {
|
|
10524
10576
|
containerCss: string;
|
10525
10577
|
fitToContainer: boolean;
|
10526
10578
|
/**
|
10527
|
-
*
|
10579
|
+
* Obsolete. Use the [`headerView`](https://surveyjs.io/form-library/documentation/api-reference/itheme#headerView) property within a theme instead.
|
10580
|
+
* @deprecated
|
10528
10581
|
*/
|
10529
10582
|
headerView: "advanced" | "basic";
|
10530
10583
|
protected insertAdvancedHeader(advHeader: Cover): void;
|
@@ -11218,6 +11271,7 @@ declare module "packages/survey-core/src/survey" {
|
|
11218
11271
|
get locQuestionTitleTemplate(): LocalizableString;
|
11219
11272
|
getUpdatedQuestionTitle(question: Question, title: string): string;
|
11220
11273
|
getUpdatedQuestionNo(question: Question, no: string): string;
|
11274
|
+
getUpdatedPanelNo(panel: PanelModel, no: string): string;
|
11221
11275
|
getUpdatedPageNo(page: PageModel, no: string): string;
|
11222
11276
|
/**
|
11223
11277
|
* Specifies whether page titles contain page numbers.
|
@@ -11664,7 +11718,8 @@ declare module "packages/survey-core/src/survey" {
|
|
11664
11718
|
*/
|
11665
11719
|
deleteCookie(): void;
|
11666
11720
|
/**
|
11667
|
-
*
|
11721
|
+
* Obsolete. Use the [`validationEnabled`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#validationEnabled) property instead.
|
11722
|
+
* @deprecated
|
11668
11723
|
*/
|
11669
11724
|
get ignoreValidation(): boolean;
|
11670
11725
|
set ignoreValidation(val: boolean);
|
@@ -11773,6 +11828,11 @@ declare module "packages/survey-core/src/survey" {
|
|
11773
11828
|
* @see isCurrentPageValid
|
11774
11829
|
* @see nextPage
|
11775
11830
|
*/
|
11831
|
+
tryComplete(): boolean;
|
11832
|
+
/**
|
11833
|
+
* Obsolete. Use the [`tryComplete`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#tryComplete) method instead.
|
11834
|
+
* @deprecated
|
11835
|
+
*/
|
11776
11836
|
completeLastPage(): boolean;
|
11777
11837
|
private isNavigationButtonPressed;
|
11778
11838
|
navigationMouseDown(): boolean;
|
@@ -11946,7 +12006,7 @@ declare module "packages/survey-core/src/survey" {
|
|
11946
12006
|
get processedLoadingHtml(): string;
|
11947
12007
|
getProgressInfo(): IProgressInfo;
|
11948
12008
|
/**
|
11949
|
-
* Returns text displayed by the progress bar (for instance, "Page 2 of 3" or "Answered 3/8 questions"). Handle the [`
|
12009
|
+
* Returns text displayed by the progress bar (for instance, "Page 2 of 3" or "Answered 3/8 questions"). Handle the [`onGetProgressText`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetProgressText) event to change this text.
|
11950
12010
|
* @see progressValue
|
11951
12011
|
* @see showProgressBar
|
11952
12012
|
* @see progressBarType
|
@@ -12027,6 +12087,7 @@ declare module "packages/survey-core/src/survey" {
|
|
12027
12087
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
12028
12088
|
getUpdatedPanelFooterActions(panel: PanelModel, actions: Array<IAction>, question?: QuestionPanelDynamicModel): Array<IAction>;
|
12029
12089
|
getUpdatedElementTitleActions(element: ISurveyElement, titleActions: Array<IAction>): Array<IAction>;
|
12090
|
+
private getTitleActionsResult;
|
12030
12091
|
private getUpdatedQuestionTitleActions;
|
12031
12092
|
private getUpdatedPanelTitleActions;
|
12032
12093
|
private getUpdatedPageTitleActions;
|
@@ -12142,13 +12203,6 @@ declare module "packages/survey-core/src/survey" {
|
|
12142
12203
|
*/
|
12143
12204
|
getQuestionsByValueName(valueName: string, caseInsensitive?: boolean): Array<Question>;
|
12144
12205
|
getCalculatedValueByName(name: string): CalculatedValue;
|
12145
|
-
/**
|
12146
|
-
* Returns an array of questions with specified [names](https://surveyjs.io/form-library/documentation/api-reference/question#name).
|
12147
|
-
* @param names An array of question names.
|
12148
|
-
* @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).
|
12149
|
-
* @returns An array of questions with specified names
|
12150
|
-
* @see getAllQuestions
|
12151
|
-
*/
|
12152
12206
|
getQuestionsByNames(names: string[], caseInsensitive?: boolean): IQuestion[];
|
12153
12207
|
/**
|
12154
12208
|
* Returns a page to which a specified survey element (question or panel) belongs.
|
@@ -12165,10 +12219,6 @@ declare module "packages/survey-core/src/survey" {
|
|
12165
12219
|
* @param name A page [name](https://surveyjs.io/form-library/documentation/api-reference/page-model#name).
|
12166
12220
|
*/
|
12167
12221
|
getPageByName(name: string): PageModel;
|
12168
|
-
/**
|
12169
|
-
* Returns an array of pages with specified names.
|
12170
|
-
* @param names An array of page names.
|
12171
|
-
*/
|
12172
12222
|
getPagesByNames(names: string[]): PageModel[];
|
12173
12223
|
/**
|
12174
12224
|
* Returns a list of all [questions](https://surveyjs.io/form-library/documentation/api-reference/question) in the survey.
|
@@ -12420,7 +12470,7 @@ declare module "packages/survey-core/src/survey" {
|
|
12420
12470
|
* For more information about quizzes, refer to the following tutorial: [Create a Quiz](https://surveyjs.io/form-library/documentation/design-survey/create-a-quiz).
|
12421
12471
|
* @returns The number of correct answers in a quiz.
|
12422
12472
|
* @see getQuizQuestionCount
|
12423
|
-
* @see
|
12473
|
+
* @see getIncorrectAnswerCount
|
12424
12474
|
*/
|
12425
12475
|
getCorrectAnswerCount(): number;
|
12426
12476
|
/**
|
@@ -12434,6 +12484,7 @@ declare module "packages/survey-core/src/survey" {
|
|
12434
12484
|
*/
|
12435
12485
|
getQuizQuestionCount(): number;
|
12436
12486
|
getInCorrectedAnswerCount(): number;
|
12487
|
+
getInCorrectAnswerCount(): number;
|
12437
12488
|
/**
|
12438
12489
|
* Returns the number of incorrect answers in a quiz.
|
12439
12490
|
*
|
@@ -12441,7 +12492,7 @@ declare module "packages/survey-core/src/survey" {
|
|
12441
12492
|
* @returns The number of incorrect answers in a quiz.
|
12442
12493
|
* @see getCorrectAnswerCount
|
12443
12494
|
*/
|
12444
|
-
|
12495
|
+
getIncorrectAnswerCount(): number;
|
12445
12496
|
onCorrectQuestionAnswer(question: IQuestion, options: any): void;
|
12446
12497
|
private getCorrectedAnswerCountCore;
|
12447
12498
|
getCorrectedAnswers(): number;
|
@@ -12504,6 +12555,7 @@ declare module "packages/survey-core/src/survey" {
|
|
12504
12555
|
get showTimerPanelMode(): string;
|
12505
12556
|
set showTimerPanelMode(val: string);
|
12506
12557
|
gridLayoutEnabled: boolean;
|
12558
|
+
updateGridColumns(): void;
|
12507
12559
|
/**
|
12508
12560
|
* Specifies how to calculate the survey width.
|
12509
12561
|
*
|
@@ -13967,7 +14019,7 @@ declare module "packages/survey-core/src/question" {
|
|
13967
14019
|
/**
|
13968
14020
|
* A correct answer to this question. Specify this property if you want to [create a quiz](https://surveyjs.io/form-library/documentation/design-survey-create-a-quiz).
|
13969
14021
|
* @see SurveyModel.getCorrectAnswerCount
|
13970
|
-
* @see SurveyModel.
|
14022
|
+
* @see SurveyModel.getIncorrectAnswerCount
|
13971
14023
|
*/
|
13972
14024
|
get correctAnswer(): any;
|
13973
14025
|
set correctAnswer(val: any);
|
@@ -15093,6 +15145,7 @@ declare module "packages/survey-core/src/base-interfaces" {
|
|
15093
15145
|
questionTitlePattern: string;
|
15094
15146
|
getUpdatedQuestionTitle(question: IQuestion, title: string): string;
|
15095
15147
|
getUpdatedQuestionNo(question: IQuestion, no: string): string;
|
15148
|
+
getUpdatedPanelNo(question: IPanel, no: string): string;
|
15096
15149
|
getUpdatedPageNo(question: IPage, no: string): string;
|
15097
15150
|
getUpdatedElementTitleActions(element: ISurveyElement, titleActions: Array<IAction>): Array<IAction>;
|
15098
15151
|
getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: MatrixDropdownRowModelBase, actions: Array<IAction>): Array<IAction>;
|
@@ -17965,6 +18018,7 @@ declare module "packages/survey-core/src/question_imagepicker" {
|
|
17965
18018
|
*/
|
17966
18019
|
get imageHeight(): number;
|
17967
18020
|
set imageHeight(val: number);
|
18021
|
+
get imageScale(): number;
|
17968
18022
|
private responsiveImageHeight;
|
17969
18023
|
get renderedImageHeight(): number;
|
17970
18024
|
/**
|