survey-react 1.9.112 → 1.9.113

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.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.112
2
+ * surveyjs - Survey JavaScript library v1.9.113
3
3
  * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/survey.react.d.ts CHANGED
@@ -438,7 +438,7 @@ declare module "jsonobject" {
438
438
  classNamePart: string;
439
439
  baseClassName: string;
440
440
  defaultValueValue: any;
441
- defaultValueFunc: () => any;
441
+ defaultValueFunc: (obj: Base) => any;
442
442
  serializationProperty: string;
443
443
  displayName: string;
444
444
  category: string;
@@ -471,9 +471,11 @@ declare module "jsonobject" {
471
471
  get uniquePropertyName(): string;
472
472
  set uniquePropertyName(val: string);
473
473
  get hasToUseGetValue(): string | ((obj: any) => any);
474
+ getDefaultValue(obj: Base): any;
474
475
  get defaultValue(): any;
475
476
  set defaultValue(newValue: any);
476
477
  isDefaultValue(value: any): boolean;
478
+ isDefaultValueByObj(obj: Base, value: any): boolean;
477
479
  getValue(obj: any): any;
478
480
  getPropertyValue(obj: any): any;
479
481
  get hasToUseSetValue(): string | ((obj: any, value: any, jsonConv: JsonObject) => any);
@@ -1761,6 +1763,7 @@ declare module "defaultCss/defaultV2Css" {
1761
1763
  progressContainer: string;
1762
1764
  progress: string;
1763
1765
  progressBar: string;
1766
+ nested: string;
1764
1767
  progressText: string;
1765
1768
  separator: string;
1766
1769
  panelWrapper: string;
@@ -1827,6 +1830,9 @@ declare module "defaultCss/defaultV2Css" {
1827
1830
  contentLeft: string;
1828
1831
  titleNumInline: string;
1829
1832
  titleLeftRoot: string;
1833
+ titleTopRoot: string;
1834
+ descriptionUnderInputRoot: string;
1835
+ titleBottomRoot: string;
1830
1836
  titleOnAnswer: string;
1831
1837
  titleEmpty: string;
1832
1838
  titleOnError: string;
@@ -1849,6 +1855,8 @@ declare module "defaultCss/defaultV2Css" {
1849
1855
  commentArea: string;
1850
1856
  formGroup: string;
1851
1857
  hasError: string;
1858
+ hasErrorTop: string;
1859
+ hasErrorBottom: string;
1852
1860
  collapsed: string;
1853
1861
  expanded: string;
1854
1862
  nested: string;
@@ -1874,7 +1882,6 @@ declare module "defaultCss/defaultV2Css" {
1874
1882
  root: string;
1875
1883
  icon: string;
1876
1884
  item: string;
1877
- tooltip: string;
1878
1885
  outsideQuestion: string;
1879
1886
  aboveQuestion: string;
1880
1887
  belowQuestion: string;
@@ -4968,7 +4975,7 @@ declare module "question_matrixdynamic" {
4968
4975
  protected updateProgressInfoByValues(res: IProgressInfo): void;
4969
4976
  private getValueForNewRow;
4970
4977
  /**
4971
- * Specifies whether users can drag and drop matrix rows to reorder them.
4978
+ * Specifies whether users can drag and drop matrix rows to reorder them. Applies only if [`columnLayout`](#columnLayout) is `"horizontal"`.
4972
4979
  *
4973
4980
  * Default value: `false`
4974
4981
  */
@@ -5197,6 +5204,210 @@ declare module "textPreProcessor" {
5197
5204
  private processTextCore;
5198
5205
  }
5199
5206
  }
5207
+ declare module "themes" {
5208
+ import { HorizontalAlignment, VerticalAlignment } from "base-interfaces";
5209
+ export type ImageFit = "auto" | "contain" | "cover";
5210
+ export type ImageAttachment = "fixed" | "scroll";
5211
+ /**
5212
+ * A theme configuration interface.
5213
+ *
5214
+ * `ITheme` objects are used to apply predefined themes or create custom themes. Refer to the following help topic for more information:
5215
+ *
5216
+ * [Themes & Styles](https://surveyjs.io/form-library/documentation/manage-default-themes-and-styles (linkStyle))
5217
+ */
5218
+ export interface ITheme {
5219
+ /**
5220
+ * A theme name.
5221
+ */
5222
+ themeName?: string;
5223
+ /**
5224
+ * A color palette.
5225
+ *
5226
+ * Possible values:
5227
+ *
5228
+ * - `"light"`
5229
+ * - `"dark"`
5230
+ */
5231
+ colorPalette?: string;
5232
+ /**
5233
+ * A Boolean value that specifies whether survey questions are displayed within panels (`false`) or without them (`true`).
5234
+ */
5235
+ isPanelless?: boolean;
5236
+ /**
5237
+ * An image to display as survey background. This property accepts a hyperlink or a data URL.
5238
+ */
5239
+ backgroundImage?: string;
5240
+ /**
5241
+ * A string value that specifies how to resize the [background image](#backgroundImage) to fit it into its container.
5242
+ *
5243
+ * Possible values:
5244
+ *
5245
+ * - `"auto"`
5246
+ * - `"contain"`
5247
+ * - `"cover"`
5248
+ *
5249
+ * Refer to the description of the [`background-size`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size#values) CSS property values on MDN for detailed information on the possible values.
5250
+ */
5251
+ backgroundImageFit?: ImageFit;
5252
+ /**
5253
+ * A string value that specifies whether the [background image](#backgroundImage) is fixed in its position or scrolled along with the survey.
5254
+ *
5255
+ * Possible values:
5256
+ *
5257
+ * - `"fixed"`
5258
+ * - `"scroll"`
5259
+ */
5260
+ backgroundImageAttachment?: ImageAttachment;
5261
+ /**
5262
+ * A value from 0 to 1 that specifies how transparent the [background image](#backgroundImage) should be: 0 makes the image completely transparent, and 1 makes it opaque.
5263
+ */
5264
+ backgroundOpacity?: number;
5265
+ /**
5266
+ * An object with [advanced survey header settings](https://surveyjs.io/form-library/documentation/api-reference/iheader). Applies when `SurveyModel`'s [`headerView`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#headerView) property is set to `"advanced"`.
5267
+ */
5268
+ header?: IHeader;
5269
+ /**
5270
+ * An object with CSS variables.
5271
+ */
5272
+ cssVariables?: {
5273
+ [index: string]: string;
5274
+ };
5275
+ }
5276
+ /**
5277
+ * A survey header configuration interface.
5278
+ *
5279
+ * An `IHeader` object configures advanced survey header appearance settings. To apply them, you need to assign the object to the [`header`](https://surveyjs.io/form-library/documentation/api-reference/itheme#header) property of your theme configuration and set `SurveyModel`'s [`headerView`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#headerView) property to `"advanced"`.
5280
+ */
5281
+ export interface IHeader {
5282
+ /**
5283
+ * The height of the survey header in pixels.
5284
+ *
5285
+ * Default value: 256
5286
+ */
5287
+ height: number;
5288
+ /**
5289
+ * A string value that specifies whether the header spans the width of the survey or that of the survey container.
5290
+ *
5291
+ * Possible values:
5292
+ *
5293
+ * - `"survey"` (default)\
5294
+ * The header width is the same as the survey width.
5295
+ * - `"container"`\
5296
+ * The header width is the same as the survey container width.
5297
+ *
5298
+ * @see [SurveyModel.width](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#width)
5299
+ * @see [SurveyModel.widthMode](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#widthMode)
5300
+ */
5301
+ inheritWidthFrom: "survey" | "container";
5302
+ /**
5303
+ * The width of the header area that contains the survey [title](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#title) and [description](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#description), measured in pixels.
5304
+ *
5305
+ * Default value: 512
5306
+ */
5307
+ textAreaWidth: number;
5308
+ /**
5309
+ * A Boolean value that specifies whether the header overlaps the survey content.
5310
+ *
5311
+ * Default value: `false`
5312
+ */
5313
+ overlapEnabled: boolean;
5314
+ /**
5315
+ * An image to display in the background of the header. Accepts a base64 or URL string value.
5316
+ */
5317
+ backgroundImage: string;
5318
+ /**
5319
+ * A value from 0 to 1 that specifies how transparent the [background image](#backgroundImage) should be: 0 makes the image completely transparent, and 1 makes it opaque.
5320
+ */
5321
+ backgroundImageOpacity: number;
5322
+ /**
5323
+ * A string value that specifies how to resize a [background image](#backgroundImage) to fit it into the header.
5324
+ *
5325
+ * Possible values:
5326
+ *
5327
+ * - `"cover"` (default)\
5328
+ * Scales the image to the smallest possible size that fills the header. The image preserves its aspect ratio but can be cropped if the header's proportions differ from that of the element.
5329
+ * - `"fill"`\
5330
+ * Stretches the image to fill the entire header.
5331
+ * - `"contain"`\
5332
+ * Scales the image to the largest possible size without cropping or stretching it.
5333
+ * - `"tile"`\
5334
+ * Tiles as many copies of the image as needed to fill the entire header.
5335
+ */
5336
+ backgroundImageFit: "cover" | "fill" | "contain" | "tile";
5337
+ /**
5338
+ * A string value that specifies the logo position within the header in the horizontal direction.
5339
+ *
5340
+ * Possible values:
5341
+ *
5342
+ * - `"right"` (default)
5343
+ * - `"left"`
5344
+ * - `"center"`
5345
+ *
5346
+ * To specify a logo, set `SurveyModel`'s [`logo`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#logo) property.
5347
+ */
5348
+ logoPositionX: HorizontalAlignment;
5349
+ /**
5350
+ * A string value that specifies the logo position within the header in the vertical direction.
5351
+ *
5352
+ * Possible values:
5353
+ *
5354
+ * - `"top"` (default)
5355
+ * - `"bottom"`
5356
+ * - `"middle"`
5357
+ *
5358
+ * To specify a logo, set `SurveyModel`'s [`logo`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#logo) property.
5359
+ */
5360
+ logoPositionY: VerticalAlignment;
5361
+ /**
5362
+ * A string value that specifies the survey title position within the header in the horizontal direction.
5363
+ *
5364
+ * Possible values:
5365
+ *
5366
+ * - `"left"` (default)
5367
+ * - `"right"`
5368
+ * - `"center"`
5369
+ *
5370
+ * To specify a survey title, set `SurveyModel`'s [`title`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#title) property.
5371
+ */
5372
+ titlePositionX: HorizontalAlignment;
5373
+ /**
5374
+ * A string value that specifies the survey title position within the header in the vertical direction.
5375
+ *
5376
+ * Possible values:
5377
+ *
5378
+ * - `"bottom"` (default)
5379
+ * - `"top"`
5380
+ * - `"middle"`
5381
+ *
5382
+ * To specify a survey title, set `SurveyModel`'s [`title`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#title) property.
5383
+ */
5384
+ titlePositionY: VerticalAlignment;
5385
+ /**
5386
+ * A string value that specifies the survey description position within the header in the horizontal direction.
5387
+ *
5388
+ * Possible values:
5389
+ *
5390
+ * - `"left"` (default)
5391
+ * - `"right"`
5392
+ * - `"center"`
5393
+ *
5394
+ * To specify a survey description, set `SurveyModel`'s [`description`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#description) property.
5395
+ */
5396
+ descriptionPositionX: HorizontalAlignment;
5397
+ /**
5398
+ * A string value that specifies the survey description position within the header in the vertical direction.
5399
+ *
5400
+ * Possible values:
5401
+ *
5402
+ * - `"bottom"` (default)
5403
+ * - `"top"`
5404
+ * - `"middle"`
5405
+ *
5406
+ * To specify a survey description, set `SurveyModel`'s [`description`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#description) property.
5407
+ */
5408
+ descriptionPositionY: VerticalAlignment;
5409
+ }
5410
+ }
5200
5411
  declare module "question_paneldynamic" {
5201
5412
  import { HashTable } from "helpers";
5202
5413
  import { IElement, IQuestion, IPanel, ISurveyData, ISurvey, ISurveyImpl, ITextProcessor, IProgressInfo, IPlainDataOptions } from "base-interfaces";
@@ -5207,6 +5418,7 @@ declare module "question_paneldynamic" {
5207
5418
  import { ActionContainer } from "actions/container";
5208
5419
  import { IAction } from "actions/action";
5209
5420
  import { AdaptiveActionContainer } from "actions/adaptive-container";
5421
+ import { ITheme } from "themes";
5210
5422
  export interface IQuestionPanelDynamicData {
5211
5423
  getItemIndex(item: ISurveyData): number;
5212
5424
  getVisibleItemIndex(item: ISurveyData): number;
@@ -5483,6 +5695,7 @@ declare module "question_paneldynamic" {
5483
5695
  protected getValueCore(): any;
5484
5696
  protected setValueCore(newValue: any): void;
5485
5697
  setIsMobile(val: boolean): void;
5698
+ themeChanged(theme: ITheme): void;
5486
5699
  /**
5487
5700
  * The number of panels in Dynamic Panel.
5488
5701
  * @see minPanelCount
@@ -5813,77 +6026,6 @@ declare module "question_paneldynamic" {
5813
6026
  protected calcCssClasses(css: any): any;
5814
6027
  }
5815
6028
  }
5816
- declare module "themes" {
5817
- export type ImageFit = "auto" | "contain" | "cover";
5818
- export type ImageAttachment = "fixed" | "scroll";
5819
- /**
5820
- * A theme configuration interface.
5821
- *
5822
- * `ITheme` objects are used to apply predefined themes or create custom themes. Refer to the following help topic for more information:
5823
- *
5824
- * [Themes & Styles](https://surveyjs.io/form-library/documentation/manage-default-themes-and-styles (linkStyle))
5825
- */
5826
- export interface ITheme {
5827
- /**
5828
- * A theme name.
5829
- */
5830
- themeName?: string;
5831
- /**
5832
- * A color palette.
5833
- *
5834
- * Possible values:
5835
- *
5836
- * - `"light"`
5837
- * - `"dark"`
5838
- */
5839
- colorPalette?: string;
5840
- /**
5841
- * A Boolean value that specifies whether survey questions are displayed within panels (`false`) or without them (`true`).
5842
- */
5843
- isPanelless?: boolean;
5844
- /**
5845
- * An image to display as survey background. This property accepts a hyperlink or a data URL.
5846
- */
5847
- backgroundImage?: string;
5848
- /**
5849
- * A string value that specifies how to resize the [background image](#backgroundImage) to fit it into its container.
5850
- *
5851
- * Possible values:
5852
- *
5853
- * - `"auto"`
5854
- * - `"contain"`
5855
- * - `"cover"`
5856
- *
5857
- * Refer to the description of the [`background-size`](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size#values) CSS property values on MDN for detailed information on the possible values.
5858
- */
5859
- backgroundImageFit?: ImageFit;
5860
- /**
5861
- * A string value that specifies whether the [background image](#backgroundImage) is fixed in its position or scrolled along with the survey.
5862
- *
5863
- * Possible values:
5864
- *
5865
- * - `"fixed"`
5866
- * - `"scroll"`
5867
- */
5868
- backgroundImageAttachment?: ImageAttachment;
5869
- /**
5870
- * A value from 0 to 1 that specifies how transparent the [background image](#backgroundImage) should be: 0 makes the image completely transparent, and 1 makes it opaque.
5871
- */
5872
- backgroundOpacity?: number;
5873
- /**
5874
- * An object with survey header settings.
5875
- */
5876
- header?: {
5877
- [index: string]: any;
5878
- };
5879
- /**
5880
- * An object with CSS variables.
5881
- */
5882
- cssVariables?: {
5883
- [index: string]: string;
5884
- };
5885
- }
5886
- }
5887
6029
  declare module "survey-events-api" {
5888
6030
  import { IAction } from "actions/action";
5889
6031
  import { Base } from "base";
@@ -5900,7 +6042,6 @@ declare module "survey-events-api" {
5900
6042
  import { QuestionPanelDynamicModel } from "question_paneldynamic";
5901
6043
  import { SurveyModel } from "survey";
5902
6044
  import { SurveyError } from "survey-error";
5903
- import { ITheme } from "themes";
5904
6045
  import { Trigger } from "trigger";
5905
6046
  export interface QuestionEventMixin {
5906
6047
  /**
@@ -6848,9 +6989,6 @@ declare module "survey-events-api" {
6848
6989
  */
6849
6990
  visible: boolean;
6850
6991
  }
6851
- export interface ThemeAppliedEvent {
6852
- theme: ITheme;
6853
- }
6854
6992
  }
6855
6993
  declare module "drag-drop-page-helper-v1" {
6856
6994
  import { IElement, ISurveyElement } from "base-interfaces";
@@ -6892,13 +7030,16 @@ declare module "page" {
6892
7030
  protected canShowPageNumber(): boolean;
6893
7031
  protected canShowTitle(): boolean;
6894
7032
  /**
6895
- * A caption displayed on a navigation button in the TOC or progress bar. Applies when [`showTOC`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showTOC) is `true` or when [`showProgressBar`](https://surveyjs.io/form-library/documentation/surveymodel#showProgressBar) is `true` and [`progressBarType`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarType) is `"buttons"`.
7033
+ * A caption displayed on a navigation button in the TOC or progress bar. Applies when [`showTOC`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showTOC) is `true` or when the [progress bar is visible](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showProgressBar) and [`progressBarType`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarType) is set to `"buttons"`.
6896
7034
  *
6897
7035
  * If navigation titles are unspecified, the navigation buttons display page [titles](https://surveyjs.io/form-library/documentation/api-reference/page-model#title) or [names](https://surveyjs.io/form-library/documentation/pagemodel#name).
6898
7036
  */
6899
7037
  get navigationTitle(): string;
6900
7038
  set navigationTitle(val: string);
6901
7039
  get locNavigationTitle(): LocalizableString;
7040
+ /**
7041
+ * Explanatory text displayed under a navigation button in the progress bar. Applies when the [progress bar is visible](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showProgressBar) and `SurveyModel`'s [`progressBarType`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarType) property is set to `"buttons"`.
7042
+ */
6902
7043
  get navigationDescription(): string;
6903
7044
  set navigationDescription(val: string);
6904
7045
  get locNavigationDescription(): LocalizableString;
@@ -7062,6 +7203,7 @@ declare module "surveytimer" {
7062
7203
  export var surveyTimerFunctions: {
7063
7204
  setTimeout: (func: () => any) => number;
7064
7205
  clearTimeout: (timerId: number) => void;
7206
+ safeTimeOut: (func: () => any, delay: number) => number;
7065
7207
  };
7066
7208
  export class SurveyTimer {
7067
7209
  private static instanceValue;
@@ -7406,6 +7548,7 @@ declare module "question_text" {
7406
7548
  onBlur: (event: any) => void;
7407
7549
  onFocus: (event: any) => void;
7408
7550
  }
7551
+ export function isMinMaxType(obj: any): boolean;
7409
7552
  }
7410
7553
  declare module "question_multipletext" {
7411
7554
  import { Base } from "base";
@@ -7500,6 +7643,16 @@ declare module "question_multipletext" {
7500
7643
  */
7501
7644
  get size(): number;
7502
7645
  set size(val: number);
7646
+ /**
7647
+ * The minimum value specified as an expression. For example, `"minValueExpression": "today(-1)"` sets the minimum value to yesterday.
7648
+ */
7649
+ get minValueExpression(): string;
7650
+ set minValueExpression(val: string);
7651
+ /**
7652
+ * The maximum value specified as an expression. For example, `"maxValueExpression": "today(1)"` sets the maximum value to tomorrow.
7653
+ */
7654
+ get maxValueExpression(): string;
7655
+ set maxValueExpression(val: string);
7503
7656
  /**
7504
7657
  * The list of question validators.
7505
7658
  */
@@ -7705,7 +7858,7 @@ declare module "cover" {
7705
7858
  getType(): string;
7706
7859
  cells: CoverCell[];
7707
7860
  height: number;
7708
- inheritWidthFrom: "survey" | "page";
7861
+ inheritWidthFrom: "survey" | "container";
7709
7862
  textAreaWidth: number;
7710
7863
  textGlowEnabled: boolean;
7711
7864
  overlapEnabled: boolean;
@@ -7734,6 +7887,7 @@ declare module "cover" {
7734
7887
  };
7735
7888
  coverClasses: string;
7736
7889
  contentClasses: string;
7890
+ maxWidth: string;
7737
7891
  backgroundImageClasses: string;
7738
7892
  get renderedHeight(): string;
7739
7893
  get renderedtextAreaWidth(): string;
@@ -7768,7 +7922,7 @@ declare module "survey" {
7768
7922
  import { ActionContainer } from "actions/container";
7769
7923
  import { QuestionPanelDynamicModel } from "question_paneldynamic";
7770
7924
  import { Notifier } from "notifier";
7771
- import { TriggerExecutedEvent, CompletingEvent, CompleteEvent, ShowingPreviewEvent, NavigateToUrlEvent, CurrentPageChangingEvent, CurrentPageChangedEvent, ValueChangingEvent, ValueChangedEvent, VariableChangedEvent, QuestionVisibleChangedEvent, PageVisibleChangedEvent, PanelVisibleChangedEvent, QuestionCreatedEvent, QuestionAddedEvent, QuestionRemovedEvent, PanelAddedEvent, PanelRemovedEvent, PageAddedEvent, ValidateQuestionEvent, SettingQuestionErrorsEvent, ValidatePanelEvent, ErrorCustomTextEvent, ValidatedErrorsOnCurrentPageEvent, ProcessHtmlEvent, GetQuestionTitleEvent, GetTitleTagNameEvent, GetQuestionNoEvent, ProgressTextEvent, TextMarkdownEvent, TextRenderAsEvent, SendResultEvent, GetResultEvent, UploadFilesEvent, DownloadFileEvent, ClearFilesEvent, LoadChoicesFromServerEvent, ProcessTextValueEvent, UpdateQuestionCssClassesEvent, UpdatePanelCssClassesEvent, UpdatePageCssClassesEvent, UpdateChoiceItemCssEvent, AfterRenderSurveyEvent, AfterRenderHeaderEvent, AfterRenderPageEvent, AfterRenderQuestionEvent, AfterRenderQuestionInputEvent, AfterRenderPanelEvent, FocusInQuestionEvent, FocusInPanelEvent, ShowingChoiceItemEvent, ChoicesLazyLoadEvent, GetChoiceDisplayValueEvent, MatrixRowAddedEvent, MatrixBeforeRowAddedEvent, MatrixRowRemovingEvent, MatrixRowRemovedEvent, MatrixAllowRemoveRowEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent, MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, TimerPanelInfoTextEvent, DynamicPanelItemValueChangedEvent, DynamicPanelGetTabTitleEvent, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent, ThemeAppliedEvent } from "survey-events-api";
7925
+ import { TriggerExecutedEvent, CompletingEvent, CompleteEvent, ShowingPreviewEvent, NavigateToUrlEvent, CurrentPageChangingEvent, CurrentPageChangedEvent, ValueChangingEvent, ValueChangedEvent, VariableChangedEvent, QuestionVisibleChangedEvent, PageVisibleChangedEvent, PanelVisibleChangedEvent, QuestionCreatedEvent, QuestionAddedEvent, QuestionRemovedEvent, PanelAddedEvent, PanelRemovedEvent, PageAddedEvent, ValidateQuestionEvent, SettingQuestionErrorsEvent, ValidatePanelEvent, ErrorCustomTextEvent, ValidatedErrorsOnCurrentPageEvent, ProcessHtmlEvent, GetQuestionTitleEvent, GetTitleTagNameEvent, GetQuestionNoEvent, ProgressTextEvent, TextMarkdownEvent, TextRenderAsEvent, SendResultEvent, GetResultEvent, UploadFilesEvent, DownloadFileEvent, ClearFilesEvent, LoadChoicesFromServerEvent, ProcessTextValueEvent, UpdateQuestionCssClassesEvent, UpdatePanelCssClassesEvent, UpdatePageCssClassesEvent, UpdateChoiceItemCssEvent, AfterRenderSurveyEvent, AfterRenderHeaderEvent, AfterRenderPageEvent, AfterRenderQuestionEvent, AfterRenderQuestionInputEvent, AfterRenderPanelEvent, FocusInQuestionEvent, FocusInPanelEvent, ShowingChoiceItemEvent, ChoicesLazyLoadEvent, GetChoiceDisplayValueEvent, MatrixRowAddedEvent, MatrixBeforeRowAddedEvent, MatrixRowRemovingEvent, MatrixRowRemovedEvent, MatrixAllowRemoveRowEvent, MatrixCellCreatingEvent, MatrixCellCreatedEvent, MatrixAfterCellRenderEvent, MatrixCellValueChangedEvent, MatrixCellValueChangingEvent, MatrixCellValidateEvent, DynamicPanelModifiedEvent, DynamicPanelRemovingEvent, TimerPanelInfoTextEvent, DynamicPanelItemValueChangedEvent, DynamicPanelGetTabTitleEvent, IsAnswerCorrectEvent, DragDropAllowEvent, ScrollingElementToTopEvent, GetQuestionTitleActionsEvent, GetPanelTitleActionsEvent, GetPageTitleActionsEvent, GetPanelFooterActionsEvent, GetMatrixRowActionsEvent, ElementContentVisibilityChangedEvent, GetExpressionDisplayValueEvent, ServerValidateQuestionsEvent, MultipleTextItemAddedEvent, MatrixColumnAddedEvent, GetQuestionDisplayValueEvent, PopupVisibleChangedEvent } from "survey-events-api";
7772
7926
  import { QuestionMatrixDropdownModelBase } from "question_matrixdropdownbase";
7773
7927
  import { QuestionMatrixDynamicModel } from "question_matrixdynamic";
7774
7928
  import { QuestionFileModel } from "question_file";
@@ -7810,12 +7964,6 @@ declare module "survey" {
7810
7964
  private editingObjValue;
7811
7965
  private timerModelValue;
7812
7966
  private navigationBarValue;
7813
- onThemeApplying: EventBase<SurveyModel>;
7814
- /**
7815
- * An event that is raised after a [theme](/form-library/documentation/manage-default-themes-and-styles) is [applied](#applyTheme) to the survey.
7816
- * @see applyTheme
7817
- */
7818
- onThemeApplied: EventBase<SurveyModel, ThemeAppliedEvent>;
7819
7967
  /**
7820
7968
  * An event that is raised after a [trigger](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#triggers) is executed.
7821
7969
  *
@@ -8496,6 +8644,17 @@ declare module "survey" {
8496
8644
  loadingBodyCss: string;
8497
8645
  containerCss: string;
8498
8646
  fitToContainer: boolean;
8647
+ /**
8648
+ * Specifies whether the survey header uses only basic appearance settings or applies advanced settings from the survey theme.
8649
+ *
8650
+ * Possible values:
8651
+ *
8652
+ * - `"basic"` (default)\
8653
+ * A basic header view applies only the [`title`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#title), [`description`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#description), and logo-related properties ([`logo`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#logo), [`logoPosition`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#logoPosition), etc.).
8654
+ *
8655
+ * - `"advanced"`\
8656
+ * An advanced header view applies the same properties as the basic view, plus [header settings](https://surveyjs.io/form-library/documentation/api-reference/iheader) from the [survey theme](https://surveyjs.io/form-library/documentation/api-reference/itheme#header). The advanced view features a more flexible header layout, a capability to specify a background image, and other settings that give a more professional look to the survey header.
8657
+ */
8499
8658
  headerView: "advanced" | "basic";
8500
8659
  private getNavigationCss;
8501
8660
  private lazyRenderingValue;
@@ -8743,6 +8902,7 @@ declare module "survey" {
8743
8902
  * > If any of the following questions is answered last, the survey does not switch to the next page: Checkboxes, Yes/No (Boolean) (rendered as Checkbox), Long Text, Signature, Image Picker (with Multi Select), File Upload, Single-Select Matrix (not all rows are answered), Dynamic Matrix, Dynamic Panel.
8744
8903
  *
8745
8904
  * [View Demo](https://surveyjs.io/form-library/examples/automatically-move-to-next-page-if-answer-selected/ (linkStyle))
8905
+ * @see [`settings.autoAdvanceDelay`](https://surveyjs.io/form-library/documentation/api-reference/settings#autoAdvanceDelay)
8746
8906
  */
8747
8907
  get goNextPageAutomatic(): boolean | "autogonext";
8748
8908
  set goNextPageAutomatic(val: boolean | "autogonext");
@@ -8750,6 +8910,7 @@ declare module "survey" {
8750
8910
  * Specifies whether to complete the survey automatically after a user answers all questions on the last page. Applies only if the [`goNextPageAutomatic`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#goNextPageAutomatic) property is `true`.
8751
8911
  *
8752
8912
  * Default value: `true`
8913
+ * @see [`settings.autoAdvanceDelay`](https://surveyjs.io/form-library/documentation/api-reference/settings#autoAdvanceDelay)
8753
8914
  */
8754
8915
  get allowCompleteSurveyAutomatic(): boolean;
8755
8916
  set allowCompleteSurveyAutomatic(val: boolean);
@@ -10441,9 +10602,9 @@ declare module "survey" {
10441
10602
  *
10442
10603
  * [Themes & Styles](/form-library/documentation/manage-default-themes-and-styles (linkStyle))
10443
10604
  * @param theme An [`ITheme`](/form-library/documentation/api-reference/itheme) object with theme settings.
10444
- * @see onThemeApplied
10445
10605
  */
10446
10606
  applyTheme(theme: ITheme): void;
10607
+ themeChanged(theme: ITheme): void;
10447
10608
  /**
10448
10609
  * Disposes of the survey model.
10449
10610
  *
@@ -10916,6 +11077,7 @@ declare module "question" {
10916
11077
  import { QuestionCustomWidget } from "questionCustomWidgets";
10917
11078
  import { SurveyError } from "survey-error";
10918
11079
  import { PopupModel } from "popup";
11080
+ import { ITheme } from "themes";
10919
11081
  export interface IConditionObject {
10920
11082
  name: string;
10921
11083
  text: string;
@@ -10984,6 +11146,7 @@ declare module "question" {
10984
11146
  protected allowMobileInDesignMode(): boolean;
10985
11147
  updateIsMobileFromSurvey(): void;
10986
11148
  setIsMobile(val: boolean): void;
11149
+ themeChanged(theme: ITheme): void;
10987
11150
  isMobile: boolean;
10988
11151
  forceIsInputReadOnly: boolean;
10989
11152
  constructor(name: string);
@@ -13198,6 +13361,7 @@ declare module "popup" {
13198
13361
  onShow: () => void;
13199
13362
  cssClass: string;
13200
13363
  title: string;
13364
+ overlayDisplayMode: "auto" | "overlay" | "dropdown-overlay";
13201
13365
  displayMode: "popup" | "overlay";
13202
13366
  positionMode: PositionMode;
13203
13367
  onVisibilityChanged: EventBase<PopupModel>;
@@ -13681,6 +13845,12 @@ declare module "settings" {
13681
13845
  notifications: {
13682
13846
  lifetime: number;
13683
13847
  };
13848
+ /**
13849
+ * Specifies how many milliseconds a survey should wait before it automatically switches to the next page. Applies only when [auto-advance](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#goNextPageAutomatic) is enabled.
13850
+ *
13851
+ * Default value: 300
13852
+ */
13853
+ autoAdvanceDelay: number;
13684
13854
  /**
13685
13855
  * Specifies the direction in which to lay out Checkbox and Radiogroup items. This setting affects the resulting UI when items are arranged in [more than one column](https://surveyjs.io/form-library/documentation/api-reference/checkbox-question-model#colCount).
13686
13856
  *
@@ -13926,6 +14096,7 @@ declare module "question_dropdown" {
13926
14096
  locStrsChanged(): void;
13927
14097
  get showOptionsCaption(): boolean;
13928
14098
  set showOptionsCaption(val: boolean);
14099
+ get showClearButton(): boolean;
13929
14100
  get optionsCaption(): string;
13930
14101
  set optionsCaption(val: string);
13931
14102
  /**
@@ -14529,6 +14700,7 @@ declare module "question_tagbox" {
14529
14700
  getInputId(): string;
14530
14701
  dispose(): void;
14531
14702
  clearValue(): void;
14703
+ get showClearButton(): boolean;
14532
14704
  get isNewA11yStructure(): boolean;
14533
14705
  }
14534
14706
  }
@@ -14722,6 +14894,10 @@ declare module "dragdrop/ranking-select-to-rank" {
14722
14894
  protected isDropTargetValid(dropTarget: ItemValue | string, dropTargetNode?: HTMLElement): boolean;
14723
14895
  protected afterDragOver(dropTargetNode: HTMLElement): void;
14724
14896
  doRankBetween(dropTargetNode: HTMLElement, fromChoicesArray: Array<ItemValue>, toChoicesArray: Array<ItemValue>, rankFunction: Function): void;
14897
+ getIndixies(model: any, fromChoicesArray: Array<ItemValue>, toChoicesArray: Array<ItemValue>): {
14898
+ fromIndex: number;
14899
+ toIndex: number;
14900
+ };
14725
14901
  private doUIEffects;
14726
14902
  private get isDraggedElementRanked();
14727
14903
  private get isDropTargetRanked();
@@ -14785,8 +14961,7 @@ declare module "question_ranking" {
14785
14961
  protected supportSelectAll(): boolean;
14786
14962
  supportOther(): boolean;
14787
14963
  supportNone(): boolean;
14788
- private handleArrowUp;
14789
- private handleArrowDown;
14964
+ private handleArrowKeys;
14790
14965
  handleKeydownSelectToRank(event: KeyboardEvent, movedElement: ItemValue): void;
14791
14966
  private setValueAfterKeydown;
14792
14967
  private focusItem;
@@ -14954,6 +15129,7 @@ declare module "question_rating" {
14954
15129
  import { Base } from "base";
14955
15130
  import { DropdownListModel } from "dropdownListModel";
14956
15131
  import { ISurveyImpl } from "base-interfaces";
15132
+ import { ITheme } from "themes";
14957
15133
  export class RenderedRatingItem extends Base {
14958
15134
  itemValue: ItemValue;
14959
15135
  private locString;
@@ -15165,7 +15341,12 @@ declare module "question_rating" {
15165
15341
  rateColorMode: "default" | "scale";
15166
15342
  get isStar(): boolean;
15167
15343
  get isSmiley(): boolean;
15168
- get itemComponentName(): "sv-rating-item-star" | "sv-rating-item-smiley" | "sv-rating-item";
15344
+ getDefaultItemComponent(): string;
15345
+ /**
15346
+ * The name of a component used to render items.
15347
+ */
15348
+ get itemComponent(): string;
15349
+ set itemComponent(value: string);
15169
15350
  protected valueToData(val: any): any;
15170
15351
  setValueFromClick(value: any): void;
15171
15352
  onItemMouseIn(item: RenderedRatingItem): void;
@@ -15205,6 +15386,7 @@ declare module "question_rating" {
15205
15386
  get dropdownListModel(): DropdownListModel;
15206
15387
  protected updateCssClasses(res: any, css: any): void;
15207
15388
  protected calcCssClasses(css: any): any;
15389
+ themeChanged(theme: ITheme): void;
15208
15390
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
15209
15391
  dispose(): void;
15210
15392
  }
@@ -15397,7 +15579,7 @@ declare module "question_image" {
15397
15579
  }
15398
15580
  declare module "question_signaturepad" {
15399
15581
  import { Question } from "question";
15400
- import { ISurveyImpl } from "base-interfaces";
15582
+ import { ITheme } from "themes";
15401
15583
  /**
15402
15584
  * A class that describes the Signature question type.
15403
15585
  *
@@ -15413,7 +15595,7 @@ declare module "question_signaturepad" {
15413
15595
  getType(): string;
15414
15596
  afterRenderQuestionElement(el: HTMLElement): void;
15415
15597
  beforeDestroyQuestionElement(el: HTMLElement): void;
15416
- setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
15598
+ themeChanged(theme: ITheme): void;
15417
15599
  initSignaturePad(el: HTMLElement): void;
15418
15600
  destroySignaturePad(el: HTMLElement): void;
15419
15601
  /**
@@ -16105,6 +16287,7 @@ declare module "entries/chunks/model" {
16105
16287
  export var ReleaseDate: string;
16106
16288
  export function checkLibraryVersion(ver: string, libraryName: string): void;
16107
16289
  export function setLicenseKey(key: string): void;
16290
+ export function slk(key: string): void;
16108
16291
  export function hasLicense(index: number): boolean;
16109
16292
  export { settings, ISurveyEnvironment } from "settings";
16110
16293
  export { Helpers, HashTable } from "helpers";