survey-react 1.12.9 → 1.12.10
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 +45 -5
- package/survey.react.js +234 -89
- 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
@@ -741,11 +741,21 @@ declare module "packages/survey-core/src/utils/animation" {
|
|
741
741
|
isDeletingRunning: boolean;
|
742
742
|
isAddingRunning: boolean;
|
743
743
|
}
|
744
|
+
interface IGroupAnimationCompareInfo<T> {
|
745
|
+
addedItems: Array<T>;
|
746
|
+
deletedItems: Array<T>;
|
747
|
+
reorderedItems: Array<{
|
748
|
+
item: T;
|
749
|
+
movedForward: boolean;
|
750
|
+
}>;
|
751
|
+
mergedItems: Array<T>;
|
752
|
+
}
|
744
753
|
export interface IAnimationGroupConsumer<T> extends IAnimationConsumer<[T]> {
|
745
754
|
getLeaveOptions?(item: T, info?: IGroupAnimationInfo): AnimationOptions;
|
746
755
|
getEnterOptions?(item: T, info?: IGroupAnimationInfo): AnimationOptions;
|
747
756
|
getReorderOptions?(item: T, movedForward: boolean, info?: IGroupAnimationInfo): AnimationOptions;
|
748
757
|
getKey?: (item: T) => any;
|
758
|
+
onCompareArrays?(options: IGroupAnimationCompareInfo<T>): void;
|
749
759
|
allowSyncRemovalAddition?: boolean;
|
750
760
|
}
|
751
761
|
export class AnimationUtils {
|
@@ -903,6 +913,7 @@ declare module "packages/survey-core/src/utils/utils" {
|
|
903
913
|
function activateLazyRenderingChecks(id: string): void;
|
904
914
|
function navigateToUrl(url: string): void;
|
905
915
|
function wrapUrlForBackgroundImage(url: string): string;
|
916
|
+
function isBase64URL(url: string): boolean;
|
906
917
|
const renamedIcons: any;
|
907
918
|
function getIconNameFromProxy(iconName: string): string;
|
908
919
|
export function getNewIconName(iconName: string): string;
|
@@ -962,7 +973,7 @@ declare module "packages/survey-core/src/utils/utils" {
|
|
962
973
|
export function prepareElementForVerticalAnimation(el: HTMLElement): void;
|
963
974
|
export function cleanHtmlElementAfterAnimation(el: HTMLElement): void;
|
964
975
|
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 };
|
976
|
+
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
977
|
}
|
967
978
|
declare module "packages/survey-core/src/actions/container" {
|
968
979
|
import { Base } from "packages/survey-core/src/base";
|
@@ -1360,7 +1371,7 @@ declare module "packages/survey-core/src/actions/action" {
|
|
1360
1371
|
id: string;
|
1361
1372
|
removePriority: number;
|
1362
1373
|
iconName: string;
|
1363
|
-
iconSize: number;
|
1374
|
+
iconSize: number | string;
|
1364
1375
|
markerIconName: string;
|
1365
1376
|
markerIconSize: number;
|
1366
1377
|
css?: string;
|
@@ -1475,7 +1486,7 @@ declare module "packages/survey-core/src/utils/responsivity-manager" {
|
|
1475
1486
|
offset: number;
|
1476
1487
|
}
|
1477
1488
|
export class ResponsivityManager {
|
1478
|
-
|
1489
|
+
container: HTMLDivElement;
|
1479
1490
|
private model;
|
1480
1491
|
private itemsSelector;
|
1481
1492
|
private dotsItemSize;
|
@@ -1487,6 +1498,8 @@ declare module "packages/survey-core/src/utils/responsivity-manager" {
|
|
1487
1498
|
private separatorAddConst;
|
1488
1499
|
private paddingSizeConst;
|
1489
1500
|
private dotsSizeConst;
|
1501
|
+
private dotsIconClass;
|
1502
|
+
private iconClass;
|
1490
1503
|
protected recalcMinDimensionConst: boolean;
|
1491
1504
|
getComputedStyle: (elt: Element) => CSSStyleDeclaration;
|
1492
1505
|
constructor(container: HTMLDivElement, model: AdaptiveActionContainer, itemsSelector: string, dotsItemSize?: number, delayedUpdateFunction?: (callback: () => void) => void);
|
@@ -7579,6 +7592,10 @@ declare module "packages/survey-core/src/survey-events-api" {
|
|
7579
7592
|
* 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
7593
|
*/
|
7581
7594
|
name: string;
|
7595
|
+
/**
|
7596
|
+
* 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`.
|
7597
|
+
*/
|
7598
|
+
reason: "trigger" | "expression" | undefined;
|
7582
7599
|
}
|
7583
7600
|
export interface ValueChangedEvent extends ValueChangeBaseEvent {
|
7584
7601
|
/**
|
@@ -8604,6 +8621,12 @@ declare module "packages/survey-core/src/page" {
|
|
8604
8621
|
dragDropMoveTo(destination: ISurveyElement, isBottom?: boolean, isEdge?: boolean): boolean;
|
8605
8622
|
dragDropFinish(isCancel?: boolean): IElement;
|
8606
8623
|
ensureRowsVisibility(): void;
|
8624
|
+
private _isReadyForClean;
|
8625
|
+
get isReadyForClean(): boolean;
|
8626
|
+
set isReadyForClean(val: boolean);
|
8627
|
+
isReadyForCleanChangedCallback: () => void;
|
8628
|
+
enableOnElementRerenderedEvent(): void;
|
8629
|
+
disableOnElementRerenderedEvent(): void;
|
8607
8630
|
}
|
8608
8631
|
}
|
8609
8632
|
declare module "packages/survey-core/src/dxSurveyService" {
|
@@ -10391,7 +10414,7 @@ declare module "packages/survey-core/src/survey" {
|
|
10391
10414
|
*/
|
10392
10415
|
onGetPageTitleActions: EventBase<SurveyModel, GetPageTitleActionsEvent>;
|
10393
10416
|
/**
|
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).
|
10417
|
+
* 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
10418
|
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
10396
10419
|
*/
|
10397
10420
|
onGetPanelFooterActions: EventBase<SurveyModel, GetPanelFooterActionsEvent>;
|
@@ -11064,6 +11087,10 @@ declare module "packages/survey-core/src/survey" {
|
|
11064
11087
|
* @param callback A callback function that you can use to access the calculation result if the expression uses asynchronous functions.
|
11065
11088
|
*/
|
11066
11089
|
runExpression(expression: string, callback?: (res: any) => void): any;
|
11090
|
+
private setValueOnExpressionCounter;
|
11091
|
+
get isSettingValueOnExpression(): boolean;
|
11092
|
+
startSetValueOnExpression(): void;
|
11093
|
+
finishSetValueOnExpression(): void;
|
11067
11094
|
/**
|
11068
11095
|
* Calculates a given [expression](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions) and returns `true` or `false`.
|
11069
11096
|
* @param expression An expression to calculate.
|
@@ -11956,6 +11983,7 @@ declare module "packages/survey-core/src/survey" {
|
|
11956
11983
|
matrixCellValidate(question: QuestionMatrixDropdownModelBase, options: MatrixCellValidateEvent): SurveyError;
|
11957
11984
|
dynamicPanelAdded(question: QuestionPanelDynamicModel, panelIndex?: number, panel?: PanelModel): void;
|
11958
11985
|
dynamicPanelRemoved(question: QuestionPanelDynamicModel, panelIndex: number, panel: PanelModel): void;
|
11986
|
+
private hasQuestionVisibleIndeces;
|
11959
11987
|
dynamicPanelRemoving(question: QuestionPanelDynamicModel, panelIndex: number, panel: PanelModel): boolean;
|
11960
11988
|
dynamicPanelItemValueChanged(question: IQuestion, options: any): void;
|
11961
11989
|
dynamicPanelGetTabTitle(question: IQuestion, options: any): void;
|
@@ -12148,11 +12176,13 @@ declare module "packages/survey-core/src/survey" {
|
|
12148
12176
|
* @see addNewPage
|
12149
12177
|
*/
|
12150
12178
|
createNewPage(name: string): PageModel;
|
12179
|
+
private getValueChangeReason;
|
12151
12180
|
protected questionOnValueChanging(valueName: string, newValue: any, questionValueName?: string): any;
|
12152
12181
|
protected updateQuestionValue(valueName: string, newValue: any): void;
|
12153
12182
|
private checkQuestionErrorOnValueChanged;
|
12154
12183
|
private checkQuestionErrorOnValueChangedCore;
|
12155
12184
|
private checkErrorsOnValueChanging;
|
12185
|
+
private fireOnValueChanged;
|
12156
12186
|
protected notifyQuestionOnValueChanged(valueName: string, newValue: any, questionName: string): void;
|
12157
12187
|
private isRunningElementsBindings;
|
12158
12188
|
private updateVisibleIndexAfterBindings;
|
@@ -12208,6 +12238,8 @@ declare module "packages/survey-core/src/survey" {
|
|
12208
12238
|
protected onLoadSurveyFromService(): void;
|
12209
12239
|
private resetVisibleIndexes;
|
12210
12240
|
private updateVisibleIndexes;
|
12241
|
+
private updatePageElementsVisibleIndexes;
|
12242
|
+
private getStartVisibleIndex;
|
12211
12243
|
private updatePageVisibleIndexes;
|
12212
12244
|
fromJSON(json: any, options?: ILoadFromJSONOptions): void;
|
12213
12245
|
startLoadingFromJson(json?: any): void;
|
@@ -12554,6 +12586,10 @@ declare module "packages/survey-core/src/survey" {
|
|
12554
12586
|
setTriggerValue(name: string, value: any, isVariable: boolean): void;
|
12555
12587
|
copyTriggerValue(name: string, fromName: string, copyDisplayValue: boolean): void;
|
12556
12588
|
triggerExecuted(trigger: Trigger): void;
|
12589
|
+
private setValueFromTriggerCounter;
|
12590
|
+
get isSettingValueFromTrigger(): boolean;
|
12591
|
+
private startSetValueFromTrigger;
|
12592
|
+
private finishSetValueFromTrigger;
|
12557
12593
|
private focusingQuestionInfo;
|
12558
12594
|
private isMovingQuestion;
|
12559
12595
|
startMovingQuestion(): void;
|
@@ -13908,6 +13944,8 @@ declare module "packages/survey-core/src/question" {
|
|
13908
13944
|
protected convertFuncValuetoQuestionValue(val: any): any;
|
13909
13945
|
private runExpressionSetValueCore;
|
13910
13946
|
private runExpressionSetValue;
|
13947
|
+
protected startSetValueOnExpression(): void;
|
13948
|
+
protected finishSetValueOnExpression(): void;
|
13911
13949
|
private runDefaultValueExpression;
|
13912
13950
|
/**
|
13913
13951
|
* A comment to the selected question value. Enable the `showCommentArea` property to allow users to leave comments.
|
@@ -15062,6 +15100,8 @@ declare module "packages/survey-core/src/base-interfaces" {
|
|
15062
15100
|
dragAndDropAllow(options: DragDropAllowEvent): boolean;
|
15063
15101
|
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions, passedRootElement?: HTMLElement, onScolledCallback?: () => void): any;
|
15064
15102
|
runExpression(expression: string, callback?: (res: any) => void): any;
|
15103
|
+
startSetValueOnExpression(): void;
|
15104
|
+
finishSetValueOnExpression(): void;
|
15065
15105
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
15066
15106
|
onCorrectQuestionAnswer(question: IQuestion, options: any): void;
|
15067
15107
|
processPopupVisiblityChanged(question: IQuestion, popupModel: PopupModel, visible: boolean): void;
|
@@ -18972,7 +19012,7 @@ declare module "packages/survey-core/src/question_buttongroup" {
|
|
18972
19012
|
constructor(question: QuestionButtonGroupModel, item: ItemValue, index: number);
|
18973
19013
|
get value(): any;
|
18974
19014
|
get iconName(): string;
|
18975
|
-
get iconSize(): number;
|
19015
|
+
get iconSize(): string | number;
|
18976
19016
|
get caption(): LocalizableString;
|
18977
19017
|
get showCaption(): any;
|
18978
19018
|
get isRequired(): boolean;
|