survey-react 1.9.89 → 1.9.91

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
@@ -836,6 +836,7 @@ declare module "jsonobject" {
836
836
  categoryIndex: number;
837
837
  visibleIndex: number;
838
838
  nextToProperty: string;
839
+ overridingProperty: string;
839
840
  showMode: string;
840
841
  maxLength: number;
841
842
  maxValue: any;
@@ -1212,6 +1213,7 @@ declare module "expressions/expressions" {
1212
1213
  static binaryFunctions: HashTable<Function>;
1213
1214
  static isTwoValueEquals(x: any, y: any): boolean;
1214
1215
  static operatorToString(operatorName: string): string;
1216
+ static convertValForDateCompare(val: any, second: any): any;
1215
1217
  static signs: HashTable<string>;
1216
1218
  }
1217
1219
  }
@@ -1530,6 +1532,7 @@ declare module "list" {
1530
1532
  private loadingIndicatorValue;
1531
1533
  searchEnabled: boolean;
1532
1534
  showFilter: boolean;
1535
+ forceShowFilter: boolean;
1533
1536
  isExpanded: boolean;
1534
1537
  selectedItem: IAction;
1535
1538
  focusedItem: T;
@@ -1672,6 +1675,7 @@ declare module "popup" {
1672
1675
  showPointer: boolean;
1673
1676
  isModal: boolean;
1674
1677
  isFocusedContent: boolean;
1678
+ isFocusedContainer: boolean;
1675
1679
  onCancel: () => void;
1676
1680
  onApply: () => boolean;
1677
1681
  onHide: () => void;
@@ -3017,7 +3021,7 @@ declare module "panel" {
3017
3021
  import { HashTable } from "helpers";
3018
3022
  import { Base } from "base";
3019
3023
  import { ISurveyImpl, IPage, IPanel, IConditionRunner, IElement, ISurveyElement, IQuestion, ISurveyErrorOwner, ITitleOwner, IProgressInfo, ISurvey, IFindElement } from "base-interfaces";
3020
- import { SurveyElement } from "survey-element";
3024
+ import { DragTypeOverMeEnum, SurveyElement } from "survey-element";
3021
3025
  import { Question } from "question";
3022
3026
  import { LocalizableString } from "localizablestring";
3023
3027
  import { findScrollableParent } from "utils/utils";
@@ -3056,6 +3060,7 @@ declare module "panel" {
3056
3060
  private getRenderedWidthFromWidth;
3057
3061
  private calcVisible;
3058
3062
  private needToUpdateVisibleElements;
3063
+ dragTypeOverMe: DragTypeOverMeEnum;
3059
3064
  dispose(): void;
3060
3065
  getRowCss(): string;
3061
3066
  }
@@ -3249,12 +3254,14 @@ declare module "panel" {
3249
3254
  updateElementVisibility(): void;
3250
3255
  getFirstQuestionToFocus(withError?: boolean, ignoreCollapseState?: boolean): Question;
3251
3256
  /**
3252
- * Sets focus on the input of the first question in this panel/page.
3257
+ * Focuses the first question in this panel/page.
3258
+ * @see focusFirstErrorQuestion
3253
3259
  */
3254
3260
  focusFirstQuestion(): void;
3255
3261
  /**
3256
- * Sets focus on the input of the first question in this panel/page that has an error.
3262
+ * Focuses the first question with a validation error in this panel/page.
3257
3263
  * @see validate
3264
+ * @see focusFirstQuestion
3258
3265
  */
3259
3266
  focusFirstErrorQuestion(): void;
3260
3267
  addQuestionsToList(list: Array<IQuestion>, visibleOnly?: boolean, includingDesignTime?: boolean): void;
@@ -3990,8 +3997,10 @@ declare module "question_baseselect" {
3990
3997
  protected onAfterRunItemsEnableCondition(): void;
3991
3998
  protected onEnableItemCallBack(item: ItemValue): boolean;
3992
3999
  protected onSelectedItemValuesChangedHandler(newValue: any): void;
4000
+ protected getItemIfChoicesNotContainThisValue(value: any, text?: string): any;
3993
4001
  protected getSingleSelectedItem(): ItemValue;
3994
4002
  protected onGetSingleSelectedItem(selectedItemByValue: ItemValue): void;
4003
+ protected getMultipleSelectedItems(): Array<ItemValue>;
3995
4004
  private setConditionalChoicesRunner;
3996
4005
  private setConditionalEnableChoicesRunner;
3997
4006
  private canSurveyChangeItemVisibility;
@@ -4025,7 +4034,6 @@ declare module "question_baseselect" {
4025
4034
  protected updateSelectedItemValues(): void;
4026
4035
  protected updateSingleSelectedItemValues(): void;
4027
4036
  protected updateMultipleSelectedItemValues(): void;
4028
- protected resetSelectedItemValues(): void;
4029
4037
  protected hasUnknownValue(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
4030
4038
  protected isValueDisabled(val: any): boolean;
4031
4039
  /**
@@ -4560,23 +4568,70 @@ declare module "question_matrixdropdowncolumn" {
4560
4568
  private addProperty;
4561
4569
  }
4562
4570
  }
4571
+ declare module "dragdrop/engine" {
4572
+ export interface IDragDropEngine {
4573
+ dragInit(event: PointerEvent, draggedElement: any, parentElement: any, draggedElementNode: HTMLElement): void;
4574
+ dragOver(event: PointerEvent): void;
4575
+ drop(): void;
4576
+ clear(): void;
4577
+ }
4578
+ }
4563
4579
  declare module "utils/devices" {
4564
4580
  export const IsMobile: boolean;
4565
4581
  export let IsTouch: boolean;
4566
4582
  export function _setIsTouch(val: boolean): void;
4567
4583
  }
4584
+ declare module "dragdrop/dom-adapter" {
4585
+ import { IDragDropEngine } from "dragdrop/engine";
4586
+ export interface IDragDropDOMAdapter {
4587
+ startDrag(event: PointerEvent, draggedElement: any, parentElement: any, draggedElementNode: HTMLElement, preventSaveTargetNode: boolean): void;
4588
+ draggedElementShortcut: HTMLElement;
4589
+ }
4590
+ export class DragDropDOMAdapter implements IDragDropDOMAdapter {
4591
+ private dd;
4592
+ private longTap?;
4593
+ static PreventScrolling: boolean;
4594
+ private timeoutID;
4595
+ private startX;
4596
+ private startY;
4597
+ private currentX;
4598
+ private currentY;
4599
+ private savedTargetNode;
4600
+ private scrollIntervalId;
4601
+ constructor(dd: IDragDropEngine, longTap?: boolean);
4602
+ private stopLongTapIfMoveEnough;
4603
+ private get isMicroMovement();
4604
+ private stopLongTap;
4605
+ private startLongTapProcessing;
4606
+ private handlePointerCancel;
4607
+ private handleEscapeButton;
4608
+ private onContextMenu;
4609
+ private moveShortcutElement;
4610
+ private getShortcutBottomCoordinate;
4611
+ private getShortcutRightCoordinate;
4612
+ private doScroll;
4613
+ private dragOver;
4614
+ private clear;
4615
+ private drop;
4616
+ private doStartDrag;
4617
+ draggedElementShortcut: any;
4618
+ startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement, preventSaveTargetNode?: boolean): void;
4619
+ }
4620
+ }
4568
4621
  declare module "dragdrop/core" {
4569
4622
  import { SurveyModel } from "survey";
4570
- import { Base, EventBase } from "base";
4623
+ import { EventBase } from "base";
4571
4624
  import { IShortcutText, ISurvey } from "base-interfaces";
4572
- export abstract class DragDropCore<T> extends Base {
4625
+ import { IDragDropEngine } from "dragdrop/engine";
4626
+ import { IDragDropDOMAdapter } from "dragdrop/dom-adapter";
4627
+ export abstract class DragDropCore<T> implements IDragDropEngine {
4573
4628
  private surveyValue?;
4574
4629
  private creator?;
4575
- private longTap?;
4576
- isBottom: boolean;
4630
+ private _isBottom;
4631
+ get isBottom(): boolean;
4632
+ set isBottom(val: boolean);
4577
4633
  onGhostPositionChanged: EventBase<{}>;
4578
4634
  protected ghostPositionChanged(): void;
4579
- static PreventScrolling: boolean;
4580
4635
  onDragStart: EventBase<DragDropCore<T>>;
4581
4636
  onDragEnd: EventBase<DragDropCore<T>>;
4582
4637
  onBeforeDrop: EventBase<DragDropCore<T>, any>;
@@ -4588,54 +4643,34 @@ declare module "dragdrop/core" {
4588
4643
  protected get dropTargetDataAttributeName(): string;
4589
4644
  protected get survey(): SurveyModel;
4590
4645
  prevDropTarget: any;
4591
- protected draggedElementShortcut: any;
4592
- private scrollIntervalId;
4593
4646
  protected allowDropHere: boolean;
4594
- constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean);
4647
+ protected domAdapter: IDragDropDOMAdapter;
4648
+ constructor(surveyValue?: ISurvey, creator?: any, longTap?: boolean, domAdapter?: IDragDropDOMAdapter);
4595
4649
  startDrag(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement, preventSaveTargetNode?: boolean): void;
4596
- private timeoutID;
4597
- private startX;
4598
- private startY;
4599
- private currentX;
4600
- private currentY;
4601
- private savedTargetNode;
4602
- private startLongTapProcessing;
4603
- private stopLongTapIfMoveEnough;
4604
- private get isMicroMovement();
4605
- private stopLongTap;
4606
- private doStartDrag;
4607
- private onContextMenu;
4608
- private dragOver;
4609
- private drop;
4610
- protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
4650
+ dragInit(event: PointerEvent, draggedElement: any, parentElement?: any, draggedElementNode?: HTMLElement): void;
4611
4651
  protected onStartDrag(): void;
4652
+ protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
4612
4653
  protected getShortcutText(draggedElement: IShortcutText): string;
4613
4654
  protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
4614
4655
  protected getDraggedElementClass(): string;
4615
- protected doDragOver(dropTargetNode?: HTMLElement, event?: PointerEvent): void;
4616
- protected afterDragOver(dropTargetNode?: HTMLElement, event?: PointerEvent): void;
4617
- getGhostPosition(item: any): string;
4656
+ protected doDragOver(): void;
4657
+ protected afterDragOver(dropTargetNode: HTMLElement): void;
4618
4658
  protected abstract isDropTargetValid(dropTarget: any, dropTargetNode?: HTMLElement): boolean;
4619
- private handlePointerCancel;
4620
- protected handleEscapeButton: (event: KeyboardEvent) => void;
4621
- private moveShortcutElement;
4622
- private getShortcutBottomCoordinate;
4623
- private getShortcutRightCoordinate;
4624
- private doScroll;
4625
4659
  protected banDropHere: () => void;
4626
4660
  protected doBanDropHere: () => void;
4661
+ protected findDropTargetNodeFromPoint(clientX: number, clientY: number): HTMLElement;
4627
4662
  protected getDataAttributeValueByNode(node: HTMLElement): string;
4628
4663
  protected getDropTargetByNode(dropTargetNode: HTMLElement, event: PointerEvent): any;
4629
4664
  private capitalizeFirstLetter;
4630
4665
  protected abstract getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode?: HTMLElement, event?: PointerEvent): any;
4631
4666
  protected calculateVerticalMiddleOfHTMLElement(HTMLElement: HTMLElement): number;
4632
4667
  protected calculateHorizontalMiddleOfHTMLElement(HTMLElement: HTMLElement): number;
4633
- protected abstract calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
4634
- private findDropTargetNodeFromPoint;
4668
+ protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
4635
4669
  protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
4670
+ dragOver(event: PointerEvent): void;
4636
4671
  protected abstract doDrop(): any;
4637
- protected clear: () => void;
4638
- protected doClear(): void;
4672
+ drop(): void;
4673
+ clear(): void;
4639
4674
  }
4640
4675
  }
4641
4676
  declare module "dragdrop/matrix-rows" {
@@ -4648,11 +4683,11 @@ declare module "dragdrop/matrix-rows" {
4648
4683
  private fromIndex;
4649
4684
  private toIndex;
4650
4685
  protected getDropTargetByDataAttributeValue(dataAttributeValue: any): MatrixDropdownRowModelBase;
4651
- protected isDropTargetValid(dropTarget: any): boolean;
4686
+ protected isDropTargetValid(dropTarget: any, dropTargetNode?: HTMLElement): boolean;
4652
4687
  protected calculateIsBottom(clientY: number): boolean;
4653
4688
  protected afterDragOver(dropTargetNode: HTMLElement): void;
4654
4689
  protected doDrop: () => QuestionMatrixDynamicModel;
4655
- protected doClear(): void;
4690
+ clear(): void;
4656
4691
  }
4657
4692
  }
4658
4693
  declare module "question_matrixdropdownrendered" {
@@ -4848,6 +4883,7 @@ declare module "question_matrixdynamic" {
4848
4883
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
4849
4884
  private draggedRow;
4850
4885
  private isBanStartDrag;
4886
+ isDragHandleAreaValid(node: HTMLElement): boolean;
4851
4887
  onPointerDown(pointerDownEvent: PointerEvent, row: MatrixDropdownRowModelBase): void;
4852
4888
  startDragMatrixRow: (event: PointerEvent, currentTarget: HTMLElement) => void;
4853
4889
  getType(): string;
@@ -5661,6 +5697,7 @@ declare module "question_paneldynamic" {
5661
5697
  protected createAndSetupNewPanelObject(): PanelModel;
5662
5698
  private getTemplateQuestionTitleLocation;
5663
5699
  protected createNewPanelObject(): PanelModel;
5700
+ private settingPanelCountBasedOnValue;
5664
5701
  private setPanelCountBasedOnValue;
5665
5702
  setQuestionValue(newValue: any): void;
5666
5703
  onSurveyValueChanged(newValue: any): void;
@@ -7376,6 +7413,18 @@ declare module "question_multipletext" {
7376
7413
  protected getIsTooltipErrorInsideSupported(): boolean;
7377
7414
  }
7378
7415
  }
7416
+ declare module "themes" {
7417
+ export interface ITheme {
7418
+ cssVariables?: {
7419
+ [index: string]: string;
7420
+ };
7421
+ backgroundImage?: string;
7422
+ backgroundImageFit?: string;
7423
+ backgroundImagePosition?: string;
7424
+ backgroundOpacity?: number;
7425
+ isCompact?: boolean;
7426
+ }
7427
+ }
7379
7428
  declare module "survey" {
7380
7429
  import { JsonError } from "jsonobject";
7381
7430
  import { Base, EventBase } from "base";
@@ -7402,6 +7451,7 @@ declare module "survey" {
7402
7451
  import { QuestionMatrixDynamicModel } from "question_matrixdynamic";
7403
7452
  import { QuestionFileModel } from "question_file";
7404
7453
  import { QuestionMultipleTextModel } from "question_multipletext";
7454
+ import { ITheme } from "themes";
7405
7455
  /**
7406
7456
  * The `SurveyModel` object contains properties and methods that allow you to control the survey and access its elements.
7407
7457
  *
@@ -7481,7 +7531,7 @@ declare module "survey" {
7481
7531
  */
7482
7532
  onNavigateToUrl: EventBase<SurveyModel, NavigateToUrlEvent>;
7483
7533
  /**
7484
- * An event that is raised when the survey [`state`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#state) changes from `"starting"` to `"running"`. This occurs only if your survey includes a [start page](https://surveyjs.io/form-library/documentation/design-survey/create-a-multi-page-survey#start-page).
7534
+ * An event that is raised when the survey [`state`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#state) changes to `"running"`.
7485
7535
  * @see firstPageIsStarted
7486
7536
  */
7487
7537
  onStarted: EventBase<SurveyModel, {}>;
@@ -7843,13 +7893,17 @@ declare module "survey" {
7843
7893
  */
7844
7894
  onAfterRenderPanel: EventBase<SurveyModel, AfterRenderPanelEvent>;
7845
7895
  /**
7846
- * The event occurs when an element within a question gets focus.
7896
+ * An event that is raised when an element (input field, checkbox, radio button) within a question gets focus.
7847
7897
  * @see onFocusInPanel
7898
+ * @see focusFirstQuestionAutomatic
7899
+ * @see focusQuestion
7848
7900
  */
7849
7901
  onFocusInQuestion: EventBase<SurveyModel, FocusInQuestionEvent>;
7850
7902
  /**
7851
- * The event occurs when an element within a panel gets focus.
7903
+ * An event that is raised when an element within a panel gets focus.
7852
7904
  * @see onFocusInQuestion
7905
+ * @see focusFirstQuestionAutomatic
7906
+ * @see focusQuestion
7853
7907
  */
7854
7908
  onFocusInPanel: EventBase<SurveyModel, FocusInPanelEvent>;
7855
7909
  /**
@@ -8170,13 +8224,21 @@ declare module "survey" {
8170
8224
  get surveyShowDataSaving(): boolean;
8171
8225
  set surveyShowDataSaving(val: boolean);
8172
8226
  /**
8173
- * Gets or sets whether the first input is focused on showing a next or a previous page.
8227
+ * Specifies whether to focus the first question on the page on survey startup or when users switch between pages.
8228
+ *
8229
+ * Default value: `true`
8230
+ * @see focusOnFirstError
8231
+ * @see focusFirstQuestion
8232
+ * @see focusQuestion
8174
8233
  */
8175
8234
  get focusFirstQuestionAutomatic(): boolean;
8176
8235
  set focusFirstQuestionAutomatic(val: boolean);
8177
8236
  /**
8178
- * Gets or sets whether the first input is focused if the current page has errors.
8179
- * Set this property to `false` (the default value is `true`) if you do not want to bring the focus to the first question that has error on the page.
8237
+ * Specifies whether to focus the first question with a validation error on the current page.
8238
+ *
8239
+ * Default value: `true`
8240
+ * @see validate
8241
+ * @see focusFirstQuestionAutomatic
8180
8242
  */
8181
8243
  get focusOnFirstError(): boolean;
8182
8244
  set focusOnFirstError(val: boolean);
@@ -8348,14 +8410,25 @@ declare module "survey" {
8348
8410
  get checkErrorsMode(): string;
8349
8411
  set checkErrorsMode(val: string);
8350
8412
  /**
8351
- * Specifies whether to increase the height of text areas to accommodate multi-line comments.
8413
+ * Specifies whether to increase the height of [Long Text](https://surveyjs.io/form-library/examples/add-open-ended-question-to-a-form/) questions and other text areas to accommodate multi-line text content.
8352
8414
  *
8353
8415
  * Default value: `false`
8354
8416
  *
8355
- * You can override this property for individual Comment questions: [`autoGrow`](https://surveyjs.io/form-library/documentation/api-reference/comment-field-model#autoGrow).
8417
+ * You can override this property for individual Long Text questions: [`autoGrow`](https://surveyjs.io/form-library/documentation/api-reference/comment-field-model#autoGrow).
8418
+ * @see allowResizeComment
8356
8419
  */
8357
8420
  get autoGrowComment(): boolean;
8358
8421
  set autoGrowComment(val: boolean);
8422
+ /**
8423
+ * Specifies whether to display a resize handle for [Long Text](https://surveyjs.io/form-library/examples/add-open-ended-question-to-a-form/) questions and other text areas intended for multi-line text content.
8424
+ *
8425
+ * Default value: `true`
8426
+ *
8427
+ * You can override this property for individual Long Text questions: [`allowResize`](https://surveyjs.io/form-library/documentation/api-reference/comment-field-model#allowResize).
8428
+ * @see autoGrowComment
8429
+ */
8430
+ get allowResizeComment(): boolean;
8431
+ set allowResizeComment(val: boolean);
8359
8432
  /**
8360
8433
  * Gets or sets a value that specifies how the survey updates its questions' text values.
8361
8434
  *
@@ -8473,6 +8546,11 @@ declare module "survey" {
8473
8546
  */
8474
8547
  get logoFit(): string;
8475
8548
  set logoFit(val: string);
8549
+ private cssVariables;
8550
+ get themeVariables(): {
8551
+ [index: string]: string;
8552
+ };
8553
+ backgroundImagePosition: string;
8476
8554
  _isMobile: boolean;
8477
8555
  setIsMobile(newVal?: boolean): void;
8478
8556
  private get isMobile();
@@ -8861,6 +8939,16 @@ declare module "survey" {
8861
8939
  * The started page is showing right now. survey state equals to "starting"
8862
8940
  */
8863
8941
  get isShowStartingPage(): boolean;
8942
+ /**
8943
+ * Specifies which part of a choice item responds to a drag gesture in MatrixDynamic questions.
8944
+ *
8945
+ * Possible values:
8946
+ *
8947
+ * - `"entireItem"` (default) - Users can use the entire choice item as a drag handle.
8948
+ * - `"icon"` - Users can only use the choice item icon as a drag handle.
8949
+ */
8950
+ get matrixDragHandleArea(): string;
8951
+ set matrixDragHandleArea(val: string);
8864
8952
  /**
8865
8953
  * Survey is showing a page right now. It is in "running", "preview" or starting state.
8866
8954
  */
@@ -8891,7 +8979,9 @@ declare module "survey" {
8891
8979
  get questionsOrder(): string;
8892
8980
  set questionsOrder(val: string);
8893
8981
  /**
8894
- * Sets the input focus to the first question with the input field.
8982
+ * Focuses the first question on the current page.
8983
+ * @see focusQuestion
8984
+ * @see focusFirstQuestionAutomatic
8895
8985
  */
8896
8986
  focusFirstQuestion(): void;
8897
8987
  scrollToTopOnPageChange(doScroll?: boolean): void;
@@ -9365,6 +9455,9 @@ declare module "survey" {
9365
9455
  addPage(page: PageModel, index?: number): void;
9366
9456
  /**
9367
9457
  * Creates a new page and adds it to the survey.
9458
+ *
9459
+ * If you want to switch a survey to the newly added page, assign its index to the [`currentPageNo`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#currentPageNo) property or assign the entire page to the [`currentPage`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#currentPage) property.
9460
+ *
9368
9461
  * @param name A page name. If you do not specify this parameter, it will be generated automatically.
9369
9462
  * @param index An index at which to insert the page. If you do not specify this parameter, the page will be added to the end.
9370
9463
  * @returns The created and added page.
@@ -9782,9 +9875,11 @@ declare module "survey" {
9782
9875
  private needRenderIcons;
9783
9876
  private skippedPages;
9784
9877
  /**
9785
- * Focus question by its name. If needed change the current page on the page where question is located.
9786
- * Function returns false if there is no question with this name or question is invisible, otherwise it returns true.
9787
- * @param name question name
9878
+ * Focuses a question with a specified name. Switches the current page if needed.
9879
+ * @param name A question name.
9880
+ * @returns `false` if the survey does not contain a question with a specified name or this question is hidden; otherwise, `true`.
9881
+ * @see focusFirstQuestion
9882
+ * @see focusFirstQuestionAutomatic
9788
9883
  */
9789
9884
  focusQuestion(name: string): boolean;
9790
9885
  questionEditFinishCallback(question: Question, event: any): void;
@@ -9824,6 +9919,7 @@ declare module "survey" {
9824
9919
  addLayoutElement(layoutElement: ISurveyLayoutElement): ISurveyLayoutElement;
9825
9920
  removeLayoutElement(layoutElementId: string): ISurveyLayoutElement;
9826
9921
  getContainerContent(container: LayoutElementContainer): any[];
9922
+ applyTheme(theme: ITheme): void;
9827
9923
  /**
9828
9924
  * Use this method to dispose survey model properly.
9829
9925
  */
@@ -9896,7 +9992,11 @@ declare module "survey-element" {
9896
9992
  export enum DragTypeOverMeEnum {
9897
9993
  InsideEmptyPanel = 1,
9898
9994
  MultilineRight = 2,
9899
- MultilineLeft = 3
9995
+ MultilineLeft = 3,
9996
+ Top = 4,
9997
+ Right = 5,
9998
+ Bottom = 6,
9999
+ Left = 7
9900
10000
  }
9901
10001
  /**
9902
10002
  * A base class for all survey elements.
@@ -10752,6 +10852,7 @@ declare module "question" {
10752
10852
  protected initCommentFromSurvey(): void;
10753
10853
  protected runExpression(expression: string): any;
10754
10854
  private get autoGrowComment();
10855
+ private get allowResizeComment();
10755
10856
  private get questionValue();
10756
10857
  private set questionValue(value);
10757
10858
  private get questionComment();
@@ -10951,6 +11052,7 @@ declare module "question" {
10951
11052
  private isValueChangedInSurvey;
10952
11053
  protected allowNotifyValueChanged: boolean;
10953
11054
  protected setNewValue(newValue: any): void;
11055
+ protected isNewValueEqualsToValue(newValue: any): boolean;
10954
11056
  protected isTextValue(): boolean;
10955
11057
  get isSurveyInputTextUpdate(): boolean;
10956
11058
  private getDataLocNotification;
@@ -11016,7 +11118,7 @@ declare module "question" {
11016
11118
  protected getCompactRenderAs(): string;
11017
11119
  protected getDesktopRenderAs(): string;
11018
11120
  protected processResponsiveness(requiredWidth: number, availableWidth: number): any;
11019
- private destroyResizeObserver;
11121
+ destroyResizeObserver(): void;
11020
11122
  dispose(): void;
11021
11123
  }
11022
11124
  }
@@ -11658,6 +11760,7 @@ declare module "base-interfaces" {
11658
11760
  isClearValueOnHidden: boolean;
11659
11761
  isClearValueOnHiddenContainer: boolean;
11660
11762
  questionsOrder: string;
11763
+ matrixDragHandleArea: string;
11661
11764
  keepIncorrectValues: boolean;
11662
11765
  questionCreated(question: IQuestion): any;
11663
11766
  questionAdded(question: IQuestion, index: number, parentPanel: any, rootPanel: any): any;
@@ -11681,6 +11784,7 @@ declare module "base-interfaces" {
11681
11784
  isLoadingFromJson: boolean;
11682
11785
  isUpdateValueTextOnTyping: boolean;
11683
11786
  autoGrowComment: boolean;
11787
+ allowResizeComment: boolean;
11684
11788
  state: string;
11685
11789
  isLazyRendering: boolean;
11686
11790
  cancelPreviewByPage(panel: IPanel): any;
@@ -11896,511 +12000,43 @@ declare module "base-interfaces" {
11896
12000
  data?: any;
11897
12001
  }
11898
12002
  }
11899
- declare module "question_dropdown" {
11900
- import { QuestionSelectBase } from "question_baseselect";
11901
- import { LocalizableString } from "localizablestring";
11902
- import { ItemValue } from "itemvalue";
11903
- import { PopupModel } from "popup";
11904
- import { EventBase } from "base";
11905
- import { DropdownListModel } from "dropdownListModel";
12003
+ declare module "itemvalue" {
12004
+ import { ILocalizableOwner, LocalizableString } from "localizablestring";
12005
+ import { ConditionRunner } from "conditions";
12006
+ import { IShortcutText, ISurvey } from "base-interfaces";
12007
+ import { BaseAction } from "actions/action";
11906
12008
  /**
11907
- * A class that describes the Dropdown question type.
11908
- *
11909
- * [View Demo](https://surveyjs.io/form-library/examples/questiontype-dropdown/ (linkStyle))
12009
+ * Array of ItemValue is used in checkox, dropdown and radiogroup choices, matrix columns and rows.
12010
+ * It has two main properties: value and text. If text is empty, value is used for displaying.
12011
+ * The text property is localizable and support markdown.
11910
12012
  */
11911
- export class QuestionDropdownModel extends QuestionSelectBase {
11912
- dropdownListModelValue: DropdownListModel;
11913
- lastSelectedItemValue: ItemValue;
11914
- updateReadOnlyText(): void;
11915
- constructor(name: string);
11916
- locStrsChanged(): void;
11917
- get showOptionsCaption(): boolean;
11918
- set showOptionsCaption(val: boolean);
11919
- get optionsCaption(): string;
11920
- set optionsCaption(val: string);
12013
+ export class ItemValue extends BaseAction implements ILocalizableOwner, IShortcutText {
12014
+ protected typeName: string;
12015
+ [index: string]: any;
12016
+ getMarkdownHtml(text: string, name: string): string;
12017
+ getRenderer(name: string): string;
12018
+ getRendererContext(locStr: LocalizableString): any;
12019
+ getProcessedText(text: string): string;
12020
+ static get Separator(): string;
12021
+ static set Separator(val: string);
11921
12022
  /**
11922
- * A placeholder for the input field.
12023
+ * Resets the input array and fills it with values from the values array
11923
12024
  */
11924
- get placeholder(): string;
11925
- set placeholder(val: string);
11926
- get locPlaceholder(): LocalizableString;
11927
- get clearCaption(): string;
11928
- set clearCaption(value: string);
11929
- get locClearCaption(): LocalizableString;
11930
- getType(): string;
11931
- get ariaRole(): string;
11932
- get selectedItem(): ItemValue;
11933
- protected onGetSingleSelectedItem(selectedItemByValue: ItemValue): void;
11934
- supportGoNextPageAutomatic(): boolean;
11935
- private minMaxChoices;
11936
- protected getChoices(): Array<ItemValue>;
11937
- /**
11938
- * Use the `choicesMin`, `choicesMax`, and `choicesStep` properties to generate choice items automatically. For example, the configuration below generates three choice items: [10, 20, 30].
11939
- *
11940
- * ```js
11941
- * "choicesMin": 10,
11942
- * "choicesMax": 30
11943
- * "choicesStep": 10
11944
- * ```
11945
- * @see choicesMax
11946
- * @see choicesStep
11947
- */
11948
- get choicesMin(): number;
11949
- set choicesMin(val: number);
11950
- /**
11951
- * Use the `choicesMin`, `choicesMax`, and `choicesStep` properties to generate choice items automatically. For example, the configuration below generates three choice items: [10, 20, 30].
11952
- *
11953
- * ```js
11954
- * "choicesMin": 10,
11955
- * "choicesMax": 30
11956
- * "choicesStep": 10
11957
- * ```
11958
- * @see choicesMin
11959
- * @see choicesStep
11960
- */
11961
- get choicesMax(): number;
11962
- set choicesMax(val: number);
11963
- /**
11964
- * Use the `choicesMin`, `choicesMax`, and `choicesStep` properties to generate choice items automatically. For example, the configuration below generates three choice items: [10, 20, 30].
11965
- *
11966
- * ```js
11967
- * "choicesMin": 10,
11968
- * "choicesMax": 30
11969
- * "choicesStep": 10
11970
- * ```
11971
- *
11972
- * The default value of the `choicesStep` property is 1.
11973
- * @see choicesMin
11974
- * @see choicesMax
11975
- */
11976
- get choicesStep(): number;
11977
- set choicesStep(val: number);
11978
- get autocomplete(): string;
11979
- set autocomplete(val: string);
11980
- /**
11981
- * Specifies whether to display a button that clears the selected value.
11982
- */
11983
- allowClear: boolean;
11984
- /**
11985
- * Specifies whether users can enter a value into the input field to filter the drop-down list.
11986
- */
11987
- searchEnabled: boolean;
11988
- inputHasValue: boolean;
11989
- readOnlyText: string;
11990
- /**
11991
- * Enables lazy loading. If you set this property to `true`, you should implement the Survey's [`onChoicesLazyLoad`](https://surveyjs.io/form-library/documentation/surveymodel#onChoicesLazyLoad) event handler.
11992
- * @see choicesLazyLoadPageSize
11993
- * @see SurveyModel.onChoicesLazyLoad
11994
- */
11995
- choicesLazyLoadEnabled: boolean;
11996
- /**
11997
- * Specifies the number of choice items to load at a time when choices are loaded on demand.
11998
- * @see choicesLazyLoadEnabled
11999
- * @see SurveyModel.onChoicesLazyLoad
12000
- */
12001
- choicesLazyLoadPageSize: number;
12002
- getControlClass(): string;
12003
- suggestedItem: ItemValue;
12004
- get selectedItemLocText(): LocalizableString;
12005
- get inputFieldComponentName(): string;
12006
- get showSelectedItemLocText(): boolean;
12007
- get showInputFieldComponent(): boolean;
12008
- private get selectedItemText();
12009
- get dropdownListModel(): DropdownListModel;
12010
- set dropdownListModel(val: DropdownListModel);
12011
- get popupModel(): PopupModel;
12012
- get ariaExpanded(): string;
12013
- onOpened: EventBase<QuestionDropdownModel>;
12014
- onOpenedCallBack(): void;
12015
- protected onSelectedItemValuesChangedHandler(newValue: any): void;
12016
- protected hasUnknownValue(val: any, includeOther: boolean, isFilteredChoices: boolean, checkEmptyValue: boolean): boolean;
12017
- protected needConvertRenderedOtherToDataValue(): boolean;
12018
- protected onVisibleChoicesChanged(): void;
12019
- protected getFirstInputElementId(): string;
12020
- getInputId(): string;
12021
- clearValue(): void;
12022
- onClick(e: any): void;
12023
- onKeyUp(event: any): void;
12024
- dispose(): void;
12025
- }
12026
- }
12027
- declare module "dropdownListModel" {
12028
- import { IAction } from "actions/action";
12029
- import { Base } from "base";
12030
- import { ItemValue } from "itemvalue";
12031
- import { ListModel } from "list";
12032
- import { PopupModel } from "popup";
12033
- import { Question } from "question";
12034
- export class DropdownListModel extends Base {
12035
- protected question: Question;
12036
- protected onSelectionChanged?: (item: IAction, ...params: any[]) => void;
12037
- readonly minPageSize = 25;
12038
- readonly loadingItemHeight = 40;
12039
- private _markdownMode;
12040
- private _popupModel;
12041
- private get focusFirstInputSelector();
12042
- protected readonly selectedItemSelector = ".sv-list__item--selected";
12043
- protected readonly itemSelector = ".sv-list__item";
12044
- protected getFocusFirstInputSelector(): string;
12045
- private itemsSettings;
12046
- private isRunningLoadQuestionChoices;
12047
- protected listModel: ListModel<ItemValue>;
12048
- protected popupCssClasses: string;
12049
- private resetItemsSettings;
12050
- private setItems;
12051
- private updateQuestionChoices;
12052
- private updatePopupFocusFirstInputSelector;
12053
- protected createPopup(): void;
12054
- private setFilterStringToListModel;
12055
- protected popupRecalculatePosition(isResetHeight: boolean): void;
12056
- protected onHidePopup(): void;
12057
- protected getAvailableItems(): Array<ItemValue>;
12058
- protected createListModel(): ListModel<ItemValue>;
12059
- protected updateAfterListModelCreated(model: ListModel<ItemValue>): void;
12060
- updateCssClasses(popupCssClass: string, listCssClasses: any): void;
12061
- protected resetFilterString(): void;
12062
- clear(): void;
12063
- protected onSetFilterString(): void;
12064
- searchEnabled: boolean;
12065
- filterString: string;
12066
- inputString: string;
12067
- showSelectedItemLocText: boolean;
12068
- showInputFieldComponent: boolean;
12069
- ariaActivedescendant: string;
12070
- private applyInputString;
12071
- protected fixInputCase(): void;
12072
- protected applyHintString(item: ItemValue): void;
12073
- get inputStringRendered(): string;
12074
- set inputStringRendered(val: string);
12075
- get placeholderRendered(): any;
12076
- get listElementId(): string;
12077
- hasScroll: boolean;
12078
- hintString: string;
12079
- private get hintStringLC();
12080
- private get inputStringLC();
12081
- get showHintPrefix(): boolean;
12082
- get hintStringPrefix(): string;
12083
- get showHintString(): boolean;
12084
- get hintStringSuffix(): string;
12085
- get hintStringMiddle(): string;
12086
- constructor(question: Question, onSelectionChanged?: (item: IAction, ...params: any[]) => void);
12087
- get popupModel(): PopupModel;
12088
- get inputReadOnly(): boolean;
12089
- get filterStringEnabled(): boolean;
12090
- get inputMode(): "none" | "text";
12091
- setSearchEnabled(newValue: boolean): void;
12092
- updateItems(): void;
12093
- onClick(event: any): void;
12094
- protected focusItemOnClickAndPopup(): void;
12095
- onClear(event: any): void;
12096
- getSelectedAction(): ItemValue;
12097
- changeSelectionWithKeyboard(reverse: boolean): void;
12098
- protected beforeScrollToFocusedItem(focusedItem: ItemValue): void;
12099
- protected afterScrollToFocusedItem(): void;
12100
- keyHandler(event: any): void;
12101
- protected onEscape(): void;
12102
- onScroll(event: Event): void;
12103
- onBlur(event: any): void;
12104
- onFocus(event: any): void;
12105
- setInputStringFromSelectedItem(newValue?: any): void;
12106
- dispose(): void;
12107
- scrollToFocusedItem(): void;
12108
- }
12109
- }
12110
- declare module "question_rating" {
12111
- import { ItemValue } from "itemvalue";
12112
- import { Question } from "question";
12113
- import { LocalizableString } from "localizablestring";
12114
- import { Base } from "base";
12115
- import { DropdownListModel } from "dropdownListModel";
12116
- export class RenderedRatingItem extends Base {
12117
- itemValue: ItemValue;
12118
- private locString;
12119
- private onStringChangedCallback;
12120
- get value(): number;
12121
- highlight: "none" | "highlighted" | "unhighlighted";
12122
- get locText(): LocalizableString;
12123
- text: string;
12124
- style: any;
12125
- constructor(itemValue: ItemValue, locString?: LocalizableString);
12126
- }
12127
- /**
12128
- * A class that describes the Rating Scale question type.
12129
- *
12130
- * [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
12131
- */
12132
- export class QuestionRatingModel extends Question {
12133
- constructor(name: string);
12134
- private jsonObj;
12135
- private setIconsToRateValues;
12136
- startLoadingFromJson(jsonObj: any): void;
12137
- endLoadingFromJson(): void;
12138
- private _syncPropertiesChanging;
12139
- private registerSychProperties;
12140
- private useRateValues;
12141
- private updateRateMax;
12142
- private updateRateMin;
12143
- private updateRateCount;
12144
- initPropertyDependencies(): void;
12145
- autoGenerate: boolean;
12146
- /**
12147
- * A list of rate values.
12148
- *
12149
- * This property accepts an array of objects with the following structure:
12150
- *
12151
- * ```js
12152
- * {
12153
- * "value": any, // A value to be saved in survey results
12154
- * "text": String, // A display text. This property supports Markdown. When `text` is undefined, `value` is used.
12155
- * "customProperty": any // Any property that you find useful.
12156
- * }
12157
- * ```
12158
- *
12159
- * If you add custom properties, refer to the following help topic to learn how to serialize them into JSON: [Add Custom Properties to Property Grid](https://surveyjs.io/survey-creator/documentation/property-grid#add-custom-properties-to-the-property-grid).
12160
- *
12161
- * To enable Markdown support for the `text` property, implement Markdown-to-HTML conversion in the [onTextMarkdown](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
12162
- *
12163
- * If you need to specify only the `value` property, you can set the `rateValues` property to an array of numbers, for example, `[ 3, 6, 10 ]`. These values are both saved in survey results and used as display text.
12164
- *
12165
- * If you do not specify the `rateValues` property, rate values are generated automatically based upon the [`rateMin`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateMin), [`rateMax`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateMax), [`rateStep`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateStep), and [`rateCount`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateCount) property values.
12166
- *
12167
- * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
12168
- */
12169
- get rateValues(): Array<any>;
12170
- set rateValues(val: Array<any>);
12171
- /**
12172
- * Specifies the first rate value in the generated sequence of rate values. Applies if the [`rateValues`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateValues) array is empty.
12173
- *
12174
- * Default value: 1
12175
- *
12176
- * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
12177
- * @see rateMax
12178
- * @see rateStep
12179
- * @see rateCount
12180
- */
12181
- get rateMin(): number;
12182
- set rateMin(val: number);
12183
- /**
12184
- * Specifies the last rate value in the generated sequence of rate values. Applies if the [`rateValues`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateValues) array is empty.
12185
- *
12186
- * Default value: 5
12187
- *
12188
- * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
12189
- * @see rateMin
12190
- * @see rateStep
12191
- * @see rateCount
12192
- */
12193
- get rateMax(): number;
12194
- set rateMax(val: number);
12195
- /**
12196
- * Specifies a step with which to generate rate values. Applies if the [`rateValues`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateValues) array is empty.
12197
- *
12198
- * Default value: 1
12199
- *
12200
- * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
12201
- * @see rateMin
12202
- * @see rateMax
12203
- * @see rateCount
12204
- */
12205
- get rateStep(): number;
12206
- set rateStep(val: number);
12207
- /**
12208
- * Specifies the number of rate values you want to generate. Applies if the [`rateValues`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateValues) array is empty.
12209
- *
12210
- * Set the [`rateMin`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateMin) or [`rateMax`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateMax) property to specify the first or the last rate value. Use the [`rateStep`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateStep) property to specify a step with which to generate rate values.
12211
- *
12212
- * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
12213
- */
12214
- rateCount: number;
12215
- private static badColor;
12216
- private static normalColor;
12217
- private static goodColor;
12218
- private static badColorLight;
12219
- private static normalColorLight;
12220
- private static goodColorLight;
12221
- private initColors;
12222
- protected getDisplayValueCore(keysAsText: boolean, value: any): any;
12223
- get visibleRateValues(): ItemValue[];
12224
- itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
12225
- private createRenderedRateItems;
12226
- renderedRateItems: Array<RenderedRatingItem>;
12227
- private correctValue;
12228
- getType(): string;
12229
- protected getFirstInputElementId(): string;
12230
- getInputId(index: number): string;
12231
- supportGoNextPageAutomatic(): boolean;
12232
- supportOther(): boolean;
12233
- /**
12234
- * Specifies a description for the minimum (first) rate value.
12235
- * @see rateValues
12236
- * @see rateMin
12237
- * @see displayRateDescriptionsAsExtremeItems
12238
- */
12239
- get minRateDescription(): string;
12240
- set minRateDescription(val: string);
12241
- get locMinRateDescription(): LocalizableString;
12242
- /**
12243
- * Specifies a description for the maximum (last) rate value.
12244
- * @see rateValues
12245
- * @see rateMax
12246
- * @see displayRateDescriptionsAsExtremeItems
12247
- */
12248
- get maxRateDescription(): string;
12249
- set maxRateDescription(val: string);
12250
- get locMaxRateDescription(): LocalizableString;
12251
- hasMinRateDescription: boolean;
12252
- hasMaxRateDescription: boolean;
12253
- get hasMinLabel(): boolean;
12254
- get hasMaxLabel(): boolean;
12255
- /**
12256
- * Specifies whether to display `minRateDescription` and `maxRateDescription` values as captions for buttons that correspond to the extreme (first and last) rate values.
12257
- *
12258
- * Default value: `false`
12259
- *
12260
- * If this property is disabled, the `minRateDescription` and `maxRateDescription` values are displayed as plain non-clickable texts.
12261
- *
12262
- * If any of the `minRateDescription` and `maxRateDescription` properties is empty, the corresponding rate value's `value` or `text` is displayed as a button caption.
12263
- * @see minRateDescription
12264
- * @see maxRateDescription
12265
- * @see rateMin
12266
- * @see rateMax
12267
- * @see rateValues
12268
- */
12269
- displayRateDescriptionsAsExtremeItems: boolean;
12270
- /**
12271
- * Specifies whether to display rate values as buttons or items in a drop-down list.
12272
- *
12273
- * Possible values:
12274
- *
12275
- * - `"buttons"` - Displays rate values as buttons in a row.
12276
- * - `"dropdown"` - Displays rate values as items in a drop-down list.
12277
- * - `"auto"` (default) - Selects between the `"buttons"` and `"dropdown"` modes based on the available width. When the width is insufficient to display buttons, the question displays a dropdown.
12278
- *
12279
- * [View Demo](/form-library/examples/ui-adaptation-modes-for-rating-scale/ (linkStyle))
12280
- * @see rateType
12281
- */
12282
- displayMode: "dropdown" | "buttons" | "auto";
12283
- /**
12284
- * Specifies the visual representation of rate values.
12285
- *
12286
- * Possible values:
12287
- *
12288
- * - `"labels"` (default) - Displays rate values as buttons with labels.
12289
- * - `"stars"` - Displays rate values as stars.
12290
- * - `"smileys"` - Displays rate values as smiley faces.
12291
- *
12292
- * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
12293
- * @see scaleColorMode
12294
- * @see rateColorMode
12295
- * @see displayMode
12296
- */
12297
- rateType: "labels" | "stars" | "smileys";
12298
- get rateDisplayMode(): "labels" | "stars" | "smileys";
12299
- set rateDisplayMode(val: "labels" | "stars" | "smileys");
12300
- /**
12301
- * Specifies how to colorize the smiley face rating scale. Applies only if [`rateType`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateType) is `"smileys"`.
12302
- *
12303
- * Possible values:
12304
- *
12305
- * - `"monochrome"` (default) - Displays emojis in monochrome.
12306
- * - `"colored"` - Displays emojis in color.
12307
- *
12308
- * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
12309
- * @see rateColorMode
12310
- */
12311
- scaleColorMode: "monochrome" | "colored";
12312
- /**
12313
- * Specifies how to colorize the selected emoji. Applies only if [`rateType`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateType) is `"smileys"`.
12314
- *
12315
- * Possible values:
12316
- *
12317
- * - `"default"` - Displays the selected emoji in default survey color.
12318
- * - `"scale"` (default) - Inherits the color from the scale.
12319
- * @see scaleColorMode
12320
- */
12321
- rateColorMode: "default" | "scale";
12322
- get isStar(): boolean;
12323
- get isSmiley(): boolean;
12324
- get itemComponentName(): "sv-rating-item-star" | "sv-rating-item-smiley" | "sv-rating-item";
12325
- protected valueToData(val: any): any;
12326
- setValueFromClick(value: any): void;
12327
- onItemMouseIn(item: RenderedRatingItem): void;
12328
- onItemMouseOut(item: RenderedRatingItem): void;
12329
- get itemSmallMode(): boolean;
12330
- get ratingRootCss(): string;
12331
- get itemStarIcon(): string;
12332
- get itemStarIconAlt(): string;
12333
- getItemSmiley(item: ItemValue): string;
12334
- getItemSmileyIconName(item: ItemValue): string;
12335
- getItemClassByText(item: ItemValue, text: string): string;
12336
- private getRenderedItemColor;
12337
- getItemStyle(item: ItemValue, highlight?: "none" | "highlighted" | "unhighlighted"): {
12338
- borderColor: string;
12339
- fill: string;
12340
- backgroundColor: string;
12341
- };
12342
- getItemClass(item: ItemValue, highlight?: "none" | "highlighted" | "unhighlighted"): string;
12343
- getControlClass(): string;
12344
- get placeholder(): string;
12345
- set placeholder(val: string);
12346
- get locPlaceholder(): LocalizableString;
12347
- get allowClear(): boolean;
12348
- get searchEnabled(): boolean;
12349
- get renderedValue(): any;
12350
- set renderedValue(val: any);
12351
- isItemSelected(item: ItemValue): boolean;
12352
- get visibleChoices(): ItemValue[];
12353
- get readOnlyText(): any;
12354
- needResponsiveWidth(): boolean;
12355
- protected supportResponsiveness(): boolean;
12356
- protected getCompactRenderAs(): string;
12357
- protected getDesktopRenderAs(): string;
12358
- get ariaExpanded(): string;
12359
- private dropdownListModelValue;
12360
- set dropdownListModel(val: DropdownListModel);
12361
- get dropdownListModel(): DropdownListModel;
12362
- protected updateCssClasses(res: any, css: any): void;
12363
- protected calcCssClasses(css: any): any;
12364
- dispose(): void;
12365
- }
12366
- }
12367
- declare module "itemvalue" {
12368
- import { ILocalizableOwner, LocalizableString } from "localizablestring";
12369
- import { ConditionRunner } from "conditions";
12370
- import { IShortcutText, ISurvey } from "base-interfaces";
12371
- import { BaseAction } from "actions/action";
12372
- /**
12373
- * Array of ItemValue is used in checkox, dropdown and radiogroup choices, matrix columns and rows.
12374
- * It has two main properties: value and text. If text is empty, value is used for displaying.
12375
- * The text property is localizable and support markdown.
12376
- */
12377
- export class ItemValue extends BaseAction implements ILocalizableOwner, IShortcutText {
12378
- protected typeName: string;
12379
- [index: string]: any;
12380
- getMarkdownHtml(text: string, name: string): string;
12381
- getRenderer(name: string): string;
12382
- getRendererContext(locStr: LocalizableString): any;
12383
- getProcessedText(text: string): string;
12384
- static get Separator(): string;
12385
- static set Separator(val: string);
12386
- /**
12387
- * Resets the input array and fills it with values from the values array
12388
- */
12389
- static setData(items: Array<ItemValue>, values: Array<any>, type?: string): void;
12390
- static getData(items: Array<ItemValue>): any;
12391
- static getItemByValue(items: Array<ItemValue>, val: any): ItemValue;
12392
- static getTextOrHtmlByValue(items: Array<ItemValue>, val: any): string;
12393
- static locStrsChanged(items: Array<ItemValue>): void;
12394
- static runConditionsForItems(items: Array<ItemValue>, filteredItems: Array<ItemValue>, runner: ConditionRunner, values: any, properties: any, useItemExpression?: boolean, onItemCallBack?: (item: ItemValue, val: boolean) => boolean): boolean;
12395
- static runEnabledConditionsForItems(items: Array<ItemValue>, runner: ConditionRunner, values: any, properties: any, onItemCallBack?: (item: ItemValue, val: boolean) => boolean): boolean;
12396
- private static runConditionsForItemsCore;
12397
- ownerPropertyName: string;
12398
- private _visible;
12399
- private locTextValue;
12400
- private visibleConditionRunner;
12401
- private enableConditionRunner;
12402
- constructor(value: any, text?: string, typeName?: string);
12403
- onCreating(): any;
12025
+ static setData(items: Array<ItemValue>, values: Array<any>, type?: string): void;
12026
+ static getData(items: Array<ItemValue>): any;
12027
+ static getItemByValue(items: Array<ItemValue>, val: any): ItemValue;
12028
+ static getTextOrHtmlByValue(items: Array<ItemValue>, val: any): string;
12029
+ static locStrsChanged(items: Array<ItemValue>): void;
12030
+ static runConditionsForItems(items: Array<ItemValue>, filteredItems: Array<ItemValue>, runner: ConditionRunner, values: any, properties: any, useItemExpression?: boolean, onItemCallBack?: (item: ItemValue, val: boolean) => boolean): boolean;
12031
+ static runEnabledConditionsForItems(items: Array<ItemValue>, runner: ConditionRunner, values: any, properties: any, onItemCallBack?: (item: ItemValue, val: boolean) => boolean): boolean;
12032
+ private static runConditionsForItemsCore;
12033
+ ownerPropertyName: string;
12034
+ private _visible;
12035
+ private locTextValue;
12036
+ private visibleConditionRunner;
12037
+ private enableConditionRunner;
12038
+ constructor(value: any, text?: string, typeName?: string);
12039
+ onCreating(): any;
12404
12040
  getType(): string;
12405
12041
  getSurvey(live?: boolean): ISurvey;
12406
12042
  getLocale(): string;
@@ -12656,6 +12292,7 @@ declare module "base" {
12656
12292
  */
12657
12293
  getPropertyValue(name: string, defaultValue?: any): any;
12658
12294
  private getDefaultValueFromProperty;
12295
+ protected getPropertyValueWithoutDefault(name: string): any;
12659
12296
  protected getPropertyValueCore(propertiesHash: any, name: string): any;
12660
12297
  geValueFromHash(): any;
12661
12298
  protected setPropertyValueCore(propertiesHash: any, name: string, val: any): void;
@@ -12933,32 +12570,246 @@ declare module "question_matrixdropdown" {
12933
12570
  constructor(name: string);
12934
12571
  getType(): string;
12935
12572
  /**
12936
- * A title for the total row. Applies if at least one column displays total values.
12937
- * @see rowTitleWidth
12938
- * @see columns
12573
+ * A title for the total row. Applies if at least one column displays total values.
12574
+ * @see rowTitleWidth
12575
+ * @see columns
12576
+ */
12577
+ get totalText(): string;
12578
+ set totalText(val: string);
12579
+ get locTotalText(): LocalizableString;
12580
+ getFooterText(): LocalizableString;
12581
+ getRowTitleWidth(): string;
12582
+ /**
12583
+ * Specifies whether to hide the question when the matrix has no visible rows.
12584
+ * @see rowsVisibleIf
12585
+ */
12586
+ get hideIfRowsEmpty(): boolean;
12587
+ set hideIfRowsEmpty(val: boolean);
12588
+ protected getDisplayValueCore(keysAsText: boolean, value: any): any;
12589
+ protected getConditionObjectRowName(index: number): string;
12590
+ protected getConditionObjectRowText(index: number): string;
12591
+ protected getConditionObjectsRowIndeces(): Array<number>;
12592
+ protected setNewValue(newValue: any): void;
12593
+ clearIncorrectValues(): void;
12594
+ protected clearValueIfInvisibleCore(): void;
12595
+ protected generateRows(): Array<MatrixDropdownRowModel>;
12596
+ protected createMatrixRow(item: ItemValue, value: any): MatrixDropdownRowModel;
12597
+ protected getSearchableItemValueKeys(keys: Array<string>): void;
12598
+ protected updateProgressInfoByValues(res: IProgressInfo): void;
12599
+ }
12600
+ }
12601
+ declare module "dropdownListModel" {
12602
+ import { IAction } from "actions/action";
12603
+ import { Base } from "base";
12604
+ import { ItemValue } from "itemvalue";
12605
+ import { ListModel } from "list";
12606
+ import { PopupModel } from "popup";
12607
+ import { Question } from "question";
12608
+ export class DropdownListModel extends Base {
12609
+ protected question: Question;
12610
+ protected onSelectionChanged?: (item: IAction, ...params: any[]) => void;
12611
+ readonly minPageSize = 25;
12612
+ readonly loadingItemHeight = 40;
12613
+ private _markdownMode;
12614
+ private _popupModel;
12615
+ private get focusFirstInputSelector();
12616
+ protected readonly selectedItemSelector = ".sv-list__item--selected";
12617
+ protected readonly itemSelector = ".sv-list__item";
12618
+ protected getFocusFirstInputSelector(): string;
12619
+ private itemsSettings;
12620
+ private isRunningLoadQuestionChoices;
12621
+ protected listModel: ListModel<ItemValue>;
12622
+ protected popupCssClasses: string;
12623
+ protected listModelFilterStringChanged: (newValue: string) => void;
12624
+ private resetItemsSettings;
12625
+ private setItems;
12626
+ private updateQuestionChoices;
12627
+ private updatePopupFocusFirstInputSelector;
12628
+ protected createPopup(): void;
12629
+ private setFilterStringToListModel;
12630
+ protected popupRecalculatePosition(isResetHeight: boolean): void;
12631
+ protected onHidePopup(): void;
12632
+ protected getAvailableItems(): Array<ItemValue>;
12633
+ protected createListModel(): ListModel<ItemValue>;
12634
+ protected updateAfterListModelCreated(model: ListModel<ItemValue>): void;
12635
+ updateCssClasses(popupCssClass: string, listCssClasses: any): void;
12636
+ protected resetFilterString(): void;
12637
+ clear(): void;
12638
+ protected onSetFilterString(): void;
12639
+ get isAllDataLoaded(): boolean;
12640
+ searchEnabled: boolean;
12641
+ filterString: string;
12642
+ inputString: string;
12643
+ showSelectedItemLocText: boolean;
12644
+ showInputFieldComponent: boolean;
12645
+ ariaActivedescendant: string;
12646
+ private applyInputString;
12647
+ protected fixInputCase(): void;
12648
+ protected applyHintString(item: ItemValue): void;
12649
+ get inputStringRendered(): string;
12650
+ set inputStringRendered(val: string);
12651
+ get placeholderRendered(): any;
12652
+ get listElementId(): string;
12653
+ hasScroll: boolean;
12654
+ hintString: string;
12655
+ private get hintStringLC();
12656
+ private get inputStringLC();
12657
+ get showHintPrefix(): boolean;
12658
+ get hintStringPrefix(): string;
12659
+ get showHintString(): boolean;
12660
+ get hintStringSuffix(): string;
12661
+ get hintStringMiddle(): string;
12662
+ constructor(question: Question, onSelectionChanged?: (item: IAction, ...params: any[]) => void);
12663
+ get popupModel(): PopupModel;
12664
+ get inputReadOnly(): boolean;
12665
+ get filterStringEnabled(): boolean;
12666
+ get inputMode(): "none" | "text";
12667
+ setSearchEnabled(newValue: boolean): void;
12668
+ updateItems(): void;
12669
+ onClick(event: any): void;
12670
+ protected focusItemOnClickAndPopup(): void;
12671
+ onClear(event: any): void;
12672
+ getSelectedAction(): ItemValue;
12673
+ changeSelectionWithKeyboard(reverse: boolean): void;
12674
+ protected beforeScrollToFocusedItem(focusedItem: ItemValue): void;
12675
+ protected afterScrollToFocusedItem(): void;
12676
+ keyHandler(event: any): void;
12677
+ protected onEscape(): void;
12678
+ onScroll(event: Event): void;
12679
+ onBlur(event: any): void;
12680
+ onFocus(event: any): void;
12681
+ setInputStringFromSelectedItem(newValue: any): void;
12682
+ dispose(): void;
12683
+ scrollToFocusedItem(): void;
12684
+ }
12685
+ }
12686
+ declare module "question_dropdown" {
12687
+ import { QuestionSelectBase } from "question_baseselect";
12688
+ import { LocalizableString } from "localizablestring";
12689
+ import { ItemValue } from "itemvalue";
12690
+ import { PopupModel } from "popup";
12691
+ import { EventBase } from "base";
12692
+ import { DropdownListModel } from "dropdownListModel";
12693
+ /**
12694
+ * A class that describes the Dropdown question type.
12695
+ *
12696
+ * [View Demo](https://surveyjs.io/form-library/examples/questiontype-dropdown/ (linkStyle))
12697
+ */
12698
+ export class QuestionDropdownModel extends QuestionSelectBase {
12699
+ dropdownListModelValue: DropdownListModel;
12700
+ lastSelectedItemValue: ItemValue;
12701
+ updateReadOnlyText(): void;
12702
+ constructor(name: string);
12703
+ locStrsChanged(): void;
12704
+ get showOptionsCaption(): boolean;
12705
+ set showOptionsCaption(val: boolean);
12706
+ get optionsCaption(): string;
12707
+ set optionsCaption(val: string);
12708
+ /**
12709
+ * A placeholder for the input field.
12710
+ */
12711
+ get placeholder(): string;
12712
+ set placeholder(val: string);
12713
+ get locPlaceholder(): LocalizableString;
12714
+ get clearCaption(): string;
12715
+ set clearCaption(value: string);
12716
+ get locClearCaption(): LocalizableString;
12717
+ getType(): string;
12718
+ get ariaRole(): string;
12719
+ get selectedItem(): ItemValue;
12720
+ protected onGetSingleSelectedItem(selectedItemByValue: ItemValue): void;
12721
+ supportGoNextPageAutomatic(): boolean;
12722
+ private minMaxChoices;
12723
+ protected getChoices(): Array<ItemValue>;
12724
+ /**
12725
+ * Use the `choicesMin`, `choicesMax`, and `choicesStep` properties to generate choice items automatically. For example, the configuration below generates three choice items: [10, 20, 30].
12726
+ *
12727
+ * ```js
12728
+ * "choicesMin": 10,
12729
+ * "choicesMax": 30
12730
+ * "choicesStep": 10
12731
+ * ```
12732
+ * @see choicesMax
12733
+ * @see choicesStep
12734
+ */
12735
+ get choicesMin(): number;
12736
+ set choicesMin(val: number);
12737
+ /**
12738
+ * Use the `choicesMin`, `choicesMax`, and `choicesStep` properties to generate choice items automatically. For example, the configuration below generates three choice items: [10, 20, 30].
12739
+ *
12740
+ * ```js
12741
+ * "choicesMin": 10,
12742
+ * "choicesMax": 30
12743
+ * "choicesStep": 10
12744
+ * ```
12745
+ * @see choicesMin
12746
+ * @see choicesStep
12747
+ */
12748
+ get choicesMax(): number;
12749
+ set choicesMax(val: number);
12750
+ /**
12751
+ * Use the `choicesMin`, `choicesMax`, and `choicesStep` properties to generate choice items automatically. For example, the configuration below generates three choice items: [10, 20, 30].
12752
+ *
12753
+ * ```js
12754
+ * "choicesMin": 10,
12755
+ * "choicesMax": 30
12756
+ * "choicesStep": 10
12757
+ * ```
12758
+ *
12759
+ * The default value of the `choicesStep` property is 1.
12760
+ * @see choicesMin
12761
+ * @see choicesMax
12762
+ */
12763
+ get choicesStep(): number;
12764
+ set choicesStep(val: number);
12765
+ get autocomplete(): string;
12766
+ set autocomplete(val: string);
12767
+ /**
12768
+ * Specifies whether to display a button that clears the selected value.
12939
12769
  */
12940
- get totalText(): string;
12941
- set totalText(val: string);
12942
- get locTotalText(): LocalizableString;
12943
- getFooterText(): LocalizableString;
12944
- getRowTitleWidth(): string;
12770
+ allowClear: boolean;
12945
12771
  /**
12946
- * Specifies whether to hide the question when the matrix has no visible rows.
12947
- * @see rowsVisibleIf
12772
+ * Specifies whether users can enter a value into the input field to filter the drop-down list.
12948
12773
  */
12949
- get hideIfRowsEmpty(): boolean;
12950
- set hideIfRowsEmpty(val: boolean);
12951
- protected getDisplayValueCore(keysAsText: boolean, value: any): any;
12952
- protected getConditionObjectRowName(index: number): string;
12953
- protected getConditionObjectRowText(index: number): string;
12954
- protected getConditionObjectsRowIndeces(): Array<number>;
12955
- protected setNewValue(newValue: any): void;
12956
- clearIncorrectValues(): void;
12957
- protected clearValueIfInvisibleCore(): void;
12958
- protected generateRows(): Array<MatrixDropdownRowModel>;
12959
- protected createMatrixRow(item: ItemValue, value: any): MatrixDropdownRowModel;
12960
- protected getSearchableItemValueKeys(keys: Array<string>): void;
12961
- protected updateProgressInfoByValues(res: IProgressInfo): void;
12774
+ searchEnabled: boolean;
12775
+ inputHasValue: boolean;
12776
+ readOnlyText: string;
12777
+ /**
12778
+ * Enables lazy loading. If you set this property to `true`, you should implement the Survey's [`onChoicesLazyLoad`](https://surveyjs.io/form-library/documentation/surveymodel#onChoicesLazyLoad) event handler.
12779
+ * @see choicesLazyLoadPageSize
12780
+ * @see SurveyModel.onChoicesLazyLoad
12781
+ */
12782
+ choicesLazyLoadEnabled: boolean;
12783
+ /**
12784
+ * Specifies the number of choice items to load at a time when choices are loaded on demand.
12785
+ * @see choicesLazyLoadEnabled
12786
+ * @see SurveyModel.onChoicesLazyLoad
12787
+ */
12788
+ choicesLazyLoadPageSize: number;
12789
+ getControlClass(): string;
12790
+ suggestedItem: ItemValue;
12791
+ get selectedItemLocText(): LocalizableString;
12792
+ get inputFieldComponentName(): string;
12793
+ get showSelectedItemLocText(): boolean;
12794
+ get showInputFieldComponent(): boolean;
12795
+ private get selectedItemText();
12796
+ get dropdownListModel(): DropdownListModel;
12797
+ set dropdownListModel(val: DropdownListModel);
12798
+ get popupModel(): PopupModel;
12799
+ get ariaExpanded(): string;
12800
+ onOpened: EventBase<QuestionDropdownModel>;
12801
+ onOpenedCallBack(): void;
12802
+ protected onSelectedItemValuesChangedHandler(newValue: any): void;
12803
+ protected hasUnknownValue(val: any, includeOther: boolean, isFilteredChoices: boolean, checkEmptyValue: boolean): boolean;
12804
+ protected needConvertRenderedOtherToDataValue(): boolean;
12805
+ protected getItemIfChoicesNotContainThisValue(value: any, text?: string): any;
12806
+ protected onVisibleChoicesChanged(): void;
12807
+ protected getFirstInputElementId(): string;
12808
+ getInputId(): string;
12809
+ clearValue(): void;
12810
+ onClick(e: any): void;
12811
+ onKeyUp(event: any): void;
12812
+ dispose(): void;
12962
12813
  }
12963
12814
  }
12964
12815
  declare module "question_matrix" {
@@ -13267,6 +13118,7 @@ declare module "question_checkbox" {
13267
13118
  */
13268
13119
  get selectedChoices(): Array<ItemValue>;
13269
13120
  get selectedItems(): Array<ItemValue>;
13121
+ protected getMultipleSelectedItems(): Array<ItemValue>;
13270
13122
  protected validateItemValues(itemValues: Array<ItemValue>): Array<ItemValue>;
13271
13123
  protected onEnableItemCallBack(item: ItemValue): boolean;
13272
13124
  protected onAfterRunItemsEnableCondition(): void;
@@ -13427,6 +13279,7 @@ declare module "question_tagbox" {
13427
13279
  protected hasUnknownValue(val: any, includeOther: boolean, isFilteredChoices: boolean, checkEmptyValue: boolean): boolean;
13428
13280
  protected needConvertRenderedOtherToDataValue(): boolean;
13429
13281
  protected onVisibleChoicesChanged(): void;
13282
+ protected getItemIfChoicesNotContainThisValue(value: any, text?: string): any;
13430
13283
  protected validateItemValues(itemValues: Array<ItemValue>): Array<ItemValue>;
13431
13284
  updateItemDisplayNameMap(): void;
13432
13285
  protected getFirstInputElementId(): string;
@@ -13441,7 +13294,8 @@ declare module "question_imagepicker" {
13441
13294
  import { ILocalizableOwner, LocalizableString } from "localizablestring";
13442
13295
  export class ImageItemValue extends ItemValue implements ILocalizableOwner {
13443
13296
  protected typeName: string;
13444
- contentNotLoaded: boolean;
13297
+ private videoNotLoaded;
13298
+ private imageNotLoaded;
13445
13299
  constructor(value: any, text?: string, typeName?: string);
13446
13300
  getType(): string;
13447
13301
  /**
@@ -13457,6 +13311,8 @@ declare module "question_imagepicker" {
13457
13311
  getRendererContext(locStr: LocalizableString): any;
13458
13312
  getProcessedText(text: string): string;
13459
13313
  onErrorHandler(): void;
13314
+ set contentNotLoaded(val: boolean);
13315
+ get contentNotLoaded(): boolean;
13460
13316
  }
13461
13317
  /**
13462
13318
  * A class that describes the Image Picker question type.
@@ -13577,12 +13433,12 @@ declare module "dragdrop/choices" {
13577
13433
  protected getDropTargetByDataAttributeValue(dataAttributeValue: string): ItemValue;
13578
13434
  private getVisibleChoices;
13579
13435
  protected doDragOver: () => any;
13580
- protected isDropTargetValid(dropTarget: ItemValue): boolean;
13436
+ protected isDropTargetValid(dropTarget: ItemValue, dropTargetNode?: HTMLElement): boolean;
13581
13437
  protected doBanDropHere: () => any;
13582
13438
  protected calculateIsBottom(clientY: number): boolean;
13583
13439
  protected afterDragOver(dropTargetNode: HTMLElement): void;
13584
13440
  protected doDrop(): any;
13585
- protected doClear(): void;
13441
+ clear(): void;
13586
13442
  private updateVisibleChoices;
13587
13443
  }
13588
13444
  }
@@ -13605,7 +13461,7 @@ declare module "dragdrop/ranking-choices" {
13605
13461
  protected ghostPositionChanged(): void;
13606
13462
  protected doBanDropHere: () => any;
13607
13463
  protected doDrop: () => any;
13608
- protected doClear: () => void;
13464
+ clear(): void;
13609
13465
  }
13610
13466
  }
13611
13467
  declare module "question_ranking" {
@@ -13683,103 +13539,363 @@ declare module "question_comment" {
13683
13539
  /**
13684
13540
  * Specifies the visible height of the comment area, measured in lines.
13685
13541
  *
13686
- * The value of this property is passed on to the `rows` attribute of the underlying `<textarea>` element.
13687
- * @see cols
13542
+ * The value of this property is passed on to the `rows` attribute of the underlying `<textarea>` element.
13543
+ */
13544
+ get rows(): number;
13545
+ set rows(val: number);
13546
+ get cols(): number;
13547
+ set cols(val: number);
13548
+ /**
13549
+ * Specifies whether the question allows line breaks.
13550
+ *
13551
+ * When this property is enabled, a user can press Enter to insert line breaks. They are saved as `\n` in survey results. The Comment question also recognizes and interprets the `\n` sequence as a line break when you set the question `value` in code.
13552
+ */
13553
+ get acceptCarriageReturn(): boolean;
13554
+ set acceptCarriageReturn(val: boolean);
13555
+ /**
13556
+ * Specifies whether the comment area automatically increases its height to accomodate multi-line content.
13557
+ *
13558
+ * Default value: `false` (inherited from `SurveyModel`'s [`autoGrowComment`](https://surveyjs.io/form-library/documentation/surveymodel#autoGrowComment) property)
13559
+ * @see allowResize
13560
+ */
13561
+ get autoGrow(): boolean;
13562
+ set autoGrow(val: boolean);
13563
+ /**
13564
+ * Specifies whether to display a resize handle for the comment area.
13565
+ *
13566
+ * Default value: `true` (inherited from `SurveyModel`'s [`allowResizeComment`](https://surveyjs.io/form-library/documentation/surveymodel#allowResizeComment) property)
13567
+ * @see autoGrow
13568
+ */
13569
+ get allowResize(): boolean;
13570
+ set allowResize(val: boolean);
13571
+ get resizeStyle(): "none" | "both";
13572
+ getType(): string;
13573
+ afterRenderQuestionElement(el: HTMLElement): void;
13574
+ updateElement(): void;
13575
+ beforeDestroyQuestionElement(el: HTMLElement): void;
13576
+ onInput(event: any): void;
13577
+ onKeyDown(event: any): void;
13578
+ onValueChanged(): void;
13579
+ protected setNewValue(newValue: string): any;
13580
+ get className(): string;
13581
+ }
13582
+ }
13583
+ declare module "question_html" {
13584
+ import { QuestionNonValue } from "questionnonvalue";
13585
+ import { LocalizableString } from "localizablestring";
13586
+ /**
13587
+ * A class that describes the Html question type. Unlike other question types, Html cannot have a title or value.
13588
+ *
13589
+ * [View Demo](https://surveyjs.io/form-library/examples/questiontype-html/ (linkStyle))
13590
+ */
13591
+ export class QuestionHtmlModel extends QuestionNonValue {
13592
+ ignoreHtmlProgressing: boolean;
13593
+ constructor(name: string);
13594
+ getType(): string;
13595
+ get isCompositeQuestion(): boolean;
13596
+ getProcessedText(text: string): string;
13597
+ /**
13598
+ * HTML markup to display.
13599
+ *
13600
+ * > IMPORTANT: If you get the markup from a third party, ensure that it does not contain malicious code.
13601
+ */
13602
+ get html(): string;
13603
+ set html(val: string);
13604
+ get locHtml(): LocalizableString;
13605
+ get processedHtml(): string;
13606
+ private processHtml;
13607
+ }
13608
+ }
13609
+ declare module "question_radiogroup" {
13610
+ import { QuestionCheckboxBase } from "question_baseselect";
13611
+ import { ItemValue } from "itemvalue";
13612
+ import { Action } from "actions/action";
13613
+ /**
13614
+ * A class that describes the Radiogroup question type.
13615
+ *
13616
+ * [View Demo](https://surveyjs.io/form-library/examples/questiontype-radiogroup/ (linkStyle))
13617
+ */
13618
+ export class QuestionRadiogroupModel extends QuestionCheckboxBase {
13619
+ constructor(name: string);
13620
+ protected getDefaultItemComponent(): string;
13621
+ getType(): string;
13622
+ get ariaRole(): string;
13623
+ get titleAriaLabel(): string | null;
13624
+ protected getFirstInputElementId(): string;
13625
+ /**
13626
+ * Returns the selected choice item. If no item is selected, returns `null`.
13627
+ */
13628
+ get selectedItem(): ItemValue;
13629
+ /**
13630
+ * Specifies whether to display a button that clears the question value.
13631
+ *
13632
+ * Default value: `false`
13633
+ */
13634
+ get showClearButton(): boolean;
13635
+ set showClearButton(val: boolean);
13636
+ get canShowClearButton(): boolean;
13637
+ get clearButtonCaption(): string;
13638
+ supportGoNextPageAutomatic(): boolean;
13639
+ get showClearButtonInContent(): boolean;
13640
+ clickItemHandler(item: ItemValue): void;
13641
+ protected getDefaultTitleActions(): Array<Action>;
13642
+ }
13643
+ }
13644
+ declare module "question_rating" {
13645
+ import { ItemValue } from "itemvalue";
13646
+ import { Question } from "question";
13647
+ import { LocalizableString } from "localizablestring";
13648
+ import { Base } from "base";
13649
+ import { DropdownListModel } from "dropdownListModel";
13650
+ export class RenderedRatingItem extends Base {
13651
+ itemValue: ItemValue;
13652
+ private locString;
13653
+ private onStringChangedCallback;
13654
+ get value(): number;
13655
+ highlight: "none" | "highlighted" | "unhighlighted";
13656
+ get locText(): LocalizableString;
13657
+ text: string;
13658
+ style: any;
13659
+ constructor(itemValue: ItemValue, locString?: LocalizableString);
13660
+ }
13661
+ /**
13662
+ * A class that describes the Rating Scale question type.
13663
+ *
13664
+ * [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
13665
+ */
13666
+ export class QuestionRatingModel extends Question {
13667
+ constructor(name: string);
13668
+ private jsonObj;
13669
+ private setIconsToRateValues;
13670
+ startLoadingFromJson(jsonObj: any): void;
13671
+ endLoadingFromJson(): void;
13672
+ private _syncPropertiesChanging;
13673
+ private registerSychProperties;
13674
+ private useRateValues;
13675
+ private updateRateMax;
13676
+ private updateRateMin;
13677
+ private updateRateCount;
13678
+ initPropertyDependencies(): void;
13679
+ autoGenerate: boolean;
13680
+ /**
13681
+ * A list of rate values.
13682
+ *
13683
+ * This property accepts an array of objects with the following structure:
13684
+ *
13685
+ * ```js
13686
+ * {
13687
+ * "value": any, // A value to be saved in survey results
13688
+ * "text": String, // A display text. This property supports Markdown. When `text` is undefined, `value` is used.
13689
+ * "customProperty": any // Any property that you find useful.
13690
+ * }
13691
+ * ```
13692
+ *
13693
+ * If you add custom properties, refer to the following help topic to learn how to serialize them into JSON: [Add Custom Properties to Property Grid](https://surveyjs.io/survey-creator/documentation/property-grid#add-custom-properties-to-the-property-grid).
13694
+ *
13695
+ * To enable Markdown support for the `text` property, implement Markdown-to-HTML conversion in the [onTextMarkdown](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
13696
+ *
13697
+ * If you need to specify only the `value` property, you can set the `rateValues` property to an array of numbers, for example, `[ 3, 6, 10 ]`. These values are both saved in survey results and used as display text.
13698
+ *
13699
+ * If you do not specify the `rateValues` property, rate values are generated automatically based upon the [`rateMin`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateMin), [`rateMax`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateMax), [`rateStep`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateStep), and [`rateCount`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateCount) property values.
13700
+ *
13701
+ * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
13702
+ */
13703
+ get rateValues(): Array<any>;
13704
+ set rateValues(val: Array<any>);
13705
+ /**
13706
+ * Specifies the first rate value in the generated sequence of rate values. Applies if the [`rateValues`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateValues) array is empty.
13707
+ *
13708
+ * Default value: 1
13709
+ *
13710
+ * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
13711
+ * @see rateMax
13712
+ * @see rateStep
13713
+ * @see rateCount
13714
+ */
13715
+ get rateMin(): number;
13716
+ set rateMin(val: number);
13717
+ /**
13718
+ * Specifies the last rate value in the generated sequence of rate values. Applies if the [`rateValues`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateValues) array is empty.
13719
+ *
13720
+ * Default value: 5
13721
+ *
13722
+ * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
13723
+ * @see rateMin
13724
+ * @see rateStep
13725
+ * @see rateCount
13726
+ */
13727
+ get rateMax(): number;
13728
+ set rateMax(val: number);
13729
+ /**
13730
+ * Specifies a step with which to generate rate values. Applies if the [`rateValues`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateValues) array is empty.
13731
+ *
13732
+ * Default value: 1
13733
+ *
13734
+ * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
13735
+ * @see rateMin
13736
+ * @see rateMax
13737
+ * @see rateCount
13688
13738
  */
13689
- get rows(): number;
13690
- set rows(val: number);
13739
+ get rateStep(): number;
13740
+ set rateStep(val: number);
13691
13741
  /**
13692
- * Specifies the visible width of the comment area, measured in average character width.
13742
+ * Specifies the number of rate values you want to generate. Applies if the [`rateValues`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateValues) array is empty.
13693
13743
  *
13694
- * The value of this property is passed on to the `cols` attribute of the underlying `<textarea>` element.
13695
- * @see rows
13744
+ * Set the [`rateMin`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateMin) or [`rateMax`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateMax) property to specify the first or the last rate value. Use the [`rateStep`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateStep) property to specify a step with which to generate rate values.
13745
+ *
13746
+ * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
13696
13747
  */
13697
- get cols(): number;
13698
- set cols(val: number);
13748
+ rateCount: number;
13749
+ private static badColor;
13750
+ private static normalColor;
13751
+ private static goodColor;
13752
+ private static badColorLight;
13753
+ private static normalColorLight;
13754
+ private static goodColorLight;
13755
+ private initColors;
13756
+ protected getDisplayValueCore(keysAsText: boolean, value: any): any;
13757
+ get visibleRateValues(): ItemValue[];
13758
+ itemValuePropertyChanged(item: ItemValue, name: string, oldValue: any, newValue: any): void;
13759
+ private createRenderedRateItems;
13760
+ renderedRateItems: Array<RenderedRatingItem>;
13761
+ private correctValue;
13762
+ getType(): string;
13763
+ protected getFirstInputElementId(): string;
13764
+ getInputId(index: number): string;
13765
+ supportGoNextPageAutomatic(): boolean;
13766
+ supportOther(): boolean;
13699
13767
  /**
13700
- * Specifies whether the question allows line breaks.
13701
- *
13702
- * When this property is enabled, a user can press Enter to insert line breaks. They are saved as `\n` in survey results. The Comment question also recognizes and interprets the `\n` sequence as a line break when you set the question `value` in code.
13768
+ * Specifies a description for the minimum (first) rate value.
13769
+ * @see rateValues
13770
+ * @see rateMin
13771
+ * @see displayRateDescriptionsAsExtremeItems
13703
13772
  */
13704
- get acceptCarriageReturn(): boolean;
13705
- set acceptCarriageReturn(val: boolean);
13773
+ get minRateDescription(): string;
13774
+ set minRateDescription(val: string);
13775
+ get locMinRateDescription(): LocalizableString;
13706
13776
  /**
13707
- * Specifies whether the comment area automatically increases its height to accomodate multi-line content.
13708
- *
13709
- * Default value: `false` (inherited from `SurveyModel`'s [`autoGrowComment`](https://surveyjs.io/form-library/documentation/surveymodel#autoGrowComment) property)
13777
+ * Specifies a description for the maximum (last) rate value.
13778
+ * @see rateValues
13779
+ * @see rateMax
13780
+ * @see displayRateDescriptionsAsExtremeItems
13710
13781
  */
13711
- get autoGrow(): boolean;
13712
- set autoGrow(val: boolean);
13713
- getType(): string;
13714
- afterRenderQuestionElement(el: HTMLElement): void;
13715
- updateElement(): void;
13716
- beforeDestroyQuestionElement(el: HTMLElement): void;
13717
- onInput(event: any): void;
13718
- onKeyDown(event: any): void;
13719
- onValueChanged(): void;
13720
- protected setNewValue(newValue: string): any;
13721
- get className(): string;
13722
- }
13723
- }
13724
- declare module "question_html" {
13725
- import { QuestionNonValue } from "questionnonvalue";
13726
- import { LocalizableString } from "localizablestring";
13727
- /**
13728
- * A class that describes the Html question type. Unlike other question types, Html cannot have a title or value.
13729
- *
13730
- * [View Demo](https://surveyjs.io/form-library/examples/questiontype-html/ (linkStyle))
13731
- */
13732
- export class QuestionHtmlModel extends QuestionNonValue {
13733
- ignoreHtmlProgressing: boolean;
13734
- constructor(name: string);
13735
- getType(): string;
13736
- get isCompositeQuestion(): boolean;
13737
- getProcessedText(text: string): string;
13782
+ get maxRateDescription(): string;
13783
+ set maxRateDescription(val: string);
13784
+ get locMaxRateDescription(): LocalizableString;
13785
+ hasMinRateDescription: boolean;
13786
+ hasMaxRateDescription: boolean;
13787
+ get hasMinLabel(): boolean;
13788
+ get hasMaxLabel(): boolean;
13738
13789
  /**
13739
- * HTML markup to display.
13790
+ * Specifies whether to display `minRateDescription` and `maxRateDescription` values as captions for buttons that correspond to the extreme (first and last) rate values.
13791
+ *
13792
+ * Default value: `false`
13793
+ *
13794
+ * If this property is disabled, the `minRateDescription` and `maxRateDescription` values are displayed as plain non-clickable texts.
13795
+ *
13796
+ * If any of the `minRateDescription` and `maxRateDescription` properties is empty, the corresponding rate value's `value` or `text` is displayed as a button caption.
13797
+ * @see minRateDescription
13798
+ * @see maxRateDescription
13799
+ * @see rateMin
13800
+ * @see rateMax
13801
+ * @see rateValues
13802
+ */
13803
+ displayRateDescriptionsAsExtremeItems: boolean;
13804
+ /**
13805
+ * Specifies whether to display rate values as buttons or items in a drop-down list.
13806
+ *
13807
+ * Possible values:
13808
+ *
13809
+ * - `"buttons"` - Displays rate values as buttons in a row.
13810
+ * - `"dropdown"` - Displays rate values as items in a drop-down list.
13811
+ * - `"auto"` (default) - Selects between the `"buttons"` and `"dropdown"` modes based on the available width. When the width is insufficient to display buttons, the question displays a dropdown.
13812
+ *
13813
+ * [View Demo](/form-library/examples/ui-adaptation-modes-for-rating-scale/ (linkStyle))
13814
+ * @see rateType
13815
+ */
13816
+ displayMode: "dropdown" | "buttons" | "auto";
13817
+ /**
13818
+ * Specifies the visual representation of rate values.
13740
13819
  *
13741
- * > IMPORTANT: If you get the markup from a third party, ensure that it does not contain malicious code.
13820
+ * Possible values:
13821
+ *
13822
+ * - `"labels"` (default) - Displays rate values as buttons with labels.
13823
+ * - `"stars"` - Displays rate values as stars.
13824
+ * - `"smileys"` - Displays rate values as smiley faces.
13825
+ *
13826
+ * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
13827
+ * @see scaleColorMode
13828
+ * @see rateColorMode
13829
+ * @see displayMode
13742
13830
  */
13743
- get html(): string;
13744
- set html(val: string);
13745
- get locHtml(): LocalizableString;
13746
- get processedHtml(): string;
13747
- private processHtml;
13748
- }
13749
- }
13750
- declare module "question_radiogroup" {
13751
- import { QuestionCheckboxBase } from "question_baseselect";
13752
- import { ItemValue } from "itemvalue";
13753
- import { Action } from "actions/action";
13754
- /**
13755
- * A class that describes the Radiogroup question type.
13756
- *
13757
- * [View Demo](https://surveyjs.io/form-library/examples/questiontype-radiogroup/ (linkStyle))
13758
- */
13759
- export class QuestionRadiogroupModel extends QuestionCheckboxBase {
13760
- constructor(name: string);
13761
- protected getDefaultItemComponent(): string;
13762
- getType(): string;
13763
- get ariaRole(): string;
13764
- get titleAriaLabel(): string | null;
13765
- protected getFirstInputElementId(): string;
13831
+ rateType: "labels" | "stars" | "smileys";
13832
+ get rateDisplayMode(): "labels" | "stars" | "smileys";
13833
+ set rateDisplayMode(val: "labels" | "stars" | "smileys");
13766
13834
  /**
13767
- * Returns the selected choice item. If no item is selected, returns `null`.
13835
+ * Specifies how to colorize the smiley face rating scale. Applies only if [`rateType`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateType) is `"smileys"`.
13836
+ *
13837
+ * Possible values:
13838
+ *
13839
+ * - `"monochrome"` (default) - Displays emojis in monochrome.
13840
+ * - `"colored"` - Displays emojis in color.
13841
+ *
13842
+ * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
13843
+ * @see rateColorMode
13768
13844
  */
13769
- get selectedItem(): ItemValue;
13845
+ scaleColorMode: "monochrome" | "colored";
13770
13846
  /**
13771
- * Specifies whether to display a button that clears the question value.
13847
+ * Specifies how to colorize the selected emoji. Applies only if [`rateType`](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#rateType) is `"smileys"`.
13772
13848
  *
13773
- * Default value: `false`
13849
+ * Possible values:
13850
+ *
13851
+ * - `"default"` - Displays the selected emoji in default survey color.
13852
+ * - `"scale"` (default) - Inherits the color from the scale.
13853
+ * @see scaleColorMode
13774
13854
  */
13775
- get showClearButton(): boolean;
13776
- set showClearButton(val: boolean);
13777
- get canShowClearButton(): boolean;
13778
- get clearButtonCaption(): string;
13779
- supportGoNextPageAutomatic(): boolean;
13780
- get showClearButtonInContent(): boolean;
13781
- clickItemHandler(item: ItemValue): void;
13782
- protected getDefaultTitleActions(): Array<Action>;
13855
+ rateColorMode: "default" | "scale";
13856
+ get isStar(): boolean;
13857
+ get isSmiley(): boolean;
13858
+ get itemComponentName(): "sv-rating-item-star" | "sv-rating-item-smiley" | "sv-rating-item";
13859
+ protected valueToData(val: any): any;
13860
+ setValueFromClick(value: any): void;
13861
+ onItemMouseIn(item: RenderedRatingItem): void;
13862
+ onItemMouseOut(item: RenderedRatingItem): void;
13863
+ get itemSmallMode(): boolean;
13864
+ get ratingRootCss(): string;
13865
+ get itemStarIcon(): string;
13866
+ get itemStarIconAlt(): string;
13867
+ getItemSmiley(item: ItemValue): string;
13868
+ getItemSmileyIconName(item: ItemValue): string;
13869
+ getItemClassByText(item: ItemValue, text: string): string;
13870
+ private getRenderedItemColor;
13871
+ getItemStyle(item: ItemValue, highlight?: "none" | "highlighted" | "unhighlighted"): {
13872
+ borderColor: string;
13873
+ fill: string;
13874
+ backgroundColor: string;
13875
+ };
13876
+ getItemClass(item: ItemValue, highlight?: "none" | "highlighted" | "unhighlighted"): string;
13877
+ getControlClass(): string;
13878
+ get placeholder(): string;
13879
+ set placeholder(val: string);
13880
+ get locPlaceholder(): LocalizableString;
13881
+ get allowClear(): boolean;
13882
+ get searchEnabled(): boolean;
13883
+ get renderedValue(): any;
13884
+ set renderedValue(val: any);
13885
+ isItemSelected(item: ItemValue): boolean;
13886
+ get visibleChoices(): ItemValue[];
13887
+ get readOnlyText(): any;
13888
+ needResponsiveWidth(): boolean;
13889
+ protected supportResponsiveness(): boolean;
13890
+ protected getCompactRenderAs(): string;
13891
+ protected getDesktopRenderAs(): string;
13892
+ get ariaExpanded(): string;
13893
+ private dropdownListModelValue;
13894
+ set dropdownListModel(val: DropdownListModel);
13895
+ get dropdownListModel(): DropdownListModel;
13896
+ protected updateCssClasses(res: any, css: any): void;
13897
+ protected calcCssClasses(css: any): any;
13898
+ dispose(): void;
13783
13899
  }
13784
13900
  }
13785
13901
  declare module "question_boolean" {
@@ -14378,6 +14494,7 @@ declare module "question_custom" {
14378
14494
  getProgressInfo(): IProgressInfo;
14379
14495
  protected abstract getElement(): SurveyElement;
14380
14496
  protected initElement(el: SurveyElement): void;
14497
+ protected isSettingValOnLoading: boolean;
14381
14498
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
14382
14499
  onSurveyLoad(): void;
14383
14500
  afterRenderQuestionElement(el: HTMLElement): void;
@@ -14465,6 +14582,7 @@ declare module "question_custom" {
14465
14582
  protected getQuestionByName(name: string): IQuestion;
14466
14583
  private settingNewValue;
14467
14584
  setValue(name: string, newValue: any, locNotification: any, allowNotifyValueChanged?: boolean): any;
14585
+ private updateValueCoreWithPanelValue;
14468
14586
  private setNewValueIntoQuestion;
14469
14587
  addConditionObjectsByContext(objects: Array<IConditionObject>, context: any): void;
14470
14588
  protected convertDataValue(name: string, newValue: any): any;
@@ -14510,6 +14628,7 @@ declare module "popup-view-model" {
14510
14628
  get contentComponentData(): any;
14511
14629
  get isModal(): boolean;
14512
14630
  get isFocusedContent(): boolean;
14631
+ get isFocusedContainer(): boolean;
14513
14632
  get showFooter(): boolean;
14514
14633
  get showHeader(): boolean;
14515
14634
  get popupHeaderTemplate(): string;
@@ -14522,6 +14641,7 @@ declare module "popup-view-model" {
14522
14641
  switchFocus(): void;
14523
14642
  updateOnShowing(): void;
14524
14643
  updateOnHiding(): void;
14644
+ private focusContainer;
14525
14645
  private focusFirstInput;
14526
14646
  clickOutside(): void;
14527
14647
  cancel(): void;
@@ -14634,59 +14754,6 @@ declare module "question_buttongroup" {
14634
14754
  onChange(): void;
14635
14755
  }
14636
14756
  }
14637
- declare module "dragdrop/survey-elements" {
14638
- import { IElement, IShortcutText } from "base-interfaces";
14639
- import { JsonObject } from "jsonobject";
14640
- import { PageModel } from "page";
14641
- import { DragDropCore } from "dragdrop/core";
14642
- export class DragDropSurveyElements extends DragDropCore<any> {
14643
- static newGhostPage: PageModel;
14644
- static restrictDragQuestionBetweenPages: boolean;
14645
- static edgeHeight: number;
14646
- static nestedPanelDepth: number;
14647
- static ghostSurveyElementName: string;
14648
- protected isEdge: boolean;
14649
- protected prevIsEdge: any;
14650
- protected ghostSurveyElement: IElement;
14651
- protected get draggedElementType(): string;
14652
- protected isDraggedElementSelected: boolean;
14653
- private isRight;
14654
- protected prevIsRight: boolean;
14655
- startDragToolboxItem(event: PointerEvent, draggedElementJson: JsonObject, toolboxItemTitle: string): void;
14656
- startDragSurveyElement(event: PointerEvent, draggedElement: any, isElementSelected?: boolean): void;
14657
- protected getShortcutText(draggedElement: IShortcutText): string;
14658
- protected createDraggedElementShortcut(text: string, draggedElementNode?: HTMLElement, event?: PointerEvent): HTMLElement;
14659
- protected createDraggedElementIcon(): HTMLElement;
14660
- protected getDraggedElementClass(): string;
14661
- protected createElementFromJson(json: object): HTMLElement;
14662
- private createNewElement;
14663
- protected findDropTargetNodeByDragOverNode(dragOverNode: HTMLElement): HTMLElement;
14664
- protected getDropTargetByDataAttributeValue(dataAttributeValue: string, dropTargetNode: HTMLElement, event: PointerEvent): any;
14665
- protected isDropTargetValid(): boolean;
14666
- protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
14667
- protected calculateIsRight(clientX: number, dropTargetNode?: HTMLElement): boolean;
14668
- protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
14669
- private shouldRestricDragQuestionBetweenPages;
14670
- private getPanelDropTarget;
14671
- protected findDeepestDropTargetChild(parent: HTMLElement): HTMLElement;
14672
- private calculateIsEdge;
14673
- protected doDragOver(dropTargetNode?: HTMLElement, event?: PointerEvent): void;
14674
- protected afterDragOver(dropTargetNode: HTMLElement, event: PointerEvent): void;
14675
- protected onStartDrag(): void;
14676
- protected doBanDropHere: () => void;
14677
- protected doDrop: () => any;
14678
- protected doClear: () => void;
14679
- protected insertGhostElementIntoSurvey(): boolean;
14680
- private calcTargetRowMultiple;
14681
- private getTargetParent;
14682
- private getTargetRow;
14683
- private isDragOverInsideEmptyPanel;
14684
- protected removeGhostElementFromSurvey(): void;
14685
- private insertRealElementIntoSurvey;
14686
- private createFakeTargetElement;
14687
- private createGhostSurveyElement;
14688
- }
14689
- }
14690
14757
  declare module "entries/chunks/model" {
14691
14758
  export var Version: string;
14692
14759
  export function checkLibraryVersion(ver: string, libraryName: string): void;
@@ -14695,7 +14762,7 @@ declare module "entries/chunks/model" {
14695
14762
  export { AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner } from "validator";
14696
14763
  export { ItemValue } from "itemvalue";
14697
14764
  export { Base, Event, EventBase, ArrayChanges, ComputedUpdater } from "base";
14698
- export { ISurvey, ISurveyElement, IElement, IQuestion, IPage, IPanel, ISurveyData, ITitleOwner, ISurveyLayoutElement } from "base-interfaces";
14765
+ export { ISurvey, ISurveyElement, IElement, IQuestion, IPage, IPanel, ISurveyData, ITitleOwner, ISurveyLayoutElement, IShortcutText } from "base-interfaces";
14699
14766
  export { SurveyError } from "survey-error";
14700
14767
  export { SurveyElementCore, SurveyElement, DragTypeOverMeEnum } from "survey-element";
14701
14768
  export { CalculatedValue } from "calculatedValue";
@@ -14749,6 +14816,7 @@ declare module "entries/chunks/model" {
14749
14816
  export * from "surveyToc";
14750
14817
  export { SurveyProgressModel } from "surveyProgress";
14751
14818
  export { SurveyProgressButtonsModel } from "surveyProgressButtons";
14819
+ export * from "themes";
14752
14820
  export { SurveyModel } from "survey";
14753
14821
  export { SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, Trigger } from "trigger";
14754
14822
  export { PopupSurveyModel, SurveyWindowModel } from "popup-survey";
@@ -14774,7 +14842,7 @@ declare module "entries/chunks/model" {
14774
14842
  export { confirmAction, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, IAttachKey2clickOptions } from "utils/utils";
14775
14843
  export * from "utils/cssClassBuilder";
14776
14844
  export { surveyCss, defaultV2Css, defaultV2ThemeName } from "defaultCss/defaultV2Css";
14777
- export { DragDropSurveyElements } from "dragdrop/survey-elements";
14845
+ export { DragDropCore } from "dragdrop/core";
14778
14846
  export { DragDropChoices } from "dragdrop/choices";
14779
14847
  }
14780
14848
  declare module "defaultCss/cssstandard" {
@@ -18089,6 +18157,7 @@ declare module "localization/greek" {
18089
18157
  noneItemText: string;
18090
18158
  selectAllItemText: string;
18091
18159
  progressText: string;
18160
+ indexText: string;
18092
18161
  panelDynamicProgressText: string;
18093
18162
  questionsProgressText: string;
18094
18163
  emptySurvey: string;
@@ -18096,11 +18165,14 @@ declare module "localization/greek" {
18096
18165
  completingSurveyBefore: string;
18097
18166
  loadingSurvey: string;
18098
18167
  placeholder: string;
18168
+ ratingOptionsCaption: string;
18099
18169
  value: string;
18100
18170
  requiredError: string;
18101
18171
  requiredErrorInPanel: string;
18102
18172
  requiredInAllRowsError: string;
18103
18173
  numericError: string;
18174
+ minError: string;
18175
+ maxError: string;
18104
18176
  textMinLength: string;
18105
18177
  textMaxLength: string;
18106
18178
  textMinMaxLength: string;
@@ -18120,16 +18192,19 @@ declare module "localization/greek" {
18120
18192
  loadingFile: string;
18121
18193
  chooseFile: string;
18122
18194
  noFileChosen: string;
18195
+ fileDragAreaPlaceholder: string;
18123
18196
  confirmDelete: string;
18124
18197
  keyDuplicationError: string;
18125
18198
  addColumn: string;
18126
18199
  addRow: string;
18127
18200
  removeRow: string;
18201
+ emptyRowsText: string;
18128
18202
  addPanel: string;
18129
18203
  removePanel: string;
18130
18204
  choices_Item: string;
18131
18205
  matrix_column: string;
18132
18206
  matrix_row: string;
18207
+ multipletext_itemname: string;
18133
18208
  savingData: string;
18134
18209
  savingDataError: string;
18135
18210
  savingDataSuccess: string;
@@ -18143,6 +18218,7 @@ declare module "localization/greek" {
18143
18218
  timerLimitPage: string;
18144
18219
  timerLimitSurvey: string;
18145
18220
  clearCaption: string;
18221
+ signaturePlaceHolder: string;
18146
18222
  chooseFileCaption: string;
18147
18223
  removeFileCaption: string;
18148
18224
  booleanCheckedLabel: string;
@@ -18150,6 +18226,13 @@ declare module "localization/greek" {
18150
18226
  confirmRemoveFile: string;
18151
18227
  confirmRemoveAllFiles: string;
18152
18228
  questionTitlePatternText: string;
18229
+ modalCancelButtonText: string;
18230
+ modalApplyButtonText: string;
18231
+ filterStringPlaceholder: string;
18232
+ emptyMessage: string;
18233
+ noEntriesText: string;
18234
+ more: string;
18235
+ tagboxDoneButtonCaption: string;
18153
18236
  };
18154
18237
  }
18155
18238
  declare module "localization/hebrew" {