survey-react 1.12.2 → 1.12.3

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
@@ -57,7 +57,7 @@ declare module "packages/survey-core/src/helpers" {
57
57
  private static prepareStringToNumber;
58
58
  static getMaxLength(maxLength: number, surveyLength: number): any;
59
59
  static getRemainingCharacterCounterText(newValue: string | undefined, maxLength: number | null): string;
60
- static getNumberByIndex(index: number, startIndexStr: string): string;
60
+ static getNumberByIndex(index: number, startIndexStr: string, parentIndex?: number): string;
61
61
  static isCharNotLetterAndDigit(ch: string): boolean;
62
62
  static isCharDigit(ch: string): boolean;
63
63
  private static getNumberFromStr;
@@ -1603,7 +1603,6 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
1603
1603
  titleExpanded: string;
1604
1604
  titleCollapsed: string;
1605
1605
  titleDisabled: string;
1606
- titleHidden: string;
1607
1606
  titleOnExpand: string;
1608
1607
  titleOnError: string;
1609
1608
  titleBar: string;
@@ -1616,7 +1615,6 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
1616
1615
  footer: string;
1617
1616
  requiredText: string;
1618
1617
  header: string;
1619
- headerHidden: string;
1620
1618
  collapsed: string;
1621
1619
  expanded: string;
1622
1620
  expandable: string;
@@ -2310,6 +2308,7 @@ declare module "packages/survey-core/src/defaultCss/defaultV2Css" {
2310
2308
  rootSelectToRankEmptyValueMod: string;
2311
2309
  rootSelectToRankAlignVertical: string;
2312
2310
  rootSelectToRankAlignHorizontal: string;
2311
+ rootSelectToRankSwapAreas: string;
2313
2312
  item: string;
2314
2313
  itemContent: string;
2315
2314
  itemIndex: string;
@@ -2633,7 +2632,7 @@ declare module "packages/survey-core/src/panel-layout-column" {
2633
2632
  declare module "packages/survey-core/src/textPreProcessor" {
2634
2633
  import { Question } from "packages/survey-core/src/question";
2635
2634
  import { PanelModel } from "packages/survey-core/src/panel";
2636
- import { ISurvey, ITextProcessor } from "packages/survey-core/src/base-interfaces";
2635
+ import { ISurvey, ITextProcessor, ITextProcessorProp, ITextProcessorResult } from "packages/survey-core/src/base-interfaces";
2637
2636
  export class TextPreProcessorItem {
2638
2637
  start: number;
2639
2638
  end: number;
@@ -2671,7 +2670,7 @@ declare module "packages/survey-core/src/textPreProcessor" {
2671
2670
  protected getQuestionDisplayText(question: Question): string;
2672
2671
  private getProcessedTextValue;
2673
2672
  processText(text: string, returnDisplayValue: boolean): string;
2674
- processTextEx(text: string, returnDisplayValue: boolean): any;
2673
+ processTextEx(params: ITextProcessorProp): ITextProcessorResult;
2675
2674
  private processTextCore;
2676
2675
  }
2677
2676
  }
@@ -3208,6 +3207,7 @@ declare module "packages/survey-core/src/question_custom" {
3208
3207
  private setValuesIntoQuestions;
3209
3208
  protected getDisplayValueCore(keyAsText: boolean, value: any): any;
3210
3209
  private setAfterRenderCallbacks;
3210
+ get ariaRole(): string;
3211
3211
  }
3212
3212
  }
3213
3213
  declare module "packages/survey-core/src/questionfactory" {
@@ -3352,6 +3352,8 @@ declare module "packages/survey-core/src/panel" {
3352
3352
  setSurveyImpl(value: ISurveyImpl, isLight?: boolean): void;
3353
3353
  endLoadingFromJson(): void;
3354
3354
  showTitle: boolean;
3355
+ hasTextInTitle: boolean;
3356
+ protected calcHasTextInTitle(): void;
3355
3357
  get hasTitle(): boolean;
3356
3358
  delete(doDispose?: boolean): void;
3357
3359
  private deletePanel;
@@ -3754,11 +3756,8 @@ declare module "packages/survey-core/src/panel" {
3754
3756
  getType(): string;
3755
3757
  get contentId(): string;
3756
3758
  getSurvey(live?: boolean): ISurvey;
3757
- get hasTextInTitle(): boolean;
3758
- private calcHasTextInTitle;
3759
3759
  onSurveyLoad(): void;
3760
3760
  protected onSetData(): void;
3761
- get cssHeader(): string;
3762
3761
  get isPanel(): boolean;
3763
3762
  /**
3764
3763
  * Returns a page to which the panel belongs and allows you to move this panel to a different page.
@@ -4666,7 +4665,7 @@ declare module "packages/survey-core/src/question_baseselect" {
4666
4665
  * }
4667
4666
  * ```
4668
4667
  *
4669
- * To enable Markdown support for the `text` property, implement Markdown-to-HTML conversion in the [onTextMarkdown](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
4668
+ * To enable Markdown support for the `text` property, implement Markdown-to-HTML conversion in the [`onTextMarkdown`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with markdown-it](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
4670
4669
  *
4671
4670
  * If you add custom properties, refer to the following help topic to learn how to serialize them into JSON: [Add Custom Properties to Property Grid](https://surveyjs.io/survey-creator/documentation/property-grid#add-custom-properties-to-the-property-grid).
4672
4671
  *
@@ -8429,6 +8428,7 @@ declare module "packages/survey-core/src/page" {
8429
8428
  get cssRequiredText(): string;
8430
8429
  protected canShowPageNumber(): boolean;
8431
8430
  protected canShowTitle(): boolean;
8431
+ protected setTitleValue(val: string): void;
8432
8432
  /**
8433
8433
  * 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), [`progressBarType`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarType) is set to `"pages"`, and [`progressBarShowPageTitles`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarShowPageTitles) is `true`.
8434
8434
  *
@@ -9278,7 +9278,7 @@ declare module "packages/survey-core/src/question_multipletext" {
9278
9278
  * }
9279
9279
  * ```
9280
9280
  *
9281
- * To enable Markdown support for the `title` property, implement Markdown-to-HTML conversion in the [`onTextMarkdown`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
9281
+ * To enable Markdown support for the `title` property, implement Markdown-to-HTML conversion in the [`onTextMarkdown`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with markdown-it](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
9282
9282
  * @see itemTitleWidth
9283
9283
  * @see addItem
9284
9284
  */
@@ -9436,6 +9436,7 @@ declare module "packages/survey-core/src/header" {
9436
9436
  cells: CoverCell[];
9437
9437
  actualHeight: number;
9438
9438
  height: number;
9439
+ mobileHeight: number;
9439
9440
  inheritWidthFrom: "survey" | "container";
9440
9441
  textAreaWidth: number;
9441
9442
  textGlowEnabled: boolean;
@@ -9575,7 +9576,7 @@ declare module "packages/survey-core/src/surveyToc" {
9575
9576
  declare module "packages/survey-core/src/survey" {
9576
9577
  import { JsonError } from "packages/survey-core/src/jsonobject";
9577
9578
  import { Base, EventBase } from "packages/survey-core/src/base";
9578
- import { ISurvey, ISurveyData, ISurveyImpl, ITextProcessor, IQuestion, IPanel, IElement, IPage, ISurveyErrorOwner, ISurveyElement, IProgressInfo, IFindElement, ISurveyLayoutElement, IPlainDataOptions, LayoutElementContainer, IValueItemCustomPropValues, ILoadFromJSONOptions, IDropdownMenuOptions } from "packages/survey-core/src/base-interfaces";
9579
+ import { ISurvey, ISurveyData, ISurveyImpl, ITextProcessor, IQuestion, IPanel, IElement, IPage, ISurveyErrorOwner, ISurveyElement, IProgressInfo, IFindElement, ISurveyLayoutElement, IPlainDataOptions, LayoutElementContainer, IValueItemCustomPropValues, ILoadFromJSONOptions, IDropdownMenuOptions, ITextProcessorProp, ITextProcessorResult } from "packages/survey-core/src/base-interfaces";
9579
9580
  import { SurveyElementCore } from "packages/survey-core/src/survey-element";
9580
9581
  import { ISurveyTriggerOwner, SurveyTrigger, Trigger } from "packages/survey-core/src/trigger";
9581
9582
  import { CalculatedValue } from "packages/survey-core/src/calculatedValue";
@@ -12192,10 +12193,9 @@ declare module "packages/survey-core/src/survey" {
12192
12193
  validatePanel(panel: PanelModel): SurveyError;
12193
12194
  processHtml(html: string, reason?: string): string;
12194
12195
  processText(text: string, returnDisplayValue: boolean): string;
12195
- processTextEx(text: string, returnDisplayValue: boolean, doEncoding: boolean): any;
12196
+ processTextEx(params: ITextProcessorProp): ITextProcessorResult;
12196
12197
  private textPreProcessorValue;
12197
12198
  private get textPreProcessor();
12198
- private processTextCore;
12199
12199
  getSurveyMarkdownHtml(element: Question | PanelModel | PageModel | SurveyModel, text: string, name: string): string;
12200
12200
  getCorrectedAnswerCount(): number;
12201
12201
  /**
@@ -12501,6 +12501,7 @@ declare module "packages/survey-core/src/survey-element" {
12501
12501
  set title(val: string);
12502
12502
  get locTitle(): LocalizableString;
12503
12503
  protected getDefaultTitleValue(): string;
12504
+ protected setTitleValue(val: string): void;
12504
12505
  /**
12505
12506
  * Returns `true` if the survey element has a description.
12506
12507
  * @see description
@@ -13473,6 +13474,8 @@ declare module "packages/survey-core/src/question" {
13473
13474
  * A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
13474
13475
  *
13475
13476
  * Refer to the following help topic for more information: [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#conditional-visibility).
13477
+ *
13478
+ * [View Demo](https://surveyjs.io/form-library/examples/how-to-conditionally-make-input-field-read-only/ (linkStyle))
13476
13479
  * @see readOnly
13477
13480
  * @see isReadOnly
13478
13481
  */
@@ -13480,6 +13483,8 @@ declare module "packages/survey-core/src/question" {
13480
13483
  set enableIf(val: string);
13481
13484
  surveyChoiceItemVisibilityChange(): void;
13482
13485
  runCondition(values: HashTable<any>, properties: HashTable<any>): void;
13486
+ get isInDesignMode(): boolean;
13487
+ get isInDesignModeV2(): boolean;
13483
13488
  /**
13484
13489
  * A question number or letter (depends on the `questionStartIndex` property of the question container (panel, page, or survey)).
13485
13490
  *
@@ -13624,7 +13629,7 @@ declare module "packages/survey-core/src/question" {
13624
13629
  *
13625
13630
  * A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
13626
13631
  *
13627
- * [View Demo](https://surveyjs.io/form-library/examples/trigger-setvalue/ (linkStyle))
13632
+ * [View Demo](https://surveyjs.io/form-library/examples/set-question-value-dynamically/ (linkStyle))
13628
13633
  * @see setValueIf
13629
13634
  */
13630
13635
  get resetValueIf(): string;
@@ -13634,7 +13639,7 @@ declare module "packages/survey-core/src/question" {
13634
13639
  *
13635
13640
  * A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
13636
13641
  *
13637
- * [View Demo](https://surveyjs.io/form-library/examples/trigger-setvalue/ (linkStyle))
13642
+ * [View Demo](https://surveyjs.io/form-library/examples/set-question-value-dynamically/ (linkStyle))
13638
13643
  * @see resetValueIf
13639
13644
  */
13640
13645
  get setValueIf(): string;
@@ -13644,7 +13649,7 @@ declare module "packages/survey-core/src/question" {
13644
13649
  *
13645
13650
  * You can use `setValueExpression` as a standalone property or in conjunction with the [`setValueIf`](#setValueIf) expression, in which case the calculated question value applies only when `setValueIf` evaluates to `true`.
13646
13651
  *
13647
- * [View Demo](https://surveyjs.io/form-library/examples/trigger-setvalue/ (linkStyle))
13652
+ * [View Demo](https://surveyjs.io/form-library/examples/set-question-value-dynamically/ (linkStyle))
13648
13653
  * @see defaultValueExpression
13649
13654
  * @see resetValueIf
13650
13655
  */
@@ -14521,7 +14526,7 @@ declare module "packages/survey-core/src/question_matrixdropdownbase" {
14521
14526
  * }
14522
14527
  * ```
14523
14528
  *
14524
- * To enable Markdown support for the `text` property, implement Markdown-to-HTML conversion in the [onTextMarkdown](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
14529
+ * To enable Markdown support for the `text` property, implement Markdown-to-HTML conversion in the [onTextMarkdown](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with markdown-it](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
14525
14530
  *
14526
14531
  * If you add custom properties, refer to the following help topic to learn how to serialize them into JSON: [Add Custom Properties to Property Grid](https://surveyjs.io/survey-creator/documentation/property-grid#add-custom-properties-to-the-property-grid).
14527
14532
  *
@@ -14696,9 +14701,19 @@ declare module "packages/survey-core/src/base-interfaces" {
14696
14701
  findQuestionByName(name: string): IQuestion;
14697
14702
  getEditingSurveyElement(): Base;
14698
14703
  }
14704
+ export interface ITextProcessorProp {
14705
+ text: string;
14706
+ returnDisplayValue?: boolean;
14707
+ doEncoding?: boolean;
14708
+ runAtDesign?: boolean;
14709
+ }
14710
+ export interface ITextProcessorResult {
14711
+ text: string;
14712
+ hasAllValuesOnLastRun: boolean;
14713
+ }
14699
14714
  export interface ITextProcessor {
14700
14715
  processText(text: string, returnDisplayValue: boolean): string;
14701
- processTextEx(text: string, returnDisplayValue: boolean, doEncoding: boolean): any;
14716
+ processTextEx(params: ITextProcessorProp): ITextProcessorResult;
14702
14717
  }
14703
14718
  export interface ISurveyErrorOwner extends ILocalizableOwner {
14704
14719
  getErrorCustomText(text: string, error: SurveyError): string;
@@ -15573,7 +15588,7 @@ declare module "packages/survey-core/src/base" {
15573
15588
  private static currentDependencis;
15574
15589
  static finishCollectDependencies(): Dependencies;
15575
15590
  static startCollectDependencies(updater: () => void, target: Base, property: string): void;
15576
- private static collectDependency;
15591
+ protected static collectDependency(target: Base, property: string): void;
15577
15592
  dependencies: {
15578
15593
  [key: string]: ComputedUpdater;
15579
15594
  };
@@ -17723,7 +17738,8 @@ declare module "packages/survey-core/src/dragdrop/choices" {
17723
17738
  protected doDragOver: () => any;
17724
17739
  protected isDropTargetValid(dropTarget: ItemValue, dropTargetNode?: HTMLElement): boolean;
17725
17740
  protected doBanDropHere: () => any;
17726
- protected calculateIsBottom(clientY: number): boolean;
17741
+ protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean;
17742
+ protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean;
17727
17743
  protected afterDragOver(dropTargetNode: HTMLElement): void;
17728
17744
  protected doDrop(): any;
17729
17745
  clear(): void;
@@ -17881,6 +17897,8 @@ declare module "packages/survey-core/src/question_ranking" {
17881
17897
  */
17882
17898
  get selectToRankEnabled(): boolean;
17883
17899
  set selectToRankEnabled(val: boolean);
17900
+ get selectToRankSwapAreas(): boolean;
17901
+ set selectToRankSwapAreas(val: boolean);
17884
17902
  carryForwardStartUnranked: boolean;
17885
17903
  /**
17886
17904
  * 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`.
@@ -18091,7 +18109,7 @@ declare module "packages/survey-core/src/question_rating" {
18091
18109
  *
18092
18110
  * If you add custom properties, refer to the following help topic to learn how to serialize them into JSON: [Add Custom Properties to Property Grid](https://surveyjs.io/survey-creator/documentation/property-grid#add-custom-properties-to-the-property-grid).
18093
18111
  *
18094
- * To enable Markdown support for the `text` property, implement Markdown-to-HTML conversion in the [onTextMarkdown](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with Showdown](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
18112
+ * To enable Markdown support for the `text` property, implement Markdown-to-HTML conversion in the [onTextMarkdown](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onTextMarkdown) event handler. For an example, refer to the following demo: [Convert Markdown to HTML with markdown-it](https://surveyjs.io/form-library/examples/edit-survey-questions-markdown/).
18095
18113
  *
18096
18114
  * If you need to specify only the `value` property, you can set the `rateValues` property to an array of numbers, for example, `[ 3, 6, 10 ]`. These values are both saved in survey results and used as display text.
18097
18115
  *
@@ -19144,7 +19162,7 @@ declare module "packages/survey-core/entries/chunks/model" {
19144
19162
  export { DropdownMultiSelectListModel } from "packages/survey-core/src/dropdownMultiSelectListModel";
19145
19163
  export { QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue } from "packages/survey-core/src/question_buttongroup";
19146
19164
  export { IsMobile, IsTouch, _setIsTouch } from "packages/survey-core/src/utils/devices";
19147
- export { confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, chooseFiles, sanitizeEditableContent, IAttachKey2clickOptions } from "packages/survey-core/src/utils/utils";
19165
+ export { confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, chooseFiles, sanitizeEditableContent, prepareElementForVerticalAnimation, cleanHtmlElementAfterAnimation, classesToSelector, IAttachKey2clickOptions } from "packages/survey-core/src/utils/utils";
19148
19166
  export { InputMaskBase } from "packages/survey-core/src/mask/mask_base";
19149
19167
  export { InputMaskPattern } from "packages/survey-core/src/mask/mask_pattern";
19150
19168
  export { InputMaskNumeric } from "packages/survey-core/src/mask/mask_numeric";
@@ -19366,6 +19384,7 @@ declare module "src/defaultCss/cssstandard" {
19366
19384
  rootSelectToRankMod: string;
19367
19385
  rootSelectToRankAlignVertical: string;
19368
19386
  rootSelectToRankAlignHorizontal: string;
19387
+ rootSelectToRankSwapAreas: string;
19369
19388
  item: string;
19370
19389
  itemContent: string;
19371
19390
  itemIndex: string;
@@ -19796,6 +19815,7 @@ declare module "src/defaultCss/cssmodern" {
19796
19815
  rootSelectToRankMod: string;
19797
19816
  rootSelectToRankAlignVertical: string;
19798
19817
  rootSelectToRankAlignHorizontal: string;
19818
+ rootSelectToRankSwapAreas: string;
19799
19819
  item: string;
19800
19820
  itemContent: string;
19801
19821
  itemIndex: string;
@@ -20623,6 +20643,7 @@ declare module "src/plugins/themes/bootstrap-material-integration/cssbootstrapma
20623
20643
  rootSelectToRankMod: string;
20624
20644
  rootSelectToRankAlignVertical: string;
20625
20645
  rootSelectToRankAlignHorizontal: string;
20646
+ rootSelectToRankSwapAreas: string;
20626
20647
  item: string;
20627
20648
  itemContent: string;
20628
20649
  itemIndex: string;
@@ -21453,6 +21474,7 @@ declare module "src/entries/plugins" {
21453
21474
  rootSelectToRankMod: string;
21454
21475
  rootSelectToRankAlignVertical: string;
21455
21476
  rootSelectToRankAlignHorizontal: string;
21477
+ rootSelectToRankSwapAreas: string;
21456
21478
  item: string;
21457
21479
  itemContent: string;
21458
21480
  itemIndex: string;