survey-react 1.12.10 → 1.12.11
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 +33 -22
- package/survey.react.js +222 -154
- 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
@@ -214,6 +214,7 @@ declare module "packages/survey-core/src/surveyStrings" {
|
|
214
214
|
getLocales: (removeDefaultLoc?: boolean) => Array<string>;
|
215
215
|
onGetExternalString: (name: string, locale: string) => string;
|
216
216
|
};
|
217
|
+
export function getLocaleString(strName: string, locale?: string): string;
|
217
218
|
export var surveyStrings: {
|
218
219
|
pagePrevText: string;
|
219
220
|
pageNextText: string;
|
@@ -892,7 +893,7 @@ declare module "packages/survey-core/src/popup-view-model" {
|
|
892
893
|
cancel(): void;
|
893
894
|
dispose(): void;
|
894
895
|
initializePopupContainer(): void;
|
895
|
-
setComponentElement(componentRoot: HTMLElement
|
896
|
+
setComponentElement(componentRoot: HTMLElement): void;
|
896
897
|
resetComponentElement(): void;
|
897
898
|
protected preventScrollOuside(event: any, deltaY: number): void;
|
898
899
|
}
|
@@ -1021,8 +1022,11 @@ declare module "packages/survey-core/src/actions/container" {
|
|
1021
1022
|
get cssClasses(): any;
|
1022
1023
|
private createAction;
|
1023
1024
|
addAction(val: IAction, sortByVisibleIndex?: boolean): T;
|
1024
|
-
private sortItems;
|
1025
1025
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
1026
|
+
private sortItems;
|
1027
|
+
private hasSetVisibleIndex;
|
1028
|
+
private compareByVisibleIndex;
|
1029
|
+
private isActionVisible;
|
1026
1030
|
subItemsShowDelay: number;
|
1027
1031
|
subItemsHideDelay: number;
|
1028
1032
|
protected popupAfterShowCallback(itemValue: T): void;
|
@@ -1118,6 +1122,7 @@ declare module "packages/survey-core/src/list" {
|
|
1118
1122
|
setOnFilterStringChangedCallback(callback: (text: string) => void): void;
|
1119
1123
|
setOnTextSearchCallback(callback: (item: T, textToSearch: string) => boolean): void;
|
1120
1124
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
1125
|
+
setSearchEnabled(newValue: boolean): void;
|
1121
1126
|
protected onSet(): void;
|
1122
1127
|
protected getDefaultCssClasses(): {
|
1123
1128
|
root: string;
|
@@ -3390,7 +3395,7 @@ declare module "packages/survey-core/src/panel" {
|
|
3390
3395
|
delete(doDispose?: boolean): void;
|
3391
3396
|
private deletePanel;
|
3392
3397
|
protected removeFromParent(): void;
|
3393
|
-
protected canShowTitle(): boolean;
|
3398
|
+
protected canShowTitle(survey: ISurvey): boolean;
|
3394
3399
|
showDescription: boolean;
|
3395
3400
|
get _showDescription(): boolean;
|
3396
3401
|
localeChanged(): void;
|
@@ -3640,6 +3645,7 @@ declare module "packages/survey-core/src/panel" {
|
|
3640
3645
|
private releaseRowsUpdates;
|
3641
3646
|
private updateRowsBeforeElementRemoved;
|
3642
3647
|
private updateRowsOnElementAdded;
|
3648
|
+
private canFireAddRemoveNotifications;
|
3643
3649
|
protected onAddElement(element: IElement, index: number): void;
|
3644
3650
|
protected onRemoveElement(element: IElement): void;
|
3645
3651
|
private onRemoveElementNotifySurvey;
|
@@ -3890,6 +3896,7 @@ declare module "packages/survey-core/src/panel" {
|
|
3890
3896
|
getFooterToolbar(): ActionContainer;
|
3891
3897
|
get hasEditButton(): boolean;
|
3892
3898
|
cancelPreview(): void;
|
3899
|
+
protected canShowTitle(survey: ISurvey): boolean;
|
3893
3900
|
get cssTitle(): string;
|
3894
3901
|
getCssTitleExpandableSvg(): string;
|
3895
3902
|
get showErrorsAbovePanel(): boolean;
|
@@ -4456,6 +4463,7 @@ declare module "packages/survey-core/src/utils/text-area" {
|
|
4456
4463
|
private onPropertyChangedCallback;
|
4457
4464
|
constructor(options: ITextArea);
|
4458
4465
|
setElement(element: HTMLTextAreaElement | null): void;
|
4466
|
+
resetElement(): void;
|
4459
4467
|
getTextValue(): string;
|
4460
4468
|
onTextAreaChange(event: any): void;
|
4461
4469
|
onTextAreaInput(event: any): void;
|
@@ -5381,7 +5389,7 @@ declare module "packages/survey-core/src/question_matrixdropdowncolumn" {
|
|
5381
5389
|
private indexValue;
|
5382
5390
|
private _hasVisibleCell;
|
5383
5391
|
private _visiblechoices;
|
5384
|
-
constructor(name: string, title?: string);
|
5392
|
+
constructor(name: string, title?: string, colOwner?: IMatrixColumnOwner);
|
5385
5393
|
getOriginalObj(): Base;
|
5386
5394
|
getClassNameProperty(): string;
|
5387
5395
|
getSurvey(live?: boolean): ISurvey;
|
@@ -5681,7 +5689,7 @@ declare module "packages/survey-core/src/question_matrixdropdowncolumn" {
|
|
5681
5689
|
defaultCellTypeChanged(): void;
|
5682
5690
|
protected calcCellQuestionType(row: MatrixDropdownRowModelBase): string;
|
5683
5691
|
private getDefaultCellQuestionType;
|
5684
|
-
protected updateTemplateQuestion(newCellType?: string): void;
|
5692
|
+
protected updateTemplateQuestion(newCellType?: string, name?: string, title?: string): void;
|
5685
5693
|
protected createNewQuestion(cellType: string): Question;
|
5686
5694
|
private setParentQuestionToTemplate;
|
5687
5695
|
private previousChoicesId;
|
@@ -7910,16 +7918,16 @@ declare module "packages/survey-core/src/survey-events-api" {
|
|
7910
7918
|
*/
|
7911
7919
|
input: HTMLInputElement;
|
7912
7920
|
/**
|
7913
|
-
* A
|
7921
|
+
* A question for which this event is raised.
|
7914
7922
|
*/
|
7915
7923
|
element: Base;
|
7916
7924
|
/**
|
7917
7925
|
* The type of the element passed as the `options.element` parameter.\
|
7918
|
-
* Possible values:
|
7926
|
+
* Possible values: any value returned from the [`getType()`](https://surveyjs.io/form-library/documentation/api-reference/question#getType) method.
|
7919
7927
|
*/
|
7920
7928
|
elementType: String;
|
7921
7929
|
/**
|
7922
|
-
* The name of the survey element property
|
7930
|
+
* The name of the survey element property for which files are being selected.
|
7923
7931
|
*/
|
7924
7932
|
propertyName: String;
|
7925
7933
|
/**
|
@@ -8503,7 +8511,7 @@ declare module "packages/survey-core/src/drag-drop-page-helper-v1" {
|
|
8503
8511
|
}
|
8504
8512
|
}
|
8505
8513
|
declare module "packages/survey-core/src/page" {
|
8506
|
-
import { IPage, IPanel, IElement, ISurveyElement } from "packages/survey-core/src/base-interfaces";
|
8514
|
+
import { IPage, IPanel, IElement, ISurveyElement, ISurvey } from "packages/survey-core/src/base-interfaces";
|
8507
8515
|
import { PanelModelBase } from "packages/survey-core/src/panel";
|
8508
8516
|
import { LocalizableString } from "packages/survey-core/src/localizablestring";
|
8509
8517
|
/**
|
@@ -8523,7 +8531,7 @@ declare module "packages/survey-core/src/page" {
|
|
8523
8531
|
getCssTitleExpandableSvg(): string;
|
8524
8532
|
get cssRequiredText(): string;
|
8525
8533
|
protected canShowPageNumber(): boolean;
|
8526
|
-
protected canShowTitle(): boolean;
|
8534
|
+
protected canShowTitle(survey: ISurvey): boolean;
|
8527
8535
|
protected setTitleValue(val: string): void;
|
8528
8536
|
/**
|
8529
8537
|
* 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`.
|
@@ -10079,9 +10087,8 @@ declare module "packages/survey-core/src/survey" {
|
|
10079
10087
|
*/
|
10080
10088
|
onGetResult: EventBase<SurveyModel, GetResultEvent>;
|
10081
10089
|
/**
|
10082
|
-
* An event that is raised when
|
10083
|
-
* @see
|
10084
|
-
* @see uploadFiles
|
10090
|
+
* An event that is raised when a respondent opens a dialog window to select files.
|
10091
|
+
* @see chooseFiles
|
10085
10092
|
*/
|
10086
10093
|
onOpenFileChooser: EventBase<SurveyModel, OpenFileChooserEvent>;
|
10087
10094
|
/**
|
@@ -11927,6 +11934,7 @@ declare module "packages/survey-core/src/survey" {
|
|
11927
11934
|
private isSmoothScrollEnabled;
|
11928
11935
|
private resizeObserver;
|
11929
11936
|
afterRenderSurvey(htmlElement: any): void;
|
11937
|
+
beforeDestroySurveyElement(): void;
|
11930
11938
|
/**
|
11931
11939
|
* An event that is raised when the survey's width or height is changed.
|
11932
11940
|
*/
|
@@ -16151,7 +16159,10 @@ declare module "packages/survey-core/src/utils/popup" {
|
|
16151
16159
|
export class PopupUtils {
|
16152
16160
|
static bottomIndent: number;
|
16153
16161
|
static calculatePosition(targetRect: Rect, height: number, width: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, positionMode?: PositionMode): INumberPosition;
|
16154
|
-
static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number, verticalPosition: VerticalPosition, canShrink?: boolean
|
16162
|
+
static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number, verticalPosition: VerticalPosition, canShrink?: boolean, margins?: {
|
16163
|
+
top: number;
|
16164
|
+
bottom: number;
|
16165
|
+
}): any;
|
16155
16166
|
static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition, positionMode?: PositionMode, margins?: {
|
16156
16167
|
left: number;
|
16157
16168
|
right: number;
|
@@ -16174,6 +16185,8 @@ declare module "packages/survey-core/src/popup" {
|
|
16174
16185
|
onShow?: () => void;
|
16175
16186
|
onCancel?: () => void;
|
16176
16187
|
onDispose?: () => void;
|
16188
|
+
getTargetCallback?: (container: HTMLElement) => HTMLElement;
|
16189
|
+
getAreaCallback?: (container: HTMLElement) => HTMLElement;
|
16177
16190
|
cssClass?: string;
|
16178
16191
|
title?: string;
|
16179
16192
|
verticalPosition?: VerticalPosition;
|
@@ -16198,6 +16211,8 @@ declare module "packages/survey-core/src/popup" {
|
|
16198
16211
|
onHide: () => void;
|
16199
16212
|
onShow: () => void;
|
16200
16213
|
onDispose: () => void;
|
16214
|
+
getTargetCallback?: (container: HTMLElement) => HTMLElement;
|
16215
|
+
getAreaCallback?: (container: HTMLElement) => HTMLElement;
|
16201
16216
|
contentComponentName: string;
|
16202
16217
|
contentComponentData: T;
|
16203
16218
|
verticalPosition: VerticalPosition;
|
@@ -16944,8 +16959,6 @@ declare module "packages/survey-core/src/popup-dropdown-view-model" {
|
|
16944
16959
|
import { PopupBaseViewModel } from "packages/survey-core/src/popup-view-model";
|
16945
16960
|
export function calculateIsTablet(windowWidth?: number, windowHeight?: number): boolean;
|
16946
16961
|
export class PopupDropdownViewModel extends PopupBaseViewModel {
|
16947
|
-
targetElement?: HTMLElement;
|
16948
|
-
areaElement?: HTMLElement;
|
16949
16962
|
static readonly tabletSizeBreakpoint = 600;
|
16950
16963
|
private scrollEventCallBack;
|
16951
16964
|
private calculateIsTablet;
|
@@ -16965,8 +16978,8 @@ declare module "packages/survey-core/src/popup-dropdown-view-model" {
|
|
16965
16978
|
popupDirection: string;
|
16966
16979
|
pointerTarget: IPosition;
|
16967
16980
|
private recalculatePositionHandler;
|
16968
|
-
constructor(model: PopupModel
|
16969
|
-
setComponentElement(componentRoot: HTMLElement
|
16981
|
+
constructor(model: PopupModel);
|
16982
|
+
setComponentElement(componentRoot: HTMLElement): void;
|
16970
16983
|
resetComponentElement(): void;
|
16971
16984
|
updateOnShowing(): void;
|
16972
16985
|
private get shouldCreateResizeCallback();
|
@@ -18978,7 +18991,7 @@ declare module "packages/survey-core/src/popup-utils" {
|
|
18978
18991
|
import { IDialogOptions, PopupModel } from "packages/survey-core/src/popup";
|
18979
18992
|
import { PopupBaseViewModel } from "packages/survey-core/src/popup-view-model";
|
18980
18993
|
export function createPopupModalViewModel(options: IDialogOptions, rootElement?: HTMLElement): PopupBaseViewModel;
|
18981
|
-
export function createPopupViewModel(model: PopupModel
|
18994
|
+
export function createPopupViewModel(model: PopupModel): PopupBaseViewModel;
|
18982
18995
|
}
|
18983
18996
|
declare module "packages/survey-core/src/question_buttongroup" {
|
18984
18997
|
import { ItemValue } from "packages/survey-core/src/itemvalue";
|
@@ -19415,7 +19428,7 @@ declare module "packages/survey-core/entries/chunks/model" {
|
|
19415
19428
|
export { Cover, CoverCell } from "packages/survey-core/src/header";
|
19416
19429
|
export { dxSurveyService } from "packages/survey-core/src/dxSurveyService";
|
19417
19430
|
export { englishStrings } from "packages/survey-core/src/localization/english";
|
19418
|
-
export { surveyLocalization, surveyStrings } from "packages/survey-core/src/surveyStrings";
|
19431
|
+
export { surveyLocalization, surveyStrings, getLocaleString } from "packages/survey-core/src/surveyStrings";
|
19419
19432
|
export { QuestionCustomWidget, CustomWidgetCollection, } from "packages/survey-core/src/questionCustomWidgets";
|
19420
19433
|
export { QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, ICustomQuestionTypeConfiguration } from "packages/survey-core/src/question_custom";
|
19421
19434
|
export { ListModel } from "packages/survey-core/src/list";
|
@@ -27442,8 +27455,6 @@ declare module "packages/survey-react-ui/src/components/popup/popup" {
|
|
27442
27455
|
import { SurveyElementBase } from "packages/survey-react-ui/src/reactquestion_element";
|
27443
27456
|
interface IPopupProps {
|
27444
27457
|
model: PopupModel;
|
27445
|
-
getTarget?: (container: HTMLElement) => HTMLElement;
|
27446
|
-
getArea?: (container: HTMLElement) => HTMLElement;
|
27447
27458
|
}
|
27448
27459
|
export class Popup extends SurveyElementBase<IPopupProps, any> {
|
27449
27460
|
private popup;
|