survey-react 1.12.9 → 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 +78 -27
- package/survey.react.js +450 -237
- 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;
|
@@ -741,11 +742,21 @@ declare module "packages/survey-core/src/utils/animation" {
|
|
741
742
|
isDeletingRunning: boolean;
|
742
743
|
isAddingRunning: boolean;
|
743
744
|
}
|
745
|
+
interface IGroupAnimationCompareInfo<T> {
|
746
|
+
addedItems: Array<T>;
|
747
|
+
deletedItems: Array<T>;
|
748
|
+
reorderedItems: Array<{
|
749
|
+
item: T;
|
750
|
+
movedForward: boolean;
|
751
|
+
}>;
|
752
|
+
mergedItems: Array<T>;
|
753
|
+
}
|
744
754
|
export interface IAnimationGroupConsumer<T> extends IAnimationConsumer<[T]> {
|
745
755
|
getLeaveOptions?(item: T, info?: IGroupAnimationInfo): AnimationOptions;
|
746
756
|
getEnterOptions?(item: T, info?: IGroupAnimationInfo): AnimationOptions;
|
747
757
|
getReorderOptions?(item: T, movedForward: boolean, info?: IGroupAnimationInfo): AnimationOptions;
|
748
758
|
getKey?: (item: T) => any;
|
759
|
+
onCompareArrays?(options: IGroupAnimationCompareInfo<T>): void;
|
749
760
|
allowSyncRemovalAddition?: boolean;
|
750
761
|
}
|
751
762
|
export class AnimationUtils {
|
@@ -882,7 +893,7 @@ declare module "packages/survey-core/src/popup-view-model" {
|
|
882
893
|
cancel(): void;
|
883
894
|
dispose(): void;
|
884
895
|
initializePopupContainer(): void;
|
885
|
-
setComponentElement(componentRoot: HTMLElement
|
896
|
+
setComponentElement(componentRoot: HTMLElement): void;
|
886
897
|
resetComponentElement(): void;
|
887
898
|
protected preventScrollOuside(event: any, deltaY: number): void;
|
888
899
|
}
|
@@ -903,6 +914,7 @@ declare module "packages/survey-core/src/utils/utils" {
|
|
903
914
|
function activateLazyRenderingChecks(id: string): void;
|
904
915
|
function navigateToUrl(url: string): void;
|
905
916
|
function wrapUrlForBackgroundImage(url: string): string;
|
917
|
+
function isBase64URL(url: string): boolean;
|
906
918
|
const renamedIcons: any;
|
907
919
|
function getIconNameFromProxy(iconName: string): string;
|
908
920
|
export function getNewIconName(iconName: string): string;
|
@@ -962,7 +974,7 @@ declare module "packages/survey-core/src/utils/utils" {
|
|
962
974
|
export function prepareElementForVerticalAnimation(el: HTMLElement): void;
|
963
975
|
export function cleanHtmlElementAfterAnimation(el: HTMLElement): void;
|
964
976
|
export function roundTo2Decimals(number: number): number;
|
965
|
-
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, renamedIcons };
|
977
|
+
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, isBase64URL, renamedIcons };
|
966
978
|
}
|
967
979
|
declare module "packages/survey-core/src/actions/container" {
|
968
980
|
import { Base } from "packages/survey-core/src/base";
|
@@ -1010,8 +1022,11 @@ declare module "packages/survey-core/src/actions/container" {
|
|
1010
1022
|
get cssClasses(): any;
|
1011
1023
|
private createAction;
|
1012
1024
|
addAction(val: IAction, sortByVisibleIndex?: boolean): T;
|
1013
|
-
private sortItems;
|
1014
1025
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
1026
|
+
private sortItems;
|
1027
|
+
private hasSetVisibleIndex;
|
1028
|
+
private compareByVisibleIndex;
|
1029
|
+
private isActionVisible;
|
1015
1030
|
subItemsShowDelay: number;
|
1016
1031
|
subItemsHideDelay: number;
|
1017
1032
|
protected popupAfterShowCallback(itemValue: T): void;
|
@@ -1107,6 +1122,7 @@ declare module "packages/survey-core/src/list" {
|
|
1107
1122
|
setOnFilterStringChangedCallback(callback: (text: string) => void): void;
|
1108
1123
|
setOnTextSearchCallback(callback: (item: T, textToSearch: string) => boolean): void;
|
1109
1124
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
1125
|
+
setSearchEnabled(newValue: boolean): void;
|
1110
1126
|
protected onSet(): void;
|
1111
1127
|
protected getDefaultCssClasses(): {
|
1112
1128
|
root: string;
|
@@ -1360,7 +1376,7 @@ declare module "packages/survey-core/src/actions/action" {
|
|
1360
1376
|
id: string;
|
1361
1377
|
removePriority: number;
|
1362
1378
|
iconName: string;
|
1363
|
-
iconSize: number;
|
1379
|
+
iconSize: number | string;
|
1364
1380
|
markerIconName: string;
|
1365
1381
|
markerIconSize: number;
|
1366
1382
|
css?: string;
|
@@ -1475,7 +1491,7 @@ declare module "packages/survey-core/src/utils/responsivity-manager" {
|
|
1475
1491
|
offset: number;
|
1476
1492
|
}
|
1477
1493
|
export class ResponsivityManager {
|
1478
|
-
|
1494
|
+
container: HTMLDivElement;
|
1479
1495
|
private model;
|
1480
1496
|
private itemsSelector;
|
1481
1497
|
private dotsItemSize;
|
@@ -1487,6 +1503,8 @@ declare module "packages/survey-core/src/utils/responsivity-manager" {
|
|
1487
1503
|
private separatorAddConst;
|
1488
1504
|
private paddingSizeConst;
|
1489
1505
|
private dotsSizeConst;
|
1506
|
+
private dotsIconClass;
|
1507
|
+
private iconClass;
|
1490
1508
|
protected recalcMinDimensionConst: boolean;
|
1491
1509
|
getComputedStyle: (elt: Element) => CSSStyleDeclaration;
|
1492
1510
|
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number, delayedUpdateFunction?: (callback: () => void) => void);
|
@@ -3377,7 +3395,7 @@ declare module "packages/survey-core/src/panel" {
|
|
3377
3395
|
delete(doDispose?: boolean): void;
|
3378
3396
|
private deletePanel;
|
3379
3397
|
protected removeFromParent(): void;
|
3380
|
-
protected canShowTitle(): boolean;
|
3398
|
+
protected canShowTitle(survey: ISurvey): boolean;
|
3381
3399
|
showDescription: boolean;
|
3382
3400
|
get _showDescription(): boolean;
|
3383
3401
|
localeChanged(): void;
|
@@ -3627,6 +3645,7 @@ declare module "packages/survey-core/src/panel" {
|
|
3627
3645
|
private releaseRowsUpdates;
|
3628
3646
|
private updateRowsBeforeElementRemoved;
|
3629
3647
|
private updateRowsOnElementAdded;
|
3648
|
+
private canFireAddRemoveNotifications;
|
3630
3649
|
protected onAddElement(element: IElement, index: number): void;
|
3631
3650
|
protected onRemoveElement(element: IElement): void;
|
3632
3651
|
private onRemoveElementNotifySurvey;
|
@@ -3877,6 +3896,7 @@ declare module "packages/survey-core/src/panel" {
|
|
3877
3896
|
getFooterToolbar(): ActionContainer;
|
3878
3897
|
get hasEditButton(): boolean;
|
3879
3898
|
cancelPreview(): void;
|
3899
|
+
protected canShowTitle(survey: ISurvey): boolean;
|
3880
3900
|
get cssTitle(): string;
|
3881
3901
|
getCssTitleExpandableSvg(): string;
|
3882
3902
|
get showErrorsAbovePanel(): boolean;
|
@@ -4443,6 +4463,7 @@ declare module "packages/survey-core/src/utils/text-area" {
|
|
4443
4463
|
private onPropertyChangedCallback;
|
4444
4464
|
constructor(options: ITextArea);
|
4445
4465
|
setElement(element: HTMLTextAreaElement | null): void;
|
4466
|
+
resetElement(): void;
|
4446
4467
|
getTextValue(): string;
|
4447
4468
|
onTextAreaChange(event: any): void;
|
4448
4469
|
onTextAreaInput(event: any): void;
|
@@ -5368,7 +5389,7 @@ declare module "packages/survey-core/src/question_matrixdropdowncolumn" {
|
|
5368
5389
|
private indexValue;
|
5369
5390
|
private _hasVisibleCell;
|
5370
5391
|
private _visiblechoices;
|
5371
|
-
constructor(name: string, title?: string);
|
5392
|
+
constructor(name: string, title?: string, colOwner?: IMatrixColumnOwner);
|
5372
5393
|
getOriginalObj(): Base;
|
5373
5394
|
getClassNameProperty(): string;
|
5374
5395
|
getSurvey(live?: boolean): ISurvey;
|
@@ -5668,7 +5689,7 @@ declare module "packages/survey-core/src/question_matrixdropdowncolumn" {
|
|
5668
5689
|
defaultCellTypeChanged(): void;
|
5669
5690
|
protected calcCellQuestionType(row: MatrixDropdownRowModelBase): string;
|
5670
5691
|
private getDefaultCellQuestionType;
|
5671
|
-
protected updateTemplateQuestion(newCellType?: string): void;
|
5692
|
+
protected updateTemplateQuestion(newCellType?: string, name?: string, title?: string): void;
|
5672
5693
|
protected createNewQuestion(cellType: string): Question;
|
5673
5694
|
private setParentQuestionToTemplate;
|
5674
5695
|
private previousChoicesId;
|
@@ -7579,6 +7600,10 @@ declare module "packages/survey-core/src/survey-events-api" {
|
|
7579
7600
|
* The `name` of the question whose value is being changed. If you use the [`valueName`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#valueName) property, this parameter contains its value.
|
7580
7601
|
*/
|
7581
7602
|
name: string;
|
7603
|
+
/**
|
7604
|
+
* A value that indicates what caused the value change: an [expression](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions) evaluation or a run of a [trigger](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#conditional-survey-logic-triggers). If the value is changed for other reasons, this parameter is `undefined`.
|
7605
|
+
*/
|
7606
|
+
reason: "trigger" | "expression" | undefined;
|
7582
7607
|
}
|
7583
7608
|
export interface ValueChangedEvent extends ValueChangeBaseEvent {
|
7584
7609
|
/**
|
@@ -7893,16 +7918,16 @@ declare module "packages/survey-core/src/survey-events-api" {
|
|
7893
7918
|
*/
|
7894
7919
|
input: HTMLInputElement;
|
7895
7920
|
/**
|
7896
|
-
* A
|
7921
|
+
* A question for which this event is raised.
|
7897
7922
|
*/
|
7898
7923
|
element: Base;
|
7899
7924
|
/**
|
7900
7925
|
* The type of the element passed as the `options.element` parameter.\
|
7901
|
-
* Possible values:
|
7926
|
+
* Possible values: any value returned from the [`getType()`](https://surveyjs.io/form-library/documentation/api-reference/question#getType) method.
|
7902
7927
|
*/
|
7903
7928
|
elementType: String;
|
7904
7929
|
/**
|
7905
|
-
* The name of the survey element property
|
7930
|
+
* The name of the survey element property for which files are being selected.
|
7906
7931
|
*/
|
7907
7932
|
propertyName: String;
|
7908
7933
|
/**
|
@@ -8486,7 +8511,7 @@ declare module "packages/survey-core/src/drag-drop-page-helper-v1" {
|
|
8486
8511
|
}
|
8487
8512
|
}
|
8488
8513
|
declare module "packages/survey-core/src/page" {
|
8489
|
-
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";
|
8490
8515
|
import { PanelModelBase } from "packages/survey-core/src/panel";
|
8491
8516
|
import { LocalizableString } from "packages/survey-core/src/localizablestring";
|
8492
8517
|
/**
|
@@ -8506,7 +8531,7 @@ declare module "packages/survey-core/src/page" {
|
|
8506
8531
|
getCssTitleExpandableSvg(): string;
|
8507
8532
|
get cssRequiredText(): string;
|
8508
8533
|
protected canShowPageNumber(): boolean;
|
8509
|
-
protected canShowTitle(): boolean;
|
8534
|
+
protected canShowTitle(survey: ISurvey): boolean;
|
8510
8535
|
protected setTitleValue(val: string): void;
|
8511
8536
|
/**
|
8512
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`.
|
@@ -8604,6 +8629,12 @@ declare module "packages/survey-core/src/page" {
|
|
8604
8629
|
dragDropMoveTo(destination: ISurveyElement, isBottom?: boolean, isEdge?: boolean): boolean;
|
8605
8630
|
dragDropFinish(isCancel?: boolean): IElement;
|
8606
8631
|
ensureRowsVisibility(): void;
|
8632
|
+
private _isReadyForClean;
|
8633
|
+
get isReadyForClean(): boolean;
|
8634
|
+
set isReadyForClean(val: boolean);
|
8635
|
+
isReadyForCleanChangedCallback: () => void;
|
8636
|
+
enableOnElementRerenderedEvent(): void;
|
8637
|
+
disableOnElementRerenderedEvent(): void;
|
8607
8638
|
}
|
8608
8639
|
}
|
8609
8640
|
declare module "packages/survey-core/src/dxSurveyService" {
|
@@ -10056,9 +10087,8 @@ declare module "packages/survey-core/src/survey" {
|
|
10056
10087
|
*/
|
10057
10088
|
onGetResult: EventBase<SurveyModel, GetResultEvent>;
|
10058
10089
|
/**
|
10059
|
-
* An event that is raised when
|
10060
|
-
* @see
|
10061
|
-
* @see uploadFiles
|
10090
|
+
* An event that is raised when a respondent opens a dialog window to select files.
|
10091
|
+
* @see chooseFiles
|
10062
10092
|
*/
|
10063
10093
|
onOpenFileChooser: EventBase<SurveyModel, OpenFileChooserEvent>;
|
10064
10094
|
/**
|
@@ -10391,7 +10421,7 @@ declare module "packages/survey-core/src/survey" {
|
|
10391
10421
|
*/
|
10392
10422
|
onGetPageTitleActions: EventBase<SurveyModel, GetPageTitleActionsEvent>;
|
10393
10423
|
/**
|
10394
|
-
* An event that allows you to add, delete, or modify actions in the footer of a [Panel](https://surveyjs.io/form-library/documentation/panelmodel).
|
10424
|
+
* An event that allows you to add, delete, or modify actions in the footer of a [Panel](https://surveyjs.io/form-library/documentation/panelmodel). This panel may belong to a [Dynamic Panel](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model) or be a standalone survey element.
|
10395
10425
|
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
10396
10426
|
*/
|
10397
10427
|
onGetPanelFooterActions: EventBase<SurveyModel, GetPanelFooterActionsEvent>;
|
@@ -11064,6 +11094,10 @@ declare module "packages/survey-core/src/survey" {
|
|
11064
11094
|
* @param callback A callback function that you can use to access the calculation result if the expression uses asynchronous functions.
|
11065
11095
|
*/
|
11066
11096
|
runExpression(expression: string, callback?: (res: any) => void): any;
|
11097
|
+
private setValueOnExpressionCounter;
|
11098
|
+
get isSettingValueOnExpression(): boolean;
|
11099
|
+
startSetValueOnExpression(): void;
|
11100
|
+
finishSetValueOnExpression(): void;
|
11067
11101
|
/**
|
11068
11102
|
* Calculates a given [expression](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions) and returns `true` or `false`.
|
11069
11103
|
* @param expression An expression to calculate.
|
@@ -11900,6 +11934,7 @@ declare module "packages/survey-core/src/survey" {
|
|
11900
11934
|
private isSmoothScrollEnabled;
|
11901
11935
|
private resizeObserver;
|
11902
11936
|
afterRenderSurvey(htmlElement: any): void;
|
11937
|
+
beforeDestroySurveyElement(): void;
|
11903
11938
|
/**
|
11904
11939
|
* An event that is raised when the survey's width or height is changed.
|
11905
11940
|
*/
|
@@ -11956,6 +11991,7 @@ declare module "packages/survey-core/src/survey" {
|
|
11956
11991
|
matrixCellValidate(question: QuestionMatrixDropdownModelBase, options: MatrixCellValidateEvent): SurveyError;
|
11957
11992
|
dynamicPanelAdded(question: QuestionPanelDynamicModel, panelIndex?: number, panel?: PanelModel): void;
|
11958
11993
|
dynamicPanelRemoved(question: QuestionPanelDynamicModel, panelIndex: number, panel: PanelModel): void;
|
11994
|
+
private hasQuestionVisibleIndeces;
|
11959
11995
|
dynamicPanelRemoving(question: QuestionPanelDynamicModel, panelIndex: number, panel: PanelModel): boolean;
|
11960
11996
|
dynamicPanelItemValueChanged(question: IQuestion, options: any): void;
|
11961
11997
|
dynamicPanelGetTabTitle(question: IQuestion, options: any): void;
|
@@ -12148,11 +12184,13 @@ declare module "packages/survey-core/src/survey" {
|
|
12148
12184
|
* @see addNewPage
|
12149
12185
|
*/
|
12150
12186
|
createNewPage(name: string): PageModel;
|
12187
|
+
private getValueChangeReason;
|
12151
12188
|
protected questionOnValueChanging(valueName: string, newValue: any, questionValueName?: string): any;
|
12152
12189
|
protected updateQuestionValue(valueName: string, newValue: any): void;
|
12153
12190
|
private checkQuestionErrorOnValueChanged;
|
12154
12191
|
private checkQuestionErrorOnValueChangedCore;
|
12155
12192
|
private checkErrorsOnValueChanging;
|
12193
|
+
private fireOnValueChanged;
|
12156
12194
|
protected notifyQuestionOnValueChanged(valueName: string, newValue: any, questionName: string): void;
|
12157
12195
|
private isRunningElementsBindings;
|
12158
12196
|
private updateVisibleIndexAfterBindings;
|
@@ -12208,6 +12246,8 @@ declare module "packages/survey-core/src/survey" {
|
|
12208
12246
|
protected onLoadSurveyFromService(): void;
|
12209
12247
|
private resetVisibleIndexes;
|
12210
12248
|
private updateVisibleIndexes;
|
12249
|
+
private updatePageElementsVisibleIndexes;
|
12250
|
+
private getStartVisibleIndex;
|
12211
12251
|
private updatePageVisibleIndexes;
|
12212
12252
|
fromJSON(json: any, options?: ILoadFromJSONOptions): void;
|
12213
12253
|
startLoadingFromJson(json?: any): void;
|
@@ -12554,6 +12594,10 @@ declare module "packages/survey-core/src/survey" {
|
|
12554
12594
|
setTriggerValue(name: string, value: any, isVariable: boolean): void;
|
12555
12595
|
copyTriggerValue(name: string, fromName: string, copyDisplayValue: boolean): void;
|
12556
12596
|
triggerExecuted(trigger: Trigger): void;
|
12597
|
+
private setValueFromTriggerCounter;
|
12598
|
+
get isSettingValueFromTrigger(): boolean;
|
12599
|
+
private startSetValueFromTrigger;
|
12600
|
+
private finishSetValueFromTrigger;
|
12557
12601
|
private focusingQuestionInfo;
|
12558
12602
|
private isMovingQuestion;
|
12559
12603
|
startMovingQuestion(): void;
|
@@ -13908,6 +13952,8 @@ declare module "packages/survey-core/src/question" {
|
|
13908
13952
|
protected convertFuncValuetoQuestionValue(val: any): any;
|
13909
13953
|
private runExpressionSetValueCore;
|
13910
13954
|
private runExpressionSetValue;
|
13955
|
+
protected startSetValueOnExpression(): void;
|
13956
|
+
protected finishSetValueOnExpression(): void;
|
13911
13957
|
private runDefaultValueExpression;
|
13912
13958
|
/**
|
13913
13959
|
* A comment to the selected question value. Enable the `showCommentArea` property to allow users to leave comments.
|
@@ -15062,6 +15108,8 @@ declare module "packages/survey-core/src/base-interfaces" {
|
|
15062
15108
|
dragAndDropAllow(options: DragDropAllowEvent): boolean;
|
15063
15109
|
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, passedRootElement?: HTMLElement, onScolledCallback?: () => void): any;
|
15064
15110
|
runExpression(expression: string, callback?: (res: any) => void): any;
|
15111
|
+
startSetValueOnExpression(): void;
|
15112
|
+
finishSetValueOnExpression(): void;
|
15065
15113
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
15066
15114
|
onCorrectQuestionAnswer(question: IQuestion, options: any): void;
|
15067
15115
|
processPopupVisiblityChanged(question: IQuestion, popupModel: PopupModel, visible: boolean): void;
|
@@ -16111,7 +16159,10 @@ declare module "packages/survey-core/src/utils/popup" {
|
|
16111
16159
|
export class PopupUtils {
|
16112
16160
|
static bottomIndent: number;
|
16113
16161
|
static calculatePosition(targetRect: Rect, height: number, width: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, positionMode?: PositionMode): INumberPosition;
|
16114
|
-
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;
|
16115
16166
|
static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition, positionMode?: PositionMode, margins?: {
|
16116
16167
|
left: number;
|
16117
16168
|
right: number;
|
@@ -16134,6 +16185,8 @@ declare module "packages/survey-core/src/popup" {
|
|
16134
16185
|
onShow?: () => void;
|
16135
16186
|
onCancel?: () => void;
|
16136
16187
|
onDispose?: () => void;
|
16188
|
+
getTargetCallback?: (container: HTMLElement) => HTMLElement;
|
16189
|
+
getAreaCallback?: (container: HTMLElement) => HTMLElement;
|
16137
16190
|
cssClass?: string;
|
16138
16191
|
title?: string;
|
16139
16192
|
verticalPosition?: VerticalPosition;
|
@@ -16158,6 +16211,8 @@ declare module "packages/survey-core/src/popup" {
|
|
16158
16211
|
onHide: () => void;
|
16159
16212
|
onShow: () => void;
|
16160
16213
|
onDispose: () => void;
|
16214
|
+
getTargetCallback?: (container: HTMLElement) => HTMLElement;
|
16215
|
+
getAreaCallback?: (container: HTMLElement) => HTMLElement;
|
16161
16216
|
contentComponentName: string;
|
16162
16217
|
contentComponentData: T;
|
16163
16218
|
verticalPosition: VerticalPosition;
|
@@ -16904,8 +16959,6 @@ declare module "packages/survey-core/src/popup-dropdown-view-model" {
|
|
16904
16959
|
import { PopupBaseViewModel } from "packages/survey-core/src/popup-view-model";
|
16905
16960
|
export function calculateIsTablet(windowWidth?: number, windowHeight?: number): boolean;
|
16906
16961
|
export class PopupDropdownViewModel extends PopupBaseViewModel {
|
16907
|
-
targetElement?: HTMLElement;
|
16908
|
-
areaElement?: HTMLElement;
|
16909
16962
|
static readonly tabletSizeBreakpoint = 600;
|
16910
16963
|
private scrollEventCallBack;
|
16911
16964
|
private calculateIsTablet;
|
@@ -16925,8 +16978,8 @@ declare module "packages/survey-core/src/popup-dropdown-view-model" {
|
|
16925
16978
|
popupDirection: string;
|
16926
16979
|
pointerTarget: IPosition;
|
16927
16980
|
private recalculatePositionHandler;
|
16928
|
-
constructor(model: PopupModel
|
16929
|
-
setComponentElement(componentRoot: HTMLElement
|
16981
|
+
constructor(model: PopupModel);
|
16982
|
+
setComponentElement(componentRoot: HTMLElement): void;
|
16930
16983
|
resetComponentElement(): void;
|
16931
16984
|
updateOnShowing(): void;
|
16932
16985
|
private get shouldCreateResizeCallback();
|
@@ -18938,7 +18991,7 @@ declare module "packages/survey-core/src/popup-utils" {
|
|
18938
18991
|
import { IDialogOptions, PopupModel } from "packages/survey-core/src/popup";
|
18939
18992
|
import { PopupBaseViewModel } from "packages/survey-core/src/popup-view-model";
|
18940
18993
|
export function createPopupModalViewModel(options: IDialogOptions, rootElement?: HTMLElement): PopupBaseViewModel;
|
18941
|
-
export function createPopupViewModel(model: PopupModel
|
18994
|
+
export function createPopupViewModel(model: PopupModel): PopupBaseViewModel;
|
18942
18995
|
}
|
18943
18996
|
declare module "packages/survey-core/src/question_buttongroup" {
|
18944
18997
|
import { ItemValue } from "packages/survey-core/src/itemvalue";
|
@@ -18972,7 +19025,7 @@ declare module "packages/survey-core/src/question_buttongroup" {
|
|
18972
19025
|
constructor(question: QuestionButtonGroupModel, item: ItemValue, index: number);
|
18973
19026
|
get value(): any;
|
18974
19027
|
get iconName(): string;
|
18975
|
-
get iconSize(): number;
|
19028
|
+
get iconSize(): string | number;
|
18976
19029
|
get caption(): LocalizableString;
|
18977
19030
|
get showCaption(): any;
|
18978
19031
|
get isRequired(): boolean;
|
@@ -19375,7 +19428,7 @@ declare module "packages/survey-core/entries/chunks/model" {
|
|
19375
19428
|
export { Cover, CoverCell } from "packages/survey-core/src/header";
|
19376
19429
|
export { dxSurveyService } from "packages/survey-core/src/dxSurveyService";
|
19377
19430
|
export { englishStrings } from "packages/survey-core/src/localization/english";
|
19378
|
-
export { surveyLocalization, surveyStrings } from "packages/survey-core/src/surveyStrings";
|
19431
|
+
export { surveyLocalization, surveyStrings, getLocaleString } from "packages/survey-core/src/surveyStrings";
|
19379
19432
|
export { QuestionCustomWidget, CustomWidgetCollection, } from "packages/survey-core/src/questionCustomWidgets";
|
19380
19433
|
export { QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, ICustomQuestionTypeConfiguration } from "packages/survey-core/src/question_custom";
|
19381
19434
|
export { ListModel } from "packages/survey-core/src/list";
|
@@ -27402,8 +27455,6 @@ declare module "packages/survey-react-ui/src/components/popup/popup" {
|
|
27402
27455
|
import { SurveyElementBase } from "packages/survey-react-ui/src/reactquestion_element";
|
27403
27456
|
interface IPopupProps {
|
27404
27457
|
model: PopupModel;
|
27405
|
-
getTarget?: (container: HTMLElement) => HTMLElement;
|
27406
|
-
getArea?: (container: HTMLElement) => HTMLElement;
|
27407
27458
|
}
|
27408
27459
|
export class Popup extends SurveyElementBase<IPopupProps, any> {
|
27409
27460
|
private popup;
|