survey-react 1.9.74 → 1.9.76

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
@@ -82,6 +82,10 @@ declare module "settings" {
82
82
  * Maximum rowCount that returns in addConditionObjectsByContext function
83
83
  */
84
84
  matrixMaxRowCountInCondition: number;
85
+ /**
86
+ * Maximum panelCount that returns in addConditionObjectsByContext function
87
+ */
88
+ panelDynamicMaxPanelCountInCondition: number;
85
89
  /**
86
90
  * Set this property to false, to render matrix dynamic remove action as button.
87
91
  * It is rendered as icon in new themes ("defaultV2") by default.
@@ -95,6 +99,11 @@ declare module "settings" {
95
99
  * Maximum rate value count in rating question
96
100
  */
97
101
  ratingMaximumRateValueCount: number;
102
+ /**
103
+ * Specifies whether to close the drop-down menu of a [TagBox](https://surveyjs.io/form-library/examples/how-to-create-multiselect-tag-box/) question after a user selects a value.
104
+ * This setting applies to all TagBox questions on a page. You can use the [closeOnSelect](https://surveyjs.io/form-library/documentation/api-reference/dropdown-tag-box-model#closeOnSelect) property to specify the same setting for an individual TagBox question.
105
+ */
106
+ tagboxCloseOnSelect: boolean;
98
107
  /**
99
108
  * Disable the question while choices are getting from the web service
100
109
  */
@@ -256,6 +265,7 @@ declare module "helpers" {
256
265
  static getNumber(value: any): number;
257
266
  private static prepareStringToNumber;
258
267
  static getMaxLength(maxLength: number, surveyLength: number): any;
268
+ static getRemainingCharacterCounterText(newValue: string | undefined, maxLength: number | null): string;
259
269
  static getNumberByIndex(index: number, startIndexStr: string): string;
260
270
  static isCharNotLetterAndDigit(ch: string): boolean;
261
271
  static isCharDigit(ch: string): boolean;
@@ -644,6 +654,7 @@ declare module "jsonobject" {
644
654
  classNamePart: string;
645
655
  baseClassName: string;
646
656
  defaultValueValue: any;
657
+ defaultValueFunc: () => any;
647
658
  serializationProperty: string;
648
659
  displayName: string;
649
660
  category: string;
@@ -2157,6 +2168,7 @@ declare module "survey-element" {
2157
2168
  */
2158
2169
  get rightIndent(): number;
2159
2170
  set rightIndent(val: number);
2171
+ getRootStyle(): object;
2160
2172
  get paddingLeft(): string;
2161
2173
  set paddingLeft(val: string);
2162
2174
  get paddingRight(): string;
@@ -2423,6 +2435,7 @@ declare module "defaultCss/defaultV2Css" {
2423
2435
  titleRequired: string;
2424
2436
  indent: number;
2425
2437
  footer: string;
2438
+ commentArea: string;
2426
2439
  formGroup: string;
2427
2440
  hasError: string;
2428
2441
  collapsed: string;
@@ -2537,6 +2550,8 @@ declare module "defaultCss/defaultV2Css" {
2537
2550
  root: string;
2538
2551
  small: string;
2539
2552
  controlDisabled: string;
2553
+ content: string;
2554
+ remainingCharacterCounter: string;
2540
2555
  onError: string;
2541
2556
  };
2542
2557
  multipletext: {
@@ -2709,6 +2724,8 @@ declare module "defaultCss/defaultV2Css" {
2709
2724
  root: string;
2710
2725
  small: string;
2711
2726
  controlDisabled: string;
2727
+ content: string;
2728
+ remainingCharacterCounter: string;
2712
2729
  onError: string;
2713
2730
  };
2714
2731
  expression: string;
@@ -2788,6 +2805,7 @@ declare module "defaultCss/defaultV2Css" {
2788
2805
  item: string;
2789
2806
  itemContent: string;
2790
2807
  itemIndex: string;
2808
+ itemIndexEmptyMode: string;
2791
2809
  controlLabel: string;
2792
2810
  itemGhostNode: string;
2793
2811
  itemIconContainer: string;
@@ -3100,7 +3118,6 @@ declare module "stylesmanager" {
3100
3118
  };
3101
3119
  export class StylesManager {
3102
3120
  private static SurveyJSStylesSheetId;
3103
- private sheet;
3104
3121
  static Logger: Logger;
3105
3122
  static Styles: {
3106
3123
  [key: string]: string;
@@ -3132,7 +3149,7 @@ declare module "stylesmanager" {
3132
3149
  static applyTheme(themeName?: string, themeSelector?: string): void;
3133
3150
  static Enabled: boolean;
3134
3151
  constructor();
3135
- initializeStyles(sheet: CSSStyleSheet): any;
3152
+ static insertStylesRulesIntoDocument(): any;
3136
3153
  }
3137
3154
  }
3138
3155
  declare module "surveytimer" {
@@ -7898,7 +7915,7 @@ declare module "panel" {
7898
7915
  protected getCssError(cssClasses: any): string;
7899
7916
  protected onVisibleChanged(): void;
7900
7917
  needResponsiveWidth(): boolean;
7901
- focusIn: () => void;
7918
+ focusIn(): void;
7902
7919
  getContainerCss(): string;
7903
7920
  }
7904
7921
  }
@@ -8369,7 +8386,7 @@ declare module "question" {
8369
8386
  */
8370
8387
  focus(onError?: boolean): void;
8371
8388
  private expandAllParents;
8372
- focusIn: () => void;
8389
+ focusIn(): void;
8373
8390
  protected fireCallback(callback: () => void): void;
8374
8391
  getOthersMaxLength(): any;
8375
8392
  protected onCreating(): void;
@@ -8606,6 +8623,7 @@ declare module "question" {
8606
8623
  */
8607
8624
  get comment(): string;
8608
8625
  set comment(newValue: string);
8626
+ getCommentAreaCss(isOther?: boolean): string;
8609
8627
  protected getQuestionComment(): string;
8610
8628
  protected setQuestionComment(newValue: string): void;
8611
8629
  /**
@@ -11248,6 +11266,11 @@ declare module "question_matrix" {
11248
11266
  declare module "question_textbase" {
11249
11267
  import { Question } from "question";
11250
11268
  import { LocalizableString } from "localizablestring";
11269
+ import { Base } from "base";
11270
+ export class CharacterCounter extends Base {
11271
+ remainingCharacterCounter: string;
11272
+ updateRemainingCharacterCounter(newValue: string, maxLength: number): void;
11273
+ }
11251
11274
  /**
11252
11275
  * A base class for the [Text](https://surveyjs.io/form-library/documentation/questiontextmodel) and [Comment](https://surveyjs.io/form-library/documentation/questioncommentmodel) question types.
11253
11276
  */
@@ -11262,6 +11285,8 @@ declare module "question_textbase" {
11262
11285
  get maxLength(): number;
11263
11286
  set maxLength(val: number);
11264
11287
  getMaxLength(): any;
11288
+ characterCounter: CharacterCounter;
11289
+ updateRemainingCharacterCounter(newValue: string): void;
11265
11290
  /**
11266
11291
  * A placeholder for the input field.
11267
11292
  */
@@ -11292,6 +11317,7 @@ declare module "question_textbase" {
11292
11317
  localeChanged(): void;
11293
11318
  protected calcRenderedPlaceholder(): void;
11294
11319
  protected hasPlaceHolder(): boolean;
11320
+ protected setNewValue(newValue: any): void;
11295
11321
  getControlClass(): string;
11296
11322
  get ariaRole(): string;
11297
11323
  }
@@ -11872,6 +11898,7 @@ declare module "dropdownMultiSelectListModel" {
11872
11898
  import { MultiSelectListModel } from "multiSelectListModel";
11873
11899
  import { Question } from "question";
11874
11900
  export class DropdownMultiSelectListModel extends DropdownListModel {
11901
+ protected popupCssClasses: string;
11875
11902
  filterStringPlaceholder: string;
11876
11903
  closeOnSelect: boolean;
11877
11904
  private updateListState;
@@ -11935,6 +11962,10 @@ declare module "question_tagbox" {
11935
11962
  * @see SurveyModel.onChoicesLazyLoad
11936
11963
  */
11937
11964
  choicesLazyLoadPageSize: number;
11965
+ /**
11966
+ * Specifies whether to close the drop-down menu after a user selects a value.
11967
+ */
11968
+ closeOnSelect: number;
11938
11969
  /**
11939
11970
  * A text displayed in the input field when it doesn't have a value.
11940
11971
  */
@@ -12146,6 +12177,7 @@ declare module "question_ranking" {
12146
12177
  protected getItemClassCore(item: ItemValue, options: any): string;
12147
12178
  protected isItemCurrentDropTarget(item: ItemValue): boolean;
12148
12179
  get ghostPositionCssClass(): string;
12180
+ getItemIndexClasses(): string;
12149
12181
  getNumberByIndex(index: number): string;
12150
12182
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
12151
12183
  isAnswerCorrect(): boolean;
@@ -13308,6 +13340,7 @@ declare module "popup-view-model" {
13308
13340
  protected getShowHeader(): boolean;
13309
13341
  protected getPopupHeaderTemplate(): string;
13310
13342
  protected createFooterActionBar(): void;
13343
+ protected resetDimensionsAndPositionStyleProperties(): void;
13311
13344
  private setupModel;
13312
13345
  private _model;
13313
13346
  get model(): PopupModel;
@@ -13540,7 +13573,7 @@ declare module "entries/chunks/model" {
13540
13573
  export { QuestionRadiogroupModel } from "question_radiogroup";
13541
13574
  export { QuestionRatingModel, RenderedRatingItem } from "question_rating";
13542
13575
  export { QuestionExpressionModel } from "question_expression";
13543
- export { QuestionTextBase } from "question_textbase";
13576
+ export { QuestionTextBase, CharacterCounter } from "question_textbase";
13544
13577
  export { QuestionTextModel } from "question_text";
13545
13578
  export { QuestionBooleanModel } from "question_boolean";
13546
13579
  export { QuestionImagePickerModel, ImageItemValue } from "question_imagepicker";
@@ -13719,6 +13752,7 @@ declare module "defaultCss/cssstandard" {
13719
13752
  item: string;
13720
13753
  itemContent: string;
13721
13754
  itemIndex: string;
13755
+ itemIndexEmptyMode: string;
13722
13756
  controlLabel: string;
13723
13757
  itemGhostNode: string;
13724
13758
  itemIconContainer: string;
@@ -13728,7 +13762,9 @@ declare module "defaultCss/cssstandard" {
13728
13762
  itemGhostMod: string;
13729
13763
  itemDragMod: string;
13730
13764
  };
13731
- comment: string;
13765
+ comment: {
13766
+ remainingCharacterCounter: string;
13767
+ };
13732
13768
  dropdown: {
13733
13769
  root: string;
13734
13770
  popup: string;
@@ -13875,7 +13911,10 @@ declare module "defaultCss/cssstandard" {
13875
13911
  itemText: string;
13876
13912
  maxText: string;
13877
13913
  };
13878
- text: string;
13914
+ text: {
13915
+ root: string;
13916
+ remainingCharacterCounter: string;
13917
+ };
13879
13918
  expression: string;
13880
13919
  file: {
13881
13920
  root: string;
@@ -14098,6 +14137,7 @@ declare module "defaultCss/cssmodern" {
14098
14137
  item: string;
14099
14138
  itemContent: string;
14100
14139
  itemIndex: string;
14140
+ itemIndexEmptyMode: string;
14101
14141
  controlLabel: string;
14102
14142
  itemGhostNode: string;
14103
14143
  itemIconContainer: string;
@@ -14166,6 +14206,7 @@ declare module "defaultCss/cssmodern" {
14166
14206
  text: {
14167
14207
  root: string;
14168
14208
  small: string;
14209
+ remainingCharacterCounter: string;
14169
14210
  onError: string;
14170
14211
  };
14171
14212
  multipletext: {
@@ -14304,6 +14345,7 @@ declare module "defaultCss/cssmodern" {
14304
14345
  comment: {
14305
14346
  root: string;
14306
14347
  small: string;
14348
+ remainingCharacterCounter: string;
14307
14349
  };
14308
14350
  expression: string;
14309
14351
  file: {
@@ -14536,6 +14578,7 @@ declare module "plugins/themes/bootstrap/cssbootstrap" {
14536
14578
  item: string;
14537
14579
  itemContent: string;
14538
14580
  itemIndex: string;
14581
+ itemIndexEmptyMode: string;
14539
14582
  controlLabel: string;
14540
14583
  itemGhostNode: string;
14541
14584
  itemIconContainer: string;
@@ -14880,6 +14923,7 @@ declare module "plugins/themes/bootstrapmaterial/cssbootstrapmaterial" {
14880
14923
  item: string;
14881
14924
  itemContent: string;
14882
14925
  itemIndex: string;
14926
+ itemIndexEmptyMode: string;
14883
14927
  controlLabel: string;
14884
14928
  itemGhostNode: string;
14885
14929
  itemIconContainer: string;
@@ -15340,6 +15384,7 @@ declare module "entries/plugins" {
15340
15384
  item: string;
15341
15385
  itemContent: string;
15342
15386
  itemIndex: string;
15387
+ itemIndexEmptyMode: string;
15343
15388
  controlLabel: string;
15344
15389
  itemGhostNode: string;
15345
15390
  itemIconContainer: string;
@@ -15682,6 +15727,7 @@ declare module "entries/plugins" {
15682
15727
  item: string;
15683
15728
  itemContent: string;
15684
15729
  itemIndex: string;
15730
+ itemIndexEmptyMode: string;
15685
15731
  controlLabel: string;
15686
15732
  itemGhostNode: string;
15687
15733
  itemIconContainer: string;
@@ -19506,6 +19552,18 @@ declare module "react/reactquestion_factory" {
19506
19552
  createQuestion(questionType: string, params: any): JSX.Element | null;
19507
19553
  }
19508
19554
  }
19555
+ declare module "react/components/character-counter" {
19556
+ import { Base, CharacterCounter } from "entries/core";
19557
+ import { SurveyElementBase } from "react/reactquestion_element";
19558
+ export interface ICharacterCounterComponentProps {
19559
+ counter: CharacterCounter;
19560
+ remainingCharacterCounter: string;
19561
+ }
19562
+ export class CharacterCounterComponent extends SurveyElementBase<ICharacterCounterComponentProps, any> {
19563
+ protected getStateElement(): Base;
19564
+ renderElement(): JSX.Element | null;
19565
+ }
19566
+ }
19509
19567
  declare module "react/reactquestion_comment" {
19510
19568
  import { ReactSurveyElement, SurveyQuestionUncontrolledElement } from "react/reactquestion_element";
19511
19569
  import { QuestionCommentModel } from "entries/core";
@@ -20544,15 +20602,33 @@ declare module "react/reactSurveyProgressButtons" {
20544
20602
  componentWillUnmount(): void;
20545
20603
  }
20546
20604
  }
20605
+ declare module "react/components/rating/rating-item" {
20606
+ import { QuestionRatingModel, RenderedRatingItem } from "entries/core";
20607
+ import { SurveyElementBase } from "react/reactquestion_element";
20608
+ interface IRatingItemProps {
20609
+ question: QuestionRatingModel;
20610
+ data: RenderedRatingItem;
20611
+ index: any;
20612
+ handleOnClick: any;
20613
+ isDisplayMode: boolean;
20614
+ }
20615
+ export class RatingItem extends SurveyElementBase<IRatingItemProps, any> {
20616
+ get question(): QuestionRatingModel;
20617
+ get item(): RenderedRatingItem;
20618
+ get index(): any;
20619
+ getStateElement(): RenderedRatingItem;
20620
+ render(): JSX.Element | null;
20621
+ componentDidMount(): void;
20622
+ }
20623
+ }
20547
20624
  declare module "react/reactquestion_rating" {
20548
20625
  import { SurveyQuestionElementBase } from "react/reactquestion_element";
20549
- import { QuestionRatingModel, RenderedRatingItem } from "entries/core";
20626
+ import { QuestionRatingModel } from "entries/core";
20550
20627
  export class SurveyQuestionRating extends SurveyQuestionElementBase {
20551
20628
  constructor(props: any);
20552
20629
  protected get question(): QuestionRatingModel;
20553
20630
  handleOnClick(event: any): void;
20554
20631
  protected renderElement(): JSX.Element;
20555
- protected renderItem(key: string, item: RenderedRatingItem, index: number, cssClasses: any): JSX.Element;
20556
20632
  }
20557
20633
  }
20558
20634
  declare module "react/rating-dropdown" {
@@ -20845,6 +20921,7 @@ declare module "entries/react-ui-model" {
20845
20921
  export { MatrixRow } from "react/components/matrix/row";
20846
20922
  export { Skeleton } from "react/components/skeleton";
20847
20923
  export { NotifierComponent } from "react/components/notifier";
20924
+ export { CharacterCounterComponent } from "react/components/character-counter";
20848
20925
  export { SurveyLocStringViewer } from "react/string-viewer";
20849
20926
  export { SurveyLocStringEditor } from "react/string-editor";
20850
20927
  }