survey-react 1.11.8 → 1.11.9

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.11.8
2
+ * surveyjs - Survey JavaScript library v1.11.9
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.11.8
2
+ * surveyjs - Survey JavaScript library v1.11.9
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.11.8",
3
+ "version": "1.11.9",
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.11.8
2
+ * surveyjs - Survey JavaScript library v1.11.9
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.11.8
2
+ * surveyjs - Survey JavaScript library v1.11.9
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
@@ -3052,6 +3052,7 @@ declare module "question_custom" {
3052
3052
  getFilteredValues(): any;
3053
3053
  getFilteredProperties(): any;
3054
3054
  findQuestionByName(name: string): IQuestion;
3055
+ getEditingSurveyElement(): Base;
3055
3056
  addElement(element: IElement, index: number): void;
3056
3057
  removeElement(element: IElement): boolean;
3057
3058
  getQuestionTitleLocation(): string;
@@ -3121,6 +3122,12 @@ declare module "question_custom" {
3121
3122
  get contentPanel(): PanelModel;
3122
3123
  hasErrors(fireCallback?: boolean, rec?: any): boolean;
3123
3124
  updateElementCss(reNew?: boolean): void;
3125
+ dispose(): void;
3126
+ private editingObjValue;
3127
+ private onEditingObjPropertyChanged;
3128
+ private updateEditingObj;
3129
+ private unConnectEditingObj;
3130
+ getEditingSurveyElement(): Base;
3124
3131
  getTextProcessor(): ITextProcessor;
3125
3132
  findQuestionByName(name: string): IQuestion;
3126
3133
  protected clearValueIfInvisibleCore(reason: string): void;
@@ -3129,6 +3136,7 @@ declare module "question_custom" {
3129
3136
  get isContainer(): boolean;
3130
3137
  protected createPanel(): PanelModel;
3131
3138
  protected onReadOnlyChanged(): void;
3139
+ updateValueFromSurvey(newValue: any, clearData?: boolean): void;
3132
3140
  onSurveyLoad(): void;
3133
3141
  private setIsContentElement;
3134
3142
  setVisibleIndex(val: number): number;
@@ -4093,7 +4101,8 @@ declare module "question_file" {
4093
4101
  protected processResponsiveness(_: number, availableWidth: number): boolean;
4094
4102
  private rootElement;
4095
4103
  private canDragDrop;
4096
- afterRender(el: HTMLElement): void;
4104
+ afterRenderQuestionElement(el: HTMLElement): void;
4105
+ beforeDestroyQuestionElement(el: HTMLElement): void;
4097
4106
  private dragCounter;
4098
4107
  onDragEnter: (event: any) => void;
4099
4108
  onDragOver: (event: any) => boolean;
@@ -4784,11 +4793,6 @@ declare module "question_baseselect" {
4784
4793
  get hasHeadItems(): boolean;
4785
4794
  get hasFootItems(): boolean;
4786
4795
  get columns(): any[];
4787
- protected getObservedElementSelector(): string;
4788
- protected supportResponsiveness(): boolean;
4789
- allowMultiColumns: boolean;
4790
- protected onBeforeSetCompactRenderer(): void;
4791
- protected onBeforeSetDesktopRenderer(): void;
4792
4796
  get hasColumns(): boolean;
4793
4797
  get rowLayout(): boolean;
4794
4798
  get blockedRow(): boolean;
@@ -6291,6 +6295,7 @@ declare module "question_paneldynamic" {
6291
6295
  import { HashTable } from "helpers";
6292
6296
  import { IElement, IQuestion, IPanel, ISurveyData, ISurvey, ISurveyImpl, ITextProcessor, IProgressInfo, IPlainDataOptions } from "base-interfaces";
6293
6297
  import { LocalizableString } from "localizablestring";
6298
+ import { Base } from "base";
6294
6299
  import { Question, IConditionObject, IQuestionPlainData } from "question";
6295
6300
  import { PanelModel } from "panel";
6296
6301
  import { SurveyError } from "survey-error";
@@ -6326,6 +6331,7 @@ declare module "question_paneldynamic" {
6326
6331
  getComment(name: string): string;
6327
6332
  setComment(name: string, newValue: string, locNotification: any): void;
6328
6333
  findQuestionByName(name: string): IQuestion;
6334
+ getEditingSurveyElement(): Base;
6329
6335
  getAllValues(): any;
6330
6336
  getFilteredValues(): any;
6331
6337
  getFilteredProperties(): any;
@@ -8808,6 +8814,7 @@ declare module "question_text" {
8808
8814
  private hasToConvertToUTC;
8809
8815
  protected valueForSurveyCore(val: any): any;
8810
8816
  protected valueFromDataCore(val: any): any;
8817
+ private dateValidationMessage;
8811
8818
  protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void;
8812
8819
  protected canSetValueToSurvey(): boolean;
8813
8820
  protected convertFuncValuetoQuestionValue(val: any): any;
@@ -8846,6 +8853,7 @@ declare module "question_text" {
8846
8853
  private updateValueOnEvent;
8847
8854
  onCompositionUpdate: (event: any) => void;
8848
8855
  onKeyUp: (event: any) => void;
8856
+ private updateDateValidationMessage;
8849
8857
  onKeyDown: (event: any) => void;
8850
8858
  onChange: (event: any) => void;
8851
8859
  onBlur: (event: any) => void;
@@ -9041,6 +9049,7 @@ declare module "question_multipletext" {
9041
9049
  getFilteredValues(): any;
9042
9050
  getFilteredProperties(): any;
9043
9051
  findQuestionByName(name: string): IQuestion;
9052
+ getEditingSurveyElement(): Base;
9044
9053
  getValidatorTitle(): string;
9045
9054
  get validatedValue(): any;
9046
9055
  set validatedValue(val: any);
@@ -10998,6 +11007,7 @@ declare module "survey" {
10998
11007
  private onEditingObjPropertyChanged;
10999
11008
  get editingObj(): Base;
11000
11009
  set editingObj(val: Base);
11010
+ private unConnectEditingObj;
11001
11011
  get isEditingSurveyElement(): boolean;
11002
11012
  private setCalculatedValuesIntoResult;
11003
11013
  getAllValues(): any;
@@ -11536,8 +11546,8 @@ declare module "survey" {
11536
11546
  updatePanelCssClasses(panel: PanelModel, cssClasses: any): void;
11537
11547
  updatePageCssClasses(page: PageModel, cssClasses: any): void;
11538
11548
  updateChoiceItemCss(question: IQuestion, options: any): void;
11539
- private isFirstPageRendering;
11540
11549
  private isCurrentPageRendering;
11550
+ private isCurrentPageRendered;
11541
11551
  afterRenderPage(htmlElement: HTMLElement): void;
11542
11552
  afterRenderHeader(htmlElement: HTMLElement): void;
11543
11553
  afterRenderQuestion(question: Question, htmlElement: HTMLElement): void;
@@ -11710,6 +11720,7 @@ declare module "survey" {
11710
11720
  */
11711
11721
  getQuestionByName(name: string, caseInsensitive?: boolean): Question;
11712
11722
  findQuestionByName(name: string): IQuestion;
11723
+ getEditingSurveyElement(): Base;
11713
11724
  /**
11714
11725
  * Returns a question with a specified [`valueName`](https://surveyjs.io/form-library/documentation/api-reference/question#valueName).
11715
11726
  *
@@ -13992,6 +14003,7 @@ declare module "question_matrixdropdownbase" {
13992
14003
  getComment(name: string): string;
13993
14004
  setComment(name: string, newValue: string, locNotification: any): void;
13994
14005
  findQuestionByName(name: string): IQuestion;
14006
+ getEditingSurveyElement(): Base;
13995
14007
  private setValueCore;
13996
14008
  private updateQuestionsValue;
13997
14009
  runTriggers(name: string, value: any): void;
@@ -14433,6 +14445,7 @@ declare module "base-interfaces" {
14433
14445
  getFilteredValues(): any;
14434
14446
  getFilteredProperties(): any;
14435
14447
  findQuestionByName(name: string): IQuestion;
14448
+ getEditingSurveyElement(): Base;
14436
14449
  }
14437
14450
  export interface ITextProcessor {
14438
14451
  processText(text: string, returnDisplayValue: boolean): string;
@@ -14874,7 +14887,7 @@ declare module "jsonobject" {
14874
14887
  onPropertyEditorUpdate: (obj: any, propEditor: any) => any;
14875
14888
  constructor(classInfo: JsonMetadataClass, name: string, isRequired?: boolean);
14876
14889
  uniqueProperty?: string;
14877
- dependsOn?: string | string[];
14890
+ dependsOn?: string | Array<string>;
14878
14891
  default?: any;
14879
14892
  defaultFunc?: (obj: Base) => any;
14880
14893
  get id(): number;
@@ -15087,6 +15100,7 @@ declare module "jsonobject" {
15087
15100
  toJsonObject(obj: any, options?: ISaveToJSONOptions | boolean): any;
15088
15101
  toObject(jsonObj: any, obj: any, options?: ILoadFromJSONOptions): void;
15089
15102
  toObjectCore(jsonObj: any, obj: any, options?: ILoadFromJSONOptions): void;
15103
+ private setPropertyValueToObj;
15090
15104
  toJsonObjectCore(obj: any, property: JsonObjectProperty, options?: ISaveToJSONOptions | boolean): any;
15091
15105
  private getDynamicProperties;
15092
15106
  private addDynamicProperties;
@@ -26879,6 +26893,7 @@ declare module "react/reactquestion_element" {
26879
26893
  }
26880
26894
  export class SurveyQuestionElementBase extends SurveyElementBase<any, any> {
26881
26895
  control: HTMLElement;
26896
+ content: HTMLElement;
26882
26897
  constructor(props: any);
26883
26898
  componentDidUpdate(prevProps: any, prevState: any): void;
26884
26899
  componentDidMount(): void;
@@ -26892,6 +26907,7 @@ declare module "react/reactquestion_element" {
26892
26907
  protected get isDisplayMode(): boolean;
26893
26908
  protected wrapCell(cell: any, element: JSX.Element, reason: string): JSX.Element;
26894
26909
  setControl(element: HTMLElement | null): void;
26910
+ setContent(element: HTMLElement | null): void;
26895
26911
  }
26896
26912
  export class SurveyQuestionUncontrolledElement<T extends Question> extends SurveyQuestionElementBase {
26897
26913
  constructor(props: any);
@@ -27778,6 +27794,7 @@ declare module "react/components/list/list" {
27778
27794
  handleMouseMove: (event: any) => void;
27779
27795
  getStateElement(): ListModel<import("survey-core").Action>;
27780
27796
  componentDidMount(): void;
27797
+ componentDidUpdate(prevProps: any, prevState: any): void;
27781
27798
  componentWillUnmount(): void;
27782
27799
  renderElement(): JSX.Element;
27783
27800
  renderList(): JSX.Element;