survey-react 1.9.85 → 1.9.87

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
@@ -1,5 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  declare module "settings" {
3
+ export type ISurveyEnvironment = {
4
+ root: Document | ShadowRoot;
5
+ rootElement: HTMLElement | ShadowRoot;
6
+ popupMountContainer: HTMLElement | string;
7
+ svgMountContainer: HTMLElement | string;
8
+ stylesSheetsMountContainer: HTMLElement;
9
+ };
3
10
  /**
4
11
  * Global settings that apply to all surveys on the page. To specify one of the settings, use the code below:
5
12
  *
@@ -369,6 +376,10 @@ declare module "settings" {
369
376
  * - `"icon"` - Users can only use the choice item icon as a drag handle.
370
377
  */
371
378
  rankingDragHandleArea: string;
379
+ /**
380
+ * Specifies environment in which SurveyJS will exist
381
+ */
382
+ environment: ISurveyEnvironment;
372
383
  titleTags: {
373
384
  survey: string;
374
385
  page: string;
@@ -387,6 +398,9 @@ declare module "settings" {
387
398
  * - `columnWidthsByType`: `Object`\
388
399
  * An object that specifies fixed and minimum column width based on the column type.\
389
400
  * Example: `settings.matrix.columnWidthsByType = { "tagbox": { minWidth: "240px", width: "300px" } }`
401
+ *
402
+ * - `rateSize`: `"small"` (default) | `"normal"`\
403
+ * Specifies the size of rate values. Applies to [Rating Scale](https://surveyjs.io/form-library/examples/rating-scale/) questions within matrixes.
390
404
  */
391
405
  matrix: {
392
406
  columnWidthsByType: {
@@ -395,6 +409,7 @@ declare module "settings" {
395
409
  width?: string;
396
410
  };
397
411
  };
412
+ rateSize: "small" | "normal";
398
413
  };
399
414
  };
400
415
  }
@@ -723,6 +738,7 @@ declare module "localizablestring" {
723
738
  private getValue;
724
739
  private setValue;
725
740
  private deleteValue;
741
+ private getValueLoc;
726
742
  private getValuesKeys;
727
743
  private get defaultLoc();
728
744
  }
@@ -1379,6 +1395,8 @@ declare module "utils/utils" {
1379
1395
  function detectIEOrEdge(): any;
1380
1396
  function loadFileFromBase64(b64Data: string, fileName: string): void;
1381
1397
  function isMobile(): boolean;
1398
+ const isShadowDOM: (rootElement: Document | ShadowRoot | HTMLElement) => rootElement is ShadowRoot;
1399
+ const getElement: (element: HTMLElement | string) => HTMLElement;
1382
1400
  function isElementVisible(element: HTMLElement, threshold?: number): boolean;
1383
1401
  function findScrollableParent(element: HTMLElement): HTMLElement;
1384
1402
  function scrollElementByChildId(id: string): void;
@@ -1408,7 +1426,7 @@ declare module "utils/utils" {
1408
1426
  log(action: string): void;
1409
1427
  get result(): string;
1410
1428
  }
1411
- export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, };
1429
+ export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, };
1412
1430
  }
1413
1431
  declare module "actions/container" {
1414
1432
  import { Base } from "base";
@@ -2447,6 +2465,7 @@ declare module "defaultCss/defaultV2Css" {
2447
2465
  itemStarDisabled: string;
2448
2466
  itemStarHighlighted: string;
2449
2467
  itemStarUnhighlighted: string;
2468
+ itemStarSmall: string;
2450
2469
  itemSmiley: string;
2451
2470
  itemSmileyOnError: string;
2452
2471
  itemSmileyHover: string;
@@ -2455,12 +2474,14 @@ declare module "defaultCss/defaultV2Css" {
2455
2474
  itemSmileyHighlighted: string;
2456
2475
  itemSmileyScaleColored: string;
2457
2476
  itemSmileyRateColored: string;
2477
+ itemSmileySmall: string;
2458
2478
  minText: string;
2459
2479
  itemText: string;
2460
2480
  maxText: string;
2461
2481
  itemDisabled: string;
2462
2482
  itemFixedSize: string;
2463
2483
  control: string;
2484
+ itemSmall: string;
2464
2485
  controlValue: string;
2465
2486
  controlDisabled: string;
2466
2487
  controlEmpty: string;
@@ -2627,6 +2648,10 @@ declare module "defaultCss/defaultV2Css" {
2627
2648
  controlLabel: string;
2628
2649
  filterStringInput: string;
2629
2650
  materialDecorator: string;
2651
+ hint: string;
2652
+ hintPrefix: string;
2653
+ hintSuffix: string;
2654
+ hintSuffixWrapper: string;
2630
2655
  };
2631
2656
  };
2632
2657
  export const defaultV2ThemeName = "defaultV2";
@@ -2641,12 +2666,15 @@ declare module "trigger" {
2641
2666
  * Please note, it runs only one changing the expression result.
2642
2667
  */
2643
2668
  export class Trigger extends Base {
2669
+ static idCounter: number;
2644
2670
  static operatorsValue: HashTable<Function>;
2645
2671
  static get operators(): HashTable<Function>;
2646
2672
  private conditionRunner;
2647
2673
  private usedNames;
2648
2674
  private hasFunction;
2675
+ private idValue;
2649
2676
  constructor();
2677
+ get id(): number;
2650
2678
  getType(): string;
2651
2679
  toString(): string;
2652
2680
  get operator(): string;
@@ -2678,7 +2706,7 @@ declare module "trigger" {
2678
2706
  export interface ISurveyTriggerOwner {
2679
2707
  getObjects(pages: string[], questions: string[]): any[];
2680
2708
  setCompleted(): void;
2681
- canBeCompleted(): void;
2709
+ canBeCompleted(trigger: Trigger, isCompleted: boolean): void;
2682
2710
  triggerExecuted(trigger: Trigger): void;
2683
2711
  setTriggerValue(name: string, value: any, isVariable: boolean): any;
2684
2712
  copyTriggerValue(name: string, fromName: string): any;
@@ -2719,6 +2747,7 @@ declare module "trigger" {
2719
2747
  getType(): string;
2720
2748
  protected isRealExecution(): boolean;
2721
2749
  protected onSuccess(values: HashTable<any>, properties: HashTable<any>): void;
2750
+ protected onFailure(): void;
2722
2751
  }
2723
2752
  /**
2724
2753
  * If expression returns true, the value from property **setValue** will be set to **setToName**
@@ -2834,9 +2863,9 @@ declare module "questionfactory" {
2834
2863
  static get DefaultColums(): string[];
2835
2864
  static get DefaultRows(): string[];
2836
2865
  static get DefaultMutlipleTextItems(): string[];
2837
- private creatorHash;
2838
2866
  registerQuestion(questionType: string, questionCreator: (name: string) => Question): void;
2839
- unregisterElement(elementType: string): void;
2867
+ registerCustomQuestion(questionType: string): void;
2868
+ unregisterElement(elementType: string, removeFromSerializer?: boolean): void;
2840
2869
  clear(): void;
2841
2870
  getAllTypes(): Array<string>;
2842
2871
  createQuestion(questionType: string, name: string): Question;
@@ -2845,6 +2874,7 @@ declare module "questionfactory" {
2845
2874
  static Instance: ElementFactory;
2846
2875
  private creatorHash;
2847
2876
  registerElement(elementType: string, elementCreator: (name: string) => IElement): void;
2877
+ registerCustomQuestion: (questionType: string) => void;
2848
2878
  clear(): void;
2849
2879
  unregisterElement(elementType: string, removeFromSerializer?: boolean): void;
2850
2880
  getAllTypes(): Array<string>;
@@ -3464,6 +3494,7 @@ declare module "panel" {
3464
3494
  cancelPreview(): void;
3465
3495
  get cssTitle(): string;
3466
3496
  get cssError(): string;
3497
+ get showErrorsAbovePanel(): boolean;
3467
3498
  protected getCssError(cssClasses: any): string;
3468
3499
  protected onVisibleChanged(): void;
3469
3500
  needResponsiveWidth(): boolean;
@@ -3844,6 +3875,7 @@ declare module "question_baseselect" {
3844
3875
  private newItemValue;
3845
3876
  private canShowOptionItemCallback;
3846
3877
  private isUsingCarrayForward;
3878
+ private waitingGetChoiceDisplayValueResponse;
3847
3879
  protected selectedItemValues: any;
3848
3880
  constructor(name: string);
3849
3881
  getType(): string;
@@ -3966,6 +3998,8 @@ declare module "question_baseselect" {
3966
3998
  protected rendredValueToDataCore(val: any): any;
3967
3999
  protected needConvertRenderedOtherToDataValue(): boolean;
3968
4000
  protected updateSelectedItemValues(): void;
4001
+ protected updateSingleSelectedItemValues(): void;
4002
+ protected updateMultipleSelectedItemValues(): void;
3969
4003
  protected resetSelectedItemValues(): void;
3970
4004
  protected hasUnknownValue(val: any, includeOther?: boolean, isFilteredChoices?: boolean, checkEmptyValue?: boolean): boolean;
3971
4005
  protected isValueDisabled(val: any): boolean;
@@ -7665,23 +7699,33 @@ declare module "survey" {
7665
7699
  */
7666
7700
  onProcessTextValue: EventBase<SurveyModel, ProcessTextValueEvent>;
7667
7701
  /**
7668
- * An event that is raised before rendering a question. Use it to override the default question CSS classes.
7702
+ * An event that is raised before rendering a question. Use it to override default question CSS classes.
7669
7703
  *
7670
7704
  * For information on event handler parameters, refer to descriptions within the interface.
7671
7705
  *
7672
- * [View Demo](https://surveyjs.io/form-library/examples/survey-cssclasses/ (linkStyle))
7706
+ * [View Demo](/form-library/examples/customize-survey-with-css/ (linkStyle))
7707
+ * @see css
7673
7708
  */
7674
7709
  onUpdateQuestionCssClasses: EventBase<SurveyModel, UpdateQuestionCssClassesEvent>;
7675
7710
  /**
7676
- * An event that is raised before rendering a panel. Use it to override the default panel CSS classes.
7711
+ * An event that is raised before rendering a panel. Use it to override default panel CSS classes.
7712
+ *
7713
+ * [View Demo](/form-library/examples/customize-survey-with-css/ (linkStyle))
7714
+ * @see css
7677
7715
  */
7678
7716
  onUpdatePanelCssClasses: EventBase<SurveyModel, UpdatePanelCssClassesEvent>;
7679
7717
  /**
7680
- * An event that is raised before rendering a page. Use it to override the default page CSS classes.
7718
+ * An event that is raised before rendering a page. Use it to override default page CSS classes.
7719
+ *
7720
+ * [View Demo](/form-library/examples/customize-survey-with-css/ (linkStyle))
7721
+ * @see css
7681
7722
  */
7682
7723
  onUpdatePageCssClasses: EventBase<SurveyModel, UpdatePageCssClassesEvent>;
7683
7724
  /**
7684
- * An event that is raised before rendering a choice item in radiogroup, checkbox or dropdown questions. Use it to override the default choice item css.
7725
+ * An event that is raised before rendering a choice item in Radio Button Group, Checkboxes, and Dropdown questions. Use it to override default CSS classes applied to choice items.
7726
+ *
7727
+ * [View Demo](/form-library/examples/customize-survey-with-css/ (linkStyle))
7728
+ * @see css
7685
7729
  */
7686
7730
  onUpdateChoiceItemCss: EventBase<SurveyModel, UpdateChoiceItemCssEvent>;
7687
7731
  /**
@@ -7952,6 +7996,11 @@ declare module "survey" {
7952
7996
  private cssValue;
7953
7997
  private updateCompletedPageCss;
7954
7998
  private updateCss;
7999
+ /**
8000
+ * Gets or sets an object in which keys are UI elements and values are CSS classes applied to them.
8001
+ *
8002
+ * [View Demo](/form-library/examples/customize-survey-with-css/ (linkStyle))
8003
+ */
7955
8004
  get css(): any;
7956
8005
  set css(value: any);
7957
8006
  setCss(value: any, needMerge?: boolean): void;
@@ -8360,6 +8409,7 @@ declare module "survey" {
8360
8409
  get locBackgroundImage(): LocalizableString;
8361
8410
  renderBackgroundImage: string;
8362
8411
  private updateRenderBackgroundImage;
8412
+ backgroundImageFit: string;
8363
8413
  /**
8364
8414
  * A value from 0 to 1 that specifies how transparent the survey background should be: 0 makes the background completely transparent, and 1 makes it opaque.
8365
8415
  * @see backgroundImage
@@ -8863,7 +8913,7 @@ declare module "survey" {
8863
8913
  get areInvisibleElementsShowing(): boolean;
8864
8914
  get areEmptyElementsHidden(): boolean;
8865
8915
  /**
8866
- * Returns `true`, if a user has already completed the survey in this browser and there is a cookie about it. Survey goes to `completed` state if the function returns `true`.
8916
+ * Returns `true`, if a user has already completed the survey in this browser and there is a cookie about it. Survey goes to `completedbefore` state if the function returns `true`.
8867
8917
  * @see cookieName
8868
8918
  * @see setCookie
8869
8919
  * @see deleteCookie
@@ -9113,7 +9163,9 @@ declare module "survey" {
9113
9163
  private completeServerValidation;
9114
9164
  protected doNextPage(): void;
9115
9165
  setCompleted(): void;
9116
- canBeCompleted(): void;
9166
+ canBeCompleted(trigger: Trigger, isCompleted: boolean): void;
9167
+ private completedByTriggers;
9168
+ private get canBeCompletedByTrigger();
9117
9169
  /**
9118
9170
  * Returns the HTML content for the complete page.
9119
9171
  * @see completedHtml
@@ -9923,11 +9975,13 @@ declare module "survey-element" {
9923
9975
  *
9924
9976
  * Use the following events of the [`SurveyModel`](https://surveyjs.io/form-library/documentation/surveymodel) object to override CSS classes:
9925
9977
  *
9926
- * - [`onUpdatePageCssClasses`](https://surveyjs.io/form-library/documentation/surveymodel#onUpdatePageCssClasses)
9927
- * - [`onUpdatePanelCssClasses`](https://surveyjs.io/form-library/documentation/surveymodel#onUpdatePanelCssClasses)
9928
9978
  * - [`onUpdateQuestionCssClasses`](https://surveyjs.io/form-library/documentation/surveymodel#onUpdateQuestionCssClasses)
9979
+ * - [`onUpdatePanelCssClasses`](https://surveyjs.io/form-library/documentation/surveymodel#onUpdatePanelCssClasses)
9980
+ * - [`onUpdatePageCssClasses`](https://surveyjs.io/form-library/documentation/surveymodel#onUpdatePageCssClasses)
9981
+ * - [`onUpdateChoiceItemCss`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onUpdateChoiceItemCss)
9929
9982
  */
9930
9983
  get cssClasses(): any;
9984
+ get cssTitleNumber(): any;
9931
9985
  protected calcCssClasses(css: any): any;
9932
9986
  protected updateElementCssCore(cssClasses: any): void;
9933
9987
  get cssError(): string;
@@ -10219,6 +10273,7 @@ declare module "question" {
10219
10273
  isReadOnlyRenderDiv(): boolean;
10220
10274
  protected setIsMobile(val: boolean): void;
10221
10275
  isMobile: boolean;
10276
+ forceIsInputReadOnly: boolean;
10222
10277
  constructor(name: string);
10223
10278
  protected createLocTitleProperty(): LocalizableString;
10224
10279
  getSurvey(live?: boolean): ISurvey;
@@ -10859,6 +10914,7 @@ declare module "question" {
10859
10914
  getComponentName(): string;
10860
10915
  isDefaultRendering(): boolean;
10861
10916
  renderAs: string;
10917
+ inMatrixMode: boolean;
10862
10918
  getErrorCustomText(text: string, error: SurveyError): string;
10863
10919
  getValidatorTitle(): string;
10864
10920
  get validatedValue(): any;
@@ -11742,6 +11798,13 @@ declare module "base-interfaces" {
11742
11798
  element: Base;
11743
11799
  str: LocalizableString;
11744
11800
  }
11801
+ export type ISurveyEnvironment = {
11802
+ root: Document | ShadowRoot;
11803
+ rootElement: HTMLElement | ShadowRoot;
11804
+ popupMountContainer: HTMLElement | string;
11805
+ svgMountContainer: HTMLElement | string;
11806
+ stylesSheetsMountContainer: HTMLElement;
11807
+ };
11745
11808
  export type LayoutElementContainer = "header" | "footer" | "left" | "right" | "contentTop" | "contentBottom";
11746
11809
  export interface ISurveyLayoutElement {
11747
11810
  id: string;
@@ -11923,7 +11986,8 @@ declare module "dropdownListModel" {
11923
11986
  showInputFieldComponent: boolean;
11924
11987
  ariaActivedescendant: string;
11925
11988
  private applyInputString;
11926
- private applyHintString;
11989
+ protected fixInputCase(): void;
11990
+ protected applyHintString(item: ItemValue): void;
11927
11991
  get inputStringRendered(): string;
11928
11992
  set inputStringRendered(val: string);
11929
11993
  get placeholderRendered(): any;
@@ -11936,6 +12000,7 @@ declare module "dropdownListModel" {
11936
12000
  get hintStringPrefix(): string;
11937
12001
  get showHintString(): boolean;
11938
12002
  get hintStringSuffix(): string;
12003
+ get hintStringMiddle(): string;
11939
12004
  constructor(question: Question, onSelectionChanged?: (item: IAction, ...params: any[]) => void);
11940
12005
  get popupModel(): PopupModel;
11941
12006
  get inputReadOnly(): boolean;
@@ -11944,10 +12009,14 @@ declare module "dropdownListModel" {
11944
12009
  setSearchEnabled(newValue: boolean): void;
11945
12010
  updateItems(): void;
11946
12011
  onClick(event: any): void;
12012
+ protected focusItemOnClickAndPopup(): void;
11947
12013
  onClear(event: any): void;
11948
12014
  getSelectedAction(): ItemValue;
11949
12015
  changeSelectionWithKeyboard(reverse: boolean): void;
12016
+ protected beforeScrollToFocusedItem(focusedItem: ItemValue): void;
12017
+ protected afterScrollToFocusedItem(): void;
11950
12018
  keyHandler(event: any): void;
12019
+ protected onEscape(): void;
11951
12020
  onScroll(event: Event): void;
11952
12021
  onBlur(event: any): void;
11953
12022
  onFocus(event: any): void;
@@ -11974,9 +12043,9 @@ declare module "question_rating" {
11974
12043
  constructor(itemValue: ItemValue, locString?: LocalizableString);
11975
12044
  }
11976
12045
  /**
11977
- * A Model for a rating question.
12046
+ * A class that describes the Rating Scale question type.
11978
12047
  *
11979
- * [View Demo](https://surveyjs.io/form-library/examples/questiontype-rating/ (linkStyle))
12048
+ * [View Demo](https://surveyjs.io/form-library/examples/rating-scale/ (linkStyle))
11980
12049
  */
11981
12050
  export class QuestionRatingModel extends Question {
11982
12051
  constructor(name: string);
@@ -12012,6 +12081,8 @@ declare module "question_rating" {
12012
12081
  * 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.
12013
12082
  *
12014
12083
  * 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.
12084
+ *
12085
+ * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
12015
12086
  */
12016
12087
  get rateValues(): Array<any>;
12017
12088
  set rateValues(val: Array<any>);
@@ -12019,6 +12090,8 @@ declare module "question_rating" {
12019
12090
  * 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.
12020
12091
  *
12021
12092
  * Default value: 1
12093
+ *
12094
+ * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
12022
12095
  * @see rateMax
12023
12096
  * @see rateStep
12024
12097
  * @see rateCount
@@ -12029,6 +12102,8 @@ declare module "question_rating" {
12029
12102
  * 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.
12030
12103
  *
12031
12104
  * Default value: 5
12105
+ *
12106
+ * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
12032
12107
  * @see rateMin
12033
12108
  * @see rateStep
12034
12109
  * @see rateCount
@@ -12039,6 +12114,8 @@ declare module "question_rating" {
12039
12114
  * 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.
12040
12115
  *
12041
12116
  * Default value: 1
12117
+ *
12118
+ * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
12042
12119
  * @see rateMin
12043
12120
  * @see rateMax
12044
12121
  * @see rateCount
@@ -12049,6 +12126,8 @@ declare module "question_rating" {
12049
12126
  * 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.
12050
12127
  *
12051
12128
  * 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.
12129
+ *
12130
+ * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
12052
12131
  */
12053
12132
  rateCount: number;
12054
12133
  private static badColor;
@@ -12107,19 +12186,56 @@ declare module "question_rating" {
12107
12186
  */
12108
12187
  displayRateDescriptionsAsExtremeItems: boolean;
12109
12188
  /**
12110
- * Specifies how a Rating question displays rate values.
12189
+ * Specifies whether to display rate values as buttons or items in a drop-down list.
12111
12190
  *
12112
12191
  * Possible values:
12113
12192
  *
12114
12193
  * - `"buttons"` - Displays rate values as buttons in a row.
12115
12194
  * - `"dropdown"` - Displays rate values as items in a drop-down list.
12116
12195
  * - `"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.
12196
+ *
12197
+ * [View Demo](/form-library/examples/ui-adaptation-modes-for-rating-scale/ (linkStyle))
12198
+ * @see rateType
12117
12199
  */
12118
12200
  displayMode: "dropdown" | "buttons" | "auto";
12119
- rateDisplayMode: "labels" | "stars" | "smileys";
12120
- get rateType(): "labels" | "stars" | "smileys";
12121
- set rateType(val: "labels" | "stars" | "smileys");
12201
+ /**
12202
+ * Specifies the visual representation of rate values.
12203
+ *
12204
+ * Possible values:
12205
+ *
12206
+ * - `"labels"` (default) - Displays rate values as buttons with labels.
12207
+ * - `"stars"` - Displays rate values as stars.
12208
+ * - `"smileys"` - Displays rate values as smiley faces.
12209
+ *
12210
+ * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
12211
+ * @see scaleColorMode
12212
+ * @see rateColorMode
12213
+ * @see displayMode
12214
+ */
12215
+ rateType: "labels" | "stars" | "smileys";
12216
+ get rateDisplayMode(): "labels" | "stars" | "smileys";
12217
+ set rateDisplayMode(val: "labels" | "stars" | "smileys");
12218
+ /**
12219
+ * 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"`.
12220
+ *
12221
+ * Possible values:
12222
+ *
12223
+ * - `"monochrome"` (default) - Displays emojis in monochrome.
12224
+ * - `"colored"` - Displays emojis in color.
12225
+ *
12226
+ * [View Demo](/form-library/examples/rating-scale/ (linkStyle))
12227
+ * @see rateColorMode
12228
+ */
12122
12229
  scaleColorMode: "monochrome" | "colored";
12230
+ /**
12231
+ * 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"`.
12232
+ *
12233
+ * Possible values:
12234
+ *
12235
+ * - `"default"` - Displays the selected emoji in default survey color.
12236
+ * - `"scale"` (default) - Inherits the color from the scale.
12237
+ * @see scaleColorMode
12238
+ */
12123
12239
  rateColorMode: "default" | "scale";
12124
12240
  get isStar(): boolean;
12125
12241
  get isSmiley(): boolean;
@@ -12128,7 +12244,10 @@ declare module "question_rating" {
12128
12244
  setValueFromClick(value: any): void;
12129
12245
  onItemMouseIn(item: RenderedRatingItem): void;
12130
12246
  onItemMouseOut(item: RenderedRatingItem): void;
12247
+ get itemSmallMode(): boolean;
12131
12248
  get ratingRootCss(): string;
12249
+ get itemStarIcon(): string;
12250
+ get itemStarIconAlt(): string;
12132
12251
  getItemSmiley(item: ItemValue): string;
12133
12252
  getItemSmileyIconName(item: ItemValue): string;
12134
12253
  getItemClassByText(item: ItemValue, text: string): string;
@@ -13153,6 +13272,10 @@ declare module "dropdownMultiSelectListModel" {
13153
13272
  constructor(question: Question, onSelectionChanged?: (item: IAction, ...params: any[]) => void);
13154
13273
  inputKeyHandler(event: any): void;
13155
13274
  setInputStringFromSelectedItem(newValue: any): void;
13275
+ protected focusItemOnClickAndPopup(): void;
13276
+ protected onEscape(): void;
13277
+ protected beforeScrollToFocusedItem(focusedItem: ItemValue): void;
13278
+ protected afterScrollToFocusedItem(): void;
13156
13279
  }
13157
13280
  }
13158
13281
  declare module "question_tagbox" {
@@ -14482,7 +14605,7 @@ declare module "dragdrop/survey-elements" {
14482
14605
  declare module "entries/chunks/model" {
14483
14606
  export var Version: string;
14484
14607
  export function checkLibraryVersion(ver: string, libraryName: string): void;
14485
- export { settings } from "settings";
14608
+ export { settings, ISurveyEnvironment } from "settings";
14486
14609
  export { Helpers, HashTable } from "helpers";
14487
14610
  export { AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner } from "validator";
14488
14611
  export { ItemValue } from "itemvalue";
@@ -14948,6 +15071,10 @@ declare module "defaultCss/cssstandard" {
14948
15071
  controlEmpty: string;
14949
15072
  placeholderInput: string;
14950
15073
  filterStringInput: string;
15074
+ hint: string;
15075
+ hintPrefix: string;
15076
+ hintSuffix: string;
15077
+ hintSuffixWrapper: string;
14951
15078
  };
14952
15079
  };
14953
15080
  }
@@ -15414,7 +15541,7 @@ declare module "entries/core-wo-model" {
15414
15541
  export * from "svgbundle";
15415
15542
  export * from "rendererFactory";
15416
15543
  export * from "utils/responsivity-manager";
15417
- export { unwrap, getOriginalEvent } from "utils/utils";
15544
+ export { unwrap, getOriginalEvent, getElement } from "utils/utils";
15418
15545
  export * from "actions/action";
15419
15546
  export * from "actions/adaptive-container";
15420
15547
  export * from "actions/container";