survey-react 1.9.125 → 1.9.126

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
@@ -1379,7 +1379,7 @@ declare module "survey-error" {
1379
1379
  private locTextValue;
1380
1380
  visible: boolean;
1381
1381
  constructor(text?: string, errorOwner?: ISurveyErrorOwner);
1382
- equalsTo(error: SurveyError): boolean;
1382
+ equals(error: SurveyError): boolean;
1383
1383
  get locText(): LocalizableString;
1384
1384
  getText(): string;
1385
1385
  getErrorType(): string;
@@ -1549,6 +1549,7 @@ declare module "defaultCss/defaultV2Css" {
1549
1549
  headerTop: string;
1550
1550
  headerBottom: string;
1551
1551
  content: string;
1552
+ contentSupportContainerQueries: string;
1552
1553
  contentLeft: string;
1553
1554
  titleNumInline: string;
1554
1555
  titleLeftRoot: string;
@@ -1787,6 +1788,7 @@ declare module "defaultCss/defaultV2Css" {
1787
1788
  rowError: string;
1788
1789
  cell: string;
1789
1790
  row: string;
1791
+ rowDisabled: string;
1790
1792
  headerCell: string;
1791
1793
  rowTextCell: string;
1792
1794
  label: string;
@@ -2023,13 +2025,18 @@ declare module "defaultCss/defaultV2Css" {
2023
2025
  };
2024
2026
  window: {
2025
2027
  root: string;
2028
+ rootCollapsedMod: string;
2029
+ rootContent: string;
2026
2030
  body: string;
2027
2031
  header: {
2028
2032
  root: string;
2029
- title: string;
2033
+ titleCollapsed: string;
2034
+ buttonsContainer: string;
2030
2035
  button: string;
2031
2036
  buttonExpanded: string;
2032
2037
  buttonCollapsed: string;
2038
+ collapseButton: string;
2039
+ closeButton: string;
2033
2040
  };
2034
2041
  };
2035
2042
  ranking: {
@@ -4321,6 +4328,8 @@ declare module "question_baseselect" {
4321
4328
  private isFirstLoadChoicesFromUrl;
4322
4329
  protected onBeforeSendRequest(): void;
4323
4330
  protected onLoadChoicesFromUrl(array: Array<ItemValue>): void;
4331
+ private canAvoidSettChoicesFromUrl;
4332
+ private setChoicesFromUrl;
4324
4333
  private createCachedValueForUrlRequests;
4325
4334
  private updateCachedValueForUrlRequests;
4326
4335
  private isUpdatingChoicesDependedQuestions;
@@ -5665,6 +5674,20 @@ declare module "themes" {
5665
5674
  * 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"`.
5666
5675
  */
5667
5676
  header?: IHeader;
5677
+ /**
5678
+ * Specifies whether the survey header uses only basic appearance settings or applies advanced settings from the survey theme.
5679
+ *
5680
+ * Possible values:
5681
+ *
5682
+ * - `"basic"` (default)\
5683
+ * 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.).
5684
+ *
5685
+ * - `"advanced"`\
5686
+ * 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.
5687
+ *
5688
+ * [View Demo](https://surveyjs.io/form-library/examples/brand-your-survey-header/ (linkStyle))
5689
+ */
5690
+ headerView?: "advanced" | "basic";
5668
5691
  /**
5669
5692
  * An object with CSS variables.
5670
5693
  */
@@ -5974,6 +5997,8 @@ declare module "question_paneldynamic" {
5974
5997
  * @see templateVisibleIf
5975
5998
  */
5976
5999
  get visiblePanels(): Array<PanelModel>;
6000
+ protected get panelsCore(): Array<PanelModel>;
6001
+ protected get visiblePanelsCore(): Array<PanelModel>;
5977
6002
  private onPanelAdded;
5978
6003
  private onPanelRemoved;
5979
6004
  private onPanelRemovedCore;
@@ -6359,6 +6384,11 @@ declare module "question_paneldynamic" {
6359
6384
  protected onReadOnlyChanged(): void;
6360
6385
  private updateNoEntriesTextDefaultLoc;
6361
6386
  onSurveyLoad(): void;
6387
+ private hasPanelBuildFirstTime;
6388
+ private isBuildingPanelsFirstTime;
6389
+ private buildPanelsFirstTime;
6390
+ private get wasNotRenderedInSurvey();
6391
+ private get canBuildPanels();
6362
6392
  onFirstRendering(): void;
6363
6393
  localeChanged(): void;
6364
6394
  runCondition(values: HashTable<any>, properties: HashTable<any>): void;
@@ -8516,6 +8546,27 @@ declare module "surveyTaskManager" {
8516
8546
  private taskFinished;
8517
8547
  }
8518
8548
  }
8549
+ declare module "surveyToc" {
8550
+ import { Action } from "actions/action";
8551
+ import { ListModel } from "list";
8552
+ import { PanelModelBase } from "panel";
8553
+ import { PopupModel } from "popup";
8554
+ import { SurveyModel } from "survey";
8555
+ export function tryFocusPage(survey: SurveyModel, panel: PanelModelBase): boolean;
8556
+ export function createTOCListModel(survey: SurveyModel, onAction?: () => void): ListModel<Action>;
8557
+ export function getTocRootCss(survey: SurveyModel, isMobile?: boolean): string;
8558
+ export class TOCModel {
8559
+ survey: SurveyModel;
8560
+ constructor(survey: SurveyModel);
8561
+ get isMobile(): boolean;
8562
+ get containerCss(): string;
8563
+ listModel: ListModel<Action>;
8564
+ popupModel: PopupModel;
8565
+ icon: string;
8566
+ togglePopup: () => void;
8567
+ dispose(): void;
8568
+ }
8569
+ }
8519
8570
  declare module "survey" {
8520
8571
  import { JsonError } from "jsonobject";
8521
8572
  import { Base, EventBase } from "base";
@@ -10921,6 +10972,7 @@ declare module "survey" {
10921
10972
  private getProcessedValuesWithoutQuestion;
10922
10973
  private getFirstName;
10923
10974
  private reduceFirstName;
10975
+ private isClearingUnsedValues;
10924
10976
  private clearUnusedValues;
10925
10977
  hasVisibleQuestionByValueName(valueName: string): boolean;
10926
10978
  questionsByValueName(valueName: string): Array<IQuestion>;
@@ -11265,6 +11317,7 @@ declare module "survey" {
11265
11317
  * @returns The configuration of the previous layout element with the same `id`.
11266
11318
  */
11267
11319
  addLayoutElement(layoutElement: ISurveyLayoutElement): ISurveyLayoutElement;
11320
+ findLayoutElement(layoutElementId: string): ISurveyLayoutElement;
11268
11321
  removeLayoutElement(layoutElementId: string): ISurveyLayoutElement;
11269
11322
  getContainerContent(container: LayoutElementContainer): any[];
11270
11323
  processPopupVisiblityChanged(question: Question, popup: PopupModel<any>, visible: boolean): void;
@@ -11564,6 +11617,8 @@ declare module "survey-element" {
11564
11617
  set selectedElementInDesign(val: SurveyElement);
11565
11618
  updateCustomWidgets(): void;
11566
11619
  onSurveyLoad(): void;
11620
+ private wasRenderedValue;
11621
+ get wasRendered(): boolean;
11567
11622
  onFirstRendering(): void;
11568
11623
  endLoadingFromJson(): void;
11569
11624
  setVisibleIndex(index: number): number;
@@ -12142,6 +12197,7 @@ declare module "question" {
12142
12197
  get cssHeader(): string;
12143
12198
  protected setCssHeader(val: string): void;
12144
12199
  protected getCssHeader(cssClasses: any): string;
12200
+ protected supportContainerQueries(): boolean;
12145
12201
  get cssContent(): string;
12146
12202
  protected setCssContent(val: string): void;
12147
12203
  protected getCssContent(cssClasses: any): string;
@@ -14065,6 +14121,8 @@ declare module "base" {
14065
14121
  * @param trimString *(Optional)* When this parameter is `true`, the method ignores whitespace characters at the beginning and end of a string value. Pass `false` to disable this functionality.
14066
14122
  */
14067
14123
  isValueEmpty(value: any, trimString?: boolean): boolean;
14124
+ equals(obj: Base): boolean;
14125
+ protected equalsCore(obj: Base): boolean;
14068
14126
  protected trimValue(value: any): any;
14069
14127
  protected isPropertyEmpty(value: any): boolean;
14070
14128
  static createPropertiesHash(): {};
@@ -15193,6 +15251,7 @@ declare module "question_dropdown" {
15193
15251
  }
15194
15252
  }
15195
15253
  declare module "question_matrix" {
15254
+ import { HashTable } from "helpers";
15196
15255
  import { ItemValue } from "itemvalue";
15197
15256
  import { QuestionMatrixBaseModel } from "martixBase";
15198
15257
  import { Base } from "base";
@@ -15203,12 +15262,14 @@ declare module "question_matrix" {
15203
15262
  export interface IMatrixData {
15204
15263
  onMatrixRowChanged(row: MatrixRowModel): void;
15205
15264
  getCorrectedRowValue(value: any): any;
15265
+ cssClasses: any;
15266
+ isInputReadOnly: boolean;
15206
15267
  hasErrorInRow(row: MatrixRowModel): boolean;
15207
15268
  }
15208
15269
  export class MatrixRowModel extends Base {
15270
+ item: ItemValue;
15209
15271
  fullName: string;
15210
15272
  private data;
15211
- private item;
15212
15273
  cellClick: any;
15213
15274
  constructor(item: ItemValue, fullName: string, data: IMatrixData, value: any);
15214
15275
  get name(): string;
@@ -15216,6 +15277,9 @@ declare module "question_matrix" {
15216
15277
  get locText(): LocalizableString;
15217
15278
  get value(): any;
15218
15279
  set value(val: any);
15280
+ setValueDirectly(val: any): void;
15281
+ get isReadOnly(): boolean;
15282
+ get rowTextClasses(): string;
15219
15283
  get rowClasses(): string;
15220
15284
  }
15221
15285
  export interface IMatrixCellsOwner extends ILocalizableOwner {
@@ -15302,6 +15366,7 @@ declare module "question_matrix" {
15302
15366
  locStrsChanged(): void;
15303
15367
  protected getQuizQuestionCount(): number;
15304
15368
  protected getCorrectAnswerCount(): number;
15369
+ protected runItemsCondition(values: HashTable<any>, properties: HashTable<any>): boolean;
15305
15370
  protected getVisibleRows(): Array<MatrixRowModel>;
15306
15371
  protected sortVisibleRows(array: Array<MatrixRowModel>): Array<MatrixRowModel>;
15307
15372
  endLoadingFromJson(): void;
@@ -15941,6 +16006,7 @@ declare module "question_ranking" {
15941
16006
  protected getDefaultItemComponent(): string;
15942
16007
  getType(): string;
15943
16008
  getItemTabIndex(item: ItemValue): number;
16009
+ protected supportContainerQueries(): boolean;
15944
16010
  get rootClass(): string;
15945
16011
  protected getItemClassCore(item: ItemValue, options: any): string;
15946
16012
  getContainerClasses(containerType?: string): string;
@@ -16621,27 +16687,6 @@ declare module "question_image" {
16621
16687
  private isVideo;
16622
16688
  }
16623
16689
  }
16624
- declare module "surveyToc" {
16625
- import { Action } from "actions/action";
16626
- import { ListModel } from "list";
16627
- import { PanelModelBase } from "panel";
16628
- import { PopupModel } from "popup";
16629
- import { SurveyModel } from "survey";
16630
- export function tryFocusPage(survey: SurveyModel, panel: PanelModelBase): boolean;
16631
- export function createTOCListModel(survey: SurveyModel, onAction?: () => void): ListModel<Action>;
16632
- export function getTocRootCss(survey: SurveyModel, isMobile?: boolean): string;
16633
- export class TOCModel {
16634
- survey: SurveyModel;
16635
- constructor(survey: SurveyModel);
16636
- get isMobile(): boolean;
16637
- get containerCss(): string;
16638
- listModel: ListModel<Action>;
16639
- popupModel: PopupModel;
16640
- icon: string;
16641
- togglePopup: () => void;
16642
- dispose(): void;
16643
- }
16644
- }
16645
16690
  declare module "surveyProgress" {
16646
16691
  export class SurveyProgressModel {
16647
16692
  static getProgressTextInBarCss(css: any): string;
@@ -16719,6 +16764,7 @@ declare module "popup-survey" {
16719
16764
  */
16720
16765
  get isExpanded(): boolean;
16721
16766
  set isExpanded(val: boolean);
16767
+ get isCollapsed(): boolean;
16722
16768
  protected onExpandedChanged(): void;
16723
16769
  /**
16724
16770
  * A title for the pop-up window. If this property is undefined, the title is taken from [`SurveyModel`](#survey)'s [`title`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#title) property.
@@ -16726,6 +16772,7 @@ declare module "popup-survey" {
16726
16772
  get title(): string;
16727
16773
  set title(value: string);
16728
16774
  get locTitle(): LocalizableString;
16775
+ get locDescription(): LocalizableString;
16729
16776
  /**
16730
16777
  * Expands the pop-up window.
16731
16778
  *
@@ -16756,10 +16803,14 @@ declare module "popup-survey" {
16756
16803
  get css(): any;
16757
16804
  get cssButton(): string;
16758
16805
  get cssRoot(): string;
16806
+ get cssRootCollapsedMod(): string;
16807
+ get cssRootContent(): string;
16759
16808
  get cssBody(): string;
16760
16809
  get cssHeaderRoot(): string;
16761
- get cssHeaderTitle(): string;
16762
- get cssHeaderButton(): string;
16810
+ get cssHeaderTitleCollapsed(): string;
16811
+ get cssHeaderButtonsContainer(): string;
16812
+ get cssHeaderCollapseButton(): string;
16813
+ get cssHeaderCloseButton(): string;
16763
16814
  get renderedWidth(): string;
16764
16815
  width: string;
16765
16816
  private updateCss;
@@ -17347,13 +17398,18 @@ declare module "defaultCss/cssstandard" {
17347
17398
  };
17348
17399
  window: {
17349
17400
  root: string;
17401
+ rootCollapsedMod: string;
17402
+ rootContent: string;
17350
17403
  body: string;
17351
17404
  header: {
17352
17405
  root: string;
17353
- title: string;
17406
+ titleCollapsed: string;
17407
+ buttonsContainer: string;
17354
17408
  button: string;
17355
17409
  buttonExpanded: string;
17356
17410
  buttonCollapsed: string;
17411
+ collapseButton: string;
17412
+ closeButton: string;
17357
17413
  };
17358
17414
  };
17359
17415
  variables: {
@@ -17812,13 +17868,18 @@ declare module "defaultCss/cssmodern" {
17812
17868
  };
17813
17869
  window: {
17814
17870
  root: string;
17871
+ rootCollapsedMod: string;
17872
+ rootContent: string;
17815
17873
  body: string;
17816
17874
  header: {
17817
17875
  root: string;
17818
- title: string;
17876
+ titleCollapsed: string;
17877
+ buttonsContainer: string;
17819
17878
  button: string;
17820
17879
  buttonExpanded: string;
17821
17880
  buttonCollapsed: string;
17881
+ collapseButton: string;
17882
+ closeButton: string;
17822
17883
  };
17823
17884
  };
17824
17885
  variables: {
@@ -25154,7 +25215,7 @@ declare module "react/dropdown-select" {
25154
25215
  }
25155
25216
  declare module "react/reactquestion_matrix" {
25156
25217
  import { ReactSurveyElement, SurveyQuestionElementBase } from "react/reactquestion_element";
25157
- import { QuestionMatrixModel } from "entries/core";
25218
+ import { QuestionMatrixModel, Base } from "entries/core";
25158
25219
  export class SurveyQuestionMatrix extends SurveyQuestionElementBase {
25159
25220
  constructor(props: any);
25160
25221
  protected get question(): QuestionMatrixModel;
@@ -25164,6 +25225,7 @@ declare module "react/reactquestion_matrix" {
25164
25225
  }
25165
25226
  export class SurveyQuestionMatrixRow extends ReactSurveyElement {
25166
25227
  constructor(props: any);
25228
+ protected getStateElement(): Base | null;
25167
25229
  private get question();
25168
25230
  private get row();
25169
25231
  protected wrapCell(cell: any, element: JSX.Element, reason: string): JSX.Element;
@@ -25609,8 +25671,8 @@ declare module "react/reactquestion_expression" {
25609
25671
  }
25610
25672
  }
25611
25673
  declare module "react/react-popup-survey" {
25612
- import { Survey } from "react/reactSurvey";
25613
25674
  import { Base, PopupSurveyModel } from "entries/core";
25675
+ import { Survey } from "react/reactSurvey";
25614
25676
  export class PopupSurvey extends Survey {
25615
25677
  protected popup: PopupSurveyModel;
25616
25678
  constructor(props: any);
@@ -25619,6 +25681,10 @@ declare module "react/react-popup-survey" {
25619
25681
  protected canRender(): boolean;
25620
25682
  protected renderElement(): JSX.Element;
25621
25683
  protected renderWindowHeader(): JSX.Element;
25684
+ protected renderTitleCollapsed(popup: PopupSurveyModel): JSX.Element | null;
25685
+ protected renderExpandIcon(): JSX.Element;
25686
+ protected renderCollapseIcon(): JSX.Element;
25687
+ protected renderCloseButton(popup: PopupSurveyModel): JSX.Element;
25622
25688
  protected renderBody(): JSX.Element;
25623
25689
  protected createSurvey(newProps: any): void;
25624
25690
  }