survey-react 1.10.5 → 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/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?: HashTable<any>): any;
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: () => void, runEarly?: () => boolean, isCancel?: boolean): void;
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: IAnimationConsumer<[T]>, addedElements: Array<T>, removedElements: Array<T>, callback?: () => void): void;
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 Array<any> = []> {
723
- protected animationOptions: IAnimationConsumer<S>;
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: IAnimationConsumer<S>, update: (val: T, isTempUpdate?: boolean) => void, getCurrentValue: () => T);
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>, [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>, [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: IAnimationConsumer<[T]>, update: (val: Array<T>, isTempUpdate?: boolean) => void, getCurrentValue: () => Array<T>, mergeValues?: (newValue: Array<T>, oldValue: Array<T>) => Array<T>);
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
  }
@@ -767,14 +787,17 @@ declare module "popup-view-model" {
767
787
  _isVisible: boolean;
768
788
  locale: string;
769
789
  private updateIsVisible;
790
+ private updateBeforeShowing;
791
+ private updateAfterHiding;
770
792
  private visibilityAnimation;
771
793
  getLeaveOptions(): AnimationOptions;
772
794
  getEnterOptions(): AnimationOptions;
773
795
  getAnimatedElement(): HTMLElement;
774
796
  isAnimationEnabled(): boolean;
797
+ getRerenderEvent(): EventBase<Base>;
775
798
  private getAnimationContainer;
776
- set isVisible(val: boolean);
777
799
  get isVisible(): boolean;
800
+ set isVisible(val: boolean);
778
801
  onVisibilityChanged: EventBase<PopupBaseViewModel, any>;
779
802
  get container(): HTMLElement;
780
803
  private containerElement;
@@ -820,7 +843,7 @@ declare module "popup-view-model" {
820
843
  cancel(): void;
821
844
  dispose(): void;
822
845
  initializePopupContainer(): void;
823
- setComponentElement(componentRoot: HTMLElement, targetElement?: HTMLElement | null): void;
846
+ setComponentElement(componentRoot: HTMLElement, targetElement?: HTMLElement | null, areaElement?: HTMLElement | null): void;
824
847
  resetComponentElement(): void;
825
848
  protected preventScrollOuside(event: any, deltaY: number): void;
826
849
  }
@@ -872,6 +895,15 @@ declare module "utils/utils" {
872
895
  export function showConfirmDialog(message: string, callback: (res: boolean) => void, applyTitle?: string, locale?: string, rootElement?: HTMLElement): boolean;
873
896
  export function configConfirmDialog(popupViewModel: PopupBaseViewModel): void;
874
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
+ };
875
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 };
876
908
  }
877
909
  declare module "actions/container" {
@@ -922,6 +954,10 @@ declare module "actions/container" {
922
954
  addAction(val: IAction, sortByVisibleIndex?: boolean): T;
923
955
  private sortItems;
924
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;
925
961
  initResponsivityManager(container: HTMLDivElement, delayedUpdateFunction?: (callback: () => void) => void): void;
926
962
  resetResponsivityManager(): void;
927
963
  getActionById(id: string): T;
@@ -941,6 +977,7 @@ declare module "element-helper" {
941
977
  declare module "list" {
942
978
  import { ActionContainer } from "actions/container";
943
979
  import { Action, BaseAction, IAction } from "actions/action";
980
+ import { ILocalizableOwner } from "localizablestring";
944
981
  export let defaultListCss: {
945
982
  root: string;
946
983
  item: string;
@@ -950,8 +987,10 @@ declare module "list" {
950
987
  itemWithIcon: string;
951
988
  itemDisabled: string;
952
989
  itemFocused: string;
990
+ itemHovered: string;
953
991
  itemTextWrap: string;
954
992
  itemIcon: string;
993
+ itemMarkerIcon: string;
955
994
  itemSeparator: string;
956
995
  itemBody: string;
957
996
  itemsContainer: string;
@@ -964,19 +1003,23 @@ declare module "list" {
964
1003
  };
965
1004
  export interface IListModel {
966
1005
  items: Array<IAction>;
967
- onSelectionChanged: (item: Action, ...params: any[]) => void;
1006
+ onSelectionChanged?: (item: IAction, ...params: any[]) => void;
968
1007
  allowSelection?: boolean;
1008
+ searchEnabled?: boolean;
969
1009
  selectedItem?: IAction;
1010
+ elementId?: string;
1011
+ locOwner?: ILocalizableOwner;
970
1012
  onFilterStringChangedCallback?: (text: string) => void;
971
- onTextSearchCallback?: (text: string, textToSearch: string) => boolean;
1013
+ onTextSearchCallback?: (item: IAction, textToSearch: string) => boolean;
972
1014
  }
973
1015
  export class ListModel<T extends BaseAction = Action> extends ActionContainer<T> {
974
- onSelectionChanged: (item: T, ...params: any[]) => void;
975
- allowSelection: boolean;
1016
+ onSelectionChanged?: (item: T, ...params: any[]) => void;
1017
+ allowSelection?: boolean;
976
1018
  elementId?: string;
977
1019
  private listContainerHtmlElement;
978
1020
  private loadingIndicatorValue;
979
- private onFilterStringChangedCallback?;
1021
+ private onFilterStringChangedCallback;
1022
+ private onTextSearchCallback;
980
1023
  searchEnabled: boolean;
981
1024
  showFilter: boolean;
982
1025
  forceShowFilter: boolean;
@@ -995,12 +1038,12 @@ declare module "list" {
995
1038
  areSameItemsCallback: (item1: IAction, item2: IAction) => boolean;
996
1039
  private hasText;
997
1040
  isItemVisible(item: T): boolean;
1041
+ protected getRenderedActions(): Array<T>;
998
1042
  get visibleItems(): Array<T>;
999
1043
  private get shouldProcessFilter();
1000
1044
  private onFilterStringChanged;
1001
1045
  private scrollToItem;
1002
- constructor(items: Array<IAction>, onSelectionChanged: (item: T, ...params: any[]) => void, allowSelection: boolean, selectedItem?: IAction, elementId?: string);
1003
- private onTextSearchCallback;
1046
+ constructor(items: Array<IAction> | IListModel, onSelectionChanged?: (item: T, ...params: any[]) => void, allowSelection?: boolean, selectedItem?: IAction, elementId?: string);
1004
1047
  setOnFilterStringChangedCallback(callback: (text: string) => void): void;
1005
1048
  setOnTextSearchCallback(callback: (item: T, textToSearch: string) => boolean): void;
1006
1049
  setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
@@ -1014,8 +1057,10 @@ declare module "list" {
1014
1057
  itemWithIcon: string;
1015
1058
  itemDisabled: string;
1016
1059
  itemFocused: string;
1060
+ itemHovered: string;
1017
1061
  itemTextWrap: string;
1018
1062
  itemIcon: string;
1063
+ itemMarkerIcon: string;
1019
1064
  itemSeparator: string;
1020
1065
  itemBody: string;
1021
1066
  itemsContainer: string;
@@ -1027,6 +1072,9 @@ declare module "list" {
1027
1072
  emptyText: string;
1028
1073
  };
1029
1074
  onItemClick: (itemValue: T) => void;
1075
+ protected popupAfterShowCallback(itemValue: T): void;
1076
+ onItemHover: (itemValue: T) => void;
1077
+ onItemLeave(itemValue: T): void;
1030
1078
  isItemDisabled: (itemValue: T) => boolean;
1031
1079
  isItemSelected: (itemValue: T) => boolean;
1032
1080
  isItemFocused: (itemValue: T) => boolean;
@@ -1065,7 +1113,7 @@ declare module "actions/action" {
1065
1113
  import { ILocalizableOwner, LocalizableString } from "localizablestring";
1066
1114
  import { Base, ComputedUpdater } from "base";
1067
1115
  import { IListModel } from "list";
1068
- import { IPopupOptionsBase } from "popup";
1116
+ import { IPopupOptionsBase, PopupModel } from "popup";
1069
1117
  export type actionModeType = "large" | "small" | "popup" | "removed";
1070
1118
  /**
1071
1119
  * An action item.
@@ -1210,13 +1258,20 @@ declare module "actions/action" {
1210
1258
  ariaExpanded?: boolean;
1211
1259
  ariaRole?: string;
1212
1260
  elementId?: string;
1261
+ items?: Array<IAction>;
1262
+ markerIconName?: string;
1263
+ markerIconSize?: number;
1264
+ showPopup?: () => void;
1265
+ hidePopup?: () => void;
1213
1266
  }
1214
1267
  export interface IActionDropdownPopupOptions extends IListModel, IPopupOptionsBase {
1215
1268
  }
1216
1269
  export function createDropdownActionModel(actionOptions: IAction, dropdownOptions: IActionDropdownPopupOptions, locOwner?: ILocalizableOwner): Action;
1217
- export function createDropdownActionModelAdvanced(actionOptions: IAction, listOptions: IListModel, popupOptions?: IPopupOptionsBase, locOwner?: ILocalizableOwner): Action;
1270
+ export function createDropdownActionModelAdvanced(actionOptions: IAction, listOptions: IListModel, popupOptions?: IPopupOptionsBase): Action;
1271
+ export function createPopupModelWithListModel(listOptions: IListModel, popupOptions: IPopupOptionsBase): PopupModel;
1218
1272
  export function getActionDropdownButtonTarget(container: HTMLElement): HTMLElement;
1219
1273
  export abstract class BaseAction extends Base implements IAction {
1274
+ items?: IAction[];
1220
1275
  private static renderedId;
1221
1276
  private static getNextRendredId;
1222
1277
  private cssClassesValue;
@@ -1244,6 +1299,8 @@ declare module "actions/action" {
1244
1299
  removePriority: number;
1245
1300
  iconName: string;
1246
1301
  iconSize: number;
1302
+ markerIconName: string;
1303
+ markerIconSize: number;
1247
1304
  css?: string;
1248
1305
  minDimension: number;
1249
1306
  maxDimension: number;
@@ -1271,6 +1328,15 @@ declare module "actions/action" {
1271
1328
  getActionRootCss(): string;
1272
1329
  getTooltip(): string;
1273
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;
1274
1340
  protected abstract getEnabled(): boolean;
1275
1341
  protected abstract setEnabled(val: boolean): void;
1276
1342
  protected abstract getVisible(): boolean;
@@ -1289,6 +1355,7 @@ declare module "actions/action" {
1289
1355
  private raiseUpdate;
1290
1356
  constructor(innerItem: IAction);
1291
1357
  private createLocTitle;
1358
+ setItems(items: Array<IAction>, onSelectionChanged?: (item: Action, ...params: any[]) => void): void;
1292
1359
  location?: string;
1293
1360
  id: string;
1294
1361
  private _visible;
@@ -1390,7 +1457,6 @@ declare module "actions/adaptive-container" {
1390
1457
  private static ContainerID;
1391
1458
  constructor();
1392
1459
  get hiddenItemsListModel(): ListModel;
1393
- protected hiddenItemSelected(item: T): void;
1394
1460
  protected onSet(): void;
1395
1461
  protected onPush(item: T): void;
1396
1462
  protected getRenderedActions(): Array<T>;
@@ -1591,6 +1657,7 @@ declare module "defaultCss/defaultV2Css" {
1591
1657
  rowMultiple: string;
1592
1658
  rowCompact: string;
1593
1659
  rowFadeIn: string;
1660
+ rowDelayedFadeIn: string;
1594
1661
  rowFadeOut: string;
1595
1662
  pageRow: string;
1596
1663
  question: {
@@ -1650,6 +1717,7 @@ declare module "defaultCss/defaultV2Css" {
1650
1717
  disabled: string;
1651
1718
  readOnly: string;
1652
1719
  preview: string;
1720
+ noPointerEventsMode: string;
1653
1721
  errorsContainer: string;
1654
1722
  errorsContainerTop: string;
1655
1723
  errorsContainerBottom: string;
@@ -1990,6 +2058,7 @@ declare module "defaultCss/defaultV2Css" {
1990
2058
  dragElementDecorator: string;
1991
2059
  iconDragElement: string;
1992
2060
  footer: string;
2061
+ footerTotalCell: string;
1993
2062
  emptyRowsSection: string;
1994
2063
  iconDrag: string;
1995
2064
  ghostRow: string;
@@ -3613,7 +3682,6 @@ declare module "panel" {
3613
3682
  protected getPanelStartIndex(index: number): number;
3614
3683
  protected isContinueNumbering(): boolean;
3615
3684
  private notifySurveyOnVisibilityChanged;
3616
- protected hasErrorsCore(rec: any): void;
3617
3685
  protected getRenderedTitle(str: string): string;
3618
3686
  /**
3619
3687
  * Increases or decreases an indent of panel content from the left edge. Accepts positive integer values and 0.
@@ -3648,6 +3716,7 @@ declare module "panel" {
3648
3716
  protected getHasFrameV2(): boolean;
3649
3717
  protected getIsNested(): boolean;
3650
3718
  get showPanelAsPage(): boolean;
3719
+ protected onElementExpanded(elementIsRendered: boolean): void;
3651
3720
  protected getCssRoot(cssClasses: {
3652
3721
  [index: string]: string;
3653
3722
  }): string;
@@ -3949,8 +4018,9 @@ declare module "question_file" {
3949
4018
  doChange: (event: any) => void;
3950
4019
  doClean: () => void;
3951
4020
  private clearFilesCore;
3952
- doRemoveFile(data: any): void;
4021
+ doRemoveFile(data: any, event: any): void;
3953
4022
  private removeFileCore;
4023
+ doDownloadFileFromContainer: (event: MouseEvent) => void;
3954
4024
  doDownloadFile: (event: any, data: any) => void;
3955
4025
  dispose(): void;
3956
4026
  }
@@ -4189,6 +4259,8 @@ declare module "question_baseselect" {
4189
4259
  isLayoutTypeSupported(layoutType: string): boolean;
4190
4260
  localeChanged(): void;
4191
4261
  locStrsChanged(): void;
4262
+ private prevOtherErrorValue;
4263
+ private updatePrevOtherErrorValue;
4192
4264
  get otherValue(): string;
4193
4265
  set otherValue(val: string);
4194
4266
  protected get otherValueCore(): string;
@@ -5534,7 +5606,6 @@ declare module "question_matrixdropdownrendered" {
5534
5606
  private hasRemoveRowsValue;
5535
5607
  private rowsActions;
5536
5608
  private cssClasses;
5537
- renderedRowsChangedCallback: () => void;
5538
5609
  rows: Array<QuestionMatrixDropdownRenderedRow>;
5539
5610
  protected getIsAnimationAllowed(): boolean;
5540
5611
  private getRenderedRowsAnimationOptions;
@@ -5628,7 +5699,6 @@ declare module "utils/dragOrClickHelper" {
5628
5699
  }
5629
5700
  declare module "question_matrixdynamic" {
5630
5701
  import { QuestionMatrixDropdownModelBase, MatrixDropdownRowModelBase, IMatrixDropdownData } from "question_matrixdropdownbase";
5631
- import { LocalizableString } from "localizablestring";
5632
5702
  import { SurveyError } from "survey-error";
5633
5703
  import { DragDropMatrixRows } from "dragdrop/matrix-rows";
5634
5704
  import { IShortcutText, ISurveyImpl, IProgressInfo } from "base-interfaces";
@@ -5829,14 +5899,14 @@ declare module "question_matrixdynamic" {
5829
5899
  */
5830
5900
  get confirmDeleteText(): string;
5831
5901
  set confirmDeleteText(val: string);
5832
- get locConfirmDeleteText(): LocalizableString;
5902
+ get locConfirmDeleteText(): import("localizablestring").LocalizableString;
5833
5903
  /**
5834
5904
  * A caption for the Add Row button.
5835
5905
  * @see addRowLocation
5836
5906
  */
5837
5907
  get addRowText(): string;
5838
5908
  set addRowText(val: string);
5839
- get locAddRowText(): LocalizableString;
5909
+ get locAddRowText(): import("localizablestring").LocalizableString;
5840
5910
  private get defaultAddRowText();
5841
5911
  /**
5842
5912
  * Specifies the location of the Add Row button.
@@ -5867,14 +5937,14 @@ declare module "question_matrixdynamic" {
5867
5937
  */
5868
5938
  get removeRowText(): string;
5869
5939
  set removeRowText(val: string);
5870
- get locRemoveRowText(): LocalizableString;
5940
+ get locRemoveRowText(): import("localizablestring").LocalizableString;
5871
5941
  /**
5872
5942
  * A message displayed when the matrix does not contain any rows. Applies only if `hideColumnsIfEmpty` is enabled.
5873
5943
  * @see hideColumnsIfEmpty
5874
5944
  */
5875
5945
  get emptyRowsText(): string;
5876
5946
  set emptyRowsText(val: string);
5877
- get locEmptyRowsText(): LocalizableString;
5947
+ get locEmptyRowsText(): import("localizablestring").LocalizableString;
5878
5948
  protected getDisplayValueCore(keysAsText: boolean, value: any): any;
5879
5949
  protected getConditionObjectRowName(index: number): string;
5880
5950
  protected getConditionObjectsRowIndeces(): Array<number>;
@@ -6128,7 +6198,7 @@ declare module "question_paneldynamic" {
6128
6198
  import { IAction } from "actions/action";
6129
6199
  import { AdaptiveActionContainer } from "actions/adaptive-container";
6130
6200
  import { ITheme } from "themes";
6131
- import { AnimationProperty } from "utils/animation";
6201
+ import { AnimationProperty, IAnimationGroupConsumer } from "utils/animation";
6132
6202
  export interface IQuestionPanelDynamicData {
6133
6203
  getItemIndex(item: ISurveyData): number;
6134
6204
  getVisibleItemIndex(item: ISurveyData): number;
@@ -6322,7 +6392,7 @@ declare module "question_paneldynamic" {
6322
6392
  private disablePanelsAnimations;
6323
6393
  private enablePanelsAnimations;
6324
6394
  private updatePanelsAnimation;
6325
- get panelsAnimation(): AnimationProperty<Array<PanelModel>, [PanelModel]>;
6395
+ get panelsAnimation(): AnimationProperty<Array<PanelModel>, IAnimationGroupConsumer<PanelModel>>;
6326
6396
  onHidingContent(): void;
6327
6397
  /**
6328
6398
  * Specifies whether to display a confirmation dialog when a respondent wants to delete a panel.
@@ -8378,7 +8448,7 @@ declare module "question_textbase" {
8378
8448
  */
8379
8449
  get textUpdateMode(): string;
8380
8450
  set textUpdateMode(val: string);
8381
- get isSurveyInputTextUpdate(): boolean;
8451
+ protected getIsInputTextUpdate(): boolean;
8382
8452
  get renderedPlaceholder(): string;
8383
8453
  protected setRenderedPlaceholder(val: string): void;
8384
8454
  protected onReadOnlyChanged(): void;
@@ -8618,6 +8688,7 @@ declare module "question_text" {
8618
8688
  get step(): string;
8619
8689
  set step(val: string);
8620
8690
  get renderedStep(): string;
8691
+ protected getIsInputTextUpdate(): boolean;
8621
8692
  supportGoNextPageAutomatic(): boolean;
8622
8693
  supportGoNextPageError(): boolean;
8623
8694
  /**
@@ -9148,7 +9219,11 @@ declare module "surveyToc" {
9148
9219
  export function getTocRootCss(survey: SurveyModel, isMobile?: boolean): string;
9149
9220
  export class TOCModel {
9150
9221
  survey: SurveyModel;
9222
+ static RootStyle: string;
9223
+ static StickyPosition: boolean;
9151
9224
  constructor(survey: SurveyModel);
9225
+ private initStickyTOCSubscriptions;
9226
+ updateStickyTOCSize(rootElement: HTMLElement): void;
9152
9227
  get isMobile(): boolean;
9153
9228
  get containerCss(): string;
9154
9229
  listModel: ListModel<Action>;
@@ -11069,7 +11144,7 @@ declare module "survey" {
11069
11144
  * @see validateCurrentPage
11070
11145
  * @see validatePage
11071
11146
  */
11072
- validate(fireCallback?: boolean, focusOnFirstError?: boolean, onAsyncValidation?: (hasErrors: boolean) => void): boolean;
11147
+ validate(fireCallback?: boolean, focusOnFirstError?: boolean, onAsyncValidation?: (hasErrors: boolean) => void, changeCurrentPage?: boolean): boolean;
11073
11148
  ensureUniqueNames(element?: ISurveyElement): void;
11074
11149
  private ensureUniqueName;
11075
11150
  private ensureUniquePageName;
@@ -11340,7 +11415,7 @@ declare module "survey" {
11340
11415
  private getUpdatedPanelTitleActions;
11341
11416
  private getUpdatedPageTitleActions;
11342
11417
  getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: any, actions: Array<IAction>): IAction[];
11343
- 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;
11344
11419
  /**
11345
11420
  * Opens a dialog window for users to select files.
11346
11421
  * @param input A [file input HTML element](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement).
@@ -11566,6 +11641,7 @@ declare module "survey" {
11566
11641
  private triggerValues;
11567
11642
  private triggerKeys;
11568
11643
  private checkTriggers;
11644
+ private checkTriggersAndRunConditions;
11569
11645
  private get hasRequiredValidQuestionTrigger();
11570
11646
  private doElementsOnLoad;
11571
11647
  private conditionValues;
@@ -12133,7 +12209,7 @@ declare module "survey-element" {
12133
12209
  dragTypeOverMe: DragTypeOverMeEnum;
12134
12210
  isDragMe: boolean;
12135
12211
  readOnlyChangedCallback: () => void;
12136
- static ScrollElementToTop(elementId: string, scrollIfVisible?: boolean): boolean;
12212
+ static ScrollElementToTop(elementId: string, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): boolean;
12137
12213
  static ScrollElementToViewCore(el: HTMLElement, checkLeft: boolean, scrollIfVisible?: boolean, scrollIntoViewOptions?: ScrollIntoViewOptions): boolean;
12138
12214
  static GetFirstNonTextElement(elements: any, removeSpaces?: boolean): any;
12139
12215
  static FocusElement(elementId: string): boolean;
@@ -12462,7 +12538,9 @@ declare module "survey-element" {
12462
12538
  private _isAnimatingCollapseExpand;
12463
12539
  private set isAnimatingCollapseExpand(value);
12464
12540
  private get isAnimatingCollapseExpand();
12541
+ protected onElementExpanded(elementIsRendered: boolean): void;
12465
12542
  private getExpandCollapseAnimationOptions;
12543
+ private get isExpandCollapseAnimationEnabled();
12466
12544
  private animationCollapsed;
12467
12545
  set renderedIsExpanded(val: boolean);
12468
12546
  get renderedIsExpanded(): boolean;
@@ -12961,7 +13039,8 @@ declare module "question" {
12961
13039
  */
12962
13040
  focus(onError?: boolean, scrollIfVisible?: boolean): void;
12963
13041
  private focuscore;
12964
- private expandAllParents;
13042
+ expandAllParents(): void;
13043
+ private expandAllParentsCore;
12965
13044
  focusIn(): void;
12966
13045
  protected fireCallback(callback: () => void): void;
12967
13046
  getOthersMaxLength(): any;
@@ -13026,6 +13105,8 @@ declare module "question" {
13026
13105
  get isInputReadOnly(): boolean;
13027
13106
  get renderedInputReadOnly(): string;
13028
13107
  get renderedInputDisabled(): string;
13108
+ get isReadOnlyAttr(): boolean;
13109
+ get isDisabledAttr(): boolean;
13029
13110
  protected onReadOnlyChanged(): void;
13030
13111
  /**
13031
13112
  * A Boolean expression. If it evaluates to `false`, this question becomes read-only.
@@ -13246,6 +13327,7 @@ declare module "question" {
13246
13327
  */
13247
13328
  isAnswerCorrect(): boolean;
13248
13329
  updateValueWithDefaults(): void;
13330
+ get isValueDefault(): boolean;
13249
13331
  protected get isClearValueOnHidden(): boolean;
13250
13332
  getQuestionFromArray(name: string, index: number): IQuestion;
13251
13333
  getDefaultValue(): any;
@@ -13336,7 +13418,7 @@ declare module "question" {
13336
13418
  protected isNewValueCorrect(val: any): boolean;
13337
13419
  protected isNewValueEqualsToValue(newValue: any): boolean;
13338
13420
  protected isTextValue(): boolean;
13339
- get isSurveyInputTextUpdate(): boolean;
13421
+ protected getIsInputTextUpdate(): boolean;
13340
13422
  get requireStrictCompare(): boolean;
13341
13423
  private getDataLocNotification;
13342
13424
  get isInputTextUpdate(): boolean;
@@ -13747,7 +13829,9 @@ declare module "question_matrixdropdownbase" {
13747
13829
  getAllValues(): any;
13748
13830
  getFilteredValues(): any;
13749
13831
  getFilteredProperties(): any;
13832
+ private applyRowVariablesToValues;
13750
13833
  runCondition(values: HashTable<any>, properties: HashTable<any>): void;
13834
+ getNamesWithDefaultValues(): Array<string>;
13751
13835
  clearValue(keepComment?: boolean): void;
13752
13836
  onAnyValueChanged(name: string, questionName: string): void;
13753
13837
  getDataValueCore(valuesHash: any, key: string): any;
@@ -14329,7 +14413,7 @@ declare module "base-interfaces" {
14329
14413
  dynamicPanelGetTabTitle(question: IQuestion, options: any): any;
14330
14414
  dynamicPanelCurrentIndexChanged(question: IQuestion, options: any): void;
14331
14415
  dragAndDropAllow(options: DragDropAllowEvent): boolean;
14332
- 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;
14333
14417
  runExpression(expression: string): any;
14334
14418
  elementContentVisibilityChanged(element: ISurveyElement): void;
14335
14419
  onCorrectQuestionAnswer(question: IQuestion, options: any): void;
@@ -15298,6 +15382,13 @@ declare module "base" {
15298
15382
  private animationAllowedLock;
15299
15383
  blockAnimations(): void;
15300
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;
15301
15392
  }
15302
15393
  export class ArrayChanges<T = any> {
15303
15394
  index: number;
@@ -15338,10 +15429,21 @@ declare module "utils/popup" {
15338
15429
  width: number;
15339
15430
  height: number;
15340
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
+ }
15341
15443
  export class PopupUtils {
15342
15444
  static bottomIndent: number;
15343
- static calculatePosition(targetRect: ClientRect, height: number, width: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, showPointer: boolean, positionMode?: PositionMode): INumberPosition;
15344
- 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;
15345
15447
  static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition, positionMode?: PositionMode, margins?: {
15346
15448
  left: number;
15347
15449
  right: number;
@@ -15349,9 +15451,10 @@ declare module "utils/popup" {
15349
15451
  width: number;
15350
15452
  left: number;
15351
15453
  };
15352
- static updateVerticalPosition(targetRect: ClientRect, height: number, verticalPosition: VerticalPosition, showPointer: boolean, windowHeight: number): VerticalPosition;
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;
15353
15456
  static calculatePopupDirection(verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition): string;
15354
- static calculatePointerTarget(targetRect: ClientRect, top: number, left: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, marginLeft?: number, marginRight?: number): INumberPosition;
15457
+ static calculatePointerTarget(targetRect: Rect, top: number, left: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, marginLeft?: number, marginRight?: number): INumberPosition;
15355
15458
  }
15356
15459
  }
15357
15460
  declare module "popup" {
@@ -15369,6 +15472,7 @@ declare module "popup" {
15369
15472
  horizontalPosition?: HorizontalPosition;
15370
15473
  showPointer?: boolean;
15371
15474
  isModal?: boolean;
15475
+ canShrink?: boolean;
15372
15476
  displayMode?: "popup" | "overlay";
15373
15477
  }
15374
15478
  export interface IDialogOptions extends IPopupOptionsBase {
@@ -15392,6 +15496,7 @@ declare module "popup" {
15392
15496
  horizontalPosition: HorizontalPosition;
15393
15497
  showPointer: boolean;
15394
15498
  isModal: boolean;
15499
+ canShrink: boolean;
15395
15500
  isFocusedContent: boolean;
15396
15501
  isFocusedContainer: boolean;
15397
15502
  cssClass: string;
@@ -15407,8 +15512,11 @@ declare module "popup" {
15407
15512
  get isVisible(): boolean;
15408
15513
  set isVisible(value: boolean);
15409
15514
  toggleVisibility(): void;
15515
+ show(): void;
15516
+ hide(): void;
15410
15517
  recalculatePosition(isResetHeight: boolean): void;
15411
15518
  updateFooterActions(footerActions: Array<IAction>): Array<IAction>;
15519
+ onHiding(): void;
15412
15520
  dispose(): void;
15413
15521
  }
15414
15522
  export function createDialogOptions(componentName: string, data: any, onApply: () => boolean, onCancel?: () => void, onHide?: () => void, onShow?: () => void, cssClass?: string, title?: string, displayMode?: "popup" | "overlay"): IDialogOptions;
@@ -16042,6 +16150,9 @@ declare module "question_matrixdropdown" {
16042
16150
  protected isNewValueCorrect(val: any): boolean;
16043
16151
  clearIncorrectValues(): void;
16044
16152
  protected clearValueIfInvisibleCore(reason: string): void;
16153
+ private defaultValuesInRows;
16154
+ protected clearGeneratedRows(): void;
16155
+ private getRowValueForCreation;
16045
16156
  protected generateRows(): Array<MatrixDropdownRowModel>;
16046
16157
  protected createMatrixRow(item: ItemValue, value: any): MatrixDropdownRowModel;
16047
16158
  protected getSearchableItemValueKeys(keys: Array<string>): void;
@@ -16311,6 +16422,8 @@ declare module "question_matrix" {
16311
16422
  cssClasses: any;
16312
16423
  isDisabledStyle: boolean;
16313
16424
  isInputReadOnly: boolean;
16425
+ isDisabledAttr: boolean;
16426
+ isReadOnlyAttr: boolean;
16314
16427
  hasErrorInRow(row: MatrixRowModel): boolean;
16315
16428
  }
16316
16429
  export class MatrixRowModel extends Base {
@@ -16326,6 +16439,8 @@ declare module "question_matrix" {
16326
16439
  set value(val: any);
16327
16440
  setValueDirectly(val: any): void;
16328
16441
  get isReadOnly(): boolean;
16442
+ get isReadOnlyAttr(): boolean;
16443
+ get isDisabledAttr(): boolean;
16329
16444
  get rowTextClasses(): string;
16330
16445
  get hasError(): boolean;
16331
16446
  set hasError(val: boolean);
@@ -16709,12 +16824,15 @@ declare module "question_checkbox" {
16709
16824
  }
16710
16825
  declare module "multiSelectListModel" {
16711
16826
  import { Action, BaseAction, IAction } from "actions/action";
16712
- import { ListModel } from "list";
16827
+ import { IListModel, ListModel } from "list";
16828
+ export interface IMultiSelectListModel extends IListModel {
16829
+ selectedItems?: Array<IAction>;
16830
+ }
16713
16831
  export class MultiSelectListModel<T extends BaseAction = Action> extends ListModel<T> {
16714
16832
  selectedItems: Array<IAction>;
16715
16833
  hideSelectedItems: boolean;
16716
16834
  private updateItemState;
16717
- constructor(items: Array<IAction>, onSelectionChanged: (item: T, status: string) => void, allowSelection: boolean, selectedItems?: Array<IAction>, elementId?: string);
16835
+ constructor(options: IMultiSelectListModel);
16718
16836
  onItemClick: (item: T) => void;
16719
16837
  isItemDisabled: (itemValue: T) => boolean;
16720
16838
  isItemSelected: (itemValue: T) => boolean;
@@ -17048,6 +17166,7 @@ declare module "dragdrop/choices" {
17048
17166
  declare module "dragdrop/ranking-choices" {
17049
17167
  import { ItemValue } from "itemvalue";
17050
17168
  import { DragDropChoices } from "dragdrop/choices";
17169
+ import { QuestionRankingModel } from "question_ranking";
17051
17170
  export class DragDropRankingChoices extends DragDropChoices {
17052
17171
  protected get draggedElementType(): string;
17053
17172
  protected createDraggedElementShortcut(text: string, draggedElementNode: HTMLElement, event: PointerEvent): HTMLElement;
@@ -17057,9 +17176,14 @@ declare module "dragdrop/ranking-choices" {
17057
17176
  protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
17058
17177
  private getIsDragOverRootNode;
17059
17178
  protected isDropTargetValid(dropTarget: ItemValue, dropTargetNode?: HTMLElement): boolean;
17060
- protected calculateIsBottom(clientY: number): boolean;
17179
+ protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
17061
17180
  protected doDragOver: () => any;
17181
+ getIndixies(model: any, fromChoicesArray: Array<ItemValue>, toChoicesArray: Array<ItemValue>): {
17182
+ fromIndex: number;
17183
+ toIndex: number;
17184
+ };
17062
17185
  protected afterDragOver(dropTargetNode: HTMLElement): void;
17186
+ reorderRankedItem: (questionModel: QuestionRankingModel, fromIndex: number, toIndex: number) => void;
17063
17187
  protected updateDraggedElementShortcut(newIndex: number): void;
17064
17188
  protected ghostPositionChanged(): void;
17065
17189
  protected doBanDropHere: () => any;
@@ -17078,27 +17202,17 @@ declare module "dragdrop/ranking-select-to-rank" {
17078
17202
  protected isDropTargetValid(dropTarget: ItemValue | string, dropTargetNode?: HTMLElement): boolean;
17079
17203
  protected afterDragOver(dropTargetNode: HTMLElement): void;
17080
17204
  doRankBetween(dropTargetNode: HTMLElement, fromChoicesArray: Array<ItemValue>, toChoicesArray: Array<ItemValue>, rankFunction: Function): void;
17081
- getIndixies(model: any, fromChoicesArray: Array<ItemValue>, toChoicesArray: Array<ItemValue>): {
17082
- fromIndex: number;
17083
- toIndex: number;
17084
- };
17085
- protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
17086
- private doUIEffects;
17087
17205
  private get isDraggedElementRanked();
17088
17206
  private get isDropTargetRanked();
17089
17207
  private get isDraggedElementUnranked();
17090
- private get isDropTargetUnranked();
17091
17208
  private updateChoices;
17092
17209
  selectToRank: (questionModel: QuestionRankingModel, fromIndex: number, toIndex: number) => void;
17093
17210
  unselectFromRank: (questionModel: QuestionRankingModel, fromIndex: number, toIndex?: number) => void;
17094
- reorderRankedItem: (questionModel: QuestionRankingModel, fromIndex: number, toIndex: number, dropTargetNode?: HTMLElement) => void;
17095
- clear(): void;
17096
17211
  }
17097
17212
  }
17098
17213
  declare module "question_ranking" {
17099
17214
  import { ISurveyImpl } from "base-interfaces";
17100
17215
  import { DragDropRankingChoices } from "dragdrop/ranking-choices";
17101
- import { DragDropRankingSelectToRank } from "dragdrop/ranking-select-to-rank";
17102
17216
  import { ItemValue } from "itemvalue";
17103
17217
  import { QuestionCheckboxModel } from "question_checkbox";
17104
17218
  import { AnimationGroup } from "utils/animation";
@@ -17128,28 +17242,34 @@ declare module "question_ranking" {
17128
17242
  isAnswerCorrect(): boolean;
17129
17243
  get requireStrictCompare(): boolean;
17130
17244
  onSurveyValueChanged(newValue: any): void;
17245
+ onSurveyLoad(): void;
17131
17246
  protected onVisibleChoicesChanged: () => void;
17132
17247
  localeChanged: () => void;
17133
17248
  private addToValueByVisibleChoices;
17134
17249
  private removeFromValueByVisibleChoices;
17135
- private getChoicesAnimation;
17250
+ private getChoicesAnimationOptions;
17136
17251
  private _rankingChoicesAnimation;
17137
17252
  get rankingChoicesAnimation(): AnimationGroup<ItemValue>;
17138
17253
  private _unRankingChoicesAnimation;
17139
17254
  get unRankingChoicesAnimation(): AnimationGroup<ItemValue>;
17140
- get rankingChoices(): Array<ItemValue>;
17141
- set rankingChoices(val: Array<ItemValue>);
17142
- get unRankingChoices(): Array<ItemValue>;
17143
- set unRankingChoices(val: Array<ItemValue>);
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;
17144
17265
  private updateRankingChoices;
17145
17266
  updateUnRankingChoices(newRankingChoices: Array<ItemValue>): void;
17146
17267
  private updateRankingChoicesSelectToRankMode;
17147
17268
  dragDropRankingChoices: DragDropRankingChoices;
17148
17269
  currentDropTarget: ItemValue;
17149
- dropTargetNodeMove: string;
17150
17270
  endLoadingFromJson(): void;
17151
17271
  private setDragDropRankingChoices;
17152
- protected createDragDropRankingChoices(): DragDropRankingChoices | DragDropRankingSelectToRank;
17272
+ protected createDragDropRankingChoices(): DragDropRankingChoices;
17153
17273
  private draggedChoise;
17154
17274
  private draggedTargetNode;
17155
17275
  handlePointerDown: (event: PointerEvent, choice: ItemValue, node: HTMLElement) => void;
@@ -17168,7 +17288,6 @@ declare module "question_ranking" {
17168
17288
  supportNone(): boolean;
17169
17289
  supportRefuse(): boolean;
17170
17290
  supportDontKnow(): boolean;
17171
- private handleArrowKeys;
17172
17291
  handleKeydownSelectToRank(event: KeyboardEvent, movedElement: ItemValue, hardKey?: string, isNeedFocus?: boolean): void;
17173
17292
  private setValueAfterKeydown;
17174
17293
  private focusItem;
@@ -17185,6 +17304,11 @@ declare module "question_ranking" {
17185
17304
  */
17186
17305
  get longTap(): boolean;
17187
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);
17188
17312
  /**
17189
17313
  * Specifies whether users can select choices they want to rank.
17190
17314
  *
@@ -17732,6 +17856,8 @@ declare module "question_boolean" {
17732
17856
  getItemCss(): string;
17733
17857
  getCheckboxItemCss(): string;
17734
17858
  getLabelCss(checked: boolean): string;
17859
+ updateValueFromSurvey(newValue: any, clearData?: boolean): void;
17860
+ protected onValueChanged(): void;
17735
17861
  get svgIcon(): string;
17736
17862
  get itemSvgIcon(): string;
17737
17863
  get allowClick(): boolean;
@@ -17978,12 +18104,13 @@ declare module "popup-survey" {
17978
18104
  }
17979
18105
  }
17980
18106
  declare module "popup-dropdown-view-model" {
17981
- import { IPosition } from "utils/popup";
18107
+ import { IPosition, Rect } from "utils/popup";
17982
18108
  import { CssClassBuilder } from "utils/cssClassBuilder";
17983
18109
  import { PopupModel } from "popup";
17984
18110
  import { PopupBaseViewModel } from "popup-view-model";
17985
18111
  export class PopupDropdownViewModel extends PopupBaseViewModel {
17986
18112
  targetElement?: HTMLElement;
18113
+ areaElement?: HTMLElement;
17987
18114
  private scrollEventCallBack;
17988
18115
  private static readonly tabletSizeBreakpoint;
17989
18116
  private calculateIsTablet;
@@ -17993,6 +18120,8 @@ declare module "popup-dropdown-view-model" {
17993
18120
  private isTablet;
17994
18121
  private touchStartEventCallback;
17995
18122
  private touchMoveEventCallback;
18123
+ protected getAvailableAreaRect(): Rect;
18124
+ protected getTargetElementRect(): Rect;
17996
18125
  private _updatePosition;
17997
18126
  protected getActualHorizontalPosition(): "left" | "center" | "right";
17998
18127
  protected getStyleClass(): CssClassBuilder;
@@ -18001,8 +18130,8 @@ declare module "popup-dropdown-view-model" {
18001
18130
  popupDirection: string;
18002
18131
  pointerTarget: IPosition;
18003
18132
  private recalculatePositionHandler;
18004
- constructor(model: PopupModel, targetElement?: HTMLElement);
18005
- 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;
18006
18135
  resetComponentElement(): void;
18007
18136
  updateOnShowing(): void;
18008
18137
  private get shouldCreateResizeCallback();
@@ -25981,6 +26110,114 @@ declare module "localization/telugu" {
25981
26110
  cancel: string;
25982
26111
  };
25983
26112
  }
26113
+ declare module "localization/philippines" {
26114
+ export var philippinesStrings: {
26115
+ pagePrevText: string;
26116
+ pageNextText: string;
26117
+ completeText: string;
26118
+ previewText: string;
26119
+ editText: string;
26120
+ startSurveyText: string;
26121
+ otherItemText: string;
26122
+ noneItemText: string;
26123
+ refuseItemText: string;
26124
+ dontKnowItemText: string;
26125
+ selectAllItemText: string;
26126
+ progressText: string;
26127
+ indexText: string;
26128
+ panelDynamicProgressText: string;
26129
+ panelDynamicTabTextFormat: string;
26130
+ questionsProgressText: string;
26131
+ emptySurvey: string;
26132
+ completingSurvey: string;
26133
+ completingSurveyBefore: string;
26134
+ loadingSurvey: string;
26135
+ placeholder: string;
26136
+ ratingOptionsCaption: string;
26137
+ value: string;
26138
+ requiredError: string;
26139
+ requiredErrorInPanel: string;
26140
+ requiredInAllRowsError: string;
26141
+ eachRowUniqueError: string;
26142
+ numericError: string;
26143
+ minError: string;
26144
+ maxError: string;
26145
+ textMinLength: string;
26146
+ textMaxLength: string;
26147
+ textMinMaxLength: string;
26148
+ minRowCountError: string;
26149
+ minSelectError: string;
26150
+ maxSelectError: string;
26151
+ numericMinMax: string;
26152
+ numericMin: string;
26153
+ numericMax: string;
26154
+ invalidEmail: string;
26155
+ invalidExpression: string;
26156
+ urlRequestError: string;
26157
+ urlGetChoicesError: string;
26158
+ exceedMaxSize: string;
26159
+ noUploadFilesHandler: string;
26160
+ otherRequiredError: string;
26161
+ uploadingFile: string;
26162
+ loadingFile: string;
26163
+ chooseFile: string;
26164
+ noFileChosen: string;
26165
+ filePlaceholder: string;
26166
+ confirmDelete: string;
26167
+ keyDuplicationError: string;
26168
+ addColumn: string;
26169
+ addRow: string;
26170
+ removeRow: string;
26171
+ emptyRowsText: string;
26172
+ addPanel: string;
26173
+ removePanel: string;
26174
+ showDetails: string;
26175
+ hideDetails: string;
26176
+ choices_Item: string;
26177
+ matrix_column: string;
26178
+ matrix_row: string;
26179
+ multipletext_itemname: string;
26180
+ savingData: string;
26181
+ savingDataError: string;
26182
+ savingDataSuccess: string;
26183
+ savingExceedSize: string;
26184
+ saveAgainButton: string;
26185
+ timerMin: string;
26186
+ timerSec: string;
26187
+ timerSpentAll: string;
26188
+ timerSpentPage: string;
26189
+ timerSpentSurvey: string;
26190
+ timerLimitAll: string;
26191
+ timerLimitPage: string;
26192
+ timerLimitSurvey: string;
26193
+ clearCaption: string;
26194
+ signaturePlaceHolder: string;
26195
+ signaturePlaceHolderReadOnly: string;
26196
+ chooseFileCaption: string;
26197
+ takePhotoCaption: string;
26198
+ photoPlaceholder: string;
26199
+ fileOrPhotoPlaceholder: string;
26200
+ replaceFileCaption: string;
26201
+ removeFileCaption: string;
26202
+ booleanCheckedLabel: string;
26203
+ booleanUncheckedLabel: string;
26204
+ confirmRemoveFile: string;
26205
+ confirmRemoveAllFiles: string;
26206
+ questionTitlePatternText: string;
26207
+ modalCancelButtonText: string;
26208
+ modalApplyButtonText: string;
26209
+ filterStringPlaceholder: string;
26210
+ emptyMessage: string;
26211
+ noEntriesText: string;
26212
+ noEntriesReadonlyText: string;
26213
+ more: string;
26214
+ tagboxDoneButtonCaption: string;
26215
+ selectToRankEmptyRankedAreaText: string;
26216
+ selectToRankEmptyUnrankedAreaText: string;
26217
+ ok: string;
26218
+ cancel: string;
26219
+ };
26220
+ }
25984
26221
  declare module "entries/chunks/localization" {
25985
26222
  import "localization/arabic";
25986
26223
  import "localization/basque";
@@ -26031,6 +26268,7 @@ declare module "entries/chunks/localization" {
26031
26268
  import "localization/vietnamese";
26032
26269
  import "localization/welsh";
26033
26270
  import "localization/telugu";
26271
+ import "localization/philippines";
26034
26272
  }
26035
26273
  declare module "react/element-factory" {
26036
26274
  export class ReactElementFactory {
@@ -26162,6 +26400,7 @@ declare module "react/components/popup/popup" {
26162
26400
  interface IPopupProps {
26163
26401
  model: PopupModel;
26164
26402
  getTarget?: (container: HTMLElement) => HTMLElement;
26403
+ getArea?: (container: HTMLElement) => HTMLElement;
26165
26404
  }
26166
26405
  export class Popup extends SurveyElementBase<IPopupProps, any> {
26167
26406
  private popup;
@@ -26725,6 +26964,11 @@ declare module "react/reactquestion_ranking" {
26725
26964
  protected renderEmptyIcon(): JSX.Element;
26726
26965
  protected renderElement(): JSX.Element;
26727
26966
  }
26967
+ export class SurveyQuestionRankingItemContent extends ReactSurveyElement {
26968
+ protected get item(): ItemValue;
26969
+ protected get cssClasses(): any;
26970
+ protected renderElement(): JSX.Element;
26971
+ }
26728
26972
  }
26729
26973
  declare module "react/components/rating/rating-item" {
26730
26974
  import { Base, QuestionRatingModel, RenderedRatingItem } from "entries/core";
@@ -27105,7 +27349,7 @@ declare module "react/components/matrix-actions/drag-drop-icon/drag-drop-icon" {
27105
27349
  declare module "react/reactquestion_matrixdropdownbase" {
27106
27350
  import { SurveyQuestionElementBase } from "react/reactquestion_element";
27107
27351
  import { SurveyQuestionAndErrorsCell } from "react/reactquestion";
27108
- import { QuestionMatrixDropdownModelBase, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedCell, Question } from "entries/core";
27352
+ import { QuestionMatrixDropdownModelBase, Question } from "entries/core";
27109
27353
  export class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElementBase {
27110
27354
  constructor(props: any);
27111
27355
  protected get question(): QuestionMatrixDropdownModelBase;
@@ -27115,12 +27359,6 @@ declare module "react/reactquestion_matrixdropdownbase" {
27115
27359
  componentWillUnmount(): void;
27116
27360
  protected renderElement(): JSX.Element;
27117
27361
  renderTableDiv(): JSX.Element;
27118
- renderHeader(): JSX.Element | null;
27119
- renderFooter(): JSX.Element | null;
27120
- renderRows(): JSX.Element;
27121
- renderRow(keyValue: any, row: QuestionMatrixDropdownRenderedRow, cssClasses: any, reason?: string): JSX.Element;
27122
- renderCell(cell: QuestionMatrixDropdownRenderedCell, index: number, cssClasses: any, reason?: string): JSX.Element;
27123
- private renderCellContent;
27124
27362
  }
27125
27363
  export class SurveyQuestionMatrixDropdownCell extends SurveyQuestionAndErrorsCell {
27126
27364
  constructor(props: any);
@@ -27441,6 +27679,34 @@ declare module "react/reactquestion_custom" {
27441
27679
  protected renderElement(): JSX.Element;
27442
27680
  }
27443
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
+ }
27444
27710
  declare module "react/components/survey-header/logo-image" {
27445
27711
  import React from "react";
27446
27712
  import { SurveyModel } from "entries/core";
@@ -27560,7 +27826,7 @@ declare module "entries/react-ui-model" {
27560
27826
  export { ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, } from "react/reactquestion_element";
27561
27827
  export { SurveyQuestionCommentItem, SurveyQuestionComment, } from "react/reactquestion_comment";
27562
27828
  export { SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, } from "react/reactquestion_checkbox";
27563
- export { SurveyQuestionRanking, SurveyQuestionRankingItem, } from "react/reactquestion_ranking";
27829
+ export { SurveyQuestionRanking, SurveyQuestionRankingItem, SurveyQuestionRankingItemContent } from "react/reactquestion_ranking";
27564
27830
  export { RatingItem } from "react/components/rating/rating-item";
27565
27831
  export { RatingItemStar } from "react/components/rating/rating-item-star";
27566
27832
  export { RatingItemSmiley } from "react/components/rating/rating-item-smiley";
@@ -27603,6 +27869,8 @@ declare module "entries/react-ui-model" {
27603
27869
  export { SurveyQuestionButtonGroup } from "react/reactquestion_buttongroup";
27604
27870
  export { SurveyQuestionCustom, SurveyQuestionComposite } from "react/reactquestion_custom";
27605
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";
27606
27874
  export { List } from "react/components/list/list";
27607
27875
  export { TitleActions } from "react/components/title/title-actions";
27608
27876
  export { TitleElement } from "react/components/title/title-element";