survey-react 1.9.126 → 1.9.127

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/modern.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.126
2
+ * surveyjs - Survey JavaScript library v1.9.127
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/modern.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.126
2
+ * surveyjs - Survey JavaScript library v1.9.127
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-react",
3
- "version": "1.9.126",
3
+ "version": "1.9.127",
4
4
  "description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
5
5
  "keywords": [
6
6
  "Survey",
package/survey.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.126
2
+ * surveyjs - Survey JavaScript library v1.9.127
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/survey.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.126
2
+ * surveyjs - Survey JavaScript library v1.9.127
3
3
  * Copyright (c) 2015-2024 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
@@ -37,6 +37,7 @@ declare module "helpers" {
37
37
  static convertDateToString(date: Date): string;
38
38
  static convertDateTimeToString(date: Date): string;
39
39
  static convertValToQuestionVal(val: any, inputType?: string): any;
40
+ static compareVerions(ver1: string, ver2: string): number;
40
41
  }
41
42
  }
42
43
  declare module "localization/english" {
@@ -811,7 +812,7 @@ declare module "popup-view-model" {
811
812
  declare module "utils/utils" {
812
813
  function compareVersions(a: any, b: any): number;
813
814
  function confirmAction(message: string): boolean;
814
- function confirmActionAsync(message: string, funcOnYes: () => void, funcOnNo?: () => void): void;
815
+ function confirmActionAsync(message: string, funcOnYes: () => void, funcOnNo?: () => void, locale?: string): void;
815
816
  function detectIEBrowser(): boolean;
816
817
  function detectIEOrEdge(): boolean;
817
818
  function loadFileFromBase64(b64Data: string, fileName: string): void;
@@ -851,7 +852,7 @@ declare module "utils/utils" {
851
852
  log(action: string): void;
852
853
  get result(): string;
853
854
  }
854
- export function showConfirmDialog(message: string, callback: (res: boolean) => void, applyTitle?: string): boolean;
855
+ export function showConfirmDialog(message: string, callback: (res: boolean) => void, applyTitle?: string, locale?: string): boolean;
855
856
  export { mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild, };
856
857
  }
857
858
  declare module "actions/container" {
@@ -1700,6 +1701,7 @@ declare module "defaultCss/defaultV2Css" {
1700
1701
  small: string;
1701
1702
  controlDisabled: string;
1702
1703
  constrolWithCharacterCounter: string;
1704
+ characterCounterBig: string;
1703
1705
  content: string;
1704
1706
  remainingCharacterCounter: string;
1705
1707
  onError: string;
@@ -2162,6 +2164,8 @@ declare module "trigger" {
2162
2164
  get id(): number;
2163
2165
  getType(): string;
2164
2166
  toString(): string;
2167
+ isGhost: boolean;
2168
+ protected get isInternal(): boolean;
2165
2169
  get operator(): string;
2166
2170
  set operator(value: string);
2167
2171
  get value(): any;
@@ -2395,6 +2399,7 @@ declare module "textPreProcessor" {
2395
2399
  }
2396
2400
  declare module "question_custom" {
2397
2401
  import { Question, IConditionObject } from "question";
2402
+ import { JsonObjectProperty } from "jsonobject";
2398
2403
  import { ISurveyImpl, ISurveyData, ITextProcessor, IPanel, IElement, IQuestion, IProgressInfo } from "base-interfaces";
2399
2404
  import { SurveyElement } from "survey-element";
2400
2405
  import { PanelModel } from "panel";
@@ -2464,6 +2469,7 @@ declare module "question_custom" {
2464
2469
  * ```
2465
2470
  */
2466
2471
  defaultQuestionTitle?: any;
2472
+ inheritBaseProps?: false | true | Array<string>;
2467
2473
  /**
2468
2474
  * A function that is called when the custom question is created. Use it to access questions nested within a [composite question type](https://surveyjs.io/form-library/documentation/customize-question-types/create-composite-question-types).
2469
2475
  *
@@ -2616,6 +2622,7 @@ declare module "question_custom" {
2616
2622
  export class ComponentQuestionJSON {
2617
2623
  name: string;
2618
2624
  json: ICustomQuestionTypeConfiguration;
2625
+ private dynamicProperties;
2619
2626
  constructor(name: string, json: ICustomQuestionTypeConfiguration);
2620
2627
  onInit(): void;
2621
2628
  onCreated(question: Question): void;
@@ -2632,6 +2639,8 @@ declare module "question_custom" {
2632
2639
  setValueToQuestion(val: any): any;
2633
2640
  getValueFromQuestion(val: any): any;
2634
2641
  get isComposite(): boolean;
2642
+ getDynamicProperties(): Array<JsonObjectProperty>;
2643
+ private calcDynamicProperties;
2635
2644
  }
2636
2645
  export class ComponentCollection {
2637
2646
  static Instance: ComponentCollection;
@@ -2709,6 +2718,8 @@ declare module "question_custom" {
2709
2718
  private questionWrapper;
2710
2719
  private hasJSONTitle;
2711
2720
  getTemplate(): string;
2721
+ getDynamicProperties(): Array<JsonObjectProperty>;
2722
+ getDynamicType(): string;
2712
2723
  protected createWrapper(): void;
2713
2724
  protected getElement(): SurveyElement;
2714
2725
  onAnyValueChanged(name: string, questionName: string): void;
@@ -2733,6 +2744,7 @@ declare module "question_custom" {
2733
2744
  protected getValueCore(): any;
2734
2745
  private isSettingValueChanged;
2735
2746
  protected setValueChangedDirectly(val: boolean): void;
2747
+ private createDynamicProperties;
2736
2748
  protected initElement(el: SurveyElement): void;
2737
2749
  updateElementCss(reNew?: boolean): void;
2738
2750
  protected updateElementCssCore(cssClasses: any): void;
@@ -5026,7 +5038,6 @@ declare module "question_matrixdropdowncolumn" {
5026
5038
  private getProperties;
5027
5039
  private removeProperties;
5028
5040
  private addProperties;
5029
- private addProperty;
5030
5041
  }
5031
5042
  }
5032
5043
  declare module "dragdrop/engine" {
@@ -10706,7 +10717,7 @@ declare module "survey" {
10706
10717
  getUpdatedMatrixRowActions(question: QuestionMatrixDropdownModelBase, row: any, actions: Array<IAction>): IAction[];
10707
10718
  scrollElementToTop(element: ISurveyElement, question: Question, page: PageModel, id: string, scrollIfVisible?: boolean): any;
10708
10719
  /**
10709
- * Uploads a file to server.
10720
+ * Uploads files to a server.
10710
10721
  *
10711
10722
  * The following code shows how to call this method:
10712
10723
  *
@@ -13738,10 +13749,14 @@ declare module "base-interfaces" {
13738
13749
  export interface ILoadFromJSONOptions {
13739
13750
  validatePropertyValues?: boolean;
13740
13751
  }
13752
+ export interface ISaveToJSONOptions {
13753
+ storeDefaults?: boolean;
13754
+ version?: string;
13755
+ }
13741
13756
  }
13742
13757
  declare module "jsonobject" {
13743
13758
  import { Base } from "base";
13744
- import { ILoadFromJSONOptions } from "base-interfaces";
13759
+ import { ILoadFromJSONOptions, ISaveToJSONOptions } from "base-interfaces";
13745
13760
  export interface IPropertyDecoratorOptions<T = any> {
13746
13761
  defaultValue?: T;
13747
13762
  defaultSource?: string;
@@ -13813,6 +13828,7 @@ declare module "jsonobject" {
13813
13828
  minValue: any;
13814
13829
  private dataListValue;
13815
13830
  layout: string;
13831
+ version: string;
13816
13832
  onSerializeValue: (obj: any) => any;
13817
13833
  onGetValue: (obj: any) => any;
13818
13834
  onSettingValue: (obj: any, value: any) => any;
@@ -13860,6 +13876,9 @@ declare module "jsonobject" {
13860
13876
  isVisible(layout: string, obj?: any): boolean;
13861
13877
  get visible(): boolean;
13862
13878
  set visible(val: boolean);
13879
+ isAvailableInVersion(ver: string): boolean;
13880
+ getSerializedName(ver: string): string;
13881
+ private isAvailableInVersionCore;
13863
13882
  get isLocalizable(): boolean;
13864
13883
  set isLocalizable(val: boolean);
13865
13884
  get dataList(): Array<string>;
@@ -13933,7 +13952,10 @@ declare module "jsonobject" {
13933
13952
  overrideClassCreator(name: string, creator: () => any): void;
13934
13953
  getProperties(className: string): Array<JsonObjectProperty>;
13935
13954
  getPropertiesByObj(obj: any): Array<JsonObjectProperty>;
13955
+ addDynamicPropertiesIntoObj(dest: any, src: any, props: Array<JsonObjectProperty>): void;
13956
+ private addDynamicPropertyIntoObj;
13936
13957
  getDynamicPropertiesByObj(obj: any, dynamicType?: string): Array<JsonObjectProperty>;
13958
+ getDynamicPropertiesByTypes(objType: string, dynamicType: string, invalidNames?: Array<string>): Array<JsonObjectProperty>;
13937
13959
  hasOriginalProperty(obj: Base, propName: string): boolean;
13938
13960
  getOriginalProperty(obj: Base, propName: string): JsonObjectProperty;
13939
13961
  getProperty(className: string, propertyName: string): JsonObjectProperty;
@@ -14018,15 +14040,16 @@ declare module "jsonobject" {
14018
14040
  errors: JsonError[];
14019
14041
  lightSerializing: boolean;
14020
14042
  options: ILoadFromJSONOptions;
14021
- toJsonObject(obj: any, storeDefaults?: boolean): any;
14043
+ toJsonObject(obj: any, options?: ISaveToJSONOptions | boolean): any;
14022
14044
  toObject(jsonObj: any, obj: any, options?: ILoadFromJSONOptions): void;
14023
14045
  toObjectCore(jsonObj: any, obj: any, options?: ILoadFromJSONOptions): void;
14024
- toJsonObjectCore(obj: any, property: JsonObjectProperty, storeDefaults?: boolean): any;
14046
+ toJsonObjectCore(obj: any, property: JsonObjectProperty, options?: ISaveToJSONOptions | boolean): any;
14025
14047
  private getDynamicProperties;
14026
14048
  private addDynamicProperties;
14027
14049
  private propertiesToJson;
14028
- valueToJson(obj: any, result: any, property: JsonObjectProperty, storeDefaults?: boolean): void;
14050
+ valueToJson(obj: any, result: any, prop: JsonObjectProperty, options?: ISaveToJSONOptions): void;
14029
14051
  valueToObj(value: any, obj: any, property: JsonObjectProperty, jsonObj?: any, options?: ILoadFromJSONOptions): void;
14052
+ private removePosOnValueToJson;
14030
14053
  private removePos;
14031
14054
  private removePosFromObj;
14032
14055
  private isValueArray;
@@ -14050,7 +14073,7 @@ declare module "base" {
14050
14073
  import { HashTable } from "helpers";
14051
14074
  import { JsonObjectProperty } from "jsonobject";
14052
14075
  import { ItemValue } from "itemvalue";
14053
- import { IElement, IFindElement, IProgressInfo, ISurvey, ILoadFromJSONOptions } from "base-interfaces";
14076
+ import { IElement, IFindElement, IProgressInfo, ISurvey, ILoadFromJSONOptions, ISaveToJSONOptions } from "base-interfaces";
14054
14077
  import { ExpressionRunner } from "conditions";
14055
14078
  export class Bindings {
14056
14079
  private obj;
@@ -14220,7 +14243,7 @@ declare module "base" {
14220
14243
  * Returns a JSON object that corresponds to the current SurveyJS object.
14221
14244
  * @see fromJSON
14222
14245
  */
14223
- toJSON(): any;
14246
+ toJSON(options?: ISaveToJSONOptions): any;
14224
14247
  /**
14225
14248
  * Assigns a new configuration to the current SurveyJS object. This configuration is taken from a passed JSON object.
14226
14249
  *
@@ -14384,10 +14407,7 @@ declare module "utils/popup" {
14384
14407
  export class PopupUtils {
14385
14408
  static bottomIndent: number;
14386
14409
  static calculatePosition(targetRect: ClientRect, height: number, width: number, verticalPosition: VerticalPosition, horizontalPosition: HorizontalPosition, showPointer: boolean, positionMode?: PositionMode): INumberPosition;
14387
- static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number): {
14388
- height: number;
14389
- top: number;
14390
- };
14410
+ static getCorrectedVerticalDimensions(top: number, height: number, windowHeight: number, verticalPosition: VerticalPosition): any;
14391
14411
  static updateHorizontalDimensions(left: number, width: number, windowWidth: number, horizontalPosition: HorizontalPosition, positionMode?: PositionMode, margins?: {
14392
14412
  left: number;
14393
14413
  right: number;
@@ -14828,7 +14848,7 @@ declare module "settings" {
14828
14848
  * @param message A message to be displayed in the confirm dialog window.
14829
14849
  * @param callback A callback function that should be called with `true` if a user confirms an action or `false` otherwise.
14830
14850
  */
14831
- confirmActionAsync: (message: string, callback: (res: boolean) => void, applyTitle?: string) => boolean;
14851
+ confirmActionAsync: (message: string, callback: (res: boolean) => void, applyTitle?: string, locale?: string) => boolean;
14832
14852
  /**
14833
14853
  * A minimum width value for all survey elements.
14834
14854
  *
@@ -15373,6 +15393,11 @@ declare module "question_matrix" {
15373
15393
  protected isNewValueCorrect(val: any): boolean;
15374
15394
  protected processRowsOnSet(newRows: Array<any>): MatrixRowModel[];
15375
15395
  get visibleRows(): Array<MatrixRowModel>;
15396
+ /**
15397
+ * An array of matrix cells. Use this array to get or set cell values.
15398
+ *
15399
+ * [View Demo](https://surveyjs.io/form-library/examples/questiontype-matrix-rubric/ (linkStyle))
15400
+ */
15376
15401
  get cells(): MatrixCells;
15377
15402
  set cells(value: MatrixCells);
15378
15403
  get hasCellText(): boolean;
@@ -16048,6 +16073,7 @@ declare module "question_ranking" {
16048
16073
  handleKeydownSelectToRank(event: KeyboardEvent, movedElement: ItemValue): void;
16049
16074
  private setValueAfterKeydown;
16050
16075
  private focusItem;
16076
+ isValueSetByUser: boolean;
16051
16077
  setValue: () => void;
16052
16078
  getIconHoverCss(): string;
16053
16079
  getIconFocusCss(): string;
@@ -16070,6 +16096,7 @@ declare module "question_ranking" {
16070
16096
  */
16071
16097
  get selectToRankEnabled(): boolean;
16072
16098
  set selectToRankEnabled(val: boolean);
16099
+ carryForwardStartUnranked: boolean;
16073
16100
  /**
16074
16101
  * Specifies the layout of the ranked and unranked areas. Applies when [`selectToRankEnabled`](https://surveyjs.io/form-library/documentation/api-reference/ranking-question-model#selectToRankEnabled) is `true`.
16075
16102
  *
@@ -16597,6 +16624,8 @@ declare module "question_boolean" {
16597
16624
  protected supportResponsiveness(): boolean;
16598
16625
  protected getCompactRenderAs(): string;
16599
16626
  protected createActionContainer(allowAdaptiveActions?: boolean): ActionContainer;
16627
+ get isNewA11yStructure(): boolean;
16628
+ get a11y_input_ariaRole(): string;
16600
16629
  }
16601
16630
  }
16602
16631
  declare module "question_image" {