survey-react 1.9.137 → 1.9.138

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.137
2
+ * surveyjs - Survey JavaScript library v1.9.138
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
@@ -2756,6 +2756,7 @@ declare module "question_custom" {
2756
2756
  * @returns An error text.
2757
2757
  */
2758
2758
  getErrorText?: (question: Question) => string;
2759
+ onSetQuestionValue?: (question: Question, newValue: any) => void;
2759
2760
  valueToQuestion?: (val: any) => any;
2760
2761
  valueFromQuestion?: (val: any) => any;
2761
2762
  getValue?: (val: any) => any;
@@ -2772,6 +2773,7 @@ declare module "question_custom" {
2772
2773
  onAfterRender(question: Question, htmlElement: any): void;
2773
2774
  onAfterRenderContentElement(question: Question, element: Question, htmlElement: any): void;
2774
2775
  onUpdateQuestionCssClasses(question: Question, element: Question, css: any): void;
2776
+ onSetQuestionValue(question: Question, newValue: any): void;
2775
2777
  onPropertyChanged(question: Question, propertyName: string, newValue: any): void;
2776
2778
  onValueChanged(question: Question, name: string, newValue: any): void;
2777
2779
  onValueChanging(question: Question, name: string, newValue: any): any;
@@ -5328,7 +5330,7 @@ declare module "dragdrop/core" {
5328
5330
  }
5329
5331
  declare module "dragdrop/matrix-rows" {
5330
5332
  import { MatrixDropdownRowModelBase } from "question_matrixdropdownbase";
5331
- import { QuestionMatrixDynamicModel } from "question_matrixdynamic";
5333
+ import { QuestionMatrixDynamicModel, MatrixDynamicRowModel } from "question_matrixdynamic";
5332
5334
  import { DragDropCore } from "dragdrop/core";
5333
5335
  export class DragDropMatrixRows extends DragDropCore<QuestionMatrixDynamicModel> {
5334
5336
  protected get draggedElementType(): string;
@@ -5338,6 +5340,7 @@ declare module "dragdrop/matrix-rows" {
5338
5340
  private fromIndex;
5339
5341
  private toIndex;
5340
5342
  protected getDropTargetByDataAttributeValue(dataAttributeValue: any): MatrixDropdownRowModelBase;
5343
+ canInsertIntoThisRow(row: MatrixDynamicRowModel): boolean;
5341
5344
  protected isDropTargetValid(dropTarget: any, dropTargetNode?: HTMLElement): boolean;
5342
5345
  protected calculateIsBottom(clientY: number): boolean;
5343
5346
  protected afterDragOver(dropTargetNode: HTMLElement): void;
@@ -5614,6 +5617,8 @@ declare module "question_matrixdynamic" {
5614
5617
  get allowRowsDragAndDrop(): boolean;
5615
5618
  set allowRowsDragAndDrop(val: boolean);
5616
5619
  get isRowsDragAndDrop(): boolean;
5620
+ get lockedRowCount(): number;
5621
+ set lockedRowCount(val: number);
5617
5622
  get iconDragElement(): string;
5618
5623
  protected createRenderedTable(): QuestionMatrixDropdownRenderedTable;
5619
5624
  private get rowCountValue();
@@ -8318,6 +8323,7 @@ declare module "mask/input_element_adapter" {
8318
8323
  private prevUnmaskedValue;
8319
8324
  constructor(inputMaskInstance: InputMaskBase, inputElement: HTMLInputElement, value?: string);
8320
8325
  inputMaskInstancePropertyChangedHandler: (sender: any, options: any) => void;
8326
+ clickHandler: (event: any) => void;
8321
8327
  beforeInputHandler: (event: any) => void;
8322
8328
  createArgs(event: any): ITextInputParams;
8323
8329
  addInputEventListener(): void;
@@ -16703,11 +16709,12 @@ declare module "question_imagepicker" {
16703
16709
  /**
16704
16710
  * Specifies the height of containers for images or videos. Accepts positive numbers and CSS values.
16705
16711
  *
16706
- * Default value: undefined
16712
+ * Default value: `auto`
16713
+ *
16714
+ * This property allows you to specify the exact image height. If you do not set it, the height will be calculated automatically based on the [`minImageHeight`](#minImageHeight) and [`maxImageHeight`](#maxImageHeight) values and available screen height.
16707
16715
  *
16708
- * Use the `imageFit` property to specify how to fit the images or videos into their containers.
16716
+ * Use the [`imageFit`](#imageFit) property to specify how to fit the images or videos into their containers.
16709
16717
  * @see imageWidth
16710
- * @see imageFit
16711
16718
  */
16712
16719
  get imageHeight(): number;
16713
16720
  set imageHeight(val: number);
@@ -16716,11 +16723,12 @@ declare module "question_imagepicker" {
16716
16723
  /**
16717
16724
  * Specifies the width of containers for images or videos. Accepts positive numbers and CSS values.
16718
16725
  *
16719
- * Default value: 200
16726
+ * Default value: `auto`
16727
+ *
16728
+ * This property allows you to specify the exact image width. If you do not set it, the width will be calculated automatically based on the [`minImageWidth`](#minImageWidth) and [`maxImageWidth`](#maxImageWidth) values and available screen width.
16720
16729
  *
16721
- * Use the `imageFit` property to specify how to fit the images or videos into their containers.
16730
+ * Use the [`imageFit`](#imageFit) property to specify how to fit the images or videos into their containers.
16722
16731
  * @see imageHeight
16723
- * @see imageFit
16724
16732
  */
16725
16733
  get imageWidth(): number;
16726
16734
  set imageWidth(val: number);
@@ -16751,9 +16759,37 @@ declare module "question_imagepicker" {
16751
16759
  protected addToVisibleChoices(items: Array<ItemValue>, isAddAll: boolean): void;
16752
16760
  getSelectBaseRootCss(): string;
16753
16761
  private isResponsiveValue;
16762
+ /**
16763
+ * Specifies a maximum width for image or video containers. Accepts positive numbers and CSS values.
16764
+ *
16765
+ * Default value: 400
16766
+ *
16767
+ * The `minImageWidth`, `maxImageWidth`, `minImageHeight`, and `maxImageHeight` properties specify boundary values for container sizes. The resulting sizes are selected depending on the available screen space. If you want to specify the exact width and height, use the [`imageWidth`](#imageWidth) and [`imageHeight`](#imageHeight) properties.
16768
+ */
16754
16769
  maxImageWidth: number;
16770
+ /**
16771
+ * Specifies a minimum width for image or video containers. Accepts positive numbers and CSS values.
16772
+ *
16773
+ * Default value: 200
16774
+ *
16775
+ * The `minImageWidth`, `maxImageWidth`, `minImageHeight`, and `maxImageHeight` properties specify boundary values for container sizes. The resulting sizes are selected depending on the available screen space. If you want to specify the exact width and height, use the [`imageWidth`](#imageWidth) and [`imageHeight`](#imageHeight) properties.
16776
+ */
16755
16777
  minImageWidth: number;
16778
+ /**
16779
+ * Specifies a maximum height for image or video containers. Accepts positive numbers and CSS values.
16780
+ *
16781
+ * Default value: 266
16782
+ *
16783
+ * The `minImageWidth`, `maxImageWidth`, `minImageHeight`, and `maxImageHeight` properties specify boundary values for container sizes. The resulting sizes are selected depending on the available screen space. If you want to specify the exact width and height, use the [`imageWidth`](#imageWidth) and [`imageHeight`](#imageHeight) properties.
16784
+ */
16756
16785
  maxImageHeight: number;
16786
+ /**
16787
+ * Specifies a minimum height for image or video containers. Accepts positive numbers and CSS values.
16788
+ *
16789
+ * Default value: 133
16790
+ *
16791
+ * The `minImageWidth`, `maxImageWidth`, `minImageHeight`, and `maxImageHeight` properties specify boundary values for container sizes. The resulting sizes are selected depending on the available screen space. If you want to specify the exact width and height, use the [`imageWidth`](#imageWidth) and [`imageHeight`](#imageHeight) properties.
16792
+ */
16757
16793
  minImageHeight: number;
16758
16794
  private get isResponsive();
16759
16795
  private get exactSizesAreEmpty();
@@ -17963,7 +17999,7 @@ declare module "mask/mask_numeric" {
17963
17999
  private calccaretPosition;
17964
18000
  displayNumber(parsedNumber: INumericalComposition, insertThousandsSeparator?: boolean, matchWholeMask?: boolean): string;
17965
18001
  convertNumber(parsedNumber: INumericalComposition): number;
17966
- validateNumber(number: INumericalComposition): boolean;
18002
+ validateNumber(number: INumericalComposition, matchWholeMask: boolean): boolean;
17967
18003
  parseNumber(src: string | number): INumericalComposition;
17968
18004
  getNumberMaskedValue(src: string | number, matchWholeMask?: boolean): string;
17969
18005
  private getNumberUnmaskedValue;
@@ -17983,6 +18019,16 @@ declare module "mask/mask_datetime" {
17983
18019
  count: number;
17984
18020
  maxCount: number;
17985
18021
  }
18022
+ interface IDateTimeComposition {
18023
+ day: number;
18024
+ month: number;
18025
+ year: number;
18026
+ hour?: number;
18027
+ minute?: number;
18028
+ second?: number;
18029
+ min?: Date;
18030
+ max?: Date;
18031
+ }
17986
18032
  export function getDateTimeLexems(pattern: string): Array<IDateTimeMaskLexem>;
17987
18033
  /**
17988
18034
  * A class that describes an input mask of the `"datetime"` [`maskType`](https://surveyjs.io/form-library/documentation/api-reference/text-entry-question-model#maskType).
@@ -18023,7 +18069,7 @@ declare module "mask/mask_datetime" {
18023
18069
  private leaveOnlyNumbers;
18024
18070
  private getMaskedStrFromISO;
18025
18071
  private initInputDateTimeData;
18026
- private getISO_8601Format;
18072
+ getISO_8601Format(dateTime: IDateTimeComposition): string;
18027
18073
  private isYearValid;
18028
18074
  private isDateValid;
18029
18075
  private getPlaceholder;
@@ -18034,7 +18080,6 @@ declare module "mask/mask_datetime" {
18034
18080
  private getFormatedString;
18035
18081
  private setInputDateTimeData;
18036
18082
  _getMaskedValue(src: string, matchWholeMask?: boolean): string;
18037
- private getPartsOld;
18038
18083
  private getParts;
18039
18084
  getUnmaskedValue(src: string): any;
18040
18085
  getMaskedValue(src: string): string;