survey-react 1.10.6 → 1.11.1
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 +131 -17
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +77 -9
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +17 -1
- package/survey.css.map +1 -1
- package/survey.min.css +2 -2
- package/survey.react.d.ts +210 -66
- package/survey.react.js +1433 -594
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -341,15 +341,15 @@ declare module "functionsfactory" {
|
|
341
341
|
static Instance: FunctionFactory;
|
342
342
|
private functionHash;
|
343
343
|
private isAsyncHash;
|
344
|
-
register(name: string, func: (params: any[]) => any, isAsync?: boolean): void;
|
344
|
+
register(name: string, func: (params: any[], originalParams?: any[]) => any, isAsync?: boolean): void;
|
345
345
|
unregister(name: string): void;
|
346
346
|
hasFunction(name: string): boolean;
|
347
347
|
isAsyncFunction(name: string): boolean;
|
348
348
|
clear(): void;
|
349
349
|
getAll(): Array<string>;
|
350
|
-
run(name: string, params: any[], properties
|
350
|
+
run(name: string, params: any[], properties: HashTable<any>, originalParams: any[]): any;
|
351
351
|
}
|
352
|
-
export var registerFunction: (name: string, func: (params: any[]) => any, isAsync?: boolean) => void;
|
352
|
+
export var registerFunction: (name: string, func: (params: any[], originalParams?: any[]) => any, isAsync?: boolean) => void;
|
353
353
|
}
|
354
354
|
declare module "expressions/expressions" {
|
355
355
|
import { HashTable } from "helpers";
|
@@ -685,16 +685,30 @@ declare module "utils/taskmanager" {
|
|
685
685
|
};
|
686
686
|
}
|
687
687
|
declare module "utils/animation" {
|
688
|
+
import { EventBase, Base } from "base";
|
688
689
|
export interface AnimationOptions {
|
689
690
|
cssClass: string;
|
690
691
|
onBeforeRunAnimation?: (element: HTMLElement) => void;
|
691
692
|
onAfterRunAnimation?: (element: HTMLElement) => void;
|
692
693
|
}
|
693
694
|
export interface IAnimationConsumer<T extends Array<any> = []> {
|
694
|
-
getLeaveOptions(...args: T): AnimationOptions;
|
695
|
-
getEnterOptions(...args: T): AnimationOptions;
|
695
|
+
getLeaveOptions?(...args: T): AnimationOptions;
|
696
|
+
getEnterOptions?(...args: T): AnimationOptions;
|
696
697
|
getAnimatedElement(...args: T): HTMLElement;
|
697
698
|
isAnimationEnabled(): boolean;
|
699
|
+
getRerenderEvent(): EventBase<Base>;
|
700
|
+
}
|
701
|
+
interface IGroupAnimationInfo {
|
702
|
+
isReorderingRunning: boolean;
|
703
|
+
isDeletingRunning: boolean;
|
704
|
+
isAddingRunning: boolean;
|
705
|
+
}
|
706
|
+
export interface IAnimationGroupConsumer<T> extends IAnimationConsumer<[T]> {
|
707
|
+
getLeaveOptions?(item: T, info?: IGroupAnimationInfo): AnimationOptions;
|
708
|
+
getEnterOptions?(item: T, info?: IGroupAnimationInfo): AnimationOptions;
|
709
|
+
getReorderOptions?(item: T, movedForward: boolean, info?: IGroupAnimationInfo): AnimationOptions;
|
710
|
+
getKey?: (item: T) => any;
|
711
|
+
allowSyncRemovalAddition?: boolean;
|
698
712
|
}
|
699
713
|
export class AnimationUtils {
|
700
714
|
private getMsFromRule;
|
@@ -705,11 +719,12 @@ declare module "utils/animation" {
|
|
705
719
|
private addCancelCallback;
|
706
720
|
private removeCancelCallback;
|
707
721
|
protected onAnimationEnd(element: HTMLElement, callback: (isCancel?: boolean) => void, options: AnimationOptions): void;
|
722
|
+
protected afterAnimationRun(element: HTMLElement, options: AnimationOptions | AnimationOptions): void;
|
708
723
|
protected beforeAnimationRun(element: HTMLElement, options: AnimationOptions | AnimationOptions): void;
|
709
724
|
private getCssClasses;
|
710
725
|
protected runAnimation(element: HTMLElement, options: AnimationOptions, callback: (isCancel?: boolean) => void): void;
|
711
726
|
protected clearHtmlElement(element: HTMLElement, options: AnimationOptions): void;
|
712
|
-
protected onNextRender(callback: (
|
727
|
+
protected onNextRender(callback: (isCancel?: boolean) => void, isCancel?: boolean): void;
|
713
728
|
cancel(): void;
|
714
729
|
}
|
715
730
|
export class AnimationPropertyUtils extends AnimationUtils {
|
@@ -717,31 +732,36 @@ declare module "utils/animation" {
|
|
717
732
|
onLeave(options: IAnimationConsumer, callback: () => void): void;
|
718
733
|
}
|
719
734
|
export class AnimationGroupUtils<T> extends AnimationUtils {
|
720
|
-
runGroupAnimation(options:
|
735
|
+
runGroupAnimation(options: IAnimationGroupConsumer<T>, addedItems: Array<T>, removedItems: Array<T>, reorderedItems: Array<{
|
736
|
+
item: T;
|
737
|
+
movedForward: boolean;
|
738
|
+
}>, callback?: () => void): void;
|
721
739
|
}
|
722
|
-
export abstract class AnimationProperty<T, S extends
|
723
|
-
protected animationOptions:
|
740
|
+
export abstract class AnimationProperty<T, S extends IAnimationConsumer<any> = IAnimationConsumer> {
|
741
|
+
protected animationOptions: S;
|
724
742
|
protected update: (val: T, isTempUpdate?: boolean) => void;
|
725
743
|
protected getCurrentValue: () => T;
|
726
|
-
constructor(animationOptions:
|
744
|
+
constructor(animationOptions: S, update: (val: T, isTempUpdate?: boolean) => void, getCurrentValue: () => T);
|
727
745
|
protected animation: AnimationUtils;
|
746
|
+
protected onNextRender(callback: () => void, onCancel?: () => void): void;
|
728
747
|
protected abstract _sync(newValue: T): void;
|
729
748
|
private _debouncedSync;
|
730
749
|
sync(newValue: T): void;
|
750
|
+
private cancelCallback;
|
731
751
|
cancel(): void;
|
732
752
|
}
|
733
753
|
export class AnimationBoolean extends AnimationProperty<boolean> {
|
734
754
|
protected animation: AnimationPropertyUtils;
|
735
755
|
protected _sync(newValue: boolean): void;
|
736
756
|
}
|
737
|
-
export class AnimationGroup<T> extends AnimationProperty<Array<T>,
|
757
|
+
export class AnimationGroup<T> extends AnimationProperty<Array<T>, IAnimationGroupConsumer<T>> {
|
738
758
|
protected animation: AnimationGroupUtils<T>;
|
739
759
|
protected _sync(newValue: Array<T>): void;
|
740
760
|
}
|
741
|
-
export class AnimationTab<T> extends AnimationProperty<Array<T>,
|
761
|
+
export class AnimationTab<T> extends AnimationProperty<Array<T>, IAnimationGroupConsumer<T>> {
|
742
762
|
protected mergeValues?: (newValue: Array<T>, oldValue: Array<T>) => Array<T>;
|
743
763
|
protected animation: AnimationGroupUtils<T>;
|
744
|
-
constructor(animationOptions:
|
764
|
+
constructor(animationOptions: IAnimationGroupConsumer<T>, update: (val: Array<T>, isTempUpdate?: boolean) => void, getCurrentValue: () => Array<T>, mergeValues?: (newValue: Array<T>, oldValue: Array<T>) => Array<T>);
|
745
765
|
protected _sync(newValue: [T]): void;
|
746
766
|
}
|
747
767
|
}
|
@@ -774,6 +794,7 @@ declare module "popup-view-model" {
|
|
774
794
|
getEnterOptions(): AnimationOptions;
|
775
795
|
getAnimatedElement(): HTMLElement;
|
776
796
|
isAnimationEnabled(): boolean;
|
797
|
+
getRerenderEvent(): EventBase<Base>;
|
777
798
|
private getAnimationContainer;
|
778
799
|
get isVisible(): boolean;
|
779
800
|
set isVisible(val: boolean);
|
@@ -822,7 +843,7 @@ declare module "popup-view-model" {
|
|
822
843
|
cancel(): void;
|
823
844
|
dispose(): void;
|
824
845
|
initializePopupContainer(): void;
|
825
|
-
setComponentElement(componentRoot: HTMLElement, targetElement?: HTMLElement | null): void;
|
846
|
+
setComponentElement(componentRoot: HTMLElement, targetElement?: HTMLElement | null, areaElement?: HTMLElement | null): void;
|
826
847
|
resetComponentElement(): void;
|
827
848
|
protected preventScrollOuside(event: any, deltaY: number): void;
|
828
849
|
}
|
@@ -874,6 +895,15 @@ declare module "utils/utils" {
|
|
874
895
|
export function showConfirmDialog(message: string, callback: (res: boolean) => void, applyTitle?: string, locale?: string, rootElement?: HTMLElement): boolean;
|
875
896
|
export function configConfirmDialog(popupViewModel: PopupBaseViewModel): void;
|
876
897
|
function chooseFiles(input: HTMLInputElement, callback: (files: File[]) => void): void;
|
898
|
+
export function compareArrays<T>(oldValue: Array<T>, newValue: Array<T>, getKey: (item: T) => any): {
|
899
|
+
addedItems: Array<T>;
|
900
|
+
deletedItems: Array<T>;
|
901
|
+
reorderedItems: Array<{
|
902
|
+
item: T;
|
903
|
+
movedForward: boolean;
|
904
|
+
}>;
|
905
|
+
mergedItems: Array<T>;
|
906
|
+
};
|
877
907
|
export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, chooseFiles };
|
878
908
|
}
|
879
909
|
declare module "actions/container" {
|
@@ -924,6 +954,10 @@ declare module "actions/container" {
|
|
924
954
|
addAction(val: IAction, sortByVisibleIndex?: boolean): T;
|
925
955
|
private sortItems;
|
926
956
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
957
|
+
subItemsShowDelay: number;
|
958
|
+
subItemsHideDelay: number;
|
959
|
+
protected popupAfterShowCallback(itemValue: T): void;
|
960
|
+
mouseOverHandler(itemValue: T): void;
|
927
961
|
initResponsivityManager(container: HTMLDivElement, delayedUpdateFunction?: (callback: () => void) => void): void;
|
928
962
|
resetResponsivityManager(): void;
|
929
963
|
getActionById(id: string): T;
|
@@ -953,8 +987,10 @@ declare module "list" {
|
|
953
987
|
itemWithIcon: string;
|
954
988
|
itemDisabled: string;
|
955
989
|
itemFocused: string;
|
990
|
+
itemHovered: string;
|
956
991
|
itemTextWrap: string;
|
957
992
|
itemIcon: string;
|
993
|
+
itemMarkerIcon: string;
|
958
994
|
itemSeparator: string;
|
959
995
|
itemBody: string;
|
960
996
|
itemsContainer: string;
|
@@ -967,7 +1003,7 @@ declare module "list" {
|
|
967
1003
|
};
|
968
1004
|
export interface IListModel {
|
969
1005
|
items: Array<IAction>;
|
970
|
-
onSelectionChanged
|
1006
|
+
onSelectionChanged?: (item: IAction, ...params: any[]) => void;
|
971
1007
|
allowSelection?: boolean;
|
972
1008
|
searchEnabled?: boolean;
|
973
1009
|
selectedItem?: IAction;
|
@@ -1002,6 +1038,7 @@ declare module "list" {
|
|
1002
1038
|
areSameItemsCallback: (item1: IAction, item2: IAction) => boolean;
|
1003
1039
|
private hasText;
|
1004
1040
|
isItemVisible(item: T): boolean;
|
1041
|
+
protected getRenderedActions(): Array<T>;
|
1005
1042
|
get visibleItems(): Array<T>;
|
1006
1043
|
private get shouldProcessFilter();
|
1007
1044
|
private onFilterStringChanged;
|
@@ -1020,8 +1057,10 @@ declare module "list" {
|
|
1020
1057
|
itemWithIcon: string;
|
1021
1058
|
itemDisabled: string;
|
1022
1059
|
itemFocused: string;
|
1060
|
+
itemHovered: string;
|
1023
1061
|
itemTextWrap: string;
|
1024
1062
|
itemIcon: string;
|
1063
|
+
itemMarkerIcon: string;
|
1025
1064
|
itemSeparator: string;
|
1026
1065
|
itemBody: string;
|
1027
1066
|
itemsContainer: string;
|
@@ -1033,6 +1072,9 @@ declare module "list" {
|
|
1033
1072
|
emptyText: string;
|
1034
1073
|
};
|
1035
1074
|
onItemClick: (itemValue: T) => void;
|
1075
|
+
protected popupAfterShowCallback(itemValue: T): void;
|
1076
|
+
onItemHover: (itemValue: T) => void;
|
1077
|
+
onItemLeave(itemValue: T): void;
|
1036
1078
|
isItemDisabled: (itemValue: T) => boolean;
|
1037
1079
|
isItemSelected: (itemValue: T) => boolean;
|
1038
1080
|
isItemFocused: (itemValue: T) => boolean;
|
@@ -1216,6 +1258,11 @@ declare module "actions/action" {
|
|
1216
1258
|
ariaExpanded?: boolean;
|
1217
1259
|
ariaRole?: string;
|
1218
1260
|
elementId?: string;
|
1261
|
+
items?: Array<IAction>;
|
1262
|
+
markerIconName?: string;
|
1263
|
+
markerIconSize?: number;
|
1264
|
+
showPopup?: () => void;
|
1265
|
+
hidePopup?: () => void;
|
1219
1266
|
}
|
1220
1267
|
export interface IActionDropdownPopupOptions extends IListModel, IPopupOptionsBase {
|
1221
1268
|
}
|
@@ -1224,6 +1271,7 @@ declare module "actions/action" {
|
|
1224
1271
|
export function createPopupModelWithListModel(listOptions: IListModel, popupOptions: IPopupOptionsBase): PopupModel;
|
1225
1272
|
export function getActionDropdownButtonTarget(container: HTMLElement): HTMLElement;
|
1226
1273
|
export abstract class BaseAction extends Base implements IAction {
|
1274
|
+
items?: IAction[];
|
1227
1275
|
private static renderedId;
|
1228
1276
|
private static getNextRendredId;
|
1229
1277
|
private cssClassesValue;
|
@@ -1251,6 +1299,8 @@ declare module "actions/action" {
|
|
1251
1299
|
removePriority: number;
|
1252
1300
|
iconName: string;
|
1253
1301
|
iconSize: number;
|
1302
|
+
markerIconName: string;
|
1303
|
+
markerIconSize: number;
|
1254
1304
|
css?: string;
|
1255
1305
|
minDimension: number;
|
1256
1306
|
maxDimension: number;
|
@@ -1278,6 +1328,15 @@ declare module "actions/action" {
|
|
1278
1328
|
getActionRootCss(): string;
|
1279
1329
|
getTooltip(): string;
|
1280
1330
|
getIsTrusted(args: any): boolean;
|
1331
|
+
showPopup(): void;
|
1332
|
+
hidePopup(): void;
|
1333
|
+
isPressed: boolean;
|
1334
|
+
isHovered: boolean;
|
1335
|
+
private showPopupTimeout;
|
1336
|
+
private hidePopupTimeout;
|
1337
|
+
private clearPopupTimeouts;
|
1338
|
+
showPopupDelayed(delay: number): void;
|
1339
|
+
hidePopupDelayed(delay: number): void;
|
1281
1340
|
protected abstract getEnabled(): boolean;
|
1282
1341
|
protected abstract setEnabled(val: boolean): void;
|
1283
1342
|
protected abstract getVisible(): boolean;
|
@@ -1296,6 +1355,7 @@ declare module "actions/action" {
|
|
1296
1355
|
private raiseUpdate;
|
1297
1356
|
constructor(innerItem: IAction);
|
1298
1357
|
private createLocTitle;
|
1358
|
+
setItems(items: Array<IAction>, onSelectionChanged?: (item: Action, ...params: any[]) => void): void;
|
1299
1359
|
location?: string;
|
1300
1360
|
id: string;
|
1301
1361
|
private _visible;
|
@@ -1397,7 +1457,6 @@ declare module "actions/adaptive-container" {
|
|
1397
1457
|
private static ContainerID;
|
1398
1458
|
constructor();
|
1399
1459
|
get hiddenItemsListModel(): ListModel;
|
1400
|
-
protected hiddenItemSelected(item: T): void;
|
1401
1460
|
protected onSet(): void;
|
1402
1461
|
protected onPush(item: T): void;
|
1403
1462
|
protected getRenderedActions(): Array<T>;
|
@@ -1598,6 +1657,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
1598
1657
|
rowMultiple: string;
|
1599
1658
|
rowCompact: string;
|
1600
1659
|
rowFadeIn: string;
|
1660
|
+
rowDelayedFadeIn: string;
|
1601
1661
|
rowFadeOut: string;
|
1602
1662
|
pageRow: string;
|
1603
1663
|
question: {
|
@@ -1657,6 +1717,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
1657
1717
|
disabled: string;
|
1658
1718
|
readOnly: string;
|
1659
1719
|
preview: string;
|
1720
|
+
noPointerEventsMode: string;
|
1660
1721
|
errorsContainer: string;
|
1661
1722
|
errorsContainerTop: string;
|
1662
1723
|
errorsContainerBottom: string;
|
@@ -3621,7 +3682,6 @@ declare module "panel" {
|
|
3621
3682
|
protected getPanelStartIndex(index: number): number;
|
3622
3683
|
protected isContinueNumbering(): boolean;
|
3623
3684
|
private notifySurveyOnVisibilityChanged;
|
3624
|
-
protected hasErrorsCore(rec: any): void;
|
3625
3685
|
protected getRenderedTitle(str: string): string;
|
3626
3686
|
/**
|
3627
3687
|
* Increases or decreases an indent of panel content from the left edge. Accepts positive integer values and 0.
|
@@ -3656,6 +3716,7 @@ declare module "panel" {
|
|
3656
3716
|
protected getHasFrameV2(): boolean;
|
3657
3717
|
protected getIsNested(): boolean;
|
3658
3718
|
get showPanelAsPage(): boolean;
|
3719
|
+
protected onElementExpanded(elementIsRendered: boolean): void;
|
3659
3720
|
protected getCssRoot(cssClasses: {
|
3660
3721
|
[index: string]: string;
|
3661
3722
|
}): string;
|
@@ -3957,8 +4018,9 @@ declare module "question_file" {
|
|
3957
4018
|
doChange: (event: any) => void;
|
3958
4019
|
doClean: () => void;
|
3959
4020
|
private clearFilesCore;
|
3960
|
-
doRemoveFile(data: any): void;
|
4021
|
+
doRemoveFile(data: any, event: any): void;
|
3961
4022
|
private removeFileCore;
|
4023
|
+
doDownloadFileFromContainer: (event: MouseEvent) => void;
|
3962
4024
|
doDownloadFile: (event: any, data: any) => void;
|
3963
4025
|
dispose(): void;
|
3964
4026
|
}
|
@@ -4197,6 +4259,8 @@ declare module "question_baseselect" {
|
|
4197
4259
|
isLayoutTypeSupported(layoutType: string): boolean;
|
4198
4260
|
localeChanged(): void;
|
4199
4261
|
locStrsChanged(): void;
|
4262
|
+
private prevOtherErrorValue;
|
4263
|
+
private updatePrevOtherErrorValue;
|
4200
4264
|
get otherValue(): string;
|
4201
4265
|
set otherValue(val: string);
|
4202
4266
|
protected get otherValueCore(): string;
|
@@ -5542,7 +5606,6 @@ declare module "question_matrixdropdownrendered" {
|
|
5542
5606
|
private hasRemoveRowsValue;
|
5543
5607
|
private rowsActions;
|
5544
5608
|
private cssClasses;
|
5545
|
-
renderedRowsChangedCallback: () => void;
|
5546
5609
|
rows: Array<QuestionMatrixDropdownRenderedRow>;
|
5547
5610
|
protected getIsAnimationAllowed(): boolean;
|
5548
5611
|
private getRenderedRowsAnimationOptions;
|
@@ -5636,7 +5699,6 @@ declare module "utils/dragOrClickHelper" {
|
|
5636
5699
|
}
|
5637
5700
|
declare module "question_matrixdynamic" {
|
5638
5701
|
import { QuestionMatrixDropdownModelBase, MatrixDropdownRowModelBase, IMatrixDropdownData } from "question_matrixdropdownbase";
|
5639
|
-
import { LocalizableString } from "localizablestring";
|
5640
5702
|
import { SurveyError } from "survey-error";
|
5641
5703
|
import { DragDropMatrixRows } from "dragdrop/matrix-rows";
|
5642
5704
|
import { IShortcutText, ISurveyImpl, IProgressInfo } from "base-interfaces";
|
@@ -5837,14 +5899,14 @@ declare module "question_matrixdynamic" {
|
|
5837
5899
|
*/
|
5838
5900
|
get confirmDeleteText(): string;
|
5839
5901
|
set confirmDeleteText(val: string);
|
5840
|
-
get locConfirmDeleteText(): LocalizableString;
|
5902
|
+
get locConfirmDeleteText(): import("localizablestring").LocalizableString;
|
5841
5903
|
/**
|
5842
5904
|
* A caption for the Add Row button.
|
5843
5905
|
* @see addRowLocation
|
5844
5906
|
*/
|
5845
5907
|
get addRowText(): string;
|
5846
5908
|
set addRowText(val: string);
|
5847
|
-
get locAddRowText(): LocalizableString;
|
5909
|
+
get locAddRowText(): import("localizablestring").LocalizableString;
|
5848
5910
|
private get defaultAddRowText();
|
5849
5911
|
/**
|
5850
5912
|
* Specifies the location of the Add Row button.
|
@@ -5875,14 +5937,14 @@ declare module "question_matrixdynamic" {
|
|
5875
5937
|
*/
|
5876
5938
|
get removeRowText(): string;
|
5877
5939
|
set removeRowText(val: string);
|
5878
|
-
get locRemoveRowText(): LocalizableString;
|
5940
|
+
get locRemoveRowText(): import("localizablestring").LocalizableString;
|
5879
5941
|
/**
|
5880
5942
|
* A message displayed when the matrix does not contain any rows. Applies only if `hideColumnsIfEmpty` is enabled.
|
5881
5943
|
* @see hideColumnsIfEmpty
|
5882
5944
|
*/
|
5883
5945
|
get emptyRowsText(): string;
|
5884
5946
|
set emptyRowsText(val: string);
|
5885
|
-
get locEmptyRowsText(): LocalizableString;
|
5947
|
+
get locEmptyRowsText(): import("localizablestring").LocalizableString;
|
5886
5948
|
protected getDisplayValueCore(keysAsText: boolean, value: any): any;
|
5887
5949
|
protected getConditionObjectRowName(index: number): string;
|
5888
5950
|
protected getConditionObjectsRowIndeces(): Array<number>;
|
@@ -6136,7 +6198,7 @@ declare module "question_paneldynamic" {
|
|
6136
6198
|
import { IAction } from "actions/action";
|
6137
6199
|
import { AdaptiveActionContainer } from "actions/adaptive-container";
|
6138
6200
|
import { ITheme } from "themes";
|
6139
|
-
import { AnimationProperty } from "utils/animation";
|
6201
|
+
import { AnimationProperty, IAnimationGroupConsumer } from "utils/animation";
|
6140
6202
|
export interface IQuestionPanelDynamicData {
|
6141
6203
|
getItemIndex(item: ISurveyData): number;
|
6142
6204
|
getVisibleItemIndex(item: ISurveyData): number;
|
@@ -6330,7 +6392,7 @@ declare module "question_paneldynamic" {
|
|
6330
6392
|
private disablePanelsAnimations;
|
6331
6393
|
private enablePanelsAnimations;
|
6332
6394
|
private updatePanelsAnimation;
|
6333
|
-
get panelsAnimation(): AnimationProperty<Array<PanelModel>,
|
6395
|
+
get panelsAnimation(): AnimationProperty<Array<PanelModel>, IAnimationGroupConsumer<PanelModel>>;
|
6334
6396
|
onHidingContent(): void;
|
6335
6397
|
/**
|
6336
6398
|
* Specifies whether to display a confirmation dialog when a respondent wants to delete a panel.
|
@@ -8386,7 +8448,7 @@ declare module "question_textbase" {
|
|
8386
8448
|
*/
|
8387
8449
|
get textUpdateMode(): string;
|
8388
8450
|
set textUpdateMode(val: string);
|
8389
|
-
|
8451
|
+
protected getIsInputTextUpdate(): boolean;
|
8390
8452
|
get renderedPlaceholder(): string;
|
8391
8453
|
protected setRenderedPlaceholder(val: string): void;
|
8392
8454
|
protected onReadOnlyChanged(): void;
|
@@ -8626,6 +8688,7 @@ declare module "question_text" {
|
|
8626
8688
|
get step(): string;
|
8627
8689
|
set step(val: string);
|
8628
8690
|
get renderedStep(): string;
|
8691
|
+
protected getIsInputTextUpdate(): boolean;
|
8629
8692
|
supportGoNextPageAutomatic(): boolean;
|
8630
8693
|
supportGoNextPageError(): boolean;
|
8631
8694
|
/**
|
@@ -9156,7 +9219,11 @@ declare module "surveyToc" {
|
|
9156
9219
|
export function getTocRootCss(survey: SurveyModel, isMobile?: boolean): string;
|
9157
9220
|
export class TOCModel {
|
9158
9221
|
survey: SurveyModel;
|
9222
|
+
static RootStyle: string;
|
9223
|
+
static StickyPosition: boolean;
|
9159
9224
|
constructor(survey: SurveyModel);
|
9225
|
+
private initStickyTOCSubscriptions;
|
9226
|
+
updateStickyTOCSize(rootElement: HTMLElement): void;
|
9160
9227
|
get isMobile(): boolean;
|
9161
9228
|
get containerCss(): string;
|
9162
9229
|
listModel: ListModel<Action>;
|
@@ -11348,7 +11415,7 @@ declare module "survey" {
|
|
11348
11415
|
private getUpdatedPanelTitleActions;
|
11349
11416
|
private getUpdatedPageTitleActions;
|
11350
11417
|
getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: any, actions: Array<IAction>): IAction[];
|
11351
|
-
scrollElementToTop(element: ISurveyElement, question: Question, page: PageModel, id: string, scrollIfVisible?: boolean): any;
|
11418
|
+
scrollElementToTop(element: ISurveyElement, question: Question, page: PageModel, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): any;
|
11352
11419
|
/**
|
11353
11420
|
* Opens a dialog window for users to select files.
|
11354
11421
|
* @param input A [file input HTML element](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement).
|
@@ -12142,7 +12209,7 @@ declare module "survey-element" {
|
|
12142
12209
|
dragTypeOverMe: DragTypeOverMeEnum;
|
12143
12210
|
isDragMe: boolean;
|
12144
12211
|
readOnlyChangedCallback: () => void;
|
12145
|
-
static ScrollElementToTop(elementId: string, scrollIfVisible?: boolean): boolean;
|
12212
|
+
static ScrollElementToTop(elementId: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): boolean;
|
12146
12213
|
static ScrollElementToViewCore(el: HTMLElement, checkLeft: boolean, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): boolean;
|
12147
12214
|
static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
|
12148
12215
|
static FocusElement(elementId: string): boolean;
|
@@ -12471,7 +12538,9 @@ declare module "survey-element" {
|
|
12471
12538
|
private _isAnimatingCollapseExpand;
|
12472
12539
|
private set isAnimatingCollapseExpand(value);
|
12473
12540
|
private get isAnimatingCollapseExpand();
|
12541
|
+
protected onElementExpanded(elementIsRendered: boolean): void;
|
12474
12542
|
private getExpandCollapseAnimationOptions;
|
12543
|
+
private get isExpandCollapseAnimationEnabled();
|
12475
12544
|
private animationCollapsed;
|
12476
12545
|
set renderedIsExpanded(val: boolean);
|
12477
12546
|
get renderedIsExpanded(): boolean;
|
@@ -12970,7 +13039,8 @@ declare module "question" {
|
|
12970
13039
|
*/
|
12971
13040
|
focus(onError?: boolean, scrollIfVisible?: boolean): void;
|
12972
13041
|
private focuscore;
|
12973
|
-
|
13042
|
+
expandAllParents(): void;
|
13043
|
+
private expandAllParentsCore;
|
12974
13044
|
focusIn(): void;
|
12975
13045
|
protected fireCallback(callback: () => void): void;
|
12976
13046
|
getOthersMaxLength(): any;
|
@@ -13035,6 +13105,8 @@ declare module "question" {
|
|
13035
13105
|
get isInputReadOnly(): boolean;
|
13036
13106
|
get renderedInputReadOnly(): string;
|
13037
13107
|
get renderedInputDisabled(): string;
|
13108
|
+
get isReadOnlyAttr(): boolean;
|
13109
|
+
get isDisabledAttr(): boolean;
|
13038
13110
|
protected onReadOnlyChanged(): void;
|
13039
13111
|
/**
|
13040
13112
|
* A Boolean expression. If it evaluates to `false`, this question becomes read-only.
|
@@ -13255,6 +13327,7 @@ declare module "question" {
|
|
13255
13327
|
*/
|
13256
13328
|
isAnswerCorrect(): boolean;
|
13257
13329
|
updateValueWithDefaults(): void;
|
13330
|
+
get isValueDefault(): boolean;
|
13258
13331
|
protected get isClearValueOnHidden(): boolean;
|
13259
13332
|
getQuestionFromArray(name: string, index: number): IQuestion;
|
13260
13333
|
getDefaultValue(): any;
|
@@ -13345,7 +13418,7 @@ declare module "question" {
|
|
13345
13418
|
protected isNewValueCorrect(val: any): boolean;
|
13346
13419
|
protected isNewValueEqualsToValue(newValue: any): boolean;
|
13347
13420
|
protected isTextValue(): boolean;
|
13348
|
-
|
13421
|
+
protected getIsInputTextUpdate(): boolean;
|
13349
13422
|
get requireStrictCompare(): boolean;
|
13350
13423
|
private getDataLocNotification;
|
13351
13424
|
get isInputTextUpdate(): boolean;
|
@@ -13756,7 +13829,9 @@ declare module "question_matrixdropdownbase" {
|
|
13756
13829
|
getAllValues(): any;
|
13757
13830
|
getFilteredValues(): any;
|
13758
13831
|
getFilteredProperties(): any;
|
13832
|
+
private applyRowVariablesToValues;
|
13759
13833
|
runCondition(values: HashTable<any>, properties: HashTable<any>): void;
|
13834
|
+
getNamesWithDefaultValues(): Array<string>;
|
13760
13835
|
clearValue(keepComment?: boolean): void;
|
13761
13836
|
onAnyValueChanged(name: string, questionName: string): void;
|
13762
13837
|
getDataValueCore(valuesHash: any, key: string): any;
|
@@ -14338,7 +14413,7 @@ declare module "base-interfaces" {
|
|
14338
14413
|
dynamicPanelGetTabTitle(question: IQuestion, options: any): any;
|
14339
14414
|
dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
|
14340
14415
|
dragAndDropAllow(options: DragDropAllowEvent): boolean;
|
14341
|
-
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean): any;
|
14416
|
+
scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): any;
|
14342
14417
|
runExpression(expression: string): any;
|
14343
14418
|
elementContentVisibilityChanged(element: ISurveyElement): void;
|
14344
14419
|
onCorrectQuestionAnswer(question: IQuestion, options: any): void;
|
@@ -15307,6 +15382,13 @@ declare module "base" {
|
|
15307
15382
|
private animationAllowedLock;
|
15308
15383
|
blockAnimations(): void;
|
15309
15384
|
releaseAnimations(): void;
|
15385
|
+
supportOnElementRenderedEvent: boolean;
|
15386
|
+
onElementRenderedEventEnabled: boolean;
|
15387
|
+
enableOnElementRenderedEvent(): void;
|
15388
|
+
disableOnElementRenderedEvent(): void;
|
15389
|
+
protected _onElementRerendered: EventBase<Base>;
|
15390
|
+
get onElementRerendered(): EventBase<Base>;
|
15391
|
+
afterRerender(): void;
|
15310
15392
|
}
|
15311
15393
|
export class ArrayChanges<T = any> {
|
15312
15394
|
index: number;
|
@@ -15347,10 +15429,21 @@ declare module "utils/popup" {
|
|
15347
15429
|
width: number;
|
15348
15430
|
height: number;
|
15349
15431
|
}
|
15432
|
+
export class Rect implements ISize, INumberPosition {
|
15433
|
+
private x;
|
15434
|
+
private y;
|
15435
|
+
width: number;
|
15436
|
+
height: number;
|
15437
|
+
constructor(x: number, y: number, width: number, height: number);
|
15438
|
+
get left(): number;
|
15439
|
+
get top(): number;
|
15440
|
+
get right(): number;
|
15441
|
+
get bottom(): number;
|
15442
|
+
}
|
15350
15443
|
export class PopupUtils {
|
15351
15444
|
static bottomIndent: number;
|
15352
|
-
static calculatePosition(targetRect:
|
15353
|
-
static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number, verticalPosition: VerticalPosition): any;
|
15445
|
+
static calculatePosition(targetRect: Rect, height: number, width: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, positionMode?: PositionMode): INumberPosition;
|
15446
|
+
static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number, verticalPosition: VerticalPosition, canShrink?: boolean): any;
|
15354
15447
|
static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition, positionMode?: PositionMode, margins?: {
|
15355
15448
|
left: number;
|
15356
15449
|
right: number;
|
@@ -15358,9 +15451,10 @@ declare module "utils/popup" {
|
|
15358
15451
|
width: number;
|
15359
15452
|
left: number;
|
15360
15453
|
};
|
15361
|
-
static updateVerticalPosition(targetRect:
|
15454
|
+
static updateVerticalPosition(targetRect: Rect, height: number, horizontalPosition: HorizontalPosition, verticalPosition: VerticalPosition, windowHeight: number): VerticalPosition;
|
15455
|
+
static updateHorizontalPosition(targetRect: Rect, width: number, horizontalPosition: HorizontalPosition, windowWidth: number): HorizontalPosition;
|
15362
15456
|
static calculatePopupDirection(verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): string;
|
15363
|
-
static calculatePointerTarget(targetRect:
|
15457
|
+
static calculatePointerTarget(targetRect: Rect, top: number, left: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, marginLeft?: number, marginRight?: number): INumberPosition;
|
15364
15458
|
}
|
15365
15459
|
}
|
15366
15460
|
declare module "popup" {
|
@@ -15378,6 +15472,7 @@ declare module "popup" {
|
|
15378
15472
|
horizontalPosition?: HorizontalPosition;
|
15379
15473
|
showPointer?: boolean;
|
15380
15474
|
isModal?: boolean;
|
15475
|
+
canShrink?: boolean;
|
15381
15476
|
displayMode?: "popup" | "overlay";
|
15382
15477
|
}
|
15383
15478
|
export interface IDialogOptions extends IPopupOptionsBase {
|
@@ -15401,6 +15496,7 @@ declare module "popup" {
|
|
15401
15496
|
horizontalPosition: HorizontalPosition;
|
15402
15497
|
showPointer: boolean;
|
15403
15498
|
isModal: boolean;
|
15499
|
+
canShrink: boolean;
|
15404
15500
|
isFocusedContent: boolean;
|
15405
15501
|
isFocusedContainer: boolean;
|
15406
15502
|
cssClass: string;
|
@@ -16054,6 +16150,9 @@ declare module "question_matrixdropdown" {
|
|
16054
16150
|
protected isNewValueCorrect(val: any): boolean;
|
16055
16151
|
clearIncorrectValues(): void;
|
16056
16152
|
protected clearValueIfInvisibleCore(reason: string): void;
|
16153
|
+
private defaultValuesInRows;
|
16154
|
+
protected clearGeneratedRows(): void;
|
16155
|
+
private getRowValueForCreation;
|
16057
16156
|
protected generateRows(): Array<MatrixDropdownRowModel>;
|
16058
16157
|
protected createMatrixRow(item: ItemValue, value: any): MatrixDropdownRowModel;
|
16059
16158
|
protected getSearchableItemValueKeys(keys: Array<string>): void;
|
@@ -16323,6 +16422,8 @@ declare module "question_matrix" {
|
|
16323
16422
|
cssClasses: any;
|
16324
16423
|
isDisabledStyle: boolean;
|
16325
16424
|
isInputReadOnly: boolean;
|
16425
|
+
isDisabledAttr: boolean;
|
16426
|
+
isReadOnlyAttr: boolean;
|
16326
16427
|
hasErrorInRow(row: MatrixRowModel): boolean;
|
16327
16428
|
}
|
16328
16429
|
export class MatrixRowModel extends Base {
|
@@ -16338,6 +16439,8 @@ declare module "question_matrix" {
|
|
16338
16439
|
set value(val: any);
|
16339
16440
|
setValueDirectly(val: any): void;
|
16340
16441
|
get isReadOnly(): boolean;
|
16442
|
+
get isReadOnlyAttr(): boolean;
|
16443
|
+
get isDisabledAttr(): boolean;
|
16341
16444
|
get rowTextClasses(): string;
|
16342
16445
|
get hasError(): boolean;
|
16343
16446
|
set hasError(val: boolean);
|
@@ -17063,6 +17166,7 @@ declare module "dragdrop/choices" {
|
|
17063
17166
|
declare module "dragdrop/ranking-choices" {
|
17064
17167
|
import { ItemValue } from "itemvalue";
|
17065
17168
|
import { DragDropChoices } from "dragdrop/choices";
|
17169
|
+
import { QuestionRankingModel } from "question_ranking";
|
17066
17170
|
export class DragDropRankingChoices extends DragDropChoices {
|
17067
17171
|
protected get draggedElementType(): string;
|
17068
17172
|
protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement, event: PointerEvent): HTMLElement;
|
@@ -17072,9 +17176,14 @@ declare module "dragdrop/ranking-choices" {
|
|
17072
17176
|
protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
|
17073
17177
|
private getIsDragOverRootNode;
|
17074
17178
|
protected isDropTargetValid(dropTarget: ItemValue, dropTargetNode?: HTMLElement): boolean;
|
17075
|
-
protected calculateIsBottom(clientY: number): boolean;
|
17179
|
+
protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
|
17076
17180
|
protected doDragOver: () => any;
|
17181
|
+
getIndixies(model: any, fromChoicesArray: Array<ItemValue>, toChoicesArray: Array<ItemValue>): {
|
17182
|
+
fromIndex: number;
|
17183
|
+
toIndex: number;
|
17184
|
+
};
|
17077
17185
|
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
17186
|
+
reorderRankedItem: (questionModel: QuestionRankingModel, fromIndex: number, toIndex: number) => void;
|
17078
17187
|
protected updateDraggedElementShortcut(newIndex: number): void;
|
17079
17188
|
protected ghostPositionChanged(): void;
|
17080
17189
|
protected doBanDropHere: () => any;
|
@@ -17093,27 +17202,17 @@ declare module "dragdrop/ranking-select-to-rank" {
|
|
17093
17202
|
protected isDropTargetValid(dropTarget: ItemValue | string, dropTargetNode?: HTMLElement): boolean;
|
17094
17203
|
protected afterDragOver(dropTargetNode: HTMLElement): void;
|
17095
17204
|
doRankBetween(dropTargetNode: HTMLElement, fromChoicesArray: Array<ItemValue>, toChoicesArray: Array<ItemValue>, rankFunction: Function): void;
|
17096
|
-
getIndixies(model: any, fromChoicesArray: Array<ItemValue>, toChoicesArray: Array<ItemValue>): {
|
17097
|
-
fromIndex: number;
|
17098
|
-
toIndex: number;
|
17099
|
-
};
|
17100
|
-
protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
|
17101
|
-
private doUIEffects;
|
17102
17205
|
private get isDraggedElementRanked();
|
17103
17206
|
private get isDropTargetRanked();
|
17104
17207
|
private get isDraggedElementUnranked();
|
17105
|
-
private get isDropTargetUnranked();
|
17106
17208
|
private updateChoices;
|
17107
17209
|
selectToRank: (questionModel: QuestionRankingModel, fromIndex: number, toIndex: number) => void;
|
17108
17210
|
unselectFromRank: (questionModel: QuestionRankingModel, fromIndex: number, toIndex?: number) => void;
|
17109
|
-
reorderRankedItem: (questionModel: QuestionRankingModel, fromIndex: number, toIndex: number, dropTargetNode?: HTMLElement) => void;
|
17110
|
-
clear(): void;
|
17111
17211
|
}
|
17112
17212
|
}
|
17113
17213
|
declare module "question_ranking" {
|
17114
17214
|
import { ISurveyImpl } from "base-interfaces";
|
17115
17215
|
import { DragDropRankingChoices } from "dragdrop/ranking-choices";
|
17116
|
-
import { DragDropRankingSelectToRank } from "dragdrop/ranking-select-to-rank";
|
17117
17216
|
import { ItemValue } from "itemvalue";
|
17118
17217
|
import { QuestionCheckboxModel } from "question_checkbox";
|
17119
17218
|
import { AnimationGroup } from "utils/animation";
|
@@ -17143,28 +17242,34 @@ declare module "question_ranking" {
|
|
17143
17242
|
isAnswerCorrect(): boolean;
|
17144
17243
|
get requireStrictCompare(): boolean;
|
17145
17244
|
onSurveyValueChanged(newValue: any): void;
|
17245
|
+
onSurveyLoad(): void;
|
17146
17246
|
protected onVisibleChoicesChanged: () => void;
|
17147
17247
|
localeChanged: () => void;
|
17148
17248
|
private addToValueByVisibleChoices;
|
17149
17249
|
private removeFromValueByVisibleChoices;
|
17150
|
-
private
|
17250
|
+
private getChoicesAnimationOptions;
|
17151
17251
|
private _rankingChoicesAnimation;
|
17152
17252
|
get rankingChoicesAnimation(): AnimationGroup<ItemValue>;
|
17153
17253
|
private _unRankingChoicesAnimation;
|
17154
17254
|
get unRankingChoicesAnimation(): AnimationGroup<ItemValue>;
|
17155
|
-
|
17156
|
-
|
17157
|
-
|
17158
|
-
|
17255
|
+
rankingChoices: Array<ItemValue>;
|
17256
|
+
unRankingChoices: Array<ItemValue>;
|
17257
|
+
private _renderedRankingChoices;
|
17258
|
+
private _renderedUnRankingChoices;
|
17259
|
+
get renderedRankingChoices(): Array<ItemValue>;
|
17260
|
+
set renderedRankingChoices(val: Array<ItemValue>);
|
17261
|
+
get renderedUnRankingChoices(): Array<ItemValue>;
|
17262
|
+
set renderedUnRankingChoices(val: Array<ItemValue>);
|
17263
|
+
private updateRenderedRankingChoices;
|
17264
|
+
private updateRenderedUnRankingChoices;
|
17159
17265
|
private updateRankingChoices;
|
17160
17266
|
updateUnRankingChoices(newRankingChoices: Array<ItemValue>): void;
|
17161
17267
|
private updateRankingChoicesSelectToRankMode;
|
17162
17268
|
dragDropRankingChoices: DragDropRankingChoices;
|
17163
17269
|
currentDropTarget: ItemValue;
|
17164
|
-
dropTargetNodeMove: string;
|
17165
17270
|
endLoadingFromJson(): void;
|
17166
17271
|
private setDragDropRankingChoices;
|
17167
|
-
protected createDragDropRankingChoices(): DragDropRankingChoices
|
17272
|
+
protected createDragDropRankingChoices(): DragDropRankingChoices;
|
17168
17273
|
private draggedChoise;
|
17169
17274
|
private draggedTargetNode;
|
17170
17275
|
handlePointerDown: (event: PointerEvent, choice: ItemValue, node: HTMLElement) => void;
|
@@ -17183,7 +17288,6 @@ declare module "question_ranking" {
|
|
17183
17288
|
supportNone(): boolean;
|
17184
17289
|
supportRefuse(): boolean;
|
17185
17290
|
supportDontKnow(): boolean;
|
17186
|
-
private handleArrowKeys;
|
17187
17291
|
handleKeydownSelectToRank(event: KeyboardEvent, movedElement: ItemValue, hardKey?: string, isNeedFocus?: boolean): void;
|
17188
17292
|
private setValueAfterKeydown;
|
17189
17293
|
private focusItem;
|
@@ -17200,6 +17304,11 @@ declare module "question_ranking" {
|
|
17200
17304
|
*/
|
17201
17305
|
get longTap(): boolean;
|
17202
17306
|
set longTap(val: boolean);
|
17307
|
+
/**
|
17308
|
+
* The name of a component used to render items.
|
17309
|
+
*/
|
17310
|
+
get itemContentComponent(): string;
|
17311
|
+
set itemContentComponent(value: string);
|
17203
17312
|
/**
|
17204
17313
|
* Specifies whether users can select choices they want to rank.
|
17205
17314
|
*
|
@@ -17747,6 +17856,8 @@ declare module "question_boolean" {
|
|
17747
17856
|
getItemCss(): string;
|
17748
17857
|
getCheckboxItemCss(): string;
|
17749
17858
|
getLabelCss(checked: boolean): string;
|
17859
|
+
updateValueFromSurvey(newValue: any, clearData?: boolean): void;
|
17860
|
+
protected onValueChanged(): void;
|
17750
17861
|
get svgIcon(): string;
|
17751
17862
|
get itemSvgIcon(): string;
|
17752
17863
|
get allowClick(): boolean;
|
@@ -17993,12 +18104,13 @@ declare module "popup-survey" {
|
|
17993
18104
|
}
|
17994
18105
|
}
|
17995
18106
|
declare module "popup-dropdown-view-model" {
|
17996
|
-
import { IPosition } from "utils/popup";
|
18107
|
+
import { IPosition, Rect } from "utils/popup";
|
17997
18108
|
import { CssClassBuilder } from "utils/cssClassBuilder";
|
17998
18109
|
import { PopupModel } from "popup";
|
17999
18110
|
import { PopupBaseViewModel } from "popup-view-model";
|
18000
18111
|
export class PopupDropdownViewModel extends PopupBaseViewModel {
|
18001
18112
|
targetElement?: HTMLElement;
|
18113
|
+
areaElement?: HTMLElement;
|
18002
18114
|
private scrollEventCallBack;
|
18003
18115
|
private static readonly tabletSizeBreakpoint;
|
18004
18116
|
private calculateIsTablet;
|
@@ -18008,6 +18120,8 @@ declare module "popup-dropdown-view-model" {
|
|
18008
18120
|
private isTablet;
|
18009
18121
|
private touchStartEventCallback;
|
18010
18122
|
private touchMoveEventCallback;
|
18123
|
+
protected getAvailableAreaRect(): Rect;
|
18124
|
+
protected getTargetElementRect(): Rect;
|
18011
18125
|
private _updatePosition;
|
18012
18126
|
protected getActualHorizontalPosition(): "left" | "center" | "right";
|
18013
18127
|
protected getStyleClass(): CssClassBuilder;
|
@@ -18016,8 +18130,8 @@ declare module "popup-dropdown-view-model" {
|
|
18016
18130
|
popupDirection: string;
|
18017
18131
|
pointerTarget: IPosition;
|
18018
18132
|
private recalculatePositionHandler;
|
18019
|
-
constructor(model: PopupModel, targetElement?: HTMLElement);
|
18020
|
-
setComponentElement(componentRoot: HTMLElement, targetElement?: HTMLElement | null): void;
|
18133
|
+
constructor(model: PopupModel, targetElement?: HTMLElement, areaElement?: HTMLElement);
|
18134
|
+
setComponentElement(componentRoot: HTMLElement, targetElement?: HTMLElement | null, areaElement?: HTMLElement | null): void;
|
18021
18135
|
resetComponentElement(): void;
|
18022
18136
|
updateOnShowing(): void;
|
18023
18137
|
private get shouldCreateResizeCallback();
|
@@ -26286,6 +26400,7 @@ declare module "react/components/popup/popup" {
|
|
26286
26400
|
interface IPopupProps {
|
26287
26401
|
model: PopupModel;
|
26288
26402
|
getTarget?: (container: HTMLElement) => HTMLElement;
|
26403
|
+
getArea?: (container: HTMLElement) => HTMLElement;
|
26289
26404
|
}
|
26290
26405
|
export class Popup extends SurveyElementBase<IPopupProps, any> {
|
26291
26406
|
private popup;
|
@@ -26849,6 +26964,11 @@ declare module "react/reactquestion_ranking" {
|
|
26849
26964
|
protected renderEmptyIcon(): JSX.Element;
|
26850
26965
|
protected renderElement(): JSX.Element;
|
26851
26966
|
}
|
26967
|
+
export class SurveyQuestionRankingItemContent extends ReactSurveyElement {
|
26968
|
+
protected get item(): ItemValue;
|
26969
|
+
protected get cssClasses(): any;
|
26970
|
+
protected renderElement(): JSX.Element;
|
26971
|
+
}
|
26852
26972
|
}
|
26853
26973
|
declare module "react/components/rating/rating-item" {
|
26854
26974
|
import { Base, QuestionRatingModel, RenderedRatingItem } from "entries/core";
|
@@ -27229,7 +27349,7 @@ declare module "react/components/matrix-actions/drag-drop-icon/drag-drop-icon" {
|
|
27229
27349
|
declare module "react/reactquestion_matrixdropdownbase" {
|
27230
27350
|
import { SurveyQuestionElementBase } from "react/reactquestion_element";
|
27231
27351
|
import { SurveyQuestionAndErrorsCell } from "react/reactquestion";
|
27232
|
-
import { QuestionMatrixDropdownModelBase,
|
27352
|
+
import { QuestionMatrixDropdownModelBase, Question } from "entries/core";
|
27233
27353
|
export class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElementBase {
|
27234
27354
|
constructor(props: any);
|
27235
27355
|
protected get question(): QuestionMatrixDropdownModelBase;
|
@@ -27239,12 +27359,6 @@ declare module "react/reactquestion_matrixdropdownbase" {
|
|
27239
27359
|
componentWillUnmount(): void;
|
27240
27360
|
protected renderElement(): JSX.Element;
|
27241
27361
|
renderTableDiv(): JSX.Element;
|
27242
|
-
renderHeader(): JSX.Element | null;
|
27243
|
-
renderFooter(): JSX.Element | null;
|
27244
|
-
renderRows(): JSX.Element;
|
27245
|
-
renderRow(keyValue: any, row: QuestionMatrixDropdownRenderedRow, cssClasses: any, reason?: string): JSX.Element;
|
27246
|
-
renderCell(cell: QuestionMatrixDropdownRenderedCell, index: number, cssClasses: any, reason?: string): JSX.Element;
|
27247
|
-
private renderCellContent;
|
27248
27362
|
}
|
27249
27363
|
export class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndErrorsCell {
|
27250
27364
|
constructor(props: any);
|
@@ -27565,6 +27679,34 @@ declare module "react/reactquestion_custom" {
|
|
27565
27679
|
protected renderElement(): JSX.Element;
|
27566
27680
|
}
|
27567
27681
|
}
|
27682
|
+
declare module "react/components/list/list-item-content" {
|
27683
|
+
import { ListModel } from "entries/core";
|
27684
|
+
import { SurveyElementBase } from "react/reactquestion_element";
|
27685
|
+
interface IListItemProps {
|
27686
|
+
model: ListModel;
|
27687
|
+
item: any;
|
27688
|
+
}
|
27689
|
+
export class ListItemContent extends SurveyElementBase<IListItemProps, any> {
|
27690
|
+
get model(): ListModel;
|
27691
|
+
get item(): any;
|
27692
|
+
getStateElement(): any;
|
27693
|
+
render(): JSX.Element | null;
|
27694
|
+
}
|
27695
|
+
}
|
27696
|
+
declare module "react/components/list/list-item-group" {
|
27697
|
+
import { ListModel } from "entries/core";
|
27698
|
+
import { SurveyElementBase } from "react/reactquestion_element";
|
27699
|
+
interface IListItemProps {
|
27700
|
+
model: ListModel;
|
27701
|
+
item: any;
|
27702
|
+
}
|
27703
|
+
export class ListItemGroup extends SurveyElementBase<IListItemProps, any> {
|
27704
|
+
get model(): ListModel;
|
27705
|
+
get item(): any;
|
27706
|
+
getStateElement(): any;
|
27707
|
+
render(): JSX.Element | null;
|
27708
|
+
}
|
27709
|
+
}
|
27568
27710
|
declare module "react/components/survey-header/logo-image" {
|
27569
27711
|
import React from "react";
|
27570
27712
|
import { SurveyModel } from "entries/core";
|
@@ -27684,7 +27826,7 @@ declare module "entries/react-ui-model" {
|
|
27684
27826
|
export { ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, } from "react/reactquestion_element";
|
27685
27827
|
export { SurveyQuestionCommentItem, SurveyQuestionComment, } from "react/reactquestion_comment";
|
27686
27828
|
export { SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, } from "react/reactquestion_checkbox";
|
27687
|
-
export { SurveyQuestionRanking, SurveyQuestionRankingItem, } from "react/reactquestion_ranking";
|
27829
|
+
export { SurveyQuestionRanking, SurveyQuestionRankingItem, SurveyQuestionRankingItemContent } from "react/reactquestion_ranking";
|
27688
27830
|
export { RatingItem } from "react/components/rating/rating-item";
|
27689
27831
|
export { RatingItemStar } from "react/components/rating/rating-item-star";
|
27690
27832
|
export { RatingItemSmiley } from "react/components/rating/rating-item-smiley";
|
@@ -27727,6 +27869,8 @@ declare module "entries/react-ui-model" {
|
|
27727
27869
|
export { SurveyQuestionButtonGroup } from "react/reactquestion_buttongroup";
|
27728
27870
|
export { SurveyQuestionCustom, SurveyQuestionComposite } from "react/reactquestion_custom";
|
27729
27871
|
export { Popup } from "react/components/popup/popup";
|
27872
|
+
export { ListItemContent } from "react/components/list/list-item-content";
|
27873
|
+
export { ListItemGroup } from "react/components/list/list-item-group";
|
27730
27874
|
export { List } from "react/components/list/list";
|
27731
27875
|
export { TitleActions } from "react/components/title/title-actions";
|
27732
27876
|
export { TitleElement } from "react/components/title/title-element";
|