survey-react 1.12.2 → 1.12.4
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 +65 -50
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +69 -84
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +59 -24
- package/survey.css.map +1 -1
- package/survey.min.css +2 -2
- package/survey.react.d.ts +102 -42
- package/survey.react.js +624 -279
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -57,7 +57,7 @@ declare module "packages/survey-core/src/helpers" {
|
|
57
57
|
private static prepareStringToNumber;
|
58
58
|
static getMaxLength(maxLength: number, surveyLength: number): any;
|
59
59
|
static getRemainingCharacterCounterText(newValue: string | undefined, maxLength: number | null): string;
|
60
|
-
static getNumberByIndex(index: number, startIndexStr: string): string;
|
60
|
+
static getNumberByIndex(index: number, startIndexStr: string, parentIndex?: number): string;
|
61
61
|
static isCharNotLetterAndDigit(ch: string): boolean;
|
62
62
|
static isCharDigit(ch: string): boolean;
|
63
63
|
private static getNumberFromStr;
|
@@ -889,7 +889,7 @@ declare module "packages/survey-core/src/utils/utils" {
|
|
889
889
|
const getElement: (element: HTMLElement | string) => HTMLElement;
|
890
890
|
function isElementVisible(element: HTMLElement, threshold?: number): boolean;
|
891
891
|
function findScrollableParent(element: HTMLElement): HTMLElement;
|
892
|
-
function
|
892
|
+
function activateLazyRenderingChecks(id: string): void;
|
893
893
|
function navigateToUrl(url: string): void;
|
894
894
|
function wrapUrlForBackgroundImage(url: string): string;
|
895
895
|
function getIconNameFromProxy(iconName: string): string;
|
@@ -948,7 +948,7 @@ declare module "packages/survey-core/src/utils/utils" {
|
|
948
948
|
export function prepareElementForVerticalAnimation(el: HTMLElement): void;
|
949
949
|
export function cleanHtmlElementAfterAnimation(el: HTMLElement): void;
|
950
950
|
export function roundTo2Decimals(number: number): number;
|
951
|
-
export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent,
|
951
|
+
export { mergeValues, 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 };
|
952
952
|
}
|
953
953
|
declare module "packages/survey-core/src/actions/container" {
|
954
954
|
import { Base } from "packages/survey-core/src/base";
|
@@ -1603,7 +1603,6 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
|
|
1603
1603
|
titleExpanded: string;
|
1604
1604
|
titleCollapsed: string;
|
1605
1605
|
titleDisabled: string;
|
1606
|
-
titleHidden: string;
|
1607
1606
|
titleOnExpand: string;
|
1608
1607
|
titleOnError: string;
|
1609
1608
|
titleBar: string;
|
@@ -1616,7 +1615,6 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
|
|
1616
1615
|
footer: string;
|
1617
1616
|
requiredText: string;
|
1618
1617
|
header: string;
|
1619
|
-
headerHidden: string;
|
1620
1618
|
collapsed: string;
|
1621
1619
|
expanded: string;
|
1622
1620
|
expandable: string;
|
@@ -2310,6 +2308,7 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
|
|
2310
2308
|
rootSelectToRankEmptyValueMod: string;
|
2311
2309
|
rootSelectToRankAlignVertical: string;
|
2312
2310
|
rootSelectToRankAlignHorizontal: string;
|
2311
|
+
rootSelectToRankSwapAreas: string;
|
2313
2312
|
item: string;
|
2314
2313
|
itemContent: string;
|
2315
2314
|
itemIndex: string;
|
@@ -2633,7 +2632,7 @@ declare module "packages/survey-core/src/panel-layout-column" {
|
|
2633
2632
|
declare module "packages/survey-core/src/textPreProcessor" {
|
2634
2633
|
import { Question } from "packages/survey-core/src/question";
|
2635
2634
|
import { PanelModel } from "packages/survey-core/src/panel";
|
2636
|
-
import { ISurvey, ITextProcessor } from "packages/survey-core/src/base-interfaces";
|
2635
|
+
import { ISurvey, ITextProcessor, ITextProcessorProp, ITextProcessorResult } from "packages/survey-core/src/base-interfaces";
|
2637
2636
|
export class TextPreProcessorItem {
|
2638
2637
|
start: number;
|
2639
2638
|
end: number;
|
@@ -2671,7 +2670,7 @@ declare module "packages/survey-core/src/textPreProcessor" {
|
|
2671
2670
|
protected getQuestionDisplayText(question: Question): string;
|
2672
2671
|
private getProcessedTextValue;
|
2673
2672
|
processText(text: string, returnDisplayValue: boolean): string;
|
2674
|
-
processTextEx(
|
2673
|
+
processTextEx(params: ITextProcessorProp): ITextProcessorResult;
|
2675
2674
|
private processTextCore;
|
2676
2675
|
}
|
2677
2676
|
}
|
@@ -3208,6 +3207,7 @@ declare module "packages/survey-core/src/question_custom" {
|
|
3208
3207
|
private setValuesIntoQuestions;
|
3209
3208
|
protected getDisplayValueCore(keyAsText: boolean, value: any): any;
|
3210
3209
|
private setAfterRenderCallbacks;
|
3210
|
+
get ariaRole(): string;
|
3211
3211
|
}
|
3212
3212
|
}
|
3213
3213
|
declare module "packages/survey-core/src/questionfactory" {
|
@@ -3289,6 +3289,7 @@ declare module "packages/survey-core/src/panel" {
|
|
3289
3289
|
private static getRowId;
|
3290
3290
|
protected _scrollableParent: any;
|
3291
3291
|
protected _updateVisibility: any;
|
3292
|
+
private get allowRendering();
|
3292
3293
|
startLazyRendering(rowContainerDiv: HTMLElement, findScrollableContainer?: typeof findScrollableParent): void;
|
3293
3294
|
ensureVisibility(): void;
|
3294
3295
|
stopLazyRendering(): void;
|
@@ -3352,6 +3353,8 @@ declare module "packages/survey-core/src/panel" {
|
|
3352
3353
|
setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
|
3353
3354
|
endLoadingFromJson(): void;
|
3354
3355
|
showTitle: boolean;
|
3356
|
+
hasTextInTitle: boolean;
|
3357
|
+
protected calcHasTextInTitle(): void;
|
3355
3358
|
get hasTitle(): boolean;
|
3356
3359
|
delete(doDispose?: boolean): void;
|
3357
3360
|
private deletePanel;
|
@@ -3591,6 +3594,8 @@ declare module "packages/survey-core/src/panel" {
|
|
3591
3594
|
getProgressInfo(): IProgressInfo;
|
3592
3595
|
get root(): PanelModelBase;
|
3593
3596
|
protected childVisibilityChanged(): void;
|
3597
|
+
protected canRenderFirstRows(): boolean;
|
3598
|
+
private isLazyRenderInRow;
|
3594
3599
|
createRowAndSetLazy(index: number): QuestionRowModel;
|
3595
3600
|
createRow(): QuestionRowModel;
|
3596
3601
|
onSurveyLoad(): void;
|
@@ -3612,12 +3617,14 @@ declare module "packages/survey-core/src/panel" {
|
|
3612
3617
|
private updateRowsVisibility;
|
3613
3618
|
canBuildRows(): boolean;
|
3614
3619
|
private buildRows;
|
3615
|
-
private isLazyRenderInRow;
|
3616
|
-
protected canRenderFirstRows(): boolean;
|
3617
3620
|
getDragDropInfo(): any;
|
3618
3621
|
private updateRowsOnElementRemoved;
|
3619
3622
|
updateRowsRemoveElementFromRow(element: IElement, row: QuestionRowModel): void;
|
3620
|
-
|
3623
|
+
getAllRows(): Array<QuestionRowModel>;
|
3624
|
+
private findRowAndIndexByElement;
|
3625
|
+
private forceRenderRow;
|
3626
|
+
forceRenderElement(el: IElement, elementsRendered?: () => void, gap?: number): void;
|
3627
|
+
forceRenderRows(rows: Array<QuestionRowModel>, elementsRendered?: () => void): void;
|
3621
3628
|
findRowByElement(el: IElement): QuestionRowModel;
|
3622
3629
|
elementWidthChanged(el: IElement): void;
|
3623
3630
|
get processedTitle(): string;
|
@@ -3754,11 +3761,8 @@ declare module "packages/survey-core/src/panel" {
|
|
3754
3761
|
getType(): string;
|
3755
3762
|
get contentId(): string;
|
3756
3763
|
getSurvey(live?: boolean): ISurvey;
|
3757
|
-
get hasTextInTitle(): boolean;
|
3758
|
-
private calcHasTextInTitle;
|
3759
3764
|
onSurveyLoad(): void;
|
3760
3765
|
protected onSetData(): void;
|
3761
|
-
get cssHeader(): string;
|
3762
3766
|
get isPanel(): boolean;
|
3763
3767
|
/**
|
3764
3768
|
* Returns a page to which the panel belongs and allows you to move this panel to a different page.
|
@@ -3826,6 +3830,7 @@ declare module "packages/survey-core/src/panel" {
|
|
3826
3830
|
protected createLocTitleProperty(): LocalizableString;
|
3827
3831
|
protected beforeSetVisibleIndex(index: number): number;
|
3828
3832
|
protected getPanelStartIndex(index: number): number;
|
3833
|
+
private hasParentInQuestionIndex;
|
3829
3834
|
protected isContinueNumbering(): boolean;
|
3830
3835
|
private notifySurveyOnVisibilityChanged;
|
3831
3836
|
protected getRenderedTitle(str: string): string;
|
@@ -4666,7 +4671,7 @@ declare module "packages/survey-core/src/question_baseselect" {
|
|
4666
4671
|
* }
|
4667
4672
|
* ```
|
4668
4673
|
*
|
4669
|
-
* To enable Markdown support for the `text` 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
|
4674
|
+
* To enable Markdown support for the `text` 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 markdown-it](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
|
4670
4675
|
*
|
4671
4676
|
* If you add custom properties, refer to the following help topic to learn how to serialize them into JSON: [Add Custom Properties to Property Grid](https://surveyjs.io/survey-creator/documentation/property-grid#add-custom-properties-to-the-property-grid).
|
4672
4677
|
*
|
@@ -6812,6 +6817,7 @@ declare module "packages/survey-core/src/question_paneldynamic" {
|
|
6812
6817
|
*/
|
6813
6818
|
get minPanelCount(): number;
|
6814
6819
|
set minPanelCount(val: number);
|
6820
|
+
private onMinPanelCountChanged;
|
6815
6821
|
/**
|
6816
6822
|
* A maximum number of panels in Dynamic Panel. Users cannot add new panels if `panelCount` equals `maxPanelCount`.
|
6817
6823
|
*
|
@@ -6822,6 +6828,7 @@ declare module "packages/survey-core/src/question_paneldynamic" {
|
|
6822
6828
|
*/
|
6823
6829
|
get maxPanelCount(): number;
|
6824
6830
|
set maxPanelCount(val: number);
|
6831
|
+
private onMaxPanelCountChanged;
|
6825
6832
|
/**
|
6826
6833
|
* Specifies whether users are allowed to add new panels.
|
6827
6834
|
*
|
@@ -8429,6 +8436,7 @@ declare module "packages/survey-core/src/page" {
|
|
8429
8436
|
get cssRequiredText(): string;
|
8430
8437
|
protected canShowPageNumber(): boolean;
|
8431
8438
|
protected canShowTitle(): boolean;
|
8439
|
+
protected setTitleValue(val: string): void;
|
8432
8440
|
/**
|
8433
8441
|
* A caption displayed on a navigation button in the TOC or progress bar. Applies when [`showTOC`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showTOC) is `true` or when the [progress bar is visible](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showProgressBar), [`progressBarType`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarType) is set to `"pages"`, and [`progressBarShowPageTitles`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarShowPageTitles) is `true`.
|
8434
8442
|
*
|
@@ -8443,6 +8451,7 @@ declare module "packages/survey-core/src/page" {
|
|
8443
8451
|
set navigationDescription(val: string);
|
8444
8452
|
get locNavigationDescription(): LocalizableString;
|
8445
8453
|
navigationLocStrChanged(): void;
|
8454
|
+
getMarkdownHtml(text: string, name: string): string;
|
8446
8455
|
get passed(): boolean;
|
8447
8456
|
set passed(val: boolean);
|
8448
8457
|
protected removeFromParent(): void;
|
@@ -9278,7 +9287,7 @@ declare module "packages/survey-core/src/question_multipletext" {
|
|
9278
9287
|
* }
|
9279
9288
|
* ```
|
9280
9289
|
*
|
9281
|
-
* 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
|
9290
|
+
* 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 markdown-it](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
|
9282
9291
|
* @see itemTitleWidth
|
9283
9292
|
* @see addItem
|
9284
9293
|
*/
|
@@ -9436,6 +9445,7 @@ declare module "packages/survey-core/src/header" {
|
|
9436
9445
|
cells: CoverCell[];
|
9437
9446
|
actualHeight: number;
|
9438
9447
|
height: number;
|
9448
|
+
mobileHeight: number;
|
9439
9449
|
inheritWidthFrom: "survey" | "container";
|
9440
9450
|
textAreaWidth: number;
|
9441
9451
|
textGlowEnabled: boolean;
|
@@ -9575,7 +9585,7 @@ declare module "packages/survey-core/src/surveyToc" {
|
|
9575
9585
|
declare module "packages/survey-core/src/survey" {
|
9576
9586
|
import { JsonError } from "packages/survey-core/src/jsonobject";
|
9577
9587
|
import { Base, EventBase } from "packages/survey-core/src/base";
|
9578
|
-
import { ISurvey, ISurveyData, ISurveyImpl, ITextProcessor, IQuestion, IPanel, IElement, IPage, ISurveyErrorOwner, ISurveyElement, IProgressInfo, IFindElement, ISurveyLayoutElement, IPlainDataOptions, LayoutElementContainer, IValueItemCustomPropValues, ILoadFromJSONOptions, IDropdownMenuOptions } from "packages/survey-core/src/base-interfaces";
|
9588
|
+
import { ISurvey, ISurveyData, ISurveyImpl, ITextProcessor, IQuestion, IPanel, IElement, IPage, ISurveyErrorOwner, ISurveyElement, IProgressInfo, IFindElement, ISurveyLayoutElement, IPlainDataOptions, LayoutElementContainer, IValueItemCustomPropValues, ILoadFromJSONOptions, IDropdownMenuOptions, ITextProcessorProp, ITextProcessorResult } from "packages/survey-core/src/base-interfaces";
|
9579
9589
|
import { SurveyElementCore } from "packages/survey-core/src/survey-element";
|
9580
9590
|
import { ISurveyTriggerOwner, SurveyTrigger, Trigger } from "packages/survey-core/src/trigger";
|
9581
9591
|
import { CalculatedValue } from "packages/survey-core/src/calculatedValue";
|
@@ -10371,7 +10381,10 @@ declare module "packages/survey-core/src/survey" {
|
|
10371
10381
|
lazyRenderingFirstBatchSizeValue: number;
|
10372
10382
|
get lazyRenderingFirstBatchSize(): number;
|
10373
10383
|
set lazyRenderingFirstBatchSize(val: number);
|
10374
|
-
|
10384
|
+
protected _isLazyRenderingSuspended: boolean;
|
10385
|
+
get isLazyRenderingSuspended(): boolean;
|
10386
|
+
protected suspendLazyRendering(): void;
|
10387
|
+
protected releaseLazyRendering(): void;
|
10375
10388
|
private updateLazyRenderingRowsOnRemovingElements;
|
10376
10389
|
/**
|
10377
10390
|
* A list of triggers in the survey.
|
@@ -10918,8 +10931,9 @@ declare module "packages/survey-core/src/survey" {
|
|
10918
10931
|
/**
|
10919
10932
|
* Calculates a given [expression](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions) and returns a result value.
|
10920
10933
|
* @param expression An expression to calculate.
|
10934
|
+
* @param callback A callback function that you can use to access the calculation result if the expression uses asynchronous functions.
|
10921
10935
|
*/
|
10922
|
-
runExpression(expression: string): any;
|
10936
|
+
runExpression(expression: string, callback?: (res: any) => void): any;
|
10923
10937
|
/**
|
10924
10938
|
* Calculates a given [expression](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions) and returns `true` or `false`.
|
10925
10939
|
* @param expression An expression to calculate.
|
@@ -11820,7 +11834,8 @@ declare module "packages/survey-core/src/survey" {
|
|
11820
11834
|
private getUpdatedPanelTitleActions;
|
11821
11835
|
private getUpdatedPageTitleActions;
|
11822
11836
|
getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: any, actions: Array<IAction>): IAction[];
|
11823
|
-
|
11837
|
+
skeletonHeight: number;
|
11838
|
+
scrollElementToTop(element: ISurveyElement, question: Question, page: PageModel, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, passedRootElement?: HTMLElement): any;
|
11824
11839
|
/**
|
11825
11840
|
* Opens a dialog window for users to select files.
|
11826
11841
|
* @param input A [file input HTML element](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement).
|
@@ -12192,10 +12207,9 @@ declare module "packages/survey-core/src/survey" {
|
|
12192
12207
|
validatePanel(panel: PanelModel): SurveyError;
|
12193
12208
|
processHtml(html: string, reason?: string): string;
|
12194
12209
|
processText(text: string, returnDisplayValue: boolean): string;
|
12195
|
-
processTextEx(
|
12210
|
+
processTextEx(params: ITextProcessorProp): ITextProcessorResult;
|
12196
12211
|
private textPreProcessorValue;
|
12197
12212
|
private get textPreProcessor();
|
12198
|
-
private processTextCore;
|
12199
12213
|
getSurveyMarkdownHtml(element: Question | PanelModel | PageModel | SurveyModel, text: string, name: string): string;
|
12200
12214
|
getCorrectedAnswerCount(): number;
|
12201
12215
|
/**
|
@@ -12501,6 +12515,7 @@ declare module "packages/survey-core/src/survey-element" {
|
|
12501
12515
|
set title(val: string);
|
12502
12516
|
get locTitle(): LocalizableString;
|
12503
12517
|
protected getDefaultTitleValue(): string;
|
12518
|
+
protected setTitleValue(val: string): void;
|
12504
12519
|
/**
|
12505
12520
|
* Returns `true` if the survey element has a description.
|
12506
12521
|
* @see description
|
@@ -12562,8 +12577,8 @@ declare module "packages/survey-core/src/survey-element" {
|
|
12562
12577
|
dragTypeOverMe: DragTypeOverMeEnum;
|
12563
12578
|
isDragMe: boolean;
|
12564
12579
|
readOnlyChangedCallback: () => void;
|
12565
|
-
static ScrollElementToTop(elementId: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): boolean;
|
12566
|
-
static ScrollElementToViewCore(el: HTMLElement, checkLeft: boolean, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): boolean;
|
12580
|
+
static ScrollElementToTop(elementId: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, doneCallback?: () => void): boolean;
|
12581
|
+
static ScrollElementToViewCore(el: HTMLElement, checkLeft: boolean, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, doneCallback?: () => void): boolean;
|
12567
12582
|
static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
|
12568
12583
|
static FocusElement(elementId: string): boolean;
|
12569
12584
|
private static focusElementCore;
|
@@ -12680,6 +12695,7 @@ declare module "packages/survey-core/src/survey-element" {
|
|
12680
12695
|
get survey(): ISurvey;
|
12681
12696
|
getSurvey(live?: boolean): ISurvey;
|
12682
12697
|
protected setSurveyCore(value: ISurvey): void;
|
12698
|
+
get skeletonHeight(): string;
|
12683
12699
|
isContentElement: boolean;
|
12684
12700
|
isEditableTemplateElement: boolean;
|
12685
12701
|
isInteractiveDesignElement: boolean;
|
@@ -13473,6 +13489,8 @@ declare module "packages/survey-core/src/question" {
|
|
13473
13489
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
13474
13490
|
*
|
13475
13491
|
* Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
|
13492
|
+
*
|
13493
|
+
* [View Demo](https://surveyjs.io/form-library/examples/how-to-conditionally-make-input-field-read-only/ (linkStyle))
|
13476
13494
|
* @see readOnly
|
13477
13495
|
* @see isReadOnly
|
13478
13496
|
*/
|
@@ -13480,6 +13498,8 @@ declare module "packages/survey-core/src/question" {
|
|
13480
13498
|
set enableIf(val: string);
|
13481
13499
|
surveyChoiceItemVisibilityChange(): void;
|
13482
13500
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
13501
|
+
get isInDesignMode(): boolean;
|
13502
|
+
get isInDesignModeV2(): boolean;
|
13483
13503
|
/**
|
13484
13504
|
* A question number or letter (depends on the `questionStartIndex` property of the question container (panel, page, or survey)).
|
13485
13505
|
*
|
@@ -13512,7 +13532,7 @@ declare module "packages/survey-core/src/question" {
|
|
13512
13532
|
*
|
13513
13533
|
* | Question type | Value type(s) |
|
13514
13534
|
* | ------------- | ------------- |
|
13515
|
-
* | Checkboxes |
|
13535
|
+
* | Checkboxes | <code>Array<string | number></code> |
|
13516
13536
|
* | Dropdown | `string` \| `number` |
|
13517
13537
|
* | Dynamic Matrix | `Array<object>` |
|
13518
13538
|
* | Dynamic Panel | `Array<object>` |
|
@@ -13520,14 +13540,14 @@ declare module "packages/survey-core/src/question" {
|
|
13520
13540
|
* | File Upload | `File` \| `Array<File>` |
|
13521
13541
|
* | HTML | (no value) |
|
13522
13542
|
* | Image | (no value) |
|
13523
|
-
* | Image Picker |
|
13543
|
+
* | Image Picker | <code>Array<string | number></code> |
|
13524
13544
|
* | Long Text | `string` |
|
13525
13545
|
* | Multi-Select Dropdown | `object` |
|
13526
13546
|
* | Multi-Select Matrix | `object` |
|
13527
13547
|
* | Multiple Textboxes | `Array<string>` |
|
13528
13548
|
* | Panel | (no value) |
|
13529
13549
|
* | Radio Button Group | `string` \| `number` |
|
13530
|
-
* | Ranking |
|
13550
|
+
* | Ranking | <code>Array<string | number></code> |
|
13531
13551
|
* | Rating Scale | `number` \| `string` |
|
13532
13552
|
* | Signature | `string` (base64-encoded image) |
|
13533
13553
|
* | Single-Line Input | `string` \| `number` \| `Date` |
|
@@ -13624,7 +13644,7 @@ declare module "packages/survey-core/src/question" {
|
|
13624
13644
|
*
|
13625
13645
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
13626
13646
|
*
|
13627
|
-
* [View Demo](https://surveyjs.io/form-library/examples/
|
13647
|
+
* [View Demo](https://surveyjs.io/form-library/examples/set-question-value-dynamically/ (linkStyle))
|
13628
13648
|
* @see setValueIf
|
13629
13649
|
*/
|
13630
13650
|
get resetValueIf(): string;
|
@@ -13634,7 +13654,7 @@ declare module "packages/survey-core/src/question" {
|
|
13634
13654
|
*
|
13635
13655
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
13636
13656
|
*
|
13637
|
-
* [View Demo](https://surveyjs.io/form-library/examples/
|
13657
|
+
* [View Demo](https://surveyjs.io/form-library/examples/set-question-value-dynamically/ (linkStyle))
|
13638
13658
|
* @see resetValueIf
|
13639
13659
|
*/
|
13640
13660
|
get setValueIf(): string;
|
@@ -13644,7 +13664,7 @@ declare module "packages/survey-core/src/question" {
|
|
13644
13664
|
*
|
13645
13665
|
* You can use `setValueExpression` as a standalone property or in conjunction with the [`setValueIf`](#setValueIf) expression, in which case the calculated question value applies only when `setValueIf` evaluates to `true`.
|
13646
13666
|
*
|
13647
|
-
* [View Demo](https://surveyjs.io/form-library/examples/
|
13667
|
+
* [View Demo](https://surveyjs.io/form-library/examples/set-question-value-dynamically/ (linkStyle))
|
13648
13668
|
* @see defaultValueExpression
|
13649
13669
|
* @see resetValueIf
|
13650
13670
|
*/
|
@@ -13756,7 +13776,7 @@ declare module "packages/survey-core/src/question" {
|
|
13756
13776
|
get requiredText(): string;
|
13757
13777
|
addError(error: SurveyError | string): void;
|
13758
13778
|
private addCustomError;
|
13759
|
-
removeError(error: SurveyError):
|
13779
|
+
removeError(error: SurveyError): boolean;
|
13760
13780
|
private checkForErrors;
|
13761
13781
|
protected canCollectErrors(): boolean;
|
13762
13782
|
private collectErrors;
|
@@ -14521,7 +14541,7 @@ declare module "packages/survey-core/src/question_matrixdropdownbase" {
|
|
14521
14541
|
* }
|
14522
14542
|
* ```
|
14523
14543
|
*
|
14524
|
-
* To enable Markdown support for the `text` 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
|
14544
|
+
* To enable Markdown support for the `text` 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 markdown-it](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
|
14525
14545
|
*
|
14526
14546
|
* If you add custom properties, refer to the following help topic to learn how to serialize them into JSON: [Add Custom Properties to Property Grid](https://surveyjs.io/survey-creator/documentation/property-grid#add-custom-properties-to-the-property-grid).
|
14527
14547
|
*
|
@@ -14696,9 +14716,19 @@ declare module "packages/survey-core/src/base-interfaces" {
|
|
14696
14716
|
findQuestionByName(name: string): IQuestion;
|
14697
14717
|
getEditingSurveyElement(): Base;
|
14698
14718
|
}
|
14719
|
+
export interface ITextProcessorProp {
|
14720
|
+
text: string;
|
14721
|
+
returnDisplayValue?: boolean;
|
14722
|
+
doEncoding?: boolean;
|
14723
|
+
runAtDesign?: boolean;
|
14724
|
+
}
|
14725
|
+
export interface ITextProcessorResult {
|
14726
|
+
text: string;
|
14727
|
+
hasAllValuesOnLastRun: boolean;
|
14728
|
+
}
|
14699
14729
|
export interface ITextProcessor {
|
14700
14730
|
processText(text: string, returnDisplayValue: boolean): string;
|
14701
|
-
processTextEx(
|
14731
|
+
processTextEx(params: ITextProcessorProp): ITextProcessorResult;
|
14702
14732
|
}
|
14703
14733
|
export interface ISurveyErrorOwner extends ILocalizableOwner {
|
14704
14734
|
getErrorCustomText(text: string, error: SurveyError): string;
|
@@ -14833,7 +14863,7 @@ declare module "packages/survey-core/src/base-interfaces" {
|
|
14833
14863
|
dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
|
14834
14864
|
dragAndDropAllow(options: DragDropAllowEvent): boolean;
|
14835
14865
|
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): any;
|
14836
|
-
runExpression(expression: string): any;
|
14866
|
+
runExpression(expression: string, callback?: (res: any) => void): any;
|
14837
14867
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
14838
14868
|
onCorrectQuestionAnswer(question: IQuestion, options: any): void;
|
14839
14869
|
processPopupVisiblityChanged(question: IQuestion, popupModel: PopupModel, visible: boolean): void;
|
@@ -15573,7 +15603,7 @@ declare module "packages/survey-core/src/base" {
|
|
15573
15603
|
private static currentDependencis;
|
15574
15604
|
static finishCollectDependencies(): Dependencies;
|
15575
15605
|
static startCollectDependencies(updater: () => void, target: Base, property: string): void;
|
15576
|
-
|
15606
|
+
protected static collectDependency(target: Base, property: string): void;
|
15577
15607
|
dependencies: {
|
15578
15608
|
[key: string]: ComputedUpdater;
|
15579
15609
|
};
|
@@ -15827,6 +15857,17 @@ declare module "packages/survey-core/src/base" {
|
|
15827
15857
|
get onElementRerendered(): EventBase<Base>;
|
15828
15858
|
afterRerender(): void;
|
15829
15859
|
}
|
15860
|
+
export class RenderingCompletedAwaiter {
|
15861
|
+
private _elements;
|
15862
|
+
private _renderedHandler;
|
15863
|
+
constructor(_elements: Array<Base>, _renderedHandler: () => void, waitingTimeout?: number);
|
15864
|
+
private _elementsToRenderCount;
|
15865
|
+
private _elementsToRenderTimer;
|
15866
|
+
private _elementRenderedHandler;
|
15867
|
+
private stopWaitingForElementsRendering;
|
15868
|
+
private visibleElementsRendered;
|
15869
|
+
dispose(): void;
|
15870
|
+
}
|
15830
15871
|
export class ArrayChanges<T = any> {
|
15831
15872
|
index: number;
|
15832
15873
|
deleteCount: number;
|
@@ -17001,20 +17042,27 @@ declare module "packages/survey-core/src/question_matrix" {
|
|
17001
17042
|
getRows(): Array<any>;
|
17002
17043
|
getColumns(): Array<any>;
|
17003
17044
|
}
|
17004
|
-
export class MatrixCells {
|
17045
|
+
export class MatrixCells extends Base {
|
17005
17046
|
cellsOwner: IMatrixCellsOwner;
|
17006
17047
|
private values;
|
17048
|
+
private locs;
|
17007
17049
|
constructor(cellsOwner: IMatrixCellsOwner);
|
17050
|
+
getType(): string;
|
17008
17051
|
get isEmpty(): boolean;
|
17009
17052
|
onValuesChanged: () => void;
|
17053
|
+
private locNotification;
|
17010
17054
|
private valuesChanged;
|
17011
|
-
|
17012
|
-
setDefaultCellText(column: any, val: string): void;
|
17013
|
-
getCellLocText(row: any, column: any): LocalizableString;
|
17014
|
-
getDefaultCellLocText(column: any, val: string): LocalizableString;
|
17055
|
+
getDefaultCellLocText(column: any): LocalizableString;
|
17015
17056
|
getCellDisplayLocText(row: any, column: any): LocalizableString;
|
17057
|
+
private getCellLocCore;
|
17058
|
+
private get defaultRowValue();
|
17059
|
+
private getCellLocData;
|
17060
|
+
private getCellLocDataFromValue;
|
17016
17061
|
getCellText(row: any, column: any): string;
|
17062
|
+
setCellText(row: any, column: any, val: string): void;
|
17063
|
+
private updateValues;
|
17017
17064
|
getDefaultCellText(column: any): string;
|
17065
|
+
setDefaultCellText(column: any, val: string): void;
|
17018
17066
|
getCellDisplayText(row: any, column: any): string;
|
17019
17067
|
get rows(): Array<any>;
|
17020
17068
|
get columns(): Array<any>;
|
@@ -17022,6 +17070,7 @@ declare module "packages/survey-core/src/question_matrix" {
|
|
17022
17070
|
getJson(): any;
|
17023
17071
|
setJson(value: any): void;
|
17024
17072
|
locStrsChanged(): void;
|
17073
|
+
private runFuncOnLocs;
|
17025
17074
|
protected createString(): LocalizableString;
|
17026
17075
|
}
|
17027
17076
|
/**
|
@@ -17723,7 +17772,8 @@ declare module "packages/survey-core/src/dragdrop/choices" {
|
|
17723
17772
|
protected doDragOver: () => any;
|
17724
17773
|
protected isDropTargetValid(dropTarget: ItemValue, dropTargetNode?: HTMLElement): boolean;
|
17725
17774
|
protected doBanDropHere: () => any;
|
17726
|
-
protected
|
17775
|
+
protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
|
17776
|
+
protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
|
17727
17777
|
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
17728
17778
|
protected doDrop(): any;
|
17729
17779
|
clear(): void;
|
@@ -17810,6 +17860,7 @@ declare module "packages/survey-core/src/question_ranking" {
|
|
17810
17860
|
onSurveyValueChanged(newValue: any): void;
|
17811
17861
|
onSurveyLoad(): void;
|
17812
17862
|
protected onVisibleChoicesChanged: () => void;
|
17863
|
+
updateValueFromSurvey(newValue: any, clearData: boolean): void;
|
17813
17864
|
localeChanged: () => void;
|
17814
17865
|
private addToValueByVisibleChoices;
|
17815
17866
|
private removeFromValueByVisibleChoices;
|
@@ -17881,6 +17932,8 @@ declare module "packages/survey-core/src/question_ranking" {
|
|
17881
17932
|
*/
|
17882
17933
|
get selectToRankEnabled(): boolean;
|
17883
17934
|
set selectToRankEnabled(val: boolean);
|
17935
|
+
get selectToRankSwapAreas(): boolean;
|
17936
|
+
set selectToRankSwapAreas(val: boolean);
|
17884
17937
|
carryForwardStartUnranked: boolean;
|
17885
17938
|
/**
|
17886
17939
|
* Specifies the layout of the ranked and unranked areas. Applies when [`selectToRankEnabled`](https://surveyjs.io/form-library/documentation/api-reference/ranking-question-model#selectToRankEnabled) is `true`.
|
@@ -18091,7 +18144,7 @@ declare module "packages/survey-core/src/question_rating" {
|
|
18091
18144
|
*
|
18092
18145
|
* If you add custom properties, refer to the following help topic to learn how to serialize them into JSON: [Add Custom Properties to Property Grid](https://surveyjs.io/survey-creator/documentation/property-grid#add-custom-properties-to-the-property-grid).
|
18093
18146
|
*
|
18094
|
-
* To enable Markdown support for the `text` 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
|
18147
|
+
* To enable Markdown support for the `text` 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 markdown-it](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
|
18095
18148
|
*
|
18096
18149
|
* If you need to specify only the `value` property, you can set the `rateValues` property to an array of numbers, for example, `[ 3, 6, 10 ]`. These values are both saved in survey results and used as display text.
|
18097
18150
|
*
|
@@ -18160,6 +18213,7 @@ declare module "packages/survey-core/src/question_rating" {
|
|
18160
18213
|
private createRenderedRateItems;
|
18161
18214
|
renderedRateItems: Array<RenderedRatingItem>;
|
18162
18215
|
private createRateValues;
|
18216
|
+
private getRatingItemValue;
|
18163
18217
|
private correctValue;
|
18164
18218
|
getType(): string;
|
18165
18219
|
protected getFirstInputElementId(): string;
|
@@ -18312,6 +18366,7 @@ declare module "packages/survey-core/src/question_rating" {
|
|
18312
18366
|
get renderedValue(): any;
|
18313
18367
|
set renderedValue(val: any);
|
18314
18368
|
isItemSelected(item: ItemValue): boolean;
|
18369
|
+
private visibleChoicesValue;
|
18315
18370
|
get visibleChoices(): ItemValue[];
|
18316
18371
|
get readOnlyText(): any;
|
18317
18372
|
needResponsiveWidth(): boolean;
|
@@ -18322,6 +18377,7 @@ declare module "packages/survey-core/src/question_rating" {
|
|
18322
18377
|
private dropdownListModelValue;
|
18323
18378
|
set dropdownListModel(val: DropdownListModel);
|
18324
18379
|
get dropdownListModel(): DropdownListModel;
|
18380
|
+
protected onBlurCore(event: any): void;
|
18325
18381
|
protected updateCssClasses(res: any, css: any): void;
|
18326
18382
|
protected calcCssClasses(css: any): any;
|
18327
18383
|
themeChanged(theme: ITheme): void;
|
@@ -19144,7 +19200,7 @@ declare module "packages/survey-core/entries/chunks/model" {
|
|
19144
19200
|
export { DropdownMultiSelectListModel } from "packages/survey-core/src/dropdownMultiSelectListModel";
|
19145
19201
|
export { QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue } from "packages/survey-core/src/question_buttongroup";
|
19146
19202
|
export { IsMobile, IsTouch, _setIsTouch } from "packages/survey-core/src/utils/devices";
|
19147
|
-
export { confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, chooseFiles, sanitizeEditableContent, IAttachKey2clickOptions } from "packages/survey-core/src/utils/utils";
|
19203
|
+
export { confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, chooseFiles, sanitizeEditableContent, prepareElementForVerticalAnimation, cleanHtmlElementAfterAnimation, classesToSelector, IAttachKey2clickOptions } from "packages/survey-core/src/utils/utils";
|
19148
19204
|
export { InputMaskBase } from "packages/survey-core/src/mask/mask_base";
|
19149
19205
|
export { InputMaskPattern } from "packages/survey-core/src/mask/mask_pattern";
|
19150
19206
|
export { InputMaskNumeric } from "packages/survey-core/src/mask/mask_numeric";
|
@@ -19366,6 +19422,7 @@ declare module "src/defaultCss/cssstandard" {
|
|
19366
19422
|
rootSelectToRankMod: string;
|
19367
19423
|
rootSelectToRankAlignVertical: string;
|
19368
19424
|
rootSelectToRankAlignHorizontal: string;
|
19425
|
+
rootSelectToRankSwapAreas: string;
|
19369
19426
|
item: string;
|
19370
19427
|
itemContent: string;
|
19371
19428
|
itemIndex: string;
|
@@ -19796,6 +19853,7 @@ declare module "src/defaultCss/cssmodern" {
|
|
19796
19853
|
rootSelectToRankMod: string;
|
19797
19854
|
rootSelectToRankAlignVertical: string;
|
19798
19855
|
rootSelectToRankAlignHorizontal: string;
|
19856
|
+
rootSelectToRankSwapAreas: string;
|
19799
19857
|
item: string;
|
19800
19858
|
itemContent: string;
|
19801
19859
|
itemIndex: string;
|
@@ -20623,6 +20681,7 @@ declare module "src/plugins/themes/bootstrap-material-integration/cssbootstrapma
|
|
20623
20681
|
rootSelectToRankMod: string;
|
20624
20682
|
rootSelectToRankAlignVertical: string;
|
20625
20683
|
rootSelectToRankAlignHorizontal: string;
|
20684
|
+
rootSelectToRankSwapAreas: string;
|
20626
20685
|
item: string;
|
20627
20686
|
itemContent: string;
|
20628
20687
|
itemIndex: string;
|
@@ -21453,6 +21512,7 @@ declare module "src/entries/plugins" {
|
|
21453
21512
|
rootSelectToRankMod: string;
|
21454
21513
|
rootSelectToRankAlignVertical: string;
|
21455
21514
|
rootSelectToRankAlignHorizontal: string;
|
21515
|
+
rootSelectToRankSwapAreas: string;
|
21456
21516
|
item: string;
|
21457
21517
|
itemContent: string;
|
21458
21518
|
itemIndex: string;
|