survey-react 1.12.3 → 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 +16 -39
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +23 -77
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +11 -17
- package/survey.css.map +1 -1
- package/survey.min.css +2 -2
- package/survey.react.d.ts +58 -20
- package/survey.react.js +426 -163
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -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";
|
@@ -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;
|
@@ -3593,6 +3594,8 @@ declare module "packages/survey-core/src/panel" {
|
|
3593
3594
|
getProgressInfo(): IProgressInfo;
|
3594
3595
|
get root(): PanelModelBase;
|
3595
3596
|
protected childVisibilityChanged(): void;
|
3597
|
+
protected canRenderFirstRows(): boolean;
|
3598
|
+
private isLazyRenderInRow;
|
3596
3599
|
createRowAndSetLazy(index: number): QuestionRowModel;
|
3597
3600
|
createRow(): QuestionRowModel;
|
3598
3601
|
onSurveyLoad(): void;
|
@@ -3614,12 +3617,14 @@ declare module "packages/survey-core/src/panel" {
|
|
3614
3617
|
private updateRowsVisibility;
|
3615
3618
|
canBuildRows(): boolean;
|
3616
3619
|
private buildRows;
|
3617
|
-
private isLazyRenderInRow;
|
3618
|
-
protected canRenderFirstRows(): boolean;
|
3619
3620
|
getDragDropInfo(): any;
|
3620
3621
|
private updateRowsOnElementRemoved;
|
3621
3622
|
updateRowsRemoveElementFromRow(element: IElement, row: QuestionRowModel): void;
|
3622
|
-
|
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;
|
3623
3628
|
findRowByElement(el: IElement): QuestionRowModel;
|
3624
3629
|
elementWidthChanged(el: IElement): void;
|
3625
3630
|
get processedTitle(): string;
|
@@ -3825,6 +3830,7 @@ declare module "packages/survey-core/src/panel" {
|
|
3825
3830
|
protected createLocTitleProperty(): LocalizableString;
|
3826
3831
|
protected beforeSetVisibleIndex(index: number): number;
|
3827
3832
|
protected getPanelStartIndex(index: number): number;
|
3833
|
+
private hasParentInQuestionIndex;
|
3828
3834
|
protected isContinueNumbering(): boolean;
|
3829
3835
|
private notifySurveyOnVisibilityChanged;
|
3830
3836
|
protected getRenderedTitle(str: string): string;
|
@@ -6811,6 +6817,7 @@ declare module "packages/survey-core/src/question_paneldynamic" {
|
|
6811
6817
|
*/
|
6812
6818
|
get minPanelCount(): number;
|
6813
6819
|
set minPanelCount(val: number);
|
6820
|
+
private onMinPanelCountChanged;
|
6814
6821
|
/**
|
6815
6822
|
* A maximum number of panels in Dynamic Panel. Users cannot add new panels if `panelCount` equals `maxPanelCount`.
|
6816
6823
|
*
|
@@ -6821,6 +6828,7 @@ declare module "packages/survey-core/src/question_paneldynamic" {
|
|
6821
6828
|
*/
|
6822
6829
|
get maxPanelCount(): number;
|
6823
6830
|
set maxPanelCount(val: number);
|
6831
|
+
private onMaxPanelCountChanged;
|
6824
6832
|
/**
|
6825
6833
|
* Specifies whether users are allowed to add new panels.
|
6826
6834
|
*
|
@@ -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;
|
@@ -10372,7 +10381,10 @@ declare module "packages/survey-core/src/survey" {
|
|
10372
10381
|
lazyRenderingFirstBatchSizeValue: number;
|
10373
10382
|
get lazyRenderingFirstBatchSize(): number;
|
10374
10383
|
set lazyRenderingFirstBatchSize(val: number);
|
10375
|
-
|
10384
|
+
protected _isLazyRenderingSuspended: boolean;
|
10385
|
+
get isLazyRenderingSuspended(): boolean;
|
10386
|
+
protected suspendLazyRendering(): void;
|
10387
|
+
protected releaseLazyRendering(): void;
|
10376
10388
|
private updateLazyRenderingRowsOnRemovingElements;
|
10377
10389
|
/**
|
10378
10390
|
* A list of triggers in the survey.
|
@@ -10919,8 +10931,9 @@ declare module "packages/survey-core/src/survey" {
|
|
10919
10931
|
/**
|
10920
10932
|
* Calculates a given [expression](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions) and returns a result value.
|
10921
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.
|
10922
10935
|
*/
|
10923
|
-
runExpression(expression: string): any;
|
10936
|
+
runExpression(expression: string, callback?: (res: any) => void): any;
|
10924
10937
|
/**
|
10925
10938
|
* Calculates a given [expression](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions) and returns `true` or `false`.
|
10926
10939
|
* @param expression An expression to calculate.
|
@@ -11821,7 +11834,8 @@ declare module "packages/survey-core/src/survey" {
|
|
11821
11834
|
private getUpdatedPanelTitleActions;
|
11822
11835
|
private getUpdatedPageTitleActions;
|
11823
11836
|
getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: any, actions: Array<IAction>): IAction[];
|
11824
|
-
|
11837
|
+
skeletonHeight: number;
|
11838
|
+
scrollElementToTop(element: ISurveyElement, question: Question, page: PageModel, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, passedRootElement?: HTMLElement): any;
|
11825
11839
|
/**
|
11826
11840
|
* Opens a dialog window for users to select files.
|
11827
11841
|
* @param input A [file input HTML element](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement).
|
@@ -12563,8 +12577,8 @@ declare module "packages/survey-core/src/survey-element" {
|
|
12563
12577
|
dragTypeOverMe: DragTypeOverMeEnum;
|
12564
12578
|
isDragMe: boolean;
|
12565
12579
|
readOnlyChangedCallback: () => void;
|
12566
|
-
static ScrollElementToTop(elementId: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): boolean;
|
12567
|
-
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;
|
12568
12582
|
static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
|
12569
12583
|
static FocusElement(elementId: string): boolean;
|
12570
12584
|
private static focusElementCore;
|
@@ -12681,6 +12695,7 @@ declare module "packages/survey-core/src/survey-element" {
|
|
12681
12695
|
get survey(): ISurvey;
|
12682
12696
|
getSurvey(live?: boolean): ISurvey;
|
12683
12697
|
protected setSurveyCore(value: ISurvey): void;
|
12698
|
+
get skeletonHeight(): string;
|
12684
12699
|
isContentElement: boolean;
|
12685
12700
|
isEditableTemplateElement: boolean;
|
12686
12701
|
isInteractiveDesignElement: boolean;
|
@@ -13517,7 +13532,7 @@ declare module "packages/survey-core/src/question" {
|
|
13517
13532
|
*
|
13518
13533
|
* | Question type | Value type(s) |
|
13519
13534
|
* | ------------- | ------------- |
|
13520
|
-
* | Checkboxes |
|
13535
|
+
* | Checkboxes | <code>Array<string | number></code> |
|
13521
13536
|
* | Dropdown | `string` \| `number` |
|
13522
13537
|
* | Dynamic Matrix | `Array<object>` |
|
13523
13538
|
* | Dynamic Panel | `Array<object>` |
|
@@ -13525,14 +13540,14 @@ declare module "packages/survey-core/src/question" {
|
|
13525
13540
|
* | File Upload | `File` \| `Array<File>` |
|
13526
13541
|
* | HTML | (no value) |
|
13527
13542
|
* | Image | (no value) |
|
13528
|
-
* | Image Picker |
|
13543
|
+
* | Image Picker | <code>Array<string | number></code> |
|
13529
13544
|
* | Long Text | `string` |
|
13530
13545
|
* | Multi-Select Dropdown | `object` |
|
13531
13546
|
* | Multi-Select Matrix | `object` |
|
13532
13547
|
* | Multiple Textboxes | `Array<string>` |
|
13533
13548
|
* | Panel | (no value) |
|
13534
13549
|
* | Radio Button Group | `string` \| `number` |
|
13535
|
-
* | Ranking |
|
13550
|
+
* | Ranking | <code>Array<string | number></code> |
|
13536
13551
|
* | Rating Scale | `number` \| `string` |
|
13537
13552
|
* | Signature | `string` (base64-encoded image) |
|
13538
13553
|
* | Single-Line Input | `string` \| `number` \| `Date` |
|
@@ -13761,7 +13776,7 @@ declare module "packages/survey-core/src/question" {
|
|
13761
13776
|
get requiredText(): string;
|
13762
13777
|
addError(error: SurveyError | string): void;
|
13763
13778
|
private addCustomError;
|
13764
|
-
removeError(error: SurveyError):
|
13779
|
+
removeError(error: SurveyError): boolean;
|
13765
13780
|
private checkForErrors;
|
13766
13781
|
protected canCollectErrors(): boolean;
|
13767
13782
|
private collectErrors;
|
@@ -14848,7 +14863,7 @@ declare module "packages/survey-core/src/base-interfaces" {
|
|
14848
14863
|
dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
|
14849
14864
|
dragAndDropAllow(options: DragDropAllowEvent): boolean;
|
14850
14865
|
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): any;
|
14851
|
-
runExpression(expression: string): any;
|
14866
|
+
runExpression(expression: string, callback?: (res: any) => void): any;
|
14852
14867
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
14853
14868
|
onCorrectQuestionAnswer(question: IQuestion, options: any): void;
|
14854
14869
|
processPopupVisiblityChanged(question: IQuestion, popupModel: PopupModel, visible: boolean): void;
|
@@ -15842,6 +15857,17 @@ declare module "packages/survey-core/src/base" {
|
|
15842
15857
|
get onElementRerendered(): EventBase<Base>;
|
15843
15858
|
afterRerender(): void;
|
15844
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
|
+
}
|
15845
15871
|
export class ArrayChanges<T = any> {
|
15846
15872
|
index: number;
|
15847
15873
|
deleteCount: number;
|
@@ -17016,20 +17042,27 @@ declare module "packages/survey-core/src/question_matrix" {
|
|
17016
17042
|
getRows(): Array<any>;
|
17017
17043
|
getColumns(): Array<any>;
|
17018
17044
|
}
|
17019
|
-
export class MatrixCells {
|
17045
|
+
export class MatrixCells extends Base {
|
17020
17046
|
cellsOwner: IMatrixCellsOwner;
|
17021
17047
|
private values;
|
17048
|
+
private locs;
|
17022
17049
|
constructor(cellsOwner: IMatrixCellsOwner);
|
17050
|
+
getType(): string;
|
17023
17051
|
get isEmpty(): boolean;
|
17024
17052
|
onValuesChanged: () => void;
|
17053
|
+
private locNotification;
|
17025
17054
|
private valuesChanged;
|
17026
|
-
|
17027
|
-
setDefaultCellText(column: any, val: string): void;
|
17028
|
-
getCellLocText(row: any, column: any): LocalizableString;
|
17029
|
-
getDefaultCellLocText(column: any, val: string): LocalizableString;
|
17055
|
+
getDefaultCellLocText(column: any): LocalizableString;
|
17030
17056
|
getCellDisplayLocText(row: any, column: any): LocalizableString;
|
17057
|
+
private getCellLocCore;
|
17058
|
+
private get defaultRowValue();
|
17059
|
+
private getCellLocData;
|
17060
|
+
private getCellLocDataFromValue;
|
17031
17061
|
getCellText(row: any, column: any): string;
|
17062
|
+
setCellText(row: any, column: any, val: string): void;
|
17063
|
+
private updateValues;
|
17032
17064
|
getDefaultCellText(column: any): string;
|
17065
|
+
setDefaultCellText(column: any, val: string): void;
|
17033
17066
|
getCellDisplayText(row: any, column: any): string;
|
17034
17067
|
get rows(): Array<any>;
|
17035
17068
|
get columns(): Array<any>;
|
@@ -17037,6 +17070,7 @@ declare module "packages/survey-core/src/question_matrix" {
|
|
17037
17070
|
getJson(): any;
|
17038
17071
|
setJson(value: any): void;
|
17039
17072
|
locStrsChanged(): void;
|
17073
|
+
private runFuncOnLocs;
|
17040
17074
|
protected createString(): LocalizableString;
|
17041
17075
|
}
|
17042
17076
|
/**
|
@@ -17826,6 +17860,7 @@ declare module "packages/survey-core/src/question_ranking" {
|
|
17826
17860
|
onSurveyValueChanged(newValue: any): void;
|
17827
17861
|
onSurveyLoad(): void;
|
17828
17862
|
protected onVisibleChoicesChanged: () => void;
|
17863
|
+
updateValueFromSurvey(newValue: any, clearData: boolean): void;
|
17829
17864
|
localeChanged: () => void;
|
17830
17865
|
private addToValueByVisibleChoices;
|
17831
17866
|
private removeFromValueByVisibleChoices;
|
@@ -18178,6 +18213,7 @@ declare module "packages/survey-core/src/question_rating" {
|
|
18178
18213
|
private createRenderedRateItems;
|
18179
18214
|
renderedRateItems: Array<RenderedRatingItem>;
|
18180
18215
|
private createRateValues;
|
18216
|
+
private getRatingItemValue;
|
18181
18217
|
private correctValue;
|
18182
18218
|
getType(): string;
|
18183
18219
|
protected getFirstInputElementId(): string;
|
@@ -18330,6 +18366,7 @@ declare module "packages/survey-core/src/question_rating" {
|
|
18330
18366
|
get renderedValue(): any;
|
18331
18367
|
set renderedValue(val: any);
|
18332
18368
|
isItemSelected(item: ItemValue): boolean;
|
18369
|
+
private visibleChoicesValue;
|
18333
18370
|
get visibleChoices(): ItemValue[];
|
18334
18371
|
get readOnlyText(): any;
|
18335
18372
|
needResponsiveWidth(): boolean;
|
@@ -18340,6 +18377,7 @@ declare module "packages/survey-core/src/question_rating" {
|
|
18340
18377
|
private dropdownListModelValue;
|
18341
18378
|
set dropdownListModel(val: DropdownListModel);
|
18342
18379
|
get dropdownListModel(): DropdownListModel;
|
18380
|
+
protected onBlurCore(event: any): void;
|
18343
18381
|
protected updateCssClasses(res: any, css: any): void;
|
18344
18382
|
protected calcCssClasses(css: any): any;
|
18345
18383
|
themeChanged(theme: ITheme): void;
|